thursday-agent 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +5 -2
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +5 -5
- package/.next/routes-manifest.json +24 -6
- package/.next/server/app/_global-error/page.js +2 -2
- package/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +2 -2
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +2 -2
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js +2 -2
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +14 -14
- package/.next/server/app/_not-found.segments/_full.segment.rsc +14 -14
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +12 -12
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/artifact/route.js +3 -3
- package/.next/server/app/api/artifact/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/files/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/bot/memory/files/route.js +10 -0
- package/.next/server/app/api/bot/memory/files/route.js.nft.json +1 -0
- package/.next/server/app/api/bot/memory/files/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/bot/memory/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/bot/memory/route.js +14 -0
- package/.next/server/app/api/bot/{notes → memory}/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/bot/route.js +6 -6
- package/.next/server/app/api/bot/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/task/[id]/route.js +8 -8
- package/.next/server/app/api/bot/task/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/task/route.js +8 -8
- package/.next/server/app/api/bot/task/route.js.nft.json +1 -1
- package/.next/server/app/api/config/route.js +5 -5
- package/.next/server/app/api/config/route.js.nft.json +1 -1
- package/.next/server/app/api/events/route.js +4 -5
- package/.next/server/app/api/events/route.js.nft.json +1 -1
- package/.next/server/app/api/file/[...path]/route.js +3 -3
- package/.next/server/app/api/file/[...path]/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/catalog/route.js +9 -8
- package/.next/server/app/api/llm-model/catalog/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/credits/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/llm-model/credits/route/build-manifest.json +12 -0
- package/.next/server/app/api/llm-model/credits/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/llm-model/credits/route.js +16 -0
- package/.next/server/app/api/llm-model/credits/route.js.map +5 -0
- package/.next/server/app/api/llm-model/credits/route.js.nft.json +1 -0
- package/.next/server/app/api/llm-model/credits/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/llm-model/route.js +10 -8
- package/.next/server/app/api/llm-model/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/subscription/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/llm-model/subscription/route/build-manifest.json +12 -0
- package/.next/server/app/api/llm-model/subscription/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/llm-model/subscription/route.js +15 -0
- package/.next/server/app/api/llm-model/subscription/route.js.map +5 -0
- package/.next/server/app/api/llm-model/subscription/route.js.nft.json +1 -0
- package/.next/server/app/api/llm-model/subscription/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/mcp/[name]/route.js +4 -4
- package/.next/server/app/api/mcp/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/oauth/callback/route.js +5 -5
- package/.next/server/app/api/mcp/oauth/callback/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/route.js +4 -4
- package/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/tools/route.js +4 -4
- package/.next/server/app/api/mcp/tools/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/edit/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/memory/edit/route/build-manifest.json +12 -0
- package/.next/server/app/api/memory/edit/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/memory/edit/route.js +24 -0
- package/.next/server/app/api/memory/edit/route.js.map +5 -0
- package/.next/server/app/api/memory/edit/route.js.nft.json +1 -0
- package/.next/server/app/api/memory/{tidy → edit}/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/memory/route.js +6 -7
- package/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/[source]/[name]/route.js +3 -3
- package/.next/server/app/api/skills/[source]/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/route.js +3 -3
- package/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/route.js +9 -7
- package/.next/server/app/api/thursday/call/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/skills/route.js +9 -7
- package/.next/server/app/api/thursday/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/tool-call/route.js +17 -15
- package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/route.js +4 -5
- package/.next/server/app/api/workspace/route.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page/server-reference-manifest.json +1 -1
- package/.next/server/app/artifact/[...path]/page.js +5 -6
- package/.next/server/app/artifact/[...path]/page.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/favicon.ico/route.js +3 -4
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/.next/server/app/favicon.ico.body +0 -0
- package/.next/server/app/page/server-reference-manifest.json +57 -90
- package/.next/server/app/page.js +10 -10
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +5 -2
- package/.next/server/chunks/[externals]__0dzuk6_._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__01dkp4a._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__02va5wz._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__02xjoto._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__04q--0f._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__0bl-e63._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0ce8nf8._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__0ffbg85._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0j7z0r3._.js +12 -0
- package/.next/server/chunks/[root-of-the-server]__0jq4ohy._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__0ls6_8y._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__0ncs9uu._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0pa2n68._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0q0vvt2._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__1-ga0kh._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__11n256_._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__12cabg9._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1339jnv._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__15bjnu5._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__18_teo8._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__1_04mcf._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__1anc1p9._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1ccon1w._.js +5 -5
- package/.next/server/chunks/[root-of-the-server]__1fizn31._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1llj3-b._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1orn-5b._.js +12 -0
- package/.next/server/chunks/[root-of-the-server]__1p8m3f4._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1wa1k7r._.js +8 -0
- package/.next/server/chunks/_0-73of8._.js +5 -5
- package/.next/server/chunks/_0-fjql4._.js +26 -0
- package/.next/server/chunks/_00xh_q0._.js +25 -0
- package/.next/server/chunks/_051qh8u._.js +3 -0
- package/.next/server/chunks/{node_modules_next_04q-o58._.js → _05dla15._.js} +2 -2
- package/.next/server/chunks/_05h2cii._.js +1 -1
- package/.next/server/chunks/_0c9j6rb._.js +49 -0
- package/.next/server/chunks/_0fzqt2y._.js +134 -0
- package/.next/server/chunks/{_0vnutv9._.js → _0ioz3nd._.js} +1 -1
- package/.next/server/chunks/_0iwfby5._.js +3 -0
- package/.next/server/chunks/_0mecv0f._.js +26 -0
- package/.next/server/chunks/_0mh8j4m._.js +3 -0
- package/.next/server/chunks/_0n74zsf._.js +4 -4
- package/.next/server/chunks/_0obojvv._.js +3 -0
- package/.next/server/chunks/_0recufk._.js +49 -0
- package/.next/server/chunks/_0rnf-6n._.js +4 -4
- package/.next/server/chunks/_0sb7tlz._.js +3 -0
- package/.next/server/chunks/_0u10wmw._.js +5 -5
- package/.next/server/chunks/_0u4aiy2._.js +3 -0
- package/.next/server/chunks/_0wp4le3._.js +1 -1
- package/.next/server/chunks/_0y5fg-x._.js +1 -1
- package/.next/server/chunks/_1230wbx._.js +10 -0
- package/.next/server/chunks/_12nheja._.js +3 -0
- package/.next/server/chunks/_13510xh._.js +3 -0
- package/.next/server/chunks/_15hq89o._.js +1 -1
- package/.next/server/chunks/_17l5ygt._.js +49 -0
- package/.next/server/chunks/_18-1wcc._.js +5 -5
- package/.next/server/chunks/_1_5mnq4._.js +4 -4
- package/.next/server/chunks/_1_9mjx-._.js +3 -0
- package/.next/server/chunks/{_0pppbb5._.js → _1c78vw5._.js} +166 -37
- package/.next/server/chunks/_1d0j961._.js +6 -0
- package/.next/server/chunks/_1d5zmy8._.js +1 -1
- package/.next/server/chunks/_1drgfx4._.js +4 -4
- package/.next/server/chunks/_1f46eie._.js +3 -0
- package/.next/server/chunks/_1h5_8sk._.js +3 -0
- package/.next/server/chunks/_1hdnxb7._.js +3 -0
- package/.next/server/chunks/_1j8k_j5._.js +3 -0
- package/.next/server/chunks/_1krd9rf._.js +3 -0
- package/.next/server/chunks/_1nc0eui._.js +11 -0
- package/.next/server/chunks/_1nula3v._.js +3 -0
- package/.next/server/chunks/_1pf4qe-._.js +3 -0
- package/.next/server/chunks/_1php4eq._.js +1 -1
- package/.next/server/chunks/_1qxheoa._.js +3 -0
- package/.next/server/chunks/_1x6kd1r._.js +3 -0
- package/.next/server/chunks/_1yuv4vp._.js +1 -1
- package/.next/server/chunks/_1zjrdag._.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_bot_memory_files_route_actions_1_xd_8f.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_bot_memory_route_actions_1a8xfr7.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_llm-model_credits_route_actions_0v424pb.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_llm-model_subscription_route_actions_0-udcm5.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_memory_edit_route_actions_02sfnmr.js +3 -0
- package/.next/server/chunks/config_ts_1g4sz5o._.js +1 -1
- package/.next/server/chunks/features_0rpfxbk._.js +3 -0
- package/.next/server/chunks/features_1qf3cei._.js +3 -0
- package/.next/server/chunks/features_bot_0zt92oh._.js +3 -0
- package/.next/server/chunks/features_bot_bot_query_ts_12mgkl2._.js +3 -0
- package/.next/server/chunks/features_memory_1uqvksn._.js +6 -0
- package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_0a1rd09._.js → node_modules_consola_dist_chunks_prompt_mjs_0i7cvml._.js} +1 -1
- package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_06067w6._.js → node_modules_consola_dist_chunks_prompt_mjs_0icqaqw._.js} +1 -1
- package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_096ais_._.js → node_modules_consola_dist_chunks_prompt_mjs_0r28-sm._.js} +1 -1
- package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_02s3hjt._.js → node_modules_consola_dist_chunks_prompt_mjs_0v_7drq._.js} +1 -1
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1xoq2rl._.js +3 -0
- package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_0tvkfgh._.js → node_modules_consola_dist_chunks_prompt_mjs_1y49572._.js} +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__092knlj._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__09q9med._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0hg5gib._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0i8ie7f._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__0jsmmb-._.js → [root-of-the-server]__0mz33a7._.js} +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0s9dq5u._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__0m1b5ky._.js → [root-of-the-server]__0s9l2sv._.js} +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0tbkdlx._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0vnmv-s._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__0f6s48x._.js → [root-of-the-server]__0xpcv9w._.js} +3 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0xsog8n._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0xtssj3._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__10-dz5o._.js +61 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__15_uhip._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__16jc196._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1gtlw6v._.js +43 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1mzi-ju._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1ox7hbk._.js +4 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__1qfqvmg._.js → [root-of-the-server]__202p40z._.js} +2 -2
- package/.next/server/chunks/ssr/{_1mznrxk._.js → _001_ms1._.js} +3 -3
- package/.next/server/chunks/ssr/_01n3o0m._.js +3 -0
- package/.next/server/chunks/ssr/_0ap2fzn._.js +3 -0
- package/.next/server/chunks/ssr/_0fz4mf_._.js +3 -0
- package/.next/server/chunks/ssr/_0gb4gmf._.js +3 -0
- package/.next/server/chunks/ssr/_0h42fze._.js +3 -0
- package/.next/server/chunks/ssr/_0h7zdni._.js +1 -1
- package/.next/server/chunks/ssr/_0i_6q1w._.js +41 -0
- package/.next/server/chunks/ssr/_0ilna52._.js +42 -0
- package/.next/server/chunks/ssr/_0n3toaw._.js +3 -0
- package/.next/server/chunks/ssr/{_13punpm._.js → _0q0zan6._.js} +2 -2
- package/.next/server/chunks/ssr/{_077-g6s._.js → _0s99bgb._.js} +3 -3
- package/.next/server/chunks/ssr/_0zcjrbg._.js +3 -0
- package/.next/server/chunks/ssr/_0zhoc3r._.js +3 -0
- package/.next/server/chunks/ssr/{_1lip4th._.js → _1-_etts._.js} +2 -2
- package/.next/server/chunks/ssr/_1-teee5._.js +3 -3
- package/.next/server/chunks/ssr/_13fke0x._.js +3 -0
- package/.next/server/chunks/ssr/_15j2_8f._.js +3 -0
- package/.next/server/chunks/ssr/_1b2mjwr._.js +3 -0
- package/.next/server/chunks/ssr/{_09ja_w1._.js → _1f-dg-6._.js} +2 -2
- package/.next/server/chunks/ssr/_1fojd41._.js +4 -0
- package/.next/server/chunks/ssr/_1gd8q8l._.js +3 -0
- package/.next/server/chunks/ssr/{_1m3bsfr._.js → _1h0rw11._.js} +2 -2
- package/.next/server/chunks/ssr/_1jhd09t._.js +3 -0
- package/.next/server/chunks/ssr/{_040sk32._.js → _1lz_cq2._.js} +84 -88
- package/.next/server/chunks/ssr/_1nnsk7z._.js +3 -0
- package/.next/server/chunks/ssr/_1sji22n._.js +3 -0
- package/.next/server/chunks/ssr/{_0x_nu5e._.js → _1vi_uo7._.js} +2 -2
- package/.next/server/chunks/ssr/_1vyd1ji._.js +1 -1
- package/.next/server/chunks/ssr/features_bot_1s_-2vj._.js +3 -0
- package/.next/server/chunks/ssr/features_config_components_config-setting_tsx_0xfwqdg._.js +1 -1
- package/.next/server/chunks/ssr/features_connectors_components_mcp-setting_tsx_0jmbgvp._.js +1 -1
- package/.next/server/chunks/ssr/{node_modules_0kxz4gt._.js → node_modules_00etblx._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_18_dk7_._.js → node_modules_04jf_m8._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0_n241r._.js → node_modules_08dhkiq._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0n1kj4p._.js → node_modules_0940ns5._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_17lrt3y._.js → node_modules_09q35v_._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1toafc-._.js → node_modules_0_-_a--._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0lrjk5t._.js → node_modules_0arus10._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_04n7mjs._.js → node_modules_0b__sgl._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0iz1rzd._.js → node_modules_0cxaxk9._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0ndvxub._.js → node_modules_0g7fzk3._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0kl7-tn._.js → node_modules_0had7xd._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_19dp7ko._.js → node_modules_0pvd7q-._.js} +1 -1
- package/.next/server/chunks/ssr/node_modules_0x3-ply._.js +3 -0
- package/.next/server/chunks/ssr/{node_modules_1dwguw_._.js → node_modules_0yugy6m._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_004qlr4._.js → node_modules_14om4ar._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1q0p85z._.js → node_modules_14q6g4n._.js} +1 -1
- package/.next/server/chunks/ssr/node_modules_17bwo43._.js +55 -0
- package/.next/server/chunks/ssr/{node_modules_1hd-5tv._.js → node_modules_198nmll._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0m93zeg._.js → node_modules_1_pc9kq._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1n5ygqe._.js → node_modules_1aaxuef._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_01qnv-a._.js → node_modules_1cx_ql6._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1zu988w._.js → node_modules_1cz2hle._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1xyd7ov._.js → node_modules_1efrqxi._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_13r44jq._.js → node_modules_1eg7m6c._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_08d8bke._.js → node_modules_1gdh31p._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1hn8z1f._.js → node_modules_1hpopmo._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_20yebtj._.js → node_modules_1qpjvy5._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_09xhur7._.js → node_modules_1vh5ntv._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0m9a4y0._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1b748ic._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_13w_wy9._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1z4hm5e._.js} +1 -1
- package/.next/server/chunks/ssr/node_modules_@vercel_oidc_dist_06mk8id._.js +3 -0
- package/.next/server/chunks/ssr/{node_modules_next_dist_0w6mzq5._.js → node_modules_next_dist_0drixxt._.js} +4 -4
- package/.next/server/chunks/ssr/node_modules_next_dist_1n3w9lb._.js +2 -2
- package/.next/server/instrumentation.js +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +58 -91
- package/.next/static/chunks/00rd4-v8r7axp.js +1 -0
- package/.next/static/chunks/08qe4as2q428z.js +3 -0
- package/.next/static/chunks/{31ttnjt6g35a0.js → 0ev4hyghq0mbb.js} +1 -1
- package/.next/static/chunks/0fl3gwe4-l6tz.js +1 -0
- package/.next/static/chunks/0gnqdjn2lvdad.js +2 -0
- package/.next/static/chunks/0hwap1-p0m5sa.js +1 -0
- package/.next/static/chunks/0r5qcctujhxli.js +1 -0
- package/.next/static/chunks/0w52rrrmuj9r9.js +1 -0
- package/.next/static/chunks/{07kl352c-lvcz.js → 0wcprt5ot5she.js} +1 -1
- package/.next/static/chunks/10teww7wt-f6h.js +1 -0
- package/.next/static/chunks/15m575979un5f.js +38 -0
- package/.next/static/chunks/17p6tk6k88dq6.js +1 -0
- package/.next/static/chunks/{3_h9txt3tq8t8.js → 1dkjg87pxk0n9.js} +1 -1
- package/.next/static/chunks/1jd09sxcjddu1.js +1 -0
- package/.next/static/chunks/1kq8h8wi_e0bc.js +53 -0
- package/.next/static/chunks/{18vhba44l1fc9.js → 1w73ece_6bheu.js} +1 -1
- package/.next/static/chunks/{3ard_noqapnw1.js → 214ya3n5gxeih.js} +1 -1
- package/.next/static/chunks/22_zkas21rpna.js +1 -0
- package/.next/static/chunks/2h0sd2vumhb15.js +1 -0
- package/.next/static/chunks/2t4vhi3m8ahya.js +1 -0
- package/.next/static/chunks/2tigdtz3dpcy8.js +1 -0
- package/.next/static/chunks/2u7xt6mxg44lf.js +1 -0
- package/.next/static/chunks/39j0fvpybzabl.js +40 -0
- package/.next/static/chunks/3akmqm77muj4-.js +1 -0
- package/.next/static/chunks/3cq5g494yuke8.css +1 -0
- package/.next/static/chunks/3woj-xd7ki5_i.js +1 -0
- package/.next/static/chunks/3xk7yqgomx7yq.js +1 -0
- package/.next/static/chunks/3zmcsnuo25zvq.js +1 -0
- package/.next/static/media/favicon.37o1pjldwi2uc.ico +0 -0
- package/README.md +47 -22
- package/app/api/bot/memory/files/route.ts +14 -0
- package/app/api/bot/memory/route.ts +5 -0
- package/app/api/events/app-event.ts +3 -7
- package/app/api/llm-model/credits/route.ts +11 -0
- package/app/api/llm-model/route.ts +6 -1
- package/app/api/llm-model/subscription/route.ts +11 -0
- package/app/api/memory/edit/route.ts +7 -0
- package/app/api/memory/route.ts +21 -0
- package/app/api/query-key.ts +19 -4
- package/bin/port.mjs +65 -0
- package/bin/thursday.mjs +5 -33
- package/components/ui/shiny-text.tsx +48 -134
- package/database/migrations/{20260909060813_optimal_sabretooth → 20260910173049_numerous_spirit}/migration.sql +24 -34
- package/database/migrations/{20260909060813_optimal_sabretooth → 20260910173049_numerous_spirit}/snapshot.json +71 -145
- package/database/migrations/20260911030320_opposite_jack_power/migration.sql +1 -0
- package/database/migrations/{20260909063821_bitter_tenebrous → 20260911030320_opposite_jack_power}/snapshot.json +57 -184
- package/docs/how-it-works.md +11 -7
- package/docs/images/face-dark.png +0 -0
- package/docs/images/face-light.png +0 -0
- package/docs/images/keeps-going.png +0 -0
- package/features/ai/chatgpt.ts +639 -0
- package/features/ai/components/chatgpt-sign-in.tsx +66 -0
- package/features/ai/components/model-picker.tsx +17 -1
- package/features/ai/components/provider-icon.tsx +1 -0
- package/features/ai/load-tools.ts +78 -56
- package/features/ai/model.schema.ts +232 -34
- package/features/ai/model.ts +169 -24
- package/features/ai/prompts/bot.prompt.ts +207 -114
- package/features/ai/prompts/memory-edit.prompt.ts +33 -0
- package/features/ai/prompts/prompt-helper.ts +45 -26
- package/features/ai/prompts/thursday.prompt.ts +57 -27
- package/features/ai/tools/bot.tool.ts +35 -52
- package/features/ai/tools/connected.ts +17 -4
- package/features/ai/tools/memory.tool.ts +181 -117
- package/features/ai/tools/search.tool.ts +136 -47
- package/features/ai/tools/tool-name.ts +2 -6
- package/features/ai/tools/workspace.tool.ts +5 -1
- package/features/bot/bot.action.ts +14 -19
- package/features/bot/bot.memory.ts +89 -0
- package/features/bot/bot.query.ts +37 -57
- package/features/bot/bot.run.ts +512 -242
- package/features/bot/bot.runner.ts +434 -120
- package/features/bot/bot.schema.ts +104 -19
- package/features/bot/bot.seed.ts +89 -16
- package/features/bot/components/bot-mark.tsx +122 -20
- package/features/bot/components/bot-room.tsx +214 -132
- package/features/bot/components/bot-setting.tsx +790 -402
- package/features/bot/components/bot-tool.tsx +2 -7
- package/features/bot/components/mark-palette.tsx +54 -0
- package/features/bot/components/path-chips.tsx +1 -1
- package/features/bot/components/task-badge.tsx +26 -6
- package/features/bot/components/task-reply.tsx +22 -33
- package/features/bot/components/task-setting.tsx +20 -17
- package/features/bot/task.query.ts +240 -34
- package/features/bot/task.store.ts +76 -13
- package/features/config/components/config-setting.tsx +265 -34
- package/features/config/components/models-badge.tsx +42 -0
- package/features/config/config.action.ts +12 -0
- package/features/config/config.const.ts +38 -2
- package/features/connectors/mcp.manager.ts +10 -2
- package/features/intro/components/intro.tsx +47 -46
- package/features/memory/components/memory-edit.tsx +340 -0
- package/features/memory/components/memory-setting.tsx +75 -77
- package/features/memory/memory.action.ts +3 -43
- package/features/memory/memory.edit.ts +87 -0
- package/features/memory/memory.query.ts +24 -42
- package/features/memory/memory.schema.ts +29 -106
- package/features/settings/components/settings.tsx +2 -0
- package/features/settings/settings.alert.ts +3 -1
- package/features/thursday/components/ascii-orb.tsx +106 -90
- package/features/thursday/components/boot.tsx +7 -0
- package/features/thursday/components/call-log.tsx +219 -92
- package/features/thursday/components/face.tsx +6 -4
- package/features/thursday/components/tab-state.tsx +97 -0
- package/features/thursday/components/thursday-mark.tsx +4 -1
- package/features/thursday/components/thursday-setting.tsx +17 -47
- package/features/thursday/components/thursday.tsx +208 -98
- package/features/thursday/thursday.action.ts +12 -17
- package/features/thursday/thursday.query.ts +61 -70
- package/features/thursday/thursday.schema.ts +20 -7
- package/features/thursday/tool-line.ts +85 -12
- package/features/thursday/use-thursday.ts +87 -60
- package/features/workspace/components/file-view.tsx +4 -2
- package/features/workspace/workspace.ts +110 -26
- package/lib/limits.ts +1 -1
- package/lib/oauth-page.ts +27 -0
- package/lib/realtime/openai.ts +2 -2
- package/lib/realtime/realtime.protocol.ts +1 -1
- package/lib/realtime/realtime.tap.ts +122 -0
- package/lib/sandbox.ts +59 -36
- package/package.json +1 -1
- package/skills/browser/SKILL.md +55 -34
- package/.next/server/app/api/bot/notes/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/bot/notes/route.js +0 -14
- package/.next/server/app/api/bot/notes/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/memory/tidy/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/memory/tidy/route.js +0 -22
- package/.next/server/app/api/memory/tidy/route.js.nft.json +0 -1
- package/.next/server/chunks/0d-b_next_dist_server_app-render_after-task-async-storage_external_0-exn7p.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0-npkh_._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__005var5._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__019dx9f._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__02_2sm-._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__04_8spk._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__05luceg._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__06t77t4._.js +0 -11
- package/.next/server/chunks/[root-of-the-server]__0bed6hu._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__0cro2dz._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__0dupqt7._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__0emr6go._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0le4d-p._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0m8ywyo._.js +0 -10
- package/.next/server/chunks/[root-of-the-server]__0nfuugi._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__0p32jfz._.js +0 -12
- package/.next/server/chunks/[root-of-the-server]__0phdgco._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__0wvgrsl._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__10qshki._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__11j52t0._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__1692zrv._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__16thabu._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__173nhwf._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__1_aoyr9._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1bn73ih._.js +0 -10
- package/.next/server/chunks/[root-of-the-server]__1bqhuh9._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__1cqizfq._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__1e-ci13._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1fboj2j._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1lr7j9t._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__1oli73c._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1txedx6._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__1untqv8._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__1zgpz1w._.js +0 -3
- package/.next/server/chunks/_00_584r._.js +0 -293
- package/.next/server/chunks/_012yhfm._.js +0 -39
- package/.next/server/chunks/_06mxlgn._.js +0 -3
- package/.next/server/chunks/_07rtlxv._.js +0 -3
- package/.next/server/chunks/_0a351g7._.js +0 -6
- package/.next/server/chunks/_0kjjmag._.js +0 -3
- package/.next/server/chunks/_0nn99o2._.js +0 -3
- package/.next/server/chunks/_0zuzmt_._.js +0 -39
- package/.next/server/chunks/_106co2o._.js +0 -3
- package/.next/server/chunks/_12bbv5i._.js +0 -100
- package/.next/server/chunks/_15q1pig._.js +0 -3
- package/.next/server/chunks/_19wg5yn._.js +0 -138
- package/.next/server/chunks/_1bt95p9._.js +0 -55
- package/.next/server/chunks/_1cbk7ms._.js +0 -26
- package/.next/server/chunks/_1drv2et._.js +0 -40
- package/.next/server/chunks/_1ic3bew._.js +0 -5
- package/.next/server/chunks/_1mxn_lb._.js +0 -3
- package/.next/server/chunks/_1rysr-r._.js +0 -10
- package/.next/server/chunks/_1u3rwbr._.js +0 -3
- package/.next/server/chunks/_1x7p319._.js +0 -6
- package/.next/server/chunks/_next-internal_server_app_api_bot_notes_route_actions_0qcsyu7.js +0 -3
- package/.next/server/chunks/_next-internal_server_app_api_memory_tidy_route_actions_0_cfuom.js +0 -3
- package/.next/server/chunks/features_bot_task_query_ts_11xuzl3._.js +0 -3
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_0gzvgfv._.js +0 -3
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_0vorg6w._.js +0 -3
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1tpvamf._.js +0 -3
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1vmaq9f._.js +0 -3
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1y9-wcr._.js +0 -3
- package/.next/server/chunks/ssr/[externals]_node_crypto_1kn79-7._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0iuoa-r._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0un-erv._.js +0 -4
- package/.next/server/chunks/ssr/[root-of-the-server]__1-mnhyd._.js +0 -92
- package/.next/server/chunks/ssr/[root-of-the-server]__1bww500._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1vcdast._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1xwnu-h._.js +0 -3
- package/.next/server/chunks/ssr/_0-mc7ro._.js +0 -3
- package/.next/server/chunks/ssr/_01p5r6-._.js +0 -3
- package/.next/server/chunks/ssr/_03webdr._.js +0 -3
- package/.next/server/chunks/ssr/_09-0k3z._.js +0 -3
- package/.next/server/chunks/ssr/_0f_b_9s._.js +0 -3
- package/.next/server/chunks/ssr/_0fafgvl._.js +0 -3
- package/.next/server/chunks/ssr/_0sf1isi._.js +0 -3
- package/.next/server/chunks/ssr/_0su6_08._.js +0 -3
- package/.next/server/chunks/ssr/_0ti51xc._.js +0 -3
- package/.next/server/chunks/ssr/_0w5bgak._.js +0 -3
- package/.next/server/chunks/ssr/_0y84qo6._.js +0 -3
- package/.next/server/chunks/ssr/_1ciyoo3._.js +0 -3
- package/.next/server/chunks/ssr/_1e-dgz0._.js +0 -4
- package/.next/server/chunks/ssr/_1fq7zgb._.js +0 -3
- package/.next/server/chunks/ssr/_1g6l4uj._.js +0 -3
- package/.next/server/chunks/ssr/_1ruzehw._.js +0 -3
- package/.next/server/chunks/ssr/features_bot_components_bot-setting_tsx_01ajft6._.js +0 -4
- package/.next/server/chunks/ssr/features_config_components_14jqgy4._.js +0 -3
- package/.next/server/chunks/ssr/features_memory_components_memory-setting_tsx_0oa43sw._.js +0 -4
- package/.next/server/chunks/ssr/node_modules_zod_v4_classic_external_15fmmz3.js +0 -55
- package/.next/static/chunks/05b6nx_o3_f_n.js +0 -1
- package/.next/static/chunks/0dmns-gi0raa4.js +0 -1
- package/.next/static/chunks/0f9sq-7q_yxyl.js +0 -1
- package/.next/static/chunks/0oc4_xoia77dg.css +0 -1
- package/.next/static/chunks/0pheo8m3a-rzi.js +0 -1
- package/.next/static/chunks/19i8h2t-5evjx.js +0 -1
- package/.next/static/chunks/1c5fcj473025q.js +0 -1
- package/.next/static/chunks/1pi_hbmjw-f-z.js +0 -1
- package/.next/static/chunks/1twt6k09vg4np.js +0 -1
- package/.next/static/chunks/1ytnip8wdng93.js +0 -1
- package/.next/static/chunks/28gotuisldmom.js +0 -1
- package/.next/static/chunks/2998p0y7k1c8z.js +0 -3
- package/.next/static/chunks/29gyb3nubj51j.js +0 -53
- package/.next/static/chunks/2l233xfycjpd8.js +0 -1
- package/.next/static/chunks/2p5n7pa3c40t-.js +0 -2
- package/.next/static/chunks/2ru1q132af7h7.js +0 -1
- package/.next/static/chunks/2t8wqycwg3y04.js +0 -2
- package/.next/static/chunks/2uxum7qbyeyxd.js +0 -1
- package/.next/static/chunks/32z_ypgtchw48.js +0 -1
- package/.next/static/chunks/33pyjb3xd1iez.js +0 -1
- package/.next/static/chunks/3omud5xunrk1f.js +0 -1
- package/.next/static/chunks/42dnrkbph9e-1.js +0 -1
- package/.next/static/media/favicon.2vob68tjqpejf.ico +0 -0
- package/database/migrations/20260909063821_bitter_tenebrous/migration.sql +0 -1
- package/features/ai/prompts/memory-tidy.prompt.ts +0 -129
- package/features/ai/tools/tidy.tool.ts +0 -22
- package/features/bot/bot.notes.ts +0 -120
- package/features/memory/components/memory-tidy.tsx +0 -395
- package/features/memory/components/memory-view.tsx +0 -84
- package/features/memory/memory.tidy.ts +0 -332
- package/features/memory/tidy.query.ts +0 -135
- package/features/thursday/use-call-title.ts +0 -31
- /package/.next/server/app/api/bot/{notes → memory/files}/route/build-manifest.json +0 -0
- /package/.next/server/app/api/bot/{notes → memory/files}/route/server-reference-manifest.json +0 -0
- /package/.next/server/app/api/bot/{notes → memory/files}/route.js.map +0 -0
- /package/.next/server/app/api/{memory/tidy → bot/memory}/route/build-manifest.json +0 -0
- /package/.next/server/app/api/{memory/tidy → bot/memory}/route/server-reference-manifest.json +0 -0
- /package/.next/server/app/api/{memory/tidy → bot/memory}/route.js.map +0 -0
- /package/.next/static/{YR4NWcDDuzwLbTTU7U7Vr → kaTO0UHqF1bMnWgCDik2f}/_buildManifest.js +0 -0
- /package/.next/static/{YR4NWcDDuzwLbTTU7U7Vr → kaTO0UHqF1bMnWgCDik2f}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{YR4NWcDDuzwLbTTU7U7Vr → kaTO0UHqF1bMnWgCDik2f}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,805995,e=>{"use strict";var t=e.i(843476),n=e.i(493801),i=e.i(456420);let s={name:"audio-lines",size:24,node:[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]]};s.node;let r=(0,i.default)(s),o={name:"captions",size:24,node:[["rect",{width:"18",height:"14",x:"3",y:"5",rx:"2",ry:"2",key:"12ruh7"}],["path",{d:"M7 15h4M15 15h2M7 11h2M13 11h4",key:"1ueiar"}]],aliases:["subtitles"]};o.node;let a=(0,i.default)(o);var l=e.i(689664),d=e.i(867927);let c={name:"clapperboard",size:24,node:[["path",{d:"m12.296 3.464 3.02 3.956",key:"qash78"}],["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3z",key:"1h7j8b"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"4lm6w1"}],["path",{d:"m6.18 5.276 3.1 3.899",key:"zjj9t3"}]]};c.node;let u=(0,i.default)(c);var m=e.i(815170),g=e.i(758925),f=e.i(566595),h=e.i(466787),x=e.i(271645),y=e.i(798120),p=e.i(167881),k=e.i(23750),v=e.i(917162),j=e.i(671428),S=e.i(412294),N=e.i(146538),b=e.i(968978),w=e.i(265402),C=e.i(635963),M=e.i(95187);let I=(0,M.createServerReference)("7fa4730e940da24972c78a6934ce626fdecd092165",M.callServer,void 0,M.findSourceMapURL,"removeConfigAction");var A=e.i(905871),D=e.i(992112),K=e.i(895836),T=e.i(609856),R=e.i(283653),z=e.i(647163);let $={[D.EXA_API_KEY]:f.Search},q={image:m.Image,video:u,speech:r,transcription:a};function O({section:e}){let{data:n,isLoading:i,error:s}=(0,R.useServerRoute)(y.queryKey.config);if(i)return(0,t.jsx)(K.SettingSkeleton,{rows:4});if(s)return(0,t.jsx)(K.SettingError,{message:s.message});let r=e=>(0,D.isConfigSet)(n,e),o=e=>n?.find(t=>t.key===e)?.value,a=D.CONFIG_GROUPS.filter(t=>t.section===e),l=a.flatMap(e=>e.entries);return(0,t.jsx)(K.SettingScreen,{footer:(0,t.jsx)(K.SettingRailNote,{children:"keys"===e?(0,t.jsxs)(t.Fragment,{children:[l.filter(e=>r(e.key)).length," of"," ",l.length," set",a.some(e=>!(0,D.groupSatisfied)(e,r))?" · a call needs one voice key":" · your keys stay on this machine"]}):(0,t.jsxs)(t.Fragment,{children:[l.length," of ",l.length," resolved ·"," ",l.filter(e=>o(e.key)).length," pinned"]})}),children:a.map(e=>(0,t.jsx)(K.SettingGroup,{label:e.title,hint:e.hint,right:(0,t.jsx)(F,{group:e,isSet:r}),children:(0,t.jsx)(K.SettingItems,{children:e.entries.map(n=>n.choices?(0,t.jsx)(H,{entry:n,choices:n.choices,value:o(n.key),isSet:r},n.key):(0,t.jsx)(B,{entry:n,set:r(n.key),needed:!(0,D.groupSatisfied)(e,r)},n.key))})},e.id))})}function F({group:e,isSet:n}){return"none"===e.require?null:(0,D.groupSatisfied)(e,n)?(0,t.jsxs)("span",{className:"flex items-center gap-1 font-mono text-[11px] text-muted-foreground",children:[(0,t.jsx)(l.Check,{className:"size-3"}),"ready"]}):(0,t.jsxs)("span",{className:(0,z.cn)("flex items-center gap-1 font-mono text-[11px]",z.WAITING_INK),children:[(0,t.jsx)(h.TriangleAlert,{className:"size-3"}),e.note??"Required"]})}function B({entry:e,set:n,needed:i}){let s=_(e,n),r=W(e,n),o=U(e,n),a=r.data?E(r.data):P(n,i,s.data,e.signIn);return(0,t.jsxs)("button",{type:"button",onClick:()=>{var i,s,r;return e.signIn?(i=e,v.notify.component({className:"sm:max-w-md",renderer:({close:e})=>(0,t.jsx)(Q,{entry:i,onDone:e})})):(s=e,r=n,v.notify.component({className:"sm:max-w-md",renderer:({close:e})=>(0,t.jsx)(V,{entry:s,set:r,onDone:e})}))},className:"group flex w-full items-center gap-3 p-4 text-left outline-none transition-colors hover:bg-muted/50 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,t.jsx)("span",{className:"grid size-8 shrink-0 place-items-center rounded-lg bg-muted/60",children:(0,t.jsx)(Y,{entry:e})}),(0,t.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,t.jsx)("span",{className:"block truncate text-sm font-medium",children:e.label}),(0,t.jsx)("span",{className:"block truncate font-mono text-xs text-muted-foreground",children:e.signIn?n?L(r.data,o):"sign in with your account":e.key})]}),s.isLoading||r.isLoading?(0,t.jsx)(j.Skeleton,{className:"h-3 w-20 shrink-0"}):(0,t.jsxs)("span",{className:(0,z.cn)("flex shrink-0 items-center gap-1.5 font-mono text-xs",a.ink),children:[a.warn?(0,t.jsx)(h.TriangleAlert,{className:"size-3"}):n&&(0,t.jsx)(l.Check,{className:"size-3"}),a.text]}),(0,t.jsx)(d.ChevronRight,{className:"size-4 shrink-0 text-muted-foreground/60 transition-colors group-hover:text-foreground"})]})}let G=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"});function P(e,t,n,i){return e?n?"refused"in n?{text:"Key refused",ink:"text-destructive",warn:!0}:{text:`${G.format(n.balance)} left`,ink:n.low?z.WAITING_INK:"text-muted-foreground",warn:n.low}:{text:i?"Signed in":"Set",ink:"text-muted-foreground",warn:!1}:t?{text:"Needed",ink:z.WAITING_INK,warn:!0}:{text:i?"Signed out":"Not set",ink:"text-muted-foreground/60",warn:!1}}function _(e,t){return(0,R.useServerRoute)(t&&"vercel-ai-gateway"===e.provider?y.queryKey.gatewayCredits:null)}function U(e,t){let{data:n}=(0,R.useServerRoute)(t&&e.signIn?y.queryKey.llmModel:null);return n?.find(t=>t.id===e.provider)?.plan??null}function W(e,t){return(0,R.useServerRoute)(t&&e.signIn?y.queryKey.subscriptionUsage:null)}function E(e){return"refused"in e?{text:"Sign-in refused",ink:"text-destructive",warn:!0}:{text:e.spent?"Limit reached":`${e.usedPercent}% used`,ink:e.high?z.WAITING_INK:"text-muted-foreground",warn:e.high}}function L(e,t){let i=!e||"refused"in e?null:e,s=`${i?.plan??t??"unknown"} plan`;return i?.resetsAt?`${s} \xb7 resets in ${(0,n.formatDistanceToNowStrict)(new Date(i.resetsAt))}`:s}function Y({entry:e}){if(e.provider)return(0,t.jsx)(b.ProviderIcon,{provider:e.provider,className:"size-4"});let n=$[e.key]??g.KeyRound;return(0,t.jsx)(n,{className:"size-4 text-muted-foreground"})}function H({entry:e,choices:n,value:i,isSet:s}){let r=n.find(e=>e.value===i),o=n.filter(e=>s(e.needs)),a=i&&!r?i:null,l=e.kind?q[e.kind]:C.BotsMark;return(0,t.jsxs)("button",{type:"button",onClick:()=>{var i,s,r;return e.kind||e.text?(i=e,v.notify.component({className:"sm:max-w-lg",renderer:({close:e})=>(0,t.jsx)(X,{entry:i,onDone:e})})):(s=e,r=n,v.notify.component({className:"sm:max-w-md",renderer:({close:e})=>(0,t.jsx)(J,{entry:s,choices:r,onDone:e})}))},className:"group flex w-full items-center gap-3 p-4 text-left outline-none transition-colors hover:bg-muted/50 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,t.jsx)("span",{className:"grid size-8 shrink-0 place-items-center rounded-lg bg-muted/60",children:(0,t.jsx)(l,{className:"size-4 text-muted-foreground"})}),(0,t.jsxs)("span",{className:"min-w-0 flex-1 space-y-1",children:[(0,t.jsx)("span",{className:"block truncate text-sm font-medium",children:e.label}),(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[!r&&!a&&(0,t.jsx)("span",{className:(0,z.cn)("shrink-0 rounded-[5px] border border-border/60 px-1 font-mono text-[10px]",e.kind?z.WAITING_INK:"text-muted-foreground"),children:e.kind?"off":"auto"}),(0,t.jsx)("span",{className:"truncate font-mono text-xs text-muted-foreground",children:r?.label??a??(e.kind?"Not offered to bots until you pick one":o[0]?.label??"No key for any of these yet")})]})]}),(0,t.jsx)(d.ChevronRight,{className:"size-4 shrink-0 text-muted-foreground/60 transition-colors group-hover:text-foreground"})]})}function X({entry:e,onDone:n}){let{data:i}=(0,R.useServerRoute)(y.queryKey.config),s=i?.find(t=>t.key===e.key)?.value,[r,o]=(0,x.useState)(()=>{let t=e.text?(0,w.parseTextModel)(s):(0,w.parseMediaModel)(s);return{provider:t?.provider??null,model:t?.model??""}}),a=()=>{(0,R.revalidate)(y.queryKey.config),n()},[l]=(0,T.useServerAction)(A.setConfigAction,{okMessage:`${e.label} saved`,onOk:a}),[d,c]=(0,T.useServerAction)(I,{okMessage:e.kind?`${e.label} switched off`:`${e.label} back to automatic`,onOk:a});return(0,t.jsx)(K.SettingDialogContent,{title:e.label,description:e.hint,footer:(0,t.jsxs)(t.Fragment,{children:[s&&(0,t.jsx)(p.Button,{variant:"ghost",loading:c,onClick:()=>d(e.key),children:e.kind?"Turn off":"Automatic"}),(0,t.jsx)(p.Button,{variant:"ghost",onClick:n,children:"Close"})]}),children:(0,t.jsx)(N.ModelPicker,{kind:e.kind,provider:r.provider,model:r.model,onChange:t=>{o(t),t.model.trim()&&l(e.key,`${t.provider}/${t.model.trim()}`)}})})}function J({entry:e,choices:n,onDone:i}){let{data:s}=(0,R.useServerRoute)(y.queryKey.config),r=s?.find(t=>t.key===e.key)?.value,o=()=>{(0,R.revalidate)(y.queryKey.config),i()},[a,l]=(0,T.useServerAction)(A.setConfigAction,{okMessage:`${e.label} saved`,onOk:o}),[d,c]=(0,T.useServerAction)(I,{okMessage:e.kind?`${e.label} switched off`:`${e.label} back to automatic`,onOk:o});return(0,t.jsx)(K.SettingDialogContent,{title:e.label,description:e.hint,footer:(0,t.jsxs)(t.Fragment,{children:[r&&(0,t.jsx)(p.Button,{variant:"ghost",loading:c,onClick:()=>d(e.key),children:e.kind?"Turn off":"Automatic"}),(0,t.jsx)(p.Button,{variant:"ghost",onClick:i,children:"Close"})]}),children:(0,t.jsx)(K.SettingChoiceRows,{options:n.map(e=>({value:e.value,label:e.label,disabled:!(0,D.isConfigSet)(s,e.needs)&&`needs ${e.needs}`})),value:r,onChange:t=>a(e.key,t),disabled:l})})}function Q({entry:e,onDone:n}){let{data:i}=(0,R.useServerRoute)(y.queryKey.config),s=(0,D.isConfigSet)(i,e.key),r=U(e,s),o=W(e,s),a=o.data?E(o.data):null,[l,d]=(0,T.useServerAction)(I,{okMessage:`Signed out of ${e.label}`,onOk:()=>{(0,R.revalidate)(y.queryKey.config),(0,R.revalidate)(y.queryKey.llmModel),n()}});return(0,t.jsx)(K.SettingDialogContent,{title:e.label,description:s?(0,t.jsxs)(t.Fragment,{children:["Signed in ·"," ",(0,t.jsx)("span",{className:"font-mono",children:L(o.data,r)}),a&&(0,t.jsxs)(t.Fragment,{children:[" · ",(0,t.jsx)("span",{className:(0,z.cn)("font-mono",a.ink),children:a.text})]})]}):"Sign in with your ChatGPT account instead of a key",footer:(0,t.jsxs)(t.Fragment,{children:[s&&(0,t.jsx)(p.Button,{variant:"ghost",loading:d,onClick:()=>l(e.key),children:"Sign out"}),(0,t.jsx)(p.Button,{variant:"ghost",onClick:n,children:s?"Close":"Cancel"}),!s&&(0,t.jsx)(S.ChatGptSignIn,{})]}),children:(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(K.SettingNote,{children:s?"Bots on this subscription spend your plan's usage, not a key. When it runs out, the job stops and says when it resets.":"The sign-in opens in its own window. Approve it there, and this turns to signed in by itself."}),o.data&&"refused"in o.data&&(0,t.jsx)(K.SettingNote,{className:"wrap-break-word text-destructive",children:o.data.refused})]})})}function V({entry:e,set:n,onDone:i}){let[s,r]=(0,x.useState)(""),{data:o}=_(e,n),a=o?P(n,!1,o):null,l=()=>{(0,R.revalidate)(y.queryKey.config),(0,R.revalidate)(y.queryKey.llmModel)},[d,c]=(0,T.useServerAction)(A.setConfigAction,{okMessage:`${e.label} key saved`,onOk:()=>{l(),i()}}),[u,m]=(0,T.useServerAction)(I,{okMessage:`${e.label} key removed`,onOk:()=>{l(),i()}});return(0,t.jsx)(K.SettingDialogContent,{title:e.label,description:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"font-mono",children:e.key}),e.hint&&(0,t.jsxs)(t.Fragment,{children:[" · ",e.hint]}),a&&(0,t.jsxs)(t.Fragment,{children:[" · ",(0,t.jsx)("span",{className:(0,z.cn)("font-mono",a.ink),children:a.text})]})]}),footer:(0,t.jsxs)(t.Fragment,{children:[n&&(0,t.jsx)(p.Button,{variant:"ghost",loading:m,onClick:()=>u(e.key),children:"Remove"}),(0,t.jsx)(p.Button,{variant:"ghost",onClick:i,children:"Cancel"}),(0,t.jsx)(p.Button,{loading:c,disabled:s.trim().length<8,onClick:()=>d(e.key,s),children:n?"Replace":"Save"})]}),children:(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(k.Input,{value:s,onChange:e=>r(e.target.value),onKeyDown:t=>{"Enter"===t.key&&s.trim().length>=8&&d(e.key,s)},placeholder:n?"New value — replaces the current key":e.key,spellCheck:!1,type:"password",autoFocus:!0}),o&&"refused"in o&&(0,t.jsx)(K.SettingNote,{className:"wrap-break-word text-destructive",children:o.refused})]})})}e.s(["ConfigGroups",0,O,"ConfigSetting",0,function(){return(0,t.jsx)(O,{section:"keys"})}],805995)},855783,e=>{"use strict";var t=e.i(843476),n=e.i(805995);e.s(["ModelsSetting",0,function(){return(0,t.jsx)(n.ConfigGroups,{section:"models"})}])},493801,e=>{"use strict";var t=e.i(24708),n=e.i(55545),i=e.i(455024),s=e.i(99151),r=e.i(845110),o=e.i(281092),a=e.i(234662);e.s(["formatDistanceToNowStrict",0,function(e,l){return function(e,t,l){var d;let c,u,m=(0,i.getDefaultOptions)(),g=l?.locale??m.locale??n.defaultLocale,f=(u=(0,o.toDate)(e)-(0,o.toDate)(t))<0?-1:u>0?1:u;if(isNaN(f))throw RangeError("Invalid time value");let h=Object.assign({},l,{addSuffix:l?.addSuffix,comparison:f}),[x,y]=(0,r.normalizeDates)(l?.in,...f>0?[t,e]:[e,t]),p=(d=l?.roundingMethod??"round",e=>{let t=(d?Math[d]:Math.trunc)(e);return 0===t?0:t}),k=y.getTime()-x.getTime(),v=k/a.millisecondsInMinute,j=(k-((0,s.getTimezoneOffsetInMilliseconds)(y)-(0,s.getTimezoneOffsetInMilliseconds)(x)))/a.millisecondsInMinute,S=l?.unit;if("second"===(c=S||(v<1?"second":v<60?"minute":v<a.minutesInDay?"hour":j<a.minutesInMonth?"day":j<a.minutesInYear?"month":"year"))){let e=p(k/1e3);return g.formatDistance("xSeconds",e,h)}if("minute"===c){let e=p(v);return g.formatDistance("xMinutes",e,h)}if("hour"===c){let e=p(v/60);return g.formatDistance("xHours",e,h)}if("day"===c){let e=p(j/a.minutesInDay);return g.formatDistance("xDays",e,h)}if("month"===c){let e=p(j/a.minutesInMonth);return 12===e&&"month"!==S?g.formatDistance("xYears",1,h):g.formatDistance("xMonths",e,h)}else{let e=p(j/a.minutesInYear);return g.formatDistance("xYears",e,h)}}(e,(0,t.constructNow)(e),l)}],493801)},466787,e=>{"use strict";var t=e.i(755566);e.s(["TriangleAlert",()=>t.default])}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,507906,e=>{"use strict";var t,n,r,o,a,i,l,s,c=e.i(843476),u=e.i(689664),d=e.i(867927),f=e.i(456420);let m={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};m.node;let p=(0,f.default)(m);var h=e.i(569644),v=e.i(779266),g=e.i(77071),x=e.i(759659),b=e.i(747925),y=e.i(263676),w=e.i(271645),E=e.i(798120),j=e.i(167881),k=/[\\\/_+.#"@\[\(\{&]/,S=/[\\\/_+.#"@\[\(\{&]/g,N=/[\s-]/,C=/[\s-]/g;function A(e){return e.toLowerCase().replace(C," ")}var R=Object.defineProperty,O=(e,t)=>R(e,"name",{value:t,configurable:!0}),P=!!("u">typeof window&&window.document&&window.document.createElement);function M(e,t,{checkForDefaultPrevented:n=!0}={}){return O(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function D(e){if(!P)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function I(e){return"IFRAME"===e.tagName}O(M,"composeEventHandlers"),O(function(e){if(!P)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),O(D,"getOwnerDocument"),O(function e(t,n=!1){let{activeElement:r}=D(t);if(!r?.nodeName)return null;if(I(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=D(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),O(I,"isFrame");var T=Object.defineProperty,L=(e,t)=>T(e,"name",{value:t,configurable:!0});function _(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function F(...e){return t=>{let n=!1,r=e.map(e=>{let r=_(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():_(e[t],null)}}}}function B(...e){return w.useCallback(F(...e),e)}L(_,"setRef"),L(F,"composeRefs"),L(B,"useComposedRefs");var $=Object.defineProperty,z=(e,t)=>$(e,"name",{value:t,configurable:!0});function W(e,t=[]){let n=[];function r(t,r){let o=w.createContext(r);o.displayName=t+"Context";let a=n.length;n=[...n,r];let i=z(t=>{let{scope:n,children:r,...i}=t,l=n?.[e]?.[a]||o,s=w.useMemo(()=>i,Object.values(i));return(0,c.jsx)(l.Provider,{value:s,children:r})},"Provider");function l(n,i,s={}){let{optional:c=!1}=s,u=i?.[e]?.[a]||o,d=w.useContext(u);if(d)return d;if(void 0!==r)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return i.displayName=t+"Provider",z(l,"useContext"),[i,l]}z(r,"createContext");let o=z(()=>{let t=n.map(e=>w.createContext(e));return z(function(n){let r=n?.[e]||t;return w.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},"useScope")},"createScope");return o.scopeName=e,[r,K(o,...t)]}function K(...e){let t=e[0];if(1===e.length)return t;let n=z(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return z(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}z(function(e,t){let n=w.createContext(t);n.displayName=e+"Context";let r=z(e=>{let{children:t,...r}=e,o=w.useMemo(()=>r,Object.values(r));return(0,c.jsx)(n.Provider,{value:o,children:t})},"Provider");function o(r,a={}){let{optional:i=!1}=a,l=w.useContext(n);if(l)return l;if(void 0!==t)return t;if(!i)throw Error(`\`${r}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",z(o,"useContext"),[r,o]},"createContext"),z(W,"createContextScope"),z(K,"composeContextScopes");var U=globalThis?.document?w.useLayoutEffect:()=>{},V=Object.defineProperty,q=w[" useId ".trim().toString()]||(()=>void 0),H=0;function X(e){let[t,n]=w.useState(q());return U(()=>{e||n(e=>e??String(H++))},[e]),e||(t?`radix-${t}`:"")}V(X,"name",{value:"useId",configurable:!0});var Y=Object.defineProperty,G=w[" useEffectEvent ".trim().toString()],Z=w[" useInsertionEffect ".trim().toString()];function J(e){if("function"==typeof G)return G(e);let t=w.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof Z?Z(()=>{t.current=e}):U(()=>{t.current=e}),w.useMemo(()=>(...e)=>t.current?.(...e),[])}Y(J,"name",{value:"useEffectEvent",configurable:!0});var Q=Object.defineProperty,ee=(e,t)=>Q(e,"name",{value:t,configurable:!0}),et=w[" useInsertionEffect ".trim().toString()]||U;function en({prop:e,defaultProp:t,onChange:n=ee(()=>{},"onChange"),caller:r}){let[o,a,i]=er({defaultProp:t,onChange:n}),l=void 0!==e,s=l?e:o;return[s,w.useCallback(t=>{if(l){let n=eo(t)?t(e):t;n!==e&&i.current?.(n)}else a(t)},[l,e,a,i])]}function er({defaultProp:e,onChange:t}){let[n,r]=w.useState(e),o=w.useRef(n),a=w.useRef(t);return et(()=>{a.current=t},[t]),w.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function eo(e){return"function"==typeof e}ee(en,"useControllableState"),ee(er,"useUncontrolledState"),ee(eo,"isFunction");var ea=Symbol("RADIX:SYNC_STATE");ee(function(e,t,n,r){let{prop:o,defaultProp:a,onChange:i,caller:l}=t,s=void 0!==o,c=J(i),u=[{...n,state:a}];r&&u.push(r);let[d,f]=w.useReducer((t,n)=>{if(n.type===ea)return{...t,state:n.state};let r=e(t,n);return s&&!Object.is(r.state,t.state)&&c(r.state),r},...u),m=d.state,p=w.useRef(m);w.useEffect(()=>{p.current!==m&&(p.current=m,s||c(m))},[m,p,s]);let h=w.useMemo(()=>void 0!==o?{...d,state:o}:d,[d,o]);return w.useEffect(()=>{s&&!Object.is(o,d.state)&&f({type:ea,state:o})},[o,d.state,s]),[h,f]},"useControllableStateReducer");var ei=e.i(174080),el=Object.defineProperty,es=(e,t)=>el(e,"name",{value:t,configurable:!0});function ec(e){let t=w.forwardRef((t,n)=>{let{children:r,...o}=t,a=null,i=!1,l=[];ev(r)&&"function"==typeof ey&&(r=ey(r._payload)),w.Children.forEach(r,e=>{if(ep(e)){i=!0;let t="child"in e.props?e.props.child:e.props.children;ev(t)&&"function"==typeof ey&&(t=ey(t._payload)),a=ed(e,t),l.push(a?.props?.children)}else l.push(e)}),a?a=w.cloneElement(a,void 0,l):!i&&1===w.Children.count(r)&&w.isValidElement(r)&&(a=r);let s=a?em(a):void 0,c=B(n,s);if(!a){if(r||0===r)throw Error(i?eb(e):ex(e));return r}let u=ef(o,a.props??{});return a.type!==w.Fragment&&(u.ref=n?c:s),w.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}es(ec,"createSlot");var eu=Symbol.for("radix.slottable");es(function(e){let t=es(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=eu,t},"createSlottable");var ed=es((e,t)=>{if("child"in e.props){let t=e.props.child;return w.isValidElement(t)?w.cloneElement(t,void 0,e.props.children(t.props.children)):null}return w.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function ef(e,t){let n={...t};for(let r in t){let o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{let t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function em(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function ep(e){return w.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eu}es(ef,"mergeProps"),es(em,"getElementRef"),es(ep,"isSlottable");var eh=Symbol.for("react.lazy");function ev(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===eh&&"_payload"in e&&eg(e._payload)}function eg(e){return"object"==typeof e&&null!==e&&"then"in e}es(ev,"isLazyComponent"),es(eg,"isPromiseLike");var ex=es(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),eb=es(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),ey=w[" use ".trim().toString()],ew=Object.defineProperty,eE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=ec(`Primitive.${t}`),r=w.forwardRef((e,r)=>{let{asChild:o,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,c.jsx)(o?n:t,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ej(e,t){e&&ei.flushSync(()=>e.dispatchEvent(t))}function ek(e){let t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...e)=>t.current?.(...e),[])}ew(ej,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),(0,Object.defineProperty)(ek,"name",{value:"useCallbackRef",configurable:!0});var eS=Object.defineProperty,eN=(e,t)=>eS(e,"name",{value:t,configurable:!0}),eC="dismissableLayer.update",eA=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),eR=w.forwardRef(eN(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:u,...d}=e,f=w.useContext(eA),[m,p]=w.useState(null),h=m?.ownerDocument??globalThis?.document,[,v]=w.useState({}),g=B(t,p),x=Array.from(f.layers),[b]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=b?x.indexOf(b):-1,E=m?x.indexOf(m):-1,j=f.layersWithOutsidePointerEventsDisabled.size>0,k=E>=y,S=w.useRef(!1),N=eM(e=>{a?.(e),s?.(e),e.defaultPrevented||u?.()},{ownerDocument:h,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:w.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...f.branches].some(t=>t.contains(e));return k&&!t},[f.branches,k])}),C=eD(e=>{if(r&&S.current)return;let t=e.target;![...f.branches].some(e=>e.contains(t))&&(i?.(e),s?.(e),e.defaultPrevented||u?.())},h),A=!!m&&E===x.length-1,R=ek(e=>{"Escape"===e.key&&(o?.(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))});return w.useEffect(()=>{if(A)return h.addEventListener("keydown",R,{capture:!0}),()=>h.removeEventListener("keydown",R,{capture:!0})},[h,A,R]),w.useEffect(()=>{if(m)return n&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(l=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(m)),f.layers.add(m),eI(),()=>{n&&(f.layersWithOutsidePointerEventsDisabled.delete(m),0===f.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=l))}},[m,h,n,f]),w.useEffect(()=>()=>{m&&(f.layers.delete(m),f.layersWithOutsidePointerEventsDisabled.delete(m),eI())},[m,f]),w.useEffect(()=>{let e=eN(()=>v({}),"handleUpdate");return document.addEventListener(eC,e),()=>document.removeEventListener(eC,e)},[]),(0,c.jsx)(eE.div,{...d,ref:g,style:{pointerEvents:j?k?"auto":"none":void 0,...e.style},onFocusCapture:M(e.onFocusCapture,C.onFocusCapture),onBlurCapture:M(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:M(e.onPointerDownCapture,N.onPointerDownCapture)})},"DismissableLayer"));function eO(){let e=w.useContext(eA),[t,n]=w.useState(null);return w.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}eN(eO,"useDismissableLayerSurface");var eP=eN(()=>!0,"IS_TRUE");function eM(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:a,shouldHandlePointerDownOutside:i=eP}=t,l=ek(e),s=w.useRef(!1),c=w.useRef(!1),u=w.useRef(new Map),d=w.useRef(()=>{});return w.useEffect(()=>{function e(){c.current=!1,o.current=!1,u.current.clear()}function t(){return Array.from(u.current.values()).some(Boolean)}function f(e){if(!c.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{c.current&&d.current()},0)}function m(e){c.current&&u.current.set(e.type,!1)}eN(e,"resetOutsideInteraction"),eN(t,"isOutsideInteractionIntercepted"),eN(f,"handleInteractionCapture"),eN(m,"handleInteractionBubble");let p=eN(a=>{if(a.target&&!s.current){let f=function(){n.removeEventListener("click",d.current);let r=t();e(),r||eT("dismissableLayer.pointerDownOutside",l,m,{discrete:!0})};if(eN(f,"handleAndDispatchPointerDownOutsideEvent"),!i(a.target)){n.removeEventListener("click",d.current),e(),s.current=!1;return}let m={originalEvent:a};c.current=!0,o.current=r&&0===a.button,u.current.clear(),r&&0===a.button?(n.removeEventListener("click",d.current),d.current=f,n.addEventListener("click",d.current,{once:!0})):f()}else n.removeEventListener("click",d.current),e();s.current=!1},"handlePointerDown"),h=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,m);let v=window.setTimeout(()=>{n.addEventListener("pointerdown",p)},0);return()=>{for(let e of(window.clearTimeout(v),n.removeEventListener("pointerdown",p),n.removeEventListener("click",d.current),h))n.removeEventListener(e,f,!0),n.removeEventListener(e,m)}},[n,l,r,o,a,i]),{onPointerDownCapture:eN(()=>s.current=!0,"onPointerDownCapture")}}function eD(e,t=globalThis?.document){let n=ek(e),r=w.useRef(!1);return w.useEffect(()=>{let e=eN(e=>{e.target&&!r.current&&eT("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:eN(()=>r.current=!0,"onFocusCapture"),onBlurCapture:eN(()=>r.current=!1,"onBlurCapture")}}function eI(){let e=new CustomEvent(eC);document.dispatchEvent(e)}function eT(e,t,n,{discrete:r}){let o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ej(o,a):o.dispatchEvent(a)}eN(eM,"usePointerDownOutside"),eN(eD,"useFocusOutside"),eN(eI,"dispatchUpdate"),eN(eT,"handleAndDispatchCustomEvent");var eL=Object.defineProperty,e_=(e,t)=>eL(e,"name",{value:t,configurable:!0}),eF="focusScope.autoFocusOnMount",eB="focusScope.autoFocusOnUnmount",e$={bubbles:!1,cancelable:!0},ez=w.forwardRef(e_(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,s]=w.useState(null),u=ek(o),d=ek(a),f=w.useRef(null),m=B(t,s),p=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(r){let e=function(e){if(p.paused||!l)return;let t=e.target;l.contains(t)?f.current=t:eX(f.current,{select:!0})},t=function(e){if(p.paused||!l)return;let t=e.relatedTarget;null!==t&&(l.contains(t)||eX(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&eX(l)};e_(e,"handleFocusIn"),e_(t,"handleFocusOut"),e_(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,l,p.paused]),w.useEffect(()=>{if(l){eY.add(p);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(eF,e$);l.addEventListener(eF,u),l.dispatchEvent(t),t.defaultPrevented||(eW(eJ(eU(l)),{select:!0}),document.activeElement===e&&eX(l))}return()=>{l.removeEventListener(eF,u),setTimeout(()=>{let t=new CustomEvent(eB,e$);l.addEventListener(eB,d),l.dispatchEvent(t),t.defaultPrevented||eX(e??document.body,{select:!0}),l.removeEventListener(eB,d),eY.remove(p)},0)}}},[l,u,d,p]);let h=w.useCallback(e=>{if(!n&&!r||p.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,a]=eK(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&eX(a,{select:!0})):(e.preventDefault(),n&&eX(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,p.paused]);return(0,c.jsx)(eE.div,{tabIndex:-1,...i,ref:m,onKeyDown:h})},"FocusScope"));function eW(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(eX(r,{select:t}),document.activeElement!==n)return}function eK(e){let t=eU(e);return[eV(t,e),eV(t.reverse(),e)]}function eU(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e_(e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function eV(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):eq(r,{upTo:t})))return r}function eq(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function eH(e){return e instanceof HTMLInputElement&&"select"in e}function eX(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&eH(e)&&t&&e.select()}}e_(eW,"focusFirst"),e_(eK,"getTabbableEdges"),e_(eU,"getTabbableCandidates"),e_(eV,"findVisible"),e_(eq,"isHidden"),e_(eH,"isSelectableInput"),e_(eX,"focus");var eY=eG();function eG(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=eZ(e,t)).unshift(t)},remove(t){e=eZ(e,t),e[0]?.resume()}}}function eZ(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function eJ(e){return e.filter(e=>"A"!==e.tagName)}e_(eG,"createFocusScopesStack"),e_(eZ,"arrayRemove"),e_(eJ,"removeLinks");var eQ=Object.defineProperty,e0=w.forwardRef(eQ(function(e,t){let{container:n,...r}=e,[o,a]=w.useState(!1);U(()=>a(!0),[]);let i=n||o&&globalThis?.document?.body;return i?ei.createPortal((0,c.jsx)(eE.div,{...r,ref:t}),i):null},"name",{value:"Portal",configurable:!0})),e1=Object.defineProperty,e2=(e,t)=>e1(e,"name",{value:t,configurable:!0});function e3(e,t){return w.useReducer((e,n)=>t[e][n]??e,e)}e2(e3,"useStateMachine");var e5=e2(e=>{let{present:t,children:n}=e,r=e6(t),o="function"==typeof n?n({present:r.isPresent}):w.Children.only(n),a=e4(r.ref,e7(o));return"function"==typeof n||r.isPresent?w.cloneElement(o,{ref:a}):null},"Presence");function e6(e){let[t,n]=w.useState(),r=w.useRef(null),o=w.useRef(e),a=w.useRef("none"),i=w.useRef(void 0),[l,s]=e3(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{"mounted"===l?(a.current=i.current??e8(r.current),i.current=void 0):a.current="none"},[l]),U(()=>{let t=r.current,n=o.current;if(n!==e){let r=a.current,l=e8(t);e?(i.current=l,s("MOUNT")):"none"===l||t?.display==="none"?s("UNMOUNT"):n&&r!==l?s("ANIMATION_OUT"):s("UNMOUNT"),o.current=e}},[e,s]),U(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,i=e2(a=>{let i=e8(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&i&&(s("ANIMATION_END"),!o.current)){let r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},"handleAnimationEnd"),l=e2(e=>{e.target===t&&(a.current=e8(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",l),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",l),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:w.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,i.current=e8(t)}else r.current=null;n(e)},[])}}function e9(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function e4(...e){let t=w.useRef(e);return t.current=e,w.useCallback(e=>{let n=t.current,r=!1,o=n.map(t=>{let n=e9(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<o.length;e++){let t=o[e];"function"==typeof t?t():e9(n[e],null)}}},[])}function e8(e){return e?.animationName||"none"}function e7(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}e2(e6,"usePresence"),e2(e9,"setRef"),e2(e4,"useStableComposedRefs"),e2(e8,"getAnimationName"),e2(e7,"getElementRef");var te=Object.defineProperty,tt=(e,t)=>te(e,"name",{value:t,configurable:!0}),tn=0,tr=null;function to(){w.useEffect(()=>{tr||(tr={start:ta(),end:ta()});let{start:e,end:t}=tr;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),tn++,()=>{1===tn&&(tr?.start.remove(),tr?.end.remove(),tr=null),tn=Math.max(0,tn-1)}},[])}function ta(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}tt(function(e){return to(),e.children},"FocusGuards"),tt(to,"useFocusGuards"),tt(ta,"createFocusGuard");var ti=function(){return(ti=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function tl(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var ts=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),tc="width-before-scroll-bar";function tu(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var td="u">typeof window?w.useLayoutEffect:w.useEffect,tf=new WeakMap,tm=(void 0===t&&(t={}),(void 0===n&&(n=function(e){return e}),r=[],o=!1,a={read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var t=n(e,o);return r.push(t),function(){r=r.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){o=!0;var t=[];if(r.length){var n=r;r=[],n.forEach(e),t=r}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),r={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),r}}}}).options=ti({async:!0,ssr:!1},t),a),tp=function(){},th=w.forwardRef(function(e,t){var n,r,o,a,i=w.useRef(null),l=w.useState({onScrollCapture:tp,onWheelCapture:tp,onTouchMoveCapture:tp}),s=l[0],c=l[1],u=e.forwardProps,d=e.children,f=e.className,m=e.removeScrollBar,p=e.enabled,h=e.shards,v=e.sideCar,g=e.noRelative,x=e.noIsolation,b=e.inert,y=e.allowPinchZoom,E=e.as,j=e.gapMode,k=tl(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=(n=[i,t],r=function(e){return n.forEach(function(t){return tu(t,e)})},(o=(0,w.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,a=o.facade,td(function(){var e=tf.get(a);if(e){var t=new Set(e),r=new Set(n),o=a.current;t.forEach(function(e){r.has(e)||tu(e,null)}),r.forEach(function(e){t.has(e)||tu(e,o)})}tf.set(a,n)},[n]),a),N=ti(ti({},k),s);return w.createElement(w.Fragment,null,p&&w.createElement(v,{sideCar:tm,removeScrollBar:m,shards:h,noRelative:g,noIsolation:x,inert:b,setCallbacks:c,allowPinchZoom:!!y,lockRef:i,gapMode:j}),u?w.cloneElement(w.Children.only(d),ti(ti({},N),{ref:S})):w.createElement(void 0===E?"div":E,ti({},N,{className:f,ref:S}),d))});th.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},th.classNames={fullWidth:tc,zeroRight:ts};var tv=function(e){var t=e.sideCar,n=tl(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return w.createElement(r,ti({},n))};tv.isSideCarExport=!0;var tg=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=s||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},tx=function(){var e=tg();return function(t,n){w.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},tb=function(){var e=tx();return function(t){return e(t.styles,t.dynamic),null}},ty={left:0,top:0,right:0,gap:0},tw=function(e){return parseInt(e||"",10)||0},tE=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[tw(n),tw(r),tw(o)]},tj=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return ty;var t=tE(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tk=tb(),tS="data-scroll-locked",tN=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body[").concat(tS,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ts," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(tc," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(ts," .").concat(ts," {\n right: 0 ").concat(r,";\n }\n \n .").concat(tc," .").concat(tc," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(tS,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},tC=function(){var e=parseInt(document.body.getAttribute(tS)||"0",10);return isFinite(e)?e:0},tA=function(){w.useEffect(function(){return document.body.setAttribute(tS,(tC()+1).toString()),function(){var e=tC()-1;e<=0?document.body.removeAttribute(tS):document.body.setAttribute(tS,e.toString())}},[])},tR=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;tA();var a=w.useMemo(function(){return tj(o)},[o]);return w.createElement(tk,{styles:tN(a,!t,o,n?"":"!important")})},tO=!1;if("u">typeof window)try{var tP=Object.defineProperty({},"passive",{get:function(){return tO=!0,!0}});window.addEventListener("test",tP,tP),window.removeEventListener("test",tP,tP)}catch(e){tO=!1}var tM=!!tO&&{passive:!1},tD=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},tI=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),tT(e,r)){var o=tL(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body)return!1},tT=function(e,t){return"v"===e?tD(t,"overflowY"):tD(t,"overflowX")},tL=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},t_=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),l=i*r,s=n.target,c=t.contains(s),u=!1,d=l>0,f=0,m=0;do{if(!s)break;var p=tL(e,s),h=p[0],v=p[1]-p[2]-i*h;(h||v)&&tT(e,s)&&(f+=v,m+=h);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s))return d&&(o&&1>Math.abs(f)||!o&&l>f)?u=!0:!d&&(o&&1>Math.abs(m)||!o&&-l>m)&&(u=!0),u},tF=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tB=function(e){return[e.deltaX,e.deltaY]},t$=function(e){return e&&"current"in e?e.current:e},tz=0,tW=[];let tK=(i=function(e){var t=w.useRef([]),n=w.useRef([0,0]),r=w.useRef(),o=w.useState(tz++)[0],a=w.useState(tb)[0],i=w.useRef(e);w.useEffect(function(){i.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(t$),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=w.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=tF(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-a[0],c="deltaY"in e?e.deltaY:l[1]-a[1],u=e.target,d=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),m=f&&f.anchorNode;if(m&&(m===u||m.contains(u)))return!1;var p=tI(d,u);if(!p)return!0;if(p?o=d:(o="v"===d?"h":"v",p=tI(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(s||c)&&(r.current=o),!o)return!0;var h=r.current||o;return t_(h,t,e,"h"===h?s:c,!0)},[]),s=w.useCallback(function(e){if(tW.length&&tW[tW.length-1]===a){var n="deltaY"in e?tB(e):tF(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(i.current.shards||[]).map(t$).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=w.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=w.useCallback(function(e){n.current=tF(e),r.current=void 0},[]),d=w.useCallback(function(t){c(t.type,tB(t),t.target,l(t,e.lockRef.current))},[]),f=w.useCallback(function(t){c(t.type,tF(t),t.target,l(t,e.lockRef.current))},[]);w.useEffect(function(){return tW.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",s,tM),document.addEventListener("touchmove",s,tM),document.addEventListener("touchstart",u,tM),function(){tW=tW.filter(function(e){return e!==a}),document.removeEventListener("wheel",s,tM),document.removeEventListener("touchmove",s,tM),document.removeEventListener("touchstart",u,tM)}},[]);var m=e.removeScrollBar,p=e.inert;return w.createElement(w.Fragment,null,p?w.createElement(a,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?w.createElement(tR,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},tm.useMedium(i),tv);var tU=w.forwardRef(function(e,t){return w.createElement(th,ti({},e,{ref:t,sideCar:tK}))});tU.classNames=th.classNames;var tV=new WeakMap,tq=new WeakMap,tH={},tX=0,tY=function(e){return e&&(e.host||tY(e.parentNode))},tG=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=tY(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});tH[n]||(tH[n]=new WeakMap);var a=tH[n],i=[],l=new Set,s=new Set(o),c=function(e){!e||l.has(e)||(l.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(tV.get(e)||0)+1,c=(a.get(e)||0)+1;tV.set(e,s),a.set(e,c),i.push(e),1===s&&o&&tq.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),l.clear(),tX++,function(){i.forEach(function(e){var t=tV.get(e)-1,o=a.get(e)-1;tV.set(e,t),a.set(e,o),t||(tq.has(e)||e.removeAttribute(r),tq.delete(e)),o||e.removeAttribute(n)}),--tX||(tV=new WeakMap,tV=new WeakMap,tq=new WeakMap,tH={})}},tZ=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),tG(r,o,n,"aria-hidden")):function(){return null}},tJ=Object.defineProperty,tQ=(e,t)=>tJ(e,"name",{value:t,configurable:!0}),t0="Dialog",[t1,t2]=W(t0),[t3,t5]=t1(t0),t6=tQ(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,l=w.useRef(null),s=w.useRef(null),[u,d]=en({prop:r,defaultProp:o??!1,onChange:a,caller:t0}),[f,m]=w.useState(0),[p,h]=w.useState(0);return(0,c.jsx)(t3,{scope:t,triggerRef:l,contentRef:s,contentId:X(),titleId:X(),descriptionId:X(),titlePresent:f>0,descriptionPresent:p>0,setTitleCount:m,setDescriptionCount:h,open:u,onOpenChange:d,onOpenToggle:w.useCallback(()=>d(e=>!e),[d]),modal:i,children:n})},"Dialog"),t9="DialogPortal",[t4,t8]=t1(t9,{forceMount:void 0}),t7=tQ(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=t5(t9,t);return(0,c.jsx)(t4,{scope:t,forceMount:n,children:w.Children.map(r,e=>(0,c.jsx)(e5,{present:n||a.open,children:(0,c.jsx)(e0,{asChild:!0,container:o,children:e})}))})},"DialogPortal"),ne="DialogOverlay",nt=w.forwardRef(tQ(function(e,t){let n=t8(ne,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=t5(ne,e.__scopeDialog);return a.modal?(0,c.jsx)(e5,{present:r||a.open,children:(0,c.jsx)(nr,{...o,ref:t})}):null},"DialogOverlay")),nn=ec("DialogOverlay.RemoveScroll"),nr=w.forwardRef(tQ(function(e,t){let{__scopeDialog:n,...r}=e,o=t5(ne,n),a=B(t,eO());return(0,c.jsx)(tU,{as:nn,allowPinchZoom:!0,shards:[o.contentRef],children:(0,c.jsx)(eE.div,{"data-state":nc(o.open),...r,ref:a,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),no="DialogContent",na=w.forwardRef(tQ(function(e,t){let n=t8(no,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=t5(no,e.__scopeDialog);return(0,c.jsx)(e5,{present:r||a.open,children:a.modal?(0,c.jsx)(ni,{...o,ref:t}):(0,c.jsx)(nl,{...o,ref:t})})},"DialogContent")),ni=w.forwardRef(tQ(function(e,t){let n=t5(no,e.__scopeDialog),r=w.useRef(null),o=B(t,n.contentRef,r);return w.useEffect(()=>{let e=r.current;if(e)return tZ(e)},[]),(0,c.jsx)(ns,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:M(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:M(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:M(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),nl=w.forwardRef(tQ(function(e,t){let n=t5(no,e.__scopeDialog),r=w.useRef(!1),o=w.useRef(!1);return(0,c.jsx)(ns,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})},"DialogContentNonModal")),ns=w.forwardRef(tQ(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,l=t5(no,n);return to(),(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(ez,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,c.jsx)(eR,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionPresent?l.descriptionId:void 0,"aria-labelledby":l.titlePresent?l.titleId:void 0,"data-state":nc(l.open),...i,ref:t,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1)})})})},"DialogContentImpl"));function nc(e){return e?"open":"closed"}tQ(nc,"getState");var nu='[cmdk-group=""]',nd='[cmdk-group-items=""]',nf='[cmdk-item=""]',nm=`${nf}:not([aria-disabled="true"])`,np="cmdk-item-select",nh="data-value",nv=(e,t,n)=>{var r;return r=e,function e(t,n,r,o,a,i,l){if(i===n.length)return a===t.length?1:.99;var s=`${a},${i}`;if(void 0!==l[s])return l[s];for(var c,u,d,f,m=o.charAt(i),p=r.indexOf(m,a),h=0;p>=0;)(c=e(t,n,r,o,p+1,i+1,l))>h&&(p===a?c*=1:k.test(t.charAt(p-1))?(c*=.8,(d=t.slice(a,p-1).match(S))&&a>0&&(c*=Math.pow(.999,d.length))):N.test(t.charAt(p-1))?(c*=.9,(f=t.slice(a,p-1).match(C))&&a>0&&(c*=Math.pow(.999,f.length))):(c*=.17,a>0&&(c*=Math.pow(.999,p-a))),t.charAt(p)!==n.charAt(i)&&(c*=.9999)),(c<.1&&r.charAt(p-1)===o.charAt(i+1)||o.charAt(i+1)===o.charAt(i)&&r.charAt(p-1)!==o.charAt(i))&&.1*(u=e(t,n,r,o,p+1,i+2,l))>c&&(c=.1*u),c>h&&(h=c),p=r.indexOf(m,p+1);return l[s]=h,h}(r=n&&n.length>0?`${r+" "+n.join(" ")}`:r,t,A(r),A(t),0,0,{})},ng=w.createContext(void 0),nx=w.createContext(void 0),nb=w.createContext(void 0),ny=w.forwardRef((e,t)=>{let n=nO(()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=nO(()=>new Set),o=nO(()=>new Map),a=nO(()=>new Map),i=nO(()=>new Set),l=nA(e),{label:s,children:c,value:u,onValueChange:d,filter:f,shouldFilter:m,loop:p,disablePointerSelection:h=!1,vimBindings:v=!0,...g}=e,x=X(),b=X(),y=X(),E=w.useRef(null),j=nD();nR(()=>{if(void 0!==u){let e=u.trim();n.current.value=e,k.emit()}},[u]),nR(()=>{j(6,O)},[]);let k=w.useMemo(()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,a,i,s;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)R(),C(),j(1,A);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(y);e?e.focus():null==(o=document.getElementById(x))||o.focus()}if(j(7,()=>{var e;n.current.selectedItemId=null==(e=P())?void 0:e.id,k.emit()}),r||j(5,O),(null==(a=l.current)?void 0:a.value)!==void 0){null==(s=(i=l.current).onValueChange)||s.call(i,null!=t?t:"");return}}k.emit()}},emit:()=>{i.current.forEach(e=>e())}}),[]),S=w.useMemo(()=>({value:(e,t,r)=>{var o;t!==(null==(o=a.current.get(e))?void 0:o.value)&&(a.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,N(t,r)),j(2,()=>{C(),k.emit()}))},item:(e,t)=>(r.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),j(3,()=>{R(),C(),n.current.value||A(),k.emit()}),()=>{a.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=P();j(4,()=>{R(),(null==t?void 0:t.getAttribute("id"))===e&&A(),k.emit()})}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{a.current.delete(e),o.current.delete(e)}),filter:()=>l.current.shouldFilter,label:s||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:x,inputId:y,labelId:b,listInnerRef:E}),[]);function N(e,t){var r,o;let a=null!=(o=null==(r=l.current)?void 0:r.filter)?o:nv;return e?a(e,n.current.search,t):0}function C(){if(!n.current.search||!1===l.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=o.current.get(n),a=0;r.forEach(t=>{a=Math.max(e.get(t),a)}),t.push([n,a])});let r=E.current;M().sort((t,n)=>{var r,o;let a=t.getAttribute("id"),i=n.getAttribute("id");return(null!=(r=e.get(i))?r:0)-(null!=(o=e.get(a))?o:0)}).forEach(e=>{let t=e.closest(nd);t?t.appendChild(e.parentElement===t?e:e.closest(`${nd} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${nd} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let n=null==(t=E.current)?void 0:t.querySelector(`${nu}[${nh}="${encodeURIComponent(e[0])}"]`);null==n||n.parentElement.appendChild(n)})}function A(){let e=M().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(nh);k.setState("value",t||void 0)}function R(){var e,t,i,s;if(!n.current.search||!1===l.current.shouldFilter){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let c=0;for(let o of r.current){let r=N(null!=(t=null==(e=a.current.get(o))?void 0:e.value)?t:"",null!=(s=null==(i=a.current.get(o))?void 0:i.keywords)?s:[]);n.current.filtered.items.set(o,r),r>0&&c++}for(let[e,t]of o.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=c}function O(){var e,t,n;let r=P();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(nu))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function P(){var e;return null==(e=E.current)?void 0:e.querySelector(`${nf}[aria-selected="true"]`)}function M(){var e;return Array.from((null==(e=E.current)?void 0:e.querySelectorAll(nm))||[])}function D(e){let t=M()[e];t&&k.setState("value",t.getAttribute(nh))}function I(e){var t;let n=P(),r=M(),o=r.findIndex(e=>e===n),a=r[o+e];null!=(t=l.current)&&t.loop&&(a=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),a&&k.setState("value",a.getAttribute(nh))}function T(e){let t=P(),n=null==t?void 0:t.closest(nu),r;for(;n&&!r;)r=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,nu):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,nu))?void 0:n.querySelector(nm);r?k.setState("value",r.getAttribute(nh)):I(e)}let L=()=>D(M().length-1),_=e=>{e.preventDefault(),e.metaKey?L():e.altKey?T(1):I(1)},F=e=>{e.preventDefault(),e.metaKey?D(0):e.altKey?T(-1):I(-1)};return w.createElement(eE.div,{ref:t,tabIndex:-1,...g,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=g.onKeyDown)||t.call(g,e);let n=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||n))switch(e.key){case"n":case"j":v&&e.ctrlKey&&_(e);break;case"ArrowDown":_(e);break;case"p":case"k":v&&e.ctrlKey&&F(e);break;case"ArrowUp":F(e);break;case"Home":e.preventDefault(),D(0);break;case"End":e.preventDefault(),L();break;case"Enter":{e.preventDefault();let t=P();if(t){let e=new Event(np);t.dispatchEvent(e)}}}}},w.createElement("label",{"cmdk-label":"",htmlFor:S.inputId,id:S.labelId,style:nT},s),nI(e,e=>w.createElement(nx.Provider,{value:k},w.createElement(ng.Provider,{value:S},e))))}),nw=w.forwardRef((e,t)=>{var n,r;let o=X(),a=w.useRef(null),i=w.useContext(nb),l=w.useContext(ng),s=nA(e),c=null!=(r=null==(n=s.current)?void 0:n.forceMount)?r:null==i?void 0:i.forceMount;nR(()=>{if(!c)return l.item(o,null==i?void 0:i.id)},[c]);let u=nM(o,a,[e.value,e.children,a],e.keywords),d=w.useContext(nx),f=nP(e=>e.value&&e.value===u.current),m=nP(e=>!!c||!1===l.filter()||!e.search||e.filtered.items.get(o)>0);function p(){var e,t;h(),null==(t=(e=s.current).onSelect)||t.call(e,u.current)}function h(){d.setState("value",u.current,!0)}if(w.useEffect(()=>{let t=a.current;if(!(!t||e.disabled))return t.addEventListener(np,p),()=>t.removeEventListener(np,p)},[m,e.onSelect,e.disabled]),!m)return null;let{disabled:v,value:g,onSelect:x,forceMount:b,keywords:y,...E}=e;return w.createElement(eE.div,{ref:F(a,t),...E,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!f,"data-disabled":!!v,"data-selected":!!f,onPointerMove:v||l.getDisablePointerSelection()?void 0:h,onClick:v?void 0:p},e.children)}),nE=w.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,i=X(),l=w.useRef(null),s=w.useRef(null),c=X(),u=w.useContext(ng),d=nP(e=>!!o||!1===u.filter()||!e.search||e.filtered.groups.has(i));nR(()=>u.group(i),[]),nM(i,l,[e.value,e.heading,s]);let f=w.useMemo(()=>({id:i,forceMount:o}),[o]);return w.createElement(eE.div,{ref:F(l,t),...a,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&w.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),nI(e,e=>w.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},w.createElement(nb.Provider,{value:f},e))))}),nj=w.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=w.useRef(null),a=nP(e=>!e.search);return n||a?w.createElement(eE.div,{ref:F(o,t),...r,"cmdk-separator":"",role:"separator"}):null}),nk=w.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=w.useContext(nx),i=nP(e=>e.search),l=nP(e=>e.selectedItemId),s=w.useContext(ng);return w.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),w.createElement(eE.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":s.listId,"aria-labelledby":s.labelId,"aria-activedescendant":l,id:s.inputId,type:"text",value:o?e.value:i,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),nS=w.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=w.useRef(null),i=w.useRef(null),l=nP(e=>e.selectedItemId),s=w.useContext(ng);return w.useEffect(()=>{if(i.current&&a.current){let e=i.current,t=a.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),w.createElement(eE.div,{ref:F(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":r,id:s.listId},nI(e,e=>w.createElement("div",{ref:F(i,s.listInnerRef),"cmdk-list-sizer":""},e)))}),nN=w.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:i,...l}=e;return w.createElement(t6,{open:n,onOpenChange:r},w.createElement(t7,{container:i},w.createElement(nt,{"cmdk-overlay":"",className:o}),w.createElement(na,{"aria-label":e.label,"cmdk-dialog":"",className:a},w.createElement(ny,{ref:t,...l}))))}),nC=Object.assign(ny,{List:nS,Item:nw,Input:nk,Group:nE,Separator:nj,Dialog:nN,Empty:w.forwardRef((e,t)=>nP(e=>0===e.filtered.count)?w.createElement(eE.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:w.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return w.createElement(eE.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},nI(e,e=>w.createElement("div",{"aria-hidden":!0},e)))})});function nA(e){let t=w.useRef(e);return nR(()=>{t.current=e}),t}var nR="u"<typeof window?w.useEffect:w.useLayoutEffect;function nO(e){let t=w.useRef();return void 0===t.current&&(t.current=e()),t}function nP(e){let t=w.useContext(nx),n=()=>e(t.snapshot());return w.useSyncExternalStore(t.subscribe,n,n)}function nM(e,t,n,r=[]){let o=w.useRef(),a=w.useContext(ng);return nR(()=>{var i;let l=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),s=r.map(e=>e.trim());a.value(e,l,s),null==(i=t.current)||i.setAttribute(nh,l),o.current=l}),o}var nD=()=>{let[e,t]=w.useState(),n=nO(()=>new Map);return nR(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function nI({asChild:e,children:t},n){let r;return e&&w.isValidElement(t)?w.cloneElement("function"==typeof(r=t.type)?r(t.props):"render"in r?r.render(t.props):t,{ref:t.ref},n(t.props.children)):n(t)}var nT={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},nL=e.i(593698),n_=e.i(630299),n_=n_;e.i(630374);var nF=e.i(225913),nB=e.i(23750),n$=e.i(184762),nz=e.i(647163);function nW({className:e,...t}){return(0,c.jsx)("div",{"data-slot":"input-group",role:"group",className:(0,nz.cn)("group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",e),...t})}let nK=(0,nF.cva)("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]","inline-end":"order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]","block-start":"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2","block-end":"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"}},defaultVariants:{align:"inline-start"}});function nU({className:e,align:t="inline-start",...n}){return(0,c.jsx)("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:(0,nz.cn)(nK({align:t}),e),onClick:e=>{e.target.closest("button")||e.currentTarget.parentElement?.querySelector("input")?.focus()},...n})}function nV({className:e,...t}){return(0,c.jsx)("span",{className:(0,nz.cn)("flex items-center gap-2 text-sm text-muted-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",e),...t})}function nq({className:e,...t}){return(0,c.jsx)(nB.Input,{"data-slot":"input-group-control",className:(0,nz.cn)("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent",e),...t})}function nH({className:e,...t}){return(0,c.jsx)(nC,{"data-slot":"command",className:(0,nz.cn)("flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground",e),...t})}function nX({className:e,...t}){return(0,c.jsx)("div",{"data-slot":"command-input-wrapper",className:"p-1 pb-0",children:(0,c.jsxs)(nW,{className:"h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!",children:[(0,c.jsx)(nC.Input,{"data-slot":"command-input",className:(0,nz.cn)("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t}),(0,c.jsx)(nU,{children:(0,c.jsx)(n_.default,{className:"size-4 shrink-0 opacity-50"})})]})})}function nY({className:e,...t}){return(0,c.jsx)(nC.List,{"data-slot":"command-list",className:(0,nz.cn)("no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",e),...t})}function nG({className:e,...t}){return(0,c.jsx)(nC.Empty,{"data-slot":"command-empty",className:(0,nz.cn)("py-6 text-center text-sm",e),...t})}function nZ({className:e,...t}){return(0,c.jsx)(nC.Group,{"data-slot":"command-group",className:(0,nz.cn)("overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground",e),...t})}function nJ({className:e,children:t,...n}){return(0,c.jsxs)(nC.Item,{"data-slot":"command-item",className:(0,nz.cn)("group/command-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-foreground",e),...n,children:[t,(0,c.jsx)(nL.CheckIcon,{className:"ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100"})]})}(0,nF.cva)("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",sm:"","icon-xs":"size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});var nQ=e.i(917162),n0=e.i(660302),n1=e.i(671428),n2=e.i(319036),n3=e.i(41533),n5=e.i(146538),n6=e.i(265402),n9=e.i(95187);let n4=(0,n9.createServerReference)("7f92929bc39d14cb18c0edd6f885396687b8da365f",n9.callServer,void 0,n9.findSourceMapURL,"createBotAction");var n8=e.i(461569);let n7=(0,n9.createServerReference)("7ffed7b5e60bbcaf20bf9d4e80219a52cbf8e96ebb",n9.callServer,void 0,n9.findSourceMapURL,"deleteBotAction"),re=(0,n9.createServerReference)("7f50fd90d67f93e3cc1ef2f4549305a687fdfd71e1",n9.callServer,void 0,n9.findSourceMapURL,"setBotMemoryOnAction"),rt=(0,n9.createServerReference)("7fb76f58c3bde6fe281cdcec4c154f5f9ba480cb29",n9.callServer,void 0,n9.findSourceMapURL,"updateBotAction");var rn=e.i(451888),rr=e.i(463625),ro=e.i(635963),ra=e.i(519029),ri=e.i(992112),rl=e.i(895836),rs=e.i(989409),rc=e.i(621285),ru=e.i(616172),rd=e.i(863605),rf=e.i(177373),rm=e.i(333999),rp=e.i(245629),rh=e.i(981203),rv=e.i(609856),rg=e.i(283653),rx=e.i(864723);let rb=" new";function ry({bot:e,job:t,active:n,onPick:r}){var o,a,i;let l=(o=t,a=e.lastJobAt,i=e.disabled,o?.status==="waiting"?{text:"waiting on you",shine:!0,amber:!0}:o?.status==="running"?{text:`working \xb7 ${o.label}`,shine:!0}:i?{text:"off"}:o?{text:`idle \xb7 last job ${rw(o.updatedAt)}`}:a?{text:`idle \xb7 last job ${rw(a)}`}:{text:"idle · no jobs yet"});return(0,c.jsxs)("button",{type:"button",onClick:r,className:(0,nz.cn)("mx-2 flex items-center gap-2.5 rounded-md px-2 py-2 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",n?"bg-secondary":"hover:bg-muted/60"),children:[(0,c.jsx)(ro.BotMark,{size:32,...rA(e.name,e.icon),state:t?.status==="running"?"thinking":"idle",notify:t?.status==="waiting",className:(0,nz.cn)("shrink-0",e.disabled&&"opacity-45")}),(0,c.jsxs)("span",{className:(0,nz.cn)("min-w-0 flex-1 space-y-0.5",e.disabled&&"opacity-45"),children:[(0,c.jsx)("span",{className:(0,nz.cn)("block truncate text-[13px]",n?"font-medium":"text-foreground/90"),children:e.name}),l.shine?(0,c.jsx)(n0.ShinyText,{text:l.text,tone:l.amber?"waiting":"muted",className:"block truncate font-mono text-[11px] leading-4"}):(0,c.jsx)("span",{className:"block truncate font-mono text-[11px] leading-4 text-muted-foreground",children:l.text})]})]})}function rw(e){let t=(0,rp.shortAgo)(e);return"now"===t?"just now":`${t} ago`}function rE(e,t,n){let[r,o]=(0,w.useState)(new Set),[a,i]=(0,rv.useServerAction)(n8.createSeedBotsAction,{onOk:e=>{(0,rg.revalidate)(E.queryKey.bot),n(e.created[0]??null)}}),{data:l}=(0,rg.useServerRoute)(E.queryKey.config),s=rr.BOT_SEEDS.filter(t=>!e.has(t.name)),c=s.filter(e=>!r.has(e.name));return{isSet:e=>(0,ri.isConfigSet)(l,e),adding:i,addable:s,wanted:c,ticked:t=>e.has(t.name)||!r.has(t.name),toggle:e=>o(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),submit:()=>a(c.map(e=>({name:e.name,color:t[rr.BOT_SEEDS.indexOf(e)]})))}}function rj({have:e,inks:t,picks:n}){return(0,c.jsx)("div",{className:"flex flex-col gap-2",children:rr.BOT_SEEDS.map((r,o)=>{var a;let i,l=e.has(r.name),s=n.ticked(r),d=(a=n.isSet,(i=(r.requires??[]).filter(e=>!a(ri.MEDIA_MODEL_KEYS[e]))).length?`needs ${i.map(ri.mediaModelWords).join(" and ")}`:null);return(0,c.jsx)("div",{className:(0,nz.cn)("rounded-xl ring-1 transition-colors",l?"opacity-45 ring-border/60":s?"ring-foreground":"ring-border/60"),children:(0,c.jsxs)("button",{type:"button",disabled:l||n.adding,"aria-pressed":s,onClick:()=>n.toggle(r.name),className:"flex w-full items-center gap-3 rounded-xl px-3.5 py-2.5 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-default",children:[(0,c.jsx)(ro.BotMark,{size:28,...rA(r.name,r.icon),color:t[o],className:(0,nz.cn)("shrink-0 transition-opacity",!s&&"opacity-35")}),(0,c.jsxs)("span",{className:"min-w-0 flex-1 space-y-px",children:[(0,c.jsx)("span",{className:"block text-[14px] leading-[18px] font-medium",children:r.name}),(0,c.jsx)("span",{className:"block truncate text-[12px] leading-[17px] text-muted-foreground",children:r.hint})]}),l?(0,c.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground",children:"already added"}):d?(0,c.jsxs)("span",{className:(0,nz.cn)("flex shrink-0 items-center gap-1.5 font-mono text-[11px]",nz.WAITING_INK),children:[(0,c.jsx)(p,{className:"size-3"}),d]}):null,(0,c.jsx)("span",{className:(0,nz.cn)("grid size-5 shrink-0 place-items-center rounded-full transition-colors",s?"bg-foreground text-background":"ring-1 ring-border/60 ring-inset"),children:s&&(0,c.jsx)(u.Check,{className:"size-3"})})]})},r.name)})})}function rk({picks:e,onCancel:t}){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(j.Button,{variant:"ghost",onClick:t,children:"Cancel"}),(0,c.jsxs)(j.Button,{loading:e.adding,disabled:0===e.wanted.length,onClick:e.submit,children:[(0,c.jsx)(g.Plus,{}),1===e.wanted.length?`Add ${e.wanted[0].name}`:`Add ${e.wanted.length} bots`]})]})}function rS({have:e,inks:t,onDone:n}){let r=rE(e,t,n);return(0,c.jsxs)("div",{className:"flex min-h-full flex-col",children:[(0,c.jsx)("div",{className:"flex h-11 shrink-0 items-center border-b border-border/60 px-4 font-mono text-[11px] text-muted-foreground",children:"Ready-made"}),(0,c.jsxs)("div",{className:"px-8 pt-7 pb-1",children:[(0,c.jsx)("h3",{className:"text-[17px] font-medium tracking-tight",children:"Bots you can add"}),(0,c.jsx)("p",{className:"mt-1.5 max-w-lg text-[13px] leading-relaxed text-muted-foreground break-keep",children:"Each one is a starting point — rename it, re-prompt it, give it a model of its own. What a bot needs before it can work stands on its row; until then it runs on the app default model."})]}),(0,c.jsx)("div",{className:"px-8 pt-4",children:(0,c.jsx)(rj,{have:e,inks:t,picks:r})}),(0,c.jsxs)("div",{className:"mt-auto flex items-center gap-3 border-t border-border/60 px-8 py-4",children:[(0,c.jsx)("span",{className:"flex-1 font-mono text-[11px] text-muted-foreground",children:0===r.wanted.length?"nothing ticked":`${r.wanted.length} of ${r.addable.length} ticked`}),(0,c.jsx)(rk,{picks:r,onCancel:()=>n(null)})]})]})}function rN({have:e,inks:t,onDone:n}){let r=rE(e,t,n);return(0,c.jsx)(rl.SettingDialogContent,{title:"Bots you can add",description:"Each one is a starting point — rename it, re-prompt it, give it a model of its own. What a bot needs before it can work stands on its row.",footer:(0,c.jsx)(rk,{picks:r,onCancel:()=>n(null)}),children:(0,c.jsx)(rj,{have:e,inks:t,picks:r})})}function rC({missing:e,inks:t,have:n,onDone:r}){return(0,c.jsxs)("button",{type:"button",title:"Ready-made bots","aria-label":`Ready-made bots, ${e.length} on offer`,onClick:()=>nQ.notify.component({className:"sm:max-w-xl",renderer:({close:e})=>(0,c.jsx)(rN,{have:n,inks:t,onDone:t=>{e(),r(t)}})}),className:"flex shrink-0 items-center gap-1 rounded-md px-1.5 py-1 text-muted-foreground outline-none transition-colors hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,c.jsx)(g.Plus,{className:"size-3 shrink-0"}),e.map((n,r)=>(0,c.jsx)("span",{className:(0,nz.cn)("block",r>0&&"-ml-1.5"),style:{zIndex:e.length-r},children:(0,c.jsx)(ro.BotMark,{size:20,...rA(n.name,n.icon),color:t[rr.BOT_SEEDS.indexOf(n)],notify:!1})},n.name))]})}function rA(e,t){return{seed:e||"bot",color:t?.color,shape:t?.shape,outline:t?.outline}}function rR({bot:e,jobs:t,onDone:n,onCancel:r}){let[o,a]=(0,rm.useObjectState)(()=>({name:e?.name??"",description:e?.description??"",systemPrompt:e?.systemPrompt??"",icon:e?.icon??(0,rn.randomBotIcon)(),provider:e?.provider??null,model:e?.model??"",compactAt:e?.compactAt?String(e.compactAt/1e3):"",toolIds:e?.tools.map(e=>e.id)??[]})),{name:i,description:l,systemPrompt:s,icon:u,provider:d,model:f,compactAt:m,toolIds:p}=o,[h,v]=(0,w.useState)(!!e?.compactAt),g=(0,rg.useServerRoute)(E.queryKey.modelCatalog),b=(e,t)=>e&&t.trim()?(0,n6.contextWindowOf)(e,t.trim(),g.data):null,y=b(d,f),k=d&&f.trim()?rT(y)/1e3:null,S=h?m:null===k?"":String(k),[N]=(0,rv.useServerAction)(rt,{onOk:()=>(0,rg.revalidate)(E.queryKey.bot)}),C=t=>{e&&N(e.name,t)},[A,R,,O]=(0,rv.useServerAction)(n4,{errorMessage:!1,okMessage:"Bot created",onOk:e=>{(0,rg.revalidate)(E.queryKey.bot),n(e.name)}}),[P,M]=(0,rv.useServerAction)(n7,{okMessage:"Bot deleted",onOk:()=>{(0,rg.revalidate)(E.queryKey.bot),n(null)}}),D=i.trim()&&l.trim()&&d&&f.trim()&&!R,I=async()=>{!e||await nQ.notify.confirm({title:`Delete ${e.name}?`,description:"The agent can no longer hand work to it.",okText:"Delete",destructive:!0})&&P(e.name)};return(0,c.jsxs)("div",{className:"flex min-h-full flex-col",children:[(0,c.jsxs)("div",{className:"flex h-11 shrink-0 items-center gap-2 border-b border-border/60 px-4",children:[(0,c.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] text-muted-foreground",children:e?e.name:"New bot"}),e&&(0,c.jsxs)(c.Fragment,{children:[e.disabled&&(0,c.jsx)("span",{className:"font-mono text-[10px] text-muted-foreground",children:"off"}),(0,c.jsx)(n2.Switch,{checked:!e.disabled,onCheckedChange:e=>C({disabled:!e}),"aria-label":`${e.name} on or off`,className:"mr-1 shrink-0"}),(0,c.jsx)(j.Button,{size:"icon-sm",variant:"ghost",loading:M,"aria-label":"Delete this bot",onClick:I,className:"text-muted-foreground hover:text-destructive",children:(0,c.jsx)(x.Trash2,{})})]})]}),(0,c.jsxs)("div",{className:"flex-1 space-y-5 p-6",children:[(0,c.jsx)(rF,{name:i,icon:u,onChange:e=>{a({icon:e}),C({icon:e})}}),(0,c.jsxs)(rL,{label:"Name",children:[e?(0,c.jsx)("p",{className:"truncate text-sm leading-8 font-medium",children:e.name}):(0,c.jsx)(nB.Input,{value:i,onChange:e=>a({name:e.target.value}),placeholder:"researcher",spellCheck:!1,maxLength:rh.COMMON_VALIDATE.name.max,autoFocus:!0}),(0,c.jsx)("p",{className:"text-xs text-muted-foreground",children:e?`What ${n3.APP_NAME} calls it when she hands it work. Fixed once the bot is made.`:`What ${n3.APP_NAME} calls it when she hands it work. Up to ${rh.COMMON_VALIDATE.name.max} characters, and it can’t be renamed later.`})]}),(0,c.jsxs)(rL,{label:"Description",children:[(0,c.jsx)(nB.Input,{value:l,onChange:e=>a({description:e.target.value}),onBlur:()=>{let t=l.trim();e&&t&&t!==e.description&&C({description:t})},placeholder:"Searches the web and answers",maxLength:rh.COMMON_VALIDATE.description.max}),(0,c.jsxs)("p",{className:"text-xs text-muted-foreground",children:["The one line ",n3.APP_NAME," and the other bots read when they decide who gets a job."]})]}),(0,c.jsx)(rL,{label:"Runs on",children:(0,c.jsx)(n5.ModelPicker,{provider:d,model:f,onChange:e=>{a({provider:e.provider,model:e.model}),v(!1),e.model&&C({...e,compactAt:rT(b(e.provider,e.model))})}})}),(0,c.jsxs)(rL,{label:"Compacts at",children:[(0,c.jsxs)(nW,{children:[(0,c.jsx)(nq,{inputMode:"decimal",value:S,placeholder:f.trim()?"":"Pick a model first",onChange:e=>{v(!0),a({compactAt:e.target.value})},onBlur:()=>{if(!h)return;let e=rI(m);null===e?v(!1):a({compactAt:String(e/1e3)}),C({compactAt:e??(f.trim()?rT(y):null)})}}),(0,c.jsx)(nU,{align:"inline-end",children:(0,c.jsx)(nV,{children:"k tokens"})})]}),(0,c.jsx)("p",{className:"text-xs text-muted-foreground",children:function(e){if(!e.model)return"Filled in from the model once one is picked.";let t=rT(e.window),n="A job summarizes itself here and carries on.";return null!==e.shown&&e.shown!==t?`Set by hand. Picking a model fills in its own again. ${n}`:e.window?`${Math.round(100*n3.BOT_RUN.compactHeadroom)}% of this model's ${(e.window/1e3).toLocaleString()}k context window. ${n}`:`This model's context window is unknown, so the default is filled in. ${n}`}({model:f.trim(),window:y,shown:rI(S)})})]}),(0,c.jsx)(rL,{label:"Tools",children:(0,c.jsx)(rB,{selected:p,onChange:e=>{a({toolIds:e}),C({toolIds:e})}})}),(0,c.jsxs)(rL,{label:"Prompt",children:[(0,c.jsx)(n$.Textarea,{value:s,onChange:e=>a({systemPrompt:e.target.value}),onBlur:()=>{let t=s.trim();e&&t!==(e.systemPrompt??"")&&C({systemPrompt:t})},placeholder:`How it should work (optional). e.g.
|
|
2
|
+
Search the web, answer with a short summary and links.`,maxLength:rh.COMMON_VALIDATE.prompt.max,className:"max-h-48 min-h-24 resize-none overflow-y-auto text-sm"}),s.length>0&&(0,c.jsxs)("p",{className:"text-right font-mono text-[10px] text-muted-foreground",children:[s.length,"/",rh.COMMON_VALIDATE.prompt.max]})]}),e&&(0,c.jsx)(rO,{bot:e.name}),e&&(0,c.jsx)(r_,{jobs:t}),!e&&(0,c.jsxs)("div",{className:"flex items-center justify-end gap-2 pt-1",children:[(0,c.jsx)(j.Button,{variant:"ghost",onClick:r,children:"Cancel"}),(0,c.jsx)(j.Button,{loading:R,disabled:!D,onClick:()=>{D&&d&&A({name:i.trim(),description:l.trim(),systemPrompt:s.trim()||void 0,icon:u,provider:d,model:f.trim(),compactAt:h?rI(m):rT(y),toolIds:p})},children:"Create"})]}),O&&(0,c.jsx)("p",{className:"font-mono text-xs text-destructive",children:O})]})]})}function rO({bot:e}){let t=E.queryKey.botMemoryFiles(e),{data:n,isLoading:r}=(0,rg.useServerRoute)(t),[o,a]=(0,w.useState)(null),[i]=(0,rv.useServerAction)(rf.openFileAction),[l,s]=(0,rv.useServerAction)(rd.deleteWorkspaceFileAction,{okMessage:"File deleted",onOk:()=>{a(null),(0,rg.revalidate)(t),(0,rg.revalidate)(E.queryKey.workspace)}}),u=async t=>{await nQ.notify.confirm({title:`Delete ${t.file}?`,description:`It is deleted from disk for good, and ${e}'s next job starts without it.`,okText:"Delete",destructive:!0})&&l(t.path)};return(0,c.jsxs)("div",{className:"pt-1",children:[(0,c.jsxs)("div",{className:"flex h-6 items-center",children:[(0,c.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:"Memory"}),(0,c.jsx)("span",{className:"flex-1"}),n&&n.total>0&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"pr-1 font-mono text-[11px] text-muted-foreground tabular-nums",children:1===n.total?"1 file":`${n.total} files`}),(0,c.jsxs)("button",{type:"button",title:"Show in the file manager",onClick:()=>i(n.folder),className:"flex items-center gap-1 rounded-md px-1.5 py-1 font-mono text-[11px] text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,c.jsx)(h.FolderOpen,{className:"size-3"}),"Folder"]})]})]}),r?(0,c.jsx)("div",{className:"flex h-9 items-center border-t border-border/60",children:(0,c.jsx)(n1.Skeleton,{className:"h-3 w-56"})}):n?.entries.length?n.entries.map(e=>{let t=o===e.path;return(0,c.jsxs)("div",{className:"border-t border-border/60",children:[(0,c.jsxs)("button",{type:"button","aria-expanded":t,onClick:()=>a(t?null:e.path),className:"flex h-9 w-full items-center gap-3 text-left text-[13px] outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,c.jsx)("span",{className:(0,nz.cn)("min-w-0 flex-1 truncate",t&&"font-medium"),children:e.line||e.file}),(0,c.jsx)("span",{className:"w-36 shrink-0 truncate font-mono text-[11px] text-muted-foreground",children:e.file}),(0,c.jsx)("span",{className:"w-28 shrink-0 text-right font-mono text-[11px] text-muted-foreground tabular-nums",children:(0,rp.whenOf)(e.at)}),(0,c.jsx)(d.ChevronRight,{className:(0,nz.cn)("size-3 shrink-0 text-muted-foreground transition-transform",t&&"rotate-90")})]}),t&&(0,c.jsxs)("div",{className:"flex items-start gap-3",children:[(0,c.jsx)("div",{className:"max-h-96 min-w-0 flex-1 overflow-y-auto",children:(0,c.jsx)(rP,{path:e.path})}),(0,c.jsx)(j.Button,{size:"icon-sm",variant:"ghost","aria-label":`Delete ${e.file}`,loading:s,onClick:()=>u(e),className:"text-muted-foreground hover:text-destructive",children:(0,c.jsx)(x.Trash2,{})})]})]},e.path)}):(0,c.jsx)("p",{className:"py-2 text-[13px] text-muted-foreground",children:"Nothing kept yet."})]})}function rP({path:e}){let{content:t,failure:n,truncated:r}=(0,rc.useFileText)(e);if(n)return(0,c.jsx)("p",{className:"pb-3 font-mono text-xs text-destructive",children:n});if(null===t)return(0,c.jsxs)("div",{className:"space-y-2 pb-3",children:[(0,c.jsx)(n1.Skeleton,{className:"h-4 w-5/6"}),(0,c.jsx)(n1.Skeleton,{className:"h-4 w-2/3"})]});let o=(0,ru.viewKindOf)(e);return(0,c.jsx)(rc.FileBody,{kind:o,content:"markdown"===o?rM(t):t,truncated:r,where:"inline"})}let rM=e=>e.replace(/^---\n[\s\S]*?\n---\n/,"").replace(/^\s*#[^\n]*\n?/,"");function rD({bot:e}){let{data:t,mutate:n}=(0,rg.useServerRoute)(E.queryKey.botMemory),[r]=(0,rv.useServerAction)(re,{onOk:()=>(0,rg.revalidate)(E.queryKey.botMemory)}),o=e?e.tokens.input+e.tokens.output:0;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(rl.SettingRailNote,{children:e?(0,c.jsxs)("span",{className:"font-mono text-[11px]",children:[e.name,e.disabled&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"px-1.5 opacity-50",children:"·"}),"off"]}),(0,c.jsx)("span",{className:"px-1.5 opacity-50",children:"·"}),(0,c.jsx)("span",{title:`in ${(0,nz.formatCount)(e.tokens.input)} \xb7 out ${(0,nz.formatCount)(e.tokens.output)}`,children:o>0?`${(0,nz.formatCount)(o)} tokens`:"no tokens yet"}),(0,c.jsx)("span",{className:"px-1.5 opacity-50",children:"·"}),"since ",(0,rp.whenOf)(e.createdAt)]}):"Becomes a bot once it has a name and a model"}),(0,c.jsx)("span",{className:"shrink-0 text-xs text-muted-foreground",children:"Bots keep their own memory"}),(0,c.jsx)(n2.Switch,{checked:t??!0,disabled:void 0===t,onCheckedChange:e=>{n(e,!1),r(e)},"aria-label":"Bots keep their own memory"})]})}function rI(e){let t=Number(e.replace(/[^0-9.]/g,""));return Number.isFinite(t)&&t>0?Math.round(1e3*t):null}let rT=e=>1e3*Math.round((0,n6.compactAtFor)(e)/1e3);function rL({label:e,children:t}){return(0,c.jsxs)("div",{className:"flex gap-3",children:[(0,c.jsx)("span",{className:"w-20 shrink-0 pt-2 font-mono text-xs text-muted-foreground",children:e}),(0,c.jsx)("div",{className:"min-w-0 flex-1 space-y-1.5",children:t})]})}function r_({jobs:e}){return(0,c.jsxs)("div",{className:"pt-1",children:[(0,c.jsxs)("div",{className:"flex h-6 items-center",children:[(0,c.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:"Recent"}),(0,c.jsx)("span",{className:"flex-1"}),(0,c.jsxs)("button",{type:"button",onClick:()=>(0,rs.openSettings)("tasks"),className:"flex items-center gap-1 rounded-md px-1.5 py-1 font-mono text-[11px] text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,c.jsx)(v.History,{className:"size-3"}),"History"]})]}),0===e.length?(0,c.jsx)("p",{className:"py-2 text-[13px] text-muted-foreground",children:"Nothing handed over yet."}):e.map(e=>{let t=function(e){switch(e.status){case"waiting":return{text:"waiting on you",tone:nz.WAITING_INK};case"running":return{text:"working",tone:"text-muted-foreground"};case"failed":return{text:"failed",tone:"text-destructive"};default:return{text:"done",tone:"text-muted-foreground"}}}(e);return(0,c.jsxs)("div",{className:"flex h-9 items-center gap-3 border-t border-border/60 text-[13px]",children:[(0,c.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.label}),"running"===e.status?(0,c.jsx)(n0.ShinyText,{text:t.text,className:"shrink-0 font-mono text-[11px]"}):(0,c.jsx)("span",{className:(0,nz.cn)("shrink-0 font-mono text-[11px]",t.tone),children:t.text}),(0,c.jsx)("span",{className:"w-28 shrink-0 text-right font-mono text-[11px] text-muted-foreground tabular-nums",children:(0,rp.whenOf)(e.updatedAt)})]},e.id)})]})}function rF({name:e,icon:t,onChange:n}){return(0,c.jsxs)("div",{className:"flex flex-col items-center gap-4 pt-3 pb-2",children:[(0,c.jsx)(ro.BotMark,{size:112,...rA(e,t),className:"shrink-0"}),(0,c.jsx)(ra.MarkPalette,{color:t.color,themePicked:t.color===rx.MARK_SYSTEM,onTheme:()=>n({...t,color:rx.MARK_SYSTEM}),onPick:e=>n({...t,color:t.color===e?void 0:e})}),(0,c.jsxs)("div",{className:"flex gap-1",children:[rx.MARK_SHAPES.map(e=>(0,c.jsx)("button",{type:"button",onClick:()=>n({...t,shape:t.shape===e?void 0:e}),className:(0,nz.cn)("rounded-md px-2 py-1 font-mono text-[11px] capitalize transition-colors",t.shape===e?"bg-foreground text-background":"bg-muted text-muted-foreground hover:text-foreground"),children:e},e)),(0,c.jsx)("span",{className:"mx-1 w-px self-stretch bg-border/60"}),(0,c.jsx)("button",{type:"button",onClick:()=>n({...t,outline:!t.outline||void 0}),className:(0,nz.cn)("rounded-md px-2 py-1 font-mono text-[11px] transition-colors",t.outline?"bg-foreground text-background":"bg-muted text-muted-foreground hover:text-foreground"),children:"outline"})]})]})}function rB({selected:e,onChange:t}){let{data:n=[]}=(0,rg.useServerRoute)(E.queryKey.mcpTools),[r,o]=(0,w.useState)(!1),a=e.length>=rn.MAX_PINNED_TOOLS,i=[...new Set(n.map(e=>e.serverName))],l=e.map(e=>n.find(t=>t.id===e)).filter(e=>!!e),s=r?l:l.slice(0,4),d=l.length-s.length,f=n=>t(e.includes(n)?e.filter(e=>e!==n):[...e,n]);return 0===n.length?(0,c.jsx)("p",{className:"pt-1.5 text-xs text-muted-foreground",children:"Nothing to pin — connect an MCP server first (Settings › Connectors)."}):(0,c.jsxs)("div",{className:"space-y-2",children:[(0,c.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,c.jsx)(j.Button,{size:"icon-sm",variant:r?"secondary":"outline",onClick:()=>o(!r),"aria-label":"Pick tools",className:"border-dashed",children:(0,c.jsx)(b.Wrench,{})}),s.map(e=>(0,c.jsxs)("span",{className:"flex items-center gap-1 rounded-full bg-muted py-1 pr-1.5 pl-2.5 font-mono text-[11px]",children:[e.name,(0,c.jsx)("button",{type:"button","aria-label":`Unpin ${e.name}`,onClick:()=>f(e.id),className:"rounded-full p-0.5 text-muted-foreground transition-colors hover:bg-foreground/10 hover:text-foreground",children:(0,c.jsx)(y.X,{className:"size-3"})})]},e.id)),d>0&&(0,c.jsxs)("button",{type:"button",onClick:()=>o(!0),className:"rounded-full bg-muted px-2.5 py-1 font-mono text-[11px] text-muted-foreground transition-colors hover:text-foreground",children:["+",d]}),0===l.length&&(0,c.jsx)("span",{className:"text-xs text-muted-foreground",children:"Loaded from the start — everything else stays searchable"}),(0,c.jsx)("span",{className:"flex-1"}),(0,c.jsxs)("span",{className:(0,nz.cn)("font-mono text-[11px] text-muted-foreground",a&&"text-foreground"),children:[e.length,"/",rn.MAX_PINNED_TOOLS]})]}),r&&(0,c.jsxs)(nH,{className:"rounded-lg border border-input",children:[(0,c.jsx)(nX,{placeholder:"Search tools"}),(0,c.jsxs)(nY,{className:"max-h-44",children:[(0,c.jsx)(nG,{children:"Nothing matches"}),i.map(t=>(0,c.jsx)(nZ,{heading:t,children:n.filter(e=>e.serverName===t).map(t=>{let n=e.includes(t.id);return(0,c.jsxs)(nJ,{value:`${t.serverName}/${t.name}`,disabled:!n&&a,onSelect:()=>f(t.id),children:[(0,c.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-xs",children:t.name}),n&&(0,c.jsx)(u.Check,{className:"size-3.5 shrink-0"})]},t.id)})},t))]})]})]})}e.s(["BotSetting",0,function(){let{data:e,isLoading:t,error:n}=(0,rg.useServerRoute)(E.queryKey.bot),r=e??[],{data:o}=(0,rg.useServerRoute)(E.queryKey.taskHistory(null)),a=o??[],[i,l]=(0,w.useState)(null),[s]=(0,w.useState)(rr.rollSeedColors);if(t)return(0,c.jsx)(rl.SettingPanesSkeleton,{});if(n)return(0,c.jsx)(rl.SettingError,{message:n.message});let u=i===rb,d=r.filter(e=>!e.disabled).length,f=new Set(r.map(e=>e.name)),m=rr.BOT_SEEDS.filter(e=>!f.has(e.name)),p=u?null:r.find(e=>e.name===i)??r[0]??null;return(0,c.jsx)(rl.SettingPanes,{footer:0===r.length?null:(0,c.jsx)(rD,{bot:p}),left:(0,c.jsxs)("div",{className:"flex flex-col py-2",children:[(0,c.jsxs)("div",{className:"mx-2 mb-1 flex items-center gap-1",children:[(0,c.jsxs)("button",{type:"button",onClick:()=>l(rb),className:(0,nz.cn)("flex flex-1 items-center gap-2 rounded-md px-2 py-1.5 text-left text-[13px] outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",u?"bg-secondary text-foreground":"text-muted-foreground hover:bg-muted/60 hover:text-foreground"),children:[(0,c.jsx)(g.Plus,{className:"size-3.5 shrink-0"}),"New bot"]}),r.length>0&&m.length>0&&(0,c.jsx)(rC,{missing:m,inks:s,have:f,onDone:e=>l(e)})]}),r.map(e=>(0,c.jsx)(ry,{bot:e,job:a.find(t=>t.bot===e.name)??null,active:!u&&e.name===p?.name,onPick:()=>l(e.name)},e.name)),d>n3.PROMPT_CROWDED.bots&&(0,c.jsxs)(rl.SettingNote,{className:"mx-3 mt-2 leading-relaxed",children:[d," bots are on. Each is a line in every prompt, and one more for Thursday to choose between."]})]}),right:u?(0,c.jsx)(rR,{jobs:[],onDone:e=>l(e),onCancel:()=>l(null)},"new"):p?(0,c.jsx)(rR,{bot:p,jobs:a.filter(e=>e.bot===p.name).slice(0,3),onDone:()=>l(null)},p.name):m.length>0?(0,c.jsx)(rS,{have:f,inks:s,onDone:e=>l(e)}):(0,c.jsxs)("div",{className:"space-y-4 p-8",children:[(0,c.jsx)("p",{className:"text-sm leading-relaxed text-muted-foreground",children:"The agent talks; bots do the rest — search the web, draft a reply, check a schedule. Give one a job and a model, and work gets handed over mid-call while the conversation keeps going."}),(0,c.jsxs)(j.Button,{variant:"outline",onClick:()=>l(rb),children:[(0,c.jsx)(g.Plus,{}),"New bot"]})]})})}],507906)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,107941,e=>{"use strict";var t=e.i(843476),i=e.i(24071),n=e.i(867927),s=e.i(482022),r=e.i(829600),a=e.i(434322),o=e.i(905015),l=e.i(226091),d=e.i(726067),c=e.i(569644),u=e.i(815170),x=e.i(51921),m=e.i(650639),h=e.i(759659),f=e.i(438583),p=e.i(271645),g=e.i(798120),v=e.i(167881),y=e.i(917162),k=e.i(41533),j=e.i(895836),b=e.i(621285),w=e.i(863605),N=e.i(95187);let S=(0,N.createServerReference)("7f1261b41219e5808ae0097ce1333efd5b440b6888",N.callServer,void 0,N.findSourceMapURL,"emptyScratchAction");var F=e.i(177373),C=e.i(245629),A=e.i(609856),z=e.i(283653),R=e.i(647163);let M={markdown:l.FileText,csv:m.Sheet,json:o.FileJson,text:l.FileText,frame:a.FileCode2,image:u.Image,audio:x.Music,video:f.Video,none:r.File};function $({label:e,rows:i,children:n}){return 0===i.length?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"px-3 pt-3 pb-1 font-mono text-[10px] text-muted-foreground/60",children:e}),n]})}function E({entry:e,active:i,onPick:s}){let r="dir"===e.kind?d.Folder:M[e.view];return(0,t.jsxs)("button",{type:"button",onClick:s,title:"file"===e.kind?`${e.name} \xb7 ${(0,C.shortAgo)(e.at)}`:e.name,className:(0,R.cn)("mx-2 flex items-center gap-2 rounded-md px-2 py-1.5 text-left text-[13px] outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",i?"bg-secondary font-medium text-foreground":"text-muted-foreground hover:bg-muted/60 hover:text-foreground"),children:[(0,t.jsx)(r,{className:"size-3.5 shrink-0 opacity-70"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.name}),"file"===e.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/75",children:(0,R.formatBytes)(e.bytes)}),(0,t.jsx)("span",{className:"w-3.5 shrink-0"})]}):(0,t.jsx)(n.ChevronRight,{className:"size-3.5 shrink-0 text-muted-foreground/50"})]})}function O({empty:e,onReveal:i}){return(0,t.jsxs)("div",{className:"space-y-4 p-8",children:[e?(0,t.jsxs)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:["Nothing here yet. What a bot writes during a call lands in"," ",(0,t.jsx)("span",{className:"font-mono text-[13px] text-foreground",children:"artifacts/"})," ","— a page, a table, a picture — and shows up here to open."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-sm leading-relaxed text-muted-foreground",children:"Pick a file on the left."}),(0,t.jsx)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:"Only what the app can open is listed — a page, a table, a picture, a note. Installed packages and tool leftovers are left out, and no folder is measured, so a folder opens as fast as it lists. Reveal folder for everything else."})]}),(0,t.jsxs)(v.Button,{variant:"outline",onClick:i,children:[(0,t.jsx)(c.FolderOpen,{}),"Reveal folder"]})]})}function P({file:e,onGone:i}){let n=e.path,[r]=(0,A.useServerAction)(F.openFileAction),[a,o]=(0,A.useServerAction)(w.deleteWorkspaceFileAction,{okMessage:"File deleted",onOk:()=>{(0,z.revalidate)(g.queryKey.workspace),i()}}),l=async()=>{await y.notify.confirm({title:`Delete ${n.split("/").pop()}?`,description:"It is deleted from disk for good.",okText:"Delete",destructive:!0})&&a(n)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3 border-b border-border/60 px-6 py-2",children:[(0,t.jsx)(V,{path:n}),(0,t.jsxs)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/70",children:[(0,R.formatBytes)(e.bytes)," · ",(0,C.shortAgo)(e.at)]}),(0,t.jsx)("a",{href:g.queryKey.fileView(n),target:"_blank",rel:"noreferrer","aria-label":"Open in a new tab",className:"grid size-7 shrink-0 place-items-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(s.ExternalLink,{className:"size-4"})}),(0,t.jsx)(v.Button,{size:"icon-sm",variant:"ghost","aria-label":"Reveal in the file manager",className:"text-muted-foreground",onClick:()=>r(n),children:(0,t.jsx)(c.FolderOpen,{})}),(0,t.jsx)(v.Button,{size:"icon-sm",variant:"ghost","aria-label":"Delete",loading:o,className:"text-muted-foreground",onClick:l,children:(0,t.jsx)(h.Trash2,{})})]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:(0,t.jsx)(b.FilePreview,{path:n,bytes:e.bytes})})]})}function V({path:e}){let i=["workspace",...e.split("/").filter(Boolean)];return(0,t.jsx)("span",{className:"flex min-w-0 flex-1 items-center gap-1 font-mono text-[11px] text-muted-foreground",children:i.map((e,s)=>(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1",children:[s>0&&(0,t.jsx)(n.ChevronRight,{className:"size-3 shrink-0 opacity-50"}),(0,t.jsx)("span",{className:(0,R.cn)("truncate",s===i.length-1&&"text-foreground"),children:e})]},`${s}-${e}`))})}e.s(["WorkspaceSetting",0,function(){let[e,n]=(0,p.useState)(""),[s,r]=(0,p.useState)(k.WORKSPACE_VIEW.rows),[a,o]=(0,p.useState)(null),[l,d]=(0,p.useState)(""),{data:u,isLoading:x,error:m}=(0,z.useServerRoute)(g.queryKey.workspaceFolder(e,s),{keepPreviousData:!0}),h=e=>{n(e),r(k.WORKSPACE_VIEW.rows)},[f,b]=(0,A.useServerAction)(S,{okMessage:"Scratch emptied",onOk:()=>(0,z.revalidate)(g.queryKey.workspace)}),[w]=(0,A.useServerAction)(F.openFileAction),N=async()=>{await y.notify.confirm({title:"Empty scratch?",description:"Everything under scratch/ is deleted for good. artifacts/ and projects/ are untouched.",okText:"Empty",destructive:!0})&&f()};if(x)return(0,t.jsx)(j.SettingPanesSkeleton,{});if(m)return(0,t.jsx)(j.SettingError,{message:m.message});let C=u?.entries??[],R=u?.total??0,M=l.trim().toLowerCase(),V=M?C.filter(e=>e.name.toLowerCase().includes(M)):C,W=V.filter(e=>"dir"===e.kind),B=V.filter(e=>"file"===e.kind),K=C.find(e=>"file"===e.kind&&e.path===a?.path)??a;return(0,t.jsx)(j.SettingPanes,{footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.SettingRailNote,{children:(0,t.jsxs)("span",{className:"font-mono",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:`.ai-workspace${e?`/${e}`:""}`}),` \xb7 ${function(e,t){let i=e.filter(e=>"dir"===e.kind).length,n=e.length-i,s=[i&&`${i} ${1===i?"folder":"folders"}`,n&&`${n} ${1===n?"file":"files"}`].filter(Boolean);if(!s.length)return"empty";let r=s.join(" · ");return t>e.length?`${r} of ${t.toLocaleString("en")}`:r}(C,R)}`]})}),(0,t.jsxs)(v.Button,{variant:"outline",size:"sm",onClick:()=>w(e||"."),children:[(0,t.jsx)(c.FolderOpen,{}),"Reveal folder"]}),(0,t.jsx)(v.Button,{variant:"outline",size:"sm",loading:b,onClick:N,className:"text-destructive hover:text-destructive",children:"Empty scratch"})]}),left:(0,t.jsxs)("div",{className:"flex flex-col py-2",children:[(0,t.jsx)(j.SettingFilter,{value:l,onChange:d,placeholder:"Filter this folder",className:"mx-2 mb-1.5 w-auto"}),e&&(0,t.jsxs)("button",{type:"button",onClick:()=>h(e.split("/").slice(0,-1).join("/")),className:"mx-2 mb-1 flex items-center gap-1 rounded-md px-2 py-1 text-left font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,t.jsx)(i.ChevronLeft,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e.split("/").slice(0,-1).pop()??"workspace"})]}),0===V.length?(0,t.jsx)("p",{className:"px-4 py-3 text-xs text-muted-foreground/60",children:M?"Nothing matches":"Empty folder"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)($,{label:"folders",rows:W,children:W.map(e=>(0,t.jsx)(E,{entry:e,onPick:()=>h(e.path)},e.path))}),(0,t.jsx)($,{label:"files",rows:B,children:B.map(e=>(0,t.jsx)(E,{entry:e,active:e.path===a?.path,onPick:()=>"file"===e.kind&&o(e)},e.path))})]}),R>C.length&&(0,t.jsx)("button",{type:"button",onClick:()=>r(s+k.WORKSPACE_VIEW.rows),className:"mx-2 mt-2 rounded-md px-2 py-1.5 text-left font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:`Show ${Math.min(k.WORKSPACE_VIEW.rows,R-C.length)} more of ${R.toLocaleString("en")}`})]}),right:K?.kind==="file"?(0,t.jsx)(P,{file:K,onGone:()=>o(null)},K.path):(0,t.jsx)(O,{empty:!e&&0===C.length,onReveal:()=>w(".")})})}],107941)},863605,e=>{"use strict";var t=e.i(95187);let i=(0,t.createServerReference)("7f965a01991fcb050dbcedafae89c62f2e9244fc36",t.callServer,void 0,t.findSourceMapURL,"deleteWorkspaceFileAction");e.s(["deleteWorkspaceFileAction",0,i])},434322,51921,650639,438583,e=>{"use strict";var t=e.i(456420);let i={name:"file-code-corner",size:24,node:[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],aliases:["file-code-2"]};i.node;let n=(0,t.default)(i);e.s(["FileCode2",0,n],434322);let s={name:"music",size:24,node:[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]};s.node;let r=(0,t.default)(s);e.s(["Music",0,r],51921);let a={name:"sheet",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]]};a.node;let o=(0,t.default)(a);e.s(["Sheet",0,o],650639);let l={name:"video",size:24,node:[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]};l.node;let d=(0,t.default)(l);e.s(["Video",0,d],438583)},726067,e=>{"use strict";var t=e.i(456420);let i={name:"folder",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};i.node;let n=(0,t.default)(i);e.s(["Folder",0,n],726067)},759659,e=>{"use strict";var t=e.i(456420);let i={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};i.node;let n=(0,t.default)(i);e.s(["Trash2",0,n],759659)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,698570,e=>{"use strict";var t=e.i(271645);e.s(["useDraft",0,function(e,r,{min:n=1}={}){let[a,i]=(0,t.useState)(e),[l,u]=(0,t.useState)(e);return e!==l&&(u(e),i(e)),{value:a,set:i,commit:()=>{let t=a.trim();if(t.length<n)return i(e);i(t),t!==e&&r(t)},onKeyDown:e=>{"Enter"!==e.key||e.nativeEvent.isComposing||e.currentTarget.blur()}}}])},661504,e=>{"use strict";var t=e.i(271645),r=e.i(699018),n=e.i(677309),a=e.i(271235),i=e.i(802239),l=e.i(646192);let u=Promise.resolve(),s=(0,a.withMiddleware)(r.u,e=>(r,a,s)=>{let o,c=(0,t.useRef)(!1),{cache:f,initialSize:d=1,revalidateAll:m=!1,persistSize:g=!1,revalidateFirstPage:h=!0,revalidateOnMount:v=!1,parallel:p=!1}=s,[,,,y]=n.a.get(n.o);try{(o=(0,n.s)(r?r(0,null):null)[0])&&(o=l.INFINITE_PREFIX+o)}catch(e){}let[I,M,b]=(0,n.c)(f,o),D=(0,t.useCallback)(()=>(0,n.i)(I()._l)?d:I()._l,[f,o,d]);(0,i.useSyncExternalStore)((0,t.useCallback)(e=>o?b(o,()=>{e()}):()=>{},[f,o]),D,D);let _=(0,t.useCallback)(()=>{let e=I()._l;return(0,n.i)(e)?d:e},[o,d]),k=(0,t.useRef)(_());(0,n.u)(()=>{if(!c.current){c.current=!0;return}o&&M({_l:g?k.current:_()})},[o,f]);let R=v&&!c.current,w=e(o,async e=>{let t=I()._i,i=I()._r,l=n.a.get(f),u=l[8],o=()=>l[8]!==u;M({_r:n.U});let c=[],d=_(),[g]=(0,n.c)(f,e),v=g().data,b=[],D=null;for(let e=0;e<d;++e){let[l,u]=(0,n.s)(r(e,p?null:D));if(!l)break;let[d,g]=(0,n.c)(f,l),I=d().data,M=m||t||(0,n.i)(I)||h&&!e&&!(0,n.i)(v)||R||v&&!(0,n.i)(v[e])&&!s.compare(v[e],I);if(a&&("function"==typeof i?i(I,u):M)){let t=async()=>{if(l in y){let e=y[l];delete y[l],I=await e}else I=await a(u);o()||g({data:I,_k:u}),c[e]=I};p?b.push(t):await t()}else c[e]=I;p||(D=I)}return p&&await Promise.all(b.map(e=>e())),o()||M({_i:n.U}),c},s),S=(0,t.useCallback)(function(e,t){let r="boolean"==typeof t?{revalidate:t}:t||{},a=!1!==r.revalidate;return o?(a&&((0,n.i)(e)?M({_i:!0,_r:r.revalidate}):M({_i:!1,_r:r.revalidate})),arguments.length?w.mutate(e,{...r,revalidate:a}):w.mutate()):u},[o,f]),T=(0,t.useCallback)(e=>{let t;if(!o)return u;let[,a]=(0,n.c)(f,o);if((0,n.e)(e)?t=e(_()):"number"==typeof e&&(t=e),"number"!=typeof t)return u;a({_l:t}),k.current=t;let i=[],[l]=(0,n.c)(f,o),s=null;for(let e=0;e<t;++e){let[t]=(0,n.s)(r(e,s)),[a]=(0,n.c)(f,t),u=t?a().data:n.U;if((0,n.i)(u))return S(l().data);i.push(u),s=u}return S(i)},[o,f,S,_]);return{size:_(),setSize:T,mutate:S,get data(){return w.data},get error(){return w.error},get isValidating(){return w.isValidating},get isLoading(){return w.isLoading}}});var o=e.i(41533),c=e.i(283653);e.s(["useServerPages",0,function(e){let r=e.size??o.PAGE_SIZE,{key:n}=e,{data:a,error:i,isLoading:l,isValidating:u,setSize:f,mutate:d}=s((e,t)=>(0,c.resolveKey)(n(e,t)),c.fetchRoute,{dedupingInterval:500,revalidateOnMount:!0,revalidateOnFocus:!0,revalidateOnReconnect:!0,focusThrottleInterval:1e3,revalidateFirstPage:!1,...e.swr}),m=a??[],g=m.flat(),h=m.at(-1),v=void 0!==h&&h.length>=r,p=(0,t.useRef)(0),y=u&&m.length>0&&p.current>m.length,I=(0,t.useRef)({isValidating:u,setSize:f,pages:m.length});I.current={isValidating:u,setSize:f,pages:m.length};let M=(0,c.resolveKey)(n(0,null)),b="string"==typeof M?M:M?.url;(0,t.useEffect)(()=>{if(b)return(0,c.registerPagedReader)({url:b,refresh:()=>d()})},[b,d]);let D=function(e,r={}){let{enabled:n=!0,margin:a="600px",revision:i}=r,l=(0,t.useRef)(e);l.current=e;let u=(0,t.useRef)(null),s=(0,t.useRef)(null),o=(0,t.useCallback)(e=>{u.current=e},[]);return(0,t.useEffect)(()=>{s.current?.disconnect();let e=u.current;if(e&&n)return s.current=new IntersectionObserver(([e])=>{e.isIntersecting&&l.current()},{root:function(e){let t=e.parentElement;for(;t;){let{overflowY:e}=getComputedStyle(t);if(("auto"===e||"scroll"===e)&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return null}(e),rootMargin:a}),s.current.observe(e),()=>s.current?.disconnect()},[n,a,i]),o}(()=>{let e=I.current;e.isValidating||(p.current=e.pages+1,e.setSize(e.pages+1))},{enabled:v,revision:`${m.length}:${u}`});return{items:g,isLoading:l,isLoadingMore:y,error:i,hasMore:v,sentinelRef:D,refresh:()=>d()}}],661504)},493801,e=>{"use strict";var t=e.i(24708),r=e.i(55545),n=e.i(455024),a=e.i(99151),i=e.i(845110),l=e.i(281092),u=e.i(234662);e.s(["formatDistanceToNowStrict",0,function(e,s){return function(e,t,s){var o;let c,f,d=(0,n.getDefaultOptions)(),m=s?.locale??d.locale??r.defaultLocale,g=(f=(0,l.toDate)(e)-(0,l.toDate)(t))<0?-1:f>0?1:f;if(isNaN(g))throw RangeError("Invalid time value");let h=Object.assign({},s,{addSuffix:s?.addSuffix,comparison:g}),[v,p]=(0,i.normalizeDates)(s?.in,...g>0?[t,e]:[e,t]),y=(o=s?.roundingMethod??"round",e=>{let t=(o?Math[o]:Math.trunc)(e);return 0===t?0:t}),I=p.getTime()-v.getTime(),M=I/u.millisecondsInMinute,b=(I-((0,a.getTimezoneOffsetInMilliseconds)(p)-(0,a.getTimezoneOffsetInMilliseconds)(v)))/u.millisecondsInMinute,D=s?.unit;if("second"===(c=D||(M<1?"second":M<60?"minute":M<u.minutesInDay?"hour":b<u.minutesInMonth?"day":b<u.minutesInYear?"month":"year"))){let e=y(I/1e3);return m.formatDistance("xSeconds",e,h)}if("minute"===c){let e=y(M);return m.formatDistance("xMinutes",e,h)}if("hour"===c){let e=y(M/60);return m.formatDistance("xHours",e,h)}if("day"===c){let e=y(b/u.minutesInDay);return m.formatDistance("xDays",e,h)}if("month"===c){let e=y(b/u.minutesInMonth);return 12===e&&"month"!==D?m.formatDistance("xYears",1,h):m.formatDistance("xMonths",e,h)}else{let e=y(b/u.minutesInYear);return m.formatDistance("xYears",e,h)}}(e,(0,t.constructNow)(e),s)}],493801)},759659,e=>{"use strict";var t=e.i(456420);let r={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};r.node;let n=(0,t.default)(r);e.s(["Trash2",0,n],759659)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,41533,t=>{"use strict";var s=t.i(247167);s.default.env.THURSDAY_APP_DIR?.trim()||s.default.cwd(),s.default.env.THURSDAY_HOME?.trim()||s.default.cwd(),s.default.env.THURSDAY_URL?.trim()||s.default.env.PORT?.trim();let a=".ai-workspace",e={workspace:a,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",skills:{default:"skills",custom:`${a}/.agents/skills`}};t.s(["APP_NAME",0,"Thursday","ARTIFACT_VIEW",0,{rows:200,setFiles:120},"ASCII_FACE",0,{charset:"emojiOnly",fontSize:{default:8,min:4,max:16},density:{default:1.4,min:.6,max:2}},"BOT_RUN",0,{steps:100,compactAt:5e5,compactHeadroom:.8,summaryWords:{min:600,max:3e3,perTokens:200},depth:2,askBack:3,silenceMs:3e5,autoResumes:3,retryAfterMs:[3e4,12e4,3e5],overflowShrink:.6,compactFiles:40},"BROWSER_SKILL",0,"browser","CALL_HISTORY_PAGE",0,10,"IS_DEV",0,!1,"PAGE_SIZE",0,50,"PATHS",0,e,"PROMPT_CROWDED",0,{bots:10,skills:20},"STUDIO_SERVER",0,"studio","WORKSPACE_VIEW",0,{rows:200,textMax:524288,elementMax:0x3200000}])},621285,616172,177373,t=>{"use strict";var s=t.i(843476),a=t.i(271645),e=t.i(798120),l=t.i(167881),i=t.i(630374),n=t.i(683408),c=t.i(671428),r=t.i(647163);function h({className:t,...a}){return(0,s.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,s.jsx)("table",{"data-slot":"table",className:(0,r.cn)("w-full caption-bottom text-sm",t),...a})})}function o({className:t,...a}){return(0,s.jsx)("thead",{"data-slot":"table-header",className:(0,r.cn)("[&_tr]:border-b",t),...a})}function m({className:t,...a}){return(0,s.jsx)("tbody",{"data-slot":"table-body",className:(0,r.cn)("[&_tr:last-child]:border-0",t),...a})}function u({className:t,...a}){return(0,s.jsx)("tr",{"data-slot":"table-row",className:(0,r.cn)("border-b border-border/60 transition-colors data-[state=selected]:bg-muted hover:bg-muted/40",t),...a})}function d({className:t,...a}){return(0,s.jsx)("th",{"data-slot":"table-head",className:(0,r.cn)("h-9 px-2 text-left align-middle font-mono text-[11px] font-normal tracking-[0.1em] whitespace-nowrap text-muted-foreground uppercase [&:has([role=checkbox])]:pr-0",t),...a})}function k({className:t,...a}){return(0,s.jsx)("td",{"data-slot":"table-cell",className:(0,r.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0",t),...a})}var p=t.i(41533);let j=t=>`text/${t}; charset=utf-8`,v={md:{kind:"markdown",mime:j("markdown")},markdown:{kind:"markdown",mime:j("markdown")},csv:{kind:"csv",mime:j("csv")},json:{kind:"json",mime:"application/json; charset=utf-8"},txt:{kind:"text",mime:j("plain")},log:{kind:"text",mime:j("plain")},html:{kind:"frame",mime:j("html")},htm:{kind:"frame",mime:j("html")},pdf:{kind:"frame",mime:"application/pdf"},png:{kind:"image",mime:"image/png"},jpg:{kind:"image",mime:"image/jpeg"},jpeg:{kind:"image",mime:"image/jpeg"},gif:{kind:"image",mime:"image/gif"},webp:{kind:"image",mime:"image/webp"},svg:{kind:"image",mime:"image/svg+xml"},mp3:{kind:"audio",mime:"audio/mpeg"},wav:{kind:"audio",mime:"audio/wav"},mp4:{kind:"video",mime:"video/mp4"},webm:{kind:"video",mime:"video/webm"},css:{kind:"none",mime:j("css")},js:{kind:"none",mime:j("javascript")},woff2:{kind:"none",mime:"font/woff2"}},g=t=>v[t.split(".").pop()?.toLowerCase()??""]?.kind??"none",w=Object.entries(v).filter(([,t])=>"none"!==t.kind).map(([t])=>t),f=RegExp(String.raw`(?<![\p{L}\p{N}_/:@%-])(?:[\p{L}\p{N}_.@%-]+/)*[\p{L}\p{N}_@%-]+(?:\.[\p{L}\p{N}_-]+)*\.(?:${w.join("|")})\b`,"giu"),P=`${p.PATHS.workspace}/`;function y(t){let s=t.trim(),a=s.indexOf(P);return a>=0?s.slice(a+P.length)||null:s.startsWith("/")||/^[A-Za-z]:/.test(s)||s.split("/").includes("..")?null:s||null}t.s(["pathsIn",0,function(t){let s=t.replace(/\b[a-z][\w+.-]*:\/\/\S+/gi," "),a=new Set;for(let t of s.match(f)??[]){let s=function(t){let s=y(t);if(!s)return null;let[a,...e]=s.split("/");return e.length&&a.includes(".")?null:s}(t);s&&a.add(s)}return[...a].slice(0,6)},"viewKindOf",0,g,"workspaceRelative",0,y],616172);var x=t.i(95187);let b=(0,x.createServerReference)("7f4957e151a50cd41ee138dc20323d2118d625a8e9",x.callServer,void 0,x.findSourceMapURL,"openFileAction");t.s(["openFileAction",0,b],177373);var z=t.i(609856);let _=new Set(["frame","image","audio","video"]);function q(t){let s=y(t);if(!s)return{how:"os"};let a=g(s);return _.has(a)?{how:"tab",path:s,href:e.queryKey.fileView(s)}:"none"===a?{how:"os"}:{how:"dialog",path:s}}let N=(0,a.createContext)(null),S={dialog:{prose:"px-5 py-4",block:"px-4 py-3"},page:{prose:"px-5 py-6 sm:px-8",block:"px-5 py-5"},inline:{prose:"pb-3",block:"pb-3"}};function C({kind:t,content:a,truncated:e,where:l="dialog"}){return(0,s.jsxs)(s.Fragment,{children:[null!=e&&(0,s.jsx)(B,{of:e}),(0,s.jsx)(R,{kind:t,content:a,where:l})]})}function B({of:t}){return(0,s.jsxs)("p",{className:"border-b border-border/60 px-5 py-2.5 font-mono text-[11px] text-muted-foreground",children:[`Showing the first ${(0,r.formatBytes)(p.WORKSPACE_VIEW.textMax)} of ${(0,r.formatBytes)(t)}. `,"Open the file itself for the rest."]})}function R({kind:t,content:a,where:e}){let l=S[e];switch(t){case"markdown":return(0,s.jsx)("div",{className:(0,r.cn)("min-w-0 text-sm leading-relaxed",l.prose),children:(0,s.jsx)(n.Markdown,{children:a})});case"csv":return(0,s.jsx)(L,{content:a,className:l.block});case"json":return(0,s.jsx)(A,{text:function(t){try{return JSON.stringify(JSON.parse(t),null,2)}catch{return t}}(a),className:l.block});default:return(0,s.jsx)(A,{text:a,className:l.block})}}function T(t){let[s,l]=(0,a.useState)(null),[i,n]=(0,a.useState)(null),[c,h]=(0,a.useState)(null);return(0,a.useEffect)(()=>{if(!t)return;l(null),n(null),h(null);let s=!1;return fetch(e.queryKey.file(t),{headers:{range:`bytes=0-${p.WORKSPACE_VIEW.textMax-1}`}}).then(async t=>{if(!t.ok)throw Error(await t.text());return{text:await t.text(),of:function(t){let s=t.headers.get("content-range")?.match(/^bytes \d+-(\d+)\/(\d+)$/);if(!s)return null;let[,a,e]=s.map(Number);return a+1<e?e:null}(t)}}).then(({text:t,of:a})=>{s||(l(null===a?t:t.slice(0,t.lastIndexOf("\n")+1||void 0)),h(a))}).catch(t=>!s&&n((0,r.errorToString)(t))),()=>{s=!0}},[t]),{content:s,failure:i,truncated:c}}function E({path:t,bytes:a}){let[e,i]=(0,z.useServerAction)(b);return(0,s.jsxs)("div",{className:"space-y-4 p-8",children:[(0,s.jsxs)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:[`This file is ${(0,r.formatBytes)(a)} — too big to draw here without `,"taking the window with it. Open it where it is instead."]}),(0,s.jsx)(l.Button,{variant:"outline",loading:i,onClick:()=>e(t),children:"Reveal in the file manager"})]})}function $({path:t,kind:a,onClose:e}){let{content:l,failure:n,truncated:r}=T(t),h=t?.split("/").pop()??"";return(0,s.jsx)(i.Dialog,{open:null!==t,onOpenChange:t=>!t&&e(),children:(0,s.jsxs)(i.DialogContent,{className:"flex max-h-[calc(100vh-3rem)] flex-col gap-0 overflow-hidden p-0 sm:max-w-4xl",children:[(0,s.jsx)(i.DialogTitle,{className:"sr-only",children:h}),(0,s.jsx)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border/60 px-4 py-2.5 pr-12",children:(0,s.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[12px]",children:t})}),(0,s.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:n?(0,s.jsx)("p",{className:"p-5 font-mono text-xs text-destructive",children:n}):null===l?(0,s.jsxs)("div",{className:"space-y-3 p-5",children:[(0,s.jsx)(c.Skeleton,{className:"h-5 w-2/3"}),(0,s.jsx)(c.Skeleton,{className:"h-4 w-full"}),(0,s.jsx)(c.Skeleton,{className:"h-4 w-5/6"})]}):(0,s.jsx)(C,{kind:a,content:l,truncated:r})})]})})}function A({text:t,className:a}){return(0,s.jsx)("pre",{className:(0,r.cn)("overflow-x-auto font-mono text-[12px] leading-relaxed whitespace-pre-wrap text-foreground/90",a),children:t})}function L({content:t,className:e}){let[l,...i]=(0,a.useMemo)(()=>(function(t){let s=[],a=[],e="",l=!1;for(let i=0;i<t.length;i++){let n=t[i];l?'"'===n&&'"'===t[i+1]?(e+='"',i++):'"'===n?l=!1:e+=n:'"'===n?l=!0:","===n?(a.push(e),e=""):"\n"===n||"\r"===n?("\r"===n&&"\n"===t[i+1]&&i++,a.push(e),s.push(a),a=[],e=""):e+=n}return(e.length||a.length)&&(a.push(e),s.push(a)),s.filter(t=>t.some(t=>t.trim()))})(t),[t]);return l?(0,s.jsx)("div",{className:(0,r.cn)("overflow-x-auto",e),children:(0,s.jsxs)(h,{children:[(0,s.jsx)(o,{children:(0,s.jsx)(u,{children:l.map((t,a)=>(0,s.jsx)(d,{className:"whitespace-nowrap",children:t},`${a}-${t}`))})}),(0,s.jsx)(m,{children:i.map((t,a)=>(0,s.jsx)(u,{children:l.map((e,l)=>(0,s.jsx)(k,{className:"whitespace-nowrap",children:t[l]??""},`${a}-${l}`))},`${a}-${t[0]??""}`))})]})}):(0,s.jsx)(A,{text:t,className:e})}t.s(["FileBody",0,C,"FileDialog",0,$,"FileLink",0,function({path:t,className:l,title:i,label:n,children:c}){let r=q(t),h=(0,a.useContext)(N),[o,m]=(0,z.useServerAction)(b);return"tab"===r.how?(0,s.jsx)("a",{href:r.href,target:"_blank",rel:"noreferrer",title:i??t,"aria-label":n,className:l,children:c}):(0,s.jsx)("button",{type:"button",disabled:m,title:i??t,"aria-label":n,className:l,onClick:()=>{"dialog"===r.how?h?h(r.path):window.open(e.queryKey.fileView(r.path),"_blank"):o(t)},children:c})},"FilePreview",0,function({path:t,bytes:a}){let l=g(t),{content:i,failure:n,truncated:r}=T(_.has(l)?null:t);return("frame"===l||"image"===l)&&a>p.WORKSPACE_VIEW.elementMax?(0,s.jsx)(E,{path:t,bytes:a}):"frame"===l?(0,s.jsx)("iframe",{title:t,src:e.queryKey.file(t),allow:"clipboard-read; clipboard-write; fullscreen; autoplay",className:"h-full w-full bg-white"}):"image"===l?(0,s.jsx)("img",{src:e.queryKey.file(t),alt:t,className:"mx-auto max-w-full p-6"}):"audio"===l||"video"===l?"audio"===l?(0,s.jsx)("audio",{controls:!0,src:e.queryKey.file(t),className:"w-full p-6",children:(0,s.jsx)("track",{kind:"captions"})}):(0,s.jsx)("video",{controls:!0,src:e.queryKey.file(t),className:"max-w-full p-6",children:(0,s.jsx)("track",{kind:"captions"})}):n?(0,s.jsx)("p",{className:"p-5 font-mono text-xs text-destructive",children:n}):null===i?(0,s.jsxs)("div",{className:"space-y-3 p-5",children:[(0,s.jsx)(c.Skeleton,{className:"h-5 w-2/3"}),(0,s.jsx)(c.Skeleton,{className:"h-4 w-full"}),(0,s.jsx)(c.Skeleton,{className:"h-4 w-5/6"})]}):(0,s.jsx)(C,{kind:l,content:i,truncated:r})},"FileViewer",0,function({children:t}){let[e,l]=(0,a.useState)(null);return(0,s.jsxs)(N,{value:l,children:[t,(0,s.jsx)($,{path:e,kind:e?g(e):"text",onClose:()=>l(null)})]})},"fileTarget",0,q,"useFileText",0,T,"useOpenFile",0,function(){let t=(0,a.useContext)(N);return(0,a.useCallback)(s=>{let a=q(s);if("os"===a.how)return!1;if("dialog"===a.how&&t)return t(a.path),!0;let l="tab"===a.how?a.href:e.queryKey.fileView(a.path);return null!==window.open(l,"_blank")},[t])}],621285)},516690,t=>{t.v(s=>Promise.all(["static/chunks/0teeo9xl5wnnq.js"].map(s=>t.l(s))).then(()=>s(395360)))},274435,t=>{t.v(s=>Promise.all(["static/chunks/1wiw0gk7-qp8i.js"].map(s=>t.l(s))).then(()=>s(249740)))},796339,t=>{t.v(s=>Promise.all(["static/chunks/0w_ja4ciemrbk.js"].map(s=>t.l(s))).then(()=>s(948115)))},196546,t=>{t.v(s=>Promise.all(["static/chunks/3zx2nr3-vl_eh.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(365711)))},60308,t=>{t.v(s=>Promise.all(["static/chunks/18ov-ugtitlq2.js","static/chunks/1ozmtvibzzync.js","static/chunks/0iowzpfymsgpq.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(148707)))},608734,t=>{t.v(s=>Promise.all(["static/chunks/0p3bmx6ek0qp8.js"].map(s=>t.l(s))).then(()=>s(398778)))},902952,t=>{t.v(s=>Promise.all(["static/chunks/0q82iw85zo1m8.js"].map(s=>t.l(s))).then(()=>s(262053)))},814026,t=>{t.v(s=>Promise.all(["static/chunks/1txgr9-t0s4je.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(922608)))},210042,t=>{t.v(s=>Promise.all(["static/chunks/1qwswx0hjsw00.js"].map(s=>t.l(s))).then(()=>s(894523)))},327701,t=>{t.v(s=>Promise.all(["static/chunks/0r5gq9qo4arwu.js"].map(s=>t.l(s))).then(()=>s(641837)))},864940,t=>{t.v(s=>Promise.all(["static/chunks/0r3z95rc2ypfx.js"].map(s=>t.l(s))).then(()=>s(730184)))},581996,t=>{t.v(s=>Promise.all(["static/chunks/0t5b3chki_9fl.js"].map(s=>t.l(s))).then(()=>s(625004)))},185223,t=>{t.v(s=>Promise.all(["static/chunks/2g-myvn_f_a_4.js","static/chunks/16vtcomz233wa.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/31rpioh8q87-5.js"].map(s=>t.l(s))).then(()=>s(484803)))},577689,t=>{t.v(s=>Promise.all(["static/chunks/0-mnxu8ow6er0.js"].map(s=>t.l(s))).then(()=>s(401885)))},887861,t=>{t.v(s=>Promise.all(["static/chunks/05m1q2yic6i_6.js"].map(s=>t.l(s))).then(()=>s(545199)))},769047,t=>{t.v(s=>Promise.all(["static/chunks/0n7sj9xm17ln0.js"].map(s=>t.l(s))).then(()=>s(135626)))},566005,t=>{t.v(s=>Promise.all(["static/chunks/20p5cex0-ilx3.js"].map(s=>t.l(s))).then(()=>s(532400)))},64129,t=>{t.v(s=>Promise.all(["static/chunks/1hoe492g5-o2q.js"].map(s=>t.l(s))).then(()=>s(770767)))},686785,t=>{t.v(s=>Promise.all(["static/chunks/40epaf180rm_o.js"].map(s=>t.l(s))).then(()=>s(770913)))},234475,t=>{t.v(s=>Promise.all(["static/chunks/3v2r9tkahr03c.js"].map(s=>t.l(s))).then(()=>s(427540)))},273197,t=>{t.v(s=>Promise.all(["static/chunks/26elp1iu9_rfo.js"].map(s=>t.l(s))).then(()=>s(574536)))},184291,t=>{t.v(s=>Promise.all(["static/chunks/3y2yeb8hqhgma.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2-ohkulfwwqkp.js"].map(s=>t.l(s))).then(()=>s(294139)))},254810,t=>{t.v(s=>Promise.all(["static/chunks/31srg3-v_-3ex.js"].map(s=>t.l(s))).then(()=>s(124527)))},715630,t=>{t.v(s=>Promise.all(["static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(39516)))},721406,t=>{t.v(s=>Promise.all(["static/chunks/251ctc7y-p1x6.js"].map(s=>t.l(s))).then(()=>s(55582)))},928418,t=>{t.v(s=>Promise.all(["static/chunks/3svu996x25pgh.js"].map(s=>t.l(s))).then(()=>s(324330)))},496018,t=>{t.v(s=>Promise.all(["static/chunks/10a6xv-y_2nwl.js","static/chunks/36oxg-33dy_jz.js"].map(s=>t.l(s))).then(()=>s(944027)))},268805,t=>{t.v(s=>Promise.all(["static/chunks/3xpdaet8dw9x9.js"].map(s=>t.l(s))).then(()=>s(732548)))},885670,t=>{t.v(s=>Promise.all(["static/chunks/1ctnkqxh0n4u3.js"].map(s=>t.l(s))).then(()=>s(218663)))},850277,t=>{t.v(s=>Promise.all(["static/chunks/28t2bvti86a67.js"].map(s=>t.l(s))).then(()=>s(774228)))},608435,t=>{t.v(s=>Promise.all(["static/chunks/2urfmi-h-efgc.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(183824)))},677655,t=>{t.v(s=>Promise.all(["static/chunks/07o4ns4nqda4i.js"].map(s=>t.l(s))).then(()=>s(773966)))},393919,t=>{t.v(s=>Promise.all(["static/chunks/1-vnisuyudqdj.js"].map(s=>t.l(s))).then(()=>s(135921)))},499510,t=>{t.v(s=>Promise.all(["static/chunks/34asi35tmks9s.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(694693)))},314583,t=>{t.v(s=>Promise.all(["static/chunks/368hf3scqy9et.js"].map(s=>t.l(s))).then(()=>s(694899)))},138305,t=>{t.v(s=>Promise.all(["static/chunks/02cmf-0vz-j0l.js"].map(s=>t.l(s))).then(()=>s(98254)))},162895,t=>{t.v(s=>Promise.all(["static/chunks/446dwbh9a1brd.js","static/chunks/2ro2w2784zwl0.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(750497)))},715822,t=>{t.v(s=>Promise.all(["static/chunks/45c7xyr85-p84.js","static/chunks/1vpp0zxc5amhf.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(276426)))},156548,t=>{t.v(s=>Promise.all(["static/chunks/1px0m_9u11val.js"].map(s=>t.l(s))).then(()=>s(804440)))},68853,t=>{t.v(s=>Promise.all(["static/chunks/04kziyzzvkmhl.js"].map(s=>t.l(s))).then(()=>s(174708)))},508072,t=>{t.v(s=>Promise.all(["static/chunks/1fw3www6hshi2.js"].map(s=>t.l(s))).then(()=>s(717147)))},379420,t=>{t.v(s=>Promise.all(["static/chunks/07fixed86aya_.js"].map(s=>t.l(s))).then(()=>s(517328)))},901081,t=>{t.v(s=>Promise.all(["static/chunks/2sj3ymj88_zus.js"].map(s=>t.l(s))).then(()=>s(820123)))},732086,t=>{t.v(s=>Promise.all(["static/chunks/0n0bzpsdtg893.js"].map(s=>t.l(s))).then(()=>s(293222)))},8814,t=>{t.v(s=>Promise.all(["static/chunks/16zbzmvpg2ww4.js"].map(s=>t.l(s))).then(()=>s(333824)))},706010,t=>{t.v(s=>Promise.all(["static/chunks/0s54dho0z8p6j.js"].map(s=>t.l(s))).then(()=>s(258271)))},611671,t=>{t.v(s=>Promise.all(["static/chunks/2_jhl4ez3w5lm.js"].map(s=>t.l(s))).then(()=>s(612944)))},499264,t=>{t.v(s=>Promise.all(["static/chunks/0f4x882qymosc.js"].map(s=>t.l(s))).then(()=>s(289460)))},964927,t=>{t.v(s=>Promise.all(["static/chunks/09k-wbu71lfrt.js"].map(s=>t.l(s))).then(()=>s(551327)))},86855,t=>{t.v(s=>Promise.all(["static/chunks/1dd6qzaoby04o.js"].map(s=>t.l(s))).then(()=>s(12522)))},955357,t=>{t.v(s=>Promise.all(["static/chunks/34678qecnnj_h.js"].map(s=>t.l(s))).then(()=>s(217285)))},40814,t=>{t.v(s=>Promise.all(["static/chunks/3paqvl_z7hv3n.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(164704)))},534593,t=>{t.v(s=>Promise.all(["static/chunks/0_lh4_g7vdhq1.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(805100)))},80402,t=>{t.v(s=>Promise.all(["static/chunks/3qum31hte42y1.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(709757)))},659962,t=>{t.v(s=>Promise.all(["static/chunks/1u8j3eb8for0y.js"].map(s=>t.l(s))).then(()=>s(563571)))},655306,t=>{t.v(s=>Promise.all(["static/chunks/3qlz6dwx-4wpg.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3tq8wpaa3ie4_.js","static/chunks/31rpioh8q87-5.js","static/chunks/2six92-4e054u.js","static/chunks/2ro2w2784zwl0.js"].map(s=>t.l(s))).then(()=>s(24609)))},379291,t=>{t.v(s=>Promise.all(["static/chunks/16ya3783k-z1s.js"].map(s=>t.l(s))).then(()=>s(329263)))},56334,t=>{t.v(s=>Promise.all(["static/chunks/0u__wtz-jozok.js"].map(s=>t.l(s))).then(()=>s(970013)))},955953,t=>{t.v(s=>Promise.all(["static/chunks/1jz5jakghqd9v.js"].map(s=>t.l(s))).then(()=>s(274265)))},372286,t=>{t.v(s=>Promise.all(["static/chunks/2jhadmpmcpdrj.js"].map(s=>t.l(s))).then(()=>s(146027)))},709599,t=>{t.v(s=>Promise.all(["static/chunks/2tfc-naqg7z-u.js","static/chunks/319502xf-tnxv.js"].map(s=>t.l(s))).then(()=>s(774293)))},417187,t=>{t.v(s=>Promise.all(["static/chunks/319502xf-tnxv.js"].map(s=>t.l(s))).then(()=>s(363400)))},106583,t=>{t.v(s=>Promise.all(["static/chunks/28-z_wt6ndz-b.js"].map(s=>t.l(s))).then(()=>s(576577)))},600350,t=>{t.v(s=>Promise.all(["static/chunks/3hwj-0h-0-lla.js"].map(s=>t.l(s))).then(()=>s(823068)))},718592,t=>{t.v(s=>Promise.all(["static/chunks/00uuedu6-4dre.js"].map(s=>t.l(s))).then(()=>s(129659)))},964292,t=>{t.v(s=>Promise.all(["static/chunks/10jgwafb21-7w.js"].map(s=>t.l(s))).then(()=>s(961451)))},251227,t=>{t.v(s=>Promise.all(["static/chunks/3_8v942h1s07y.js"].map(s=>t.l(s))).then(()=>s(869943)))},781674,t=>{t.v(s=>Promise.all(["static/chunks/0uud_z0v566uf.js"].map(s=>t.l(s))).then(()=>s(143691)))},765886,t=>{t.v(s=>Promise.all(["static/chunks/3mk3dcnt98mri.js"].map(s=>t.l(s))).then(()=>s(640067)))},643635,t=>{t.v(s=>Promise.all(["static/chunks/0ftzs9_34hr49.js"].map(s=>t.l(s))).then(()=>s(118337)))},469752,t=>{t.v(s=>Promise.all(["static/chunks/0qo6w-wynmd7q.js"].map(s=>t.l(s))).then(()=>s(598277)))},220210,t=>{t.v(s=>Promise.all(["static/chunks/43x-wo-t6g20f.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(872516)))},952204,t=>{t.v(s=>Promise.all(["static/chunks/2qqx13x1_na_q.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(405817)))},615932,t=>{t.v(s=>Promise.all(["static/chunks/2nuuq6y_mebd9.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(238102)))},846517,t=>{t.v(s=>Promise.all(["static/chunks/22e7k4k061g55.js"].map(s=>t.l(s))).then(()=>s(289319)))},334810,t=>{t.v(s=>Promise.all(["static/chunks/17pegra88jm_q.js"].map(s=>t.l(s))).then(()=>s(466502)))},518233,t=>{t.v(s=>Promise.all(["static/chunks/2e7ddq5vayqre.js"].map(s=>t.l(s))).then(()=>s(902077)))},527502,t=>{t.v(s=>Promise.all(["static/chunks/0vuwq9sa14vne.js","static/chunks/3tq8wpaa3ie4_.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/31rpioh8q87-5.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(564011)))},783131,t=>{t.v(s=>Promise.all(["static/chunks/324t9a-cp4u8q.js"].map(s=>t.l(s))).then(()=>s(394796)))},866363,t=>{t.v(s=>Promise.all(["static/chunks/17tgaro217rkw.js","static/chunks/3v4h-8da4l5p7.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(416128)))},936482,t=>{t.v(s=>Promise.all(["static/chunks/38lhx55kr9dl6.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(23141)))},219104,t=>{t.v(s=>Promise.all(["static/chunks/1jbxee7jz6bbc.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(892708)))},982274,t=>{t.v(s=>Promise.all(["static/chunks/0_9ky7_0gqp29.js"].map(s=>t.l(s))).then(()=>s(375491)))},843593,t=>{t.v(s=>Promise.all(["static/chunks/1niiwgkyydxzm.js"].map(s=>t.l(s))).then(()=>s(462002)))},392582,t=>{t.v(s=>Promise.all(["static/chunks/21xei27jfzp7x.js"].map(s=>t.l(s))).then(()=>s(40781)))},32395,t=>{t.v(s=>Promise.all(["static/chunks/16hinmy0f-glt.js"].map(s=>t.l(s))).then(()=>s(609979)))},336975,t=>{t.v(s=>Promise.all(["static/chunks/0zgg9c0-wj935.js"].map(s=>t.l(s))).then(()=>s(563498)))},736812,t=>{t.v(s=>Promise.all(["static/chunks/3uf4bpnwlk9hu.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(662407)))},615475,t=>{t.v(s=>Promise.all(["static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(346619)))},722332,t=>{t.v(s=>Promise.all(["static/chunks/1zse9_sq278z3.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1ebo_riinwqq8.js","static/chunks/31rpioh8q87-5.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(679394)))},77996,t=>{t.v(s=>Promise.all(["static/chunks/1u06mkqc8lt5y.js","static/chunks/31rpioh8q87-5.js","static/chunks/3tq8wpaa3ie4_.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(546754)))},412671,t=>{t.v(s=>Promise.all(["static/chunks/2id4c69a8l7tw.js"].map(s=>t.l(s))).then(()=>s(788619)))},98975,t=>{t.v(s=>Promise.all(["static/chunks/1k3nt_5za2_5v.js"].map(s=>t.l(s))).then(()=>s(894666)))},221794,t=>{t.v(s=>Promise.all(["static/chunks/0ju2q95btugv1.js"].map(s=>t.l(s))).then(()=>s(904077)))},712237,t=>{t.v(s=>Promise.all(["static/chunks/1oyr1d-wo_dr-.js"].map(s=>t.l(s))).then(()=>s(251070)))},25004,t=>{t.v(s=>Promise.all(["static/chunks/1ggeg-sqe8ngu.js"].map(s=>t.l(s))).then(()=>s(388943)))},792799,t=>{t.v(s=>Promise.all(["static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(122952)))},300535,t=>{t.v(s=>Promise.all(["static/chunks/1xlbhszlykr4p.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(776627)))},299868,t=>{t.v(s=>Promise.all(["static/chunks/335-38r54vx4c.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(313300)))},692658,t=>{t.v(s=>Promise.all(["static/chunks/39sp7w7wcwxjl.js"].map(s=>t.l(s))).then(()=>s(866695)))},145390,t=>{t.v(s=>Promise.all(["static/chunks/0kmw809wgqjkq.js"].map(s=>t.l(s))).then(()=>s(948742)))},459901,t=>{t.v(s=>Promise.all(["static/chunks/0z36xjjyl3kid.js"].map(s=>t.l(s))).then(()=>s(75400)))},844018,t=>{t.v(s=>Promise.all(["static/chunks/2t-fmsms_i3sr.js"].map(s=>t.l(s))).then(()=>s(380021)))},932597,t=>{t.v(s=>Promise.all(["static/chunks/3a7qna12wpg2h.js"].map(s=>t.l(s))).then(()=>s(45900)))},386493,t=>{t.v(s=>Promise.all(["static/chunks/3xcqoeizdjzn2.js"].map(s=>t.l(s))).then(()=>s(398160)))},287672,t=>{t.v(s=>Promise.all(["static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(823760)))},148045,t=>{t.v(s=>Promise.all(["static/chunks/36oxg-33dy_jz.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/2ro2w2784zwl0.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3_ue_94qji2lm.js"].map(s=>t.l(s))).then(()=>s(134812)))},704538,t=>{t.v(s=>Promise.all(["static/chunks/1crpy7f655-f-.js","static/chunks/29kou1oqg257y.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/36oxg-33dy_jz.js","static/chunks/31rpioh8q87-5.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2ro2w2784zwl0.js","static/chunks/1ozmtvibzzync.js","static/chunks/2six92-4e054u.js","static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(398122)))},522051,t=>{t.v(s=>Promise.all(["static/chunks/1t8ujmkza6s35.js"].map(s=>t.l(s))).then(()=>s(281694)))},278014,t=>{t.v(s=>Promise.all(["static/chunks/1c0t4bkzgxkho.js"].map(s=>t.l(s))).then(()=>s(376175)))},511938,t=>{t.v(s=>Promise.all(["static/chunks/2n0e6pbzr1vhc.js"].map(s=>t.l(s))).then(()=>s(251031)))},382697,t=>{t.v(s=>Promise.all(["static/chunks/3_3mt55_s_8nf.js","static/chunks/0w75738j7k0f7.js"].map(s=>t.l(s))).then(()=>s(906106)))},106774,t=>{t.v(s=>Promise.all(["static/chunks/2-0-eka22mzly.js"].map(s=>t.l(s))).then(()=>s(548052)))},657069,t=>{t.v(s=>Promise.all(["static/chunks/3ia1uy-ta-wwx.js"].map(s=>t.l(s))).then(()=>s(315754)))},133954,t=>{t.v(s=>Promise.all(["static/chunks/35w79dw14-r51.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(411335)))},969445,t=>{t.v(s=>Promise.all(["static/chunks/3ma22p0pjm53-.js"].map(s=>t.l(s))).then(()=>s(233218)))},532210,t=>{t.v(s=>Promise.all(["static/chunks/1t4tz6qnsit4z.js"].map(s=>t.l(s))).then(()=>s(127844)))},917136,t=>{t.v(s=>Promise.all(["static/chunks/20i3ov2af4zvh.js"].map(s=>t.l(s))).then(()=>s(499412)))},147287,t=>{t.v(s=>Promise.all(["static/chunks/3oyixq96_fa_z.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(950510)))},298173,t=>{t.v(s=>Promise.all(["static/chunks/38rdxmvrwtp57.js"].map(s=>t.l(s))).then(()=>s(372302)))},418877,t=>{t.v(s=>Promise.all(["static/chunks/3pzxtzd-vdn2f.js"].map(s=>t.l(s))).then(()=>s(377217)))},159142,t=>{t.v(s=>Promise.all(["static/chunks/2bk7wc4-ptm-c.js"].map(s=>t.l(s))).then(()=>s(274754)))},644609,t=>{t.v(s=>Promise.all(["static/chunks/13qtfpmkarvmt.js","static/chunks/0bp3uew85t0ry.js","static/chunks/3ia1uy-ta-wwx.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(76277)))},323845,t=>{t.v(s=>Promise.all(["static/chunks/29hqqnd781kvs.js"].map(s=>t.l(s))).then(()=>s(744344)))},367535,t=>{t.v(s=>Promise.all(["static/chunks/1j_bjoxgu91mc.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(635473)))},659189,t=>{t.v(s=>Promise.all(["static/chunks/1q28ddzt1afnq.js"].map(s=>t.l(s))).then(()=>s(857397)))},457619,t=>{t.v(s=>Promise.all(["static/chunks/3-06o0suuf1y4.js"].map(s=>t.l(s))).then(()=>s(368643)))},401626,t=>{t.v(s=>Promise.all(["static/chunks/151lx87jseoly.js"].map(s=>t.l(s))).then(()=>s(321142)))},524176,t=>{t.v(s=>Promise.all(["static/chunks/2asmzjaah8m8z.js"].map(s=>t.l(s))).then(()=>s(747044)))},205353,t=>{t.v(s=>Promise.all(["static/chunks/0hyz-d49g6v3x.js"].map(s=>t.l(s))).then(()=>s(518227)))},847969,t=>{t.v(s=>Promise.all(["static/chunks/1u6au-494n78m.js"].map(s=>t.l(s))).then(()=>s(990800)))},755902,t=>{t.v(s=>Promise.all(["static/chunks/2e150n34zc8g9.js"].map(s=>t.l(s))).then(()=>s(731026)))},272194,t=>{t.v(s=>Promise.all(["static/chunks/05-_p9k102i_g.js"].map(s=>t.l(s))).then(()=>s(874353)))},557638,t=>{t.v(s=>Promise.all(["static/chunks/0v_3gh96z3jaa.js"].map(s=>t.l(s))).then(()=>s(400936)))},47723,t=>{t.v(s=>Promise.all(["static/chunks/3dur64hdd_v7c.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(337476)))},446820,t=>{t.v(s=>Promise.all(["static/chunks/2v-fuc1wwaulc.js","static/chunks/2zxe_jdp_h7n8.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(181320)))},565220,t=>{t.v(s=>Promise.all(["static/chunks/2800ji7zpl6a7.js"].map(s=>t.l(s))).then(()=>s(775253)))},821908,t=>{t.v(s=>Promise.all(["static/chunks/0-a6206-r3j_8.js"].map(s=>t.l(s))).then(()=>s(265932)))},798543,t=>{t.v(s=>Promise.all(["static/chunks/2ovlkdbar4cl8.js"].map(s=>t.l(s))).then(()=>s(873456)))},953213,t=>{t.v(s=>Promise.all(["static/chunks/39upf2vnyk-xq.js"].map(s=>t.l(s))).then(()=>s(573095)))},357016,t=>{t.v(s=>Promise.all(["static/chunks/0jrnpgq-_qp2f.js"].map(s=>t.l(s))).then(()=>s(739360)))},144,t=>{t.v(s=>Promise.all(["static/chunks/273azq8ya_70t.js"].map(s=>t.l(s))).then(()=>s(834527)))},389188,t=>{t.v(s=>Promise.all(["static/chunks/1tcwgfbes5bur.js"].map(s=>t.l(s))).then(()=>s(292052)))},494584,t=>{t.v(s=>Promise.all(["static/chunks/2mgfqtimlpa2_.js"].map(s=>t.l(s))).then(()=>s(386104)))},590087,t=>{t.v(s=>Promise.all(["static/chunks/3rnj3hwd2gpl1.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(362833)))},753525,t=>{t.v(s=>Promise.all(["static/chunks/39sp7w7wcwxjl.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3rudiphv22_sj.js"].map(s=>t.l(s))).then(()=>s(235865)))},506695,t=>{t.v(s=>Promise.all(["static/chunks/16j4idsrg5cyn.js"].map(s=>t.l(s))).then(()=>s(528594)))},985641,t=>{t.v(s=>Promise.all(["static/chunks/1y1vu9-4l76_e.js"].map(s=>t.l(s))).then(()=>s(762570)))},215520,t=>{t.v(s=>Promise.all(["static/chunks/0o66-rbdl-bpr.js"].map(s=>t.l(s))).then(()=>s(767399)))},579736,t=>{t.v(s=>Promise.all(["static/chunks/3bnhh87m-vba3.js"].map(s=>t.l(s))).then(()=>s(793940)))},344743,t=>{t.v(s=>Promise.all(["static/chunks/0lmkqj5bnn1tx.js"].map(s=>t.l(s))).then(()=>s(478163)))},69901,t=>{t.v(s=>Promise.all(["static/chunks/2fx1t7nywz-zx.js"].map(s=>t.l(s))).then(()=>s(293157)))},849765,t=>{t.v(s=>Promise.all(["static/chunks/0uw1nhbzgcr4z.js"].map(s=>t.l(s))).then(()=>s(65260)))},925840,t=>{t.v(s=>Promise.all(["static/chunks/2htbqsoc2bojb.js"].map(s=>t.l(s))).then(()=>s(620602)))},678110,t=>{t.v(s=>Promise.all(["static/chunks/028oldt2v0xyz.js"].map(s=>t.l(s))).then(()=>s(121139)))},710002,t=>{t.v(s=>Promise.all(["static/chunks/3b13ywcpwn31z.js"].map(s=>t.l(s))).then(()=>s(236865)))},753456,t=>{t.v(s=>Promise.all(["static/chunks/1wxrfgphp_7tx.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(487420)))},328116,t=>{t.v(s=>Promise.all(["static/chunks/1eyi5me_bl5mq.js"].map(s=>t.l(s))).then(()=>s(303348)))},762792,t=>{t.v(s=>Promise.all(["static/chunks/012oo6xzblu6s.js"].map(s=>t.l(s))).then(()=>s(122362)))},548436,t=>{t.v(s=>Promise.all(["static/chunks/36oxg-33dy_jz.js"].map(s=>t.l(s))).then(()=>s(265525)))},985774,t=>{t.v(s=>Promise.all(["static/chunks/0xnzoirqkfqgi.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(979978)))},822682,t=>{t.v(s=>Promise.all(["static/chunks/1xcq4o53ccqj-.js"].map(s=>t.l(s))).then(()=>s(777438)))},29273,t=>{t.v(s=>Promise.all(["static/chunks/3wssn6tbdvadr.js"].map(s=>t.l(s))).then(()=>s(12899)))},917431,t=>{t.v(s=>Promise.all(["static/chunks/2w0jipt45km-n.js"].map(s=>t.l(s))).then(()=>s(426182)))},127184,t=>{t.v(s=>Promise.all(["static/chunks/1kkj4dqqizj1g.js"].map(s=>t.l(s))).then(()=>s(569590)))},402999,t=>{t.v(s=>Promise.all(["static/chunks/1abc3xfswhk36.js"].map(s=>t.l(s))).then(()=>s(389508)))},22510,t=>{t.v(s=>Promise.all(["static/chunks/3p-mvzd69i8m_.js","static/chunks/1px0m_9u11val.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(792808)))},392914,t=>{t.v(s=>Promise.all(["static/chunks/3qa8z7ahjfjda.js"].map(s=>t.l(s))).then(()=>s(270093)))},864980,t=>{t.v(s=>Promise.all(["static/chunks/0unfsbpxtuicd.js"].map(s=>t.l(s))).then(()=>s(221610)))},362249,t=>{t.v(s=>Promise.all(["static/chunks/2pma0utbxjpx3.js"].map(s=>t.l(s))).then(()=>s(292310)))},919686,t=>{t.v(s=>Promise.all(["static/chunks/418b-iezadyqk.js"].map(s=>t.l(s))).then(()=>s(513929)))},123169,t=>{t.v(s=>Promise.all(["static/chunks/0-e41flx3-6kr.js"].map(s=>t.l(s))).then(()=>s(495422)))},866973,t=>{t.v(s=>Promise.all(["static/chunks/3trm7ge6o-yl3.js"].map(s=>t.l(s))).then(()=>s(381082)))},580357,t=>{t.v(s=>Promise.all(["static/chunks/0l8oeumi7zreb.js","static/chunks/29kou1oqg257y.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/1ozmtvibzzync.js","static/chunks/36oxg-33dy_jz.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2ro2w2784zwl0.js","static/chunks/31rpioh8q87-5.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/2six92-4e054u.js","static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(428855)))},660137,t=>{t.v(s=>Promise.all(["static/chunks/29kou1oqg257y.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/2ro2w2784zwl0.js","static/chunks/3tq8wpaa3ie4_.js","static/chunks/31rpioh8q87-5.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2six92-4e054u.js"].map(s=>t.l(s))).then(()=>s(259585)))},225837,t=>{t.v(s=>Promise.all(["static/chunks/409byf0ixcxxo.js"].map(s=>t.l(s))).then(()=>s(98542)))},559154,t=>{t.v(s=>Promise.all(["static/chunks/2e7zn6goip-16.js"].map(s=>t.l(s))).then(()=>s(672283)))},428160,t=>{t.v(s=>Promise.all(["static/chunks/2np1b-o9o9lxe.js"].map(s=>t.l(s))).then(()=>s(428978)))},679226,t=>{t.v(s=>Promise.all(["static/chunks/1zexcknv1j-z7.js"].map(s=>t.l(s))).then(()=>s(351908)))},95554,t=>{t.v(s=>Promise.all(["static/chunks/1zch7s-d9ym1d.js"].map(s=>t.l(s))).then(()=>s(843805)))},256229,t=>{t.v(s=>Promise.all(["static/chunks/0bp3uew85t0ry.js"].map(s=>t.l(s))).then(()=>s(455496)))},257294,t=>{t.v(s=>Promise.all(["static/chunks/34vbgf3h6aynb.js"].map(s=>t.l(s))).then(()=>s(763343)))},287646,t=>{t.v(s=>Promise.all(["static/chunks/3py7aam1ahr8d.js"].map(s=>t.l(s))).then(()=>s(470313)))},77876,t=>{t.v(s=>Promise.all(["static/chunks/10ur2oml6p9x4.js"].map(s=>t.l(s))).then(()=>s(883808)))},702789,t=>{t.v(s=>Promise.all(["static/chunks/11b9yf9dfuujx.js"].map(s=>t.l(s))).then(()=>s(713367)))},105404,t=>{t.v(s=>Promise.all(["static/chunks/2dnh5lwhlmqjo.js"].map(s=>t.l(s))).then(()=>s(503988)))},664050,t=>{t.v(s=>Promise.all(["static/chunks/40ei945lllr9w.js"].map(s=>t.l(s))).then(()=>s(80464)))},423766,t=>{t.v(s=>Promise.all(["static/chunks/0ra7vu-67oxip.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(34684)))},471095,t=>{t.v(s=>Promise.all(["static/chunks/2evctkklgum84.js"].map(s=>t.l(s))).then(()=>s(259514)))},713125,t=>{t.v(s=>Promise.all(["static/chunks/2_59ceoqu2j9o.js"].map(s=>t.l(s))).then(()=>s(435493)))},347760,t=>{t.v(s=>Promise.all(["static/chunks/17tgaro217rkw.js"].map(s=>t.l(s))).then(()=>s(588587)))},525380,t=>{t.v(s=>Promise.all(["static/chunks/0txq63lra1gy5.js"].map(s=>t.l(s))).then(()=>s(843156)))},927772,t=>{t.v(s=>Promise.all(["static/chunks/38b2vebizod3f.js"].map(s=>t.l(s))).then(()=>s(286144)))},131592,t=>{t.v(s=>Promise.all(["static/chunks/1-pex3noy3abf.js"].map(s=>t.l(s))).then(()=>s(568096)))},942509,t=>{t.v(s=>Promise.all(["static/chunks/208d1-7kvefg6.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(809240)))},209551,t=>{t.v(s=>Promise.all(["static/chunks/1asjpdf763drn.js","static/chunks/4469hynu4qc3x.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(361218)))},174099,t=>{t.v(s=>Promise.all(["static/chunks/3l445yien52wx.js"].map(s=>t.l(s))).then(()=>s(42)))},401250,t=>{t.v(s=>Promise.all(["static/chunks/2qbs5ja7xij_y.js"].map(s=>t.l(s))).then(()=>s(921955)))},944475,t=>{t.v(s=>Promise.all(["static/chunks/3agxmq5t1fgcm.js"].map(s=>t.l(s))).then(()=>s(775193)))},600538,t=>{t.v(s=>Promise.all(["static/chunks/2osmatdeuj3s-.js"].map(s=>t.l(s))).then(()=>s(705623)))},336651,t=>{t.v(s=>Promise.all(["static/chunks/0obkw0gs46t63.js"].map(s=>t.l(s))).then(()=>s(605927)))},709948,t=>{t.v(s=>Promise.all(["static/chunks/1nax-hzuha2nt.js"].map(s=>t.l(s))).then(()=>s(596338)))},340336,t=>{t.v(s=>Promise.all(["static/chunks/1caj6_s4hafz8.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(461138)))},508436,t=>{t.v(s=>Promise.all(["static/chunks/1flk5q9pa7qsp.js"].map(s=>t.l(s))).then(()=>s(318633)))},155636,t=>{t.v(s=>Promise.all(["static/chunks/3_3mt55_s_8nf.js"].map(s=>t.l(s))).then(()=>s(107395)))},351979,t=>{t.v(s=>Promise.all(["static/chunks/0rc3dvh91j2qq.js"].map(s=>t.l(s))).then(()=>s(40899)))},65678,t=>{t.v(s=>Promise.all(["static/chunks/0n-9icasrt3tr.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/29kou1oqg257y.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(352763)))},841727,t=>{t.v(s=>Promise.all(["static/chunks/1t71kx4hckhdg.js"].map(s=>t.l(s))).then(()=>s(526893)))},557754,t=>{t.v(s=>Promise.all(["static/chunks/31rpioh8q87-5.js"].map(s=>t.l(s))).then(()=>s(578270)))},670454,t=>{t.v(s=>Promise.all(["static/chunks/42lcx54bokm4l.js"].map(s=>t.l(s))).then(()=>s(891579)))},670515,t=>{t.v(s=>Promise.all(["static/chunks/2fkhtkfyegbfl.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/36oxg-33dy_jz.js","static/chunks/3rudiphv22_sj.js","static/chunks/2ro2w2784zwl0.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/31rpioh8q87-5.js","static/chunks/2six92-4e054u.js","static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(259443)))},48460,t=>{t.v(s=>Promise.all(["static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(3737)))},744538,t=>{t.v(s=>Promise.all(["static/chunks/38f2w40jfofcx.js"].map(s=>t.l(s))).then(()=>s(610648)))},963321,t=>{t.v(s=>Promise.all(["static/chunks/2keoa22_a2i05.js"].map(s=>t.l(s))).then(()=>s(717620)))},43837,t=>{t.v(s=>Promise.all(["static/chunks/3iufy6ir2ow_s.js"].map(s=>t.l(s))).then(()=>s(476205)))},830536,t=>{t.v(s=>Promise.all(["static/chunks/0dum5lyb1kgdu.js"].map(s=>t.l(s))).then(()=>s(18661)))},785051,t=>{t.v(s=>Promise.all(["static/chunks/3iooxhh1ig5bw.js"].map(s=>t.l(s))).then(()=>s(938702)))},586017,t=>{t.v(s=>Promise.all(["static/chunks/17z996osqxkqt.js"].map(s=>t.l(s))).then(()=>s(588430)))},495694,t=>{t.v(s=>Promise.all(["static/chunks/0h-2v5t5yj2f3.js"].map(s=>t.l(s))).then(()=>s(562973)))},404547,t=>{t.v(s=>Promise.all(["static/chunks/1idh9y3ry9ztt.js"].map(s=>t.l(s))).then(()=>s(44445)))},160550,t=>{t.v(s=>Promise.all(["static/chunks/2tslt-7b091nm.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(338022)))},109,t=>{t.v(s=>Promise.all(["static/chunks/1mi-5-8zn56-m.js","static/chunks/0bp3uew85t0ry.js","static/chunks/1qil2ska-_5gi.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3ia1uy-ta-wwx.js"].map(s=>t.l(s))).then(()=>s(534365)))},934329,t=>{t.v(s=>Promise.all(["static/chunks/2cl_2bjqc1lsc.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(532041)))},834235,t=>{t.v(s=>Promise.all(["static/chunks/3c5h1ejnae2s_.js"].map(s=>t.l(s))).then(()=>s(288188)))},879931,t=>{t.v(s=>Promise.all(["static/chunks/0tbmf55xnq95w.js"].map(s=>t.l(s))).then(()=>s(997855)))},738463,t=>{t.v(s=>Promise.all(["static/chunks/41klrxz2-ykw3.js"].map(s=>t.l(s))).then(()=>s(786105)))},464547,t=>{t.v(s=>Promise.all(["static/chunks/1g4yzqc8g06o2.js"].map(s=>t.l(s))).then(()=>s(995255)))},74196,t=>{t.v(s=>Promise.all(["static/chunks/1pgom6axjfimi.js"].map(s=>t.l(s))).then(()=>s(786142)))},926245,t=>{t.v(s=>Promise.all(["static/chunks/00f7egm3k9vam.js"].map(s=>t.l(s))).then(()=>s(829634)))},998654,t=>{t.v(s=>Promise.all(["static/chunks/0gklkn8q2umf3.js"].map(s=>t.l(s))).then(()=>s(121147)))},160115,t=>{t.v(s=>Promise.all(["static/chunks/0-rd1xjzbrve6.js"].map(s=>t.l(s))).then(()=>s(244703)))},656841,t=>{t.v(s=>Promise.all(["static/chunks/3vdfjhigz-c80.js"].map(s=>t.l(s))).then(()=>s(33176)))},291412,t=>{t.v(s=>Promise.all(["static/chunks/2rbi0f59-vmf9.js"].map(s=>t.l(s))).then(()=>s(620584)))},441270,t=>{t.v(s=>Promise.all(["static/chunks/088x63_2l0zc9.js"].map(s=>t.l(s))).then(()=>s(675022)))},332344,t=>{t.v(s=>Promise.all(["static/chunks/3ve5sdpvgjpbu.js"].map(s=>t.l(s))).then(()=>s(642400)))},252913,t=>{t.v(s=>Promise.all(["static/chunks/2i6moah6rdm25.js"].map(s=>t.l(s))).then(()=>s(202714)))},695208,t=>{t.v(s=>Promise.all(["static/chunks/3_gqqu4iritf3.js"].map(s=>t.l(s))).then(()=>s(40379)))},952844,t=>{t.v(s=>Promise.all(["static/chunks/0wdb6hvovrzpj.js"].map(s=>t.l(s))).then(()=>s(48975)))},776488,t=>{t.v(s=>Promise.all(["static/chunks/07ciqblogdtfg.js"].map(s=>t.l(s))).then(()=>s(938096)))},536002,t=>{t.v(s=>Promise.all(["static/chunks/0n254r0xtp5py.js"].map(s=>t.l(s))).then(()=>s(340767)))},872934,t=>{t.v(s=>Promise.all(["static/chunks/3qx8r_111vbcq.js"].map(s=>t.l(s))).then(()=>s(216129)))},831036,t=>{t.v(s=>Promise.all(["static/chunks/0b7u4oyc-4h1f.js"].map(s=>t.l(s))).then(()=>s(188870)))},423803,t=>{t.v(s=>Promise.all(["static/chunks/1464ilzyzd67x.js"].map(s=>t.l(s))).then(()=>s(9753)))},486330,t=>{t.v(s=>Promise.all(["static/chunks/0akc8wpmmqk3w.js"].map(s=>t.l(s))).then(()=>s(611191)))},381001,t=>{t.v(s=>Promise.all(["static/chunks/0db0pjco5lunx.js"].map(s=>t.l(s))).then(()=>s(297569)))},902100,t=>{t.v(s=>Promise.all(["static/chunks/3cayxge-4bh_2.js"].map(s=>t.l(s))).then(()=>s(899637)))},295735,t=>{t.v(s=>Promise.all(["static/chunks/1_dzz-lgnak2h.js"].map(s=>t.l(s))).then(()=>s(504007)))},358172,t=>{t.v(s=>Promise.all(["static/chunks/2cbug7-1qys8e.js"].map(s=>t.l(s))).then(()=>s(824395)))},775274,t=>{t.v(s=>Promise.all(["static/chunks/16_2z7zojg3g3.js"].map(s=>t.l(s))).then(()=>s(760511)))},514214,t=>{t.v(s=>Promise.all(["static/chunks/0cmf43-qvwr5g.js"].map(s=>t.l(s))).then(()=>s(815758)))},948353,t=>{t.v(s=>Promise.all(["static/chunks/210l205kz5g3q.js"].map(s=>t.l(s))).then(()=>s(365094)))},640920,t=>{t.v(s=>Promise.all(["static/chunks/3skrxw7zfkqzf.js"].map(s=>t.l(s))).then(()=>s(363976)))},157811,t=>{t.v(s=>Promise.all(["static/chunks/17brxt738o00g.js"].map(s=>t.l(s))).then(()=>s(805755)))},805550,t=>{t.v(s=>Promise.all(["static/chunks/0cg7tv-i19f6n.js"].map(s=>t.l(s))).then(()=>s(7419)))},360233,t=>{t.v(s=>Promise.all(["static/chunks/2tsbrs7m-0f65.js"].map(s=>t.l(s))).then(()=>s(797673)))},579755,t=>{t.v(s=>Promise.all(["static/chunks/01bd73-hm8457.js"].map(s=>t.l(s))).then(()=>s(525522)))},980721,t=>{t.v(s=>Promise.all(["static/chunks/458hu9cfcc3s_.js"].map(s=>t.l(s))).then(()=>s(560616)))},27266,t=>{t.v(s=>Promise.all(["static/chunks/01i1qitd_8rtz.js"].map(s=>t.l(s))).then(()=>s(134497)))},231214,t=>{t.v(s=>Promise.all(["static/chunks/1fviz3qosnq__.js"].map(s=>t.l(s))).then(()=>s(770771)))},881110,t=>{t.v(s=>Promise.all(["static/chunks/037scab0ici8w.js"].map(s=>t.l(s))).then(()=>s(764248)))},337683,t=>{t.v(s=>Promise.all(["static/chunks/1yj-z4gstw2xu.js"].map(s=>t.l(s))).then(()=>s(581666)))},28130,t=>{t.v(s=>Promise.all(["static/chunks/0p3vq3l43725n.js"].map(s=>t.l(s))).then(()=>s(365013)))},487165,t=>{t.v(s=>Promise.all(["static/chunks/3xes-pn_ri2cj.js"].map(s=>t.l(s))).then(()=>s(7363)))},470579,t=>{t.v(s=>Promise.all(["static/chunks/12z0zeu7lvha7.js"].map(s=>t.l(s))).then(()=>s(791178)))},677856,t=>{t.v(s=>Promise.all(["static/chunks/3v0b10wj4wq9y.js"].map(s=>t.l(s))).then(()=>s(182360)))},194363,t=>{t.v(s=>Promise.all(["static/chunks/3pa4udctptdhb.js"].map(s=>t.l(s))).then(()=>s(720465)))},448953,t=>{t.v(s=>Promise.all(["static/chunks/3473zud7njrud.js"].map(s=>t.l(s))).then(()=>s(951566)))},711812,t=>{t.v(s=>Promise.all(["static/chunks/1xdsthrspgqid.js"].map(s=>t.l(s))).then(()=>s(935992)))},409732,t=>{t.v(s=>Promise.all(["static/chunks/3t3e6rkuocks5.js"].map(s=>t.l(s))).then(()=>s(553497)))},930788,t=>{t.v(s=>Promise.all(["static/chunks/0r8pu9o18-9be.js"].map(s=>t.l(s))).then(()=>s(94790)))},769460,t=>{t.v(s=>Promise.all(["static/chunks/2wewgtk8lsm47.js"].map(s=>t.l(s))).then(()=>s(258941)))},774478,t=>{t.v(s=>Promise.all(["static/chunks/2l6fe0r1d_q6v.js"].map(s=>t.l(s))).then(()=>s(899054)))},49008,t=>{t.v(s=>Promise.all(["static/chunks/14_d5b8v93ic0.js"].map(s=>t.l(s))).then(()=>s(645619)))},377952,t=>{t.v(s=>Promise.all(["static/chunks/1ji12pypkyvd6.js"].map(s=>t.l(s))).then(()=>s(464754)))},411374,t=>{t.v(s=>Promise.all(["static/chunks/0j6p1caglumb5.js"].map(s=>t.l(s))).then(()=>s(669891)))},820463,t=>{t.v(s=>Promise.all(["static/chunks/3oj0ck1e2y0rg.js"].map(s=>t.l(s))).then(()=>s(966937)))},630169,t=>{t.v(s=>Promise.all(["static/chunks/21bsne5xprg9x.js"].map(s=>t.l(s))).then(()=>s(412397)))},777035,t=>{t.v(s=>Promise.all(["static/chunks/2nz_jsjkeh_3n.js"].map(s=>t.l(s))).then(()=>s(323854)))},28589,t=>{t.v(s=>Promise.all(["static/chunks/3bl5nolxelhoh.js"].map(s=>t.l(s))).then(()=>s(299023)))},161439,t=>{t.v(s=>Promise.all(["static/chunks/2qvx9cvdob30_.js"].map(s=>t.l(s))).then(()=>s(83923)))},467304,t=>{t.v(s=>Promise.all(["static/chunks/2r50d8i8nzafy.js"].map(s=>t.l(s))).then(()=>s(620576)))},794497,t=>{t.v(s=>Promise.all(["static/chunks/2-q2d_mg8eewn.js"].map(s=>t.l(s))).then(()=>s(383983)))},353619,t=>{t.v(s=>Promise.all(["static/chunks/00133qbkud_a1.js"].map(s=>t.l(s))).then(()=>s(311461)))},841717,t=>{t.v(s=>Promise.all(["static/chunks/3wyndekp6gs1e.js"].map(s=>t.l(s))).then(()=>s(905139)))},703232,t=>{t.v(s=>Promise.all(["static/chunks/0a5uw59rid6rr.js"].map(s=>t.l(s))).then(()=>s(7846)))},469411,t=>{t.v(s=>Promise.all(["static/chunks/1tdg7-4y92ae5.js"].map(s=>t.l(s))).then(()=>s(135966)))},81356,t=>{t.v(s=>Promise.all(["static/chunks/27679aiblwt7d.js"].map(s=>t.l(s))).then(()=>s(920400)))},291336,t=>{t.v(s=>Promise.all(["static/chunks/2-r_2y3shm5dp.js"].map(s=>t.l(s))).then(()=>s(154629)))},753065,t=>{t.v(s=>Promise.all(["static/chunks/3zru906admgda.js"].map(s=>t.l(s))).then(()=>s(792599)))},758732,t=>{t.v(s=>Promise.all(["static/chunks/1m_1wucqbm0dk.js"].map(s=>t.l(s))).then(()=>s(341854)))},505358,t=>{t.v(s=>Promise.all(["static/chunks/3n91b_r3lsocx.js"].map(s=>t.l(s))).then(()=>s(273427)))},953493,t=>{t.v(s=>Promise.all(["static/chunks/0ppunhtgdiybw.js"].map(s=>t.l(s))).then(()=>s(468746)))},767374,t=>{t.v(s=>Promise.all(["static/chunks/2e77rof1d6aab.js"].map(s=>t.l(s))).then(()=>s(948350)))},461630,t=>{t.v(s=>Promise.all(["static/chunks/1ua4os8wtpq3w.js"].map(s=>t.l(s))).then(()=>s(200388)))},135353,t=>{t.v(s=>Promise.all(["static/chunks/3_rh0kun_htkr.js"].map(s=>t.l(s))).then(()=>s(720692)))},129817,t=>{t.v(s=>Promise.all(["static/chunks/2wgde6wz3k5s5.js"].map(s=>t.l(s))).then(()=>s(832876)))},666144,t=>{t.v(s=>Promise.all(["static/chunks/2wm8p15qdp-ng.js"].map(s=>t.l(s))).then(()=>s(942760)))},496740,t=>{t.v(s=>Promise.all(["static/chunks/365l-wyhfm_-p.js"].map(s=>t.l(s))).then(()=>s(436913)))},896290,t=>{t.v(s=>Promise.all(["static/chunks/0_81-tq3u4vi9.js"].map(s=>t.l(s))).then(()=>s(67631)))},161379,t=>{t.v(s=>Promise.all(["static/chunks/2ktgnhn-0j381.js"].map(s=>t.l(s))).then(()=>s(397216)))},839484,t=>{t.v(t=>Promise.resolve().then(()=>t(716400)))},350117,t=>{t.v(s=>Promise.all(["static/chunks/0mkmxdnpoteey.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(s=>t.l(s))).then(()=>s(36245)))},382528,t=>{t.v(s=>Promise.all(["static/chunks/00h58csdfefay.js","static/chunks/1-2_pusn4n8oh.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/411-m6wb1xycs.js"].map(s=>t.l(s))).then(()=>s(868938)))},705108,t=>{t.v(s=>Promise.all(["static/chunks/0kdfzi54utgbh.js","static/chunks/42kilhgqayez4.js"].map(s=>t.l(s))).then(()=>s(121437)))},143904,t=>{t.v(s=>Promise.all(["static/chunks/0u3ktztrzu1fa.js","static/chunks/1ebh7wwf-wzqn.js"].map(s=>t.l(s))).then(()=>s(482661)))},696017,t=>{"use strict";var s=t.i(60231),a=t.i(419524);t.i(947716);var e=t.i(723685),l=(0,a.__name)(t=>{let{securityLevel:a}=(0,s.getConfig2)(),l=(0,e.select)("body");if("sandbox"===a){let s=(0,e.select)(`#i${t}`),a=s.node()?.contentDocument??document;l=(0,e.select)(a.body)}return l.select(`#${t}`)},"selectSvgElement");t.s(["selectSvgElement",0,l])},502056,t=>{"use strict";var s=t.i(217248),a=t.i(447804),e=t.i(508324),l=t.i(419524),i=(0,l.__name)(({flowchart:t})=>{let s=t?.subGraphTitleMargin?.top??0,a=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:s,subGraphTitleBottomMargin:a,subGraphTitleTotalMargin:s+a}},"getSubGraphTitleMargins"),n=new Map;async function c(t,e,l){let i,c;"rect"===e.shape&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");let r=e.shape?s.shapes[e.shape]:void 0;if(!r)throw Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let s;"sandbox"===l.config.securityLevel?s="_top":e.linkTarget&&(s=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",s??null),c=await r(i,e,l)}else i=c=await r(t,e,l);return i.attr("data-look",(0,a.handleUndefinedAttr)(e.look)),e.tooltip&&c.attr("title",e.tooltip),n.set(e.id,i),e.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}(0,l.__name)(c,"insertNode");var r=(0,l.__name)((t,s)=>{n.set(s.id,t)},"setNodeElem"),h=(0,l.__name)(()=>{n.clear()},"clear"),o=(0,l.__name)(t=>{let s=n.get(t.id);e.log.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let a=t.diff||0;return t.clusterNode?s.attr("transform","translate("+(t.x+a-t.width/2)+", "+(t.y-t.height/2-8)+")"):s.attr("transform","translate("+t.x+", "+t.y+")"),a},"positionNode");t.s(["clear",0,h,"getSubGraphTitleMargins",0,i,"insertNode",0,c,"positionNode",0,o,"setNodeElem",0,r])},369110,t=>{"use strict";var s=t.i(502056),a=t.i(217248),e=t.i(224797),l=t.i(836333),i=t.i(60231),n=t.i(508324),c=t.i(419524);t.i(947716);var r=t.i(723685),h=t.i(883272),o=(0,c.__name)(async(t,s)=>{let c,o,m=(0,i.getConfig2)(),{themeVariables:u,handDrawnSeed:d}=m,{clusterBkg:k,clusterBorder:p}=u,{labelStyles:j,nodeStyles:v,borderStyles:g,backgroundStyles:w}=(0,e.styles2String)(s),f=t.insert("g").attr("class","cluster swimlane "+(s.cssClasses||"")).attr("id",s.id).attr("data-id",s.id).attr("data-et","cluster").attr("data-look",s.look),P=(0,i.evaluate)(m.flowchart.htmlLabels),y="LR"===s.direction,x=f.insert("g").attr("class","cluster-label swimlane-label"),b=await (0,l.createText)(x,s.label,{style:s.labelStyle,useHtmlLabels:P,isNode:!0,width:s.width}),z=b.getBBox();if(P){let t=b.children[0],s=(0,r.select)(b);z=t.getBoundingClientRect(),s.attr("width",z.width),s.attr("height",z.height)}let _=s.padding??0,q=s.width<=z.width+_?z.width+_:s.width;s.width<=z.width+_?s.diff=(q-s.width)/2-_:s.diff=-_;let N=s.height,S=s.y-N/2,C=s.y+N/2,B=s.x-q/2,R=void 0!==s.swimlaneContentTop?s.swimlaneContentTop:S+N/3,T=4*!!y,E=z.height+2*T;if(y){let t=Math.max(E,z.height+2*T),a=B+t,l=Math.max(0,q-t);if("handDrawn"===s.look){let i=h.default.svg(f),n=(0,e.userNodeOverrides)(s,{roughness:.7,fill:k,stroke:p,fillWeight:3,seed:d}),r=(0,e.userNodeOverrides)(s,{roughness:.7,fill:"none",stroke:p,seed:d}),m=i.rectangle(B,S,t,N,n);c=f.insert(()=>m,":first-child");let u=i.rectangle(a,S,l,N,r);o=f.insert(()=>u,":first-child"),c.select("path:nth-child(2)").attr("style",g.join(";")),c.select("path").attr("style",w.join(";").replace("fill","stroke"))}else c=f.insert("rect",":first-child"),o=f.insert("rect",":first-child"),c.attr("class","swimlane-title").attr("style",v).attr("x",B).attr("y",S).attr("width",t).attr("height",N).attr("fill",k).attr("stroke",p),o.attr("class","swimlane-body").attr("style",v).attr("x",a).attr("y",S).attr("width",l).attr("height",N).attr("fill","none").attr("stroke",p);let i=B+t/2,n=s.y;x.attr("transform",`translate(${i}, ${n}) rotate(-90) translate(${-z.width/2}, ${-z.height/2})`)}else{let t=Math.min(E,Math.max(0,R-S)),a=S+t,l=Math.max(0,C-a),i=s.x-q/2;if("handDrawn"===s.look){let n=h.default.svg(f),r=(0,e.userNodeOverrides)(s,{roughness:.7,fill:k,stroke:p,fillWeight:3,seed:d}),m=(0,e.userNodeOverrides)(s,{roughness:.7,fill:"none",stroke:p,seed:d}),u=n.rectangle(i,S,q,t,r);c=f.insert(()=>u,":first-child");let j=n.rectangle(i,a,q,l,m);o=f.insert(()=>j,":first-child"),c.select("path:nth-child(2)").attr("style",g.join(";")),c.select("path").attr("style",w.join(";").replace("fill","stroke"))}else c=f.insert("rect",":first-child"),o=f.insert("rect",":first-child"),c.attr("class","swimlane-title").attr("style",v).attr("x",i).attr("y",S).attr("width",q).attr("height",t).attr("fill",k).attr("stroke",p),o.attr("class","swimlane-body").attr("style",v).attr("x",i).attr("y",a).attr("width",q).attr("height",l).attr("fill","none").attr("stroke",p);let n=s.x-z.width/2,r=S+(t-z.height)/2;x.attr("transform",`translate(${n}, ${r})`)}if(n.log.trace("Swimlane data ",s,JSON.stringify(s)),j){let t=x.select("span");t&&t.attr("style",j)}return s.offsetX=0,s.width=q,s.height=N,s.offsetY=z.height-_/2,s.intersect=function(t){return(0,a.intersect_rect_default)(s,t)},{cluster:f,labelBBox:z}},"swimlane"),m=(0,c.__name)(async(t,c)=>{let o,m;n.log.info("Creating subgraph rect for ",c.id,c);let u=(0,i.getConfig2)(),{themeVariables:d,handDrawnSeed:k}=u,{clusterBkg:p,clusterBorder:j}=d,{labelStyles:v,nodeStyles:g,borderStyles:w,backgroundStyles:f}=(0,e.styles2String)(c),P=t.insert("g").attr("class","cluster "+c.cssClasses).attr("id",c.domId).attr("data-look",c.look),y=(0,i.getEffectiveHtmlLabels)(u),x=P.insert("g").attr("class","cluster-label "),b=(o="markdown"===c.labelType?await (0,l.createText)(x,c.label,{style:c.labelStyle,useHtmlLabels:y,isNode:!0,width:c.width}):await (0,a.createLabel_default)(x,c.label,c.labelStyle||"",!1,!0)).getBBox();if((0,i.getEffectiveHtmlLabels)(u)){let t=o.children[0],s=(0,r.select)(o);b=t.getBoundingClientRect(),s.attr("width",b.width),s.attr("height",b.height)}let z=c.width<=b.width+c.padding?b.width+c.padding:c.width;c.width<=b.width+c.padding?c.diff=(z-c.width)/2-c.padding:c.diff=-c.padding;let _=c.height,q=c.x-z/2,N=c.y-_/2;if(n.log.trace("Data ",c,JSON.stringify(c)),"handDrawn"===c.look){let t=h.default.svg(P),s=(0,e.userNodeOverrides)(c,{roughness:.7,fill:p,stroke:j,fillWeight:3,seed:k}),l=t.path((0,a.createRoundedRectPathD)(q,N,z,_,0),s);(m=P.insert(()=>(n.log.debug("Rough node insert CXC",l),l),":first-child")).select("path:nth-child(2)").attr("style",w.join(";")),m.select("path").attr("style",f.join(";").replace("fill","stroke"))}else(m=P.insert("rect",":first-child")).attr("style",g).attr("rx",c.rx).attr("ry",c.ry).attr("x",q).attr("y",N).attr("width",z).attr("height",_);let{subGraphTitleTopMargin:S}=(0,s.getSubGraphTitleMargins)(u);if(x.attr("transform",`translate(${c.x-b.width/2}, ${c.y-c.height/2+S})`),v){let t=x.select("span");t&&t.attr("style",v)}let C=m.node().getBBox();return c.offsetX=0,c.width=C.width,c.height=C.height,c.offsetY=b.height-c.padding/2,c.intersect=function(t){return(0,a.intersect_rect_default)(c,t)},{cluster:P,labelBBox:b}},"rect"),u=(0,c.__name)((t,s)=>{let e=t.insert("g").attr("class","note-cluster").attr("id",s.domId),l=e.insert("rect",":first-child"),i=0*s.padding,n=i/2;l.attr("rx",s.rx).attr("ry",s.ry).attr("x",s.x-s.width/2-n).attr("y",s.y-s.height/2-n).attr("width",s.width+i).attr("height",s.height+i).attr("fill","none");let c=l.node().getBBox();return s.width=c.width,s.height=c.height,s.intersect=function(t){return(0,a.intersect_rect_default)(s,t)},{cluster:e,labelBBox:{width:0,height:0}}},"noteGroup"),d=(0,c.__name)(async(t,s)=>{let e,l=(0,i.getConfig2)(),{themeVariables:n,handDrawnSeed:c}=l,{altBackground:o,compositeBackground:m,compositeTitleBackground:u,nodeBorder:d}=n,k=t.insert("g").attr("class",s.cssClasses).attr("id",s.domId).attr("data-id",s.id).attr("data-look",s.look),p=k.insert("g",":first-child"),j=k.insert("g").attr("class","cluster-label"),v=k.append("rect"),g=await (0,a.createLabel_default)(j,s.label,s.labelStyle,void 0,!0),w=g.getBBox();if((0,i.getEffectiveHtmlLabels)(l)){let t=g.children[0],s=(0,r.select)(g);w=t.getBoundingClientRect(),s.attr("width",w.width),s.attr("height",w.height)}let f=0*s.padding,P=(s.width<=w.width+s.padding?w.width+s.padding:s.width)+f;s.width<=w.width+s.padding?s.diff=(P-s.width)/2-s.padding:s.diff=-s.padding;let y=s.height+f,x=s.height+f-w.height-6,b=s.x-P/2,z=s.y-y/2;s.width=P;let _=s.y-s.height/2-f/2+w.height+2;if("handDrawn"===s.look){let t=s.cssClasses.includes("statediagram-cluster-alt"),l=h.default.svg(k),i=s.rx||s.ry?l.path((0,a.createRoundedRectPathD)(b,z,P,y,10),{roughness:.7,fill:u,fillStyle:"solid",stroke:d,seed:c}):l.rectangle(b,z,P,y,{seed:c});e=k.insert(()=>i,":first-child");let n=l.rectangle(b,_,P,x,{fill:t?o:m,fillStyle:t?"hachure":"solid",stroke:d,seed:c});e=k.insert(()=>i,":first-child"),v=k.insert(()=>n)}else(e=p.insert("rect",":first-child")).attr("class","outer").attr("x",b).attr("y",z).attr("width",P).attr("height",y).attr("data-look",s.look),v.attr("class","inner").attr("x",b).attr("y",_).attr("width",P).attr("height",x);return j.attr("transform",`translate(${s.x-w.width/2}, ${z+1-3*!(0,i.getEffectiveHtmlLabels)(l)})`),s.height=e.node().getBBox().height,s.offsetX=0,s.offsetY=w.height-s.padding/2,s.labelBBox=w,s.intersect=function(t){return(0,a.intersect_rect_default)(s,t)},{cluster:k,labelBBox:w}},"roundedWithTitle"),k=(0,c.__name)(async(t,c)=>{let o;n.log.info("Creating subgraph rect for ",c.id,c);let m=(0,i.getConfig2)(),{themeVariables:u,handDrawnSeed:d}=m,{clusterBkg:k,clusterBorder:p}=u,{labelStyles:j,nodeStyles:v,borderStyles:g,backgroundStyles:w}=(0,e.styles2String)(c),f=t.insert("g").attr("class","cluster "+c.cssClasses).attr("id",c.domId).attr("data-look",c.look),P=(0,i.getEffectiveHtmlLabels)(m),y=f.insert("g").attr("class","cluster-label "),x=await (0,l.createText)(y,c.label,{style:c.labelStyle,useHtmlLabels:P,isNode:!0,width:c.width}),b=x.getBBox();if((0,i.getEffectiveHtmlLabels)(m)){let t=x.children[0],s=(0,r.select)(x);b=t.getBoundingClientRect(),s.attr("width",b.width),s.attr("height",b.height)}let z=c.width<=b.width+c.padding?b.width+c.padding:c.width;c.width<=b.width+c.padding?c.diff=(z-c.width)/2-c.padding:c.diff=-c.padding;let _=c.height,q=c.x-z/2,N=c.y-_/2;if(n.log.trace("Data ",c,JSON.stringify(c)),"handDrawn"===c.look){let t=h.default.svg(f),s=(0,e.userNodeOverrides)(c,{roughness:.7,fill:k,stroke:p,fillWeight:4,seed:d}),l=t.path((0,a.createRoundedRectPathD)(q,N,z,_,c.rx),s);(o=f.insert(()=>(n.log.debug("Rough node insert CXC",l),l),":first-child")).select("path:nth-child(2)").attr("style",g.join(";")),o.select("path").attr("style",w.join(";").replace("fill","stroke"))}else(o=f.insert("rect",":first-child")).attr("style",v).attr("rx",c.rx).attr("ry",c.ry).attr("x",q).attr("y",N).attr("width",z).attr("height",_);let{subGraphTitleTopMargin:S}=(0,s.getSubGraphTitleMargins)(m);if(y.attr("transform",`translate(${c.x-b.width/2}, ${c.y-c.height/2+S})`),j){let t=y.select("span");t&&t.attr("style",j)}let C=o.node().getBBox();return c.offsetX=0,c.width=C.width,c.height=C.height,c.offsetY=b.height-c.padding/2,c.intersect=function(t){return(0,a.intersect_rect_default)(c,t)},{cluster:f,labelBBox:b}},"kanbanSection"),p={rect:m,squareRect:m,roundedWithTitle:d,noteGroup:u,divider:(0,c.__name)((t,s)=>{let e,{themeVariables:l,handDrawnSeed:n}=(0,i.getConfig2)(),{nodeBorder:c}=l,r=t.insert("g").attr("class",s.cssClasses).attr("id",s.domId).attr("data-look",s.look),o=r.insert("g",":first-child"),m=0*s.padding,u=s.width+m;s.diff=-s.padding;let d=s.height+m,k=s.x-u/2,p=s.y-d/2;if(s.width=u,"handDrawn"===s.look){let t=h.default.svg(r).rectangle(k,p,u,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:c,seed:n});e=r.insert(()=>t,":first-child")}else{e=o.insert("rect",":first-child");let t="outer";s.look,t="divider",e.attr("class",t).attr("x",k).attr("y",p).attr("width",u).attr("height",d).attr("data-look",s.look)}return s.height=e.node().getBBox().height,s.offsetX=0,s.offsetY=0,s.intersect=function(t){return(0,a.intersect_rect_default)(s,t)},{cluster:r,labelBBox:{}}},"divider"),kanbanSection:k,swimlane:o},j=new Map,v=(0,c.__name)(async(t,s)=>{let a=s.shape||"rect",e=await p[a](t,s);return j.set(s.id,e),e},"insertCluster"),g=(0,c.__name)(()=>{j=new Map},"clear");t.s(["clear",0,g,"insertCluster",0,v])},121292,t=>{"use strict";var s=t.i(369110),a=t.i(382793),e=t.i(502056),l=t.i(217248),i=t.i(447804),n=t.i(60231),c=t.i(508324),r=t.i(419524),h={common:n.common_default,getConfig:n.getConfig,insertCluster:s.insertCluster,insertEdge:a.insertEdge,insertEdgeLabel:a.insertEdgeLabel,insertMarkers:a.markers_default,insertNode:e.insertNode,interpolateToCurve:i.interpolateToCurve,labelHelper:l.labelHelper,log:c.log,positionEdgeLabel:a.positionEdgeLabel},o={},m=(0,r.__name)(t=>{for(let s of t)o[s.name]=s},"registerLayoutLoaders");(0,r.__name)(()=>{m([{name:"dagre",loader:(0,r.__name)(async()=>await t.A(555153),"loader")},{name:"swimlane",loader:(0,r.__name)(async()=>await t.A(12782),"loader")},{name:"cose-bilkent",loader:(0,r.__name)(async()=>await t.A(208503),"loader")}])},"registerDefaultLayoutLoaders")();var u=(0,r.__name)(async(t,s)=>{if(!(t.layoutAlgorithm in o))throw Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(let s of t.nodes){let a=s.domId||s.id;s.domId=`${t.diagramId}-${a}`}let a=o[t.layoutAlgorithm],e=await a.loader(),{theme:l,themeVariables:i}=t.config,{useGradient:n,gradientStart:c,gradientStop:r}=i,m=s.attr("id");if(s.append("defs").append("filter").attr("id",`${m}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${l?.includes("dark")?"#FFFFFF":"#000000"}`),s.append("defs").append("filter").attr("id",`${m}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${l?.includes("dark")?"#FFFFFF":"#000000"}`),n){let t=s.append("linearGradient").attr("id",s.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("svg:stop").attr("offset","0%").attr("stop-color",c).attr("stop-opacity",1),t.append("svg:stop").attr("offset","100%").attr("stop-color",r).attr("stop-opacity",1)}return e.render(t,s,h,{algorithm:a.algorithm})},"render"),d=(0,r.__name)((t="",{fallback:s="dagre"}={})=>{if(t in o)return t;if(s in o)return c.log.warn(`Layout algorithm ${t} is not registered. Using ${s} as fallback.`),s;throw Error(`Both layout algorithms ${t} and ${s} are not registered.`)},"getRegisteredLayoutAlgorithm");t.s(["getRegisteredLayoutAlgorithm",0,d,"registerLayoutLoaders",0,m,"render",0,u])},110338,t=>{t.v(s=>Promise.all(["static/chunks/2gocl3dq0_h1s.js","static/chunks/2itcfm_igcz5x.js"].map(s=>t.l(s))).then(()=>s(59618)))},4699,t=>{t.v(s=>Promise.all(["static/chunks/01xjer0i_e5z5.js","static/chunks/2itcfm_igcz5x.js"].map(s=>t.l(s))).then(()=>s(595016)))},208503,t=>{t.v(s=>Promise.all(["static/chunks/0vhltcpdssl3-.js","static/chunks/411-m6wb1xycs.js"].map(s=>t.l(s))).then(()=>s(752312)))},342649,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1g6hadfcoz4ag.js"].map(s=>t.l(s))).then(()=>s(447429)))},555153,t=>{t.v(s=>Promise.all(["static/chunks/16mzcd_gvdgbo.js","static/chunks/3lx-n8v_8u7og.js"].map(s=>t.l(s))).then(()=>s(921789)))},121563,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/221-n1wtpkus8.js"].map(s=>t.l(s))).then(()=>s(52278)))},775281,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/3oif9bymgqjgd.js"].map(s=>t.l(s))).then(()=>s(75306)))},840094,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/3mjwob-a5hhwz.js"].map(s=>t.l(s))).then(()=>s(958133)))},806739,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/266qo7h19xz_m.js"].map(s=>t.l(s))).then(()=>s(486182)))},725135,t=>{t.v(s=>Promise.all(["static/chunks/25pfy8u3vc_bn.js","static/chunks/2qq7e47gpyc_e.js"].map(s=>t.l(s))).then(()=>s(271981)))},257999,t=>{t.v(s=>Promise.all(["static/chunks/1kg8hnvdsweku.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(s=>t.l(s))).then(()=>s(954776)))},126038,t=>{t.v(s=>Promise.all(["static/chunks/1wrwqqt23_cqy.js"].map(s=>t.l(s))).then(()=>s(868948)))},299022,t=>{t.v(s=>Promise.all(["static/chunks/025bmrgeukcb2.js","static/chunks/2b4v6n9b8htrv.js"].map(s=>t.l(s))).then(()=>s(595502)))},216587,t=>{t.v(s=>Promise.all(["static/chunks/1ztlt8o8gnas8.js","static/chunks/04e-e--5lk26x.js"].map(s=>t.l(s))).then(()=>s(222024)))},405760,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1rh4z578p-h1a.js"].map(s=>t.l(s))).then(()=>s(896515)))},937084,t=>{t.v(s=>Promise.all(["static/chunks/09nk4rn1z6j8b.js","static/chunks/2qq7e47gpyc_e.js"].map(s=>t.l(s))).then(()=>s(722875)))},223045,t=>{t.v(s=>Promise.all(["static/chunks/0x7n81v2cw92f.js"].map(s=>t.l(s))).then(()=>s(239077)))},104423,t=>{t.v(s=>Promise.all(["static/chunks/0oyz95sujd2c7.js"].map(s=>t.l(s))).then(()=>s(547384)))},847615,t=>{t.v(s=>Promise.all(["static/chunks/3s-zbm7kxc46y.js"].map(s=>t.l(s))).then(()=>s(980953)))},265584,t=>{t.v(s=>Promise.all(["static/chunks/14b2ne-5dycww.js"].map(s=>t.l(s))).then(()=>s(582576)))},121612,t=>{t.v(s=>Promise.all(["static/chunks/1-axl1a1s8xi7.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(s=>t.l(s))).then(()=>s(724854)))},761201,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/38h4_u_fq6ose.js"].map(s=>t.l(s))).then(()=>s(537834)))},480988,t=>{t.v(s=>Promise.all(["static/chunks/0dhmf6y59xjoo.js"].map(s=>t.l(s))).then(()=>s(713179)))},780947,t=>{t.v(s=>Promise.all(["static/chunks/3r7r2d2yc93-y.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(s=>t.l(s))).then(()=>s(354077)))},775900,t=>{t.v(s=>Promise.all(["static/chunks/14osgsp3aiqpz.js"].map(s=>t.l(s))).then(()=>s(207851)))},650519,t=>{t.v(s=>Promise.all(["static/chunks/3peltyinql2qj.js"].map(s=>t.l(s))).then(()=>s(621500)))},654159,t=>{t.v(s=>Promise.all(["static/chunks/2o4dndk0d68do.js","static/chunks/1u5i-jti87jbo.js"].map(s=>t.l(s))).then(()=>s(801891)))},483976,t=>{t.v(s=>Promise.all(["static/chunks/0p54qye85am3w.js"].map(s=>t.l(s))).then(()=>s(122015)))},99530,t=>{t.v(s=>Promise.all(["static/chunks/0u9ae9k_2g7k3.js","static/chunks/3lx-n8v_8u7og.js","static/chunks/3her9o9_qn46y.js"].map(s=>t.l(s))).then(()=>s(757018)))},633604,t=>{t.v(s=>Promise.all(["static/chunks/2sdwbfs1x5skp.js","static/chunks/3her9o9_qn46y.js"].map(s=>t.l(s))).then(()=>s(196572)))},12782,t=>{t.v(s=>Promise.all(["static/chunks/0_l0vn2teso0z.js"].map(s=>t.l(s))).then(()=>s(619325)))},868278,t=>{t.v(s=>Promise.all(["static/chunks/2m267diam_vib.js","static/chunks/2b4v6n9b8htrv.js"].map(s=>t.l(s))).then(()=>s(557786)))},9691,t=>{t.v(s=>Promise.all(["static/chunks/2udhdtq_z8488.js"].map(s=>t.l(s))).then(()=>s(254768)))},539575,t=>{t.v(s=>Promise.all(["static/chunks/0si45yj1su8y7.js"].map(s=>t.l(s))).then(()=>s(263487)))},85919,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/02slxciv9jt1p.js"].map(s=>t.l(s))).then(()=>s(353883)))},437446,t=>{t.v(s=>Promise.all(["static/chunks/2v_t22-0u_seu.js","static/chunks/0m-pl93u72hp9.js"].map(s=>t.l(s))).then(()=>s(819125)))},514467,t=>{t.v(s=>Promise.all(["static/chunks/1zlldlu99uorc.js"].map(s=>t.l(s))).then(()=>s(477142)))},369582,t=>{t.v(s=>Promise.all(["static/chunks/2hugas7n-e13p.js"].map(s=>t.l(s))).then(()=>s(976823)))},558850,t=>{t.v(s=>Promise.all(["static/chunks/41s9cnvp51p5u.js"].map(s=>t.l(s))).then(()=>s(335871)))}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,94682,e=>{"use strict";var t=e.i(843476),n=e.i(24071),i=e.i(482022),s=e.i(829600),r=e.i(434322),a=e.i(905015),o=e.i(226091),l=e.i(569644),c=e.i(815170),d=e.i(456420);let u={name:"images",size:24,node:[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16",key:"9kzy35"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2",key:"1t0f0t"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor",key:"1obus6"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2",key:"1gvhby"}]]};u.node;let m=(0,d.default)(u);var f=e.i(51921),h=e.i(650639),x=e.i(759659),g=e.i(438583),p=e.i(271645),y=e.i(798120),v=e.i(167881),b=e.i(917162),j=e.i(671428),k=e.i(41533),N=e.i(95187);let w=(0,N.createServerReference)("7fce3f493e6c36ed983cc6adcb44ebe36f59ca1837",N.callServer,void 0,N.findSourceMapURL,"deleteArtifactAction");var S=e.i(895836),A=e.i(621285),C=e.i(706951),F=e.i(245629),$=e.i(609856),z=e.i(283653),T=e.i(647163);let R={markdown:o.FileText,csv:h.Sheet,json:a.FileJson,text:o.FileText,frame:r.FileCode2,image:c.Image,audio:f.Music,video:g.Video,none:s.File};function M({entry:e,active:n,onPick:i}){let s="set"===e.kind?m:R[e.view];return(0,t.jsxs)("button",{type:"button",onClick:i,title:`${e.name} \xb7 ${(0,F.shortAgo)(e.at)}`,className:(0,T.cn)("mx-2 flex items-center gap-2 rounded-md px-2 py-1.5 text-left text-[13px] outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",n?"bg-secondary font-medium text-foreground":"text-muted-foreground hover:bg-muted/60 hover:text-foreground"),children:[(0,t.jsx)(s,{className:"size-3.5 shrink-0 opacity-70"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.name}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/75",children:"set"===e.kind?e.count:(0,T.formatBytes)(e.bytes)})]})}function V({row:e,file:s,onOpen:r,onBack:a,onGone:o}){let[c]=(0,$.useServerAction)(C.openFileAction),[d,u]=(0,$.useServerAction)(w,{okMessage:"Deleted",onOk:()=>{(0,z.revalidate)(y.queryKey.artifacts),s?a():o()}}),m=s?{path:s.path,bytes:s.bytes,at:s.at}:"file"===e.kind?{path:e.path,bytes:e.bytes,at:e.at}:null,f=async e=>{await b.notify.confirm({title:`Delete ${e.split("/").pop()}?`,description:"It is deleted from disk for good.",okText:"Delete",destructive:!0})&&d(e)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex h-11 shrink-0 items-center gap-3 border-b border-border/60 px-6",children:[s&&(0,t.jsxs)("button",{type:"button",onClick:a,className:"-ml-1 flex shrink-0 items-center gap-1 rounded-md px-1.5 py-1 font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,t.jsx)(n.ChevronLeft,{className:"size-3"}),e.name]}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] text-foreground",children:m?m.path.split("/").pop()??e.name:e.name}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/70",children:m?`${(0,T.formatBytes)(m.bytes)} \xb7 ${(0,F.shortAgo)(m.at)}`:`${e.count} ${1===e.count?"file":"files"} \xb7 ${(0,F.shortAgo)(e.at)}`}),m&&(0,t.jsx)("a",{href:y.queryKey.fileView(m.path),target:"_blank",rel:"noreferrer","aria-label":"Open in a new tab",className:"grid size-7 shrink-0 place-items-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(i.ExternalLink,{className:"size-4"})}),(0,t.jsx)(v.Button,{size:"icon-sm",variant:"ghost","aria-label":"Reveal in the file manager",className:"text-muted-foreground",onClick:()=>c(m?.path??e.path),children:(0,t.jsx)(l.FolderOpen,{})}),m&&(0,t.jsx)(v.Button,{size:"icon-sm",variant:"ghost","aria-label":"Delete",loading:u,className:"text-muted-foreground",onClick:()=>f(m.path),children:(0,t.jsx)(x.Trash2,{})})]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:m?(0,t.jsx)(A.FilePreview,{path:m.path,bytes:m.bytes}):(0,t.jsx)(I,{name:e.name,onOpen:r})})]})}function I({name:e,onOpen:n}){let{data:i,isLoading:s,error:r}=(0,z.useServerRoute)(y.queryKey.artifactSet(e,k.ARTIFACT_VIEW.setFiles));if(s)return(0,t.jsx)("div",{className:"grid grid-cols-4 gap-3 p-5",children:Array.from({length:8},(e,n)=>(0,t.jsx)(j.Skeleton,{className:"aspect-4/3 w-full rounded-xl"},n))});if(r)return(0,t.jsx)(S.SettingError,{message:r.message});let a=i?.files??[];return 0===a.length?(0,t.jsx)("p",{className:"p-5 text-xs text-muted-foreground/60",children:"Nothing in here the app can open."}):(0,t.jsxs)("div",{className:"p-5",children:[(0,t.jsx)("div",{className:"grid grid-cols-4 gap-3",children:a.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>n(e),title:`${e.name} \xb7 ${(0,T.formatBytes)(e.bytes)}`,className:"flex flex-col gap-1.5 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-offset-2",children:[(0,t.jsx)(L,{file:e}),(0,t.jsx)("span",{className:"truncate font-mono text-[11px] text-muted-foreground",children:e.name})]},e.path))}),i&&i.total>a.length&&(0,t.jsx)("p",{className:"pt-4 font-mono text-[11px] text-muted-foreground/60",children:`${a.length} of ${i.total.toLocaleString("en")} — the rest are in the folder`})]})}function L({file:e}){if("image"===e.view&&e.bytes<=k.WORKSPACE_VIEW.elementMax)return(0,t.jsx)("img",{src:y.queryKey.file(e.path),alt:e.name,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full rounded-xl object-cover"});let n=R[e.view];return(0,t.jsx)("span",{className:"grid aspect-4/3 w-full place-items-center rounded-xl bg-muted/40 text-muted-foreground",children:(0,t.jsx)(n,{className:"size-5"})})}function B({empty:e,onReveal:n}){return(0,t.jsxs)("div",{className:"space-y-4 p-8",children:[(0,t.jsx)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:e?"Nothing finished yet. When a bot ends a job with something to hand over — a page, a report, a set of pictures — it lands here.":"Pick something on the left. A folder a bot filled is one row, and opens as a sheet."}),(0,t.jsxs)(v.Button,{variant:"outline",onClick:n,children:[(0,t.jsx)(l.FolderOpen,{}),"Reveal folder"]})]})}e.s(["ArtifactSetting",0,function(){let[e,n]=(0,p.useState)(null),[i,s]=(0,p.useState)(""),[r,a]=(0,p.useState)(k.ARTIFACT_VIEW.rows),{data:o,isLoading:c,error:d}=(0,z.useServerRoute)(y.queryKey.artifactShelf(r),{keepPreviousData:!0}),[u]=(0,$.useServerAction)(C.openFileAction);if(c)return(0,t.jsx)(S.SettingPanesSkeleton,{});if(d)return(0,t.jsx)(S.SettingError,{message:d.message});let m=o?.entries??[],f=o?.total??0,h=i.trim().toLowerCase(),x=h?m.filter(e=>e.name.toLowerCase().includes(h)):m,g=m.find(t=>t.path===e?.row.path)??e?.row;return(0,t.jsx)(S.SettingPanes,{footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(S.SettingRailNote,{children:(0,t.jsxs)("span",{className:"font-mono",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:"artifacts"}),` \xb7 ${function(e,t,n){if(0===t)return"empty";let i=t>e.length?`${e.length} of ${t.toLocaleString("en")} artifacts`:`${t} ${1===t?"artifact":"artifacts"}`;return n>t?`${i} \xb7 ${n.toLocaleString("en")} files`:i}(m,f,o?.files??0)}`]})}),(0,t.jsxs)(v.Button,{variant:"outline",size:"sm",onClick:()=>u("artifacts"),children:[(0,t.jsx)(l.FolderOpen,{}),"Reveal folder"]})]}),left:(0,t.jsxs)("div",{className:"flex flex-col py-2",children:[(0,t.jsx)(S.SettingFilter,{value:i,onChange:s,placeholder:"Filter artifacts",className:"mx-2 mb-1.5 w-auto"}),0===x.length?(0,t.jsx)("p",{className:"px-4 py-3 text-xs text-muted-foreground/60",children:h?"Nothing matches":"Nothing here yet"}):x.map(e=>(0,t.jsx)(M,{entry:e,active:e.path===g?.path,onPick:()=>n({row:e,file:null})},e.path)),f>m.length&&(0,t.jsx)("button",{type:"button",onClick:()=>a(r+k.ARTIFACT_VIEW.rows),className:"mx-2 mt-2 rounded-md px-2 py-1.5 text-left font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:`Show ${Math.min(k.ARTIFACT_VIEW.rows,f-m.length)} more of ${f.toLocaleString("en")}`})]}),right:g?(0,t.jsx)(V,{row:g,file:e?.file??null,onOpen:e=>n({row:g,file:e}),onBack:()=>n({row:g,file:null}),onGone:()=>n(null)},g.path):(0,t.jsx)(B,{empty:0===f,onReveal:()=>u("artifacts")})})}],94682)},434322,51921,650639,438583,e=>{"use strict";var t=e.i(456420);let n={name:"file-code-corner",size:24,node:[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],aliases:["file-code-2"]};n.node;let i=(0,t.default)(n);e.s(["FileCode2",0,i],434322);let s={name:"music",size:24,node:[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]};s.node;let r=(0,t.default)(s);e.s(["Music",0,r],51921);let a={name:"sheet",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]]};a.node;let o=(0,t.default)(a);e.s(["Sheet",0,o],650639);let l={name:"video",size:24,node:[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]};l.node;let c=(0,t.default)(l);e.s(["Video",0,c],438583)},759659,e=>{"use strict";var t=e.i(456420);let n={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};n.node;let i=(0,t.default)(n);e.s(["Trash2",0,i],759659)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,94682,e=>{"use strict";var t=e.i(843476),n=e.i(24071),i=e.i(482022),s=e.i(829600),r=e.i(434322),a=e.i(905015),o=e.i(226091),l=e.i(569644),c=e.i(815170),d=e.i(456420);let u={name:"images",size:24,node:[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16",key:"9kzy35"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2",key:"1t0f0t"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor",key:"1obus6"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2",key:"1gvhby"}]]};u.node;let f=(0,d.default)(u);var m=e.i(51921),h=e.i(650639),x=e.i(759659),g=e.i(438583),p=e.i(271645),y=e.i(798120),v=e.i(167881),b=e.i(917162),j=e.i(671428),k=e.i(41533),N=e.i(95187);let w=(0,N.createServerReference)("7fc5826b1ab07dadbb3ec995a5171fff0a4fab8c7a",N.callServer,void 0,N.findSourceMapURL,"deleteArtifactAction");var S=e.i(895836),A=e.i(621285),C=e.i(177373),F=e.i(245629),$=e.i(609856),z=e.i(283653),T=e.i(647163);let R={markdown:o.FileText,csv:h.Sheet,json:a.FileJson,text:o.FileText,frame:r.FileCode2,image:c.Image,audio:m.Music,video:g.Video,none:s.File};function M({entry:e,active:n,onPick:i}){let s="set"===e.kind?f:R[e.view];return(0,t.jsxs)("button",{type:"button",onClick:i,title:`${e.name} \xb7 ${(0,F.shortAgo)(e.at)}`,className:(0,T.cn)("mx-2 flex items-center gap-2 rounded-md px-2 py-1.5 text-left text-[13px] outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",n?"bg-secondary font-medium text-foreground":"text-muted-foreground hover:bg-muted/60 hover:text-foreground"),children:[(0,t.jsx)(s,{className:"size-3.5 shrink-0 opacity-70"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.name}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/75",children:"set"===e.kind?e.count:(0,T.formatBytes)(e.bytes)})]})}function V({row:e,file:s,onOpen:r,onBack:a,onGone:o}){let[c]=(0,$.useServerAction)(C.openFileAction),[d,u]=(0,$.useServerAction)(w,{okMessage:"Deleted",onOk:()=>{(0,z.revalidate)(y.queryKey.artifacts),s?a():o()}}),f=s?{path:s.path,bytes:s.bytes,at:s.at}:"file"===e.kind?{path:e.path,bytes:e.bytes,at:e.at}:null,m=async e=>{await b.notify.confirm({title:`Delete ${e.split("/").pop()}?`,description:"It is deleted from disk for good.",okText:"Delete",destructive:!0})&&d(e)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex h-11 shrink-0 items-center gap-3 border-b border-border/60 px-6",children:[s&&(0,t.jsxs)("button",{type:"button",onClick:a,className:"-ml-1 flex shrink-0 items-center gap-1 rounded-md px-1.5 py-1 font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,t.jsx)(n.ChevronLeft,{className:"size-3"}),e.name]}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] text-foreground",children:f?f.path.split("/").pop()??e.name:e.name}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/70",children:f?`${(0,T.formatBytes)(f.bytes)} \xb7 ${(0,F.shortAgo)(f.at)}`:`${e.count} ${1===e.count?"file":"files"} \xb7 ${(0,F.shortAgo)(e.at)}`}),f&&(0,t.jsx)("a",{href:y.queryKey.fileView(f.path),target:"_blank",rel:"noreferrer","aria-label":"Open in a new tab",className:"grid size-7 shrink-0 place-items-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(i.ExternalLink,{className:"size-4"})}),(0,t.jsx)(v.Button,{size:"icon-sm",variant:"ghost","aria-label":"Reveal in the file manager",className:"text-muted-foreground",onClick:()=>c(f?.path??e.path),children:(0,t.jsx)(l.FolderOpen,{})}),f&&(0,t.jsx)(v.Button,{size:"icon-sm",variant:"ghost","aria-label":"Delete",loading:u,className:"text-muted-foreground",onClick:()=>m(f.path),children:(0,t.jsx)(x.Trash2,{})})]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:f?(0,t.jsx)(A.FilePreview,{path:f.path,bytes:f.bytes}):(0,t.jsx)(I,{name:e.name,onOpen:r})})]})}function I({name:e,onOpen:n}){let{data:i,isLoading:s,error:r}=(0,z.useServerRoute)(y.queryKey.artifactSet(e,k.ARTIFACT_VIEW.setFiles));if(s)return(0,t.jsx)("div",{className:"grid grid-cols-4 gap-3 p-5",children:Array.from({length:8},(e,n)=>(0,t.jsx)(j.Skeleton,{className:"aspect-4/3 w-full rounded-xl"},n))});if(r)return(0,t.jsx)(S.SettingError,{message:r.message});let a=i?.files??[];return 0===a.length?(0,t.jsx)("p",{className:"p-5 text-xs text-muted-foreground/60",children:"Nothing in here the app can open."}):(0,t.jsxs)("div",{className:"p-5",children:[(0,t.jsx)("div",{className:"grid grid-cols-4 gap-3",children:a.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>n(e),title:`${e.name} \xb7 ${(0,T.formatBytes)(e.bytes)}`,className:"flex flex-col gap-1.5 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-offset-2",children:[(0,t.jsx)(L,{file:e}),(0,t.jsx)("span",{className:"truncate font-mono text-[11px] text-muted-foreground",children:e.name})]},e.path))}),i&&i.total>a.length&&(0,t.jsx)("p",{className:"pt-4 font-mono text-[11px] text-muted-foreground/60",children:`${a.length} of ${i.total.toLocaleString("en")} — the rest are in the folder`})]})}function L({file:e}){if("image"===e.view&&e.bytes<=k.WORKSPACE_VIEW.elementMax)return(0,t.jsx)("img",{src:y.queryKey.file(e.path),alt:e.name,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full rounded-xl object-cover"});let n=R[e.view];return(0,t.jsx)("span",{className:"grid aspect-4/3 w-full place-items-center rounded-xl bg-muted/40 text-muted-foreground",children:(0,t.jsx)(n,{className:"size-5"})})}function B({empty:e,onReveal:n}){return(0,t.jsxs)("div",{className:"space-y-4 p-8",children:[(0,t.jsx)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:e?"Nothing finished yet. When a bot ends a job with something to hand over — a page, a report, a set of pictures — it lands here.":"Pick something on the left. A folder a bot filled is one row, and opens as a sheet."}),(0,t.jsxs)(v.Button,{variant:"outline",onClick:n,children:[(0,t.jsx)(l.FolderOpen,{}),"Reveal folder"]})]})}e.s(["ArtifactSetting",0,function(){let[e,n]=(0,p.useState)(null),[i,s]=(0,p.useState)(""),[r,a]=(0,p.useState)(k.ARTIFACT_VIEW.rows),{data:o,isLoading:c,error:d}=(0,z.useServerRoute)(y.queryKey.artifactShelf(r),{keepPreviousData:!0}),[u]=(0,$.useServerAction)(C.openFileAction);if(c)return(0,t.jsx)(S.SettingPanesSkeleton,{});if(d)return(0,t.jsx)(S.SettingError,{message:d.message});let f=o?.entries??[],m=o?.total??0,h=i.trim().toLowerCase(),x=h?f.filter(e=>e.name.toLowerCase().includes(h)):f,g=f.find(t=>t.path===e?.row.path)??e?.row;return(0,t.jsx)(S.SettingPanes,{footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(S.SettingRailNote,{children:(0,t.jsxs)("span",{className:"font-mono",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:"artifacts"}),` \xb7 ${function(e,t,n){if(0===t)return"empty";let i=t>e.length?`${e.length} of ${t.toLocaleString("en")} artifacts`:`${t} ${1===t?"artifact":"artifacts"}`;return n>t?`${i} \xb7 ${n.toLocaleString("en")} files`:i}(f,m,o?.files??0)}`]})}),(0,t.jsxs)(v.Button,{variant:"outline",size:"sm",onClick:()=>u("artifacts"),children:[(0,t.jsx)(l.FolderOpen,{}),"Reveal folder"]})]}),left:(0,t.jsxs)("div",{className:"flex flex-col py-2",children:[(0,t.jsx)(S.SettingFilter,{value:i,onChange:s,placeholder:"Filter artifacts",className:"mx-2 mb-1.5 w-auto"}),0===x.length?(0,t.jsx)("p",{className:"px-4 py-3 text-xs text-muted-foreground/60",children:h?"Nothing matches":"Nothing here yet"}):x.map(e=>(0,t.jsx)(M,{entry:e,active:e.path===g?.path,onPick:()=>n({row:e,file:null})},e.path)),m>f.length&&(0,t.jsx)("button",{type:"button",onClick:()=>a(r+k.ARTIFACT_VIEW.rows),className:"mx-2 mt-2 rounded-md px-2 py-1.5 text-left font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:`Show ${Math.min(k.ARTIFACT_VIEW.rows,m-f.length)} more of ${m.toLocaleString("en")}`})]}),right:g?(0,t.jsx)(V,{row:g,file:e?.file??null,onOpen:e=>n({row:g,file:e}),onBack:()=>n({row:g,file:null}),onGone:()=>n(null)},g.path):(0,t.jsx)(B,{empty:0===m,onReveal:()=>u("artifacts")})})}],94682)},434322,51921,650639,438583,e=>{"use strict";var t=e.i(456420);let n={name:"file-code-corner",size:24,node:[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],aliases:["file-code-2"]};n.node;let i=(0,t.default)(n);e.s(["FileCode2",0,i],434322);let s={name:"music",size:24,node:[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]};s.node;let r=(0,t.default)(s);e.s(["Music",0,r],51921);let a={name:"sheet",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]]};a.node;let o=(0,t.default)(a);e.s(["Sheet",0,o],650639);let l={name:"video",size:24,node:[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]};l.node;let c=(0,t.default)(l);e.s(["Video",0,c],438583)},759659,e=>{"use strict";var t=e.i(456420);let n={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};n.node;let i=(0,t.default)(n);e.s(["Trash2",0,i],759659)}]);
|