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
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
module.exports=[858471,a=>a.a(async(b,c)=>{try{var d=a.i(12208),e=a.i(762008),f=a.i(986743),g=a.i(661210),h=a.i(176668),i=a.i(938934),j=b([f]);async function k(a){var b,c,j;let k,[l,m]=await Promise.all([(0,f.listNoteIndex)(),(0,f.listAlwaysLoaded)()]),n=[`You are the second reader of Thursday's memory. Thursday is a voice assistant; during a call she saves what she picks up one fact at a time, between sentences, and misses things. You read the same calls afterwards, whole and unhurried, and put memory right. Nobody hears you: there is no user on the line and nothing you write is spoken. ${(0,i.nowLine)()}`,(b=l,k=(c=m).length?`Carried into every call without opening a note (at most ${g.ALWAYS_LOADED_MAX}):
|
|
2
|
-
|
|
3
|
-
${(0,i.carriedLines)(c)}`:`Nothing is carried into every call yet (at most ${g.ALWAYS_LOADED_MAX} lines can be).`,`## Memory
|
|
4
|
-
|
|
5
|
-
The only thing that survives between calls. One note per subject; a fact is one line that stands on its own later.
|
|
6
|
-
|
|
7
|
-
${k}
|
|
8
|
-
|
|
9
|
-
path — what is under it (facts) "what the user calls it"
|
|
10
|
-
|
|
11
|
-
${(0,i.noteLines)(b)}
|
|
12
|
-
|
|
13
|
-
${g.MEMORY_PATHS.map(a=>`- ${a.path} — ${a.of}`).join("\n")}
|
|
14
|
-
|
|
15
|
-
Open a note with \`${e.TOOL_NAMES.memory_recall}\` before writing into it; the listing shows counts, not contents.`),`## The read
|
|
16
|
-
|
|
17
|
-
Read what was said, then set memory against it. What came up and is not saved goes in with \`${e.TOOL_NAMES.memory_remember}\`: one fact per line, dates as dates, under the note it belongs to, with a description and the names they say for a new note. What is saved but the conversation shows has changed is corrected with \`replaces\`, never left standing beside the old line. What was already saved as it went is listed under the transcript; do not save it again, but a clumsy or doubled line among it is fair to replace, and one that is plainly wrong is fair to \`${e.TOOL_NAMES.memory_forget}\`.
|
|
18
|
-
|
|
19
|
-
A standing rule they laid down — what to call them, their language, how long an answer runs, when to hang up — is \`alwaysLoad\`. Carried lines are few, so one that has stopped earning its place goes back to ordinary with \`alwaysLoad\` false.
|
|
20
|
-
|
|
21
|
-
A fact in \`${g.MEMORY_INBOX}\` that now has an obvious home is written under that note and forgotten from the inbox.
|
|
22
|
-
|
|
23
|
-
Small talk, the weather, what she said back: not facts. This can end with nothing changed, and often does. When you are done, or there was nothing to do, call \`${e.TOOL_NAMES.tidy_done}\`.`].join("\n\n"),o=[function(a){let b=[],c=null;for(let e of a.turns)e.callId!==c&&(c=e.callId,b.push(`### ${(0,d.format)(e.startedAt,"yyyy-MM-dd (EEE) HH:mm")}`)),b.push(`${"user"===e.role?"user":"Thursday"}: ${e.text}`);let e=a.clipped?"The most recent turns said since your last read. Older ones went past what fits and are not coming back — what matters most is here.":"Everything said since your last read, oldest call first.";return`## What was said
|
|
24
|
-
|
|
25
|
-
${e}
|
|
26
|
-
|
|
27
|
-
${b.join("\n")}`}(a),(j=a.written).length?`## Saved while it was said
|
|
28
|
-
|
|
29
|
-
${(0,i.carriedLines)(j)}`:`## Saved while it was said
|
|
30
|
-
|
|
31
|
-
Nothing.`].join("\n\n");return(0,i.logPromptSize)("tidy",`${n}
|
|
32
|
-
|
|
33
|
-
${o}`),h.logger.debug(`tidy prompt
|
|
34
|
-
${n}
|
|
35
|
-
|
|
36
|
-
${o}`),{system:n,user:o}}[f]=j.then?(await j)():j,a.s(["loadTidyPrompt",0,k]),c()}catch(a){c(a)}},!1),614747,a=>a.a(async(b,c)=>{try{var d=a.i(569572),e=a.i(762008),f=a.i(221214),g=a.i(84929),h=a.i(986743),i=a.i(661210),j=a.i(138100),k=a.i(569549),l=a.i(821415),m=a.i(176668),n=a.i(644468),o=a.i(938934),p=b([f,g,h,k,n]);async function q(a,b){var c,p,q;let u=await (0,l.openWorkspace)(),[v,w,x,y,z,A,B]=await Promise.all([(0,j.loadSkills)(u),(0,h.listNoteIndex)(),(0,h.listAlwaysLoaded)(),(0,n.listConnectedToolNames)(),(0,f.listJobBots)(),(0,k.listRecentTurns)(d.RECENT_CALL.rows),(0,k.readCallSkillsOn)()]),C=await (0,g.listCallJobs)(A.map(a=>a.callId)),D=w.filter(a=>(0,i.isAlwaysListed)(a.path)&&0===a.factCount),E=[`You are Thursday, a personal voice assistant modeled on Friday, the AI in *Iron Man* — quick, warm, dry, on their side. ${(0,o.nowLine)()}
|
|
37
|
-
|
|
38
|
-
This is a call, not a chat: one or two sentences a turn. If you did not catch something, say so and ask again.`,function(a,b){let{crowded:c,heavy:d}=(0,o.tidying)(a),f=`## Memory
|
|
39
|
-
|
|
40
|
-
What you have kept from talking with this user — the only thing that survives a session.`,g=b.length?`Already known — carried into every call:
|
|
41
|
-
|
|
42
|
-
${(0,o.carriedLines)(b)}`:"",h=`path — what is under it (facts) "what the user calls it"
|
|
43
|
-
|
|
44
|
-
${(0,o.noteLines)(a,c)}
|
|
45
|
-
|
|
46
|
-
Open a note before answering out of it; a topic not listed is one you know nothing about.
|
|
47
|
-
|
|
48
|
-
Anything worth knowing next time goes in the moment it comes up, without asking — one fact per line, dates as dates. A rule they lay down for you — their language, how long an answer runs, when to hang up — is \`alwaysLoad\`; unsaved, it dies with the call. What stopped being true is corrected with \`replaces\`, not left standing beside it. Never claim to remember what you did not save.
|
|
49
|
-
|
|
50
|
-
${i.MEMORY_PATHS.map(a=>`- ${a.path} — ${a.of}`).join("\n")}`,j=d.length?`Too long to hold in one piece: ${d.map(a=>`${a.path} (${a.factCount})`).join(", ")}.`:`This listing is past its size. Coldest: ${a.slice(-4).map(a=>a.path).join(", ")}.`,k=c||d.length?`${j} In a lull, put one on their screen with \`${e.TOOL_NAMES.memory_show}\` and forget only what they name.`:"";return[f,g,h,k].filter(Boolean).join("\n\n")}(w,x),function(a){if(0===a.roster.length)return"";let b=`## Bots
|
|
51
|
-
|
|
52
|
-
Who you hand work to — the names \`${e.TOOL_NAMES.delegate}\` takes.
|
|
53
|
-
|
|
54
|
-
${a.roster.map(a=>`- **${a.name}** — ${a.description}`).join("\n")}`,c=[a.skills.length?`**Skills** a bot reads before it starts:
|
|
55
|
-
${(0,o.skillLines)(a.skills,{short:!0})}`:"",a.mcpTools.length?`**Connected services** a bot can run tools inside:
|
|
56
|
-
${(0,o.mcpServerLines)(a.mcpTools)}`:""].filter(Boolean),d=c.length?`Not yours, and not names to hand work to:
|
|
57
|
-
|
|
58
|
-
${c.join("\n\n")}`:"",f=`**Anything that takes more than a few seconds is a bot's** — one note or one file is yours. \`${e.TOOL_NAMES.delegate}\` answers at once: say who has it and keep talking. Put the request in their own words, with what it stands on and nothing they did not say; if something only they can say is missing — how much, which one, by when — ask that first.
|
|
59
|
-
|
|
60
|
-
A job you handed over is followed with \`${e.TOOL_NAMES.task}\` — to answer what it asks, change its course, or continue it — never with a second \`${e.TOOL_NAMES.delegate}\`; with no job named it lists what is open.`;return[b,"**A bot has the whole machine** — this computer, a real browser, the web, files, a shell to build whatever is missing — and far more time than you. It signs in where it has to, with the window in front of them, and carries a job to the end: the thing bought, the account made, the page built. How, and whether, is its call; yours is what they want — so a thing you have no idea how to do is a job, not a no. Bots borrow each other, so a job that spans several things is still one job for one bot.",d,f,"A job comes back as a system note, not the user speaking: tell them in one sentence, in your own words. A file it names opens on their screen by itself — say what it holds, not the path. A question arrives the same way: answer it yourself if you can, else read them the options and send back what they say."].filter(Boolean).join("\n\n")}({roster:z,skills:B?[]:v,mcpTools:y}),(c=B?v:[],0===c.length?"":`## Skills
|
|
61
|
-
|
|
62
|
-
How a thing is done here, written down. A bot reads one before it starts; these you can read too.
|
|
63
|
-
|
|
64
|
-
${(0,o.skillLines)(c,{short:!0})}
|
|
65
|
-
|
|
66
|
-
\`${e.TOOL_NAMES.load_skill}\` puts one in front of you, and what it says then goes for you as well. Read one when it covers what was asked and the doing is a glance — a note, a file, one command. What it describes that takes longer is still a job: hand that over, with what the skill said in the request.`),t(u.cwd),(p=A,q=C,p.some(a=>a.turns.length>0)?`## Recent conversation
|
|
67
|
-
|
|
68
|
-
What was said on the last calls, verbatim, newest last. This is the past: pick it up when the user brings it up, never answer as though it was just asked.
|
|
69
|
-
|
|
70
|
-
A \`${e.TOOL_NAMES.delegate}\` line carries the job's handle and how it ended; the handle is for \`${e.TOOL_NAMES.task}\`, never said out loud. What they ask for now is often one of these carried further, not a new job.
|
|
71
|
-
|
|
72
|
-
${(0,o.recentCallLines)(p.map(a=>({...a,jobs:q.filter(b=>b.callId===a.callId)})),d.RECENT_CALL.tokens)}`:""),s(a)].filter(Boolean).join("\n\n");return(0,o.logPromptSize)("thursday",E),m.logger.debug(`thursday prompt
|
|
73
|
-
${E}`),{text:E,peers:z.map(a=>a.name),opening:D.some(a=>"profile"===a.path)?r(b):null}}[f,g,h,k,n]=p.then?(await p)():p;let r=a=>`[First call — nothing is known about this user yet, and this call is where that changes. This is not the user speaking.
|
|
74
|
-
|
|
75
|
-
Open the conversation yourself: greet them in one line and ask what to call them.${a?` Say it in the language of \`${a}\` — that is what their browser is set to, and it is the only thing known about them so far. If they answer in another language, that one wins from then on.`:""}
|
|
76
|
-
|
|
77
|
-
From there, the work of this call is learning who they are. As a conversation, not a form: one question at a time, and each answer saved with \`${e.TOOL_NAMES.memory_remember}\` the moment it lands, before the next question. What to call them and how to refer to them. The language and register they want from you — switch to their language the moment you hear it. What they do, and where. Who is around them — family, whoever they live with, the people they name. How they like things done.
|
|
78
|
-
|
|
79
|
-
Their name, their language and how to address them are \`alwaysLoad\`; the rest goes to \`profile\`, \`preferences\` and \`people/\`.
|
|
80
|
-
|
|
81
|
-
If they came with something they want done, that comes first — hand it over and pick this up in the gaps. But do not end this call without a name and a language saved.]`,s=a=>a?.trim()?`## Owner's instruction
|
|
82
|
-
|
|
83
|
-
Written by the user themselves. Where this and anything above disagree, this wins.
|
|
84
|
-
|
|
85
|
-
${a.trim()}`:"",t=a=>`## Environment
|
|
86
|
-
|
|
87
|
-
Current Cwd: ${a}
|
|
88
|
-
Platform: ${process.platform}
|
|
89
|
-
|
|
90
|
-
Where \`${e.TOOL_NAMES.bash}\` runs, and what the paths you get back are relative to. Yours to use while you talk: open a file, play something, look at what is on the machine — one command is a thing you do, not a job you hand over.`;a.s(["loadThursdayPrompt",0,q]),c()}catch(a){c(a)}},!1),260210,a=>{"use strict";var b=a.i(137936),c=a.i(912714),d=a.i(750227);a.i(569572),a.i(684321);var e=a.i(821415),f=a.i(293480);async function g(a){let b=await (0,e.insideWorkspace)(a);return b?.startsWith(e.ARTIFACTS+d.sep)||(0,f.publicError)("Not an artifact"),b}async function h(a){let b=await g(a),d=await (0,c.stat)(b).catch(()=>null);d||(0,f.publicError)("File not found"),d.isFile()||(0,f.publicError)("That is a folder, not a file"),await (0,c.rm)(b)}var i=a.i(225689),j=a.i(713095);let k=(0,i.serverAction)(async a=>{let b=a.trim();b||(0,f.publicError)("Which file?"),await h(b)});(0,j.ensureServerEntryExports)([k]),(0,b.registerServerReference)(k,"7fce3f493e6c36ed983cc6adcb44ebe36f59ca1837",null),a.s(["deleteArtifactAction",0,k],260210)},362562,(a,b,c)=>{b.exports=a.x("module",()=>require("module"))},910350,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(53112),f=a.i(689656),g=a.i(225689),h=a.i(293480),i=a.i(221214),j=a.i(674986),k=a.i(446957),l=a.i(636616),m=a.i(84929),n=a.i(713095),o=b([i,j,m]);[i,j,m]=o.then?(await o)():o;let p=(0,g.serverAction)(async a=>{let b=k.BotFormSchema.parse(a),c=await (0,i.createBot)(b);return c||(0,h.publicError)(`"${b.name}" already exists`),{name:c.name}}),q=(0,g.serverAction)(async(a,b)=>{let c=k.BotFormSchema.partial().parse(b);await (0,i.updateBot)(a,c)||(0,h.publicError)("Bot not found")}),r=e.z.object({name:e.z.string().trim().min(1).max(80),provider:f.textModelProviderSchema.nullish(),model:e.z.string().trim().min(1).max(80).nullish(),color:k.botIconSchema.shape.color}),s=(0,g.serverAction)(async a=>{let b=r.array().max(20).parse(a),c=(0,l.rollSeedColors)(),d=[];for(let[a,e]of b.entries()){let b=(0,l.findBotSeed)(e.name);if(!b)continue;let f=await (0,i.createBot)({name:b.name,description:b.description,systemPrompt:b.systemPrompt,icon:{...b.icon,color:e.color??c[a%c.length]},provider:e.provider,model:e.model,toolIds:[]});f&&d.push(f.name)}return{created:d}}),t=(0,g.serverAction)(async a=>{await (0,i.deleteBot)(a)||(0,h.publicError)("Bot not found")}),u=(0,g.serverAction)(async a=>{await (0,i.clearBotNote)(a)}),v=(0,g.serverAction)(async a=>{await (0,i.writeBotNotesOn)(!0===a)}),w=(0,g.serverAction)(async(a,b)=>{let c,d,e=b.trim();e||(0,h.publicError)("Nothing to hand over.");let f=await (0,i.findBot)(a);f||(0,h.publicError)(`No bot called "${a}".`);let g=(d=(c=e.replace(/\s+/g," ").trim().split(" ")).slice(0,4).join(" "),(c.length>4?`${d}…`:d).slice(0,60));return{id:await (0,j.startTask)({bot:f.name,request:e,label:g}),label:g,bot:f.name}}),x=(0,g.serverAction)(async(a,b)=>{let c=await (0,m.resolveTask)(a);return c||(0,h.publicError)(`No job called "${a}".`),b.trim()||(0,h.publicError)("Nothing to tell it."),await (0,j.answerTask)(c.id,b.trim()),{id:c.id,label:c.label,status:"running"}}),y=(0,g.serverAction)(async a=>{let b=await (0,m.resolveTask)(a);return b||(0,h.publicError)(`No job called "${a}".`),await (0,j.cancelTask)(b.id),{id:b.id,label:b.label,status:"cancelled"}}),z=(0,g.serverAction)(async a=>{await (0,m.markReported)(a.filter(a=>"string"==typeof a&&a))}),A=(0,g.serverAction)(async a=>{await (0,j.removeTask)(a)||(0,h.publicError)("Task not found")}),B=(0,g.serverAction)(async()=>({removed:await (0,j.removeFinishedTasks)()}));(0,n.ensureServerEntryExports)([p,q,s,t,u,v,w,x,y,z,A,B]),(0,d.registerServerReference)(p,"7faa7108c1a244c9682e3b4c351515a7f87958d173",null),(0,d.registerServerReference)(q,"7f6ec11c62992232937976b0eb0a9fa55db31af082",null),(0,d.registerServerReference)(s,"7f1756723e53cd4bfc5aa2715712bb90f079d8bd4d",null),(0,d.registerServerReference)(t,"7f69d7c95bf47377324c543fbadb5ce5bdd8af67b1",null),(0,d.registerServerReference)(u,"7f05ba605622eb8b4b2163fc0f0655bc1b7ed1024e",null),(0,d.registerServerReference)(v,"7f070e9079781799dfcd47936d678a1145c3802d20",null),(0,d.registerServerReference)(w,"7f1853e08ff28db8b3a58db60a0fab8d0b74abe935",null),(0,d.registerServerReference)(x,"7f130e379b411cea54d564cd7c8822f5cc7cce3042",null),(0,d.registerServerReference)(y,"7f106cc55d238f82d75c85a8916cb1d3c2c3a9401c",null),(0,d.registerServerReference)(z,"7ff85aa737cda325a8b80f964721a420dbfa665547",null),(0,d.registerServerReference)(A,"7f9f887848ed2939266697558b2b53dad0f36a12a9",null),(0,d.registerServerReference)(B,"7f80816611593aeb950e1104f1dbc9de5d7fba0f77",null),a.s(["answerTaskAction",0,x,"cancelTaskAction",0,y,"clearBotNoteAction",0,u,"clearFinishedTasksAction",0,B,"createBotAction",0,p,"createSeedBotsAction",0,s,"deleteBotAction",0,t,"deleteTaskAction",0,A,"markReportedAction",0,z,"setBotNotesOnAction",0,v,"startTaskAction",0,w,"updateBotAction",0,q]),c()}catch(a){c(a)}},!1),937864,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(53112),f=a.i(225689),g=a.i(293480),h=a.i(688034),i=a.i(725466),j=a.i(713095),k=b([i]);[i]=k.then?(await k)():k;let l=e.z.enum(h.CONFIG_KEYS),m=(0,f.serverAction)(async(a,b)=>{let c=e.z.object({key:l,value:e.z.string().trim().min(1)}).parse({key:a,value:b}),d=h.CONFIG_ENTRIES[c.key];d?.choices?(0,h.acceptsChoice)(d,c.value)||(0,g.publicError)("That is not one of the options."):c.value.length<8&&(0,g.publicError)("That does not look like a key"),await (0,i.writeConfig)(c.key,c.value)}),n=(0,f.serverAction)(async a=>{await (0,i.removeConfig)(l.parse(a))});(0,j.ensureServerEntryExports)([m,n]),(0,d.registerServerReference)(m,"7f9f850eb001fff0447ab11cfd0d9b1ad2225de560",null),(0,d.registerServerReference)(n,"7f250a5798c865a049782fe8ddb8318b44778fc093",null),a.s(["removeConfigAction",0,n,"setConfigAction",0,m]),c()}catch(a){c(a)}},!1),935930,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(569572),f=a.i(947950),g=a.i(899284),h=a.i(225689),i=a.i(293480),j=a.i(182248),k=a.i(317844),l=a.i(713095),m=b([f,k]);[f,k]=m.then?(await m)():m;let o=(0,h.serverAction)(async a=>{let b=g.MCPServerFormSchema.parse(a);b.name===e.STUDIO_SERVER&&(0,i.publicError)(`"${e.STUDIO_SERVER}" is the app's own — pick another name`);let c=!!await (0,f.findServerDetail)(b.name);await (0,f.upsertServer)(b);let d=await n(b.name);return"error"!==d.status||c||await (0,f.deleteServer)(b.name),d}),p=(0,h.serverAction)(async a=>(await k.mcpManager.disconnect(a),n(a))),q=(0,h.serverAction)(async a=>{await k.mcpManager.disconnect(a),await (0,f.deleteServer)(a)||(0,i.publicError)("Server not found")});async function n(a){try{let b=await k.mcpManager.connect(a);return"auth_required"===b.status?{name:a,status:"auth_required",authorizationUrl:b.authorizationUrl,toolCount:0}:{name:a,status:"connected",toolCount:b.tools.length}}catch(b){return{name:a,status:"error",toolCount:0,error:(0,j.errorToString)(b)}}}let r=(0,h.serverAction)(async(a,b,c)=>{try{return await k.mcpManager.callTool(a,b,c)}catch(a){a instanceof k.McpAuthRequiredError&&(0,i.publicError)("Authorization required — reconnect this server first"),(0,i.publicError)((0,j.errorToString)(a))}});(0,l.ensureServerEntryExports)([o,p,q,r]),(0,d.registerServerReference)(o,"7fc8bdee6fb9b42daee324c78238a8cc8c8f5316b9",null),(0,d.registerServerReference)(p,"7f51ee4209873ffb16ed0bf786dee13dd0ea5a776e",null),(0,d.registerServerReference)(q,"7ff20864cdea076900a776fbaca0f394664cf1fc26",null),(0,d.registerServerReference)(r,"7fab1dd91d615032cf1deeda259f7b758bb7276c70",null),a.s(["callToolAction",0,r,"deleteServerAction",0,q,"refreshServerAction",0,p,"registerServerAction",0,o]),c()}catch(a){c(a)}},!1),542715,a=>a.a(async(b,c)=>{try{var d=a.i(937864),e=a.i(910350);a.i(451208);var f=a.i(201300),g=a.i(439759);a.i(260210),a.i(432443);var h=a.i(935930),i=b([d,e,f,g,h]);[d,e,f,g,h]=i.then?(await i)():i,a.s([]),c()}catch(a){c(a)}},!1),873715,a=>a.a(async(b,c)=>{try{var d=a.i(542715),e=a.i(937864),f=a.i(910350),g=a.i(451208),h=a.i(201300),i=a.i(439759),j=a.i(260210),k=a.i(432443),l=a.i(935930),m=b([d,e,f,h,i,l]);[d,e,f,h,i,l]=m.then?(await m)():m,a.s(["7f046a26fa081e136ed5a5bfd782c220d050b373f0",()=>g.emptyScratchAction,"7f05ba605622eb8b4b2163fc0f0655bc1b7ed1024e",()=>f.clearBotNoteAction,"7f070e9079781799dfcd47936d678a1145c3802d20",()=>f.setBotNotesOnAction,"7f106cc55d238f82d75c85a8916cb1d3c2c3a9401c",()=>f.cancelTaskAction,"7f130e379b411cea54d564cd7c8822f5cc7cce3042",()=>f.answerTaskAction,"7f1678f64fbc6194aaa99f379b3feb4c16e5deff76",()=>h.deleteNoteAction,"7f1756723e53cd4bfc5aa2715712bb90f079d8bd4d",()=>f.createSeedBotsAction,"7f1853e08ff28db8b3a58db60a0fab8d0b74abe935",()=>f.startTaskAction,"7f22a0e4340f8432bad5bec227fc6be79f580bc967",()=>i.saveTurnsAction,"7f250a5798c865a049782fe8ddb8318b44778fc093",()=>e.removeConfigAction,"7f2b4a83def44c25e93d0d390130d70aaaf9c406fd",()=>h.addFactsAction,"7f354f08dd6a308f78069ff1a519a6718a4b47f2c2",()=>k.deleteSkillAction,"7f4c8e0df06465e086f180ebe8fbf4a998603ad4a9",()=>k.createSkillAction,"7f51ee4209873ffb16ed0bf786dee13dd0ea5a776e",()=>l.refreshServerAction,"7f5538ce7954520c5afc4d95ff06fd3f75b32021d0",()=>h.forgetFactAction,"7f666d9214481b3d6327600165d7fef7d6a73cfebc",()=>i.deleteCallAction,"7f67bf2655ca9992c673791a8cd1981c03a8eb483d",()=>g.deleteWorkspaceFileAction,"7f69d7c95bf47377324c543fbadb5ce5bdd8af67b1",()=>f.deleteBotAction,"7f6c0cc153c7ab548fc2f550c0e10690f4f99e2113",()=>h.cancelMemoryTidyAction,"7f6ec11c62992232937976b0eb0a9fa55db31af082",()=>f.updateBotAction,"7f74e6d1aa460ff57d58d6f80d820fb3e3ce696d9c",()=>k.setSkillDisabledAction,"7f75936b40de98c3461f8698a4b30d8fb487e425d6",()=>i.resetHistoryAction,"7f7cea0dd78b7202d9addb9d7d1af40102b49e8a52",()=>h.reviseFactAction,"7f7fd2051e8952cb8ab529e5f8cd1694a6a7990cd8",()=>i.openCallAction,"7f80816611593aeb950e1104f1dbc9de5d7fba0f77",()=>f.clearFinishedTasksAction,"7f8490475d10d4ef1af9d6551673eb1df63fb04305",()=>i.setCallSkillsAction,"7f909a59045a8bbce06ccfddff2f1d96dedb7eb96f",()=>k.uploadSkillAction,"7f926a3e4c76c8e2fd5834a27de8748daff8dbfd64",()=>h.setMemoryTidyModelAction,"7f9a89f6f43c3c8fdee150fde50df8256264bc8a44",()=>i.endCallAction,"7f9f850eb001fff0447ab11cfd0d9b1ad2225de560",()=>e.setConfigAction,"7f9f887848ed2939266697558b2b53dad0f36a12a9",()=>f.deleteTaskAction,"7fa417a8d3eef13073369dfdfc84be3e8a34ef631a",()=>h.setFactAlwaysLoadAction,"7faa7108c1a244c9682e3b4c351515a7f87958d173",()=>f.createBotAction,"7fab1dd91d615032cf1deeda259f7b758bb7276c70",()=>l.callToolAction,"7fbebeb1133ca9d4bde7b5febd4c0745cdf145c952",()=>h.updateNoteAction,"7fc8bdee6fb9b42daee324c78238a8cc8c8f5316b9",()=>l.registerServerAction,"7fce3f493e6c36ed983cc6adcb44ebe36f59ca1837",()=>j.deleteArtifactAction,"7fd29793642e2fe44a0c80a6349e5646773644c688",()=>h.runMemoryTidyAction,"7fe080e0e12cab0dc160034ffd533baf59a3952991",()=>h.createNoteAction,"7fe8b3afbc975a1ad4e4d7f319af758baa5a9d2c2c",()=>g.openFileAction,"7ff20864cdea076900a776fbaca0f394664cf1fc26",()=>l.deleteServerAction,"7ff85aa737cda325a8b80f964721a420dbfa665547",()=>f.markReportedAction,"7ff8ab55aac487839ef7a0ccdb756e470c8bdd0509",()=>h.setMemoryTidyOnAction]),c()}catch(a){c(a)}},!1),997931,a=>a.a(async(b,c)=>{try{var d=a.i(530385),e=a.i(93321),f=a.i(351674),g=a.i(203469),h=a.i(184838),i=a.i(714428),j=a.i(689656),k=a.i(725466),l=a.i(661210),m=b([h,k]);[h,k]=m.then?(await m)():m;let x=()=>g.appEvents.emit({type:"memory-tidy"});async function n(){return(0,l.isTidyOn)(await (0,k.readConfig)(l.MEMORY_TIDY_KEYS.on))}async function o(a){await (0,k.writeConfig)(l.MEMORY_TIDY_KEYS.on,a?"on":"off"),x()}async function p(){return(0,j.parseTextModel)(await (0,k.readConfig)(l.MEMORY_TIDY_KEYS.model))}async function q(a){await (0,k.writeConfig)(l.MEMORY_TIDY_KEYS.model,a?`${a.provider}/${a.model}`:""),x()}async function r(a){let[b]=await h.database.insert(i.memoryTidyRunTable).values({id:crypto.randomUUID(),status:"running",...a}).returning();return x(),b}async function s(a,b){await h.database.update(i.memoryTidyRunTable).set(b).where((0,e.eq)(i.memoryTidyRunTable.id,a)),x()}async function t(a,b){if(!b.length)return;let[c]=await h.database.select({changes:i.memoryTidyRunTable.changes}).from(i.memoryTidyRunTable).where((0,e.eq)(i.memoryTidyRunTable.id,a));c&&(await h.database.update(i.memoryTidyRunTable).set({changes:[...c.changes,...b]}).where((0,e.eq)(i.memoryTidyRunTable.id,a)),x())}async function u(a,b){await h.database.update(i.memoryTidyRunTable).set({inputTokens:f.sql`${i.memoryTidyRunTable.inputTokens} + ${b.input}`,outputTokens:f.sql`${i.memoryTidyRunTable.outputTokens} + ${b.output}`}).where((0,e.eq)(i.memoryTidyRunTable.id,a))}async function v(){let[a]=await h.database.select().from(i.memoryTidyRunTable).where(f.sql`${i.memoryTidyRunTable.status} != 'running'`).orderBy((0,d.desc)(i.memoryTidyRunTable.startedAt)).limit(1);return a??null}async function w(){let a=await h.database.delete(i.memoryTidyRunTable).returning({id:i.memoryTidyRunTable.id});return a.length>0&&x(),a.length}a.s(["addTidyUsage",0,u,"appendTidyChanges",0,t,"deleteAllTidyRuns",0,w,"findLastTidyRun",0,v,"insertTidyRun",0,r,"readTidyModel",0,p,"readTidyOn",0,n,"updateTidyRun",0,s,"writeTidyModel",0,q,"writeTidyOn",0,o]),c()}catch(a){c(a)}},!1),387791,a=>a.a(async(b,c)=>{try{var d=a.i(47919),e=a.i(527990),f=a.i(203469),g=a.i(569572),h=a.i(738131),i=a.i(875931),j=a.i(858471),k=a.i(762008),l=a.i(569549),m=a.i(176668),n=a.i(182248),o=a.i(986743),p=a.i(661210),q=a.i(997931),r=b([h,i,j,l,o,q]);[h,i,j,l,o,q]=r.then?(await r)():r;let w=globalThis.__tidy??={current:null};async function s(a={}){let b;if(w.current)return"running";if(!await (0,q.readTidyOn)())return"off";if(!await (0,q.readTidyModel)())return"no-model";let c=await (0,l.listUnreadCallIds)(),d=await (0,l.listOwedTurns)();if(!d.length)return"nothing";if(!a.force&&d.length<g.MEMORY_TIDY.messages)return"under";let e=d.slice(-g.MEMORY_TIDY.messages),f=e.length<d.length;try{b=await u()}catch(b){let a=await (0,q.insertTidyRun)({provider:"-",model:"-",callIds:c,messages:e.length});return await (0,q.updateTidyRun)(a.id,{status:"failed",error:(0,n.errorToString)(b),endedAt:new Date}),"started"}let h=await (0,q.insertTidyRun)({provider:b.ref.provider,model:b.ref.model,callIds:c,messages:e.length}),i=new AbortController,j=v(h.id,{turns:e,clipped:f,callIds:c},b,i.signal).catch(a=>m.logger.error(`tidy ${h.id}`,a)).finally(()=>{w.current?.id===h.id&&(w.current=null)});return w.current={id:h.id,stop:i,done:j},"started"}async function t(a){let b=w.current;b&&(b.stop.abort(),await b.done,await (0,q.updateTidyRun)(b.id,{status:"stopped",error:a,endedAt:new Date}))}async function u(){let a=await (0,q.readTidyModel)();if(!a)throw Error("No model is set for reading calls back.");return(0,i.getTextModel)(a)}async function v(a,b,c,m){var n,r;let s,t,u=(n=await (0,h.loadTools)({target:"tidy"}),r=b=>(0,q.appendTidyChanges)(a,b),s=n[k.TOOL_NAMES.memory_remember],t=n[k.TOOL_NAMES.memory_forget],s?.execute&&t?.execute?{...n,[k.TOOL_NAMES.memory_remember]:(0,e.tool)({...s,execute:async(a,b)=>{let c=await (0,o.resolveNotePath)(a.path),d=c?await (0,o.findNoteByPath)(c):null,e=new Map((d?.facts??[]).map(a=>[(0,o.sameFact)(a.text),a])),f=new Set((d?.facts??[]).map(a=>a.id)),g=d?.path??a.path.trim(),h=await s.execute?.(a,b),i=[];for(let b of a.facts??[]){let a=b.text.trim();if(!a)continue;let c=e.get((0,o.sameFact)(a));if(c){null!=b.alwaysLoad&&b.alwaysLoad!==c.alwaysLoad&&i.push({op:b.alwaysLoad?"carry":"uncarry",path:g,text:a});continue}i.push({op:null!=b.replaces&&f.has(b.replaces)?"replace":"add",path:g,text:a})}return await r(i),h}}),[k.TOOL_NAMES.memory_forget]:(0,e.tool)({...t,execute:async(a,b)=>{let c=await (0,o.findFactById)(a.factId),d=await t.execute?.(a,b);return c&&await r([{op:"forget",path:c.path,text:c.text}]),d}})}:n),v=null;try{let e=await (0,o.listFactsWrittenBetween)(b.turns[0].startedAt,new Date),{system:f,user:h}=await (0,j.loadTidyPrompt)({...b,written:e});await (0,d.generateText)({model:c.model,system:f,tools:u,messages:[{role:"user",content:h}],stopWhen:[(0,d.stepCountIs)(g.MEMORY_TIDY.steps),(0,d.hasToolCall)(k.TOOL_NAMES.tidy_done)],abortSignal:m,onStepFinish:b=>(0,q.addTidyUsage)(a,x(b.usage))}),m.aborted||await (0,l.markCallsRead)(b.callIds)}catch(a){m.aborted||(v=(0,i.modelErrorToString)(a))}if(m.aborted)return;await (0,q.updateTidyRun)(a,{status:v?"failed":"done",error:v,endedAt:new Date});let w=await (0,q.findLastTidyRun)();f.appEvents.emit({type:"memory-tidied",failed:!!v,tally:v??(0,p.tidyTally)(w?.id===a?w.changes:[])})}let x=a=>({input:a.inputTokens??0,output:a.outputTokens??0});a.s(["startTidy",0,s,"stopTidy",0,t]),c()}catch(a){c(a)}},!1),201300,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(53112),f=a.i(689656),g=a.i(986743),h=a.i(661210),i=a.i(569549),j=a.i(225689),k=a.i(293480),l=a.i(387791),m=a.i(997931),n=a.i(713095),o=b([g,i,l,m]);[g,i,l,m]=o.then?(await o)():o;let p=e.z.string().trim().refine(h.isMemoryPath,"Invalid note path"),q=(0,j.serverAction)(async(a,b,c=[])=>{let d=p.parse(a),f=e.z.string().min(1).parse(b),h=await (0,g.createNote)(d,f,{ownedByUser:!0});for(let a of(h||(0,k.publicError)("Note already exists"),c.map(a=>a.trim()).filter(Boolean)))await (0,g.addFact)(h.id,a);return{id:h.id}}),r=(0,j.serverAction)(async(a,b)=>{await (0,g.updateNote)(a,b)||(0,k.publicError)("Note not found")}),s=(0,j.serverAction)(async a=>{await (0,g.deleteNote)(a)||(0,k.publicError)("Note not found")}),t=(0,j.serverAction)(async(a,b)=>{let c=b.map(a=>a.trim()).filter(Boolean);for(let b of(0===c.length&&(0,k.publicError)("Fact text is required"),c))await (0,g.addFact)(a,b);return{added:c.length}}),u=(0,j.serverAction)(async(a,b,c)=>{c.trim()||(0,k.publicError)("Fact text is required"),await (0,g.reviseFact)(a,b,c.trim())||(0,k.publicError)("Fact not found")}),v=(0,j.serverAction)(async(a,b)=>{await (0,g.forgetFact)(a,b)||(0,k.publicError)("Fact not found")}),w=(0,j.serverAction)(async(a,b,c)=>{let d=await (0,g.setFactAlwaysLoad)(a,b,c);"full"===d&&(0,k.publicError)(`Only ${h.ALWAYS_LOADED_MAX} facts can be carried into every call — drop one first`),"missing"===d&&(0,k.publicError)("Fact not found")}),x=(0,j.serverAction)(async a=>{let b=e.z.boolean().parse(a);b&&!await (0,m.readTidyOn)()&&await (0,i.markEveryCallRead)(),await (0,m.writeTidyOn)(b),b||await (0,l.stopTidy)("Switched off.")}),y=(0,j.serverAction)(async a=>{let b=e.z.string().trim().parse(a);if(!b)return(0,m.writeTidyModel)(null);let c=(0,f.parseTextModel)(b);c||(0,k.publicError)("That is not a model this app can run."),await (0,m.writeTidyModel)(c)}),z=(0,j.serverAction)(async()=>{let a=await (0,l.startTidy)({force:!0});"off"===a&&(0,k.publicError)("Reading calls back is switched off."),"no-model"===a&&(0,k.publicError)("Pick a model first — this does not run on the app default."),"running"===a&&(0,k.publicError)("It is already reading."),"nothing"===a&&(0,k.publicError)("Every call has been read back.")}),A=(0,j.serverAction)(async()=>{await (0,l.stopTidy)("Cancelled.")});(0,n.ensureServerEntryExports)([q,r,s,t,u,v,w,x,y,z,A]),(0,d.registerServerReference)(q,"7fe080e0e12cab0dc160034ffd533baf59a3952991",null),(0,d.registerServerReference)(r,"7fbebeb1133ca9d4bde7b5febd4c0745cdf145c952",null),(0,d.registerServerReference)(s,"7f1678f64fbc6194aaa99f379b3feb4c16e5deff76",null),(0,d.registerServerReference)(t,"7f2b4a83def44c25e93d0d390130d70aaaf9c406fd",null),(0,d.registerServerReference)(u,"7f7cea0dd78b7202d9addb9d7d1af40102b49e8a52",null),(0,d.registerServerReference)(v,"7f5538ce7954520c5afc4d95ff06fd3f75b32021d0",null),(0,d.registerServerReference)(w,"7fa417a8d3eef13073369dfdfc84be3e8a34ef631a",null),(0,d.registerServerReference)(x,"7ff8ab55aac487839ef7a0ccdb756e470c8bdd0509",null),(0,d.registerServerReference)(y,"7f926a3e4c76c8e2fd5834a27de8748daff8dbfd64",null),(0,d.registerServerReference)(z,"7fd29793642e2fe44a0c80a6349e5646773644c688",null),(0,d.registerServerReference)(A,"7f6c0cc153c7ab548fc2f550c0e10690f4f99e2113",null),a.s(["addFactsAction",0,t,"cancelMemoryTidyAction",0,A,"createNoteAction",0,q,"deleteNoteAction",0,s,"forgetFactAction",0,v,"reviseFactAction",0,u,"runMemoryTidyAction",0,z,"setFactAlwaysLoadAction",0,w,"setMemoryTidyModelAction",0,y,"setMemoryTidyOnAction",0,x,"updateNoteAction",0,r]),c()}catch(a){c(a)}},!1),432443,a=>{"use strict";var b,c,d,e=a.i(137936),f=(0,a.i(362562).createRequire)("/");try{c=(b=f("worker_threads")).Worker,d=b.isMarkedAsUntransferable}catch(a){}var g=c?function(a,b,e,f,g){var h=!1,i=new c(a+";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global",{eval:!0}).on("error",function(a){return g(a,null)}).on("message",function(a){return g(null,a)}).on("exit",function(a){a&&!h&&g(Error("exited with code "+a),null)});return d&&(f=f.filter(function(a){return!d(a)})),i.postMessage(e,f),i.terminate=function(){return h=!0,c.prototype.terminate.call(i)},i}:function(a,b,c,d,e){setImmediate(function(){return e(Error("async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)"),null)});var f=function(){};return{terminate:f,postMessage:f}},h=Uint8Array,i=Uint16Array,j=Int32Array,k=new h([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),l=new h([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),m=new h([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),n=function(a,b){for(var c=new i(31),d=0;d<31;++d)c[d]=b+=1<<a[d-1];for(var e=new j(c[30]),d=1;d<30;++d)for(var f=c[d];f<c[d+1];++f)e[f]=f-c[d]<<5|d;return{b:c,r:e}},b=n(k,2),o=b.b,p=b.r;o[28]=258,p[258]=28;for(var q=n(l,0),r=q.b,s=q.r,t=new i(32768),u=0;u<32768;++u){var v=(43690&u)>>1|(21845&u)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,t[u]=((65280&v)>>8|(255&v)<<8)>>1}for(var w=function(a,b,c){for(var d,e=a.length,f=0,g=new i(b);f<e;++f)a[f]&&++g[a[f]-1];var h=new i(b);for(f=1;f<b;++f)h[f]=h[f-1]+g[f-1]<<1;if(c){d=new i(1<<b);var j=15-b;for(f=0;f<e;++f)if(a[f])for(var k=f<<4|a[f],l=b-a[f],m=h[a[f]-1]++<<l,n=m|(1<<l)-1;m<=n;++m)d[t[m]>>j]=k}else for(d=new i(e),f=0;f<e;++f)a[f]&&(d[f]=t[h[a[f]-1]++]>>15-a[f]);return d},x=new h(288),u=0;u<144;++u)x[u]=8;for(var u=144;u<256;++u)x[u]=9;for(var u=256;u<280;++u)x[u]=7;for(var u=280;u<288;++u)x[u]=8;for(var y=new h(32),u=0;u<32;++u)y[u]=5;var z=w(x,9,0),A=w(x,9,1),B=w(y,5,0),C=w(y,5,1),D=function(a){for(var b=a[0],c=1;c<a.length;++c)a[c]>b&&(b=a[c]);return b},E=function(a,b,c){var d=b/8|0;return(a[d]|a[d+1]<<8)>>(7&b)&c},F=function(a,b){var c=b/8|0;return(a[c]|a[c+1]<<8|a[c+2]<<16)>>(7&b)},G=function(a){return(a+7)/8|0},H=function(a,b,c){return(null==b||b<0)&&(b=0),(null==c||c>a.length)&&(c=a.length),new h(a.subarray(b,c))},I=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],J=function(a,b,c){var d=Error(b||I[a]);if(d.code=a,Error.captureStackTrace&&Error.captureStackTrace(d,J),!c)throw d;return d},K=function(a,b,c,d){var e=a.length,f=d?d.length:0;if(!e||b.f&&!b.l)return c||new h(0);var g=!c,i=g||2!=b.i,j=b.i;g&&(c=new h(3*e));var n=function(a){var b=c.length;if(a>b){var d=new h(Math.max(2*b,a));d.set(c),c=d}},p=b.f||0,q=b.p||0,s=b.b||0,t=b.l,u=b.d,v=b.m,x=b.n,y=8*e;do{if(!t){p=E(a,q,1);var z=E(a,q+1,3);if(q+=3,z)if(1==z)t=A,u=C,v=9,x=5;else if(2==z){var B=E(a,q,31)+257,I=E(a,q+10,15)+4,K=B+E(a,q+5,31)+1;q+=14;for(var L=new h(K),M=new h(19),N=0;N<I;++N)M[m[N]]=E(a,q+3*N,7);q+=3*I;for(var O=D(M),P=(1<<O)-1,Q=w(M,O,1),N=0;N<K;){var R=Q[E(a,q,P)];q+=15&R;var S=R>>4;if(S<16)L[N++]=S;else{var T=0,U=0;for(16==S?(U=3+E(a,q,3),q+=2,T=L[N-1]):17==S?(U=3+E(a,q,7),q+=3):18==S&&(U=11+E(a,q,127),q+=7);U--;)L[N++]=T}}var V=L.subarray(0,B),W=L.subarray(B);v=D(V),x=D(W),t=w(V,v,1),u=w(W,x,1)}else J(1);else{var S=G(q)+4,X=a[S-4]|a[S-3]<<8,Y=S+X;if(Y>e){j&&J(0);break}i&&n(s+X),c.set(a.subarray(S,Y),s),b.b=s+=X,b.p=q=8*Y,b.f=p;continue}if(q>y){j&&J(0);break}}i&&n(s+131072);for(var Z=(1<<v)-1,$=(1<<x)-1,_=q;;_=q){var T=t[F(a,q)&Z],aa=T>>4;if((q+=15&T)>y){j&&J(0);break}if(T||J(2),aa<256)c[s++]=aa;else if(256==aa){_=q,t=null;break}else{var ab=aa-254;if(aa>264){var N=aa-257,ac=k[N];ab=E(a,q,(1<<ac)-1)+o[N],q+=ac}var ad=u[F(a,q)&$],ae=ad>>4;ad||J(3),q+=15&ad;var W=r[ae];if(ae>3){var ac=l[ae];W+=F(a,q)&(1<<ac)-1,q+=ac}if(q>y){j&&J(0);break}i&&n(s+131072);var af=s+ab;if(s<W){var ag=f-W,ah=Math.min(W,af);for(ag+s<0&&J(3);s<ah;++s)c[s]=d[ag+s]}for(;s<af;++s)c[s]=c[s-W]}}b.l=t,b.p=_,b.b=s,b.f=p,t&&(p=1,b.m=v,b.d=u,b.n=x)}while(!p)return s!=c.length&&g?H(c,0,s):c.subarray(0,s)},L=function(a,b,c){c<<=7&b;var d=b/8|0;a[d]|=c,a[d+1]|=c>>8},M=function(a,b,c){c<<=7&b;var d=b/8|0;a[d]|=c,a[d+1]|=c>>8,a[d+2]|=c>>16},N=function(a,b){for(var c=[],d=0;d<a.length;++d)a[d]&&c.push({s:d,f:a[d]});var e=c.length,f=c.slice();if(!e)return{t:U,l:0};if(1==e){var g=new h(c[0].s+1);return g[c[0].s]=1,{t:g,l:1}}c.sort(function(a,b){return a.f-b.f}),c.push({s:-1,f:25001});var j=c[0],k=c[1],l=0,m=1,n=2;for(c[0]={s:-1,f:j.f+k.f,l:j,r:k};m!=e-1;)j=c[c[l].f<c[n].f?l++:n++],k=c[l!=m&&c[l].f<c[n].f?l++:n++],c[m++]={s:-1,f:j.f+k.f,l:j,r:k};for(var o=f[0].s,d=1;d<e;++d)f[d].s>o&&(o=f[d].s);var p=new i(o+1),q=O(c[m-1],p,0);if(q>b){var d=0,r=0,s=q-b,t=1<<s;for(f.sort(function(a,b){return p[b.s]-p[a.s]||a.f-b.f});d<e;++d){var u=f[d].s;if(p[u]>b)r+=t-(1<<q-p[u]),p[u]=b;else break}for(r>>=s;r>0;){var v=f[d].s;p[v]<b?r-=1<<b-p[v]++-1:++d}for(;d>=0&&r;--d){var w=f[d].s;p[w]==b&&(--p[w],++r)}q=b}return{t:new h(p),l:q}},O=function(a,b,c){return -1==a.s?Math.max(O(a.l,b,c+1),O(a.r,b,c+1)):b[a.s]=c},P=function(a){for(var b=a.length;b&&!a[--b];);for(var c=new i(++b),d=0,e=a[0],f=1,g=function(a){c[d++]=a},h=1;h<=b;++h)if(a[h]==e&&h!=b)++f;else{if(!e&&f>2){for(;f>138;f-=138)g(32754);f>2&&(g(f>10?f-11<<5|28690:f-3<<5|12305),f=0)}else if(f>3){for(g(e),--f;f>6;f-=6)g(8304);f>2&&(g(f-3<<5|8208),f=0)}for(;f--;)g(e);f=1,e=a[h]}return{c:c.subarray(0,d),n:b}},Q=function(a,b){for(var c=0,d=0;d<b.length;++d)c+=a[d]*b[d];return c},R=function(a,b,c){var d=c.length,e=G(b+2);a[e]=255&d,a[e+1]=d>>8,a[e+2]=255^a[e],a[e+3]=255^a[e+1];for(var f=0;f<d;++f)a[e+f+4]=c[f];return(e+4+d)*8},S=function(a,b,c,d,e,f,g,h,j,n,o){L(b,o++,c),++e[256];for(var p,q,r,s,t=N(e,15),u=t.t,v=t.l,A=N(f,15),C=A.t,D=A.l,E=P(u),F=E.c,G=E.n,H=P(C),I=H.c,J=H.n,K=new i(19),O=0;O<F.length;++O)++K[31&F[O]];for(var O=0;O<I.length;++O)++K[31&I[O]];for(var S=N(K,7),T=S.t,U=S.l,V=19;V>4&&!T[m[V-1]];--V);var W=n+5<<3,X=Q(e,x)+Q(f,y)+g,Y=Q(e,u)+Q(f,C)+g+14+3*V+Q(K,T)+2*K[16]+3*K[17]+7*K[18];if(j>=0&&W<=X&&W<=Y)return R(b,o,a.subarray(j,j+n));if(L(b,o,1+(Y<X)),o+=2,Y<X){p=w(u,v,0),q=u,r=w(C,D,0),s=C;var Z=w(T,U,0);L(b,o,G-257),L(b,o+5,J-1),L(b,o+10,V-4),o+=14;for(var O=0;O<V;++O)L(b,o+3*O,T[m[O]]);o+=3*V;for(var $=[F,I],_=0;_<2;++_)for(var aa=$[_],O=0;O<aa.length;++O){var ab=31&aa[O];L(b,o,Z[ab]),o+=T[ab],ab>15&&(L(b,o,aa[O]>>5&127),o+=aa[O]>>12)}}else p=z,q=x,r=B,s=y;for(var O=0;O<h;++O){var ac=d[O];if(ac>255){var ab=ac>>18&31;M(b,o,p[ab+257]),o+=q[ab+257],ab>7&&(L(b,o,ac>>23&31),o+=k[ab]);var ad=31∾M(b,o,r[ad]),o+=s[ad],ad>3&&(M(b,o,ac>>5&8191),o+=l[ad])}else M(b,o,p[ac]),o+=q[ac]}return M(b,o,p[256]),o+q[256]},T=new j([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),U=new h(0),V=function(a,b,c,d,e,f){var g=f.z||a.length,m=new h(d+g+5*(1+Math.ceil(g/7e3))+e),n=m.subarray(d,m.length-e),o=f.l,q=7&(f.r||0);if(b){q&&(n[0]=f.r>>3);for(var r=T[b-1],t=r>>13,u=8191&r,v=(1<<c)-1,w=f.p||new i(32768),x=f.h||new i(v+1),y=Math.ceil(c/3),z=2*y,A=function(b){return(a[b]^a[b+1]<<y^a[b+2]<<z)&v},B=new j(25e3),C=new i(288),D=new i(32),E=0,F=0,I=f.i||0,J=0,K=f.w||0,L=0;I+2<g;++I){var M=A(I),N=32767&I,O=x[M];if(w[N]=O,x[M]=N,K<=I){var P=g-I;if((E>7e3||J>24576)&&(P>423||!o)){q=S(a,n,0,B,C,D,F,J,L,I-L,q),J=E=F=0,L=I;for(var Q=0;Q<286;++Q)C[Q]=0;for(var Q=0;Q<30;++Q)D[Q]=0}var U=2,V=0,W=u,X=N-O&32767;if(P>2&&M==A(I-X))for(var Y=Math.min(t,P)-1,Z=Math.min(32767,I),$=Math.min(258,P);X<=Z&&--W&&N!=O;){if(a[I+U]==a[I+U-X]){for(var _=0;_<$&&a[I+_]==a[I+_-X];++_);if(_>U){if(U=_,V=X,_>Y)break;for(var aa=Math.min(X,_-2),ab=0,Q=0;Q<aa;++Q){var ac=I-X+Q&32767,ad=w[ac],ae=ac-ad&32767;ae>ab&&(ab=ae,O=ac)}}}O=w[N=O],X+=N-O&32767}if(V){B[J++]=0x10000000|p[U]<<18|s[V];var af=31&p[U],ag=31&s[V];F+=k[af]+l[ag],++C[257+af],++D[ag],K=I+U,++E}else B[J++]=a[I],++C[a[I]]}}for(I=Math.max(I,K);I<g;++I)B[J++]=a[I],++C[a[I]];q=S(a,n,o,B,C,D,F,J,L,I-L,q),o||(f.r=7&q|n[q/8|0]<<3,q-=7,f.h=x,f.p=w,f.i=I,f.w=K)}else{for(var I=f.w||0;I<g+o;I+=65535){var ah=I+65535;ah>=g&&(n[q/8|0]=o,ah=g),q=R(n,q+1,a.subarray(I,ah))}f.i=g}return H(m,0,d+G(q)+e)},W=function(){for(var a=new Int32Array(256),b=0;b<256;++b){for(var c=b,d=9;--d;)c=(1&c&&-0x12477ce0)^c>>>1;a[b]=c}return a}(),X=function(){var a=-1;return{p:function(b){for(var c=a,d=0;d<b.length;++d)c=W[255&c^b[d]]^c>>>8;a=c},d:function(){return~a}}},Y=function(){var a=1,b=0;return{p:function(c){for(var d=a,e=b,f=0|c.length,g=0;g!=f;){for(var h=Math.min(g+2655,f);g<h;++g)e+=d+=c[g];d=(65535&d)+15*(d>>16),e=(65535&e)+15*(e>>16)}a=d,b=e},d:function(){return a%=65521,b%=65521,(255&a)<<24|(65280&a)<<8|(255&b)<<8|b>>8}}},Z=function(a,b,c,d,e){if(!e&&(e={l:1},b.dictionary)){var f=b.dictionary.subarray(-32768),g=new h(f.length+a.length);g.set(f),g.set(a,f.length),a=g,e.w=f.length}return V(a,null==b.level?6:b.level,null==b.mem?e.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):20:12+b.mem,c,d,e)},$=function(a,b){var c={};for(var d in a)c[d]=a[d];for(var d in b)c[d]=b[d];return c},_=function(a,b,c){for(var d=a(),e=a.toString(),f=e.slice(e.indexOf("[")+1,e.lastIndexOf("]")).replace(/\s+/g,"").split(","),g=0;g<d.length;++g){var h=d[g],i=f[g];if("function"==typeof h){b+=";"+i+"=";var j=h.toString();if(h.prototype)if(-1!=j.indexOf("[native code]")){var k=j.indexOf(" ",8)+1;b+=j.slice(k,j.indexOf("(",k))}else for(var l in b+=j,h.prototype)b+=";"+i+".prototype."+l+"="+h.prototype[l].toString();else b+=j}else c[i]=h}return b},aa=[],ab=function(a){var b=[];for(var c in a)a[c].buffer&&b.push((a[c]=new a[c].constructor(a[c])).buffer);return b},ac=function(a,b,c,d){if(!aa[c]){for(var e="",f={},h=a.length-1,i=0;i<h;++i)e=_(a[i],e,f);aa[c]={c:_(a[h],e,f),e:f}}var j=$({},aa[c].e);return g(aa[c].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+b.toString()+"}",c,j,ab(j),d)},ad=function(){return[h,i,j,k,l,m,o,r,A,C,t,I,w,D,E,F,G,H,J,K,aB,ah,ai]},ae=function(){return[h,i,j,k,l,m,p,s,z,x,B,y,t,T,U,w,L,M,N,O,P,Q,R,S,G,H,V,Z,ay,ah]},af=function(){return[aq,ar]},ag=function(){return[au]},ah=function(a){return postMessage(a,[a.buffer])},ai=function(a){return a&&{out:a.size&&new h(a.size),dictionary:a.dictionary}},aj=function(a){return a.ondata=function(a,b){return postMessage([a,b],[a.buffer])},function(b){b.data[0]?(a.push(b.data[0],b.data[1]),postMessage([b.data[0].length])):a.flush(b.data[1])}},ak=function(a,b,c,d,e,f,g){var h,i=ac(a,d,e,function(a,c){a?(i.terminate(),b.ondata.call(b,a)):Array.isArray(c)?1==c.length?(b.queuedSize-=c[0],b.ondrain&&b.ondrain(c[0])):(c[1]&&i.terminate(),b.ondata.call(b,a,c[0],c[1])):g(c)});i.postMessage(c),b.queuedSize=0,b.push=function(a,c){b.ondata||J(5),h&&b.ondata(J(4,0,1),null,!!c),b.queuedSize+=a.length,i.postMessage([a,h=c],a.buffer instanceof ArrayBuffer?[a.buffer]:[])},b.terminate=function(){i.terminate()},f&&(b.flush=function(a){i.postMessage([0,a])})},al=function(a,b){return a[b]|a[b+1]<<8},am=function(a,b){return(a[b]|a[b+1]<<8|a[b+2]<<16|a[b+3]<<24)>>>0},an=function(a,b){return am(a,b)+0x100000000*am(a,b+4)},ao=function(a,b,c){for(;c;++b)a[b]=c,c>>>=8},ap=function(a,b){var c=b.filename;if(a[0]=31,a[1]=139,a[2]=8,a[8]=b.level<2?4:2*(9==b.level),a[9]=3,0!=b.mtime&&ao(a,4,Math.floor(new Date(b.mtime||Date.now())/1e3)),c){a[3]=8;for(var d=0;d<=c.length;++d)a[d+10]=c.charCodeAt(d)}},aq=function(a){(31!=a[0]||139!=a[1]||8!=a[2])&&J(6,"invalid gzip data");var b=a[3],c=10;4&b&&(c+=(a[10]|a[11]<<8)+2);for(var d=(b>>3&1)+(b>>4&1);d>0;d-=!a[c++]);return c+(2&b)},ar=function(a){var b=a.length;return(a[b-4]|a[b-3]<<8|a[b-2]<<16|a[b-1]<<24)>>>0},as=function(a){return 10+(a.filename?a.filename.length+1:0)},at=function(a,b){var c=b.level;if(a[0]=120,a[1]=(0==c?0:c<6?1:9==c?3:2)<<6|(b.dictionary&&32),a[1]|=31-(a[0]<<8|a[1])%31,b.dictionary){var d=Y();d.p(b.dictionary),ao(a,2,d.d())}},au=function(a,b){return((15&a[0])!=8||a[0]>>4>7||(a[0]<<8|a[1])%31)&&J(6,"invalid zlib data"),(a[1]>>5&1)==+!b&&J(6,"invalid zlib data: "+(32&a[1]?"need":"unexpected")+" dictionary"),(a[1]>>3&4)+2};function av(a,b){return"function"==typeof a&&(b=a,a={}),this.ondata=b,a}var aw=function(){function a(a,b){if("function"==typeof a&&(b=a,a={}),this.ondata=b,this.o=a||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new h(98304),this.o.dictionary){var c=this.o.dictionary.subarray(-32768);this.b.set(c,32768-c.length),this.s.i=32768-c.length}}return a.prototype.p=function(a,b){this.ondata(Z(a,this.o,0,0,this.s),b)},a.prototype.push=function(a,b){this.ondata||J(5),this.s.l&&J(4);var c=a.length+this.s.z;if(c>this.b.length){if(c>2*this.b.length-32768){var d=new h(-32768&c);d.set(this.b.subarray(0,this.s.z)),this.b=d}var e=this.b.length-this.s.z;this.b.set(a.subarray(0,e),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(a.subarray(e),32768),this.s.z=a.length-e+32768,this.s.i=32766,this.s.w=32768}else this.b.set(a,this.s.z),this.s.z+=a.length;this.s.l=1&b,(this.s.z>this.s.w+8191||b)&&(this.p(this.b,b||!1),this.s.w=this.s.i,this.s.i-=2),b&&(this.s=this.o={},this.b=U)},a.prototype.flush=function(a){if(this.ondata||J(5),this.s.l&&J(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2,a){var b=new h(6);b[0]=this.s.r>>3;var c=R(b,this.s.r,U);this.s.r=0,this.ondata(b.subarray(0,c>>3),!1)}},a}(),ax=function(a,b){ak([ae,function(){return[aj,aw]}],this,av.call(this,a,b),function(a){onmessage=aj(new aw(a.data))},6,1)};function ay(a,b){return Z(a,b||{},0,0)}var az=function(){function a(a,b){"function"==typeof a&&(b=a,a={}),this.ondata=b;var c=a&&a.dictionary&&a.dictionary.subarray(-32768);this.s={i:0,b:c?c.length:0},this.o=new h(32768),this.p=new h(0),c&&this.o.set(c)}return a.prototype.e=function(a){if(this.ondata||J(5),this.d&&J(4),this.p.length){if(a.length){var b=new h(this.p.length+a.length);b.set(this.p),b.set(a,this.p.length),this.p=b}}else this.p=a},a.prototype.c=function(a){this.s.i=+(this.d=a||!1);var b=this.s.b,c=K(this.p,this.s,this.o);this.ondata(H(c,b,this.s.b),this.d),this.o=H(c,this.s.b-32768),this.s.b=this.o.length,this.p=H(this.p,this.s.p/8|0),this.s.p&=7},a.prototype.push=function(a,b){this.e(a),this.c(b)},a}(),aA=function(a,b){ak([ad,function(){return[aj,az]}],this,av.call(this,a,b),function(a){onmessage=aj(new az(a.data))},7,0)};function aB(a,b){return K(a,{i:2},b&&b.out,b&&b.dictionary)}(function(){function a(a,b){this.c=X(),this.l=0,this.v=1,aw.call(this,a,b)}a.prototype.push=function(a,b){this.c.p(a),this.l+=a.length,aw.prototype.push.call(this,a,b)},a.prototype.p=function(a,b){var c=Z(a,this.o,this.v&&as(this.o),b&&8,this.s);this.v&&(ap(c,this.o),this.v=0),b&&(ao(c,c.length-8,this.c.d()),ao(c,c.length-4,this.l)),this.ondata(c,b)},a.prototype.flush=function(a){aw.prototype.flush.call(this,a)}})();var aC=function(){function a(a,b){this.v=1,this.r=0,az.call(this,a,b)}return a.prototype.push=function(a,b){if(az.prototype.e.call(this,a),this.r+=a.length,this.v){var c=this.p.subarray(this.v-1),d=c.length>3?aq(c):4;if(d>c.length){if(!b)return}else this.v>1&&this.onmember&&this.onmember(this.r-c.length);this.p=c.subarray(d),this.v=0}az.prototype.c.call(this,0),this.s.f&&!this.s.l?(this.v=G(this.s.p)+9,this.s={i:0},this.o=new h(0),this.push(new h(0),b)):b&&az.prototype.c.call(this,b)},a}(),aD=function(a,b){var c=this;ak([ad,af,function(){return[aj,az,aC]}],this,av.call(this,a,b),function(a){var b=new aC(a.data);b.onmember=function(a){return postMessage(a)},onmessage=aj(b)},9,0,function(a){return c.onmember&&c.onmember(a)})},aE=(function(){function a(a,b){this.c=Y(),this.v=1,aw.call(this,a,b)}a.prototype.push=function(a,b){this.c.p(a),aw.prototype.push.call(this,a,b)},a.prototype.p=function(a,b){var c=Z(a,this.o,this.v&&(this.o.dictionary?6:2),b&&4,this.s);this.v&&(at(c,this.o),this.v=0),b&&ao(c,c.length-4,this.c.d()),this.ondata(c,b)},a.prototype.flush=function(a){aw.prototype.flush.call(this,a)}}(),function(){function a(a,b){az.call(this,a,b),this.v=a&&a.dictionary?2:1}return a.prototype.push=function(a,b){if(az.prototype.e.call(this,a),this.v){if(this.p.length<6&&!b)return;this.p=this.p.subarray(au(this.p,this.v-1)),this.v=0}b&&(this.p.length<4&&J(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),az.prototype.c.call(this,b)},a}()),aF=function(a,b){ak([ad,ag,function(){return[aj,az,aE]}],this,av.call(this,a,b),function(a){onmessage=aj(new aE(a.data))},11,0)},aG=function(){function a(a,b){this.o=av.call(this,a,b)||{},this.G=aC,this.I=az,this.Z=aE}return a.prototype.i=function(){var a=this;this.s.ondata=function(b,c){a.ondata(b,c)}},a.prototype.push=function(a,b){if(this.ondata||J(5),this.s)this.s.push(a,b);else{if(this.p&&this.p.length){var c=new h(this.p.length+a.length);c.set(this.p),c.set(a,this.p.length)}else this.p=a;this.p.length>2&&(this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(this.o):(15&this.p[0])!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,b),this.p=null)}},a}();function aH(a,b){aG.call(this,a,b),this.queuedSize=0,this.G=aD,this.I=aA,this.Z=aF}aH.prototype.i=function(){var a=this;this.s.ondata=function(b,c,d){a.ondata(b,c,d)},this.s.ondrain=function(b){a.queuedSize-=b,a.ondrain&&a.ondrain(b)}},aH.prototype.push=function(a,b){this.queuedSize+=a.length,aG.prototype.push.call(this,a,b)};var aI="u">typeof TextEncoder&&new TextEncoder,aJ="u">typeof TextDecoder&&new TextDecoder,aK=0;try{aJ.decode(U,{stream:!0}),aK=1}catch(a){}var aL=function(a){for(var b="",c=0;;){var d=a[c++],e=(d>127)+(d>223)+(d>239);if(c+e>a.length)return{s:b,r:H(a,c-1)};e?3==e?b+=String.fromCharCode(55296|(d=((15&d)<<18|(63&a[c++])<<12|(63&a[c++])<<6|63&a[c++])-65536)>>10,56320|1023&d):1&e?b+=String.fromCharCode((31&d)<<6|63&a[c++]):b+=String.fromCharCode((15&d)<<12|(63&a[c++])<<6|63&a[c++]):b+=String.fromCharCode(d)}};function aM(a,b){if(b){for(var c=new h(a.length),d=0;d<a.length;++d)c[d]=a.charCodeAt(d);return c}if(aI)return aI.encode(a);for(var e=a.length,f=new h(a.length+(a.length>>1)),g=0,i=function(a){f[g++]=a},d=0;d<e;++d){if(g+5>f.length){var j=new h(g+8+(e-d<<1));j.set(f),f=j}var k=a.charCodeAt(d);k<128||b?i(k):(k<2048?i(192|k>>6):(k>55295&&k<57344?(i(240|(k=65536+(1047552&k)|1023&a.charCodeAt(++d))>>18),i(128|k>>12&63)):i(224|k>>12),i(128|k>>6&63)),i(128|63&k))}return H(f,0,g)}function aN(a,b){if(b){for(var c="",d=0;d<a.length;d+=16384)c+=String.fromCharCode.apply(null,a.subarray(d,d+16384));return c}if(aJ)return aJ.decode(a);var e=aL(a),f=e.s,c=e.r;return c.length&&J(8),f}(function(a){this.ondata=a,aK?this.t=new TextDecoder:this.p=U}).prototype.push=function(a,b){if(this.ondata||J(5),b=!!b,this.t){this.ondata(this.t.decode(a,{stream:!0}),b),b&&(this.t.decode().length&&J(8),this.t=null);return}this.p||J(4);var c=new h(this.p.length+a.length);c.set(this.p),c.set(a,this.p.length);var d=aL(c),e=d.s,f=d.r;b?(f.length&&J(8),this.p=null):this.p=f,this.ondata(e,b)},(function(a){this.ondata=a}).prototype.push=function(a,b){this.ondata||J(5),this.d&&J(4),this.ondata(aM(a),this.d=b||!1)};var aO=function(a){return 1==a?3:a<6?2:+(9==a)},aP=function(a,b,c){var d=al(a,b+28),e=al(a,b+30),f=aN(a.subarray(b+46,b+46+d),!(2048&al(a,b+8))),g=b+46+d,h=aQ(a,g,e,c,am(a,b+20),am(a,b+24),am(a,b+42)),i=h[0],j=h[1],k=h[2];return[al(a,b+10),i,j,f,g+e+al(a,b+32),k]},aQ=function(a,b,c,d,e,f,g){var h=0xffffffff==e,i=0xffffffff==f,j=0xffffffff==g,k=b+c;if(d&&h+i+j){for(;b+4<k;b+=4+al(a,b+2))if(1==al(a,b))return[h?an(a,b+4+8*i):e,i?an(a,b+4):f,j?an(a,b+4+8*(i+h)):g,1];d<2&&J(13)}return[e,f,g,0]},aR=function(a){var b=0;if(a)for(var c in a){var d=a[c].length;d>65535&&J(9),b+=d+4}return b},aS=function(a,b,c,d,e,f,g,h){var i=d.length,j=c.extra,k=h&&h.length,l=aR(j);ao(a,b,null!=g?0x2014b50:0x4034b50),b+=4,null!=g&&(a[b++]=20,a[b++]=c.os),a[b]=20,b+=2,a[b++]=c.flag<<1|(f<0&&8),a[b++]=e&&8,a[b++]=255&c.compression,a[b++]=c.compression>>8;var m=new Date(null==c.mtime?Date.now():c.mtime),n=m.getFullYear()-1980;if((n<0||n>119)&&J(10),ao(a,b,n<<25|m.getMonth()+1<<21|m.getDate()<<16|m.getHours()<<11|m.getMinutes()<<5|m.getSeconds()>>1),b+=4,-1!=f&&(ao(a,b,c.crc),ao(a,b+4,f<0?-f-2:f),ao(a,b+8,c.size)),ao(a,b+12,i),ao(a,b+14,l),b+=16,null!=g&&(ao(a,b,k),ao(a,b+6,c.attrs),ao(a,b+10,g),b+=14),a.set(d,b),b+=i,l)for(var o in j){var p=j[o],q=p.length;ao(a,b,+o),ao(a,b+2,q),a.set(p,b+4),b+=4+q}return k&&(a.set(h,b),b+=k),b},aT=function(a,b,c,d,e){ao(a,b,0x6054b50),ao(a,b+8,c),ao(a,b+10,c),ao(a,b+12,d),ao(a,b+16,e)},aU=function(){function a(a){this.filename=a,this.c=X(),this.size=0,this.compression=0}return a.prototype.process=function(a,b){this.ondata(null,a,b)},a.prototype.push=function(a,b){this.ondata||J(5),this.c.p(a),this.size+=a.length,b&&(this.crc=this.c.d()),this.process(a,b||!1)},a}();function aV(a,b){var c=this;b||(b={}),aU.call(this,a),this.d=new aw(b,function(a,b){c.ondata(null,a,b)}),this.compression=8,this.flag=aO(b.level)}function aW(a,b){var c=this;b||(b={}),aU.call(this,a),this.d=new ax(b,function(a,b,d){c.ondata(a,b,d)}),this.compression=8,this.flag=aO(b.level),this.terminate=this.d.terminate}function aX(a){this.ondata=a,this.u=[],this.d=1}aV.prototype.process=function(a,b){try{this.d.push(a,b)}catch(a){this.ondata(a,null,b)}},aV.prototype.push=function(a,b){aU.prototype.push.call(this,a,b)},aW.prototype.process=function(a,b){this.d.push(a,b)},aW.prototype.push=function(a,b){aU.prototype.push.call(this,a,b)},aX.prototype.add=function(a){var b=this;if(this.ondata||J(5),2&this.d)this.ondata(J(4+(1&this.d)*8,0,1),null,!1);else{var c=aM(a.filename),d=c.length,e=a.comment,f=e&&aM(e),g=d!=a.filename.length||f&&e.length!=f.length,i=d+aR(a.extra)+30;d>65535&&this.ondata(J(11,0,1),null,!1);var j=new h(i);aS(j,0,a,c,g,-1);var k=[j],l=function(){for(var a=0,c=k;a<c.length;a++){var d=c[a];b.ondata(null,d,!1)}k=[]},m=this.d;this.d=0;var n=this.u.length,o=$(a,{f:c,u:g,o:f,t:function(){a.terminate&&a.terminate()},r:function(){if(l(),m){var a=b.u[n+1];a?a.r():b.d=1}m=1}}),p=0;a.ondata=function(c,d,e){if(c)b.ondata(c,d,e),b.terminate();else if(p+=d.length,k.push(d),e){var f=new h(16);ao(f,0,0x8074b50),ao(f,4,a.crc),ao(f,8,p),ao(f,12,a.size),k.push(f),o.c=p,o.b=i+p+16,o.crc=a.crc,o.size=a.size,m&&o.r(),m=1}else m&&l()},this.u.push(o)}},aX.prototype.end=function(){var a=this;2&this.d?this.ondata(J(4+(1&this.d)*8,0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&a.d&&(a.u.splice(-1,1),a.e())},t:function(){}}),this.d=3)},aX.prototype.e=function(){for(var a=0,b=0,c=0,d=0,e=this.u;d<e.length;d++){var f=e[d];c+=46+f.f.length+aR(f.extra)+(f.o?f.o.length:0)}for(var g=new h(c+22),i=0,j=this.u;i<j.length;i++){var f=j[i];aS(g,a,f,f.f,f.u,-f.c-2,b,f.o),a+=46+f.f.length+aR(f.extra)+(f.o?f.o.length:0),b+=f.b}aT(g,a,this.u.length,c,b),this.ondata(null,g,!0),this.d=2},aX.prototype.terminate=function(){for(var a=0,b=this.u;a<b.length;a++)b[a].t();this.d=2};var aY=function(){function a(){}return a.prototype.push=function(a,b){this.ondata(null,a,b)},a.compression=0,a}();function aZ(){var a=this;this.i=new az(function(b,c){a.ondata(null,b,c)})}function a$(a,b){var c=this;b<32e4?this.i=new az(function(a,b){c.ondata(null,a,b)}):(this.i=new aA(function(a,b,d){c.ondata(a,b,d)}),this.terminate=this.i.terminate)}function a_(a){this.onfile=a,this.k=[],this.o={0:aY},this.p=U}aZ.prototype.push=function(a,b){try{this.i.push(a,b)}catch(a){this.ondata(a,null,b)}},aZ.compression=8,a$.prototype.push=function(a,b){this.i.terminate&&(a=H(a,0)),this.i.push(a,b)},a$.compression=8,a_.prototype.push=function(a,b){var c=this;if(this.onfile||J(5),this.p||J(4),this.c>0){var d=Math.min(this.c,a.length),e=a.subarray(0,d);if(this.c-=d,this.d?this.d.push(e,!this.c):this.k[0].push(e),(a=a.subarray(d)).length)return this.push(a,b)}else{var f=0,g=0,i=void 0,j=void 0;this.p.length?a.length?((j=new h(this.p.length+a.length)).set(this.p),j.set(a,this.p.length)):j=this.p:j=a;for(var k=j.length,l=this.c,m=l&&this.d,n=this;g<k-4&&"break"!==function(){var a=am(j,g);if(0x4034b50==a){f=1,i=g,n.d=null,n.c=0;var b=al(j,g+6),d=al(j,g+8),e=al(j,g+26),h=al(j,g+28);if(k>g+30+e+h){var m,o=[];n.k.unshift(o),f=2;var p=am(j,g+18),q=am(j,g+22),r=aN(j.subarray(g+30,g+=30+e),!(2048&b)),s=aQ(j,g,h,2,p,q,0),t=s[0],u=s[1],v=s[3];8&b&&(t=-1-v),g+=h,n.c=t;var w={name:r,compression:d,start:function(){if(w.ondata||J(5),t){var a=c.o[d];a||w.ondata(J(14,"unknown compression type "+d,1),null,!1),(m=t<0?new a(r):new a(r,t,u)).ondata=function(a,b,c){w.ondata(a,b,c)};for(var b=0;b<o.length;b++){var e=o[b];m.push(e,!1)}c.k[0]==o&&c.c?c.d=m:m.push(U,!0)}else w.ondata(null,U,!0)},terminate:function(){m&&m.terminate&&m.terminate()}};t>=0&&(w.size=t,w.originalSize=u),n.onfile(w)}return"break"}if(l){if(0x8074b50==a)return i=g+=12+(-2==l&&8),f=3,n.c=0,"break";else if(0x2014b50==a)return i=g-=4,f=3,n.c=0,"break"}}();++g);if(this.p=U,l<0){var o=f?j.subarray(0,i-12-(-2==l&&8)-(0x8074b50==am(j,i-16)&&4)):j.subarray(0,g);m?m.push(o,!!f):this.k[+(2==f)].push(o)}if(2&f)return this.push(j.subarray(g),b);this.p=j.subarray(g)}b&&(this.c&&J(13),this.p=null)},a_.prototype.register=function(a){this.o[a.compression]=a},"function"==typeof queueMicrotask&&queueMicrotask;var a0=a.i(53112),a1=a.i(762805),a2=a.i(951941),a3=a.i(225689),a4=a.i(293480),a5=a.i(713095);let a6=(0,a3.serverAction)(async a=>{let{name:b,description:c,content:d}=a2.SkillDraftSchema.parse(a);return await (0,a1.writeCustomSkill)(b,new Map([["SKILL.md",(0,a1.renderSkillMarkdown)({name:b,description:c},d)]]))}),a7=(0,a3.serverAction)(async a=>{let{fileName:b,base64:c}=a2.SkillUploadSchema.parse(a),d=Buffer.from(c,"base64");d.byteLength>0x1400000&&(0,a4.publicError)("File is larger than 20 MB");let e=b.toLowerCase(),f=new Map;if(e.endsWith(".md"))f.set("SKILL.md",d);else if(e.endsWith(".zip")||e.endsWith(".skill")){let a;try{a=function(a){for(var b={},c=a.length-22;0x6054b50!=am(a,c);--c)(!c||a.length-c>65558)&&J(13);var d=al(a,c+8);if(!d)return{};var e=am(a,c+16),f=0x7064b50==am(a,c-20);if(f){var g=am(a,c-12);(f=0x6064b50==am(a,g))&&(d=am(a,g+32),e=am(a,g+48))}for(var i=void 0,j=0;j<d;++j){var k=aP(a,e,f),l=k[0],m=k[1],n=k[2],o=k[3],p=k[4],q=k[5],r=q+30+al(a,q+26)+al(a,q+28);e=p,(!i||i({name:o,size:m,originalSize:n,compression:l}))&&(l?8==l?b[o]=aB(a.subarray(r,r+m),{out:new h(n)}):J(14,"unknown compression type "+l):b[o]=H(a,r,r+m))}return b}(new Uint8Array(d))}catch{(0,a4.publicError)("The archive could not be opened")}let b=Object.keys(a).filter(a=>!a.startsWith("__MACOSX/")).filter(a=>"SKILL.md"===a.split("/").pop()).sort((a,b)=>a.split("/").length-b.split("/").length)[0];b||(0,a4.publicError)("The archive has no SKILL.md");let c=b.slice(0,-8);for(let[b,d]of Object.entries(a)){if(!b.startsWith(c)||b.endsWith("/")||b.startsWith("__MACOSX/"))continue;let a=b.slice(c.length);a.split("/").some(a=>".."===a||""===a)||f.set(a,d)}}else(0,a4.publicError)("Upload a .md, .zip or .skill file");let g=f.get("SKILL.md"),i="string"==typeof g?g:Buffer.from(g).toString("utf-8"),j=(0,a1.parseFrontmatter)(i);return(0,a1.writeCustomSkill)(j.name,f)}),a8=(0,a3.serverAction)(async a=>{await (0,a1.deleteCustomSkill)(a2.SkillNameSchema.parse(a))}),a9=(0,a3.serverAction)(async(a,b,c)=>{await (0,a1.setSkillDisabled)(a2.SkillSourceSchema.parse(a),a2.SkillNameSchema.parse(b),a0.z.boolean().parse(c))});(0,a5.ensureServerEntryExports)([a6,a7,a8,a9]),(0,e.registerServerReference)(a6,"7f4c8e0df06465e086f180ebe8fbf4a998603ad4a9",null),(0,e.registerServerReference)(a7,"7f909a59045a8bbce06ccfddff2f1d96dedb7eb96f",null),(0,e.registerServerReference)(a8,"7f354f08dd6a308f78069ff1a519a6718a4b47f2c2",null),(0,e.registerServerReference)(a9,"7f74e6d1aa460ff57d58d6f80d820fb3e3ce696d9c",null),a.s(["createSkillAction",0,a6,"deleteSkillAction",0,a8,"setSkillDisabledAction",0,a9,"uploadSkillAction",0,a7],432443)},439759,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(527990),f=a.i(843405),g=a.i(723885),h=a.i(738131),i=a.i(689656),j=a.i(614747),k=a.i(674986),l=a.i(84929),m=a.i(725466),n=a.i(986743),o=a.i(387791),p=a.i(997931),q=a.i(176668),r=a.i(225689),s=a.i(293480),t=a.i(253514),u=a.i(569549),v=a.i(3894),w=a.i(713095),x=b([h,j,k,l,m,n,o,p,u]);async function y(a){if(a&&await (0,m.readConfig)(i.SPEACH_MODEL_PROVIDERS[a.provider].apiKeyName))return a;for(let a of i.SPEACH_MODEL_PROVIDER_LIST)if(await (0,m.readConfig)(a.apiKeyName))return{provider:a.id,voice:null,model:null};(0,s.publicError)("No voice key — calls run on one. Add one in Config.")}async function z(){let a=await (0,h.loadTools)({target:"thursday"});return Object.entries(a).map(([a,b])=>{let{$schema:c,...d}=(0,e.asSchema)(b.inputSchema).jsonSchema;return{name:a,description:"string"==typeof b.description?b.description:"",parameters:d}})}[h,j,k,l,m,n,o,p,u]=x.then?(await x)():x;let A=(0,r.serverAction)(async a=>{let b=v.ThursdaySettingsSchema.parse(a),c=await y(b.model),d=i.SPEACH_MODEL_PROVIDERS[c.provider],e=await (0,m.readConfig)(d.apiKeyName);e||(0,s.publicError)(`No ${d.label} key — add one in Config.`);let[f,g]=await Promise.all([(0,j.loadThursdayPrompt)(b.systemPrompt,b.locale),z()]),h=c.model??d.models[0].id,k=await (0,t.issueClientSecret)({provider:c.provider,apiKey:e,model:h});return{callId:await (0,u.insertCall)({provider:c.provider,model:h}),provider:c.provider,credential:k,session:{model:h,voice:c.voice??d.defaultVoice,instructions:f.text,tools:g},opening:f.opening}}),B=(0,r.serverAction)(async a=>{await (0,u.writeCallSkillsOn)(g.default.boolean().parse(a))}),C=(0,r.serverAction)(async(a,b)=>{await (0,u.saveTurns)(a,v.CallTurnSchema.array().min(1).parse(b))}),D=(0,r.serverAction)(async a=>{await (0,u.endCall)(a)&&(0,f.after)(async()=>{let a=await (0,o.startTidy)();"started"!==a&&q.logger.debug(`tidy: not now (${a})`)})}),E=(0,r.serverAction)(async a=>{await (0,u.deleteCall)(a)||(0,s.publicError)("That call is still on the line — hang up first.")}),F=(0,r.serverAction)(async()=>{await (0,o.stopTidy)("History was reset.");let a=await (0,l.listAllTaskIds)();for(let b of a)await (0,k.removeTask)(b);let b=await (0,u.deleteEndedCalls)(),c=await (0,n.deleteAllNotes)();return await (0,p.deleteAllTidyRuns)(),{calls:b,tasks:a.length,notes:c}});(0,w.ensureServerEntryExports)([A,B,C,D,E,F]),(0,d.registerServerReference)(A,"7f7fd2051e8952cb8ab529e5f8cd1694a6a7990cd8",null),(0,d.registerServerReference)(B,"7f8490475d10d4ef1af9d6551673eb1df63fb04305",null),(0,d.registerServerReference)(C,"7f22a0e4340f8432bad5bec227fc6be79f580bc967",null),(0,d.registerServerReference)(D,"7f9a89f6f43c3c8fdee150fde50df8256264bc8a44",null),(0,d.registerServerReference)(E,"7f666d9214481b3d6327600165d7fef7d6a73cfebc",null),(0,d.registerServerReference)(F,"7f75936b40de98c3461f8698a4b30d8fb487e425d6",null),a.s(["deleteCallAction",0,E,"endCallAction",0,D,"openCallAction",0,A,"resetHistoryAction",0,F,"saveTurnsAction",0,C,"setCallSkillsAction",0,B]),c()}catch(a){c(a)}},!1),253514,a=>{"use strict";var b=a.i(176668),c=a.i(293480),d=a.i(223622);let e={openai:({model:a})=>({url:"https://api.openai.com/v1/realtime/client_secrets",body:{session:{type:"realtime",model:a}}}),xai:({model:a,ttlSeconds:b})=>({url:"https://api.x.ai/v1/realtime/client_secrets",body:{expires_after:{seconds:b},session:{model:a}}})};async function f({provider:a,apiKey:g,model:h,ttlSeconds:i=600}){var j;let k,l,{url:m,body:n}=e[a]({model:h,ttlSeconds:i}),o=await fetch(m,{method:"POST",headers:{Authorization:`Bearer ${g}`,"Content-Type":"application/json"},body:JSON.stringify(n)}).catch(d=>{b.logger.warn(`${a} unreachable`,d),(0,c.publicError)(`Could not reach ${a}.`)}),p=await o.json().catch(()=>null);o.ok||(0,c.publicError)((j=o.status,"string"==typeof(l="string"==typeof(k=p?.error)?k:k?.message??p?.message)&&l.trim()?l:`Could not start a session (${j})`));let q=d.RealtimeCredentialSchema.safeParse(p);return q.success||(0,c.publicError)("The session token came back in a shape we do not know."),{value:q.data.value,expiresAt:q.data.expires_at}}a.s(["issueClientSecret",0,f])}];
|
|
91
|
-
|
|
92
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__1-mnhyd._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[750227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},59639,(a,b,c)=>{b.exports=a.x("node:process",()=>require("node:process"))},287702,a=>{"use strict";process.env.THURSDAY_APP_DIR?.trim()||process.cwd(),process.env.THURSDAY_HOME?.trim()||process.cwd(),process.env.THURSDAY_URL?.trim()||process.env.PORT?.trim();let b=".ai-workspace",c={workspace:b,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",skills:{default:"skills",custom:`${b}/.agents/skills`}};a.s(["APP_NAME",0,"Thursday","ARTIFACT_VIEW",0,{rows:200,setFiles:120},"BOT_NOTES",0,{chars:400},"BOT_RUN",0,{steps:25,compactAt:12e4,summaryWords:{min:600,max:3e3,perTokens:200},resumeMessages:20},"BROWSER_SKILL",0,"browser","IS_DEV",0,!1,"PAGE_SIZE",0,50,"PATHS",0,c,"PROMPT_CROWDED",0,{bots:10,skills:20},"WORKSPACE_VIEW",0,{rows:200,textMax:524288,elementMax:0x3200000}])},992025,a=>{a.v(a=>Promise.resolve().then(()=>a(948986)))},929490,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_04n7mjs._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SVP7TREG_mjs_03r5m21._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0lct0v1._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(161868)))},969267,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1n5ygqe._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1feyqvf._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_cytoscape_dist_cytoscape_esm_mjs_0arohj6._.js","server/chunks/ssr/node_modules_11trqmi._.js"].map(b=>a.l(b))).then(()=>b(626047)))},784520,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0qwth-_._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_blockDiagram-I7D4REHJ_mjs_0qg1lr5._.js"].map(b=>a.l(b))).then(()=>b(155638)))},613707,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-F27PBJKO_mjs_0ms0zmb._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_c4Diagram-7LVT6UL2_mjs_06bhe3-._.js"].map(b=>a.l(b))).then(()=>b(557384)))},53467,a=>{"use strict";var b=a.i(261234),c=a.i(539110);a.i(975930);var d=a.i(671731),e=(0,c.__name)(a=>{let{securityLevel:c}=(0,b.getConfig2)(),e=(0,d.select)("body");if("sandbox"===c){let b=(0,d.select)(`#i${a}`),c=b.node()?.contentDocument??document;e=(0,d.select)(c.body)}return e.select(`#${a}`)},"selectSvgElement");a.s(["selectSvgElement",0,e])},882458,a=>{"use strict";var b=a.i(416635),c=a.i(43429),d=a.i(428212),e=a.i(916573),f=a.i(887370),g=a.i(261234),h=a.i(875117),i=a.i(539110),j={common:g.common_default,getConfig:g.getConfig,insertCluster:b.insertCluster,insertEdge:c.insertEdge,insertEdgeLabel:c.insertEdgeLabel,insertMarkers:c.markers_default,insertNode:d.insertNode,interpolateToCurve:f.interpolateToCurve,labelHelper:e.labelHelper,log:h.log,positionEdgeLabel:c.positionEdgeLabel},k={},l=(0,i.__name)(a=>{for(let b of a)k[b.name]=b},"registerLayoutLoaders");(0,i.__name)(()=>{l([{name:"dagre",loader:(0,i.__name)(async()=>await a.A(390118),"loader")},{name:"swimlane",loader:(0,i.__name)(async()=>await a.A(860094),"loader")},{name:"cose-bilkent",loader:(0,i.__name)(async()=>await a.A(989520),"loader")}])},"registerDefaultLayoutLoaders")();var m=(0,i.__name)(async(a,b)=>{if(!(a.layoutAlgorithm in k))throw Error(`Unknown layout algorithm: ${a.layoutAlgorithm}`);if(a.diagramId)for(let b of a.nodes){let c=b.domId||b.id;b.domId=`${a.diagramId}-${c}`}let c=k[a.layoutAlgorithm],d=await c.loader(),{theme:e,themeVariables:f}=a.config,{useGradient:g,gradientStart:h,gradientStop:i}=f,l=b.attr("id");if(b.append("defs").append("filter").attr("id",`${l}-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",`${e?.includes("dark")?"#FFFFFF":"#000000"}`),b.append("defs").append("filter").attr("id",`${l}-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",`${e?.includes("dark")?"#FFFFFF":"#000000"}`),g){let a=b.append("linearGradient").attr("id",b.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");a.append("svg:stop").attr("offset","0%").attr("stop-color",h).attr("stop-opacity",1),a.append("svg:stop").attr("offset","100%").attr("stop-color",i).attr("stop-opacity",1)}return d.render(a,b,j,{algorithm:c.algorithm})},"render"),n=(0,i.__name)((a="",{fallback:b="dagre"}={})=>{if(a in k)return a;if(b in k)return h.log.warn(`Layout algorithm ${a} is not registered. Using ${b} as fallback.`),b;throw Error(`Both layout algorithms ${a} and ${b} are not registered.`)},"getRegisteredLayoutAlgorithm");a.s(["getRegisteredLayoutAlgorithm",0,n,"registerLayoutLoaders",0,l,"render",0,m])},854712,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1v463pe._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-TICWLB2K_mjs_1t97mh7._.js"].map(b=>a.l(b))).then(()=>b(336243)))},892569,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_0thh8pk._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-TICWLB2K_mjs_1t97mh7._.js"].map(b=>a.l(b))).then(()=>b(538994)))},989520,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1nl12mt._.js","server/chunks/ssr/node_modules_cytoscape_dist_cytoscape_esm_mjs_0arohj6._.js"].map(b=>a.l(b))).then(()=>b(127273)))},388833,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1hn8z1f._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_18pinup._.js"].map(b=>a.l(b))).then(()=>b(517237)))},390118,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_dagre-GXQ25YYZ_mjs_0k_lz8d._.js","server/chunks/ssr/node_modules_dagre-d3-es_src_dagre_index_0g66msq.js"].map(b=>a.l(b))).then(()=>b(920028)))},831868,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_20yebtj._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0eji647._.js"].map(b=>a.l(b))).then(()=>b(767190)))},840309,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1zu988w._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_18pinup._.js"].map(b=>a.l(b))).then(()=>b(464445)))},835410,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_09xhur7._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_18pinup._.js"].map(b=>a.l(b))).then(()=>b(617803)))},728413,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0n1kj4p._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_diagram-VX7I27RA_mjs_0dl8gzm._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_13hksv_._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(217755)))},992149,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1xyd7ov._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_18pinup._.js"].map(b=>a.l(b))).then(()=>b(752425)))},70220,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_004qlr4._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SVP7TREG_mjs_03r5m21._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0lct0v1._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(137554)))},595386,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0il0v7d._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_erDiagram-RLTQ6QDP_mjs_18g60i7._.js"].map(b=>a.l(b))).then(()=>b(239909)))},707604,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0ql0igl._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SHT3W25Y_mjs_00p5j42._.js"].map(b=>a.l(b))).then(()=>b(1258)))},598518,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1831lye._.js","server/chunks/ssr/node_modules_1_d0q_7._.js"].map(b=>a.l(b))).then(()=>b(722966)))},126571,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1toafc-._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0dlpxwr._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_gitGraphDiagram-WWUBYQGX_mjs_0g15hiw._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(349834)))},814636,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0iz1rzd._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1ok0411._.js"].map(b=>a.l(b))).then(()=>b(525902)))},147136,a=>{a.v(b=>Promise.all(["server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_ishikawaDiagram-5VMMS53U_mjs_05o2e4d._.js"].map(b=>a.l(b))).then(()=>b(206340)))},719552,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_201yvda._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_journeyDiagram-3NMN7TZE_mjs_16ehrbl._.js"].map(b=>a.l(b))).then(()=>b(450754)))},653408,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-5VM5RSS4_mjs_0tg6kya._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_kanban-definition-UXKFOSKX_mjs_1uiqd5g._.js"].map(b=>a.l(b))).then(()=>b(301315)))},165250,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1turj0n._.js","server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_mindmap-definition-YA3MSWOX_mjs_19k8byt._.js"].map(b=>a.l(b))).then(()=>b(790158)))},325455,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0lrjk5t._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SVP7TREG_mjs_03r5m21._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0lct0v1._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(595628)))},934650,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0m9a4y0._.js","server/chunks/ssr/node_modules_1rg7lj4._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1sgfrma._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(748116)))},389088,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_111pp7w._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_quadrantDiagram-AXDQQJYC_mjs_0h4a9wq._.js"].map(b=>a.l(b))).then(()=>b(888630)))},523431,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_08d8bke._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SVP7TREG_mjs_03r5m21._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0lct0v1._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(846881)))},458290,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1turj0n._.js","server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_requirementDiagram-BXWQKSXE_mjs_0kwiv6n._.js"].map(b=>a.l(b))).then(()=>b(443250)))},215730,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_d3-scale_src_1tr1qwb._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_sankeyDiagram-P5KCCOFB_mjs_187yyta._.js"].map(b=>a.l(b))).then(()=>b(656950)))},295724,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1o1kg4c._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_sequenceDiagram-WJ2MYXX4_mjs_1n01m3a._.js"].map(b=>a.l(b))).then(()=>b(571979)))},482052,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_sizeCapture-INFHLROL_mjs_179zv_p._.js"].map(b=>a.l(b))).then(()=>b(865684)))},438231,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1rxlz7e._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_stateDiagram-D77RDMKH_mjs_1mer5fv._.js","server/chunks/ssr/node_modules_dagre-d3-es_src_dagre_index_0g66msq.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-IMKFNOWR_mjs_0vdq1-l._.js"].map(b=>a.l(b))).then(()=>b(168538)))},991687,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_0jkhu0x._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-IMKFNOWR_mjs_0vdq1-l._.js"].map(b=>a.l(b))).then(()=>b(472309)))},860094,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_swimlanes-42K2YHIH_mjs_0scuk32._.js"].map(b=>a.l(b))).then(()=>b(827033)))},819980,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_04f6p6a._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SHT3W25Y_mjs_00p5j42._.js"].map(b=>a.l(b))).then(()=>b(1471)))},623969,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_d3-shape_src_arc_1-w13bo.js","server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_timeline-definition-24CTP7MA_mjs_10dmaxt._.js"].map(b=>a.l(b))).then(()=>b(301394)))},788557,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_vennDiagram-4TSXK5OY_mjs_0anqu7y._.js"].map(b=>a.l(b))).then(()=>b(509170)))},925161,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1n5ygqe._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_wardleyDiagram-VM6X3IG4_mjs_0kh3fjb._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_17wxxyr._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(914844)))},506751,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0xht9wg._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_xychartDiagram-S5SC5T6Z_mjs_08t5e44._.js"].map(b=>a.l(b))).then(()=>b(176947)))},236914,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_streamdown_dist_highlighted-body-KPVGNVTW_1fnf894.js"].map(b=>a.l(b))).then(()=>b(391282)))},172487,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_streamdown_dist_mermaid-HWGCJPDP_093xi20.js"].map(b=>a.l(b))).then(()=>b(853409)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__1bww500._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[418520,a=>a.a(async(b,c)=>{try{var d=await a.y("@libsql/client-6da938047d5fc1cd");a.n(d),c()}catch(a){c(a)}},!0),500874,(a,b,c)=>{b.exports=a.x("buffer",()=>require("buffer"))},233405,(a,b,c)=>{b.exports=a.x("child_process",()=>require("child_process"))},522734,(a,b,c)=>{b.exports=a.x("fs",()=>require("fs"))},874533,(a,b,c)=>{b.exports=a.x("node:child_process",()=>require("node:child_process"))},70729,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]_node_crypto_1kn79-7._.js"].map(b=>a.l(b))).then(()=>b(666680)))},902157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},912714,(a,b,c)=>{b.exports=a.x("node:fs/promises",()=>require("node:fs/promises"))},750227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},59639,(a,b,c)=>{b.exports=a.x("node:process",()=>require("node:process"))},509656,(a,b,c)=>{b.exports=a.x("node:tty",()=>require("node:tty"))},812057,(a,b,c)=>{b.exports=a.x("node:util",()=>require("node:util"))},446786,(a,b,c)=>{b.exports=a.x("os",()=>require("os"))},605365,(a,b,c)=>{b.exports=a.x("process",()=>require("process"))},276307,a=>{a.v(a=>Promise.resolve().then(()=>a(221214)))},763543,a=>{a.v(a=>Promise.resolve().then(()=>a(674986)))},636616,a=>{"use strict";var b=a.i(569572),c=a.i(62721);let d=[{name:"Jarvis",description:"Any job — turns it into a plan, hands each part to whoever it belongs to, does the rest, reports one result",icon:{shape:"squircle"},recommended:!0,example:"Set up a Google account just for my bots to use",systemPrompt:"You are Jarvis. A job reaches you as a sentence and leaves as a plan: what it actually needs, in what order, and who does each part. Settle what is still open in one round rather than guessing at it, then send for what the job is made of before you build — a part another bot exists for is theirs, and everything nobody else is for is yours. You hold the whole while they hold pieces: the order the parts run in, the seams where what comes back has to fit together, and the single thing that is handed over at the end. The plan is how the job gets done, not what gets handed back."},{name:"Navigator",description:"The web through a real browser — opens the page itself, signs in, brings back prices, images and links as they stand now",icon:{shape:"poly"},recommended:!0,example:"Find thirty wedding pose photos and put them on one page for me",systemPrompt:`You are Navigator. Every browser job is yours: load the \`${b.BROWSER_SKILL}\` skill first and work through it. A search result says a page exists; you say what is on it right now — so open it, sign in where it asks you to, and keep going past the first screen until you have the thing itself: exact figures, the links that open them, the images off the page. Nothing you did not see goes in what you hand back, and a page that refused you is a fact with a url on it, not a gap to fill in from memory. Whoever asked should never need to open the site after you.`},{name:"Scribe",description:"Writing that gets read — finds out what it is for, researches it, then picks the form: prose, table, or a page",icon:{shape:"blob"},recommended:!0,example:"Write up what we decided today as a one-page brief",systemPrompt:"You are Scribe. Who reads it and what they do next decides everything else, so learn that first, then research before you claim: every number and name you write traces back to something you actually read. Pick the form by the reading — a `.md` for something read once, a `.csv` for what gets sorted, a page (the `interactive-page` skill) for something used or something whose pictures are the point. When the request does not settle which it is — something read once or something used — ask before you write rather than committing a whole draft to a guess. Cut what the reader would skip, and never spend a paragraph where a table or a picture answers in one glance. One page they finish beats five they abandon."}];a.s(["findBotSeed",0,a=>d.find(b=>b.name===a)??null,"rollSeedColors",0,()=>(0,c.randomMarkColors)(d.length)])},242808,a=>{a.v(a=>Promise.resolve().then(()=>a(84929)))},484261,(a,b,c)=>{"use strict";var d=Object.create,e=Object.defineProperty,f=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,h=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,j=(a,b,c,d)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let h of g(b))i.call(a,h)||h===c||e(a,h,{get:()=>b[h],enumerable:!(d=f(b,h))||d.enumerable});return a},k=(a,b,c)=>(c=null!=a?d(h(a)):{},j(!b&&a&&a.__esModule?c:e(c,"default",{value:a,enumerable:!0}),a)),l={},m={isValidAccessToken:()=>u,readAuthConfig:()=>s,writeAuthConfig:()=>t};for(var n in m)e(l,n,{get:m[n],enumerable:!0});b.exports=j(e({},"__esModule",{value:!0}),l);var o=k(a.r(522734)),p=k(a.r(814747)),q=a.r(72918);function r(){let a=(0,q.getVercelDataDir)();if(!a)throw Error(`Unable to find Vercel CLI data directory. Your platform: ${process.platform}. Supported: darwin, linux, win32.`);return p.join(a,"auth.json")}function s(){try{let a=r();if(!o.existsSync(a))return null;let b=o.readFileSync(a,"utf8");if(!b)return null;return JSON.parse(b)}catch(a){return null}}function t(a){let b=r(),c=p.dirname(b);o.existsSync(c)||o.mkdirSync(c,{mode:504,recursive:!0}),o.writeFileSync(b,JSON.stringify(a,null,2),{mode:384})}function u(a,b=0){if(!a.token)return!1;if("number"!=typeof a.expiresAt)return!0;let c=Math.floor(Date.now()/1e3);return a.expiresAt>=c+b/1e3}},351275,(a,b,c)=>{"use strict";var d=Object.defineProperty,e=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,h={},i={AccessTokenMissingError:()=>k,RefreshAccessTokenFailedError:()=>l};for(var j in i)d(h,j,{get:i[j],enumerable:!0});b.exports=((a,b,c)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let h of f(b))g.call(a,h)||void 0===h||d(a,h,{get:()=>b[h],enumerable:!(c=e(b,h))||c.enumerable});return a})(d({},"__esModule",{value:!0}),h);class k extends Error{constructor(){super("No authentication found. Please log in with the Vercel CLI (vercel login)."),this.name="AccessTokenMissingError"}}class l extends Error{constructor(a){super("Failed to refresh authentication token.",{cause:a}),this.name="RefreshAccessTokenFailedError"}}},719472,(a,b,c)=>{"use strict";var d=Object.defineProperty,e=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,h={},i={processTokenResponse:()=>p,refreshTokenRequest:()=>o};for(var j in i)d(h,j,{get:i[j],enumerable:!0});b.exports=((a,b,c)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let h of f(b))g.call(a,h)||void 0===h||d(a,h,{get:()=>b[h],enumerable:!(c=e(b,h))||c.enumerable});return a})(d({},"__esModule",{value:!0}),h);var k=a.r(446786);let l=`@vercel/oidc node-${process.version} ${(0,k.platform)()} (${(0,k.arch)()}) ${(0,k.hostname)()}`,m=null;async function n(){if(m)return m;let a=await fetch("https://vercel.com/.well-known/openid-configuration",{headers:{"user-agent":l}});if(!a.ok)throw Error("Failed to discover OAuth endpoints");let b=await a.json();if(!b||"string"!=typeof b.token_endpoint)throw Error("Invalid OAuth discovery response");let c=b.token_endpoint;return m=c,c}async function o(a){let b=await n();return await fetch(b,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","user-agent":l},body:new URLSearchParams({client_id:"cl_HYyOPBNtFMfHhaUn9L4QPfTZz6TP47bp",grant_type:"refresh_token",...a})})}async function p(a){let b=await a.json();return a.ok?"object"!=typeof b||null===b?[Error("Invalid token response")]:"string"!=typeof b.access_token?[Error("Missing access_token in response")]:"Bearer"!==b.token_type?[Error("Invalid token_type in response")]:"number"!=typeof b.expires_in?[Error("Missing expires_in in response")]:[null,b]:[Error("object"==typeof b&&b&&"error"in b?String(b.error):"Token refresh failed")]}},580949,(a,b,c)=>{"use strict";var d=Object.defineProperty,e=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,h={},i={VercelOidcTokenError:()=>k};for(var j in i)d(h,j,{get:i[j],enumerable:!0});b.exports=((a,b,c)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let h of f(b))g.call(a,h)||void 0===h||d(a,h,{get:()=>b[h],enumerable:!(c=e(b,h))||c.enumerable});return a})(d({},"__esModule",{value:!0}),h);class k extends Error{constructor(a,b){super(a),this.name="VercelOidcTokenError",this.cause=b}toString(){return this.cause?`${this.name}: ${this.message}: ${this.cause}`:`${this.name}: ${this.message}`}}},50067,(a,b,c)=>{"use strict";var d=Object.create,e=Object.defineProperty,f=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,h=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,j=(a,b,c,d)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let h of g(b))i.call(a,h)||h===c||e(a,h,{get:()=>b[h],enumerable:!(d=f(b,h))||d.enumerable});return a},k=(a,b,c)=>(c=null!=a?d(h(a)):{},j(!b&&a&&a.__esModule?c:e(c,"default",{value:a,enumerable:!0}),a)),l={},m={findRootDir:()=>s,getUserDataDir:()=>t};for(var n in m)e(l,n,{get:m[n],enumerable:!0});b.exports=j(e({},"__esModule",{value:!0}),l);var o=k(a.r(814747)),p=k(a.r(522734)),q=k(a.r(446786)),r=a.r(580949);function s(){try{let a=process.cwd();for(;a!==o.default.dirname(a);){let b=o.default.join(a,".vercel");if(p.default.existsSync(b))return a;a=o.default.dirname(a)}}catch(a){throw new r.VercelOidcTokenError("Token refresh only supported in node server environments")}return null}function t(){if(process.env.XDG_DATA_HOME)return process.env.XDG_DATA_HOME;switch(q.default.platform()){case"darwin":return o.default.join(q.default.homedir(),"Library/Application Support");case"linux":return o.default.join(q.default.homedir(),".local/share");case"win32":if(process.env.LOCALAPPDATA)return process.env.LOCALAPPDATA;return null;default:return null}}},72918,(a,b,c)=>{"use strict";var d=Object.create,e=Object.defineProperty,f=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,h=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,j=(a,b,c,d)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let h of g(b))i.call(a,h)||h===c||e(a,h,{get:()=>b[h],enumerable:!(d=f(b,h))||d.enumerable});return a},k=(a,b,c)=>(c=null!=a?d(h(a)):{},j(!b&&a&&a.__esModule?c:e(c,"default",{value:a,enumerable:!0}),a)),l={},m={assertVercelOidcTokenResponse:()=>y,findProjectInfo:()=>z,getTokenPayload:()=>C,getVercelDataDir:()=>v,getVercelOidcToken:()=>x,getVercelToken:()=>w,isExpired:()=>D,loadToken:()=>B,saveToken:()=>A};for(var n in m)e(l,n,{get:m[n],enumerable:!0});b.exports=j(e({},"__esModule",{value:!0}),l);var o=k(a.r(814747)),p=k(a.r(522734)),q=a.r(580949),r=a.r(50067),s=a.r(484261),t=a.r(719472),u=a.r(351275);function v(){let a=(0,r.getUserDataDir)();return a?o.join(a,"com.vercel.cli"):null}async function w(a){let b=(0,s.readAuthConfig)();if(!b?.token)throw new u.AccessTokenMissingError;if((0,s.isValidAccessToken)(b,a?.expirationBufferMs))return b.token;if(!b.refreshToken)throw(0,s.writeAuthConfig)({}),new u.RefreshAccessTokenFailedError("No refresh token available");try{let a=await (0,t.refreshTokenRequest)({refresh_token:b.refreshToken}),[c,d]=await (0,t.processTokenResponse)(a);if(c||!d)throw(0,s.writeAuthConfig)({}),new u.RefreshAccessTokenFailedError(c);let e={token:d.access_token,expiresAt:Math.floor(Date.now()/1e3)+d.expires_in};return d.refresh_token&&(e.refreshToken=d.refresh_token),(0,s.writeAuthConfig)(e),e.token}catch(a){if((0,s.writeAuthConfig)({}),a instanceof u.AccessTokenMissingError||a instanceof u.RefreshAccessTokenFailedError)throw a;throw new u.RefreshAccessTokenFailedError(a)}}async function x(a,b,c){let d=`https://api.vercel.com/v1/projects/${b}/token?source=vercel-oidc-refresh${c?`&teamId=${c}`:""}`,e=await fetch(d,{method:"POST",headers:{Authorization:`Bearer ${a}`}});if(!e.ok)throw new q.VercelOidcTokenError(`Failed to refresh OIDC token: ${e.statusText}`);let f=await e.json();return y(f),f}function y(a){if(!a||"object"!=typeof a)throw TypeError("Vercel OIDC token is malformed. Expected an object. Please run `vc env pull` and try again");if(!("token"in a)||"string"!=typeof a.token)throw TypeError("Vercel OIDC token is malformed. Expected a string-valued token property. Please run `vc env pull` and try again")}function z(){let a=(0,r.findRootDir)();if(!a)throw new q.VercelOidcTokenError("Unable to find project root directory. Have you linked your project with `vc link?`");let b=o.join(a,".vercel","project.json");if(!p.existsSync(b))throw new q.VercelOidcTokenError("project.json not found, have you linked your project with `vc link?`");let c=JSON.parse(p.readFileSync(b,"utf8"));if("string"!=typeof c.projectId&&"string"!=typeof c.orgId)throw TypeError("Expected a string-valued projectId property. Try running `vc link` to re-link your project.");return{projectId:c.projectId,teamId:c.orgId}}function A(a,b){let c=(0,r.getUserDataDir)();if(!c)throw new q.VercelOidcTokenError("Unable to find user data directory. Please reach out to Vercel support.");let d=o.join(c,"com.vercel.token",`${b}.json`),e=JSON.stringify(a);p.mkdirSync(o.dirname(d),{mode:504,recursive:!0}),p.writeFileSync(d,e),p.chmodSync(d,432)}function B(a){let b=(0,r.getUserDataDir)();if(!b)throw new q.VercelOidcTokenError("Unable to find user data directory. Please reach out to Vercel support.");let c=o.join(b,"com.vercel.token",`${a}.json`);if(!p.existsSync(c))return null;let d=JSON.parse(p.readFileSync(c,"utf8"));return y(d),d}function C(a){let b=a.split(".");if(3!==b.length)throw new q.VercelOidcTokenError("Invalid token. Please run `vc env pull` and try again");let c=b[1].replace(/-/g,"+").replace(/_/g,"/"),d=c.padEnd(c.length+(4-c.length%4)%4,"=");return JSON.parse(Buffer.from(d,"base64").toString("utf8"))}function D(a,b=0){return 1e3*a.exp<Date.now()+b}},682672,a=>{a.v(a=>Promise.resolve().then(()=>a(72918)))},966249,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@vercel_oidc_dist_token_16gdpgb.js"].map(b=>a.l(b))).then(()=>b(860544)))},832030,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]_node_readline_1u65a-m._.js","server/chunks/ssr/node_modules_consola_dist_chunks_prompt_mjs_1j4x-_j._.js"].map(b=>a.l(b))).then(()=>b(322479)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__1vcdast._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[750227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},59639,(a,b,c)=>{b.exports=a.x("node:process",()=>require("node:process"))},287702,a=>{"use strict";process.env.THURSDAY_APP_DIR?.trim()||process.cwd(),process.env.THURSDAY_HOME?.trim()||process.cwd(),process.env.THURSDAY_URL?.trim()||process.env.PORT?.trim();let b=".ai-workspace",c={workspace:b,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",skills:{default:"skills",custom:`${b}/.agents/skills`}};a.s(["APP_NAME",0,"Thursday","ARTIFACT_VIEW",0,{rows:200,setFiles:120},"BOT_NOTES",0,{chars:400},"BOT_RUN",0,{steps:25,compactAt:12e4,summaryWords:{min:600,max:3e3,perTokens:200},resumeMessages:20},"BROWSER_SKILL",0,"browser","IS_DEV",0,!1,"PAGE_SIZE",0,50,"PATHS",0,c,"PROMPT_CROWDED",0,{bots:10,skills:20},"WORKSPACE_VIEW",0,{rows:200,textMax:524288,elementMax:0x3200000}])},776593,398026,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7f1756723e53cd4bfc5aa2715712bb90f079d8bd4d",b.callServer,void 0,b.findSourceMapURL,"createSeedBotsAction");a.s(["createSeedBotsAction",0,c],776593);var d=a.i(287702);a.i(324835);let e=[{name:"Jarvis",description:"Any job — turns it into a plan, hands each part to whoever it belongs to, does the rest, reports one result",icon:{shape:"squircle"},recommended:!0,example:"Set up a Google account just for my bots to use",systemPrompt:"You are Jarvis. A job reaches you as a sentence and leaves as a plan: what it actually needs, in what order, and who does each part. Settle what is still open in one round rather than guessing at it, then send for what the job is made of before you build — a part another bot exists for is theirs, and everything nobody else is for is yours. You hold the whole while they hold pieces: the order the parts run in, the seams where what comes back has to fit together, and the single thing that is handed over at the end. The plan is how the job gets done, not what gets handed back."},{name:"Navigator",description:"The web through a real browser — opens the page itself, signs in, brings back prices, images and links as they stand now",icon:{shape:"poly"},recommended:!0,example:"Find thirty wedding pose photos and put them on one page for me",systemPrompt:`You are Navigator. Every browser job is yours: load the \`${d.BROWSER_SKILL}\` skill first and work through it. A search result says a page exists; you say what is on it right now — so open it, sign in where it asks you to, and keep going past the first screen until you have the thing itself: exact figures, the links that open them, the images off the page. Nothing you did not see goes in what you hand back, and a page that refused you is a fact with a url on it, not a gap to fill in from memory. Whoever asked should never need to open the site after you.`},{name:"Scribe",description:"Writing that gets read — finds out what it is for, researches it, then picks the form: prose, table, or a page",icon:{shape:"blob"},recommended:!0,example:"Write up what we decided today as a one-page brief",systemPrompt:"You are Scribe. Who reads it and what they do next decides everything else, so learn that first, then research before you claim: every number and name you write traces back to something you actually read. Pick the form by the reading — a `.md` for something read once, a `.csv` for what gets sorted, a page (the `interactive-page` skill) for something used or something whose pictures are the point. When the request does not settle which it is — something read once or something used — ask before you write rather than committing a whole draft to a guess. Cut what the reader would skip, and never spend a paragraph where a table or a picture answers in one glance. One page they finish beats five they abandon."}];a.s(["BOT_SEEDS",0,e],398026)},478978,a=>{"use strict";var b=a.i(61876);let c=[...new Set(Object.values(b.SPEACH_MODEL_PROVIDERS).map(a=>a.apiKeyName))],d={image:"IMAGE_MODEL",video:"VIDEO_MODEL",speech:"SPEECH_MODEL",transcription:"TRANSCRIPTION_MODEL"},e={image:{label:"Image model",hint:"What bots draw with"},video:{label:"Video model",hint:"What bots film with — minutes a clip"},speech:{label:"Speech model",hint:"What reads text aloud into a file"},transcription:{label:"Transcription model",hint:"What turns a recording into text"}},f={key:"DEFAULT_MODEL",label:"Default model",hint:"What a bot thinks with until it picks its own",text:!0,choices:b.TEXT_MODEL_PROVIDER_LIST.flatMap(a=>a.suggestModels.map(b=>({value:`${a.id}/${b.id}`,label:`${a.label} \xb7 ${b.label}`,needs:a.apiKeyName})))},g=a=>c.includes(a.apiKeyName),h=a=>({key:a.apiKeyName,label:a.label,provider:a.id}),i=[{id:"voice",title:"voice",hint:"calls run on one of these",section:"keys",require:"any",note:"one is required",entries:b.TEXT_MODEL_PROVIDER_LIST.filter(g).map(h)},{id:"text",title:"models",hint:"what bots think with — add any, or none",section:"keys",require:"none",entries:b.TEXT_MODEL_PROVIDER_LIST.filter(a=>!g(a)).map(h)},{id:"bots",title:"Bots",hint:"what a bot runs on when it has not picked its own",section:"models",require:"none",entries:[f]},{id:"studio",title:"Studio",hint:"what a bot draws, films and speaks with — off until you pick one",section:"models",require:"none",entries:Object.keys(d).map(a=>({key:d[a],...e[a],kind:a,choices:b.MEDIA_MODEL_PROVIDER_LIST.flatMap(b=>b.models[a].map(a=>({value:`${b.id}/${a.id}`,label:`${b.label} \xb7 ${a.label}`,needs:b.apiKeyName})))}))}];Object.fromEntries(i.flatMap(a=>a.entries).map(a=>[a.key,a])),i.flatMap(a=>a.entries.map(a=>a.key)),Object.fromEntries(i.flatMap(a=>a.entries).filter(a=>a.choices?.length).map(a=>[a.key,a.choices])),a.s(["CONFIG_GROUPS",0,i,"groupSatisfied",0,function(a,b){return"none"===a.require||(a.requireKeys??a.entries.map(a=>a.key)).some(b)},"isConfigSet",0,function(a,b){return a?.some(a=>a.key===b&&a.set)??!1}])},139329,a=>{"use strict";var b=a.i(156757),c=a.i(199169);let d=b.z.enum(["user","call","bot","tidy"]),e=b.z.object({id:b.z.number(),text:b.z.string(),alwaysLoad:b.z.boolean(),source:d.nullish(),createdAt:c.DateLikeSchema});b.z.object({id:b.z.number(),path:b.z.string(),description:b.z.string(),aliases:b.z.string().array().nullish(),ownedByUser:b.z.boolean(),hits:b.z.number(),lastReadAt:c.DateLikeSchema.nullable(),createdAt:c.DateLikeSchema,updatedAt:c.DateLikeSchema,factCount:b.z.number(),facts:e.array()});let f=[{path:"profile",of:"The user themselves — who they are, what they do, where, how they live"},{path:"preferences",of:"How they like things done, and said"},{path:"people/",of:"Who someone is to them, and what matters about them"},{path:"projects/",of:"Something they are building or running"},{path:"plans/",of:"A trip, an appointment, a purchase, a deadline"},{path:"topics/",of:"Anything else worth its own note"},{path:"inbox",of:"Nowhere obvious to go"}],g=f.filter(a=>!a.path.endsWith("/")).map(a=>a.path),h=f.filter(a=>a.path.endsWith("/")).map(a=>a.path.slice(0,-1));RegExp(`^(?:${g.join("|")}|(?:${h.join("|")})/.+)$`);let i=["profile","preferences"],j=b.z.object({op:b.z.enum(["add","replace","forget","carry","uncarry"]),path:b.z.string(),text:b.z.string()});b.z.object({id:b.z.string(),status:b.z.enum(["running","done","stopped","failed"]),provider:b.z.string(),model:b.z.string(),callIds:b.z.string().array(),messages:b.z.number(),changes:j.array(),error:b.z.string().nullable(),inputTokens:b.z.number(),outputTokens:b.z.number(),startedAt:c.DateLikeSchema,endedAt:c.DateLikeSchema.nullable()}),a.s(["isFading",0,function(a){let b,d,e;return b=a.path,!i.includes(b)&&.15>(d=(0,c.toDate)(a.lastReadAt??a.createdAt),e=Math.max(0,(Date.now()-d.getTime())/864e5),(a.hits+1)/(1+e))},"memorySourceLabel",0,a=>"user"===a?"you":"call"===a?"on a call":"bot"===a?"a bot":"tidy"===a?"read back":"","noteTitle",0,function(a){let b=a.indexOf("/");return -1===b?a:a.slice(b+1)},"sectionOf",0,function(a){if("profile"===a||"preferences"===a)return"you";let b=a.slice(0,a.indexOf("/"));return h.includes(b)?b:"inbox"},"tidyTally",0,function(a){let b=b=>a.filter(a=>a.op===b).length,c=[[b("add"),"added"],[b("replace"),"revised"],[b("forget"),"dropped"],[b("carry"),"carried"],[b("uncarry"),"uncarried"]].filter(([a])=>a>0).map(([a,b])=>`${a} ${b}`);return c.length?c.join(", "):"nothing to change"}])},16966,a=>{"use strict";var b=a.i(572131),c=a.i(801811),d=a.i(559539),e=a.i(492403);a.s(["useCompositeItem",0,function(a={}){let{highlightItemOnHover:f,highlightedIndex:g,onHighlightedIndexChange:h}=(0,d.useCompositeRootContext)(),{ref:i,index:j}=(0,e.useCompositeListItem)(a),k=g===j,l=b.useRef(null),m=(0,c.useMergedRefs)(i,l);return{compositeProps:{tabIndex:k?0:-1,onFocus(){h(j)},onMouseMove(){let a=l.current;if(!f||!a)return;let b=a.hasAttribute("disabled")||"true"===a.ariaDisabled;k||b||a.focus()}},compositeRef:m,index:j}}])},579923,a=>{"use strict";var b=a.i(572131),c=a.i(779549),d=a.i(854401),e=a.i(357738),f=a.i(909392),g=a.i(187924);function h(){return new Map}function i(){return new Set}function j(a,b){return a.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}a.s(["CompositeList",0,function(a){let{children:k,elementsRef:l,labelsRef:m,onMapChange:n}=a,o=(0,d.useStableCallback)(n),[,p]=b.useState(!1),q=(0,c.useRefWithInit)(i).current,r=(0,c.useRefWithInit)(h).current,s=b.useRef(0),t=b.useRef(!0),u=b.useRef(null),v=b.useRef(null),w=(0,d.useStableCallback)(()=>{t.current||(t.current=!0,p(a=>!a))}),x=(0,d.useStableCallback)((a,b)=>{r.set(a,b),w()}),y=(0,d.useStableCallback)(a=>{r.delete(a),w()}),z=(0,d.useStableCallback)(a=>{let b=new Map;return l.current.length=0,m&&(m.current.length=0),a.forEach(a=>{b.set(a.element,{...a.registration.metadata??{},index:a.index}),l.current[a.index]=a.element,m&&(m.current[a.index]=void 0!==a.registration.label?a.registration.label:a.registration.textRef?.current?.textContent??a.element.textContent)}),s.current=l.current.length,b}),A=(0,d.useStableCallback)(()=>{var a;let b,c,d,e,[f,g]=(a=r,b=new Set,c=[],d=[],a.forEach((a,e)=>{if(!e.isConnected)return;let f=a.index,g={index:f??-1,element:e,registration:a};null===f?d.push(g):f>=0&&(b.add(f),c.push(g))}),e=0,d.sort((a,b)=>j(a.element,b.element)),d.forEach(a=>{for(;b.has(e);)e+=1;a.index=e,c.push(a),e+=1}),b.size>0&&c.sort((a,b)=>a.index-b.index),[c,d.map(a=>a.element)]),h=z(f),i=u.current,k=!i||i.length!==f.length||f.some((a,b)=>{let c=i[b];return a.index!==c.index||a.element!==c.element||a.registration.index!==c.registration.index||a.registration.metadata!==c.registration.metadata});!function(a){if(v.current?.disconnect(),v.current=null,"function"!=typeof MutationObserver||a.length<2)return;let b=new MutationObserver(c=>{if(!function(a){for(let b of a)for(let a=0;a<b.removedNodes.length;a+=1)if(b.removedNodes[a].isConnected)return!0;return!1}(c))return;let d=null;for(let c of a)if(c.isConnected){if(d&&j(d,c)>0){b.disconnect(),w();return}d=c}});v.current=b;let c=new Set;for(let b=1;b<a.length;b+=1){let d=function(a,b){let c=a.parentElement;for(;c&&!c.contains(b);)c=c.parentElement;return c}(a[b-1],a[b]);d&&c.add(d)}c.forEach(a=>b.observe(a,{childList:!0}))}(g),u.current=f,t.current=!1,k&&(q.forEach(a=>a(h)),o(h))});(0,e.useIsoLayoutEffect)(()=>(!t.current&&u.current&&z(u.current),()=>{l.current=[],m&&(m.current=[])}),[l,m,z]),(0,e.useIsoLayoutEffect)(()=>{t.current&&A()}),(0,e.useIsoLayoutEffect)(()=>()=>{v.current?.disconnect(),t.current=!0},[]);let B=(0,d.useStableCallback)(a=>(q.add(a),()=>{q.delete(a)})),C=b.useMemo(()=>({register:x,unregister:y,subscribeMapChange:B,nextIndexRef:s}),[x,y,B,s]);return(0,g.jsx)(f.CompositeListContext.Provider,{value:C,children:k})}])},909392,a=>{"use strict";var b=a.i(572131);let c=b.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});a.s(["CompositeListContext",0,c,"useCompositeListContext",0,function(){return b.useContext(c)}])},492403,a=>{"use strict";var b=a.i(572131),c=a.i(357738),d=a.i(909392);a.s(["useCompositeListItem",0,function(a={}){let{guess:e,label:f,metadata:g,textRef:h,index:i}=a,{register:j,unregister:k,subscribeMapChange:l,nextIndexRef:m}=(0,d.useCompositeListContext)(),n=b.useRef(-1),[o,p]=b.useState(null==i&&e?()=>{if(-1===n.current){let a=m.current;m.current+=1,n.current=a}return n.current}:-1),q=i??o,r=b.useRef(null),s=b.useCallback(a=>{let b=r.current;b&&k(b),r.current=a,a&&j(a,{metadata:g??null,index:i??null,label:f,textRef:h})},[i,j,k,g,f,h]);return(0,c.useIsoLayoutEffect)(()=>{if(null==i)return l(a=>{let b=r.current?a.get(r.current)?.index:null;null!=b&&p(b)})},[i,l]),{ref:s,index:q}}])},118816,a=>{"use strict";var b=a.i(572131),c=a.i(926184);let d=b.forwardRef(function(a,b){let{className:d,render:e,orientation:f="horizontal",style:g,...h}=a;return(0,c.useRenderElement)("div",a,{state:{orientation:f},ref:b,props:[{role:"separator","aria-orientation":f},h]})});a.s(["Separator",0,d])},144501,a=>{"use strict";var b=a.i(20265),c=a.i(426476);a.s(["getCssDimensions",0,function(a){let d=(0,c.getComputedStyle)(a),e=parseFloat(d.width)||0,f=parseFloat(d.height)||0,g=(0,c.isHTMLElement)(a),h=g?a.offsetWidth:e,i=g?a.offsetHeight:f;return((0,b.round)(e)!==h||(0,b.round)(f)!==i)&&(e=h,f=i),{width:e,height:f}}])},987234,111376,a=>{"use strict";var b=a.i(934754),c=a.i(244513),d=a.i(852587),e=a.i(23464),f=a.i(57270),g=a.i(774016),h=a.i(959296);a.s(["formatDistanceToNowStrict",0,function(a,i){return function(a,b,i){var j;let k,l,m=(0,d.getDefaultOptions)(),n=i?.locale??m.locale??c.defaultLocale,o=(l=(0,g.toDate)(a)-(0,g.toDate)(b))<0?-1:l>0?1:l;if(isNaN(o))throw RangeError("Invalid time value");let p=Object.assign({},i,{addSuffix:i?.addSuffix,comparison:o}),[q,r]=(0,f.normalizeDates)(i?.in,...o>0?[b,a]:[a,b]),s=(j=i?.roundingMethod??"round",a=>{let b=(j?Math[j]:Math.trunc)(a);return 0===b?0:b}),t=r.getTime()-q.getTime(),u=t/h.millisecondsInMinute,v=(t-((0,e.getTimezoneOffsetInMilliseconds)(r)-(0,e.getTimezoneOffsetInMilliseconds)(q)))/h.millisecondsInMinute,w=i?.unit;if("second"===(k=w||(u<1?"second":u<60?"minute":u<h.minutesInDay?"hour":v<h.minutesInMonth?"day":v<h.minutesInYear?"month":"year"))){let a=s(t/1e3);return n.formatDistance("xSeconds",a,p)}if("minute"===k){let a=s(u);return n.formatDistance("xMinutes",a,p)}if("hour"===k){let a=s(u/60);return n.formatDistance("xHours",a,p)}if("day"===k){let a=s(v/h.minutesInDay);return n.formatDistance("xDays",a,p)}if("month"===k){let a=s(v/h.minutesInMonth);return 12===a&&"month"!==w?n.formatDistance("xYears",1,p):n.formatDistance("xMonths",a,p)}else{let a=s(v/h.minutesInYear);return n.formatDistance("xYears",a,p)}}(a,(0,b.constructNow)(a),i)}],987234);var i=a.i(164831);let j={name:"pin",size:24,node:[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]};j.node;let k=(0,i.default)(j);a.s(["Pin",0,k],111376)},689594,a=>{"use strict";var b=a.i(164831);let c={name:"book-marked",size:24,node:[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]};c.node;let d=(0,b.default)(c);a.s(["BookMarked",0,d],689594)},589027,a=>{"use strict";var b=a.i(164831);let c={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};c.node;let d=(0,b.default)(c);a.s(["ChevronDown",0,d],589027)},707963,a=>{"use strict";var b=a.i(164831);let c={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};c.node;let d=(0,b.default)(c);a.s(["ChevronLeft",0,d],707963)},199968,a=>{"use strict";var b=a.i(164831);let c={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};c.node;let d=(0,b.default)(c);a.s(["default",0,d])},141146,a=>{"use strict";var b=a.i(199968);a.s(["ChevronRight",()=>b.default])},168370,a=>{"use strict";var b=a.i(164831);let c={name:"external-link",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]};c.node;let d=(0,b.default)(c);a.s(["ExternalLink",0,d],168370)},707938,a=>{"use strict";var b=a.i(164831);let c={name:"file-braces",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],aliases:["file-json"]};c.node;let d=(0,b.default)(c);a.s(["FileJson",0,d],707938)},483138,a=>{"use strict";var b=a.i(164831);let c={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};c.node;let d=(0,b.default)(c);a.s(["FileText",0,d],483138)},998697,a=>{"use strict";var b=a.i(164831);let c={name:"file",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]};c.node;let d=(0,b.default)(c);a.s(["File",0,d],998697)},844561,a=>{"use strict";var b=a.i(164831);let c={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};c.node;let d=(0,b.default)(c);a.s(["FolderOpen",0,d],844561)},696732,a=>{"use strict";var b=a.i(164831);let c={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};c.node;let d=(0,b.default)(c);a.s(["Globe",0,d],696732)},71215,a=>{"use strict";var b=a.i(164831);let c={name:"image",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]};c.node;let d=(0,b.default)(c);a.s(["Image",0,d],71215)},425256,a=>{"use strict";var b=a.i(164831);let c={name:"rotate-ccw-clock",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],aliases:["history"]};c.node;let d=(0,b.default)(c);a.s(["History",0,d],425256)},26268,a=>{"use strict";var b=a.i(623577);a.s(["TriangleAlert",()=>b.default])},474215,a=>{"use strict";var b=a.i(176965);a.s(["X",()=>b.default])},53467,a=>{"use strict";var b=a.i(261234),c=a.i(539110);a.i(975930);var d=a.i(671731),e=(0,c.__name)(a=>{let{securityLevel:c}=(0,b.getConfig2)(),e=(0,d.select)("body");if("sandbox"===c){let b=(0,d.select)(`#i${a}`),c=b.node()?.contentDocument??document;e=(0,d.select)(c.body)}return e.select(`#${a}`)},"selectSvgElement");a.s(["selectSvgElement",0,e])},882458,a=>{"use strict";var b=a.i(416635),c=a.i(43429),d=a.i(428212),e=a.i(916573),f=a.i(887370),g=a.i(261234),h=a.i(875117),i=a.i(539110),j={common:g.common_default,getConfig:g.getConfig,insertCluster:b.insertCluster,insertEdge:c.insertEdge,insertEdgeLabel:c.insertEdgeLabel,insertMarkers:c.markers_default,insertNode:d.insertNode,interpolateToCurve:f.interpolateToCurve,labelHelper:e.labelHelper,log:h.log,positionEdgeLabel:c.positionEdgeLabel},k={},l=(0,i.__name)(a=>{for(let b of a)k[b.name]=b},"registerLayoutLoaders");(0,i.__name)(()=>{l([{name:"dagre",loader:(0,i.__name)(async()=>await a.A(390118),"loader")},{name:"swimlane",loader:(0,i.__name)(async()=>await a.A(860094),"loader")},{name:"cose-bilkent",loader:(0,i.__name)(async()=>await a.A(989520),"loader")}])},"registerDefaultLayoutLoaders")();var m=(0,i.__name)(async(a,b)=>{if(!(a.layoutAlgorithm in k))throw Error(`Unknown layout algorithm: ${a.layoutAlgorithm}`);if(a.diagramId)for(let b of a.nodes){let c=b.domId||b.id;b.domId=`${a.diagramId}-${c}`}let c=k[a.layoutAlgorithm],d=await c.loader(),{theme:e,themeVariables:f}=a.config,{useGradient:g,gradientStart:h,gradientStop:i}=f,l=b.attr("id");if(b.append("defs").append("filter").attr("id",`${l}-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",`${e?.includes("dark")?"#FFFFFF":"#000000"}`),b.append("defs").append("filter").attr("id",`${l}-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",`${e?.includes("dark")?"#FFFFFF":"#000000"}`),g){let a=b.append("linearGradient").attr("id",b.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");a.append("svg:stop").attr("offset","0%").attr("stop-color",h).attr("stop-opacity",1),a.append("svg:stop").attr("offset","100%").attr("stop-color",i).attr("stop-opacity",1)}return d.render(a,b,j,{algorithm:c.algorithm})},"render"),n=(0,i.__name)((a="",{fallback:b="dagre"}={})=>{if(a in k)return a;if(b in k)return h.log.warn(`Layout algorithm ${a} is not registered. Using ${b} as fallback.`),b;throw Error(`Both layout algorithms ${a} and ${b} are not registered.`)},"getRegisteredLayoutAlgorithm");a.s(["getRegisteredLayoutAlgorithm",0,n,"registerLayoutLoaders",0,l,"render",0,m])},869789,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={actionAsyncStorage:function(){return f.actionAsyncStorage},workAsyncStorage:function(){return g.workAsyncStorage},workUnitAsyncStorage:function(){return h.workUnitAsyncStorage}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(120635),g=a.r(556704),h=a.r(832319);("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__1xwnu-h._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[199169,a=>{"use strict";var b=a.i(256711),c=a.i(42724),d=a.i(934754),e=a.i(57270),f=a.i(367638);function g(a,b,c){let[d,g]=(0,e.normalizeDates)(c?.in,a,b);return+(0,f.startOfDay)(d)==+(0,f.startOfDay)(g)}var h=a.i(774016),i=a.i(156757);let j=i.z.union([i.z.date(),i.z.iso.datetime()]),k=a=>new Date(a);a.s(["DateLikeSchema",0,j,"shortAgo",0,function(a,b=Date.now()){let c=Math.max(0,Math.round((b-k(a).getTime())/1e3));if(c<60)return"now";let d=Math.round(c/60);if(d<60)return`${d}m`;let e=Math.round(d/60);return e<24?`${e}h`:`${Math.round(e/24)}d`},"toDate",0,k,"whenOf",0,function(a){let e=k(a),f=(0,b.format)(e,"HH:mm");return g((0,c.constructFrom)(e,e),(0,d.constructNow)(e))?f:!function(a){var b,e;let f;return g((0,c.constructFrom)(a,a),(b=(0,d.constructNow)(a),e=void 0,f=(0,h.toDate)(b,e?.in),isNaN(-1)?(0,c.constructFrom)(e?.in||b,NaN):(f.setDate(f.getDate()+-1),f)))}(e)?`${(0,b.format)(e,"MMM d")} \xb7 ${f}`:`Yesterday ${f}`}],199169)},42724,959296,a=>{"use strict";let b=Symbol.for("constructDateFrom");a.s(["constructFromSymbol",0,b,"millisecondsInDay",0,864e5,"millisecondsInMinute",0,6e4,"millisecondsInWeek",0,6048e5,"minutesInDay",0,1440,"minutesInMonth",0,43200,"minutesInYear",0,525600],959296),a.s(["constructFrom",0,function(a,c){return"function"==typeof a?a(c):a&&"object"==typeof a&&b in a?a[b](c):a instanceof Date?new a.constructor(c):new Date(c)}],42724)},934754,a=>{"use strict";var b=a.i(42724);a.s(["constructNow",0,function(a){return(0,b.constructFrom)(a,Date.now())}])},256711,774016,23464,57270,367638,a=>{"use strict";var b=a.i(244513),c=a.i(852587),d=a.i(42724);function e(a,b){return(0,d.constructFrom)(b||a,a)}function f(a){let b=e(a),c=new Date(Date.UTC(b.getFullYear(),b.getMonth(),b.getDate(),b.getHours(),b.getMinutes(),b.getSeconds(),b.getMilliseconds()));return c.setUTCFullYear(b.getFullYear()),a-c}function g(a,...b){let c=d.constructFrom.bind(null,a||b.find(a=>"object"==typeof a));return b.map(c)}a.s(["toDate",0,e],774016),a.s(["getTimezoneOffsetInMilliseconds",0,f],23464),a.s(["normalizeDates",0,g],57270);var h=a.i(959296);function i(a,b){let c=e(a,b?.in);return c.setHours(0,0,0,0),c}function j(a,b){let d=(0,c.getDefaultOptions)(),f=b?.weekStartsOn??b?.locale?.options?.weekStartsOn??d.weekStartsOn??d.locale?.options?.weekStartsOn??0,g=e(a,b?.in),h=g.getDay();return g.setDate(g.getDate()-(7*(h<f)+h-f)),g.setHours(0,0,0,0),g}function k(a,b){return j(a,{...b,weekStartsOn:1})}function l(a,b){let c=e(a,b?.in),f=c.getFullYear(),g=(0,d.constructFrom)(c,0);g.setFullYear(f+1,0,4),g.setHours(0,0,0,0);let h=k(g),i=(0,d.constructFrom)(c,0);i.setFullYear(f,0,4),i.setHours(0,0,0,0);let j=k(i);return c.getTime()>=h.getTime()?f+1:c.getTime()>=j.getTime()?f:f-1}function m(a,b){let f=e(a,b?.in),g=f.getFullYear(),h=(0,c.getDefaultOptions)(),i=b?.firstWeekContainsDate??b?.locale?.options?.firstWeekContainsDate??h.firstWeekContainsDate??h.locale?.options?.firstWeekContainsDate??1,k=(0,d.constructFrom)(b?.in||a,0);k.setFullYear(g+1,0,i),k.setHours(0,0,0,0);let l=j(k,b),m=(0,d.constructFrom)(b?.in||a,0);m.setFullYear(g,0,i),m.setHours(0,0,0,0);let n=j(m,b);return+f>=+l?g+1:+f>=+n?g:g-1}function n(a,b){let c=Math.abs(a).toString().padStart(b,"0");return(a<0?"-":"")+c}a.s(["startOfDay",0,i],367638);let o={y(a,b){let c=a.getFullYear(),d=c>0?c:1-c;return n("yy"===b?d%100:d,b.length)},M(a,b){let c=a.getMonth();return"M"===b?String(c+1):n(c+1,2)},d:(a,b)=>n(a.getDate(),b.length),a(a,b){let c=a.getHours()/12>=1?"pm":"am";switch(b){case"a":case"aa":return c.toUpperCase();case"aaa":return c;case"aaaaa":return c[0];default:return"am"===c?"a.m.":"p.m."}},h:(a,b)=>n(a.getHours()%12||12,b.length),H:(a,b)=>n(a.getHours(),b.length),m:(a,b)=>n(a.getMinutes(),b.length),s:(a,b)=>n(a.getSeconds(),b.length),S(a,b){let c=b.length;return n(Math.trunc(a.getMilliseconds()*Math.pow(10,c-3)),b.length)}},p={G:function(a,b,c){let d=+(a.getFullYear()>0);switch(b){case"G":case"GG":case"GGG":return c.era(d,{width:"abbreviated"});case"GGGGG":return c.era(d,{width:"narrow"});default:return c.era(d,{width:"wide"})}},y:function(a,b,c){if("yo"===b){let b=a.getFullYear();return c.ordinalNumber(b>0?b:1-b,{unit:"year"})}return o.y(a,b)},Y:function(a,b,c,d){let e=m(a,d),f=e>0?e:1-e;return"YY"===b?n(f%100,2):"Yo"===b?c.ordinalNumber(f,{unit:"year"}):n(f,b.length)},R:function(a,b){return n(l(a),b.length)},u:function(a,b){return n(a.getFullYear(),b.length)},Q:function(a,b,c){let d=Math.ceil((a.getMonth()+1)/3);switch(b){case"Q":return String(d);case"QQ":return n(d,2);case"Qo":return c.ordinalNumber(d,{unit:"quarter"});case"QQQ":return c.quarter(d,{width:"abbreviated",context:"formatting"});case"QQQQQ":return c.quarter(d,{width:"narrow",context:"formatting"});default:return c.quarter(d,{width:"wide",context:"formatting"})}},q:function(a,b,c){let d=Math.ceil((a.getMonth()+1)/3);switch(b){case"q":return String(d);case"qq":return n(d,2);case"qo":return c.ordinalNumber(d,{unit:"quarter"});case"qqq":return c.quarter(d,{width:"abbreviated",context:"standalone"});case"qqqqq":return c.quarter(d,{width:"narrow",context:"standalone"});default:return c.quarter(d,{width:"wide",context:"standalone"})}},M:function(a,b,c){let d=a.getMonth();switch(b){case"M":case"MM":return o.M(a,b);case"Mo":return c.ordinalNumber(d+1,{unit:"month"});case"MMM":return c.month(d,{width:"abbreviated",context:"formatting"});case"MMMMM":return c.month(d,{width:"narrow",context:"formatting"});default:return c.month(d,{width:"wide",context:"formatting"})}},L:function(a,b,c){let d=a.getMonth();switch(b){case"L":return String(d+1);case"LL":return n(d+1,2);case"Lo":return c.ordinalNumber(d+1,{unit:"month"});case"LLL":return c.month(d,{width:"abbreviated",context:"standalone"});case"LLLLL":return c.month(d,{width:"narrow",context:"standalone"});default:return c.month(d,{width:"wide",context:"standalone"})}},w:function(a,b,f,g){let i,k,l,o,p,q=Math.round((j(i=e(a,g?.in),g)-(k=(0,c.getDefaultOptions)(),l=g?.firstWeekContainsDate??g?.locale?.options?.firstWeekContainsDate??k.firstWeekContainsDate??k.locale?.options?.firstWeekContainsDate??1,o=m(i,g),(p=(0,d.constructFrom)(g?.in||i,0)).setFullYear(o,0,l),p.setHours(0,0,0,0),j(p,g)))/h.millisecondsInWeek)+1;return"wo"===b?f.ordinalNumber(q,{unit:"week"}):n(q,b.length)},I:function(a,b,c){let f,g,i,j=Math.round((k(f=e(a,void 0))-(g=l(f,void 0),(i=(0,d.constructFrom)(f,0)).setFullYear(g,0,4),i.setHours(0,0,0,0),k(i)))/h.millisecondsInWeek)+1;return"Io"===b?c.ordinalNumber(j,{unit:"week"}):n(j,b.length)},d:function(a,b,c){return"do"===b?c.ordinalNumber(a.getDate(),{unit:"date"}):o.d(a,b)},D:function(a,b,c){let d,j,k=function(a,b){let[c,d]=g(void 0,a,b),e=i(c),j=i(d);return Math.round((e-f(e)-(j-f(j)))/h.millisecondsInDay)}(j=e(a,void 0),((d=e(j,void 0)).setFullYear(d.getFullYear(),0,1),d.setHours(0,0,0,0),d))+1;return"Do"===b?c.ordinalNumber(k,{unit:"dayOfYear"}):n(k,b.length)},E:function(a,b,c){let d=a.getDay();switch(b){case"E":case"EE":case"EEE":return c.day(d,{width:"abbreviated",context:"formatting"});case"EEEEE":return c.day(d,{width:"narrow",context:"formatting"});case"EEEEEE":return c.day(d,{width:"short",context:"formatting"});default:return c.day(d,{width:"wide",context:"formatting"})}},e:function(a,b,c,d){let e=a.getDay(),f=(e-d.weekStartsOn+8)%7||7;switch(b){case"e":return String(f);case"ee":return n(f,2);case"eo":return c.ordinalNumber(f,{unit:"day"});case"eee":return c.day(e,{width:"abbreviated",context:"formatting"});case"eeeee":return c.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return c.day(e,{width:"short",context:"formatting"});default:return c.day(e,{width:"wide",context:"formatting"})}},c:function(a,b,c,d){let e=a.getDay(),f=(e-d.weekStartsOn+8)%7||7;switch(b){case"c":return String(f);case"cc":return n(f,b.length);case"co":return c.ordinalNumber(f,{unit:"day"});case"ccc":return c.day(e,{width:"abbreviated",context:"standalone"});case"ccccc":return c.day(e,{width:"narrow",context:"standalone"});case"cccccc":return c.day(e,{width:"short",context:"standalone"});default:return c.day(e,{width:"wide",context:"standalone"})}},i:function(a,b,c){let d=a.getDay(),e=0===d?7:d;switch(b){case"i":return String(e);case"ii":return n(e,b.length);case"io":return c.ordinalNumber(e,{unit:"day"});case"iii":return c.day(d,{width:"abbreviated",context:"formatting"});case"iiiii":return c.day(d,{width:"narrow",context:"formatting"});case"iiiiii":return c.day(d,{width:"short",context:"formatting"});default:return c.day(d,{width:"wide",context:"formatting"})}},a:function(a,b,c){let d=a.getHours()/12>=1?"pm":"am";switch(b){case"a":case"aa":return c.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"aaa":return c.dayPeriod(d,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return c.dayPeriod(d,{width:"narrow",context:"formatting"});default:return c.dayPeriod(d,{width:"wide",context:"formatting"})}},b:function(a,b,c){let d,e=a.getHours();switch(d=12===e?"noon":0===e?"midnight":e/12>=1?"pm":"am",b){case"b":case"bb":return c.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"bbb":return c.dayPeriod(d,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return c.dayPeriod(d,{width:"narrow",context:"formatting"});default:return c.dayPeriod(d,{width:"wide",context:"formatting"})}},B:function(a,b,c){let d,e=a.getHours();switch(d=e>=17?"evening":e>=12?"afternoon":e>=4?"morning":"night",b){case"B":case"BB":case"BBB":return c.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"BBBBB":return c.dayPeriod(d,{width:"narrow",context:"formatting"});default:return c.dayPeriod(d,{width:"wide",context:"formatting"})}},h:function(a,b,c){if("ho"===b){let b=a.getHours()%12;return 0===b&&(b=12),c.ordinalNumber(b,{unit:"hour"})}return o.h(a,b)},H:function(a,b,c){return"Ho"===b?c.ordinalNumber(a.getHours(),{unit:"hour"}):o.H(a,b)},K:function(a,b,c){let d=a.getHours()%12;return"Ko"===b?c.ordinalNumber(d,{unit:"hour"}):n(d,b.length)},k:function(a,b,c){let d=a.getHours();return(0===d&&(d=24),"ko"===b)?c.ordinalNumber(d,{unit:"hour"}):n(d,b.length)},m:function(a,b,c){return"mo"===b?c.ordinalNumber(a.getMinutes(),{unit:"minute"}):o.m(a,b)},s:function(a,b,c){return"so"===b?c.ordinalNumber(a.getSeconds(),{unit:"second"}):o.s(a,b)},S:function(a,b){return o.S(a,b)},X:function(a,b,c){let d=a.getTimezoneOffset();if(0===d)return"Z";switch(b){case"X":return r(d);case"XXXX":case"XX":return s(d);default:return s(d,":")}},x:function(a,b,c){let d=a.getTimezoneOffset();switch(b){case"x":return r(d);case"xxxx":case"xx":return s(d);default:return s(d,":")}},O:function(a,b,c){let d=a.getTimezoneOffset();switch(b){case"O":case"OO":case"OOO":return"GMT"+q(d,":");default:return"GMT"+s(d,":")}},z:function(a,b,c){let d=a.getTimezoneOffset();switch(b){case"z":case"zz":case"zzz":return"GMT"+q(d,":");default:return"GMT"+s(d,":")}},t:function(a,b,c){return n(Math.trunc(a/1e3),b.length)},T:function(a,b,c){return n(+a,b.length)}};function q(a,b=""){let c=a>0?"-":"+",d=Math.abs(a),e=Math.trunc(d/60),f=d%60;return 0===f?c+String(e):c+String(e)+b+n(f,2)}function r(a,b){return a%60==0?(a>0?"-":"+")+n(Math.abs(a)/60,2):s(a,b)}function s(a,b=""){let c=Math.abs(a);return(a>0?"-":"+")+n(Math.trunc(c/60),2)+b+n(c%60,2)}let t=(a,b)=>{switch(a){case"P":return b.date({width:"short"});case"PP":return b.date({width:"medium"});case"PPP":return b.date({width:"long"});default:return b.date({width:"full"})}},u=(a,b)=>{switch(a){case"p":return b.time({width:"short"});case"pp":return b.time({width:"medium"});case"ppp":return b.time({width:"long"});default:return b.time({width:"full"})}},v={p:u,P:(a,b)=>{let c,d=a.match(/(P+)(p+)?/)||[],e=d[1],f=d[2];if(!f)return t(a,b);switch(e){case"P":c=b.dateTime({width:"short"});break;case"PP":c=b.dateTime({width:"medium"});break;case"PPP":c=b.dateTime({width:"long"});break;default:c=b.dateTime({width:"full"})}return c.replace("{{date}}",t(e,b)).replace("{{time}}",u(f,b))}},w=/^D+$/,x=/^Y+$/,y=["D","DD","YY","YYYY"],z=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,A=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,B=/^'([^]*?)'?$/,C=/''/g,D=/[a-zA-Z]/;a.s(["format",0,function(a,d,f){let g=(0,c.getDefaultOptions)(),h=f?.locale??g.locale??b.defaultLocale,i=f?.firstWeekContainsDate??f?.locale?.options?.firstWeekContainsDate??g.firstWeekContainsDate??g.locale?.options?.firstWeekContainsDate??1,j=f?.weekStartsOn??f?.locale?.options?.weekStartsOn??g.weekStartsOn??g.locale?.options?.weekStartsOn??0,k=e(a,f?.in);if(!(k instanceof Date||"object"==typeof k&&"[object Date]"===Object.prototype.toString.call(k))&&"number"!=typeof k||isNaN(+e(k)))throw RangeError("Invalid time value");let l=d.match(A).map(a=>{let b=a[0];return"p"===b||"P"===b?(0,v[b])(a,h.formatLong):a}).join("").match(z).map(a=>{if("''"===a)return{isToken:!1,value:"'"};let b=a[0];if("'"===b){var c;let b;return{isToken:!1,value:(b=(c=a).match(B))?b[1].replace(C,"'"):c}}if(p[b])return{isToken:!0,value:a};if(b.match(D))throw RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:a}});h.localize.preprocessor&&(l=h.localize.preprocessor(k,l));let m={firstWeekContainsDate:i,weekStartsOn:j,locale:h};return l.map(b=>{if(!b.isToken)return b.value;let c=b.value;return(!f?.useAdditionalWeekYearTokens&&x.test(c)||!f?.useAdditionalDayOfYearTokens&&w.test(c))&&function(a,b,c){var d,e,f;let g,h=(d=a,e=b,f=c,g="Y"===d[0]?"years":"days of the month",`Use \`${d.toLowerCase()}\` instead of \`${d}\` (in \`${e}\`) for formatting ${g} to the input \`${f}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(console.warn(h),y.includes(a))throw RangeError(h)}(c,d,String(a)),(0,p[c[0]])(k,c,h.localize,m)}).join("")}],256711)},244513,852587,a=>{"use strict";var b;let c={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function d(a){return (b={})=>{let c=b.width?String(b.width):a.defaultWidth;return a.formats[c]||a.formats[a.defaultWidth]}}let e={date:d({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:d({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:d({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},f={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function g(a){return(b,c)=>{let d;if("formatting"===(c?.context?String(c.context):"standalone")&&a.formattingValues){let b=a.defaultFormattingWidth||a.defaultWidth,e=c?.width?String(c.width):b;d=a.formattingValues[e]||a.formattingValues[b]}else{let b=a.defaultWidth,e=c?.width?String(c.width):a.defaultWidth;d=a.values[e]||a.values[b]}return d[a.argumentCallback?a.argumentCallback(b):b]}}let h={ordinalNumber:(a,b)=>{let c=Number(a),d=c%100;if(d>20||d<10)switch(d%10){case 1:return c+"st";case 2:return c+"nd";case 3:return c+"rd"}return c+"th"},era:g({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:g({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:a=>a-1}),month:g({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:g({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:g({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function i(a){return(b,c={})=>{let d,e=c.width,f=e&&a.matchPatterns[e]||a.matchPatterns[a.defaultMatchWidth],g=b.match(f);if(!g)return null;let h=g[0],i=e&&a.parsePatterns[e]||a.parsePatterns[a.defaultParseWidth],j=Array.isArray(i)?function(a,b){for(let c=0;c<a.length;c++)if(b(a[c]))return c}(i,a=>a.test(h)):function(a,b){for(let c in a)if(Object.prototype.hasOwnProperty.call(a,c)&&b(a[c]))return c}(i,a=>a.test(h));return d=a.valueCallback?a.valueCallback(j):j,{value:d=c.valueCallback?c.valueCallback(d):d,rest:b.slice(h.length)}}}let j={ordinalNumber:(b={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:a=>parseInt(a,10)},(a,c={})=>{let d=a.match(b.matchPattern);if(!d)return null;let e=d[0],f=a.match(b.parsePattern);if(!f)return null;let g=b.valueCallback?b.valueCallback(f[0]):f[0];return{value:g=c.valueCallback?c.valueCallback(g):g,rest:a.slice(e.length)}}),era:i({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:i({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:a=>a+1}),month:i({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:i({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:i({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};a.s(["defaultLocale",0,{code:"en-US",formatDistance:(a,b,d)=>{let e,f=c[a];if(e="string"==typeof f?f:1===b?f.one:f.other.replace("{{count}}",b.toString()),d?.addSuffix)if(d.comparison&&d.comparison>0)return"in "+e;else return e+" ago";return e},formatLong:e,formatRelative:(a,b,c,d)=>f[a],localize:h,match:j,options:{weekStartsOn:0,firstWeekContainsDate:1}}],244513);let k={};a.s(["getDefaultOptions",0,function(){return k}],852587)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=_0-mc7ro._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[888396,a=>{"use strict";var b=a.i(572131);a.s(["useDraft",0,function(a,c,{min:d=1}={}){let[e,f]=(0,b.useState)(a),[g,h]=(0,b.useState)(a);return a!==g&&(h(a),f(a)),{value:e,set:f,commit:()=>{let b=e.trim();if(b.length<d)return f(a);f(b),b!==a&&c(b)},onKeyDown:a=>{"Enter"!==a.key||a.nativeEvent.isComposing||a.currentTarget.blur()}}}])},862966,a=>{"use strict";var b=a.i(572131),c=a.i(988712),d=a.i(426618),e=a.i(664565),f=a.i(487610),g=a.i(561311);let h=Promise.resolve(),i=(0,e.withMiddleware)(c.u,a=>(c,e,i)=>{let j,k=(0,b.useRef)(!1),{cache:l,initialSize:m=1,revalidateAll:n=!1,persistSize:o=!1,revalidateFirstPage:p=!0,revalidateOnMount:q=!1,parallel:r=!1}=i,[,,,s]=d.a.get(d.o);try{(j=(0,d.s)(c?c(0,null):null)[0])&&(j=g.INFINITE_PREFIX+j)}catch(a){}let[t,u,v]=(0,d.c)(l,j),w=(0,b.useCallback)(()=>(0,d.i)(t()._l)?m:t()._l,[l,j,m]);(0,f.useSyncExternalStore)((0,b.useCallback)(a=>j?v(j,()=>{a()}):()=>{},[l,j]),w,w);let x=(0,b.useCallback)(()=>{let a=t()._l;return(0,d.i)(a)?m:a},[j,m]),y=(0,b.useRef)(x());(0,d.u)(()=>{if(!k.current){k.current=!0;return}j&&u({_l:o?y.current:x()})},[j,l]);let z=q&&!k.current,A=a(j,async a=>{let b=t()._i,f=t()._r,g=d.a.get(l),h=g[8],j=()=>g[8]!==h;u({_r:d.U});let k=[],m=x(),[o]=(0,d.c)(l,a),q=o().data,v=[],w=null;for(let a=0;a<m;++a){let[g,h]=(0,d.s)(c(a,r?null:w));if(!g)break;let[m,o]=(0,d.c)(l,g),t=m().data,u=n||b||(0,d.i)(t)||p&&!a&&!(0,d.i)(q)||z||q&&!(0,d.i)(q[a])&&!i.compare(q[a],t);if(e&&("function"==typeof f?f(t,h):u)){let b=async()=>{if(g in s){let a=s[g];delete s[g],t=await a}else t=await e(h);j()||o({data:t,_k:h}),k[a]=t};r?v.push(b):await b()}else k[a]=t;r||(w=t)}return r&&await Promise.all(v.map(a=>a())),j()||u({_i:d.U}),k},i),B=(0,b.useCallback)(function(a,b){let c="boolean"==typeof b?{revalidate:b}:b||{},e=!1!==c.revalidate;return j?(e&&((0,d.i)(a)?u({_i:!0,_r:c.revalidate}):u({_i:!1,_r:c.revalidate})),arguments.length?A.mutate(a,{...c,revalidate:e}):A.mutate()):h},[j,l]),C=(0,b.useCallback)(a=>{let b;if(!j)return h;let[,e]=(0,d.c)(l,j);if((0,d.e)(a)?b=a(x()):"number"==typeof a&&(b=a),"number"!=typeof b)return h;e({_l:b}),y.current=b;let f=[],[g]=(0,d.c)(l,j),i=null;for(let a=0;a<b;++a){let[b]=(0,d.s)(c(a,i)),[e]=(0,d.c)(l,b),h=b?e().data:d.U;if((0,d.i)(h))return B(g().data);f.push(h),i=h}return B(f)},[j,l,B,x]);return{size:x(),setSize:C,mutate:B,get data(){return A.data},get error(){return A.error},get isValidating(){return A.isValidating},get isLoading(){return A.isLoading}}});var j=a.i(287702),k=a.i(759497);a.s(["useServerPages",0,function(a){let c=a.size??j.PAGE_SIZE,{key:d}=a,{data:e,error:f,isLoading:g,isValidating:h,setSize:l,mutate:m}=i((a,b)=>(0,k.resolveKey)(d(a,b)),k.fetchRoute,{dedupingInterval:500,revalidateOnMount:!0,revalidateOnFocus:!0,revalidateOnReconnect:!0,focusThrottleInterval:1e3,revalidateFirstPage:!1,...a.swr}),n=e??[],o=n.flat(),p=n.at(-1),q=void 0!==p&&p.length>=c,r=(0,b.useRef)(0),s=h&&n.length>0&&r.current>n.length,t=(0,b.useRef)({isValidating:h,setSize:l,pages:n.length});t.current={isValidating:h,setSize:l,pages:n.length};let u=(0,k.resolveKey)(d(0,null)),v="string"==typeof u?u:u?.url;(0,b.useEffect)(()=>{if(v)return(0,k.registerPagedReader)({url:v,refresh:()=>m()})},[v,m]);let w=function(a,c={}){let{enabled:d=!0,margin:e="600px",revision:f}=c,g=(0,b.useRef)(a);g.current=a;let h=(0,b.useRef)(null),i=(0,b.useRef)(null),j=(0,b.useCallback)(a=>{h.current=a},[]);return(0,b.useEffect)(()=>{i.current?.disconnect();let a=h.current;if(a&&d)return i.current=new IntersectionObserver(([a])=>{a.isIntersecting&&g.current()},{root:function(a){let b=a.parentElement;for(;b;){let{overflowY:a}=getComputedStyle(b);if(("auto"===a||"scroll"===a)&&b.scrollHeight>b.clientHeight)return b;b=b.parentElement}return null}(a),rootMargin:e}),i.current.observe(a),()=>i.current?.disconnect()},[d,e,f]),j}(()=>{let a=t.current;a.isValidating||(r.current=a.pages+1,a.setSize(a.pages+1))},{enabled:q,revision:`${n.length}:${h}`});return{items:o,isLoading:g,isLoadingMore:s,error:f,hasMore:q,sentinelRef:w,refresh:()=>m()}}],862966)},951675,a=>{"use strict";var b=a.i(164831);let c={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"]};c.node;let d=(0,b.default)(c);a.s(["Trash2",0,d],951675)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=_01p5r6-._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[436788,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_09ja_w1._.js"].map(b=>a.l(b))).then(()=>b(964665)))},348436,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_09-0k3z._.js","server/chunks/ssr/features_bot_components_bot-setting_tsx_01ajft6._.js"].map(b=>a.l(b))).then(()=>b(581662)))},77199,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_0w5bgak._.js"].map(b=>a.l(b))).then(()=>b(210799)))},228887,a=>{a.v(b=>Promise.all(["server/chunks/ssr/features_config_components_config-setting_tsx_0xfwqdg._.js"].map(b=>a.l(b))).then(()=>b(405593)))},578193,a=>{a.v(b=>Promise.all(["server/chunks/ssr/features_config_components_14jqgy4._.js"].map(b=>a.l(b))).then(()=>b(233635)))},930209,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_1ov37if._.js","server/chunks/ssr/components_ui_1y1l7yj._.js","server/chunks/ssr/features_connectors_components_mcp-setting_tsx_0jmbgvp._.js"].map(b=>a.l(b))).then(()=>b(26444)))},277297,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_01p5r6-._.js","server/chunks/ssr/components_ui_1y1l7yj._.js","server/chunks/ssr/features_memory_components_memory-setting_tsx_0oa43sw._.js"].map(b=>a.l(b))).then(()=>b(857022)))},479648,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_0npjf8-._.js","server/chunks/ssr/components_ui_1y1l7yj._.js","server/chunks/ssr/_1m3bsfr._.js"].map(b=>a.l(b))).then(()=>b(703228)))},502073,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_0fafgvl._.js","server/chunks/ssr/_0su6_08._.js"].map(b=>a.l(b))).then(()=>b(922056)))},895186,a=>{a.v(b=>Promise.all(["server/chunks/ssr/_1lip4th._.js"].map(b=>a.l(b))).then(()=>b(901729)))},176814,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[root-of-the-server]__1qfqvmg._.js","server/chunks/ssr/lib_realtime_15h_v1v._.js"].map(b=>a.l(b))).then(()=>b(707196)))},63602,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[root-of-the-server]__0m1b5ky._.js","server/chunks/ssr/lib_realtime_12wg_dd._.js"].map(b=>a.l(b))).then(()=>b(26378)))},992025,a=>{a.v(a=>Promise.resolve().then(()=>a(948986)))},929490,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_17lrt3y._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SVP7TREG_mjs_03r5m21._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0lct0v1._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(161868)))},969267,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_18_dk7_._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1feyqvf._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_cytoscape_dist_cytoscape_esm_mjs_0arohj6._.js","server/chunks/ssr/node_modules_11trqmi._.js"].map(b=>a.l(b))).then(()=>b(626047)))},784520,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0qwth-_._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_blockDiagram-I7D4REHJ_mjs_0qg1lr5._.js"].map(b=>a.l(b))).then(()=>b(155638)))},613707,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-F27PBJKO_mjs_0ms0zmb._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_c4Diagram-7LVT6UL2_mjs_06bhe3-._.js"].map(b=>a.l(b))).then(()=>b(557384)))},854712,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1v463pe._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-TICWLB2K_mjs_1t97mh7._.js"].map(b=>a.l(b))).then(()=>b(336243)))},892569,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_0thh8pk._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-TICWLB2K_mjs_1t97mh7._.js"].map(b=>a.l(b))).then(()=>b(538994)))},989520,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1nl12mt._.js","server/chunks/ssr/node_modules_cytoscape_dist_cytoscape_esm_mjs_0arohj6._.js"].map(b=>a.l(b))).then(()=>b(127273)))},388833,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_13r44jq._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_18pinup._.js"].map(b=>a.l(b))).then(()=>b(517237)))},390118,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_dagre-GXQ25YYZ_mjs_0k_lz8d._.js","server/chunks/ssr/node_modules_dagre-d3-es_src_dagre_index_0g66msq.js"].map(b=>a.l(b))).then(()=>b(920028)))},831868,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_19dp7ko._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0eji647._.js"].map(b=>a.l(b))).then(()=>b(767190)))},840309,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_01qnv-a._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_18pinup._.js"].map(b=>a.l(b))).then(()=>b(464445)))},835410,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0ndvxub._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_18pinup._.js"].map(b=>a.l(b))).then(()=>b(617803)))},728413,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1hd-5tv._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_diagram-VX7I27RA_mjs_0dl8gzm._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_13hksv_._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(217755)))},992149,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0kxz4gt._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_18pinup._.js"].map(b=>a.l(b))).then(()=>b(752425)))},70220,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0kl7-tn._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SVP7TREG_mjs_03r5m21._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0lct0v1._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(137554)))},595386,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0il0v7d._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_erDiagram-RLTQ6QDP_mjs_18g60i7._.js"].map(b=>a.l(b))).then(()=>b(239909)))},707604,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0ql0igl._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SHT3W25Y_mjs_00p5j42._.js"].map(b=>a.l(b))).then(()=>b(1258)))},598518,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1831lye._.js","server/chunks/ssr/node_modules_1_d0q_7._.js"].map(b=>a.l(b))).then(()=>b(722966)))},126571,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0m93zeg._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0dlpxwr._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_gitGraphDiagram-WWUBYQGX_mjs_0g15hiw._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(349834)))},814636,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1q0p85z._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1ok0411._.js"].map(b=>a.l(b))).then(()=>b(525902)))},147136,a=>{a.v(b=>Promise.all(["server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_ishikawaDiagram-5VMMS53U_mjs_05o2e4d._.js"].map(b=>a.l(b))).then(()=>b(206340)))},719552,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_201yvda._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_journeyDiagram-3NMN7TZE_mjs_16ehrbl._.js"].map(b=>a.l(b))).then(()=>b(450754)))},653408,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-5VM5RSS4_mjs_0tg6kya._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_kanban-definition-UXKFOSKX_mjs_1uiqd5g._.js"].map(b=>a.l(b))).then(()=>b(301315)))},165250,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1turj0n._.js","server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_mindmap-definition-YA3MSWOX_mjs_19k8byt._.js"].map(b=>a.l(b))).then(()=>b(790158)))},325455,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_1dwguw_._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SVP7TREG_mjs_03r5m21._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0lct0v1._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(595628)))},934650,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_13w_wy9._.js","server/chunks/ssr/node_modules_1rg7lj4._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_1sgfrma._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(748116)))},389088,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_111pp7w._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_quadrantDiagram-AXDQQJYC_mjs_0h4a9wq._.js"].map(b=>a.l(b))).then(()=>b(888630)))},523431,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0_n241r._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SVP7TREG_mjs_03r5m21._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0lct0v1._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(846881)))},458290,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1turj0n._.js","server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_requirementDiagram-BXWQKSXE_mjs_0kwiv6n._.js"].map(b=>a.l(b))).then(()=>b(443250)))},215730,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_d3-scale_src_1tr1qwb._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_sankeyDiagram-P5KCCOFB_mjs_187yyta._.js"].map(b=>a.l(b))).then(()=>b(656950)))},295724,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1o1kg4c._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_sequenceDiagram-WJ2MYXX4_mjs_1n01m3a._.js"].map(b=>a.l(b))).then(()=>b(571979)))},482052,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_sizeCapture-INFHLROL_mjs_179zv_p._.js"].map(b=>a.l(b))).then(()=>b(865684)))},438231,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1rxlz7e._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_stateDiagram-D77RDMKH_mjs_1mer5fv._.js","server/chunks/ssr/node_modules_dagre-d3-es_src_dagre_index_0g66msq.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-IMKFNOWR_mjs_0vdq1-l._.js"].map(b=>a.l(b))).then(()=>b(168538)))},991687,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_0jkhu0x._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-IMKFNOWR_mjs_0vdq1-l._.js"].map(b=>a.l(b))).then(()=>b(472309)))},860094,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_swimlanes-42K2YHIH_mjs_0scuk32._.js"].map(b=>a.l(b))).then(()=>b(827033)))},819980,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_04f6p6a._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-SHT3W25Y_mjs_00p5j42._.js"].map(b=>a.l(b))).then(()=>b(1471)))},623969,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_d3-shape_src_arc_1-w13bo.js","server/chunks/ssr/1daa_mermaid_dist_chunks_mermaid_core_timeline-definition-24CTP7MA_mjs_10dmaxt._.js"].map(b=>a.l(b))).then(()=>b(301394)))},788557,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_vennDiagram-4TSXK5OY_mjs_0anqu7y._.js"].map(b=>a.l(b))).then(()=>b(509170)))},925161,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_18_dk7_._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_wardleyDiagram-VM6X3IG4_mjs_0kh3fjb._.js","server/chunks/ssr/node_modules_@mermaid-js_parser_dist_17wxxyr._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(914844)))},506751,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_0xht9wg._.js","server/chunks/ssr/1q96_modules_mermaid_dist_chunks_mermaid_core_xychartDiagram-S5SC5T6Z_mjs_08t5e44._.js"].map(b=>a.l(b))).then(()=>b(176947)))},236914,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_streamdown_dist_highlighted-body-KPVGNVTW_1fnf894.js"].map(b=>a.l(b))).then(()=>b(391282)))},172487,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_streamdown_dist_mermaid-HWGCJPDP_093xi20.js"].map(b=>a.l(b))).then(()=>b(853409)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=_03webdr._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[704974,a=>{"use strict";var b=a.i(187924),c=a.i(497895);a.s(["Swatch",0,function({color:a,picked:d,onPick:e}){return(0,b.jsx)("button",{type:"button",onClick:e,"aria-label":a??"Follow the theme",style:a?{backgroundColor:a}:void 0,className:(0,c.cn)("size-5 rounded-full outline-none transition-transform hover:scale-110 focus-visible:ring-3 focus-visible:ring-ring/50",!a&&"bg-foreground",d&&"ring-2 ring-foreground/40 ring-offset-2 ring-offset-background")})}])},30681,a=>{"use strict";var b=a.i(572131),c=a.i(497895);a.s(["useObjectState",0,a=>{let[d,e]=(0,b.useState)(a);return[d,(0,b.useMemo)(()=>{let a=a=>{e(b=>{let d=(0,c.isFunction)(a)?a(b):a;return Object.keys(d).some(a=>!Object.is(b[a],d[a]))?{...b,...d}:b})},b=new Map;return new Proxy(a,{get(d,e,f){if("symbol"==typeof e)return Reflect.get(d,e,f);let g=b.get(e);return g||(g=b=>{a(a=>({[e]:(0,c.isFunction)(b)?b(a[e]):b}))},b.set(e,g)),g}})},[])]}])},951675,a=>{"use strict";var b=a.i(164831);let c={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"]};c.node;let d=(0,b.default)(c);a.s(["Trash2",0,d],951675)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=_09-0k3z._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[588237,a=>{"use strict";var b=a.i(187924),c=a.i(497895);a.s(["Table",0,function({className:a,...d}){return(0,b.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,b.jsx)("table",{"data-slot":"table",className:(0,c.cn)("w-full caption-bottom text-sm",a),...d})})},"TableBody",0,function({className:a,...d}){return(0,b.jsx)("tbody",{"data-slot":"table-body",className:(0,c.cn)("[&_tr:last-child]:border-0",a),...d})},"TableCell",0,function({className:a,...d}){return(0,b.jsx)("td",{"data-slot":"table-cell",className:(0,c.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0",a),...d})},"TableHead",0,function({className:a,...d}){return(0,b.jsx)("th",{"data-slot":"table-head",className:(0,c.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",a),...d})},"TableHeader",0,function({className:a,...d}){return(0,b.jsx)("thead",{"data-slot":"table-header",className:(0,c.cn)("[&_tr]:border-b",a),...d})},"TableRow",0,function({className:a,...d}){return(0,b.jsx)("tr",{"data-slot":"table-row",className:(0,c.cn)("border-b border-border/60 transition-colors data-[state=selected]:bg-muted hover:bg-muted/40",a),...d})}])},369768,a=>a.a(async(b,c)=>{try{var d=a.i(187924),e=a.i(572131),f=a.i(767561),g=a.i(340695),h=a.i(965733),i=a.i(846991),j=a.i(950463),k=a.i(588237),l=a.i(287702),m=a.i(559553),n=a.i(664510),o=a.i(313237),p=a.i(497895),q=b([i]);[i]=q.then?(await q)():q;let A=new Set(["frame","image","audio","video"]);function r(a){let b=(0,m.workspaceRelative)(a);if(!b)return{how:"os"};let c=(0,m.viewKindOf)(b);return A.has(c)?{how:"tab",path:b,href:f.queryKey.fileView(b)}:"none"===c?{how:"os"}:{how:"dialog",path:b}}let B=(0,e.createContext)(null),C={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"}};function s({kind:a,content:b,truncated:c,where:e="dialog"}){return(0,d.jsxs)(d.Fragment,{children:[null!=c&&(0,d.jsx)(t,{of:c}),(0,d.jsx)(u,{kind:a,content:b,where:e})]})}function t({of:a}){return(0,d.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,p.formatBytes)(l.WORKSPACE_VIEW.textMax)} of ${(0,p.formatBytes)(a)}. `,"Open the file itself for the rest."]})}function u({kind:a,content:b,where:c}){let e=C[c];switch(a){case"markdown":return(0,d.jsx)("div",{className:(0,p.cn)("min-w-0 text-sm leading-relaxed",e.prose),children:(0,d.jsx)(i.Markdown,{children:b})});case"csv":return(0,d.jsx)(z,{content:b,className:e.block});case"json":return(0,d.jsx)(y,{text:function(a){try{return JSON.stringify(JSON.parse(a),null,2)}catch{return a}}(b),className:e.block});default:return(0,d.jsx)(y,{text:b,className:e.block})}}function v(a){let[b,c]=(0,e.useState)(null),[d,g]=(0,e.useState)(null),[h,i]=(0,e.useState)(null);return(0,e.useEffect)(()=>{if(!a)return;c(null),g(null),i(null);let b=!1;return fetch(f.queryKey.file(a),{headers:{range:`bytes=0-${l.WORKSPACE_VIEW.textMax-1}`}}).then(async a=>{if(!a.ok)throw Error(await a.text());return{text:await a.text(),of:function(a){let b=a.headers.get("content-range")?.match(/^bytes \d+-(\d+)\/(\d+)$/);if(!b)return null;let[,c,d]=b.map(Number);return c+1<d?d:null}(a)}}).then(({text:a,of:d})=>{if(b)return;let e=null===d?a:a.slice(0,a.lastIndexOf("\n")+1||void 0);c(e),i(d)}).catch(a=>!b&&g((0,p.errorToString)(a))),()=>{b=!0}},[a]),{content:b,failure:d,truncated:h}}function w({path:a,bytes:b}){let[c,e]=(0,o.useServerAction)(n.openFileAction);return(0,d.jsxs)("div",{className:"space-y-4 p-8",children:[(0,d.jsxs)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:[`This file is ${(0,p.formatBytes)(b)} — too big to draw here without `,"taking the window with it. Open it where it is instead."]}),(0,d.jsx)(g.Button,{variant:"outline",loading:e,onClick:()=>c(a),children:"Reveal in the file manager"})]})}function x({path:a,kind:b,onClose:c}){let{content:e,failure:f,truncated:g}=v(a),i=a?.split("/").pop()??"";return(0,d.jsx)(h.Dialog,{open:null!==a,onOpenChange:a=>!a&&c(),children:(0,d.jsxs)(h.DialogContent,{className:"flex max-h-[calc(100vh-3rem)] flex-col gap-0 overflow-hidden p-0 sm:max-w-4xl",children:[(0,d.jsx)(h.DialogTitle,{className:"sr-only",children:i}),(0,d.jsx)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border/60 px-4 py-2.5 pr-12",children:(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[12px]",children:a})}),(0,d.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:f?(0,d.jsx)("p",{className:"p-5 font-mono text-xs text-destructive",children:f}):null===e?(0,d.jsxs)("div",{className:"space-y-3 p-5",children:[(0,d.jsx)(j.Skeleton,{className:"h-5 w-2/3"}),(0,d.jsx)(j.Skeleton,{className:"h-4 w-full"}),(0,d.jsx)(j.Skeleton,{className:"h-4 w-5/6"})]}):(0,d.jsx)(s,{kind:b,content:e,truncated:g})})]})})}function y({text:a,className:b}){return(0,d.jsx)("pre",{className:(0,p.cn)("overflow-x-auto font-mono text-[12px] leading-relaxed whitespace-pre-wrap text-foreground/90",b),children:a})}function z({content:a,className:b}){let[c,...f]=(0,e.useMemo)(()=>(function(a){let b=[],c=[],d="",e=!1;for(let f=0;f<a.length;f++){let g=a[f];e?'"'===g&&'"'===a[f+1]?(d+='"',f++):'"'===g?e=!1:d+=g:'"'===g?e=!0:","===g?(c.push(d),d=""):"\n"===g||"\r"===g?("\r"===g&&"\n"===a[f+1]&&f++,c.push(d),b.push(c),c=[],d=""):d+=g}return(d.length||c.length)&&(c.push(d),b.push(c)),b.filter(a=>a.some(a=>a.trim()))})(a),[a]);return c?(0,d.jsx)("div",{className:(0,p.cn)("overflow-x-auto",b),children:(0,d.jsxs)(k.Table,{children:[(0,d.jsx)(k.TableHeader,{children:(0,d.jsx)(k.TableRow,{children:c.map((a,b)=>(0,d.jsx)(k.TableHead,{className:"whitespace-nowrap",children:a},`${b}-${a}`))})}),(0,d.jsx)(k.TableBody,{children:f.map((a,b)=>(0,d.jsx)(k.TableRow,{children:c.map((c,e)=>(0,d.jsx)(k.TableCell,{className:"whitespace-nowrap",children:a[e]??""},`${b}-${e}`))},`${b}-${a[0]??""}`))})]})}):(0,d.jsx)(y,{text:a,className:b})}a.s(["FileBody",0,s,"FileDialog",0,x,"FileLink",0,function({path:a,className:b,title:c,label:g,children:h}){let i=r(a),j=(0,e.useContext)(B),[k,l]=(0,o.useServerAction)(n.openFileAction);return"tab"===i.how?(0,d.jsx)("a",{href:i.href,target:"_blank",rel:"noreferrer",title:c??a,"aria-label":g,className:b,children:h}):(0,d.jsx)("button",{type:"button",disabled:l,title:c??a,"aria-label":g,className:b,onClick:()=>{"dialog"===i.how?j?j(i.path):window.open(f.queryKey.fileView(i.path),"_blank"):k(a)},children:h})},"FilePreview",0,function({path:a,bytes:b}){let c=(0,m.viewKindOf)(a),{content:e,failure:g,truncated:h}=v(A.has(c)?null:a);return("frame"===c||"image"===c)&&b>l.WORKSPACE_VIEW.elementMax?(0,d.jsx)(w,{path:a,bytes:b}):"frame"===c?(0,d.jsx)("iframe",{title:a,src:f.queryKey.file(a),allow:"clipboard-read; clipboard-write; fullscreen; autoplay",className:"h-full w-full bg-white"}):"image"===c?(0,d.jsx)("img",{src:f.queryKey.file(a),alt:a,className:"mx-auto max-w-full p-6"}):"audio"===c||"video"===c?"audio"===c?(0,d.jsx)("audio",{controls:!0,src:f.queryKey.file(a),className:"w-full p-6",children:(0,d.jsx)("track",{kind:"captions"})}):(0,d.jsx)("video",{controls:!0,src:f.queryKey.file(a),className:"max-w-full p-6",children:(0,d.jsx)("track",{kind:"captions"})}):g?(0,d.jsx)("p",{className:"p-5 font-mono text-xs text-destructive",children:g}):null===e?(0,d.jsxs)("div",{className:"space-y-3 p-5",children:[(0,d.jsx)(j.Skeleton,{className:"h-5 w-2/3"}),(0,d.jsx)(j.Skeleton,{className:"h-4 w-full"}),(0,d.jsx)(j.Skeleton,{className:"h-4 w-5/6"})]}):(0,d.jsx)(s,{kind:c,content:e,truncated:h})},"FileViewer",0,function({children:a}){let[b,c]=(0,e.useState)(null);return(0,d.jsxs)(B,{value:c,children:[a,(0,d.jsx)(x,{path:b,kind:b?(0,m.viewKindOf)(b):"text",onClose:()=>c(null)})]})},"fileTarget",0,r,"useFileText",0,v,"useOpenFile",0,function(){let a=(0,e.useContext)(B);return(0,e.useCallback)(b=>{let c=r(b);if("os"===c.how)return!1;if("dialog"===c.how&&a)return a(c.path),!0;let d="tab"===c.how?c.href:f.queryKey.fileView(c.path);return null!==window.open(d,"_blank")},[a])}]),c()}catch(a){c(a)}},!1),664510,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7fe8b3afbc975a1ad4e4d7f319af758baa5a9d2c2c",b.callServer,void 0,b.findSourceMapURL,"openFileAction");a.s(["openFileAction",0,c])},559553,a=>{"use strict";var b=a.i(287702);let c=a=>`text/${a}; charset=utf-8`,d={md:{kind:"markdown",mime:c("markdown")},markdown:{kind:"markdown",mime:c("markdown")},csv:{kind:"csv",mime:c("csv")},json:{kind:"json",mime:"application/json; charset=utf-8"},txt:{kind:"text",mime:c("plain")},log:{kind:"text",mime:c("plain")},html:{kind:"frame",mime:c("html")},htm:{kind:"frame",mime:c("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:c("css")},js:{kind:"none",mime:c("javascript")},woff2:{kind:"none",mime:"font/woff2"}},e=Object.entries(d).filter(([,a])=>"none"!==a.kind).map(([a])=>a),f=RegExp(String.raw`(?<![\p{L}\p{N}_/:@%-])(?:[\p{L}\p{N}_.@%-]+/)*[\p{L}\p{N}_@%-]+(?:\.[\p{L}\p{N}_-]+)*\.(?:${e.join("|")})\b`,"giu"),g=`${b.PATHS.workspace}/`;function h(a){let b=a.trim(),c=b.indexOf(g);return c>=0?b.slice(c+g.length)||null:b.startsWith("/")||/^[A-Za-z]:/.test(b)||b.split("/").includes("..")?null:b||null}a.s(["pathsIn",0,function(a){let b=a.replace(/\b[a-z][\w+.-]*:\/\/\S+/gi," "),c=new Set;for(let a of b.match(f)??[]){let b=function(a){let b=h(a);if(!b)return null;let[c,...d]=b.split("/");return d.length&&c.includes(".")?null:b}(a);b&&c.add(b)}return[...c].slice(0,6)},"viewKindOf",0,a=>d[a.split(".").pop()?.toLowerCase()??""]?.kind??"none","workspaceRelative",0,h])}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=_0f_b_9s._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[704974,a=>{"use strict";var b=a.i(187924),c=a.i(497895);a.s(["Swatch",0,function({color:a,picked:d,onPick:e}){return(0,b.jsx)("button",{type:"button",onClick:e,"aria-label":a??"Follow the theme",style:a?{backgroundColor:a}:void 0,className:(0,c.cn)("size-5 rounded-full outline-none transition-transform hover:scale-110 focus-visible:ring-3 focus-visible:ring-ring/50",!a&&"bg-foreground",d&&"ring-2 ring-foreground/40 ring-offset-2 ring-offset-background")})}])},888396,a=>{"use strict";var b=a.i(572131);a.s(["useDraft",0,function(a,c,{min:d=1}={}){let[e,f]=(0,b.useState)(a),[g,h]=(0,b.useState)(a);return a!==g&&(h(a),f(a)),{value:e,set:f,commit:()=>{let b=e.trim();if(b.length<d)return f(a);f(b),b!==a&&c(b)},onKeyDown:a=>{"Enter"!==a.key||a.nativeEvent.isComposing||a.currentTarget.blur()}}}])},862966,a=>{"use strict";var b=a.i(572131),c=a.i(988712),d=a.i(426618),e=a.i(664565),f=a.i(487610),g=a.i(561311);let h=Promise.resolve(),i=(0,e.withMiddleware)(c.u,a=>(c,e,i)=>{let j,k=(0,b.useRef)(!1),{cache:l,initialSize:m=1,revalidateAll:n=!1,persistSize:o=!1,revalidateFirstPage:p=!0,revalidateOnMount:q=!1,parallel:r=!1}=i,[,,,s]=d.a.get(d.o);try{(j=(0,d.s)(c?c(0,null):null)[0])&&(j=g.INFINITE_PREFIX+j)}catch(a){}let[t,u,v]=(0,d.c)(l,j),w=(0,b.useCallback)(()=>(0,d.i)(t()._l)?m:t()._l,[l,j,m]);(0,f.useSyncExternalStore)((0,b.useCallback)(a=>j?v(j,()=>{a()}):()=>{},[l,j]),w,w);let x=(0,b.useCallback)(()=>{let a=t()._l;return(0,d.i)(a)?m:a},[j,m]),y=(0,b.useRef)(x());(0,d.u)(()=>{if(!k.current){k.current=!0;return}j&&u({_l:o?y.current:x()})},[j,l]);let z=q&&!k.current,A=a(j,async a=>{let b=t()._i,f=t()._r,g=d.a.get(l),h=g[8],j=()=>g[8]!==h;u({_r:d.U});let k=[],m=x(),[o]=(0,d.c)(l,a),q=o().data,v=[],w=null;for(let a=0;a<m;++a){let[g,h]=(0,d.s)(c(a,r?null:w));if(!g)break;let[m,o]=(0,d.c)(l,g),t=m().data,u=n||b||(0,d.i)(t)||p&&!a&&!(0,d.i)(q)||z||q&&!(0,d.i)(q[a])&&!i.compare(q[a],t);if(e&&("function"==typeof f?f(t,h):u)){let b=async()=>{if(g in s){let a=s[g];delete s[g],t=await a}else t=await e(h);j()||o({data:t,_k:h}),k[a]=t};r?v.push(b):await b()}else k[a]=t;r||(w=t)}return r&&await Promise.all(v.map(a=>a())),j()||u({_i:d.U}),k},i),B=(0,b.useCallback)(function(a,b){let c="boolean"==typeof b?{revalidate:b}:b||{},e=!1!==c.revalidate;return j?(e&&((0,d.i)(a)?u({_i:!0,_r:c.revalidate}):u({_i:!1,_r:c.revalidate})),arguments.length?A.mutate(a,{...c,revalidate:e}):A.mutate()):h},[j,l]),C=(0,b.useCallback)(a=>{let b;if(!j)return h;let[,e]=(0,d.c)(l,j);if((0,d.e)(a)?b=a(x()):"number"==typeof a&&(b=a),"number"!=typeof b)return h;e({_l:b}),y.current=b;let f=[],[g]=(0,d.c)(l,j),i=null;for(let a=0;a<b;++a){let[b]=(0,d.s)(c(a,i)),[e]=(0,d.c)(l,b),h=b?e().data:d.U;if((0,d.i)(h))return B(g().data);f.push(h),i=h}return B(f)},[j,l,B,x]);return{size:x(),setSize:C,mutate:B,get data(){return A.data},get error(){return A.error},get isValidating(){return A.isValidating},get isLoading(){return A.isLoading}}});var j=a.i(287702),k=a.i(759497);a.s(["useServerPages",0,function(a){let c=a.size??j.PAGE_SIZE,{key:d}=a,{data:e,error:f,isLoading:g,isValidating:h,setSize:l,mutate:m}=i((a,b)=>(0,k.resolveKey)(d(a,b)),k.fetchRoute,{dedupingInterval:500,revalidateOnMount:!0,revalidateOnFocus:!0,revalidateOnReconnect:!0,focusThrottleInterval:1e3,revalidateFirstPage:!1,...a.swr}),n=e??[],o=n.flat(),p=n.at(-1),q=void 0!==p&&p.length>=c,r=(0,b.useRef)(0),s=h&&n.length>0&&r.current>n.length,t=(0,b.useRef)({isValidating:h,setSize:l,pages:n.length});t.current={isValidating:h,setSize:l,pages:n.length};let u=(0,k.resolveKey)(d(0,null)),v="string"==typeof u?u:u?.url;(0,b.useEffect)(()=>{if(v)return(0,k.registerPagedReader)({url:v,refresh:()=>m()})},[v,m]);let w=function(a,c={}){let{enabled:d=!0,margin:e="600px",revision:f}=c,g=(0,b.useRef)(a);g.current=a;let h=(0,b.useRef)(null),i=(0,b.useRef)(null),j=(0,b.useCallback)(a=>{h.current=a},[]);return(0,b.useEffect)(()=>{i.current?.disconnect();let a=h.current;if(a&&d)return i.current=new IntersectionObserver(([a])=>{a.isIntersecting&&g.current()},{root:function(a){let b=a.parentElement;for(;b;){let{overflowY:a}=getComputedStyle(b);if(("auto"===a||"scroll"===a)&&b.scrollHeight>b.clientHeight)return b;b=b.parentElement}return null}(a),rootMargin:e}),i.current.observe(a),()=>i.current?.disconnect()},[d,e,f]),j}(()=>{let a=t.current;a.isValidating||(r.current=a.pages+1,a.setSize(a.pages+1))},{enabled:q,revision:`${n.length}:${h}`});return{items:o,isLoading:g,isLoadingMore:s,error:f,hasMore:q,sentinelRef:w,refresh:()=>m()}}],862966)},951675,a=>{"use strict";var b=a.i(164831);let c={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"]};c.node;let d=(0,b.default)(c);a.s(["Trash2",0,d],951675)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=_0fafgvl._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[701876,a=>{"use strict";var b=a.i(451208);a.s([],489277),a.i(489277),a.s(["7fe8b3afbc975a1ad4e4d7f319af758baa5a9d2c2c",()=>b.openFileAction],701876)},832030,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]_node_readline_1u65a-m._.js","server/chunks/ssr/node_modules_consola_dist_chunks_prompt_mjs_1j4x-_j._.js"].map(b=>a.l(b))).then(()=>b(322479)))}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=_0sf1isi._.js.map
|