thursday-agent 0.4.0 → 0.6.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 +3 -2
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/required-server-files.json +8 -1
- package/.next/routes-manifest.json +18 -6
- package/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- 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 +13 -13
- package/.next/server/app/_not-found.segments/_full.segment.rsc +13 -13
- 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 +10 -6
- package/.next/server/app/api/artifact/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/files/route.js +6 -5
- package/.next/server/app/api/bot/memory/files/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/route.js +8 -8
- package/.next/server/app/api/bot/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/route.js +8 -8
- package/.next/server/app/api/bot/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/[id]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/bot/thread/[id]/route.js +15 -0
- package/.next/server/app/api/bot/thread/[id]/route.js.nft.json +1 -0
- package/.next/server/app/api/bot/thread/[id]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/bot/thread/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/bot/thread/route.js +15 -0
- package/.next/server/app/api/bot/thread/route.js.nft.json +1 -0
- package/.next/server/app/api/bot/thread/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/config/route.js +7 -7
- package/.next/server/app/api/config/route.js.nft.json +1 -1
- package/.next/server/app/api/events/route.js +3 -3
- package/.next/server/app/api/events/route.js.nft.json +1 -1
- package/.next/server/app/api/file/[...path]/route.js +5 -5
- package/.next/server/app/api/file/[...path]/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/catalog/route.js +8 -8
- package/.next/server/app/api/llm-model/catalog/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/credits/route.js +8 -8
- package/.next/server/app/api/llm-model/credits/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/route.js +8 -8
- package/.next/server/app/api/llm-model/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/subscription/route.js +8 -8
- package/.next/server/app/api/llm-model/subscription/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/[name]/route.js +6 -6
- package/.next/server/app/api/mcp/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/oauth/callback/route.js +4 -4
- package/.next/server/app/api/mcp/oauth/callback/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/route.js +6 -6
- package/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/tools/route.js +6 -6
- package/.next/server/app/api/mcp/tools/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/edit/route.js +13 -13
- package/.next/server/app/api/memory/edit/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/route.js +7 -6
- package/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/[source]/[name]/route.js +6 -6
- package/.next/server/app/api/skills/[source]/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/route.js +6 -6
- package/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/route.js +10 -11
- package/.next/server/app/api/thursday/call/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/skills/route.js +10 -11
- package/.next/server/app/api/thursday/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/tool-call/route.js +15 -15
- package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/missing/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/workspace/missing/route/build-manifest.json +12 -0
- package/.next/server/app/api/workspace/missing/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/workspace/missing/route.js +12 -0
- package/.next/server/app/api/workspace/missing/route.js.map +5 -0
- package/.next/server/app/api/workspace/missing/route.js.nft.json +1 -0
- package/.next/server/app/api/workspace/missing/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/workspace/route.js +5 -4
- 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 +4 -3
- 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.nft.json +1 -1
- package/.next/server/app/page/server-reference-manifest.json +67 -45
- package/.next/server/app/page.js +10 -9
- 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 +3 -2
- package/.next/server/chunks/[root-of-the-server]__02846fb._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__049f521._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__05luceg._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__06--3q3._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__07bnah_._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__08eae20._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__0_ue8oe._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0c9fgca._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__0g-ueei._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__0h_x6q6._.js +5 -0
- package/.next/server/chunks/{[root-of-the-server]__0pa2n68._.js → [root-of-the-server]__0kxrvxf._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0q0vvt2._.js → [root-of-the-server]__0ov3iir._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0qwtlmx._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__0sm5xvm._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0ye3da2._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0zp35ul._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__144u9d_._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__18-2tsq._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__1e-ci13._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1e2365e._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__1fix932._.js +8 -0
- package/.next/server/chunks/{[root-of-the-server]__0ce8nf8._.js → [root-of-the-server]__1g3t7vn._.js} +3 -3
- package/.next/server/chunks/[root-of-the-server]__1kp-83u._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__1kv8p3e._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__1orn-5b._.js +2 -3
- package/.next/server/chunks/_02szwk8._.js +5 -0
- package/.next/server/chunks/_05h2cii._.js +1 -1
- package/.next/server/chunks/_06c9kie._.js +216 -0
- package/.next/server/chunks/{_1x6kd1r._.js → _07y2gj-._.js} +1 -1
- package/.next/server/chunks/_0a43a-0._.js +3 -0
- package/.next/server/chunks/_0bujjey._.js +5 -0
- package/.next/server/chunks/_0c9j6rb._.js +1 -1
- package/.next/server/chunks/_0dkd549._.js +3 -0
- package/.next/server/chunks/_0ej1kvv._.js +3 -0
- package/.next/server/chunks/_0f6ts7z._.js +3 -0
- package/.next/server/chunks/_0gm9hyv._.js +55 -0
- package/.next/server/chunks/_0i55en5._.js +25 -0
- package/.next/server/chunks/_0k50n27._.js +18 -0
- package/.next/server/chunks/_0khihjk._.js +3 -3
- package/.next/server/chunks/_0n74zsf._.js +5 -5
- package/.next/server/chunks/_0nvm9ef._.js +3 -0
- package/.next/server/chunks/_0p56fn0._.js +3 -0
- package/.next/server/chunks/_0recufk._.js +1 -1
- package/.next/server/chunks/_0xbkz10._.js +3 -0
- package/.next/server/chunks/_10tkr26._.js +3 -0
- package/.next/server/chunks/{_0ioz3nd._.js → _11u2kp7._.js} +1 -1
- package/.next/server/chunks/_11ujpya._.js +3 -0
- package/.next/server/chunks/_127nx_p._.js +5 -0
- package/.next/server/chunks/_17l5ygt._.js +1 -1
- package/.next/server/chunks/_19uauj6._.js +3 -0
- package/.next/server/chunks/_1_5mnq4._.js +5 -5
- package/.next/server/chunks/_1abl6t9._.js +55 -0
- package/.next/server/chunks/_1d0j961._.js +3 -3
- package/.next/server/chunks/_1dbixxz._.js +3 -0
- package/.next/server/chunks/_1dc_d1q._.js +98 -0
- package/.next/server/chunks/_1drgfx4._.js +5 -5
- package/.next/server/chunks/_1e48czp._.js +3 -3
- package/.next/server/chunks/_1f31u5x._.js +5 -0
- package/.next/server/chunks/_1kg70wc._.js +3 -3
- package/.next/server/chunks/_1klbcft._.js +5 -0
- package/.next/server/chunks/_1krd9rf._.js +4 -1
- package/.next/server/chunks/_1kwmzab._.js +3 -0
- package/.next/server/chunks/{_1pf4qe-._.js → _1oxj9fa._.js} +1 -1
- package/.next/server/chunks/{_1f46eie._.js → _1pcmdbb._.js} +1 -1
- package/.next/server/chunks/_1qgix-j._.js +3 -0
- package/.next/server/chunks/{lib_logger_ts_1exwjut._.js → _1rpchta._.js} +5 -5
- package/.next/server/chunks/_1vsej-s._.js +5 -0
- package/.next/server/chunks/_1yx0p_s._.js +5 -0
- package/.next/server/chunks/{_0rnf-6n._.js → _20fsr_z._.js} +6 -6
- package/.next/server/chunks/_2128hkj._.js +5 -0
- package/.next/server/chunks/_next-internal_server_app_api_bot_thread_[id]_route_actions_1fstjn2.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_bot_thread_route_actions_003ccso.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_workspace_missing_route_actions_1fidi6p.js +3 -0
- package/.next/server/chunks/config_ts_1g4sz5o._.js +1 -1
- package/.next/server/chunks/features_0-cnt0l._.js +4 -0
- package/.next/server/chunks/features_0hdaci0._.js +4 -0
- package/.next/server/chunks/features_1e39j7-._.js +8 -0
- package/.next/server/chunks/features_bot_bot_query_ts_12mgkl2._.js +1 -1
- package/.next/server/chunks/features_memory_1uqvksn._.js +1 -1
- package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_0r28-sm._.js → node_modules_consola_dist_chunks_prompt_mjs_0a7-pbw._.js} +1 -1
- package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_0v_7drq._.js → node_modules_consola_dist_chunks_prompt_mjs_0gzvgfv._.js} +1 -1
- package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_0i7cvml._.js → node_modules_consola_dist_chunks_prompt_mjs_107pxfn._.js} +1 -1
- package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_0icqaqw._.js → node_modules_consola_dist_chunks_prompt_mjs_15hbel8._.js} +1 -1
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_18i-23e._.js +3 -0
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1bewgf3._.js +3 -0
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1kipdeo._.js +3 -0
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1nlww1m._.js +3 -0
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1q77nfx._.js +3 -0
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1xqdzx_._.js +3 -0
- package/.next/server/chunks/{node_modules_zod_v4_1801ax7._.js → node_modules_zod_v4_0lkux5-._.js} +2 -2
- package/.next/server/chunks/{node_modules_zod_v4_1cha_bw._.js → node_modules_zod_v4_1jmr9cq._.js} +2 -2
- package/.next/server/chunks/{node_modules_zod_v4_0ubdflj._.js → node_modules_zod_v4_1yrxmek._.js} +2 -2
- package/.next/server/chunks/node_modules_zod_v4_classic_errors_0tp0y-q.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]__0bxsfyn._.js +101 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0lyi8i2._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__16jc196._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__172cq4x._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__18dthbp._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__18e68w8._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1fll8dc._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1mzi-ju._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1nygfik._.js +5 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1sdphb0._.js +8 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1waa3rc._.js +100 -0
- package/.next/server/chunks/ssr/_00rehl_._.js +3 -0
- package/.next/server/chunks/ssr/{_1lz_cq2._.js → _02oc_h5._.js} +76 -89
- package/.next/server/chunks/ssr/_03_928f._.js +3 -0
- package/.next/server/chunks/ssr/_05yghx6._.js +3 -0
- package/.next/server/chunks/ssr/_08c4z-9._.js +3 -0
- package/.next/server/chunks/ssr/_0_qfdlw._.js +4 -0
- package/.next/server/chunks/ssr/_0c9e5w6._.js +9 -0
- package/.next/server/chunks/ssr/{_0s99bgb._.js → _0dh2e1j._.js} +9 -3
- package/.next/server/chunks/ssr/_0dr-ddg._.js +3 -0
- package/.next/server/chunks/ssr/_0eaog6_._.js +3 -0
- package/.next/server/chunks/ssr/_0evkpto._.js +3 -0
- package/.next/server/chunks/ssr/_0g_rlog._.js +3 -0
- package/.next/server/chunks/ssr/_0geg212._.js +3 -0
- package/.next/server/chunks/ssr/{_1gd8q8l._.js → _0hxt2ul._.js} +2 -2
- package/.next/server/chunks/ssr/_0i_6q1w._.js +2 -2
- package/.next/server/chunks/ssr/_0lu1n_x._.js +1 -1
- package/.next/server/chunks/ssr/{_15j2_8f._.js → _0wzaht-._.js} +2 -2
- package/.next/server/chunks/ssr/_0z-g0uy._.js +3 -0
- package/.next/server/chunks/ssr/_123ttsf._.js +3 -0
- package/.next/server/chunks/ssr/_123y-ah._.js +3 -0
- package/.next/server/chunks/ssr/_12w42gi._.js +3 -0
- package/.next/server/chunks/ssr/_161kqav._.js +3 -0
- package/.next/server/chunks/ssr/{_0ap2fzn._.js → _16c6_xm._.js} +2 -2
- package/.next/server/chunks/ssr/_18opah7._.js +3 -0
- package/.next/server/chunks/ssr/_18xqmny._.js +3 -0
- package/.next/server/chunks/ssr/_1_krfph._.js +3 -0
- package/.next/server/chunks/ssr/{_1-_etts._.js → _1anqots._.js} +2 -2
- package/.next/server/chunks/ssr/_1ey7qn-._.js +70 -0
- package/.next/server/chunks/ssr/_1g9vs7q._.js +3 -0
- package/.next/server/chunks/ssr/_1jmz33w._.js +3 -0
- package/.next/server/chunks/ssr/{_0n3toaw._.js → _1k0spz7._.js} +2 -2
- package/.next/server/chunks/ssr/_1rgtxhr._.js +5 -0
- package/.next/server/chunks/ssr/_1slp25y._.js +3 -0
- package/.next/server/chunks/ssr/{_1fojd41._.js → _1x9pskj._.js} +3 -3
- package/.next/server/chunks/ssr/_1y6b5mr._.js +101 -0
- package/.next/server/chunks/ssr/_1ztk7p6._.js +7 -0
- package/.next/server/chunks/ssr/components_ui_tabs_tsx_0ej40b4._.js +3 -0
- package/.next/server/chunks/ssr/features_bot_thread_query_ts_023eklt._.js +4 -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/{_1-teee5._.js → lib_logger_ts_0-olsze._.js} +2 -7
- package/.next/server/chunks/ssr/{node_modules_0cxaxk9._.js → node_modules_00_51_v._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_04jf_m8._.js → node_modules_022sipm._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0g7fzk3._.js → node_modules_0332gw4._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1cx_ql6._.js → node_modules_04vxchl._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1vh5ntv._.js → node_modules_0746rzi._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0yugy6m._.js → node_modules_0d5uzof._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_09q35v_._.js → node_modules_0exkwcm._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_08dhkiq._.js → node_modules_0fr-ml8._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_14q6g4n._.js → node_modules_0mxvg8h._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0arus10._.js → node_modules_0qapgjr._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1eg7m6c._.js → node_modules_0qbfyjh._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1cz2hle._.js → node_modules_0t-9nup._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_17bwo43._.js → node_modules_0tusx4d._.js} +3 -3
- package/.next/server/chunks/ssr/{node_modules_1efrqxi._.js → node_modules_0vsxbzp._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0_-_a--._.js → node_modules_0vv0-fg._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1gdh31p._.js → node_modules_0wsvp00._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1hpopmo._.js → node_modules_1-urho9._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1_pc9kq._.js → node_modules_16pi_dd._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_00etblx._.js → node_modules_1d53yiq._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1aaxuef._.js → node_modules_1g1eihe._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_198nmll._.js → node_modules_1gpednh._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0pvd7q-._.js → node_modules_1gu1pph._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0b__sgl._.js → node_modules_1he1w8_._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1qpjvy5._.js → node_modules_1lnjapm._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0940ns5._.js → node_modules_1lynj9m._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0x3-ply._.js → node_modules_1seuurl._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_14om4ar._.js → node_modules_1u6w1pb._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0had7xd._.js → node_modules_1xn6saw._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1b748ic._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_067_exa._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1z4hm5e._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0nrrdaq._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@vercel_oidc_dist_06mk8id._.js → node_modules_@vercel_oidc_dist_21a5haa._.js} +1 -1
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_trash_mjs_0px2gzr._.js +3 -0
- 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 +68 -46
- package/.next/static/chunks/0dr16v67vj4n7.js +2 -0
- package/.next/static/chunks/0g4b348l0pve7.js +1 -0
- package/.next/static/chunks/0joan-69kbspd.js +1 -0
- package/.next/static/chunks/0vlgzqo9ka90v.js +1 -0
- package/.next/static/chunks/0zrupxgci5gqc.js +1 -0
- package/.next/static/chunks/10k2xvap03z20.css +1 -0
- package/.next/static/chunks/18mkhstgiqcbt.js +1 -0
- package/.next/static/chunks/{15m575979un5f.js → 1i-u2wzub_to1.js} +2 -2
- package/.next/static/chunks/1kp5nfp06nj9h.js +5 -0
- package/.next/static/chunks/1ohslk4568tm3.js +1 -0
- package/.next/static/chunks/1sbmwswc9k2-1.js +1 -0
- package/.next/static/chunks/1t9qms5pwwa3n.js +1 -0
- package/.next/static/chunks/1vj_5bnbxx84e.js +1 -0
- package/.next/static/chunks/1vqezbhjm3goq.js +1 -0
- package/.next/static/chunks/{3akmqm77muj4-.js → 1wlo979mx-y3w.js} +1 -1
- package/.next/static/chunks/26ql4y-43xwhp.js +1 -0
- package/.next/static/chunks/{0fl3gwe4-l6tz.js → 2_pnccjp6j1ca.js} +1 -1
- package/.next/static/chunks/2a51-ywz9b2a3.js +1 -0
- package/.next/static/chunks/2fvdgxih7x7hr.js +1 -0
- package/.next/static/chunks/2jlz8zp4jax_m.js +18 -0
- package/.next/static/chunks/2nvepds1fu2ux.js +1 -0
- package/.next/static/chunks/3addj3i4-izma.js +1 -0
- package/.next/static/chunks/3bfwpww3m3x4u.js +1 -0
- package/.next/static/chunks/3gfh7nxwusbt0.js +1 -0
- package/.next/static/chunks/3gwa44cvz4qoi.js +1 -0
- package/.next/static/chunks/{38gweqdo4jpfj.js → 3izg0a3k87q1-.js} +5 -5
- package/.next/static/chunks/3zk6q3-3f9swq.js +99 -0
- package/.next/static/chunks/3zkg5iup3v4a2.js +12 -0
- package/.next/static/chunks/405m0bqtoihev.js +1 -0
- package/.next/static/chunks/42wcg3wfg_m_p.js +1 -0
- package/README.md +27 -216
- package/app/api/events/app-event.ts +6 -4
- package/app/api/query-key.ts +25 -16
- package/bin/database.mjs +37 -0
- package/bin/thursday.mjs +44 -28
- package/components/ui/custom-icon.tsx +0 -60
- package/components/ui/radio-group.tsx +37 -0
- package/components/ui/shiny-text.tsx +33 -6
- package/database/migrations/{20260910173049_numerous_spirit → 20260916145701_clever_multiple_man}/migration.sql +80 -24
- package/database/migrations/{20260910173049_numerous_spirit → 20260916145701_clever_multiple_man}/snapshot.json +689 -110
- package/database/migrations/20260916160713_thread_cancelled/migration.sql +2 -0
- package/database/migrations/{20260911030320_opposite_jack_power → 20260916160713_thread_cancelled}/snapshot.json +706 -84
- package/docs/how-it-works.md +39 -36
- package/docs/images/keeps-going.png +0 -0
- package/docs/images/two-minds.png +0 -0
- package/docs/live-calls.md +231 -0
- package/docs/thread-rooms.md +71 -0
- package/features/ai/chatgpt.ts +1 -2
- package/features/ai/live.schema.ts +128 -0
- package/features/ai/load-tools.ts +148 -77
- package/features/ai/model.schema.ts +2 -120
- package/features/ai/model.ts +52 -88
- package/features/ai/prompts/bot.prompt.ts +91 -214
- package/features/ai/prompts/live.prompt.ts +265 -0
- package/features/ai/prompts/prompt-helper.ts +91 -32
- package/features/ai/prompts/thursday.prompt.ts +125 -172
- package/features/ai/tools/bot.tool.ts +38 -145
- package/features/ai/tools/call.tool.ts +1 -1
- package/features/ai/tools/connected.ts +5 -3
- package/features/ai/tools/mcp.tool.ts +7 -4
- package/features/ai/tools/memory.tool.ts +35 -31
- package/features/ai/tools/skills.tool.ts +36 -14
- package/features/ai/tools/studio.tool.ts +26 -21
- package/features/ai/tools/tool-name.ts +2 -5
- package/features/ai/tools/workspace.tool.ts +33 -10
- package/features/artifact/artifact.action.ts +2 -2
- package/features/artifact/artifact.query.ts +112 -61
- package/features/artifact/artifact.schema.ts +8 -6
- package/features/artifact/components/artifact-setting.tsx +83 -33
- package/features/bot/bot.action.ts +43 -36
- package/features/bot/bot.memory.ts +137 -20
- package/features/bot/bot.query.ts +28 -11
- package/features/bot/bot.run.ts +299 -636
- package/features/bot/bot.runner.ts +468 -844
- package/features/bot/bot.schema.ts +93 -82
- package/features/bot/bot.seed.ts +141 -64
- package/features/bot/components/bot-mark.tsx +324 -232
- package/features/bot/components/bot-room.tsx +1613 -697
- package/features/bot/components/bot-roster.tsx +8 -13
- package/features/bot/components/bot-setting.tsx +58 -42
- package/features/bot/components/bot-tool.tsx +55 -87
- package/features/bot/components/mark-palette.tsx +35 -32
- package/features/bot/components/path-chips.tsx +33 -3
- package/features/bot/components/thread-badge.tsx +34 -0
- package/features/bot/components/thread-reply.tsx +639 -0
- package/features/bot/components/thread-setting.tsx +674 -0
- package/features/bot/mark.const.ts +79 -31
- package/features/bot/room.query.ts +889 -0
- package/features/bot/room.schema.ts +64 -0
- package/features/bot/seed-bots.ts +2 -1
- package/features/bot/thread.query.ts +971 -0
- package/features/bot/thread.store.ts +587 -0
- package/features/config/components/voice-key.tsx +113 -88
- package/features/config/config.const.ts +5 -9
- package/features/connectors/mcp.schema.ts +0 -2
- package/features/intro/components/intro.tsx +169 -139
- package/features/memory/components/memory-setting.tsx +2 -7
- package/features/memory/memory.schema.ts +14 -23
- package/features/settings/components/setting-ui.tsx +0 -44
- package/features/settings/components/settings.tsx +12 -12
- package/features/settings/settings.alert.ts +3 -3
- package/features/settings/settings.store.ts +1 -1
- package/features/skills/skills.schema.ts +0 -2
- package/features/thursday/components/ascii-field.tsx +24 -44
- package/features/thursday/components/ascii-orb.tsx +359 -358
- package/features/thursday/components/call-log.tsx +46 -44
- package/features/thursday/components/face.tsx +35 -10
- package/features/thursday/components/tab-state.tsx +3 -3
- package/features/thursday/components/thursday-mark.tsx +1 -0
- package/features/thursday/components/thursday-setting.tsx +631 -332
- package/features/thursday/components/thursday.tsx +106 -41
- package/features/thursday/components/voice-picker.tsx +255 -0
- package/features/thursday/thursday.action.ts +94 -68
- package/features/thursday/thursday.query.ts +49 -30
- package/features/thursday/thursday.schema.ts +27 -30
- package/features/thursday/thursday.store.ts +11 -7
- package/features/thursday/tool-call.ts +3 -3
- package/features/thursday/tool-line.ts +5 -3
- package/features/thursday/use-thursday.ts +725 -450
- package/features/workspace/workspace.query.ts +17 -0
- package/features/workspace/workspace.ts +103 -50
- package/lib/live/live.schema.ts +47 -0
- package/lib/live/live.server.ts +155 -0
- package/lib/live/live.session.ts +574 -0
- package/lib/{realtime/realtime.tap.ts → live/live.tap.ts} +41 -12
- package/lib/live/live.transport.ts +152 -0
- package/lib/protocol/use-server-pages.ts +9 -5
- package/lib/utils.ts +21 -20
- package/package.json +2 -2
- package/public/voices/alloy.ogg +0 -0
- package/public/voices/ash.ogg +0 -0
- package/public/voices/ballad.ogg +0 -0
- package/public/voices/beacon.ogg +0 -0
- package/public/voices/bossa.ogg +0 -0
- package/public/voices/cedar.ogg +0 -0
- package/public/voices/cinder.ogg +0 -0
- package/public/voices/coral.ogg +0 -0
- package/public/voices/delta.ogg +0 -0
- package/public/voices/echo.ogg +0 -0
- package/public/voices/gleam.ogg +0 -0
- package/public/voices/marin.ogg +0 -0
- package/public/voices/meridian.ogg +0 -0
- package/public/voices/quartz.ogg +0 -0
- package/public/voices/ripple.ogg +0 -0
- package/public/voices/sage.ogg +0 -0
- package/public/voices/shimmer.ogg +0 -0
- package/public/voices/stone.ogg +0 -0
- package/public/voices/tempo.ogg +0 -0
- package/public/voices/verse.ogg +0 -0
- package/public/voices/vesper.ogg +0 -0
- package/public/voices/willow.ogg +0 -0
- package/scripts/artifact-paths.test.mts +25 -0
- package/scripts/bot-context.test.mts +1408 -0
- package/scripts/live-history.test.mts +115 -0
- package/scripts/live-session.test.mts +948 -0
- package/server.js +1 -1
- package/skills/browser/SKILL.md +17 -6
- package/skills/computer/SKILL.md +1 -1
- package/skills/find-skills/SKILL.md +3 -8
- package/skills/interactive-page/SKILL.md +12 -7
- package/skills/interactive-page/references/diagram.md +89 -0
- package/skills/interactive-page/scripts/archify/LICENSE +22 -0
- package/skills/interactive-page/scripts/archify/README.md +25 -0
- package/skills/interactive-page/scripts/archify/assets/JetBrainsMono-OFL.txt +93 -0
- package/skills/interactive-page/scripts/archify/assets/template.html +14934 -0
- package/skills/interactive-page/scripts/archify/bin/archify.mjs +2126 -0
- package/skills/interactive-page/scripts/archify/bin/open-artifact.mjs +86 -0
- package/skills/interactive-page/scripts/archify/bin/preview.mjs +653 -0
- package/skills/interactive-page/scripts/archify/bin/visual-check.mjs +829 -0
- package/skills/interactive-page/scripts/archify/delta/architecture-delta.mjs +1223 -0
- package/skills/interactive-page/scripts/archify/examples/agent-run.lifecycle.json +60 -0
- package/skills/interactive-page/scripts/archify/examples/agent-tool-call.workflow.json +94 -0
- package/skills/interactive-page/scripts/archify/examples/async-job-roundtrip.sequence.json +61 -0
- package/skills/interactive-page/scripts/archify/examples/cache-miss-request.sequence.json +82 -0
- package/skills/interactive-page/scripts/archify/examples/checkout-platform.base.architecture.json +31 -0
- package/skills/interactive-page/scripts/archify/examples/checkout-platform.head.architecture.json +31 -0
- package/skills/interactive-page/scripts/archify/examples/deployment-release.lifecycle.json +49 -0
- package/skills/interactive-page/scripts/archify/examples/event-stream.dataflow.json +57 -0
- package/skills/interactive-page/scripts/archify/examples/incident-response.workflow.json +64 -0
- package/skills/interactive-page/scripts/archify/examples/product-analytics.dataflow.json +76 -0
- package/skills/interactive-page/scripts/archify/examples/production-deployment.architecture.json +71 -0
- package/skills/interactive-page/scripts/archify/examples/release-delivery.workflow.json +62 -0
- package/skills/interactive-page/scripts/archify/examples/web-app.architecture.json +46 -0
- package/skills/interactive-page/scripts/archify/migrations/workflow-v2.mjs +279 -0
- package/skills/interactive-page/scripts/archify/recipes/scenarios.mjs +284 -0
- package/skills/interactive-page/scripts/archify/references/authoring-contract.md +243 -0
- package/skills/interactive-page/scripts/archify/references/delivery-contract.md +120 -0
- package/skills/interactive-page/scripts/archify/references/viewer-runtime.md +45 -0
- package/skills/interactive-page/scripts/archify/renderers/architecture/grid.mjs +62 -0
- package/skills/interactive-page/scripts/archify/renderers/architecture/render-architecture.mjs +1078 -0
- package/skills/interactive-page/scripts/archify/renderers/dataflow/README.md +104 -0
- package/skills/interactive-page/scripts/archify/renderers/dataflow/render-dataflow.mjs +483 -0
- package/skills/interactive-page/scripts/archify/renderers/lifecycle/README.md +115 -0
- package/skills/interactive-page/scripts/archify/renderers/lifecycle/render-lifecycle.mjs +561 -0
- package/skills/interactive-page/scripts/archify/renderers/sequence/README.md +114 -0
- package/skills/interactive-page/scripts/archify/renderers/sequence/render-sequence.mjs +464 -0
- package/skills/interactive-page/scripts/archify/renderers/shared/brand-marks.mjs +563 -0
- package/skills/interactive-page/scripts/archify/renderers/shared/cli.mjs +218 -0
- package/skills/interactive-page/scripts/archify/renderers/shared/desktop-readability.mjs +26 -0
- package/skills/interactive-page/scripts/archify/renderers/shared/diagnostics.mjs +127 -0
- package/skills/interactive-page/scripts/archify/renderers/shared/engineering-profiles.mjs +157 -0
- package/skills/interactive-page/scripts/archify/renderers/shared/generated-brand-marks.mjs +3 -0
- package/skills/interactive-page/scripts/archify/renderers/shared/generated-validators.mjs +13 -0
- package/skills/interactive-page/scripts/archify/renderers/shared/geometry.mjs +1423 -0
- package/skills/interactive-page/scripts/archify/renderers/shared/i18n.mjs +595 -0
- package/skills/interactive-page/scripts/archify/renderers/shared/layout-report.mjs +40 -0
- package/skills/interactive-page/scripts/archify/renderers/shared/legend.mjs +217 -0
- package/skills/interactive-page/scripts/archify/renderers/shared/output-path.mjs +340 -0
- package/skills/interactive-page/scripts/archify/renderers/shared/repository-evidence.mjs +238 -0
- package/skills/interactive-page/scripts/archify/renderers/shared/repository-location.mjs +58 -0
- package/skills/interactive-page/scripts/archify/renderers/shared/text-fit.mjs +49 -0
- package/skills/interactive-page/scripts/archify/renderers/shared/utils.mjs +232 -0
- package/skills/interactive-page/scripts/archify/renderers/shared/validator.mjs +86 -0
- package/skills/interactive-page/scripts/archify/renderers/workflow/README.md +223 -0
- package/skills/interactive-page/scripts/archify/renderers/workflow/render-workflow.mjs +35 -0
- package/skills/interactive-page/scripts/archify/renderers/workflow/workflow-compiler.mjs +4400 -0
- package/skills/interactive-page/scripts/archify/renderers/workflow/workflow-migration-geometry.mjs +144 -0
- package/skills/interactive-page/scripts/archify/schemas/README.md +211 -0
- package/skills/interactive-page/scripts/archify/schemas/architecture.schema.json +178 -0
- package/skills/interactive-page/scripts/archify/schemas/common.schema.json +115 -0
- package/skills/interactive-page/scripts/archify/schemas/dataflow.schema.json +243 -0
- package/skills/interactive-page/scripts/archify/schemas/lifecycle.schema.json +266 -0
- package/skills/interactive-page/scripts/archify/schemas/sequence.schema.json +223 -0
- package/skills/interactive-page/scripts/archify/schemas/workflow.schema.json +428 -0
- package/skills/interactive-page/scripts/archify/scripts/check-render-output.mjs +916 -0
- package/skills/interactive-page/scripts/archify/scripts/render-examples.mjs +26 -0
- package/skills/interactive-page/scripts/bundle-artifact.sh +9 -8
- package/skills/skill-creator/SKILL.md +4 -5
- package/.next/server/app/api/bot/task/[id]/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/bot/task/[id]/route.js +0 -16
- package/.next/server/app/api/bot/task/[id]/route.js.nft.json +0 -1
- package/.next/server/app/api/bot/task/[id]/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/bot/task/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/bot/task/route.js +0 -16
- package/.next/server/app/api/bot/task/route.js.nft.json +0 -1
- package/.next/server/app/api/bot/task/route_client-reference-manifest.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__01dkp4a._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__02va5wz._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__02xjoto._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__04q--0f._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__0bl-e63._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0ffbg85._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0jq4ohy._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__0ls6_8y._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__0ncs9uu._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1-ga0kh._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__11n256_._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__12cabg9._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1339jnv._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__18_teo8._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__1_04mcf._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__1anc1p9._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1ccon1w._.js +0 -10
- package/.next/server/chunks/[root-of-the-server]__1fizn31._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1llj3-b._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1p8m3f4._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1wa1k7r._.js +0 -8
- package/.next/server/chunks/_0-73of8._.js +0 -55
- package/.next/server/chunks/_0-fjql4._.js +0 -26
- package/.next/server/chunks/_00xh_q0._.js +0 -25
- package/.next/server/chunks/_03a0897._.js +0 -3
- package/.next/server/chunks/_051qh8u._.js +0 -3
- package/.next/server/chunks/_05sovvj._.js +0 -3
- package/.next/server/chunks/_0fzqt2y._.js +0 -134
- package/.next/server/chunks/_0mecv0f._.js +0 -26
- package/.next/server/chunks/_0mh8j4m._.js +0 -3
- package/.next/server/chunks/_0obojvv._.js +0 -3
- package/.next/server/chunks/_0sb7tlz._.js +0 -3
- package/.next/server/chunks/_0sbynis._.js +0 -3
- package/.next/server/chunks/_0u10wmw._.js +0 -55
- package/.next/server/chunks/_0u4aiy2._.js +0 -3
- package/.next/server/chunks/_0wp4le3._.js +0 -3
- package/.next/server/chunks/_0y5fg-x._.js +0 -3
- package/.next/server/chunks/_1230wbx._.js +0 -10
- package/.next/server/chunks/_12nheja._.js +0 -3
- package/.next/server/chunks/_13510xh._.js +0 -3
- package/.next/server/chunks/_15hq89o._.js +0 -3
- package/.next/server/chunks/_18-1wcc._.js +0 -55
- package/.next/server/chunks/_1_9mjx-._.js +0 -3
- package/.next/server/chunks/_1c78vw5._.js +0 -229
- package/.next/server/chunks/_1h5_8sk._.js +0 -3
- package/.next/server/chunks/_1hdnxb7._.js +0 -3
- package/.next/server/chunks/_1j8k_j5._.js +0 -3
- package/.next/server/chunks/_1nula3v._.js +0 -3
- package/.next/server/chunks/_1php4eq._.js +0 -3
- package/.next/server/chunks/_1yuv4vp._.js +0 -3
- package/.next/server/chunks/_1zjrdag._.js +0 -3
- package/.next/server/chunks/_next-internal_server_app_api_bot_task_[id]_route_actions_1_k_8u3.js +0 -3
- package/.next/server/chunks/_next-internal_server_app_api_bot_task_route_actions_0xln6ra.js +0 -3
- package/.next/server/chunks/features_0rpfxbk._.js +0 -3
- package/.next/server/chunks/features_1qf3cei._.js +0 -3
- package/.next/server/chunks/features_bot_0zt92oh._.js +0 -3
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1xoq2rl._.js +0 -3
- package/.next/server/chunks/ssr/[externals]__0dizgek._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__092knlj._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0mz33a7._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0s9dq5u._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0s9l2sv._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0vnmv-s._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0xsog8n._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__10-dz5o._.js +0 -61
- package/.next/server/chunks/ssr/[root-of-the-server]__1gtlw6v._.js +0 -43
- package/.next/server/chunks/ssr/[root-of-the-server]__1ox7hbk._.js +0 -4
- package/.next/server/chunks/ssr/[root-of-the-server]__202p40z._.js +0 -3
- package/.next/server/chunks/ssr/_001_ms1._.js +0 -28
- package/.next/server/chunks/ssr/_01n3o0m._.js +0 -3
- package/.next/server/chunks/ssr/_0fz4mf_._.js +0 -3
- package/.next/server/chunks/ssr/_0gb4gmf._.js +0 -3
- package/.next/server/chunks/ssr/_0h42fze._.js +0 -3
- package/.next/server/chunks/ssr/_0h7zdni._.js +0 -3
- package/.next/server/chunks/ssr/_0ilna52._.js +0 -42
- package/.next/server/chunks/ssr/_0q0zan6._.js +0 -70
- package/.next/server/chunks/ssr/_0zcjrbg._.js +0 -3
- package/.next/server/chunks/ssr/_0zhoc3r._.js +0 -3
- package/.next/server/chunks/ssr/_13fke0x._.js +0 -3
- package/.next/server/chunks/ssr/_18cymkq._.js +0 -3
- package/.next/server/chunks/ssr/_1b2mjwr._.js +0 -3
- package/.next/server/chunks/ssr/_1f-dg-6._.js +0 -3
- package/.next/server/chunks/ssr/_1h0rw11._.js +0 -3
- package/.next/server/chunks/ssr/_1jhd09t._.js +0 -3
- package/.next/server/chunks/ssr/_1nnsk7z._.js +0 -3
- package/.next/server/chunks/ssr/_1ov37if._.js +0 -3
- package/.next/server/chunks/ssr/_1sji22n._.js +0 -3
- package/.next/server/chunks/ssr/_1vi_uo7._.js +0 -3
- package/.next/server/chunks/ssr/_1vyd1ji._.js +0 -3
- package/.next/server/chunks/ssr/_1xx4zlb._.js +0 -3
- package/.next/server/chunks/ssr/components_ui_1y1l7yj._.js +0 -3
- package/.next/server/chunks/ssr/features_bot_1s_-2vj._.js +0 -3
- package/.next/server/chunks/ssr/lib_realtime_12wg_dd._.js +0 -27
- package/.next/server/chunks/ssr/lib_realtime_15h_v1v._.js +0 -27
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_0npjf8-._.js +0 -3
- package/.next/static/chunks/00rd4-v8r7axp.js +0 -1
- package/.next/static/chunks/08qe4as2q428z.js +0 -3
- package/.next/static/chunks/0gnqdjn2lvdad.js +0 -2
- package/.next/static/chunks/0hwap1-p0m5sa.js +0 -1
- package/.next/static/chunks/0r5qcctujhxli.js +0 -1
- package/.next/static/chunks/0w52rrrmuj9r9.js +0 -1
- package/.next/static/chunks/0wcprt5ot5she.js +0 -1
- package/.next/static/chunks/10teww7wt-f6h.js +0 -1
- package/.next/static/chunks/17p6tk6k88dq6.js +0 -1
- package/.next/static/chunks/18a96rkhi4_yd.js +0 -1
- package/.next/static/chunks/1dkjg87pxk0n9.js +0 -28
- package/.next/static/chunks/1jd09sxcjddu1.js +0 -1
- package/.next/static/chunks/1w73ece_6bheu.js +0 -18
- package/.next/static/chunks/214ya3n5gxeih.js +0 -1
- package/.next/static/chunks/22_zkas21rpna.js +0 -1
- package/.next/static/chunks/2fh4-3z_q8b_w.js +0 -1
- package/.next/static/chunks/2h0sd2vumhb15.js +0 -1
- package/.next/static/chunks/2t4vhi3m8ahya.js +0 -1
- package/.next/static/chunks/2tigdtz3dpcy8.js +0 -1
- package/.next/static/chunks/2u7xt6mxg44lf.js +0 -1
- package/.next/static/chunks/3786h5vayt80-.js +0 -28
- package/.next/static/chunks/39j0fvpybzabl.js +0 -40
- package/.next/static/chunks/3cq5g494yuke8.css +0 -1
- package/.next/static/chunks/3hibbjnt85-k6.js +0 -1
- package/.next/static/chunks/3woj-xd7ki5_i.js +0 -1
- package/.next/static/chunks/3xk7yqgomx7yq.js +0 -1
- package/.next/static/chunks/3zmcsnuo25zvq.js +0 -1
- package/database/migrations/20260911030320_opposite_jack_power/migration.sql +0 -1
- package/docs/images/task-thread.png +0 -0
- package/features/bot/components/task-badge.tsx +0 -42
- package/features/bot/components/task-reply.tsx +0 -328
- package/features/bot/components/task-setting.tsx +0 -524
- package/features/bot/task.query.ts +0 -976
- package/features/bot/task.store.ts +0 -489
- package/lib/realtime/client-secret.ts +0 -86
- package/lib/realtime/open-session.ts +0 -31
- package/lib/realtime/openai.ts +0 -35
- package/lib/realtime/realtime.audio.ts +0 -196
- package/lib/realtime/realtime.driver.ts +0 -489
- package/lib/realtime/realtime.protocol.ts +0 -393
- package/lib/realtime/realtime.schema.ts +0 -37
- package/lib/realtime/realtime.session.ts +0 -106
- package/lib/realtime/realtime.transport.ts +0 -384
- package/lib/realtime/xai.ts +0 -39
- /package/.next/server/app/api/bot/{task → thread}/[id]/route/build-manifest.json +0 -0
- /package/.next/server/app/api/bot/{task → thread}/[id]/route/server-reference-manifest.json +0 -0
- /package/.next/server/app/api/bot/{task → thread}/[id]/route.js.map +0 -0
- /package/.next/server/app/api/bot/{task → thread}/route/build-manifest.json +0 -0
- /package/.next/server/app/api/bot/{task → thread}/route/server-reference-manifest.json +0 -0
- /package/.next/server/app/api/bot/{task → thread}/route.js.map +0 -0
- /package/.next/static/{kaTO0UHqF1bMnWgCDik2f → 0qzGoKn2wTERVZtblX1tp}/_buildManifest.js +0 -0
- /package/.next/static/{kaTO0UHqF1bMnWgCDik2f → 0qzGoKn2wTERVZtblX1tp}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{kaTO0UHqF1bMnWgCDik2f → 0qzGoKn2wTERVZtblX1tp}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[915874,486618,127438,67021,e=>{"use strict";var t;let r;function n(e){return e}function o(e){return e}function i(){return e=>e}function s(e){}function a(e){throw Error("Unexpected value in exhaustive check")}function l(e){}function c(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,r])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function u(e,t="|"){return e.map(e=>D(e)).join(t)}function f(e,t){return"bigint"==typeof t?t.toString():t}function p(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function d(e){return null==e}function h(e){let t=+!!e.startsWith("^"),r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function g(e,t){let r=e/t,n=Math.round(r),o=4*Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-n)<o?0:r-n}e.s(["$ZodAsyncError",()=>eT,"$ZodEncodeError",()=>ex,"$brand",()=>eN,"$constructor",()=>ek,"NEVER",()=>ez,"config",()=>eR,"globalConfig",()=>e$],127438),e.s(["BIGINT_FORMAT_RANGES",()=>F,"CONSTANT_CATCH",()=>eE,"Class",()=>ey,"NUMBER_FORMAT_RANGES",()=>L,"aborted",()=>H,"allowsEval",()=>k,"assert",()=>l,"assertEqual",()=>n,"assertIs",()=>s,"assertNever",()=>a,"assertNotEqual",()=>o,"assignProp",()=>O,"attachSchema",()=>et,"base64ToUint8Array",()=>eu,"base64urlToUint8Array",()=>ep,"cached",()=>p,"captureStackTrace",()=>S,"cleanEnum",()=>ec,"cleanRegex",()=>h,"clone",()=>M,"cloneDef",()=>_,"codePointLength",()=>ei,"constantCatch",()=>ev,"createTransparentProxy",()=>Z,"defineLazy",()=>b,"defineLazyInternal",()=>ew,"esc",()=>v,"escapeRegex",()=>C,"explicitlyAborted",()=>Q,"extend",()=>G,"finalizeIssue",()=>er,"floatSafeRemainder",()=>g,"getElementAtPath",()=>w,"getEnumValues",()=>c,"getLengthableOrigin",()=>es,"getParsedType",()=>$,"getSizableOrigin",()=>en,"hexToUint8Array",()=>eh,"hide",()=>eO,"installLazyProp",()=>eP,"isObject",()=>A,"isPlainObject",()=>N,"issue",()=>el,"joinValues",()=>u,"jsonStringifyReplacer",()=>f,"members",()=>eb,"merge",()=>W,"mergeDefs",()=>j,"normalizeParams",()=>U,"nullish",()=>d,"numKeys",()=>x,"objectClone",()=>m,"omit",()=>J,"optionalKeys",()=>K,"own",()=>em,"parsedType",()=>ea,"partial",()=>q,"pick",()=>B,"prefixIssues",()=>Y,"primitiveTypes",()=>I,"promiseAllObject",()=>P,"propertyKeyTypes",()=>R,"randomString",()=>E,"required",()=>X,"safeExtend",()=>V,"shallowClone",()=>T,"slugify",()=>z,"stringifyPrimitive",()=>D,"toZod",()=>i,"uint8ArrayToBase64",()=>ef,"uint8ArrayToBase64url",()=>ed,"uint8ArrayToHex",()=>eg,"unwrapMessage",()=>ee],486618);let y=Symbol("evaluating");function b(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==y)return void 0===n&&(n=y,n=r()),n},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function m(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function O(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function j(...e){let t={};for(let r of e)Object.assign(t,Object.getOwnPropertyDescriptors(r));return Object.defineProperties({},t)}function _(e){return j(e._zod.def)}function w(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function P(e){let t=Object.keys(e);return Promise.all(t.map(t=>e[t])).then(e=>{let r={};for(let n=0;n<t.length;n++)r[t[n]]=e[n];return r})}function E(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let n=0;n<e;n++)r+=t[Math.floor(Math.random()*t.length)];return r}function v(e){return JSON.stringify(e)}function z(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}let S="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function A(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let k=p(()=>{if(e$.jitless||"u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function N(e){if(!1===A(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let r=t.prototype;return!1!==A(r)&&!1!==Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")}function T(e){return N(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function x(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}let $=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return"promise";if("u">typeof Map&&e instanceof Map)return"map";if("u">typeof Set&&e instanceof Set)return"set";if("u">typeof Date&&e instanceof Date)return"date";if("u">typeof File&&e instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${t}`)}},R=new Set(["string","number","symbol"]),I=new Set(["string","number","bigint","boolean","symbol","undefined"]);function C(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function M(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function U(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}function Z(e){let t;return new Proxy({},{get:(r,n,o)=>(t??(t=e()),Reflect.get(t,n,o)),set:(r,n,o,i)=>(t??(t=e()),Reflect.set(t,n,o,i)),has:(r,n)=>(t??(t=e()),Reflect.has(t,n)),deleteProperty:(r,n)=>(t??(t=e()),Reflect.deleteProperty(t,n)),ownKeys:r=>(t??(t=e()),Reflect.ownKeys(t)),getOwnPropertyDescriptor:(r,n)=>(t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)),defineProperty:(r,n,o)=>(t??(t=e()),Reflect.defineProperty(t,n,o))})}function D(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}function K(e){return Object.keys(e).filter(t=>void 0!==e[t]._zod.optin&&"optional"===e[t]._zod.optout)}let L={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},F={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function B(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let o=j(e._zod.def,{get shape(){let e={};for(let n of Reflect.ownKeys(t)){if(!Object.prototype.hasOwnProperty.call(r.shape,n))throw Error(`Unrecognized key: "${String(n)}"`);t[n]&&O(e,n,r.shape[n])}return O(this,"shape",e),e},checks:[]});return M(e,o)}function J(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let o=j(e._zod.def,{get shape(){let n={...e._zod.def.shape};for(let e of Reflect.ownKeys(t)){if(!Object.prototype.hasOwnProperty.call(r.shape,e))throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&delete n[e]}return O(this,"shape",n),n},checks:[]});return M(e,o)}function G(e,t){if(!N(t))throw Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let r=e._zod.def.shape;for(let e of Reflect.ownKeys(t))if(void 0!==Object.getOwnPropertyDescriptor(r,e))throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=j(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return O(this,"shape",r),r}});return M(e,n)}function V(e,t){if(!N(t))throw Error("Invalid input to safeExtend: expected a plain object");let r=j(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return O(this,"shape",r),r}});return M(e,r)}function W(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=j(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return O(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return M(e,r)}function q(e,t,r,n="partial"){let o=t._zod.def.checks;if(o&&o.length>0)throw Error(`.${n}() cannot be used on object schemas containing refinements`);let i=j(t._zod.def,{get shape(){let n=t._zod.def.shape,o={...n};if(r)for(let t of Reflect.ownKeys(r)){if(!Object.prototype.hasOwnProperty.call(n,t))throw Error(`Unrecognized key: "${String(t)}"`);r[t]&&(o[t]=e?new e({type:"optional",innerType:n[t]}):n[t])}else for(let t of Reflect.ownKeys(n))o[t]=e?new e({type:"optional",innerType:n[t]}):n[t];return O(this,"shape",o),o},checks:[]});return M(t,i)}function X(e,t,r){let n=j(t._zod.def,{get shape(){let n=t._zod.def.shape,o={...n};if(r)for(let t of Reflect.ownKeys(r)){if(!Object.prototype.hasOwnProperty.call(o,t))throw Error(`Unrecognized key: "${String(t)}"`);r[t]&&(o[t]=new e({type:"nonoptional",innerType:n[t]}))}else for(let t of Reflect.ownKeys(n))o[t]=new e({type:"nonoptional",innerType:n[t]});return O(this,"shape",o),o}});return M(t,n)}function H(e,t=0){if(!0===e.aborted)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function Q(e,t=0){if(!0===e.aborted)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function Y(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function ee(e){return"string"==typeof e?e:e?.message}function et(e,t,r){var n;for(let o=t;o<e.length;o++)(n=e[o]).schema??(n.schema=r)}function er(e,t,r){let n=e.inst?._zod?.traits;n?.has("$ZodType")&&(n.has("$ZodCheck")?e.schema??(e.schema=e.inst):e.schema=e.inst);let o=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,i=e.message?e.message:ee(e.inst?._zod.def?.error?.(e))??ee(o?.(e))??ee(t?.error?.(e))??ee(r.customError?.(e))??ee(r.localeError?.(e))??"Invalid input",{inst:s,schema:a,continue:l,input:c,...u}=e;return u.path??(u.path=[]),u.message=i,t?.reportInput&&(u.input=c),u}function en(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}let eo=/[\uD800-\uDBFF]/;function ei(e){let t=e.length;if(!eo.test(e))return t;let r=t;for(let n=0;n<t-1;n++)(64512&e.charCodeAt(n))==55296&&(64512&e.charCodeAt(n+1))==56320&&(r--,n++);return r}function es(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function ea(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":if(null===e)return"null";if(Array.isArray(e))return"array";if(e&&Object.getPrototypeOf(e)!==Object.prototype&&"constructor"in e&&e.constructor)return e.constructor.name}return t}function el(...e){let[t,r,n]=e;return"string"==typeof t?{message:t,code:"custom",input:r,inst:n}:{...t}}function ec(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function eu(e){let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r}function ef(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function ep(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return eu(t+r)}function ed(e){return ef(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function eh(e){let t=e.replace(/^0x/,"");if(t.length%2!=0)throw Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)r[e/2]=Number.parseInt(t.slice(e,e+2),16);return r}function eg(e){return Array.from(e).map(e=>e.toString(16).padStart(2,"0")).join("")}class ey{constructor(...e){}}function eb(e,t){for(let r in t){let n=Object.getOwnPropertyDescriptor(t,r);n.get?Object.defineProperty(e,r,{...n,enumerable:!1}):function(e,t,r){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?r:em(this,t,r.bind(this))},set(e){em(this,t,e)}})}(e,r,n.value)}}function em(e,t,r,n=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:n,value:r}),r}function eO(e,t,r){return em(e,t,r,!1)}let ej=!1,e_={configurable:!0,get(){ej=!0}};function ew(e,t,n){let o=Object.getPrototypeOf(e._zod);if(t in o&&r!==e._zod){r=void 0;return}r=e._zod,Object.defineProperty(o,t,{configurable:!0,get(){Object.defineProperty(this,t,e_);let e=ej;ej=!1;try{let r=n(this);return ej?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),ej=ej||e,r}catch(r){throw delete this[t],ej=ej||e,r}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}function eP(e,t,r,n){let o,i=t in(o=Object.getPrototypeOf(e))?void 0:o;i&&Object.defineProperty(i,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:n,value:void 0};return Object.defineProperty(this,t,e),e.value=r(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:n,value:e})}})}let eE="~constantCatch";function ev(e){let t=()=>e;return t[eE]=!0,t}let ez=Object.freeze({status:"aborted"}),eS={value:void 0,enumerable:!1},eA="captureStackTrace"in Error?Error:null;function ek(e,t,r,n){function o(e){this.def=e,this.constr=c,this.traits=new Set}o.prototype={};let i=r&&new WeakSet;function s(n,s){if(!n._zod){eS.value=new o(s);try{Object.defineProperty(n,"_zod",eS)}finally{eS.value=void 0}}if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,s),i){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,o=e;for(;o&&o!==t;)o=Object.getPrototypeOf(o);let s=o??e;i.has(s)||(i.add(s),eb(s,r))}let a=c.prototype;for(let e in a)Object.prototype.hasOwnProperty.call(a,e)&&(e in n||(n[e]=a[e].bind(n)))}let a=n?.Parent??Object;class l extends a{}function c(e){let t=n?.Parent?function(e){let t=eA;if(t){let r=t.stackTraceLimit;if("number"==typeof r){try{t.stackTraceLimit=0}catch{return eA=null,new e}try{return new e}finally{t.stackTraceLimit=r}}}return new e}(l):this;s(t,e);let r=t._zod.deferred;if(r){for(let e of r)e();t._zod.deferred=void 0}let o=globalThis.__zod_globalConfig?.postProcessor;return o&&o(t),t}return Object.defineProperty(l,"name",{value:e}),Object.defineProperty(c,"init",{value:s}),Object.defineProperty(c,Symbol.hasInstance,{value:t=>!!n?.Parent&&t instanceof n.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(c,"name",{value:e}),c}let eN=Symbol("zod_brand");class eT extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ex extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}(t=globalThis).__zod_globalConfig??(t.__zod_globalConfig={});let e$=globalThis.__zod_globalConfig;function eR(e){return e&&Object.assign(e$,e),e$}let eI={get:function(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,f,2)),e.message},set:function(e){this._zod.message=e},enumerable:!0,configurable:!0},eC={value:void 0,enumerable:!1},eM={value:void 0,enumerable:!1},eU=new WeakSet([Object.prototype,Error.prototype]),eZ=(e,t)=>{e.name="$ZodError",eC.value=e._zod,Object.defineProperty(e,"_zod",eC),eM.value=t,Object.defineProperty(e,"issues",eM),eC.value=void 0,eM.value=void 0,Object.defineProperty(e,"message",eI);let r=Object.getPrototypeOf(e);eU.has(r)||(eU.add(r),Object.defineProperty(r,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))},eD=ek("$ZodError",eZ),eK=ek("$ZodError",eZ,void 0,{Parent:Error});function eL(e,t=e=>e.message){let r={},n=[];for(let s of e.issues)if(s.path.length>0){var o,i;(o=s.path[0],i=()=>[],!Object.prototype.hasOwnProperty.call(r,o)&&("__proto__"===o?Object.defineProperty(r,o,{value:i(),writable:!0,enumerable:!0,configurable:!0}):r[o]=i()),r[o]).push(t(s))}else n.push(t(s));return{formErrors:n,fieldErrors:r}}function eF(e,t=e=>e.message){let r={_errors:[]},n=(e,o=[])=>{for(let i of e.issues)if("invalid_union"===i.code&&i.errors.length)i.errors.map(e=>n({issues:e},[...o,...i.path]));else if("invalid_key"===i.code)n({issues:i.issues},[...o,...i.path]);else if("invalid_element"===i.code)n({issues:i.issues},[...o,...i.path]);else{let e=[...o,...i.path];if(0===e.length)r._errors.push(t(i));else{let n=r,o=0;for(;o<e.length;){let r=e[o],s=o===e.length-1;if("_errors"===r){s&&n._errors.push(t(i)),o++;continue}Object.prototype.hasOwnProperty.call(n,r)||Object.defineProperty(n,r,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let a=n[r];s&&a._errors.push(t(i)),n=a,o++}}}};return n(e),r}function eB(e){let t=[];for(let r of e.map(e=>"object"==typeof e?e.key:e))"number"==typeof r?t.push(`[${r}]`):"symbol"==typeof r?t.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?t.push(`[${JSON.stringify(r)}]`):(t.length&&t.push("."),t.push(r));return t.join("")}e.s(["$ZodError",0,eD,"$ZodRealError",0,eK,"flattenError",0,eL,"formatError",0,eF,"prettifyError",0,function(e){let t=[];for(let r of[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length))t.push(`✖ ${r.message}`),r.path?.length&&t.push(` → at ${eB(r.path)}`);return t.join("\n")},"toDotPath",0,eB,"treeifyError",0,function(e,t=e=>e.message){let r={errors:[]},n=(e,o=[])=>{var i;for(let s of e.issues)if("invalid_union"===s.code&&s.errors.length)s.errors.map(e=>n({issues:e},[...o,...s.path]));else if("invalid_key"===s.code)n({issues:s.issues},[...o,...s.path]);else if("invalid_element"===s.code)n({issues:s.issues},[...o,...s.path]);else{let e=[...o,...s.path];if(0===e.length){r.errors.push(t(s));continue}let n=r,a=0;for(;a<e.length;){let r=e[a],o=a===e.length-1;"string"==typeof r?(n.properties??(n.properties={}),Object.prototype.hasOwnProperty.call(n.properties,r)||Object.defineProperty(n.properties,r,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),n=n.properties[r]):(n.items??(n.items=[]),(i=n.items)[r]??(i[r]={errors:[]}),n=n.items[r]),o&&n.errors.push(t(s)),a++}}};return n(e),r}],67021);let eJ=new WeakSet([Object.prototype,Error.prototype]);function eG(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=r(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}let eV=(e,t)=>{eD.init(e,t),e.name="ZodError";let r=Object.getPrototypeOf(e);eJ.has(r)||(eJ.add(r),eG(r,"format",e=>t=>eF(e,t)),eG(r,"flatten",e=>t=>eL(e,t)),eG(r,"addIssue",e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,f,2)}),eG(r,"addIssues",e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,f,2)}),Object.defineProperty(r,"isEmpty",{configurable:!0,enumerable:!1,get(){return 0===this.issues.length}}))},eW=ek("ZodError",eV),eq=ek("ZodError",eV,void 0,{Parent:Error});e.s(["ZodError",0,eW,"ZodRealError",0,eq],915874)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=node_modules_zod_v4_classic_errors_0tp0y-q.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[193695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},326758,a=>{a.v("/_next/static/media/favicon.37o1pjldwi2uc.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},438872,a=>{"use strict";let b={src:a.i(326758).default,width:48,height:48};a.s(["default",0,b])},982616,a=>{"use strict";a.s(["Intro",()=>b]);let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call Intro() from the server but Intro is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/intro/components/intro.tsx","Intro")},84389,a=>{"use strict";var b=a.i(982616);a.n(b)},128756,a=>{"use strict";a.s(["Boot",()=>c,"CALL_FACE",()=>d,"INTRO_FACE",()=>e]);var b=a.i(211857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call Boot() from the server but Boot is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/thursday/components/boot.tsx","Boot"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call CALL_FACE() from the server but CALL_FACE is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/thursday/components/boot.tsx","CALL_FACE"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call INTRO_FACE() from the server but INTRO_FACE is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/thursday/components/boot.tsx","INTRO_FACE")},811368,a=>{"use strict";var b=a.i(128756);a.n(b)},588694,a=>{"use strict";a.s(["CallScreen",()=>c,"Thursday",()=>d]);var b=a.i(211857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call CallScreen() from the server but CallScreen is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/thursday/components/thursday.tsx","CallScreen"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call Thursday() from the server but Thursday is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/thursday/components/thursday.tsx","Thursday")},587370,a=>{"use strict";var b=a.i(588694);a.n(b)},50708,a=>a.a(async(b,c)=>{try{var d=a.i(907997),e=a.i(636616),f=a.i(725466),g=a.i(84389),h=a.i(811368),i=a.i(587370),j=b([f]);async function k({searchParams:a}){let{intro:b}=await a,c=await (0,f.isCallable)(),j=void 0!==b||!c;return(0,d.jsxs)("div",{className:"h-full min-h-0 flex-1",children:[(0,d.jsx)(i.Thursday,{}),(0,d.jsx)(g.Intro,{ready:c,forced:void 0!==b,
|
|
1
|
+
module.exports=[193695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},326758,a=>{a.v("/_next/static/media/favicon.37o1pjldwi2uc.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},438872,a=>{"use strict";let b={src:a.i(326758).default,width:48,height:48};a.s(["default",0,b])},982616,a=>{"use strict";a.s(["Intro",()=>b]);let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call Intro() from the server but Intro is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/intro/components/intro.tsx","Intro")},84389,a=>{"use strict";var b=a.i(982616);a.n(b)},128756,a=>{"use strict";a.s(["Boot",()=>c,"CALL_FACE",()=>d,"INTRO_FACE",()=>e]);var b=a.i(211857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call Boot() from the server but Boot is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/thursday/components/boot.tsx","Boot"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call CALL_FACE() from the server but CALL_FACE is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/thursday/components/boot.tsx","CALL_FACE"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call INTRO_FACE() from the server but INTRO_FACE is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/thursday/components/boot.tsx","INTRO_FACE")},811368,a=>{"use strict";var b=a.i(128756);a.n(b)},588694,a=>{"use strict";a.s(["CallScreen",()=>c,"Thursday",()=>d]);var b=a.i(211857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call CallScreen() from the server but CallScreen is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/thursday/components/thursday.tsx","CallScreen"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call Thursday() from the server but Thursday is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/thursday/components/thursday.tsx","Thursday")},587370,a=>{"use strict";var b=a.i(588694);a.n(b)},50708,a=>a.a(async(b,c)=>{try{var d=a.i(907997),e=a.i(636616),f=a.i(725466),g=a.i(84389),h=a.i(811368),i=a.i(587370),j=b([f]);async function k({searchParams:a}){let{intro:b}=await a,c=await (0,f.isCallable)(),j=void 0!==b||!c;return(0,d.jsxs)("div",{className:"h-full min-h-0 flex-1",children:[(0,d.jsx)(i.Thursday,{}),(0,d.jsx)(g.Intro,{ready:c,forced:void 0!==b,icons:(0,e.rollSeedIcons)()}),(0,d.jsx)(h.Boot,{over:j?"intro":"call"})]})}[f]=j.then?(await j)():j,a.s(["default",0,k]),c()}catch(a){c(a)}},!1),826030,function(a){a.n(a.i(50708))},651717,a=>{"use strict";var b=a.i(612948),c=a.i(167436),d=a.i(594331);a.i(670408);let e=(0,b.instrumentModuleGetter)(()=>a.r(438872)),f=(0,b.instrumentModuleGetter)(()=>a.r(70864)),g=(0,b.instrumentModuleGetter)(()=>a.r(43619)),h=(0,b.instrumentModuleGetter)(()=>a.r(13718)),i=(0,b.instrumentModuleGetter)(()=>a.r(118198)),j=(0,b.instrumentModuleGetter)(()=>a.r(262212)),k=["",{children:["__PAGE__",{},{metadata:{},page:[(0,b.instrumentModuleGetter)(()=>a.r(826030)),"[project]/app/page.tsx"]},[]]},{metadata:{icon:[async()=>{let a=(0,d.interopDefault)(await e());return[{url:`/favicon.ico?${a.src.split("/").splice(-1)[0]}`,sizes:`${a.width}x${a.height}`,type:"image/x-icon"}]}]},layout:[f,"[project]/app/layout.tsx"],"not-found":[g,"[project]/node_modules/next/dist/client/components/builtin/not-found.js"],forbidden:[h,"[project]/node_modules/next/dist/client/components/builtin/forbidden.js"],unauthorized:[i,"[project]/node_modules/next/dist/client/components/builtin/unauthorized.js"],"global-error":[j,"[project]/node_modules/next/dist/client/components/builtin/global-error.js"]},[]],l=a.r.bind(a),m=a.l.bind(a),n=(0,c.createAppPageEntrypoint)({tree:k,page:"/page",pathname:"/",require:l,loadChunk:m,interopDefault:d.interopDefault}),o=n.__next_app__,p=n.routeModule,q=n.handler;a.s(["__next_app__",0,o,"handler",0,q,"routeModule",0,p],583385),a.i(583385);var r=a.i(722922);a.s(["ClientPageRoot",()=>r.ClientPageRoot,"ClientSegmentRoot",()=>r.ClientSegmentRoot,"Fragment",()=>r.Fragment,"HTTPAccessFallbackBoundary",()=>r.HTTPAccessFallbackBoundary,"InstantValidation",()=>r.InstantValidation,"LayoutRouter",()=>r.LayoutRouter,"LoadingBoundaryProvider",()=>r.LoadingBoundaryProvider,"Postpone",()=>r.Postpone,"RenderFromTemplateContext",()=>r.RenderFromTemplateContext,"RootLayoutBoundary",()=>r.RootLayoutBoundary,"SegmentViewNode",()=>r.SegmentViewNode,"SegmentViewStateNode",()=>r.SegmentViewStateNode,"__next_app__",0,o,"captureOwnerStack",()=>r.captureOwnerStack,"collectPrefetchHints",()=>r.collectPrefetchHints,"collectSegmentData",()=>r.collectSegmentData,"createElement",()=>r.createElement,"createMetadataComponents",()=>r.createMetadataComponents,"createPrerenderParamsForClientSegment",()=>r.createPrerenderParamsForClientSegment,"createPrerenderSearchParamsForClientPage",()=>r.createPrerenderSearchParamsForClientPage,"createServerParamsForServerSegment",()=>r.createServerParamsForServerSegment,"createServerSearchParamsForServerPage",()=>r.createServerSearchParamsForServerPage,"createTemporaryReferenceSet",()=>r.createTemporaryReferenceSet,"decodeAction",()=>r.decodeAction,"decodeFormState",()=>r.decodeFormState,"decodeReply",()=>r.decodeReply,"handler",0,q,"isEmptyHTMLPrelude",()=>r.isEmptyHTMLPrelude,"patchFetch",()=>r.patchFetch,"preconnect",()=>r.preconnect,"preloadFont",()=>r.preloadFont,"preloadStyle",()=>r.preloadStyle,"prerender",()=>r.prerender,"prerenderToNodeStream",()=>r.prerenderToNodeStream,"renderToPipeableStream",()=>r.renderToPipeableStream,"renderToReadableStream",()=>r.renderToReadableStream,"routeModule",0,p,"serverHooks",()=>r.serverHooks,"taintObjectReference",()=>r.taintObjectReference],651717)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__09q9med._.js.map
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
module.exports=[70729,a=>{a.v(a=>Promise.resolve().then(()=>a(666680)))},133300,a=>{a.v(a=>Promise.resolve().then(()=>a(203469)))},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(762008),d=a.i(446957);let e=[{name:"Jarvis",description:"Anything nobody else is for — orders, bookings, forms, the web, this computer",hint:"Takes whatever nobody else is for",recommended:!0,systemPrompt:""},{name:"Planner",description:"Any job that needs a team — decides what done means, assigns the parts, checks them, signs off",hint:"Runs the job: assigns, checks, decides",systemPrompt:`You run the team the way a chief executive runs a company: accountable for the result, not the one who produces it. A job comes in as a request and goes out as one finished result. Between the two you decide what done means, give each part to whoever on Bots is best placed for it, hold every part to what it was asked for, and make the calls nobody else can. A part is yours only when nobody on Bots fits it.
|
|
2
|
+
|
|
3
|
+
**Decide what done means, first.** Before anything is handed out, send Thursday one \`${c.TOOL_NAMES.send_message}\` question holding everything only the user can decide — which one, how much, by when, in what form — with options where they fit. What you can find out, or the request already says, is not asked. After that, a doubt a reasonable choice settles is yours: decide, write \`Ruling: <what> — <why>\` in the plan, and keep going. Only what cannot be undone goes back to Thursday.
|
|
4
|
+
|
|
5
|
+
**Staff it to its size.** A job one bot can do goes whole to that bot. Split only where parts run at the same time or need different strengths, and never let two parts write the same file at once.
|
|
6
|
+
|
|
7
|
+
**The plan is the one record.** \`plan.md\` in the job's scratch folder holds the goal; the facts every part needs (the user's answers, names, dates, units); one line per part, \`- [ ] <what exists when done, and how it will be checked> — <who> → <path>\`; then rulings and misses. Read it before every decision and update it as each part lands. Send the checklist to Thursday as a \`message\` once it is written.
|
|
8
|
+
|
|
9
|
+
**A brief is an assignment finished without asking you.** The goal and how it will be judged; the facts from \`plan.md\` it needs; the files to read; where to write — the part's own folder in scratch, the bot's own folder under \`artifacts/\` for what the user opens, \`projects/\` for code that outlives the job; what not to touch because another part owns it; what to send back — a few lines and the paths. Send every part that waits on nothing in the same step; a part that needs another's output goes out once that file exists.
|
|
10
|
+
|
|
11
|
+
**Judge the work, not the report.** Open what a part wrote and test it against its line — values, units, names and dates agreeing across parts — then tick it. Short or wrong: back to the same bot once, saying exactly what. Short again: another bot or another way, never the same brief twice. A third miss stops that part: ask Thursday how to go on, with what was tried. Every miss goes in the plan.
|
|
12
|
+
|
|
13
|
+
**Your memory is how the team gets better.** Keep a file for each: which bot did which kind of part well or badly; briefs that worked; jobs that come back and where their results live. Date each line, merge rather than add, delete what proved wrong. Never a job's contents — those stay in its files. The team changes: a bot you remember may be gone, so staff from Bots as it is now.
|
|
14
|
+
|
|
15
|
+
**Sign off on one result.** Put the deliverable together from the part files. Your final text says what was done, where it is, who did which part, the rulings you made, and what is unverified and why.`},{name:"Analyst",description:"Research with numbers — prices, markets, trends and comparisons, as tables and charts with sources",hint:"Finds the numbers and draws them",recommended:!0,systemPrompt:`Questions answered with numbers are yours — a market, prices, a comparison, a trend, a budget, what changed and by how much. The answer ends as one self-contained page in your folder under \`artifacts/\`: the finding first, then the charts, the tables and the rows behind them, every figure with where it came from. One file the user opens, never a report beside a chart beside a spreadsheet.
|
|
16
|
+
|
|
17
|
+
**Get the real numbers.** Take them from where they are published — a page, an API, a file you were given — never from memory, and take a trend as the series from its source, not one value from today. The rows you used go inside the page, as a table or a download, so every number can be checked.
|
|
18
|
+
|
|
19
|
+
**Show, then say.** A trend or a comparison is a chart, many values are a table, one figure is a sentence. Title a chart with what it shows. Inline svg and a little script are enough; a built page is for controls the reader actually needs.
|
|
20
|
+
|
|
21
|
+
**Work by a skill when one fits.** Earnings and financial statements, comparing companies, market sizing, statistics on a dataset — when your Skills list holds a method for the kind of work, load it before you start. Install one only when this job needs it: every installed skill is listed to every bot.
|
|
22
|
+
|
|
23
|
+
**Mark what is not solid.** A figure you could not confirm, a source older than the question, an estimate: say so beside it.
|
|
24
|
+
|
|
25
|
+
Your final text gives the page's path and the two or three numbers that answer the question.`},{name:"Lambda",description:"Turns work that repeats into scripts anyone can run, and runs them on a schedule when allowed",hint:"Makes a job a script and runs it again",recommended:!0,systemPrompt:`Work that will be done again is yours to turn into code — a report pulled every morning, files converted the same way each time, a check run over a list, one value read off a page. Do the job once, then leave a script anyone here can run with one command, and hand that command back.
|
|
26
|
+
|
|
27
|
+
**Read your map first.** Your memory holds one file listing every script you keep: its name, the one line it does, the command that runs it, and the day it last ran clean. Read it before building anything. When something close already exists, run or improve that one and answer with its command — a second script for the same job is how the shelf rots.
|
|
28
|
+
|
|
29
|
+
**One folder per script**, under \`projects/\`, named for what it does: the script itself, whatever it needs installed beside it (a virtualenv, packages), and a \`README.md\` holding the one-line command and its options. Inputs are arguments, never questions; results go in your folder under \`artifacts/\`. A job that needs three scripts gets three folders, not one folder of loose files. Write the simplest version that gives the right result.
|
|
30
|
+
|
|
31
|
+
**Done means it ran.** Run it on the real input and check what it wrote before you report; a non-zero exit or an empty result is not done. When you change a script, change only what the job needs, and run it again.
|
|
32
|
+
|
|
33
|
+
**A schedule is the user's to allow.** When a script should run on its own — every morning, every hour — ask Thursday one \`${c.TOOL_NAMES.send_message}\` question with the command, when it runs and where its output goes. Add it to this machine's scheduler only on a yes, and say how to remove it.
|
|
34
|
+
|
|
35
|
+
**Keep the map current** as you go: add the line when a script is born, fix it when the command changes, drop it when the folder is gone. A skill is a different thing — every bot carries one in its prompt for as long as it exists — so make a skill only when the user asks for one.
|
|
36
|
+
|
|
37
|
+
Your final text gives the command, what it produced this run, and where.`},{name:"Marketer",description:"Marketing — positioning, copy, launch plans, posts, ads, emails, SEO and competitor reviews",hint:"Works out what to say, to whom, and where",systemPrompt:`Marketing work is yours — positioning, page copy, a launch plan, posts, ads, emails, an SEO or competitor review — and it ends as the thing itself in your folder under \`artifacts/\`, ready to paste, post or send.
|
|
38
|
+
|
|
39
|
+
**Work by a skill.** Copy, SEO, launches, social posts, ads, emails, competitors and pricing each have written methods worth following. Start from the closest one on your Skills list and load it; only when nothing there fits, find one to install, then load it and follow it. Install only what this job needs: every installed skill is listed to every bot.
|
|
40
|
+
|
|
41
|
+
**Ground every claim.** Competitors, prices, search terms and what people say about the problem come from pages you opened, with the link beside them. What you could not check is marked as a guess.
|
|
42
|
+
|
|
43
|
+
**Hand off what is not marketing work.** Posting, publishing and sending belong to whoever on Bots does that; when nobody does, deliver it ready to post and say where it goes.
|
|
44
|
+
|
|
45
|
+
Your final text gives the file's path, the angle you would lead with, and what to test first.`},{name:"Shorts",description:"Vertical short videos — writes the script, draws the scenes, voices them, and builds the mp4",hint:"Turns an idea into a short video",requires:["image","speech"],systemPrompt:`A short is a vertical video watched with the sound off and still followed — it ends as one mp4 in your folder under \`artifacts/\`, 1080x1920.
|
|
46
|
+
|
|
47
|
+
**Check the tools before you plan.** \`${c.TOOL_NAMES.tool_search}\` with \`server: "${b.STUDIO_SERVER}"\` and \`tools: ["${c.STUDIO_TOOLS.generate_image}", "${c.STUDIO_TOOLS.generate_speech}"]\`. A name that does not come back means nobody picked that model; a call that answers that the model cannot make this kind means the wrong one is picked. Either way the tool is not yours to use: send Thursday a \`${c.TOOL_NAMES.send_message}\` question saying to pick an image (or speech) model in Settings › Models, and end your turn before anything else. Never work around it.
|
|
48
|
+
|
|
49
|
+
**Write the script as lines, one line per scene.** Each line is one spoken sentence, short enough to read at a glance. The first line has to earn the next three seconds.
|
|
50
|
+
|
|
51
|
+
**Make the voice first, and let it set the timing.** Generate speech for each line on its own, then read each file's duration — that is that scene's length. Never guess it, and never transcribe your own audio to find it.
|
|
52
|
+
|
|
53
|
+
**Draw one picture per scene**, \`aspectRatio: "9:16"\`. Put the whole picture in \`prompt\` — subject, framing, light, palette — the image model sees nothing of this job, and repeat the same look in every prompt or the scenes come back in different hands.
|
|
54
|
+
|
|
55
|
+
**Frames are HTML, not a video filter.** ffmpeg cannot be trusted to draw text: a build may carry no text filter and a machine may carry no font for the language. So build each scene as one HTML file — picture, caption, layout — then \`resize 1080 1920\`, serve it and open it the way the \`${b.BROWSER_SKILL}\` skill does, and \`screenshot\`. Load that skill before any of it. A picture need not fill the frame: it can sit in the middle over a blurred copy of itself, or above a caption card, or a line can be a title card with no picture at all. Keep the caption large and out of the bottom sixth, where a player's own buttons sit.
|
|
56
|
+
|
|
57
|
+
**Assemble with ffmpeg, and expect it to be missing.** Look for it first; when it is absent install a portable build into your project folder rather than onto the machine. Stills and audio joined into an mp4 work in every build — a slow zoom is worth having, a cross-fade only where the build has one. h264 and yuv420p, or phones refuse to play it.
|
|
58
|
+
|
|
59
|
+
**Keep the toolchain, not just the video.** Every short is assembled the same way, so leave that as a script under \`projects/\` with a README holding its one command and the shape of the scene list it reads. The next job edits the scene list and runs it. Play what you wrote before you report it.
|
|
60
|
+
|
|
61
|
+
**A video model is not the default.** It bills by the second and returns 2-10 seconds a call, so a short cut from clips costs many times one cut from stills. Use it when the user asks for real motion, and then for one scene, not all of them.
|
|
62
|
+
|
|
63
|
+
Your final text gives the mp4's path, how long it runs, and the opening line.`},{name:"Mail",description:"The user's mail — what arrived, what it needs, what it says, and the reply that goes back",hint:"Reads the inbox and writes the replies",systemPrompt:`Mail is yours — what arrived, what it says, what it needs, and the reply that goes back. The user's mail lives on the web, so this is browser work: load the \`${b.BROWSER_SKILL}\` skill before any step.
|
|
64
|
+
|
|
65
|
+
**Sign in once, then never again.** Look in your own folder's \`.auth/\` first and \`state-load\` what is there. Nothing kept: the browser they already have open carries their session and meets no robot check; otherwise open the mail site headed and ask Thursday to sign in. Save the state the moment you are in.
|
|
66
|
+
|
|
67
|
+
**Reading a web app costs tokens. Work like it does.**
|
|
68
|
+
- **Filter in the url.** Put the query there — unread, a sender, a date range, a label, what to leave out — so twenty rows come back rather than five hundred. Scrolling a list to find something is the expensive way.
|
|
69
|
+
- **Extract, never snapshot, to read a list.** \`--raw eval\` returns one compact line per message — sender, subject, date, its link — and nothing else. A snapshot of a busy mail page runs near 20,000 characters, far past what one run shows: you get its head and tail, the rows you wanted sit in the middle, and all of it is paid for.
|
|
70
|
+
- **One bash call, not five.** Chain the steps of a look with \`&&\`: load the state, go, extract. A turn per command is where the minutes go.
|
|
71
|
+
- **Long text goes to a file.** Redirect a body or a thread into the job's scratch folder and read back only what you need with \`grep\` or \`sed\`. A file costs nothing until it is read.
|
|
72
|
+
|
|
73
|
+
**Keep the recipe, not the result.** A mail site's class names are generated and they change, so the selector that worked is worth more than any answer it gave. Keep one memory file holding the url shapes for the inbox and for a search, the \`--raw eval\` one-liner that lists messages, the one that reads an open message, and the date each was last seen working. Read that file before you open anything and work from it: the first job pays for a snapshot, the ones after it should not.
|
|
74
|
+
|
|
75
|
+
**An empty extract means the page changed, not that there is no mail.** Then, and only then, snapshot once, work out the new one-liner, replace that line with today's date, and carry on. Never run a recipe twice after it has come back empty.
|
|
76
|
+
|
|
77
|
+
Send Thursday a \`${c.TOOL_NAMES.send_message}\` question when a reply turns on a fact only they have, or when the decision is theirs rather than yours.
|
|
78
|
+
|
|
79
|
+
Your final text says what is waiting, what you did about it, and the path of anything you wrote.`},{name:"Insta",description:"Instagram end to end — settles what the post is, builds the slides, writes it, and puts it up",hint:"Builds the slides, writes the caption, posts it",systemPrompt:`One job takes a post from nothing to live on instagram.com — settle what it is, sign in, build it, write it, put it up. Load the \`${b.BROWSER_SKILL}\` skill before any browser step.
|
|
80
|
+
|
|
81
|
+
Settle it in one question. Ask only for what the request leaves open, in a single \`${c.TOOL_NAMES.send_message}\` question to Thursday: the topic, how many slides, and whether they name the music or you pick. A request that already says its topic is not asked for it again. Told to decide yourself: \`${c.TOOL_NAMES.web_search}\` for what is current on that topic, a cover and three slides, and a recent track from Instagram's own list. Never ask twice for one round.
|
|
82
|
+
|
|
83
|
+
Sign in once, and into an account made for this rather than their own — the session is kept and every later job posts as whoever it is. Your file is \`.auth/instagram.json\` in your own folder, the login page is \`https://www.instagram.com/accounts/login/\`, and the skill carries the rest.
|
|
84
|
+
|
|
85
|
+
Anything covering the screen is closed before you read what is under it. It is in the way, not a sign-in problem.
|
|
86
|
+
|
|
87
|
+
**A slide is built, not drawn.** Every slide is one HTML file screenshotted at its exact size — \`resize\`, serve it and open it the way the skill does, \`screenshot\`. That is how text comes out right, since image models mangle it, and how every slide lands on one size, which a carousel needs: Instagram crops the rest to the first. Feed is 1080x1350 (4:5) or 1080x1080 (1:1), a story or reel 1080x1920. Pick one for the post and build every slide at it.
|
|
88
|
+
|
|
89
|
+
**A picture goes inside a slide**, as its background with \`object-fit: cover\`, and never stands in for one: the image model has no 4:5, so what it returns is never the right size alone. Draw it when the post is an idea or a mood — \`${c.STUDIO_TOOLS.generate_image}\` through \`${c.TOOL_NAMES.tool_call}\` on \`${b.STUDIO_SERVER}\`, the whole picture in \`prompt\` (subject, framing, light, palette; the model sees nothing of this job) and the same look repeated in each. Take the real one off the web when the post is about something that happened, since a drawn picture passed off as the event is a lie: open the page, \`curl -o\` its image url into your folder, and name the source. Blur or darken a photo under text until the text reads. A slide can also be text alone.
|
|
90
|
+
|
|
91
|
+
\`${c.STUDIO_TOOLS.generate_image}\` not coming back from \`${c.TOOL_NAMES.tool_search}\`, or a call answering that the model cannot make images, both mean there is no image model — calling again changes nothing. When real pictures and text make the post, go on without it. When the post needs a drawn one, send Thursday a \`${c.TOOL_NAMES.send_message}\` question saying to pick an image model in Settings › Models, and end your turn.
|
|
92
|
+
|
|
93
|
+
Write the caption to be read: what this is, in the user's voice, no invented facts, no wall of tags.
|
|
94
|
+
|
|
95
|
+
The composer is the one part not to memorise. Its refs change on every snapshot, so take a fresh one at each step and read what is actually there: Create, the files, crop and edit, music, caption — and stop on the last screen, before Share. **The crop step starts at square**, whatever you uploaded: set it to your slides' ratio before going on, or they go up cut. Music: search the name they gave, or take a current one that fits. No music step on this format means there is none.
|
|
96
|
+
|
|
97
|
+
Ask before it goes up: a \`${c.TOOL_NAMES.send_message}\` question to Thursday with the caption as written, the slide paths and the track; options \`Post it\` / \`Change something\`, and Share only on the first. When the user has said you may post without asking, keep that in your memory with the date and their words, and post.
|
|
98
|
+
|
|
99
|
+
Once it is up, open the post and check its image is the size you built; a cut one is deleted and posted again. Answer with the post's url and the file paths.`}];e.filter(a=>a.recommended),a.s(["findBotSeed",0,a=>e.find(b=>b.name===a)??null,"rollSeedIcons",0,()=>(0,d.randomBotIcons)(e.length)])},951922,a=>{a.v(a=>Promise.resolve().then(()=>a(839430)))},343064,a=>{a.v(a=>Promise.resolve().then(()=>a(344853)))},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)))}];
|
|
100
|
+
|
|
101
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0bxsfyn._.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module.exports=[205104,a=>a.a(async(b,c)=>{try{var d=await a.y("shiki-43d062b67f27bbdc");a.n(d),c()}catch(a){c(a)}},!0),338627,a=>a.a(async(b,c)=>{try{var d=await a.y("shiki-43d062b67f27bbdc/engine/javascript");a.n(d),c()}catch(a){c(a)}},!0),193064,a=>a.a(async(b,c)=>{try{var d=a.i(205104),e=a.i(338627),f=b([d,e]);[d,e]=f.then?(await f)():f;var g=(0,e.createJavaScriptRegexEngine)({forgiving:!0}),h=Object.fromEntries(d.bundledLanguagesInfo.flatMap(a=>{var b;return(null!=(b=a.aliases)?b:[]).map(b=>[b,a.id])})),i=new Set(Object.keys(d.bundledLanguages)),j=a=>{let b=a.trim().toLowerCase();return h[b]||(i.has(b),b)},k=new Map,l=new Map,m=new Map,n=a=>{var b;return"string"==typeof a?a:null!=(b=a.name)?b:"custom"},o=function(a={}){var b;let c=null!=(b=a.themes)?b:["github-light","github-dark"];return{name:"shiki",type:"code-highlighter",supportsLanguage(a){let b=j(a);return i.has(b)},getSupportedLanguages:()=>Array.from(i),getThemes:()=>c,highlight({code:a,language:b,themes:c},e){let f,h,o=j(b),p=[n(c[0]),n(c[1])],q=(f=a.slice(0,100),h=a.length>100?a.slice(-100):"",`${o}:${p[0]}:${p[1]}:${a.length}:${f}:${h}`);if(l.has(q))return l.get(q);e&&(m.has(q)||m.set(q,new Set),m.get(q).add(e));let r=i.has(o)?o:"text";return((a,b)=>{let c=`${a}-${n(b[0])}-${n(b[1])}`;if(k.has(c))return k.get(c);let e=(0,d.createHighlighter)({themes:b,langs:[a],engine:g});return k.set(c,e),e})(r,c).then(b=>{let c=b.getLoadedLanguages().includes(o)?o:"text",d=b.codeToTokens(a,{lang:c,themes:{light:p[0],dark:p[1]}});l.set(q,d);let e=m.get(q);if(e){for(let a of e)a(d);m.delete(q)}}).catch(a=>{console.error("[Streamdown Code] Failed to highlight code:",a),m.delete(q)}),null}}}();a.s(["code",0,o]),c()}catch(a){c(a)}},!1),366831,a=>{"use strict";var b=a.i(555465),c=a.i(650997),d=a.i(930348),e=a.i(517793),f=a.i(978754);let g={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `-->` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `-->` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `<!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `<!--`. Expected `-->`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}},h=/-[a-z]/g,i=/%c(?:([-+])(\d+))?/g,j=/%x/g,k={2:!0,1:!1,0:null},l={};function m(a){return a.charAt(1).toUpperCase()}var n=a.i(339642),o=a.i(571014);let p=function(a,b,c){let d=(0,o.convert)(c);if(!a||!a.type||!a.children)throw Error("Expected parent node");if("number"==typeof b){if(b<0||b===1/0)throw Error("Expected positive finite number as index")}else if((b=a.children.indexOf(b))<0)throw Error("Expected child node or index");for(;++b<a.children.length;)if(d(a.children[b],b,a))return a.children[b]},q=function(a){if(null==a)return s;if("string"==typeof a){var b;return b=a,r(function(a){return a.tagName===b})}if("object"==typeof a){var c=a;let b=[],d=-1;for(;++d<c.length;)b[d]=q(c[d]);return r(function(...a){let c=-1;for(;++c<b.length;)if(b[c].apply(this,a))return!0;return!1})}if("function"==typeof a)return r(a);throw Error("Expected function, string, or array as `test`")};function r(a){return function(b,c,d){var e;return!!(null!==(e=b)&&"object"==typeof e&&"type"in e&&"tagName"in e&&a.call(this,b,"number"==typeof c?c:void 0,d||void 0))}}function s(a){return!!(a&&"object"==typeof a&&"type"in a&&"element"===a.type&&"tagName"in a&&"string"==typeof a.tagName)}let t=/\n/g,u=/[\t ]+/g,v=q("br"),w=q(function(a){return"td"===a.tagName||"th"===a.tagName}),x=q("p"),y=q("tr"),z=q(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(a){return!!(a.properties||{}).hidden},function(a){return"dialog"===a.tagName&&!(a.properties||{}).open}]),A=q(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function B(a,b){let c,d=String(a.value),e=[],f=[],g=0;for(;g<=d.length;){t.lastIndex=g;let a=t.exec(d),c=a&&"index"in a?a.index:d.length;e.push(function(a,b,c){let d,e=[],f=0;for(;f<a.length;){u.lastIndex=f;let c=u.exec(a);d=c?c.index:a.length,f||d||!c||b||e.push(""),f!==d&&e.push(a.slice(f,d)),f=c?d+c[0].length:d}return f===d||c||e.push(""),e.join(" ")}(d.slice(g,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==g||b.breakBefore,c!==d.length||b.breakAfter)),g=c+1}let h=-1;for(;++h<e.length;)8203===e[h].charCodeAt(e[h].length-1)||h<e.length-1&&8203===e[h+1].charCodeAt(0)?(f.push(e[h]),c=void 0):e[h]?("number"==typeof c&&f.push(c),f.push(e[h]),c=0):(0===h||h===e.length-1)&&f.push(0);return f}function C(a,b){if("element"===a.type){let c=a.properties||{};switch(a.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return c.wrap?"pre-wrap":"pre";case"td":case"th":return c.noWrap?"nowrap":b.whitespace;case"textarea":return"pre-wrap"}}return b.whitespace}var D=a.i(948986),E=a.i(817691);let F={},G=[];function H(a){let o=a||F;return function(a,q){(0,E.visitParents)(a,"element",function(a,r){let s,t=Array.isArray(a.properties.className)?a.properties.className:G,u=t.includes("language-math"),F=t.includes("math-display"),H=t.includes("math-inline"),I=F;if(!u&&!F&&!H)return;let J=r[r.length-1],K=a;if("code"===a.tagName&&u&&J&&"element"===J.type&&"pre"===J.tagName&&(K=J,J=r[r.length-2],I=!0),!J)return;let L=function(a,b){let c,d="children"in a?a.children:[],e=A(a),f=C(a,{whitespace:(b||{}).whitespace||"normal",breakBefore:!1,breakAfter:!1}),g=[];("text"===a.type||"comment"===a.type)&&g.push(...B(a,{whitespace:f,breakBefore:!0,breakAfter:!0}));let h=-1;for(;++h<d.length;)g.push(...function a(b,c,d){return"element"===b.type?function(b,c,d){let e,f,g=C(b,d),h=b.children||[],i=-1,j=[];if(z(b))return j;for(v(b)||y(b)&&p(c,b,y)?f="\n":x(b)?(e=2,f=2):A(b)&&(e=1,f=1);++i<h.length;)j=j.concat(a(h[i],b,{whitespace:g,breakBefore:i?void 0:e,breakAfter:i<h.length-1?v(h[i+1]):f}));return w(b)&&p(c,b,w)&&j.push(" "),e&&j.unshift(e),f&&j.push(f),j}(b,c,d):"text"===b.type?"normal"===d.whitespace?B(b,d):[String(b.value)]:[]}(d[h],a,{whitespace:f,breakBefore:h?void 0:e,breakAfter:h<d.length-1?v(d[h+1]):e}));let i=[];for(h=-1;++h<g.length;){let a=g[h];"number"==typeof a?void 0!==c&&a>c&&(c=a):a&&(void 0!==c&&c>-1&&i.push("\n".repeat(c)||" "),c=-1,i.push(a))}return i.join("")}(K,{whitespace:"pre"});try{s=D.default.renderToString(L,{...o,displayMode:I,throwOnError:!0})}catch(c){let b=c.name.toLowerCase();q.message("Could not render math with KaTeX",{ancestors:[...r,a],cause:c,place:a.position,ruleId:b,source:"rehype-katex"});try{s=D.default.renderToString(L,{...o,displayMode:I,strict:"ignore",throwOnError:!1})}catch{s=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(o.errorColor||"#cc0000"),title:String(c)},children:[{type:"text",value:L}]}]}}if("string"==typeof s){var M,N;let a,o,p,q,r,t;s=(M={fragment:!0},N=s,o=(a=M||l).onerror,p=N instanceof e.VFile?N:new e.VFile(N),r=(a.fragment?d.parseFragment:d.parse)(q=String(p),{sourceCodeLocationInfo:!0,onParseError:a.onerror?function(c){let d=c.code,e=d.replace(h,m),l=a[e],n=null==l||l,r="number"==typeof n?n:+!!n;if(r){let a=g[e];(0,b.ok)(a,"expected known error from `parse5`");let h=new f.VFileMessage(s(a.reason),{place:{start:{line:c.startLine,column:c.startCol,offset:c.startOffset},end:{line:c.endLine,column:c.endCol,offset:c.endOffset}},ruleId:d,source:"hast-util-from-html"});p.path&&(h.file=p.path,h.name=p.path+":"+h.name),h.fatal=k[r],h.note=s(a.description),h.url=!1===a.url?void 0:"https://html.spec.whatwg.org/multipage/parsing.html#parse-error-"+d,(0,b.ok)(o,"`internalOnerror` is not passed if `onerror` is not set"),o(h)}function s(a){return a.replace(i,function(a,b,d){var e;let f=(d?Number.parseInt(d,10):0)*("-"===b?-1:1);return"`"===(e=q.charAt(c.startOffset+f))?"` ` `":e}).replace(j,function(){return"0x"+q.charCodeAt(c.startOffset).toString(16).toUpperCase()})}}:null,scriptingEnabled:!1}),t=(0,c.fromParse5)(r,{file:p,space:a.space,verbose:a.verbose}),(0,n.visit)(t,function(a){delete a.position}),delete t.data,t).children}let O=J.children.indexOf(K);return J.children.splice(O,1,...s),E.SKIP})}}var I=a.i(69137),J=a.i(145245),K=a.i(770974);let L={tokenize:function(a,b,c){let d=this,e=d.events[d.events.length-1],f=e&&"linePrefix"===e[1].type?e[2].sliceSerialize(e[1],!0).length:0,g=0;return function(b){return a.enter("mathFlow"),a.enter("mathFlowFence"),a.enter("mathFlowFenceSequence"),function b(d){return 36===d?(a.consume(d),g++,b):g<2?c(d):(a.exit("mathFlowFenceSequence"),(0,J.factorySpace)(a,h,"whitespace")(d))}(b)};function h(b){return null===b||(0,K.markdownLineEnding)(b)?i(b):(a.enter("mathFlowFenceMeta"),a.enter("chunkString",{contentType:"string"}),function b(d){return null===d||(0,K.markdownLineEnding)(d)?(a.exit("chunkString"),a.exit("mathFlowFenceMeta"),i(d)):36===d?c(d):(a.consume(d),b)}(b))}function i(c){return(a.exit("mathFlowFence"),d.interrupt)?b(c):a.attempt(M,j,m)(c)}function j(b){return a.attempt({tokenize:n,partial:!0},m,k)(b)}function k(b){return(f?(0,J.factorySpace)(a,l,"linePrefix",f+1):l)(b)}function l(b){return null===b?m(b):(0,K.markdownLineEnding)(b)?a.attempt(M,j,m)(b):(a.enter("mathFlowValue"),function b(c){return null===c||(0,K.markdownLineEnding)(c)?(a.exit("mathFlowValue"),l(c)):(a.consume(c),b)}(b))}function m(c){return a.exit("mathFlow"),b(c)}function n(a,b,c){let e=0;return(0,J.factorySpace)(a,function(b){return a.enter("mathFlowFence"),a.enter("mathFlowFenceSequence"),function b(d){return 36===d?(e++,a.consume(d),b):e<g?c(d):(a.exit("mathFlowFenceSequence"),(0,J.factorySpace)(a,f,"whitespace")(d))}(b)},"linePrefix",d.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function f(d){return null===d||(0,K.markdownLineEnding)(d)?(a.exit("mathFlowFence"),b(d)):c(d)}}},concrete:!0,name:"mathFlow"},M={tokenize:function(a,b,c){let d=this;return function(c){return null===c?b(c):(a.enter("lineEnding"),a.consume(c),a.exit("lineEnding"),e)};function e(a){return d.parser.lazy[d.now().line]?c(a):b(a)}},partial:!0};function N(a){let b,c,d=a.length-4,e=3;if(("lineEnding"===a[3][1].type||"space"===a[e][1].type)&&("lineEnding"===a[d][1].type||"space"===a[d][1].type)){for(b=e;++b<d;)if("mathTextData"===a[b][1].type){a[d][1].type="mathTextPadding",a[e][1].type="mathTextPadding",e+=2,d-=2;break}}for(b=e-1,d++;++b<=d;)void 0===c?b!==d&&"lineEnding"!==a[b][1].type&&(c=b):(b===d||"lineEnding"===a[b][1].type)&&(a[c][1].type="mathTextData",b!==c+2&&(a[c][1].end=a[b-1][1].end,a.splice(c+2,b-c-2),d-=b-c-2,b=c+2),c=void 0);return a}function O(a){return 36!==a||"characterEscape"===this.events[this.events.length-1][1].type}let P={};function Q(a){let c,d=a||P,e=this.data(),f=e.micromarkExtensions||(e.micromarkExtensions=[]),g=e.fromMarkdownExtensions||(e.fromMarkdownExtensions=[]),h=e.toMarkdownExtensions||(e.toMarkdownExtensions=[]);f.push({flow:{36:L},text:{36:(null==(c=(d||{}).singleDollarTextMath)&&(c=!0),{tokenize:function(a,b,d){let e,f,g=0;return function(b){return a.enter("mathText"),a.enter("mathTextSequence"),function b(e){return 36===e?(a.consume(e),g++,b):g<2&&!c?d(e):(a.exit("mathTextSequence"),h(e))}(b)};function h(c){return null===c?d(c):36===c?(f=a.enter("mathTextSequence"),e=0,function c(d){return 36===d?(a.consume(d),e++,c):e===g?(a.exit("mathTextSequence"),a.exit("mathText"),b(d)):(f.type="mathTextData",i(d))}(c)):32===c?(a.enter("space"),a.consume(c),a.exit("space"),h):(0,K.markdownLineEnding)(c)?(a.enter("lineEnding"),a.consume(c),a.exit("lineEnding"),h):(a.enter("mathTextData"),i(c))}function i(b){return null===b||32===b||36===b||(0,K.markdownLineEnding)(b)?(a.exit("mathTextData"),h(b)):(a.consume(b),i)}},resolve:N,previous:O,name:"mathText"})}}),g.push(function(){return{enter:{mathFlow:function(a){this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[{type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]}]}},a)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(a){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},a),this.buffer()}},exit:{mathFlow:function(a){let c=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),d=this.stack[this.stack.length-1];(0,b.ok)("math"===d.type),this.exit(a),d.value=c;let e=d.data.hChildren[0];(0,b.ok)("element"===e.type),(0,b.ok)("code"===e.tagName),e.children.push({type:"text",value:c}),this.data.mathFlowInside=void 0},mathFlowFence:function(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)},mathFlowFenceMeta:function(){let a=this.resume(),c=this.stack[this.stack.length-1];(0,b.ok)("math"===c.type),c.meta=a},mathFlowValue:a,mathText:function(a){let c=this.resume(),d=this.stack[this.stack.length-1];(0,b.ok)("inlineMath"===d.type),this.exit(a),d.value=c,d.data.hChildren.push({type:"text",value:c})},mathTextData:a}};function a(a){this.config.enter.data.call(this,a),this.config.exit.data.call(this,a)}}()),h.push(function(a){let b=(a||{}).singleDollarTextMath;return null==b&&(b=!0),c.peek=function(){return"$"},{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:"\n",inConstruct:"mathFlowMeta"},{character:"$",after:b?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:function(a,b,c,d){let e=a.value||"",f=c.createTracker(d),g="$".repeat(Math.max((0,I.longestStreak)(e,"$")+1,2)),h=c.enter("mathFlow"),i=f.move(g);if(a.meta){let b=c.enter("mathFlowMeta");i+=f.move(c.safe(a.meta,{after:"\n",before:i,encode:["$"],...f.current()})),b()}return i+=f.move("\n"),e&&(i+=f.move(e+"\n")),i+=f.move(g),h(),i},inlineMath:c}};function c(a,c,d){let e=a.value||"",f=1;for(!b&&f++;RegExp("(^|[^$])"+"\\$".repeat(f)+"([^$]|$)").test(e);)f++;let g="$".repeat(f);/[^ \r\n]/.test(e)&&(/^[ \r\n]/.test(e)&&/[ \r\n]$/.test(e)||/^\$|\$$/.test(e))&&(e=" "+e+" ");let h=-1;for(;++h<d.unsafe.length;){let a,b=d.unsafe[h];if(!b.atBreak)continue;let c=d.compilePattern(b);for(;a=c.exec(e);){let b=a.index;10===e.codePointAt(b)&&13===e.codePointAt(b-1)&&b--,e=e.slice(0,b)+" "+e.slice(a.index+1)}}return g+e+g}}(d))}var R=function(a={}){var b,c;return{name:"katex",type:"math",remarkPlugin:[Q,{singleDollarTextMath:null!=(b=a.singleDollarTextMath)&&b}],rehypePlugin:[H,{errorColor:null!=(c=a.errorColor)?c:"var(--color-muted-foreground)"}],getStyles:()=>"katex/dist/katex.min.css"}}();a.s(["math",0,R],366831)},420327,a=>{"use strict";var b=a.i(53467);a.i(675469);var c=a.i(325640),d=a.i(882458);a.i(416635),a.i(43429),a.i(428212),a.i(916573),a.i(789676),a.i(327446);var e=a.i(166292),f=a.i(887370),g=a.i(261234),h=a.i(875117),i=a.i(539110),j=a.i(554757);a.i(975930);var k=a.i(671731),l="comm",m="rule",n="decl",o="@keyframes",p="@layer",q=Math.abs,r=String.fromCharCode;function s(a,b,c){return a.replace(b,c)}function t(a,b){return 0|a.charCodeAt(b)}function u(a,b,c){return a.slice(b,c)}function v(a){return a.length}function w(a,b){return b.push(a),a}var x=1,y=1,z=0,A=0,B=0,C="";function D(a,b,c,d,e,f,g,h){return{value:a,root:b,parent:c,type:d,props:e,children:f,line:x,column:y,length:g,return:"",siblings:h}}function E(){return B=A<z?t(C,A++):0,y++,10===B&&(y=1,x++),B}function F(){return t(C,A)}function G(a){switch(a){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function H(a){var b,c;return(b=A-1,c=function a(b){for(;E();)switch(B){case b:return A;case 34:case 39:34!==b&&39!==b&&a(B);break;case 40:41===b&&a(b);break;case 92:E()}return A}(91===a?a+2:40===a?a+1:a),u(C,b,c)).trim()}function I(a,b,c,d,e,f,g,h,i,j,k,l){for(var n=e-1,o=0===e?f:[""],p=o.length,r=0,t=0,v=0;r<d;++r)for(var w=0,x=u(a,n+1,n=q(t=g[r])),y=a;w<p;++w)(y=(t>0?o[w]+" "+x:s(x,/&\f/g,o[w])).trim())&&(i[v++]=y);return D(a,b,c,0===e?m:h,i,j,k,l)}function J(a,b,c,d,e){return D(a,b,c,n,u(a,0,d),u(a,d+1,-1),d,e)}function K(a,b){for(var c="",d=0;d<a.length;d++)c+=b(a[d],d,a,b)||"";return c}function L(a,b,c,d){switch(a.type){case p:if(a.children.length)break;case"@import":case"@namespace":case n:return a.return=a.return||a.value;case l:return"";case o:return a.return=a.value+"{"+K(a.children,d)+"}";case m:if(!v(a.value=a.props.join(",")))return""}return v(c=K(a.children,d))?a.return=a.value+"{"+c+"}":""}var M=a.i(737132),N=a.i(152245),O=a.i(859378),P=a.i(575069),Q=a.i(38295);function R(a){if(null==a)return!0;if((0,O.isArrayLike)(a))return("function"==typeof a.splice||"string"==typeof a||!!(0,N.isBuffer)(a)||!!(0,Q.isTypedArray)(a)||!!(0,P.isArguments)(a))&&0===a.length;if("object"==typeof a||"function"==typeof a){let b;if(a instanceof Map||a instanceof Set)return 0===a.size;let c=Object.keys(a);return(b=a?.constructor,a===("function"==typeof b?b.prototype:Object.prototype))?0===c.filter(a=>"constructor"!==a).length:0===c.length}return!0}var S={id:"c4",detector:(0,i.__name)(a=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(a),"detector"),loader:(0,i.__name)(async()=>{let{diagram:b}=await a.A(613707);return{id:"c4",diagram:b}},"loader")},T="flowchart",U=(0,i.__name)((a,b)=>b?.flowchart?.defaultRenderer!=="dagre-wrapper"&&b?.flowchart?.defaultRenderer!=="elk"&&/^\s*graph/.test(a),"detector"),V=(0,i.__name)(async()=>{let{diagram:b}=await a.A(707604);return{id:T,diagram:b}},"loader"),W={id:T,detector:U,loader:V},X="flowchart-v2",Y=(0,i.__name)((a,b)=>b?.flowchart?.defaultRenderer!=="dagre-d3"&&(b?.flowchart?.defaultRenderer==="elk"&&(b.layout="elk"),!!/^\s*graph/.test(a)&&b?.flowchart?.defaultRenderer==="dagre-wrapper"||/^\s*flowchart/.test(a)),"detector"),Z=(0,i.__name)(async()=>{let{diagram:b}=await a.A(707604);return{id:X,diagram:b}},"loader"),$={id:X,detector:Y,loader:Z},_="swimlane",aa=(0,i.__name)(a=>/^\s*swimlane-beta\b/.test(a),"detector"),ab=(0,i.__name)(async()=>{let{diagram:b}=await a.A(819980);return{id:_,diagram:b}},"loader"),ac={id:_,detector:aa,loader:ab},ad={id:"er",detector:(0,i.__name)(a=>/^\s*erDiagram/.test(a),"detector"),loader:(0,i.__name)(async()=>{let{diagram:b}=await a.A(595386);return{id:"er",diagram:b}},"loader")},ae="gitGraph",af=(0,i.__name)(a=>/^\s*gitGraph/.test(a),"detector"),ag=(0,i.__name)(async()=>{let{diagram:b}=await a.A(126571);return{id:ae,diagram:b}},"loader"),ah={id:ae,detector:af,loader:ag},ai="gantt",aj=(0,i.__name)(a=>/^\s*gantt/.test(a),"detector"),ak=(0,i.__name)(async()=>{let{diagram:b}=await a.A(598518);return{id:ai,diagram:b}},"loader"),al={id:ai,detector:aj,loader:ak},am="info",an=(0,i.__name)(a=>/^\s*info/.test(a),"detector"),ao=(0,i.__name)(async()=>{let{diagram:b}=await a.A(814636);return{id:am,diagram:b}},"loader"),ap={id:am,detector:an,loader:ao},aq={id:"pie",detector:(0,i.__name)(a=>/^\s*pie/.test(a),"detector"),loader:(0,i.__name)(async()=>{let{diagram:b}=await a.A(934650);return{id:"pie",diagram:b}},"loader")},ar="quadrantChart",as=(0,i.__name)(a=>/^\s*quadrantChart/.test(a),"detector"),at=(0,i.__name)(async()=>{let{diagram:b}=await a.A(389088);return{id:ar,diagram:b}},"loader"),au={id:ar,detector:as,loader:at},av="xychart",aw=(0,i.__name)(a=>/^\s*xychart(-beta)?/.test(a),"detector"),ax=(0,i.__name)(async()=>{let{diagram:b}=await a.A(506751);return{id:av,diagram:b}},"loader"),ay={id:av,detector:aw,loader:ax},az="requirement",aA=(0,i.__name)(a=>/^\s*requirement(Diagram)?/.test(a),"detector"),aB=(0,i.__name)(async()=>{let{diagram:b}=await a.A(458290);return{id:az,diagram:b}},"loader"),aC={id:az,detector:aA,loader:aB},aD="sequence",aE=(0,i.__name)(a=>/^\s*sequenceDiagram/.test(a),"detector"),aF=(0,i.__name)(async()=>{let{diagram:b}=await a.A(295724);return{id:aD,diagram:b}},"loader"),aG={id:aD,detector:aE,loader:aF},aH="class",aI=(0,i.__name)((a,b)=>b?.class?.defaultRenderer!=="dagre-wrapper"&&/^\s*classDiagram/.test(a),"detector"),aJ=(0,i.__name)(async()=>{let{diagram:b}=await a.A(854712);return{id:aH,diagram:b}},"loader"),aK={id:aH,detector:aI,loader:aJ},aL="classDiagram",aM=(0,i.__name)((a,b)=>!!/^\s*classDiagram/.test(a)&&b?.class?.defaultRenderer==="dagre-wrapper"||/^\s*classDiagram-v2/.test(a),"detector"),aN=(0,i.__name)(async()=>{let{diagram:b}=await a.A(892569);return{id:aL,diagram:b}},"loader"),aO={id:aL,detector:aM,loader:aN},aP="state",aQ=(0,i.__name)((a,b)=>b?.state?.defaultRenderer!=="dagre-wrapper"&&/^\s*stateDiagram/.test(a),"detector"),aR=(0,i.__name)(async()=>{let{diagram:b}=await a.A(438231);return{id:aP,diagram:b}},"loader"),aS={id:aP,detector:aQ,loader:aR},aT="stateDiagram",aU=(0,i.__name)((a,b)=>!!(/^\s*stateDiagram-v2/.test(a)||/^\s*stateDiagram/.test(a)&&b?.state?.defaultRenderer==="dagre-wrapper"),"detector"),aV=(0,i.__name)(async()=>{let{diagram:b}=await a.A(991687);return{id:aT,diagram:b}},"loader"),aW={id:aT,detector:aU,loader:aV},aX="journey",aY=(0,i.__name)(a=>/^\s*journey/.test(a),"detector"),aZ=(0,i.__name)(async()=>{let{diagram:b}=await a.A(719552);return{id:aX,diagram:b}},"loader"),a$={id:aX,detector:aY,loader:aZ},a_={draw:(0,i.__name)((a,c,d)=>{h.log.debug("rendering svg for syntax error\n");let e=(0,b.selectSvgElement)(c),f=e.append("g");e.attr("viewBox","0 0 2412 512"),(0,g.configureSvgSize)(e,100,512,!0),f.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),f.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),f.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),f.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),f.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),f.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),f.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),f.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${d}`)},"draw")},a0={db:{},renderer:a_,parser:{parse:(0,i.__name)(()=>{},"parse")}},a1="flowchart-elk",a2=(0,i.__name)((a,b={})=>!!(/^\s*flowchart-elk/.test(a)||/^\s*(flowchart|graph)/.test(a)&&b?.flowchart?.defaultRenderer==="elk")&&(b.layout="elk",!0),"detector"),a3=(0,i.__name)(async()=>{let{diagram:b}=await a.A(707604);return{id:a1,diagram:b}},"loader"),a4={id:a1,detector:a2,loader:a3},a5="timeline",a6=(0,i.__name)(a=>/^\s*timeline/.test(a),"detector"),a7=(0,i.__name)(async()=>{let{diagram:b}=await a.A(623969);return{id:a5,diagram:b}},"loader"),a8={id:a5,detector:a6,loader:a7},a9="mindmap",ba=(0,i.__name)(a=>/^\s*mindmap/.test(a),"detector"),bb=(0,i.__name)(async()=>{let{diagram:b}=await a.A(165250);return{id:a9,diagram:b}},"loader"),bc={id:a9,detector:ba,loader:bb},bd="kanban",be=(0,i.__name)(a=>/^\s*kanban/.test(a),"detector"),bf=(0,i.__name)(async()=>{let{diagram:b}=await a.A(653408);return{id:bd,diagram:b}},"loader"),bg={id:bd,detector:be,loader:bf},bh="sankey",bi=(0,i.__name)(a=>/^\s*sankey(-beta)?/.test(a),"detector"),bj=(0,i.__name)(async()=>{let{diagram:b}=await a.A(215730);return{id:bh,diagram:b}},"loader"),bk={id:bh,detector:bi,loader:bj},bl="packet",bm=(0,i.__name)(a=>/^\s*packet(-beta)?/.test(a),"detector"),bn=(0,i.__name)(async()=>{let{diagram:b}=await a.A(992149);return{id:bl,diagram:b}},"loader"),bo={id:bl,detector:bm,loader:bn},bp="radar",bq=(0,i.__name)(a=>/^\s*radar-beta/.test(a),"detector"),br=(0,i.__name)(async()=>{let{diagram:b}=await a.A(840309);return{id:bp,diagram:b}},"loader"),bs={id:bp,detector:bq,loader:br},bt="block",bu=(0,i.__name)(a=>/^\s*block(-beta)?/.test(a),"detector"),bv=(0,i.__name)(async()=>{let{diagram:b}=await a.A(784520);return{id:bt,diagram:b}},"loader"),bw={id:bt,detector:bu,loader:bv},bx="treeView",by=(0,i.__name)(a=>/^\s*treeView-beta/.test(a),"detector"),bz=(0,i.__name)(async()=>{let{diagram:b}=await a.A(831868);return{id:bx,diagram:b}},"loader"),bA={id:bx,detector:by,loader:bz},bB="architecture",bC=(0,i.__name)(a=>/^\s*architecture/.test(a),"detector"),bD=(0,i.__name)(async()=>{let{diagram:b}=await a.A(969267);return{id:bB,diagram:b}},"loader"),bE={id:bB,detector:bC,loader:bD},bF="eventmodeling",bG=(0,i.__name)(a=>/^\s*eventmodeling/.test(a),"detector"),bH=(0,i.__name)(async()=>{let{diagram:b}=await a.A(835410);return{id:bF,diagram:b}},"loader"),bI={id:bF,detector:bG,loader:bH},bJ="ishikawa",bK=(0,i.__name)(a=>/^\s*ishikawa(-beta)?\b/i.test(a),"detector"),bL=(0,i.__name)(async()=>{let{diagram:b}=await a.A(147136);return{id:bJ,diagram:b}},"loader"),bM={id:bJ,detector:bK,loader:bL},bN="venn",bO=(0,i.__name)(a=>/^\s*venn-beta/.test(a),"detector"),bP=(0,i.__name)(async()=>{let{diagram:b}=await a.A(788557);return{id:bN,diagram:b}},"loader"),bQ={id:bN,detector:bO,loader:bP},bR="treemap",bS=(0,i.__name)(a=>/^\s*treemap/.test(a),"detector"),bT=(0,i.__name)(async()=>{let{diagram:b}=await a.A(728413);return{id:bR,diagram:b}},"loader"),bU={id:bR,detector:bS,loader:bT},bV="wardley",bW=(0,i.__name)(a=>/^\s*wardley-beta/i.test(a),"detector"),bX=(0,i.__name)(async()=>{let{diagram:b}=await a.A(925161);return{id:bV,diagram:b}},"loader"),bY={id:bV,detector:bW,loader:bX},bZ="cynefin",b$=(0,i.__name)(a=>/^\s*cynefin-beta(?:[\s:]|$)/.test(a),"detector"),b_=(0,i.__name)(async()=>{let{diagram:b}=await a.A(388833);return{id:bZ,diagram:b}},"loader"),b0={id:bZ,detector:b$,loader:b_},b1="railroad",b2=(0,i.__name)(a=>/^\s*railroad-beta/i.test(a),"detector"),b3=(0,i.__name)(async()=>{let{diagram:b}=await a.A(523431);return{id:b1,diagram:b}},"loader"),b4={id:b1,detector:b2,loader:b3},b5="railroadEbnf",b6=(0,i.__name)(a=>/^\s*railroad-ebnf-beta/i.test(a),"detector"),b7=(0,i.__name)(async()=>{let{diagram:b}=await a.A(70220);return{id:b5,diagram:b}},"loader"),b8={id:b5,detector:b6,loader:b7},b9="railroadAbnf",ca=(0,i.__name)(a=>/^\s*railroad-abnf-beta/i.test(a),"detector"),cb=(0,i.__name)(async()=>{let{diagram:b}=await a.A(929490);return{id:b9,diagram:b}},"loader"),cc={id:b9,detector:ca,loader:cb},cd="railroadPeg",ce=(0,i.__name)(a=>/^\s*railroad-peg-beta/i.test(a),"detector"),cf=(0,i.__name)(async()=>{let{diagram:b}=await a.A(325455);return{id:cd,diagram:b}},"loader"),cg={id:cd,detector:ce,loader:cf},ch=!1,ci=(0,i.__name)(()=>{ch||(ch=!0,(0,g.registerDiagram)("error",a0,a=>"error"===a.toLowerCase().trim()),(0,g.registerDiagram)("---",{db:{clear:(0,i.__name)(()=>{},"clear")},styles:{},renderer:{draw:(0,i.__name)(()=>{},"draw")},parser:{parse:(0,i.__name)(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:(0,i.__name)(()=>null,"init")},a=>a.toLowerCase().trimStart().startsWith("---")),(0,g.registerLazyLoadedDiagrams)(a4,bc,bE),(0,g.registerLazyLoadedDiagrams)(S,bg,aO,aK,ad,al,ap,aq,aC,aG,ac,$,W,a8,ah,aW,aS,a$,au,bk,bo,ay,bw,bI,bA,bs,bM,bU,b4,b8,cc,cg,bQ,bY,b0))},"addDiagrams"),cj=(0,i.__name)(async()=>{h.log.debug("Loading registered diagrams");let a=(await Promise.allSettled(Object.entries(g.detectors).map(async([a,{detector:b,loader:c}])=>{if(c)try{(0,g.getDiagram)(a)}catch{try{let{diagram:a,id:d}=await c();(0,g.registerDiagram)(d,a,b)}catch(b){throw h.log.error(`Failed to load external diagram with key ${a}. Removing from detectors.`),delete g.detectors[a],b}}}))).filter(a=>"rejected"===a.status);if(a.length>0){for(let b of(h.log.error(`Failed to load ${a.length} external diagrams`),a))h.log.error(b);throw Error(`Failed to load ${a.length} external diagrams`)}},"loadRegisteredDiagrams");function ck(a,b){a.attr("role","graphics-document document"),""!==b&&a.attr("aria-roledescription",b)}function cl(a,b,c,d){if(void 0!==a.insert){if(c){let b=`chart-desc-${d}`;a.attr("aria-describedby",b),a.insert("desc",":first-child").attr("id",b).text(c)}if(b){let c=`chart-title-${d}`;a.attr("aria-labelledby",c),a.insert("title",":first-child").attr("id",c).text(b)}}}(0,i.__name)(ck,"setA11yDiagramInfo"),(0,i.__name)(cl,"addSVGa11yTitleDescription");var cm=class a{constructor(a,b,c,d,e){this.type=a,this.text=b,this.db=c,this.parser=d,this.renderer=e}static{(0,i.__name)(this,"Diagram")}static async fromText(b,c={}){let d=(0,g.getConfig)(),e=(0,g.detectType)(b,d);b=(0,f.encodeEntities)(b)+"\n";try{(0,g.getDiagram)(e)}catch{let a=(0,g.getDiagramLoader)(e);if(!a)throw new g.UnknownDiagramError(`Diagram ${e} not found.`);let{id:b,diagram:c}=await a();(0,g.registerDiagram)(b,c)}let{db:h,parser:i,renderer:j,init:k}=(0,g.getDiagram)(e);return i.parser&&(i.parser.yy=h),h.clear?.(),k?.(d),c.title&&h.setDiagramTitle?.(c.title),await i.parse(b),new a(e,b,h,i,j)}async render(a,b){await this.renderer.draw(this.text,a,b,this)}getParser(){return this.parser}getType(){return this.type}},cn=[],co=(0,i.__name)(()=>{cn.forEach(a=>{a()}),cn=[]},"attachFunctions"),cp=(0,i.__name)(a=>a.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function cq(a){let b=a.match(g.frontMatterRegex);if(!b)return{text:a,metadata:{}};let d=b[1],e=d?b[2].split("\n").map(a=>a.startsWith(d)?a.slice(d.length):a).join("\n"):b[2],f=(0,c.load)(e,{schema:c.JSON_SCHEMA})??{};f="object"!=typeof f||Array.isArray(f)?{}:f;let h={};return f.displayMode&&(h.displayMode=f.displayMode.toString()),f.title&&(h.title=f.title.toString()),f.config&&(h.config=f.config),{text:a.slice(b[0].length),metadata:h}}(0,i.__name)(cq,"extractFrontMatter");var cr=(0,i.__name)(a=>a.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(a,b,c)=>"<"+b+c.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),cs=(0,i.__name)(a=>{let{text:b,metadata:c}=cq(a),{displayMode:d,title:e,config:f={}}=c;return d&&(f.gantt||(f.gantt={}),f.gantt.displayMode=d),{title:e,config:f,text:b}},"processFrontmatter"),ct=(0,i.__name)(a=>{let b=f.utils_default.detectInit(a)??{},c=f.utils_default.detectDirective(a,"wrap");return Array.isArray(c)?b.wrap=c.some(({type:a})=>"wrap"===a):c?.type==="wrap"&&(b.wrap=!0),{text:(0,f.removeDirectives)(a),directive:b}},"processDirectives");function cu(a){let b=cs(cr(a)),c=ct(b.text),d=(0,f.cleanAndMerge)(b.config,c.directive);return{code:a=cp(c.text),title:b.title,config:d}}function cv(a){return btoa(Array.from(new TextEncoder().encode(a),a=>String.fromCodePoint(a)).join(""))}(0,i.__name)(cu,"preprocessDiagram"),(0,i.__name)(cv,"toBase64");var cw=["foreignobject"],cx=["dominant-baseline"];function cy(a){let b=cu(a);return(0,g.reset)(),(0,g.addDirective)(b.config??{}),b}async function cz(a,b){ci();try{let{code:b,config:c}=cy(a);return{diagramType:(await cL(b)).type,config:c}}catch(a){if(b?.suppressErrors)return!1;throw a}}(0,i.__name)(cy,"processAndSetConfigs"),(0,i.__name)(cz,"parse");var cA=(0,i.__name)((a,b,c=[])=>{let d=(0,g.sanitizeCss)(`{ ${c.join(" !important; ")} !important; }`);return`.${a} ${b} ${d}`},"cssImportantStyles"),cB=(0,i.__name)((a,b=new Map)=>{let c=new CSSStyleSheet;if(void 0!==a.fontFamily&&c.insertRule(`:root { --mermaid-font-family: ${a.fontFamily}}`,c.cssRules.length),void 0!==a.altFontFamily&&c.insertRule(`:root { --mermaid-alt-font-family: ${a.altFontFamily}}`,c.cssRules.length),b instanceof Map){let d=(0,g.getEffectiveHtmlLabels)(a)?["> *","span"]:["rect","polygon","ellipse","circle","path"];b.forEach(a=>{R(a.styles)||d.forEach(b=>{c.insertRule(cA(a.id,b,a.styles),c.cssRules.length)}),R(a.textStyles)||c.insertRule(cA(a.id,"tspan",(a?.textStyles||[]).map(a=>a.replace("color","fill"))),c.cssRules.length)})}let d="";if(void 0!==a.themeCSS)if("function"==typeof c.replaceSync){let b=new CSSStyleSheet;b.replaceSync(a.themeCSS),d=(0,g.cssStyleSheetToString)(b)+"\n"}else d+=`${a.themeCSS}
|
|
2
2
|
`;return d+(0,g.cssStyleSheetToString)(c)},"createCssStyles"),cC=(0,i.__name)((a,b)=>{var c,d,e,f,g;return K((e=function a(b,c,d,e,f,g,h,i,j){for(var k,m,n,o,p=0,q=0,z=h,K=0,L=0,M=0,N=1,O=1,P=1,Q=0,R=0,S="",T=f,U=g,V=e,W=S;O;)switch(M=R,R=E()){case 40:108!=M&&58==t(W,z-1)?(Q++,W+="("):W+=H(R);break;case 41:Q--,W+=")";break;case 34:case 39:case 91:W+=H(R);break;case 9:case 10:case 13:case 32:if(Q>0){W+=r(R);break}W+=function(a){for(;B=F();)if(B<33)E();else break;return G(a)>2||G(B)>3?"":" "}(M);break;case 92:W+=function(a,b){for(var c;--b&&E()&&!(B<48)&&!(B>102)&&(!(B>57)||!(B<65))&&(!(B>70)||!(B<97)););return c=A+(b<6&&32==F()&&32==E()),u(C,a,c)}(A-1,7);continue;case 47:switch(F()){case 42:case 47:w((k=function(a,b){for(;E();)if(a+B===57)break;else if(a+B===84&&47===F())break;return"/*"+u(C,b,A-1)+"*"+r(47===a?a:E())}(E(),A),m=c,n=d,o=j,D(k,m,n,l,r(B),u(k,2,-2),0,o)),j),(5==G(M||1)||5==G(F()||1))&&v(W)&&" "!==u(W,-1,void 0)&&(W+=" ");break;default:W+="/"}break;case 123*N:i[p++]=v(W)*P;case 125*N:case 59:case 0:if(Q>0&&R){W+=r(R);break}switch(R){case 0:case 125:O=0;case 59+q:-1==P&&(W=s(W,/\f/g,"")),L>0&&(v(W)-z||0===N)&&w(L>32?J(W+";",e,d,z-1,j):J(s(W," ","")+";",e,d,z-2,j),j);break;case 59:W+=";";default:if(w(V=I(W,c,d,p,q,f,i,S,T=[],U=[],z,g),g),123===R)if(0===q)a(W,c,V,V,T,g,z,i,U);else{switch(K){case 99:if(110===t(W,3))break;case 108:if(97===t(W,2))break;default:q=0;case 100:case 109:case 115:}q?a(b,V,V,e&&w(I(b,V,V,0,0,f,i,S,f,T=[],z,U),U),f,U,z,i,e?T:U):a(W,V,V,V,[""],U,0,i,U)}}p=q=L=0,N=P=1,S=W="",z=h;break;case 58:z=1+v(W),L=M;default:if(N<1){if(123==R)--N;else if(125==R&&0==N++&&125==(B=A>0?t(C,--A):0,y--,10===B&&(y=1,x--),B))continue}switch(W+=r(R),R*N){case 38:P=q>0?1:(W+="\f",-1);break;case 44:if(Q>0)break;i[p++]=(v(W)-1)*P,P=1;break;case 64:45===F()&&(W+=H(E())),K=F(),q=z=v(S=W+=function(a){for(;!G(F());)E();return u(C,a,A)}(A)),R++;break;case 45:45===M&&2==v(W)&&(N=0)}}return g}("",null,null,null,[""],(d=c=`${a}{${b}}`,x=y=1,z=v(C=d),A=0,c=[]),0,[0],c),C="",e),(g=(f=[(0,i.__name)(function(b,c,d,e){"rule"===b.type&&Array.isArray(b.props)?b.parent&&b.parent.type===o||(b.props=b.props.map(c=>c===a&&Array.isArray(b.children)&&b.children.every(a=>"decl"===a.type&&new Set(["font-family","font-size","fill"]).has(a.props))||(c.startsWith(`${a} `)||c.startsWith(`${a}>`))&&!c.startsWith(`${a} ||`)?c:`${a} ${c}`)):b.type.startsWith("@")&&(["@media","@supports",p,"@scope","@container","@starting-style",o].includes(b.type)||(h.log.warn(`Removing unsupported at-rule ${b.type} from CSS`),b.type=l))},"addNamespace"),L]).length,function(a,b,c,d){for(var e="",h=0;h<g;h++)e+=f[h](a,b,c,d)||"";return e}))},"compileCSS"),cD=(0,i.__name)((a,b,c,d)=>{let e=cB(a,c),f=(0,g.styles_default)(b,e,{...a.themeVariables,theme:a.theme,look:a.look},d);return cC(d,f)},"createUserStyles"),cE=(0,i.__name)((a="",b,c)=>{let d=a;return c||b||(d=d.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),d=(d=(0,f.decodeEntities)(d)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),cF=(0,i.__name)((a="",b)=>{let c=b?.viewBox?.baseVal?.height?b.viewBox.baseVal.height+"px":"100%",d=cv(`<body style="margin:0">${a}</body>`);return`<iframe style="width:100%;height:${c};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${d}" sandbox="allow-top-navigation-by-user-activation allow-popups">
|
|
3
3
|
The "iframe" tag is not supported by your browser.
|
|
4
|
-
</iframe>`},"putIntoIFrame"),cG=(0,i.__name)((a,b,c,d,e)=>{let f=a.append("div");f.attr("id",c),d&&f.attr("style",d);let g=f.append("svg").attr("id",b).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return e&&g.attr("xmlns:xlink",e),g.append("g"),a},"appendDivSvgG");function cH(a,b){return a.append("iframe").attr("id",b).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,i.__name)(cH,"sandboxedIframe");var cI=(0,i.__name)((a,b,c,d)=>{a.getElementById(b)?.remove(),a.getElementById(c)?.remove(),a.getElementById(d)?.remove()},"removeExistingElements"),cJ=(0,i.__name)(async function(a,b,c){let d,e;ci();let f=cy(b);b=f.code;let j=(0,g.getConfig)();h.log.debug(j),b.length>(j?.maxTextSize??5e4)&&(b="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let l=`#${a}`,m="i"+a,n="#"+m,o="d"+a,p="#"+o,q=(0,i.__name)(()=>{let a=s?n:p,b=(0,k.select)(a).node();b&&"remove"in b&&b.remove()},"removeTempElements"),r=(0,k.select)(document.body),s="sandbox"===j.securityLevel,t="loose"===j.securityLevel,u=j.fontFamily;if(void 0!==c){if(c&&(c.innerHTML=""),s){let a=cH((0,k.select)(c),m);(r=(0,k.select)(a.nodes()[0].contentDocument.body)).node().style.margin="0"}else r=(0,k.select)(c);cG(r,a,o,`font-family: ${u}`,"http://www.w3.org/1999/xlink")}else{if(cI(document,a,o,m),s){let a=cH((0,k.select)(document.body),m);(r=(0,k.select)(a.nodes()[0].contentDocument.body)).node().style.margin="0"}else r=(0,k.select)("body");cG(r,a,o)}try{d=await cm.fromText(b,{title:f.title})}catch(a){if(j.suppressErrorRendering)throw q(),a;d=await cm.fromText("error"),e=a}let v=r.select(p).node(),w=d.type,x=v.firstChild,y=x.firstChild,z=cD(j,w,d.renderer.getClasses?.(b,d),l),A=document.createElement("style");A.innerHTML=z,x.insertBefore(A,y);try{await d.renderer.draw(b,a,"11.17.2",d)}catch(c){throw j.suppressErrorRendering?q():a_.draw(b,a,"11.17.2"),c}cM(w,r.select(`${p} svg`),d.db.getAccTitle?.(),d.db.getAccDescription?.());let B=(0,i.__name)(()=>{r.select(`[id="${a}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let b=r.select(p).node().innerHTML;return h.log.debug("config.arrowMarkerAbsolute",j.arrowMarkerAbsolute),b=cE(b,s,(0,g.evaluate)(j.arrowMarkerAbsolute)),s?b=cF(b,r.select(p+" svg").node()):t||(b=M.default.sanitize(b,{ADD_TAGS:cw,ADD_ATTR:cx,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),co(),b},"serializeSvg")();if(e)throw e;return q(),{diagramType:w,svg:B,bindFunctions:d.db.bindFunctions}},"render");function cK(a={}){let b=(0,g.assignWithDepth_default)({},a);b?.fontFamily&&!b.themeVariables?.fontFamily&&(b.themeVariables||(b.themeVariables={}),b.themeVariables.fontFamily=b.fontFamily),(0,g.saveConfigFromInitialize)(b),b?.theme&&b.theme in g.themes_default?b.themeVariables=g.themes_default[b.theme].getThemeVariables(b.themeVariables):b&&(b.themeVariables=g.themes_default.default.getThemeVariables(b.themeVariables));let c="object"==typeof b?(0,g.setSiteConfig)(b):(0,g.getSiteConfig)();(0,h.setLogLevel)(c.logLevel),ci()}(0,i.__name)(cK,"initialize");var cL=(0,i.__name)((a,b={})=>{let{code:c}=cu(a);return cm.fromText(c,b)},"getDiagramFromText");function cM(a,b,c,d){ck(b,a),cl(b,c,d,b.attr("id"))}(0,i.__name)(cM,"addA11yInfo");var cN=Object.freeze({render:cJ,parse:cz,getDiagramFromText:cL,initialize:cK,getConfig:g.getConfig,setConfig:g.setConfig,getSiteConfig:g.getSiteConfig,updateSiteConfig:g.updateSiteConfig,reset:(0,i.__name)(()=>{(0,g.reset)()},"reset"),globalReset:(0,i.__name)(()=>{(0,g.reset)(g.defaultConfig)},"globalReset"),defaultConfig:g.defaultConfig});(0,h.setLogLevel)((0,g.getConfig)().logLevel),(0,g.reset)((0,g.getConfig)());var cO=(0,i.__name)((a,b,c)=>{h.log.warn(a),(0,f.isDetailedError)(a)?(c&&c(a.str,a.hash),b.push({...a,message:a.str,error:a})):(c&&c(a),a instanceof Error&&b.push({str:a.message,message:a.message,hash:a.name,error:a}))},"handleError"),cP=(0,i.__name)(async function(a={querySelector:".mermaid"}){try{await cQ(a)}catch(b){if((0,f.isDetailedError)(b)&&h.log.error(b.str),c0.parseError&&c0.parseError(b),!a.suppressErrors)throw h.log.error("Use the suppressErrors option to suppress these errors"),b}},"run"),cQ=(0,i.__name)(async function({postRenderCallback:a,querySelector:b,nodes:c}={querySelector:".mermaid"}){let d,e,g=cN.getConfig();if(h.log.debug(`${!a?"No ":""}Callback function found`),c)d=c;else if(b)d=document.querySelectorAll(b);else throw Error("Nodes and querySelector are both undefined");h.log.debug(`Found ${d.length} diagrams`),g?.startOnLoad!==void 0&&(h.log.debug("Start On Load: "+g?.startOnLoad),cN.updateSiteConfig({startOnLoad:g?.startOnLoad}));let i=new f.utils_default.InitIDGenerator(g.deterministicIds,g.deterministicIDSeed),k=[];for(let b of Array.from(d)){if(h.log.info("Rendering diagram: "+b.id),b.getAttribute("data-processed"))continue;b.setAttribute("data-processed","true");let c=`mermaid-${i.next()}`;e=b.innerHTML,e=(0,j.dedent)(f.utils_default.entityDecode(e)).trim().replace(/<br\s*\/?>/gi,"<br/>");let d=f.utils_default.detectInit(e);d&&h.log.debug("Detected early reinit: ",d);try{let{svg:d,bindFunctions:f}=await c$(c,e,b);b.innerHTML=d,a&&await a(c),f&&f(b)}catch(a){cO(a,k,c0.parseError)}}if(k.length>0)throw k[0]},"runThrowsErrors"),cR=(0,i.__name)(function(a){cN.initialize(a)},"initialize"),cS=(0,i.__name)(async function(a,b,c){h.log.warn("mermaid.init is deprecated. Please use run instead."),a&&cR(a);let d={postRenderCallback:c,querySelector:".mermaid"};"string"==typeof b?d.querySelector=b:b&&(b instanceof HTMLElement?d.nodes=[b]:d.nodes=b),await cP(d)},"init"),cT=(0,i.__name)(async(a,{lazyLoad:b=!0}={})=>{ci(),(0,g.registerLazyLoadedDiagrams)(...a),!1===b&&await cj()},"registerExternalDiagrams"),cU=(0,i.__name)(function(){if(c0.startOnLoad){let{startOnLoad:a}=cN.getConfig();a&&c0.run().catch(a=>h.log.error("Mermaid failed to initialize",a))}},"contentLoaded");"u">typeof document&&window.addEventListener("load",cU,!1);var cV=(0,i.__name)(function(a){c0.parseError=a},"setParseErrorHandler"),cW=[],cX=!1,cY=(0,i.__name)(async()=>{if(!cX){for(cX=!0;cW.length>0;){let a=cW.shift();if(a)try{await a()}catch(a){h.log.error("Error executing queue",a)}}cX=!1}},"executeQueue"),cZ=(0,i.__name)(async(a,b)=>new Promise((c,d)=>{let e=(0,i.__name)(()=>new Promise((e,f)=>{cN.parse(a,b).then(a=>{e(a),c(a)},a=>{h.log.error("Error parsing",a),c0.parseError?.(a),f(a),d(a)})}),"performCall");cW.push(e),cY().catch(d)}),"parse"),c$=(0,i.__name)((a,b,c)=>new Promise((d,e)=>{let f=(0,i.__name)(()=>new Promise((f,g)=>{cN.render(a,b,c).then(a=>{f(a),d(a)},a=>{h.log.error("Error parsing",a),c0.parseError?.(a),g(a),e(a)})}),"performCall");cW.push(f),cY().catch(e)}),"render"),c_=(0,i.__name)(()=>Object.keys(g.detectors).map(a=>({id:a})),"getRegisteredDiagramsMetadata"),c0={startOnLoad:!0,mermaidAPI:cN,parse:cZ,render:c$,init:cS,run:cP,registerExternalDiagrams:cT,registerLayoutLoaders:d.registerLayoutLoaders,initialize:cR,parseError:void 0,contentLoaded:cU,setParseErrorHandler:cV,detectType:g.detectType,registerIconPacks:e.registerIconPacks,getRegisteredDiagramsMetadata:c_},c1={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0},c2=function(a={}){let b=!1,c={...c1,...a.config},d={initialize(d){c={...c1,...a.config,...d},c0.initialize(c),b=!0},render:async(a,d)=>(b||(c0.initialize(c),b=!0),await c0.render(a,d))};return{name:"mermaid",type:"diagram",language:"mermaid",getMermaid:a=>(a&&d.initialize(a),d)}}();a.s(["mermaid",0,c2],420327)},268401,a=>{"use strict";a.i(173111),a.s([])},657189,a=>{"use strict";var b=a.i(173111);a.s(["Streamdown",()=>b.C])},846991,a=>a.a(async(b,c)=>{try{var d=a.i(187924),e=a.i(193064),f=a.i(366831),g=a.i(420327),h=a.i(572131);a.i(268401);var i=a.i(657189),j=b([e]);[e]=j.then?(await j)():j;let k={plugins:{code:e.code,mermaid:g.mermaid,math:f.math}},l=(0,h.memo)(function(a){return(0,d.jsx)(i.Streamdown,{...k,...a})});a.s(["Markdown",0,
|
|
4
|
+
</iframe>`},"putIntoIFrame"),cG=(0,i.__name)((a,b,c,d,e)=>{let f=a.append("div");f.attr("id",c),d&&f.attr("style",d);let g=f.append("svg").attr("id",b).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return e&&g.attr("xmlns:xlink",e),g.append("g"),a},"appendDivSvgG");function cH(a,b){return a.append("iframe").attr("id",b).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,i.__name)(cH,"sandboxedIframe");var cI=(0,i.__name)((a,b,c,d)=>{a.getElementById(b)?.remove(),a.getElementById(c)?.remove(),a.getElementById(d)?.remove()},"removeExistingElements"),cJ=(0,i.__name)(async function(a,b,c){let d,e;ci();let f=cy(b);b=f.code;let j=(0,g.getConfig)();h.log.debug(j),b.length>(j?.maxTextSize??5e4)&&(b="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let l=`#${a}`,m="i"+a,n="#"+m,o="d"+a,p="#"+o,q=(0,i.__name)(()=>{let a=s?n:p,b=(0,k.select)(a).node();b&&"remove"in b&&b.remove()},"removeTempElements"),r=(0,k.select)(document.body),s="sandbox"===j.securityLevel,t="loose"===j.securityLevel,u=j.fontFamily;if(void 0!==c){if(c&&(c.innerHTML=""),s){let a=cH((0,k.select)(c),m);(r=(0,k.select)(a.nodes()[0].contentDocument.body)).node().style.margin="0"}else r=(0,k.select)(c);cG(r,a,o,`font-family: ${u}`,"http://www.w3.org/1999/xlink")}else{if(cI(document,a,o,m),s){let a=cH((0,k.select)(document.body),m);(r=(0,k.select)(a.nodes()[0].contentDocument.body)).node().style.margin="0"}else r=(0,k.select)("body");cG(r,a,o)}try{d=await cm.fromText(b,{title:f.title})}catch(a){if(j.suppressErrorRendering)throw q(),a;d=await cm.fromText("error"),e=a}let v=r.select(p).node(),w=d.type,x=v.firstChild,y=x.firstChild,z=cD(j,w,d.renderer.getClasses?.(b,d),l),A=document.createElement("style");A.innerHTML=z,x.insertBefore(A,y);try{await d.renderer.draw(b,a,"11.17.2",d)}catch(c){throw j.suppressErrorRendering?q():a_.draw(b,a,"11.17.2"),c}cM(w,r.select(`${p} svg`),d.db.getAccTitle?.(),d.db.getAccDescription?.());let B=(0,i.__name)(()=>{r.select(`[id="${a}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let b=r.select(p).node().innerHTML;return h.log.debug("config.arrowMarkerAbsolute",j.arrowMarkerAbsolute),b=cE(b,s,(0,g.evaluate)(j.arrowMarkerAbsolute)),s?b=cF(b,r.select(p+" svg").node()):t||(b=M.default.sanitize(b,{ADD_TAGS:cw,ADD_ATTR:cx,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),co(),b},"serializeSvg")();if(e)throw e;return q(),{diagramType:w,svg:B,bindFunctions:d.db.bindFunctions}},"render");function cK(a={}){let b=(0,g.assignWithDepth_default)({},a);b?.fontFamily&&!b.themeVariables?.fontFamily&&(b.themeVariables||(b.themeVariables={}),b.themeVariables.fontFamily=b.fontFamily),(0,g.saveConfigFromInitialize)(b),b?.theme&&b.theme in g.themes_default?b.themeVariables=g.themes_default[b.theme].getThemeVariables(b.themeVariables):b&&(b.themeVariables=g.themes_default.default.getThemeVariables(b.themeVariables));let c="object"==typeof b?(0,g.setSiteConfig)(b):(0,g.getSiteConfig)();(0,h.setLogLevel)(c.logLevel),ci()}(0,i.__name)(cK,"initialize");var cL=(0,i.__name)((a,b={})=>{let{code:c}=cu(a);return cm.fromText(c,b)},"getDiagramFromText");function cM(a,b,c,d){ck(b,a),cl(b,c,d,b.attr("id"))}(0,i.__name)(cM,"addA11yInfo");var cN=Object.freeze({render:cJ,parse:cz,getDiagramFromText:cL,initialize:cK,getConfig:g.getConfig,setConfig:g.setConfig,getSiteConfig:g.getSiteConfig,updateSiteConfig:g.updateSiteConfig,reset:(0,i.__name)(()=>{(0,g.reset)()},"reset"),globalReset:(0,i.__name)(()=>{(0,g.reset)(g.defaultConfig)},"globalReset"),defaultConfig:g.defaultConfig});(0,h.setLogLevel)((0,g.getConfig)().logLevel),(0,g.reset)((0,g.getConfig)());var cO=(0,i.__name)((a,b,c)=>{h.log.warn(a),(0,f.isDetailedError)(a)?(c&&c(a.str,a.hash),b.push({...a,message:a.str,error:a})):(c&&c(a),a instanceof Error&&b.push({str:a.message,message:a.message,hash:a.name,error:a}))},"handleError"),cP=(0,i.__name)(async function(a={querySelector:".mermaid"}){try{await cQ(a)}catch(b){if((0,f.isDetailedError)(b)&&h.log.error(b.str),c0.parseError&&c0.parseError(b),!a.suppressErrors)throw h.log.error("Use the suppressErrors option to suppress these errors"),b}},"run"),cQ=(0,i.__name)(async function({postRenderCallback:a,querySelector:b,nodes:c}={querySelector:".mermaid"}){let d,e,g=cN.getConfig();if(h.log.debug(`${!a?"No ":""}Callback function found`),c)d=c;else if(b)d=document.querySelectorAll(b);else throw Error("Nodes and querySelector are both undefined");h.log.debug(`Found ${d.length} diagrams`),g?.startOnLoad!==void 0&&(h.log.debug("Start On Load: "+g?.startOnLoad),cN.updateSiteConfig({startOnLoad:g?.startOnLoad}));let i=new f.utils_default.InitIDGenerator(g.deterministicIds,g.deterministicIDSeed),k=[];for(let b of Array.from(d)){if(h.log.info("Rendering diagram: "+b.id),b.getAttribute("data-processed"))continue;b.setAttribute("data-processed","true");let c=`mermaid-${i.next()}`;e=b.innerHTML,e=(0,j.dedent)(f.utils_default.entityDecode(e)).trim().replace(/<br\s*\/?>/gi,"<br/>");let d=f.utils_default.detectInit(e);d&&h.log.debug("Detected early reinit: ",d);try{let{svg:d,bindFunctions:f}=await c$(c,e,b);b.innerHTML=d,a&&await a(c),f&&f(b)}catch(a){cO(a,k,c0.parseError)}}if(k.length>0)throw k[0]},"runThrowsErrors"),cR=(0,i.__name)(function(a){cN.initialize(a)},"initialize"),cS=(0,i.__name)(async function(a,b,c){h.log.warn("mermaid.init is deprecated. Please use run instead."),a&&cR(a);let d={postRenderCallback:c,querySelector:".mermaid"};"string"==typeof b?d.querySelector=b:b&&(b instanceof HTMLElement?d.nodes=[b]:d.nodes=b),await cP(d)},"init"),cT=(0,i.__name)(async(a,{lazyLoad:b=!0}={})=>{ci(),(0,g.registerLazyLoadedDiagrams)(...a),!1===b&&await cj()},"registerExternalDiagrams"),cU=(0,i.__name)(function(){if(c0.startOnLoad){let{startOnLoad:a}=cN.getConfig();a&&c0.run().catch(a=>h.log.error("Mermaid failed to initialize",a))}},"contentLoaded");"u">typeof document&&window.addEventListener("load",cU,!1);var cV=(0,i.__name)(function(a){c0.parseError=a},"setParseErrorHandler"),cW=[],cX=!1,cY=(0,i.__name)(async()=>{if(!cX){for(cX=!0;cW.length>0;){let a=cW.shift();if(a)try{await a()}catch(a){h.log.error("Error executing queue",a)}}cX=!1}},"executeQueue"),cZ=(0,i.__name)(async(a,b)=>new Promise((c,d)=>{let e=(0,i.__name)(()=>new Promise((e,f)=>{cN.parse(a,b).then(a=>{e(a),c(a)},a=>{h.log.error("Error parsing",a),c0.parseError?.(a),f(a),d(a)})}),"performCall");cW.push(e),cY().catch(d)}),"parse"),c$=(0,i.__name)((a,b,c)=>new Promise((d,e)=>{let f=(0,i.__name)(()=>new Promise((f,g)=>{cN.render(a,b,c).then(a=>{f(a),d(a)},a=>{h.log.error("Error parsing",a),c0.parseError?.(a),g(a),e(a)})}),"performCall");cW.push(f),cY().catch(e)}),"render"),c_=(0,i.__name)(()=>Object.keys(g.detectors).map(a=>({id:a})),"getRegisteredDiagramsMetadata"),c0={startOnLoad:!0,mermaidAPI:cN,parse:cZ,render:c$,init:cS,run:cP,registerExternalDiagrams:cT,registerLayoutLoaders:d.registerLayoutLoaders,initialize:cR,parseError:void 0,contentLoaded:cU,setParseErrorHandler:cV,detectType:g.detectType,registerIconPacks:e.registerIconPacks,getRegisteredDiagramsMetadata:c_},c1={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0},c2=function(a={}){let b=!1,c={...c1,...a.config},d={initialize(d){c={...c1,...a.config,...d},c0.initialize(c),b=!0},render:async(a,d)=>(b||(c0.initialize(c),b=!0),await c0.render(a,d))};return{name:"mermaid",type:"diagram",language:"mermaid",getMermaid:a=>(a&&d.initialize(a),d)}}();a.s(["mermaid",0,c2],420327)},268401,a=>{"use strict";a.i(173111),a.s([])},657189,a=>{"use strict";var b=a.i(173111);a.s(["Streamdown",()=>b.C])},846991,a=>a.a(async(b,c)=>{try{var d=a.i(187924),e=a.i(193064),f=a.i(366831),g=a.i(420327),h=a.i(572131);a.i(268401);var i=a.i(657189),j=b([e]);[e]=j.then?(await j)():j;let k={plugins:{code:e.code,mermaid:g.mermaid,math:f.math}},l={light:{config:{theme:"default",themeVariables:{xyChart:{plotColorPalette:"#2563eb,#16a34a,#dc2626,#ca8a04,#6b7280,#171717,#334155,#7c3aed"}}}},dark:{config:{theme:"dark"}}},m=a=>{let b=new MutationObserver(a);return b.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>b.disconnect()},n=()=>document.documentElement.classList.contains("dark"),o=(0,h.memo)(function(a){let b=(0,h.useSyncExternalStore)(m,n,()=>!1)?"dark":"light";return(0,d.jsx)(i.Streamdown,{...k,mermaid:l[b],...a},b)});a.s(["Markdown",0,o]),c()}catch(a){c(a)}},!1)];
|
|
5
5
|
|
|
6
6
|
//# sourceMappingURL=%5Broot-of-the-server%5D__0lyi8i2._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[193695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},291927,a=>{"use strict";var b=a.i(907997),c=a.i(912714);a.i(570396);var d=a.i(673727);let e=a=>`/api/file/${a.split("/").map(encodeURIComponent).join("/")}`;var f=a.i(569572),g=a.i(744761),h=a.i(684321),i=a.i(821415);let j=async a=>(await a).path.join("/");async function k({params:a}){let b=await j(a);return{title:b.split("/").pop()??b}}async function l({params:a}){let
|
|
1
|
+
module.exports=[193695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},291927,a=>{"use strict";var b=a.i(907997),c=a.i(912714);a.i(570396);var d=a.i(673727);let e=a=>`/api/file/${a.split("/").map(encodeURIComponent).join("/")}`;var f=a.i(569572),g=a.i(744761),h=a.i(684321),i=a.i(821415);let j=async a=>(await a).path.map(decodeURIComponent).join("/");async function k({params:a}){let b=await j(a);return{title:b.split("/").pop()??b}}async function l({params:a}){let f=await j(a),g=await (0,i.insideWorkspace)(f);g||(0,d.notFound)();let k=await (0,c.stat)(g).catch(()=>null);k?.isFile()||(0,d.notFound)();let n=(0,h.viewKindOf)(f);return(0,b.jsxs)("main",{className:"min-h-screen bg-background",children:[(0,b.jsxs)("header",{className:"flex h-10 items-center gap-2 border-b border-border/60 px-4",children:[(0,b.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[12px] text-muted-foreground",children:f}),(0,b.jsx)("a",{href:e(f),download:!0,className:"shrink-0 font-mono text-[11px] text-muted-foreground hover:text-foreground",children:"Download"})]}),"frame"===n?(0,b.jsx)("iframe",{title:f,src:e(f),allow:"clipboard-read; clipboard-write; fullscreen; autoplay",className:"h-[calc(100vh-2.5rem)] w-full bg-white"}):"image"===n?(0,b.jsx)("img",{src:e(f),alt:f,className:"mx-auto max-w-full p-6"}):"audio"===n?(0,b.jsx)("audio",{controls:!0,src:e(f),className:"mx-auto mt-10 w-full max-w-xl px-6",children:(0,b.jsx)("track",{kind:"captions"})}):"video"===n?(0,b.jsx)("video",{controls:!0,src:e(f),className:"mx-auto max-h-[calc(100vh-2.5rem)] max-w-full p-6",children:(0,b.jsx)("track",{kind:"captions"})}):"none"===n?(0,b.jsx)("p",{className:"p-6 font-mono text-xs text-muted-foreground",children:"Nothing here knows how to draw this file — download it above."}):(0,b.jsx)(m,{full:g,kind:n})]})}async function m({full:a,kind:e}){let h=await (0,c.stat)(a).catch(()=>null);h?.isFile()||(0,d.notFound)();let i=h.size>f.WORKSPACE_VIEW.textMax,j=i?await n(a,f.WORKSPACE_VIEW.textMax):await (0,c.readFile)(a,"utf-8").catch(()=>null);return null===j&&(0,d.notFound)(),(0,b.jsx)("div",{className:"mx-auto max-w-5xl",children:(0,b.jsx)(g.FileBody,{kind:e,content:j,truncated:i?h.size:null,where:"page"})})}async function n(a,b){let d=await (0,c.open)(a).catch(()=>null);if(!d)return null;try{let a=Buffer.alloc(b),{bytesRead:c}=await d.read(a,0,b,0),e=a.subarray(0,c).toString("utf-8"),f=e.lastIndexOf("\n");return f>0?e.slice(0,f):e}finally{await d.close()}}a.s(["default",0,l,"dynamic",0,"force-dynamic","generateMetadata",0,k],291927)},854103,function(a){a.n(a.i(291927))},326758,a=>{a.v("/_next/static/media/favicon.37o1pjldwi2uc.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},438872,a=>{"use strict";let b={src:a.i(326758).default,width:48,height:48};a.s(["default",0,b])},453874,a=>{"use strict";a.s(["FileBody",()=>c,"FileDialog",()=>d,"FileLink",()=>e,"FilePreview",()=>f,"FileViewer",()=>g,"fileTarget",()=>h,"useFileText",()=>i,"useOpenFile",()=>j]);var b=a.i(211857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call FileBody() from the server but FileBody is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/workspace/components/file-view.tsx","FileBody"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call FileDialog() from the server but FileDialog is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/workspace/components/file-view.tsx","FileDialog"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call FileLink() from the server but FileLink is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/workspace/components/file-view.tsx","FileLink"),f=(0,b.registerClientReference)(function(){throw Error("Attempted to call FilePreview() from the server but FilePreview is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/workspace/components/file-view.tsx","FilePreview"),g=(0,b.registerClientReference)(function(){throw Error("Attempted to call FileViewer() from the server but FileViewer is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/workspace/components/file-view.tsx","FileViewer"),h=(0,b.registerClientReference)(function(){throw Error("Attempted to call fileTarget() from the server but fileTarget is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/workspace/components/file-view.tsx","fileTarget"),i=(0,b.registerClientReference)(function(){throw Error("Attempted to call useFileText() from the server but useFileText is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/workspace/components/file-view.tsx","useFileText"),j=(0,b.registerClientReference)(function(){throw Error("Attempted to call useOpenFile() from the server but useOpenFile is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/workspace/components/file-view.tsx","useOpenFile")},744761,a=>{"use strict";var b=a.i(453874);a.n(b)},819442,a=>{"use strict";var b=a.i(612948),c=a.i(167436),d=a.i(594331);a.i(670408);let e=(0,b.instrumentModuleGetter)(()=>a.r(438872)),f=(0,b.instrumentModuleGetter)(()=>a.r(70864)),g=(0,b.instrumentModuleGetter)(()=>a.r(43619)),h=(0,b.instrumentModuleGetter)(()=>a.r(13718)),i=(0,b.instrumentModuleGetter)(()=>a.r(118198)),j=(0,b.instrumentModuleGetter)(()=>a.r(262212)),k=["",{children:["artifact",{children:["[...path]",{children:["__PAGE__",{},{metadata:{},page:[(0,b.instrumentModuleGetter)(()=>a.r(854103)),"[project]/app/artifact/[...path]/page.tsx"]},[]]},{metadata:{}},[]]},{metadata:{}},[]]},{metadata:{icon:[async()=>{let a=(0,d.interopDefault)(await e());return[{url:`/favicon.ico?${a.src.split("/").splice(-1)[0]}`,sizes:`${a.width}x${a.height}`,type:"image/x-icon"}]}]},layout:[f,"[project]/app/layout.tsx"],"not-found":[g,"[project]/node_modules/next/dist/client/components/builtin/not-found.js"],forbidden:[h,"[project]/node_modules/next/dist/client/components/builtin/forbidden.js"],unauthorized:[i,"[project]/node_modules/next/dist/client/components/builtin/unauthorized.js"],"global-error":[j,"[project]/node_modules/next/dist/client/components/builtin/global-error.js"]},[]],l=a.r.bind(a),m=a.l.bind(a),n=(0,c.createAppPageEntrypoint)({tree:k,page:"/artifact/[...path]/page",pathname:"/artifact/[...path]",require:l,loadChunk:m,interopDefault:d.interopDefault}),o=n.__next_app__,p=n.routeModule,q=n.handler;a.s(["__next_app__",0,o,"handler",0,q,"routeModule",0,p],725510),a.i(725510);var r=a.i(722922);a.s(["ClientPageRoot",()=>r.ClientPageRoot,"ClientSegmentRoot",()=>r.ClientSegmentRoot,"Fragment",()=>r.Fragment,"HTTPAccessFallbackBoundary",()=>r.HTTPAccessFallbackBoundary,"InstantValidation",()=>r.InstantValidation,"LayoutRouter",()=>r.LayoutRouter,"LoadingBoundaryProvider",()=>r.LoadingBoundaryProvider,"Postpone",()=>r.Postpone,"RenderFromTemplateContext",()=>r.RenderFromTemplateContext,"RootLayoutBoundary",()=>r.RootLayoutBoundary,"SegmentViewNode",()=>r.SegmentViewNode,"SegmentViewStateNode",()=>r.SegmentViewStateNode,"__next_app__",0,o,"captureOwnerStack",()=>r.captureOwnerStack,"collectPrefetchHints",()=>r.collectPrefetchHints,"collectSegmentData",()=>r.collectSegmentData,"createElement",()=>r.createElement,"createMetadataComponents",()=>r.createMetadataComponents,"createPrerenderParamsForClientSegment",()=>r.createPrerenderParamsForClientSegment,"createPrerenderSearchParamsForClientPage",()=>r.createPrerenderSearchParamsForClientPage,"createServerParamsForServerSegment",()=>r.createServerParamsForServerSegment,"createServerSearchParamsForServerPage",()=>r.createServerSearchParamsForServerPage,"createTemporaryReferenceSet",()=>r.createTemporaryReferenceSet,"decodeAction",()=>r.decodeAction,"decodeFormState",()=>r.decodeFormState,"decodeReply",()=>r.decodeReply,"handler",0,q,"isEmptyHTMLPrelude",()=>r.isEmptyHTMLPrelude,"patchFetch",()=>r.patchFetch,"preconnect",()=>r.preconnect,"preloadFont",()=>r.preloadFont,"preloadStyle",()=>r.preloadStyle,"prerender",()=>r.prerender,"prerenderToNodeStream",()=>r.prerenderToNodeStream,"renderToPipeableStream",()=>r.renderToPipeableStream,"renderToReadableStream",()=>r.renderToReadableStream,"routeModule",0,p,"serverHooks",()=>r.serverHooks,"taintObjectReference",()=>r.taintObjectReference],819442)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__16jc196._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
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},"ASCII_FACE",0,{charset:"emojiOnly",fontSize:{default:8,min:4,max:16},density:{default:1.4,min:.6,max:2}},"BOT_RUN",0,{steps:100,compactAt:5e5,compactHeadroom:.8,summaryWords:{min:600,max:3e3,perTokens:200},participants:12,concurrent:4,turns:120,queuedMessages:200,silenceMs:3e5,overflowShrink:.6,retryMs:1e4,compactFiles:40},"BROWSER_SKILL",0,"browser","CALL_END",0,{quietMs:600,unsaidMs:2e3,maxMs:8e3},"CALL_HISTORY_PAGE",0,10,"CALL_IDLE",0,{hangUpMs:3e4,graceMs:15e3,warnMs:1e4,agentSilentMs:3e4},"CALL_RELAY",0,{quietMs:7e3,perTurn:3,readMs:15e3},"IS_DEV",0,!1,"LIVE_CALL",0,{startupMs:3e4,closeMs:15e3,transcriptGapMs:1500,transcriptSaveMs:500,appendMs:15e3,backendOutputTokens:4096,reasoningCheckMs:5e3},"PAGE_SIZE",0,50,"PATHS",0,c,"PROMPT_CROWDED",0,{bots:10,skills:20},"ROOM_KEEP_READ_MS",0,6e5,"STUDIO_SERVER",0,"studio","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_0exkwcm._.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_1g1eihe._.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_0qbfyjh._.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_1gu1pph._.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_04vxchl._.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_0746rzi._.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_1gpednh._.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_1d53yiq._.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_1xn6saw._.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_0vv0-fg._.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_00_51_v._.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_0qapgjr._.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_0nrrdaq._.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_0fr-ml8._.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_1g1eihe._.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__172cq4x._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[918622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},120635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},324725,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},43285,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/dynamic-access-async-storage.external.js",()=>require("next/dist/server/app-render/dynamic-access-async-storage.external.js"))},556704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},559043,(a,b,c)=>{b.exports=a.x("next/dist/server/runtime-reacts.external.js",()=>require("next/dist/server/runtime-reacts.external.js"))},986368,a=>{"use strict";let b;var c=a.i(572131),d=a.i(767561);let e=(b=new Set,{emit(a){for(let c of[...b])try{c(a)}catch(a){console.error("event listener failed",a)}},subscribe:a=>(b.add(a),()=>{b.delete(a)})});a.s(["AppEventSource",0,function(){return(0,c.useEffect)(()=>{var a;let b;return a=d.queryKey.events,(b=new EventSource(a)).onmessage=a=>{let b;try{b=JSON.parse(a.data)}catch{return}e.emit(b)},()=>b.close()},[]),null},"useAppEvent",0,function(a){let b;(b=(0,c.useRef)(a)).current=a,(0,c.useEffect)(()=>e.subscribe(a=>{let c;return c=b.current[a.type],void c?.(a)}),[e])}],986368)},198538,a=>{"use strict";var b=a.i(730357);a.s(["ThemeSync",0,function(){return(0,b.useFollowSystemTheme)(),null}])},730357,682823,a=>{"use strict";var b=a.i(572131);let c="thursday.theme";JSON.stringify(c),a.s(["THEMES",0,["system","light","dark"],"THEME_STORAGE_KEY",0,c],682823);let d="system",e=new Set;function f(){for(let a of e)a()}function g(a){let b="dark"===("system"!==a?a:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light");document.documentElement.classList.toggle("dark",b),document.documentElement.style.colorScheme=b?"dark":"light"}function h(){return(0,b.useSyncExternalStore)(a=>{e.add(a);let b=a=>{a.key===c&&(g(d="system"),f())};return window.addEventListener("storage",b),()=>{e.delete(a),window.removeEventListener("storage",b)}},()=>d,()=>"system")}a.s(["setTheme",0,function(a){d=a;try{window.localStorage.setItem(c,a)}catch{}g(a),f()},"useFollowSystemTheme",0,function(){let a=h();(0,b.useEffect)(()=>{if("system"!==a)return;let b=window.matchMedia("(prefers-color-scheme: dark)"),c=()=>g("system");return b.addEventListener("change",c),()=>b.removeEventListener("change",c)},[a])},"useResolvedTheme",0,function(){let a=h(),[c,d]=(0,b.useState)(!1);return((0,b.useEffect)(()=>{let a=window.matchMedia("(prefers-color-scheme: dark)"),b=()=>d(a.matches);return b(),a.addEventListener("change",b),()=>a.removeEventListener("change",b)},[]),"system"!==a)?a:c?"dark":"light"},"useTheme",0,h],730357)},833354,(a,b,c)=>{"use strict";c._=function(a){return a&&a.__esModule?a:{default:a}}},342602,(a,b,c)=>{"use strict";b.exports=a.r(918622)},909270,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored.contexts.AppRouterContext},292966,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored.contexts.HeadManagerContext},430089,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"setAttributesFromProps",{enumerable:!0,get:function(){return g}});let d={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},e=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function f(a){return["async","defer","noModule"].includes(a)}function g(a,b){for(let[c,g]of Object.entries(b)){if(!b.hasOwnProperty(c)||e.includes(c)||void 0===g)continue;let h=d[c]||c.toLowerCase();"SCRIPT"===a.tagName&&f(h)?a[h]=!!g:a.setAttribute(h,String(g)),(!1===g||"SCRIPT"===a.tagName&&f(h)&&(!g||"false"===g))&&(a.setAttribute(h,""),a.removeAttribute(h))}}("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)},612962,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={cancelIdleCallback:function(){return g},requestIdleCallback:function(){return f}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(a){let b=Date.now();return self.setTimeout(function(){a({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-b))}})},1)},g="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(a){return clearTimeout(a)};("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)},232807,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={ESCAPE_REGEX:function(){return g},htmlEscapeAttributeString:function(){return k},htmlEscapeJsonString:function(){return j}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},g=/[&><\u2028\u2029]/g,h={"&":"&",'"':""","'":"'","<":"<",">":">"},i=/[&"'<>]/g;function j(a){return a.replace(g,a=>f[a])}function k(a){return a.replace(i,a=>h[a])}},496665,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={default:function(){return u},handleClientScriptLoad:function(){return r},initScriptLoader:function(){return s}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(833354),g=a.r(346058),h=a.r(187924),i=f._(a.r(935112)),j=g._(a.r(572131)),k=a.r(292966),l=a.r(430089),m=a.r(612962),n=a.r(232807),o=new Map,p=new Set,q=a=>{let{src:b,id:c,onLoad:d=()=>{},onReady:e=null,dangerouslySetInnerHTML:f,children:g="",strategy:h="afterInteractive",onError:j,stylesheets:k}=a,m=c||b;if(m&&p.has(m))return;if(o.has(b)){p.add(m),o.get(b).then(d,j);return}let n=()=>{e&&e(),p.add(m)},q=document.createElement("script"),r=new Promise((a,b)=>{q.addEventListener("load",function(b){a(),d&&d.call(this,b),n()}),q.addEventListener("error",function(a){b(a)})}).catch(function(a){j&&j(a)});f?(q.innerHTML=f.__html||"",n()):g?(q.textContent="string"==typeof g?g:Array.isArray(g)?g.join(""):"",n()):b&&(q.src=b,o.set(b,r)),(0,l.setAttributesFromProps)(q,a),"worker"===h&&q.setAttribute("type","text/partytown"),q.setAttribute("data-nscript",h),k&&(a=>{if(i.default.preinit)return a.forEach(a=>{i.default.preinit(a,{as:"style"})})})(k),document.body.appendChild(q)};function r(a){let{strategy:b="afterInteractive"}=a;"lazyOnload"===b?window.addEventListener("load",()=>{(0,m.requestIdleCallback)(()=>q(a))}):q(a)}function s(a){a.forEach(r),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(a=>{let b=a.id||a.getAttribute("src");p.add(b)})}function t(a){let{id:b,src:c="",onLoad:d=()=>{},onReady:e=null,strategy:f="afterInteractive",onError:g,stylesheets:l,...o}=a,{updateScripts:r,scripts:s,getIsSsr:t,appDir:u,nonce:v}=(0,j.useContext)(k.HeadManagerContext);v=o.nonce||v;let w=(0,j.useRef)(!1);(0,j.useEffect)(()=>{let a=b||c;w.current||(e&&a&&p.has(a)&&e(),w.current=!0)},[e,b,c]);let x=(0,j.useRef)(!1);if((0,j.useEffect)(()=>{if(!x.current){if("afterInteractive"===f)q(a);else"lazyOnload"===f&&("complete"===document.readyState?(0,m.requestIdleCallback)(()=>q(a)):window.addEventListener("load",()=>{(0,m.requestIdleCallback)(()=>q(a))}));x.current=!0}},[a,f]),("beforeInteractive"===f||"worker"===f)&&(r?(s[f]=(s[f]||[]).concat([{id:b,src:c,onLoad:d,onReady:e,onError:g,...o,nonce:v}]),r(s)):t&&t()?p.add(b||c):t&&!t()&&q({...a,nonce:v})),u){if(l&&l.forEach(a=>{i.default.preinit(a,{as:"style"})}),"beforeInteractive"===f)if(!c)return o.dangerouslySetInnerHTML&&(o.children=o.dangerouslySetInnerHTML.__html,delete o.dangerouslySetInnerHTML),(0,h.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,n.htmlEscapeJsonString)(JSON.stringify([0,{...o,id:b}]))})`}});else return i.default.preload(c,o.integrity?{as:"script",integrity:o.integrity,nonce:v,crossOrigin:o.crossOrigin}:{as:"script",nonce:v,crossOrigin:o.crossOrigin}),(0,h.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,n.htmlEscapeJsonString)(JSON.stringify([c,{...o,id:b}]))})`}});"afterInteractive"===f&&c&&i.default.preload(c,o.integrity?{as:"script",integrity:o.integrity,nonce:v,crossOrigin:o.crossOrigin}:{as:"script",nonce:v,crossOrigin:o.crossOrigin})}return null}Object.defineProperty(t,"__nextScript",{value:!0});let u=t;("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)},736313,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored.contexts.HooksClientContext},818341,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored.contexts.ServerInsertedHtml},935112,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored["react-ssr"].ReactDOM},187924,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored["react-ssr"].ReactJsxRuntime},738783,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored["react-ssr"].ReactServerDOMTurbopackClient},572131,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored["react-ssr"].React}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__18dthbp._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[522734,(a,b,c)=>{b.exports=a.x("fs",()=>require("fs"))},446786,(a,b,c)=>{b.exports=a.x("os",()=>require("os"))},814747,(a,b,c)=>{b.exports=a.x("path",()=>require("path"))},316474,a=>{"use strict";var b=a.i(187924),c=a.i(400187);a.i(572131);var d=a.i(497895);function e({className:a,...c}){return(0,b.jsx)("label",{"data-slot":"label",className:(0,d.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",a),...c})}a.i(118816);let f=(0,c.cva)("group/field flex w-full gap-2 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:"flex-col *:w-full [&>.sr-only]:w-auto",horizontal:"flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",responsive:"flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"}},defaultVariants:{orientation:"vertical"}});a.s(["Field",0,function({className:a,orientation:c="vertical",...e}){return(0,b.jsx)("div",{role:"group","data-slot":"field","data-orientation":c,className:(0,d.cn)(f({orientation:c}),a),...e})},"FieldContent",0,function({className:a,...c}){return(0,b.jsx)("div",{"data-slot":"field-content",className:(0,d.cn)("group/field-content flex flex-1 flex-col gap-0.5 leading-snug",a),...c})},"FieldLabel",0,function({className:a,...c}){return(0,b.jsx)(e,{"data-slot":"field-label",className:(0,d.cn)("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-3 has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",a),...c})}],316474)},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()}}}])},57753,(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(809750);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}},69845,(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"}}},301479,(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")]}},325279,(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}`}}},314225,(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(325279);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}}},809750,(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(325279),r=a.r(314225),s=a.r(57753),t=a.r(301479),u=a.r(69845);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}},987234,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)},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=%5Broot-of-the-server%5D__18e68w8._.js.map
|