thursday-agent 0.22.0 → 0.23.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 +3 -3
- package/.next/prerender-manifest.json +4 -4
- package/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +12 -12
- package/.next/server/app/_not-found.segments/_full.segment.rsc +12 -12
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +11 -11
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/artifact/route.js +6 -6
- package/.next/server/app/api/artifact/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/files/route.js +5 -4
- package/.next/server/app/api/bot/memory/files/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/route.js +9 -9
- package/.next/server/app/api/bot/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/route.js +9 -9
- package/.next/server/app/api/bot/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/[id]/route.js +2 -2
- package/.next/server/app/api/bot/thread/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/file/route.js +12 -12
- package/.next/server/app/api/bot/thread/file/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/route.js +2 -2
- package/.next/server/app/api/bot/thread/route.js.nft.json +1 -1
- package/.next/server/app/api/config/route.js +2 -2
- package/.next/server/app/api/config/route.js.nft.json +1 -1
- package/.next/server/app/api/events/route.js.nft.json +1 -1
- package/.next/server/app/api/favicon/[host]/route.js.nft.json +1 -1
- package/.next/server/app/api/file/[...path]/route.js +3 -3
- package/.next/server/app/api/file/[...path]/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/automatic/route.js.nft.json +1 -1
- 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.nft.json +1 -1
- package/.next/server/app/api/llm-model/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/subscription/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/oauth/callback/route.js +2 -2
- package/.next/server/app/api/mcp/oauth/callback/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/tools/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/edit/route.js +13 -13
- package/.next/server/app/api/memory/edit/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/route.js +1 -1
- package/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/reach/route.js +11 -11
- package/.next/server/app/api/reach/route.js.nft.json +1 -1
- package/.next/server/app/api/routine/route.js +9 -9
- package/.next/server/app/api/routine/route.js.nft.json +1 -1
- package/.next/server/app/api/running/route.js.nft.json +1 -1
- package/.next/server/app/api/signins/route.js +7 -6
- package/.next/server/app/api/signins/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/[source]/[name]/route.js +8 -8
- package/.next/server/app/api/skills/[source]/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/route.js +8 -8
- package/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/end/route.js +6 -6
- package/.next/server/app/api/thursday/call/end/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/plan/route.js +16 -16
- 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 +6 -6
- package/.next/server/app/api/thursday/settings/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/text/route.js +16 -16
- package/.next/server/app/api/thursday/text/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/tool-call/route.js +10 -10
- package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/files/route.js +1 -1
- package/.next/server/app/api/workspace/files/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/route.js +1 -1
- package/.next/server/app/api/workspace/route.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page/server-reference-manifest.json +11 -11
- package/.next/server/app/artifact/[...path]/page.js +5 -5
- package/.next/server/app/artifact/[...path]/page.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/.next/server/app/page/react-loadable-manifest.json +2 -2
- package/.next/server/app/page/server-reference-manifest.json +162 -162
- package/.next/server/app/page.js +7 -7
- 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]__019e1fy._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__01jpmcj._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__03bjojd._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__03vunn6._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__06kxzw-._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__0atwstu._.js +1 -1
- package/.next/server/chunks/{[root-of-the-server]__005onk_._.js → [root-of-the-server]__0cfv4rq._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0d-dfqm._.js +1 -1
- package/.next/server/chunks/{[root-of-the-server]__1-i6lgn._.js → [root-of-the-server]__0d00o4_._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0itmdqy._.js → [root-of-the-server]__0e8y4ok._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__1tyftcr._.js → [root-of-the-server]__0eem_66._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0xn7a8p._.js → [root-of-the-server]__0jn2qbf._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__08922kg._.js → [root-of-the-server]__0l563r8._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0mh1tgg._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0mq0qmk._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0ncs9uu._.js +1 -1
- package/.next/server/chunks/{[root-of-the-server]__1a7rgvy._.js → [root-of-the-server]__0pp2355._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__1g08s7l._.js → [root-of-the-server]__0r77huw._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__10_v9ml._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__13hng6h._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1478lu3._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__16xao_p._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__17kdjf6._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__17m7ag9._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__17yv6lg._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__19aqyg-._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__19imprr._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1_04mcf._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__1ceammd._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1fhule0._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1hing45._.js +3 -0
- package/.next/server/chunks/{[root-of-the-server]__0mttntm._.js → [root-of-the-server]__1ivfglf._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1jcu_e9._.js +5 -0
- package/.next/server/chunks/{[root-of-the-server]__0m0qglo._.js → [root-of-the-server]__1kb-dkn._.js} +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0eluax8._.js → [root-of-the-server]__1mowvzz._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1ndi14y._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1o7z93z._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1onvx8x._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1q_d6dj._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1u_6dhy._.js +1 -1
- package/.next/server/chunks/{[root-of-the-server]__1_wtn0q._.js → [root-of-the-server]__1yiqjfx._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1yr_vvq._.js +3 -0
- package/.next/server/chunks/_0-mqt2w._.js +3 -0
- package/.next/server/chunks/_0-qt5if._.js +1 -1
- package/.next/server/chunks/{_0fau3ya._.js → _00aztuo._.js} +2 -2
- package/.next/server/chunks/_021kabv._.js +53 -0
- package/.next/server/chunks/_032k4m6._.js +3 -0
- package/.next/server/chunks/_03p6r2-._.js +1 -1
- package/.next/server/chunks/_06b5b4-._.js +2 -2
- package/.next/server/chunks/_06u9yo-._.js +1 -1
- package/.next/server/chunks/_07mczew._.js +3 -0
- package/.next/server/chunks/_07pkeds._.js +1 -1
- package/.next/server/chunks/_08354bn._.js +22 -22
- package/.next/server/chunks/_083t_nr._.js +5 -0
- package/.next/server/chunks/_0c-s0ei._.js +3 -0
- package/.next/server/chunks/_0cq69mm._.js +1 -1
- package/.next/server/chunks/_0gifi_2._.js +7 -0
- package/.next/server/chunks/_0gxz_1b._.js +1 -1
- package/.next/server/chunks/{_1tjwvoz._.js → _0la8s6t._.js} +2 -2
- package/.next/server/chunks/_0p27in2._.js +1 -1
- package/.next/server/chunks/{_09rtyfn._.js → _0rn3c_0._.js} +24 -26
- package/.next/server/chunks/_0ue8nq-._.js +5 -1
- package/.next/server/chunks/{_1uu4wjr._.js → _0wkhub3._.js} +2 -2
- package/.next/server/chunks/_0wyh244._.js +22 -22
- package/.next/server/chunks/_0ynjnhl._.js +5 -0
- package/.next/server/chunks/_1-wp0r0._.js +1 -1
- package/.next/server/chunks/{_201k0ah._.js → _12-7atf._.js} +2 -2
- package/.next/server/chunks/{_02mn8d7._.js → _124q1p2._.js} +2 -2
- package/.next/server/chunks/{_14xuq46._.js → _13qoxq9._.js} +24 -26
- package/.next/server/chunks/{_11y8h29._.js → _15-_mie._.js} +2 -2
- package/.next/server/chunks/_1823_7a._.js +1 -1
- package/.next/server/chunks/{_0uir6hb._.js → _186uku9._.js} +2 -2
- package/.next/server/chunks/{_0ggqpiz._.js → _18sj4xf._.js} +2 -2
- package/.next/server/chunks/_19kea1l._.js +12 -12
- package/.next/server/chunks/_1ac33qw._.js +2 -2
- package/.next/server/chunks/{_18z965x._.js → _1chy-lk._.js} +2 -2
- package/.next/server/chunks/_1cw6-rv._.js +1 -1
- package/.next/server/chunks/_1evvnbp._.js +1 -1
- package/.next/server/chunks/_1f_x75d._.js +3 -0
- package/.next/server/chunks/_1gn2r2q._.js +7 -9
- package/.next/server/chunks/_1icgbi8._.js +1 -1
- package/.next/server/chunks/{_1ozcb6o._.js → _1k6bmez._.js} +2 -2
- package/.next/server/chunks/_1ko5shz._.js +1 -1
- package/.next/server/chunks/_1ksyu6r._.js +1 -1
- package/.next/server/chunks/_1kwmzab._.js +3 -0
- package/.next/server/chunks/_1lg0lsu._.js +1 -1
- package/.next/server/chunks/_1pv6xbq._.js +5 -0
- package/.next/server/chunks/_1q42187._.js +2 -2
- package/.next/server/chunks/_1q6e56i._.js +7 -9
- package/.next/server/chunks/_1t43w6q._.js +1 -1
- package/.next/server/chunks/_1t8fv7b._.js +1 -1
- package/.next/server/chunks/_1ufbxe1._.js +1 -1
- package/.next/server/chunks/_1wgae1c._.js +1 -1
- package/.next/server/chunks/_1xps4ob._.js +1 -1
- package/.next/server/chunks/_1znrlca._.js +3 -0
- 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 +2 -2
- package/.next/server/chunks/features_bot_1d6ghh5._.js +41 -0
- package/.next/server/chunks/features_bot_1dfrdsb._.js +10 -6
- package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_0yd5xa0._.js → node_modules_consola_dist_chunks_prompt_mjs_0k--vqs._.js} +1 -1
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_0ufuc3s._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__05qiosr._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0y03pu0._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0zt_au4._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__0eloa6y._.js → [root-of-the-server]__17yeveo._.js} +5 -5
- package/.next/server/chunks/ssr/[root-of-the-server]__1867koj._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1t38-p_._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1u42eh0._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__203utm3._.js +1 -1
- package/.next/server/chunks/ssr/{_0xurp8n._.js → _0-s7ria._.js} +2 -2
- package/.next/server/chunks/ssr/_03vw3u5._.js +3 -0
- package/.next/server/chunks/ssr/_088qe9a._.js +162 -0
- package/.next/server/chunks/ssr/_09a6bpd._.js +1 -1
- package/.next/server/chunks/ssr/{_0u43zjx._.js → _0a_pedm._.js} +2 -2
- package/.next/server/chunks/ssr/_0ali_i8._.js +3 -0
- package/.next/server/chunks/ssr/_0cd6g3l._.js +3 -3
- package/.next/server/chunks/ssr/{_1nwey7a._.js → _0eprrig._.js} +2 -2
- package/.next/server/chunks/ssr/_0flnog5._.js +3 -0
- package/.next/server/chunks/ssr/_0iuvjnw._.js +1 -1
- package/.next/server/chunks/ssr/{_0t_e9rd._.js → _0k-gl8l._.js} +2 -2
- package/.next/server/chunks/ssr/_0kmldic._.js +41 -0
- package/.next/server/chunks/ssr/_0ks03l-._.js +3 -0
- package/.next/server/chunks/ssr/_0mng-y8._.js +6 -0
- package/.next/server/chunks/ssr/_0tg3o37._.js +1 -1
- package/.next/server/chunks/ssr/_0ugzm_0._.js +3 -0
- package/.next/server/chunks/ssr/{_0ntol64._.js → _0wnv6c0._.js} +2 -2
- package/.next/server/chunks/ssr/{_0-y08rv._.js → _0z9zkd-._.js} +2 -2
- package/.next/server/chunks/ssr/_11l9kc0._.js +1 -1
- package/.next/server/chunks/ssr/_12_ail7._.js +3 -0
- package/.next/server/chunks/ssr/_16_7zeo._.js +1 -1
- package/.next/server/chunks/ssr/_16wjbs2._.js +3 -0
- package/.next/server/chunks/ssr/{_16o81mn._.js → _18rmqqu._.js} +2 -2
- package/.next/server/chunks/ssr/_1bfrntd._.js +2 -2
- package/.next/server/chunks/ssr/{_0gn_i4s._.js → _1ckje8g._.js} +2 -2
- package/.next/server/chunks/ssr/_1crszf7._.js +1 -1
- package/.next/server/chunks/ssr/_1h3qetc._.js +3 -0
- package/.next/server/chunks/ssr/{_1gz4ov7._.js → _1kpvfmn._.js} +3 -3
- package/.next/server/chunks/ssr/{_12hdw8x._.js → _1l-3enz._.js} +26 -28
- package/.next/server/chunks/ssr/_1neoj22._.js +1 -1
- package/.next/server/chunks/ssr/_1soynbw._.js +2 -2
- package/.next/server/chunks/ssr/{_0ux4i2m._.js → _1v1pcoh._.js} +2 -2
- package/.next/server/chunks/ssr/features_ai_components_model-picker_tsx_0ucb1y9._.js +1 -1
- package/.next/server/chunks/ssr/{features_bot_06n7hmd._.js → features_bot_0-7flc-._.js} +2 -2
- package/.next/server/chunks/ssr/features_bot_0tb4ui-._.js +1 -1
- package/.next/server/chunks/ssr/features_bot_1stfytf._.js +41 -0
- package/.next/server/chunks/ssr/features_config_10xs4l1._.js +20 -0
- 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 +1 -1
- package/.next/server/chunks/ssr/features_routine_components_routine-setting_tsx_055fknz._.js +1 -1
- package/.next/server/chunks/ssr/features_thursday_0cf9y0b._.js +1 -1
- package/.next/server/chunks/ssr/features_thursday_components_here-globe_tsx_055duhw._.js +1 -1
- package/.next/server/chunks/ssr/lib_utils_ts_0_f1xvm._.js +1 -1
- package/.next/server/chunks/ssr/{node_modules_1i-g3bz._.js → node_modules_00mh9o-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1bvw77g._.js → node_modules_04f_uw2._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_16tn8xu._.js → node_modules_07udd3z._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0ksqeyy._.js → node_modules_08-pj-2._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0e398ts._.js → node_modules_098h6h5._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_19r9vjv._.js → node_modules_0_7yfem._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_01v7ybp._.js → node_modules_0ayoorn._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0_zk6yd._.js → node_modules_0bp3vfu._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0m-dnm-._.js → node_modules_0ch5hqr._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0536cp2._.js → node_modules_0e-hyim._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0yn2z6s._.js → node_modules_0ffm9w3._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1jf8aik._.js → node_modules_0jzyuwk._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0m2oth3._.js → node_modules_0ln4iwf._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1dlue-g._.js → node_modules_0my2hph._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0cpegwf._.js → node_modules_0y_k4h5._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_13dwal5._.js → node_modules_10bzndo._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1ctm_ju._.js → node_modules_1b5rxw5._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_01fukqn._.js → node_modules_1b_h09q._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_12hh0bx._.js → node_modules_1e83j9e._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_08m1gvh._.js → node_modules_1e9ugfy._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_06n6ruk._.js → node_modules_1hd66k0._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1zdz2zf._.js → node_modules_1inwr2m._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1zalmtr._.js → node_modules_1j9xx1k._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1kfbdfo._.js → node_modules_1k8kypa._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_056xgci._.js → node_modules_1oeu85h._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0ie8g6a._.js → node_modules_1r2ghv5._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1fqgrh0._.js → node_modules_1ttpnib._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0nj1l8f._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0ir6p7s._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_17ok98u._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1ejf5ye._.js} +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +163 -163
- package/.next/static/chunks/02lze_e5sagjn.js +1 -0
- package/.next/static/chunks/{3866u-edsoyj3.js → 081kl7k8r6f8z.js} +1 -1
- package/.next/static/chunks/0_s4z70lx1tgs.js +1 -0
- package/.next/static/chunks/0fklfoj8o_msg.js +18 -0
- package/.next/static/chunks/0ve2gb0hw3wkq.js +1 -0
- package/.next/static/chunks/11c3uijgqik4m.js +39 -0
- package/.next/static/chunks/{0go5_9zqag7l0.js → 125lh2zzxk3r2.js} +1 -1
- package/.next/static/chunks/{3zv4wiqjl5kex.js → 166v36614ycsf.js} +1 -1
- package/.next/static/chunks/16np6727e61io.js +1 -0
- package/.next/static/chunks/18amidjlaqexf.js +1 -0
- package/.next/static/chunks/{35ehi-okrfot5.js → 1ettmta9iet7b.js} +1 -1
- package/.next/static/chunks/{1dy5xaxjdsy11.js → 1j4rndg17wgfk.js} +1 -1
- package/.next/static/chunks/{01r1uco3ikisc.js → 1mpz4epyg-7pz.js} +1 -1
- package/.next/static/chunks/{05blzta_1i7c2.js → 1oh4hbusfz97l.js} +1 -1
- package/.next/static/chunks/{3qfhjwd9yuijo.js → 1x1-44qmhu437.js} +1 -1
- package/.next/static/chunks/{0hpx0--bh7vld.js → 22jb4s3-8ckup.js} +1 -1
- package/.next/static/chunks/236le5kv_yj6a.css +1 -0
- package/.next/static/chunks/24op50z6sqi_5.js +1 -0
- package/.next/static/chunks/2eczs-lporqt6.js +1 -0
- package/.next/static/chunks/{2nbj2t9yp8ke9.js → 2sxclirl-c-um.js} +1 -1
- package/.next/static/chunks/2yfmmo4qr_f-m.js +1 -0
- package/.next/static/chunks/2z4sodeldj_86.js +1 -0
- package/.next/static/chunks/{3tyacy8fh5_18.js → 2zhiqxw61qowv.js} +2 -2
- package/.next/static/chunks/338dt83llhu5m.js +1 -0
- package/.next/static/chunks/3ezjz93yvzmop.js +4 -0
- package/.next/static/chunks/3h6rqjx92wva9.js +1 -0
- package/.next/static/chunks/3ph9u-51x6jhe.js +15 -0
- package/.next/static/chunks/{052u13mcoxt87.js → 3uf32hp_g9stz.js} +1 -1
- package/.next/static/chunks/3w7zt3xzyjn86.js +3 -0
- package/.next/static/chunks/3xkx7vqefm7on.js +2 -0
- package/.next/static/chunks/3ygk41pgsw7nv.js +1 -0
- package/.next/static/chunks/{3146sccz1j76i.js → 411uyd0is9u5s.js} +1 -1
- package/.next/static/chunks/4384atd5zerir.js +1 -0
- package/README.md +1 -1
- package/database/migrations/20260929121448_thread_started_by/migration.sql +1 -0
- package/database/migrations/20260929121448_thread_started_by/snapshot.json +1969 -0
- package/guide/bots.md +89 -44
- package/guide/calls.md +41 -25
- package/guide/index.md +5 -2
- package/guide/phone.md +7 -4
- package/guide/setup.md +12 -6
- package/guide/trouble.md +3 -2
- package/package.json +1 -1
- package/public/voices/intro/mic-b17ca82d.ogg +0 -0
- package/seed-skills/concierge/travel/SKILL.md +2 -1
- package/seed-skills/concierge/travel/page/itinerary.css +1009 -257
- package/seed-skills/concierge/travel/references/itinerary.md +95 -35
- package/seed-skills/concierge/travel/references/plan.md +11 -4
- package/seed-skills/concierge/travel/scripts/itinerary.mjs +754 -138
- package/skills/README.md +7 -4
- package/skills/artifact/SKILL.md +17 -13
- package/skills/artifact/references/canvas.md +4 -5
- package/skills/artifact/references/deck.md +93 -2
- package/skills/artifact/runtime/app/kit/src/index.css +35 -0
- package/skills/artifact/runtime/app/kit/tailwind.config.js +6 -0
- package/skills/artifact/runtime/deck/data.mjs +21 -0
- package/skills/artifact/runtime/deck/deck.css +254 -4
- package/skills/artifact/runtime/deck/deck.html +3 -0
- package/skills/artifact/runtime/deck/deck.js +88 -5
- package/skills/artifact/runtime/deck/deck.mjs +1 -17
- package/skills/artifact/runtime/document/quick.css +264 -89
- package/skills/artifact/runtime/document/quick.html +16 -7
- package/skills/artifact/runtime/document/quick.js +377 -98
- package/skills/artifact/runtime/render.mjs +52 -6
- package/skills/artifact/runtime/sheet/sheet.css +29 -21
- package/skills/artifact/runtime/shell/drafts.js +25 -0
- package/skills/artifact/runtime/shell/fonts/Geist-latin-ext.woff2 +0 -0
- package/skills/artifact/runtime/shell/fonts/Geist-latin.woff2 +0 -0
- package/skills/artifact/runtime/shell/fonts/GeistMono-latin-ext.woff2 +0 -0
- package/skills/artifact/runtime/shell/fonts/GeistMono-latin.woff2 +0 -0
- package/skills/artifact/runtime/shell/fonts/OFL.txt +93 -0
- package/skills/artifact/runtime/shell/head.html +27 -2
- package/skills/artifact/runtime/shell/shell.css +88 -8
- package/skills/artifact/runtime/shell/shell.js +318 -22
- package/skills/artifact/runtime/shell/wear.mjs +114 -12
- package/skills/artifact/scripts/app.mjs +5 -0
- package/skills/artifact/scripts/chart.mjs +20 -19
- package/skills/artifact/scripts/deck.mjs +276 -0
- package/skills/artifact/scripts/document.mjs +55 -2
- package/skills/artifact/scripts/media.mjs +1 -1
- package/skills/artifact/templates/boards/direction.html +55 -2
- package/skills/browser/SKILL.md +1 -1
- package/skills/browser/references/scripts.md +1 -1
- package/skills/daily-brief/SKILL.md +2 -0
- package/skills/daily-brief/page/brief.css +460 -302
- package/skills/daily-brief/references/brief.md +33 -7
- package/skills/daily-brief/scripts/page.mjs +241 -48
- package/skills/media-digest/SKILL.md +1 -0
- package/skills/media-digest/scripts/digest.mjs +57 -43
- package/.next/server/chunks/[root-of-the-server]__00f051a._.js +0 -7
- package/.next/server/chunks/[root-of-the-server]__0340k46._.js +0 -7
- package/.next/server/chunks/[root-of-the-server]__0ndw2yj._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__16y0k92._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__18e65_-._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1a0xgyh._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__1dth047._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__1huywqp._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__1ij4h2a._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1q1s4ls._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1qa67zs._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1t-mfa4._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__20ofm9t._.js +0 -3
- package/.next/server/chunks/_0483t_f._.js +0 -5
- package/.next/server/chunks/_0lcthk8._.js +0 -3
- package/.next/server/chunks/_0uv1gs1._.js +0 -3
- package/.next/server/chunks/_17fjc-7._.js +0 -5
- package/.next/server/chunks/_1dcbwn-._.js +0 -3
- package/.next/server/chunks/_1mgzs18._.js +0 -3
- package/.next/server/chunks/_20qn224._.js +0 -3
- package/.next/server/chunks/features_bot_0zy_q8y._.js +0 -37
- package/.next/server/chunks/ssr/[root-of-the-server]__04upd5v._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0dy20eb._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0yyxgt2._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__14j8gxy._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__20t_4l2._.js +0 -3
- package/.next/server/chunks/ssr/_00buy3i._.js +0 -162
- package/.next/server/chunks/ssr/_014_wjp._.js +0 -3
- package/.next/server/chunks/ssr/_07m4ii5._.js +0 -3
- package/.next/server/chunks/ssr/_0cv9tmv._.js +0 -3
- package/.next/server/chunks/ssr/_0j6rtjm._.js +0 -6
- package/.next/server/chunks/ssr/_0ogkeu-._.js +0 -3
- package/.next/server/chunks/ssr/_10sc7ab._.js +0 -3
- package/.next/server/chunks/ssr/_14nwim3._.js +0 -37
- package/.next/server/chunks/ssr/_1e01b-_._.js +0 -3
- package/.next/server/chunks/ssr/_1nfv27b._.js +0 -3
- package/.next/server/chunks/ssr/features_bot_1c56lew._.js +0 -37
- package/.next/server/chunks/ssr/features_bot_1knyan7._.js +0 -3
- package/.next/server/chunks/ssr/features_config_09wq1s9._.js +0 -20
- package/.next/static/chunks/01gkq9y6_xk4a.js +0 -1
- package/.next/static/chunks/09kwsjbmr_z1w.js +0 -1
- package/.next/static/chunks/0ynv7zu_bguve.js +0 -1
- package/.next/static/chunks/0zi59tghmg1lu.js +0 -18
- package/.next/static/chunks/1_ftsgxa-sia_.js +0 -1
- package/.next/static/chunks/1cg3torc90q5t.js +0 -1
- package/.next/static/chunks/1qnx1h5c8f93b.js +0 -1
- package/.next/static/chunks/1rwn3d9ji5w35.js +0 -1
- package/.next/static/chunks/1so3f5fi7e5g9.js +0 -35
- package/.next/static/chunks/1ya41wxfmp4s8.js +0 -1
- package/.next/static/chunks/27rwkfu7_xvs1.js +0 -4
- package/.next/static/chunks/2hueh8masqd91.js +0 -15
- package/.next/static/chunks/2jrt_752fqz2f.js +0 -1
- package/.next/static/chunks/2ogme4qydxnaq.js +0 -3
- package/.next/static/chunks/2r2tocw2rpvm2.js +0 -1
- package/.next/static/chunks/2t4kimg1lt-p7.js +0 -2
- package/.next/static/chunks/2w6y71o27my_z.js +0 -1
- package/.next/static/chunks/31_am8rtmk_tv.css +0 -1
- package/.next/static/chunks/337g9g_ux2gj-.js +0 -1
- package/public/voices/intro/heard-1f12cd45.ogg +0 -0
- package/public/voices/intro/mic-e561372a.ogg +0 -0
- package/skills/artifact/references/book.md +0 -163
- package/skills/artifact/runtime/book/book.css +0 -256
- package/skills/artifact/runtime/book/book.html +0 -38
- package/skills/artifact/runtime/book/book.js +0 -81
- package/skills/artifact/scripts/book-pdf.mjs +0 -73
- package/skills/artifact/scripts/book-video.mjs +0 -168
- package/skills/artifact/scripts/book.mjs +0 -291
- /package/.next/static/{8exfHAtcoebYtxjUC4ugl → 6tIYlzfG_5P4sIxxgmucO}/_buildManifest.js +0 -0
- /package/.next/static/{8exfHAtcoebYtxjUC4ugl → 6tIYlzfG_5P4sIxxgmucO}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{8exfHAtcoebYtxjUC4ugl → 6tIYlzfG_5P4sIxxgmucO}/_ssgManifest.js +0 -0
- /package/seed-skills/{marketer → writer}/marketing/LICENSE +0 -0
- /package/seed-skills/{marketer → writer}/marketing/SKILL.md +0 -0
- /package/seed-skills/{marketer → writer}/marketing/references/copywriting-copy-frameworks.md +0 -0
- /package/seed-skills/{marketer → writer}/marketing/references/copywriting-natural-transitions.md +0 -0
- /package/seed-skills/{marketer → writer}/marketing/references/copywriting.md +0 -0
- /package/seed-skills/{marketer → writer}/marketing/references/emails-copy-guidelines.md +0 -0
- /package/seed-skills/{marketer → writer}/marketing/references/emails-email-types.md +0 -0
- /package/seed-skills/{marketer → writer}/marketing/references/emails-sequence-templates.md +0 -0
- /package/seed-skills/{marketer → writer}/marketing/references/emails.md +0 -0
- /package/seed-skills/{marketer → writer}/marketing/references/launch.md +0 -0
- /package/seed-skills/{marketer → writer}/marketing/references/product-marketing.md +0 -0
- /package/seed-skills/{marketer → writer}/marketing/references/seo-audit-ai-writing-detection.md +0 -0
- /package/seed-skills/{marketer → writer}/marketing/references/seo-audit-international-seo.md +0 -0
- /package/seed-skills/{marketer → writer}/marketing/references/seo-audit.md +0 -0
- /package/seed-skills/{marketer → writer}/marketing/references/social-carousel-frameworks.md +0 -0
- /package/seed-skills/{marketer → writer}/marketing/references/social-platform-limits.md +0 -0
- /package/seed-skills/{marketer → writer}/marketing/references/social-platforms.md +0 -0
- /package/seed-skills/{marketer → writer}/marketing/references/social-post-templates.md +0 -0
- /package/seed-skills/{marketer → writer}/marketing/references/social-reverse-engineering.md +0 -0
- /package/seed-skills/{marketer → writer}/marketing/references/social-short-form-video.md +0 -0
- /package/seed-skills/{marketer → writer}/marketing/references/social.md +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,421429,e=>{"use strict";var t=e.i(843476),n=e.i(647163);e.s(["Segmented",0,function({options:e,value:r,onChange:a,view:i=!1,size:l="default",className:s,...o}){return(0,t.jsx)("div",{role:"radiogroup",className:(0,n.cn)("flex w-fit gap-0.5 rounded-full bg-muted","sm"===l?"p-0.5":"p-0.75",s),...o,children:e.map(e=>{let s=e.value===r;return(0,t.jsx)("button",{type:"button",role:"radio","aria-checked":s,title:e.title,onClick:()=>a(e.value),className:(0,n.cn)("flex items-center justify-center gap-1.5 rounded-full whitespace-nowrap transition-colors outline-none focus-visible:ring-3 focus-visible:ring-ring/50","sm"===l?"h-6 px-2.5 text-[12px]":"h-7 px-3 text-[12.5px]",!s&&"text-muted-foreground hover:text-foreground",s&&(i?"bg-background font-medium text-foreground shadow-sm dark:bg-input/60":"bg-brand font-medium text-brand-foreground")),children:e.label},e.value)})})}])},818125,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(798120),a=e.i(647163);e.s(["SiteIcon",0,function({host:e,className:i="size-3.5 rounded-full",fallback:l}){let[s,o]=(0,n.useState)(!1);return s?l??(0,t.jsx)("span",{"aria-hidden":!0,className:(0,a.cn)("grid shrink-0 place-items-center bg-foreground/10 text-[8.5px] font-medium text-foreground/70 uppercase",i),children:e[0]}):(0,t.jsx)("img",{src:r.queryKey.favicon(e),alt:"",onError:()=>o(!0),className:(0,a.cn)("shrink-0",i)})}])},458898,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(798120),a=e.i(421429),i=e.i(283653),l=e.i(265402);e.s(["EffortSwitch",0,function({provider:e,model:s,value:o,onChange:u}){var d;let{data:c}=(0,i.useServerRoute)((0,l.isCatalogProvider)(e)&&s?r.queryKey.modelCatalog(e):null),f=!!(e&&s),m=f&&e?(0,l.effortsOf)(e,s,c??[]):null,h=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(!o||m?.includes(o)){h.current=null;return}m&&h.current!==o&&(h.current=o,u(null))},[o,m,u]);let[p,g]=(0,n.useState)(null);(0,n.useEffect)(()=>{g(e=>e&&e.step===o?null:e)},[o]);let y=p?p.step:o,x=m??[],b=!y||!x.includes(y);return(0,t.jsx)("div",{className:"min-w-0",title:f?null===(d=m)?"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)(a.Segmented,{"aria-label":"Thinking effort",className:"max-w-full flex-wrap",options:[{value:"auto",label:"auto",title:"The model's own default"},...x.map(e=>({value:e,label:e,title:`Thinking effort ${e}`}))],value:b?"auto":y,onChange:e=>{let t="auto"===e?null:e;g({step:t}),u(t)}})})}])},616816,e=>{"use strict";var t=e.i(843476),n=e.i(375775),r=e.i(689664),a=e.i(263676),i=e.i(271645),l=e.i(798120),s=e.i(167881),o=e.i(23750),u=e.i(41533),d=e.i(412294),c=e.i(968978),f=e.i(149666),m=e.i(265402),h=e.i(609856),p=e.i(283653),g=e.i(647163),y=e.i(528060),x=e.i(992112);function b(){let e=m.TEXT_MODEL_PROVIDERS[f.LIVE_PROVIDER.id].keysAt;return e?(0,t.jsxs)("a",{href:e,target:"_blank",rel:"noreferrer",className:"flex items-center gap-2.5 text-[13px] font-medium text-foreground no-underline",children:[(0,t.jsxs)("span",{className:"flex h-7.5 shrink-0 items-center gap-1.5 rounded-full bg-muted px-3.5 whitespace-nowrap transition-colors hover:bg-accent",children:["Get a key",(0,t.jsx)(n.ArrowUpRight,{className:"size-3.5"})]}),(0,t.jsx)("span",{className:"truncate font-mono text-[11px] font-normal text-muted-foreground/70",children:e.replace(/^https:\/\//,"")})]}):null}function O(e=null){let{data:t}=(0,p.useServerRoute)(l.queryKey.config),n=(0,x.isConfigSet)(t,m.TEXT_MODEL_PROVIDERS.chatgpt.apiKeyName),{data:r}=(0,p.useServerRoute)(n?l.queryKey.llmModel:null),{data:a}=(0,p.useServerRoute)(n?l.queryKey.subscriptionUsage:null),i=(!a||"refused"in a?null:a.plan)??r?.find(e=>"chatgpt"===e.id)?.plan??null,s=void 0!==t&&(!n||void 0!==r),o=(0,m.planCallsOf)(n?{plan:i}:null);return{known:s,signedIn:n,plan:i,planCalls:o,line:s?(0,f.liveLineOf)(e,e=>(0,x.isConfigSet)(t,e),i):null,countsForCall:e=>(0,x.isConfigSet)(t,e)&&(e!==m.TEXT_MODEL_PROVIDERS.chatgpt.apiKeyName||o)}}function v({children:e}){return(0,t.jsxs)("span",{className:"flex h-7 items-center justify-center gap-1.5 text-[12.5px] text-muted-foreground",children:[(0,t.jsx)("span",{className:"grid size-4 shrink-0 animate-in place-items-center rounded-full bg-primary text-primary-foreground duration-300 zoom-in-50",children:(0,t.jsx)(r.Check,{className:"size-2.5"})}),e]})}function S({provider:e,title:n,tag:r,about:a,warn:i=!1,children:l}){return(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-xl p-3 ring-1 ring-border ring-inset",children:[(0,t.jsx)("span",{className:"grid size-8 shrink-0 place-items-center rounded-lg bg-muted/60",children:(0,t.jsx)(c.ProviderIcon,{provider:e,className:"size-4"})}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2 text-[13px] leading-tight font-medium",children:[(0,t.jsx)("span",{className:"truncate",children:n}),r&&(0,t.jsx)("span",{className:"shrink-0 rounded-full px-1.5 font-mono text-[9.5px] leading-4 font-normal text-muted-foreground ring-1 ring-border ring-inset",children:r})]}),(0,t.jsx)("span",{className:(0,g.cn)("text-[11.5px] leading-snug text-pretty",i?g.WAITING_INK:"text-muted-foreground"),children:a})]}),(0,t.jsx)("span",{className:"w-28 shrink-0",children:l})]})}function _({ref:e,autoFocus:n,dense:r=!1,plain:o=!1,onCancel:d,onSaved:c,className:m}){let{data:b}=(0,p.useServerRoute)(l.queryKey.config),[O,v]=(0,i.useState)({}),[S,N]=(0,i.useState)(null),[k,L]=(0,i.useState)(null),[A]=(0,h.useServerAction)(y.setConfigAction,{errorMessage:!1,onError:e=>L(e??"That key was not saved."),onOk:()=>{(0,p.revalidate)(l.queryKey.config),(0,p.revalidate)(l.queryKey.llmModel)}}),T=e=>(O[e]?.trim().length??0)>=u.KEY_MIN,M=async e=>{let t=e.apiKeyName;if(!T(t)||S)return!1;L(null),N(t);try{return await A(t,O[t]),v(e=>({...e,[t]:""})),c?.(e.id),!0}catch{return!1}finally{N(null)}};return(0,i.useImperativeHandle)(e,()=>({pending:()=>T(f.LIVE_PROVIDER.apiKeyName),flush:async()=>!T(f.LIVE_PROVIDER.apiKeyName)||M(f.LIVE_PROVIDER)})),(0,t.jsxs)("div",{className:(0,g.cn)("w-full",r?"space-y-2":"space-y-4",m),children:[r&&!o&&(0,t.jsxs)("div",{className:"flex h-6 items-center justify-between gap-2",children:[(0,t.jsx)("span",{className:"px-0.5 font-mono text-[11px] text-muted-foreground",children:"Voice key"}),d&&(0,t.jsx)(s.Button,{type:"button",size:"icon",variant:"ghost","aria-label":"Not now",onClick:d,className:"-my-1 size-6",children:(0,t.jsx)(a.X,{className:"size-3.5"})})]}),(0,t.jsx)(E,{provider:f.LIVE_PROVIDER,saved:(0,x.isConfigSet)(b,f.LIVE_PROVIDER.apiKeyName),autoFocus:n,dense:r,plain:o,value:O[f.LIVE_PROVIDER.apiKeyName]??"",ready:T(f.LIVE_PROVIDER.apiKeyName),saving:S===f.LIVE_PROVIDER.apiKeyName,onValue:e=>{L(null),v(t=>({...t,[f.LIVE_PROVIDER.apiKeyName]:e}))},onSubmit:()=>void M(f.LIVE_PROVIDER)}),(k||(0,x.isConfigUnreadable)(b,f.LIVE_PROVIDER.apiKeyName))&&(0,t.jsx)("p",{className:(0,g.cn)("px-0.5 leading-5 break-words",r?"text-xs":"text-center text-[13px]",g.WAITING_INK),children:k??(0,x.lostWords)("The OpenAI key saved before","Paste it again.")}),!o&&(0,t.jsx)("p",{className:(0,g.cn)("px-0.5 font-mono text-muted-foreground",r?"text-[11px]":"pt-1 text-center text-[12.5px]"),children:r?"Live voice and reasoning share this OpenAI API key.":"Live uses an OpenAI API key, billed separately from ChatGPT. Stored on this machine, in this app's database."})]})}function E({provider:e,saved:n,autoFocus:r,dense:a,plain:i,value:l,ready:s,saving:o,onValue:u,onSubmit:d}){return(0,t.jsxs)("div",{className:"space-y-2",children:[!i&&(0,t.jsxs)("span",{className:"flex items-center gap-2 px-0.5 text-muted-foreground",children:[(0,t.jsx)(c.ProviderIcon,{provider:e.id,className:"size-4 shrink-0"}),(0,t.jsx)("span",{className:(0,g.cn)("font-mono",a?"text-[11px]":"text-[12.5px]"),children:e.label})]}),(0,t.jsx)(k,{provider:e,saved:n,autoFocus:r,dense:a,mark:i,value:l,ready:s,saving:o,onValue:u,onSubmit:d})]})}let N=e=>e?.replace(/…$/,"")??"";function k({provider:e,saved:n,autoFocus:a,dense:i,mark:l,value:u,ready:d,saving:f,onValue:h,onSubmit:p}){var y;let x,b=(y=e.id,x=N(m.TEXT_MODEL_PROVIDERS[y].keyLooks),Object.entries(m.TEXT_MODEL_PROVIDERS).flatMap(([e,t])=>{let n=N(t.keyLooks);return e!==y&&n&&!x.startsWith(n)?[n]:[]})).some(e=>u.trim().startsWith(e));return(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),p()},className:(0,g.cn)("flex items-center gap-3 rounded-2xl border bg-muted/40 px-4 transition-colors",i?"h-11 rounded-xl px-3":"h-14",n||d?"border-foreground bg-transparent":"border-border"),children:[l&&(0,t.jsx)(c.ProviderIcon,{provider:e.id,className:"size-4 shrink-0 text-muted-foreground"}),(0,t.jsx)(o.Input,{autoFocus:a,type:"password","aria-label":"OpenAI API key",autoComplete:"off",value:u,spellCheck:!1,placeholder:n?"Replace it":"sk-…",onChange:e=>h(e.target.value),className:(0,g.cn)("min-w-0 flex-1 border-0 bg-transparent px-0 font-mono shadow-none focus-visible:ring-0 dark:bg-transparent",i?"h-7 text-[13px]":"h-9 text-[15px]")}),u?(0,t.jsx)(s.Button,{type:"submit",size:"sm",variant:b?"outline":"default",loading:f,disabled:!d,className:(0,g.cn)("shrink-0",i?"h-7 px-3":"h-9 px-4"),children:b?`Not ${e.label}?`:"Save"}):n&&(0,t.jsx)("span",{className:(0,g.cn)("grid shrink-0 animate-in place-items-center rounded-full bg-foreground text-background zoom-in-50 duration-300",i?"size-5":"size-7"),children:(0,t.jsx)(r.Check,{className:i?"size-3":"size-4"})})]})}e.s(["CallLines",0,function({onSaved:e}){let{data:n}=(0,p.useServerRoute)(l.queryKey.config),[r,a]=(0,i.useState)(()=>(0,x.isConfigUnreadable)(n,f.LIVE_PROVIDER.apiKeyName)),o=(0,x.isConfigUnreadable)(n,m.TEXT_MODEL_PROVIDERS.chatgpt.apiKeyName),u=(0,x.isConfigSet)(n,f.LIVE_PROVIDER.apiKeyName),{data:c}=(0,p.useServerRoute)(l.queryKey.thursdaySettings),h=O(c?.runsOn??null),g=h.signedIn&&!h.planCalls,y=h.known&&h.signedIn&&h.planCalls&&!o;return(0,t.jsxs)("div",{className:"flex w-full flex-col gap-2 text-left",children:[!y&&!u&&(0,t.jsx)("p",{className:"font-mono text-[11px] text-muted-foreground/70",children:"Either one is enough."}),(0,t.jsx)(S,{provider:"chatgpt",title:m.TEXT_MODEL_PROVIDERS.chatgpt.label,tag:h.signedIn?(0,m.planName)(h.plan)??void 0:void 0,about:o?"The sign-in saved before can't be unlocked any more.":g?"Bots and writing run on this plan; spoken calls don't.":y&&"chatgpt"===h.line?"Calls and bots run on your plan.":y&&"openai"===h.line?"Bots run on your plan; calls run on the key.":"Your ChatGPT plan. No key, no bill by the minute.",warn:o||g,children:y?(0,t.jsx)(v,{children:"Signed in"}):(0,t.jsx)(d.ChatGptSignIn,{variant:g||u?"outline":"brand",size:"sm",className:"w-full rounded-full",label:o||g?"Sign in again":"Sign in"})}),(0,t.jsx)(S,{provider:"openai",title:"OpenAI API key",about:u&&h.known?"chatgpt"===h.line?"Calls run on your plan; switch in Settings › Thursday.":"Calls run on it now, billed by the minute.":"Billed by the minute of call, apart from ChatGPT.",children:u?(0,t.jsx)(v,{children:"Saved"}):(0,t.jsx)(s.Button,{size:"sm",variant:g?"brand":"outline","aria-expanded":r,onClick:()=>a(e=>!e),className:"w-full rounded-full",children:"Paste a key"})}),r&&!u&&(0,t.jsxs)("div",{className:"flex animate-in flex-col gap-2.5 pt-1 fade-in slide-in-from-top-1 duration-200",children:[(0,t.jsx)(_,{dense:!0,plain:!0,autoFocus:!0,onSaved:e}),(0,t.jsx)(b,{})]})]})},"KeyInput",0,k,"useVoiceLine",0,O])},333495,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(567334),a=e.i(387758),i=e.i(922521),l=e.i(647163);let s={ending:"ending",idle:"idle",connecting:"connecting",listening:"idle",speaking:"speaking",working:"working",delegating:"working"};function o({status:e,failed:n,word:l,size:u,getSpectrum:d,waking:c,className:f}){let m=(0,i.useIsDark)();return(0,t.jsx)(a.AsciiOrb,{mode:n?"error":s[e],word:l,size:u,color:m?r.ORB_INK.dark:r.ORB_INK.light,getSpectrum:d,waking:c,className:f})}let u=(0,n.memo)(function({status:e="idle",covered:r=!1,className:a,...i}){let s=(0,n.useRef)(null),[u,d]=(0,n.useState)(null),[c,f]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=s.current;if(!e)return;let t=new ResizeObserver(([e])=>{let t=Math.round(e.contentRect.width);t>0&&d(t)});return t.observe(e),()=>t.disconnect()},[]),(0,n.useEffect)(()=>{let e=requestAnimationFrame(()=>f(!0));return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)("div",{ref:s,className:(0,l.cn)("aspect-square transition-opacity duration-700 ease-out",c&&null!==u?"opacity-100":"opacity-0",a),children:null!==u&&!r&&(0,t.jsx)(o,{...i,status:e,size:u})})});e.s(["Face",0,u])},671228,67045,297825,e=>{"use strict";let t,n;var r=e.i(504565),a=e.i(798120),i=e.i(265402),l=e.i(616172),s=e.i(413168);r.default.object({place:r.default.string().max(120).regex(/^[^\n\r]*$/).nullable(),weather:r.default.object({code:r.default.number().int().min(0).max(99),temperature:r.default.number(),low:r.default.number(),high:r.default.number(),sunrise:r.default.string().regex(/^\d{2}:\d{2}$/),sunset:r.default.string().regex(/^\d{2}:\d{2}$/),gusts:r.default.number().min(0).nullish()}).nullable()});let o=[{id:"chatgpt",...i.TEXT_MODEL_PROVIDERS.chatgpt},{id:"openai",...i.TEXT_MODEL_PROVIDERS.openai}];r.default.object({id:r.default.string().min(1),text:r.default.string(),said:r.default.boolean(),pictures:r.default.array(r.default.string()).optional()});let u="note",d=e=>e.type===`data-${u}`?e.data:null,c={min:3,max:32},f=r.default.object({enabled:r.default.boolean(),phrase:r.default.string().trim().min(c.min).max(c.max)}),m={enabled:!1,phrase:"hey thursday"},h=r.default.object({enabled:r.default.boolean(),combo:r.default.string().trim().min(1).max(64)}),p={enabled:!1,combo:"alt+shift+KeyT"},g=["off","waiting","any"],y=r.default.enum(g),x="waiting",b=["center","sides"],O=r.default.enum(b);r.default.object({id:r.default.string().min(1),role:r.default.enum(["user","assistant","tool"]),tool:r.default.string().nullish(),text:r.default.string(),seq:r.default.number().int().min(0),fragments:r.default.array(s.LiveFragmentSchema).nullish()}),r.default.object({id:r.default.string().min(1),text:r.default.string(),seq:r.default.number().int().min(0)}),e.s(["CALL_BACK_DEFAULT",0,x,"CALL_BACK_LABEL",0,{off:"Never",waiting:"When a job needs me",any:"Whenever a job ends"},"CALL_BACK_MODES",0,g,"CAPTION_VIEWS",0,b,"CallBackSchema",0,y,"CaptionViewSchema",0,O,"HOTKEY_DEFAULT",0,p,"HotkeySchema",0,h,"TEXT_CALL_MOVED",0,"moved","TEXT_CALL_NOTE",0,u,"TEXT_CALL_REFUSED",0,"refused","WAKE_DEFAULT",0,m,"WAKE_PHRASE",0,c,"WakeSchema",0,f,"isEnglishPhrase",0,e=>/^[a-z0-9\s'.,!?-]+$/i.test(e.trim())&&/[a-z]/i.test(e),"noteOf",0,d,"notesIn",0,e=>e.flatMap(e=>e.parts.flatMap(e=>{let t=d(e);return t?[t]:[]})),"picturePart",0,e=>({type:"file",mediaType:(0,l.mimeOf)(e),url:a.queryKey.file(e),filename:e.split("/").pop()??e}),"textCallRunsOn",0,e=>o.find(t=>e(t.apiKeyName))?.id??null],671228);var v=e.i(681307),S=e.i(768834);let _=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>_(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>_(t)(e)}}};var E=e.i(149666);let N=v.z.object({wake:f.catch(m),hotkey:h.catch(p),callBack:y.catch(x),captionView:O.catch("sides"),textModel:i.textModelRefSchema.nullable().catch(null)}),k={wake:m,hotkey:p,callBack:x,captionView:"sides",textModel:null},L=(0,S.create)()((t=e=>({...k,carried:null,patch:t=>e(t),carriedDone:()=>e({carried:null})}),n={name:"thursday.settings",version:2,migrate:(e,t)=>t<1&&e&&"object"==typeof e?{...e,webSearch:!0}:e,partialize:e=>({wake:e.wake,hotkey:e.hotkey,callBack:e.callBack,captionView:e.captionView,textModel:e.textModel}),merge:(e,t)=>{let n=N.safeParse(e),r=n.success?n.data:k;return{...t,...r,carried:function(e){if(!e||"object"!=typeof e)return null;let t=[...Object.keys(E.LiveSettingsSchema.shape),"voicePrompt","systemPrompt","model"].filter(t=>t in e);return t.length?Object.fromEntries(t.map(t=>[t,e[t]])):null}(e)}}},(e,r,a)=>{let i,l={storage:function(e){let t;try{t=e()}catch(e){return}return{getItem:e=>{var n;let r=e=>null===e?null:JSON.parse(e,void 0),a=null!=(n=t.getItem(e))?n:null;return a instanceof Promise?a.then(r):r(a)},setItem:(e,n)=>t.setItem(e,JSON.stringify(n,void 0)),removeItem:e=>t.removeItem(e)}}(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...n},s=!1,o=0,u=new Set,d=new Set,c=l.storage;if(!c)return t((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),e(...t)});let f=()=>{let e=l.partialize({...r()});return c.setItem(l.name,{state:e,version:l.version})},m=a.setState;a.setState=(e,t)=>(m(e,t),f());let h=t((...t)=>(e(...t),f()));a.getInitialState=()=>h;let p=()=>{var t,n;if(!c)return;let a=++o;s=!1,u.forEach(e=>{var t;return e(null!=(t=r())?t:h)});let m=(null==(n=l.onRehydrateStorage)?void 0:n.call(l,null!=(t=r())?t:h))||void 0;return _(c.getItem.bind(c))(l.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===l.version)return[!1,e.state];else{if(l.migrate){let t=l.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(t=>{var n;if(a!==o)return;let[s,u]=t;if(e(i=l.merge(u,null!=(n=r())?n:h),!0),s)return f()}).then(()=>{a===o&&(null==m||m(r(),void 0),i=r(),s=!0,d.forEach(e=>e(i)))}).catch(e=>{a===o&&(null==m||m(void 0,e))})};return a.persist={setOptions:e=>{l={...l,...e},e.storage&&(c=e.storage)},clearStorage:()=>{++o,null==c||c.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>p(),hasHydrated:()=>s,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(d.add(e),()=>{d.delete(e)})},l.skipHydration||p(),i||h}));e.s(["useThursdayStore",0,L],67045);var A=e.i(271645),T=e.i(609856),M=e.i(283653),w=e.i(95187);let I=(0,w.createServerReference)("7fbe68f45e359e1052cdbb022b3747a8351074764c",w.callServer,void 0,w.findSourceMapURL,"seedLiveSettingsAction"),R=(0,w.createServerReference)("7fbb7393068170a4992ec2a4eea4f89fc2fd8895a4",w.callServer,void 0,w.findSourceMapURL,"setLiveSettingsAction");e.s(["useLiveSettings",0,function(){let{data:e}=(0,M.useServerRoute)(a.queryKey.thursdaySettings),[t]=(0,T.useServerAction)(R,{onOk:()=>(0,M.revalidate)(a.queryKey.thursdaySettings)}),n=(0,A.useCallback)(e=>void t(e),[t]);return function(){let e=L(e=>e.carried),t=L(e=>e.carriedDone),[n]=(0,T.useServerAction)(I,{onOk:e=>{e&&(0,M.revalidate)(a.queryKey.thursdaySettings)},errorMessage:!1});(0,A.useEffect)(()=>{e&&(t(),n(e))},[e,t,n])}(),{settings:e,patch:n}}],297825)},561540,e=>{"use strict";var t=e.i(213377);let n={[t.TOOL_NAMES.memory_recall]:"Checking your notes",[t.TOOL_NAMES.memory_create]:"Starting a note",[t.TOOL_NAMES.memory_remember]:"Noting that down",[t.TOOL_NAMES.memory_describe]:"Renaming a note",[t.TOOL_NAMES.memory_forget]:"Forgetting that",[t.TOOL_NAMES.bash]:"Doing it on this computer",[t.TOOL_NAMES.web_search]:"Searching the web",[t.TOOL_NAMES.load_skill]:"Reading how to do this",[t.TOOL_NAMES.look_at]:"Looking at the picture",[t.TOOL_NAMES.make_deck]:"Making the deck",[t.TOOL_NAMES.end_call]:"Ending the call",[t.TOOL_NAMES.routine]:"Checking your routines"};function r(e,t=28){let n=e.trim().replace(/\s+/g," ");if(n.length<=t)return n;let a=n.slice(0,t),i=a.lastIndexOf(" ");return`${(i>t/2?a.slice(0,i):a).trimEnd()}…`}let a=(e,t)=>"string"==typeof e[t]?e[t].trim():"";function i(e){if(!e)return null;try{let t=JSON.parse(e);if(t&&"object"==typeof t&&!Array.isArray(t))return t}catch{}return null}let l=new Set([t.TOOL_NAMES.thread_tell,t.TOOL_NAMES.thread_answer,t.TOOL_NAMES.thread_status,t.TOOL_NAMES.thread_show,t.TOOL_NAMES.thread_cancel,t.TOOL_NAMES.thread_seen]);function s(e){return Array.isArray(e)?e.flatMap(e=>e&&"object"==typeof e&&"string"==typeof e.url?[e]:[]):[]}e.s(["reasoningTitle",0,function(e){return/^\s*\*\*(.+?)\*\*/.exec(e)?.[1]?.trim()||null},"searchOf",0,function(e,n){if(e!==t.TOOL_NAMES.web_search)return null;try{let e=JSON.parse(n);return{query:"string"==typeof e.query?e.query:null,sources:s(e.sources)}}catch{return null}},"searchQueryOf",0,function(e){let t=i(e)?.query;return"string"==typeof t&&t.trim()?t.trim():null},"searchSourcesOf",0,function(e){return s(i(e)?.sources)},"startedLabel",0,function(e,n){if(e!==t.TOOL_NAMES.thread_start)return null;try{let e=JSON.parse(n);return"string"==typeof e.label?e.label:null}catch{return null}},"toolBot",0,function(e,n,r,a){let s=i(n);if(!s)return null;if(e===t.TOOL_NAMES.thread_start)return"string"==typeof s.bot&&s.bot.trim()?s.bot.trim():null;if(!l.has(e))return null;let o="string"==typeof s.thread?s.thread.trim():"";if(!o||"all"===o.toLowerCase())return null;let u=o.toLowerCase(),d=r?.find(e=>e.id===o)??r?.find(e=>e.label.toLowerCase()===u);return d?e===t.TOOL_NAMES.thread_answer?d.room.questions[0]?.bot??d.bot:d.bot:function(e){let t=i(e);if(!t)return null;if("string"==typeof t.bot&&t.bot.trim())return t.bot.trim();let n=t.answered;return"string"==typeof n?.bot?n.bot:null}(a)},"toolLine",0,function(e,l,s=null){let o;if(e===t.TOOL_NAMES.tool_search||e===t.TOOL_NAMES.tool_call)return"Reaching a connected service";let u=i(l);return(u&&function(e,n,i){if(e===t.TOOL_NAMES.memory_remember||e===t.TOOL_NAMES.memory_create){let i=a(n,"path"),l=function(e){if(!Array.isArray(e.facts))return null;let t=e.facts.map(e=>e&&"object"==typeof e&&"string"==typeof e.text?e.text.trim():"").filter(Boolean);return t.length?{text:t[0],more:t.length-1}:null}(n),s=e===t.TOOL_NAMES.memory_create?"Starting":"Noting";if(!i)return null;if(!l)return`${s} ${i}`;let o=l.more>0?` (+${l.more})`:"";return`${s} ${i}: ${r(l.text)}${o}`}if(e===t.TOOL_NAMES.memory_recall){let e=a(n,"path");return e?`Checking \xb7 ${e}`:null}if(e===t.TOOL_NAMES.memory_describe){let e=a(n,"path");return e?`Renaming \xb7 ${e}`:null}if(e===t.TOOL_NAMES.bash){let e=a(n,"description")||a(n,"command");return e?`On this computer \xb7 ${r(e,44)}`:null}if(e===t.TOOL_NAMES.load_skill){let e=a(n,"name");return e?`Reading the ${e} skill`:null}if(e===t.TOOL_NAMES.look_at){let e=a(n,"path");return e?`Looking at ${e.split("/").filter(Boolean).at(-1)??""}`:null}if(e===t.TOOL_NAMES.make_deck){let e=a(n,"title");return e?`Making the deck \xb7 ${r(e,44)}`:null}if(e===t.TOOL_NAMES.thread_start){let e=a(n,"bot");return e?`Handing this to ${e}`:"Handing this over"}if(e===t.TOOL_NAMES.web_search){let e=a(n,"query");return e?`Searching \xb7 ${e}`:null}if(e===t.TOOL_NAMES.routine){if("create"===n.action){let e=[a(n,"bot"),function(e){if("string"==typeof e.at&&e.at.length>=16){let[t,n]=e.at.split(" "),[r,a,i]=t.split("-").map(Number),l=new Date(r,a-1,i);if(l.toDateString()===new Date().toDateString())return`once at ${n}`;let s=l.toLocaleDateString("en-US",{month:"short",day:"numeric"});return`once, ${s} ${n}`}return"string"==typeof e.time&&e.time?`daily at ${e.time}`:"number"==typeof e.everyHours?`every ${e.everyHours} hours`:null}(n)].filter(Boolean).join(", ");return e?`Setting a routine \xb7 ${e}`:"Setting a routine"}return"change"===n.action?"Changing a routine":"delete"===n.action?"Deleting a routine":null}let l=a(n,"thread");return e===t.TOOL_NAMES.thread_tell?i?`Telling ${i}`:"Passing that on":e===t.TOOL_NAMES.thread_answer?i?`Answering ${i}`:"Answering that":e===t.TOOL_NAMES.thread_cancel?l?`Stopping ${l}`:"Stopping that":e===t.TOOL_NAMES.thread_seen?l?`Marking ${l} as read`:"Marking that as read":e===t.TOOL_NAMES.thread_show?l?`Opening ${l}`:"Opening that":e===t.TOOL_NAMES.thread_status?l&&"all"!==l.toLowerCase()?`Checking on ${l}`:"Checking on the work":null}(e,u,s))??n[e]??((o=e.indexOf("__"))<=0?null:`Reaching ${e.slice(0,o).replace(/[-_]/g," ")}`)}])},375775,e=>{"use strict";var t=e.i(456420);let n={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};n.node;let r=(0,t.default)(n);e.s(["ArrowUpRight",0,r],375775)},422411,525335,e=>{"use strict";var t=e.i(456420);let n={name:"audio-lines",size:24,node:[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]]};n.node;let r=(0,t.default)(n);e.s(["AudioLines",0,r],422411);let a={name:"captions",size:24,node:[["rect",{width:"18",height:"14",x:"3",y:"5",rx:"2",ry:"2",key:"12ruh7"}],["path",{d:"M7 15h4M15 15h2M7 11h2M13 11h4",key:"1ueiar"}]],aliases:["subtitles"]};a.node;let i=(0,t.default)(a);e.s(["Captions",0,i],525335)},689664,e=>{"use strict";var t=e.i(643957);e.s(["Check",()=>t.default])},508734,e=>{"use strict";var t=e.i(456420);let n={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};n.node;let r=(0,t.default)(n);e.s(["Copy",0,r],508734)},758925,e=>{"use strict";var t=e.i(456420);let n={name:"key-round",size:24,node:[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]};n.node;let r=(0,t.default)(n);e.s(["KeyRound",0,r],758925)},77071,e=>{"use strict";var t=e.i(456420);let n={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};n.node;let r=(0,t.default)(n);e.s(["Plus",0,r],77071)},466787,e=>{"use strict";var t=e.i(755566);e.s(["TriangleAlert",()=>t.default])}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,480869,e=>{"use strict";var t=e.i(843476),n=e.i(401851),a=e.i(493801),i=e.i(456420);let s={name:"calendar-days",size:24,node:[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 13h.01",key:"1sbv64"}],["path",{d:"M12 13h.01",key:"y0uutt"}],["path",{d:"M16 13h.01",key:"wip0gl"}],["path",{d:"M8 17h.01",key:"p3bg7i"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M16 17h.01",key:"ql8jdd"}]]};s.node;let r=(0,i.default)(s);var l=e.i(689664),o=e.i(716327),d=e.i(867927),u=e.i(632781),c=e.i(648119),m=e.i(21357),h=e.i(759659),x=e.i(263676),f=e.i(271645),p=e.i(798120),g=e.i(167881),b=e.i(630374),y=e.i(463415),j=e.i(23750),k=e.i(917162),v=e.i(421429),w=e.i(660302),N=e.i(319036),M=e.i(184762),S=e.i(41533),D=e.i(635963),T=e.i(978411),C=e.i(895836),$=e.i(989409),R=e.i(245629),O=e.i(609856),A=e.i(283653),z=e.i(647163),q=e.i(95187);let I=(0,q.createServerReference)("7fd0304c674bbabbac63354fcd8446f6eb758d0408",q.callServer,void 0,q.findSourceMapURL,"createRoutineAction"),E=(0,q.createServerReference)("7f0375729fbb966b499d38ee9eb2db65aa5959ac23",q.callServer,void 0,q.findSourceMapURL,"deleteRoutineAction"),P=(0,q.createServerReference)("7fa91a53770f9025c546516ecb8724f52522e1bd56",q.callServer,void 0,q.findSourceMapURL,"runRoutineNowAction"),B=(0,q.createServerReference)("7fb428b8e286601420a6d697b143fa9d30d022f56a",q.callServer,void 0,q.findSourceMapURL,"updateRoutineAction");var F=e.i(504565);let H=[1,2,3,4,5,6,7],U=F.default.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/,"A time is HH:MM, 00:00 to 23:59");function K(e){let[t,n]=e.split(" "),[a,i,s]=t.split("-").map(Number),[r,l]=n.split(":").map(Number);return new Date(a,i-1,s,r,l)}let W=/^\d{4}-\d\d-\d\d ([01]\d|2[0-3]):[0-5]\d$/,L=F.default.string().regex(W,'A moment is "YYYY-MM-DD HH:MM"').refine(e=>{if(!W.test(e))return!0;let t=K(e);return t.getMonth()===Number(e.slice(5,7))-1&&t.getDate()===Number(e.slice(8,10))},"There is no such day"),G=F.default.discriminatedUnion("kind",[F.default.object({kind:F.default.literal("once"),at:L}),F.default.object({kind:F.default.literal("daily"),time:U,days:F.default.array(F.default.number().int().min(1).max(7)).min(1,"Pick at least one day").transform(e=>[...new Set(e)].sort((e,t)=>e-t))}),F.default.object({kind:F.default.literal("every"),hours:F.default.number().int().min(S.ROUTINE.minHours,`No more often than every ${S.ROUTINE.minHours}h`).max(168)})]),J=F.default.object({bot:F.default.string().trim().min(1,"Pick a bot"),label:F.default.string().trim().min(1,"Give it a name").max(80),request:F.default.string().trim().min(1,"Say what it should do"),schedule:G}),Y=F.default.object({id:F.default.string(),status:F.default.enum(["running","waiting","done","cancelled"]),outcome:F.default.string().nullable(),updatedAt:R.DateLikeSchema});J.extend({id:F.default.string(),enabled:F.default.boolean(),nextRunAt:R.DateLikeSchema,runs:F.default.array(Y)});let _=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],V=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function X(e){if("once"===e.kind){let[t,n]=e.at.split(" "),[,a,i]=t.split("-").map(Number);return`Once \xb7 ${V[a-1]} ${i} ${n}`}if("every"===e.kind)return 1===e.hours?"Every hour":`Every ${e.hours} hours`;let{days:t,time:n}=e;if(7===t.length)return`Daily ${n}`;if(1===t.length)return`${_[t[0]-1]} ${n}`;let a=t.every((e,n)=>0===n||e===t[n-1]+1)?`${_[t[0]-1]}–${_[t.at(-1)-1]}`:t.map(e=>_[e-1]).join(" ");return`Daily ${n} \xb7 ${a}`}var Q=e.i(431594);function Z({routine:e,bots:n,open:a,onOpen:i,onSwitch:s}){let r=function(e,t){let n=e.runs[0],a=n?.outcome?(0,z.plainText)(n.outcome):"",i=n?`${(0,R.whenOf)(n.updatedAt)}${a?` — ${a}`:""}`:"Not run yet";if(!e.enabled)return{text:`Off \xb7 ${i}`,tone:"text-muted-foreground"};let s=t?.find(t=>t.name===e.bot);return t&&(!s||s.disabled)?{text:s?`${e.bot} is switched off`:`${e.bot} is gone — pick another bot`,tone:z.WAITING_INK,waits:!0}:n?.status==="running"?{text:"Running now",tone:"",shine:!0}:n?.status==="waiting"?{text:`The last run waits on you${a?`: ${a}`:""}`,tone:z.WAITING_INK,waits:!0}:{text:i,tone:"text-muted-foreground"}}(e,n),l=e.runs[0]?.status==="running";return(0,t.jsxs)("div",{className:(0,z.cn)("flex items-center gap-3 p-4 transition-colors",a?"bg-muted/80":"hover:bg-muted/50"),children:[(0,t.jsxs)("button",{type:"button",onClick:i,className:(0,z.cn)("flex min-w-0 flex-1 items-center gap-3 rounded-md text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",!e.enabled&&"opacity-70"),children:[(0,t.jsx)(D.BotMark,{size:40,seed:e.bot,...(0,D.markOf)(e.bot,n),state:l?"thinking":"idle",notify:!!r.waits,className:"shrink-0"}),(0,t.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:e.label}),l&&(0,t.jsx)(u.Loader2,{className:"size-3 shrink-0 animate-spin text-muted-foreground"})]}),(0,t.jsx)("span",{className:"flex min-w-0 text-[13px] leading-snug",children:r.shine?(0,t.jsx)(w.ShinyText,{text:r.text,speed:2.2,className:"min-w-0 truncate"}):(0,t.jsx)("span",{className:(0,z.cn)("min-w-0 truncate",r.tone),children:r.text})})]}),(0,t.jsxs)("span",{className:"flex w-44 shrink-0 flex-col items-end gap-0.5 font-mono text-[11px] leading-4 text-muted-foreground tabular-nums",children:[(0,t.jsxs)("span",{className:"flex max-w-full items-center gap-1.5 text-foreground",children:[(0,t.jsx)(Q.RoutineMark,{className:"size-3 shrink-0 text-muted-foreground"}),(0,t.jsx)("span",{className:"truncate",children:X(e.schedule)})]}),(0,t.jsx)("span",{className:"max-w-full truncate text-muted-foreground/70",children:e.enabled?`next ${(0,R.whenOf)(e.nextRunAt)}`:"off"})]})]}),(0,t.jsx)(N.Switch,{checked:e.enabled,onCheckedChange:s,"aria-label":`${e.label} on or off`,className:"shrink-0"}),(0,t.jsx)("button",{type:"button",onClick:i,"aria-label":`Open ${e.label}`,className:"shrink-0 rounded-md text-muted-foreground outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(d.ChevronRight,{className:"size-4"})})]})}let ee=e=>String(e).padStart(2,"0");function et(e,t=new Date){let a=new Date(t);return a.setDate(a.getDate()+e),(0,n.format)(a,"yyyy-MM-dd")}let en=(e,t)=>{let n=e?.schedule;return{label:e?.label??"",bot:e?.bot??t.find(e=>!e.disabled)?.name??"",request:e?.request??"",kind:n?.kind??"daily",time:n?.kind==="daily"?n.time:n?.kind==="once"?n.at.slice(11):"09:00",days:n?.kind==="daily"?n.days:[...H],hours:n?.kind==="every"?n.hours:6,date:n?.kind==="once"?n.at.slice(0,10):et(1)}};function ea(e){let t=/^\d\d:\d\d$/.test(e.time);return"once"===e.kind?t&&e.date?{kind:"once",at:`${e.date} ${e.time}`}:null:"daily"===e.kind?e.days.length&&t?{kind:"daily",time:e.time,days:e.days}:null:{kind:"every",hours:e.hours}}let ei=e=>e?.kind==="once"&&K(e.at)<=new Date,es=[{label:"Every day",days:[...H]},{label:"Weekdays",days:[1,2,3,4,5]},{label:"Weekends",days:[6,7]}],er=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],el=[1,2,3,6,12,24].filter(e=>e>=S.ROUTINE.minHours);function eo({routine:e,bots:n,onClose:a,onMade:i}){var s,r;let l,[u,w]=(0,f.useState)(null),S=(0,f.useCallback)(e=>{w(e?.closest("[data-slot=dialog-content]")??null)},[]),C="new"===e?null:e,q="new"===e?"new":e?.id??"",[F,U]=(0,f.useState)(()=>en(C,n));(0,f.useEffect)(()=>U(en(C,n)),[q]);let K=e=>U(t=>({...t,...e})),W=()=>(0,A.revalidate)(p.queryKey.routines),[L,G]=(0,O.useServerAction)(I,{onOk:e=>{W(),i(e.id)}}),[J]=(0,O.useServerAction)(B,{onOk:W}),[Y]=(0,O.useServerAction)(E,{onOk:W}),[V,Z]=(0,O.useServerAction)(P,{onOk:()=>{W(),(0,A.revalidate)(p.queryKey.threads)}}),em=ea(F),eg=em&&!ei(em)&&F.label.trim()&&F.bot&&F.request.trim()?{label:F.label.trim(),bot:F.bot,request:F.request.trim(),schedule:em}:null,eb=e=>{C&&J(C.id,e)},ey=e=>{K(e);let t=ea({...F,...e});!t||ei(t)||C&&function(e,t){if("once"===e.kind)return"once"===t.kind&&e.at===t.at;if("every"===e.kind)return"every"===t.kind&&e.hours===t.hours;let n=e=>[...e].sort((e,t)=>e-t).join();return"daily"===t.kind&&e.time===t.time&&n(e.days)===n(t.days)}(t,C.schedule)||eb({schedule:t,..."once"===t.kind?{enabled:!0}:{}})},ej=!!(C&&(F.label.trim()&&F.label.trim()!==C.label||F.request.trim()&&F.request.trim()!==C.request)),ek=C?ej:!!(F.label.trim()||F.request.trim()),ev=(0,f.useRef)(ek);ev.current=ek;let ew=(0,$.useSettingsStore)(e=>e.holdUnsaved);(0,f.useEffect)(()=>(ew(()=>ev.current),()=>ew(null)),[ew]);let eN=async()=>{(!ev.current||await k.notify.discard())&&a()},eM=async()=>{!C||await k.notify.confirm({title:`Delete "${C.label}"?`,description:"It starts no more. The jobs it already opened stay.",okText:"Delete",destructive:!0})&&(await Y(C.id).catch(()=>{}),a())},eS=n.find(e=>e.name===F.bot),eD=C?.runs[0]?.status==="running"||C?.runs[0]?.status==="waiting";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{ref:S,hidden:!0}),(0,t.jsx)(b.Dialog,{open:!!(e&&u),onOpenChange:e=>!e&&void eN(),modal:!1,disablePointerDismissal:!0,children:(0,t.jsx)(b.DialogPortal,{container:u,children:(0,t.jsx)(b.DialogPopup,{className:"absolute inset-y-0 right-0 z-10 flex w-[min(35rem,calc(100%-13rem))] flex-col border-l border-border/60 bg-popover text-popover-foreground shadow-2xl shadow-black/10 duration-150 data-open:animate-in data-open:fade-in-0 data-open:slide-in-from-right-4 data-closed:animate-out data-closed:fade-out-0 data-closed:slide-out-to-right-4",children:e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-2.5 pt-3.5 pr-3 pb-1.5 pl-5",children:[eS?(0,t.jsx)(D.BotMark,{size:28,seed:eS.name,...(0,D.markOf)(eS.name,n),notify:!1,className:"shrink-0"}):(0,t.jsx)("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground",children:(0,t.jsx)(Q.RoutineMark,{className:"size-3.5"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)(b.DialogTitle,{className:"sr-only",children:C?C.label:"New routine"}),(0,t.jsx)("p",{className:"truncate text-[15px] leading-5 font-semibold",children:C?C.label:"New routine"}),C&&(0,t.jsxs)("p",{className:"mt-0.5 flex min-w-0 items-center gap-1.5 font-mono text-[11px] text-muted-foreground",children:[(0,t.jsx)(Q.RoutineMark,{className:"size-3 shrink-0"}),(0,t.jsxs)("span",{className:"truncate",children:[C.bot," · ",X(C.schedule),C.enabled&&` \xb7 next ${(0,R.whenOf)(C.nextRunAt)}`]})]})]}),C&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(N.Switch,{checked:C.enabled,onCheckedChange:e=>void J(C.id,{enabled:e}),"aria-label":`${C.label} on or off`,className:"mr-1 shrink-0"}),(0,t.jsxs)(y.DropdownMenu,{children:[(0,t.jsx)(y.DropdownMenuTrigger,{render:(0,t.jsx)(g.Button,{size:"icon-sm",variant:"ghost","aria-label":"More",className:"text-muted-foreground"}),children:(0,t.jsx)(c.MoreHorizontal,{})}),(0,t.jsx)(y.DropdownMenuContent,{align:"end",children:(0,t.jsxs)(y.DropdownMenuItem,{variant:"destructive",onClick:eM,children:[(0,t.jsx)(h.Trash2,{}),"Delete"]})})]})]}),(0,t.jsx)(b.DialogClose,{render:(0,t.jsx)(g.Button,{size:"icon-sm",variant:"ghost","aria-label":"Close the routine"}),children:(0,t.jsx)(x.X,{})})]}),(0,t.jsxs)("div",{className:"min-h-0 flex-1 space-y-4 overflow-y-auto px-5 pt-3 pb-5",children:[(0,t.jsxs)(ep,{label:"Name",htmlFor:"routine-name",children:[(0,t.jsx)(j.Input,{id:"routine-name",value:F.label,onChange:e=>K({label:e.target.value}),placeholder:"e.g. Morning mail",maxLength:80,autoFocus:!C}),(0,t.jsx)(ed,{children:"What it is called in this list, and what she calls it on a call."})]}),(0,t.jsxs)(ep,{label:"Bot",children:[(0,t.jsxs)(y.DropdownMenu,{children:[(0,t.jsxs)(y.DropdownMenuTrigger,{render:(0,t.jsx)(g.Button,{variant:"outline",className:"justify-start gap-2 pl-1.5 font-normal"}),children:[eS?(0,t.jsx)(D.BotMark,{size:20,seed:eS.name,...(0,D.markOf)(eS.name,n),notify:!1,className:"shrink-0"}):null,(0,t.jsx)("span",{className:(0,z.cn)(!eS&&"pl-1.5 text-muted-foreground"),children:eS?.name??(F.bot||"Pick a bot")}),(0,t.jsx)(o.ChevronDown,{className:"ml-1 size-3.5 text-muted-foreground"})]}),(0,t.jsx)(y.DropdownMenuContent,{align:"start",children:(0,t.jsx)(y.DropdownMenuGroup,{children:n.filter(e=>!e.disabled).map(e=>(0,t.jsxs)(y.DropdownMenuItem,{onClick:()=>{K({bot:e.name}),e.name!==C?.bot&&eb({bot:e.name})},children:[(0,t.jsx)(D.BotMark,{size:16,seed:e.name,...(0,D.markOf)(e.name,n),notify:!1,className:"shrink-0"}),e.name]},e.name))})})]}),(0,t.jsx)(ed,{children:"Who does the job each time it starts."})]}),(0,t.jsx)(ep,{label:"When",children:(0,t.jsxs)("div",{className:"space-y-3.5",children:[(0,t.jsx)(v.Segmented,{"aria-label":"How it starts",value:F.kind,onChange:e=>ey({kind:e}),options:[{value:"once",label:"Once"},{value:"daily",label:"On set days"},{value:"every",label:"Every few hours"}]}),(0,t.jsx)("div",{className:"space-y-2.5",children:"once"===F.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ec,{word:"On",children:(0,t.jsx)(eh,{value:F.date,onPick:e=>ey({date:e})})}),(0,t.jsxs)(ec,{word:"At",children:[(0,t.jsx)(ex,{value:F.time,onChange:e=>K({time:e}),onDone:()=>ey({})}),(0,t.jsx)("span",{className:"text-[13px] text-muted-foreground",children:"or"}),(0,t.jsx)(eu,{picked:!1,onClick:()=>{let e;return ey(((e=new Date(Date.now()+36e5)).setMinutes(5*Math.ceil(e.getMinutes()/5),0,0),{date:et(0,e),time:`${ee(e.getHours())}:${ee(e.getMinutes())}`}))},children:"In an hour"})]})]}):"daily"===F.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ec,{word:"On",children:H.map(e=>{let n=F.days.includes(e);return(0,t.jsx)(eu,{picked:n,several:!0,"aria-label":er[e-1],onClick:()=>ey({days:n?F.days.filter(t=>t!==e):[...F.days,e].sort((e,t)=>e-t)}),children:_[e-1]},e)})}),(0,t.jsx)(ec,{children:es.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>ey({days:[...e.days]}),className:"h-6.5 rounded-full bg-muted px-2.5 text-xs text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:e.label},e.label))}),(0,t.jsx)(ec,{word:"At",children:(0,t.jsx)(ex,{value:F.time,onChange:e=>K({time:e}),onDone:()=>ey({})})})]}):(0,t.jsxs)(ec,{word:"Every",children:[(el.includes(F.hours)?el:[...el,F.hours].sort((e,t)=>e-t)).map(e=>(0,t.jsx)(eu,{picked:e===F.hours,onClick:()=>ey({hours:e}),className:"min-w-10 px-3",children:e},e)),(0,t.jsx)("span",{className:"text-[13px] text-muted-foreground",children:"hours"})]})}),(0,t.jsx)(ef,{schedule:em,kind:F.kind})]})}),(0,t.jsxs)(ep,{label:"Job",htmlFor:"routine-request",children:[(0,t.jsx)(M.Textarea,{id:"routine-request",value:F.request,onChange:e=>K({request:e.target.value}),placeholder:"e.g. Go through the mail that came since the last run and draft replies to what needs one. Send nothing.",className:"min-h-28"}),(0,t.jsx)(ed,{children:"Handed to the bot as a new thread each time, with a line on how the last run ended. Nobody is there to ask, so say everything it needs."})]}),C&&(0,t.jsxs)("div",{className:"pt-1",children:[(0,t.jsx)("div",{className:"flex h-6 items-center",children:(0,t.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:"Runs"})}),0===C.runs.length?(0,t.jsx)("p",{className:"py-2 text-[13px] text-muted-foreground",children:"Not run yet."}):C.runs.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>{var t;return t=e.id,void($.useSettingsStore.getState().hide(),T.roomOpens.open(t))},className:"flex h-9 w-full items-center gap-3 border-t border-border/60 text-left text-[13px] outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,t.jsx)("span",{className:"w-28 shrink-0 font-mono text-[11px] text-muted-foreground tabular-nums",children:(0,R.whenOf)(e.updatedAt)}),(0,t.jsx)("span",{className:(0,z.cn)("min-w-0 flex-1 truncate","waiting"===e.status?z.WAITING_INK:"text-muted-foreground"),children:"running"===e.status?"Running now":e.outcome?(0,z.plainText)(e.outcome):"cancelled"===e.status?"Stopped":"No words"}),(0,t.jsx)(d.ChevronRight,{className:"size-3 shrink-0 text-muted-foreground"})]},e.id))]})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3 border-t border-border/60 px-5 py-3",children:[(0,t.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-4 text-muted-foreground",children:C||eg?"Starts while Thursday is running on this computer, whether or not a tab is open. A time that passed meanwhile starts once, not once for each.":`Still needs ${s=F,r=em,(l=[s.label.trim()?null:"a name",s.bot?null:"a bot",!r?"a time":ei(r)?"a time still ahead":null,s.request.trim()?null:"a job"].filter(e=>null!==e)).length>1?`${l.slice(0,-1).join(", ")} and ${l.at(-1)}`:l[0]??"nothing"}.`}),ej&&(0,t.jsx)(g.Button,{size:"sm",onClick:()=>{if(!C)return;let e={};F.label.trim()&&F.label.trim()!==C.label&&(e.label=F.label.trim()),F.request.trim()&&F.request.trim()!==C.request&&(e.request=F.request.trim()),Object.keys(e).length&&eb(e)},children:"Save"}),C?(0,t.jsxs)(g.Button,{variant:"outline",size:"sm",loading:Z,disabled:eD,title:eD?"Its last run is still open":void 0,onClick:()=>void V(C.id),children:[(0,t.jsx)(m.Play,{}),"Run now"]}):(0,t.jsx)(g.Button,{size:"sm",loading:G,disabled:!eg,onClick:()=>eg&&void L(eg),children:"Create"})]})]})})})})]})}let ed=({children:e})=>(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e});function eu({picked:e,several:n=!1,className:a,children:i,...s}){return(0,t.jsxs)("button",{type:"button","aria-pressed":e,className:(0,z.cn)("inline-flex h-8 items-center justify-center gap-1.5 rounded-full px-3.5 text-[13px] whitespace-nowrap outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",!e&&"text-foreground ring-1 ring-border ring-inset hover:bg-muted",e&&(n?"bg-brand/10 pl-2.5 font-medium text-brand ring-1 ring-brand/30 ring-inset":"bg-brand font-medium text-brand-foreground"),a),...s,children:[e&&n&&(0,t.jsx)(l.Check,{className:"size-3.5"}),i]})}function ec({word:e,children:n}){return(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)("span",{className:"flex h-8 w-9 shrink-0 items-center text-[13px] text-muted-foreground",children:e}),(0,t.jsx)("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1.5",children:n})]})}function em(e){let t=K(`${e} 00:00`),a=(t.getTime()-K(`${et(0)} 00:00`).getTime())/864e5;return(0,n.format)(t,a<7?"EEE d":"EEE, MMM d")}function eh({value:e,onPick:n}){let a=(0,f.useRef)(null),i=[0,1,2,3].map(e=>et(e)),s=()=>a.current?.showPicker();return(0,t.jsxs)(t.Fragment,{children:[i.map((a,i)=>(0,t.jsx)(eu,{picked:a===e,onClick:()=>n(a),children:0===i?"Today":1===i?"Tomorrow":em(a)},a)),!i.includes(e)&&(0,t.jsx)(eu,{picked:!0,onClick:s,children:em(e)}),(0,t.jsxs)("span",{className:"relative",children:[(0,t.jsx)(eu,{picked:!1,"aria-label":"Another day",onClick:s,className:"w-8 px-0",children:(0,t.jsx)(r,{className:"size-3.5"})}),(0,t.jsx)("input",{ref:a,type:"date",tabIndex:-1,"aria-hidden":!0,min:i[0],value:e,onChange:e=>e.target.value&&n(e.target.value),className:"pointer-events-none absolute inset-0 opacity-0"})]})]})}function ex({value:e,onChange:n,onDone:a}){return(0,t.jsx)(j.Input,{type:"time","aria-label":"Time of day",value:e,onChange:e=>n(e.target.value),onBlur:a,onClick:e=>e.currentTarget.showPicker?.(),className:"h-8.5 w-28 px-3 text-[15px] tabular-nums md:text-[15px] [&::-webkit-calendar-picker-indicator]:hidden"})}function ef({schedule:e,kind:n}){if(!e||ei(e))return(0,t.jsx)("p",{className:"text-xs text-destructive",children:e?"That time has passed. Pick a later one.":"daily"===n?"Pick a time and at least one day.":"Pick a time."});let i=function(e,t){if("once"===e.kind)return K(e.at);if("every"===e.kind)return new Date(t.getTime()+36e5*e.hours);let[n,a]=e.time.split(":").map(Number);for(let i=0;i<=7;i++){let s=new Date(t);s.setDate(s.getDate()+i),s.setHours(n,a,0,0);let r=0===s.getDay()?7:s.getDay();if(s>t&&e.days.includes(r))return s}return new Date(t.getTime()+864e5)}(e,new Date);return(0,t.jsxs)("p",{className:"flex items-start gap-2 text-[13px] leading-5",children:[(0,t.jsx)(Q.RoutineMark,{className:"mt-0.75 size-3.5 shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{className:"min-w-0",children:[X(e),(0,t.jsxs)("span",{className:"text-muted-foreground",children:[" · ","once"===e.kind?`${(0,a.formatDistanceToNowStrict)(i,{addSuffix:!0})}, then it switches itself off`:`first start ${(0,R.whenOf)(i)}`]})]})]})}function ep({label:e,htmlFor:n,children:a}){return(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)("label",{htmlFor:n,className:"w-14 shrink-0 pt-2 font-mono text-xs text-muted-foreground",children:e}),(0,t.jsx)("div",{className:"min-w-0 flex-1 space-y-1.5",children:a})]})}e.s(["RoutineSetting",0,function(){let[e,n]=(0,f.useState)(null),{data:a,isLoading:i,error:s}=(0,A.useServerRoute)(p.queryKey.routines),{data:r}=(0,A.useServerRoute)(p.queryKey.bot),[l]=(0,O.useServerAction)(B,{onOk:()=>(0,A.revalidate)(p.queryKey.routines)});if(i)return(0,t.jsx)(C.SettingSkeleton,{rows:3});if(s)return(0,t.jsx)(C.SettingError,{message:s.message});let o=a??[],d=o.filter(e=>e.enabled).length,u=o.find(t=>t.id===e);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(C.SettingScreen,{footer:(0,t.jsxs)(C.SettingRailNote,{children:[o.length," set up · ",d," on",o.length>=S.ROUTINE.max&&` \xb7 ${S.ROUTINE.max} is the most`]}),children:(0,t.jsx)(C.SettingItems,{addRow:o.length<S.ROUTINE.max?{label:"New routine",onClick:()=>n("new")}:void 0,children:0===o.length?(0,t.jsx)("p",{className:"p-4 text-sm leading-relaxed text-muted-foreground",children:'Nothing starts by itself yet. Tell Thursday what should — "every weekday at nine, go through my mail" — or make one here.'}):o.map(a=>(0,t.jsx)(Z,{routine:a,bots:r,open:a.id===e,onOpen:()=>n(a.id),onSwitch:e=>l(a.id,{enabled:e})},a.id))})}),(0,t.jsx)(eo,{routine:"new"===e?"new":u??null,bots:r??[],onClose:()=>n(null),onMade:e=>n(e)})]})}],480869)},648119,e=>{"use strict";var t=e.i(560972);e.s(["MoreHorizontal",()=>t.default])},21357,e=>{"use strict";var t=e.i(456420);let n={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]};n.node;let a=(0,t.default)(n);e.s(["Play",0,a],21357)},759659,e=>{"use strict";var t=e.i(456420);let n={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};n.node;let a=(0,t.default)(n);e.s(["Trash2",0,a],759659)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,480869,e=>{"use strict";var t=e.i(843476),n=e.i(401851),a=e.i(493801),i=e.i(456420);let s={name:"calendar-days",size:24,node:[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 13h.01",key:"1sbv64"}],["path",{d:"M12 13h.01",key:"y0uutt"}],["path",{d:"M16 13h.01",key:"wip0gl"}],["path",{d:"M8 17h.01",key:"p3bg7i"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M16 17h.01",key:"ql8jdd"}]]};s.node;let r=(0,i.default)(s);var l=e.i(689664),o=e.i(716327),d=e.i(867927),u=e.i(632781),c=e.i(648119),m=e.i(21357),h=e.i(759659),x=e.i(263676),f=e.i(271645),p=e.i(798120),g=e.i(167881),b=e.i(630374),y=e.i(463415),j=e.i(23750),k=e.i(917162),v=e.i(421429),w=e.i(660302),N=e.i(319036),M=e.i(184762),S=e.i(41533),D=e.i(635963),T=e.i(978411),C=e.i(895836),$=e.i(989409),R=e.i(245629),O=e.i(609856),A=e.i(283653),z=e.i(647163),q=e.i(95187);let I=(0,q.createServerReference)("7f13f97022e2e4f41d0edde565631b58dc7a09d956",q.callServer,void 0,q.findSourceMapURL,"createRoutineAction"),E=(0,q.createServerReference)("7fad3f5b774013446a99524fe82303ed10692a942a",q.callServer,void 0,q.findSourceMapURL,"deleteRoutineAction"),P=(0,q.createServerReference)("7fa3c13892651d1466860cef825252404a5d23ee60",q.callServer,void 0,q.findSourceMapURL,"runRoutineNowAction"),B=(0,q.createServerReference)("7fa811ad9a59918dc05c6e13fa8be4909b175bbfb0",q.callServer,void 0,q.findSourceMapURL,"updateRoutineAction");var F=e.i(504565);let H=[1,2,3,4,5,6,7],U=F.default.string().regex(/^([01]\d|2[0-3]):[0-5]\d$/,"A time is HH:MM, 00:00 to 23:59");function K(e){let[t,n]=e.split(" "),[a,i,s]=t.split("-").map(Number),[r,l]=n.split(":").map(Number);return new Date(a,i-1,s,r,l)}let W=/^\d{4}-\d\d-\d\d ([01]\d|2[0-3]):[0-5]\d$/,L=F.default.string().regex(W,'A moment is "YYYY-MM-DD HH:MM"').refine(e=>{if(!W.test(e))return!0;let t=K(e);return t.getMonth()===Number(e.slice(5,7))-1&&t.getDate()===Number(e.slice(8,10))},"There is no such day"),G=F.default.discriminatedUnion("kind",[F.default.object({kind:F.default.literal("once"),at:L}),F.default.object({kind:F.default.literal("daily"),time:U,days:F.default.array(F.default.number().int().min(1).max(7)).min(1,"Pick at least one day").transform(e=>[...new Set(e)].sort((e,t)=>e-t))}),F.default.object({kind:F.default.literal("every"),hours:F.default.number().int().min(S.ROUTINE.minHours,`No more often than every ${S.ROUTINE.minHours}h`).max(168)})]),J=F.default.object({bot:F.default.string().trim().min(1,"Pick a bot"),label:F.default.string().trim().min(1,"Give it a name").max(80),request:F.default.string().trim().min(1,"Say what it should do"),schedule:G}),Y=F.default.object({id:F.default.string(),status:F.default.enum(["running","waiting","done","cancelled"]),outcome:F.default.string().nullable(),updatedAt:R.DateLikeSchema});J.extend({id:F.default.string(),enabled:F.default.boolean(),nextRunAt:R.DateLikeSchema,runs:F.default.array(Y)});let _=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],V=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function X(e){if("once"===e.kind){let[t,n]=e.at.split(" "),[,a,i]=t.split("-").map(Number);return`Once \xb7 ${V[a-1]} ${i} ${n}`}if("every"===e.kind)return 1===e.hours?"Every hour":`Every ${e.hours} hours`;let{days:t,time:n}=e;if(7===t.length)return`Daily ${n}`;if(1===t.length)return`${_[t[0]-1]} ${n}`;let a=t.every((e,n)=>0===n||e===t[n-1]+1)?`${_[t[0]-1]}–${_[t.at(-1)-1]}`:t.map(e=>_[e-1]).join(" ");return`Daily ${n} \xb7 ${a}`}var Q=e.i(431594);function Z({routine:e,bots:n,open:a,onOpen:i,onSwitch:s}){let r=function(e,t){let n=e.runs[0],a=n?.outcome?(0,z.plainText)(n.outcome):"",i=n?`${(0,R.whenOf)(n.updatedAt)}${a?` — ${a}`:""}`:"Not run yet";if(!e.enabled)return{text:`Off \xb7 ${i}`,tone:"text-muted-foreground"};let s=t?.find(t=>t.name===e.bot);return t&&(!s||s.disabled)?{text:s?`${e.bot} is switched off`:`${e.bot} is gone — pick another bot`,tone:z.WAITING_INK,waits:!0}:n?.status==="running"?{text:"Running now",tone:"",shine:!0}:n?.status==="waiting"?{text:`The last run waits on you${a?`: ${a}`:""}`,tone:z.WAITING_INK,waits:!0}:{text:i,tone:"text-muted-foreground"}}(e,n),l=e.runs[0]?.status==="running";return(0,t.jsxs)("div",{className:(0,z.cn)("flex items-center gap-3 p-4 transition-colors",a?"bg-muted/80":"hover:bg-muted/50"),children:[(0,t.jsxs)("button",{type:"button",onClick:i,className:(0,z.cn)("flex min-w-0 flex-1 items-center gap-3 rounded-md text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",!e.enabled&&"opacity-70"),children:[(0,t.jsx)(D.BotMark,{size:40,seed:e.bot,...(0,D.markOf)(e.bot,n),state:l?"thinking":"idle",notify:!!r.waits,className:"shrink-0"}),(0,t.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:e.label}),l&&(0,t.jsx)(u.Loader2,{className:"size-3 shrink-0 animate-spin text-muted-foreground"})]}),(0,t.jsx)("span",{className:"flex min-w-0 text-[13px] leading-snug",children:r.shine?(0,t.jsx)(w.ShinyText,{text:r.text,speed:2.2,className:"min-w-0 truncate"}):(0,t.jsx)("span",{className:(0,z.cn)("min-w-0 truncate",r.tone),children:r.text})})]}),(0,t.jsxs)("span",{className:"flex w-44 shrink-0 flex-col items-end gap-0.5 font-mono text-[11px] leading-4 text-muted-foreground tabular-nums",children:[(0,t.jsxs)("span",{className:"flex max-w-full items-center gap-1.5 text-foreground",children:[(0,t.jsx)(Q.RoutineMark,{className:"size-3 shrink-0 text-muted-foreground"}),(0,t.jsx)("span",{className:"truncate",children:X(e.schedule)})]}),(0,t.jsx)("span",{className:"max-w-full truncate text-muted-foreground/70",children:e.enabled?`next ${(0,R.whenOf)(e.nextRunAt)}`:"off"})]})]}),(0,t.jsx)(N.Switch,{checked:e.enabled,onCheckedChange:s,"aria-label":`${e.label} on or off`,className:"shrink-0"}),(0,t.jsx)("button",{type:"button",onClick:i,"aria-label":`Open ${e.label}`,className:"shrink-0 rounded-md text-muted-foreground outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(d.ChevronRight,{className:"size-4"})})]})}let ee=e=>String(e).padStart(2,"0");function et(e,t=new Date){let a=new Date(t);return a.setDate(a.getDate()+e),(0,n.format)(a,"yyyy-MM-dd")}let en=(e,t)=>{let n=e?.schedule;return{label:e?.label??"",bot:e?.bot??t.find(e=>!e.disabled)?.name??"",request:e?.request??"",kind:n?.kind??"daily",time:n?.kind==="daily"?n.time:n?.kind==="once"?n.at.slice(11):"09:00",days:n?.kind==="daily"?n.days:[...H],hours:n?.kind==="every"?n.hours:6,date:n?.kind==="once"?n.at.slice(0,10):et(1)}};function ea(e){let t=/^\d\d:\d\d$/.test(e.time);return"once"===e.kind?t&&e.date?{kind:"once",at:`${e.date} ${e.time}`}:null:"daily"===e.kind?e.days.length&&t?{kind:"daily",time:e.time,days:e.days}:null:{kind:"every",hours:e.hours}}let ei=e=>e?.kind==="once"&&K(e.at)<=new Date,es=[{label:"Every day",days:[...H]},{label:"Weekdays",days:[1,2,3,4,5]},{label:"Weekends",days:[6,7]}],er=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],el=[1,2,3,6,12,24].filter(e=>e>=S.ROUTINE.minHours);function eo({routine:e,bots:n,onClose:a,onMade:i}){var s,r;let l,[u,w]=(0,f.useState)(null),S=(0,f.useCallback)(e=>{w(e?.closest("[data-slot=dialog-content]")??null)},[]),C="new"===e?null:e,q="new"===e?"new":e?.id??"",[F,U]=(0,f.useState)(()=>en(C,n));(0,f.useEffect)(()=>U(en(C,n)),[q]);let K=e=>U(t=>({...t,...e})),W=()=>(0,A.revalidate)(p.queryKey.routines),[L,G]=(0,O.useServerAction)(I,{onOk:e=>{W(),i(e.id)}}),[J]=(0,O.useServerAction)(B,{onOk:W}),[Y]=(0,O.useServerAction)(E,{onOk:W}),[V,Z]=(0,O.useServerAction)(P,{onOk:()=>{W(),(0,A.revalidate)(p.queryKey.threads)}}),em=ea(F),eg=em&&!ei(em)&&F.label.trim()&&F.bot&&F.request.trim()?{label:F.label.trim(),bot:F.bot,request:F.request.trim(),schedule:em}:null,eb=e=>{C&&J(C.id,e)},ey=e=>{K(e);let t=ea({...F,...e});!t||ei(t)||C&&function(e,t){if("once"===e.kind)return"once"===t.kind&&e.at===t.at;if("every"===e.kind)return"every"===t.kind&&e.hours===t.hours;let n=e=>[...e].sort((e,t)=>e-t).join();return"daily"===t.kind&&e.time===t.time&&n(e.days)===n(t.days)}(t,C.schedule)||eb({schedule:t,..."once"===t.kind?{enabled:!0}:{}})},ej=!!(C&&(F.label.trim()&&F.label.trim()!==C.label||F.request.trim()&&F.request.trim()!==C.request)),ek=C?ej:!!(F.label.trim()||F.request.trim()),ev=(0,f.useRef)(ek);ev.current=ek;let ew=(0,$.useSettingsStore)(e=>e.holdUnsaved);(0,f.useEffect)(()=>(ew(()=>ev.current),()=>ew(null)),[ew]);let eN=async()=>{(!ev.current||await k.notify.discard())&&a()},eM=async()=>{!C||await k.notify.confirm({title:`Delete "${C.label}"?`,description:"It starts no more. The jobs it already opened stay.",okText:"Delete",destructive:!0})&&(await Y(C.id).catch(()=>{}),a())},eS=n.find(e=>e.name===F.bot),eD=C?.runs[0]?.status==="running"||C?.runs[0]?.status==="waiting";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{ref:S,hidden:!0}),(0,t.jsx)(b.Dialog,{open:!!(e&&u),onOpenChange:e=>!e&&void eN(),modal:!1,disablePointerDismissal:!0,children:(0,t.jsx)(b.DialogPortal,{container:u,children:(0,t.jsx)(b.DialogPopup,{className:"absolute inset-y-0 right-0 z-10 flex w-[min(35rem,calc(100%-13rem))] flex-col border-l border-border/60 bg-popover text-popover-foreground shadow-2xl shadow-black/10 duration-150 data-open:animate-in data-open:fade-in-0 data-open:slide-in-from-right-4 data-closed:animate-out data-closed:fade-out-0 data-closed:slide-out-to-right-4",children:e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-2.5 pt-3.5 pr-3 pb-1.5 pl-5",children:[eS?(0,t.jsx)(D.BotMark,{size:28,seed:eS.name,...(0,D.markOf)(eS.name,n),notify:!1,className:"shrink-0"}):(0,t.jsx)("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground",children:(0,t.jsx)(Q.RoutineMark,{className:"size-3.5"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)(b.DialogTitle,{className:"sr-only",children:C?C.label:"New routine"}),(0,t.jsx)("p",{className:"truncate text-[15px] leading-5 font-semibold",children:C?C.label:"New routine"}),C&&(0,t.jsxs)("p",{className:"mt-0.5 flex min-w-0 items-center gap-1.5 font-mono text-[11px] text-muted-foreground",children:[(0,t.jsx)(Q.RoutineMark,{className:"size-3 shrink-0"}),(0,t.jsxs)("span",{className:"truncate",children:[C.bot," · ",X(C.schedule),C.enabled&&` \xb7 next ${(0,R.whenOf)(C.nextRunAt)}`]})]})]}),C&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(N.Switch,{checked:C.enabled,onCheckedChange:e=>void J(C.id,{enabled:e}),"aria-label":`${C.label} on or off`,className:"mr-1 shrink-0"}),(0,t.jsxs)(y.DropdownMenu,{children:[(0,t.jsx)(y.DropdownMenuTrigger,{render:(0,t.jsx)(g.Button,{size:"icon-sm",variant:"ghost","aria-label":"More",className:"text-muted-foreground"}),children:(0,t.jsx)(c.MoreHorizontal,{})}),(0,t.jsx)(y.DropdownMenuContent,{align:"end",children:(0,t.jsxs)(y.DropdownMenuItem,{variant:"destructive",onClick:eM,children:[(0,t.jsx)(h.Trash2,{}),"Delete"]})})]})]}),(0,t.jsx)(b.DialogClose,{render:(0,t.jsx)(g.Button,{size:"icon-sm",variant:"ghost","aria-label":"Close the routine"}),children:(0,t.jsx)(x.X,{})})]}),(0,t.jsxs)("div",{className:"min-h-0 flex-1 space-y-4 overflow-y-auto px-5 pt-3 pb-5",children:[(0,t.jsxs)(ep,{label:"Name",htmlFor:"routine-name",children:[(0,t.jsx)(j.Input,{id:"routine-name",value:F.label,onChange:e=>K({label:e.target.value}),placeholder:"e.g. Morning mail",maxLength:80,autoFocus:!C}),(0,t.jsx)(ed,{children:"What it is called in this list, and what she calls it on a call."})]}),(0,t.jsxs)(ep,{label:"Bot",children:[(0,t.jsxs)(y.DropdownMenu,{children:[(0,t.jsxs)(y.DropdownMenuTrigger,{render:(0,t.jsx)(g.Button,{variant:"outline",className:"justify-start gap-2 pl-1.5 font-normal"}),children:[eS?(0,t.jsx)(D.BotMark,{size:20,seed:eS.name,...(0,D.markOf)(eS.name,n),notify:!1,className:"shrink-0"}):null,(0,t.jsx)("span",{className:(0,z.cn)(!eS&&"pl-1.5 text-muted-foreground"),children:eS?.name??(F.bot||"Pick a bot")}),(0,t.jsx)(o.ChevronDown,{className:"ml-1 size-3.5 text-muted-foreground"})]}),(0,t.jsx)(y.DropdownMenuContent,{align:"start",children:(0,t.jsx)(y.DropdownMenuGroup,{children:n.filter(e=>!e.disabled).map(e=>(0,t.jsxs)(y.DropdownMenuItem,{onClick:()=>{K({bot:e.name}),e.name!==C?.bot&&eb({bot:e.name})},children:[(0,t.jsx)(D.BotMark,{size:16,seed:e.name,...(0,D.markOf)(e.name,n),notify:!1,className:"shrink-0"}),e.name]},e.name))})})]}),(0,t.jsx)(ed,{children:"Who does the job each time it starts."})]}),(0,t.jsx)(ep,{label:"When",children:(0,t.jsxs)("div",{className:"space-y-3.5",children:[(0,t.jsx)(v.Segmented,{"aria-label":"How it starts",value:F.kind,onChange:e=>ey({kind:e}),options:[{value:"once",label:"Once"},{value:"daily",label:"On set days"},{value:"every",label:"Every few hours"}]}),(0,t.jsx)("div",{className:"space-y-2.5",children:"once"===F.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ec,{word:"On",children:(0,t.jsx)(eh,{value:F.date,onPick:e=>ey({date:e})})}),(0,t.jsxs)(ec,{word:"At",children:[(0,t.jsx)(ex,{value:F.time,onChange:e=>K({time:e}),onDone:()=>ey({})}),(0,t.jsx)("span",{className:"text-[13px] text-muted-foreground",children:"or"}),(0,t.jsx)(eu,{picked:!1,onClick:()=>{let e;return ey(((e=new Date(Date.now()+36e5)).setMinutes(5*Math.ceil(e.getMinutes()/5),0,0),{date:et(0,e),time:`${ee(e.getHours())}:${ee(e.getMinutes())}`}))},children:"In an hour"})]})]}):"daily"===F.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ec,{word:"On",children:H.map(e=>{let n=F.days.includes(e);return(0,t.jsx)(eu,{picked:n,several:!0,"aria-label":er[e-1],onClick:()=>ey({days:n?F.days.filter(t=>t!==e):[...F.days,e].sort((e,t)=>e-t)}),children:_[e-1]},e)})}),(0,t.jsx)(ec,{children:es.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>ey({days:[...e.days]}),className:"h-6.5 rounded-full bg-muted px-2.5 text-xs text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:e.label},e.label))}),(0,t.jsx)(ec,{word:"At",children:(0,t.jsx)(ex,{value:F.time,onChange:e=>K({time:e}),onDone:()=>ey({})})})]}):(0,t.jsxs)(ec,{word:"Every",children:[(el.includes(F.hours)?el:[...el,F.hours].sort((e,t)=>e-t)).map(e=>(0,t.jsx)(eu,{picked:e===F.hours,onClick:()=>ey({hours:e}),className:"min-w-10 px-3",children:e},e)),(0,t.jsx)("span",{className:"text-[13px] text-muted-foreground",children:"hours"})]})}),(0,t.jsx)(ef,{schedule:em,kind:F.kind})]})}),(0,t.jsxs)(ep,{label:"Job",htmlFor:"routine-request",children:[(0,t.jsx)(M.Textarea,{id:"routine-request",value:F.request,onChange:e=>K({request:e.target.value}),placeholder:"e.g. Go through the mail that came since the last run and draft replies to what needs one. Send nothing.",className:"min-h-28"}),(0,t.jsx)(ed,{children:"Handed to the bot as a new thread each time, with a line on how the last run ended. Nobody is there to ask, so say everything it needs."})]}),C&&(0,t.jsxs)("div",{className:"pt-1",children:[(0,t.jsx)("div",{className:"flex h-6 items-center",children:(0,t.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:"Runs"})}),0===C.runs.length?(0,t.jsx)("p",{className:"py-2 text-[13px] text-muted-foreground",children:"Not run yet."}):C.runs.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>{var t;return t=e.id,void($.useSettingsStore.getState().hide(),T.roomOpens.open(t))},className:"flex h-9 w-full items-center gap-3 border-t border-border/60 text-left text-[13px] outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,t.jsx)("span",{className:"w-28 shrink-0 font-mono text-[11px] text-muted-foreground tabular-nums",children:(0,R.whenOf)(e.updatedAt)}),(0,t.jsx)("span",{className:(0,z.cn)("min-w-0 flex-1 truncate","waiting"===e.status?z.WAITING_INK:"text-muted-foreground"),children:"running"===e.status?"Running now":e.outcome?(0,z.plainText)(e.outcome):"cancelled"===e.status?"Stopped":"No words"}),(0,t.jsx)(d.ChevronRight,{className:"size-3 shrink-0 text-muted-foreground"})]},e.id))]})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3 border-t border-border/60 px-5 py-3",children:[(0,t.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-4 text-muted-foreground",children:C||eg?"Starts while Thursday is running on this computer, whether or not a tab is open. A time that passed meanwhile starts once, not once for each.":`Still needs ${s=F,r=em,(l=[s.label.trim()?null:"a name",s.bot?null:"a bot",!r?"a time":ei(r)?"a time still ahead":null,s.request.trim()?null:"a job"].filter(e=>null!==e)).length>1?`${l.slice(0,-1).join(", ")} and ${l.at(-1)}`:l[0]??"nothing"}.`}),ej&&(0,t.jsx)(g.Button,{size:"sm",onClick:()=>{if(!C)return;let e={};F.label.trim()&&F.label.trim()!==C.label&&(e.label=F.label.trim()),F.request.trim()&&F.request.trim()!==C.request&&(e.request=F.request.trim()),Object.keys(e).length&&eb(e)},children:"Save"}),C?(0,t.jsxs)(g.Button,{variant:"outline",size:"sm",loading:Z,disabled:eD,title:eD?"Its last run is still open":void 0,onClick:()=>void V(C.id),children:[(0,t.jsx)(m.Play,{}),"Run now"]}):(0,t.jsx)(g.Button,{size:"sm",loading:G,disabled:!eg,onClick:()=>eg&&void L(eg),children:"Create"})]})]})})})})]})}let ed=({children:e})=>(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e});function eu({picked:e,several:n=!1,className:a,children:i,...s}){return(0,t.jsxs)("button",{type:"button","aria-pressed":e,className:(0,z.cn)("inline-flex h-8 items-center justify-center gap-1.5 rounded-full px-3.5 text-[13px] whitespace-nowrap outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",!e&&"text-foreground ring-1 ring-border ring-inset hover:bg-muted",e&&(n?"bg-brand/10 pl-2.5 font-medium text-brand ring-1 ring-brand/30 ring-inset":"bg-brand font-medium text-brand-foreground"),a),...s,children:[e&&n&&(0,t.jsx)(l.Check,{className:"size-3.5"}),i]})}function ec({word:e,children:n}){return(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,t.jsx)("span",{className:"flex h-8 w-9 shrink-0 items-center text-[13px] text-muted-foreground",children:e}),(0,t.jsx)("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1.5",children:n})]})}function em(e){let t=K(`${e} 00:00`),a=(t.getTime()-K(`${et(0)} 00:00`).getTime())/864e5;return(0,n.format)(t,a<7?"EEE d":"EEE, MMM d")}function eh({value:e,onPick:n}){let a=(0,f.useRef)(null),i=[0,1,2,3].map(e=>et(e)),s=()=>a.current?.showPicker();return(0,t.jsxs)(t.Fragment,{children:[i.map((a,i)=>(0,t.jsx)(eu,{picked:a===e,onClick:()=>n(a),children:0===i?"Today":1===i?"Tomorrow":em(a)},a)),!i.includes(e)&&(0,t.jsx)(eu,{picked:!0,onClick:s,children:em(e)}),(0,t.jsxs)("span",{className:"relative",children:[(0,t.jsx)(eu,{picked:!1,"aria-label":"Another day",onClick:s,className:"w-8 px-0",children:(0,t.jsx)(r,{className:"size-3.5"})}),(0,t.jsx)("input",{ref:a,type:"date",tabIndex:-1,"aria-hidden":!0,min:i[0],value:e,onChange:e=>e.target.value&&n(e.target.value),className:"pointer-events-none absolute inset-0 opacity-0"})]})]})}function ex({value:e,onChange:n,onDone:a}){return(0,t.jsx)(j.Input,{type:"time","aria-label":"Time of day",value:e,onChange:e=>n(e.target.value),onBlur:a,onClick:e=>e.currentTarget.showPicker?.(),className:"h-8.5 w-28 px-3 text-[15px] tabular-nums md:text-[15px] [&::-webkit-calendar-picker-indicator]:hidden"})}function ef({schedule:e,kind:n}){if(!e||ei(e))return(0,t.jsx)("p",{className:"text-xs text-destructive",children:e?"That time has passed. Pick a later one.":"daily"===n?"Pick a time and at least one day.":"Pick a time."});let i=function(e,t){if("once"===e.kind)return K(e.at);if("every"===e.kind)return new Date(t.getTime()+36e5*e.hours);let[n,a]=e.time.split(":").map(Number);for(let i=0;i<=7;i++){let s=new Date(t);s.setDate(s.getDate()+i),s.setHours(n,a,0,0);let r=0===s.getDay()?7:s.getDay();if(s>t&&e.days.includes(r))return s}return new Date(t.getTime()+864e5)}(e,new Date);return(0,t.jsxs)("p",{className:"flex items-start gap-2 text-[13px] leading-5",children:[(0,t.jsx)(Q.RoutineMark,{className:"mt-0.75 size-3.5 shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{className:"min-w-0",children:[X(e),(0,t.jsxs)("span",{className:"text-muted-foreground",children:[" · ","once"===e.kind?`${(0,a.formatDistanceToNowStrict)(i,{addSuffix:!0})}, then it switches itself off`:`first start ${(0,R.whenOf)(i)}`]})]})]})}function ep({label:e,htmlFor:n,children:a}){return(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)("label",{htmlFor:n,className:"w-14 shrink-0 pt-2 font-mono text-xs text-muted-foreground",children:e}),(0,t.jsx)("div",{className:"min-w-0 flex-1 space-y-1.5",children:a})]})}e.s(["RoutineSetting",0,function(){let[e,n]=(0,f.useState)(null),{data:a,isLoading:i,error:s}=(0,A.useServerRoute)(p.queryKey.routines),{data:r}=(0,A.useServerRoute)(p.queryKey.bot),[l]=(0,O.useServerAction)(B,{onOk:()=>(0,A.revalidate)(p.queryKey.routines)});if(i)return(0,t.jsx)(C.SettingSkeleton,{rows:3});if(s)return(0,t.jsx)(C.SettingError,{message:s.message});let o=a??[],d=o.filter(e=>e.enabled).length,u=o.find(t=>t.id===e);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(C.SettingScreen,{footer:(0,t.jsxs)(C.SettingRailNote,{children:[o.length," set up · ",d," on",o.length>=S.ROUTINE.max&&` \xb7 ${S.ROUTINE.max} is the most`]}),children:(0,t.jsx)(C.SettingItems,{addRow:o.length<S.ROUTINE.max?{label:"New routine",onClick:()=>n("new")}:void 0,children:0===o.length?(0,t.jsx)("p",{className:"p-4 text-sm leading-relaxed text-muted-foreground",children:'Nothing starts by itself yet. Tell Thursday what should — "every weekday at nine, go through my mail" — or make one here.'}):o.map(a=>(0,t.jsx)(Z,{routine:a,bots:r,open:a.id===e,onOpen:()=>n(a.id),onSwitch:e=>l(a.id,{enabled:e})},a.id))})}),(0,t.jsx)(eo,{routine:"new"===e?"new":u??null,bots:r??[],onClose:()=>n(null),onMade:e=>n(e)})]})}],480869)},648119,e=>{"use strict";var t=e.i(560972);e.s(["MoreHorizontal",()=>t.default])},21357,e=>{"use strict";var t=e.i(456420);let n={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]};n.node;let a=(0,t.default)(n);e.s(["Play",0,a],21357)},759659,e=>{"use strict";var t=e.i(456420);let n={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};n.node;let a=(0,t.default)(n);e.s(["Trash2",0,a],759659)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,319036,e=>{"use strict";var t=e.i(843476);e.i(924305);var n=e.i(271645),i=e.i(951437),a=e.i(828918),r=e.i(146376),l=e.i(502077),o=e.i(956789),s=e.i(552245),u=e.i(788015),d=e.i(540886),c=e.i(951849),f=e.i(133438),p=e.i(64350),v=e.i(469690),b=e.i(381104),g=e.i(884708),h=e.i(247778),x=e.i(31421),m=e.i(538489),R=e.i(675606),C=e.i(56434),E=e.i(606039);let y=n.forwardRef(function(e,y){let{checked:k,className:S,defaultChecked:I,"aria-labelledby":w,form:M,id:T,inputRef:A,name:L,nativeButton:O=!1,onCheckedChange:D,readOnly:N=!1,required:z=!1,disabled:P=!1,render:_,uncheckedValue:j,value:B,style:W,...H}=e,{clearErrors:V}=(0,g.useFormContext)(),{state:F,setTouched:Y,setDirty:K,validityData:U,setFilled:$,setFocused:q,validationMode:G,disabled:J,name:Q,validation:X}=(0,v.useFieldRootContext)(),{labelId:Z}=(0,h.useLabelableContext)(),ee=J||P,et=Q??L,en=n.useRef(null),ei=(0,a.useMergedRefs)(en,A,X.inputRef),ea=n.useRef(null),er=(0,u.useBaseUiId)(),el=(0,m.useLabelableId)({id:T}),eo=O?void 0:el,[es,eu]=(0,i.useControlled)({controlled:k,default:!!I,name:"Switch",state:"checked"});(0,b.useRegisterFieldControl)(ea,er,es,void 0,!ee,L),(0,r.useIsoLayoutEffect)(()=>{$(es)},[es,$]),(0,E.useValueChanged)(es,()=>{V(et),K(es!==U.initialValue),X.change(es)});let{getButtonProps:ed,buttonRef:ec}=(0,d.useButton)({disabled:ee,native:O}),ef=(0,x.useAriaLabelledBy)(w,Z,en,!O,eo),ep={...X.getValidationProps(ee),checked:es,disabled:ee,form:M,id:eo,name:et,required:z,style:et?l.visuallyHiddenInput:l.visuallyHidden,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:ei,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(N)return void e.preventDefault();let t=e.currentTarget.checked,n=(0,R.createChangeEventDetails)(C.REASONS.none,e.nativeEvent);D?.(t,n),n.isCanceled||eu(t)},onClick(e){e.stopPropagation()},onFocus(){ea.current?.focus()},...void 0!==B?{value:B}:o.EMPTY_OBJECT},ev=n.useMemo(()=>({...F,checked:es,disabled:ee,readOnly:N,required:z}),[F,es,ee,N,z]),eb=(0,s.useRenderElement)("span",e,{state:ev,ref:[y,ea,ec],props:[{id:O?el:er,role:"switch","aria-checked":es,"aria-readonly":N||void 0,"aria-required":z||void 0,"aria-labelledby":ef,onFocus(){ee||q(!0)},onBlur(){let e=en.current;e&&!ee&&(Y(!0),q(!1),"onBlur"===G&&X.commit(e.checked))},onClick(e){if(N||ee)return;e.preventDefault();let t=en.current;t&&(0,p.dispatchClickWithModifiers)(t,e)}},H,ed,e=>X.getValidationProps(ee,e)],stateAttributesMapping:f.stateAttributesMapping});return(0,t.jsxs)(c.SwitchRootContext.Provider,{value:ev,children:[eb,!es&&et&&void 0!==j&&(0,t.jsx)("input",{type:"hidden",form:M,name:et,value:j,disabled:ee}),(0,t.jsx)("input",{...ep,suppressHydrationWarning:!0})]})}),k=n.forwardRef(function(e,t){let{render:n,className:i,style:a,...r}=e,l=(0,c.useSwitchRootContext)();return(0,s.useRenderElement)("span",e,{state:l,ref:t,stateAttributesMapping:f.stateAttributesMapping,props:r})});e.s(["Root",0,y,"Thumb",0,k],450994);var S=e.i(450994),S=S,I=e.i(647163);e.s(["Switch",0,function({className:e,size:n="default",...i}){return(0,t.jsx)(S.Root,{"data-slot":"switch","data-size":n,className:(0,I.cn)("cursor-pointer peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:bg-brand data-unchecked:bg-input dark:data-unchecked:bg-input/80 data-disabled:cursor-not-allowed data-disabled:opacity-50",e),...i,children:(0,t.jsx)(S.Thumb,{"data-slot":"switch-thumb",className:"pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] dark:data-checked:bg-brand-foreground group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0 dark:data-unchecked:bg-foreground"})})}],319036)},127341,e=>{"use strict";var t,n=e.i(843476);e.s([],559657),e.i(559657);var i=e.i(271645),a=e.i(951437),r=e.i(146376),l=e.i(667865),o=e.i(552245),s=e.i(53687),u=e.i(733332);let d=i.createContext(void 0);function c(){let e=i.useContext(d);if(void 0===e)throw Error((0,u.default)(64));return e}let f={tabActivationDirection:e=>({"data-activation-direction":e})};var p=e.i(675606),v=e.i(56434);let b=i.forwardRef(function(e,t){let{className:u,defaultValue:c=0,onValueChange:b,orientation:x="horizontal",render:m,value:R,style:C,...E}=e,y=void 0!==e.defaultValue,k=i.useRef([]),[S,I]=i.useState(()=>new Map),[w,M]=(0,a.useControlled)({controlled:R,default:c,name:"Tabs",state:"value"}),T=void 0!==R,[A,L]=i.useState(()=>new Map),O=i.useRef(void 0),D=i.useCallback(e=>g(A,e),[A]),[N,z]=i.useState(()=>({previousValue:w,tabActivationDirection:"none"})),{previousValue:P,tabActivationDirection:_}=N,j=_,B=!1;P!==w&&(j=h(P,w,x,A),B=null!=P&&null!=w&&null==D(w));let W=B?P:w,H=P!==W||_!==j;(0,r.useIsoLayoutEffect)(()=>{H&&z({previousValue:W,tabActivationDirection:j})},[W,H,j]);let V=(0,l.useStableCallback)((e,t)=>{t.activationDirection=h(w,e,x,A),b?.(e,t),t.isCanceled||M(e)}),F=(0,l.useStableCallback)((e,t)=>{b?.(e,(0,p.createChangeEventDetails)(t,void 0,void 0,{activationDirection:"none"}))}),Y=(0,l.useStableCallback)((e,t)=>(I(n=>{let i=new Map(n);return i.set(e,t),i}),()=>{I(n=>{if(n.get(e)!==t)return n;let i=new Map(n);return i.delete(e),i})})),K=i.useCallback(e=>S.get(e),[S]),U=i.useCallback(e=>{for(let t of A.values())if(e===t.value)return t.id},[A]),$=i.useMemo(()=>({getTabElementBySelectedValue:D,getTabIdByPanelValue:U,getTabPanelIdByValue:K,onValueChange:V,orientation:x,registerMountedTabPanel:Y,setTabMap:L,tabActivationDirection:j,value:w}),[D,U,K,V,x,Y,L,j,w]),q=i.useMemo(()=>{for(let e of A.values())if(e.value===w)return e},[A,w]),G=i.useMemo(()=>{for(let e of A.values())if(!e.disabled)return e.value},[A]),J=i.useRef(!y),Q=i.useRef(c),X=i.useRef(y),Z=i.useRef(!1);(0,r.useIsoLayoutEffect)(()=>{if(T)return;function e(e,t){M(e),z({previousValue:e,tabActivationDirection:"none"}),F(e,t),J.current=!1}if(0===A.size){Z.current&&null!==w&&!O.current?.isConnected&&e(null,v.REASONS.missing);return}Z.current=!0,O.current=A.keys().next().value;let t=q?.disabled,n=null==q&&null!==w;if(t||w!==Q.current||(X.current=!1),X.current&&t&&w===Q.current)return;let i=J.current;if(t||n){let n=G??null;if(w===n){J.current=!1;return}let a=v.REASONS.missing;i?a=v.REASONS.initial:t&&(a=v.REASONS.disabled),e(n,a);return}i&&null!=q&&(F(w,v.REASONS.initial),J.current=!1)},[G,T,F,q,M,A,w]);let ee={orientation:x,tabActivationDirection:j},et=(0,o.useRenderElement)("div",e,{state:ee,ref:t,props:E,stateAttributesMapping:f});return(0,n.jsx)(d.Provider,{value:$,children:(0,n.jsx)(s.CompositeList,{elementsRef:k,children:et})})});function g(e,t){for(let[n,i]of e.entries())if(t===i.value)return n;return null}function h(e,t,n,i){if(null==e||null==t)return"none";let[a,r,l]="horizontal"===n?["left","left","right"]:["top","up","down"],o=g(i,e),s=g(i,t);if(null==o||null==s)return o!==s&&("number"==typeof e||"string"==typeof e)&&typeof e==typeof t?t>e?l:r:"none";let u=o.getBoundingClientRect()[a],d=s.getBoundingClientRect()[a];return d<u?r:d>u?l:"none"}var x=e.i(108868),m=e.i(788015),R=e.i(540886),C=e.i(370359),E=e.i(395530),y=e.i(838452);let k=i.createContext(void 0);function S(){let e=i.useContext(k);if(void 0===e)throw Error((0,u.default)(65));return e}var I=e.i(584446);let w=i.forwardRef(function(e,t){let{className:n,disabled:a=!1,render:s,value:u,id:d,nativeButton:b=!0,style:g,...h}=e,{value:k,getTabPanelIdByValue:w,onValueChange:M,orientation:T,tabActivationDirection:A}=c(),{activateOnFocus:L,registerTabResizeObserverElement:O,tabsListElement:D}=S(),{highlightedIndex:N,onHighlightedIndexChange:z}=(0,y.useCompositeRootContext)(),P=(0,m.useBaseUiId)(d),_=i.useMemo(()=>({disabled:a,id:P,value:u}),[a,P,u]),{compositeProps:j,compositeRef:B,index:W}=(0,E.useCompositeItem)({metadata:_}),H=u===k,V=i.useRef(!1),F=i.useRef(null),Y=(0,l.useStableCallback)(e=>{F.current?.(),F.current=e?O(e):null});(0,r.useIsoLayoutEffect)(()=>{if(V.current){V.current=!1;return}if(H&&W>-1&&N!==W){if(null!=D){let e=(0,I.activeElement)((0,x.ownerDocument)(D));if(e&&(0,I.contains)(D,e))return}a||z(W)}},[H,W,N,z,a,D]);let{getButtonProps:K,buttonRef:U}=(0,R.useButton)({disabled:a,native:b,focusableWhenDisabled:!0}),$=w(u),q=i.useRef(!1),G=i.useRef(!1);function J(e){M(u,(0,p.createChangeEventDetails)(v.REASONS.none,e.nativeEvent,void 0,{activationDirection:"none"}))}return(0,o.useRenderElement)("button",e,{state:{disabled:a,active:H,orientation:T,tabActivationDirection:A},ref:[t,U,B,Y],props:[j,{role:"tab","aria-controls":$,"aria-selected":H,id:P,onClick:function(e){H||a||J(e)},onFocus:function(e){H||a||L&&(!q.current||G.current)&&J(e)},onPointerDown:function(e){if(H||a)return;q.current=!0,G.current=0===e.button;let t=(0,x.ownerDocument)(e.currentTarget);function n(){q.current=!1,G.current=!1,t.removeEventListener("pointerup",n),t.removeEventListener("pointercancel",n)}t.addEventListener("pointerup",n),t.addEventListener("pointercancel",n)},[C.ACTIVE_COMPOSITE_ITEM]:H?"":void 0,onKeyDownCapture(){V.current=!0}},h,K],stateAttributesMapping:f})});var M=e.i(229315),T=e.i(333848),A=e.i(802239),L=e.i(956789);function O(){return L.NOOP}function D(){return!1}function N(){return!0}let z=i.createContext(void 0),P={disableStyleElements:!1};function _(e){let{script:t}=e,{nonce:a}=i.useContext(z)??P;return(0,A.useSyncExternalStore)(O,D,N)?(0,n.jsx)("script",{nonce:a,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}var j=e.i(73364),B=e.i(49072);let W={...f,activeTabPosition:()=>null,activeTabSize:()=>null},H=i.forwardRef(function(e,a){let{className:r,render:l,renderBeforeHydration:s=!1,style:u,...d}=e,{getTabElementBySelectedValue:f,orientation:p,tabActivationDirection:v,value:b}=c(),{tabsListElement:g,registerIndicatorUpdateListener:h}=S(),x=function(){let[,e]=i.useState({});return i.useCallback(()=>{e({})},[])}();i.useEffect(()=>h(x),[h,x]);let m=0,R=0,C=0,E=0,y=0,k=0,I=!1;if(null!=b&&null!=g){let e=f(b);if(null!=e){I=!0;let{width:t,height:n}=(0,j.getCssDimensions)(e),{width:i,height:a}=(0,j.getCssDimensions)(g),r=e.getBoundingClientRect(),l=g.getBoundingClientRect(),o=i>0?l.width/i:1,s=a>0?l.height/a:1,u=function(e,t){let n=V(e),i=V(t),a=n.left-i.left-t.clientLeft,r=n.top-i.top-t.clientTop,l=(0,M.getParentNode)(e);for(;(0,M.isHTMLElement)(l)&&l!==t&&!(0,M.isLastTraversableNode)(l);)a-=l.scrollLeft,r-=l.scrollTop,l=(0,M.getParentNode)(l);return{left:a,top:r}}(e,g);m=u.left,C=u.top;let d=(r.left-l.left)/o+g.scrollLeft-g.clientLeft,c=(r.top-l.top)/s+g.scrollTop-g.clientTop,f=function(e){let t=(0,T.ownerWindow)(e).getComputedStyle(e),{x:n,y:i}=(0,B.getElementTransform)(e,t),a=n,r=i,{translate:l}=t;if(l&&"none"!==l){let t=l.split(" ");a+=F(t[0],e.offsetWidth),r+=F(t[1],e.offsetHeight)}return{x:a,y:r}}(e);2>=Math.abs(d-f.x-m)&&2>=Math.abs(c-f.y-C)&&(m=d,C=c),y=t,k=n,R=g.scrollWidth-m-y,E=g.scrollHeight-C-k}}let w=I?{left:m,right:R,top:C,bottom:E}:null,A=I?{width:y,height:k}:null,L=I?{"--active-tab-left":`${m}px`,"--active-tab-right":`${R}px`,"--active-tab-top":`${C}px`,"--active-tab-bottom":`${E}px`,"--active-tab-width":`${y}px`,"--active-tab-height":`${k}px`}:void 0,O=I&&y>0&&k>0,D=(0,o.useRenderElement)("span",e,{state:{orientation:p,activeTabPosition:w,activeTabSize:A,tabActivationDirection:v},ref:a,props:[{role:"presentation",style:L,hidden:!O},d,{suppressHydrationWarning:!0}],stateAttributesMapping:W});return null==b?null:(0,n.jsxs)(i.Fragment,{children:[D,s&&(t||(t=(0,n.jsx)(_,{script:""})))]})});function V(e){let t=0,n=0,i=e;for(;null!=i;){t+=i.offsetLeft,n+=i.offsetTop;let e=i.offsetParent;null!=e&&(t+=e.clientLeft,n+=e.clientTop),i=e}return{left:t,top:n}}function F(e,t){if(!e)return 0;let n=parseFloat(e);return Number.isFinite(n)?e.endsWith("%")?n/100*t:n:0}var Y=e.i(144394),K=e.i(474354),U=e.i(137584),$=e.i(223910),q=e.i(673553),G=e.i(253335);G.TransitionStatusDataAttributes.startingStyle,G.TransitionStatusDataAttributes.endingStyle;let J={...f,...K.transitionStatusMapping},Q=i.forwardRef(function(e,t){let{className:n,value:a,render:l,keepMounted:s=!1,style:u,...d}=e,{value:f,getTabIdByPanelValue:p,orientation:v,tabActivationDirection:b,registerMountedTabPanel:g}=c(),h=(0,m.useBaseUiId)(),{ref:x,index:R}=(0,q.useCompositeListItem)(),C=a===f,{mounted:E,transitionStatus:y,setMounted:k}=(0,$.useTransitionStatus)(C),S=!E,I=p(a),w=i.useRef(null),M=(0,o.useRenderElement)("div",e,{state:{hidden:S,orientation:v,tabActivationDirection:b,transitionStatus:y},ref:[t,x,w],props:[{"aria-labelledby":I,hidden:S,id:h,role:"tabpanel",tabIndex:C?0:-1,inert:(0,Y.inertValue)(!C),"data-index":R},d],stateAttributesMapping:J});return((0,U.useOpenChangeComplete)({open:C,ref:w,onComplete(){C||k(!1)}}),(0,r.useIsoLayoutEffect)(()=>{if(null!=h&&(!S||s))return g(a,h)},[S,s,a,h,g]),s||E)?M:null});var X=e.i(405934);let Z=i.forwardRef(function(e,t){let{activateOnFocus:a=!1,className:o,loopFocus:s=!0,render:u,style:d,...p}=e,{orientation:v,setTabMap:b,tabActivationDirection:g}=c(),[h,x]=i.useState(0),[m,R]=i.useState(null),C=i.useRef(new Set),E=i.useRef(new Set),y=i.useRef(null);(0,r.useIsoLayoutEffect)(()=>{if("u"<typeof ResizeObserver)return;let e=new ResizeObserver(()=>{C.current.forEach(e=>{e()})});return y.current=e,m&&e.observe(m),E.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),y.current=null}},[m]);let S=(0,l.useStableCallback)(e=>(C.current.add(e),()=>{C.current.delete(e)})),I=(0,l.useStableCallback)(e=>(E.current.add(e),y.current?.observe(e),()=>{E.current.delete(e),y.current?.unobserve(e)})),w=i.useMemo(()=>({activateOnFocus:a,registerIndicatorUpdateListener:S,registerTabResizeObserverElement:I,tabsListElement:m}),[a,S,I,m]);return(0,n.jsx)(k.Provider,{value:w,children:(0,n.jsx)(X.CompositeRoot,{render:u,className:o,style:d,state:{orientation:v,tabActivationDirection:g},refs:[t,R],props:[{"aria-orientation":"vertical"===v?"vertical":void 0,role:"tablist"},p],stateAttributesMapping:f,highlightedIndex:h,enableHomeAndEndKeys:!0,loopFocus:s,orientation:v,onHighlightedIndexChange:x,onMapChange:b,disabledIndices:L.EMPTY_ARRAY})})});e.s(["Indicator",0,H,"List",0,Z,"Panel",0,Q,"Root",0,b,"Tab",0,w],69281);var ee=e.i(69281),ee=ee,et=e.i(225913),en=e.i(647163);let ei=(0,et.cva)("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});e.s(["Tabs",0,function({className:e,orientation:t="horizontal",...i}){return(0,n.jsx)(ee.Root,{"data-slot":"tabs","data-orientation":t,className:(0,en.cn)("group/tabs flex gap-2 data-horizontal:flex-col",e),...i})},"TabsContent",0,function({className:e,...t}){return(0,n.jsx)(ee.Panel,{"data-slot":"tabs-content",className:(0,en.cn)("flex-1 text-sm outline-none",e),...t})},"TabsList",0,function({className:e,variant:t="default",...i}){return(0,n.jsx)(ee.List,{"data-slot":"tabs-list","data-variant":t,className:(0,en.cn)(ei({variant:t}),e),...i})},"TabsTrigger",0,function({className:e,...t}){return(0,n.jsx)(ee.Tab,{"data-slot":"tabs-trigger",className:(0,en.cn)("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...t})}],127341)},370359,405934,e=>{"use strict";let t="data-composite-item-active";e.s(["ACTIVE_COMPOSITE_ITEM",0,t],370359);var n=e.i(271645),i=e.i(956789),a=e.i(53687),r=e.i(667865),l=e.i(828918),o=e.i(146376),s=e.i(673327),u=e.i(621082),d=e.i(584446),c=e.i(838452),f=e.i(552245),p=e.i(872855),v=e.i(843476);e.s(["CompositeRoot",0,function(e){let{render:b,className:g,style:h,refs:x=i.EMPTY_ARRAY,props:m=i.EMPTY_ARRAY,state:R=i.EMPTY_OBJECT,stateAttributesMapping:C,highlightedIndex:E,onHighlightedIndexChange:y,orientation:k,grid:S,loopFocus:I,onLoop:w,enableHomeAndEndKeys:M,onMapChange:T,stopEventPropagation:A=!0,rootRef:L,disabledIndices:O,modifierKeys:D,highlightItemOnHover:N=!1,tag:z="div",...P}=e,{props:_,highlightedIndex:j,onHighlightedIndexChange:B,elementsRef:W,onMapChange:H,relayKeyboardEvent:V}=function(e){let{loopFocus:a=!0,orientation:c="both",grid:f,onLoop:p,direction:v,highlightedIndex:b,onHighlightedIndexChange:g,rootRef:h,enableHomeAndEndKeys:x=!1,stopEventPropagation:m,disabledIndices:R,modifierKeys:C=i.EMPTY_ARRAY}=e,[E,y]=n.useState(0),k=null!=f,S=n.useRef(null),I=(0,l.useMergedRefs)(S,h),w=n.useRef([]),M=n.useRef(!1),T=n.useRef(null),A=b??E,L=(0,r.useStableCallback)((e,t=!1)=>{if(T.current=w.current[e]??null,(g??y)(e),t){let t=w.current[e];(0,s.scrollIntoViewIfNeeded)(S.current,t,v,c)}}),O=(0,r.useStableCallback)(e=>{if(0===e.size)return;if(M.current){let e=w.current,n=e.indexOf(T.current);if(-1===n){let n=e[A];!n||(0,u.isListIndexDisabled)(e,A,R)?L(function(e,n){let i=-1;for(let a=0;a<e.length;a+=1){let r=e[a];if(!(!r||(0,u.isListIndexDisabled)(e,a,n))){if(r.hasAttribute(t))return a;-1===i&&(i=a)}}return Math.max(i,0)}(e,R)):T.current=n}else n!==A&&L(n);return}M.current=!0;let n=Array.from(e.keys()),i=n.find(e=>e?.hasAttribute(t))??null,a=i?e.get(i)?.index??-1:-1;if(-1!==a)L(a);else if((0,u.isListIndexDisabled)(n,A,R)){let e=(0,u.findNonDisabledListIndex)(n,{disabledIndices:R});(0,u.isIndexOutOfListBounds)(n,e)||L(e)}(0,s.scrollIntoViewIfNeeded)(S.current,i,v,c)});(0,o.useIsoLayoutEffect)(()=>{if(null==R||null!=b||!M.current)return;let e=w.current;if((0,u.isListIndexDisabled)(e,A,R)){let t=(0,u.findNonDisabledListIndex)(e,{disabledIndices:R});(0,u.isIndexOutOfListBounds)(e,t)||L(t)}},[R,b,A,w,L]);let D=(0,r.useStableCallback)((e,t,n)=>p?p(e,t,n,w):n),N=(0,r.useStableCallback)(e=>{let t=e.key===s.HOME||e.key===s.END;if(!s.COMPOSITE_KEYS.has(e.key)||!x&&t||function(e,t){for(let n of s.MODIFIER_KEYS)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}(e,C)||!S.current)return;let n="rtl"===v,i=n?s.ARROW_LEFT:s.ARROW_RIGHT,r=n?s.ARROW_RIGHT:s.ARROW_LEFT,l="vertical"===c?s.ARROW_DOWN:i,o="vertical"===c?s.ARROW_UP:r,b=(0,d.getTarget)(e.nativeEvent);if(null!=b&&(0,s.isNativeInput)(b)&&!(null==b||b.hasAttribute("disabled")||"true"===b.getAttribute("aria-disabled"))){let t=b.selectionStart,n=b.selectionEnd,i=b.value;if(null==t||e.shiftKey||t!==n||e.key!==o&&t<i.length||e.key!==l&&t>0)return}let g=A,h=(0,u.getMinListIndex)(w,R),E=(0,u.getMaxListIndex)(w,R);null!=f&&(g=f({disabledIndices:R,elementsRef:w,event:e,highlightedIndex:A,loopFocus:a,maxIndex:E,minIndex:h,onLoop:D,orientation:c,rtl:n}));let y="vertical"!==c&&e.key===i||"horizontal"!==c&&e.key===s.ARROW_DOWN,I="vertical"!==c&&e.key===r||"horizontal"!==c&&e.key===s.ARROW_UP;x&&(e.key===s.HOME?g=h:e.key===s.END&&(g=E)),g===A&&(y||I)&&(a&&g===E&&y?(g=h,p&&(g=p(e,A,g,w))):a&&g===h&&I?(g=E,p&&(g=p(e,A,g,w))):g=(0,u.findNonDisabledListIndex)(w.current,{startingIndex:g,decrement:I,disabledIndices:R})),g===A||(0,u.isIndexOutOfListBounds)(w.current,g)||(m&&e.stopPropagation(),(k||t||y||I)&&e.preventDefault(),L(g,!0),queueMicrotask(()=>{w.current[g]?.focus()}))});return{props:{ref:I,onFocus(e){let t=S.current,n=(0,d.getTarget)(e.nativeEvent);t&&null!=n&&(0,s.isNativeInput)(n)&&n.setSelectionRange(0,n.value.length)},onKeyDown:N},highlightedIndex:A,onHighlightedIndexChange:L,elementsRef:w,onMapChange:O,relayKeyboardEvent:N}}({grid:S,loopFocus:I,onLoop:w,orientation:k,highlightedIndex:E,onHighlightedIndexChange:y,rootRef:L,stopEventPropagation:A,enableHomeAndEndKeys:M,direction:(0,p.useDirection)(),disabledIndices:O,modifierKeys:D}),F=(0,f.useRenderElement)(z,e,{state:R,ref:x,props:[_,...m,P],stateAttributesMapping:C}),Y=n.useMemo(()=>({highlightedIndex:j,onHighlightedIndexChange:B,highlightItemOnHover:N,relayKeyboardEvent:V}),[j,B,N,V]);return(0,v.jsx)(c.CompositeRootContext.Provider,{value:Y,children:(0,v.jsx)(a.CompositeList,{elementsRef:W,onMapChange:e=>{T?.(e),H(e)},children:F})})}],405934)},31421,e=>{"use strict";var t=e.i(271645),n=e.i(146376),i=e.i(788015);e.s(["useAriaLabelledBy",0,function(e,a,r,l=!0,o){let[s,u]=t.useState(),d=(0,i.useBaseUiId)(o?`${o}-label`:void 0),c=e??a??s;return(0,n.useIsoLayoutEffect)(()=>{let t=e||a||!l?void 0:function(e,t){let n=function(e){if(!e)return;let t=e.parentElement;if(t&&"LABEL"===t.tagName)return t;let n=e.id;if(n){let t=e.nextElementSibling;if(t&&t.htmlFor===n)return t}let i=e.labels;return i&&i[0]}(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}(r.current,d);s!==t&&u(t)}),c}])},924305,951849,133438,e=>{"use strict";e.s([],924305);var t=e.i(733332),n=e.i(271645);let i=n.createContext(void 0);e.s(["SwitchRootContext",0,i,"useSwitchRootContext",0,function(){let e=n.useContext(i);if(void 0===e)throw Error((0,t.default)(63));return e}],951849);let a={...e.i(875812).fieldValidityMapping,checked:e=>e?{"data-checked":""}:{"data-unchecked":""}};e.s(["stateAttributesMapping",0,a],133438)}]);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,805995,58813,e=>{"use strict";var t,n=e.i(843476),s=e.i(493801),r=e.i(375775),i=e.i(422411),o=e.i(525335),a=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(560972),h=h,f=e.i(815170),m=e.i(758925),g=e.i(566595),x=e.i(466787),p=e.i(271645),y=e.i(798120),k=e.i(167881),v=e.i(23750),j=e.i(917162),b=e.i(59377),w=e.i(818125),N=e.i(671428),S=e.i(41533),A=e.i(412294),C=e.i(458898),E=e.i(146538),M=e.i(968978),I=e.i(265402),R=e.i(635963),F=e.i(616816),z=e.i(95187);let P=(0,z.createServerReference)("7fc10090f794990bc37a14ff06fd14bfdf6160a71d",z.callServer,void 0,z.findSourceMapURL,"removeConfigAction");e.s(["removeConfigAction",0,P],58813);var T=e.i(528060),K=e.i(992112),_=e.i(508734),$=e.i(482022),O=((t=O||{})[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 B=[1,0],L=[2,3],q=[3,2],H={L:[0,1],M:B,Q:L,H:q},D=/^\d*$/,U=/^[A-Z0-9 $%*+./:-]*$/,G="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",W=[[-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 V{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,O.Timing),this.setFunctionModule(e,6,e%2==0,O.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,X(s,e));this.setFunctionModule(8,7,X(s,6)),this.setFunctionModule(8,8,X(s,7)),this.setFunctionModule(7,8,X(s,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,X(s,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,X(s,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,X(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=X(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,o=t+n;i>=0&&i<this.size&&o>=0&&o<this.size&&this.setFunctionModule(i,o,2!==r&&4!==r,O.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)),O.Alignment)}setFunctionModule(e,t,n,s=O.Function){this.modules[t][e]=n,this.types[t][e]=s}addEccAndInterleave(e){let t=this.version,n=this.ecc;if(e.length!==ei(t,n))throw RangeError("Invalid argument");let s=Y[n[0]][t],r=W[n[0]][t],i=Math.floor(er(t)/8),o=s-i%s,a=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]=eo(t[e],n),e+1<t.length&&(t[e]^=t[e+1]);n=eo(n,2)}return t}(r);for(let t=0,n=0;t<s;t++){let s=e.slice(n,n+a-r+(t<o?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]^=eo(t,e))}return n}(s,d);t<o&&s.push(0),l.push(s.concat(i))}let c=[];for(let e=0;e<l[0].length;e++)l.forEach((t,n)=>{(e!==a-r||n>=o)&&c.push(t[e])});return c}drawCodewords(e){if(e.length!==Math.floor(er(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,o=(n+1&2)==0?this.size-1-s:s;!this.types[o][i]&&t<8*e.length&&(this.modules[o][i]=X(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 Q(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 X(e,t){return(e>>>t&1)!=0}class Z{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 J=[1,10,12,14],ee=[2,9,11,13],et=[4,8,16,16];function en(e,t){return e[Math.floor((t+7)/17)+1]}function es(e){let t=[];for(let n of e)Q(n,8,t);return new Z(et,e.length,t)}function er(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 ei(e,t){return Math.floor(er(e)/8)-W[t[0]][e]*Y[t[0]][e]}function eo(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),el=e.i(660302),ed=e.i(895836),ec=e.i(609856),eu=e.i(283653),eh=e.i(647163);let ef=(0,z.createServerReference)("7f465a3a44bbc30aaf06fc1756bccae6300f78f6e8",z.callServer,void 0,z.findSourceMapURL,"forgetReachAction");var em=e.i(36174);let eg={telegram:"telegram.org",discord:"discord.com",slack:"slack.com"},ex=`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
|
+
`,ep=({children:e})=>(0,n.jsx)("span",{className:"font-medium text-foreground",children:e}),ey={telegram:[{body:(0,n.jsxs)(n.Fragment,{children:["In Telegram, write to ",(0,n.jsx)(ep,{children:"@BotFather"}),", send ",(0,n.jsx)(ep,{children:"/newbot"})," and pick a name. It answers with a ",(0,n.jsx)(ep,{children:"token"}),"."]}),slot:{open:"https://t.me/BotFather",label:"Open @BotFather"}},{body:(0,n.jsx)(n.Fragment,{children:"Paste the token here."}),slot:{key:em.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)(ep,{children:"Allow"})," if your phone shows the same code."]})}],discord:[{body:(0,n.jsxs)(n.Fragment,{children:["At ",(0,n.jsx)(ep,{children:"discord.com/developers"}),", make a ",(0,n.jsx)(ep,{children:"New Application"}),". So nobody else can add it to a server, set ",(0,n.jsx)(ep,{children:"Install Link"})," to"," ",(0,n.jsx)(ep,{children:"None"})," on its ",(0,n.jsx)(ep,{children:"Installation"})," page and turn off"," ",(0,n.jsx)(ep,{children:"Public Bot"})," on its ",(0,n.jsx)(ep,{children:"Bot"})," page. There, press"," ",(0,n.jsx)(ep,{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:em.DISCORD_TOKEN_KEY,looks:"MTE…"}},{body:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ep,{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)(ep,{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)(ep,{children:"Message"}),". A question with a code appears here: press ",(0,n.jsx)(ep,{children:"Allow"})," if your phone shows the same code."]})}],slack:[{body:(0,n.jsxs)(n.Fragment,{children:["At ",(0,n.jsx)(({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}),{href:"https://api.slack.com/apps",children:"api.slack.com/apps"}),","," ",(0,n.jsx)(ep,{children:"Create New App › From a manifest"}),", and paste the manifest."]}),slot:{manifest:!0}},{body:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ep,{children:"Basic Information › App-Level Tokens"}),": generate one with"," ",(0,n.jsx)(ep,{children:"connections:write"}),". It starts with xapp-."]}),slot:{key:em.SLACK_APP_TOKEN_KEY,looks:"xapp-…"}},{body:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ep,{children:"Install App"})," to your workspace. The Bot User OAuth Token starts with xoxb-."]}),slot:{key:em.SLACK_BOT_TOKEN_KEY,looks:"xoxb-…"}},{body:(0,n.jsxs)(n.Fragment,{children:["In Slack, open the app under ",(0,n.jsx)(ep,{children:"Apps"})," and write in its"," ",(0,n.jsx)(ep,{children:"Messages"})," tab. A question with a code appears here: press"," ",(0,n.jsx)(ep,{children:"Allow"})," if Slack shows the same code."]})}]};function ek(){let e=(0,eu.useServerRoute)(y.queryKey.config),t=(0,eu.useServerRoute)(y.queryKey.reach);(0,ea.useAppEvent)({reach:()=>void(0,eu.revalidate)(y.queryKey.reach)});let s=t=>(0,K.isConfigSet)(e.data,t),r=t=>(0,K.isConfigUnreadable)(e.data,t),i=e=>t.data?.channels.find(t=>t.name===e)??null,o=e=>!!i(e)?.allowed,a=em.REACH_CHANNELS.find(e=>i(e)?.refused||em.REACH_KEYS[e].some(r)),l=em.REACH_CHANNELS.find(e=>em.REACH_KEYS[e].every(s)&&!o(e)),d=!em.REACH_CHANNELS.some(o),[c,u]=(0,p.useState)(a??l??(d?em.REACH_CHANNELS[0]:null));return(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(ed.SettingItems,{children:em.REACH_CHANNELS.map(e=>(0,n.jsx)(ev,{name:e,status:i(e),tokensIn:em.REACH_KEYS[e].filter(s).length,isSet:s,isLost:r,open:c===e,onOpen:()=>u(c===e?null:e)},e))}),(0,n.jsx)(ed.SettingNote,{children:"Only the one person you allow can write, and only direct messages are read. Work started here runs whether or not a tab is open, while Thursday is running on this computer."})]})}function ev({name:e,status:t,tokensIn:s,isSet:r,isLost:i,open:o,onOpen:a}){var d;let c,u,h,f,g=ey[e],x=t?.refused??null,p=(d={connected:!!t?.bot,allowed:!!t?.allowed,refused:x},c=g.map(e=>e.slot&&"key"in e.slot?e.slot.key:null),u=e=>!r(e)||e===d.refused,h=c.findIndex(e=>e&&u(e)),f=c.reduce((e,t,n)=>t?n:e,-1),g.map((e,t)=>{let n=c[t];return n?u(n)?t===h?"now":"later":"done":h>=0?t<h?d.refused?"done":"flat":"later":d.allowed||t<f?"done":d.connected?"now":"flat"})),y=!!t?.bot&&!t?.allowed&&!x;return(0,n.jsxs)("div",{children:[(0,n.jsxs)("button",{type:"button",onClick:a,"aria-expanded":o,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:[(0,n.jsx)(w.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:em.REACH_LABEL[e]}),(0,n.jsx)("span",{className:"min-w-0 flex-1 truncate",children:(0,n.jsx)(ej,{status:t,tokensIn:s,tokens:em.REACH_KEYS[e].length,lost:em.REACH_KEYS[e].some(i)})}),(0,n.jsx)(l.ChevronRight,{className:(0,eh.cn)("size-4 shrink-0 text-muted-foreground transition-transform",o&&"rotate-90")})]}),o&&(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)(eb,{n:s+1,step:e,state:p[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===x?t?.problem??"":e.slot&&"key"in e.slot&&i(e.slot.key)?(0,K.lostWords)("The token saved here","Paste it again."):null,link:t?.link??null,waiting:y&&s===g.length-1},s))}),t?.allowed&&(0,n.jsx)(eI,{name:e,who:t.allowed.name,stopped:!!x})]})]})}function ej({status:e,tokensIn:t,tokens:s,lost:r}){let i="text-xs";return r?(0,n.jsx)("span",{className:(0,eh.cn)(i,"text-destructive"),children:"Stopped — the saved token can't be unlocked any more"}):t<s?(0,n.jsx)("span",{className:(0,eh.cn)(i,"text-muted-foreground"),children:t?`${t} of ${s} tokens in`:"Not set"}):e?.refused?(0,n.jsxs)("span",{className:(0,eh.cn)(i,"text-destructive"),children:["Stopped — ",em.REACH_LABEL[e.name]," turned the token away"]}):e?.problem?(0,n.jsx)(el.ShinyText,{text:`${e.bot?"Reconnecting":"Connecting"} ${e.problem}`,className:(0,eh.cn)(i,"align-middle")}):e?.allowed?(0,n.jsxs)("span",{className:(0,eh.cn)(i,"text-muted-foreground"),children:["Listening as ",e.bot,". ",e.allowed.name," is let in."]}):e?.bot?(0,n.jsx)(el.ShinyText,{text:`Listening as ${e.bot} — waiting for your first message`,tone:"waiting",className:(0,eh.cn)(i,"align-middle")}):(0,n.jsx)(el.ShinyText,{text:"Connecting…",className:(0,eh.cn)(i,"align-middle")})}function eb({n:e,step:t,state:s,set:r,lost:i,refused:o,link:a,waiting:l}){return(0,n.jsxs)("li",{className:"flex gap-3 text-[13px] leading-relaxed",children:[(0,n.jsx)(ew,{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,eh.cn)("done"===s||"later"===s?"text-muted-foreground/60 **:text-inherit":"text-muted-foreground"),children:t.body}),(0,n.jsx)(eN,{slot:t.slot,state:s,set:r,lost:i,refused:o,link:a,waiting:l})]})]})}function ew({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)(a.Check,{className:"size-3"})}):(0,n.jsx)("span",{className:(0,eh.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,eh.cn)(eh.WAITING_INK,"ring-waiting/40"):"text-muted-foreground ring-border/60","later"===t&&"opacity-60"),children:e})}function eN({slot:e,state:t,set:s,lost:r,refused:i,link:o,waiting:a}){let l=a&&(0,n.jsx)(el.ShinyText,{text:"Waiting for your first message…",tone:"waiting"});return"later"===t?null:e&&"key"in e?(0,n.jsx)(eE,{configKey:e.key,looks:e.looks,set:s,lost:r,refused:i}):"done"===t?e&&"says"in e&&o?(0,n.jsx)(eC,{href:o,children:e.does??eA(o)}):null:e?"open"in e?(0,n.jsx)(eC,{href:e.open,children:e.label}):"manifest"in e?(0,n.jsx)(eM,{}):o?(0,n.jsxs)("div",{className:"space-y-2.5",children:[(0,n.jsx)(eS,{link:o,says:e.says,does:e.does}),l]}):l||null:l||null}function eS({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:o=1}={},a="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);Q(Number.parseInt(e.substring(t,t+s),10),3*s+1,n),t+=s}return new Z(J,e.length,n)}(e)];return(n=e,U.test(n))?[function(e){var t;let n;if(t=e,!U.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*G.indexOf(e.charAt(n));Q(t+=G.indexOf(e.charAt(n+1)),11,s)}return n<e.length&&Q(G.indexOf(e.charAt(n)),6,s),new Z(ee,e.length,s)}(e)]:[es(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)?[es(e)]:void 0;if(!a)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 o,a;if(!(1<=n&&n<=s&&s<=40)||r<-1||r>7)throw RangeError("Invalid value");for(o=n;;o++){let n=8*ei(o,t),r=function(e,t){let n=0;for(let s of e){let e=en(s.mode,t);if(s.numChars>=1<<e)return 1/0;n+=4+e+s.bitData.length}return n}(e,o);if(r<=n){a=r;break}if(o>=s)throw RangeError("Data too long")}for(let e of[B,L,q])i&&a<=8*ei(o,e)&&(t=e);let l=[];for(let t of e)for(let e of(Q(t.mode[0],4,l),Q(t.numChars,en(t.mode,o),l),t.getData()))l.push(e);let d=8*ei(o,t);Q(0,Math.min(4,d-l.length),l),Q(0,(8-l.length%8)%8,l);for(let e=236;l.length<d;e^=253)Q(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 V(o,t,c,r)}(a,H[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=O.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},o)}(e),o=eA(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 ${o} 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)(eC,{href:e,children:s??o})]})]})}let eA=e=>e.replace(/^https:\/\//,"");function eC({href:e,children:t}){return(0,n.jsxs)("a",{href:e,target:"_blank",rel:"noreferrer",className:(0,eh.cn)((0,k.buttonVariants)({variant:"outline",size:"sm"})),children:[(0,n.jsx)($.ExternalLink,{}),t]})}function eE({configKey:e,looks:t,set:s,lost:r,refused:i}){let[o,a]=(0,p.useState)(""),[l,d]=(0,p.useState)(!1),{data:c}=(0,eu.useServerRoute)(y.queryKey.config),u=(0,K.isConfigFromEnv)(c,e),h=()=>{a(""),d(!1),(0,eu.revalidate)(y.queryKey.config),(0,eu.revalidate)(y.queryKey.reach)},[f,m]=(0,ec.useServerAction)(T.setConfigAction,{onOk:h}),[g,x]=(0,ec.useServerAction)(P,{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})&&g(e)};return u?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"max-w-xl text-muted-foreground",children:(0,K.envWords)(K.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)(k.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(),f(e,o)},children:[(0,n.jsx)(v.Input,{value:o,onChange:e=>a(e.target.value),placeholder:t,"aria-label":"Token",type:"password",autoComplete:"off",spellCheck:!1,className:"w-72 font-mono"}),(0,n.jsx)(k.Button,{type:"submit",size:"sm",loading:m,disabled:o.trim().length<S.KEY_MIN,children:s?"Replace":"Save"}),(s||r)&&(0,n.jsxs)(n.Fragment,{children:[null===i&&(0,n.jsx)(k.Button,{size:"sm",variant:"ghost",onClick:()=>d(!1),children:"Cancel"}),(0,n.jsx)(k.Button,{size:"sm",variant:"ghost",loading:x,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 eM(){let[e,t]=(0,p.useState)(!1);return(0,n.jsxs)(k.Button,{size:"sm",variant:"outline",onClick:()=>void navigator.clipboard.writeText(ex).then(()=>{t(!0),setTimeout(()=>t(!1),2e3)}),children:[e?(0,n.jsx)(a.Check,{}):(0,n.jsx)(_.Copy,{}),e?"Copied":"Copy the manifest"]})}function eI({name:e,who:t,stopped:s}){let[r,i]=(0,ec.useServerAction)(ef,{onOk:()=>(0,eu.revalidate)(y.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)(k.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 eR={[K.EXA_API_KEY]:g.Search},eF={image:f.Image,video:u,speech:i.AudioLines,transcription:o.Captions},ez={keys:["voice","easy","text","search"],models:["bots","studio"]};function eP({screen:e}){let{data:t,isLoading:s,error:r}=(0,eu.useServerRoute)(y.queryKey.config),i=(0,F.useVoiceLine)();if(s)return(0,n.jsx)(ed.SettingSkeleton,{rows:4});if(r)return(0,n.jsx)(ed.SettingError,{message:r.message});let o=e=>(0,K.isConfigSet)(t,e),a=e=>(0,K.isConfigUnreadable)(t,e),l=e=>(0,K.isConfigFromEnv)(t,e),d=e=>(0,K.groupSatisfied)(e,e.id===K.VOICE_GROUP_ID?i.countsForCall:o),c=e=>t?.find(t=>t.key===e)?.value,u=ez[e].flatMap(e=>K.CONFIG_GROUPS.find(t=>t.id===e)??[]),h=u.filter(e=>"keys"===e.section).flatMap(e=>e.entries),f=h.filter(e=>a(e.key)).length;return(0,n.jsx)(ed.SettingScreen,{footer:(0,n.jsx)(ed.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=>o(e.key)).length} of ${h.length} set${f?` \xb7 ${f} 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)(ed.SettingGroup,{label:e.title,hint:e.hint,right:(0,n.jsx)(eK,{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)(e_,{card:!0,entry:e,set:o(e.key),lost:a(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)(eT,{entry:e,set:o(e.key),lost:a(e.key),env:l(e.key)},e.key))}):(0,n.jsx)(ed.SettingItems,{children:e.entries.map(t=>t.effortOf?null:t.choices?(0,n.jsx)(eY,{entry:t,choices:t.choices,value:c(t.key),effort:eV(e,t.key),effortValue:c(K.DEFAULT_EFFORT_KEY)},t.key):(0,n.jsx)(e_,{entry:t,set:o(t.key),lost:a(t.key),env:l(t.key)},t.key))})},e.id))})}function eT({entry:e,set:t,lost:s,env:r}){return(0,n.jsxs)("button",{type:"button",onClick:()=>eX(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)(eW,{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)(a.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,eh.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 eK({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)(a.Check,{className:"size-3"}),"ready"]}):(0,n.jsxs)("span",{className:(0,eh.cn)("flex items-center gap-1 font-mono text-[11px]",eh.WAITING_INK),children:[(0,n.jsx)(x.TriangleAlert,{className:"size-3"}),e.note??"Required"]})}function e_({entry:e,set:t,lost:s,env:r,card:i=!1,narrow:o=!1}){let d=eB(e,t),c=eq(e,t),u=eL(e,t),h=c.data?eH(c.data):eO(t,d.data,e.signIn,s,r),f=d.isLoading||c.isLoading,m=(0,n.jsxs)("span",{className:(0,eh.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)(a.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)(eQ,{entry:s,onDone:e})})):eX(e,t)},className:(0,eh.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)(eW,{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)(eU,{usage:c.data,plan:u})]}),o?f?(0,n.jsx)(N.Skeleton,{className:"h-3 w-20"}):m:(0,n.jsx)("span",{className:"block truncate font-mono text-xs text-muted-foreground",children:e.signIn?t?eD(c.data)??"signed in":"sign in with your account":e.key}),e.signIn&&t&&c.data&&(0,n.jsx)(eG,{usage:c.data})]}),o?null:f?(0,n.jsx)(N.Skeleton,{className:"h-3 w-20 shrink-0"}):m,(0,n.jsx)(l.ChevronRight,{className:"size-4 shrink-0 text-muted-foreground/60 transition-colors group-hover:text-foreground"})]})}let e$=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"});function eO(e,t,n,s=!1,r=!1){var i,o,a;let l=function(e,t,n,s=!1){return!e&&s?{text:n?"Sign in again":"Enter again",ink:eh.WAITING_INK,warn:!0}:e?t?"refused"in t?{text:"Key refused",ink:"text-destructive",warn:!0}:{text:`${e$.format(t.balance)} left`,ink:t.low?eh.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/60",warn:!1}}(e,t,n,s);return e?(i=l,o=r,a=!!t,o?a?{...i,text:`${i.text} \xb7 env`}:{...i,text:"Set in env"}:i):l}function eB(e,t){return(0,eu.useServerRoute)(t&&(0,I.isCatalogProvider)(e.provider)?y.queryKey.keyCredits(e.provider):null)}function eL(e,t){let{data:n}=(0,eu.useServerRoute)(t&&e.signIn?y.queryKey.llmModel:null);return n?.find(t=>t.id===e.provider)?.plan??null}function eq(e,t){return(0,eu.useServerRoute)(t&&e.signIn?y.queryKey.subscriptionUsage:null)}function eH(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?eh.WAITING_INK:"text-muted-foreground",warn:e.high}}function eD(e){let t=!e||"refused"in e?null:e;return t?.resetsAt?`resets in ${(0,s.formatDistanceToNowStrict)(new Date(t.resetsAt))}`:null}function eU({usage:e,plan:t}){let s=(0,I.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 eG({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,eh.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 eW({entry:e}){if(e.provider)return(0,n.jsx)(M.ProviderIcon,{provider:e.provider,className:"size-4"});let t=eR[e.key]??m.KeyRound,s=(0,n.jsx)(t,{className:"size-4 text-muted-foreground"});return e.site?(0,n.jsx)(w.SiteIcon,{host:e.site,className:"size-4 rounded-[4px]",fallback:s}):s}function eY({entry:e,choices:t,value:s,effort:r,effortValue:i}){let o=e.text?(0,I.parseTextModel)(s):(0,I.parseMediaModel)(s),{data:a}=(0,eu.useServerRoute)(e.text&&!s&&y.queryKey.automaticModel),{data:l}=(0,eu.useServerRoute)(e.kind&&!s&&y.queryKey.llmModel),d=l?.find(e=>e.signIn),c=e.kind&&!s?(0,I.planMediaOf)(e.kind,d?.hasKey?{plan:d.plan??null}:null):null,u=e.kind?eF[e.kind]:R.BotsMark,[h]=(0,ec.useServerAction)(T.setConfigAction,{onOk:()=>{(0,eu.revalidate)(y.queryKey.config),(0,eu.revalidate)(y.queryKey.automaticModel)}}),[f]=(0,ec.useServerAction)(P,{onOk:()=>{(0,eu.revalidate)(y.queryKey.config),(0,eu.revalidate)(y.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,eh.cn)("shrink-0 rounded-[5px] border border-border/60 px-1 font-mono text-[10px]",e.kind&&!c?eh.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)(E.ModelPicker,{kind:e.kind,provider:o?.provider??null,model:o?.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}`}(a,t),onChange:t=>h(e.key,`${t.provider}/${t.model.trim()}`),onUnset:s?()=>{f(e.key),r&&i&&f(r.key)}:void 0})}),r&&o&&(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)(C.EffortSwitch,{provider:o.provider,model:o.model,value:I.effortSchema.safeParse(i).data??null,onChange:e=>e?h(r.key,e):f(r.key)})]})]})]})]})}let eV=(e,t)=>e.entries.find(e=>e.effortOf===t);function eQ({entry:e,onDone:t}){let{data:s}=(0,eu.useServerRoute)(y.queryKey.config),r=(0,K.isConfigSet)(s,e.key),i=(0,K.isConfigUnreadable)(s,e.key),o=(0,K.isConfigFromEnv)(s,e.key),a=eL(e,r),l=eq(e,r),d=l.data?eH(l.data):null,[c,u]=(0,ec.useServerAction)(P,{okMessage:`Signed out of ${e.label}`,onOk:()=>{(0,eu.revalidate)(y.queryKey.config),(0,eu.revalidate)(y.queryKey.llmModel),t()}});return(0,n.jsx)(ed.SettingDialogContent,{title:e.label,description:r?(0,n.jsxs)(n.Fragment,{children:["Signed in ",(0,n.jsx)(eU,{usage:l.data,plan:a}),eD(l.data)&&(0,n.jsxs)(n.Fragment,{children:[" · ",(0,n.jsx)("span",{className:"font-mono",children:eD(l.data)})]}),d&&(0,n.jsxs)(n.Fragment,{children:[" · ",(0,n.jsx)("span",{className:(0,eh.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)&&!o&&(0,n.jsx)(k.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)(k.Button,{variant:"ghost",onClick:t,children:r?"Close":"Cancel"}),!r&&(0,n.jsx)(A.ChatGptSignIn,{})]}),children:(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(ed.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)(ed.SettingNote,{className:"wrap-break-word text-destructive",children:l.data.refused}),i&&(0,n.jsx)(ed.SettingNote,{className:(0,eh.cn)("wrap-break-word",eh.WAITING_INK),children:(0,K.lostWords)("The sign-in saved here","Sign in again.")}),o&&(0,n.jsx)(ed.SettingNote,{className:"wrap-break-word",children:(0,K.envWords)(e.label)})]})})}function eX(e,t){return j.notify.component({className:"sm:max-w-md",renderer:({close:s})=>(0,n.jsx)(eZ,{entry:e,set:t,onDone:s})})}function eZ({entry:e,set:t,onDone:s}){let[i,o]=(0,p.useState)(""),{data:a}=(0,eu.useServerRoute)(y.queryKey.config),l=a?(0,K.isConfigSet)(a,e.key):t,d=(0,K.isConfigUnreadable)(a,e.key),c=(0,K.isConfigFromEnv)(a,e.key),{data:u}=eB(e,l),h=u?eO(l,u):null,f=()=>{(0,eu.revalidate)(y.queryKey.config),(0,eu.revalidate)(y.queryKey.llmModel)},[m,g]=(0,ec.useServerAction)(T.setConfigAction,{okMessage:`${e.label} key saved`,onOk:()=>{f(),s()}}),[x,b]=(0,ec.useServerAction)(P,{okMessage:`${e.label} key removed`,onOk:()=>{f(),s()}}),w=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})&&x(e.key)};return(0,n.jsx)(ed.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,eh.cn)("font-mono",h.ink),children:h.text})]})]}),footer:c?(0,n.jsx)(k.Button,{onClick:s,children:"Close"}):(0,n.jsxs)(n.Fragment,{children:[(l||d)&&(0,n.jsx)(k.Button,{variant:"ghost",loading:b,onClick:()=>void w(),className:"mr-auto text-destructive hover:text-destructive",children:"Remove"}),(0,n.jsx)(k.Button,{variant:"ghost",onClick:s,children:"Cancel"}),(0,n.jsx)(k.Button,{loading:g,disabled:i.trim().length<S.KEY_MIN,onClick:()=>m(e.key,i),children:l?"Replace":"Save"})]}),children:(0,n.jsxs)("div",{className:"space-y-2",children:[c?(0,n.jsx)(ed.SettingNote,{className:"wrap-break-word",children:(0,K.envWords)(e.label)}):(0,n.jsx)(v.Input,{value:i,onChange:e=>o(e.target.value),onKeyDown:t=>{"Enter"===t.key&&i.trim().length>=S.KEY_MIN&&m(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)(ed.SettingNote,{className:"wrap-break-word text-destructive",children:u.refused}),d&&(0,n.jsx)(ed.SettingNote,{className:(0,eh.cn)("wrap-break-word",eh.WAITING_INK),children:(0,K.lostWords)("The key saved here","Paste it again.")})]})})}e.s(["AccountsSetup",0,function({withoutVoice:e=!1}){let{data:t}=(0,eu.useServerRoute)(y.queryKey.config),s=e=>(0,K.isConfigSet)(t,e),r=e=>(0,K.isConfigUnreadable)(t,e),i=e=>(0,K.isConfigFromEnv)(t,e),o=e=>K.CONFIG_GROUPS.find(t=>t.id===e)?.entries??[],[a,l]=(0,p.useState)(!1),d=o("voice"),c=[...d,...o("text")],u=c.filter((t,n)=>(n<4||s(t.key))&&!(e&&d.includes(t))),f=c.filter(t=>!u.includes(t)&&!(e&&d.includes(t)));return(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsx)("div",{className:"flex flex-col gap-2",children:o("easy").map(e=>(0,n.jsx)(e_,{card:!0,narrow:!0,entry:e,set:s(e.key),lost:r(e.key),env:i(e.key)},e.key))}),(0,n.jsxs)("div",{className:"flex flex-wrap gap-y-2.5",children:[u.map(e=>(0,n.jsx)(eT,{entry:e,set:s(e.key),lost:r(e.key),env:i(e.key)},e.key)),f.length>0&&(0,n.jsxs)(b.Popover,{open:a,onOpenChange:l,children:[(0,n.jsxs)(b.PopoverTrigger,{"aria-label":`${f.length} more providers`,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.jsx)("span",{className:"grid size-10.5 place-items-center rounded-[13px] bg-muted/60 text-muted-foreground transition-colors group-hover:bg-muted",children:(0,n.jsx)(h.default,{className:"size-4"})}),(0,n.jsx)("span",{className:"text-[11px] text-muted-foreground",children:"More"})]}),(0,n.jsx)(b.PopoverContent,{align:"end",className:"w-78 flex-row flex-wrap gap-0 gap-y-2.5 rounded-2xl p-2.5",onClick:()=>l(!1),children:f.map(e=>(0,n.jsx)(eT,{entry:e,set:s(e.key),lost:r(e.key),env:i(e.key)},e.key))})]})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)("p",{className:"font-mono text-[11px] text-muted-foreground/70",children:"Web search, if you want it: without a key, a bot searches only when its own model can."}),o("search").map(e=>(0,n.jsx)(e_,{card:!0,narrow:!0,entry:e,set:s(e.key),lost:r(e.key),env:i(e.key)},e.key))]})]})},"KeysSetting",0,()=>(0,n.jsx)(eP,{screen:"keys"}),"ModelsSetting",0,()=>(0,n.jsx)(eP,{screen:"models"}),"PhoneSetting",0,()=>(0,n.jsx)(ed.SettingScreen,{footer:(0,n.jsx)(ed.SettingRailNote,{children:"Nothing on this computer is opened to the internet: the app asks the chat service what was written."}),children:(0,n.jsx)(ek,{})}),"PlanBadge",0,eU],805995)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,4300,t=>{"use strict";var s=t.i(95187);let a=(0,s.createServerReference)("7f329c6ce9546b9bbe43207116dfc1130f75e5a292",s.callServer,void 0,s.findSourceMapURL,"setSignInBotAction");t.s(["setSignInBotAction",0,a])},516690,t=>{t.v(s=>Promise.all(["static/chunks/0teeo9xl5wnnq.js"].map(s=>t.l(s))).then(()=>s(395360)))},274435,t=>{t.v(s=>Promise.all(["static/chunks/1wiw0gk7-qp8i.js"].map(s=>t.l(s))).then(()=>s(249740)))},796339,t=>{t.v(s=>Promise.all(["static/chunks/0w_ja4ciemrbk.js"].map(s=>t.l(s))).then(()=>s(948115)))},196546,t=>{t.v(s=>Promise.all(["static/chunks/3zx2nr3-vl_eh.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(365711)))},60308,t=>{t.v(s=>Promise.all(["static/chunks/18ov-ugtitlq2.js","static/chunks/1ozmtvibzzync.js","static/chunks/0iowzpfymsgpq.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(148707)))},608734,t=>{t.v(s=>Promise.all(["static/chunks/0p3bmx6ek0qp8.js"].map(s=>t.l(s))).then(()=>s(398778)))},902952,t=>{t.v(s=>Promise.all(["static/chunks/0q82iw85zo1m8.js"].map(s=>t.l(s))).then(()=>s(262053)))},814026,t=>{t.v(s=>Promise.all(["static/chunks/1txgr9-t0s4je.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(922608)))},210042,t=>{t.v(s=>Promise.all(["static/chunks/1qwswx0hjsw00.js"].map(s=>t.l(s))).then(()=>s(894523)))},327701,t=>{t.v(s=>Promise.all(["static/chunks/0r5gq9qo4arwu.js"].map(s=>t.l(s))).then(()=>s(641837)))},864940,t=>{t.v(s=>Promise.all(["static/chunks/0r3z95rc2ypfx.js"].map(s=>t.l(s))).then(()=>s(730184)))},581996,t=>{t.v(s=>Promise.all(["static/chunks/0t5b3chki_9fl.js"].map(s=>t.l(s))).then(()=>s(625004)))},185223,t=>{t.v(s=>Promise.all(["static/chunks/2g-myvn_f_a_4.js","static/chunks/16vtcomz233wa.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/31rpioh8q87-5.js"].map(s=>t.l(s))).then(()=>s(484803)))},577689,t=>{t.v(s=>Promise.all(["static/chunks/0-mnxu8ow6er0.js"].map(s=>t.l(s))).then(()=>s(401885)))},887861,t=>{t.v(s=>Promise.all(["static/chunks/05m1q2yic6i_6.js"].map(s=>t.l(s))).then(()=>s(545199)))},769047,t=>{t.v(s=>Promise.all(["static/chunks/0n7sj9xm17ln0.js"].map(s=>t.l(s))).then(()=>s(135626)))},566005,t=>{t.v(s=>Promise.all(["static/chunks/20p5cex0-ilx3.js"].map(s=>t.l(s))).then(()=>s(532400)))},64129,t=>{t.v(s=>Promise.all(["static/chunks/1hoe492g5-o2q.js"].map(s=>t.l(s))).then(()=>s(770767)))},686785,t=>{t.v(s=>Promise.all(["static/chunks/40epaf180rm_o.js"].map(s=>t.l(s))).then(()=>s(770913)))},234475,t=>{t.v(s=>Promise.all(["static/chunks/3v2r9tkahr03c.js"].map(s=>t.l(s))).then(()=>s(427540)))},273197,t=>{t.v(s=>Promise.all(["static/chunks/26elp1iu9_rfo.js"].map(s=>t.l(s))).then(()=>s(574536)))},184291,t=>{t.v(s=>Promise.all(["static/chunks/3y2yeb8hqhgma.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2-ohkulfwwqkp.js"].map(s=>t.l(s))).then(()=>s(294139)))},254810,t=>{t.v(s=>Promise.all(["static/chunks/31srg3-v_-3ex.js"].map(s=>t.l(s))).then(()=>s(124527)))},715630,t=>{t.v(s=>Promise.all(["static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(39516)))},721406,t=>{t.v(s=>Promise.all(["static/chunks/251ctc7y-p1x6.js"].map(s=>t.l(s))).then(()=>s(55582)))},928418,t=>{t.v(s=>Promise.all(["static/chunks/3svu996x25pgh.js"].map(s=>t.l(s))).then(()=>s(324330)))},496018,t=>{t.v(s=>Promise.all(["static/chunks/10a6xv-y_2nwl.js","static/chunks/36oxg-33dy_jz.js"].map(s=>t.l(s))).then(()=>s(944027)))},268805,t=>{t.v(s=>Promise.all(["static/chunks/3xpdaet8dw9x9.js"].map(s=>t.l(s))).then(()=>s(732548)))},885670,t=>{t.v(s=>Promise.all(["static/chunks/1ctnkqxh0n4u3.js"].map(s=>t.l(s))).then(()=>s(218663)))},850277,t=>{t.v(s=>Promise.all(["static/chunks/28t2bvti86a67.js"].map(s=>t.l(s))).then(()=>s(774228)))},608435,t=>{t.v(s=>Promise.all(["static/chunks/2urfmi-h-efgc.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(183824)))},677655,t=>{t.v(s=>Promise.all(["static/chunks/07o4ns4nqda4i.js"].map(s=>t.l(s))).then(()=>s(773966)))},393919,t=>{t.v(s=>Promise.all(["static/chunks/1-vnisuyudqdj.js"].map(s=>t.l(s))).then(()=>s(135921)))},499510,t=>{t.v(s=>Promise.all(["static/chunks/34asi35tmks9s.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(694693)))},314583,t=>{t.v(s=>Promise.all(["static/chunks/368hf3scqy9et.js"].map(s=>t.l(s))).then(()=>s(694899)))},138305,t=>{t.v(s=>Promise.all(["static/chunks/02cmf-0vz-j0l.js"].map(s=>t.l(s))).then(()=>s(98254)))},162895,t=>{t.v(s=>Promise.all(["static/chunks/446dwbh9a1brd.js","static/chunks/2ro2w2784zwl0.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(750497)))},715822,t=>{t.v(s=>Promise.all(["static/chunks/45c7xyr85-p84.js","static/chunks/1vpp0zxc5amhf.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(276426)))},156548,t=>{t.v(s=>Promise.all(["static/chunks/1px0m_9u11val.js"].map(s=>t.l(s))).then(()=>s(804440)))},68853,t=>{t.v(s=>Promise.all(["static/chunks/04kziyzzvkmhl.js"].map(s=>t.l(s))).then(()=>s(174708)))},508072,t=>{t.v(s=>Promise.all(["static/chunks/1fw3www6hshi2.js"].map(s=>t.l(s))).then(()=>s(717147)))},379420,t=>{t.v(s=>Promise.all(["static/chunks/07fixed86aya_.js"].map(s=>t.l(s))).then(()=>s(517328)))},901081,t=>{t.v(s=>Promise.all(["static/chunks/2sj3ymj88_zus.js"].map(s=>t.l(s))).then(()=>s(820123)))},732086,t=>{t.v(s=>Promise.all(["static/chunks/0n0bzpsdtg893.js"].map(s=>t.l(s))).then(()=>s(293222)))},8814,t=>{t.v(s=>Promise.all(["static/chunks/16zbzmvpg2ww4.js"].map(s=>t.l(s))).then(()=>s(333824)))},706010,t=>{t.v(s=>Promise.all(["static/chunks/0s54dho0z8p6j.js"].map(s=>t.l(s))).then(()=>s(258271)))},611671,t=>{t.v(s=>Promise.all(["static/chunks/2_jhl4ez3w5lm.js"].map(s=>t.l(s))).then(()=>s(612944)))},499264,t=>{t.v(s=>Promise.all(["static/chunks/0f4x882qymosc.js"].map(s=>t.l(s))).then(()=>s(289460)))},964927,t=>{t.v(s=>Promise.all(["static/chunks/09k-wbu71lfrt.js"].map(s=>t.l(s))).then(()=>s(551327)))},86855,t=>{t.v(s=>Promise.all(["static/chunks/1dd6qzaoby04o.js"].map(s=>t.l(s))).then(()=>s(12522)))},955357,t=>{t.v(s=>Promise.all(["static/chunks/34678qecnnj_h.js"].map(s=>t.l(s))).then(()=>s(217285)))},40814,t=>{t.v(s=>Promise.all(["static/chunks/3paqvl_z7hv3n.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(164704)))},534593,t=>{t.v(s=>Promise.all(["static/chunks/0_lh4_g7vdhq1.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(805100)))},80402,t=>{t.v(s=>Promise.all(["static/chunks/3qum31hte42y1.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(709757)))},659962,t=>{t.v(s=>Promise.all(["static/chunks/1u8j3eb8for0y.js"].map(s=>t.l(s))).then(()=>s(563571)))},655306,t=>{t.v(s=>Promise.all(["static/chunks/3qlz6dwx-4wpg.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3tq8wpaa3ie4_.js","static/chunks/31rpioh8q87-5.js","static/chunks/2six92-4e054u.js","static/chunks/2ro2w2784zwl0.js"].map(s=>t.l(s))).then(()=>s(24609)))},379291,t=>{t.v(s=>Promise.all(["static/chunks/16ya3783k-z1s.js"].map(s=>t.l(s))).then(()=>s(329263)))},56334,t=>{t.v(s=>Promise.all(["static/chunks/0u__wtz-jozok.js"].map(s=>t.l(s))).then(()=>s(970013)))},955953,t=>{t.v(s=>Promise.all(["static/chunks/1jz5jakghqd9v.js"].map(s=>t.l(s))).then(()=>s(274265)))},372286,t=>{t.v(s=>Promise.all(["static/chunks/2jhadmpmcpdrj.js"].map(s=>t.l(s))).then(()=>s(146027)))},709599,t=>{t.v(s=>Promise.all(["static/chunks/2tfc-naqg7z-u.js","static/chunks/319502xf-tnxv.js"].map(s=>t.l(s))).then(()=>s(774293)))},417187,t=>{t.v(s=>Promise.all(["static/chunks/319502xf-tnxv.js"].map(s=>t.l(s))).then(()=>s(363400)))},106583,t=>{t.v(s=>Promise.all(["static/chunks/28-z_wt6ndz-b.js"].map(s=>t.l(s))).then(()=>s(576577)))},600350,t=>{t.v(s=>Promise.all(["static/chunks/3hwj-0h-0-lla.js"].map(s=>t.l(s))).then(()=>s(823068)))},718592,t=>{t.v(s=>Promise.all(["static/chunks/00uuedu6-4dre.js"].map(s=>t.l(s))).then(()=>s(129659)))},964292,t=>{t.v(s=>Promise.all(["static/chunks/10jgwafb21-7w.js"].map(s=>t.l(s))).then(()=>s(961451)))},251227,t=>{t.v(s=>Promise.all(["static/chunks/3_8v942h1s07y.js"].map(s=>t.l(s))).then(()=>s(869943)))},781674,t=>{t.v(s=>Promise.all(["static/chunks/0uud_z0v566uf.js"].map(s=>t.l(s))).then(()=>s(143691)))},765886,t=>{t.v(s=>Promise.all(["static/chunks/3mk3dcnt98mri.js"].map(s=>t.l(s))).then(()=>s(640067)))},643635,t=>{t.v(s=>Promise.all(["static/chunks/0ftzs9_34hr49.js"].map(s=>t.l(s))).then(()=>s(118337)))},469752,t=>{t.v(s=>Promise.all(["static/chunks/0qo6w-wynmd7q.js"].map(s=>t.l(s))).then(()=>s(598277)))},220210,t=>{t.v(s=>Promise.all(["static/chunks/43x-wo-t6g20f.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(872516)))},952204,t=>{t.v(s=>Promise.all(["static/chunks/2qqx13x1_na_q.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(405817)))},615932,t=>{t.v(s=>Promise.all(["static/chunks/2nuuq6y_mebd9.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(238102)))},846517,t=>{t.v(s=>Promise.all(["static/chunks/22e7k4k061g55.js"].map(s=>t.l(s))).then(()=>s(289319)))},334810,t=>{t.v(s=>Promise.all(["static/chunks/17pegra88jm_q.js"].map(s=>t.l(s))).then(()=>s(466502)))},518233,t=>{t.v(s=>Promise.all(["static/chunks/2e7ddq5vayqre.js"].map(s=>t.l(s))).then(()=>s(902077)))},527502,t=>{t.v(s=>Promise.all(["static/chunks/0vuwq9sa14vne.js","static/chunks/3tq8wpaa3ie4_.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/31rpioh8q87-5.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(564011)))},783131,t=>{t.v(s=>Promise.all(["static/chunks/324t9a-cp4u8q.js"].map(s=>t.l(s))).then(()=>s(394796)))},866363,t=>{t.v(s=>Promise.all(["static/chunks/17tgaro217rkw.js","static/chunks/3v4h-8da4l5p7.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(416128)))},936482,t=>{t.v(s=>Promise.all(["static/chunks/38lhx55kr9dl6.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(23141)))},219104,t=>{t.v(s=>Promise.all(["static/chunks/1jbxee7jz6bbc.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(892708)))},982274,t=>{t.v(s=>Promise.all(["static/chunks/0_9ky7_0gqp29.js"].map(s=>t.l(s))).then(()=>s(375491)))},843593,t=>{t.v(s=>Promise.all(["static/chunks/1niiwgkyydxzm.js"].map(s=>t.l(s))).then(()=>s(462002)))},392582,t=>{t.v(s=>Promise.all(["static/chunks/21xei27jfzp7x.js"].map(s=>t.l(s))).then(()=>s(40781)))},32395,t=>{t.v(s=>Promise.all(["static/chunks/16hinmy0f-glt.js"].map(s=>t.l(s))).then(()=>s(609979)))},336975,t=>{t.v(s=>Promise.all(["static/chunks/0zgg9c0-wj935.js"].map(s=>t.l(s))).then(()=>s(563498)))},736812,t=>{t.v(s=>Promise.all(["static/chunks/3uf4bpnwlk9hu.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(662407)))},615475,t=>{t.v(s=>Promise.all(["static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(346619)))},722332,t=>{t.v(s=>Promise.all(["static/chunks/1zse9_sq278z3.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1ebo_riinwqq8.js","static/chunks/31rpioh8q87-5.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(679394)))},77996,t=>{t.v(s=>Promise.all(["static/chunks/1u06mkqc8lt5y.js","static/chunks/31rpioh8q87-5.js","static/chunks/3tq8wpaa3ie4_.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(546754)))},412671,t=>{t.v(s=>Promise.all(["static/chunks/2id4c69a8l7tw.js"].map(s=>t.l(s))).then(()=>s(788619)))},98975,t=>{t.v(s=>Promise.all(["static/chunks/1k3nt_5za2_5v.js"].map(s=>t.l(s))).then(()=>s(894666)))},221794,t=>{t.v(s=>Promise.all(["static/chunks/0ju2q95btugv1.js"].map(s=>t.l(s))).then(()=>s(904077)))},712237,t=>{t.v(s=>Promise.all(["static/chunks/1oyr1d-wo_dr-.js"].map(s=>t.l(s))).then(()=>s(251070)))},25004,t=>{t.v(s=>Promise.all(["static/chunks/1ggeg-sqe8ngu.js"].map(s=>t.l(s))).then(()=>s(388943)))},792799,t=>{t.v(s=>Promise.all(["static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(122952)))},300535,t=>{t.v(s=>Promise.all(["static/chunks/1xlbhszlykr4p.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(776627)))},299868,t=>{t.v(s=>Promise.all(["static/chunks/335-38r54vx4c.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(313300)))},692658,t=>{t.v(s=>Promise.all(["static/chunks/39sp7w7wcwxjl.js"].map(s=>t.l(s))).then(()=>s(866695)))},145390,t=>{t.v(s=>Promise.all(["static/chunks/0kmw809wgqjkq.js"].map(s=>t.l(s))).then(()=>s(948742)))},459901,t=>{t.v(s=>Promise.all(["static/chunks/0z36xjjyl3kid.js"].map(s=>t.l(s))).then(()=>s(75400)))},844018,t=>{t.v(s=>Promise.all(["static/chunks/2t-fmsms_i3sr.js"].map(s=>t.l(s))).then(()=>s(380021)))},932597,t=>{t.v(s=>Promise.all(["static/chunks/3a7qna12wpg2h.js"].map(s=>t.l(s))).then(()=>s(45900)))},386493,t=>{t.v(s=>Promise.all(["static/chunks/3xcqoeizdjzn2.js"].map(s=>t.l(s))).then(()=>s(398160)))},287672,t=>{t.v(s=>Promise.all(["static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(823760)))},148045,t=>{t.v(s=>Promise.all(["static/chunks/36oxg-33dy_jz.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/2ro2w2784zwl0.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3_ue_94qji2lm.js"].map(s=>t.l(s))).then(()=>s(134812)))},704538,t=>{t.v(s=>Promise.all(["static/chunks/1crpy7f655-f-.js","static/chunks/29kou1oqg257y.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/36oxg-33dy_jz.js","static/chunks/31rpioh8q87-5.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2ro2w2784zwl0.js","static/chunks/1ozmtvibzzync.js","static/chunks/2six92-4e054u.js","static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(398122)))},522051,t=>{t.v(s=>Promise.all(["static/chunks/1t8ujmkza6s35.js"].map(s=>t.l(s))).then(()=>s(281694)))},278014,t=>{t.v(s=>Promise.all(["static/chunks/1c0t4bkzgxkho.js"].map(s=>t.l(s))).then(()=>s(376175)))},511938,t=>{t.v(s=>Promise.all(["static/chunks/2n0e6pbzr1vhc.js"].map(s=>t.l(s))).then(()=>s(251031)))},382697,t=>{t.v(s=>Promise.all(["static/chunks/3_3mt55_s_8nf.js","static/chunks/0w75738j7k0f7.js"].map(s=>t.l(s))).then(()=>s(906106)))},106774,t=>{t.v(s=>Promise.all(["static/chunks/2-0-eka22mzly.js"].map(s=>t.l(s))).then(()=>s(548052)))},657069,t=>{t.v(s=>Promise.all(["static/chunks/3ia1uy-ta-wwx.js"].map(s=>t.l(s))).then(()=>s(315754)))},133954,t=>{t.v(s=>Promise.all(["static/chunks/35w79dw14-r51.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(411335)))},969445,t=>{t.v(s=>Promise.all(["static/chunks/3ma22p0pjm53-.js"].map(s=>t.l(s))).then(()=>s(233218)))},532210,t=>{t.v(s=>Promise.all(["static/chunks/1t4tz6qnsit4z.js"].map(s=>t.l(s))).then(()=>s(127844)))},917136,t=>{t.v(s=>Promise.all(["static/chunks/20i3ov2af4zvh.js"].map(s=>t.l(s))).then(()=>s(499412)))},147287,t=>{t.v(s=>Promise.all(["static/chunks/3oyixq96_fa_z.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(950510)))},298173,t=>{t.v(s=>Promise.all(["static/chunks/38rdxmvrwtp57.js"].map(s=>t.l(s))).then(()=>s(372302)))},418877,t=>{t.v(s=>Promise.all(["static/chunks/3pzxtzd-vdn2f.js"].map(s=>t.l(s))).then(()=>s(377217)))},159142,t=>{t.v(s=>Promise.all(["static/chunks/2bk7wc4-ptm-c.js"].map(s=>t.l(s))).then(()=>s(274754)))},644609,t=>{t.v(s=>Promise.all(["static/chunks/13qtfpmkarvmt.js","static/chunks/0bp3uew85t0ry.js","static/chunks/3ia1uy-ta-wwx.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(76277)))},323845,t=>{t.v(s=>Promise.all(["static/chunks/29hqqnd781kvs.js"].map(s=>t.l(s))).then(()=>s(744344)))},367535,t=>{t.v(s=>Promise.all(["static/chunks/1j_bjoxgu91mc.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(635473)))},659189,t=>{t.v(s=>Promise.all(["static/chunks/1q28ddzt1afnq.js"].map(s=>t.l(s))).then(()=>s(857397)))},457619,t=>{t.v(s=>Promise.all(["static/chunks/3-06o0suuf1y4.js"].map(s=>t.l(s))).then(()=>s(368643)))},401626,t=>{t.v(s=>Promise.all(["static/chunks/151lx87jseoly.js"].map(s=>t.l(s))).then(()=>s(321142)))},524176,t=>{t.v(s=>Promise.all(["static/chunks/2asmzjaah8m8z.js"].map(s=>t.l(s))).then(()=>s(747044)))},205353,t=>{t.v(s=>Promise.all(["static/chunks/0hyz-d49g6v3x.js"].map(s=>t.l(s))).then(()=>s(518227)))},847969,t=>{t.v(s=>Promise.all(["static/chunks/1u6au-494n78m.js"].map(s=>t.l(s))).then(()=>s(990800)))},755902,t=>{t.v(s=>Promise.all(["static/chunks/2e150n34zc8g9.js"].map(s=>t.l(s))).then(()=>s(731026)))},272194,t=>{t.v(s=>Promise.all(["static/chunks/05-_p9k102i_g.js"].map(s=>t.l(s))).then(()=>s(874353)))},557638,t=>{t.v(s=>Promise.all(["static/chunks/0v_3gh96z3jaa.js"].map(s=>t.l(s))).then(()=>s(400936)))},47723,t=>{t.v(s=>Promise.all(["static/chunks/3dur64hdd_v7c.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(337476)))},446820,t=>{t.v(s=>Promise.all(["static/chunks/2v-fuc1wwaulc.js","static/chunks/2zxe_jdp_h7n8.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(181320)))},565220,t=>{t.v(s=>Promise.all(["static/chunks/2800ji7zpl6a7.js"].map(s=>t.l(s))).then(()=>s(775253)))},821908,t=>{t.v(s=>Promise.all(["static/chunks/0-a6206-r3j_8.js"].map(s=>t.l(s))).then(()=>s(265932)))},798543,t=>{t.v(s=>Promise.all(["static/chunks/2ovlkdbar4cl8.js"].map(s=>t.l(s))).then(()=>s(873456)))},953213,t=>{t.v(s=>Promise.all(["static/chunks/39upf2vnyk-xq.js"].map(s=>t.l(s))).then(()=>s(573095)))},357016,t=>{t.v(s=>Promise.all(["static/chunks/0jrnpgq-_qp2f.js"].map(s=>t.l(s))).then(()=>s(739360)))},144,t=>{t.v(s=>Promise.all(["static/chunks/273azq8ya_70t.js"].map(s=>t.l(s))).then(()=>s(834527)))},389188,t=>{t.v(s=>Promise.all(["static/chunks/1tcwgfbes5bur.js"].map(s=>t.l(s))).then(()=>s(292052)))},494584,t=>{t.v(s=>Promise.all(["static/chunks/2mgfqtimlpa2_.js"].map(s=>t.l(s))).then(()=>s(386104)))},590087,t=>{t.v(s=>Promise.all(["static/chunks/3rnj3hwd2gpl1.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(362833)))},753525,t=>{t.v(s=>Promise.all(["static/chunks/39sp7w7wcwxjl.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3rudiphv22_sj.js"].map(s=>t.l(s))).then(()=>s(235865)))},506695,t=>{t.v(s=>Promise.all(["static/chunks/16j4idsrg5cyn.js"].map(s=>t.l(s))).then(()=>s(528594)))},985641,t=>{t.v(s=>Promise.all(["static/chunks/1y1vu9-4l76_e.js"].map(s=>t.l(s))).then(()=>s(762570)))},215520,t=>{t.v(s=>Promise.all(["static/chunks/0o66-rbdl-bpr.js"].map(s=>t.l(s))).then(()=>s(767399)))},579736,t=>{t.v(s=>Promise.all(["static/chunks/3bnhh87m-vba3.js"].map(s=>t.l(s))).then(()=>s(793940)))},344743,t=>{t.v(s=>Promise.all(["static/chunks/0lmkqj5bnn1tx.js"].map(s=>t.l(s))).then(()=>s(478163)))},69901,t=>{t.v(s=>Promise.all(["static/chunks/2fx1t7nywz-zx.js"].map(s=>t.l(s))).then(()=>s(293157)))},849765,t=>{t.v(s=>Promise.all(["static/chunks/0uw1nhbzgcr4z.js"].map(s=>t.l(s))).then(()=>s(65260)))},925840,t=>{t.v(s=>Promise.all(["static/chunks/2htbqsoc2bojb.js"].map(s=>t.l(s))).then(()=>s(620602)))},678110,t=>{t.v(s=>Promise.all(["static/chunks/028oldt2v0xyz.js"].map(s=>t.l(s))).then(()=>s(121139)))},710002,t=>{t.v(s=>Promise.all(["static/chunks/3b13ywcpwn31z.js"].map(s=>t.l(s))).then(()=>s(236865)))},753456,t=>{t.v(s=>Promise.all(["static/chunks/1wxrfgphp_7tx.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(487420)))},328116,t=>{t.v(s=>Promise.all(["static/chunks/1eyi5me_bl5mq.js"].map(s=>t.l(s))).then(()=>s(303348)))},762792,t=>{t.v(s=>Promise.all(["static/chunks/012oo6xzblu6s.js"].map(s=>t.l(s))).then(()=>s(122362)))},548436,t=>{t.v(s=>Promise.all(["static/chunks/36oxg-33dy_jz.js"].map(s=>t.l(s))).then(()=>s(265525)))},985774,t=>{t.v(s=>Promise.all(["static/chunks/0xnzoirqkfqgi.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(979978)))},822682,t=>{t.v(s=>Promise.all(["static/chunks/1xcq4o53ccqj-.js"].map(s=>t.l(s))).then(()=>s(777438)))},29273,t=>{t.v(s=>Promise.all(["static/chunks/3wssn6tbdvadr.js"].map(s=>t.l(s))).then(()=>s(12899)))},917431,t=>{t.v(s=>Promise.all(["static/chunks/2w0jipt45km-n.js"].map(s=>t.l(s))).then(()=>s(426182)))},127184,t=>{t.v(s=>Promise.all(["static/chunks/1kkj4dqqizj1g.js"].map(s=>t.l(s))).then(()=>s(569590)))},402999,t=>{t.v(s=>Promise.all(["static/chunks/1abc3xfswhk36.js"].map(s=>t.l(s))).then(()=>s(389508)))},22510,t=>{t.v(s=>Promise.all(["static/chunks/3p-mvzd69i8m_.js","static/chunks/1px0m_9u11val.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(792808)))},392914,t=>{t.v(s=>Promise.all(["static/chunks/3qa8z7ahjfjda.js"].map(s=>t.l(s))).then(()=>s(270093)))},864980,t=>{t.v(s=>Promise.all(["static/chunks/0unfsbpxtuicd.js"].map(s=>t.l(s))).then(()=>s(221610)))},362249,t=>{t.v(s=>Promise.all(["static/chunks/2pma0utbxjpx3.js"].map(s=>t.l(s))).then(()=>s(292310)))},919686,t=>{t.v(s=>Promise.all(["static/chunks/418b-iezadyqk.js"].map(s=>t.l(s))).then(()=>s(513929)))},123169,t=>{t.v(s=>Promise.all(["static/chunks/0-e41flx3-6kr.js"].map(s=>t.l(s))).then(()=>s(495422)))},866973,t=>{t.v(s=>Promise.all(["static/chunks/3trm7ge6o-yl3.js"].map(s=>t.l(s))).then(()=>s(381082)))},580357,t=>{t.v(s=>Promise.all(["static/chunks/0l8oeumi7zreb.js","static/chunks/29kou1oqg257y.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/1ozmtvibzzync.js","static/chunks/36oxg-33dy_jz.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2ro2w2784zwl0.js","static/chunks/31rpioh8q87-5.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/2six92-4e054u.js","static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(428855)))},660137,t=>{t.v(s=>Promise.all(["static/chunks/29kou1oqg257y.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/2ro2w2784zwl0.js","static/chunks/3tq8wpaa3ie4_.js","static/chunks/31rpioh8q87-5.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2six92-4e054u.js"].map(s=>t.l(s))).then(()=>s(259585)))},225837,t=>{t.v(s=>Promise.all(["static/chunks/409byf0ixcxxo.js"].map(s=>t.l(s))).then(()=>s(98542)))},559154,t=>{t.v(s=>Promise.all(["static/chunks/2e7zn6goip-16.js"].map(s=>t.l(s))).then(()=>s(672283)))},428160,t=>{t.v(s=>Promise.all(["static/chunks/2np1b-o9o9lxe.js"].map(s=>t.l(s))).then(()=>s(428978)))},679226,t=>{t.v(s=>Promise.all(["static/chunks/1zexcknv1j-z7.js"].map(s=>t.l(s))).then(()=>s(351908)))},95554,t=>{t.v(s=>Promise.all(["static/chunks/1zch7s-d9ym1d.js"].map(s=>t.l(s))).then(()=>s(843805)))},256229,t=>{t.v(s=>Promise.all(["static/chunks/0bp3uew85t0ry.js"].map(s=>t.l(s))).then(()=>s(455496)))},257294,t=>{t.v(s=>Promise.all(["static/chunks/34vbgf3h6aynb.js"].map(s=>t.l(s))).then(()=>s(763343)))},287646,t=>{t.v(s=>Promise.all(["static/chunks/3py7aam1ahr8d.js"].map(s=>t.l(s))).then(()=>s(470313)))},77876,t=>{t.v(s=>Promise.all(["static/chunks/10ur2oml6p9x4.js"].map(s=>t.l(s))).then(()=>s(883808)))},702789,t=>{t.v(s=>Promise.all(["static/chunks/11b9yf9dfuujx.js"].map(s=>t.l(s))).then(()=>s(713367)))},105404,t=>{t.v(s=>Promise.all(["static/chunks/2dnh5lwhlmqjo.js"].map(s=>t.l(s))).then(()=>s(503988)))},664050,t=>{t.v(s=>Promise.all(["static/chunks/40ei945lllr9w.js"].map(s=>t.l(s))).then(()=>s(80464)))},423766,t=>{t.v(s=>Promise.all(["static/chunks/0ra7vu-67oxip.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(34684)))},471095,t=>{t.v(s=>Promise.all(["static/chunks/2evctkklgum84.js"].map(s=>t.l(s))).then(()=>s(259514)))},713125,t=>{t.v(s=>Promise.all(["static/chunks/2_59ceoqu2j9o.js"].map(s=>t.l(s))).then(()=>s(435493)))},347760,t=>{t.v(s=>Promise.all(["static/chunks/17tgaro217rkw.js"].map(s=>t.l(s))).then(()=>s(588587)))},525380,t=>{t.v(s=>Promise.all(["static/chunks/0txq63lra1gy5.js"].map(s=>t.l(s))).then(()=>s(843156)))},927772,t=>{t.v(s=>Promise.all(["static/chunks/38b2vebizod3f.js"].map(s=>t.l(s))).then(()=>s(286144)))},131592,t=>{t.v(s=>Promise.all(["static/chunks/1-pex3noy3abf.js"].map(s=>t.l(s))).then(()=>s(568096)))},942509,t=>{t.v(s=>Promise.all(["static/chunks/208d1-7kvefg6.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(809240)))},209551,t=>{t.v(s=>Promise.all(["static/chunks/1asjpdf763drn.js","static/chunks/4469hynu4qc3x.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(361218)))},174099,t=>{t.v(s=>Promise.all(["static/chunks/3l445yien52wx.js"].map(s=>t.l(s))).then(()=>s(42)))},401250,t=>{t.v(s=>Promise.all(["static/chunks/2qbs5ja7xij_y.js"].map(s=>t.l(s))).then(()=>s(921955)))},944475,t=>{t.v(s=>Promise.all(["static/chunks/3agxmq5t1fgcm.js"].map(s=>t.l(s))).then(()=>s(775193)))},600538,t=>{t.v(s=>Promise.all(["static/chunks/2osmatdeuj3s-.js"].map(s=>t.l(s))).then(()=>s(705623)))},336651,t=>{t.v(s=>Promise.all(["static/chunks/0obkw0gs46t63.js"].map(s=>t.l(s))).then(()=>s(605927)))},709948,t=>{t.v(s=>Promise.all(["static/chunks/1nax-hzuha2nt.js"].map(s=>t.l(s))).then(()=>s(596338)))},340336,t=>{t.v(s=>Promise.all(["static/chunks/1caj6_s4hafz8.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(461138)))},508436,t=>{t.v(s=>Promise.all(["static/chunks/1flk5q9pa7qsp.js"].map(s=>t.l(s))).then(()=>s(318633)))},155636,t=>{t.v(s=>Promise.all(["static/chunks/3_3mt55_s_8nf.js"].map(s=>t.l(s))).then(()=>s(107395)))},351979,t=>{t.v(s=>Promise.all(["static/chunks/0rc3dvh91j2qq.js"].map(s=>t.l(s))).then(()=>s(40899)))},65678,t=>{t.v(s=>Promise.all(["static/chunks/0n-9icasrt3tr.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/29kou1oqg257y.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(352763)))},841727,t=>{t.v(s=>Promise.all(["static/chunks/1t71kx4hckhdg.js"].map(s=>t.l(s))).then(()=>s(526893)))},557754,t=>{t.v(s=>Promise.all(["static/chunks/31rpioh8q87-5.js"].map(s=>t.l(s))).then(()=>s(578270)))},670454,t=>{t.v(s=>Promise.all(["static/chunks/42lcx54bokm4l.js"].map(s=>t.l(s))).then(()=>s(891579)))},670515,t=>{t.v(s=>Promise.all(["static/chunks/2fkhtkfyegbfl.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/36oxg-33dy_jz.js","static/chunks/3rudiphv22_sj.js","static/chunks/2ro2w2784zwl0.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/31rpioh8q87-5.js","static/chunks/2six92-4e054u.js","static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(259443)))},48460,t=>{t.v(s=>Promise.all(["static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(3737)))},744538,t=>{t.v(s=>Promise.all(["static/chunks/38f2w40jfofcx.js"].map(s=>t.l(s))).then(()=>s(610648)))},963321,t=>{t.v(s=>Promise.all(["static/chunks/2keoa22_a2i05.js"].map(s=>t.l(s))).then(()=>s(717620)))},43837,t=>{t.v(s=>Promise.all(["static/chunks/3iufy6ir2ow_s.js"].map(s=>t.l(s))).then(()=>s(476205)))},830536,t=>{t.v(s=>Promise.all(["static/chunks/0dum5lyb1kgdu.js"].map(s=>t.l(s))).then(()=>s(18661)))},785051,t=>{t.v(s=>Promise.all(["static/chunks/3iooxhh1ig5bw.js"].map(s=>t.l(s))).then(()=>s(938702)))},586017,t=>{t.v(s=>Promise.all(["static/chunks/17z996osqxkqt.js"].map(s=>t.l(s))).then(()=>s(588430)))},495694,t=>{t.v(s=>Promise.all(["static/chunks/0h-2v5t5yj2f3.js"].map(s=>t.l(s))).then(()=>s(562973)))},404547,t=>{t.v(s=>Promise.all(["static/chunks/1idh9y3ry9ztt.js"].map(s=>t.l(s))).then(()=>s(44445)))},160550,t=>{t.v(s=>Promise.all(["static/chunks/2tslt-7b091nm.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(338022)))},109,t=>{t.v(s=>Promise.all(["static/chunks/1mi-5-8zn56-m.js","static/chunks/0bp3uew85t0ry.js","static/chunks/1qil2ska-_5gi.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3ia1uy-ta-wwx.js"].map(s=>t.l(s))).then(()=>s(534365)))},934329,t=>{t.v(s=>Promise.all(["static/chunks/2cl_2bjqc1lsc.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(532041)))},834235,t=>{t.v(s=>Promise.all(["static/chunks/3c5h1ejnae2s_.js"].map(s=>t.l(s))).then(()=>s(288188)))},879931,t=>{t.v(s=>Promise.all(["static/chunks/0tbmf55xnq95w.js"].map(s=>t.l(s))).then(()=>s(997855)))},738463,t=>{t.v(s=>Promise.all(["static/chunks/41klrxz2-ykw3.js"].map(s=>t.l(s))).then(()=>s(786105)))},464547,t=>{t.v(s=>Promise.all(["static/chunks/1g4yzqc8g06o2.js"].map(s=>t.l(s))).then(()=>s(995255)))},74196,t=>{t.v(s=>Promise.all(["static/chunks/1pgom6axjfimi.js"].map(s=>t.l(s))).then(()=>s(786142)))},926245,t=>{t.v(s=>Promise.all(["static/chunks/00f7egm3k9vam.js"].map(s=>t.l(s))).then(()=>s(829634)))},998654,t=>{t.v(s=>Promise.all(["static/chunks/0gklkn8q2umf3.js"].map(s=>t.l(s))).then(()=>s(121147)))},160115,t=>{t.v(s=>Promise.all(["static/chunks/0-rd1xjzbrve6.js"].map(s=>t.l(s))).then(()=>s(244703)))},656841,t=>{t.v(s=>Promise.all(["static/chunks/3vdfjhigz-c80.js"].map(s=>t.l(s))).then(()=>s(33176)))},291412,t=>{t.v(s=>Promise.all(["static/chunks/2rbi0f59-vmf9.js"].map(s=>t.l(s))).then(()=>s(620584)))},441270,t=>{t.v(s=>Promise.all(["static/chunks/088x63_2l0zc9.js"].map(s=>t.l(s))).then(()=>s(675022)))},332344,t=>{t.v(s=>Promise.all(["static/chunks/3ve5sdpvgjpbu.js"].map(s=>t.l(s))).then(()=>s(642400)))},252913,t=>{t.v(s=>Promise.all(["static/chunks/2i6moah6rdm25.js"].map(s=>t.l(s))).then(()=>s(202714)))},695208,t=>{t.v(s=>Promise.all(["static/chunks/3_gqqu4iritf3.js"].map(s=>t.l(s))).then(()=>s(40379)))},952844,t=>{t.v(s=>Promise.all(["static/chunks/0wdb6hvovrzpj.js"].map(s=>t.l(s))).then(()=>s(48975)))},776488,t=>{t.v(s=>Promise.all(["static/chunks/07ciqblogdtfg.js"].map(s=>t.l(s))).then(()=>s(938096)))},536002,t=>{t.v(s=>Promise.all(["static/chunks/0n254r0xtp5py.js"].map(s=>t.l(s))).then(()=>s(340767)))},872934,t=>{t.v(s=>Promise.all(["static/chunks/3qx8r_111vbcq.js"].map(s=>t.l(s))).then(()=>s(216129)))},831036,t=>{t.v(s=>Promise.all(["static/chunks/0b7u4oyc-4h1f.js"].map(s=>t.l(s))).then(()=>s(188870)))},423803,t=>{t.v(s=>Promise.all(["static/chunks/1464ilzyzd67x.js"].map(s=>t.l(s))).then(()=>s(9753)))},486330,t=>{t.v(s=>Promise.all(["static/chunks/0akc8wpmmqk3w.js"].map(s=>t.l(s))).then(()=>s(611191)))},381001,t=>{t.v(s=>Promise.all(["static/chunks/0db0pjco5lunx.js"].map(s=>t.l(s))).then(()=>s(297569)))},902100,t=>{t.v(s=>Promise.all(["static/chunks/3cayxge-4bh_2.js"].map(s=>t.l(s))).then(()=>s(899637)))},295735,t=>{t.v(s=>Promise.all(["static/chunks/1_dzz-lgnak2h.js"].map(s=>t.l(s))).then(()=>s(504007)))},358172,t=>{t.v(s=>Promise.all(["static/chunks/2cbug7-1qys8e.js"].map(s=>t.l(s))).then(()=>s(824395)))},775274,t=>{t.v(s=>Promise.all(["static/chunks/16_2z7zojg3g3.js"].map(s=>t.l(s))).then(()=>s(760511)))},514214,t=>{t.v(s=>Promise.all(["static/chunks/0cmf43-qvwr5g.js"].map(s=>t.l(s))).then(()=>s(815758)))},948353,t=>{t.v(s=>Promise.all(["static/chunks/210l205kz5g3q.js"].map(s=>t.l(s))).then(()=>s(365094)))},640920,t=>{t.v(s=>Promise.all(["static/chunks/3skrxw7zfkqzf.js"].map(s=>t.l(s))).then(()=>s(363976)))},157811,t=>{t.v(s=>Promise.all(["static/chunks/17brxt738o00g.js"].map(s=>t.l(s))).then(()=>s(805755)))},805550,t=>{t.v(s=>Promise.all(["static/chunks/0cg7tv-i19f6n.js"].map(s=>t.l(s))).then(()=>s(7419)))},360233,t=>{t.v(s=>Promise.all(["static/chunks/2tsbrs7m-0f65.js"].map(s=>t.l(s))).then(()=>s(797673)))},579755,t=>{t.v(s=>Promise.all(["static/chunks/01bd73-hm8457.js"].map(s=>t.l(s))).then(()=>s(525522)))},980721,t=>{t.v(s=>Promise.all(["static/chunks/458hu9cfcc3s_.js"].map(s=>t.l(s))).then(()=>s(560616)))},27266,t=>{t.v(s=>Promise.all(["static/chunks/01i1qitd_8rtz.js"].map(s=>t.l(s))).then(()=>s(134497)))},231214,t=>{t.v(s=>Promise.all(["static/chunks/1fviz3qosnq__.js"].map(s=>t.l(s))).then(()=>s(770771)))},881110,t=>{t.v(s=>Promise.all(["static/chunks/037scab0ici8w.js"].map(s=>t.l(s))).then(()=>s(764248)))},337683,t=>{t.v(s=>Promise.all(["static/chunks/1yj-z4gstw2xu.js"].map(s=>t.l(s))).then(()=>s(581666)))},28130,t=>{t.v(s=>Promise.all(["static/chunks/0p3vq3l43725n.js"].map(s=>t.l(s))).then(()=>s(365013)))},487165,t=>{t.v(s=>Promise.all(["static/chunks/3xes-pn_ri2cj.js"].map(s=>t.l(s))).then(()=>s(7363)))},470579,t=>{t.v(s=>Promise.all(["static/chunks/12z0zeu7lvha7.js"].map(s=>t.l(s))).then(()=>s(791178)))},677856,t=>{t.v(s=>Promise.all(["static/chunks/3v0b10wj4wq9y.js"].map(s=>t.l(s))).then(()=>s(182360)))},194363,t=>{t.v(s=>Promise.all(["static/chunks/3pa4udctptdhb.js"].map(s=>t.l(s))).then(()=>s(720465)))},448953,t=>{t.v(s=>Promise.all(["static/chunks/3473zud7njrud.js"].map(s=>t.l(s))).then(()=>s(951566)))},711812,t=>{t.v(s=>Promise.all(["static/chunks/1xdsthrspgqid.js"].map(s=>t.l(s))).then(()=>s(935992)))},409732,t=>{t.v(s=>Promise.all(["static/chunks/3t3e6rkuocks5.js"].map(s=>t.l(s))).then(()=>s(553497)))},930788,t=>{t.v(s=>Promise.all(["static/chunks/0r8pu9o18-9be.js"].map(s=>t.l(s))).then(()=>s(94790)))},769460,t=>{t.v(s=>Promise.all(["static/chunks/2wewgtk8lsm47.js"].map(s=>t.l(s))).then(()=>s(258941)))},774478,t=>{t.v(s=>Promise.all(["static/chunks/2l6fe0r1d_q6v.js"].map(s=>t.l(s))).then(()=>s(899054)))},49008,t=>{t.v(s=>Promise.all(["static/chunks/14_d5b8v93ic0.js"].map(s=>t.l(s))).then(()=>s(645619)))},377952,t=>{t.v(s=>Promise.all(["static/chunks/1ji12pypkyvd6.js"].map(s=>t.l(s))).then(()=>s(464754)))},411374,t=>{t.v(s=>Promise.all(["static/chunks/0j6p1caglumb5.js"].map(s=>t.l(s))).then(()=>s(669891)))},820463,t=>{t.v(s=>Promise.all(["static/chunks/3oj0ck1e2y0rg.js"].map(s=>t.l(s))).then(()=>s(966937)))},630169,t=>{t.v(s=>Promise.all(["static/chunks/21bsne5xprg9x.js"].map(s=>t.l(s))).then(()=>s(412397)))},777035,t=>{t.v(s=>Promise.all(["static/chunks/2nz_jsjkeh_3n.js"].map(s=>t.l(s))).then(()=>s(323854)))},28589,t=>{t.v(s=>Promise.all(["static/chunks/3bl5nolxelhoh.js"].map(s=>t.l(s))).then(()=>s(299023)))},161439,t=>{t.v(s=>Promise.all(["static/chunks/2qvx9cvdob30_.js"].map(s=>t.l(s))).then(()=>s(83923)))},467304,t=>{t.v(s=>Promise.all(["static/chunks/2r50d8i8nzafy.js"].map(s=>t.l(s))).then(()=>s(620576)))},794497,t=>{t.v(s=>Promise.all(["static/chunks/2-q2d_mg8eewn.js"].map(s=>t.l(s))).then(()=>s(383983)))},353619,t=>{t.v(s=>Promise.all(["static/chunks/00133qbkud_a1.js"].map(s=>t.l(s))).then(()=>s(311461)))},841717,t=>{t.v(s=>Promise.all(["static/chunks/3wyndekp6gs1e.js"].map(s=>t.l(s))).then(()=>s(905139)))},703232,t=>{t.v(s=>Promise.all(["static/chunks/0a5uw59rid6rr.js"].map(s=>t.l(s))).then(()=>s(7846)))},469411,t=>{t.v(s=>Promise.all(["static/chunks/1tdg7-4y92ae5.js"].map(s=>t.l(s))).then(()=>s(135966)))},81356,t=>{t.v(s=>Promise.all(["static/chunks/27679aiblwt7d.js"].map(s=>t.l(s))).then(()=>s(920400)))},291336,t=>{t.v(s=>Promise.all(["static/chunks/2-r_2y3shm5dp.js"].map(s=>t.l(s))).then(()=>s(154629)))},753065,t=>{t.v(s=>Promise.all(["static/chunks/3zru906admgda.js"].map(s=>t.l(s))).then(()=>s(792599)))},758732,t=>{t.v(s=>Promise.all(["static/chunks/1m_1wucqbm0dk.js"].map(s=>t.l(s))).then(()=>s(341854)))},505358,t=>{t.v(s=>Promise.all(["static/chunks/3n91b_r3lsocx.js"].map(s=>t.l(s))).then(()=>s(273427)))},953493,t=>{t.v(s=>Promise.all(["static/chunks/0ppunhtgdiybw.js"].map(s=>t.l(s))).then(()=>s(468746)))},767374,t=>{t.v(s=>Promise.all(["static/chunks/2e77rof1d6aab.js"].map(s=>t.l(s))).then(()=>s(948350)))},461630,t=>{t.v(s=>Promise.all(["static/chunks/1ua4os8wtpq3w.js"].map(s=>t.l(s))).then(()=>s(200388)))},135353,t=>{t.v(s=>Promise.all(["static/chunks/3_rh0kun_htkr.js"].map(s=>t.l(s))).then(()=>s(720692)))},129817,t=>{t.v(s=>Promise.all(["static/chunks/2wgde6wz3k5s5.js"].map(s=>t.l(s))).then(()=>s(832876)))},666144,t=>{t.v(s=>Promise.all(["static/chunks/2wm8p15qdp-ng.js"].map(s=>t.l(s))).then(()=>s(942760)))},496740,t=>{t.v(s=>Promise.all(["static/chunks/365l-wyhfm_-p.js"].map(s=>t.l(s))).then(()=>s(436913)))},896290,t=>{t.v(s=>Promise.all(["static/chunks/0_81-tq3u4vi9.js"].map(s=>t.l(s))).then(()=>s(67631)))},161379,t=>{t.v(s=>Promise.all(["static/chunks/2ktgnhn-0j381.js"].map(s=>t.l(s))).then(()=>s(397216)))},839484,t=>{t.v(t=>Promise.resolve().then(()=>t(716400)))},96892,319841,t=>{"use strict";var s=t.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 e=(0,s.default)(a);t.s(["ArrowUp",0,e],96892);var l=t.i(271645);let i=["ctrl","alt","meta"],c=/^(Control|Alt|Shift|Meta|OS)/,n=/^(input|textarea|select)$/i,h=t=>!!t&&!!(n.test(t.tagName)||t.isContentEditable||t.closest?.("[data-hotkey-capture]")),r=t=>{let s="nativeEvent"in t?t.nativeEvent:t;return s.isComposing||229===s.keyCode},m=[],o=t=>{if("Escape"!==t.key||t.defaultPrevented||r(t))return;let s=m.at(-1);s&&(t.preventDefault(),s.current())};function u(t){let{code:s,ctrlKey:a,altKey:e,shiftKey:l,metaKey:i}=t;if(!s||c.test(s)||!a&&!e&&!i)return null;let n=[];return a&&n.push("ctrl"),e&&n.push("alt"),l&&n.push("shift"),i&&n.push("meta"),[...n,s].join("+")}let k={ctrl:["Ctrl","⌃"],alt:["Alt","⌥"],shift:["Shift","⇧"],meta:["Meta","⌘"]};function p(t,s=!1){let a=t.split("+"),e=a.at(-1)??"",l=a.slice(0,-1).map(t=>k[t]?.[+!!s]??t),i=e.replace(/^(Key|Digit|Numpad)/,"").replace(/([a-z])([A-Z])/g,"$1 $2")||e;return s?[...l,i].join(""):[...l,i].join(" + ")}t.s(["HOTKEY_CAPTURE",0,{"data-hotkey-capture":""},"capturesKeys",0,h,"comboOf",0,u,"composing",0,r,"isCombo",0,t=>{let s=t.split("+"),a=s.at(-1);return!!(a&&!c.test(a)&&s.slice(0,-1).some(t=>i.includes(t)))},"typed",0,(t,s)=>t.key===s&&!t.metaKey&&(t.altKey||!t.ctrlKey),"useCommandLabel",0,function(t,s=!1){let[a,e]=(0,l.useState)(!1);return(0,l.useEffect)(()=>e(/mac/i.test(navigator.userAgent)),[]),p([...(a?["shift","meta"]:["ctrl","shift"]).filter(t=>s||"shift"!==t),t].join("+"),a)},"useEscape",0,function(t,s){let a=(0,l.useRef)(s);a.current=s,(0,l.useEffect)(()=>{if(t)return m.push(a),1===m.length&&window.addEventListener("keydown",o),()=>{m.splice(m.indexOf(a),1),m.length||window.removeEventListener("keydown",o)}},[t])},"useHotkey",0,function({enabled:t,combo:s,onPress:a}){let e=(0,l.useRef)(a);e.current=a,(0,l.useEffect)(()=>{if(!t||!s)return;let a=t=>{t.repeat||h(t.target)||u(t)===s&&(t.preventDefault(),e.current())};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[t,s])},"useHotkeyLabel",0,function(t){let[s,a]=(0,l.useState)(!1);return(0,l.useEffect)(()=>a(/mac/i.test(navigator.userAgent)),[]),t?p(t,s):null},"windowKey",0,t=>!t.defaultPrevented&&!r(t)&&!h(t.target)&&!t.target?.closest?.('[role="dialog"]')],319841)},632781,t=>{"use strict";var s=t.i(758379);t.s(["Loader2",()=>s.default])},350117,t=>{t.v(s=>Promise.all(["static/chunks/0mkmxdnpoteey.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(s=>t.l(s))).then(()=>s(36245)))},382528,t=>{t.v(s=>Promise.all(["static/chunks/00h58csdfefay.js","static/chunks/1-2_pusn4n8oh.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/411-m6wb1xycs.js"].map(s=>t.l(s))).then(()=>s(868938)))},705108,t=>{t.v(s=>Promise.all(["static/chunks/0kdfzi54utgbh.js","static/chunks/42kilhgqayez4.js"].map(s=>t.l(s))).then(()=>s(121437)))},143904,t=>{t.v(s=>Promise.all(["static/chunks/0u3ktztrzu1fa.js","static/chunks/1ebh7wwf-wzqn.js"].map(s=>t.l(s))).then(()=>s(482661)))},696017,t=>{"use strict";var s=t.i(60231),a=t.i(419524);t.i(947716);var e=t.i(723685),l=(0,a.__name)(t=>{let{securityLevel:a}=(0,s.getConfig2)(),l=(0,e.select)("body");if("sandbox"===a){let s=(0,e.select)(`#i${t}`),a=s.node()?.contentDocument??document;l=(0,e.select)(a.body)}return l.select(`#${t}`)},"selectSvgElement");t.s(["selectSvgElement",0,l])},502056,t=>{"use strict";var s=t.i(217248),a=t.i(447804),e=t.i(508324),l=t.i(419524),i=(0,l.__name)(({flowchart:t})=>{let s=t?.subGraphTitleMargin?.top??0,a=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:s,subGraphTitleBottomMargin:a,subGraphTitleTotalMargin:s+a}},"getSubGraphTitleMargins"),c=new Map;async function n(t,e,l){let i,n;"rect"===e.shape&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");let h=e.shape?s.shapes[e.shape]:void 0;if(!h)throw Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let s;"sandbox"===l.config.securityLevel?s="_top":e.linkTarget&&(s=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",s??null),n=await h(i,e,l)}else i=n=await h(t,e,l);return i.attr("data-look",(0,a.handleUndefinedAttr)(e.look)),e.tooltip&&n.attr("title",e.tooltip),c.set(e.id,i),e.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}(0,l.__name)(n,"insertNode");var h=(0,l.__name)((t,s)=>{c.set(s.id,t)},"setNodeElem"),r=(0,l.__name)(()=>{c.clear()},"clear"),m=(0,l.__name)(t=>{let s=c.get(t.id);e.log.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let a=t.diff||0;return t.clusterNode?s.attr("transform","translate("+(t.x+a-t.width/2)+", "+(t.y-t.height/2-8)+")"):s.attr("transform","translate("+t.x+", "+t.y+")"),a},"positionNode");t.s(["clear",0,r,"getSubGraphTitleMargins",0,i,"insertNode",0,n,"positionNode",0,m,"setNodeElem",0,h])},369110,t=>{"use strict";var s=t.i(502056),a=t.i(217248),e=t.i(224797),l=t.i(836333),i=t.i(60231),c=t.i(508324),n=t.i(419524);t.i(947716);var h=t.i(723685),r=t.i(883272),m=(0,n.__name)(async(t,s)=>{let n,m,o=(0,i.getConfig2)(),{themeVariables:u,handDrawnSeed:k}=o,{clusterBkg:p,clusterBorder:j}=u,{labelStyles:d,nodeStyles:v,borderStyles:g,backgroundStyles:w}=(0,e.styles2String)(s),P=t.insert("g").attr("class","cluster swimlane "+(s.cssClasses||"")).attr("id",s.id).attr("data-id",s.id).attr("data-et","cluster").attr("data-look",s.look),f=(0,i.evaluate)(o.flowchart.htmlLabels),y="LR"===s.direction,b=P.insert("g").attr("class","cluster-label swimlane-label"),z=await (0,l.createText)(b,s.label,{style:s.labelStyle,useHtmlLabels:f,isNode:!0,width:s.width}),_=z.getBBox();if(f){let t=z.children[0],s=(0,h.select)(z);_=t.getBoundingClientRect(),s.attr("width",_.width),s.attr("height",_.height)}let x=s.padding??0,q=s.width<=_.width+x?_.width+x:s.width;s.width<=_.width+x?s.diff=(q-s.width)/2-x:s.diff=-x;let B=s.height,C=s.y-B/2,E=s.y+B/2,S=s.x-q/2,L=void 0!==s.swimlaneContentTop?s.swimlaneContentTop:C+B/3,$=4*!!y,T=_.height+2*$;if(y){let t=Math.max(T,_.height+2*$),a=S+t,l=Math.max(0,q-t);if("handDrawn"===s.look){let i=r.default.svg(P),c=(0,e.userNodeOverrides)(s,{roughness:.7,fill:p,stroke:j,fillWeight:3,seed:k}),h=(0,e.userNodeOverrides)(s,{roughness:.7,fill:"none",stroke:j,seed:k}),o=i.rectangle(S,C,t,B,c);n=P.insert(()=>o,":first-child");let u=i.rectangle(a,C,l,B,h);m=P.insert(()=>u,":first-child"),n.select("path:nth-child(2)").attr("style",g.join(";")),n.select("path").attr("style",w.join(";").replace("fill","stroke"))}else n=P.insert("rect",":first-child"),m=P.insert("rect",":first-child"),n.attr("class","swimlane-title").attr("style",v).attr("x",S).attr("y",C).attr("width",t).attr("height",B).attr("fill",p).attr("stroke",j),m.attr("class","swimlane-body").attr("style",v).attr("x",a).attr("y",C).attr("width",l).attr("height",B).attr("fill","none").attr("stroke",j);let i=S+t/2,c=s.y;b.attr("transform",`translate(${i}, ${c}) rotate(-90) translate(${-_.width/2}, ${-_.height/2})`)}else{let t=Math.min(T,Math.max(0,L-C)),a=C+t,l=Math.max(0,E-a),i=s.x-q/2;if("handDrawn"===s.look){let c=r.default.svg(P),h=(0,e.userNodeOverrides)(s,{roughness:.7,fill:p,stroke:j,fillWeight:3,seed:k}),o=(0,e.userNodeOverrides)(s,{roughness:.7,fill:"none",stroke:j,seed:k}),u=c.rectangle(i,C,q,t,h);n=P.insert(()=>u,":first-child");let d=c.rectangle(i,a,q,l,o);m=P.insert(()=>d,":first-child"),n.select("path:nth-child(2)").attr("style",g.join(";")),n.select("path").attr("style",w.join(";").replace("fill","stroke"))}else n=P.insert("rect",":first-child"),m=P.insert("rect",":first-child"),n.attr("class","swimlane-title").attr("style",v).attr("x",i).attr("y",C).attr("width",q).attr("height",t).attr("fill",p).attr("stroke",j),m.attr("class","swimlane-body").attr("style",v).attr("x",i).attr("y",a).attr("width",q).attr("height",l).attr("fill","none").attr("stroke",j);let c=s.x-_.width/2,h=C+(t-_.height)/2;b.attr("transform",`translate(${c}, ${h})`)}if(c.log.trace("Swimlane data ",s,JSON.stringify(s)),d){let t=b.select("span");t&&t.attr("style",d)}return s.offsetX=0,s.width=q,s.height=B,s.offsetY=_.height-x/2,s.intersect=function(t){return(0,a.intersect_rect_default)(s,t)},{cluster:P,labelBBox:_}},"swimlane"),o=(0,n.__name)(async(t,n)=>{let m,o;c.log.info("Creating subgraph rect for ",n.id,n);let u=(0,i.getConfig2)(),{themeVariables:k,handDrawnSeed:p}=u,{clusterBkg:j,clusterBorder:d}=k,{labelStyles:v,nodeStyles:g,borderStyles:w,backgroundStyles:P}=(0,e.styles2String)(n),f=t.insert("g").attr("class","cluster "+n.cssClasses).attr("id",n.domId).attr("data-look",n.look),y=(0,i.getEffectiveHtmlLabels)(u),b=f.insert("g").attr("class","cluster-label "),z=(m="markdown"===n.labelType?await (0,l.createText)(b,n.label,{style:n.labelStyle,useHtmlLabels:y,isNode:!0,width:n.width}):await (0,a.createLabel_default)(b,n.label,n.labelStyle||"",!1,!0)).getBBox();if((0,i.getEffectiveHtmlLabels)(u)){let t=m.children[0],s=(0,h.select)(m);z=t.getBoundingClientRect(),s.attr("width",z.width),s.attr("height",z.height)}let _=n.width<=z.width+n.padding?z.width+n.padding:n.width;n.width<=z.width+n.padding?n.diff=(_-n.width)/2-n.padding:n.diff=-n.padding;let x=n.height,q=n.x-_/2,B=n.y-x/2;if(c.log.trace("Data ",n,JSON.stringify(n)),"handDrawn"===n.look){let t=r.default.svg(f),s=(0,e.userNodeOverrides)(n,{roughness:.7,fill:j,stroke:d,fillWeight:3,seed:p}),l=t.path((0,a.createRoundedRectPathD)(q,B,_,x,0),s);(o=f.insert(()=>(c.log.debug("Rough node insert CXC",l),l),":first-child")).select("path:nth-child(2)").attr("style",w.join(";")),o.select("path").attr("style",P.join(";").replace("fill","stroke"))}else(o=f.insert("rect",":first-child")).attr("style",g).attr("rx",n.rx).attr("ry",n.ry).attr("x",q).attr("y",B).attr("width",_).attr("height",x);let{subGraphTitleTopMargin:C}=(0,s.getSubGraphTitleMargins)(u);if(b.attr("transform",`translate(${n.x-z.width/2}, ${n.y-n.height/2+C})`),v){let t=b.select("span");t&&t.attr("style",v)}let E=o.node().getBBox();return n.offsetX=0,n.width=E.width,n.height=E.height,n.offsetY=z.height-n.padding/2,n.intersect=function(t){return(0,a.intersect_rect_default)(n,t)},{cluster:f,labelBBox:z}},"rect"),u=(0,n.__name)((t,s)=>{let e=t.insert("g").attr("class","note-cluster").attr("id",s.domId),l=e.insert("rect",":first-child"),i=0*s.padding,c=i/2;l.attr("rx",s.rx).attr("ry",s.ry).attr("x",s.x-s.width/2-c).attr("y",s.y-s.height/2-c).attr("width",s.width+i).attr("height",s.height+i).attr("fill","none");let n=l.node().getBBox();return s.width=n.width,s.height=n.height,s.intersect=function(t){return(0,a.intersect_rect_default)(s,t)},{cluster:e,labelBBox:{width:0,height:0}}},"noteGroup"),k=(0,n.__name)(async(t,s)=>{let e,l=(0,i.getConfig2)(),{themeVariables:c,handDrawnSeed:n}=l,{altBackground:m,compositeBackground:o,compositeTitleBackground:u,nodeBorder:k}=c,p=t.insert("g").attr("class",s.cssClasses).attr("id",s.domId).attr("data-id",s.id).attr("data-look",s.look),j=p.insert("g",":first-child"),d=p.insert("g").attr("class","cluster-label"),v=p.append("rect"),g=await (0,a.createLabel_default)(d,s.label,s.labelStyle,void 0,!0),w=g.getBBox();if((0,i.getEffectiveHtmlLabels)(l)){let t=g.children[0],s=(0,h.select)(g);w=t.getBoundingClientRect(),s.attr("width",w.width),s.attr("height",w.height)}let P=0*s.padding,f=(s.width<=w.width+s.padding?w.width+s.padding:s.width)+P;s.width<=w.width+s.padding?s.diff=(f-s.width)/2-s.padding:s.diff=-s.padding;let y=s.height+P,b=s.height+P-w.height-6,z=s.x-f/2,_=s.y-y/2;s.width=f;let x=s.y-s.height/2-P/2+w.height+2;if("handDrawn"===s.look){let t=s.cssClasses.includes("statediagram-cluster-alt"),l=r.default.svg(p),i=s.rx||s.ry?l.path((0,a.createRoundedRectPathD)(z,_,f,y,10),{roughness:.7,fill:u,fillStyle:"solid",stroke:k,seed:n}):l.rectangle(z,_,f,y,{seed:n});e=p.insert(()=>i,":first-child");let c=l.rectangle(z,x,f,b,{fill:t?m:o,fillStyle:t?"hachure":"solid",stroke:k,seed:n});e=p.insert(()=>i,":first-child"),v=p.insert(()=>c)}else(e=j.insert("rect",":first-child")).attr("class","outer").attr("x",z).attr("y",_).attr("width",f).attr("height",y).attr("data-look",s.look),v.attr("class","inner").attr("x",z).attr("y",x).attr("width",f).attr("height",b);return d.attr("transform",`translate(${s.x-w.width/2}, ${_+1-3*!(0,i.getEffectiveHtmlLabels)(l)})`),s.height=e.node().getBBox().height,s.offsetX=0,s.offsetY=w.height-s.padding/2,s.labelBBox=w,s.intersect=function(t){return(0,a.intersect_rect_default)(s,t)},{cluster:p,labelBBox:w}},"roundedWithTitle"),p=(0,n.__name)(async(t,n)=>{let m;c.log.info("Creating subgraph rect for ",n.id,n);let o=(0,i.getConfig2)(),{themeVariables:u,handDrawnSeed:k}=o,{clusterBkg:p,clusterBorder:j}=u,{labelStyles:d,nodeStyles:v,borderStyles:g,backgroundStyles:w}=(0,e.styles2String)(n),P=t.insert("g").attr("class","cluster "+n.cssClasses).attr("id",n.domId).attr("data-look",n.look),f=(0,i.getEffectiveHtmlLabels)(o),y=P.insert("g").attr("class","cluster-label "),b=await (0,l.createText)(y,n.label,{style:n.labelStyle,useHtmlLabels:f,isNode:!0,width:n.width}),z=b.getBBox();if((0,i.getEffectiveHtmlLabels)(o)){let t=b.children[0],s=(0,h.select)(b);z=t.getBoundingClientRect(),s.attr("width",z.width),s.attr("height",z.height)}let _=n.width<=z.width+n.padding?z.width+n.padding:n.width;n.width<=z.width+n.padding?n.diff=(_-n.width)/2-n.padding:n.diff=-n.padding;let x=n.height,q=n.x-_/2,B=n.y-x/2;if(c.log.trace("Data ",n,JSON.stringify(n)),"handDrawn"===n.look){let t=r.default.svg(P),s=(0,e.userNodeOverrides)(n,{roughness:.7,fill:p,stroke:j,fillWeight:4,seed:k}),l=t.path((0,a.createRoundedRectPathD)(q,B,_,x,n.rx),s);(m=P.insert(()=>(c.log.debug("Rough node insert CXC",l),l),":first-child")).select("path:nth-child(2)").attr("style",g.join(";")),m.select("path").attr("style",w.join(";").replace("fill","stroke"))}else(m=P.insert("rect",":first-child")).attr("style",v).attr("rx",n.rx).attr("ry",n.ry).attr("x",q).attr("y",B).attr("width",_).attr("height",x);let{subGraphTitleTopMargin:C}=(0,s.getSubGraphTitleMargins)(o);if(y.attr("transform",`translate(${n.x-z.width/2}, ${n.y-n.height/2+C})`),d){let t=y.select("span");t&&t.attr("style",d)}let E=m.node().getBBox();return n.offsetX=0,n.width=E.width,n.height=E.height,n.offsetY=z.height-n.padding/2,n.intersect=function(t){return(0,a.intersect_rect_default)(n,t)},{cluster:P,labelBBox:z}},"kanbanSection"),j={rect:o,squareRect:o,roundedWithTitle:k,noteGroup:u,divider:(0,n.__name)((t,s)=>{let e,{themeVariables:l,handDrawnSeed:c}=(0,i.getConfig2)(),{nodeBorder:n}=l,h=t.insert("g").attr("class",s.cssClasses).attr("id",s.domId).attr("data-look",s.look),m=h.insert("g",":first-child"),o=0*s.padding,u=s.width+o;s.diff=-s.padding;let k=s.height+o,p=s.x-u/2,j=s.y-k/2;if(s.width=u,"handDrawn"===s.look){let t=r.default.svg(h).rectangle(p,j,u,k,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:n,seed:c});e=h.insert(()=>t,":first-child")}else{e=m.insert("rect",":first-child");let t="outer";s.look,t="divider",e.attr("class",t).attr("x",p).attr("y",j).attr("width",u).attr("height",k).attr("data-look",s.look)}return s.height=e.node().getBBox().height,s.offsetX=0,s.offsetY=0,s.intersect=function(t){return(0,a.intersect_rect_default)(s,t)},{cluster:h,labelBBox:{}}},"divider"),kanbanSection:p,swimlane:m},d=new Map,v=(0,n.__name)(async(t,s)=>{let a=s.shape||"rect",e=await j[a](t,s);return d.set(s.id,e),e},"insertCluster"),g=(0,n.__name)(()=>{d=new Map},"clear");t.s(["clear",0,g,"insertCluster",0,v])},121292,t=>{"use strict";var s=t.i(369110),a=t.i(382793),e=t.i(502056),l=t.i(217248),i=t.i(447804),c=t.i(60231),n=t.i(508324),h=t.i(419524),r={common:c.common_default,getConfig:c.getConfig,insertCluster:s.insertCluster,insertEdge:a.insertEdge,insertEdgeLabel:a.insertEdgeLabel,insertMarkers:a.markers_default,insertNode:e.insertNode,interpolateToCurve:i.interpolateToCurve,labelHelper:l.labelHelper,log:n.log,positionEdgeLabel:a.positionEdgeLabel},m={},o=(0,h.__name)(t=>{for(let s of t)m[s.name]=s},"registerLayoutLoaders");(0,h.__name)(()=>{o([{name:"dagre",loader:(0,h.__name)(async()=>await t.A(555153),"loader")},{name:"swimlane",loader:(0,h.__name)(async()=>await t.A(12782),"loader")},{name:"cose-bilkent",loader:(0,h.__name)(async()=>await t.A(208503),"loader")}])},"registerDefaultLayoutLoaders")();var u=(0,h.__name)(async(t,s)=>{if(!(t.layoutAlgorithm in m))throw Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(let s of t.nodes){let a=s.domId||s.id;s.domId=`${t.diagramId}-${a}`}let a=m[t.layoutAlgorithm],e=await a.loader(),{theme:l,themeVariables:i}=t.config,{useGradient:c,gradientStart:n,gradientStop:h}=i,o=s.attr("id");if(s.append("defs").append("filter").attr("id",`${o}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${l?.includes("dark")?"#FFFFFF":"#000000"}`),s.append("defs").append("filter").attr("id",`${o}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${l?.includes("dark")?"#FFFFFF":"#000000"}`),c){let t=s.append("linearGradient").attr("id",s.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("svg:stop").attr("offset","0%").attr("stop-color",n).attr("stop-opacity",1),t.append("svg:stop").attr("offset","100%").attr("stop-color",h).attr("stop-opacity",1)}return e.render(t,s,r,{algorithm:a.algorithm})},"render"),k=(0,h.__name)((t="",{fallback:s="dagre"}={})=>{if(t in m)return t;if(s in m)return n.log.warn(`Layout algorithm ${t} is not registered. Using ${s} as fallback.`),s;throw Error(`Both layout algorithms ${t} and ${s} are not registered.`)},"getRegisteredLayoutAlgorithm");t.s(["getRegisteredLayoutAlgorithm",0,k,"registerLayoutLoaders",0,o,"render",0,u])},110338,t=>{t.v(s=>Promise.all(["static/chunks/2gocl3dq0_h1s.js","static/chunks/2itcfm_igcz5x.js"].map(s=>t.l(s))).then(()=>s(59618)))},4699,t=>{t.v(s=>Promise.all(["static/chunks/01xjer0i_e5z5.js","static/chunks/2itcfm_igcz5x.js"].map(s=>t.l(s))).then(()=>s(595016)))},208503,t=>{t.v(s=>Promise.all(["static/chunks/0vhltcpdssl3-.js","static/chunks/411-m6wb1xycs.js"].map(s=>t.l(s))).then(()=>s(752312)))},342649,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1g6hadfcoz4ag.js"].map(s=>t.l(s))).then(()=>s(447429)))},555153,t=>{t.v(s=>Promise.all(["static/chunks/16mzcd_gvdgbo.js","static/chunks/3lx-n8v_8u7og.js"].map(s=>t.l(s))).then(()=>s(921789)))},121563,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/221-n1wtpkus8.js"].map(s=>t.l(s))).then(()=>s(52278)))},775281,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/3oif9bymgqjgd.js"].map(s=>t.l(s))).then(()=>s(75306)))},840094,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/3mjwob-a5hhwz.js"].map(s=>t.l(s))).then(()=>s(958133)))},806739,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/266qo7h19xz_m.js"].map(s=>t.l(s))).then(()=>s(486182)))},725135,t=>{t.v(s=>Promise.all(["static/chunks/25pfy8u3vc_bn.js","static/chunks/2qq7e47gpyc_e.js"].map(s=>t.l(s))).then(()=>s(271981)))},257999,t=>{t.v(s=>Promise.all(["static/chunks/1kg8hnvdsweku.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(s=>t.l(s))).then(()=>s(954776)))},126038,t=>{t.v(s=>Promise.all(["static/chunks/1wrwqqt23_cqy.js"].map(s=>t.l(s))).then(()=>s(868948)))},299022,t=>{t.v(s=>Promise.all(["static/chunks/025bmrgeukcb2.js","static/chunks/2b4v6n9b8htrv.js"].map(s=>t.l(s))).then(()=>s(595502)))},216587,t=>{t.v(s=>Promise.all(["static/chunks/1ztlt8o8gnas8.js","static/chunks/04e-e--5lk26x.js"].map(s=>t.l(s))).then(()=>s(222024)))},405760,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1rh4z578p-h1a.js"].map(s=>t.l(s))).then(()=>s(896515)))},937084,t=>{t.v(s=>Promise.all(["static/chunks/09nk4rn1z6j8b.js","static/chunks/2qq7e47gpyc_e.js"].map(s=>t.l(s))).then(()=>s(722875)))},223045,t=>{t.v(s=>Promise.all(["static/chunks/0x7n81v2cw92f.js"].map(s=>t.l(s))).then(()=>s(239077)))},104423,t=>{t.v(s=>Promise.all(["static/chunks/0oyz95sujd2c7.js"].map(s=>t.l(s))).then(()=>s(547384)))},847615,t=>{t.v(s=>Promise.all(["static/chunks/3s-zbm7kxc46y.js"].map(s=>t.l(s))).then(()=>s(980953)))},265584,t=>{t.v(s=>Promise.all(["static/chunks/14b2ne-5dycww.js"].map(s=>t.l(s))).then(()=>s(582576)))},121612,t=>{t.v(s=>Promise.all(["static/chunks/1-axl1a1s8xi7.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(s=>t.l(s))).then(()=>s(724854)))},761201,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/38h4_u_fq6ose.js"].map(s=>t.l(s))).then(()=>s(537834)))},480988,t=>{t.v(s=>Promise.all(["static/chunks/0dhmf6y59xjoo.js"].map(s=>t.l(s))).then(()=>s(713179)))},780947,t=>{t.v(s=>Promise.all(["static/chunks/3r7r2d2yc93-y.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(s=>t.l(s))).then(()=>s(354077)))},775900,t=>{t.v(s=>Promise.all(["static/chunks/14osgsp3aiqpz.js"].map(s=>t.l(s))).then(()=>s(207851)))},650519,t=>{t.v(s=>Promise.all(["static/chunks/3peltyinql2qj.js"].map(s=>t.l(s))).then(()=>s(621500)))},654159,t=>{t.v(s=>Promise.all(["static/chunks/2o4dndk0d68do.js","static/chunks/1u5i-jti87jbo.js"].map(s=>t.l(s))).then(()=>s(801891)))},483976,t=>{t.v(s=>Promise.all(["static/chunks/0p54qye85am3w.js"].map(s=>t.l(s))).then(()=>s(122015)))},99530,t=>{t.v(s=>Promise.all(["static/chunks/0u9ae9k_2g7k3.js","static/chunks/3lx-n8v_8u7og.js","static/chunks/3her9o9_qn46y.js"].map(s=>t.l(s))).then(()=>s(757018)))},633604,t=>{t.v(s=>Promise.all(["static/chunks/2sdwbfs1x5skp.js","static/chunks/3her9o9_qn46y.js"].map(s=>t.l(s))).then(()=>s(196572)))},12782,t=>{t.v(s=>Promise.all(["static/chunks/0_l0vn2teso0z.js"].map(s=>t.l(s))).then(()=>s(619325)))},868278,t=>{t.v(s=>Promise.all(["static/chunks/2m267diam_vib.js","static/chunks/2b4v6n9b8htrv.js"].map(s=>t.l(s))).then(()=>s(557786)))},9691,t=>{t.v(s=>Promise.all(["static/chunks/2udhdtq_z8488.js"].map(s=>t.l(s))).then(()=>s(254768)))},539575,t=>{t.v(s=>Promise.all(["static/chunks/0si45yj1su8y7.js"].map(s=>t.l(s))).then(()=>s(263487)))},85919,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/02slxciv9jt1p.js"].map(s=>t.l(s))).then(()=>s(353883)))},437446,t=>{t.v(s=>Promise.all(["static/chunks/2v_t22-0u_seu.js","static/chunks/0m-pl93u72hp9.js"].map(s=>t.l(s))).then(()=>s(819125)))},514467,t=>{t.v(s=>Promise.all(["static/chunks/1zlldlu99uorc.js"].map(s=>t.l(s))).then(()=>s(477142)))},369582,t=>{t.v(s=>Promise.all(["static/chunks/2hugas7n-e13p.js"].map(s=>t.l(s))).then(()=>s(976823)))},558850,t=>{t.v(s=>Promise.all(["static/chunks/41s9cnvp51p5u.js"].map(s=>t.l(s))).then(()=>s(335871)))}]);
|