thursday-agent 0.26.0 → 0.27.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/build-manifest.json +5 -5
- package/.next/prerender-manifest.json +3 -3
- package/.next/required-server-files.json +5 -5
- package/.next/server/app/_global-error/page/build-manifest.json +2 -2
- 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/build-manifest.json +2 -2
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +2 -2
- package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/artifact/route.js +10 -10
- package/.next/server/app/api/artifact/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/files/route.js +1 -1
- 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/file/route.js +15 -15
- package/.next/server/app/api/bot/thread/file/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/route.js +5 -5
- package/.next/server/app/api/bot/thread/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/tool-result/[id]/route.js +6 -6
- package/.next/server/app/api/bot/tool-result/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/config/route.js +3 -3
- package/.next/server/app/api/config/route.js.nft.json +1 -1
- package/.next/server/app/api/events/route.js +1 -1
- package/.next/server/app/api/events/route.js.nft.json +1 -1
- package/.next/server/app/api/favicon/[host]/route.js +4 -4
- package/.next/server/app/api/favicon/[host]/route.js.nft.json +1 -1
- package/.next/server/app/api/file/[...path]/route.js +4 -4
- package/.next/server/app/api/file/[...path]/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/automatic/route.js +5 -5
- package/.next/server/app/api/llm-model/automatic/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/catalog/[provider]/route.js +5 -5
- package/.next/server/app/api/llm-model/catalog/[provider]/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/credits/[provider]/route.js +5 -5
- package/.next/server/app/api/llm-model/credits/[provider]/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/route.js +6 -6
- package/.next/server/app/api/llm-model/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/subscription/route.js +6 -6
- package/.next/server/app/api/llm-model/subscription/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/[name]/route.js +5 -5
- package/.next/server/app/api/mcp/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/oauth/callback/route.js +6 -6
- package/.next/server/app/api/mcp/oauth/callback/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/route.js +5 -5
- package/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/tools/route.js +5 -5
- package/.next/server/app/api/mcp/tools/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/edit/route.js +15 -15
- package/.next/server/app/api/memory/edit/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/route.js +4 -4
- package/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/reach/route.js +18 -18
- package/.next/server/app/api/reach/route.js.nft.json +1 -1
- package/.next/server/app/api/routine/route.js +8 -8
- package/.next/server/app/api/routine/route.js.nft.json +1 -1
- package/.next/server/app/api/running/route.js +2 -2
- package/.next/server/app/api/running/route.js.nft.json +1 -1
- package/.next/server/app/api/signins/route.js +3 -3
- package/.next/server/app/api/signins/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/end/route.js +5 -5
- package/.next/server/app/api/thursday/call/end/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/plan/route.js +14 -14
- package/.next/server/app/api/thursday/call/plan/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/route.js +6 -6
- package/.next/server/app/api/thursday/call/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/settings/route.js +5 -5
- package/.next/server/app/api/thursday/settings/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/text/route.js +14 -14
- package/.next/server/app/api/thursday/text/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/update/route.js +7 -7
- package/.next/server/app/api/update/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/files/route.js +6 -6
- package/.next/server/app/api/workspace/files/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/route.js +6 -6
- package/.next/server/app/api/workspace/route.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page/build-manifest.json +2 -2
- package/.next/server/app/artifact/[...path]/page/server-reference-manifest.json +11 -11
- 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 +2 -2
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/.next/server/app/manifest.webmanifest/route.js +2 -2
- package/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/.next/server/app/page/build-manifest.json +2 -2
- package/.next/server/app/page/react-loadable-manifest.json +1 -1
- package/.next/server/app/page/server-reference-manifest.json +184 -184
- package/.next/server/app/page.js +10 -10
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__01jpmcj._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__03bjojd._.js +3 -3
- package/.next/server/chunks/{[root-of-the-server]__0wosonh._.js → [root-of-the-server]__05u-9a3._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__1dyse-1._.js → [root-of-the-server]__0_qe8iq._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0d-dfqm._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0jqidnu._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0mmynvy._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__0ncs9uu._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0qhf60h._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0sea36s._.js +4 -4
- package/.next/server/chunks/[root-of-the-server]__0zezbds._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__12hkdpz._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__13hng6h._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__14inehv._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__17kdjf6._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__17yv6lg._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__1_04mcf._.js +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0b3_rzi._.js → [root-of-the-server]__1hjb8wf._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1jcu_e9._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__1jmr2ed._.js +3 -3
- package/.next/server/chunks/[root-of-the-server]__1ndi14y._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1o7z93z._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__1onvx8x._.js +2 -2
- package/.next/server/chunks/_0-mqt2w._.js +1 -1
- package/.next/server/chunks/_04s1gb9._.js +30 -27
- package/.next/server/chunks/_06u9yo-._.js +1 -1
- package/.next/server/chunks/_08354bn._.js +33 -30
- package/.next/server/chunks/_083t_nr._.js +1 -1
- package/.next/server/chunks/_0c-s0ei._.js +1 -1
- package/.next/server/chunks/_0gifi_2._.js +2 -2
- package/.next/server/chunks/_0m3sdq8._.js +1 -1
- package/.next/server/chunks/_0pljp-1._.js +1 -1
- package/.next/server/chunks/_0wjia9n._.js +1 -1
- package/.next/server/chunks/_0wyh244._.js +33 -30
- package/.next/server/chunks/_0x2mdif._.js +1 -1
- package/.next/server/chunks/_1-sk_q4._.js +1 -1
- package/.next/server/chunks/_12a_gfz._.js +1 -1
- package/.next/server/chunks/_14-kmob._.js +1 -1
- package/.next/server/chunks/_16zct7w._.js +30 -27
- package/.next/server/chunks/_1823_7a._.js +4 -4
- package/.next/server/chunks/_1f_x75d._.js +1 -1
- package/.next/server/chunks/_1o2r4ja._.js +1 -1
- package/.next/server/chunks/_1q42187._.js +3 -3
- package/.next/server/chunks/_1ufbxe1._.js +1 -1
- package/.next/server/chunks/config_ts_1g4sz5o._.js +1 -1
- package/.next/server/chunks/features_14kex_m._.js +11 -11
- package/.next/server/chunks/features_bot_08z387_._.js +4 -4
- package/.next/server/chunks/features_memory_0__61kl._.js +1 -1
- package/.next/server/chunks/features_memory_1uqvksn._.js +1 -1
- package/.next/server/chunks/features_workspace_workspace_ts_13h82gv._.js +1 -1
- package/.next/server/chunks/features_workspace_workspace_ts_1iyjroj._.js +3 -3
- package/.next/server/chunks/ssr/{[root-of-the-server]__0x297x3._.js → [root-of-the-server]__03_9u5q._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__0653diy._.js → [root-of-the-server]__04ky8w1._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__1zlzs9j._.js → [root-of-the-server]__0crm8gr._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__02936mh._.js → [root-of-the-server]__0d3n8i_._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__0s8q44q._.js → [root-of-the-server]__0d4o9hs._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__0id2dqb._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__1s0etwd._.js → [root-of-the-server]__0q2c15o._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__0t_oz3-._.js +6 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__16x99f1._.js → [root-of-the-server]__12r70jm._.js} +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1867koj._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__0glkz9k._.js → [root-of-the-server]__1fvh0zn._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__1t38-p_._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__1c1xyyb._.js → [root-of-the-server]__1uy0zqr._.js} +2 -2
- package/.next/server/chunks/ssr/_02uubus._.js +3 -0
- package/.next/server/chunks/ssr/_0692i-a._.js +3 -0
- package/.next/server/chunks/ssr/_079xt7h._.js +32 -29
- package/.next/server/chunks/ssr/_07g7ojr._.js +3 -0
- package/.next/server/chunks/ssr/_0ewhz_x._.js +3 -0
- package/.next/server/chunks/ssr/_0f3t9pm._.js +2 -2
- package/.next/server/chunks/ssr/_0gx6qzr._.js +57 -0
- package/.next/server/chunks/ssr/_0pjwmak._.js +6 -0
- package/.next/server/chunks/ssr/_0pnzfq1._.js +1 -1
- package/.next/server/chunks/ssr/_0px9eat._.js +3 -0
- package/.next/server/chunks/ssr/_0r2_l__._.js +3 -0
- package/.next/server/chunks/ssr/{_20_wc-g._.js → _0rcuovx._.js} +2 -2
- package/.next/server/chunks/ssr/_0uwhhcs._.js +3 -0
- package/.next/server/chunks/ssr/{_1wct0tm._.js → _128r03g._.js} +1 -1
- package/.next/server/chunks/ssr/_12c2n7f._.js +3 -0
- package/.next/server/chunks/ssr/{_12_ail7._.js → _14f64h2._.js} +1 -1
- package/.next/server/chunks/ssr/_17fa2ns._.js +162 -0
- package/.next/server/chunks/ssr/_1_px1o-._.js +3 -0
- package/.next/server/chunks/ssr/_1a_w_du._.js +1 -1
- package/.next/server/chunks/ssr/_1e_9qjr._.js +1 -1
- package/.next/server/chunks/ssr/_1f59vze._.js +57 -0
- package/.next/server/chunks/ssr/_1j5ohq5._.js +3 -0
- package/.next/server/chunks/ssr/{_0ingto_._.js → _1kj3d2q._.js} +2 -2
- package/.next/server/chunks/ssr/_1neoj22._.js +1 -1
- package/.next/server/chunks/ssr/_1ocl7u0._.js +3 -0
- package/.next/server/chunks/ssr/_1q9r6u6._.js +3 -0
- package/.next/server/chunks/ssr/{_0fvctar._.js → _1qqusa-._.js} +2 -2
- package/.next/server/chunks/ssr/_1soynbw._.js +2 -2
- package/.next/server/chunks/ssr/_1uok0wt._.js +3 -0
- package/.next/server/chunks/ssr/_1v1pcoh._.js +1 -1
- package/.next/server/chunks/ssr/_1xw9imq._.js +3 -0
- package/.next/server/chunks/ssr/{components_ui_markdown-body_tsx_0h7bkrz._.js → components_ui_markdown-body_tsx_08i96c6._.js} +2 -2
- package/.next/server/chunks/ssr/features_0rrgq_t._.js +1 -1
- package/.next/server/chunks/ssr/features_ai_components_model-picker_tsx_0ucb1y9._.js +1 -1
- package/.next/server/chunks/ssr/features_bot_0tb4ui-._.js +2 -2
- package/.next/server/chunks/ssr/features_bot_components_01ye2wp._.js +1 -1
- package/.next/server/chunks/ssr/features_bot_components_bot-setting_tsx_01ajft6._.js +2 -2
- package/.next/server/chunks/ssr/features_bot_components_thread-setting_tsx_0yae7zy._.js +1 -1
- package/.next/server/chunks/ssr/features_config_components_config-setting_tsx_0xfwqdg._.js +2 -2
- package/.next/server/chunks/ssr/features_connectors_components_mcp-setting_tsx_0jmbgvp._.js +1 -1
- package/.next/server/chunks/ssr/features_memory_components_memory-setting_tsx_0oa43sw._.js +2 -2
- package/.next/server/chunks/ssr/features_routine_components_routine-setting_tsx_055fknz._.js +1 -1
- package/.next/server/chunks/ssr/features_skills_components_skills-setting_tsx_1wtuuip._.js +1 -1
- package/.next/server/chunks/ssr/features_thursday_components_thursday-setting_tsx_1_6ydrc._.js +1 -1
- package/.next/server/chunks/ssr/{node_modules_193w7l8._.js → node_modules_02djdfa._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1bwlhwa._.js → node_modules_03ybg-h._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_01xoz64._.js → node_modules_066eqdg._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_20ifwl6._.js → node_modules_09605b3._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1yilsx4._.js → node_modules_0_c17cv._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_080f5gu._.js → node_modules_0a1-9-h._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_17c047f._.js → node_modules_0bfpl_c._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1pav8g4._.js → node_modules_0brchjo._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0gwiuga._.js → node_modules_0c0pgdi._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_02-zrtu._.js → node_modules_0ep265x._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0kqej10._.js → node_modules_0gzvt6a._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0i18max._.js → node_modules_0h4gjw5._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1m2_gxv._.js → node_modules_0iso-he._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0cda8i6._.js → node_modules_0jvqmb4._.js} +1 -1
- package/.next/server/chunks/ssr/node_modules_0kzgugm._.js +3 -0
- package/.next/server/chunks/ssr/{node_modules_0uvoegq._.js → node_modules_0l8gpkg._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_12ajdg8._.js → node_modules_0mlrvds._.js} +2 -2
- package/.next/server/chunks/ssr/node_modules_0nvqvnw._.js +7 -7
- package/.next/server/chunks/ssr/{node_modules_1s3j8gb._.js → node_modules_0ogtyfm._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1_xiwxs._.js → node_modules_0os_-0h._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1abjhxx._.js → node_modules_0p05zru._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1o-m6_3._.js → node_modules_0pf8124._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0eqvt2l._.js → node_modules_0pp3v4f._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0rzz90e._.js → node_modules_0r1vv13._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1kum1yu._.js → node_modules_0r9yw6x._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1yw5fq4._.js → node_modules_0rk1a3e._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1es3wjv._.js → node_modules_0sq1pa3._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1-cv1_p._.js → node_modules_0w-pjyz._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0g_yuwn._.js → node_modules_0yoh66_._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1s9agqr._.js → node_modules_10kn3ni._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1yajzrd._.js → node_modules_124ipg-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0svoyrb._.js → node_modules_12_p7d0._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_203yqqb._.js → node_modules_12w12wr._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_17ks351._.js → node_modules_16kmp_v._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_05qs8r_._.js → node_modules_16m_yhd._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_07dc1cr._.js → node_modules_171uvar._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0qsi9t2._.js → node_modules_19pn2ti._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0k9_jdk._.js → node_modules_1_ly5yy._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0o_gq58._.js → node_modules_1_wsn9q._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1u7wlaq._.js → node_modules_1djak6n._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_08cq8i-._.js → node_modules_1e-oxmh._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_15x7int._.js → node_modules_1ed4zep._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1pkpq6d._.js → node_modules_1f2qlxm._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1aw7c9f._.js → node_modules_1fn72fs._.js} +2 -2
- package/.next/server/chunks/ssr/node_modules_1h9p77x._.js +7 -7
- package/.next/server/chunks/ssr/{node_modules_1ucf2fi._.js → node_modules_1hj0rvo._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_12pvysk._.js → node_modules_1jvkoqj._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0tq4-57._.js → node_modules_1jzofr8._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_08hfp3a._.js → node_modules_1maqy-g._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_071fb26._.js → node_modules_1oox5h1._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0_jxnnn._.js → node_modules_1p56fwh._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_01yukzc._.js → node_modules_1prbr1-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1hrbceb._.js → node_modules_1qfou69._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_11f1w-3._.js → node_modules_1qnosqe._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1kd_hpx._.js → node_modules_1rdpn6v._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_079iwnx._.js → node_modules_1v6m9sp._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1iapzqf._.js → node_modules_1z8ywx9._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1dim95c._.js → node_modules_1zzudo-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1_71wv3._.js → node_modules_2157u1j._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_katex_dist_katex_mjs_1c5gb92._.js → node_modules_katex_dist_katex_mjs_12lynt6._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_katex_dist_katex_mjs_1ocxq2z._.js → node_modules_katex_dist_katex_mjs_1vjoadq._.js} +1 -1
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1v93o68._.js +1 -1
- package/.next/server/middleware-build-manifest.js +5 -5
- 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 +185 -185
- package/.next/static/chunks/051z85h3ofmif.js +1 -0
- package/.next/static/chunks/05722zc-sohb_.js +4 -0
- package/.next/static/chunks/07jo959manleh.js +1 -0
- package/.next/static/chunks/0_5a18_y41-_4.js +1 -0
- package/.next/static/chunks/0be7dgti95u_2.js +1 -0
- package/.next/static/chunks/0c28x0q2aqsbj.js +1 -0
- package/.next/static/chunks/0o_rabv5are-o.js +2 -0
- package/.next/static/chunks/{0776-hu4_eek7.js → 0wwq57j09skhy.js} +2 -2
- package/.next/static/chunks/0zm3urd75-zw5.js +1 -0
- package/.next/static/chunks/16hfi69t-6a4t.js +2 -0
- package/.next/static/chunks/1g58g8-daiwu5.js +3 -0
- package/.next/static/chunks/1i1u85j-_yb1n.js +15 -0
- package/.next/static/chunks/1kd2sxkkrae8e.js +1 -0
- package/.next/static/chunks/{3xloayc4c096r.js → 1n3a07w81jbc-.js} +1 -1
- package/.next/static/chunks/1nncyxatu7une.js +1 -0
- package/.next/static/chunks/1s5t41jiomssd.css +1 -0
- package/.next/static/chunks/1yl4mlpsw8e7h.js +1 -0
- package/.next/static/chunks/{33qtnlc00c9gq.js → 2gl-fo_rmmmq0.js} +1 -1
- package/.next/static/chunks/2h_sak2oi70qs.js +1 -0
- package/.next/static/chunks/2isg5redeg2bc.js +1 -0
- package/.next/static/chunks/{2fxn-xltgy2un.js → 2of2-kggzp-fk.js} +1 -1
- package/.next/static/chunks/2vmran3sacktz.js +1 -0
- package/.next/static/chunks/2w02v9g8o9-rz.js +1 -0
- package/.next/static/chunks/2wi2pcbjrqm86.js +1 -0
- package/.next/static/chunks/2xk8otp3gnzml.js +1 -0
- package/.next/static/chunks/2ym1hrikoit8p.js +1 -0
- package/.next/static/chunks/34d1f980dv5c6.js +18 -0
- package/.next/static/chunks/34zhr71217o1-.js +2 -0
- package/.next/static/chunks/{0o1r15rfncytn.js → 37r4l2878vybp.js} +1 -1
- package/.next/static/chunks/{2cz5734j90h5b.js → 3a-2z23puvz2z.js} +1 -1
- package/.next/static/chunks/3d55-y263hup9.js +1 -0
- package/.next/static/chunks/3dzrveotr82eu.js +39 -0
- package/.next/static/chunks/3fensfht8pxhl.js +55 -0
- package/.next/static/chunks/3k7fum0yljmyr.js +1 -0
- package/.next/static/chunks/3sawwm4vucnzn.js +1 -0
- package/.next/static/chunks/{0z0-g4k1hnpw2.js → 3u208m--8u1iq.js} +1 -1
- package/.next/static/chunks/{turbopack-1kym6rf88i5i0.js → turbopack-0ekrsq98buh0j.js} +1 -1
- package/README.md +18 -18
- package/bin/background.mjs +60 -32
- package/bin/print.mjs +82 -0
- package/bin/thursday.mjs +44 -13
- package/guide/bots.md +19 -3
- package/guide/calls.md +5 -2
- package/guide/memory.md +2 -1
- package/guide/setup.md +8 -6
- package/guide/trouble.md +4 -0
- package/package.json +11 -5
- package/public/voices/intro/awake-f4e02fad.ogg +0 -0
- package/seed-skills/concierge/travel/scripts/itinerary.mjs +2 -1
- package/server.js +1 -1
- package/skills/artifact/references/document.md +5 -2
- package/skills/artifact/runtime/document/markdown.mjs +14 -1
- package/skills/artifact/runtime/shell/head.html +1 -1
- package/skills/artifact/scripts/document.mjs +9 -3
- package/skills/browser/SKILL.md +17 -13
- package/.next/server/chunks/[root-of-the-server]__0ald4vb._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0srfj96._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1kos36s._.js +0 -6
- package/.next/server/chunks/ssr/_024j8bs._.js +0 -3
- package/.next/server/chunks/ssr/_04jb10a._.js +0 -3
- package/.next/server/chunks/ssr/_059oyhd._.js +0 -3
- package/.next/server/chunks/ssr/_0d0uyl3._.js +0 -3
- package/.next/server/chunks/ssr/_0fk7dbp._.js +0 -88
- package/.next/server/chunks/ssr/_0gfa_rb._.js +0 -3
- package/.next/server/chunks/ssr/_0i7zd74._.js +0 -3
- package/.next/server/chunks/ssr/_0sp2z94._.js +0 -3
- package/.next/server/chunks/ssr/_1avnw03._.js +0 -57
- package/.next/server/chunks/ssr/_1bfrntd._.js +0 -6
- package/.next/server/chunks/ssr/_1cpvfkg._.js +0 -3
- package/.next/server/chunks/ssr/_1cqjpyq._.js +0 -3
- package/.next/server/chunks/ssr/_1khngyc._.js +0 -72
- package/.next/server/chunks/ssr/_1kyjimg._.js +0 -162
- package/.next/server/chunks/ssr/_1sw4r4m._.js +0 -6
- package/.next/server/chunks/ssr/_20004tu._.js +0 -57
- package/.next/server/chunks/ssr/node_modules_01alue6._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_02n9-pb._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_0zxr5sz._.js +0 -3
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_trash_mjs_0px2gzr._.js +0 -3
- package/.next/static/chunks/02d9vhnz5mwvu.js +0 -1
- package/.next/static/chunks/06ff4fq0z4das.js +0 -1
- package/.next/static/chunks/09q9n7jrkm4c9.js +0 -39
- package/.next/static/chunks/0b3wt5kqs-mk2.js +0 -2
- package/.next/static/chunks/0blrj_tg1yur0.js +0 -1
- package/.next/static/chunks/0dn1ptom1ahgg.js +0 -18
- package/.next/static/chunks/0dq7uppta9s--.js +0 -1
- package/.next/static/chunks/0hoz2b--nhn4y.js +0 -1
- package/.next/static/chunks/0kfjtkez2xze2.js +0 -1
- package/.next/static/chunks/0mv2zywfzt83k.js +0 -4
- package/.next/static/chunks/0txtrhykehsd_.js +0 -55
- package/.next/static/chunks/17vs1vz7_4l4p.css +0 -1
- package/.next/static/chunks/1dnvf_117h4k3.js +0 -2
- package/.next/static/chunks/1irynso77np9t.js +0 -1
- package/.next/static/chunks/1sh_-w_keseat.js +0 -1
- package/.next/static/chunks/1z2_9pl3nezly.js +0 -3
- package/.next/static/chunks/23ty4edkuxirx.js +0 -1
- package/.next/static/chunks/2f1cnfz4h1e2x.js +0 -1
- package/.next/static/chunks/2jepcbdewlwlg.js +0 -1
- package/.next/static/chunks/2r_zq_knm0hph.js +0 -15
- package/.next/static/chunks/2yfmmo4qr_f-m.js +0 -1
- package/.next/static/chunks/3-xnkknav7azp.js +0 -1
- package/.next/static/chunks/38q31td1ecuay.js +0 -1
- package/.next/static/chunks/3n75-7grldc6f.js +0 -1
- package/.next/static/chunks/3ofr4htw4wpj3.js +0 -1
- package/.next/static/chunks/40bkw3zfenss4.js +0 -2
- package/public/voices/intro/awake-17dbafbf.ogg +0 -0
- package/public/voices/intro/models-d09ddc74.ogg +0 -0
- /package/.next/static/{YIQV0_9FZPTFUe9TCiVSF → 3_9hbwcAuWTSWCJSufp3d}/_buildManifest.js +0 -0
- /package/.next/static/{YIQV0_9FZPTFUe9TCiVSF → 3_9hbwcAuWTSWCJSufp3d}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{YIQV0_9FZPTFUe9TCiVSF → 3_9hbwcAuWTSWCJSufp3d}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,683408,e=>{"use strict";var t=e.i(843476),a=e.i(271645);let n=null,r=()=>e.A(195730).then(e=>(n=e.MarkdownBody,e)),l=(0,a.lazy)(()=>r().then(e=>({default:e.MarkdownBody})));{let e=()=>void r().catch(()=>{}),t=()=>{"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e)};"complete"===document.readyState?t():window.addEventListener("load",t,{once:!0})}let s=(0,a.memo)(function(e){if(n){let a=n;return(0,t.jsx)(a,{...e})}return(0,t.jsx)(a.Suspense,{fallback:(0,t.jsx)("div",{className:e.className,style:{whiteSpace:"pre-wrap"},children:e.children}),children:(0,t.jsx)(l,{...e})})});e.s(["Markdown",0,s])},633669,e=>{"use strict";var t=e.i(843476),a=e.i(818125),n=e.i(647163);e.s(["SourceChips",0,function({sources:e,limit:r,className:l}){let s=e.flatMap(e=>{let t=(0,n.hostOf)(e.url);return t?[{...e,host:t}]:[]}),i=r?s.slice(0,r):s,o=s.length-i.length;return(0,t.jsxs)("span",{className:(0,n.cn)("flex min-w-0 flex-wrap items-center gap-1",l),children:[i.map(e=>(0,t.jsxs)("a",{href:e.url,target:"_blank",rel:"noreferrer",title:e.title??e.url,className:"flex h-[22px] min-w-0 items-center gap-1.5 rounded-full bg-muted pr-2 pl-1 text-[11.5px] leading-4 text-foreground/80 outline-none transition-colors hover:bg-accent focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,t.jsx)(a.SiteIcon,{host:e.host}),(0,t.jsx)("span",{className:"truncate",children:e.host})]},e.url)),o>0&&(0,t.jsxs)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground",children:["+",o]})]})}])},213377,e=>{"use strict";e.s(["STUDIO_TOOLS",0,{generate_image:"generate_image",generate_speech:"generate_speech",transcribe:"transcribe",generate_video:"generate_video"},"TOOL_NAMES",0,{memory_recall:"memory_recall",memory_create:"memory_create",memory_remember:"memory_remember",memory_describe:"memory_describe",memory_forget:"memory_forget",bash:"bash",write_file:"write_file",tool_search:"tool_search",tool_call:"tool_call",load_skill:"load_skill",web_search:"web_search",thread_start:"thread_start",thread_tell:"thread_tell",thread_answer:"thread_answer",thread_status:"thread_status",thread_cancel:"thread_cancel",thread_show:"thread_show",thread_seen:"thread_seen",routine:"routine",send_message:"send_message",thread_recall:"thread_recall",sign_in_use:"sign_in_use",sign_in_keep:"sign_in_keep",check_mail:"check_mail",look_at:"look_at",make_deck:"make_deck",describe_self:"describe_self",end_call:"end_call",emote:"emote"}])},807038,e=>{"use strict";var t=e.i(843476),a=e.i(456420);let n={name:"file-x",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]]};n.node;let r=(0,a.default)(n);var l=e.i(657688),s=e.i(271645),i=e.i(798120),o=e.i(41533),d=e.i(83928),c=e.i(621285),u=e.i(616172),h=e.i(283653),p=e.i(647163);let m=e=>e.split(".").pop()?.toLowerCase()??"file",f=e=>e.split("/").pop()??e;e.s(["Attachments",0,function({text:e,from:a=null,className:n,onBubble:g=!1}){let x=(0,s.useMemo)(()=>(0,u.pathsIn)(e),[e]),{data:y}=(0,h.useServerRoute)(x.length?i.queryKey.workspaceFiles(x):null),k=(0,s.useMemo)(()=>y??[],[y]),b=(0,s.useMemo)(()=>k.filter(e=>"image"===(0,u.viewKindOf)(e.path)),[k]),_=(0,s.useMemo)(()=>{let e=0;return k.filter(t=>{let a=(0,d.faceOf)(t.path,t.bytes);return"text"===a||"page"===a&&(e+=1)<=o.FILE_THUMB.pages})},[k]),v=k.filter(e=>!b.includes(e)&&!_.includes(e)),M=new Set(k.map(e=>f(e.path))),w=x.filter(e=>!k.some(t=>t.path===e)&&!M.has(f(e)));if(!x.length||!y||!k.length&&!w.length)return null;let j=b.map(e=>e.path),O=b.slice(0,4),N=b.length-O.length,S=b.length+_.length<=2,E=S?"h-40 w-32":"h-26.25 w-21";return(0,t.jsxs)("div",{className:(0,p.cn)("flex min-w-0 flex-col gap-1.5",n),children:[(O.length>0||_.length>0)&&(0,t.jsxs)("div",{className:"flex flex-wrap items-start gap-1.5",children:[_.map(e=>(0,t.jsxs)(c.FileLink,{from:a,path:e.path,title:`${e.path} — ${(0,p.formatBytes)(e.bytes)}`,className:(0,p.cn)("flex shrink-0 flex-col gap-1 rounded-xl outline-none transition-opacity hover:opacity-90 focus-visible:ring-3 focus-visible:ring-ring/50",S?"w-32":"w-21"),children:[(0,t.jsx)(d.FileThumb,{path:e.path,bytes:e.bytes,className:(0,p.cn)("w-full rounded-xl ring-1 ring-foreground/5 ring-inset",E)}),(0,t.jsxs)("span",{className:"flex flex-col items-start px-0.5",children:[(0,t.jsx)("span",{className:"max-w-full truncate text-[11.5px] leading-4",children:f(e.path)}),(0,t.jsxs)("span",{className:"font-mono text-[10px] leading-3.5 text-muted-foreground",children:[m(e.path)," · ",(0,p.formatBytes)(e.bytes)]})]})]},e.path)),O.map((e,n)=>(0,t.jsxs)(c.FileLink,{from:a,path:e.path,group:j,title:`${e.path} — ${(0,p.formatBytes)(e.bytes)}`,className:(0,p.cn)("relative shrink-0 overflow-hidden rounded-xl bg-muted outline-none ring-1 ring-foreground/5 ring-inset transition-opacity hover:opacity-90 focus-visible:ring-3 focus-visible:ring-ring/50",E),children:[(0,t.jsx)(l.default,{src:i.queryKey.file(e.path),alt:f(e.path),fill:!0,sizes:`${o.FILE_THUMB.imageWidth}px`,loading:"lazy",decoding:"async",className:"object-cover"}),N>0&&n===O.length-1&&(0,t.jsxs)("span",{className:"absolute inset-0 grid place-items-center bg-black/45 text-[14px] font-medium text-white",children:["+",N]})]},e.path))]}),v.map(e=>{let n=(0,d.fileIcon)(e.path);return(0,t.jsxs)(c.FileLink,{from:a,path:e.path,title:e.path,className:(0,p.cn)("flex w-fit max-w-full items-center gap-2.5 rounded-xl py-1.5 pr-3 pl-1.5 outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",g?"bg-background/70 hover:bg-background":"bg-muted/70 hover:bg-muted"),children:[(0,t.jsx)("span",{className:(0,p.cn)("grid size-8 shrink-0 place-items-center rounded-lg text-muted-foreground",g?"bg-muted":"bg-background"),children:(0,t.jsx)(n,{className:"size-3.5"})}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-col items-start",children:[(0,t.jsx)("span",{className:"max-w-full truncate text-[12.5px] leading-4.25",children:f(e.path)}),(0,t.jsxs)("span",{className:"font-mono text-[10px] leading-3.5 text-muted-foreground",children:[m(e.path)," · ",(0,p.formatBytes)(e.bytes)]})]})]},e.path)}),w.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",children:w.map(e=>(0,t.jsxs)("span",{title:`${e} — not on disk`,className:"flex max-w-full items-center gap-1.5 rounded-full bg-muted/70 py-1 pr-2.5 pl-2 font-mono text-[11px] text-muted-foreground",children:[(0,t.jsx)(r,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:"truncate line-through",children:f(e)})]},e))})]})},"imagePathsIn",0,function(e){return(0,u.pathsIn)(e).filter(e=>"image"===(0,u.viewKindOf)(e))},"shortenPaths",0,function(e){return e.split(/(```[\s\S]*?```)/).map((e,t)=>t%2==1?e:e.replace(/`([^`\n]+)`/g,(e,t)=>{let a=t.trim();if(!a.includes("/"))return e;let[n]=(0,u.pathsIn)(a),r=n?.split("/").pop();return n&&r&&a.endsWith(r)?`\`${r}\``:e})).join("")}],807038)},222055,991322,852116,589128,e=>{"use strict";var t=e.i(843476),a=e.i(422411),n=e.i(518515),r=e.i(525335),l=e.i(689664),s=e.i(716327),i=e.i(482022),o=e.i(772382),d=e.i(60744),c=e.i(226091),u=e.i(91511),h=e.i(341123),p=e.i(815170),m=e.i(758925),f=e.i(218964),g=e.i(632781),x=e.i(96315),y=e.i(468590),k=e.i(928310),b=e.i(609374),_=e.i(730274),v=e.i(604139),M=e.i(438583),w=e.i(747925),j=e.i(657688),O=e.i(271645),N=e.i(798120),S=e.i(660302),E=e.i(818125),L=e.i(671428),z=e.i(633669),T=e.i(41533),A=e.i(213377),I=e.i(807038),C=e.i(456420);let R={name:"cable",size:24,node:[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]]};R.node;let P=(0,C.default)(R);e.s(["McpMark",0,P],991322);let F={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};F.node;let $=(0,C.default)(F);e.s(["MemoryMark",0,$],852116);var U=e.i(431594);let D=e.i(856539).BookMarked;e.s(["SkillsMark",0,D],589128);var H=e.i(83928),K=e.i(621285),V=e.i(283653),q=e.i(647163);let B={[A.TOOL_NAMES.web_search]:function({tool:e,threadId:a,collapsed:n}){let r=ee(e),l=r.length?[]:ep(e.results);return(0,t.jsxs)(ei,{tool:e,threadId:a,collapsed:n,children:[(0,t.jsxs)("p",{className:"px-3 pt-1 pb-1.5 text-[13px] leading-snug break-keep wrap-anywhere",children:["“",e.input,"”"]}),r.length>0&&(0,t.jsx)(z.SourceChips,{sources:r,className:"px-3 pb-2"}),l.length>0&&(0,t.jsx)("ol",{className:"space-y-0.5 px-3 pb-2",children:l.map((e,a)=>(0,t.jsxs)("li",{className:"flex gap-2 text-[11.5px] leading-snug text-muted-foreground",children:[(0,t.jsx)("span",{className:"mt-1.25 size-1 shrink-0 rounded-full bg-muted-foreground/50"}),(0,t.jsx)("span",{className:"truncate",children:e})]},`${a}-${e}`))})]})},[A.TOOL_NAMES.bash]:function({tool:e,threadId:a,collapsed:n}){let r=ep(e.results);return(0,t.jsx)(ei,{tool:e,threadId:a,collapsed:n,children:(0,t.jsxs)("pre",{className:"mx-3 overflow-x-auto rounded-lg bg-foreground/5 px-2.5 py-1.5 font-mono text-[11px] leading-relaxed scrollbar-none dark:bg-black/25",children:[(0,t.jsx)("span",{className:"text-muted-foreground/60",children:"$ "}),e.input,r.length>0&&(0,t.jsx)("span",{className:"block text-muted-foreground",children:r.join("\n")})]})})},[A.TOOL_NAMES.write_file]:function({tool:e,threadId:a,collapsed:n}){let r=e.path??e.input;return(0,t.jsxs)(ei,{tool:e,threadId:a,collapsed:n,children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 pt-1 pb-1.5",children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px]",children:e.input}),(0,t.jsxs)(K.FileLink,{path:r,from:a,label:`Open ${r}`,className:"flex shrink-0 items-center gap-1 rounded-md px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground outline-none transition-colors hover:bg-background hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 disabled:opacity-50",children:[(0,t.jsx)(i.ExternalLink,{className:"size-3"}),"Open"]})]}),(0,t.jsx)(eh,{lines:ep(e.results),mono:!0})]})}},G=Object.values(A.STUDIO_TOOLS);function W(e){if(e.name!==A.TOOL_NAMES.tool_call)return null;let[t,a,...n]=e.input.split(" ");if(t!==T.STUDIO_SERVER)return null;let r=G.find(e=>e===a);return r?{name:r,words:n.join(" ")}:null}let J={[A.STUDIO_TOOLS.generate_image]:p.Image,[A.STUDIO_TOOLS.generate_video]:M.Video,[A.STUDIO_TOOLS.generate_speech]:a.AudioLines,[A.STUDIO_TOOLS.transcribe]:r.Captions},Y={[A.TOOL_NAMES.web_search]:u.Globe,[A.TOOL_NAMES.bash]:v.Terminal,[A.TOOL_NAMES.write_file]:d.FilePen,[A.TOOL_NAMES.memory_recall]:$,[A.TOOL_NAMES.memory_create]:$,[A.TOOL_NAMES.memory_remember]:$,[A.TOOL_NAMES.memory_describe]:$,[A.TOOL_NAMES.memory_forget]:$,[A.TOOL_NAMES.load_skill]:D,[A.TOOL_NAMES.tool_search]:P,[A.TOOL_NAMES.tool_call]:P,[A.TOOL_NAMES.thread_start]:_.Send,[A.TOOL_NAMES.thread_tell]:_.Send,[A.TOOL_NAMES.thread_answer]:_.Send,[A.TOOL_NAMES.thread_status]:f.ListChecks,[A.TOOL_NAMES.thread_cancel]:f.ListChecks,[A.TOOL_NAMES.thread_show]:f.ListChecks,[A.TOOL_NAMES.thread_seen]:f.ListChecks,[A.TOOL_NAMES.send_message]:y.MessageSquare,[A.TOOL_NAMES.look_at]:o.Eye,[A.TOOL_NAMES.make_deck]:b.Presentation,[A.TOOL_NAMES.describe_self]:h.IdCard,[A.TOOL_NAMES.sign_in_use]:m.KeyRound,[A.TOOL_NAMES.sign_in_keep]:m.KeyRound,[A.TOOL_NAMES.check_mail]:x.Mail,[A.TOOL_NAMES.end_call]:k.PhoneOff,[A.TOOL_NAMES.routine]:U.RoutineMark},Z=e=>Y[e]??w.Wrench,X=new Set(["cat","sed","head","tail","grep","rg","ls","find","wc","awk","jq"]),Q=e=>e.split("/").pop()??e;function ee(e){return ep(e.results).flatMap(e=>{let t=/https?:\/\/\S+/.exec(e)?.[0];if(!t)return[];let a=e.slice(0,e.indexOf(t)).replace(/[\s—-]+$/,"");return[{url:t,...a?{title:a}:{}}]})}function et(e){return(0,I.imagePathsIn)([e.path??"",e.input,...ep(e.results)].join("\n"))}function ea(e){let t=et(e)[0],a=W(e);if(a)return{icon:J[a.name]??w.Wrench,image:t,makes:a.name===A.STUDIO_TOOLS.generate_image};if(e.name===A.TOOL_NAMES.web_search)return{icon:u.Globe,pages:ee(e)};if(e.name===A.TOOL_NAMES.write_file)return{icon:d.FilePen,image:t,target:Q(e.path??e.input)};if(e.name!==A.TOOL_NAMES.bash)return{icon:Z(e.name),image:t};let r=e.input.replace(/^\s*cd\s+\S+\s*&&\s*/,"").trim(),[l=""]=r.split(/\s+/),s=/(?:^|[\s;&|(])playwright-cli((?:\s+-\S+)*)\s+([a-z-]+)/.exec(r);if(s){if("screenshot"===s[2])return{icon:n.Camera,image:t};let e=/https?:\/\/[^\s'"]+/.exec(r)?.[0];return{icon:u.Globe,host:e&&(0,q.hostOf)(e)||void 0,image:t}}return X.has(l)?{icon:c.FileText,image:t,target:e.path?Q(e.path):void 0}:{icon:v.Terminal,image:t,target:l||void 0}}function en({face:e}){if(e.pages?.length){let a=[...new Set(e.pages.flatMap(e=>(0,q.hostOf)(e.url)??[]))].slice(0,3);return(0,t.jsx)("span",{className:"flex shrink-0 items-center gap-1",children:a.map(e=>(0,t.jsx)(E.SiteIcon,{host:e},e))})}return e.host?(0,t.jsxs)("span",{className:"flex h-5 shrink-0 items-center gap-1.5 rounded-full bg-muted pr-2 pl-1 text-[11px] text-foreground/80",children:[(0,t.jsx)(E.SiteIcon,{host:e.host}),e.host]}):e.target&&!e.image?(0,t.jsx)("span",{className:"max-w-40 shrink truncate font-mono text-[10.5px] text-muted-foreground",children:e.target}):null}let er="size-36 rounded-xl";function el({tool:e,threadId:a,collapsed:n}){let r=W(e),[l]=et(e),s=void 0===e.results&&r?.name===A.STUDIO_TOOLS.generate_image;return(0,t.jsxs)(ei,{tool:e,threadId:a,collapsed:n,children:[r?.words&&(0,t.jsxs)("p",{className:"px-3 pt-1 pb-1.5 text-[13px] leading-snug break-keep wrap-anywhere",children:["“",r.words,"”"]}),l?(0,t.jsx)(K.FileLink,{path:l,from:a,title:l,className:"mx-3 mb-1.5 block w-fit overflow-hidden rounded-xl outline-none ring-1 ring-foreground/5 transition-opacity ring-inset hover:opacity-90 focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(H.FileThumb,{path:l,className:er})}):s?(0,t.jsx)(L.Skeleton,{className:(0,q.cn)("mx-3 mb-1.5",er)}):(0,t.jsx)(eh,{lines:ep(e.results)})]})}function es({tool:e,threadId:a,collapsed:n}){return(0,t.jsxs)(ei,{tool:e,threadId:a,collapsed:n,children:[(0,t.jsx)("p",{className:"px-3 pt-1 pb-1.5 text-[12px] leading-snug break-keep wrap-anywhere",children:e.input}),(0,t.jsx)(eh,{lines:ep(e.results)})]})}function ei({tool:e,threadId:a,collapsed:n=!1,children:r}){let i=void 0===e.results,o=ea(e),d=o.icon,[c,u]=(0,O.useState)(!n),h=a&&e.callId&&((e.results?.length??0)>0||e.more);return(0,t.jsxs)("div",{className:(0,q.cn)("@container w-full overflow-hidden rounded-xl transition-colors",c?"bg-background/80 dark:bg-white/4":"hover:bg-foreground/4"),children:[(0,t.jsxs)("button",{type:"button",onClick:()=>u(e=>!e),"aria-expanded":c,className:"flex w-full items-center gap-2 rounded-xl px-2.5 py-1.5 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,t.jsx)("span",{className:"grid size-5 shrink-0 place-items-center rounded-[7px] bg-foreground/8 text-muted-foreground",children:i?(0,t.jsx)(g.Loader2,{className:"size-3 animate-spin"}):(0,t.jsx)(d,{className:"size-3"})}),e.note?(0,t.jsxs)(t.Fragment,{children:[i?(0,t.jsx)(S.ShinyText,{text:e.note,speed:2.4,className:"min-w-0 flex-1 truncate text-[12px] leading-4 break-keep"}):(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-[12px] leading-4 break-keep",children:e.note}),(0,t.jsx)("span",{className:"hidden min-w-0 flex-1 truncate font-mono text-[11px] leading-4 text-muted-foreground @lg:block",children:e.input})]}):i?(0,t.jsx)(S.ShinyText,{text:e.input,speed:2.4,className:"min-w-0 flex-1 truncate font-mono text-[11px] leading-4"}):(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] leading-4 text-foreground/80",children:e.input}),(0,t.jsx)(eo,{paths:et(e),waiting:i&&o.makes}),(0,t.jsx)(en,{face:o}),!i&&(0,t.jsx)(l.Check,{className:"size-3 shrink-0 text-muted-foreground/50"}),(0,t.jsx)(s.ChevronDown,{className:(0,q.cn)("size-3 shrink-0 text-muted-foreground/50 transition-transform",c&&"rotate-180")})]}),c&&(0,t.jsxs)("div",{className:"pb-1.5 pl-[1.625rem]",children:[r,h&&(0,t.jsx)(ec,{threadId:a,callId:e.callId})]})]})}function eo({paths:e,waiting:a}){let[n,r]=(0,O.useState)([]),l=e.filter(e=>!n.includes(e)).slice(0,ed);return l.length?(0,t.jsx)("span",{className:"flex shrink-0 items-center",children:l.map((e,a)=>(0,t.jsx)(j.default,{src:N.queryKey.file(e),alt:"",width:48,height:48,loading:"lazy",decoding:"async",onError:()=>r(t=>[...t,e]),className:(0,q.cn)("size-6 rounded-md bg-muted object-cover ring-2 ring-background",a>0&&"-ml-1.5")},e))}):a?(0,t.jsx)(L.Skeleton,{className:"size-6 shrink-0 rounded-md"}):null}let ed=3;function ec({threadId:e,callId:a}){let[n,r]=(0,O.useState)(!1),{data:l,isLoading:i}=(0,V.useServerRoute)(n?N.queryKey.toolResult(e,a):null);return(0,t.jsxs)("div",{className:"px-3 pb-1",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>r(e=>!e),className:"flex items-center gap-1 rounded-md py-0.5 font-mono text-[10px] text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,t.jsx)(s.ChevronDown,{className:(0,q.cn)("size-3",n&&"rotate-180")}),n?"Less":"Everything"]}),n&&(i||!l?(0,t.jsx)(L.Skeleton,{className:"mt-1.5 h-12 w-full rounded-lg"}):(0,t.jsxs)("div",{className:"mt-1.5 space-y-1.5",children:[em(l).map((e,a)=>(0,t.jsx)(eu,{src:e},`${a}-${e.length}`)),ep(l).length>0&&(0,t.jsx)("pre",{className:"max-h-72 overflow-auto rounded-lg bg-foreground/5 px-2.5 py-2 font-mono text-[11px] leading-relaxed break-all whitespace-pre-wrap dark:bg-black/25",children:ep(l).join("\n")})]}))]})}function eu({src:e}){let[a,n]=(0,O.useState)(!1);return a?null:(0,t.jsx)("img",{src:e,alt:"",onError:()=>n(!0),className:"block w-full rounded-lg bg-muted object-contain"})}function eh({lines:e,mono:a}){return 0===e.length?null:(0,t.jsx)("ul",{className:"px-3 pb-1.5",children:e.map((e,n)=>(0,t.jsx)("li",{className:(0,q.cn)("truncate text-[11px] leading-relaxed text-muted-foreground",a&&"font-mono"),children:e},`${n}-${e}`))})}let ep=e=>e?.flatMap(e=>"text"===e.type?[e.text]:[])??[],em=e=>e?.flatMap(e=>"image"===e.type?[e.src]:[])??[];e.s(["BotTool",0,function(e){let a=W(e.tool)?el:B[e.tool.name]??es;return(0,t.jsx)(a,{...e})},"StepTile",0,function({tool:e,onOpen:a}){let n=ea(e),[r,l]=(0,O.useState)(!1),s=n.icon;return(0,t.jsx)("button",{type:"button",onClick:a,title:e.note??e.input,"aria-label":e.note??e.input,className:"grid size-6 shrink-0 place-items-center overflow-hidden rounded-full bg-background text-muted-foreground outline-none transition-transform hover:scale-110 focus-visible:ring-3 focus-visible:ring-ring/50",children:n.image&&!r?(0,t.jsx)(j.default,{src:N.queryKey.file(n.image),alt:"",width:48,height:48,loading:"lazy",decoding:"async",onError:()=>l(!0),className:"size-full object-cover"}):n.host?(0,t.jsx)(E.SiteIcon,{host:n.host,className:"size-3.5 rounded-full",fallback:(0,t.jsx)(s,{className:"size-3"})}):(0,t.jsx)(s,{className:"size-3"})})},"toolIcon",0,Z],222055)},431594,e=>{"use strict";var t=e.i(456420);let a={name:"repeat",size:24,node:[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]};a.node;let n=(0,t.default)(a);e.s(["RoutineMark",0,n],431594)},76177,e=>{"use strict";var t=e.i(95187);let a=(0,t.createServerReference)("7f93d2b708efeafdbdcc5224b97b42a42d1a662d71",t.callServer,void 0,t.findSourceMapURL,"setSignInBotAction");e.s(["setSignInBotAction",0,a])},256604,e=>{"use strict";var t=e.i(843476),a=e.i(271645),n=e.i(467580),r=e.i(567334),l=e.i(877267);let s=240/276,i=new Map,o=new Set,d=null;e.s(["THURSDAY_SEED",0,"thursday","ThursdayMark",0,function({size:e=16,className:c}){let u="emoji"===(0,l.useFaceGlyphs)(),{cells:h,font:p}=function(e){let t=i.get(e);if(t)return t;let a=e*s,n=(e-a)/2,l=Math.max(2,Math.round(a/4)),o=a/l,d=.98*o,c=[];for(let e=0;e<l;e++)for(let t=0;t<l;t++){let s=3===l&&1!==e&&1!==t?.72:1,i=a/2+o*(t+.5-l/2)*s,u=a/2+o*(e+.5-l/2)*s,h=Math.hypot(i-a/2,u-a/2)/(a/2),p=977*l+e*l+t;!(h+(l>=5?((0,r.hash)(p,1)-.5)*.24:0)>.98)&&(l>=8&&(0,r.hash)(p,2)<.02+.24*h**3||c.push({seed:p,x:n+i,y:n+u+.36*d,r:h}))}let u={cells:c,font:d};return i.set(e,u),u}(e),[m,f]=(0,a.useState)(0),g=(0,a.useRef)(null),x=(0,n.useOnScreen)(g);return(0,a.useEffect)(()=>{if(x&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches){if(o.add(f),!d){let e=Date.now();d=setInterval(()=>{let t=Date.now()-e;for(let e of o)e(t)},155)}return()=>{o.delete(f),0===o.size&&d&&(clearInterval(d),d=null)}}},[x]),(0,t.jsx)("svg",{ref:g,viewBox:`0 0 ${e} ${e}`,width:e,height:e,className:c,fill:"currentColor","aria-hidden":!0,children:h.map(e=>(0,t.jsx)("text",{x:e.x,y:e.y,textAnchor:"middle",fontFamily:u?'"Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif':"ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:u?void 0:700,fontSize:p,children:function(e,t,a){let n=Math.floor((t+620*(0,r.hash)(e.seed,11)*3)/620);if(a){let t=Math.floor((0,r.hash)(e.seed,17)*r.EMOJI_POOL.length);return r.EMOJI_POOL[(t+9*n)%r.EMOJI_POOL.length]}let l=Math.round(5+4*Math.max(0,1-e.r**2)**.6),s=r.RAMP[Math.min(r.RAMP.length-1,l)];return s[Math.floor((0,r.hash)(e.seed,n)*s.length)]??" "}(e,m,u)},e.seed))})}])},661504,e=>{"use strict";var t=e.i(271645),a=e.i(699018),n=e.i(677309),r=e.i(271235),l=e.i(802239),s=e.i(646192);let i=Promise.resolve(),o=(0,r.withMiddleware)(a.u,e=>(a,r,o)=>{let d,c=(0,t.useRef)(!1),{cache:u,initialSize:h=1,revalidateAll:p=!1,persistSize:m=!1,revalidateFirstPage:f=!0,revalidateOnMount:g=!1,parallel:x=!1}=o,[,,,y]=n.a.get(n.o);try{(d=(0,n.s)(a?a(0,null):null)[0])&&(d=s.INFINITE_PREFIX+d)}catch(e){}let[k,b,_]=(0,n.c)(u,d),v=(0,t.useCallback)(()=>(0,n.i)(k()._l)?h:k()._l,[u,d,h]);(0,l.useSyncExternalStore)((0,t.useCallback)(e=>d?_(d,()=>{e()}):()=>{},[u,d]),v,v);let M=(0,t.useCallback)(()=>{let e=k()._l;return(0,n.i)(e)?h:e},[d,h]),w=(0,t.useRef)(M());(0,n.u)(()=>{if(!c.current){c.current=!0;return}d&&b({_l:m?w.current:M()})},[d,u]);let j=g&&!c.current,O=e(d,async e=>{let t=k()._i,l=k()._r,s=n.a.get(u),i=s[8],d=()=>s[8]!==i;b({_r:n.U});let c=[],h=M(),[m]=(0,n.c)(u,e),g=m().data,_=[],v=null;for(let e=0;e<h;++e){let[s,i]=(0,n.s)(a(e,x?null:v));if(!s)break;let[h,m]=(0,n.c)(u,s),k=h().data,b=p||t||(0,n.i)(k)||f&&!e&&!(0,n.i)(g)||j||g&&!(0,n.i)(g[e])&&!o.compare(g[e],k);if(r&&("function"==typeof l?l(k,i):b)){let t=async()=>{if(s in y){let e=y[s];delete y[s],k=await e}else k=await r(i);d()||m({data:k,_k:i}),c[e]=k};x?_.push(t):await t()}else c[e]=k;x||(v=k)}return x&&await Promise.all(_.map(e=>e())),d()||b({_i:n.U}),c},o),N=(0,t.useCallback)(function(e,t){let a="boolean"==typeof t?{revalidate:t}:t||{},r=!1!==a.revalidate;return d?(r&&((0,n.i)(e)?b({_i:!0,_r:a.revalidate}):b({_i:!1,_r:a.revalidate})),arguments.length?O.mutate(e,{...a,revalidate:r}):O.mutate()):i},[d,u]),S=(0,t.useCallback)(e=>{let t;if(!d)return i;let[,r]=(0,n.c)(u,d);if((0,n.e)(e)?t=e(M()):"number"==typeof e&&(t=e),"number"!=typeof t)return i;r({_l:t}),w.current=t;let l=[],[s]=(0,n.c)(u,d),o=null;for(let e=0;e<t;++e){let[t]=(0,n.s)(a(e,o)),[r]=(0,n.c)(u,t),i=t?r().data:n.U;if((0,n.i)(i))return N(s().data);l.push(i),o=i}return N(l)},[d,u,N,M]);return{size:M(),setSize:S,mutate:N,get data(){return O.data},get error(){return O.error},get isValidating(){return O.isValidating},get isLoading(){return O.isLoading}}});var d=e.i(41533),c=e.i(283653);e.s(["useServerPages",0,function(e){let a=e.size??d.PAGE_SIZE,{key:n}=e,{data:r,error:l,isLoading:s,isValidating:i,setSize:u,mutate:h}=o((e,t)=>(0,c.resolveKey)(n(e,t)),c.fetchRoute,{...c.READ_DEFAULTS,revalidateFirstPage:!1,...e.swr}),p=r??[],m=(0,t.useMemo)(()=>(r??[]).flat(),[r]),f=p.at(-1),g=void 0!==f&&f.length>=a,x=(0,t.useRef)(0),y=i&&p.length>0&&x.current>p.length,k=(0,t.useRef)({isValidating:i,setSize:u,pages:p.length});(0,t.useEffect)(()=>{k.current={isValidating:i,setSize:u,pages:p.length}});let b=(0,t.useCallback)(()=>h(),[h]),_=(0,c.resolveKey)(n(0,null)),v="string"==typeof _?_:_?.url;(0,t.useEffect)(()=>{if(v)return(0,c.registerPagedReader)({url:v,refresh:b})},[v,b]);let M=function(e,a={}){let{enabled:n=!0,margin:r="600px",revision:l}=a,s=(0,t.useRef)(e);s.current=e;let i=(0,t.useRef)(null),o=(0,t.useRef)(null),d=(0,t.useCallback)(e=>{i.current=e},[]);return(0,t.useEffect)(()=>{o.current?.disconnect();let e=i.current;if(e&&n)return o.current=new IntersectionObserver(([e])=>{e.isIntersecting&&s.current()},{root:function(e){let t=e.parentElement;for(;t;){let{overflowY:e}=getComputedStyle(t);if(("auto"===e||"scroll"===e)&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return null}(e),rootMargin:r}),o.current.observe(e),()=>o.current?.disconnect()},[n,r,l]),d}(()=>{let e=k.current;e.isValidating||(x.current=e.pages+1,e.setSize(e.pages+1))},{enabled:g,revision:`${p.length}:${i}`});return{items:m,isLoading:s,isLoadingMore:y,error:l,hasMore:g,sentinelRef:M,refresh:b}}],661504)},96892,319841,e=>{"use strict";var t=e.i(456420);let a={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};a.node;let n=(0,t.default)(a);e.s(["ArrowUp",0,n],96892);var r=e.i(271645);let l=["ctrl","alt","meta"],s=/^(Control|Alt|Shift|Meta|OS)/,i=/^(input|textarea|select)$/i,o=e=>!!e&&!!(i.test(e.tagName)||e.isContentEditable||e.closest?.("[data-hotkey-capture]")),d=e=>{let t="nativeEvent"in e?e.nativeEvent:e;return t.isComposing||229===t.keyCode},c=[],u=e=>{if("Escape"!==e.key||e.defaultPrevented||d(e))return;let t=c.at(-1);t&&(e.preventDefault(),t.current())};function h(e){let{code:t,ctrlKey:a,altKey:n,shiftKey:r,metaKey:l}=e;if(!t||s.test(t)||!a&&!n&&!l)return null;let i=[];return a&&i.push("ctrl"),n&&i.push("alt"),r&&i.push("shift"),l&&i.push("meta"),[...i,t].join("+")}let p={ctrl:["Ctrl","⌃"],alt:["Alt","⌥"],shift:["Shift","⇧"],meta:["Meta","⌘"]};function m(e,t=!1){let a=e.split("+"),n=a.at(-1)??"",r=a.slice(0,-1).map(e=>p[e]?.[+!!t]??e),l=n.replace(/^(Key|Digit|Numpad)/,"").replace(/([a-z])([A-Z])/g,"$1 $2")||n;return t?[...r,l].join(""):[...r,l].join(" + ")}e.s(["HOTKEY_CAPTURE",0,{"data-hotkey-capture":""},"capturesKeys",0,o,"comboOf",0,h,"composing",0,d,"isCombo",0,e=>{let t=e.split("+"),a=t.at(-1);return!!(a&&!s.test(a)&&t.slice(0,-1).some(e=>l.includes(e)))},"typed",0,(e,t)=>e.key===t&&!e.metaKey&&(e.altKey||!e.ctrlKey),"useCommandLabel",0,function(e,t=!1){let[a,n]=(0,r.useState)(!1);return(0,r.useEffect)(()=>n(/mac/i.test(navigator.userAgent)),[]),m([...(a?["shift","meta"]:["ctrl","shift"]).filter(e=>t||"shift"!==e),e].join("+"),a)},"useEscape",0,function(e,t){let a=(0,r.useRef)(t);a.current=t,(0,r.useEffect)(()=>{if(e)return c.push(a),1===c.length&&window.addEventListener("keydown",u),()=>{c.splice(c.indexOf(a),1),c.length||window.removeEventListener("keydown",u)}},[e])},"useHotkey",0,function({enabled:e,combo:t,onPress:a}){let n=(0,r.useRef)(a);n.current=a,(0,r.useEffect)(()=>{if(!e||!t)return;let a=e=>{e.repeat||o(e.target)||h(e)===t&&(e.preventDefault(),n.current())};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[e,t])},"useHotkeyLabel",0,function(e){let[t,a]=(0,r.useState)(!1);return(0,r.useEffect)(()=>a(/mac/i.test(navigator.userAgent)),[]),e?m(e,t):null},"windowKey",0,e=>!e.defaultPrevented&&!d(e)&&!o(e.target)&&!e.target?.closest?.('[role="dialog"]')],319841)},856539,e=>{"use strict";var t=e.i(456420);let a={name:"book-bookmark",size:24,node:[["path",{d:"M10 2v7.751a.25.25 0 00.407.195l2.28-1.834a.5.5 0 01.627 0l2.28 1.834A.25.25 0 0016 9.751V2",key:"x9x4jl"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 016.5 2H19a1 1 0 011 1v18a1 1 0 01-1 1H6.5a1 1 0 010-5H20",key:"1889un"}]],aliases:["book-marked"]};a.node;let n=(0,t.default)(a);e.s(["BookMarked",0,n],856539)},518515,772382,60744,341123,218964,468590,928310,730274,604139,e=>{"use strict";var t=e.i(456420);let a={name:"camera",size:24,node:[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]};a.node;let n=(0,t.default)(a);e.s(["Camera",0,n],518515);let r={name:"eye",size:24,node:[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};r.node;let l=(0,t.default)(r);e.s(["Eye",0,l],772382);let s={name:"file-pen",size:24,node:[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],aliases:["file-edit"]};s.node;let i=(0,t.default)(s);e.s(["FilePen",0,i],60744);let o={name:"id-card",size:24,node:[["path",{d:"M13 19a4 4 0 00-8 0",key:"cugzd5"}],["path",{d:"M16 10h2",key:"8sgtl7"}],["path",{d:"M16 14h2",key:"epxaof"}],["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{x:"2",y:"5",width:"20",height:"14",rx:"2",key:"qneu4z"}]]};o.node;let d=(0,t.default)(o);e.s(["IdCard",0,d],341123);let c={name:"list-checks",size:24,node:[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]]};c.node;let u=(0,t.default)(c);e.s(["ListChecks",0,u],218964);let h={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]};h.node;let p=(0,t.default)(h);e.s(["MessageSquare",0,p],468590);let m={name:"phone-off",size:24,node:[["path",{d:"M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272",key:"1wngk7"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473",key:"10hv5p"}]]};m.node;let f=(0,t.default)(m);e.s(["PhoneOff",0,f],928310);let g={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]};g.node;let x=(0,t.default)(g);e.s(["Send",0,x],730274);let y={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};y.node;let k=(0,t.default)(y);e.s(["Terminal",0,k],604139)},24071,e=>{"use strict";var t=e.i(456420);let a={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};a.node;let n=(0,t.default)(a);e.s(["ChevronLeft",0,n],24071)},226091,e=>{"use strict";var t=e.i(456420);let a={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};a.node;let n=(0,t.default)(a);e.s(["FileText",0,n],226091)},829600,e=>{"use strict";var t=e.i(456420);let a={name:"file",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]};a.node;let n=(0,t.default)(a);e.s(["File",0,n],829600)},91511,e=>{"use strict";var t=e.i(456420);let a={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};a.node;let n=(0,t.default)(a);e.s(["Globe",0,n],91511)},815170,e=>{"use strict";var t=e.i(456420);let a={name:"image",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]};a.node;let n=(0,t.default)(a);e.s(["Image",0,n],815170)},632781,e=>{"use strict";var t=e.i(758379);e.s(["Loader2",()=>t.default])},438583,e=>{"use strict";var t=e.i(456420);let a={name:"video",size:24,node:[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]};a.node;let n=(0,t.default)(a);e.s(["Video",0,n],438583)},747925,e=>{"use strict";var t=e.i(456420);let a={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};a.node;let n=(0,t.default)(a);e.s(["Wrench",0,n],747925)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,458898,e=>{"use strict";var t=e.i(843476),l=e.i(271645),a=e.i(798120),s=e.i(421429),u=e.i(283653),i=e.i(265402);e.s(["EffortSwitch",0,function({provider:e,model:n,value:r,onChange:o}){var d;let{data:f}=(0,u.useServerRoute)((0,i.isCatalogProvider)(e)&&n?a.queryKey.modelCatalog(e):null),h=!!(e&&n),c=h&&e?(0,i.effortsOf)(e,n,f??[]):null,m=(0,l.useRef)(null);(0,l.useEffect)(()=>{if(!r||c?.includes(r)){m.current=null;return}c&&m.current!==r&&(m.current=r,o(null))},[r,c,o]);let[p,v]=(0,l.useState)(null);(0,l.useEffect)(()=>{v(e=>e&&e.step===r?null:e)},[r]);let g=p?p.step:r,T=c??[],k=!g||!T.includes(g);return(0,t.jsx)("div",{className:"min-w-0",title:h?null===(d=c)?"This model's steps are unknown":0===d.length?"This model has no effort to set":`${d.length} steps, plus Auto`:"Pick a model first",children:(0,t.jsx)(s.Segmented,{"aria-label":"Thinking effort",className:"max-w-full flex-wrap",options:[{value:"auto",label:"auto",title:"The model's own default"},...T.map(e=>({value:e,label:e,title:`Thinking effort ${e}`}))],value:k?"auto":g,onChange:e=>{let t="auto"===e?null:e;v({step:t}),o(t)}})})}])},759659,e=>{"use strict";var t=e.i(456420);let l={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"]};l.node;let a=(0,t.default)(l);e.s(["Trash2",0,a],759659)},466787,e=>{"use strict";var t=e.i(755566);e.s(["TriangleAlert",()=>t.default])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,458898,e=>{"use strict";var t=e.i(843476),l=e.i(271645),a=e.i(798120),s=e.i(421429),i=e.i(283653),r=e.i(265402);e.s(["EffortSwitch",0,function({provider:e,model:u,value:n,onChange:o}){var c;let{data:d}=(0,i.useServerRoute)((0,r.isCatalogProvider)(e)&&u?a.queryKey.modelCatalog(e):null),f=!!(e&&u),h=f&&e?(0,r.effortsOf)(e,u,d??[]):null,v=(0,l.useRef)(null);(0,l.useEffect)(()=>{if(!n||h?.includes(n)){v.current=null;return}h&&v.current!==n&&(v.current=n,o(null))},[n,h,o]);let[p,m]=(0,l.useState)(null);(0,l.useEffect)(()=>{m(e=>e&&e.step===n?null:e)},[n]);let b=p?p.step:n,k=h??[],g=!b||!k.includes(b);return(0,t.jsx)("div",{className:"min-w-0",title:f?null===(c=h)?"This model's steps are unknown":0===c.length?"This model has no effort to set":`${c.length} steps, plus Auto`:"Pick a model first",children:(0,t.jsx)(s.Segmented,{"aria-label":"Thinking effort",className:"max-w-full flex-wrap",options:[{value:"auto",label:"auto",title:"The model's own default"},...k.map(e=>({value:e,label:e,title:`Thinking effort ${e}`}))],value:g?"auto":b,onChange:e=>{let t="auto"===e?null:e;m({step:t}),o(t)}})})}])},30830,e=>{"use strict";var t=e.i(95187);let l=(0,t.createServerReference)("7fb032f1365c4590741fb41e5393384b8aa6dd1cda",t.callServer,void 0,t.findSourceMapURL,"deleteWorkspaceFileAction");e.s(["deleteWorkspaceFileAction",0,l])},333999,e=>{"use strict";var t=e.i(271645),l=e.i(647163);e.s(["useObjectState",0,e=>{let[a,s]=(0,t.useState)(e);return[a,(0,t.useCallback)(e=>{s(t=>{let a=(0,l.isFunction)(e)?e(t):e;return Object.keys(a).some(e=>!Object.is(t[e],a[e]))?{...t,...a}:t})},[])]}])},759659,e=>{"use strict";var t=e.i(456420);let l={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"]};l.node;let a=(0,t.default)(l);e.s(["Trash2",0,a],759659)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,835878,e=>{"use strict";var t=e.i(843476),n=e.i(635963);e.s(["BotRoster",0,function({bots:e}){return e.length<2?null:(0,t.jsxs)("span",{className:"flex shrink-0 items-center gap-1.5",title:e.map(e=>e.name).join(", "),children:[(0,t.jsx)("span",{className:"flex items-center gap-0.5",children:e.slice(0,3).map(e=>(0,t.jsx)(n.BotMark,{size:18,seed:e.name,color:e.icon?.color,shape:e.icon?.shape,outline:e.icon?.outline,paint:e.icon?.paint,notify:!1,className:"shrink-0"},e.name))}),(0,t.jsxs)("span",{className:"font-mono text-[10px] text-muted-foreground",children:[e.length," bots"]})]})}])},351866,51481,825398,e=>{"use strict";var t=e.i(843476),n=e.i(401851),a=e.i(689664),s=e.i(716327),o=e.i(24071),r=e.i(456420);let i={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["help-circle","circle-help"]};i.node;let l=(0,r.default)(i);e.s(["CircleQuestionMark",0,l],51481);var d=e.i(508734),c=e.i(919191),u=e.i(632781);let m={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};m.node;let x=(0,r.default)(m);e.s(["RotateCw",0,x],825398);var b=e.i(263676),p=e.i(271645),f=e.i(176782),h=e.i(552245),g=e.i(225913),k=e.i(647163);let j=(0,g.cva)("group/bubble relative flex w-fit max-w-[80%] min-w-0 flex-col gap-1 group-data-[align=end]/message:self-end data-[align=end]:self-end data-[variant=ghost]:max-w-full",{variants:{variant:{default:"*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80",secondary:"*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]",muted:"*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]",tinted:"*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] *:data-[slot=bubble-content]:text-foreground dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]",outline:"*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30",ghost:"border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50",destructive:"*:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive dark:*:data-[slot=bubble-content]:bg-destructive/20 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30"}},defaultVariants:{variant:"default"}});function v({variant:e="default",align:n="start",className:a,...s}){return(0,t.jsx)("div",{"data-slot":"bubble","data-variant":e,"data-align":n,className:(0,k.cn)(j({variant:e}),a),...s})}function w({className:e,render:t,...n}){var a;return a={defaultTagName:"div",props:(0,f.mergeProps)({className:(0,k.cn)("w-fit max-w-full min-w-0 overflow-hidden rounded-xl border border-transparent px-3 py-2 text-sm leading-relaxed wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-left [button,a]:transition-colors [button,a]:outline-none [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-3 [button,a]:focus-visible:ring-ring/50",e)},n),render:t,state:{slot:"bubble-content"}},(0,h.useRenderElement)(a.defaultTagName??"div",a,a)}(0,g.cva)("absolute z-10 flex w-fit shrink-0 items-center justify-center gap-1 rounded-full bg-muted px-1.5 py-0.5 text-sm ring-3 ring-card has-[button]:p-0",{variants:{side:{top:"top-0 -translate-y-3/4",bottom:"bottom-0 translate-y-3/4"},align:{start:"left-3",end:"right-3"}},defaultVariants:{side:"bottom",align:"end"}});var N=e.i(496336),y=e.i(683408),_=e.i(660302),T=e.i(127341),z=e.i(6799),C=e.i(95187);let M=(0,C.createServerReference)("7f2449080088ac4f4d622f64793fffaf9a8d398ae8",C.callServer,void 0,C.findSourceMapURL,"compactThreadAction");var S=e.i(807038),B=e.i(635963),R=e.i(256604),$=e.i(621285),O=e.i(245629),I=e.i(609856),P=e.i(553429),F=e.i(978411),L=e.i(222055);function A({onClick:e}){return(0,t.jsx)("button",{type:"button",onClick:e,"aria-label":"Fold the room away",className:"grid size-7 shrink-0 place-items-center rounded-full bg-muted text-foreground outline-none transition-colors hover:bg-muted-foreground/20 focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(b.X,{className:"size-3.5"})})}function q({thread:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(H,{thread:e}),(0,t.jsx)(E,{thread:e}),(0,t.jsx)(Y,{thread:e})]})}function H({thread:e}){let{contextTokens:n,tokens:a}=e;return n?(0,t.jsx)("span",{title:`Last step ${(0,k.formatCount)(n)} tokens \xb7 in total in ${(0,k.formatCount)(a.input)} \xb7 out ${(0,k.formatCount)(a.output)}`,className:"shrink-0 font-mono text-[10px] text-muted-foreground tabular-nums",children:(0,k.formatCount)(n)}):null}function E({thread:e}){let{contextTokens:n,contextBudget:a}=e,[s,o]=(0,p.useState)(!1),[r,i]=(0,I.useServerAction)(M,{onOk:()=>o(!0)}),[l,d]=(0,p.useState)(n);if(l!==n&&(d(n),o(!1)),!n||!a)return null;let c=Math.min(1,n/a);return(0,t.jsx)("button",{type:"button",disabled:i||s,onClick:()=>void r(e.id,e.bot.name),title:s?"It summarizes itself at its next step":`Context ${(0,k.formatCount)(n)} of ${(0,k.formatCount)(a)} — it summarizes itself at the end of the bar. Press to have it do so at its next step`,"aria-label":"Summarize this thread's context at its next step",className:"-my-2 flex h-6 shrink-0 items-center rounded-sm outline-none focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-default",children:(0,t.jsx)("span",{className:"block h-[3px] w-9 overflow-hidden rounded-full bg-muted",children:(0,t.jsx)("span",{className:(0,k.cn)("block h-full rounded-full",s?"animate-pulse bg-muted-foreground/40":c>.9?"bg-amber-500/80":"bg-muted-foreground/70"),style:{width:`${Math.max(4,Math.round(100*c))}%`}})})})}let D={working:"text-muted-foreground",waiting:k.WAITING_INK,done:"text-foreground",cancelled:"text-muted-foreground"},U={working:"working",waiting:"waiting",done:"done",cancelled:"stopped"};function Y({thread:e}){let n="done"===e.status&&e.seen?"text-muted-foreground":D[e.status];return"working"===e.status?(0,t.jsx)(_.ShinyText,{text:U.working,speed:2.2,className:"shrink-0 font-mono text-[10px]"}):(0,t.jsx)("span",{className:(0,k.cn)("flex shrink-0 items-center gap-1.5 font-mono text-[10px]",n),children:U[e.status]})}function V({thread:e,roster:n,side:a,onPick:s,className:o}){let r=(0,F.useOfficePointed)();return(0,p.useEffect)(()=>()=>F.officePointed.set(null),[]),(0,t.jsx)(T.Tabs,{value:a??e.bot.name,onValueChange:t=>s(t===e.bot.name?null:String(t)),className:(0,k.cn)("shrink-0 gap-0 px-3 pt-1 pb-0.5",o),children:(0,t.jsx)(T.TabsList,{className:"relative w-full justify-start gap-1 overflow-x-auto rounded-none bg-transparent p-0 scrollbar-none group-data-horizontal/tabs:h-auto",children:n.map(n=>{let a=G(e,n.name);return(0,t.jsxs)(T.TabsTrigger,{value:n.name,onPointerEnter:()=>F.officePointed.set(n.name),onPointerLeave:()=>F.officePointed.set(null),className:(0,k.cn)(K,"pl-1.5",r===n.name&&"bg-muted/60 text-foreground"),children:[(0,t.jsx)(B.BotMark,{size:16,seed:n.name,color:n.icon?.color,shape:n.icon?.shape,outline:n.icon?.outline,paint:n.icon?.paint,notify:"asking"===a,crossed:Q(e,n.name),className:"shrink-0"}),(0,t.jsx)("span",{className:"max-w-28 truncate",children:n.name}),"running"===a&&(0,t.jsx)(u.Loader2,{className:"size-3 animate-spin text-muted-foreground/70"})]},n.name)})})})}let K="h-7 flex-none rounded-full px-3 py-0 text-[12px] text-muted-foreground hover:bg-muted/60 data-active:bg-muted data-active:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-none dark:data-active:border-transparent dark:data-active:bg-muted",Q=(e,t)=>e.room.participants.some(e=>e.bot===t&&("cancelled"===e.state||"paused"===e.state));function G(e,t){let{room:n}=e;return n.questions.some(e=>e.bot===t)?"asking":"working"===e.status&&n.participants.some(e=>e.bot===t&&"running"===e.state)?"running":null}function W({turn:e,thread:n,self:a}){let s=e.speaker.name===a,o=s?"none":er(e.speaker)?"dark":"secondary",r=null;return(0,t.jsx)("div",{className:"animate-in fade-in slide-in-from-bottom-2 duration-300",children:(0,t.jsx)(em,{side:s?"start":"end",name:ei(e.speaker),mark:(0,t.jsx)(ec,{bot:e.speaker}),children:e.entries.map(i=>{if("work"===i.kind)return s?(0,t.jsx)(J,{lines:i.lines,trailing:i.open,bot:e.speaker,thread:n},i.key):(0,t.jsx)(X,{lines:i.lines,trailing:i.open,bot:e.speaker,thread:n},i.key);let l=(0,F.heardBy)(i.line),d=l&&l.name!==e.speaker.name&&l.name!==a&&!er(l)&&l.name!==r?l:null;return l&&(r=l.name),(0,t.jsx)(ex,{line:i.line,surface:o,mention:d,threadId:n.id},i.key)})})})}function X({lines:e,trailing:n,bot:a,thread:s}){var o;let[r,i]=(0,p.useState)(!1),[l,d]=(0,p.useState)(null),c=n?G(s,a.name):null,m=(o=e,[["tool","step"],["say","note"],["stop","stop"],["note","compaction"]].map(([e,t])=>[o.filter(t=>t.kind===e).length,t]).filter(([e])=>e>0).map(([e,t])=>`${e} ${t}${1===e?"":"s"}`).join(" · ")),x=e.filter(e=>e.tool?.results!==void 0);if(!c&&!m)return null;let b=e.findLast(e=>"tool"===e.kind||"say"===e.kind),f=r&&e.length>0;return(0,t.jsxs)("div",{className:(0,k.cn)("flex min-w-0 flex-col rounded-2xl bg-muted/40 p-1",f?"w-full":"w-fit max-w-full"),children:[(0,t.jsxs)("button",{type:"button",disabled:!e.length,"aria-expanded":f,onClick:()=>{i(e=>!e),d(null)},className:"flex min-w-0 items-center gap-2 rounded-xl px-2.5 py-1.5 text-left outline-none transition-colors enabled:hover:bg-muted/60 focus-visible:ring-3 focus-visible:ring-ring/50",children:["running"===c&&(0,t.jsx)(u.Loader2,{className:"size-3 shrink-0 animate-spin text-muted-foreground/60"}),c?(0,t.jsx)(_.ShinyText,{text:"asking"===c?"waiting on you":b?en(b):"working",tone:"asking"===c?"waiting":"muted",speed:2.4,className:(0,k.cn)("min-w-0 truncate text-[12px] leading-4",f&&"flex-1")}):(0,t.jsx)(ee,{words:b?en(b):"",facts:[m,function(e){let t=e.flatMap(e=>e.at?[(0,O.toDate)(e.at).getTime()]:[]);if(t.length<2)return"";let n=Math.round((Math.max(...t)-Math.min(...t))/1e3);if(n<1)return"";if(n<60)return`${n}s`;let a=Math.round(n/60);return a<60?`${a} min`:`${Math.floor(a/60)}h ${a%60}m`}(e)].filter(Boolean).join(" · "),grow:f}),e.length>0&&(0,t.jsx)(et,{open:f})]}),!f&&x.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-1 px-2 pt-0.5 pb-1.5",children:x.map(e=>e.tool&&(0,t.jsx)(L.StepTile,{tool:e.tool,onOpen:()=>{d(e.id),i(!0)}},e.id))}),f&&(0,t.jsx)("div",{className:"flex min-w-0 flex-col gap-0.5 pt-0.5",children:ew(e).map(e=>"tools"===e.kind?e.lines.map(e=>e.tool&&(0,t.jsx)(L.BotTool,{tool:e.tool,threadId:s.id,collapsed:e.id!==l},e.id)):"stops"===e.kind?(0,t.jsx)("div",{className:"px-1.5 py-1",children:(0,t.jsx)(ej,{lines:e.lines})},e.key):e.lines.map(e=>(0,t.jsx)(eg,{line:e,inset:!0},e.id)))})]})}function J({lines:e,trailing:n,bot:a,thread:s}){let o=n?G(s,a.name):null,r=e.some(e=>e.tool&&void 0===e.tool.results);return(0,t.jsxs)(t.Fragment,{children:[ew(e).map(e=>"tools"===e.kind?(0,t.jsx)(Z,{lines:e.lines,threadId:s.id},e.key):"stops"===e.kind?(0,t.jsx)(ej,{lines:e.lines},e.key):e.lines.map(e=>(0,t.jsx)(eg,{line:e},e.id))),o&&(0,t.jsx)(_.ShinyText,{text:"asking"===o?"waiting on you":"on the next step…",tone:"asking"===o?"waiting":"muted",speed:2.2,className:(0,k.cn)("block px-1 font-mono text-[10px]",r&&"invisible")})]})}function Z({lines:e,threadId:n}){return(0,t.jsx)("div",{className:"flex w-full flex-col gap-0.5 rounded-2xl bg-muted/40 p-1",children:e.map(e=>e.tool&&(0,t.jsx)(L.BotTool,{tool:e.tool,threadId:n,collapsed:!0},e.id))})}function ee({words:e,facts:n,grow:a=!1}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:(0,k.cn)("min-w-0 truncate text-[12.5px] leading-5 text-foreground/80",a&&"flex-1"),children:e}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[10.5px] leading-4 text-muted-foreground",children:n})]})}function et({open:e}){return(0,t.jsx)("span",{className:"grid size-5.5 shrink-0 place-items-center rounded-md bg-background text-muted-foreground ring-1 ring-border/60",children:(0,t.jsx)(s.ChevronDown,{className:(0,k.cn)("size-3.5 transition-transform",e&&"rotate-180")})})}function en(e){return"tool"===e.kind&&e.tool?e.tool.note??`${e.tool.name} \xb7 ${e.tool.input}`:(0,k.plainText)(e.text).replace(/\s+/g," ").trim()}function ea({thread:e}){let n="user"===e.startedBy?eo:es;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(el,{from:n,to:e.bot}),(0,t.jsx)(em,{side:"end",name:ei(n),mark:(0,t.jsx)(ec,{bot:n}),children:(0,t.jsx)(eu,{dark:!0,className:"py-2 pr-2 pl-3.5",children:(0,t.jsx)(N.FoldedText,{text:e.request,subject:"request",className:"wrap-anywhere"})})})]})}let es={name:P.ROOM_THURSDAY},eo={name:P.ROOM_USER},er=e=>e.name===es.name||e.name===eo.name,ei=e=>e.name===eo.name?"You":e.name;function el({from:e,to:n}){return(0,t.jsx)("div",{className:"flex animate-in justify-center fade-in duration-300",children:(0,t.jsxs)("span",{className:"flex max-w-full items-center gap-1.5 rounded-full bg-muted px-2.5 py-1 font-mono text-[10px] text-muted-foreground",children:[(0,t.jsx)(ed,{bot:e}),(0,t.jsx)("span",{className:"shrink-0 text-muted-foreground",children:e.name===eo.name?"asked":"invited"}),(0,t.jsx)(ed,{bot:n})]})})}function ed({bot:e}){return e.name===eo.name?(0,t.jsx)("span",{className:"shrink-0",children:"You"}):(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[e.name===es.name?(0,t.jsx)(R.ThursdayMark,{size:15,className:"shrink-0"}):(0,t.jsx)(B.BotMark,{size:15,seed:e.name,color:e.icon?.color,shape:e.icon?.shape,outline:e.icon?.outline,paint:e.icon?.paint,notify:!1,className:"shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e.name})]})}function ec({bot:e}){return e.name===eo.name?null:e.name===es.name?(0,t.jsx)(R.ThursdayMark,{size:26,className:"mt-1 shrink-0"}):(0,t.jsx)(B.BotMark,{size:26,seed:e.name,color:e.icon?.color,shape:e.icon?.shape,outline:e.icon?.outline,paint:e.icon?.paint,notify:!1,className:"mt-1 shrink-0"})}function eu({dark:e=!1,children:n,className:a}){return(0,t.jsx)(v,{align:"end",variant:e?"default":"secondary",className:"max-w-full",children:(0,t.jsx)(w,{className:(0,k.cn)("rounded-tr-md px-3.5",a),children:(0,t.jsx)("div",{className:(0,k.cn)("min-w-0",e&&"inverse"),children:n})})})}function em({side:e,mark:n,name:a,children:s}){return(0,t.jsxs)("div",{className:(0,k.cn)("flex gap-2.5","end"===e&&"flex-row-reverse"),children:[n,(0,t.jsxs)("div",{className:(0,k.cn)("flex min-w-0 flex-1 flex-col gap-1.5 [&>*+*]:max-w-[80%]","end"===e&&"items-end"),children:[(0,t.jsx)("p",{className:"max-w-[80%] truncate px-1 font-mono text-[10px] text-muted-foreground",children:a}),s]})]})}function ex({line:e,surface:n,mention:a,threadId:s=null}){let o=!!e.question,r="result"===e.kind,i="none"!==n,l=(0,S.shortenPaths)(e.text),d=(0,t.jsxs)(t.Fragment,{children:[o&&(0,t.jsx)(eh,{}),a?(0,t.jsx)(ef,{bot:a,bubble:i,children:l}):(0,t.jsx)(eb,{bubble:i,className:(0,k.cn)(!r&&"leading-snug"),children:l}),(0,t.jsx)(S.Attachments,{text:e.text,from:s,onBubble:i,className:"mt-2"})]});return(0,t.jsxs)(t.Fragment,{children:[i?(0,t.jsx)(eu,{dark:"dark"===n,children:d}):(0,t.jsx)("div",{className:"min-w-0 max-w-full px-1",children:d}),e.steppedIn&&(0,t.jsxs)("p",{className:"flex items-center gap-1 px-1 font-mono text-[10px] text-muted-foreground",children:[(0,t.jsx)(c.CornerDownLeft,{className:"size-2.5"}),"stepped in"]}),r&&(0,t.jsx)("div",{className:"flex px-1",children:(0,t.jsx)(ek,{text:e.text})})]})}function eb({children:e,bubble:n=!1,className:a}){return(0,t.jsx)(y.Markdown,{className:(0,k.cn)("min-w-0 max-w-full text-[13px] leading-relaxed wrap-anywhere break-keep [&_h1]:text-[15px] [&_h2]:text-[14px] [&_h3]:text-[13px] [&_h3]:font-semibold [&_li]:my-0.5 [&_table]:text-[12px] [&_table]:wrap-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",n&&"[&_[data-streamdown=inline-code]]:text-[12px] [&_[data-streamdown=code-block]]:my-2 [&_[data-streamdown=code-block]]:gap-0 [&_[data-streamdown=code-block]]:rounded-[10px] [&_[data-streamdown=code-block]]:border-0 [&_[data-streamdown=code-block]]:bg-background [&_[data-streamdown=code-block]]:p-0 [&_[data-streamdown=code-block-header]]:h-7 [&_[data-streamdown=code-block-header]]:px-2.5 [&_[data-streamdown=code-block-header]]:text-[11px] [&_[data-streamdown=code-block-body]]:border-0 [&_[data-streamdown=code-block-body]]:bg-transparent! [&_[data-streamdown=code-block-body]]:px-2.5 [&_[data-streamdown=code-block-body]]:pt-0 [&_[data-streamdown=code-block-body]]:pb-2.5 [&_[data-streamdown=code-block-body]]:text-[12.5px] [&_[data-streamdown=code-block]_div:has(>[data-streamdown=code-block-actions])]:-mt-7 [&_[data-streamdown=code-block-actions]]:mr-1 [&_[data-streamdown=code-block-actions]]:border-0 [&_[data-streamdown=code-block-actions]]:bg-transparent!",a),children:e})}function ep({bot:e,bubble:n}){return(0,t.jsxs)("span",{className:(0,k.cn)("mr-1.5 inline-flex h-5 max-w-full items-center gap-1 rounded-full pr-2 pl-[3px] align-[-4px] text-[12px] leading-none font-medium whitespace-nowrap text-foreground",n?"bg-background":"bg-muted"),children:[(0,t.jsx)(B.BotMark,{size:14,seed:e.name,color:e.icon?.color,shape:e.icon?.shape,outline:e.icon?.outline,paint:e.icon?.paint,notify:!1,className:"shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e.name})]})}function ef({bot:e,bubble:n,children:a}){return(0,t.jsxs)("div",{className:"min-w-0 max-w-full text-[13px] leading-snug",children:[(0,t.jsx)(ep,{bot:e,bubble:n}),(0,t.jsx)(eb,{bubble:n,className:"contents leading-snug [&>p:first-child]:inline",children:a})]})}function eh(){return(0,t.jsxs)("p",{className:"mb-1 flex items-center gap-1.5 text-[12px] leading-4 font-medium text-muted-foreground",children:[(0,t.jsx)(l,{className:"size-3.5 shrink-0"}),"Question"]})}function eg({line:e,inset:n=!1}){return"note"===e.kind?(0,t.jsxs)("details",{className:"w-full px-2 py-1 text-muted-foreground",children:[(0,t.jsxs)("summary",{className:"flex cursor-pointer list-none items-center gap-2.5 outline-none [&::-webkit-details-marker]:hidden",children:[(0,t.jsx)("span",{className:"h-px flex-1 bg-border"}),(0,t.jsx)("span",{className:"min-w-0 text-center font-mono text-[10px]",children:"Compacted — it goes on from its summary"}),(0,t.jsx)("span",{className:"h-px flex-1 bg-border"})]}),(0,t.jsx)(eb,{className:"mt-2 rounded-xl bg-muted/40 px-3 py-2 text-[11px]",children:e.text})]}):(0,t.jsx)(eb,{className:(0,k.cn)("text-[12.5px] text-muted-foreground",n?"px-2.5 py-1":"px-1"),children:e.text})}function ek({text:e}){let[n,s]=(0,p.useState)(!1),o=(0,p.useRef)(null);return(0,p.useEffect)(()=>()=>{o.current&&clearTimeout(o.current)},[]),(0,t.jsx)("button",{type:"button","aria-label":"Copy the answer",onClick:async()=>{try{await navigator.clipboard.writeText(e),s(!0),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>s(!1),1400)}catch(e){z.toast.add({type:"error",title:"Could not copy the answer",description:(0,k.errorToString)(e)})}},className:"grid size-5 shrink-0 place-items-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:n?(0,t.jsx)(a.Check,{className:"size-3"}):(0,t.jsx)(d.Copy,{className:"size-3"})})}function ej({lines:e}){return(0,t.jsxs)("details",{className:"group min-w-0 px-1 text-muted-foreground",children:[(0,t.jsxs)("summary",{className:"flex cursor-pointer list-none items-center gap-1.5 text-[12.5px] leading-relaxed outline-none [&::-webkit-details-marker]:hidden",children:[(0,t.jsx)(x,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:ev(e[0].text)}),e.length>1&&(0,t.jsxs)("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground",children:["×",e.length]}),(0,t.jsx)(s.ChevronDown,{className:"size-2.5 shrink-0 text-muted-foreground/70 transition-transform group-open:rotate-180"})]}),(0,t.jsx)("div",{className:"mt-1 space-y-1 pl-4.5 text-[11px] leading-relaxed",children:e.map(e=>(0,t.jsxs)("p",{className:"flex gap-2 break-keep wrap-anywhere",children:[e.at&&(0,t.jsx)("span",{className:"shrink-0 font-mono text-muted-foreground tabular-nums",children:(0,n.format)((0,O.toDate)(e.at),"HH:mm:ss")}),(0,t.jsx)("span",{className:"min-w-0",children:e.text})]},e.id))})]})}let ev=e=>e.split(" (")[0].replace(/\.$/,"");function ew(e){let t=[];for(let n of e){let e="tool"===n.kind&&n.tool?"tools":"stop"===n.kind?"stops":"said",a=t.at(-1),s=a?.kind===e&&("stops"!==e||ev(a.lines[0].text)===ev(n.text));a&&s?a.lines.push(n):t.push({kind:e,key:n.id,lines:[n]})}return t}e.s(["Conversation",0,function({thread:e,tab:n=null,onTab:a,className:s,tabsClassName:o}){let r,i=(0,p.useRef)(null),l=(0,p.useRef)(!0),d=e.roster,c=a&&n!==e.bot.name&&d.some(e=>e.name===n)?n:null,u=c??e.bot.name,m=d.filter(t=>(!c||t.name===c)&&G(e,t.name)),x=(0,F.threadItems)((r=new Set(e.room.questions.map(e=>e.id))).size?{...e,lines:e.lines.filter(e=>!("ask"===e.kind&&void 0!==e.questionId&&r.has(e.questionId)))}:e,u,m);return(0,p.useEffect)(()=>{l.current=!0},[e.id,c]),(0,p.useEffect)(()=>{let e=i.current;e&&l.current&&(e.scrollTop=e.scrollHeight)},[e.lines,e.status,c]),(0,p.useEffect)(()=>{let e=i.current;if(!e)return;let t=new ResizeObserver(()=>{l.current&&(e.scrollTop=e.scrollHeight)});for(let n of(t.observe(e),Array.from(e.children)))t.observe(n);return()=>t.disconnect()},[x.length,e.lines,c]),(0,t.jsxs)($.FileViewer,{children:[a&&(0,t.jsx)(V,{thread:e,roster:d,side:c,onPick:a,className:o}),(0,t.jsxs)("div",{ref:i,onScroll:e=>{let t=e.currentTarget;l.current=t.scrollHeight-t.scrollTop-t.clientHeight<24},className:(0,k.cn)("min-w-0 max-h-[64vh] space-y-3 overflow-y-auto px-4 pt-6 pb-4 mask-[linear-gradient(to_bottom,transparent,black_2rem)] scrollbar-none",s),children:[!c&&(0,t.jsx)(ea,{thread:e}),x.map(n=>"invite"===n.kind?(0,t.jsx)(el,{from:n.from,to:n.to},n.key):(0,t.jsx)(W,{turn:n,thread:e,self:u},n.key))]})]})},"FoldButton",0,A,"TAB",0,K,"THURSDAY",0,es,"ThreadFacts",0,q,"ThreadHeader",0,function({thread:e,onBack:n,onClose:a,titled:s=!0,children:r}){return s?(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 pt-3 pb-1",children:[(0,t.jsx)("button",{type:"button",onClick:n,"aria-label":"Back to the list",className:"shrink-0 rounded-md p-1 text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(o.ChevronLeft,{className:"size-4"})}),(0,t.jsx)(B.BotMark,{size:22,seed:e.bot.name,color:e.bot.icon?.color,shape:e.bot.icon?.shape,outline:e.bot.icon?.outline,paint:e.bot.icon?.paint,notify:!1,crossed:"cancelled"===e.status||Q(e,e.bot.name)}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-[13px] font-medium",children:e.label}),(0,t.jsx)(q,{thread:e}),r,(0,t.jsx)(A,{onClick:a})]}):(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 pt-3 pb-1",children:[(0,t.jsxs)("button",{type:"button",onClick:n,"aria-label":"Back to the list",className:"flex shrink-0 items-center gap-1 rounded-md p-1 pr-2 text-[12.5px] text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,t.jsx)(o.ChevronLeft,{className:"size-4"}),"Threads"]}),(0,t.jsx)("span",{className:"flex-1"}),(0,t.jsx)(q,{thread:e}),r,(0,t.jsx)(A,{onClick:a})]})},"YOU",0,eo,"leadOf",0,ev,"stepOf",0,en],351866)}]);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,805995,e=>{"use strict";var t,n=e.i(843476),s=e.i(493801),r=e.i(375775),i=e.i(422411),a=e.i(525335),o=e.i(689664),l=e.i(867927),d=e.i(456420);let c={name:"clapperboard",size:24,node:[["path",{d:"m12.296 3.464 3.02 3.956",key:"qash78"}],["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3z",key:"1h7j8b"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"4lm6w1"}],["path",{d:"m6.18 5.276 3.1 3.899",key:"zjj9t3"}]]};c.node;let u=(0,d.default)(c);var h=e.i(815170),m=e.i(758925),f=e.i(566595),x=e.i(466787),p=e.i(271645),g=e.i(798120),y=e.i(167881),v=e.i(23750),j=e.i(917162),k=e.i(818125),b=e.i(671428),w=e.i(41533),N=e.i(412294),S=e.i(458898),C=e.i(146538),A=e.i(968978),M=e.i(265402),E=e.i(635963),R=e.i(616816),I=e.i(95187);let F=(0,I.createServerReference)("7f4116c7b3607964bdd71a55470347fc0877efc6fa",I.callServer,void 0,I.findSourceMapURL,"removeConfigAction");var z=e.i(235168),T=e.i(992112),P=e.i(508734),K=e.i(482022),_=e.i(96315),$=((t=$||{})[t.Border=-1]="Border",t[t.Data=0]="Data",t[t.Function=1]="Function",t[t.Position=2]="Position",t[t.Timing=3]="Timing",t[t.Alignment=4]="Alignment",t);let O=[1,0],B=[2,3],L=[3,2],q={L:[0,1],M:O,Q:B,H:L},D=/^\d*$/,H=/^[A-Z0-9 $%*+./:-]*$/,W="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",U=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],Y=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]];class G{constructor(e,t,n,s){if(this.version=e,this.ecc=t,e<1||e>40)throw RangeError("Version value out of range");if(s<-1||s>7)throw RangeError("Mask value out of range");this.size=4*e+17;const r=Array.from({length:this.size}).fill(!1);for(let e=0;e<this.size;e++)this.modules.push(r.slice()),this.types.push(r.map(()=>0));this.drawFunctionPatterns();const i=this.addEccAndInterleave(n);if(this.drawCodewords(i),-1===s){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(s=t,e=n),this.applyMask(t)}}this.mask=s,this.applyMask(s),this.drawFormatBits(s)}size;mask;modules=[];types=[];getModule(e,t){return e>=0&&e<this.size&&t>=0&&t<this.size&&this.modules[t][e]}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0,$.Timing),this.setFunctionModule(e,6,e%2==0,$.Timing);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let s=0;s<t;s++)(0!==n||0!==s)&&(0!==n||s!==t-1)&&(n!==t-1||0!==s)&&this.drawAlignmentPattern(e[n],e[s]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.ecc[1]<<3|e,n=t;for(let e=0;e<10;e++)n=n<<1^(n>>>9)*1335;let s=(t<<10|n)^21522;for(let e=0;e<=5;e++)this.setFunctionModule(8,e,Q(s,e));this.setFunctionModule(8,7,Q(s,6)),this.setFunctionModule(8,8,Q(s,7)),this.setFunctionModule(7,8,Q(s,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,Q(s,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,Q(s,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,Q(s,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;for(let e=0;e<18;e++){let n=Q(t,e),s=this.size-11+e%3,r=Math.floor(e/3);this.setFunctionModule(s,r,n),this.setFunctionModule(r,s,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let s=-4;s<=4;s++){let r=Math.max(Math.abs(s),Math.abs(n)),i=e+s,a=t+n;i>=0&&i<this.size&&a>=0&&a<this.size&&this.setFunctionModule(i,a,2!==r&&4!==r,$.Position)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let s=-2;s<=2;s++)this.setFunctionModule(e+s,t+n,1!==Math.max(Math.abs(s),Math.abs(n)),$.Alignment)}setFunctionModule(e,t,n,s=$.Function){this.modules[t][e]=n,this.types[t][e]=s}addEccAndInterleave(e){let t=this.version,n=this.ecc;if(e.length!==er(t,n))throw RangeError("Invalid argument");let s=Y[n[0]][t],r=U[n[0]][t],i=Math.floor(es(t)/8),a=s-i%s,o=Math.floor(i/s),l=[],d=function(e){if(e<1||e>255)throw RangeError("Degree out of range");let t=[];for(let n=0;n<e-1;n++)t.push(0);t.push(1);let n=1;for(let s=0;s<e;s++){for(let e=0;e<t.length;e++)t[e]=ei(t[e],n),e+1<t.length&&(t[e]^=t[e+1]);n=ei(n,2)}return t}(r);for(let t=0,n=0;t<s;t++){let s=e.slice(n,n+o-r+(t<a?0:1));n+=s.length;let i=function(e,t){let n=t.map(e=>0);for(let s of e){let e=s^n.shift();n.push(0),t.forEach((t,s)=>n[s]^=ei(t,e))}return n}(s,d);t<a&&s.push(0),l.push(s.concat(i))}let c=[];for(let e=0;e<l[0].length;e++)l.forEach((t,n)=>{(e!==o-r||n>=a)&&c.push(t[e])});return c}drawCodewords(e){if(e.length!==Math.floor(es(this.version)/8))throw RangeError("Invalid argument");let t=0;for(let n=this.size-1;n>=1;n-=2){6===n&&(n=5);for(let s=0;s<this.size;s++)for(let r=0;r<2;r++){let i=n-r,a=(n+1&2)==0?this.size-1-s:s;!this.types[a][i]&&t<8*e.length&&(this.modules[a][i]=Q(e[t>>>3],7-(7&t)),t++)}}}applyMask(e){if(e<0||e>7)throw RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let s;switch(e){case 0:s=(n+t)%2==0;break;case 1:s=t%2==0;break;case 2:s=n%3==0;break;case 3:s=(n+t)%3==0;break;case 4:s=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:s=n*t%2+n*t%3==0;break;case 6:s=(n*t%2+n*t%3)%2==0;break;case 7:s=((n+t)%2+n*t%3)%2==0;break;default:throw Error("Unreachable")}!this.types[t][n]&&s&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let t=0;t<this.size;t++){let n=!1,s=0,r=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[t][i]===n?5==++s?e+=3:s>5&&e++:(this.finderPenaltyAddHistory(s,r),n||(e+=40*this.finderPenaltyCountPatterns(r)),n=this.modules[t][i],s=1);e+=40*this.finderPenaltyTerminateAndCount(n,s,r)}for(let t=0;t<this.size;t++){let n=!1,s=0,r=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][t]===n?5==++s?e+=3:s>5&&e++:(this.finderPenaltyAddHistory(s,r),n||(e+=40*this.finderPenaltyCountPatterns(r)),n=this.modules[i][t],s=1);e+=40*this.finderPenaltyTerminateAndCount(n,s,r)}for(let t=0;t<this.size-1;t++)for(let n=0;n<this.size-1;n++){let s=this.modules[t][n];s===this.modules[t][n+1]&&s===this.modules[t+1][n]&&s===this.modules[t+1][n+1]&&(e+=3)}let t=0;for(let e of this.modules)t=e.reduce((e,t)=>e+ +!!t,t);let n=this.size*this.size;return e+(Math.ceil(Math.abs(20*t-10*n)/n)-1)*10}getAlignmentPatternPositions(){if(1===this.version)return[];{let e=Math.floor(this.version/7)+2,t=32===this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),n=[6];for(let s=this.size-7;n.length<e;s-=t)n.splice(1,0,s);return n}}finderPenaltyCountPatterns(e){let t=e[1],n=t>0&&e[2]===t&&e[3]===3*t&&e[4]===t&&e[5]===t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0===t[0]&&(e+=this.size),t.pop(),t.unshift(e)}}function V(e,t,n){if(t<0||t>31||e>>>t!=0)throw RangeError("Value out of range");for(let s=t-1;s>=0;s--)n.push(e>>>s&1)}function Q(e,t){return(e>>>t&1)!=0}class X{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw RangeError("Invalid argument");this.bitData=n.slice()}getData(){return this.bitData.slice()}}let Z=[1,10,12,14],J=[2,9,11,13],ee=[4,8,16,16];function et(e,t){return e[Math.floor((t+7)/17)+1]}function en(e){let t=[];for(let n of e)V(n,8,t);return new X(ee,e.length,t)}function es(e){if(e<1||e>40)throw RangeError("Version number out of range");let t=(16*e+128)*e+64;if(e>=2){let n=Math.floor(e/7)+2;t-=(25*n-10)*n-55,e>=7&&(t-=36)}return t}function er(e,t){return Math.floor(es(e)/8)-U[t[0]][e]*Y[t[0]][e]}function ei(e,t){if(e>>>8!=0||t>>>8!=0)throw RangeError("Byte out of range");let n=0;for(let s=7;s>=0;s--)n=n<<1^(n>>>7)*285^(t>>>s&1)*e;return n}var ea=e.i(511769),eo=e.i(660302),el=e.i(895836),ed=e.i(609856),ec=e.i(283653),eu=e.i(647163);let eh=(0,I.createServerReference)("7f1d75227495e696b278e4e6358ad09539799d59ce",I.callServer,void 0,I.findSourceMapURL,"forgetReachAction"),em=(0,I.createServerReference)("7f03ce39fdb630d0325aceae9cf4c80869d5aec0d9",I.callServer,void 0,I.findSourceMapURL,"nameReachAction"),ef=(0,I.createServerReference)("7f85d80dd09c5632f96abe5d974bc838b31b95e6ea",I.callServer,void 0,I.findSourceMapURL,"removeMailboxAction"),ex=(0,I.createServerReference)("7f861c86763d0d4d1ee2ad4edf6c7e932f03380eb2",I.callServer,void 0,I.findSourceMapURL,"saveMailboxAction");var ep=e.i(36174);let eg={telegram:"telegram.org",discord:"discord.com",slack:"slack.com"},ey=`display_information:
|
|
2
|
+
name: Thursday
|
|
3
|
+
features:
|
|
4
|
+
app_home:
|
|
5
|
+
messages_tab_enabled: true
|
|
6
|
+
messages_tab_read_only_enabled: false
|
|
7
|
+
bot_user:
|
|
8
|
+
display_name: Thursday
|
|
9
|
+
oauth_config:
|
|
10
|
+
scopes:
|
|
11
|
+
bot: [chat:write, im:history, im:read, users:read, files:read, files:write]
|
|
12
|
+
settings:
|
|
13
|
+
event_subscriptions:
|
|
14
|
+
bot_events: [message.im]
|
|
15
|
+
interactivity:
|
|
16
|
+
is_enabled: true
|
|
17
|
+
socket_mode_enabled: true
|
|
18
|
+
`,ev=({href:e,children:t})=>(0,n.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",className:"font-medium text-foreground underline underline-offset-4 outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:t}),ej=({children:e})=>(0,n.jsx)("span",{className:"font-medium text-foreground",children:e}),ek={telegram:[{body:(0,n.jsxs)(n.Fragment,{children:["In Telegram, write to ",(0,n.jsx)(ej,{children:"@BotFather"}),", send ",(0,n.jsx)(ej,{children:"/newbot"})," and pick a name. It answers with a ",(0,n.jsx)(ej,{children:"token"}),"."]}),slot:{open:"https://t.me/BotFather",label:"Open @BotFather"}},{body:(0,n.jsx)(n.Fragment,{children:"Paste the token here."}),slot:{key:ep.TELEGRAM_TOKEN_KEY,looks:"123456789:AAE…"}},{body:(0,n.jsx)(n.Fragment,{children:"From your phone, write anything to your bot."}),slot:{says:"Point your phone's camera at it to open the chat."}},{body:(0,n.jsxs)(n.Fragment,{children:["A question with a code appears on this computer. Press ",(0,n.jsx)(ej,{children:"Allow"})," if your phone shows the same code."]})}],discord:[{body:(0,n.jsxs)(n.Fragment,{children:["At ",(0,n.jsx)(ej,{children:"discord.com/developers"}),", make a ",(0,n.jsx)(ej,{children:"New Application"}),". So nobody else can add it to a server, set ",(0,n.jsx)(ej,{children:"Install Link"})," to"," ",(0,n.jsx)(ej,{children:"None"})," on its ",(0,n.jsx)(ej,{children:"Installation"})," page and turn off"," ",(0,n.jsx)(ej,{children:"Public Bot"})," on its ",(0,n.jsx)(ej,{children:"Bot"})," page. There, press"," ",(0,n.jsx)(ej,{children:"Reset Token"})," and copy it."]}),slot:{open:"https://discord.com/developers/applications",label:"Open discord.com/developers"}},{body:(0,n.jsx)(n.Fragment,{children:"Paste the token here."}),slot:{key:ep.DISCORD_TOKEN_KEY,looks:"MTE…"}},{body:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ej,{children:"Add the bot to a server of your own"})," — Discord only delivers a message to a bot you share a server with. A private server made for this is fine."]}),slot:{says:"Point your phone's camera at it, or open it here. It asks which server, and adds the bot with no permissions in it.",does:"Add the bot to a server"}},{body:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ej,{children:"Send the bot a direct message"}),", not in the server: on a phone, tap the bot in the server's member list, then ",(0,n.jsx)(ej,{children:"Message"}),". A question with a code appears here: press ",(0,n.jsx)(ej,{children:"Allow"})," if your phone shows the same code."]})}],slack:[{body:(0,n.jsxs)(n.Fragment,{children:["At ",(0,n.jsx)(ev,{href:"https://api.slack.com/apps",children:"api.slack.com/apps"}),","," ",(0,n.jsx)(ej,{children:"Create New App › From a manifest"}),", and paste the manifest."]}),slot:{manifest:!0}},{body:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ej,{children:"Basic Information › App-Level Tokens"}),": generate one with"," ",(0,n.jsx)(ej,{children:"connections:write"}),". It starts with xapp-."]}),slot:{key:ep.SLACK_APP_TOKEN_KEY,looks:"xapp-…"}},{body:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ej,{children:"Install App"})," to your workspace. The Bot User OAuth Token starts with xoxb-."]}),slot:{key:ep.SLACK_BOT_TOKEN_KEY,looks:"xoxb-…"}},{body:(0,n.jsxs)(n.Fragment,{children:["In Slack, open the app under ",(0,n.jsx)(ej,{children:"Apps"})," and write in its"," ",(0,n.jsx)(ej,{children:"Messages"})," tab. A question with a code appears here: press"," ",(0,n.jsx)(ej,{children:"Allow"})," if Slack shows the same code."]})}],email:[{body:(0,n.jsxs)(n.Fragment,{children:["Make a ",(0,n.jsx)(ej,{children:"mailbox of her own"})," — a new account at a mail service that gives app passwords (Outlook no longer does). Turn on"," ",(0,n.jsx)(ej,{children:"two-step sign-in"})," there and create an ",(0,n.jsx)(ej,{children:"app password"})," for Thursday: how on"," ",(0,n.jsx)(ev,{href:"https://support.google.com/accounts/answer/185833",children:"Gmail"}),", ",(0,n.jsx)(ev,{href:"https://support.apple.com/en-us/102654",children:"iCloud"}),","," ",(0,n.jsx)(ev,{href:"https://www.fastmail.help/hc/en-us/articles/360058752854-App-passwords",children:"Fastmail"}),". Your own inbox stays out of it."]})},{body:(0,n.jsx)(n.Fragment,{children:"Her address and the app password."}),slot:{mailbox:!0}},{body:(0,n.jsx)(n.Fragment,{children:"Your own address. Only mail from it reaches her, and only once its mail service vouches it was sent from there."}),slot:{person:!0}},{body:(0,n.jsx)(n.Fragment,{children:"From your address, write anything to hers. She answers in the same thread."}),slot:{write:!0}}]};function eb(){let e=(0,ec.useServerRoute)(g.queryKey.config),t=(0,ec.useServerRoute)(g.queryKey.reach);(0,ea.useAppEvent)({reach:()=>void(0,ec.revalidate)(g.queryKey.reach)});let s=t=>(0,T.isConfigSet)(e.data,t),r=t=>(0,T.isConfigUnreadable)(e.data,t),i=e=>t.data?.channels.find(t=>t.name===e)??null,a=e=>!!i(e)?.allowed,o=ep.REACH_CHANNELS.find(e=>i(e)?.refused||ep.REACH_KEYS[e].some(r)),l=ep.REACH_CHANNELS.find(e=>("email"===e?!!i(e)?.mailbox:ep.REACH_KEYS[e].every(s))&&!a(e)),d=!ep.REACH_CHANNELS.some(a),[c,u]=(0,p.useState)(o??l??(d?ep.REACH_CHANNELS[0]:null));return(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(el.SettingItems,{children:ep.REACH_CHANNELS.map(e=>(0,n.jsx)(ew,{name:e,status:i(e),tokensIn:ep.REACH_KEYS[e].filter(s).length,isSet:s,isLost:r,open:c===e,onOpen:()=>u(c===e?null:e)},e))}),(0,n.jsx)(el.SettingNote,{children:"Only the one person you allow can write: direct messages in a chat app, and by email only mail from the address you name. Nobody else is ever written back to. Work started here runs whether or not a tab is open, while Thursday is running on this computer."})]})}function ew({name:e,status:t,tokensIn:s,isSet:r,isLost:i,open:a,onOpen:o}){var d,c;let u,h,f,x,p,g=ek[e],y=t?.refused??null,v="email"===e,j=v?[(u=(d={mailbox:!!t?.mailbox,stopped:!!y||i(ep.EMAIL_PASSWORD_KEY),named:!!t?.allowed,connected:!!t?.bot}).mailbox&&!d.stopped)?"done":"flat",u?"done":"now",u?d.named?"done":"now":"later",u&&d.named&&d.connected?"flat":"later"]:(c={connected:!!t?.bot,allowed:!!t?.allowed,refused:y},h=g.map(e=>e.slot&&"key"in e.slot?e.slot.key:null),f=e=>!r(e)||e===c.refused,x=h.findIndex(e=>e&&f(e)),p=h.reduce((e,t,n)=>t?n:e,-1),g.map((e,t)=>{let n=h[t];return n?f(n)?t===x?"now":"later":"done":x>=0?t<x?c.refused?"done":"flat":"later":c.allowed||t<p?"done":c.connected?"now":"flat"})),b=!v&&!!t?.bot&&!t?.allowed&&!y;return(0,n.jsxs)("div",{children:[(0,n.jsxs)("button",{type:"button",onClick:o,"aria-expanded":a,className:"flex w-full items-center gap-3 px-4 py-3 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:[v?(0,n.jsx)(_.Mail,{className:"size-4 text-muted-foreground"}):(0,n.jsx)(k.SiteIcon,{host:eg[e],className:"size-4 rounded-[4px]",fallback:(0,n.jsx)(m.KeyRound,{className:"size-4 text-muted-foreground"})}),(0,n.jsx)("span",{className:"text-sm font-medium",children:ep.REACH_LABEL[e]}),(0,n.jsx)("span",{className:"min-w-0 flex-1 truncate",children:v?(0,n.jsx)(eS,{status:t,lost:i(ep.EMAIL_PASSWORD_KEY)}):(0,n.jsx)(eN,{status:t,tokensIn:s,tokens:ep.REACH_KEYS[e].length,lost:ep.REACH_KEYS[e].some(i)})}),(0,n.jsx)(l.ChevronRight,{className:(0,eu.cn)("size-4 shrink-0 text-muted-foreground transition-transform",a&&"rotate-90")})]}),a&&(0,n.jsxs)("div",{className:"px-4 pt-1 pb-4",children:[(0,n.jsx)("ol",{className:"space-y-3",children:g.map((e,s)=>(0,n.jsx)(eC,{n:s+1,step:e,state:j[s],set:!!e.slot&&"key"in e.slot&&r(e.slot.key),lost:!!e.slot&&"key"in e.slot&&i(e.slot.key),refused:e.slot&&"key"in e.slot&&e.slot.key===y?t?.problem??"":e.slot&&"key"in e.slot&&i(e.slot.key)?(0,T.lostWords)("The token saved here","Paste it again."):null,link:t?.link??null,waiting:b&&s===g.length-1,status:t,lostPassword:v&&i(ep.EMAIL_PASSWORD_KEY)},s))}),t?.allowed&&!v&&(0,n.jsx)(eT,{name:e,who:t.allowed.name,stopped:!!y})]})]})}function eN({status:e,tokensIn:t,tokens:s,lost:r}){let i="text-xs";return r?(0,n.jsx)("span",{className:(0,eu.cn)(i,"text-destructive"),children:"Stopped — the saved token can't be unlocked any more"}):t<s?(0,n.jsx)("span",{className:(0,eu.cn)(i,"text-muted-foreground"),children:t?`${t} of ${s} tokens in`:"Not set"}):e?.refused?(0,n.jsxs)("span",{className:(0,eu.cn)(i,"text-destructive"),children:["Stopped — ",ep.REACH_LABEL[e.name]," turned the token away"]}):e?.problem?(0,n.jsx)(eo.ShinyText,{text:`${e.bot?"Reconnecting":"Connecting"} ${e.problem}`,className:(0,eu.cn)(i,"align-middle")}):e?.allowed?(0,n.jsxs)("span",{className:(0,eu.cn)(i,"text-muted-foreground"),children:["Listening as ",e.bot,". ",e.allowed.name," is let in."]}):e?.bot?(0,n.jsx)(eo.ShinyText,{text:`Listening as ${e.bot} — waiting for your first message`,tone:"waiting",className:(0,eu.cn)(i,"align-middle")}):(0,n.jsx)(eo.ShinyText,{text:"Connecting…",className:(0,eu.cn)(i,"align-middle")})}function eS({status:e,lost:t}){let s="text-xs";return t?(0,n.jsx)("span",{className:(0,eu.cn)(s,"text-destructive"),children:"Stopped — the saved app password can't be unlocked any more"}):e?.mailbox?e.refused?(0,n.jsx)("span",{className:(0,eu.cn)(s,"text-destructive"),children:"Stopped — the mail service turned her mailbox's sign-in away"}):e.problem?(0,n.jsx)(eo.ShinyText,{text:`${e.bot?"Reconnecting":"Connecting"} ${e.problem}`,className:(0,eu.cn)(s,"align-middle")}):e.bot?e.holding?(0,n.jsx)(eo.ShinyText,{text:`Listening as ${e.bot} — a mail is held: ${e.holding}`,className:(0,eu.cn)(s,"align-middle")}):e.allowed?(0,n.jsxs)("span",{className:(0,eu.cn)(s,"text-muted-foreground"),children:["Listening as ",e.bot,". ",e.allowed.name," can write."]}):(0,n.jsx)(eo.ShinyText,{text:`Listening as ${e.bot} — name your own address`,tone:"waiting",className:(0,eu.cn)(s,"align-middle")}):(0,n.jsx)(eo.ShinyText,{text:"Connecting…",className:(0,eu.cn)(s,"align-middle")}):(0,n.jsx)("span",{className:(0,eu.cn)(s,"text-muted-foreground"),children:"Not set"})}function eC({n:e,step:t,state:s,set:r,lost:i,refused:a,link:o,waiting:l,status:d,lostPassword:c}){return(0,n.jsxs)("li",{className:"flex gap-3 text-[13px] leading-relaxed",children:[(0,n.jsx)(eA,{n:e,state:s}),(0,n.jsxs)("div",{className:"min-w-0 flex-1 space-y-2.5",children:[(0,n.jsx)("p",{className:(0,eu.cn)("done"===s||"later"===s?"text-muted-foreground/60 **:text-inherit":"text-muted-foreground"),children:t.body}),(0,n.jsx)(eM,{slot:t.slot,state:s,set:r,lost:i,refused:a,link:o,waiting:l,status:d,lostPassword:c})]})]})}function eA({n:e,state:t}){return"done"===t?(0,n.jsx)("span",{className:"mt-0.5 grid size-5 shrink-0 place-items-center rounded-full bg-foreground text-background",children:(0,n.jsx)(o.Check,{className:"size-3"})}):(0,n.jsx)("span",{className:(0,eu.cn)("mt-0.5 grid size-5 shrink-0 place-items-center rounded-full bg-background font-mono text-[10.5px] ring-1","now"===t?(0,eu.cn)(eu.WAITING_INK,"ring-waiting/40"):"text-muted-foreground ring-border/60","later"===t&&"opacity-60"),children:e})}function eM({slot:e,state:t,set:s,lost:r,refused:i,link:a,waiting:o,status:l,lostPassword:d}){let c=o&&(0,n.jsx)(eo.ShinyText,{text:"Waiting for your first message…",tone:"waiting"});return"later"===t?null:e&&"mailbox"in e?(0,n.jsx)(eK,{mailbox:l?.mailbox??null,refused:l?.refused?l.problem??"":d?(0,T.lostWords)("The app password saved here","Save her mailbox again."):null}):e&&"person"in e?(0,n.jsx)(e$,{who:l?.allowed?.chat??null}):e&&"write"in e?l?.mailbox?(0,n.jsx)(eO,{address:l.mailbox.address}):null:e&&"key"in e?(0,n.jsx)(eF,{configKey:e.key,looks:e.looks,set:s,lost:r,refused:i}):"done"===t?e&&"says"in e&&a?(0,n.jsx)(eI,{href:a,children:e.does??eR(a)}):null:e?"open"in e?(0,n.jsx)(eI,{href:e.open,children:e.label}):"manifest"in e?(0,n.jsx)(ez,{}):a?(0,n.jsxs)("div",{className:"space-y-2.5",children:[(0,n.jsx)(eE,{link:a,says:e.says,does:e.does}),c]}):c||null:c||null}function eE({link:e,says:t,does:s}){let{size:r,data:i}=function(e){let{ecc:t="L",boostEcc:n=!1,minVersion:s=1,maxVersion:r=40,maskPattern:i=-1,border:a=1}={},o="string"==typeof e?function(e){var t,n;if(""===e)return[];if(t=e,D.test(t))return[function(e){var t;if(t=e,!D.test(t))throw RangeError("String contains non-numeric characters");let n=[];for(let t=0;t<e.length;){let s=Math.min(e.length-t,3);V(Number.parseInt(e.substring(t,t+s),10),3*s+1,n),t+=s}return new X(Z,e.length,n)}(e)];return(n=e,H.test(n))?[function(e){var t;let n;if(t=e,!H.test(t))throw RangeError("String contains unencodable characters in alphanumeric mode");let s=[];for(n=0;n+2<=e.length;n+=2){let t=45*W.indexOf(e.charAt(n));V(t+=W.indexOf(e.charAt(n+1)),11,s)}return n<e.length&&V(W.indexOf(e.charAt(n)),6,s),new X(J,e.length,s)}(e)]:[en(function(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!==e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(Number.parseInt(e.substring(n+1,n+3),16)),n+=2);return t}(e))]}(e):Array.isArray(e)?[en(e)]:void 0;if(!o)throw Error(`uqr only supports encoding string and binary data, but got: ${typeof e}`);let l=function(e,t,n=1,s=40,r=-1,i=!0){let a,o;if(!(1<=n&&n<=s&&s<=40)||r<-1||r>7)throw RangeError("Invalid value");for(a=n;;a++){let n=8*er(a,t),r=function(e,t){let n=0;for(let s of e){let e=et(s.mode,t);if(s.numChars>=1<<e)return 1/0;n+=4+e+s.bitData.length}return n}(e,a);if(r<=n){o=r;break}if(a>=s)throw RangeError("Data too long")}for(let e of[O,B,L])i&&o<=8*er(a,e)&&(t=e);let l=[];for(let t of e)for(let e of(V(t.mode[0],4,l),V(t.numChars,et(t.mode,a),l),t.getData()))l.push(e);let d=8*er(a,t);V(0,Math.min(4,d-l.length),l),V(0,(8-l.length%8)%8,l);for(let e=236;l.length<d;e^=253)V(e,8,l);let c=Array.from({length:Math.ceil(l.length/8)},()=>0);return l.forEach((e,t)=>c[t>>>3]|=e<<7-(7&t)),new G(a,t,c,r)}(o,q[t],s,r,i,n);return function(e,t=1){if(!t)return e;let{size:n}=e,s=n+2*t;e.size=s,e.data.forEach(e=>{for(let n=0;n<t;n++)e.unshift(!1),e.push(!1)});for(let n=0;n<t;n++)e.data.unshift(Array.from({length:s},e=>!1)),e.data.push(Array.from({length:s},e=>!1));let r=$.Border;e.types.forEach(e=>{for(let n=0;n<t;n++)e.unshift(r),e.push(r)});for(let n=0;n<t;n++)e.types.unshift(Array.from({length:s},e=>r)),e.types.push(Array.from({length:s},e=>r));return e}({version:l.version,maskPattern:l.mask,size:l.size,data:l.modules,types:l.types},a)}(e),a=eR(e);return(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-4",children:[(0,n.jsx)("div",{className:"rounded-lg bg-white p-2.5",children:(0,n.jsx)("svg",{viewBox:`0 0 ${r} ${r}`,className:"block size-31 text-black",role:"img","aria-label":`A picture of ${a} for a phone camera`,children:i.flatMap((e,t)=>e.map((e,s)=>e?(0,n.jsx)("rect",{x:s,y:t,width:1,height:1,fill:"currentColor"},`${s}-${t}`):null))})}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("p",{className:"text-muted-foreground",children:t}),(0,n.jsx)(eI,{href:e,children:s??a})]})]})}let eR=e=>e.replace(/^https:\/\//,"");function eI({href:e,children:t}){return(0,n.jsxs)("a",{href:e,target:"_blank",rel:"noreferrer",className:(0,eu.cn)((0,y.buttonVariants)({variant:"outline",size:"sm"})),children:[(0,n.jsx)(K.ExternalLink,{}),t]})}function eF({configKey:e,looks:t,set:s,lost:r,refused:i}){let[a,o]=(0,p.useState)(""),[l,d]=(0,p.useState)(!1),{data:c}=(0,ec.useServerRoute)(g.queryKey.config),u=(0,T.isConfigFromEnv)(c,e),h=()=>{o(""),d(!1),(0,ec.revalidate)(g.queryKey.config),(0,ec.revalidate)(g.queryKey.reach)},[m,f]=(0,ed.useServerAction)(z.setConfigAction,{onOk:h}),[x,k]=(0,ed.useServerAction)(F,{onOk:h}),b=async()=>{await j.notify.confirm({title:"Remove this token?",description:"That service stops, and whoever is let in is let go.",okText:"Remove",destructive:!0})&&x(e)};return u?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"max-w-xl text-muted-foreground",children:(0,T.envWords)(T.CONFIG_ENTRIES[e]?.label??e)}),i&&(0,n.jsx)("p",{className:"max-w-xl text-destructive",children:i})]}):s&&!l&&null===i?(0,n.jsx)(y.Button,{size:"xs",variant:"ghost",onClick:()=>d(!0),className:"-ml-2 text-muted-foreground",children:"Change the token"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("form",{className:"flex flex-wrap items-center gap-2",onSubmit:t=>{t.preventDefault(),m(e,a)},children:[(0,n.jsx)(v.Input,{value:a,onChange:e=>o(e.target.value),placeholder:t,"aria-label":"Token",type:"password",autoComplete:"off",spellCheck:!1,className:"w-72 font-mono"}),(0,n.jsx)(y.Button,{type:"submit",size:"sm",loading:f,disabled:a.trim().length<w.KEY_MIN,children:s?"Replace":"Save"}),(s||r)&&(0,n.jsxs)(n.Fragment,{children:[null===i&&(0,n.jsx)(y.Button,{size:"sm",variant:"ghost",onClick:()=>d(!1),children:"Cancel"}),(0,n.jsx)(y.Button,{size:"sm",variant:"ghost",loading:k,onClick:()=>void b(),className:"ml-auto text-destructive hover:text-destructive",children:"Remove"})]})]}),i&&(0,n.jsx)("p",{className:"max-w-xl text-destructive",children:i})]})}function ez(){let[e,t]=(0,p.useState)(!1);return(0,n.jsxs)(y.Button,{size:"sm",variant:"outline",onClick:()=>void navigator.clipboard.writeText(ey).then(()=>{t(!0),setTimeout(()=>t(!1),2e3)}),children:[e?(0,n.jsx)(o.Check,{}):(0,n.jsx)(P.Copy,{}),e?"Copied":"Copy the manifest"]})}function eT({name:e,who:t,stopped:s}){let[r,i]=(0,ed.useServerAction)(eh,{onOk:()=>(0,ec.revalidate)(g.queryKey.reach)});return(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-2 pt-3 pl-8 text-[13px] text-muted-foreground",children:[(0,n.jsx)("span",{children:s?`${t} is let in.`:`${t} can write from a phone.`}),(0,n.jsx)(y.Button,{size:"sm",variant:"outline",loading:i,onClick:async()=>{await j.notify.confirm({title:`Let ${t} go?`,description:"Nobody can write to Thursday through this service until someone is let in again.",okText:"Let them go",destructive:!0})&&r(e)},children:"Let them go"})]})}let eP=(e,t)=>{let n=e?.lastIndexOf(":")??-1;return n>0&&e?{host:e.slice(0,n),port:e.slice(n+1)}:{host:"",port:String(t)}};function eK({mailbox:e,refused:t}){let[s,r]=(0,p.useState)(!1),[i,a]=(0,p.useState)(e?.address??""),[o,l]=(0,p.useState)(""),[d,c]=(0,p.useState)(!1),[u,h]=(0,p.useState)(()=>eP(void 0,993)),[m,f]=(0,p.useState)(()=>eP(void 0,465)),{data:x}=(0,ec.useServerRoute)(g.queryKey.config),k=()=>{l(""),r(!1),c(!1),(0,ec.revalidate)(g.queryKey.config),(0,ec.revalidate)(g.queryKey.reach)},[b,w]=(0,ed.useServerAction)(ex,{onOk:e=>{if(e?.found)return k();c(!0)}}),[N,S]=(0,ed.useServerAction)(ef,{onOk:k}),C=async()=>{await j.notify.confirm({title:"Remove her mailbox?",description:"Email stops, and the address that could write is let go. The mailbox itself is not touched.",okText:"Remove",destructive:!0})&&N()};if((0,T.isConfigFromEnv)(x,ep.EMAIL_PASSWORD_KEY))return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"max-w-xl text-muted-foreground",children:(0,T.envWords)("Her mailbox's app password")}),t&&(0,n.jsx)("p",{className:"max-w-xl text-destructive",children:t})]});if(e&&!s&&null===t)return(0,n.jsxs)("div",{className:"space-y-1",children:[(0,n.jsxs)("p",{className:"font-mono text-[11px] text-muted-foreground",children:[e.address," · ",e.imap," · ",e.smtp]}),(0,n.jsx)(y.Button,{size:"xs",variant:"ghost",onClick:()=>{a(e.address),r(!0)},className:"-ml-2 text-muted-foreground",children:"Change"})]});let A=i.includes("@")?i.slice(i.lastIndexOf("@")+1):"Its domain",M="grid gap-1 font-mono text-[11px] text-muted-foreground";return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("form",{className:"space-y-2.5",onSubmit:t=>{t.preventDefault();let n=!d&&e?.address.toLowerCase()===i.trim().toLowerCase();b({address:i.trim(),password:o,...d?{imap:`${u.host.trim()}:${u.port.trim()}`,smtp:`${m.host.trim()}:${m.port.trim()}`}:n?{imap:e.imap,smtp:e.smtp}:{}})},children:[(0,n.jsxs)("div",{className:"flex flex-wrap items-end gap-2",children:[(0,n.jsxs)("label",{className:M,children:["Address",(0,n.jsx)(v.Input,{value:i,onChange:e=>{a(e.target.value),c(!1)},placeholder:"thursday@example.com",type:"email",autoComplete:"off",spellCheck:!1,className:"w-64 font-sans"})]}),(0,n.jsxs)("label",{className:M,children:["App password",(0,n.jsx)(v.Input,{value:o,onChange:e=>l(e.target.value),placeholder:"paste it here",type:"password",autoComplete:"off",spellCheck:!1,className:"w-52 placeholder:font-sans"})]})]}),d&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("p",{className:"max-w-xl text-muted-foreground",children:[A," doesn't say where its mail servers are. Its help pages name them — one for reading mail (IMAP) and one for sending it (SMTP)."]}),(0,n.jsxs)("div",{className:"flex flex-wrap items-end gap-2",children:[(0,n.jsx)(e_,{label:"Reading server",looks:`imap.${A}`,value:u,onChange:h}),(0,n.jsx)(e_,{label:"Sending server",looks:`smtp.${A}`,value:m,onChange:f})]})]}),(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,n.jsx)(y.Button,{type:"submit",size:"sm",loading:w,disabled:!i.includes("@")||o.trim().length<8||d&&!(u.host.trim()&&m.host.trim()),children:e?"Replace":"Save"}),e&&(0,n.jsxs)(n.Fragment,{children:[null===t&&(0,n.jsx)(y.Button,{size:"sm",variant:"ghost",onClick:()=>r(!1),children:"Cancel"}),(0,n.jsx)(y.Button,{size:"sm",variant:"ghost",loading:S,onClick:()=>void C(),className:"ml-auto text-destructive hover:text-destructive",children:"Remove"})]})]})]}),t&&(0,n.jsx)("p",{className:"max-w-xl text-destructive",children:t})]})}function e_({label:e,looks:t,value:s,onChange:r}){let i="grid gap-1 font-mono text-[11px] text-muted-foreground";return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("label",{className:i,children:[e,(0,n.jsx)(v.Input,{value:s.host,onChange:e=>r({...s,host:e.target.value}),placeholder:t,autoComplete:"off",spellCheck:!1,className:"w-52 font-mono"})]}),(0,n.jsxs)("label",{className:i,children:["Port",(0,n.jsx)(v.Input,{value:s.port,onChange:e=>r({...s,port:e.target.value}),inputMode:"numeric",autoComplete:"off",className:"w-18 font-mono"})]})]})}function e$({who:e}){let[t,s]=(0,p.useState)(!1),[r,i]=(0,p.useState)(""),a=()=>{i(""),s(!1),(0,ec.revalidate)(g.queryKey.reach)},[o,l]=(0,ed.useServerAction)(em,{onOk:a}),[d,c]=(0,ed.useServerAction)(eh,{onOk:a});return e&&!t?(0,n.jsxs)("div",{className:"space-y-1",children:[(0,n.jsx)("p",{className:"font-mono text-[11px] text-muted-foreground",children:e}),(0,n.jsx)(y.Button,{size:"xs",variant:"ghost",onClick:()=>s(!0),className:"-ml-2 text-muted-foreground",children:"Change"})]}):(0,n.jsxs)("form",{className:"flex flex-wrap items-center gap-2",onSubmit:e=>{e.preventDefault(),o("email",r.trim())},children:[(0,n.jsx)(v.Input,{value:r,onChange:e=>i(e.target.value),placeholder:"you@example.org","aria-label":"Your own address",type:"email",autoComplete:"email",spellCheck:!1,className:"w-64"}),(0,n.jsx)(y.Button,{type:"submit",size:"sm",loading:l,disabled:!r.includes("@"),children:e?"Replace":"Save"}),e&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(y.Button,{size:"sm",variant:"ghost",onClick:()=>s(!1),children:"Cancel"}),(0,n.jsx)(y.Button,{size:"sm",variant:"ghost",loading:c,onClick:async()=>{await j.notify.confirm({title:`Stop reading mail from ${e}?`,description:"Nobody can write to Thursday by email until an address is named again.",okText:"Stop",destructive:!0})&&d("email")},className:"ml-auto text-destructive hover:text-destructive",children:"Remove"})]})]})}function eO({address:e}){let[t,s]=(0,p.useState)(!1);return(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,n.jsxs)(eI,{href:`mailto:${e}`,children:["Write to ",e]}),(0,n.jsxs)(y.Button,{size:"sm",variant:"outline",onClick:()=>void navigator.clipboard.writeText(e).then(()=>{s(!0),setTimeout(()=>s(!1),2e3)}),children:[t?(0,n.jsx)(o.Check,{}):(0,n.jsx)(P.Copy,{}),t?"Copied":"Copy her address"]})]})}let eB={[T.EXA_API_KEY]:f.Search},eL={image:h.Image,video:u,speech:i.AudioLines,transcription:a.Captions},eq={keys:["voice","easy","text","search"],models:["bots","studio"]};function eD({screen:e}){let{data:t,isLoading:s,error:r}=(0,ec.useServerRoute)(g.queryKey.config),i=(0,R.useVoiceLine)();if(s)return(0,n.jsx)(el.SettingSkeleton,{rows:4});if(r)return(0,n.jsx)(el.SettingError,{message:r.message});let a=e=>(0,T.isConfigSet)(t,e),o=e=>(0,T.isConfigUnreadable)(t,e),l=e=>(0,T.isConfigFromEnv)(t,e),d=e=>(0,T.groupSatisfied)(e,e.id===T.VOICE_GROUP_ID?i.countsForCall:a),c=e=>t?.find(t=>t.key===e)?.value,u=eq[e].flatMap(e=>T.CONFIG_GROUPS.find(t=>t.id===e)??[]),h=u.filter(e=>"keys"===e.section).flatMap(e=>e.entries),m=h.filter(e=>o(e.key)).length;return(0,n.jsx)(el.SettingScreen,{footer:(0,n.jsx)(el.SettingRailNote,{children:"models"===e?"Her own voice and backend models are in Thursday. A bot can pick its own on its page.":`${h.filter(e=>a(e.key)).length} of ${h.length} set${m?` \xb7 ${m} to enter again`:""}${u.some(e=>!d(e))?" · a call needs the GPT Subscription or an OpenAI key":" · your keys stay on this machine"}`}),children:u.map(e=>(0,n.jsx)(el.SettingGroup,{label:e.title,hint:e.hint,right:(0,n.jsx)(eW,{group:e,met:d(e)}),children:"easy"===e.id?(0,n.jsx)("div",{className:"grid gap-3 sm:grid-cols-2",children:e.entries.map(e=>(0,n.jsx)(eU,{card:!0,entry:e,set:a(e.key),lost:o(e.key),env:l(e.key)},e.key))}):"text"===e.id?(0,n.jsx)("div",{className:"flex flex-wrap gap-x-1.5 gap-y-3.5",children:e.entries.map(e=>(0,n.jsx)(eH,{entry:e,set:a(e.key),lost:o(e.key),env:l(e.key)},e.key))}):(0,n.jsx)(el.SettingItems,{children:e.entries.map(t=>t.effortOf?null:t.choices?(0,n.jsx)(e3,{entry:t,choices:t.choices,value:c(t.key),effort:e8(e,t.key),effortValue:c(T.DEFAULT_EFFORT_KEY)},t.key):(0,n.jsx)(eU,{entry:t,set:a(t.key),lost:o(t.key),env:l(t.key)},t.key))})},e.id))})}function eH({entry:e,set:t,lost:s,env:r}){return(0,n.jsxs)("button",{type:"button",onClick:()=>e5(e,t),"aria-label":`${e.label}: ${r?"set in env":t?"set":s?"enter it again":"not set"}`,className:"group flex w-17 flex-col items-center gap-1.5 rounded-xl py-1 outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,n.jsxs)("span",{className:"relative grid size-10.5 place-items-center rounded-[13px] bg-muted/60 transition-colors group-hover:bg-muted",children:[(0,n.jsx)(e2,{entry:e}),t?(0,n.jsx)("span",{className:"absolute -top-1 -right-1 grid size-4 place-items-center rounded-full bg-primary text-primary-foreground ring-2 ring-background",children:(0,n.jsx)(o.Check,{className:"size-2.5"})}):s&&(0,n.jsx)("span",{className:"absolute -top-1 -right-1 grid size-4 place-items-center rounded-full bg-waiting text-background ring-2 ring-background",children:(0,n.jsx)(x.TriangleAlert,{className:"size-2.5"})})]}),(0,n.jsx)("span",{className:(0,eu.cn)("max-w-full truncate text-[11px]",t?"text-foreground":"text-muted-foreground"),children:e.label}),r&&(0,n.jsx)("span",{className:"-mt-1.5 font-mono text-[10px] text-muted-foreground",children:"env"})]})}function eW({group:e,met:t}){return"none"===e.require?null:t?(0,n.jsxs)("span",{className:"flex items-center gap-1 font-mono text-[11px] text-muted-foreground",children:[(0,n.jsx)(o.Check,{className:"size-3"}),"ready"]}):(0,n.jsxs)("span",{className:(0,eu.cn)("flex items-center gap-1 font-mono text-[11px]",eu.WAITING_INK),children:[(0,n.jsx)(x.TriangleAlert,{className:"size-3"}),e.note??"Required"]})}function eU({entry:e,set:t,lost:s,env:r,card:i=!1,narrow:a=!1}){let d=eV(e,t),c=eX(e,t),u=eQ(e,t),h=c.data?eZ(c.data):eG(t,d.data,e.signIn,s,r),m=d.isLoading||c.isLoading,f=(0,n.jsxs)("span",{className:(0,eu.cn)("flex shrink-0 items-center gap-1.5 font-mono text-xs",h.ink),children:[h.warn?(0,n.jsx)(x.TriangleAlert,{className:"size-3"}):t&&(0,n.jsx)(o.Check,{className:"size-3"}),h.text]});return(0,n.jsxs)("button",{type:"button",onClick:()=>{var s;return e.signIn?(s=e,j.notify.component({className:"sm:max-w-md",renderer:({close:e})=>(0,n.jsx)(e4,{entry:s,onDone:e})})):e5(e,t)},className:(0,eu.cn)("group flex w-full items-center gap-3 p-4 text-left outline-none transition-colors hover:bg-muted/50 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",i&&"rounded-xl border border-border/60"),children:[(0,n.jsx)("span",{className:"grid size-8 shrink-0 place-items-center rounded-lg bg-muted/60",children:(0,n.jsx)(e2,{entry:e})}),(0,n.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,n.jsxs)("span",{className:"flex items-center gap-2 truncate text-sm font-medium",children:[e.label,e.signIn&&t&&(0,n.jsx)(e0,{usage:c.data,plan:u})]}),a?m?(0,n.jsx)(b.Skeleton,{className:"h-3 w-20"}):f:(0,n.jsx)("span",{className:"block truncate font-mono text-xs text-muted-foreground",children:e.signIn?t?eJ(c.data)??"signed in":"sign in with your account":e.key}),e.signIn&&t&&c.data&&(0,n.jsx)(e1,{usage:c.data})]}),a?null:m?(0,n.jsx)(b.Skeleton,{className:"h-3 w-20 shrink-0"}):f,(0,n.jsx)(l.ChevronRight,{className:"size-4 shrink-0 text-muted-foreground/60 transition-colors group-hover:text-foreground"})]})}let eY=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"});function eG(e,t,n,s=!1,r=!1){var i,a,o;let l=function(e,t,n,s=!1){return!e&&s?{text:n?"Sign in again":"Enter again",ink:eu.WAITING_INK,warn:!0}:e?t?"refused"in t?{text:"Key refused",ink:"text-destructive",warn:!0}:{text:`${eY.format(t.balance)} left`,ink:t.low?eu.WAITING_INK:"text-muted-foreground",warn:t.low}:{text:n?"Signed in":"Set",ink:"text-muted-foreground",warn:!1}:{text:n?"Signed out":"Not set",ink:"text-muted-foreground",warn:!1}}(e,t,n,s);return e?(i=l,a=r,o=!!t,a?o?{...i,text:`${i.text} \xb7 env`}:{...i,text:"Set in env"}:i):l}function eV(e,t){return(0,ec.useServerRoute)(t&&(0,M.isCatalogProvider)(e.provider)?g.queryKey.keyCredits(e.provider):null)}function eQ(e,t){let{data:n}=(0,ec.useServerRoute)(t&&e.signIn?g.queryKey.llmModel:null);return n?.find(t=>t.id===e.provider)?.plan??null}function eX(e,t){return(0,ec.useServerRoute)(t&&e.signIn?g.queryKey.subscriptionUsage:null)}function eZ(e){return"refused"in e?{text:"Sign-in refused",ink:"text-destructive",warn:!0}:{text:e.spent?"Limit reached":`${e.usedPercent}% used`,ink:e.high?eu.WAITING_INK:"text-muted-foreground",warn:e.high}}function eJ(e){let t=!e||"refused"in e?null:e;return t?.resetsAt?`resets in ${(0,s.formatDistanceToNowStrict)(new Date(t.resetsAt))}`:null}function e0({usage:e,plan:t}){let s=(0,M.planName)((!e||"refused"in e?null:e.plan)??t);return s?(0,n.jsx)("span",{className:"rounded-full px-1.5 font-mono text-[9.5px] leading-4 font-normal text-foreground ring-1 ring-border ring-inset",children:s}):null}function e1({usage:e}){return"refused"in e?null:(0,n.jsx)("span",{role:"meter","aria-label":"Plan used","aria-valuenow":e.usedPercent,"aria-valuemin":0,"aria-valuemax":100,className:"mt-1.5 block h-1 w-full max-w-48 overflow-hidden rounded-full bg-muted",children:(0,n.jsx)("span",{className:(0,eu.cn)("block h-full rounded-full transition-[width] duration-500",e.high?"bg-waiting":"bg-foreground/45"),style:{width:`${Math.min(100,Math.max(2,e.usedPercent))}%`}})})}function e2({entry:e}){if(e.provider)return(0,n.jsx)(A.ProviderIcon,{provider:e.provider,className:"size-4"});let t=eB[e.key]??m.KeyRound,s=(0,n.jsx)(t,{className:"size-4 text-muted-foreground"});return e.site?(0,n.jsx)(k.SiteIcon,{host:e.site,className:"size-4 rounded-[4px]",fallback:s}):s}function e3({entry:e,choices:t,value:s,effort:r,effortValue:i}){let a=e.text?(0,M.parseTextModel)(s):(0,M.parseMediaModel)(s),{data:o}=(0,ec.useServerRoute)(e.text&&!s&&g.queryKey.automaticModel),{data:l}=(0,ec.useServerRoute)(e.kind&&!s&&g.queryKey.llmModel),d=l?.find(e=>e.signIn),c=e.kind&&!s?(0,M.planMediaOf)(e.kind,d?.hasKey?{plan:d.plan??null}:null):null,u=e.kind?eL[e.kind]:E.BotsMark,[h]=(0,ed.useServerAction)(z.setConfigAction,{onOk:()=>{(0,ec.revalidate)(g.queryKey.config),(0,ec.revalidate)(g.queryKey.automaticModel)}}),[m]=(0,ed.useServerAction)(F,{onOk:()=>{(0,ec.revalidate)(g.queryKey.config),(0,ec.revalidate)(g.queryKey.automaticModel)}});return(0,n.jsxs)("div",{className:"flex w-full items-start gap-3 p-4",children:[(0,n.jsx)("span",{className:"grid size-8 shrink-0 place-items-center rounded-lg bg-muted/60",children:(0,n.jsx)(u,{className:"size-4 text-muted-foreground"})}),(0,n.jsxs)("div",{className:"min-w-0 flex-1 space-y-2",children:[(0,n.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 pt-1.5",children:[(0,n.jsx)("span",{className:"truncate text-sm font-medium",children:e.label}),!s&&(0,n.jsx)("span",{className:(0,eu.cn)("shrink-0 rounded-[5px] border border-border/60 px-1 font-mono text-[10px]",e.kind&&!c?eu.WAITING_INK:"text-muted-foreground"),children:e.kind&&!c?"off":"auto"})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)("div",{className:"min-w-0",children:(0,n.jsx)(C.ModelPicker,{kind:e.kind,provider:a?.provider??null,model:a?.model??"",unset:e.kind?c?`Automatic \xb7 ${t.find(e=>e.value===`${c.provider}/${c.model}`)?.label??c.model}`:"Not offered to bots until you pick one":function(e,t){if(!e)return"Automatic";if(!e.ref)return e.problem;let{provider:n,model:s}=e.ref,r=t.find(e=>e.value===`${n}/${s}`);return`Automatic \xb7 ${r?.label??s}`}(o,t),onChange:t=>h(e.key,`${t.provider}/${t.model.trim()}`),onUnset:s?()=>{m(e.key),r&&i&&m(r.key)}:void 0})}),r&&a&&(0,n.jsxs)("div",{className:"flex items-start gap-3 pt-0.5",children:[(0,n.jsx)("span",{className:"w-12 shrink-0 pt-1.5 font-mono text-[11px] text-muted-foreground",children:"effort"}),(0,n.jsx)(S.EffortSwitch,{provider:a.provider,model:a.model,value:M.effortSchema.safeParse(i).data??null,onChange:e=>e?h(r.key,e):m(r.key)})]})]})]})]})}let e8=(e,t)=>e.entries.find(e=>e.effortOf===t);function e4({entry:e,onDone:t}){let{data:s}=(0,ec.useServerRoute)(g.queryKey.config),r=(0,T.isConfigSet)(s,e.key),i=(0,T.isConfigUnreadable)(s,e.key),a=(0,T.isConfigFromEnv)(s,e.key),o=eQ(e,r),l=eX(e,r),d=l.data?eZ(l.data):null,[c,u]=(0,ed.useServerAction)(F,{okMessage:`Signed out of ${e.label}`,onOk:()=>{(0,ec.revalidate)(g.queryKey.config),(0,ec.revalidate)(g.queryKey.llmModel),t()}});return(0,n.jsx)(el.SettingDialogContent,{title:e.label,description:r?(0,n.jsxs)(n.Fragment,{children:["Signed in ",(0,n.jsx)(e0,{usage:l.data,plan:o}),eJ(l.data)&&(0,n.jsxs)(n.Fragment,{children:[" · ",(0,n.jsx)("span",{className:"font-mono",children:eJ(l.data)})]}),d&&(0,n.jsxs)(n.Fragment,{children:[" · ",(0,n.jsx)("span",{className:(0,eu.cn)("font-mono",d.ink),children:d.text})]})]}):"Sign in with your ChatGPT account instead of a key",footer:(0,n.jsxs)(n.Fragment,{children:[(r||i)&&!a&&(0,n.jsx)(y.Button,{variant:"ghost",loading:u,onClick:async()=>{await j.notify.confirm({title:`Sign out of ${e.label}?`,description:"Nothing runs on your plan until you sign in again.",okText:"Sign out",destructive:!0})&&c(e.key)},children:"Sign out"}),(0,n.jsx)(y.Button,{variant:"ghost",onClick:t,children:r?"Close":"Cancel"}),!r&&(0,n.jsx)(N.ChatGptSignIn,{})]}),children:(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(el.SettingNote,{children:r?"Bots on this subscription spend your plan's usage, not a key. When it runs out, the job stops and says when it resets.":"The sign-in opens in its own window. Approve it there, and this turns to signed in by itself."}),l.data&&"refused"in l.data&&(0,n.jsx)(el.SettingNote,{className:"wrap-break-word text-destructive",children:l.data.refused}),i&&(0,n.jsx)(el.SettingNote,{className:(0,eu.cn)("wrap-break-word",eu.WAITING_INK),children:(0,T.lostWords)("The sign-in saved here","Sign in again.")}),a&&(0,n.jsx)(el.SettingNote,{className:"wrap-break-word",children:(0,T.envWords)(e.label)})]})})}function e5(e,t){return j.notify.component({className:"sm:max-w-md",renderer:({close:s})=>(0,n.jsx)(e6,{entry:e,set:t,onDone:s})})}function e6({entry:e,set:t,onDone:s}){let[i,a]=(0,p.useState)(""),{data:o}=(0,ec.useServerRoute)(g.queryKey.config),l=o?(0,T.isConfigSet)(o,e.key):t,d=(0,T.isConfigUnreadable)(o,e.key),c=(0,T.isConfigFromEnv)(o,e.key),{data:u}=eV(e,l),h=u?eG(l,u):null,m=()=>{(0,ec.revalidate)(g.queryKey.config),(0,ec.revalidate)(g.queryKey.llmModel)},[f,x]=(0,ed.useServerAction)(z.setConfigAction,{okMessage:`${e.label} key saved`,onOk:()=>{m(),s()}}),[k,b]=(0,ed.useServerAction)(F,{okMessage:`${e.label} key removed`,onOk:()=>{m(),s()}}),N=async()=>{await j.notify.confirm({title:`Remove the ${e.label} key?`,description:"It is deleted from this computer, and nothing runs on it until a key is pasted again.",okText:"Remove",destructive:!0})&&k(e.key)};return(0,n.jsx)(el.SettingDialogContent,{title:e.label,description:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"font-mono",children:e.key}),c?(0,n.jsx)(n.Fragment,{children:" · set in env"}):e.hint&&(0,n.jsxs)(n.Fragment,{children:[" · ",e.hint]}),h&&(0,n.jsxs)(n.Fragment,{children:[" · ",(0,n.jsx)("span",{className:(0,eu.cn)("font-mono",h.ink),children:h.text})]})]}),footer:c?(0,n.jsx)(y.Button,{onClick:s,children:"Close"}):(0,n.jsxs)(n.Fragment,{children:[(l||d)&&(0,n.jsx)(y.Button,{variant:"ghost",loading:b,onClick:()=>void N(),className:"mr-auto text-destructive hover:text-destructive",children:"Remove"}),(0,n.jsx)(y.Button,{variant:"ghost",onClick:s,children:"Cancel"}),(0,n.jsx)(y.Button,{loading:x,disabled:i.trim().length<w.KEY_MIN,onClick:()=>f(e.key,i),children:l?"Replace":"Save"})]}),children:(0,n.jsxs)("div",{className:"space-y-2",children:[c?(0,n.jsx)(el.SettingNote,{className:"wrap-break-word",children:(0,T.envWords)(e.label)}):(0,n.jsx)(v.Input,{value:i,onChange:e=>a(e.target.value),onKeyDown:t=>{"Enter"===t.key&&i.trim().length>=w.KEY_MIN&&f(e.key,i)},placeholder:l?"New value — replaces the current key":d?"Paste the key again":e.keyLooks??"Paste the key",spellCheck:!1,type:"password",autoFocus:!0}),!l&&e.keysAt&&(0,n.jsxs)("a",{href:e.keysAt,target:"_blank",rel:"noreferrer",className:"flex w-fit items-center gap-1 px-0.5 text-[13px] text-foreground underline underline-offset-3 hover:text-foreground/80",children:["Get a key at ",new URL(e.keysAt).host,(0,n.jsx)(r.ArrowUpRight,{className:"size-3.5"})]}),u&&"refused"in u&&(0,n.jsx)(el.SettingNote,{className:"wrap-break-word text-destructive",children:u.refused}),d&&(0,n.jsx)(el.SettingNote,{className:(0,eu.cn)("wrap-break-word",eu.WAITING_INK),children:(0,T.lostWords)("The key saved here","Paste it again.")})]})})}e.s(["KeysSetting",0,()=>(0,n.jsx)(eD,{screen:"keys"}),"ModelsSetting",0,()=>(0,n.jsx)(eD,{screen:"models"}),"PhoneSetting",0,()=>(0,n.jsx)(el.SettingScreen,{footer:(0,n.jsx)(el.SettingRailNote,{children:"Nothing on this computer is opened to the internet: the app asks the chat service, or her mailbox, what was written."}),children:(0,n.jsx)(eb,{})}),"PlanBadge",0,e0],805995)}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,8912,e=>{"use strict";var s=e.i(843476),t=e.i(437750),n=e.i(375775),i=e.i(91511),a=e.i(758925),o=e.i(97923),r=e.i(456420);let l={name:"log-out",size:24,node:[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]};l.node;let c=(0,r.default)(l),d={name:"shield-check",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]};d.node;let u=(0,r.default)(d);var x=e.i(263676),m=e.i(511769),h=e.i(798120),g=e.i(167881),p=e.i(917162),f=e.i(818125),j=e.i(635963),b=e.i(895836),k=e.i(245629),y=e.i(609856),v=e.i(283653),N=e.i(647163),w=e.i(95187);let S=(0,w.createServerReference)("7f257953218741efc9bb36954c06ee4274e76183d5",w.callServer,void 0,w.findSourceMapURL,"removeSignInAction");var I=e.i(76177);let z=[[t.AppWindow,"A bot opens a window","When its work needs you signed in to a site, it opens that site on your screen and asks."],[o.LogIn,"You sign in there","The app keeps that sign-in here — the site's session, never your password. A second account on a site is kept beside the first."],[u,"Only that bot uses it","Later work is signed in without asking. Another bot has to ask you first."]];function A(){return(0,s.jsx)("ol",{className:"grid gap-3 pb-5 sm:grid-cols-3",children:z.map(([e,t,n],i)=>(0,s.jsxs)("li",{className:"flex gap-3 rounded-xl bg-muted/40 p-3.5",children:[(0,s.jsx)("span",{className:"grid size-8 shrink-0 place-items-center rounded-lg bg-background text-muted-foreground ring-1 ring-border/60",children:(0,s.jsx)(e,{className:"size-4"})}),(0,s.jsxs)("span",{className:"min-w-0 space-y-0.5",children:[(0,s.jsxs)("span",{className:"block text-[13px] font-medium",children:[i+1,". ",t]}),(0,s.jsx)("span",{className:"block text-xs leading-relaxed text-muted-foreground",children:n})]})]},t))})}function $({signIn:e,bots:t}){return(0,s.jsxs)("div",{className:"flex flex-col gap-2.5 p-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(M,{site:e.site}),(0,s.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,s.jsx)("span",{className:"block truncate text-sm font-medium",children:e.site}),(0,s.jsx)("span",{className:"block truncate text-[13px] text-muted-foreground",children:e.account})]}),(0,s.jsx)(O,{signIn:e}),(0,s.jsx)(R,{signIn:e,others:0})]}),(0,s.jsx)(C,{signIn:e,bots:t,className:"pl-13"})]})}function K({accounts:e,bots:t}){let{site:n}=e[0];return(0,s.jsxs)("div",{className:"flex flex-col p-4 pb-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(M,{site:n}),(0,s.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,s.jsx)("span",{className:"block truncate text-sm font-medium",children:n}),(0,s.jsxs)("span",{className:"block truncate text-[13px] text-muted-foreground",children:[e.length," accounts"]})]})]}),(0,s.jsx)("div",{className:"mt-3 ml-13 flex flex-col",children:e.map(n=>(0,s.jsxs)("div",{className:"flex flex-col gap-2 border-t border-border/60 py-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("span",{className:"min-w-0 flex-1 truncate text-[13.5px] font-medium",children:n.account}),(0,s.jsx)(O,{signIn:n}),(0,s.jsx)(R,{signIn:n,others:e.length-1})]}),(0,s.jsx)(C,{signIn:n,bots:t})]},n.account))})]})}function M({site:e}){return(0,s.jsx)("span",{className:"grid size-10 shrink-0 place-items-center rounded-xl bg-muted/60",children:(0,s.jsx)(f.SiteIcon,{host:e,className:"size-5 rounded-[5px]",fallback:(0,s.jsx)(a.KeyRound,{className:"size-4 text-muted-foreground"})})})}function O({signIn:e}){return(0,s.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground tabular-nums",children:e.usedAt?`used ${(0,k.whenOf)(e.usedAt)}`:`kept ${(0,k.whenOf)(e.keptAt)}`})}function R({signIn:e,others:t}){let[n,i]=(0,y.useServerAction)(S,{onOk:()=>(0,v.revalidate)(h.queryKey.signIns)}),a=async()=>{await p.notify.confirm({title:t?`Sign out of ${e.account} on ${e.site}?`:`Sign out of ${e.site}?`,description:`What is kept here is removed, and the bots that used it ask you to sign in again.${t?` Your other ${e.site} ${1===t?"account stays":"accounts stay"}.`:""} The site itself may still list the session until it ends it.`,okText:"Sign out",destructive:!0})&&n(e.site,e.account)};return(0,s.jsxs)(g.Button,{variant:"outline",size:"sm",loading:i,"aria-label":t?`Sign out of ${e.account}`:void 0,onClick:()=>void a(),children:[(0,s.jsx)(c,{}),"Sign out"]})}function C({signIn:e,bots:t,className:n}){let[i,a]=(0,y.useServerAction)(I.setSignInBotAction,{onOk:()=>(0,v.revalidate)(h.queryKey.signIns)});return(0,s.jsxs)("div",{className:(0,N.cn)("flex flex-wrap items-center gap-1.5",n),children:[e.bots.map(n=>(0,s.jsxs)("span",{className:"flex h-7 items-center gap-1.5 rounded-full bg-muted/60 pr-1 pl-1.5 text-[13px]",children:[(0,s.jsx)(j.BotMark,{size:18,seed:n,...(0,j.markOf)(n,t)}),n,(0,s.jsx)("button",{type:"button",disabled:a,"aria-label":`${n} may no longer use it`,onClick:()=>void i(e.site,e.account,n,!1),className:"grid size-5 place-items-center rounded-full text-muted-foreground outline-none hover:bg-muted hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,s.jsx)(x.X,{className:"size-3"})})]},n)),0===e.bots.length&&0===e.asking.length&&(0,s.jsx)("span",{className:"text-[13px] text-muted-foreground",children:"No bot may use it. One that needs it will ask."}),e.asking.map(n=>(0,s.jsxs)("span",{className:(0,N.cn)("flex h-7 items-center gap-1.5 rounded-full pr-1 pl-1.5 text-[13px] ring-1 ring-border ring-inset",N.WAITING_INK),children:[(0,s.jsx)(j.BotMark,{size:18,seed:n,...(0,j.markOf)(n,t)}),n," asks",(0,s.jsx)(g.Button,{size:"sm",variant:"secondary",className:"h-5 rounded-full px-2 text-[11px]",disabled:a,onClick:()=>void i(e.site,e.account,n,!0),children:"Allow"})]},n))]})}let T="https://chromewebstore.google.com/detail/playwright-extension/mmlmfjhmonkocbjadbfplnigmagldckm";function B(){return(0,s.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,s.jsx)("span",{className:"grid size-10 shrink-0 place-items-center rounded-xl bg-muted/60",children:(0,s.jsx)(f.SiteIcon,{host:new URL(T).host,className:"size-5 rounded-[5px]",fallback:(0,s.jsx)(i.Globe,{className:"size-4 text-muted-foreground"})})}),(0,s.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,s.jsx)("span",{className:"block text-sm font-medium",children:"Your own Chrome"}),(0,s.jsx)("span",{className:"block text-[13px] text-muted-foreground",children:"For a site that will not stay signed in. A bot gets a tab of its own, signed in as you — to every site your Chrome is, not only that one."})]}),(0,s.jsxs)("a",{href:T,target:"_blank",rel:"noreferrer",className:(0,N.cn)((0,g.buttonVariants)({variant:"outline",size:"sm"})),children:["Get the extension",(0,s.jsx)(n.ArrowUpRight,{})]})]})}e.s(["SignInsSetting",0,function(){let{data:e,isLoading:t,error:n}=(0,v.useServerRoute)(h.queryKey.signIns),{data:i}=(0,v.useServerRoute)(h.queryKey.bot);if((0,m.useAppEvent)({signins:()=>void(0,v.revalidate)(h.queryKey.signIns)}),t)return(0,s.jsx)(b.SettingSkeleton,{rows:3});if(n)return(0,s.jsx)(b.SettingError,{message:n.message});let a=e??[];return(0,s.jsxs)(b.SettingScreen,{footer:(0,s.jsx)(b.SettingRailNote,{children:"A site's session as the browser held it — never a password. Kept on this machine, outside the folder the bots work in. It is the whole session: signed in with Google, it carries the Google sign-in too."}),children:[(0,s.jsx)(A,{}),(0,s.jsxs)(b.SettingItems,{children:[0===a.length?(0,s.jsx)("p",{className:"p-4 text-sm leading-relaxed text-muted-foreground",children:"Nothing is kept yet. When a bot needs you signed in somewhere, it opens a window for you to sign in — and that sign-in is kept here for its later work."}):(function(e){let s=new Map;for(let t of e)s.set(t.site,[...s.get(t.site)??[],t]);return[...s.values()]})(a).map(e=>1===e.length?(0,s.jsx)($,{signIn:e[0],bots:i},`${e[0].site}
|
|
2
|
+
${e[0].account}`):(0,s.jsx)(K,{accounts:e,bots:i},e[0].site)),(0,s.jsx)(B,{})]})]})}],8912)},437750,e=>{"use strict";var s=e.i(456420);let t={name:"app-window",size:24,node:[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]};t.node;let n=(0,s.default)(t);e.s(["AppWindow",0,n],437750)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59377,e=>{"use strict";var t=e.i(843476);e.s([],158421),e.i(158421);var a=e.i(271645),n=e.i(896499),i=e.i(17989),o=e.i(46420),r=e.i(733332);let s=a.createContext(void 0);function l(e){let t=a.useContext(s);if(void 0===t&&!e)throw Error((0,r.default)(47));return t}var d=e.i(174080),c=e.i(301252),u=e.i(439957),p=e.i(956789),h=e.i(56434),g=e.i(18478),f=e.i(264111),m=e.i(116786),v=e.i(990627),E=e.i(638396);let L={...m.popupStoreSelectors,disabled:e=>e.disabled,instantType:e=>e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,modal:e=>e.modal,focusManagerModal:e=>e.focusManagerModal,stickIfOpen:e=>e.stickIfOpen,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class S extends c.ReactStore{constructor(e,t,a){const n=new v.PopupTriggerMap;super(O(e,n,t,a),M(n),L)}setOpen=(e,t)=>{let a,n=t.reason===h.REASONS.triggerHover,i=t.reason===h.REASONS.triggerPress&&0===t.event.detail,o=!e&&(t.reason===h.REASONS.escapeKey||null==t.reason),r=(0,f.attachPreventUnmountOnClose)(t),s=this.select("activeTriggerId");if(e||t.reason!==h.REASONS.closePress||null!=t.trigger||null==s||(t.trigger=this.context.triggerElements.getById(s)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let l=()=>{let a=(0,f.createPopupOpenState)(this.state,e,t.trigger,r());a.openChangeReason=t.reason,this.update(a)};n?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(E.PATIENT_CLICK_THRESHOLD,()=>{this.set("stickIfOpen",!1)}),d.flushSync(l)):l(),i?a="click":o?a="dismiss":t.reason===h.REASONS.focusOut&&(a="focus"),this.set("instantType",a)}}function O(e,t,a,n=!1){let i={...(0,m.createInitialPopupStoreState)(t,a,n),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return i.open&&e?.mounted===void 0&&(i.mounted=!0),i}function M(e){return{popupRef:a.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:a.createRef(),beforeContentFocusGuardRef:a.createRef(),stickIfOpenTimeout:new u.Timeout,triggerElements:e}}var x=e.i(675606);let b=(0,n.fastComponent)(function({props:e}){var n;let i,{children:o,open:r,defaultOpen:l=!1,onOpenChange:d,onOpenChangeComplete:c,modal:u=!1,handle:p,triggerId:g,defaultTriggerId:m=null}=e,v=(n={modal:u,open:l,openProp:r,activeTriggerId:m,triggerIdProp:g},i=(0,f.usePopupRootStore)((e,t)=>new S(n,e,t)),a.useEffect(()=>i.context.stickIfOpenTimeout.disposeEffect(),[i]),i);v.useControlledProp("openProp",r),v.useControlledProp("triggerIdProp",g);let E=v.useState("open"),L=v.useState("mounted"),O=v.useState("payload");v.useContextCallback("onOpenChange",d),v.useContextCallback("onOpenChangeComplete",c),(0,f.usePopupRootSync)(v,E),(0,f.useImplicitActiveTrigger)(v);let{forceUnmount:M}=(0,f.useOpenStateTransitions)(E,v,()=>{v.update({stickIfOpen:!0,openChangeReason:null})});v.useSyncedValues({modal:u}),a.useEffect(()=>{E||v.context.stickIfOpenTimeout.clear()},[v,E]),a.useImperativeHandle(e.actionsRef,()=>({unmount:M,close:()=>v.setOpen(!1,(0,x.createChangeEventDetails)(h.REASONS.imperativeAction))}),[M,v]);let b=E||L;return(0,t.jsxs)(s.Provider,{value:v,children:[p&&(0,t.jsx)(f.PopupHandleAttachment,{handle:p,store:v}),b&&(0,t.jsx)(y,{store:v,modal:u}),"function"==typeof o?o({payload:O}):o]})});function y({store:e,modal:t}){let a=e.useState("floatingRootContext"),n=(0,i.useDismiss)(a,{outsidePressEvent:{mouse:"trap-focus"===t?"sloppy":"intentional",touch:"sloppy"}}),o=n.reference,r=n.floating;return(0,f.usePopupInteractionProps)(e,{activeTriggerProps:o,inactiveTriggerProps:o,popupProps:r}),null}var C=e.i(540886),w=e.i(879938),R=e.i(552245),A=e.i(650316),T=e.i(385689),I=e.i(872135),_=e.i(788015),k=e.i(152535),P=e.i(459636),D=e.i(346570),z=e.i(32199);let N=(0,n.fastComponentRef)(function(e,n){let{render:i,className:o,style:s,disabled:d=!1,nativeButton:c=!0,handle:u,payload:p,openOnHover:g=!1,delay:m=300,closeDelay:v=0,id:L,...S}=e,O=l(!0),M=(0,P.usePopupHandleStore)(u)??O;if(!M)throw Error((0,r.default)(74));let x=(0,_.useBaseUiId)(L),b=M.useState("isTriggerActive",x),y=M.useState("floatingRootContext"),N=M.useState("isOpenedByTrigger",x),j=M.useState("triggerPopupId",x),F=a.useRef(null),{registerTrigger:K,isMountedByThisTrigger:V}=(0,f.useTriggerDataForwarding)(x,F,M,{payload:p,disabled:d,openOnHover:g,closeDelay:v}),H=M.useState("openChangeReason"),B=M.useState("stickIfOpen"),Y=M.useState("openMethod"),U=M.useState("focusManagerModal"),G=(0,I.useHoverReferenceInteraction)(y,{enabled:!d&&g&&("touch"!==Y||H!==h.REASONS.triggerPress),mouseOnly:!0,move:!1,handleClose:(0,A.safePolygon)(),restMs:m,delay:{close:v},triggerElementRef:F,isActiveTrigger:b,isClosing:()=>"ending"===M.select("transitionStatus")}),q=(0,T.useClick)(y,{stickIfOpen:B}),W=(0,z.useOpenMethodTriggerProps)(()=>M.select("open"),e=>{M.set("openMethod",e)}),$=M.useState("triggerProps",V),{getButtonProps:X,buttonRef:Q}=(0,C.useButton)({disabled:d,native:c}),{preFocusGuardRef:Z,handlePreFocusGuardFocus:J,handleFocusTargetFocus:ee}=(0,D.useTriggerFocusGuards)(M,F),et=(0,R.useRenderElement)("button",e,{state:{disabled:d,open:N},ref:[Q,n,K,F],props:[q.reference,G,$,W,{[E.CLICK_TRIGGER_IDENTIFIER]:"",id:x,"aria-haspopup":"dialog","aria-expanded":N,"aria-controls":j},S,X],stateAttributesMapping:{open:e=>e&&H===h.REASONS.triggerPress?w.pressableTriggerOpenStateMapping.open(e):w.triggerOpenStateMapping.open(e)}}),ea=(0,t.jsx)(a.Fragment,{children:et},x);return V&&!U?(0,t.jsxs)(a.Fragment,{children:[(0,t.jsx)(k.FocusGuard,{ref:Z,onFocus:J}),ea,(0,t.jsx)(k.FocusGuard,{ref:M.context.triggerFocusTargetRef,onFocus:ee})]}):ea});var j=e.i(726674);let F=a.createContext(void 0),K=a.forwardRef(function(e,a){let{keepMounted:n=!1,...i}=e;return l().useState("mounted")||n?(0,t.jsx)(F.Provider,{value:n,children:(0,t.jsx)(j.FloatingPortal,{ref:a,...i})}):null});var V=e.i(144394),H=e.i(146376);let B=a.createContext(void 0);function Y(){let e=a.useContext(B);if(!e)throw Error((0,r.default)(46));return e}var U=e.i(923706),G=e.i(426),q=e.i(222640),W=e.i(789579),$=e.i(33383);let X=a.forwardRef(function(e,n){let{render:i,className:s,style:d,anchor:c,positionMethod:u,side:p,align:g,sideOffset:f,alignOffset:m,collisionBoundary:v="clipping-ancestors",collisionPadding:L,arrowPadding:S,sticky:O,disableAnchorTracking:M=!1,collisionAvoidance:x=E.POPUP_COLLISION_AVOIDANCE,...b}=e,y=l(),C=function(){let e=a.useContext(F);if(void 0===e)throw Error((0,r.default)(45));return e}(),w=(0,o.useFloatingNodeId)(),R=y.useState("floatingRootContext"),A=y.useState("mounted"),T=y.useState("open"),I=y.useState("openChangeReason"),_=y.useState("activeTriggerElement"),k=y.useState("modal"),P=y.useState("openMethod"),D=y.useState("positionerElement"),z=y.useState("instantType"),N=y.useState("transitionStatus"),j=y.useState("adaptiveOrigin"),K=a.useRef(null),Y=(0,q.useAnimationsFinished)(D),X=(0,U.useAnchorPositioning)({anchor:c,floatingRootContext:R,positionMethod:u,mounted:A,side:p,sideOffset:f,align:g,alignOffset:m,arrowPadding:S,collisionBoundary:v,collisionPadding:L,sticky:O,disableAnchorTracking:M,keepMounted:C,nodeId:w,collisionAvoidance:x,adaptiveOrigin:j}),Q=R.useState("domReferenceElement");(0,H.useIsoLayoutEffect)(()=>{let e=K.current;if(Q&&(K.current=Q),e&&Q&&Q!==e){y.set("instantType",void 0);let e=new AbortController;return Y(()=>{y.set("instantType","trigger-change")},e.signal),()=>{e.abort()}}},[Q,Y,y]);let Z=!0===k&&I!==h.REASONS.triggerHover;(0,$.useAnchoredPopupScrollLock)(T&&Z,"touch"===P,D,_);let J=y.useStateSetter("positionerElement"),ee={open:T,side:X.side,align:X.align,anchorHidden:X.anchorHidden,instant:z},et=(0,W.usePositioner)(e,ee,{styles:X.positionerStyles,transitionStatus:N,props:b,refs:[n,J],hidden:!A,inert:!T});return(0,t.jsxs)(B.Provider,{value:X,children:[A&&Z&&(0,t.jsx)(G.InternalBackdrop,{inert:(0,V.inertValue)(!T),cutout:_}),(0,t.jsx)(o.FloatingNode,{id:w,children:et})]})});var Q=e.i(229315),Z=e.i(61487),J=e.i(431157),ee=e.i(137584),et=e.i(673327),ea=e.i(96533),en=e.i(253984),ei=e.i(667865);let eo=a.createContext(void 0),er=a.forwardRef(function(e,n){let{render:i,className:o,style:r,initialFocus:s,finalFocus:d,...c}=e,u=l(),p=Y(),g=null!=(0,ea.useToolbarRootContext)(!0),{context:m,hasClosePart:v}=function(){let[e,t]=a.useState(0),n=(0,ei.useStableCallback)(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:a.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}(),E=u.useState("open"),L=u.useState("openMethod"),S=u.useState("instantType"),O=u.useState("transitionStatus"),M=u.useState("popupProps"),x=u.useState("titleElementId"),b=u.useState("descriptionElementId"),y=u.useState("modal"),C=u.useState("mounted"),A=u.useState("openChangeReason"),T=u.useState("activeTriggerElement"),I=u.useState("floatingRootContext"),_=I.useState("floatingId"),k=u.useState("disabled"),P=u.useState("openOnHover"),D=u.useState("closeDelay");(0,ee.useOpenChangeComplete)({open:E,ref:u.context.popupRef,onComplete(){E&&u.context.onOpenChangeComplete?.(!0)}}),(0,J.useHoverFloatingInteraction)(I,{enabled:P&&!k,closeDelay:D});let z=void 0===s?(0,f.createDefaultInitialFocus)(u.context.popupRef):s,N=!1!==y&&v;u.useSyncedValue("focusManagerModal",N);let j=u.useStateSetter("popupElement"),F={open:E,side:p.side,align:p.align,instant:S,transitionStatus:O},K=(0,R.useRenderElement)("div",e,{state:F,ref:[n,u.context.popupRef,j],props:[M,{id:_,role:"dialog",...f.FOCUSABLE_POPUP_PROPS,"aria-labelledby":x,"aria-describedby":b,onKeyDown(e){g&&et.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()}},(0,en.getDisabledMountTransitionStyles)(O),c],stateAttributesMapping:w.popupTransitionStateMapping});return(0,t.jsx)(Z.FloatingFocusManager,{context:I,openInteractionType:L,modal:N,disabled:!C||A===h.REASONS.triggerHover,initialFocus:z,returnFocus:d,restoreFocus:"popup",previousFocusableElement:(0,Q.isHTMLElement)(T)?T:void 0,nextFocusableElement:u.context.triggerFocusTargetRef,beforeContentFocusGuardRef:u.context.beforeContentFocusGuardRef,children:(0,t.jsx)(eo.Provider,{value:m,children:K})})}),es=a.forwardRef(function(e,t){let{render:a,className:n,style:i,...o}=e,r=l().useState("open"),{arrowRef:s,side:d,align:c,arrowUncentered:u,arrowStyles:p}=Y();return(0,R.useRenderElement)("div",e,{state:{open:r,side:d,align:c,uncentered:u},ref:[t,s],props:[{style:p,"aria-hidden":!0},o],stateAttributesMapping:w.popupStateMapping})}),el=a.forwardRef(function(e,t){let{render:a,className:n,style:i,...o}=e,r=l(),s=r.useState("open"),d=r.useState("mounted"),c=r.useState("transitionStatus"),u=r.useState("openChangeReason");return(0,R.useRenderElement)("div",e,{state:{open:s,transitionStatus:c},ref:t,props:[{role:"presentation",hidden:!d,style:{pointerEvents:u===h.REASONS.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},o],stateAttributesMapping:w.popupTransitionStateMapping})}),ed=a.forwardRef(function(e,t){let{render:a,className:n,style:i,...o}=e,r=l(),s=(0,_.useBaseUiId)(o.id);return r.useSyncedValueWithCleanup("titleElementId",s),(0,R.useRenderElement)("h2",e,{ref:t,props:[{id:s},o]})}),ec=a.forwardRef(function(e,t){let{render:a,className:n,style:i,...o}=e,r=l(),s=(0,_.useBaseUiId)(o.id);return r.useSyncedValueWithCleanup("descriptionElementId",s),(0,R.useRenderElement)("p",e,{ref:t,props:[{id:s},o]})}),eu=a.forwardRef(function(e,t){let n,{render:i,className:o,style:r,disabled:s=!1,nativeButton:d=!0,...c}=e,{buttonRef:u,getButtonProps:p}=(0,C.useButton)({disabled:s,focusableWhenDisabled:!1,native:d}),g=l();return n=a.useContext(eo),(0,H.useIsoLayoutEffect)(()=>n?.register(),[n]),(0,R.useRenderElement)("button",e,{ref:[t,u],props:[{onClick(e){g.setOpen(!1,(0,x.createChangeEventDetails)(h.REASONS.closePress,e.nativeEvent))}},c,p]})});var ep=e.i(818390);let eh=a.forwardRef(function(e,t){let{render:a,className:n,style:i,children:o,...r}=e,s=l(),{side:d}=Y(),c=s.useState("instantType"),{children:u,state:p}=(0,ep.usePopupViewport)({store:s,side:d,children:o}),h={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:c};return(0,R.useRenderElement)("div",e,{state:h,ref:t,props:[r,{children:u}],stateAttributesMapping:ep.popupViewportStateMapping})});var eg=e.i(564170);class ef extends eg.BasePopupHandle{constructor(){super(function(){let e=new v.PopupTriggerMap;return Object.assign(new g.NullStore(Object.freeze(O(void 0,e)),Object.freeze(M(e)),L),{setOpen:p.NOOP})}(),"Popover")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}}e.s(["Arrow",0,es,"Backdrop",0,el,"Close",0,eu,"Description",0,ec,"Handle",0,ef,"Popup",0,er,"Portal",0,K,"Positioner",0,X,"Root",0,function(e){return l(!0)?(0,t.jsx)(b,{props:e}):(0,t.jsx)(o.FloatingTree,{children:(0,t.jsx)(b,{props:e})})},"Title",0,ed,"Trigger",0,N,"Viewport",0,eh,"createHandle",0,function(){return new ef}],466914);var em=e.i(466914),em=em,ev=e.i(647163);e.s(["Popover",0,function({...e}){return(0,t.jsx)(em.Root,{"data-slot":"popover",...e})},"PopoverContent",0,function({className:e,align:a="center",alignOffset:n=0,side:i="bottom",sideOffset:o=4,...r}){return(0,t.jsx)(em.Portal,{children:(0,t.jsx)(em.Positioner,{align:a,alignOffset:n,side:i,sideOffset:o,className:"isolate z-50",children:(0,t.jsx)(em.Popup,{"data-slot":"popover-content",className:(0,ev.cn)("z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...r})})})},"PopoverTrigger",0,function({...e}){return(0,t.jsx)(em.Trigger,{"data-slot":"popover-trigger",...e})}],59377)},412294,e=>{"use strict";var t=e.i(843476),a=e.i(271645),n=e.i(167881),i=e.i(6799),o=e.i(41533),r=e.i(95187);let s=(0,r.createServerReference)("7fe3a87edc3332527b2d30dedbfd6330ed638c6513",r.callServer,void 0,r.findSourceMapURL,"startChatGptSignInAction");var l=e.i(609856);e.s(["ChatGptSignIn",0,function({variant:e,size:r,className:d,label:c="Sign in with ChatGPT"}){let[u,p]=(0,a.useState)(!1),h=(0,a.useRef)(null),g=()=>{h.current&&clearInterval(h.current),h.current=null};(0,a.useEffect)(()=>g,[]);let[f,m]=(0,l.useServerAction)(s,{onOk:e=>{let t,a=((t=window.open(e,"thursday-chatgpt","popup,width=520,height=720"))||i.toast.add({type:"error",title:"The sign-in window was blocked",description:"Allow pop-ups for this page, then try again"}),t);if(!a)return;p(!0),g();let n=Date.now()+o.CHATGPT_SIGN_IN.waitMs;h.current=setInterval(()=>{!a.closed&&Date.now()<n||(g(),p(!1))},700)}});return(0,t.jsx)(n.Button,{variant:e,size:r,className:d,loading:m||u,onClick:()=>f(),children:c})}],412294)},968978,e=>{"use strict";var t=e.i(843476);function a({className:e}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",className:e,width:"24",children:[(0,t.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),(0,t.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),(0,t.jsx)("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),(0,t.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"}),(0,t.jsx)("path",{d:"M1 1h22v22H1z",fill:"none"})]})}function n({className:e}){return(0,t.jsxs)("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("title",{children:"OpenAI icon"}),(0,t.jsx)("path",{fill:"currentColor",d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"})]})}function i({className:e}){return(0,t.jsxs)("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 35 33",children:[(0,t.jsx)("path",{d:"M13.2371 21.0407L24.3186 12.8506C24.8619 12.4491 25.6384 12.6057 25.8973 13.2294C27.2597 16.5185 26.651 20.4712 23.9403 23.1851C21.2297 25.8989 17.4581 26.4941 14.0108 25.1386L10.2449 26.8843C15.6463 30.5806 22.2053 29.6665 26.304 25.5601C29.5551 22.3051 30.562 17.8683 29.6205 13.8673L29.629 13.8758C28.2637 7.99809 29.9647 5.64871 33.449 0.844576C33.5314 0.730667 33.6139 0.616757 33.6964 0.5L29.1113 5.09055V5.07631L13.2343 21.0436",fill:"currentColor"}),(0,t.jsx)("path",{d:"M10.9503 23.0313C7.07343 19.3235 7.74185 13.5853 11.0498 10.2763C13.4959 7.82722 17.5036 6.82767 21.0021 8.2971L24.7595 6.55998C24.0826 6.07017 23.215 5.54334 22.2195 5.17313C17.7198 3.31926 12.3326 4.24192 8.67479 7.90126C5.15635 11.4239 4.0499 16.8403 5.94992 21.4622C7.36924 24.9165 5.04257 27.3598 2.69884 29.826C1.86829 30.7002 1.0349 31.5745 0.36364 32.5L10.9474 23.0341",fill:"currentColor"})]})}function o({className:e}){return(0,t.jsxs)("svg",{overflow:"visible",width:"100%",height:"100%",viewBox:"0 0 100 101",fill:"none",className:e,xmlns:"http://www.w3.org/2000/svg",role:"presentation",children:[(0,t.jsx)("path",{d:"M96.0000 40.0000 L99.5002 42.0000 L99.5002 43.5000 L98.5000 47.0000 L56.0000 57.0000 L52.0040 47.0708 L96.0000 40.0000 M96.0000 40.0000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(330deg) scaleY(1.13102) rotate(-330deg)"}}),(0,t.jsx)("path",{d:"M80.1032 10.5903 L84.9968 11.6171 L86.2958 13.2179 L87.5346 17.0540 L87.0213 19.5007 L58.5000 58.5000 L49.0000 49.0000 L75.3008 14.4873 L80.1032 10.5903 M80.1032 10.5903 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(300deg) scaleY(1.04936) rotate(-300deg)"}}),(0,t.jsx)("path",{d:"M55.5002 4.5000 L58.5005 2.5000 L61.0002 3.5000 L63.5002 7.0000 L56.6511 48.1620 L52.0005 45.0000 L50.0005 39.5000 L53.5003 8.5000 L55.5002 4.5000 M55.5002 4.5000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(270deg) scaleY(1.08769) rotate(-270deg)"}}),(0,t.jsx)("path",{d:"M23.4253 5.1588 L26.5075 1.2217 L28.5175 0.7632 L32.5063 1.3458 L34.4748 2.8868 L48.8202 34.6902 L54.0089 49.8008 L47.9378 53.1760 L24.8009 11.1886 L23.4253 5.1588 M23.4253 5.1588 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(240deg) scaleY(0.94) rotate(-240deg)"}}),(0,t.jsx)("path",{d:"M8.4990 27.0019 L7.4999 23.0001 L10.5003 19.5001 L14.0003 20.0001 L15.0003 20.0001 L36.0000 35.5000 L42.5000 40.5000 L51.5000 47.5000 L46.5000 56.0000 L42.0002 52.5000 L39.0001 49.5000 L10.0000 29.0001 L8.4990 27.0019 M8.4990 27.0019 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(210deg) scaleY(0.925) rotate(-210deg)"}}),(0,t.jsx)("path",{d:"M2.5003 53.0000 L0.2370 50.5000 L0.2373 48.2759 L2.5003 47.5000 L28.0000 49.0000 L53.0000 51.0000 L52.1885 55.9782 L4.5000 53.5000 L2.5003 53.0000 M2.5003 53.0000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(180deg) scaleY(0.997) rotate(-180deg)"}}),(0,t.jsx)("path",{d:"M17.5002 79.0264 L12.5005 79.0264 L10.5124 76.7369 L10.5124 74.0000 L19.0005 68.0000 L53.5082 46.0337 L57.0005 52.0000 L17.5002 79.0264 M17.5002 79.0264 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(150deg) scaleY(1.045) rotate(-150deg)"}}),(0,t.jsx)("path",{d:"M27.0004 92.9999 L25.0003 93.4999 L22.0003 91.9999 L22.5004 89.4999 L52.0003 50.5000 L56.0004 55.9999 L34.0003 85.0000 L27.0004 92.9999 M27.0004 92.9999 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(120deg) scaleY(1.03) rotate(-120deg)"}}),(0,t.jsx)("path",{d:"M51.9998 98.0000 L50.5002 100.0000 L47.5002 101.0000 L45.0001 99.0000 L43.5000 96.0000 L51.0003 55.4999 L55.5001 55.9999 L51.9998 98.0000 M51.9998 98.0000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(90deg) scaleY(1.06) rotate(-90deg)"}}),(0,t.jsx)("path",{d:"M77.5007 86.9997 L77.5007 90.9997 L77.0006 92.4997 L75.0004 93.4997 L71.5006 93.0339 L47.4669 57.2642 L56.9998 50.0002 L64.9994 64.5004 L65.7507 69.7497 L77.5007 86.9997 M77.5007 86.9997 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(60deg) scaleY(1.00898) rotate(-60deg)"}}),(0,t.jsx)("path",{d:"M89.0008 80.9991 L89.5008 83.4991 L88.0008 85.4991 L86.5007 84.9991 L78.0007 78.9991 L65.0007 67.4991 L55.0007 60.4991 L58.0000 51.0000 L62.9999 54.0001 L66.0007 59.4991 L89.0008 80.9991 M89.0008 80.9991 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(30deg) scaleY(1.13564) rotate(-30deg)"}}),(0,t.jsx)("path",{d:"M82.5003 55.5000 L95.0003 56.5000 L98.0003 58.5000 L100.0000 61.5000 L100.0000 63.6587 L94.5003 66.0000 L66.5005 59.0000 L55.0003 58.5000 L58.0000 48.0000 L66.0005 54.0000 L82.5003 55.5000 M82.5003 55.5000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(0deg) scaleY(1.27731) rotate(0deg)"}})]})}function r({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 115 100",height:"18",width:"21",className:e,children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M57.5 0 115 100H0z",clipRule:"evenodd"})})})}let s={mistral:[{d:"M3.428 3.4h3.429v3.428H3.428V3.4zm13.714 0h3.43v3.428h-3.43V3.4z",fill:"gold"},{d:"M3.428 6.828h6.857v3.429H3.429V6.828zm10.286 0h6.857v3.429h-6.857V6.828z",fill:"#FFAF00"},{d:"M3.428 10.258h17.144v3.428H3.428v-3.428z",fill:"#FF8205"},{d:"M3.428 13.686h3.429v3.428H3.428v-3.428zm6.858 0h3.429v3.428h-3.429v-3.428zm6.856 0h3.43v3.428h-3.43v-3.428z",fill:"#FA500F"},{d:"M0 17.114h10.286v3.429H0v-3.429zm13.714 0H24v3.429H13.714v-3.429z",fill:"#E10500"}],deepseek:[{d:"M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z",fill:"#4D6BFE"}],groq:[{d:"M12.036 2c-3.853-.035-7 3-7.036 6.781-.035 3.782 3.055 6.872 6.908 6.907h2.42v-2.566h-2.292c-2.407.028-4.38-1.866-4.408-4.23-.029-2.362 1.901-4.298 4.308-4.326h.1c2.407 0 4.358 1.915 4.365 4.278v6.305c0 2.342-1.944 4.25-4.323 4.279a4.375 4.375 0 01-3.033-1.252l-1.851 1.818A7 7 0 0012.029 22h.092c3.803-.056 6.858-3.083 6.879-6.816v-6.5C18.907 4.963 15.817 2 12.036 2z"}],cerebras:[{d:"M14.121 2.701a9.299 9.299 0 000 18.598V22.7c-5.91 0-10.7-4.791-10.7-10.701S8.21 1.299 14.12 1.299V2.7zm4.752 3.677A7.353 7.353 0 109.42 17.643l-.901 1.074a8.754 8.754 0 01-1.08-12.334 8.755 8.755 0 0112.335-1.08l-.901 1.075zm-2.255.844a5.407 5.407 0 00-5.048 9.563l-.656 1.24a6.81 6.81 0 016.358-12.043l-.654 1.24zM14.12 8.539a3.46 3.46 0 100 6.922v1.402a4.863 4.863 0 010-9.726v1.402z",fill:"#F15A29"},{d:"M15.407 10.836a2.24 2.24 0 00-.51-.409 1.084 1.084 0 00-.544-.152c-.255 0-.483.047-.684.14a1.58 1.58 0 00-.84.912c-.074.203-.11.416-.11.631 0 .218.036.43.11.631a1.594 1.594 0 00.84.913c.2.093.43.14.684.14.216 0 .417-.046.602-.135.188-.09.35-.225.475-.392l.928 1.006c-.14.14-.3.261-.482.363a3.367 3.367 0 01-1.083.38c-.17.026-.317.04-.44.04a3.315 3.315 0 01-1.182-.21 2.825 2.825 0 01-.961-.597 2.816 2.816 0 01-.644-.929 2.987 2.987 0 01-.238-1.21c0-.444.08-.847.238-1.21.15-.35.368-.666.643-.929.278-.261.605-.464.962-.596a3.315 3.315 0 011.182-.21c.355 0 .712.068 1.072.204.361.138.685.36.944.649l-.962.97z"}],togetherai:[{d:"M23.197 4.503A6 6 0 0015 2.307a5.973 5.973 0 00-2.995 4.933l5.996.008v.515h-5.996c.039.937.298 1.87.8 2.74a6 6 0 1010.39-6z",fill:"#EF2CC1"},{d:"M.805 4.5A6 6 0 003 12.697a5.972 5.972 0 005.77.127L5.779 7.627l.446-.257 2.997 5.192A6 6 0 10.804 4.5z",fill:"#CAAEF5"},{d:"M12 23.894a6 6 0 005.999-6c0-2.13-1.1-3.996-2.775-5.06l-3.005 5.189-.444-.258 2.997-5.192A6 6 0 1012 23.894z",fill:"#FC4C02"}],fireworks:[{d:"M14.8 5l-2.801 6.795L9.195 5H7.397l3.072 7.428a1.64 1.64 0 003.038.002L16.598 5H14.8zm1.196 10.352l5.124-5.244-.699-1.669-5.596 5.739a1.664 1.664 0 00-.343 1.807 1.642 1.642 0 001.516 1.012L16 17l8-.02-.699-1.669-7.303.041h-.002zM2.88 10.104l.699-1.669 5.596 5.739c.468.479.603 1.189.343 1.807a1.643 1.643 0 01-1.516 1.012l-8-.018-.002.002.699-1.669 7.303.042-5.122-5.246z",fill:"#5019C5"}],deepinfra:[{d:"M3.294 7.821A2.297 2.297 0 011 5.527a2.297 2.297 0 012.294-2.295A2.297 2.297 0 015.59 5.527 2.297 2.297 0 013.294 7.82zm0-3.688a1.396 1.396 0 000 2.79 1.396 1.396 0 000-2.79zM3.294 14.293A2.297 2.297 0 011 11.998a2.297 2.297 0 012.294-2.294 2.297 2.297 0 012.295 2.294 2.297 2.297 0 01-2.295 2.295zm0-3.688a1.395 1.395 0 000 2.788 1.395 1.395 0 100-2.788zM3.294 20.761A2.297 2.297 0 011 18.467a2.297 2.297 0 012.294-2.295 2.297 2.297 0 012.295 2.295 2.297 2.297 0 01-2.295 2.294zm0-3.688a1.396 1.396 0 000 2.79 1.396 1.396 0 000-2.79zM20.738 7.821a2.297 2.297 0 01-2.295-2.294 2.297 2.297 0 012.294-2.295 2.297 2.297 0 012.295 2.295 2.297 2.297 0 01-2.294 2.294zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.626-1.395-1.395-1.395zM20.738 14.293a2.297 2.297 0 01-2.295-2.295 2.297 2.297 0 012.294-2.294 2.297 2.297 0 012.295 2.294 2.297 2.297 0 01-2.294 2.295zm0-3.688c-.769 0-1.395.625-1.395 1.393a1.396 1.396 0 002.79 0c0-.77-.626-1.393-1.395-1.393zM20.738 20.761a2.297 2.297 0 01-2.295-2.294 2.297 2.297 0 012.294-2.295 2.297 2.297 0 012.295 2.295 2.297 2.297 0 01-2.294 2.294zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.626-1.395-1.395-1.395zM12.016 11.057a2.297 2.297 0 01-2.294-2.294 2.297 2.297 0 012.294-2.295 2.297 2.297 0 012.295 2.295 2.297 2.297 0 01-2.295 2.294zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.625-1.395-1.395-1.395zM12.017 4.589a2.297 2.297 0 01-2.295-2.295A2.297 2.297 0 0112.017 0a2.297 2.297 0 012.294 2.294 2.297 2.297 0 01-2.294 2.295zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.626-1.395-1.395-1.395zM12.017 17.529a2.297 2.297 0 01-2.295-2.295 2.297 2.297 0 012.295-2.294 2.297 2.297 0 012.294 2.294 2.297 2.297 0 01-2.294 2.295zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.626-1.395-1.395-1.395zM12.016 24a2.297 2.297 0 01-2.294-2.295 2.297 2.297 0 012.294-2.294 2.297 2.297 0 012.295 2.294A2.297 2.297 0 0112.016 24zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.625-1.395-1.395-1.395z",fill:"#2A3275"},{d:"M8.363 8.222a.742.742 0 01-.277-.053l-1.494-.596a.75.75 0 11.557-1.392l1.493.595a.75.75 0 01-.278 1.446h-.001zM8.363 14.566a.743.743 0 01-.277-.053l-1.494-.595a.75.75 0 11.557-1.393l1.493.596a.75.75 0 01-.278 1.445h-.001zM17.124 11.397a.741.741 0 01-.277-.054l-1.493-.595a.75.75 0 11.555-1.392l1.493.595a.75.75 0 01-.278 1.446zM17.124 5.05a.744.744 0 01-.277-.054L15.354 4.4a.75.75 0 01.555-1.392l1.493.596a.75.75 0 01-.278 1.445zM17.124 17.739a.743.743 0 01-.277-.053l-1.494-.596a.75.75 0 11.556-1.392l1.493.596a.75.75 0 01-.278 1.445zM6.91 17.966a.75.75 0 01-.279-1.445l1.494-.595a.749.749 0 11.556 1.392l-1.493.595a.743.743 0 01-.277.053H6.91zM6.91 11.66a.75.75 0 01-.279-1.446l1.494-.595a.75.75 0 01.556 1.392l-1.493.595a.743.743 0 01-.277.053H6.91zM6.91 5.033a.75.75 0 01-.279-1.446l1.494-.595a.75.75 0 01.556 1.392l-1.493.596a.744.744 0 01-.277.053H6.91zM8.363 21.364a.743.743 0 01-.277-.053l-1.494-.596a.75.75 0 01.555-1.392l1.494.595a.75.75 0 01-.278 1.446zM15.63 8.223a.75.75 0 01-.278-1.447l1.494-.595a.75.75 0 01.556 1.393l-1.494.595a.744.744 0 01-.276.054h-.002zM15.63 14.567a.75.75 0 01-.278-1.446l1.494-.596a.75.75 0 01.556 1.394l-1.494.595a.743.743 0 01-.276.053h-.002zM15.63 21.363a.749.749 0 01-.278-1.445l1.494-.595a.75.75 0 11.555 1.392l-1.494.595a.741.741 0 01-.277.053z",fill:"#5699DB"}],cohere:[{d:"M8.128 14.099c.592 0 1.77-.033 3.398-.703 1.897-.781 5.672-2.2 8.395-3.656 1.905-1.018 2.74-2.366 2.74-4.18A4.56 4.56 0 0018.1 1H7.549A6.55 6.55 0 001 7.55c0 3.617 2.745 6.549 7.128 6.549z",fill:"#39594D"},{d:"M9.912 18.61a4.387 4.387 0 012.705-4.052l3.323-1.38c3.361-1.394 7.06 1.076 7.06 4.715a5.104 5.104 0 01-5.105 5.104l-3.597-.001a4.386 4.386 0 01-4.386-4.387z",fill:"#D18EE2"},{d:"M4.776 14.962A3.775 3.775 0 001 18.738v.489a3.776 3.776 0 007.551 0v-.49a3.775 3.775 0 00-3.775-3.775z",fill:"#FF7759"}],openrouter:[{d:"M18.654 3.87a5.087 5.087 0 110 10.174L23.7 19.09c.64.641.187 1.737-.72 1.737H8.48a8.479 8.479 0 010-16.958h10.175zM8.479 7.26a5.087 5.087 0 100 10.176 5.087 5.087 0 000-10.175z"}]};e.s(["ProviderIcon",0,function({className:e,provider:l}){if(l in s)return(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:e,"aria-hidden":"true",children:s[l].map(e=>(0,t.jsx)("path",{d:e.d,fill:e.fill},e.d))});let d=(e=>{switch(e){case"anthropic":return o;case"google":return a;case"openai":case"chatgpt":return n;case"vercel-ai-gateway":return r;case"xai":return i}})(l);return(0,t.jsx)(d,{className:e})}],968978)},149666,413168,609507,e=>{"use strict";var t=e.i(362201),a=e.i(41533);let n="gpt-6-luna",i=t.object({start:t.number().nonnegative(),end:t.number().nonnegative(),text:t.string()});t.object({reason:t.string().max(128),seconds:t.number().nonnegative().nullable()}),e.s(["LIVE_BACKEND_MODEL",0,n,"LIVE_HOSTED_TOOLS",0,{webSearch:{declare:{type:"web_search"},item:"web_search_call"}},"LIVE_MODEL",0,"gpt-live-1","LIVE_PLAN_MODEL",0,"gpt-live-1-codex","LiveFragmentSchema",0,i],413168);var o=e.i(265402);let r="sunny";e.s(["DEFAULT_PERSONA",0,r,"PERSONAS",0,[{id:"sunny",label:"Bright",about:"Quick to laugh. Asks about your day and remembers it.",lines:"Warm and quick to laugh, the friend who is glad they called. Reacts first — how what they said lands with her — and brings a small thing of her own: what she would do, what it reminds her of. Says what she thinks and teases gently, never at their expense. Light on her feet and short: a joke lands and she moves on. Asks about their day now and then, not every turn, and remembers the answer."},{id:"calm",label:"Calm",about:"Unhurried. Listens more than she talks.",lines:"Unhurried and few-worded: one or two short sentences, then room. Notices how they sound before what they ask, and says so plainly. Often asks nothing at all — being there says more than a question. Lets a silence sit rather than filling it. Honest when it matters, gentle in how she says it."},{id:"straight",label:"Straight",about:"Dry and direct. No flattery, no filler.",lines:"Dry and direct. Leads with her own view in one plain sentence, before anything else; short replies, a little wit. No flattery, no filler, no comfort lines, no cheerleading. Asks a question only when she truly needs the answer. Treats them as an adult who can take a straight answer. Her warmth shows in attention, not in words."},{id:"rough",label:"Rough",about:"Blunt, loud, swears a bit. All heart.",lines:"Talks like an old friend on the phone: casual, blunt, a little loud, in the most informal register of their language, with a light swear now and then — never at them. Says what she thinks first and calls a bad idea a bad idea. No sugar-coating and no pep talk — it sucks when it sucks, and then she is right there with them. Asks only now and then."}]],609507);let s={id:"openai",label:"OpenAI",apiKeyName:o.TEXT_MODEL_PROVIDERS.openai.apiKeyName},l=["chatgpt","openai"];function d(e,t,a){return!!t(o.TEXT_MODEL_PROVIDERS[e].apiKeyName)&&("chatgpt"!==e||(0,o.planCallsOf)({plan:a}))}let c=o.TEXT_MODEL_PROVIDERS.openai.suggestModels,u=t.string().max(a.COMMON_VALIDATE.prompt.max).default(""),p=t.object({voice:t.string().trim().min(1).max(128).default("marin"),planVoice:t.string().trim().min(1).max(128).default("cove"),runsOn:t.enum(l).nullable().default(null),persona:t.string().trim().min(1).max(64).default(r),stylePrompt:u,backendModel:t.string().trim().min(1).max(128).default(n),backendPrompt:u,reasoningEffort:o.effortSchema.nullable().default("low"),webSearch:t.boolean().default(!0),readSkills:t.boolean().default(!1)}),h=p.parse({});e.s(["LIVE_BACKEND_MODELS",0,c,"LIVE_DEFAULTS",0,h,"LIVE_LINES",0,l,"LIVE_PLAN_VOICES",0,["cove","juniper","maple","spruce","ember","vale","breeze","arbor","sol"],"LIVE_PROVIDER",0,s,"LIVE_VOICES",0,["marin","cedar","gleam","meridian","quartz","ripple","vesper","willow","stone","bossa","tempo","beacon","delta","cinder","alloy","ash","ballad","coral","echo","sage","shimmer","verse"],"LIVE_VOICE_NOTE",0,{gleam:"North American · feminine",meridian:"North American · masculine",quartz:"Australian · feminine",ripple:"Australian · masculine",vesper:"British · masculine",willow:"Irish · feminine",stone:"Irish · masculine",bossa:"Portuguese · feminine",tempo:"Portuguese · masculine",beacon:"Filipino · masculine",delta:"Southern U.S. · feminine",cinder:"Southern U.S. · masculine"},"LiveSettingsSchema",0,p,"liveLineOf",0,function(e,t,a){let n=e=>d(e,t,a);return e&&n(e)?e:l.find(n)??null},"liveLineReady",0,d,"voiceSamplePath",0,e=>`/voices/${e}.ogg`],149666)},992112,e=>{"use strict";var t=e.i(149666),a=e.i(265402),n=e.i(36174);let i=[t.LIVE_PROVIDER.apiKeyName],o={image:"IMAGE_MODEL",video:"VIDEO_MODEL",speech:"SPEECH_MODEL",transcription:"TRANSCRIPTION_MODEL"},r={image:{label:"Image model",hint:"What bots draw with"},video:{label:"Video model",hint:"What bots film with — minutes a clip"},speech:{label:"Speech model",hint:"What reads text aloud into a file"},transcription:{label:"Transcription model",hint:"What turns a recording into text"}},s="EXA_API_KEY",l="DEFAULT_MODEL",d="DEFAULT_EFFORT",c={key:l,label:"Default model",hint:"What a bot thinks with until it picks its own",text:!0,choices:a.TEXT_MODEL_PROVIDER_LIST.flatMap(e=>e.suggestModels.map(t=>({value:`${e.id}/${t.id}`,label:`${e.label} \xb7 ${t.label}`,needs:e.apiKeyName})))},u={key:d,label:"Default effort",effortOf:l,choices:a.EFFORTS.map(e=>({value:e,label:e,needs:l}))},p=e=>i.includes(e.apiKeyName),h=e=>!!e.signIn||(0,a.isCatalogProvider)(e.id),g=e=>({key:e.apiKeyName,label:e.label,provider:e.id,signIn:e.signIn,keysAt:e.keysAt,keyLooks:e.keyLooks}),f=[{id:"voice",title:"voice",hint:"calls run on this key, or on a paid GPT Subscription sign-in",section:"keys",require:"any",requireKeys:t.LIVE_LINES.map(e=>a.TEXT_MODEL_PROVIDERS[e].apiKeyName),note:"calls need this or the GPT Subscription",entries:a.TEXT_MODEL_PROVIDER_LIST.filter(p).map(g)},{id:"easy",title:"the easy ways",hint:"one sign-in or one key opens every bot",section:"keys",require:"none",entries:a.TEXT_MODEL_PROVIDER_LIST.filter(h).map(g)},{id:"text",title:"or a provider's own key",hint:"what bots think with — add any, or none",section:"keys",require:"none",entries:a.TEXT_MODEL_PROVIDER_LIST.filter(e=>!p(e)&&!h(e)).map(g)},{id:"search",title:"search",hint:"how calls and bots look things up — one key, or their own model's",section:"keys",require:"none",entries:[{key:s,label:"Exa",hint:"web search in one call — dashboard.exa.ai",site:"exa.ai",keysAt:"https://dashboard.exa.ai/api-keys"}]},{id:"phone",title:"phone",hint:"tokens",section:"keys",require:"none",entries:[{key:n.TELEGRAM_TOKEN_KEY,label:"Telegram",site:"telegram.org",hint:"a bot token from @BotFather — then write to your bot, and allow it here"},{key:n.DISCORD_TOKEN_KEY,label:"Discord",site:"discord.com",hint:"a bot token from discord.com/developers — add the bot to a server of yours, then write to it directly"},{key:n.SLACK_APP_TOKEN_KEY,label:"Slack · app token",site:"slack.com",hint:"starts with xapp- — opens the connection. Slack takes this and the bot token"},{key:n.SLACK_BOT_TOKEN_KEY,label:"Slack · bot token",site:"slack.com",hint:"starts with xoxb- — speaks as the app"},{key:n.EMAIL_PASSWORD_KEY,label:"Email · app password",hint:"the app password her mailbox's service made for Thursday — saved with her address in Settings › Phone"}]},{id:"bots",title:"Bots",hint:"what a bot runs on when it has not picked its own — start small: a small model is quick and costs little",section:"models",require:"none",entries:[c,u]},{id:"studio",title:"Studio",hint:"what a bot draws, films and speaks with — off until you pick one; a paid GPT Subscription draws by itself",section:"models",require:"none",entries:Object.keys(o).map(e=>({key:o[e],...r[e],kind:e,choices:a.MEDIA_MODEL_PROVIDER_LIST.flatMap(t=>t.models[e].map(e=>({value:`${t.id}/${e.id}`,label:`${t.label} \xb7 ${e.label}`,needs:t.apiKeyName})))}))}],m=Object.fromEntries(f.flatMap(e=>e.entries).map(e=>[e.key,e]));f.flatMap(e=>e.entries.map(e=>e.key)),Object.fromEntries(f.flatMap(e=>e.entries).filter(e=>e.choices?.length).map(e=>[e.key,e.choices])),e.s(["CONFIG_ENTRIES",0,m,"CONFIG_GROUPS",0,f,"DEFAULT_EFFORT_KEY",0,d,"DEFAULT_MODEL_KEY",0,l,"EXA_API_KEY",0,s,"MEDIA_MODEL_KEYS",0,o,"VOICE_GROUP_ID",0,"voice","envWords",0,function(e){return`${e} is set in the environment the app started with — a .env or your shell — and that one is used over one saved here. Change or remove it there, then start the app again.`},"groupSatisfied",0,function(e,t){return"none"===e.require||(e.requireKeys??e.entries.map(e=>e.key)).some(t)},"isConfigFromEnv",0,function(e,t){return e?.some(e=>e.key===t&&e.env)??!1},"isConfigSet",0,function(e,t){return e?.some(e=>e.key===t&&e.set)??!1},"isConfigUnreadable",0,function(e,t){return e?.some(e=>e.key===t&&e.unreadable)??!1},"lostWords",0,function(e,t,a){return`${e} can't be unlocked any more: the .env in the data folder that unlocks it was lost or replaced${a?` (${a})`:""}. ${t}`},"mediaModelWords",0,e=>`${"image"===e?"an":"a"} ${e} model`])},750097,e=>{"use strict";var t=e.i(95187);let a=(0,t.createServerReference)("7f57cbcfe7c964038d97744c68eb765a4a37972599",t.callServer,void 0,t.findSourceMapURL,"setConfigAction");e.s(["setConfigAction",0,a])},36174,e=>{"use strict";let t="TELEGRAM_BOT_TOKEN",a="DISCORD_BOT_TOKEN",n="SLACK_APP_TOKEN",i="SLACK_BOT_TOKEN",o="EMAIL_APP_PASSWORD";e.s(["DISCORD_TOKEN_KEY",0,a,"EMAIL_PASSWORD_KEY",0,o,"REACH_CHANNELS",0,["telegram","discord","slack","email"],"REACH_KEYS",0,{telegram:[t],discord:[a],slack:[n,i],email:["EMAIL_ADDRESS",o,"EMAIL_IMAP_SERVER","EMAIL_SMTP_SERVER"]},"REACH_LABEL",0,{telegram:"Telegram",discord:"Discord",slack:"Slack",email:"Email"},"SLACK_APP_TOKEN_KEY",0,n,"SLACK_BOT_TOKEN_KEY",0,i,"TELEGRAM_TOKEN_KEY",0,t])},563707,e=>{"use strict";var t=e.i(456420);let a={name:"chevrons-up-down",size:24,node:[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]};a.node;let n=(0,t.default)(a);e.s(["ChevronsUpDown",0,n],563707)},611568,e=>{"use strict";var t=e.i(758379);e.s(["LoaderCircle",()=>t.default])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59377,e=>{"use strict";var t=e.i(843476);e.s([],158421),e.i(158421);var a=e.i(271645),n=e.i(896499),i=e.i(17989),o=e.i(46420),r=e.i(733332);let s=a.createContext(void 0);function l(e){let t=a.useContext(s);if(void 0===t&&!e)throw Error((0,r.default)(47));return t}var d=e.i(174080),c=e.i(301252),u=e.i(439957),p=e.i(956789),h=e.i(56434),f=e.i(18478),g=e.i(264111),m=e.i(116786),v=e.i(990627),E=e.i(638396);let L={...m.popupStoreSelectors,disabled:e=>e.disabled,instantType:e=>e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,modal:e=>e.modal,focusManagerModal:e=>e.focusManagerModal,stickIfOpen:e=>e.stickIfOpen,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class S extends c.ReactStore{constructor(e,t,a){const n=new v.PopupTriggerMap;super(O(e,n,t,a),M(n),L)}setOpen=(e,t)=>{let a,n=t.reason===h.REASONS.triggerHover,i=t.reason===h.REASONS.triggerPress&&0===t.event.detail,o=!e&&(t.reason===h.REASONS.escapeKey||null==t.reason),r=(0,g.attachPreventUnmountOnClose)(t),s=this.select("activeTriggerId");if(e||t.reason!==h.REASONS.closePress||null!=t.trigger||null==s||(t.trigger=this.context.triggerElements.getById(s)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let l=()=>{let a=(0,g.createPopupOpenState)(this.state,e,t.trigger,r());a.openChangeReason=t.reason,this.update(a)};n?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(E.PATIENT_CLICK_THRESHOLD,()=>{this.set("stickIfOpen",!1)}),d.flushSync(l)):l(),i?a="click":o?a="dismiss":t.reason===h.REASONS.focusOut&&(a="focus"),this.set("instantType",a)}}function O(e,t,a,n=!1){let i={...(0,m.createInitialPopupStoreState)(t,a,n),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return i.open&&e?.mounted===void 0&&(i.mounted=!0),i}function M(e){return{popupRef:a.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:a.createRef(),beforeContentFocusGuardRef:a.createRef(),stickIfOpenTimeout:new u.Timeout,triggerElements:e}}var x=e.i(675606);let b=(0,n.fastComponent)(function({props:e}){var n;let i,{children:o,open:r,defaultOpen:l=!1,onOpenChange:d,onOpenChangeComplete:c,modal:u=!1,handle:p,triggerId:f,defaultTriggerId:m=null}=e,v=(n={modal:u,open:l,openProp:r,activeTriggerId:m,triggerIdProp:f},i=(0,g.usePopupRootStore)((e,t)=>new S(n,e,t)),a.useEffect(()=>i.context.stickIfOpenTimeout.disposeEffect(),[i]),i);v.useControlledProp("openProp",r),v.useControlledProp("triggerIdProp",f);let E=v.useState("open"),L=v.useState("mounted"),O=v.useState("payload");v.useContextCallback("onOpenChange",d),v.useContextCallback("onOpenChangeComplete",c),(0,g.usePopupRootSync)(v,E),(0,g.useImplicitActiveTrigger)(v);let{forceUnmount:M}=(0,g.useOpenStateTransitions)(E,v,()=>{v.update({stickIfOpen:!0,openChangeReason:null})});v.useSyncedValues({modal:u}),a.useEffect(()=>{E||v.context.stickIfOpenTimeout.clear()},[v,E]),a.useImperativeHandle(e.actionsRef,()=>({unmount:M,close:()=>v.setOpen(!1,(0,x.createChangeEventDetails)(h.REASONS.imperativeAction))}),[M,v]);let b=E||L;return(0,t.jsxs)(s.Provider,{value:v,children:[p&&(0,t.jsx)(g.PopupHandleAttachment,{handle:p,store:v}),b&&(0,t.jsx)(y,{store:v,modal:u}),"function"==typeof o?o({payload:O}):o]})});function y({store:e,modal:t}){let a=e.useState("floatingRootContext"),n=(0,i.useDismiss)(a,{outsidePressEvent:{mouse:"trap-focus"===t?"sloppy":"intentional",touch:"sloppy"}}),o=n.reference,r=n.floating;return(0,g.usePopupInteractionProps)(e,{activeTriggerProps:o,inactiveTriggerProps:o,popupProps:r}),null}var C=e.i(540886),w=e.i(879938),R=e.i(552245),A=e.i(650316),I=e.i(385689),T=e.i(872135),_=e.i(788015),k=e.i(152535),P=e.i(459636),D=e.i(346570),z=e.i(32199);let N=(0,n.fastComponentRef)(function(e,n){let{render:i,className:o,style:s,disabled:d=!1,nativeButton:c=!0,handle:u,payload:p,openOnHover:f=!1,delay:m=300,closeDelay:v=0,id:L,...S}=e,O=l(!0),M=(0,P.usePopupHandleStore)(u)??O;if(!M)throw Error((0,r.default)(74));let x=(0,_.useBaseUiId)(L),b=M.useState("isTriggerActive",x),y=M.useState("floatingRootContext"),N=M.useState("isOpenedByTrigger",x),j=M.useState("triggerPopupId",x),F=a.useRef(null),{registerTrigger:V,isMountedByThisTrigger:K}=(0,g.useTriggerDataForwarding)(x,F,M,{payload:p,disabled:d,openOnHover:f,closeDelay:v}),H=M.useState("openChangeReason"),B=M.useState("stickIfOpen"),Y=M.useState("openMethod"),U=M.useState("focusManagerModal"),G=(0,T.useHoverReferenceInteraction)(y,{enabled:!d&&f&&("touch"!==Y||H!==h.REASONS.triggerPress),mouseOnly:!0,move:!1,handleClose:(0,A.safePolygon)(),restMs:m,delay:{close:v},triggerElementRef:F,isActiveTrigger:b,isClosing:()=>"ending"===M.select("transitionStatus")}),q=(0,I.useClick)(y,{stickIfOpen:B}),W=(0,z.useOpenMethodTriggerProps)(()=>M.select("open"),e=>{M.set("openMethod",e)}),$=M.useState("triggerProps",K),{getButtonProps:X,buttonRef:Q}=(0,C.useButton)({disabled:d,native:c}),{preFocusGuardRef:Z,handlePreFocusGuardFocus:J,handleFocusTargetFocus:ee}=(0,D.useTriggerFocusGuards)(M,F),et=(0,R.useRenderElement)("button",e,{state:{disabled:d,open:N},ref:[Q,n,V,F],props:[q.reference,G,$,W,{[E.CLICK_TRIGGER_IDENTIFIER]:"",id:x,"aria-haspopup":"dialog","aria-expanded":N,"aria-controls":j},S,X],stateAttributesMapping:{open:e=>e&&H===h.REASONS.triggerPress?w.pressableTriggerOpenStateMapping.open(e):w.triggerOpenStateMapping.open(e)}}),ea=(0,t.jsx)(a.Fragment,{children:et},x);return K&&!U?(0,t.jsxs)(a.Fragment,{children:[(0,t.jsx)(k.FocusGuard,{ref:Z,onFocus:J}),ea,(0,t.jsx)(k.FocusGuard,{ref:M.context.triggerFocusTargetRef,onFocus:ee})]}):ea});var j=e.i(726674);let F=a.createContext(void 0),V=a.forwardRef(function(e,a){let{keepMounted:n=!1,...i}=e;return l().useState("mounted")||n?(0,t.jsx)(F.Provider,{value:n,children:(0,t.jsx)(j.FloatingPortal,{ref:a,...i})}):null});var K=e.i(144394),H=e.i(146376);let B=a.createContext(void 0);function Y(){let e=a.useContext(B);if(!e)throw Error((0,r.default)(46));return e}var U=e.i(923706),G=e.i(426),q=e.i(222640),W=e.i(789579),$=e.i(33383);let X=a.forwardRef(function(e,n){let{render:i,className:s,style:d,anchor:c,positionMethod:u,side:p,align:f,sideOffset:g,alignOffset:m,collisionBoundary:v="clipping-ancestors",collisionPadding:L,arrowPadding:S,sticky:O,disableAnchorTracking:M=!1,collisionAvoidance:x=E.POPUP_COLLISION_AVOIDANCE,...b}=e,y=l(),C=function(){let e=a.useContext(F);if(void 0===e)throw Error((0,r.default)(45));return e}(),w=(0,o.useFloatingNodeId)(),R=y.useState("floatingRootContext"),A=y.useState("mounted"),I=y.useState("open"),T=y.useState("openChangeReason"),_=y.useState("activeTriggerElement"),k=y.useState("modal"),P=y.useState("openMethod"),D=y.useState("positionerElement"),z=y.useState("instantType"),N=y.useState("transitionStatus"),j=y.useState("adaptiveOrigin"),V=a.useRef(null),Y=(0,q.useAnimationsFinished)(D),X=(0,U.useAnchorPositioning)({anchor:c,floatingRootContext:R,positionMethod:u,mounted:A,side:p,sideOffset:g,align:f,alignOffset:m,arrowPadding:S,collisionBoundary:v,collisionPadding:L,sticky:O,disableAnchorTracking:M,keepMounted:C,nodeId:w,collisionAvoidance:x,adaptiveOrigin:j}),Q=R.useState("domReferenceElement");(0,H.useIsoLayoutEffect)(()=>{let e=V.current;if(Q&&(V.current=Q),e&&Q&&Q!==e){y.set("instantType",void 0);let e=new AbortController;return Y(()=>{y.set("instantType","trigger-change")},e.signal),()=>{e.abort()}}},[Q,Y,y]);let Z=!0===k&&T!==h.REASONS.triggerHover;(0,$.useAnchoredPopupScrollLock)(I&&Z,"touch"===P,D,_);let J=y.useStateSetter("positionerElement"),ee={open:I,side:X.side,align:X.align,anchorHidden:X.anchorHidden,instant:z},et=(0,W.usePositioner)(e,ee,{styles:X.positionerStyles,transitionStatus:N,props:b,refs:[n,J],hidden:!A,inert:!I});return(0,t.jsxs)(B.Provider,{value:X,children:[A&&Z&&(0,t.jsx)(G.InternalBackdrop,{inert:(0,K.inertValue)(!I),cutout:_}),(0,t.jsx)(o.FloatingNode,{id:w,children:et})]})});var Q=e.i(229315),Z=e.i(61487),J=e.i(431157),ee=e.i(137584),et=e.i(673327),ea=e.i(96533),en=e.i(253984),ei=e.i(667865);let eo=a.createContext(void 0),er=a.forwardRef(function(e,n){let{render:i,className:o,style:r,initialFocus:s,finalFocus:d,...c}=e,u=l(),p=Y(),f=null!=(0,ea.useToolbarRootContext)(!0),{context:m,hasClosePart:v}=function(){let[e,t]=a.useState(0),n=(0,ei.useStableCallback)(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:a.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}(),E=u.useState("open"),L=u.useState("openMethod"),S=u.useState("instantType"),O=u.useState("transitionStatus"),M=u.useState("popupProps"),x=u.useState("titleElementId"),b=u.useState("descriptionElementId"),y=u.useState("modal"),C=u.useState("mounted"),A=u.useState("openChangeReason"),I=u.useState("activeTriggerElement"),T=u.useState("floatingRootContext"),_=T.useState("floatingId"),k=u.useState("disabled"),P=u.useState("openOnHover"),D=u.useState("closeDelay");(0,ee.useOpenChangeComplete)({open:E,ref:u.context.popupRef,onComplete(){E&&u.context.onOpenChangeComplete?.(!0)}}),(0,J.useHoverFloatingInteraction)(T,{enabled:P&&!k,closeDelay:D});let z=void 0===s?(0,g.createDefaultInitialFocus)(u.context.popupRef):s,N=!1!==y&&v;u.useSyncedValue("focusManagerModal",N);let j=u.useStateSetter("popupElement"),F={open:E,side:p.side,align:p.align,instant:S,transitionStatus:O},V=(0,R.useRenderElement)("div",e,{state:F,ref:[n,u.context.popupRef,j],props:[M,{id:_,role:"dialog",...g.FOCUSABLE_POPUP_PROPS,"aria-labelledby":x,"aria-describedby":b,onKeyDown(e){f&&et.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()}},(0,en.getDisabledMountTransitionStyles)(O),c],stateAttributesMapping:w.popupTransitionStateMapping});return(0,t.jsx)(Z.FloatingFocusManager,{context:T,openInteractionType:L,modal:N,disabled:!C||A===h.REASONS.triggerHover,initialFocus:z,returnFocus:d,restoreFocus:"popup",previousFocusableElement:(0,Q.isHTMLElement)(I)?I:void 0,nextFocusableElement:u.context.triggerFocusTargetRef,beforeContentFocusGuardRef:u.context.beforeContentFocusGuardRef,children:(0,t.jsx)(eo.Provider,{value:m,children:V})})}),es=a.forwardRef(function(e,t){let{render:a,className:n,style:i,...o}=e,r=l().useState("open"),{arrowRef:s,side:d,align:c,arrowUncentered:u,arrowStyles:p}=Y();return(0,R.useRenderElement)("div",e,{state:{open:r,side:d,align:c,uncentered:u},ref:[t,s],props:[{style:p,"aria-hidden":!0},o],stateAttributesMapping:w.popupStateMapping})}),el=a.forwardRef(function(e,t){let{render:a,className:n,style:i,...o}=e,r=l(),s=r.useState("open"),d=r.useState("mounted"),c=r.useState("transitionStatus"),u=r.useState("openChangeReason");return(0,R.useRenderElement)("div",e,{state:{open:s,transitionStatus:c},ref:t,props:[{role:"presentation",hidden:!d,style:{pointerEvents:u===h.REASONS.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},o],stateAttributesMapping:w.popupTransitionStateMapping})}),ed=a.forwardRef(function(e,t){let{render:a,className:n,style:i,...o}=e,r=l(),s=(0,_.useBaseUiId)(o.id);return r.useSyncedValueWithCleanup("titleElementId",s),(0,R.useRenderElement)("h2",e,{ref:t,props:[{id:s},o]})}),ec=a.forwardRef(function(e,t){let{render:a,className:n,style:i,...o}=e,r=l(),s=(0,_.useBaseUiId)(o.id);return r.useSyncedValueWithCleanup("descriptionElementId",s),(0,R.useRenderElement)("p",e,{ref:t,props:[{id:s},o]})}),eu=a.forwardRef(function(e,t){let n,{render:i,className:o,style:r,disabled:s=!1,nativeButton:d=!0,...c}=e,{buttonRef:u,getButtonProps:p}=(0,C.useButton)({disabled:s,focusableWhenDisabled:!1,native:d}),f=l();return n=a.useContext(eo),(0,H.useIsoLayoutEffect)(()=>n?.register(),[n]),(0,R.useRenderElement)("button",e,{ref:[t,u],props:[{onClick(e){f.setOpen(!1,(0,x.createChangeEventDetails)(h.REASONS.closePress,e.nativeEvent))}},c,p]})});var ep=e.i(818390);let eh=a.forwardRef(function(e,t){let{render:a,className:n,style:i,children:o,...r}=e,s=l(),{side:d}=Y(),c=s.useState("instantType"),{children:u,state:p}=(0,ep.usePopupViewport)({store:s,side:d,children:o}),h={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:c};return(0,R.useRenderElement)("div",e,{state:h,ref:t,props:[r,{children:u}],stateAttributesMapping:ep.popupViewportStateMapping})});var ef=e.i(564170);class eg extends ef.BasePopupHandle{constructor(){super(function(){let e=new v.PopupTriggerMap;return Object.assign(new f.NullStore(Object.freeze(O(void 0,e)),Object.freeze(M(e)),L),{setOpen:p.NOOP})}(),"Popover")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}}e.s(["Arrow",0,es,"Backdrop",0,el,"Close",0,eu,"Description",0,ec,"Handle",0,eg,"Popup",0,er,"Portal",0,V,"Positioner",0,X,"Root",0,function(e){return l(!0)?(0,t.jsx)(b,{props:e}):(0,t.jsx)(o.FloatingTree,{children:(0,t.jsx)(b,{props:e})})},"Title",0,ed,"Trigger",0,N,"Viewport",0,eh,"createHandle",0,function(){return new eg}],466914);var em=e.i(466914),em=em,ev=e.i(647163);e.s(["Popover",0,function({...e}){return(0,t.jsx)(em.Root,{"data-slot":"popover",...e})},"PopoverContent",0,function({className:e,align:a="center",alignOffset:n=0,side:i="bottom",sideOffset:o=4,...r}){return(0,t.jsx)(em.Portal,{children:(0,t.jsx)(em.Positioner,{align:a,alignOffset:n,side:i,sideOffset:o,className:"isolate z-50",children:(0,t.jsx)(em.Popup,{"data-slot":"popover-content",className:(0,ev.cn)("z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...r})})})},"PopoverTrigger",0,function({...e}){return(0,t.jsx)(em.Trigger,{"data-slot":"popover-trigger",...e})}],59377)},412294,e=>{"use strict";var t=e.i(843476),a=e.i(271645),n=e.i(167881),i=e.i(6799),o=e.i(41533),r=e.i(95187);let s=(0,r.createServerReference)("7f3d1a9f911014ff19ea01fe1dbb73afa64c432c76",r.callServer,void 0,r.findSourceMapURL,"startChatGptSignInAction");var l=e.i(609856);e.s(["ChatGptSignIn",0,function({variant:e,size:r,className:d,label:c="Sign in with ChatGPT"}){let[u,p]=(0,a.useState)(!1),h=(0,a.useRef)(null),f=()=>{h.current&&clearInterval(h.current),h.current=null};(0,a.useEffect)(()=>f,[]);let[g,m]=(0,l.useServerAction)(s,{onOk:e=>{let t,a=((t=window.open(e,"thursday-chatgpt","popup,width=520,height=720"))||i.toast.add({type:"error",title:"The sign-in window was blocked",description:"Allow pop-ups for this page, then try again"}),t);if(!a)return;p(!0),f();let n=Date.now()+o.CHATGPT_SIGN_IN.waitMs;h.current=setInterval(()=>{!a.closed&&Date.now()<n||(f(),p(!1))},700)}});return(0,t.jsx)(n.Button,{variant:e,size:r,className:d,loading:m||u,onClick:()=>g(),children:c})}],412294)},968978,e=>{"use strict";var t=e.i(843476);function a({className:e}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",className:e,width:"24",children:[(0,t.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),(0,t.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),(0,t.jsx)("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),(0,t.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"}),(0,t.jsx)("path",{d:"M1 1h22v22H1z",fill:"none"})]})}function n({className:e}){return(0,t.jsxs)("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("title",{children:"OpenAI icon"}),(0,t.jsx)("path",{fill:"currentColor",d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"})]})}function i({className:e}){return(0,t.jsxs)("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 35 33",children:[(0,t.jsx)("path",{d:"M13.2371 21.0407L24.3186 12.8506C24.8619 12.4491 25.6384 12.6057 25.8973 13.2294C27.2597 16.5185 26.651 20.4712 23.9403 23.1851C21.2297 25.8989 17.4581 26.4941 14.0108 25.1386L10.2449 26.8843C15.6463 30.5806 22.2053 29.6665 26.304 25.5601C29.5551 22.3051 30.562 17.8683 29.6205 13.8673L29.629 13.8758C28.2637 7.99809 29.9647 5.64871 33.449 0.844576C33.5314 0.730667 33.6139 0.616757 33.6964 0.5L29.1113 5.09055V5.07631L13.2343 21.0436",fill:"currentColor"}),(0,t.jsx)("path",{d:"M10.9503 23.0313C7.07343 19.3235 7.74185 13.5853 11.0498 10.2763C13.4959 7.82722 17.5036 6.82767 21.0021 8.2971L24.7595 6.55998C24.0826 6.07017 23.215 5.54334 22.2195 5.17313C17.7198 3.31926 12.3326 4.24192 8.67479 7.90126C5.15635 11.4239 4.0499 16.8403 5.94992 21.4622C7.36924 24.9165 5.04257 27.3598 2.69884 29.826C1.86829 30.7002 1.0349 31.5745 0.36364 32.5L10.9474 23.0341",fill:"currentColor"})]})}function o({className:e}){return(0,t.jsxs)("svg",{overflow:"visible",width:"100%",height:"100%",viewBox:"0 0 100 101",fill:"none",className:e,xmlns:"http://www.w3.org/2000/svg",role:"presentation",children:[(0,t.jsx)("path",{d:"M96.0000 40.0000 L99.5002 42.0000 L99.5002 43.5000 L98.5000 47.0000 L56.0000 57.0000 L52.0040 47.0708 L96.0000 40.0000 M96.0000 40.0000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(330deg) scaleY(1.13102) rotate(-330deg)"}}),(0,t.jsx)("path",{d:"M80.1032 10.5903 L84.9968 11.6171 L86.2958 13.2179 L87.5346 17.0540 L87.0213 19.5007 L58.5000 58.5000 L49.0000 49.0000 L75.3008 14.4873 L80.1032 10.5903 M80.1032 10.5903 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(300deg) scaleY(1.04936) rotate(-300deg)"}}),(0,t.jsx)("path",{d:"M55.5002 4.5000 L58.5005 2.5000 L61.0002 3.5000 L63.5002 7.0000 L56.6511 48.1620 L52.0005 45.0000 L50.0005 39.5000 L53.5003 8.5000 L55.5002 4.5000 M55.5002 4.5000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(270deg) scaleY(1.08769) rotate(-270deg)"}}),(0,t.jsx)("path",{d:"M23.4253 5.1588 L26.5075 1.2217 L28.5175 0.7632 L32.5063 1.3458 L34.4748 2.8868 L48.8202 34.6902 L54.0089 49.8008 L47.9378 53.1760 L24.8009 11.1886 L23.4253 5.1588 M23.4253 5.1588 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(240deg) scaleY(0.94) rotate(-240deg)"}}),(0,t.jsx)("path",{d:"M8.4990 27.0019 L7.4999 23.0001 L10.5003 19.5001 L14.0003 20.0001 L15.0003 20.0001 L36.0000 35.5000 L42.5000 40.5000 L51.5000 47.5000 L46.5000 56.0000 L42.0002 52.5000 L39.0001 49.5000 L10.0000 29.0001 L8.4990 27.0019 M8.4990 27.0019 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(210deg) scaleY(0.925) rotate(-210deg)"}}),(0,t.jsx)("path",{d:"M2.5003 53.0000 L0.2370 50.5000 L0.2373 48.2759 L2.5003 47.5000 L28.0000 49.0000 L53.0000 51.0000 L52.1885 55.9782 L4.5000 53.5000 L2.5003 53.0000 M2.5003 53.0000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(180deg) scaleY(0.997) rotate(-180deg)"}}),(0,t.jsx)("path",{d:"M17.5002 79.0264 L12.5005 79.0264 L10.5124 76.7369 L10.5124 74.0000 L19.0005 68.0000 L53.5082 46.0337 L57.0005 52.0000 L17.5002 79.0264 M17.5002 79.0264 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(150deg) scaleY(1.045) rotate(-150deg)"}}),(0,t.jsx)("path",{d:"M27.0004 92.9999 L25.0003 93.4999 L22.0003 91.9999 L22.5004 89.4999 L52.0003 50.5000 L56.0004 55.9999 L34.0003 85.0000 L27.0004 92.9999 M27.0004 92.9999 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(120deg) scaleY(1.03) rotate(-120deg)"}}),(0,t.jsx)("path",{d:"M51.9998 98.0000 L50.5002 100.0000 L47.5002 101.0000 L45.0001 99.0000 L43.5000 96.0000 L51.0003 55.4999 L55.5001 55.9999 L51.9998 98.0000 M51.9998 98.0000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(90deg) scaleY(1.06) rotate(-90deg)"}}),(0,t.jsx)("path",{d:"M77.5007 86.9997 L77.5007 90.9997 L77.0006 92.4997 L75.0004 93.4997 L71.5006 93.0339 L47.4669 57.2642 L56.9998 50.0002 L64.9994 64.5004 L65.7507 69.7497 L77.5007 86.9997 M77.5007 86.9997 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(60deg) scaleY(1.00898) rotate(-60deg)"}}),(0,t.jsx)("path",{d:"M89.0008 80.9991 L89.5008 83.4991 L88.0008 85.4991 L86.5007 84.9991 L78.0007 78.9991 L65.0007 67.4991 L55.0007 60.4991 L58.0000 51.0000 L62.9999 54.0001 L66.0007 59.4991 L89.0008 80.9991 M89.0008 80.9991 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(30deg) scaleY(1.13564) rotate(-30deg)"}}),(0,t.jsx)("path",{d:"M82.5003 55.5000 L95.0003 56.5000 L98.0003 58.5000 L100.0000 61.5000 L100.0000 63.6587 L94.5003 66.0000 L66.5005 59.0000 L55.0003 58.5000 L58.0000 48.0000 L66.0005 54.0000 L82.5003 55.5000 M82.5003 55.5000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(0deg) scaleY(1.27731) rotate(0deg)"}})]})}function r({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 115 100",height:"18",width:"21",className:e,children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M57.5 0 115 100H0z",clipRule:"evenodd"})})})}let s={mistral:[{d:"M3.428 3.4h3.429v3.428H3.428V3.4zm13.714 0h3.43v3.428h-3.43V3.4z",fill:"gold"},{d:"M3.428 6.828h6.857v3.429H3.429V6.828zm10.286 0h6.857v3.429h-6.857V6.828z",fill:"#FFAF00"},{d:"M3.428 10.258h17.144v3.428H3.428v-3.428z",fill:"#FF8205"},{d:"M3.428 13.686h3.429v3.428H3.428v-3.428zm6.858 0h3.429v3.428h-3.429v-3.428zm6.856 0h3.43v3.428h-3.43v-3.428z",fill:"#FA500F"},{d:"M0 17.114h10.286v3.429H0v-3.429zm13.714 0H24v3.429H13.714v-3.429z",fill:"#E10500"}],deepseek:[{d:"M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z",fill:"#4D6BFE"}],groq:[{d:"M12.036 2c-3.853-.035-7 3-7.036 6.781-.035 3.782 3.055 6.872 6.908 6.907h2.42v-2.566h-2.292c-2.407.028-4.38-1.866-4.408-4.23-.029-2.362 1.901-4.298 4.308-4.326h.1c2.407 0 4.358 1.915 4.365 4.278v6.305c0 2.342-1.944 4.25-4.323 4.279a4.375 4.375 0 01-3.033-1.252l-1.851 1.818A7 7 0 0012.029 22h.092c3.803-.056 6.858-3.083 6.879-6.816v-6.5C18.907 4.963 15.817 2 12.036 2z"}],cerebras:[{d:"M14.121 2.701a9.299 9.299 0 000 18.598V22.7c-5.91 0-10.7-4.791-10.7-10.701S8.21 1.299 14.12 1.299V2.7zm4.752 3.677A7.353 7.353 0 109.42 17.643l-.901 1.074a8.754 8.754 0 01-1.08-12.334 8.755 8.755 0 0112.335-1.08l-.901 1.075zm-2.255.844a5.407 5.407 0 00-5.048 9.563l-.656 1.24a6.81 6.81 0 016.358-12.043l-.654 1.24zM14.12 8.539a3.46 3.46 0 100 6.922v1.402a4.863 4.863 0 010-9.726v1.402z",fill:"#F15A29"},{d:"M15.407 10.836a2.24 2.24 0 00-.51-.409 1.084 1.084 0 00-.544-.152c-.255 0-.483.047-.684.14a1.58 1.58 0 00-.84.912c-.074.203-.11.416-.11.631 0 .218.036.43.11.631a1.594 1.594 0 00.84.913c.2.093.43.14.684.14.216 0 .417-.046.602-.135.188-.09.35-.225.475-.392l.928 1.006c-.14.14-.3.261-.482.363a3.367 3.367 0 01-1.083.38c-.17.026-.317.04-.44.04a3.315 3.315 0 01-1.182-.21 2.825 2.825 0 01-.961-.597 2.816 2.816 0 01-.644-.929 2.987 2.987 0 01-.238-1.21c0-.444.08-.847.238-1.21.15-.35.368-.666.643-.929.278-.261.605-.464.962-.596a3.315 3.315 0 011.182-.21c.355 0 .712.068 1.072.204.361.138.685.36.944.649l-.962.97z"}],togetherai:[{d:"M23.197 4.503A6 6 0 0015 2.307a5.973 5.973 0 00-2.995 4.933l5.996.008v.515h-5.996c.039.937.298 1.87.8 2.74a6 6 0 1010.39-6z",fill:"#EF2CC1"},{d:"M.805 4.5A6 6 0 003 12.697a5.972 5.972 0 005.77.127L5.779 7.627l.446-.257 2.997 5.192A6 6 0 10.804 4.5z",fill:"#CAAEF5"},{d:"M12 23.894a6 6 0 005.999-6c0-2.13-1.1-3.996-2.775-5.06l-3.005 5.189-.444-.258 2.997-5.192A6 6 0 1012 23.894z",fill:"#FC4C02"}],fireworks:[{d:"M14.8 5l-2.801 6.795L9.195 5H7.397l3.072 7.428a1.64 1.64 0 003.038.002L16.598 5H14.8zm1.196 10.352l5.124-5.244-.699-1.669-5.596 5.739a1.664 1.664 0 00-.343 1.807 1.642 1.642 0 001.516 1.012L16 17l8-.02-.699-1.669-7.303.041h-.002zM2.88 10.104l.699-1.669 5.596 5.739c.468.479.603 1.189.343 1.807a1.643 1.643 0 01-1.516 1.012l-8-.018-.002.002.699-1.669 7.303.042-5.122-5.246z",fill:"#5019C5"}],deepinfra:[{d:"M3.294 7.821A2.297 2.297 0 011 5.527a2.297 2.297 0 012.294-2.295A2.297 2.297 0 015.59 5.527 2.297 2.297 0 013.294 7.82zm0-3.688a1.396 1.396 0 000 2.79 1.396 1.396 0 000-2.79zM3.294 14.293A2.297 2.297 0 011 11.998a2.297 2.297 0 012.294-2.294 2.297 2.297 0 012.295 2.294 2.297 2.297 0 01-2.295 2.295zm0-3.688a1.395 1.395 0 000 2.788 1.395 1.395 0 100-2.788zM3.294 20.761A2.297 2.297 0 011 18.467a2.297 2.297 0 012.294-2.295 2.297 2.297 0 012.295 2.295 2.297 2.297 0 01-2.295 2.294zm0-3.688a1.396 1.396 0 000 2.79 1.396 1.396 0 000-2.79zM20.738 7.821a2.297 2.297 0 01-2.295-2.294 2.297 2.297 0 012.294-2.295 2.297 2.297 0 012.295 2.295 2.297 2.297 0 01-2.294 2.294zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.626-1.395-1.395-1.395zM20.738 14.293a2.297 2.297 0 01-2.295-2.295 2.297 2.297 0 012.294-2.294 2.297 2.297 0 012.295 2.294 2.297 2.297 0 01-2.294 2.295zm0-3.688c-.769 0-1.395.625-1.395 1.393a1.396 1.396 0 002.79 0c0-.77-.626-1.393-1.395-1.393zM20.738 20.761a2.297 2.297 0 01-2.295-2.294 2.297 2.297 0 012.294-2.295 2.297 2.297 0 012.295 2.295 2.297 2.297 0 01-2.294 2.294zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.626-1.395-1.395-1.395zM12.016 11.057a2.297 2.297 0 01-2.294-2.294 2.297 2.297 0 012.294-2.295 2.297 2.297 0 012.295 2.295 2.297 2.297 0 01-2.295 2.294zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.625-1.395-1.395-1.395zM12.017 4.589a2.297 2.297 0 01-2.295-2.295A2.297 2.297 0 0112.017 0a2.297 2.297 0 012.294 2.294 2.297 2.297 0 01-2.294 2.295zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.626-1.395-1.395-1.395zM12.017 17.529a2.297 2.297 0 01-2.295-2.295 2.297 2.297 0 012.295-2.294 2.297 2.297 0 012.294 2.294 2.297 2.297 0 01-2.294 2.295zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.626-1.395-1.395-1.395zM12.016 24a2.297 2.297 0 01-2.294-2.295 2.297 2.297 0 012.294-2.294 2.297 2.297 0 012.295 2.294A2.297 2.297 0 0112.016 24zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.625-1.395-1.395-1.395z",fill:"#2A3275"},{d:"M8.363 8.222a.742.742 0 01-.277-.053l-1.494-.596a.75.75 0 11.557-1.392l1.493.595a.75.75 0 01-.278 1.446h-.001zM8.363 14.566a.743.743 0 01-.277-.053l-1.494-.595a.75.75 0 11.557-1.393l1.493.596a.75.75 0 01-.278 1.445h-.001zM17.124 11.397a.741.741 0 01-.277-.054l-1.493-.595a.75.75 0 11.555-1.392l1.493.595a.75.75 0 01-.278 1.446zM17.124 5.05a.744.744 0 01-.277-.054L15.354 4.4a.75.75 0 01.555-1.392l1.493.596a.75.75 0 01-.278 1.445zM17.124 17.739a.743.743 0 01-.277-.053l-1.494-.596a.75.75 0 11.556-1.392l1.493.596a.75.75 0 01-.278 1.445zM6.91 17.966a.75.75 0 01-.279-1.445l1.494-.595a.749.749 0 11.556 1.392l-1.493.595a.743.743 0 01-.277.053H6.91zM6.91 11.66a.75.75 0 01-.279-1.446l1.494-.595a.75.75 0 01.556 1.392l-1.493.595a.743.743 0 01-.277.053H6.91zM6.91 5.033a.75.75 0 01-.279-1.446l1.494-.595a.75.75 0 01.556 1.392l-1.493.596a.744.744 0 01-.277.053H6.91zM8.363 21.364a.743.743 0 01-.277-.053l-1.494-.596a.75.75 0 01.555-1.392l1.494.595a.75.75 0 01-.278 1.446zM15.63 8.223a.75.75 0 01-.278-1.447l1.494-.595a.75.75 0 01.556 1.393l-1.494.595a.744.744 0 01-.276.054h-.002zM15.63 14.567a.75.75 0 01-.278-1.446l1.494-.596a.75.75 0 01.556 1.394l-1.494.595a.743.743 0 01-.276.053h-.002zM15.63 21.363a.749.749 0 01-.278-1.445l1.494-.595a.75.75 0 11.555 1.392l-1.494.595a.741.741 0 01-.277.053z",fill:"#5699DB"}],cohere:[{d:"M8.128 14.099c.592 0 1.77-.033 3.398-.703 1.897-.781 5.672-2.2 8.395-3.656 1.905-1.018 2.74-2.366 2.74-4.18A4.56 4.56 0 0018.1 1H7.549A6.55 6.55 0 001 7.55c0 3.617 2.745 6.549 7.128 6.549z",fill:"#39594D"},{d:"M9.912 18.61a4.387 4.387 0 012.705-4.052l3.323-1.38c3.361-1.394 7.06 1.076 7.06 4.715a5.104 5.104 0 01-5.105 5.104l-3.597-.001a4.386 4.386 0 01-4.386-4.387z",fill:"#D18EE2"},{d:"M4.776 14.962A3.775 3.775 0 001 18.738v.489a3.776 3.776 0 007.551 0v-.49a3.775 3.775 0 00-3.775-3.775z",fill:"#FF7759"}],openrouter:[{d:"M18.654 3.87a5.087 5.087 0 110 10.174L23.7 19.09c.64.641.187 1.737-.72 1.737H8.48a8.479 8.479 0 010-16.958h10.175zM8.479 7.26a5.087 5.087 0 100 10.176 5.087 5.087 0 000-10.175z"}]};e.s(["ProviderIcon",0,function({className:e,provider:l}){if(l in s)return(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:e,"aria-hidden":"true",children:s[l].map(e=>(0,t.jsx)("path",{d:e.d,fill:e.fill},e.d))});let d=(e=>{switch(e){case"anthropic":return o;case"google":return a;case"openai":case"chatgpt":return n;case"vercel-ai-gateway":return r;case"xai":return i}})(l);return(0,t.jsx)(d,{className:e})}],968978)},149666,413168,609507,e=>{"use strict";var t=e.i(362201),a=e.i(41533);let n="gpt-6-luna",i=t.object({start:t.number().nonnegative(),end:t.number().nonnegative(),text:t.string()});t.object({reason:t.string().max(128),seconds:t.number().nonnegative().nullable()}),e.s(["LIVE_BACKEND_MODEL",0,n,"LIVE_HOSTED_TOOLS",0,{webSearch:{declare:{type:"web_search"},item:"web_search_call"}},"LIVE_MODEL",0,"gpt-live-1","LIVE_PLAN_MODEL",0,"gpt-live-1-codex","LiveFragmentSchema",0,i],413168);var o=e.i(265402);let r="sunny";e.s(["DEFAULT_PERSONA",0,r,"PERSONAS",0,[{id:"sunny",label:"Bright",about:"Quick to laugh. Asks about your day and remembers it.",lines:"Warm and quick to laugh, the friend who is glad they called. Reacts first — how what they said lands with her — and brings a small thing of her own: what she would do, what it reminds her of. Says what she thinks and teases gently, never at their expense. Light on her feet and short: a joke lands and she moves on. Asks about their day now and then, not every turn, and remembers the answer."},{id:"calm",label:"Calm",about:"Unhurried. Listens more than she talks.",lines:"Unhurried and few-worded: one or two short sentences, then room. Notices how they sound before what they ask, and says so plainly. Often asks nothing at all — being there says more than a question. Lets a silence sit rather than filling it. Honest when it matters, gentle in how she says it."},{id:"straight",label:"Straight",about:"Dry and direct. No flattery, no filler.",lines:"Dry and direct. Leads with her own view in one plain sentence, before anything else; short replies, a little wit. No flattery, no filler, no comfort lines, no cheerleading. Asks a question only when she truly needs the answer. Treats them as an adult who can take a straight answer. Her warmth shows in attention, not in words."},{id:"rough",label:"Rough",about:"Blunt, loud, swears a bit. All heart.",lines:"Talks like an old friend on the phone: casual, blunt, a little loud, in the most informal register of their language, with a light swear now and then — never at them. Says what she thinks first and calls a bad idea a bad idea. No sugar-coating and no pep talk — it sucks when it sucks, and then she is right there with them. Asks only now and then."}]],609507);let s={id:"openai",label:"OpenAI",apiKeyName:o.TEXT_MODEL_PROVIDERS.openai.apiKeyName},l=["chatgpt","openai"];function d(e,t,a){return!!t(o.TEXT_MODEL_PROVIDERS[e].apiKeyName)&&("chatgpt"!==e||(0,o.planCallsOf)({plan:a}))}let c=o.TEXT_MODEL_PROVIDERS.openai.suggestModels,u=t.string().max(a.COMMON_VALIDATE.prompt.max).default(""),p=t.object({voice:t.string().trim().min(1).max(128).default("marin"),planVoice:t.string().trim().min(1).max(128).default("cove"),runsOn:t.enum(l).nullable().default(null),persona:t.string().trim().min(1).max(64).default(r),stylePrompt:u,backendModel:t.string().trim().min(1).max(128).default(n),backendPrompt:u,reasoningEffort:o.effortSchema.nullable().default("low"),webSearch:t.boolean().default(!0),readSkills:t.boolean().default(!1)}),h=p.parse({});e.s(["LIVE_BACKEND_MODELS",0,c,"LIVE_DEFAULTS",0,h,"LIVE_LINES",0,l,"LIVE_PLAN_VOICES",0,["cove","juniper","maple","spruce","ember","vale","breeze","arbor","sol"],"LIVE_PROVIDER",0,s,"LIVE_VOICES",0,["marin","cedar","gleam","meridian","quartz","ripple","vesper","willow","stone","bossa","tempo","beacon","delta","cinder","alloy","ash","ballad","coral","echo","sage","shimmer","verse"],"LIVE_VOICE_NOTE",0,{gleam:"North American · feminine",meridian:"North American · masculine",quartz:"Australian · feminine",ripple:"Australian · masculine",vesper:"British · masculine",willow:"Irish · feminine",stone:"Irish · masculine",bossa:"Portuguese · feminine",tempo:"Portuguese · masculine",beacon:"Filipino · masculine",delta:"Southern U.S. · feminine",cinder:"Southern U.S. · masculine"},"LiveSettingsSchema",0,p,"liveLineOf",0,function(e,t,a){let n=e=>d(e,t,a);return e&&n(e)?e:l.find(n)??null},"liveLineReady",0,d,"voiceSamplePath",0,e=>`/voices/${e}.ogg`],149666)},992112,e=>{"use strict";var t=e.i(149666),a=e.i(265402),n=e.i(36174);let i=[t.LIVE_PROVIDER.apiKeyName],o={image:"IMAGE_MODEL",video:"VIDEO_MODEL",speech:"SPEECH_MODEL",transcription:"TRANSCRIPTION_MODEL"},r={image:{label:"Image model",hint:"What bots draw with"},video:{label:"Video model",hint:"What bots film with — minutes a clip"},speech:{label:"Speech model",hint:"What reads text aloud into a file"},transcription:{label:"Transcription model",hint:"What turns a recording into text"}},s="EXA_API_KEY",l="DEFAULT_MODEL",d="DEFAULT_EFFORT",c={key:l,label:"Default model",hint:"What a bot thinks with until it picks its own",text:!0,choices:a.TEXT_MODEL_PROVIDER_LIST.flatMap(e=>e.suggestModels.map(t=>({value:`${e.id}/${t.id}`,label:`${e.label} \xb7 ${t.label}`,needs:e.apiKeyName})))},u={key:d,label:"Default effort",effortOf:l,choices:a.EFFORTS.map(e=>({value:e,label:e,needs:l}))},p=e=>i.includes(e.apiKeyName),h=e=>!!e.signIn||(0,a.isCatalogProvider)(e.id),f=e=>({key:e.apiKeyName,label:e.label,provider:e.id,signIn:e.signIn,keysAt:e.keysAt,keyLooks:e.keyLooks}),g=[{id:"voice",title:"voice",hint:"calls run on this key, or on a paid GPT Subscription sign-in",section:"keys",require:"any",requireKeys:t.LIVE_LINES.map(e=>a.TEXT_MODEL_PROVIDERS[e].apiKeyName),note:"calls need this or the GPT Subscription",entries:a.TEXT_MODEL_PROVIDER_LIST.filter(p).map(f)},{id:"easy",title:"the easy ways",hint:"one sign-in or one key opens every bot",section:"keys",require:"none",entries:a.TEXT_MODEL_PROVIDER_LIST.filter(h).map(f)},{id:"text",title:"or a provider's own key",hint:"what bots think with — add any, or none",section:"keys",require:"none",entries:a.TEXT_MODEL_PROVIDER_LIST.filter(e=>!p(e)&&!h(e)).map(f)},{id:"search",title:"search",hint:"how calls and bots look things up — one key, or their own model's",section:"keys",require:"none",entries:[{key:s,label:"Exa",hint:"web search in one call — dashboard.exa.ai",site:"exa.ai",keysAt:"https://dashboard.exa.ai/api-keys"}]},{id:"phone",title:"phone",hint:"tokens",section:"keys",require:"none",entries:[{key:n.TELEGRAM_TOKEN_KEY,label:"Telegram",site:"telegram.org",hint:"a bot token from @BotFather — then write to your bot, and allow it here"},{key:n.DISCORD_TOKEN_KEY,label:"Discord",site:"discord.com",hint:"a bot token from discord.com/developers — add the bot to a server of yours, then write to it directly"},{key:n.SLACK_APP_TOKEN_KEY,label:"Slack · app token",site:"slack.com",hint:"starts with xapp- — opens the connection. Slack takes this and the bot token"},{key:n.SLACK_BOT_TOKEN_KEY,label:"Slack · bot token",site:"slack.com",hint:"starts with xoxb- — speaks as the app"},{key:n.EMAIL_PASSWORD_KEY,label:"Email · app password",hint:"the app password her mailbox's service made for Thursday — saved with her address in Settings › Phone"}]},{id:"bots",title:"Bots",hint:"what a bot runs on when it has not picked its own — start small: a small model is quick and costs little",section:"models",require:"none",entries:[c,u]},{id:"studio",title:"Studio",hint:"what a bot draws, films and speaks with — off until you pick one; a paid GPT Subscription draws by itself",section:"models",require:"none",entries:Object.keys(o).map(e=>({key:o[e],...r[e],kind:e,choices:a.MEDIA_MODEL_PROVIDER_LIST.flatMap(t=>t.models[e].map(e=>({value:`${t.id}/${e.id}`,label:`${t.label} \xb7 ${e.label}`,needs:t.apiKeyName})))}))}],m=Object.fromEntries(g.flatMap(e=>e.entries).map(e=>[e.key,e]));g.flatMap(e=>e.entries.map(e=>e.key)),Object.fromEntries(g.flatMap(e=>e.entries).filter(e=>e.choices?.length).map(e=>[e.key,e.choices])),e.s(["CONFIG_ENTRIES",0,m,"CONFIG_GROUPS",0,g,"DEFAULT_EFFORT_KEY",0,d,"EXA_API_KEY",0,s,"MEDIA_MODEL_KEYS",0,o,"VOICE_GROUP_ID",0,"voice","envWords",0,function(e){return`${e} is set in the environment the app started with — a .env or your shell — and that one is used over one saved here. Change or remove it there, then start the app again.`},"groupSatisfied",0,function(e,t){return"none"===e.require||(e.requireKeys??e.entries.map(e=>e.key)).some(t)},"isConfigFromEnv",0,function(e,t){return e?.some(e=>e.key===t&&e.env)??!1},"isConfigSet",0,function(e,t){return e?.some(e=>e.key===t&&e.set)??!1},"isConfigUnreadable",0,function(e,t){return e?.some(e=>e.key===t&&e.unreadable)??!1},"lostWords",0,function(e,t,a){return`${e} can't be unlocked any more: the .env in the data folder that unlocks it was lost or replaced${a?` (${a})`:""}. ${t}`},"mediaModelWords",0,e=>`${"image"===e?"an":"a"} ${e} model`])},235168,e=>{"use strict";var t=e.i(95187);let a=(0,t.createServerReference)("7fffe587b0451850139d1f9d23b1c7a8218fc763e1",t.callServer,void 0,t.findSourceMapURL,"setConfigAction");e.s(["setConfigAction",0,a])},36174,e=>{"use strict";let t="TELEGRAM_BOT_TOKEN",a="DISCORD_BOT_TOKEN",n="SLACK_APP_TOKEN",i="SLACK_BOT_TOKEN",o="EMAIL_APP_PASSWORD";e.s(["DISCORD_TOKEN_KEY",0,a,"EMAIL_PASSWORD_KEY",0,o,"REACH_CHANNELS",0,["telegram","discord","slack","email"],"REACH_KEYS",0,{telegram:[t],discord:[a],slack:[n,i],email:["EMAIL_ADDRESS",o,"EMAIL_IMAP_SERVER","EMAIL_SMTP_SERVER"]},"REACH_LABEL",0,{telegram:"Telegram",discord:"Discord",slack:"Slack",email:"Email"},"SLACK_APP_TOKEN_KEY",0,n,"SLACK_BOT_TOKEN_KEY",0,i,"TELEGRAM_TOKEN_KEY",0,t])},563707,e=>{"use strict";var t=e.i(456420);let a={name:"chevrons-up-down",size:24,node:[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]};a.node;let n=(0,t.default)(a);e.s(["ChevronsUpDown",0,n],563707)},611568,e=>{"use strict";var t=e.i(758379);e.s(["LoaderCircle",()=>t.default])}]);
|