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
|
@@ -30,7 +30,6 @@ Backend tools:
|
|
|
30
30
|
- Routines: jobs that start by themselves later.
|
|
31
31
|
- Memory: keeps what the user tells you about themselves, and looks it up.
|
|
32
32
|
- This computer and the web: runs a command, searches.
|
|
33
|
-
- What they show you: looks at their screen — a screen, a window or a tab — or their camera, as it is when they ask.
|
|
34
33
|
|
|
35
34
|
Delegate to the backend when:
|
|
36
35
|
- They say goodbye or good night, in whatever words, or want the call to end.
|
|
@@ -44,9 +43,10 @@ Do not delegate to the backend when:
|
|
|
44
43
|
|
|
45
44
|
Delegate before giving an answer that depends on backend work. Do not guess the result while waiting.
|
|
46
45
|
|
|
47
|
-
What they tell you about themselves is handed over quietly: go on talking with them as you were, with no word about noting it, checking or thinking it over, and say nothing more of it when it comes back kept.`;a.s(["loadLivePrompt",0,k]),c()}catch(a){c(a)}},!1),260210,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(229666),f=a.i(225689),g=a.i(293480),h=a.i(713095),i=b([e]);[e]=i.then?(await i)():i;let j=(0,f.serverAction)(async a=>{let b=a.trim();b||(0,g.publicError)("Which artifact?"),await (0,e.deleteArtifact)(b)});(0,h.ensureServerEntryExports)([j]),(0,d.registerServerReference)(j,"7f884f696bcd82ee1243f7a6b4bf52cad03746829d",null),a.s(["deleteArtifactAction",0,j]),c()}catch(a){c(a)}},!1),362562,(a,b,c)=>{b.exports=a.x("module",()=>require("module"))},663070,a=>{"use strict";var b,c,d,e=(0,a.i(362562).createRequire)("/");try{c=(b=e("worker_threads")).Worker,d=b.isMarkedAsUntransferable}catch(a){}var f=c?function(a,b,e,f,g){var h=!1,i=new c(a+";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global",{eval:!0}).on("error",function(a){return g(a,null)}).on("message",function(a){return g(null,a)}).on("exit",function(a){a&&!h&&g(Error("exited with code "+a),null)});return d&&(f=f.filter(function(a){return!d(a)})),i.postMessage(e,f),i.terminate=function(){return h=!0,c.prototype.terminate.call(i)},i}:function(a,b,c,d,e){setImmediate(function(){return e(Error("async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)"),null)});var f=function(){};return{terminate:f,postMessage:f}},g=Uint8Array,h=Uint16Array,i=Int32Array,j=new g([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),k=new g([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),l=new g([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=function(a,b){for(var c=new h(31),d=0;d<31;++d)c[d]=b+=1<<a[d-1];for(var e=new i(c[30]),d=1;d<30;++d)for(var f=c[d];f<c[d+1];++f)e[f]=f-c[d]<<5|d;return{b:c,r:e}},b=m(j,2),n=b.b,o=b.r;n[28]=258,o[258]=28;for(var p=m(k,0),q=p.b,r=p.r,s=new h(32768),t=0;t<32768;++t){var u=(43690&t)>>1|(21845&t)<<1;u=(61680&(u=(52428&u)>>2|(13107&u)<<2))>>4|(3855&u)<<4,s[t]=((65280&u)>>8|(255&u)<<8)>>1}for(var v=function(a,b,c){for(var d,e=a.length,f=0,g=new h(b);f<e;++f)a[f]&&++g[a[f]-1];var i=new h(b);for(f=1;f<b;++f)i[f]=i[f-1]+g[f-1]<<1;if(c){d=new h(1<<b);var j=15-b;for(f=0;f<e;++f)if(a[f])for(var k=f<<4|a[f],l=b-a[f],m=i[a[f]-1]++<<l,n=m|(1<<l)-1;m<=n;++m)d[s[m]>>j]=k}else for(d=new h(e),f=0;f<e;++f)a[f]&&(d[f]=s[i[a[f]-1]++]>>15-a[f]);return d},w=new g(288),t=0;t<144;++t)w[t]=8;for(var t=144;t<256;++t)w[t]=9;for(var t=256;t<280;++t)w[t]=7;for(var t=280;t<288;++t)w[t]=8;for(var x=new g(32),t=0;t<32;++t)x[t]=5;var y=v(w,9,0),z=v(w,9,1),A=v(x,5,0),B=v(x,5,1),C=function(a){for(var b=a[0],c=1;c<a.length;++c)a[c]>b&&(b=a[c]);return b},D=function(a,b,c){var d=b/8|0;return(a[d]|a[d+1]<<8)>>(7&b)&c},E=function(a,b){var c=b/8|0;return(a[c]|a[c+1]<<8|a[c+2]<<16)>>(7&b)},F=function(a){return(a+7)/8|0},G=function(a,b,c){return(null==b||b<0)&&(b=0),(null==c||c>a.length)&&(c=a.length),new g(a.subarray(b,c))},H=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],I=function(a,b,c){var d=Error(b||H[a]);if(d.code=a,Error.captureStackTrace&&Error.captureStackTrace(d,I),!c)throw d;return d},J=function(a,b,c,d){var e=a.length,f=d?d.length:0;if(!e||b.f&&!b.l)return c||new g(0);var h=!c,i=h||2!=b.i,m=b.i;h&&(c=new g(3*e));var o=function(a){var b=c.length;if(a>b){var d=new g(Math.max(2*b,a));d.set(c),c=d}},p=b.f||0,r=b.p||0,s=b.b||0,t=b.l,u=b.d,w=b.m,x=b.n,y=8*e;do{if(!t){p=D(a,r,1);var A=D(a,r+1,3);if(r+=3,A)if(1==A)t=z,u=B,w=9,x=5;else if(2==A){var H=D(a,r,31)+257,J=D(a,r+10,15)+4,K=H+D(a,r+5,31)+1;r+=14;for(var L=new g(K),M=new g(19),N=0;N<J;++N)M[l[N]]=D(a,r+3*N,7);r+=3*J;for(var O=C(M),P=(1<<O)-1,Q=v(M,O,1),N=0;N<K;){var R=Q[D(a,r,P)];r+=15&R;var S=R>>4;if(S<16)L[N++]=S;else{var T=0,U=0;for(16==S?(U=3+D(a,r,3),r+=2,T=L[N-1]):17==S?(U=3+D(a,r,7),r+=3):18==S&&(U=11+D(a,r,127),r+=7);U--;)L[N++]=T}}var V=L.subarray(0,H),W=L.subarray(H);w=C(V),x=C(W),t=v(V,w,1),u=v(W,x,1)}else I(1);else{var S=F(r)+4,X=a[S-4]|a[S-3]<<8,Y=S+X;if(Y>e){m&&I(0);break}i&&o(s+X),c.set(a.subarray(S,Y),s),b.b=s+=X,b.p=r=8*Y,b.f=p;continue}if(r>y){m&&I(0);break}}i&&o(s+131072);for(var Z=(1<<w)-1,$=(1<<x)-1,_=r;;_=r){var T=t[E(a,r)&Z],aa=T>>4;if((r+=15&T)>y){m&&I(0);break}if(T||I(2),aa<256)c[s++]=aa;else if(256==aa){_=r,t=null;break}else{var ab=aa-254;if(aa>264){var N=aa-257,ac=j[N];ab=D(a,r,(1<<ac)-1)+n[N],r+=ac}var ad=u[E(a,r)&$],ae=ad>>4;ad||I(3),r+=15&ad;var W=q[ae];if(ae>3){var ac=k[ae];W+=E(a,r)&(1<<ac)-1,r+=ac}if(r>y){m&&I(0);break}i&&o(s+131072);var af=s+ab;if(s<W){var ag=f-W,ah=Math.min(W,af);for(ag+s<0&&I(3);s<ah;++s)c[s]=d[ag+s]}for(;s<af;++s)c[s]=c[s-W]}}b.l=t,b.p=_,b.b=s,b.f=p,t&&(p=1,b.m=w,b.d=u,b.n=x)}while(!p)return s!=c.length&&h?G(c,0,s):c.subarray(0,s)},K=function(a,b,c){c<<=7&b;var d=b/8|0;a[d]|=c,a[d+1]|=c>>8},L=function(a,b,c){c<<=7&b;var d=b/8|0;a[d]|=c,a[d+1]|=c>>8,a[d+2]|=c>>16},M=function(a,b){for(var c=[],d=0;d<a.length;++d)a[d]&&c.push({s:d,f:a[d]});var e=c.length,f=c.slice();if(!e)return{t:T,l:0};if(1==e){var i=new g(c[0].s+1);return i[c[0].s]=1,{t:i,l:1}}c.sort(function(a,b){return a.f-b.f}),c.push({s:-1,f:25001});var j=c[0],k=c[1],l=0,m=1,n=2;for(c[0]={s:-1,f:j.f+k.f,l:j,r:k};m!=e-1;)j=c[c[l].f<c[n].f?l++:n++],k=c[l!=m&&c[l].f<c[n].f?l++:n++],c[m++]={s:-1,f:j.f+k.f,l:j,r:k};for(var o=f[0].s,d=1;d<e;++d)f[d].s>o&&(o=f[d].s);var p=new h(o+1),q=N(c[m-1],p,0);if(q>b){var d=0,r=0,s=q-b,t=1<<s;for(f.sort(function(a,b){return p[b.s]-p[a.s]||a.f-b.f});d<e;++d){var u=f[d].s;if(p[u]>b)r+=t-(1<<q-p[u]),p[u]=b;else break}for(r>>=s;r>0;){var v=f[d].s;p[v]<b?r-=1<<b-p[v]++-1:++d}for(;d>=0&&r;--d){var w=f[d].s;p[w]==b&&(--p[w],++r)}q=b}return{t:new g(p),l:q}},N=function(a,b,c){return -1==a.s?Math.max(N(a.l,b,c+1),N(a.r,b,c+1)):b[a.s]=c},O=function(a){for(var b=a.length;b&&!a[--b];);for(var c=new h(++b),d=0,e=a[0],f=1,g=function(a){c[d++]=a},i=1;i<=b;++i)if(a[i]==e&&i!=b)++f;else{if(!e&&f>2){for(;f>138;f-=138)g(32754);f>2&&(g(f>10?f-11<<5|28690:f-3<<5|12305),f=0)}else if(f>3){for(g(e),--f;f>6;f-=6)g(8304);f>2&&(g(f-3<<5|8208),f=0)}for(;f--;)g(e);f=1,e=a[i]}return{c:c.subarray(0,d),n:b}},P=function(a,b){for(var c=0,d=0;d<b.length;++d)c+=a[d]*b[d];return c},Q=function(a,b,c){var d=c.length,e=F(b+2);a[e]=255&d,a[e+1]=d>>8,a[e+2]=255^a[e],a[e+3]=255^a[e+1];for(var f=0;f<d;++f)a[e+f+4]=c[f];return(e+4+d)*8},R=function(a,b,c,d,e,f,g,i,m,n,o){K(b,o++,c),++e[256];for(var p,q,r,s,t=M(e,15),u=t.t,z=t.l,B=M(f,15),C=B.t,D=B.l,E=O(u),F=E.c,G=E.n,H=O(C),I=H.c,J=H.n,N=new h(19),R=0;R<F.length;++R)++N[31&F[R]];for(var R=0;R<I.length;++R)++N[31&I[R]];for(var S=M(N,7),T=S.t,U=S.l,V=19;V>4&&!T[l[V-1]];--V);var W=n+5<<3,X=P(e,w)+P(f,x)+g,Y=P(e,u)+P(f,C)+g+14+3*V+P(N,T)+2*N[16]+3*N[17]+7*N[18];if(m>=0&&W<=X&&W<=Y)return Q(b,o,a.subarray(m,m+n));if(K(b,o,1+(Y<X)),o+=2,Y<X){p=v(u,z,0),q=u,r=v(C,D,0),s=C;var Z=v(T,U,0);K(b,o,G-257),K(b,o+5,J-1),K(b,o+10,V-4),o+=14;for(var R=0;R<V;++R)K(b,o+3*R,T[l[R]]);o+=3*V;for(var $=[F,I],_=0;_<2;++_)for(var aa=$[_],R=0;R<aa.length;++R){var ab=31&aa[R];K(b,o,Z[ab]),o+=T[ab],ab>15&&(K(b,o,aa[R]>>5&127),o+=aa[R]>>12)}}else p=y,q=w,r=A,s=x;for(var R=0;R<i;++R){var ac=d[R];if(ac>255){var ab=ac>>18&31;L(b,o,p[ab+257]),o+=q[ab+257],ab>7&&(K(b,o,ac>>23&31),o+=j[ab]);var ad=31∾L(b,o,r[ad]),o+=s[ad],ad>3&&(L(b,o,ac>>5&8191),o+=k[ad])}else L(b,o,p[ac]),o+=q[ac]}return L(b,o,p[256]),o+q[256]},S=new i([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),T=new g(0),U=function(a,b,c,d,e,f){var l=f.z||a.length,m=new g(d+l+5*(1+Math.ceil(l/7e3))+e),n=m.subarray(d,m.length-e),p=f.l,q=7&(f.r||0);if(b){q&&(n[0]=f.r>>3);for(var s=S[b-1],t=s>>13,u=8191&s,v=(1<<c)-1,w=f.p||new h(32768),x=f.h||new h(v+1),y=Math.ceil(c/3),z=2*y,A=function(b){return(a[b]^a[b+1]<<y^a[b+2]<<z)&v},B=new i(25e3),C=new h(288),D=new h(32),E=0,H=0,I=f.i||0,J=0,K=f.w||0,L=0;I+2<l;++I){var M=A(I),N=32767&I,O=x[M];if(w[N]=O,x[M]=N,K<=I){var P=l-I;if((E>7e3||J>24576)&&(P>423||!p)){q=R(a,n,0,B,C,D,H,J,L,I-L,q),J=E=H=0,L=I;for(var T=0;T<286;++T)C[T]=0;for(var T=0;T<30;++T)D[T]=0}var U=2,V=0,W=u,X=N-O&32767;if(P>2&&M==A(I-X))for(var Y=Math.min(t,P)-1,Z=Math.min(32767,I),$=Math.min(258,P);X<=Z&&--W&&N!=O;){if(a[I+U]==a[I+U-X]){for(var _=0;_<$&&a[I+_]==a[I+_-X];++_);if(_>U){if(U=_,V=X,_>Y)break;for(var aa=Math.min(X,_-2),ab=0,T=0;T<aa;++T){var ac=I-X+T&32767,ad=w[ac],ae=ac-ad&32767;ae>ab&&(ab=ae,O=ac)}}}O=w[N=O],X+=N-O&32767}if(V){B[J++]=0x10000000|o[U]<<18|r[V];var af=31&o[U],ag=31&r[V];H+=j[af]+k[ag],++C[257+af],++D[ag],K=I+U,++E}else B[J++]=a[I],++C[a[I]]}}for(I=Math.max(I,K);I<l;++I)B[J++]=a[I],++C[a[I]];q=R(a,n,p,B,C,D,H,J,L,I-L,q),p||(f.r=7&q|n[q/8|0]<<3,q-=7,f.h=x,f.p=w,f.i=I,f.w=K)}else{for(var I=f.w||0;I<l+p;I+=65535){var ah=I+65535;ah>=l&&(n[q/8|0]=p,ah=l),q=Q(n,q+1,a.subarray(I,ah))}f.i=l}return G(m,0,d+F(q)+e)},V=function(){for(var a=new Int32Array(256),b=0;b<256;++b){for(var c=b,d=9;--d;)c=(1&c&&-0x12477ce0)^c>>>1;a[b]=c}return a}(),W=function(){var a=-1;return{p:function(b){for(var c=a,d=0;d<b.length;++d)c=V[255&c^b[d]]^c>>>8;a=c},d:function(){return~a}}},X=function(){var a=1,b=0;return{p:function(c){for(var d=a,e=b,f=0|c.length,g=0;g!=f;){for(var h=Math.min(g+2655,f);g<h;++g)e+=d+=c[g];d=(65535&d)+15*(d>>16),e=(65535&e)+15*(e>>16)}a=d,b=e},d:function(){return a%=65521,b%=65521,(255&a)<<24|(65280&a)<<8|(255&b)<<8|b>>8}}},Y=function(a,b,c,d,e){if(!e&&(e={l:1},b.dictionary)){var f=b.dictionary.subarray(-32768),h=new g(f.length+a.length);h.set(f),h.set(a,f.length),a=h,e.w=f.length}return U(a,null==b.level?6:b.level,null==b.mem?e.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):20:12+b.mem,c,d,e)},Z=function(a,b){var c={};for(var d in a)c[d]=a[d];for(var d in b)c[d]=b[d];return c},$=function(a,b,c){for(var d=a(),e=a.toString(),f=e.slice(e.indexOf("[")+1,e.lastIndexOf("]")).replace(/\s+/g,"").split(","),g=0;g<d.length;++g){var h=d[g],i=f[g];if("function"==typeof h){b+=";"+i+"=";var j=h.toString();if(h.prototype)if(-1!=j.indexOf("[native code]")){var k=j.indexOf(" ",8)+1;b+=j.slice(k,j.indexOf("(",k))}else for(var l in b+=j,h.prototype)b+=";"+i+".prototype."+l+"="+h.prototype[l].toString();else b+=j}else c[i]=h}return b},_=[],aa=function(a){var b=[];for(var c in a)a[c].buffer&&b.push((a[c]=new a[c].constructor(a[c])).buffer);return b},ab=function(a,b,c,d){if(!_[c]){for(var e="",g={},h=a.length-1,i=0;i<h;++i)e=$(a[i],e,g);_[c]={c:$(a[h],e,g),e:g}}var j=Z({},_[c].e);return f(_[c].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+b.toString()+"}",c,j,aa(j),d)},ac=function(){return[g,h,i,j,k,l,n,q,z,B,s,H,v,C,D,E,F,G,I,J,aA,ag,ah]},ad=function(){return[g,h,i,j,k,l,o,r,y,w,A,x,s,S,T,v,K,L,M,N,O,P,Q,R,F,G,U,Y,ax,ag]},ae=function(){return[ap,aq]},af=function(){return[at]},ag=function(a){return postMessage(a,[a.buffer])},ah=function(a){return a&&{out:a.size&&new g(a.size),dictionary:a.dictionary}},ai=function(a){return a.ondata=function(a,b){return postMessage([a,b],[a.buffer])},function(b){b.data[0]?(a.push(b.data[0],b.data[1]),postMessage([b.data[0].length])):a.flush(b.data[1])}},aj=function(a,b,c,d,e,f,g){var h,i=ab(a,d,e,function(a,c){a?(i.terminate(),b.ondata.call(b,a)):Array.isArray(c)?1==c.length?(b.queuedSize-=c[0],b.ondrain&&b.ondrain(c[0])):(c[1]&&i.terminate(),b.ondata.call(b,a,c[0],c[1])):g(c)});i.postMessage(c),b.queuedSize=0,b.push=function(a,c){b.ondata||I(5),h&&b.ondata(I(4,0,1),null,!!c),b.queuedSize+=a.length,i.postMessage([a,h=c],a.buffer instanceof ArrayBuffer?[a.buffer]:[])},b.terminate=function(){i.terminate()},f&&(b.flush=function(a){i.postMessage([0,a])})},ak=function(a,b){return a[b]|a[b+1]<<8},al=function(a,b){return(a[b]|a[b+1]<<8|a[b+2]<<16|a[b+3]<<24)>>>0},am=function(a,b){return al(a,b)+0x100000000*al(a,b+4)},an=function(a,b,c){for(;c;++b)a[b]=c,c>>>=8},ao=function(a,b){var c=b.filename;if(a[0]=31,a[1]=139,a[2]=8,a[8]=b.level<2?4:2*(9==b.level),a[9]=3,0!=b.mtime&&an(a,4,Math.floor(new Date(b.mtime||Date.now())/1e3)),c){a[3]=8;for(var d=0;d<=c.length;++d)a[d+10]=c.charCodeAt(d)}},ap=function(a){(31!=a[0]||139!=a[1]||8!=a[2])&&I(6,"invalid gzip data");var b=a[3],c=10;4&b&&(c+=(a[10]|a[11]<<8)+2);for(var d=(b>>3&1)+(b>>4&1);d>0;d-=!a[c++]);return c+(2&b)},aq=function(a){var b=a.length;return(a[b-4]|a[b-3]<<8|a[b-2]<<16|a[b-1]<<24)>>>0},ar=function(a){return 10+(a.filename?a.filename.length+1:0)},as=function(a,b){var c=b.level;if(a[0]=120,a[1]=(0==c?0:c<6?1:9==c?3:2)<<6|(b.dictionary&&32),a[1]|=31-(a[0]<<8|a[1])%31,b.dictionary){var d=X();d.p(b.dictionary),an(a,2,d.d())}},at=function(a,b){return((15&a[0])!=8||a[0]>>4>7||(a[0]<<8|a[1])%31)&&I(6,"invalid zlib data"),(a[1]>>5&1)==+!b&&I(6,"invalid zlib data: "+(32&a[1]?"need":"unexpected")+" dictionary"),(a[1]>>3&4)+2};function au(a,b){return"function"==typeof a&&(b=a,a={}),this.ondata=b,a}var av=function(){function a(a,b){if("function"==typeof a&&(b=a,a={}),this.ondata=b,this.o=a||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new g(98304),this.o.dictionary){var c=this.o.dictionary.subarray(-32768);this.b.set(c,32768-c.length),this.s.i=32768-c.length}}return a.prototype.p=function(a,b){this.ondata(Y(a,this.o,0,0,this.s),b)},a.prototype.push=function(a,b){this.ondata||I(5),this.s.l&&I(4);var c=a.length+this.s.z;if(c>this.b.length){if(c>2*this.b.length-32768){var d=new g(-32768&c);d.set(this.b.subarray(0,this.s.z)),this.b=d}var e=this.b.length-this.s.z;this.b.set(a.subarray(0,e),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(a.subarray(e),32768),this.s.z=a.length-e+32768,this.s.i=32766,this.s.w=32768}else this.b.set(a,this.s.z),this.s.z+=a.length;this.s.l=1&b,(this.s.z>this.s.w+8191||b)&&(this.p(this.b,b||!1),this.s.w=this.s.i,this.s.i-=2),b&&(this.s=this.o={},this.b=T)},a.prototype.flush=function(a){if(this.ondata||I(5),this.s.l&&I(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2,a){var b=new g(6);b[0]=this.s.r>>3;var c=Q(b,this.s.r,T);this.s.r=0,this.ondata(b.subarray(0,c>>3),!1)}},a}(),aw=function(a,b){aj([ad,function(){return[ai,av]}],this,au.call(this,a,b),function(a){onmessage=ai(new av(a.data))},6,1)};function ax(a,b){return Y(a,b||{},0,0)}var ay=function(){function a(a,b){"function"==typeof a&&(b=a,a={}),this.ondata=b;var c=a&&a.dictionary&&a.dictionary.subarray(-32768);this.s={i:0,b:c?c.length:0},this.o=new g(32768),this.p=new g(0),c&&this.o.set(c)}return a.prototype.e=function(a){if(this.ondata||I(5),this.d&&I(4),this.p.length){if(a.length){var b=new g(this.p.length+a.length);b.set(this.p),b.set(a,this.p.length),this.p=b}}else this.p=a},a.prototype.c=function(a){this.s.i=+(this.d=a||!1);var b=this.s.b,c=J(this.p,this.s,this.o);this.ondata(G(c,b,this.s.b),this.d),this.o=G(c,this.s.b-32768),this.s.b=this.o.length,this.p=G(this.p,this.s.p/8|0),this.s.p&=7},a.prototype.push=function(a,b){this.e(a),this.c(b)},a}(),az=function(a,b){aj([ac,function(){return[ai,ay]}],this,au.call(this,a,b),function(a){onmessage=ai(new ay(a.data))},7,0)};function aA(a,b){return J(a,{i:2},b&&b.out,b&&b.dictionary)}(function(){function a(a,b){this.c=W(),this.l=0,this.v=1,av.call(this,a,b)}a.prototype.push=function(a,b){this.c.p(a),this.l+=a.length,av.prototype.push.call(this,a,b)},a.prototype.p=function(a,b){var c=Y(a,this.o,this.v&&ar(this.o),b&&8,this.s);this.v&&(ao(c,this.o),this.v=0),b&&(an(c,c.length-8,this.c.d()),an(c,c.length-4,this.l)),this.ondata(c,b)},a.prototype.flush=function(a){av.prototype.flush.call(this,a)}})();var aB=function(){function a(a,b){this.v=1,this.r=0,ay.call(this,a,b)}return a.prototype.push=function(a,b){if(ay.prototype.e.call(this,a),this.r+=a.length,this.v){var c=this.p.subarray(this.v-1),d=c.length>3?ap(c):4;if(d>c.length){if(!b)return}else this.v>1&&this.onmember&&this.onmember(this.r-c.length);this.p=c.subarray(d),this.v=0}ay.prototype.c.call(this,0),this.s.f&&!this.s.l?(this.v=F(this.s.p)+9,this.s={i:0},this.o=new g(0),this.push(new g(0),b)):b&&ay.prototype.c.call(this,b)},a}(),aC=function(a,b){var c=this;aj([ac,ae,function(){return[ai,ay,aB]}],this,au.call(this,a,b),function(a){var b=new aB(a.data);b.onmember=function(a){return postMessage(a)},onmessage=ai(b)},9,0,function(a){return c.onmember&&c.onmember(a)})},aD=(function(){function a(a,b){this.c=X(),this.v=1,av.call(this,a,b)}a.prototype.push=function(a,b){this.c.p(a),av.prototype.push.call(this,a,b)},a.prototype.p=function(a,b){var c=Y(a,this.o,this.v&&(this.o.dictionary?6:2),b&&4,this.s);this.v&&(as(c,this.o),this.v=0),b&&an(c,c.length-4,this.c.d()),this.ondata(c,b)},a.prototype.flush=function(a){av.prototype.flush.call(this,a)}}(),function(){function a(a,b){ay.call(this,a,b),this.v=a&&a.dictionary?2:1}return a.prototype.push=function(a,b){if(ay.prototype.e.call(this,a),this.v){if(this.p.length<6&&!b)return;this.p=this.p.subarray(at(this.p,this.v-1)),this.v=0}b&&(this.p.length<4&&I(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),ay.prototype.c.call(this,b)},a}()),aE=function(a,b){aj([ac,af,function(){return[ai,ay,aD]}],this,au.call(this,a,b),function(a){onmessage=ai(new aD(a.data))},11,0)},aF=function(){function a(a,b){this.o=au.call(this,a,b)||{},this.G=aB,this.I=ay,this.Z=aD}return a.prototype.i=function(){var a=this;this.s.ondata=function(b,c){a.ondata(b,c)}},a.prototype.push=function(a,b){if(this.ondata||I(5),this.s)this.s.push(a,b);else{if(this.p&&this.p.length){var c=new g(this.p.length+a.length);c.set(this.p),c.set(a,this.p.length)}else this.p=a;this.p.length>2&&(this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(this.o):(15&this.p[0])!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,b),this.p=null)}},a}();function aG(a,b){aF.call(this,a,b),this.queuedSize=0,this.G=aC,this.I=az,this.Z=aE}aG.prototype.i=function(){var a=this;this.s.ondata=function(b,c,d){a.ondata(b,c,d)},this.s.ondrain=function(b){a.queuedSize-=b,a.ondrain&&a.ondrain(b)}},aG.prototype.push=function(a,b){this.queuedSize+=a.length,aF.prototype.push.call(this,a,b)};var aH="u">typeof TextEncoder&&new TextEncoder,aI="u">typeof TextDecoder&&new TextDecoder,aJ=0;try{aI.decode(T,{stream:!0}),aJ=1}catch(a){}var aK=function(a){for(var b="",c=0;;){var d=a[c++],e=(d>127)+(d>223)+(d>239);if(c+e>a.length)return{s:b,r:G(a,c-1)};e?3==e?b+=String.fromCharCode(55296|(d=((15&d)<<18|(63&a[c++])<<12|(63&a[c++])<<6|63&a[c++])-65536)>>10,56320|1023&d):1&e?b+=String.fromCharCode((31&d)<<6|63&a[c++]):b+=String.fromCharCode((15&d)<<12|(63&a[c++])<<6|63&a[c++]):b+=String.fromCharCode(d)}};function aL(a,b){if(b){for(var c=new g(a.length),d=0;d<a.length;++d)c[d]=a.charCodeAt(d);return c}if(aH)return aH.encode(a);for(var e=a.length,f=new g(a.length+(a.length>>1)),h=0,i=function(a){f[h++]=a},d=0;d<e;++d){if(h+5>f.length){var j=new g(h+8+(e-d<<1));j.set(f),f=j}var k=a.charCodeAt(d);k<128||b?i(k):(k<2048?i(192|k>>6):(k>55295&&k<57344?(i(240|(k=65536+(1047552&k)|1023&a.charCodeAt(++d))>>18),i(128|k>>12&63)):i(224|k>>12),i(128|k>>6&63)),i(128|63&k))}return G(f,0,h)}function aM(a,b){if(b){for(var c="",d=0;d<a.length;d+=16384)c+=String.fromCharCode.apply(null,a.subarray(d,d+16384));return c}if(aI)return aI.decode(a);var e=aK(a),f=e.s,c=e.r;return c.length&&I(8),f}(function(a){this.ondata=a,aJ?this.t=new TextDecoder:this.p=T}).prototype.push=function(a,b){if(this.ondata||I(5),b=!!b,this.t){this.ondata(this.t.decode(a,{stream:!0}),b),b&&(this.t.decode().length&&I(8),this.t=null);return}this.p||I(4);var c=new g(this.p.length+a.length);c.set(this.p),c.set(a,this.p.length);var d=aK(c),e=d.s,f=d.r;b?(f.length&&I(8),this.p=null):this.p=f,this.ondata(e,b)},(function(a){this.ondata=a}).prototype.push=function(a,b){this.ondata||I(5),this.d&&I(4),this.ondata(aL(a),this.d=b||!1)};var aN=function(a){return 1==a?3:a<6?2:+(9==a)},aO=function(a,b,c){var d=ak(a,b+28),e=ak(a,b+30),f=aM(a.subarray(b+46,b+46+d),!(2048&ak(a,b+8))),g=b+46+d,h=aP(a,g,e,c,al(a,b+20),al(a,b+24),al(a,b+42)),i=h[0],j=h[1],k=h[2];return[ak(a,b+10),i,j,f,g+e+ak(a,b+32),k]},aP=function(a,b,c,d,e,f,g){var h=0xffffffff==e,i=0xffffffff==f,j=0xffffffff==g,k=b+c;if(d&&h+i+j){for(;b+4<k;b+=4+ak(a,b+2))if(1==ak(a,b))return[h?am(a,b+4+8*i):e,i?am(a,b+4):f,j?am(a,b+4+8*(i+h)):g,1];d<2&&I(13)}return[e,f,g,0]},aQ=function(a){var b=0;if(a)for(var c in a){var d=a[c].length;d>65535&&I(9),b+=d+4}return b},aR=function(a,b,c,d,e,f,g,h){var i=d.length,j=c.extra,k=h&&h.length,l=aQ(j);an(a,b,null!=g?0x2014b50:0x4034b50),b+=4,null!=g&&(a[b++]=20,a[b++]=c.os),a[b]=20,b+=2,a[b++]=c.flag<<1|(f<0&&8),a[b++]=e&&8,a[b++]=255&c.compression,a[b++]=c.compression>>8;var m=new Date(null==c.mtime?Date.now():c.mtime),n=m.getFullYear()-1980;if((n<0||n>119)&&I(10),an(a,b,n<<25|m.getMonth()+1<<21|m.getDate()<<16|m.getHours()<<11|m.getMinutes()<<5|m.getSeconds()>>1),b+=4,-1!=f&&(an(a,b,c.crc),an(a,b+4,f<0?-f-2:f),an(a,b+8,c.size)),an(a,b+12,i),an(a,b+14,l),b+=16,null!=g&&(an(a,b,k),an(a,b+6,c.attrs),an(a,b+10,g),b+=14),a.set(d,b),b+=i,l)for(var o in j){var p=j[o],q=p.length;an(a,b,+o),an(a,b+2,q),a.set(p,b+4),b+=4+q}return k&&(a.set(h,b),b+=k),b},aS=function(a,b,c,d,e){an(a,b,0x6054b50),an(a,b+8,c),an(a,b+10,c),an(a,b+12,d),an(a,b+16,e)},aT=function(){function a(a){this.filename=a,this.c=W(),this.size=0,this.compression=0}return a.prototype.process=function(a,b){this.ondata(null,a,b)},a.prototype.push=function(a,b){this.ondata||I(5),this.c.p(a),this.size+=a.length,b&&(this.crc=this.c.d()),this.process(a,b||!1)},a}();function aU(a,b){var c=this;b||(b={}),aT.call(this,a),this.d=new av(b,function(a,b){c.ondata(null,a,b)}),this.compression=8,this.flag=aN(b.level)}function aV(a,b){var c=this;b||(b={}),aT.call(this,a),this.d=new aw(b,function(a,b,d){c.ondata(a,b,d)}),this.compression=8,this.flag=aN(b.level),this.terminate=this.d.terminate}function aW(a){this.ondata=a,this.u=[],this.d=1}aU.prototype.process=function(a,b){try{this.d.push(a,b)}catch(a){this.ondata(a,null,b)}},aU.prototype.push=function(a,b){aT.prototype.push.call(this,a,b)},aV.prototype.process=function(a,b){this.d.push(a,b)},aV.prototype.push=function(a,b){aT.prototype.push.call(this,a,b)},aW.prototype.add=function(a){var b=this;if(this.ondata||I(5),2&this.d)this.ondata(I(4+(1&this.d)*8,0,1),null,!1);else{var c=aL(a.filename),d=c.length,e=a.comment,f=e&&aL(e),h=d!=a.filename.length||f&&e.length!=f.length,i=d+aQ(a.extra)+30;d>65535&&this.ondata(I(11,0,1),null,!1);var j=new g(i);aR(j,0,a,c,h,-1);var k=[j],l=function(){for(var a=0,c=k;a<c.length;a++){var d=c[a];b.ondata(null,d,!1)}k=[]},m=this.d;this.d=0;var n=this.u.length,o=Z(a,{f:c,u:h,o:f,t:function(){a.terminate&&a.terminate()},r:function(){if(l(),m){var a=b.u[n+1];a?a.r():b.d=1}m=1}}),p=0;a.ondata=function(c,d,e){if(c)b.ondata(c,d,e),b.terminate();else if(p+=d.length,k.push(d),e){var f=new g(16);an(f,0,0x8074b50),an(f,4,a.crc),an(f,8,p),an(f,12,a.size),k.push(f),o.c=p,o.b=i+p+16,o.crc=a.crc,o.size=a.size,m&&o.r(),m=1}else m&&l()},this.u.push(o)}},aW.prototype.end=function(){var a=this;2&this.d?this.ondata(I(4+(1&this.d)*8,0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&a.d&&(a.u.splice(-1,1),a.e())},t:function(){}}),this.d=3)},aW.prototype.e=function(){for(var a=0,b=0,c=0,d=0,e=this.u;d<e.length;d++){var f=e[d];c+=46+f.f.length+aQ(f.extra)+(f.o?f.o.length:0)}for(var h=new g(c+22),i=0,j=this.u;i<j.length;i++){var f=j[i];aR(h,a,f,f.f,f.u,-f.c-2,b,f.o),a+=46+f.f.length+aQ(f.extra)+(f.o?f.o.length:0),b+=f.b}aS(h,a,this.u.length,c,b),this.ondata(null,h,!0),this.d=2},aW.prototype.terminate=function(){for(var a=0,b=this.u;a<b.length;a++)b[a].t();this.d=2};var aX=function(){function a(){}return a.prototype.push=function(a,b){this.ondata(null,a,b)},a.compression=0,a}();function aY(){var a=this;this.i=new ay(function(b,c){a.ondata(null,b,c)})}function aZ(a,b){var c=this;b<32e4?this.i=new ay(function(a,b){c.ondata(null,a,b)}):(this.i=new az(function(a,b,d){c.ondata(a,b,d)}),this.terminate=this.i.terminate)}function a$(a){this.onfile=a,this.k=[],this.o={0:aX},this.p=T}aY.prototype.push=function(a,b){try{this.i.push(a,b)}catch(a){this.ondata(a,null,b)}},aY.compression=8,aZ.prototype.push=function(a,b){this.i.terminate&&(a=G(a,0)),this.i.push(a,b)},aZ.compression=8,a$.prototype.push=function(a,b){var c=this;if(this.onfile||I(5),this.p||I(4),this.c>0){var d=Math.min(this.c,a.length),e=a.subarray(0,d);if(this.c-=d,this.d?this.d.push(e,!this.c):this.k[0].push(e),(a=a.subarray(d)).length)return this.push(a,b)}else{var f=0,h=0,i=void 0,j=void 0;this.p.length?a.length?((j=new g(this.p.length+a.length)).set(this.p),j.set(a,this.p.length)):j=this.p:j=a;for(var k=j.length,l=this.c,m=l&&this.d,n=this;h<k-4&&"break"!==function(){var a=al(j,h);if(0x4034b50==a){f=1,i=h,n.d=null,n.c=0;var b=ak(j,h+6),d=ak(j,h+8),e=ak(j,h+26),g=ak(j,h+28);if(k>h+30+e+g){var m,o=[];n.k.unshift(o),f=2;var p=al(j,h+18),q=al(j,h+22),r=aM(j.subarray(h+30,h+=30+e),!(2048&b)),s=aP(j,h,g,2,p,q,0),t=s[0],u=s[1],v=s[3];8&b&&(t=-1-v),h+=g,n.c=t;var w={name:r,compression:d,start:function(){if(w.ondata||I(5),t){var a=c.o[d];a||w.ondata(I(14,"unknown compression type "+d,1),null,!1),(m=t<0?new a(r):new a(r,t,u)).ondata=function(a,b,c){w.ondata(a,b,c)};for(var b=0;b<o.length;b++){var e=o[b];m.push(e,!1)}c.k[0]==o&&c.c?c.d=m:m.push(T,!0)}else w.ondata(null,T,!0)},terminate:function(){m&&m.terminate&&m.terminate()}};t>=0&&(w.size=t,w.originalSize=u),n.onfile(w)}return"break"}if(l){if(0x8074b50==a)return i=h+=12+(-2==l&&8),f=3,n.c=0,"break";else if(0x2014b50==a)return i=h-=4,f=3,n.c=0,"break"}}();++h);if(this.p=T,l<0){var o=f?j.subarray(0,i-12-(-2==l&&8)-(0x8074b50==al(j,i-16)&&4)):j.subarray(0,h);m?m.push(o,!!f):this.k[+(2==f)].push(o)}if(2&f)return this.push(j.subarray(h),b);this.p=j.subarray(h)}b&&(this.c&&I(13),this.p=null)},a$.prototype.register=function(a){this.o[a.compression]=a},"function"==typeof queueMicrotask&&queueMicrotask,a.s(["unzipSync",0,function(a,b){for(var c={},d=a.length-22;0x6054b50!=al(a,d);--d)(!d||a.length-d>65558)&&I(13);var e=ak(a,d+8);if(!e)return{};var f=al(a,d+16),h=0x7064b50==al(a,d-20);if(h){var i=al(a,d-12);(h=0x6064b50==al(a,i))&&(e=al(a,i+32),f=al(a,i+48))}for(var j=b&&b.filter,k=0;k<e;++k){var l=aO(a,f,h),m=l[0],n=l[1],o=l[2],p=l[3],q=l[4],r=l[5],s=r+30+ak(a,r+26)+ak(a,r+28);f=q,(!j||j({name:p,size:n,originalSize:o,compression:m}))&&(m?8==m?c[p]=aA(a.subarray(s,s+n),{out:new g(o)}):I(14,"unknown compression type "+m):c[p]=G(a,s,s+n))}return c}])},937864,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(53112),f=a.i(569572),g=a.i(652619),h=a.i(552556),i=a.i(558067),j=a.i(69721),k=a.i(225689),l=a.i(293480),m=a.i(688034),n=a.i(725466),o=a.i(713095),p=b([g,n]);[g,n]=p.then?(await p)():p;let s=e.z.enum(m.CONFIG_KEYS),t=(0,k.serverAction)(async(a,b)=>{let c=e.z.object({key:s,value:e.z.string().trim().min(1)}).parse({key:a,value:b}),d=m.CONFIG_ENTRIES[c.key];if(q(c.key),d?.signIn&&(0,l.publicError)(`${d.label} takes a sign-in, not a key.`),d?.choices?(0,m.acceptsChoice)(d,c.value)||(0,l.publicError)("That is not one of the options."):c.value.length<f.KEY_MIN&&(0,l.publicError)("That does not look like a key"),c.key===h.LIVE_PROVIDER.apiKeyName){let a=await (0,j.keyRefusal)(c.value);a&&(0,l.publicError)(`${h.LIVE_PROVIDER.label} did not take it — ${a}`)}await (0,n.writeConfig)(c.key,c.value),await r(c.key)}),u=(0,k.serverAction)(async a=>{let b=s.parse(a);q(b),await (0,n.removeConfig)(b),await r(b)});function q(a){(0,n.configFromEnv)(a)&&(0,l.publicError)((0,m.envWords)(m.CONFIG_ENTRIES[a]?.label??a))}async function r(b){if(!Object.values(i.REACH_KEYS).some(a=>a.includes(b)))return;let{reachChannelOf:c,startReach:d}=await a.A(453556),e=c(b);e&&await d(e)}let v=(0,k.serverAction)(async()=>(0,g.startChatGptSignIn)());(0,o.ensureServerEntryExports)([t,u,v]),(0,d.registerServerReference)(t,"7fe924f7561a3ef74d2113f93e667775a557e2df89",null),(0,d.registerServerReference)(u,"7f5560e14869c36278e12c0f56413b9bdc4bdc2c60",null),(0,d.registerServerReference)(v,"7f8b813c5e6b976a8dca59a60b04944d8fa2e7f0ac",null),a.s(["removeConfigAction",0,u,"setConfigAction",0,t,"startChatGptSignInAction",0,v]),c()}catch(a){c(a)}},!1),935930,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(569572),f=a.i(947950),g=a.i(899284),h=a.i(225689),i=a.i(293480),j=a.i(182248),k=a.i(317844),l=a.i(713095),m=b([f,k]);[f,k]=m.then?(await m)():m;let o=(0,h.serverAction)(async a=>{let b=g.MCPServerFormSchema.parse(a);b.name===e.STUDIO_SERVER&&(0,i.publicError)(`"${e.STUDIO_SERVER}" is the app's own — pick another name`);let c=!!await (0,f.findServerDetail)(b.name);await (0,f.upsertServer)(b);let d=await n(b.name);return"error"!==d.status||c||await (0,f.deleteServer)(b.name),d}),p=(0,h.serverAction)(async a=>(await (0,f.forgetLostSignIn)(a),await k.mcpManager.disconnect(a),n(a))),q=(0,h.serverAction)(async a=>{await k.mcpManager.disconnect(a),await (0,f.deleteServer)(a)||(0,i.publicError)("Server not found")});async function n(a){try{let b=await k.mcpManager.connect(a);return"auth_required"===b.status?{name:a,status:"auth_required",authorizationUrl:b.authorizationUrl,toolCount:0}:{name:a,status:"connected",toolCount:b.tools.length}}catch(b){return{name:a,status:"error",toolCount:0,error:(0,j.errorToString)(b)}}}let r=(0,h.serverAction)(async(a,b,c)=>{try{return await k.mcpManager.callTool(a,b,c)}catch(a){a instanceof k.McpAuthRequiredError&&(0,i.publicError)("Authorization required — reconnect this server first"),(0,i.publicError)((0,j.errorToString)(a))}});(0,l.ensureServerEntryExports)([o,p,q,r]),(0,d.registerServerReference)(o,"7f0d90b8e45583a7092d702308b13d529e5b742a41",null),(0,d.registerServerReference)(p,"7f4f357a8af7de4d63dcdddb1bcc092a6cff2fae56",null),(0,d.registerServerReference)(q,"7f814b74c4c76b775fa51e722867c89bf8b4db8774",null),(0,d.registerServerReference)(r,"7fad0433bc61c03b7740787a107217dab970d1f0d0",null),a.s(["callToolAction",0,r,"deleteServerAction",0,q,"refreshServerAction",0,p,"registerServerAction",0,o]),c()}catch(a){c(a)}},!1),999055,a=>a.a(async(b,c)=>{try{var d=a.i(937864),e=a.i(910350),f=a.i(926944),g=a.i(243184);a.i(69999);var h=a.i(451208),i=a.i(201300),j=a.i(102409),k=a.i(439759),l=a.i(260210),m=a.i(432443),n=a.i(935930),o=b([d,e,f,g,h,i,j,k,l,m,n]);[d,e,f,g,h,i,j,k,l,m,n]=o.then?(await o)():o,a.s([]),c()}catch(a){c(a)}},!1),953063,a=>a.a(async(b,c)=>{try{var d=a.i(999055),e=a.i(937864),f=a.i(910350),g=a.i(926944),h=a.i(243184),i=a.i(69999),j=a.i(451208),k=a.i(201300),l=a.i(102409),m=a.i(439759),n=a.i(260210),o=a.i(432443),p=a.i(935930),q=b([d,e,f,g,h,j,k,l,m,n,o,p]);[d,e,f,g,h,j,k,l,m,n,o,p]=q.then?(await q)():q,a.s(["7f0375729fbb966b499d38ee9eb2db65aa5959ac23",()=>l.deleteRoutineAction,"7f09c9d781b6cac74a6a3187ea7596190a55dfe796",()=>m.endCallAction,"7f0ae62c0ac368dc5da59339426e6fb44388d47b7a",()=>m.saveThoughtAction,"7f0d90b8e45583a7092d702308b13d529e5b742a41",()=>p.registerServerAction,"7f18b30e21f7b9bf18b2841e3cdace2ebe55288990",()=>f.compactThreadAction,"7f2241d47cd5bdb236943358f0a3f7c5d4d362a725",()=>f.deleteThreadAction,"7f2e2c7a4da9912783b18cc52c4f9c245be51244b7",()=>o.deleteSkillAction,"7f37d1eb5dbeb3a76291c30a68837e065d03d44edf",()=>k.createNoteAction,"7f3c34a80a7a7afd738489e64dedaddc155ab7649a",()=>g.declineReachAction,"7f4273e0b032eca6d36648bd0866174849827992e7",()=>m.setLiveSettingsAction,"7f42c067c3a81c73a7e1d1a6c62adb156657bc39a2",()=>m.seedLiveSettingsAction,"7f4f357a8af7de4d63dcdddb1bcc092a6cff2fae56",()=>p.refreshServerAction,"7f514507aa3e03b8114e1ae21ea0f9d1177d1bd921",()=>k.addFactsAction,"7f520a6b6e23eca3675e91da7b3e28bdce17c87f10",()=>f.createBotAction,"7f5560e14869c36278e12c0f56413b9bdc4bdc2c60",()=>e.removeConfigAction,"7f566743cbd7072c1db3b12b3177d8da25748c7fdb",()=>f.tellFileThreadAction,"7f594531f6528f1c98632cfb9450ee8f533b088e7c",()=>k.reviseFactAction,"7f651bcf7c070111af7dd71d5b5b3371ef9376d431",()=>g.allowReachAction,"7f680b32ef1f073f3821633be8c720bcffa2c27469",()=>o.uploadSkillAction,"7f6dc4115bfa127be0bebd4d5afaa8cfd1f6576e8c",()=>m.saveTurnsAction,"7f6ecf357c9df18a2ebd6d4d205a43cf44d3dfbe66",()=>o.createSkillAction,"7f702bfe55d692e734c2f453bfc8d83aaff549e6c1",()=>i.setSignInBotAction,"7f73e608587186739d9c73d9b26e8f768a4aba6b13",()=>f.updateBotAction,"7f74bfdaa7335873eda514d33eeabc4ea6cd4d6666",()=>k.updateNoteAction,"7f814b74c4c76b775fa51e722867c89bf8b4db8774",()=>p.deleteServerAction,"7f81c0d82b3f66e9ed1d39c2669b1b75439df7895e",()=>o.setSkillDisabledAction,"7f84964ccea27e28ee8f9d98f1ff49efd47267d042",()=>m.openTextCallAction,"7f861b6e2d38023fb68990b3a53edec7294ca6bc3b",()=>f.cancelThreadAction,"7f86bd55242f0809f4dd59ee78327f2958cb445ee8",()=>m.openCallAction,"7f884f696bcd82ee1243f7a6b4bf52cad03746829d",()=>n.deleteArtifactAction,"7f8b813c5e6b976a8dca59a60b04944d8fa2e7f0ac",()=>e.startChatGptSignInAction,"7f8e0d64b61489cb6264303abd2b16ebdb0456c05f",()=>j.deleteWorkspaceFileAction,"7f97a82d888cfa9103c4bdb629a7fbaec8f5387d2c",()=>j.openFileAction,"7f9abaf878610c3f0c8b9e163ea68ef0058e5a15e8",()=>m.tellTextCallAction,"7f9d6828ba96087c0e255be89919ed9eddf36efb91",()=>f.deleteBotAction,"7fa1987fc7a441db3506245676c9a2d2f127f43ba5",()=>f.withdrawStepInAction,"7fa1e4aefcff8b4d26db50f0ca371326c64d147461",()=>k.forgetFactAction,"7fa91a53770f9025c546516ecb8724f52522e1bd56",()=>l.runRoutineNowAction,"7fad0433bc61c03b7740787a107217dab970d1f0d0",()=>p.callToolAction,"7fb0366b514b56b32626e5f81df663933da65d2caa",()=>f.markSeenAction,"7fb428b8e286601420a6d697b143fa9d30d022f56a",()=>l.updateRoutineAction,"7fb4d1aec6de09fa105ed485167a03f9d27e936a7e",()=>f.clearOwnLineAction,"7fb87c89f9348c91147fc737309dc180f404ea235f",()=>h.passIntroAction,"7fb924317025266c847f2e459f167781ee80227656",()=>j.savePageAction,"7fb96a5b799b47475634d334f8d8e8e45e5a87ac3a",()=>f.handFileAction,"7fc43eddcb402babda7b91c43440a4059624ba31f1",()=>o.writeSkillFileAction,"7fd0304c674bbabbac63354fcd8446f6eb758d0408",()=>l.createRoutineAction,"7fd369b721f078067b8d1c80238665c6e9b456cb4a",()=>m.resetHistoryAction,"7fd60492ca8b4476c218ee9f8df2e3a642a38287d3",()=>j.giveFilesAction,"7fdb1316193e67caf4748d281eef408f1ed088ee63",()=>f.clearFinishedThreadsAction,"7fdc0bda40cf421c5678320fcc8d62cc032f36c78f",()=>g.forgetReachAction,"7fdc1c1ad51ef63c641bb258dcb66c4c8604b8c49c",()=>k.deleteNoteAction,"7fe0b6a162f209a2fcb2ab586ccbb28b10583f588f",()=>f.startThreadAction,"7fe34f34e212e5b528f825927fa4eacc53c7dce4d8",()=>j.emptyScratchAction,"7fe8114b080d4ed37c93beb2d5c0a94efd26f9be55",()=>i.removeSignInAction,"7fe8f5107fdfb9610f4ec9b36b045b88fbaff9f031",()=>f.setBotMemoryOnAction,"7fe924f7561a3ef74d2113f93e667775a557e2df89",()=>e.setConfigAction,"7fecf5743ccfdc43606b45739542384212051fd6a6",()=>f.createSeedBotsAction,"7fed2c8a9e8c1b49ba5e31f6c4547cd59c66b3e210",()=>m.deleteCallAction,"7ff12b600b8e7506e13d8cda53caa05a9be2736bc7",()=>f.acceptThreadRelaysAction,"7ff426f96f47c6ea4160f5d150ae8880b93147a001",()=>j.revealFileAction,"7ffa66145398fbedd7d4f9082c21bf1cd5fdbe1812",()=>m.deleteEndedCallsAction,"7fff5dd46a56280e775671bc92944bfd3546dc4941",()=>f.answerThreadAction]),c()}catch(a){c(a)}},!1),243184,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(225689),f=a.i(756984),g=a.i(713095),h=b([f]);[f]=h.then?(await h)():h;let i=(0,e.serverAction)(async()=>{await (0,f.markIntroPassed)()});(0,g.ensureServerEntryExports)([i]),(0,d.registerServerReference)(i,"7fb87c89f9348c91147fc737309dc180f404ea235f",null),a.s(["passIntroAction",0,i]),c()}catch(a){c(a)}},!1),201300,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(53112),f=a.i(986743),g=a.i(661210),h=a.i(225689),i=a.i(293480),j=a.i(713095),k=b([f]);[f]=k.then?(await k)():k;let l=e.z.string().trim().refine(g.isMemoryPath,"Invalid note path"),m=(0,h.serverAction)(async(a,b,c=[])=>{let d=l.parse(a),e=g.NoteLineSchema.parse(b),h=await (0,f.createNote)(d,e,{ownedByUser:!0});for(let a of(h||(0,i.publicError)("Note already exists"),c.map(a=>a.trim()).filter(Boolean)))await (0,f.addFact)(h.id,a);return{id:h.id}}),n=(0,h.serverAction)(async(a,b)=>{await (0,f.updateNote)(a,{...void 0!==b.description?{description:g.NoteLineSchema.parse(b.description)}:{}})||(0,i.publicError)("Note not found")}),o=(0,h.serverAction)(async a=>{await (0,f.deleteNote)(a)||(0,i.publicError)("Note not found")}),p=(0,h.serverAction)(async(a,b)=>{let c=b.map(a=>a.trim()).filter(Boolean);for(let b of(0===c.length&&(0,i.publicError)("Fact text is required"),c))await (0,f.addFact)(a,b);return{added:c.length}}),q=(0,h.serverAction)(async(a,b,c)=>{c.trim()||(0,i.publicError)("Fact text is required"),await (0,f.reviseFact)(a,b,c.trim())||(0,i.publicError)("Fact not found")}),r=(0,h.serverAction)(async(a,b)=>{await (0,f.forgetFact)(a,b)||(0,i.publicError)("Fact not found")});(0,j.ensureServerEntryExports)([m,n,o,p,q,r]),(0,d.registerServerReference)(m,"7f37d1eb5dbeb3a76291c30a68837e065d03d44edf",null),(0,d.registerServerReference)(n,"7f74bfdaa7335873eda514d33eeabc4ea6cd4d6666",null),(0,d.registerServerReference)(o,"7fdc1c1ad51ef63c641bb258dcb66c4c8604b8c49c",null),(0,d.registerServerReference)(p,"7f514507aa3e03b8114e1ae21ea0f9d1177d1bd921",null),(0,d.registerServerReference)(q,"7f594531f6528f1c98632cfb9450ee8f533b088e7c",null),(0,d.registerServerReference)(r,"7fa1e4aefcff8b4d26db50f0ca371326c64d147461",null),a.s(["addFactsAction",0,p,"createNoteAction",0,m,"deleteNoteAction",0,o,"forgetFactAction",0,r,"reviseFactAction",0,q,"updateNoteAction",0,n]),c()}catch(a){c(a)}},!1),926944,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(53112),f=a.i(225689),g=a.i(233398),h=a.i(558067),i=a.i(713095),j=b([g]);[g]=j.then?(await j)():j;let k=e.z.enum(h.REACH_CHANNELS),l=e.z.object({chat:e.z.string().min(1),code:e.z.string().min(1)}),m=(0,f.serverAction)(async(a,b)=>{let{chat:c,code:d}=l.parse(b);await (0,g.allowReach)(k.parse(a),c,d)}),n=(0,f.serverAction)(async(a,b)=>{let{chat:c,code:d}=l.parse(b);(0,g.declineReach)(k.parse(a),c,d)}),o=(0,f.serverAction)(async a=>{await (0,g.forgetReach)(k.parse(a))});(0,i.ensureServerEntryExports)([m,n,o]),(0,d.registerServerReference)(m,"7f651bcf7c070111af7dd71d5b5b3371ef9376d431",null),(0,d.registerServerReference)(n,"7f3c34a80a7a7afd738489e64dedaddc155ab7649a",null),(0,d.registerServerReference)(o,"7fdc0bda40cf421c5678320fcc8d62cc032f36c78f",null),a.s(["allowReachAction",0,m,"declineReachAction",0,n,"forgetReachAction",0,o]),c()}catch(a){c(a)}},!1),265529,a=>a.a(async(b,c)=>{try{a.i(569572);var d=a.i(221214),e=a.i(674986),f=a.i(344853),g=a.i(706210);a.i(176668);var h=a.i(293480),i=a.i(780946),j=a.i(643020),k=b([d,e,f,i]);async function l(a){let b=await (0,i.latestRun)(a.id);return await (0,f.markSeen)(await (0,i.listUnseenRunIds)(a.id)),(0,e.startThread)({bot:a.bot,request:a.request,label:a.label,from:"user",routine:{id:a.id,when:(0,j.scheduleText)(a.schedule),last:b?.status==="done"&&b.outcome?{at:(0,g.toDate)(b.updatedAt),said:b.outcome}:null}})}async function m(a){let b,c=await (0,i.findRoutine)(a);return c||(0,h.publicError)("No such routine."),b=c.runs[0],(b?.status==="running"||b?.status==="waiting")&&(0,h.publicError)("Its last run is still open. Answer or stop that one first."),l(c)}[d,e,f,i]=k.then?(await k)():k,a.s(["runRoutineNow",0,m]),c()}catch(a){c(a)}},!1),102409,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(53112),f=a.i(225689),g=a.i(293480),h=a.i(265529),i=a.i(780946),j=a.i(643020),k=a.i(713095),l=b([h,i]);[h,i]=l.then?(await l)():l;let m=(0,f.serverAction)(async a=>({id:(await (0,i.createRoutine)(j.RoutineInputSchema.parse(a))).id})),n=(0,f.serverAction)(async(a,b)=>{let c=j.RoutineInputSchema.partial().extend({enabled:e.z.boolean().optional()}).parse(b);await (0,i.updateRoutine)(a,c)||(0,g.publicError)("Routine not found")}),o=(0,f.serverAction)(async a=>{await (0,i.deleteRoutine)(a)||(0,g.publicError)("Routine not found")}),p=(0,f.serverAction)(async a=>({threadId:await (0,h.runRoutineNow)(a)}));(0,k.ensureServerEntryExports)([m,n,o,p]),(0,d.registerServerReference)(m,"7fd0304c674bbabbac63354fcd8446f6eb758d0408",null),(0,d.registerServerReference)(n,"7fb428b8e286601420a6d697b143fa9d30d022f56a",null),(0,d.registerServerReference)(o,"7f0375729fbb966b499d38ee9eb2db65aa5959ac23",null),(0,d.registerServerReference)(p,"7fa91a53770f9025c546516ecb8724f52522e1bd56",null),a.s(["createRoutineAction",0,m,"deleteRoutineAction",0,o,"runRoutineNowAction",0,p,"updateRoutineAction",0,n]),c()}catch(a){c(a)}},!1),432443,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(663070),f=a.i(53112),g=a.i(569572),h=a.i(762805),i=a.i(951941),j=a.i(225689),k=a.i(293480),l=a.i(713095),m=b([h]);[h]=m.then?(await m)():m;let n=(0,j.serverAction)(async a=>{let{name:b,description:c,content:d}=i.SkillDraftSchema.parse(a);return await (0,h.writeCustomSkill)(b,new Map([["SKILL.md",(0,h.renderSkillMarkdown)({name:b,description:c},d)]]))}),o=(0,j.serverAction)(async a=>{let b=a instanceof FormData?a.get("file"):null;b instanceof File&&0!==b.size||(0,k.publicError)("No file came with that"),b.size>g.SKILL_FILES.uploadBytes&&(0,k.publicError)(`File is larger than ${Math.round(g.SKILL_FILES.uploadBytes/1024/1024)} MB`);let c=b.name,d=Buffer.from(await b.arrayBuffer()),f=c.toLowerCase(),i=new Map;if(f.endsWith(".md"))i.set("SKILL.md",d);else if(f.endsWith(".zip")||f.endsWith(".skill")){let a,b=0,c=0,f=!1;try{a=(0,e.unzipSync)(new Uint8Array(d),{filter:a=>{if(b+=1,c+=a.originalSize,f=b>g.SKILL_FILES.archiveEntries||c>g.SKILL_FILES.unpackedBytes)throw Error("archive too big");return!0}})}catch{(0,k.publicError)(f?`The archive unpacks to more than ${Math.round(g.SKILL_FILES.unpackedBytes/1024/1024)} MB or ${g.SKILL_FILES.archiveEntries} files`:"The archive could not be opened")}let h=Object.keys(a).filter(a=>!a.startsWith("__MACOSX/")).filter(a=>"SKILL.md"===a.split("/").pop()).sort((a,b)=>a.split("/").length-b.split("/").length)[0];h||(0,k.publicError)("The archive has no SKILL.md");let j=h.slice(0,-8);for(let[b,c]of Object.entries(a)){if(!b.startsWith(j)||b.endsWith("/")||b.startsWith("__MACOSX/"))continue;let a=b.slice(j.length);a.split("/").some(a=>".."===a||""===a)||i.set(a,c)}}else(0,k.publicError)("Upload a .md, .zip or .skill file");let j=i.get("SKILL.md"),l="string"==typeof j?j:Buffer.from(j).toString("utf-8"),m=(0,h.parseFrontmatter)(l);return(0,h.writeCustomSkill)((0,h.skillFolderName)(m.name),i)}),p=f.z.string().trim().min(1).max(128),q=(0,j.serverAction)(async(a,b)=>{await (0,h.deleteSkill)(i.SkillSourceSchema.parse(a),p.parse(b))}),r=(0,j.serverAction)(async(a,b,c,d)=>{await (0,h.writeSkillFile)(i.SkillSourceSchema.parse(a),p.parse(b),f.z.string().trim().min(1).parse(c),f.z.string().parse(d))}),s=(0,j.serverAction)(async(a,b,c)=>{await (0,h.setSkillOff)(i.SkillSourceSchema.parse(a),p.parse(b),f.z.boolean().parse(c))});(0,l.ensureServerEntryExports)([n,o,q,r,s]),(0,d.registerServerReference)(n,"7f6ecf357c9df18a2ebd6d4d205a43cf44d3dfbe66",null),(0,d.registerServerReference)(o,"7f680b32ef1f073f3821633be8c720bcffa2c27469",null),(0,d.registerServerReference)(q,"7f2e2c7a4da9912783b18cc52c4f9c245be51244b7",null),(0,d.registerServerReference)(r,"7fc43eddcb402babda7b91c43440a4059624ba31f1",null),(0,d.registerServerReference)(s,"7f81c0d82b3f66e9ed1d39c2669b1b75439df7895e",null),a.s(["createSkillAction",0,n,"deleteSkillAction",0,q,"setSkillDisabledAction",0,s,"uploadSkillAction",0,o,"writeSkillFileAction",0,r]),c()}catch(a){c(a)}},!1),439759,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(527990),f=a.i(723885),g=a.i(184838),h=a.i(652619),i=a.i(552556),j=a.i(738131),k=a.i(689656),l=a.i(61514),m=a.i(5865),n=a.i(614747),o=a.i(674986),p=a.i(344853),q=a.i(688034),r=a.i(725466),s=a.i(986743),t=a.i(746609),u=a.i(69721),v=a.i(225689),w=a.i(293480),x=a.i(61265),y=a.i(569549),z=a.i(3894),A=a.i(143699),B=a.i(713095),C=b([g,h,j,l,m,n,o,p,r,s,x,y,A]);async function D(a){let b=await (0,j.loadTools)({target:"thursday",...a});return Object.entries(b).map(([a,b])=>{let{$schema:c,...d}=(0,e.asSchema)(b.inputSchema).jsonSchema;return{name:a,description:"string"==typeof b.description?b.description:"",parameters:d}})}[g,h,j,l,m,n,o,p,r,s,x,y,A]=C.then?(await C)():C;let E=(0,v.serverAction)(async(a,b,c,d)=>{let e=await (0,y.readLiveSettings)(),g=f.default.string().min(1).max(65536).parse(a),j=new Map(await Promise.all(i.LIVE_LINES.map(async a=>{let b=k.TEXT_MODEL_PROVIDERS[a].apiKeyName;return[b,await (0,r.hasConfig)(b)]}))),o=j.get(k.TEXT_MODEL_PROVIDERS.chatgpt.apiKeyName)??!1,p=o?await (0,h.readChatGptPlan)():null,s=(0,i.liveLineOf)(e.runsOn,a=>j.get(a)??!1,p);s||(o&&(0,w.publicError)(`Your ${k.TEXT_MODEL_PROVIDERS.chatgpt.label} is on the ${(0,k.planName)(p)} plan, which has no spoken calls. Add an ${i.LIVE_PROVIDER.label} key in Settings › API keys, or sign in with a paid plan. Calls in writing and bots run on it as they are.`),(0,w.publicError)(await (0,r.missingKeyWords)(k.TEXT_MODEL_PROVIDERS.chatgpt.apiKeyName,await (0,r.missingKeyWords)(i.LIVE_PROVIDER.apiKeyName,`A spoken call needs a ${k.TEXT_MODEL_PROVIDERS.chatgpt.label} sign-in or an ${i.LIVE_PROVIDER.label} key — Settings › API keys.`))));let v=f.default.boolean().default(!1).parse(b),z=(0,A.readWhere)(c),B=f.default.boolean().default(!1).parse(d),C={webSearch:e.webSearch,readSkills:e.readSkills},[E,F,G]=await Promise.all([(0,m.loadLivePrompt)({stylePrompt:e.stylePrompt,persona:e.persona,calledBack:v,where:z,here:B,plan:"chatgpt"===s}),(0,n.loadThursdayPrompt)({backendPrompt:e.backendPrompt,readSkills:e.readSkills,where:z}),(0,l.loadCallStanding)()]);if("chatgpt"===s){let a=await (0,x.openPlanLine)({sdp:g,voice:{instructions:E.text,voice:e.planVoice},settings:e,backendPrompt:F,opened:C,insertRow:()=>(0,y.insertCall)({provider:s,model:t.LIVE_PLAN_MODEL,backendModel:e.backendModel})});return{callId:a.callId,sdp:a.sdp,opening:E.opening,here:E.here,standing:G,opened:C,relay:(0,x.planRelayOf)(a.callId)}}let H=await (0,r.readConfig)(i.LIVE_PROVIDER.apiKeyName);H||(0,w.publicError)(`No ${i.LIVE_PROVIDER.label} key — add one in Settings › API keys.`);let[I,J,K]=await Promise.all([D(C),(0,u.acceptedReasoning)({apiKey:H,model:e.backendModel,effort:e.reasoningEffort}),(0,r.readConfig)(q.EXA_API_KEY)]),L=await (0,u.createLiveCall)({apiKey:H,sdp:g,voice:e.voice,instructions:E.text,backend:{model:e.backendModel,instructions:F,tools:I,reasoning:J,hosted:e.webSearch&&!K?["webSearch"]:[]}});return{callId:await (0,y.insertCall)({provider:i.LIVE_PROVIDER.id,model:t.LIVE_MODEL,backendModel:e.backendModel}),sdp:L.transport.sdp,opening:E.opening,here:E.here,standing:G,opened:C,relay:null}}),F=(0,v.serverAction)(async a=>(0,A.openTextCall)(k.textModelRefSchema.nullish().parse(a))),G=(0,v.serverAction)(async(a,b,c)=>(0,A.tellTextCall)(f.default.string().min(1).parse(a),f.default.string().min(1).parse(b),z.TextCallNoteSchema.parse(c))),H=(0,v.serverAction)(async a=>(0,y.changeLiveSettings)(f.default.record(f.default.string(),f.default.unknown()).parse(a))),I=(0,v.serverAction)(async a=>(0,y.seedLiveSettings)(a)),J=(0,v.serverAction)(async(a,b)=>{await (0,y.saveTurns)(f.default.string().min(1).parse(a),z.CallTurnSchema.array().min(1).parse(b))}),K=(0,v.serverAction)(async(a,b)=>{await (0,y.saveThought)(f.default.string().min(1).parse(a),z.CallThoughtSchema.parse(b))}),L=(0,v.serverAction)(async(a,b)=>{await (0,y.endCall)(f.default.string().min(1).parse(a),t.LiveCloseSchema.nullish().parse(b))}),M=(0,v.serverAction)(async a=>{await (0,y.deleteCall)(f.default.string().min(1).parse(a))||(0,w.publicError)("That call is still on the line — hang up first.")}),N=(0,v.serverAction)(async()=>(0,y.deleteEndedCalls)()),O=(0,v.serverAction)(async()=>{let a=await (0,p.listAllThreadIds)();for(let b of a)await (0,o.removeThread)(b);let b=await (0,y.deleteEndedCalls)(),c=await (0,s.deleteAllNotes)();return await (0,g.reclaim)(),{calls:b,threads:a.length,notes:c}});(0,B.ensureServerEntryExports)([E,F,G,H,I,J,K,L,M,N,O]),(0,d.registerServerReference)(E,"7f86bd55242f0809f4dd59ee78327f2958cb445ee8",null),(0,d.registerServerReference)(F,"7f84964ccea27e28ee8f9d98f1ff49efd47267d042",null),(0,d.registerServerReference)(G,"7f9abaf878610c3f0c8b9e163ea68ef0058e5a15e8",null),(0,d.registerServerReference)(H,"7f4273e0b032eca6d36648bd0866174849827992e7",null),(0,d.registerServerReference)(I,"7f42c067c3a81c73a7e1d1a6c62adb156657bc39a2",null),(0,d.registerServerReference)(J,"7f6dc4115bfa127be0bebd4d5afaa8cfd1f6576e8c",null),(0,d.registerServerReference)(K,"7f0ae62c0ac368dc5da59339426e6fb44388d47b7a",null),(0,d.registerServerReference)(L,"7f09c9d781b6cac74a6a3187ea7596190a55dfe796",null),(0,d.registerServerReference)(M,"7fed2c8a9e8c1b49ba5e31f6c4547cd59c66b3e210",null),(0,d.registerServerReference)(N,"7ffa66145398fbedd7d4f9082c21bf1cd5fdbe1812",null),(0,d.registerServerReference)(O,"7fd369b721f078067b8d1c80238665c6e9b456cb4a",null),a.s(["deleteCallAction",0,M,"deleteEndedCallsAction",0,N,"endCallAction",0,L,"openCallAction",0,E,"openTextCallAction",0,F,"resetHistoryAction",0,O,"saveThoughtAction",0,K,"saveTurnsAction",0,J,"seedLiveSettingsAction",0,I,"setLiveSettingsAction",0,H,"tellTextCallAction",0,G]),c()}catch(a){c(a)}},!1),61265,a=>a.a(async(b,c)=>{try{var d=a.i(666680),e=a.i(47919),f=a.i(569572),g=a.i(652619),h=a.i(552556),i=a.i(738131),j=a.i(875931),k=a.i(762008),l=a.i(688034),m=a.i(725466),n=a.i(224728),o=a.i(746609),p=a.i(69721),q=a.i(176668),r=a.i(212827);a.i(984433);var s=b([g,i,j,m]);[g,i,j,m]=s.then?(await s)():s;let A=globalThis.__planLines??=new Map;async function t(a){let{settings:b,opened:c}=a,[d,e,q,s]=await Promise.all([(0,j.getTextModel)({provider:"chatgpt",model:b.backendModel}),(0,i.loadTools)({target:"thursday",...c}),(0,m.readConfig)(l.EXA_API_KEY),(0,m.readConfig)(h.LIVE_PROVIDER.apiKeyName)]),t=s?await (0,p.acceptedReasoning)({apiKey:s,model:b.backendModel,effort:b.reasoningEffort}):(0,p.wantedReasoning)(b.reasoningEffort),w={};for(let[a,{execute:b,...c}]of Object.entries(e))w[a]=c;let x=d.searchTools&&Object.values(d.searchTools)[0];c.webSearch&&!q&&x&&(w[k.TOOL_NAMES.web_search]=x);let y=await (0,g.openPlanCall)({sdp:a.sdp,session:{model:o.LIVE_PLAN_MODEL,instructions:a.voice.instructions,audio:{output:{voice:a.voice.voice}},delegation:{type:"client"}}}),B=(0,r.createEventBus)(),C={id:"",wire:{say:()=>!1,answer:()=>!1,close:()=>{}},began:Date.now(),over:!1,bus:B,outbox:[],followed:!1,orphan:void 0,stop:new AbortController,backend:{model:d.model,system:a.backendPrompt,tools:w,providerOptions:{openai:{...t?.effort?{reasoningEffort:t.effort}:{},...t&&"summary"in t&&t.summary?{reasoningSummary:t.summary}:{}}}},messages:[],facts:[],talk:[],handed:[],working:!1,outputs:new Map,pictures:[],asked:!1,next:null};C.wire=await (0,n.joinPlanLine)({callId:y.callId,headers:y.headers,on:{event:a=>(function(a,b){if(!a.over)switch(b.type){case"heard":{let c=Date.now()-a.began;u(a,{type:"user"===b.role?"session.input_transcript.delta":"session.output_transcript.delta",delta:b.text,start_ms:c,end_ms:c});let d=a.talk.at(-1);d&&d.role===b.role&&!d.done?d.text+=b.text:a.talk.push({role:b.role,text:b.text,done:!1});return}case"turn":{let c=a.talk.findLast(a=>a.role===b.role&&!a.done);c?(c.text=b.text,c.done=!0):a.talk.push({role:b.role,text:b.text,done:!0});return}case"delegated":a.handed.push({id:b.id,text:b.text}),v(a);return;case"error":u(a,{type:"error",error:{message:b.message}});return;case"started":return}})(C,a),closed:a=>z(C,1e3===a?"remote_hangup":"connection_lost")}});try{C.id=await a.insertRow()}catch(a){throw C.wire.close(),a}return A.set(C.id,C),C.orphan=setTimeout(()=>{C.followed||z(C,"connection_lost")},f.LIVE_CALL.startupMs),u(C,{type:"session.started"}),{callId:C.id,sdp:y.sdp}}function u(a,b){let c={...b,offset_ms:Date.now()-a.began};a.followed?a.bus.emit(c):a.outbox.push(c)}async function v(a){if(!a.working){a.working=!0;try{for(let b=a.handed.shift();b&&!a.over;b=a.handed.shift())await x(a,b)}finally{a.working=!1}}}function w(a,b){let c=a.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">");if(Buffer.byteLength(c)<=f.PLAN_CALL.delegationBytes)return c;let d=f.PLAN_CALL.delegationBytes-Buffer.byteLength("…"),e=Array.from(c);"end"===b&&e.reverse();let g=[];for(let a of e){if((d-=Buffer.byteLength(a))<0)break;g.push(a)}return"end"===b&&g.reverse(),"start"===b?`${g.join("")}…`:`…${g.join("")}`}async function x(a,b){var c;let e,g,h=a.talk.splice(0).map(a=>`${a.role}: ${a.text}`).join("\n");a.messages.push({role:"user",content:(c=b.text,e=w(c||h,"start"),g=h?`
|
|
48
|
-
|
|
46
|
+
What they tell you about themselves is handed over quietly: go on talking with them as you were, with no word about noting it, checking or thinking it over, and say nothing more of it when it comes back kept.`;a.s(["loadLivePrompt",0,k]),c()}catch(a){c(a)}},!1),260210,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(229666),f=a.i(225689),g=a.i(293480),h=a.i(713095),i=b([e]);[e]=i.then?(await i)():i;let j=(0,f.serverAction)(async a=>{let b=a.trim();b||(0,g.publicError)("Which artifact?"),await (0,e.deleteArtifact)(b)});(0,h.ensureServerEntryExports)([j]),(0,d.registerServerReference)(j,"7f07efc30c06410ee789eef202233cf738a9eae1af",null),a.s(["deleteArtifactAction",0,j]),c()}catch(a){c(a)}},!1),362562,(a,b,c)=>{b.exports=a.x("module",()=>require("module"))},663070,a=>{"use strict";var b,c,d,e=(0,a.i(362562).createRequire)("/");try{c=(b=e("worker_threads")).Worker,d=b.isMarkedAsUntransferable}catch(a){}var f=c?function(a,b,e,f,g){var h=!1,i=new c(a+";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global",{eval:!0}).on("error",function(a){return g(a,null)}).on("message",function(a){return g(null,a)}).on("exit",function(a){a&&!h&&g(Error("exited with code "+a),null)});return d&&(f=f.filter(function(a){return!d(a)})),i.postMessage(e,f),i.terminate=function(){return h=!0,c.prototype.terminate.call(i)},i}:function(a,b,c,d,e){setImmediate(function(){return e(Error("async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)"),null)});var f=function(){};return{terminate:f,postMessage:f}},g=Uint8Array,h=Uint16Array,i=Int32Array,j=new g([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),k=new g([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),l=new g([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m=function(a,b){for(var c=new h(31),d=0;d<31;++d)c[d]=b+=1<<a[d-1];for(var e=new i(c[30]),d=1;d<30;++d)for(var f=c[d];f<c[d+1];++f)e[f]=f-c[d]<<5|d;return{b:c,r:e}},b=m(j,2),n=b.b,o=b.r;n[28]=258,o[258]=28;for(var p=m(k,0),q=p.b,r=p.r,s=new h(32768),t=0;t<32768;++t){var u=(43690&t)>>1|(21845&t)<<1;u=(61680&(u=(52428&u)>>2|(13107&u)<<2))>>4|(3855&u)<<4,s[t]=((65280&u)>>8|(255&u)<<8)>>1}for(var v=function(a,b,c){for(var d,e=a.length,f=0,g=new h(b);f<e;++f)a[f]&&++g[a[f]-1];var i=new h(b);for(f=1;f<b;++f)i[f]=i[f-1]+g[f-1]<<1;if(c){d=new h(1<<b);var j=15-b;for(f=0;f<e;++f)if(a[f])for(var k=f<<4|a[f],l=b-a[f],m=i[a[f]-1]++<<l,n=m|(1<<l)-1;m<=n;++m)d[s[m]>>j]=k}else for(d=new h(e),f=0;f<e;++f)a[f]&&(d[f]=s[i[a[f]-1]++]>>15-a[f]);return d},w=new g(288),t=0;t<144;++t)w[t]=8;for(var t=144;t<256;++t)w[t]=9;for(var t=256;t<280;++t)w[t]=7;for(var t=280;t<288;++t)w[t]=8;for(var x=new g(32),t=0;t<32;++t)x[t]=5;var y=v(w,9,0),z=v(w,9,1),A=v(x,5,0),B=v(x,5,1),C=function(a){for(var b=a[0],c=1;c<a.length;++c)a[c]>b&&(b=a[c]);return b},D=function(a,b,c){var d=b/8|0;return(a[d]|a[d+1]<<8)>>(7&b)&c},E=function(a,b){var c=b/8|0;return(a[c]|a[c+1]<<8|a[c+2]<<16)>>(7&b)},F=function(a){return(a+7)/8|0},G=function(a,b,c){return(null==b||b<0)&&(b=0),(null==c||c>a.length)&&(c=a.length),new g(a.subarray(b,c))},H=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],I=function(a,b,c){var d=Error(b||H[a]);if(d.code=a,Error.captureStackTrace&&Error.captureStackTrace(d,I),!c)throw d;return d},J=function(a,b,c,d){var e=a.length,f=d?d.length:0;if(!e||b.f&&!b.l)return c||new g(0);var h=!c,i=h||2!=b.i,m=b.i;h&&(c=new g(3*e));var o=function(a){var b=c.length;if(a>b){var d=new g(Math.max(2*b,a));d.set(c),c=d}},p=b.f||0,r=b.p||0,s=b.b||0,t=b.l,u=b.d,w=b.m,x=b.n,y=8*e;do{if(!t){p=D(a,r,1);var A=D(a,r+1,3);if(r+=3,A)if(1==A)t=z,u=B,w=9,x=5;else if(2==A){var H=D(a,r,31)+257,J=D(a,r+10,15)+4,K=H+D(a,r+5,31)+1;r+=14;for(var L=new g(K),M=new g(19),N=0;N<J;++N)M[l[N]]=D(a,r+3*N,7);r+=3*J;for(var O=C(M),P=(1<<O)-1,Q=v(M,O,1),N=0;N<K;){var R=Q[D(a,r,P)];r+=15&R;var S=R>>4;if(S<16)L[N++]=S;else{var T=0,U=0;for(16==S?(U=3+D(a,r,3),r+=2,T=L[N-1]):17==S?(U=3+D(a,r,7),r+=3):18==S&&(U=11+D(a,r,127),r+=7);U--;)L[N++]=T}}var V=L.subarray(0,H),W=L.subarray(H);w=C(V),x=C(W),t=v(V,w,1),u=v(W,x,1)}else I(1);else{var S=F(r)+4,X=a[S-4]|a[S-3]<<8,Y=S+X;if(Y>e){m&&I(0);break}i&&o(s+X),c.set(a.subarray(S,Y),s),b.b=s+=X,b.p=r=8*Y,b.f=p;continue}if(r>y){m&&I(0);break}}i&&o(s+131072);for(var Z=(1<<w)-1,$=(1<<x)-1,_=r;;_=r){var T=t[E(a,r)&Z],aa=T>>4;if((r+=15&T)>y){m&&I(0);break}if(T||I(2),aa<256)c[s++]=aa;else if(256==aa){_=r,t=null;break}else{var ab=aa-254;if(aa>264){var N=aa-257,ac=j[N];ab=D(a,r,(1<<ac)-1)+n[N],r+=ac}var ad=u[E(a,r)&$],ae=ad>>4;ad||I(3),r+=15&ad;var W=q[ae];if(ae>3){var ac=k[ae];W+=E(a,r)&(1<<ac)-1,r+=ac}if(r>y){m&&I(0);break}i&&o(s+131072);var af=s+ab;if(s<W){var ag=f-W,ah=Math.min(W,af);for(ag+s<0&&I(3);s<ah;++s)c[s]=d[ag+s]}for(;s<af;++s)c[s]=c[s-W]}}b.l=t,b.p=_,b.b=s,b.f=p,t&&(p=1,b.m=w,b.d=u,b.n=x)}while(!p)return s!=c.length&&h?G(c,0,s):c.subarray(0,s)},K=function(a,b,c){c<<=7&b;var d=b/8|0;a[d]|=c,a[d+1]|=c>>8},L=function(a,b,c){c<<=7&b;var d=b/8|0;a[d]|=c,a[d+1]|=c>>8,a[d+2]|=c>>16},M=function(a,b){for(var c=[],d=0;d<a.length;++d)a[d]&&c.push({s:d,f:a[d]});var e=c.length,f=c.slice();if(!e)return{t:T,l:0};if(1==e){var i=new g(c[0].s+1);return i[c[0].s]=1,{t:i,l:1}}c.sort(function(a,b){return a.f-b.f}),c.push({s:-1,f:25001});var j=c[0],k=c[1],l=0,m=1,n=2;for(c[0]={s:-1,f:j.f+k.f,l:j,r:k};m!=e-1;)j=c[c[l].f<c[n].f?l++:n++],k=c[l!=m&&c[l].f<c[n].f?l++:n++],c[m++]={s:-1,f:j.f+k.f,l:j,r:k};for(var o=f[0].s,d=1;d<e;++d)f[d].s>o&&(o=f[d].s);var p=new h(o+1),q=N(c[m-1],p,0);if(q>b){var d=0,r=0,s=q-b,t=1<<s;for(f.sort(function(a,b){return p[b.s]-p[a.s]||a.f-b.f});d<e;++d){var u=f[d].s;if(p[u]>b)r+=t-(1<<q-p[u]),p[u]=b;else break}for(r>>=s;r>0;){var v=f[d].s;p[v]<b?r-=1<<b-p[v]++-1:++d}for(;d>=0&&r;--d){var w=f[d].s;p[w]==b&&(--p[w],++r)}q=b}return{t:new g(p),l:q}},N=function(a,b,c){return -1==a.s?Math.max(N(a.l,b,c+1),N(a.r,b,c+1)):b[a.s]=c},O=function(a){for(var b=a.length;b&&!a[--b];);for(var c=new h(++b),d=0,e=a[0],f=1,g=function(a){c[d++]=a},i=1;i<=b;++i)if(a[i]==e&&i!=b)++f;else{if(!e&&f>2){for(;f>138;f-=138)g(32754);f>2&&(g(f>10?f-11<<5|28690:f-3<<5|12305),f=0)}else if(f>3){for(g(e),--f;f>6;f-=6)g(8304);f>2&&(g(f-3<<5|8208),f=0)}for(;f--;)g(e);f=1,e=a[i]}return{c:c.subarray(0,d),n:b}},P=function(a,b){for(var c=0,d=0;d<b.length;++d)c+=a[d]*b[d];return c},Q=function(a,b,c){var d=c.length,e=F(b+2);a[e]=255&d,a[e+1]=d>>8,a[e+2]=255^a[e],a[e+3]=255^a[e+1];for(var f=0;f<d;++f)a[e+f+4]=c[f];return(e+4+d)*8},R=function(a,b,c,d,e,f,g,i,m,n,o){K(b,o++,c),++e[256];for(var p,q,r,s,t=M(e,15),u=t.t,z=t.l,B=M(f,15),C=B.t,D=B.l,E=O(u),F=E.c,G=E.n,H=O(C),I=H.c,J=H.n,N=new h(19),R=0;R<F.length;++R)++N[31&F[R]];for(var R=0;R<I.length;++R)++N[31&I[R]];for(var S=M(N,7),T=S.t,U=S.l,V=19;V>4&&!T[l[V-1]];--V);var W=n+5<<3,X=P(e,w)+P(f,x)+g,Y=P(e,u)+P(f,C)+g+14+3*V+P(N,T)+2*N[16]+3*N[17]+7*N[18];if(m>=0&&W<=X&&W<=Y)return Q(b,o,a.subarray(m,m+n));if(K(b,o,1+(Y<X)),o+=2,Y<X){p=v(u,z,0),q=u,r=v(C,D,0),s=C;var Z=v(T,U,0);K(b,o,G-257),K(b,o+5,J-1),K(b,o+10,V-4),o+=14;for(var R=0;R<V;++R)K(b,o+3*R,T[l[R]]);o+=3*V;for(var $=[F,I],_=0;_<2;++_)for(var aa=$[_],R=0;R<aa.length;++R){var ab=31&aa[R];K(b,o,Z[ab]),o+=T[ab],ab>15&&(K(b,o,aa[R]>>5&127),o+=aa[R]>>12)}}else p=y,q=w,r=A,s=x;for(var R=0;R<i;++R){var ac=d[R];if(ac>255){var ab=ac>>18&31;L(b,o,p[ab+257]),o+=q[ab+257],ab>7&&(K(b,o,ac>>23&31),o+=j[ab]);var ad=31∾L(b,o,r[ad]),o+=s[ad],ad>3&&(L(b,o,ac>>5&8191),o+=k[ad])}else L(b,o,p[ac]),o+=q[ac]}return L(b,o,p[256]),o+q[256]},S=new i([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),T=new g(0),U=function(a,b,c,d,e,f){var l=f.z||a.length,m=new g(d+l+5*(1+Math.ceil(l/7e3))+e),n=m.subarray(d,m.length-e),p=f.l,q=7&(f.r||0);if(b){q&&(n[0]=f.r>>3);for(var s=S[b-1],t=s>>13,u=8191&s,v=(1<<c)-1,w=f.p||new h(32768),x=f.h||new h(v+1),y=Math.ceil(c/3),z=2*y,A=function(b){return(a[b]^a[b+1]<<y^a[b+2]<<z)&v},B=new i(25e3),C=new h(288),D=new h(32),E=0,H=0,I=f.i||0,J=0,K=f.w||0,L=0;I+2<l;++I){var M=A(I),N=32767&I,O=x[M];if(w[N]=O,x[M]=N,K<=I){var P=l-I;if((E>7e3||J>24576)&&(P>423||!p)){q=R(a,n,0,B,C,D,H,J,L,I-L,q),J=E=H=0,L=I;for(var T=0;T<286;++T)C[T]=0;for(var T=0;T<30;++T)D[T]=0}var U=2,V=0,W=u,X=N-O&32767;if(P>2&&M==A(I-X))for(var Y=Math.min(t,P)-1,Z=Math.min(32767,I),$=Math.min(258,P);X<=Z&&--W&&N!=O;){if(a[I+U]==a[I+U-X]){for(var _=0;_<$&&a[I+_]==a[I+_-X];++_);if(_>U){if(U=_,V=X,_>Y)break;for(var aa=Math.min(X,_-2),ab=0,T=0;T<aa;++T){var ac=I-X+T&32767,ad=w[ac],ae=ac-ad&32767;ae>ab&&(ab=ae,O=ac)}}}O=w[N=O],X+=N-O&32767}if(V){B[J++]=0x10000000|o[U]<<18|r[V];var af=31&o[U],ag=31&r[V];H+=j[af]+k[ag],++C[257+af],++D[ag],K=I+U,++E}else B[J++]=a[I],++C[a[I]]}}for(I=Math.max(I,K);I<l;++I)B[J++]=a[I],++C[a[I]];q=R(a,n,p,B,C,D,H,J,L,I-L,q),p||(f.r=7&q|n[q/8|0]<<3,q-=7,f.h=x,f.p=w,f.i=I,f.w=K)}else{for(var I=f.w||0;I<l+p;I+=65535){var ah=I+65535;ah>=l&&(n[q/8|0]=p,ah=l),q=Q(n,q+1,a.subarray(I,ah))}f.i=l}return G(m,0,d+F(q)+e)},V=function(){for(var a=new Int32Array(256),b=0;b<256;++b){for(var c=b,d=9;--d;)c=(1&c&&-0x12477ce0)^c>>>1;a[b]=c}return a}(),W=function(){var a=-1;return{p:function(b){for(var c=a,d=0;d<b.length;++d)c=V[255&c^b[d]]^c>>>8;a=c},d:function(){return~a}}},X=function(){var a=1,b=0;return{p:function(c){for(var d=a,e=b,f=0|c.length,g=0;g!=f;){for(var h=Math.min(g+2655,f);g<h;++g)e+=d+=c[g];d=(65535&d)+15*(d>>16),e=(65535&e)+15*(e>>16)}a=d,b=e},d:function(){return a%=65521,b%=65521,(255&a)<<24|(65280&a)<<8|(255&b)<<8|b>>8}}},Y=function(a,b,c,d,e){if(!e&&(e={l:1},b.dictionary)){var f=b.dictionary.subarray(-32768),h=new g(f.length+a.length);h.set(f),h.set(a,f.length),a=h,e.w=f.length}return U(a,null==b.level?6:b.level,null==b.mem?e.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):20:12+b.mem,c,d,e)},Z=function(a,b){var c={};for(var d in a)c[d]=a[d];for(var d in b)c[d]=b[d];return c},$=function(a,b,c){for(var d=a(),e=a.toString(),f=e.slice(e.indexOf("[")+1,e.lastIndexOf("]")).replace(/\s+/g,"").split(","),g=0;g<d.length;++g){var h=d[g],i=f[g];if("function"==typeof h){b+=";"+i+"=";var j=h.toString();if(h.prototype)if(-1!=j.indexOf("[native code]")){var k=j.indexOf(" ",8)+1;b+=j.slice(k,j.indexOf("(",k))}else for(var l in b+=j,h.prototype)b+=";"+i+".prototype."+l+"="+h.prototype[l].toString();else b+=j}else c[i]=h}return b},_=[],aa=function(a){var b=[];for(var c in a)a[c].buffer&&b.push((a[c]=new a[c].constructor(a[c])).buffer);return b},ab=function(a,b,c,d){if(!_[c]){for(var e="",g={},h=a.length-1,i=0;i<h;++i)e=$(a[i],e,g);_[c]={c:$(a[h],e,g),e:g}}var j=Z({},_[c].e);return f(_[c].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+b.toString()+"}",c,j,aa(j),d)},ac=function(){return[g,h,i,j,k,l,n,q,z,B,s,H,v,C,D,E,F,G,I,J,aA,ag,ah]},ad=function(){return[g,h,i,j,k,l,o,r,y,w,A,x,s,S,T,v,K,L,M,N,O,P,Q,R,F,G,U,Y,ax,ag]},ae=function(){return[ap,aq]},af=function(){return[at]},ag=function(a){return postMessage(a,[a.buffer])},ah=function(a){return a&&{out:a.size&&new g(a.size),dictionary:a.dictionary}},ai=function(a){return a.ondata=function(a,b){return postMessage([a,b],[a.buffer])},function(b){b.data[0]?(a.push(b.data[0],b.data[1]),postMessage([b.data[0].length])):a.flush(b.data[1])}},aj=function(a,b,c,d,e,f,g){var h,i=ab(a,d,e,function(a,c){a?(i.terminate(),b.ondata.call(b,a)):Array.isArray(c)?1==c.length?(b.queuedSize-=c[0],b.ondrain&&b.ondrain(c[0])):(c[1]&&i.terminate(),b.ondata.call(b,a,c[0],c[1])):g(c)});i.postMessage(c),b.queuedSize=0,b.push=function(a,c){b.ondata||I(5),h&&b.ondata(I(4,0,1),null,!!c),b.queuedSize+=a.length,i.postMessage([a,h=c],a.buffer instanceof ArrayBuffer?[a.buffer]:[])},b.terminate=function(){i.terminate()},f&&(b.flush=function(a){i.postMessage([0,a])})},ak=function(a,b){return a[b]|a[b+1]<<8},al=function(a,b){return(a[b]|a[b+1]<<8|a[b+2]<<16|a[b+3]<<24)>>>0},am=function(a,b){return al(a,b)+0x100000000*al(a,b+4)},an=function(a,b,c){for(;c;++b)a[b]=c,c>>>=8},ao=function(a,b){var c=b.filename;if(a[0]=31,a[1]=139,a[2]=8,a[8]=b.level<2?4:2*(9==b.level),a[9]=3,0!=b.mtime&&an(a,4,Math.floor(new Date(b.mtime||Date.now())/1e3)),c){a[3]=8;for(var d=0;d<=c.length;++d)a[d+10]=c.charCodeAt(d)}},ap=function(a){(31!=a[0]||139!=a[1]||8!=a[2])&&I(6,"invalid gzip data");var b=a[3],c=10;4&b&&(c+=(a[10]|a[11]<<8)+2);for(var d=(b>>3&1)+(b>>4&1);d>0;d-=!a[c++]);return c+(2&b)},aq=function(a){var b=a.length;return(a[b-4]|a[b-3]<<8|a[b-2]<<16|a[b-1]<<24)>>>0},ar=function(a){return 10+(a.filename?a.filename.length+1:0)},as=function(a,b){var c=b.level;if(a[0]=120,a[1]=(0==c?0:c<6?1:9==c?3:2)<<6|(b.dictionary&&32),a[1]|=31-(a[0]<<8|a[1])%31,b.dictionary){var d=X();d.p(b.dictionary),an(a,2,d.d())}},at=function(a,b){return((15&a[0])!=8||a[0]>>4>7||(a[0]<<8|a[1])%31)&&I(6,"invalid zlib data"),(a[1]>>5&1)==+!b&&I(6,"invalid zlib data: "+(32&a[1]?"need":"unexpected")+" dictionary"),(a[1]>>3&4)+2};function au(a,b){return"function"==typeof a&&(b=a,a={}),this.ondata=b,a}var av=function(){function a(a,b){if("function"==typeof a&&(b=a,a={}),this.ondata=b,this.o=a||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new g(98304),this.o.dictionary){var c=this.o.dictionary.subarray(-32768);this.b.set(c,32768-c.length),this.s.i=32768-c.length}}return a.prototype.p=function(a,b){this.ondata(Y(a,this.o,0,0,this.s),b)},a.prototype.push=function(a,b){this.ondata||I(5),this.s.l&&I(4);var c=a.length+this.s.z;if(c>this.b.length){if(c>2*this.b.length-32768){var d=new g(-32768&c);d.set(this.b.subarray(0,this.s.z)),this.b=d}var e=this.b.length-this.s.z;this.b.set(a.subarray(0,e),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(a.subarray(e),32768),this.s.z=a.length-e+32768,this.s.i=32766,this.s.w=32768}else this.b.set(a,this.s.z),this.s.z+=a.length;this.s.l=1&b,(this.s.z>this.s.w+8191||b)&&(this.p(this.b,b||!1),this.s.w=this.s.i,this.s.i-=2),b&&(this.s=this.o={},this.b=T)},a.prototype.flush=function(a){if(this.ondata||I(5),this.s.l&&I(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2,a){var b=new g(6);b[0]=this.s.r>>3;var c=Q(b,this.s.r,T);this.s.r=0,this.ondata(b.subarray(0,c>>3),!1)}},a}(),aw=function(a,b){aj([ad,function(){return[ai,av]}],this,au.call(this,a,b),function(a){onmessage=ai(new av(a.data))},6,1)};function ax(a,b){return Y(a,b||{},0,0)}var ay=function(){function a(a,b){"function"==typeof a&&(b=a,a={}),this.ondata=b;var c=a&&a.dictionary&&a.dictionary.subarray(-32768);this.s={i:0,b:c?c.length:0},this.o=new g(32768),this.p=new g(0),c&&this.o.set(c)}return a.prototype.e=function(a){if(this.ondata||I(5),this.d&&I(4),this.p.length){if(a.length){var b=new g(this.p.length+a.length);b.set(this.p),b.set(a,this.p.length),this.p=b}}else this.p=a},a.prototype.c=function(a){this.s.i=+(this.d=a||!1);var b=this.s.b,c=J(this.p,this.s,this.o);this.ondata(G(c,b,this.s.b),this.d),this.o=G(c,this.s.b-32768),this.s.b=this.o.length,this.p=G(this.p,this.s.p/8|0),this.s.p&=7},a.prototype.push=function(a,b){this.e(a),this.c(b)},a}(),az=function(a,b){aj([ac,function(){return[ai,ay]}],this,au.call(this,a,b),function(a){onmessage=ai(new ay(a.data))},7,0)};function aA(a,b){return J(a,{i:2},b&&b.out,b&&b.dictionary)}(function(){function a(a,b){this.c=W(),this.l=0,this.v=1,av.call(this,a,b)}a.prototype.push=function(a,b){this.c.p(a),this.l+=a.length,av.prototype.push.call(this,a,b)},a.prototype.p=function(a,b){var c=Y(a,this.o,this.v&&ar(this.o),b&&8,this.s);this.v&&(ao(c,this.o),this.v=0),b&&(an(c,c.length-8,this.c.d()),an(c,c.length-4,this.l)),this.ondata(c,b)},a.prototype.flush=function(a){av.prototype.flush.call(this,a)}})();var aB=function(){function a(a,b){this.v=1,this.r=0,ay.call(this,a,b)}return a.prototype.push=function(a,b){if(ay.prototype.e.call(this,a),this.r+=a.length,this.v){var c=this.p.subarray(this.v-1),d=c.length>3?ap(c):4;if(d>c.length){if(!b)return}else this.v>1&&this.onmember&&this.onmember(this.r-c.length);this.p=c.subarray(d),this.v=0}ay.prototype.c.call(this,0),this.s.f&&!this.s.l?(this.v=F(this.s.p)+9,this.s={i:0},this.o=new g(0),this.push(new g(0),b)):b&&ay.prototype.c.call(this,b)},a}(),aC=function(a,b){var c=this;aj([ac,ae,function(){return[ai,ay,aB]}],this,au.call(this,a,b),function(a){var b=new aB(a.data);b.onmember=function(a){return postMessage(a)},onmessage=ai(b)},9,0,function(a){return c.onmember&&c.onmember(a)})},aD=(function(){function a(a,b){this.c=X(),this.v=1,av.call(this,a,b)}a.prototype.push=function(a,b){this.c.p(a),av.prototype.push.call(this,a,b)},a.prototype.p=function(a,b){var c=Y(a,this.o,this.v&&(this.o.dictionary?6:2),b&&4,this.s);this.v&&(as(c,this.o),this.v=0),b&&an(c,c.length-4,this.c.d()),this.ondata(c,b)},a.prototype.flush=function(a){av.prototype.flush.call(this,a)}}(),function(){function a(a,b){ay.call(this,a,b),this.v=a&&a.dictionary?2:1}return a.prototype.push=function(a,b){if(ay.prototype.e.call(this,a),this.v){if(this.p.length<6&&!b)return;this.p=this.p.subarray(at(this.p,this.v-1)),this.v=0}b&&(this.p.length<4&&I(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),ay.prototype.c.call(this,b)},a}()),aE=function(a,b){aj([ac,af,function(){return[ai,ay,aD]}],this,au.call(this,a,b),function(a){onmessage=ai(new aD(a.data))},11,0)},aF=function(){function a(a,b){this.o=au.call(this,a,b)||{},this.G=aB,this.I=ay,this.Z=aD}return a.prototype.i=function(){var a=this;this.s.ondata=function(b,c){a.ondata(b,c)}},a.prototype.push=function(a,b){if(this.ondata||I(5),this.s)this.s.push(a,b);else{if(this.p&&this.p.length){var c=new g(this.p.length+a.length);c.set(this.p),c.set(a,this.p.length)}else this.p=a;this.p.length>2&&(this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(this.o):(15&this.p[0])!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,b),this.p=null)}},a}();function aG(a,b){aF.call(this,a,b),this.queuedSize=0,this.G=aC,this.I=az,this.Z=aE}aG.prototype.i=function(){var a=this;this.s.ondata=function(b,c,d){a.ondata(b,c,d)},this.s.ondrain=function(b){a.queuedSize-=b,a.ondrain&&a.ondrain(b)}},aG.prototype.push=function(a,b){this.queuedSize+=a.length,aF.prototype.push.call(this,a,b)};var aH="u">typeof TextEncoder&&new TextEncoder,aI="u">typeof TextDecoder&&new TextDecoder,aJ=0;try{aI.decode(T,{stream:!0}),aJ=1}catch(a){}var aK=function(a){for(var b="",c=0;;){var d=a[c++],e=(d>127)+(d>223)+(d>239);if(c+e>a.length)return{s:b,r:G(a,c-1)};e?3==e?b+=String.fromCharCode(55296|(d=((15&d)<<18|(63&a[c++])<<12|(63&a[c++])<<6|63&a[c++])-65536)>>10,56320|1023&d):1&e?b+=String.fromCharCode((31&d)<<6|63&a[c++]):b+=String.fromCharCode((15&d)<<12|(63&a[c++])<<6|63&a[c++]):b+=String.fromCharCode(d)}};function aL(a,b){if(b){for(var c=new g(a.length),d=0;d<a.length;++d)c[d]=a.charCodeAt(d);return c}if(aH)return aH.encode(a);for(var e=a.length,f=new g(a.length+(a.length>>1)),h=0,i=function(a){f[h++]=a},d=0;d<e;++d){if(h+5>f.length){var j=new g(h+8+(e-d<<1));j.set(f),f=j}var k=a.charCodeAt(d);k<128||b?i(k):(k<2048?i(192|k>>6):(k>55295&&k<57344?(i(240|(k=65536+(1047552&k)|1023&a.charCodeAt(++d))>>18),i(128|k>>12&63)):i(224|k>>12),i(128|k>>6&63)),i(128|63&k))}return G(f,0,h)}function aM(a,b){if(b){for(var c="",d=0;d<a.length;d+=16384)c+=String.fromCharCode.apply(null,a.subarray(d,d+16384));return c}if(aI)return aI.decode(a);var e=aK(a),f=e.s,c=e.r;return c.length&&I(8),f}(function(a){this.ondata=a,aJ?this.t=new TextDecoder:this.p=T}).prototype.push=function(a,b){if(this.ondata||I(5),b=!!b,this.t){this.ondata(this.t.decode(a,{stream:!0}),b),b&&(this.t.decode().length&&I(8),this.t=null);return}this.p||I(4);var c=new g(this.p.length+a.length);c.set(this.p),c.set(a,this.p.length);var d=aK(c),e=d.s,f=d.r;b?(f.length&&I(8),this.p=null):this.p=f,this.ondata(e,b)},(function(a){this.ondata=a}).prototype.push=function(a,b){this.ondata||I(5),this.d&&I(4),this.ondata(aL(a),this.d=b||!1)};var aN=function(a){return 1==a?3:a<6?2:+(9==a)},aO=function(a,b,c){var d=ak(a,b+28),e=ak(a,b+30),f=aM(a.subarray(b+46,b+46+d),!(2048&ak(a,b+8))),g=b+46+d,h=aP(a,g,e,c,al(a,b+20),al(a,b+24),al(a,b+42)),i=h[0],j=h[1],k=h[2];return[ak(a,b+10),i,j,f,g+e+ak(a,b+32),k]},aP=function(a,b,c,d,e,f,g){var h=0xffffffff==e,i=0xffffffff==f,j=0xffffffff==g,k=b+c;if(d&&h+i+j){for(;b+4<k;b+=4+ak(a,b+2))if(1==ak(a,b))return[h?am(a,b+4+8*i):e,i?am(a,b+4):f,j?am(a,b+4+8*(i+h)):g,1];d<2&&I(13)}return[e,f,g,0]},aQ=function(a){var b=0;if(a)for(var c in a){var d=a[c].length;d>65535&&I(9),b+=d+4}return b},aR=function(a,b,c,d,e,f,g,h){var i=d.length,j=c.extra,k=h&&h.length,l=aQ(j);an(a,b,null!=g?0x2014b50:0x4034b50),b+=4,null!=g&&(a[b++]=20,a[b++]=c.os),a[b]=20,b+=2,a[b++]=c.flag<<1|(f<0&&8),a[b++]=e&&8,a[b++]=255&c.compression,a[b++]=c.compression>>8;var m=new Date(null==c.mtime?Date.now():c.mtime),n=m.getFullYear()-1980;if((n<0||n>119)&&I(10),an(a,b,n<<25|m.getMonth()+1<<21|m.getDate()<<16|m.getHours()<<11|m.getMinutes()<<5|m.getSeconds()>>1),b+=4,-1!=f&&(an(a,b,c.crc),an(a,b+4,f<0?-f-2:f),an(a,b+8,c.size)),an(a,b+12,i),an(a,b+14,l),b+=16,null!=g&&(an(a,b,k),an(a,b+6,c.attrs),an(a,b+10,g),b+=14),a.set(d,b),b+=i,l)for(var o in j){var p=j[o],q=p.length;an(a,b,+o),an(a,b+2,q),a.set(p,b+4),b+=4+q}return k&&(a.set(h,b),b+=k),b},aS=function(a,b,c,d,e){an(a,b,0x6054b50),an(a,b+8,c),an(a,b+10,c),an(a,b+12,d),an(a,b+16,e)},aT=function(){function a(a){this.filename=a,this.c=W(),this.size=0,this.compression=0}return a.prototype.process=function(a,b){this.ondata(null,a,b)},a.prototype.push=function(a,b){this.ondata||I(5),this.c.p(a),this.size+=a.length,b&&(this.crc=this.c.d()),this.process(a,b||!1)},a}();function aU(a,b){var c=this;b||(b={}),aT.call(this,a),this.d=new av(b,function(a,b){c.ondata(null,a,b)}),this.compression=8,this.flag=aN(b.level)}function aV(a,b){var c=this;b||(b={}),aT.call(this,a),this.d=new aw(b,function(a,b,d){c.ondata(a,b,d)}),this.compression=8,this.flag=aN(b.level),this.terminate=this.d.terminate}function aW(a){this.ondata=a,this.u=[],this.d=1}aU.prototype.process=function(a,b){try{this.d.push(a,b)}catch(a){this.ondata(a,null,b)}},aU.prototype.push=function(a,b){aT.prototype.push.call(this,a,b)},aV.prototype.process=function(a,b){this.d.push(a,b)},aV.prototype.push=function(a,b){aT.prototype.push.call(this,a,b)},aW.prototype.add=function(a){var b=this;if(this.ondata||I(5),2&this.d)this.ondata(I(4+(1&this.d)*8,0,1),null,!1);else{var c=aL(a.filename),d=c.length,e=a.comment,f=e&&aL(e),h=d!=a.filename.length||f&&e.length!=f.length,i=d+aQ(a.extra)+30;d>65535&&this.ondata(I(11,0,1),null,!1);var j=new g(i);aR(j,0,a,c,h,-1);var k=[j],l=function(){for(var a=0,c=k;a<c.length;a++){var d=c[a];b.ondata(null,d,!1)}k=[]},m=this.d;this.d=0;var n=this.u.length,o=Z(a,{f:c,u:h,o:f,t:function(){a.terminate&&a.terminate()},r:function(){if(l(),m){var a=b.u[n+1];a?a.r():b.d=1}m=1}}),p=0;a.ondata=function(c,d,e){if(c)b.ondata(c,d,e),b.terminate();else if(p+=d.length,k.push(d),e){var f=new g(16);an(f,0,0x8074b50),an(f,4,a.crc),an(f,8,p),an(f,12,a.size),k.push(f),o.c=p,o.b=i+p+16,o.crc=a.crc,o.size=a.size,m&&o.r(),m=1}else m&&l()},this.u.push(o)}},aW.prototype.end=function(){var a=this;2&this.d?this.ondata(I(4+(1&this.d)*8,0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&a.d&&(a.u.splice(-1,1),a.e())},t:function(){}}),this.d=3)},aW.prototype.e=function(){for(var a=0,b=0,c=0,d=0,e=this.u;d<e.length;d++){var f=e[d];c+=46+f.f.length+aQ(f.extra)+(f.o?f.o.length:0)}for(var h=new g(c+22),i=0,j=this.u;i<j.length;i++){var f=j[i];aR(h,a,f,f.f,f.u,-f.c-2,b,f.o),a+=46+f.f.length+aQ(f.extra)+(f.o?f.o.length:0),b+=f.b}aS(h,a,this.u.length,c,b),this.ondata(null,h,!0),this.d=2},aW.prototype.terminate=function(){for(var a=0,b=this.u;a<b.length;a++)b[a].t();this.d=2};var aX=function(){function a(){}return a.prototype.push=function(a,b){this.ondata(null,a,b)},a.compression=0,a}();function aY(){var a=this;this.i=new ay(function(b,c){a.ondata(null,b,c)})}function aZ(a,b){var c=this;b<32e4?this.i=new ay(function(a,b){c.ondata(null,a,b)}):(this.i=new az(function(a,b,d){c.ondata(a,b,d)}),this.terminate=this.i.terminate)}function a$(a){this.onfile=a,this.k=[],this.o={0:aX},this.p=T}aY.prototype.push=function(a,b){try{this.i.push(a,b)}catch(a){this.ondata(a,null,b)}},aY.compression=8,aZ.prototype.push=function(a,b){this.i.terminate&&(a=G(a,0)),this.i.push(a,b)},aZ.compression=8,a$.prototype.push=function(a,b){var c=this;if(this.onfile||I(5),this.p||I(4),this.c>0){var d=Math.min(this.c,a.length),e=a.subarray(0,d);if(this.c-=d,this.d?this.d.push(e,!this.c):this.k[0].push(e),(a=a.subarray(d)).length)return this.push(a,b)}else{var f=0,h=0,i=void 0,j=void 0;this.p.length?a.length?((j=new g(this.p.length+a.length)).set(this.p),j.set(a,this.p.length)):j=this.p:j=a;for(var k=j.length,l=this.c,m=l&&this.d,n=this;h<k-4&&"break"!==function(){var a=al(j,h);if(0x4034b50==a){f=1,i=h,n.d=null,n.c=0;var b=ak(j,h+6),d=ak(j,h+8),e=ak(j,h+26),g=ak(j,h+28);if(k>h+30+e+g){var m,o=[];n.k.unshift(o),f=2;var p=al(j,h+18),q=al(j,h+22),r=aM(j.subarray(h+30,h+=30+e),!(2048&b)),s=aP(j,h,g,2,p,q,0),t=s[0],u=s[1],v=s[3];8&b&&(t=-1-v),h+=g,n.c=t;var w={name:r,compression:d,start:function(){if(w.ondata||I(5),t){var a=c.o[d];a||w.ondata(I(14,"unknown compression type "+d,1),null,!1),(m=t<0?new a(r):new a(r,t,u)).ondata=function(a,b,c){w.ondata(a,b,c)};for(var b=0;b<o.length;b++){var e=o[b];m.push(e,!1)}c.k[0]==o&&c.c?c.d=m:m.push(T,!0)}else w.ondata(null,T,!0)},terminate:function(){m&&m.terminate&&m.terminate()}};t>=0&&(w.size=t,w.originalSize=u),n.onfile(w)}return"break"}if(l){if(0x8074b50==a)return i=h+=12+(-2==l&&8),f=3,n.c=0,"break";else if(0x2014b50==a)return i=h-=4,f=3,n.c=0,"break"}}();++h);if(this.p=T,l<0){var o=f?j.subarray(0,i-12-(-2==l&&8)-(0x8074b50==al(j,i-16)&&4)):j.subarray(0,h);m?m.push(o,!!f):this.k[+(2==f)].push(o)}if(2&f)return this.push(j.subarray(h),b);this.p=j.subarray(h)}b&&(this.c&&I(13),this.p=null)},a$.prototype.register=function(a){this.o[a.compression]=a},"function"==typeof queueMicrotask&&queueMicrotask,a.s(["unzipSync",0,function(a,b){for(var c={},d=a.length-22;0x6054b50!=al(a,d);--d)(!d||a.length-d>65558)&&I(13);var e=ak(a,d+8);if(!e)return{};var f=al(a,d+16),h=0x7064b50==al(a,d-20);if(h){var i=al(a,d-12);(h=0x6064b50==al(a,i))&&(e=al(a,i+32),f=al(a,i+48))}for(var j=b&&b.filter,k=0;k<e;++k){var l=aO(a,f,h),m=l[0],n=l[1],o=l[2],p=l[3],q=l[4],r=l[5],s=r+30+ak(a,r+26)+ak(a,r+28);f=q,(!j||j({name:p,size:n,originalSize:o,compression:m}))&&(m?8==m?c[p]=aA(a.subarray(s,s+n),{out:new g(o)}):I(14,"unknown compression type "+m):c[p]=G(a,s,s+n))}return c}])},937864,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(53112),f=a.i(569572),g=a.i(652619),h=a.i(552556),i=a.i(558067),j=a.i(69721),k=a.i(225689),l=a.i(293480),m=a.i(688034),n=a.i(725466),o=a.i(713095),p=b([g,n]);[g,n]=p.then?(await p)():p;let s=e.z.enum(m.CONFIG_KEYS),t=(0,k.serverAction)(async(a,b)=>{let c=e.z.object({key:s,value:e.z.string().trim().min(1)}).parse({key:a,value:b}),d=m.CONFIG_ENTRIES[c.key];if(q(c.key),d?.signIn&&(0,l.publicError)(`${d.label} takes a sign-in, not a key.`),d?.choices?(0,m.acceptsChoice)(d,c.value)||(0,l.publicError)("That is not one of the options."):c.value.length<f.KEY_MIN&&(0,l.publicError)("That does not look like a key"),c.key===h.LIVE_PROVIDER.apiKeyName){let a=await (0,j.keyRefusal)(c.value);a&&(0,l.publicError)(`${h.LIVE_PROVIDER.label} did not take it — ${a}`)}await (0,n.writeConfig)(c.key,c.value),await r(c.key)}),u=(0,k.serverAction)(async a=>{let b=s.parse(a);q(b),await (0,n.removeConfig)(b),await r(b)});function q(a){(0,n.configFromEnv)(a)&&(0,l.publicError)((0,m.envWords)(m.CONFIG_ENTRIES[a]?.label??a))}async function r(b){if(!Object.values(i.REACH_KEYS).some(a=>a.includes(b)))return;let{reachChannelOf:c,startReach:d}=await a.A(453556),e=c(b);e&&await d(e)}let v=(0,k.serverAction)(async()=>(0,g.startChatGptSignIn)());(0,o.ensureServerEntryExports)([t,u,v]),(0,d.registerServerReference)(t,"7f18a846997eb8786e17eee3f41f88253f5ba2ca5b",null),(0,d.registerServerReference)(u,"7fc10090f794990bc37a14ff06fd14bfdf6160a71d",null),(0,d.registerServerReference)(v,"7fd51354043b3edf7465039573d2a3542c56a6b7e6",null),a.s(["removeConfigAction",0,u,"setConfigAction",0,t,"startChatGptSignInAction",0,v]),c()}catch(a){c(a)}},!1),935930,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(569572),f=a.i(947950),g=a.i(899284),h=a.i(225689),i=a.i(293480),j=a.i(182248),k=a.i(317844),l=a.i(713095),m=b([f,k]);[f,k]=m.then?(await m)():m;let o=(0,h.serverAction)(async a=>{let b=g.MCPServerFormSchema.parse(a);b.name===e.STUDIO_SERVER&&(0,i.publicError)(`"${e.STUDIO_SERVER}" is the app's own — pick another name`);let c=!!await (0,f.findServerDetail)(b.name);await (0,f.upsertServer)(b);let d=await n(b.name);return"error"!==d.status||c||await (0,f.deleteServer)(b.name),d}),p=(0,h.serverAction)(async a=>(await (0,f.forgetLostSignIn)(a),await k.mcpManager.disconnect(a),n(a))),q=(0,h.serverAction)(async a=>{await k.mcpManager.disconnect(a),await (0,f.deleteServer)(a)||(0,i.publicError)("Server not found")});async function n(a){try{let b=await k.mcpManager.connect(a);return"auth_required"===b.status?{name:a,status:"auth_required",authorizationUrl:b.authorizationUrl,toolCount:0}:{name:a,status:"connected",toolCount:b.tools.length}}catch(b){return{name:a,status:"error",toolCount:0,error:(0,j.errorToString)(b)}}}let r=(0,h.serverAction)(async(a,b,c)=>{try{return await k.mcpManager.callTool(a,b,c)}catch(a){a instanceof k.McpAuthRequiredError&&(0,i.publicError)("Authorization required — reconnect this server first"),(0,i.publicError)((0,j.errorToString)(a))}});(0,l.ensureServerEntryExports)([o,p,q,r]),(0,d.registerServerReference)(o,"7fe27343a2fa46f433bf6ae380566af1c36acc3b88",null),(0,d.registerServerReference)(p,"7f98cd44db2be134713ecafd551e41c35b1a13354f",null),(0,d.registerServerReference)(q,"7f17fd8a21bcdd0cf418a825863cccd95828f1f08a",null),(0,d.registerServerReference)(r,"7fe9a0fe0fb88c4445f910e891a7b9b262f1d47285",null),a.s(["callToolAction",0,r,"deleteServerAction",0,q,"refreshServerAction",0,p,"registerServerAction",0,o]),c()}catch(a){c(a)}},!1),844362,a=>a.a(async(b,c)=>{try{var d=a.i(937864),e=a.i(910350),f=a.i(926944),g=a.i(243184);a.i(69999);var h=a.i(451208),i=a.i(439759),j=a.i(201300),k=a.i(102409),l=a.i(260210),m=a.i(432443),n=a.i(935930),o=b([d,e,f,g,h,i,j,k,l,m,n]);[d,e,f,g,h,i,j,k,l,m,n]=o.then?(await o)():o,a.s([]),c()}catch(a){c(a)}},!1),863352,a=>a.a(async(b,c)=>{try{var d=a.i(844362),e=a.i(937864),f=a.i(910350),g=a.i(926944),h=a.i(243184),i=a.i(69999),j=a.i(451208),k=a.i(439759),l=a.i(201300),m=a.i(102409),n=a.i(260210),o=a.i(432443),p=a.i(935930),q=b([d,e,f,g,h,j,k,l,m,n,o,p]);[d,e,f,g,h,j,k,l,m,n,o,p]=q.then?(await q)():q,a.s(["7f05620cb54aa427c2fd25d79c3451eb6a645784fc",()=>k.tellTextCallAction,"7f07efc30c06410ee789eef202233cf738a9eae1af",()=>n.deleteArtifactAction,"7f0d894c2d6e0894ad07b7e79bc248f927d248b298",()=>k.resetHistoryAction,"7f12447d33ce366e085df1066e96f0518d58e9b13b",()=>l.deleteNoteAction,"7f13f97022e2e4f41d0edde565631b58dc7a09d956",()=>m.createRoutineAction,"7f17803236dc5a04c251030124a3d3a425782efb69",()=>h.passIntroAction,"7f17fd8a21bcdd0cf418a825863cccd95828f1f08a",()=>p.deleteServerAction,"7f18a846997eb8786e17eee3f41f88253f5ba2ca5b",()=>e.setConfigAction,"7f1dd295b0b610a747ded40e9b45a9754e17ab85f8",()=>f.clearOwnLineAction,"7f225d450f53c4344c1735d5981a402c7265d469c8",()=>j.deleteWorkspaceFileAction,"7f26b5fc0d2b17be7dbd7655b369e7245577159186",()=>f.setBotMemoryOnAction,"7f2c03ef978ece4af4c45f31f27774a9a769a1bfac",()=>f.markSeenAction,"7f2dd937bbd0b02ea4560fe6b144108ba82295beaa",()=>f.deleteBotAction,"7f2fffcafc33e4417274b94bb6169b63543c643bf2",()=>l.createNoteAction,"7f309ae063e87c26a97799f88691408f2f53cf70aa",()=>f.answerThreadAction,"7f329c6ce9546b9bbe43207116dfc1130f75e5a292",()=>i.setSignInBotAction,"7f40567ca286d4939a46ffe468135d6e8b07b56d50",()=>f.acceptThreadRelaysAction,"7f42e2daa2da92f125dd934414c999ea8cddaf2441",()=>j.revealFileAction,"7f465a3a44bbc30aaf06fc1756bccae6300f78f6e8",()=>g.forgetReachAction,"7f487e023794e32d1f38f84888eee4bedb8ec7669b",()=>f.withdrawStepInAction,"7f4d1b83a856be03b184db5399983948fd7fba94a6",()=>f.createSeedBotsAction,"7f4fb822e09452650925f5a6f83a5cf59d64fb274a",()=>l.updateNoteAction,"7f55266b04466868375c8d1d447e03c99bb0e659aa",()=>f.startThreadAction,"7f56ed84c09474fd0592fe62f3aa4a809ab9b53563",()=>f.cancelThreadAction,"7f5c2c75d5e13ffd4fb9c22762afab10143cd6c187",()=>k.saveTurnsAction,"7f5fd8c8fd0bd9de5680bde0acf705143b434d483a",()=>o.writeSkillFileAction,"7f6833d158ed86b23fa1c6c5b221a49984cd1ab812",()=>g.allowReachAction,"7f69b88d52223f6e7eebcc3fb4e2e26bfd6821a297",()=>l.forgetFactAction,"7f6a1f4250ace49f37f97878708026883aabdf97de",()=>f.handFileAction,"7f72cbe47c1f7d07eab9c5f73a84057ec03fda4dbc",()=>l.reviseFactAction,"7f7711a41876bea8e8cebdf58021159d4b32db8b47",()=>k.endCallAction,"7f7b01acd185abd45b14d85f82ded01b9947b20a06",()=>f.deleteThreadAction,"7f7c9c51edfa501edddc629a07abe8f2980b9a3308",()=>f.updateBotAction,"7f8257a569f9b2adeaafeb7f08994d8470df52826c",()=>o.uploadSkillAction,"7f92e6309284e6827dbb0afd1b0993128e3994cf54",()=>o.setSkillDisabledAction,"7f98cd44db2be134713ecafd551e41c35b1a13354f",()=>p.refreshServerAction,"7fa1262db695c5ebbfd00215bef94a4cc6da2edf11",()=>o.createSkillAction,"7fa31767ec3b5032a5871f9012317613c15f78f2b9",()=>l.addFactsAction,"7fa3c13892651d1466860cef825252404a5d23ee60",()=>m.runRoutineNowAction,"7fa7dfd6d414554348a0b2ca6d9b9523082950cc07",()=>f.tellFileThreadAction,"7fa811ad9a59918dc05c6e13fa8be4909b175bbfb0",()=>m.updateRoutineAction,"7fad3f5b774013446a99524fe82303ed10692a942a",()=>m.deleteRoutineAction,"7fad766f26aec8e232c267934bfbb64336e43eeda4",()=>f.clearFinishedThreadsAction,"7fb8c7f9db25756a8e9046115c1417c21586b0b359",()=>j.savePageAction,"7fbb7393068170a4992ec2a4eea4f89fc2fd8895a4",()=>k.setLiveSettingsAction,"7fbe68f45e359e1052cdbb022b3747a8351074764c",()=>k.seedLiveSettingsAction,"7fc10090f794990bc37a14ff06fd14bfdf6160a71d",()=>e.removeConfigAction,"7fc2cba9f0fc75fa2215f18ba8e7ed6661bc7f8b77",()=>f.compactThreadAction,"7fcbd6568a4eb8a342cb55bff2c269c3391c25574f",()=>j.openFileAction,"7fcd52209928f1445b9e695e9fc36fb23242f66a81",()=>k.openCallAction,"7fd51354043b3edf7465039573d2a3542c56a6b7e6",()=>e.startChatGptSignInAction,"7fd56681214bf9f0382e8666c06c414cc7d6e0f605",()=>f.createBotAction,"7fdfad05f6777f7bd67a9f74abfa202718009c05f3",()=>k.deleteEndedCallsAction,"7fe27343a2fa46f433bf6ae380566af1c36acc3b88",()=>p.registerServerAction,"7fe96bf1186b240a2834c6e2bfb8dcf43ff788a320",()=>j.emptyScratchAction,"7fe9a0fe0fb88c4445f910e891a7b9b262f1d47285",()=>p.callToolAction,"7fec00f822f5f2035683bb2e8714245e10e86f98c7",()=>o.deleteSkillAction,"7fed40390c441804da9d1f7f6c4701fcece1f8bbe5",()=>k.openTextCallAction,"7ff1c55eba63c3af28f4186633d202d74740b81b4a",()=>g.declineReachAction,"7ff49909ad8823b5ef360e3ed4911396403ed91cee",()=>i.removeSignInAction,"7ff5c9c6eb174c2cb72ff218342df8a8537032d267",()=>j.giveFilesAction,"7ff6085304aabc8da0e4881aabd82181fc44a8933f",()=>k.deleteCallAction,"7ffff8423905a681d7c3acdac89e0d3b3dfb130f30",()=>k.saveThoughtAction]),c()}catch(a){c(a)}},!1),243184,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(225689),f=a.i(756984),g=a.i(713095),h=b([f]);[f]=h.then?(await h)():h;let i=(0,e.serverAction)(async()=>{await (0,f.markIntroPassed)()});(0,g.ensureServerEntryExports)([i]),(0,d.registerServerReference)(i,"7f17803236dc5a04c251030124a3d3a425782efb69",null),a.s(["passIntroAction",0,i]),c()}catch(a){c(a)}},!1),926944,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(53112),f=a.i(225689),g=a.i(233398),h=a.i(558067),i=a.i(713095),j=b([g]);[g]=j.then?(await j)():j;let k=e.z.enum(h.REACH_CHANNELS),l=e.z.object({chat:e.z.string().min(1),code:e.z.string().min(1)}),m=(0,f.serverAction)(async(a,b)=>{let{chat:c,code:d}=l.parse(b);await (0,g.allowReach)(k.parse(a),c,d)}),n=(0,f.serverAction)(async(a,b)=>{let{chat:c,code:d}=l.parse(b);(0,g.declineReach)(k.parse(a),c,d)}),o=(0,f.serverAction)(async a=>{await (0,g.forgetReach)(k.parse(a))});(0,i.ensureServerEntryExports)([m,n,o]),(0,d.registerServerReference)(m,"7f6833d158ed86b23fa1c6c5b221a49984cd1ab812",null),(0,d.registerServerReference)(n,"7ff1c55eba63c3af28f4186633d202d74740b81b4a",null),(0,d.registerServerReference)(o,"7f465a3a44bbc30aaf06fc1756bccae6300f78f6e8",null),a.s(["allowReachAction",0,m,"declineReachAction",0,n,"forgetReachAction",0,o]),c()}catch(a){c(a)}},!1),265529,a=>a.a(async(b,c)=>{try{a.i(569572);var d=a.i(221214),e=a.i(674986),f=a.i(344853),g=a.i(706210);a.i(176668);var h=a.i(293480),i=a.i(780946),j=a.i(643020),k=b([d,e,f,i]);async function l(a){let b=await (0,i.latestRun)(a.id);return await (0,f.markSeen)(await (0,i.listUnseenRunIds)(a.id)),(0,e.startThread)({bot:a.bot,request:a.request,label:a.label,from:"user",routine:{id:a.id,when:(0,j.scheduleText)(a.schedule),last:b?.status==="done"&&b.outcome?{at:(0,g.toDate)(b.updatedAt),said:b.outcome}:null}})}async function m(a){let b,c=await (0,i.findRoutine)(a);return c||(0,h.publicError)("No such routine."),b=c.runs[0],(b?.status==="running"||b?.status==="waiting")&&(0,h.publicError)("Its last run is still open. Answer or stop that one first."),l(c)}[d,e,f,i]=k.then?(await k)():k,a.s(["runRoutineNow",0,m]),c()}catch(a){c(a)}},!1),102409,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(53112),f=a.i(225689),g=a.i(293480),h=a.i(265529),i=a.i(780946),j=a.i(643020),k=a.i(713095),l=b([h,i]);[h,i]=l.then?(await l)():l;let m=(0,f.serverAction)(async a=>({id:(await (0,i.createRoutine)(j.RoutineInputSchema.parse(a))).id})),n=(0,f.serverAction)(async(a,b)=>{let c=j.RoutineInputSchema.partial().extend({enabled:e.z.boolean().optional()}).parse(b);await (0,i.updateRoutine)(a,c)||(0,g.publicError)("Routine not found")}),o=(0,f.serverAction)(async a=>{await (0,i.deleteRoutine)(a)||(0,g.publicError)("Routine not found")}),p=(0,f.serverAction)(async a=>({threadId:await (0,h.runRoutineNow)(a)}));(0,k.ensureServerEntryExports)([m,n,o,p]),(0,d.registerServerReference)(m,"7f13f97022e2e4f41d0edde565631b58dc7a09d956",null),(0,d.registerServerReference)(n,"7fa811ad9a59918dc05c6e13fa8be4909b175bbfb0",null),(0,d.registerServerReference)(o,"7fad3f5b774013446a99524fe82303ed10692a942a",null),(0,d.registerServerReference)(p,"7fa3c13892651d1466860cef825252404a5d23ee60",null),a.s(["createRoutineAction",0,m,"deleteRoutineAction",0,o,"runRoutineNowAction",0,p,"updateRoutineAction",0,n]),c()}catch(a){c(a)}},!1),432443,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(663070),f=a.i(53112),g=a.i(569572),h=a.i(762805),i=a.i(951941),j=a.i(225689),k=a.i(293480),l=a.i(713095),m=b([h]);[h]=m.then?(await m)():m;let n=(0,j.serverAction)(async a=>{let{name:b,description:c,content:d}=i.SkillDraftSchema.parse(a);return await (0,h.writeCustomSkill)(b,new Map([["SKILL.md",(0,h.renderSkillMarkdown)({name:b,description:c},d)]]))}),o=(0,j.serverAction)(async a=>{let b=a instanceof FormData?a.get("file"):null;b instanceof File&&0!==b.size||(0,k.publicError)("No file came with that"),b.size>g.SKILL_FILES.uploadBytes&&(0,k.publicError)(`File is larger than ${Math.round(g.SKILL_FILES.uploadBytes/1024/1024)} MB`);let c=b.name,d=Buffer.from(await b.arrayBuffer()),f=c.toLowerCase(),i=new Map;if(f.endsWith(".md"))i.set("SKILL.md",d);else if(f.endsWith(".zip")||f.endsWith(".skill")){let a,b=0,c=0,f=!1;try{a=(0,e.unzipSync)(new Uint8Array(d),{filter:a=>{if(b+=1,c+=a.originalSize,f=b>g.SKILL_FILES.archiveEntries||c>g.SKILL_FILES.unpackedBytes)throw Error("archive too big");return!0}})}catch{(0,k.publicError)(f?`The archive unpacks to more than ${Math.round(g.SKILL_FILES.unpackedBytes/1024/1024)} MB or ${g.SKILL_FILES.archiveEntries} files`:"The archive could not be opened")}let h=Object.keys(a).filter(a=>!a.startsWith("__MACOSX/")).filter(a=>"SKILL.md"===a.split("/").pop()).sort((a,b)=>a.split("/").length-b.split("/").length)[0];h||(0,k.publicError)("The archive has no SKILL.md");let j=h.slice(0,-8);for(let[b,c]of Object.entries(a)){if(!b.startsWith(j)||b.endsWith("/")||b.startsWith("__MACOSX/"))continue;let a=b.slice(j.length);a.split("/").some(a=>".."===a||""===a)||i.set(a,c)}}else(0,k.publicError)("Upload a .md, .zip or .skill file");let j=i.get("SKILL.md"),l="string"==typeof j?j:Buffer.from(j).toString("utf-8"),m=(0,h.parseFrontmatter)(l);return(0,h.writeCustomSkill)((0,h.skillFolderName)(m.name),i)}),p=f.z.string().trim().min(1).max(128),q=(0,j.serverAction)(async(a,b)=>{await (0,h.deleteSkill)(i.SkillSourceSchema.parse(a),p.parse(b))}),r=(0,j.serverAction)(async(a,b,c,d)=>{await (0,h.writeSkillFile)(i.SkillSourceSchema.parse(a),p.parse(b),f.z.string().trim().min(1).parse(c),f.z.string().parse(d))}),s=(0,j.serverAction)(async(a,b,c)=>{await (0,h.setSkillOff)(i.SkillSourceSchema.parse(a),p.parse(b),f.z.boolean().parse(c))});(0,l.ensureServerEntryExports)([n,o,q,r,s]),(0,d.registerServerReference)(n,"7fa1262db695c5ebbfd00215bef94a4cc6da2edf11",null),(0,d.registerServerReference)(o,"7f8257a569f9b2adeaafeb7f08994d8470df52826c",null),(0,d.registerServerReference)(q,"7fec00f822f5f2035683bb2e8714245e10e86f98c7",null),(0,d.registerServerReference)(r,"7f5fd8c8fd0bd9de5680bde0acf705143b434d483a",null),(0,d.registerServerReference)(s,"7f92e6309284e6827dbb0afd1b0993128e3994cf54",null),a.s(["createSkillAction",0,n,"deleteSkillAction",0,q,"setSkillDisabledAction",0,s,"uploadSkillAction",0,o,"writeSkillFileAction",0,r]),c()}catch(a){c(a)}},!1),439759,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(527990),f=a.i(723885),g=a.i(184838),h=a.i(652619),i=a.i(552556),j=a.i(738131),k=a.i(689656),l=a.i(61514),m=a.i(5865),n=a.i(614747),o=a.i(674986),p=a.i(344853),q=a.i(688034),r=a.i(725466),s=a.i(986743),t=a.i(746609),u=a.i(69721),v=a.i(225689),w=a.i(293480),x=a.i(61265),y=a.i(569549),z=a.i(3894),A=a.i(143699),B=a.i(713095),C=b([g,h,j,l,m,n,o,p,r,s,x,y,A]);async function D(a){let b=await (0,j.loadTools)({target:"thursday",...a});return Object.entries(b).map(([a,b])=>{let{$schema:c,...d}=(0,e.asSchema)(b.inputSchema).jsonSchema;return{name:a,description:"string"==typeof b.description?b.description:"",parameters:d}})}[g,h,j,l,m,n,o,p,r,s,x,y,A]=C.then?(await C)():C;let E=(0,v.serverAction)(async(a,b,c,d)=>{let e=await (0,y.readLiveSettings)(),g=f.default.string().min(1).max(65536).parse(a),j=new Map(await Promise.all(i.LIVE_LINES.map(async a=>{let b=k.TEXT_MODEL_PROVIDERS[a].apiKeyName;return[b,await (0,r.hasConfig)(b)]}))),o=j.get(k.TEXT_MODEL_PROVIDERS.chatgpt.apiKeyName)??!1,p=o?await (0,h.readChatGptPlan)():null,s=(0,i.liveLineOf)(e.runsOn,a=>j.get(a)??!1,p);s||(o&&(0,w.publicError)(`Your ${k.TEXT_MODEL_PROVIDERS.chatgpt.label} is on the ${(0,k.planName)(p)} plan, which has no spoken calls. Add an ${i.LIVE_PROVIDER.label} key in Settings › API keys, or sign in with a paid plan. Calls in writing and bots run on it as they are.`),(0,w.publicError)(await (0,r.missingKeyWords)(k.TEXT_MODEL_PROVIDERS.chatgpt.apiKeyName,await (0,r.missingKeyWords)(i.LIVE_PROVIDER.apiKeyName,`A spoken call needs a ${k.TEXT_MODEL_PROVIDERS.chatgpt.label} sign-in or an ${i.LIVE_PROVIDER.label} key — Settings › API keys.`))));let v=f.default.boolean().default(!1).parse(b),z=(0,A.readWhere)(c),B=f.default.boolean().default(!1).parse(d),C={webSearch:e.webSearch,readSkills:e.readSkills},[E,F,G]=await Promise.all([(0,m.loadLivePrompt)({stylePrompt:e.stylePrompt,persona:e.persona,calledBack:v,where:z,here:B,plan:"chatgpt"===s}),(0,n.loadThursdayPrompt)({backendPrompt:e.backendPrompt,readSkills:e.readSkills,where:z}),(0,l.loadCallStanding)()]);if("chatgpt"===s){let a=await (0,x.openPlanLine)({sdp:g,voice:{instructions:E.text,voice:e.planVoice},settings:e,backendPrompt:F,opened:C,insertRow:()=>(0,y.insertCall)({provider:s,model:t.LIVE_PLAN_MODEL,backendModel:e.backendModel})});return{callId:a.callId,sdp:a.sdp,opening:E.opening,here:E.here,standing:G,opened:C,relay:(0,x.planRelayOf)(a.callId)}}let H=await (0,r.readConfig)(i.LIVE_PROVIDER.apiKeyName);H||(0,w.publicError)(`No ${i.LIVE_PROVIDER.label} key — add one in Settings › API keys.`);let[I,J,K]=await Promise.all([D(C),(0,u.acceptedReasoning)({apiKey:H,model:e.backendModel,effort:e.reasoningEffort}),(0,r.readConfig)(q.EXA_API_KEY)]),L=await (0,u.createLiveCall)({apiKey:H,sdp:g,voice:e.voice,instructions:E.text,backend:{model:e.backendModel,instructions:F,tools:I,reasoning:J,hosted:e.webSearch&&!K?["webSearch"]:[]}});return{callId:await (0,y.insertCall)({provider:i.LIVE_PROVIDER.id,model:t.LIVE_MODEL,backendModel:e.backendModel}),sdp:L.transport.sdp,opening:E.opening,here:E.here,standing:G,opened:C,relay:null}}),F=(0,v.serverAction)(async a=>(0,A.openTextCall)(k.textModelRefSchema.nullish().parse(a))),G=(0,v.serverAction)(async(a,b,c)=>(0,A.tellTextCall)(f.default.string().min(1).parse(a),f.default.string().min(1).parse(b),z.TextCallNoteSchema.parse(c))),H=(0,v.serverAction)(async a=>(0,y.changeLiveSettings)(f.default.record(f.default.string(),f.default.unknown()).parse(a))),I=(0,v.serverAction)(async a=>(0,y.seedLiveSettings)(a)),J=(0,v.serverAction)(async(a,b)=>{await (0,y.saveTurns)(f.default.string().min(1).parse(a),z.CallTurnSchema.array().min(1).parse(b))}),K=(0,v.serverAction)(async(a,b)=>{await (0,y.saveThought)(f.default.string().min(1).parse(a),z.CallThoughtSchema.parse(b))}),L=(0,v.serverAction)(async(a,b)=>{await (0,y.endCall)(f.default.string().min(1).parse(a),t.LiveCloseSchema.nullish().parse(b))}),M=(0,v.serverAction)(async a=>{await (0,y.deleteCall)(f.default.string().min(1).parse(a))||(0,w.publicError)("That call is still on the line — hang up first.")}),N=(0,v.serverAction)(async()=>(0,y.deleteEndedCalls)()),O=(0,v.serverAction)(async()=>{let a=await (0,p.listAllThreadIds)();for(let b of a)await (0,o.removeThread)(b);let b=await (0,y.deleteEndedCalls)(),c=await (0,s.deleteAllNotes)();return await (0,g.reclaim)(),{calls:b,threads:a.length,notes:c}});(0,B.ensureServerEntryExports)([E,F,G,H,I,J,K,L,M,N,O]),(0,d.registerServerReference)(E,"7fcd52209928f1445b9e695e9fc36fb23242f66a81",null),(0,d.registerServerReference)(F,"7fed40390c441804da9d1f7f6c4701fcece1f8bbe5",null),(0,d.registerServerReference)(G,"7f05620cb54aa427c2fd25d79c3451eb6a645784fc",null),(0,d.registerServerReference)(H,"7fbb7393068170a4992ec2a4eea4f89fc2fd8895a4",null),(0,d.registerServerReference)(I,"7fbe68f45e359e1052cdbb022b3747a8351074764c",null),(0,d.registerServerReference)(J,"7f5c2c75d5e13ffd4fb9c22762afab10143cd6c187",null),(0,d.registerServerReference)(K,"7ffff8423905a681d7c3acdac89e0d3b3dfb130f30",null),(0,d.registerServerReference)(L,"7f7711a41876bea8e8cebdf58021159d4b32db8b47",null),(0,d.registerServerReference)(M,"7ff6085304aabc8da0e4881aabd82181fc44a8933f",null),(0,d.registerServerReference)(N,"7fdfad05f6777f7bd67a9f74abfa202718009c05f3",null),(0,d.registerServerReference)(O,"7f0d894c2d6e0894ad07b7e79bc248f927d248b298",null),a.s(["deleteCallAction",0,M,"deleteEndedCallsAction",0,N,"endCallAction",0,L,"openCallAction",0,E,"openTextCallAction",0,F,"resetHistoryAction",0,O,"saveThoughtAction",0,K,"saveTurnsAction",0,J,"seedLiveSettingsAction",0,I,"setLiveSettingsAction",0,H,"tellTextCallAction",0,G]),c()}catch(a){c(a)}},!1),201300,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(53112),f=a.i(986743),g=a.i(661210),h=a.i(225689),i=a.i(293480),j=a.i(713095),k=b([f]);[f]=k.then?(await k)():k;let l=e.z.string().trim().refine(g.isMemoryPath,"Invalid note path"),m=(0,h.serverAction)(async(a,b,c=[])=>{let d=l.parse(a),e=g.NoteLineSchema.parse(b),h=await (0,f.createNote)(d,e,{ownedByUser:!0});for(let a of(h||(0,i.publicError)("Note already exists"),c.map(a=>a.trim()).filter(Boolean)))await (0,f.addFact)(h.id,a);return{id:h.id}}),n=(0,h.serverAction)(async(a,b)=>{await (0,f.updateNote)(a,{...void 0!==b.description?{description:g.NoteLineSchema.parse(b.description)}:{}})||(0,i.publicError)("Note not found")}),o=(0,h.serverAction)(async a=>{await (0,f.deleteNote)(a)||(0,i.publicError)("Note not found")}),p=(0,h.serverAction)(async(a,b)=>{let c=b.map(a=>a.trim()).filter(Boolean);for(let b of(0===c.length&&(0,i.publicError)("Fact text is required"),c))await (0,f.addFact)(a,b);return{added:c.length}}),q=(0,h.serverAction)(async(a,b,c)=>{c.trim()||(0,i.publicError)("Fact text is required"),await (0,f.reviseFact)(a,b,c.trim())||(0,i.publicError)("Fact not found")}),r=(0,h.serverAction)(async(a,b)=>{await (0,f.forgetFact)(a,b)||(0,i.publicError)("Fact not found")});(0,j.ensureServerEntryExports)([m,n,o,p,q,r]),(0,d.registerServerReference)(m,"7f2fffcafc33e4417274b94bb6169b63543c643bf2",null),(0,d.registerServerReference)(n,"7f4fb822e09452650925f5a6f83a5cf59d64fb274a",null),(0,d.registerServerReference)(o,"7f12447d33ce366e085df1066e96f0518d58e9b13b",null),(0,d.registerServerReference)(p,"7fa31767ec3b5032a5871f9012317613c15f78f2b9",null),(0,d.registerServerReference)(q,"7f72cbe47c1f7d07eab9c5f73a84057ec03fda4dbc",null),(0,d.registerServerReference)(r,"7f69b88d52223f6e7eebcc3fb4e2e26bfd6821a297",null),a.s(["addFactsAction",0,p,"createNoteAction",0,m,"deleteNoteAction",0,o,"forgetFactAction",0,r,"reviseFactAction",0,q,"updateNoteAction",0,n]),c()}catch(a){c(a)}},!1),61265,a=>a.a(async(b,c)=>{try{var d=a.i(666680),e=a.i(47919),f=a.i(569572),g=a.i(652619),h=a.i(552556),i=a.i(738131),j=a.i(875931),k=a.i(762008),l=a.i(688034),m=a.i(725466),n=a.i(224728),o=a.i(746609),p=a.i(69721),q=a.i(176668),r=a.i(212827);a.i(984433);var s=b([g,i,j,m]);[g,i,j,m]=s.then?(await s)():s;let B=globalThis.__planLines??=new Map;async function t(a){let{settings:b,opened:c}=a,[d,e,q,s]=await Promise.all([(0,j.getTextModel)({provider:"chatgpt",model:b.backendModel}),(0,i.loadTools)({target:"thursday",...c}),(0,m.readConfig)(l.EXA_API_KEY),(0,m.readConfig)(h.LIVE_PROVIDER.apiKeyName)]),t=s?await (0,p.acceptedReasoning)({apiKey:s,model:b.backendModel,effort:b.reasoningEffort}):(0,p.wantedReasoning)(b.reasoningEffort),w={};for(let[a,{execute:b,...c}]of Object.entries(e))w[a]=c;let x=d.searchTools&&Object.values(d.searchTools)[0];c.webSearch&&!q&&x&&(w[k.TOOL_NAMES.web_search]=x);let y=await (0,g.openPlanCall)({sdp:a.sdp,session:{model:o.LIVE_PLAN_MODEL,instructions:a.voice.instructions,audio:{output:{voice:a.voice.voice}},delegation:{type:"client"}}}),z=(0,r.createEventBus)(),C={id:"",wire:{say:()=>!1,answer:()=>!1,close:()=>{}},began:Date.now(),over:!1,bus:z,outbox:[],followed:!1,orphan:void 0,stop:new AbortController,backend:{model:d.model,system:a.backendPrompt,tools:w,providerOptions:{openai:{...t?.effort?{reasoningEffort:t.effort}:{},...t&&"summary"in t&&t.summary?{reasoningSummary:t.summary}:{}}}},messages:[],facts:[],talk:[],handed:[],working:!1,calling:[],outputs:new Map,pictures:[],asked:!1,next:null};C.wire=await (0,n.joinPlanLine)({callId:y.callId,headers:y.headers,on:{event:a=>(function(a,b){if(!a.over)switch(b.type){case"heard":{let c=Date.now()-a.began;u(a,{type:"user"===b.role?"session.input_transcript.delta":"session.output_transcript.delta",delta:b.text,start_ms:c,end_ms:c});let d=a.talk.at(-1);d&&d.role===b.role&&!d.done?d.text+=b.text:a.talk.push({role:b.role,text:b.text,done:!1});return}case"turn":{let c=a.talk.findLast(a=>a.role===b.role&&!a.done);c?(c.text=b.text,c.done=!0):a.talk.push({role:b.role,text:b.text,done:!0});return}case"delegated":a.handed.push({id:b.id,text:b.text}),v(a);return;case"error":u(a,{type:"error",error:{message:b.message}});return;case"started":return}})(C,a),closed:a=>A(C,1e3===a?"remote_hangup":"connection_lost")}});try{C.id=await a.insertRow()}catch(a){throw C.wire.close(),a}return B.set(C.id,C),C.orphan=setTimeout(()=>{C.followed||A(C,"connection_lost")},f.LIVE_CALL.startupMs),u(C,{type:"session.started"}),{callId:C.id,sdp:y.sdp}}function u(a,b){let c={...b,offset_ms:Date.now()-a.began};a.followed?a.bus.emit(c):a.outbox.push(c)}async function v(a){if(!a.working){a.working=!0;try{for(let b=a.handed.shift();b&&!a.over;b=a.handed.shift())await x(a,b)}finally{a.working=!1}}}function w(a,b){let c=a.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">");if(Buffer.byteLength(c)<=f.PLAN_CALL.delegationBytes)return c;let d=f.PLAN_CALL.delegationBytes-Buffer.byteLength("…"),e=Array.from(c);"end"===b&&e.reverse();let g=[];for(let a of e){if((d-=Buffer.byteLength(a))<0)break;g.push(a)}return"end"===b&&g.reverse(),"start"===b?`${g.join("")}…`:`…${g.join("")}`}async function x(a,b){var c;let e,g;if(null===b.id&&!a.facts.length&&!a.pictures.length)return;let h=c=>null===b.id?a.wire.say(c,"speakable"):a.wire.answer(b.id,c,"speakable"),i=a.talk.splice(0).map(a=>`${a.role}: ${a.text}`).join("\n");null===b.id&&i&&a.messages.push({role:"system",content:`Said since you last worked, as the voice's side transcribed it:
|
|
47
|
+
<transcript_delta>${w(i,"end")}</transcript_delta>`}),y(a),null!==b.id&&a.messages.push({role:"user",content:(c=b.text,e=w(c||i,"start"),g=i?`
|
|
48
|
+
<transcript_delta>${w(i,"end")}</transcript_delta>`:"",`<realtime_delegation>
|
|
49
49
|
<input>${e}</input>${g}
|
|
50
|
-
</realtime_delegation>`)});for(let c=0;c<f.TEXT_CALL.maxSteps&&!a.over;c+=1){
|
|
50
|
+
</realtime_delegation>`)});for(let c=0;c<f.TEXT_CALL.maxSteps&&!a.over;c+=1){let c=`resp_${(0,d.randomUUID)()}`,e=d=>u(a,{type:"response.event",delegation_id:b.id,event:{response_id:c,...d}});e({type:"response.created",response:{id:c}});let f=await z(a,e);if(a.over)return;if("failed"in f){e({type:"response.failed",response:{id:c,error:{message:f.failed}}}),h(`That failed: ${f.failed}`);return}if(a.calling=f.calls.map(a=>a.toolCallId),e({type:"response.completed",response:{id:c}}),!f.calls.length){if(f.invalid){y(a);continue}f.text&&h(f.text);return}if(a.asked||await new Promise(b=>{a.next=b}),a.next=null,a.asked=!1,a.calling=[],a.over)return;for(let b of(a.messages.push({role:"tool",content:f.calls.map(b=>({type:"tool-result",toolCallId:b.toolCallId,toolName:b.toolName,output:{type:"text",value:a.outputs.get(b.toolCallId)??"No output came back."}}))}),f.calls))a.outputs.delete(b.toolCallId);y(a)}a.over||h("That failed: it ran out of steps before it had an answer.")}function y(a){var b;let c;for(let b of a.facts.splice(0))a.messages.push({role:"system",content:b});(c=(b=a).pictures.splice(0)).length&&b.messages.push({role:"user",content:c})}async function z(a,b){let c=new Map,f=new Map;try{let g=(0,e.streamText)({model:a.backend.model,instructions:a.backend.system,messages:a.messages,allowSystemInMessages:!0,tools:a.backend.tools,providerOptions:a.backend.providerOptions,abortSignal:a.stop.signal});for await(let a of g.fullStream)switch(a.type){case"reasoning-delta":c.set(a.id,(c.get(a.id)??"")+a.text);break;case"reasoning-end":{let d=c.get(a.id)?.trim();d&&b({type:"response.reasoning_summary_text.done",item_id:a.id,summary_index:0,text:d});break}case"tool-call":if(a.invalid&&!a.providerExecuted)break;b(a.providerExecuted?{type:"response.output_item.added",item:{type:"web_search_call",id:a.toolCallId,action:{}}}:{type:"response.output_item.done",item:{type:"function_call",id:a.toolCallId,call_id:a.toolCallId,name:a.toolName,arguments:JSON.stringify(a.input??{}),status:"completed"}});break;case"tool-result":a.providerExecuted&&b({type:"response.output_item.done",item:{type:"web_search_call",id:a.toolCallId,action:function(a){let{action:b,sources:c}=a??{};return{..."string"==typeof b?.query?{query:b.query}:{},...Array.isArray(b?.queries)?{queries:b.queries}:{},sources:(c??[]).flatMap(a=>"string"==typeof a?.url?[{url:a.url}]:[])}}(a.output)}});break;case"source":"url"!==a.sourceType||f.has(a.url)||f.set(a.url,{url:a.url,...a.title?{title:a.title}:{}});break;case"error":throw a.error}let[h,i,j]=await Promise.all([g.toolCalls,g.text,g.response]);f.size&&b({type:"response.output_item.done",item:{type:"message",id:`msg_${(0,d.randomUUID)()}`,content:[{type:"output_text",annotations:[...f.values()].map(a=>({type:"url_citation",...a}))}]}}),a.messages.push(...j.messages);let k=h.filter(a=>!a.providerExecuted);return{calls:k.filter(a=>!a.invalid),invalid:k.some(a=>a.invalid),text:i.trim()}}catch(b){if(a.over)return{failed:"The call ended."};return q.logger.warn({cause:b},"plan call backend step failed"),{failed:(0,j.modelErrorToString)(b)}}}function A(a,b){a.over||(a.over=!0,clearTimeout(a.orphan),a.stop.abort(),a.next?.(),a.wire.close(),B.delete(a.id),u(a,{type:"session.closed",reason:b}))}a.s(["openPlanLine",0,t,"planRelayOf",0,a=>`/api/thursday/call/plan?call=${encodeURIComponent(a)}`]),c()}catch(a){c(a)}},!1)];
|
|
51
51
|
|
|
52
|
-
//# sourceMappingURL=%5Broot-of-the-server%
|
|
52
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__17yeveo._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[589578,a=>{a.v({className:"geist_a71539c9-module__T19VSG__className",variable:"geist_a71539c9-module__T19VSG__variable"})},435214,a=>{a.v({className:"geist_mono_8d43a2aa-module__8Li5zG__className",variable:"geist_mono_8d43a2aa-module__8Li5zG__variable"})},233290,a=>{"use strict";var b=a.i(907997),c=a.i(589578);let d={className:c.default.className,style:{fontFamily:"'Geist', 'Geist Fallback'",fontStyle:"normal"}};null!=c.default.variable&&(d.variable=c.default.variable);var e=a.i(435214);let f={className:e.default.className,style:{fontFamily:"'Geist Mono', 'Geist Mono Fallback'",fontStyle:"normal"}};null!=e.default.variable&&(f.variable=e.default.variable);var g=a.i(371618),h=a.i(322950),i=a.i(996266),j=a.i(569572);let k=`(function(){try{var t=localStorage.getItem(${JSON.stringify("thursday.theme")});var d=t==="dark"||(t!=="light"&&matchMedia("(prefers-color-scheme: dark)").matches);var h=document.documentElement;h.classList.toggle("dark",d);h.style.colorScheme=d?"dark":"light"}catch(e){}})();`,l={title:j.APP_NAME,description:`${j.APP_NAME} is a voice agent that runs on your own computer and hands the slow work to bots.`};a.s(["default",0,function({children:a}){return(0,b.jsx)("html",{lang:"en",suppressHydrationWarning:!0,className:`${d.variable} ${f.variable} h-full antialiased`,children:(0,b.jsxs)("body",{className:"h-screen w-full flex flex-col",children:[(0,b.jsx)(g.default,{id:"theme-boot",strategy:"beforeInteractive",children:k}),(0,b.jsx)(h.ThemeSync,{}),a,(0,b.jsx)(i.Toaster,{})]})})},"metadata",0,l],233290)},70864,function(a){a.n(a.i(233290))},265728,a=>{"use strict";a.s(["ThemeSync",()=>b]);let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call ThemeSync() from the server but ThemeSync is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/theme-sync.tsx","ThemeSync")},322950,a=>{"use strict";var b=a.i(265728);a.n(b)},502807,a=>{"use strict";a.s(["Toast",()=>c,"ToastAction",()=>d,"ToastClose",()=>e,"ToastContent",()=>f,"ToastDescription",()=>g,"ToastPortal",()=>h,"ToastProvider",()=>i,"ToastTitle",()=>j,"ToastViewport",()=>k,"Toaster",()=>l,"createToastManager",()=>m,"toast",()=>n,"useToastManager",()=>o]);var b=a.i(211857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call Toast() from the server but Toast is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","Toast"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastAction() from the server but ToastAction is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastAction"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastClose() from the server but ToastClose is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastClose"),f=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastContent() from the server but ToastContent is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastContent"),g=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastDescription() from the server but ToastDescription is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastDescription"),h=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastPortal() from the server but ToastPortal is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastPortal"),i=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastProvider() from the server but ToastProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastProvider"),j=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastTitle() from the server but ToastTitle is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastTitle"),k=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastViewport() from the server but ToastViewport is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastViewport"),l=(0,b.registerClientReference)(function(){throw Error("Attempted to call Toaster() from the server but Toaster is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","Toaster"),m=(0,b.registerClientReference)(function(){throw Error("Attempted to call createToastManager() from the server but createToastManager is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","createToastManager"),n=(0,b.registerClientReference)(function(){throw Error("Attempted to call toast() from the server but toast is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","toast"),o=(0,b.registerClientReference)(function(){throw Error("Attempted to call useToastManager() from the server but useToastManager is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","useToastManager")},996266,a=>{"use strict";var b=a.i(502807);a.n(b)},569572,a=>{"use strict";let b=process.env.THURSDAY_APP_DIR?.trim()||process.cwd(),c=process.env.THURSDAY_HOME?.trim()||process.cwd(),d=process.env.THURSDAY_URL?.trim()||`http://localhost:${process.env.PORT?.trim()||3e3}`,e=`${c}/local.db`,f=`file:${e}`,g=`${c}/.env`,h=".ai-workspace",i={workspace:h,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",signIns:".sign-ins",skills:{default:"skills",custom:`${h}/.agents/skills`,own:".agents/skills",runtime:"runtime",seeds:"seed-skills"}},j="artifact";a.s(["APP_DIR",0,b,"APP_NAME",0,"Thursday","APP_URL",0,d,"ARTIFACT_SKILL",0,j,"BOT_MEMORY_LIMITS",0,{files:20,chars:1e4},"BOT_ROSTER",0,{max:14},"BOT_RUN",0,{steps:100,compactAt:5e5,compactHeadroom:.8,summaryWords:{min:600,max:3e3,perTokens:200},participants:8,concurrent:8,turns:120,queuedMessages:200,silenceMs:3e5,overflowShrink:.6,retryMs:1e4,compactFiles:40},"BOT_WORK",0,{open:5,recent:5,said:80,files:2,reads:2,asked:400,readChars:4e3},"BROWSER_CLI",0,{readMs:15e3,loadMs:3e4},"BROWSER_GONE_MS",0,1e4,"BROWSER_VIEWPORT",0,"700x700","CALL_EXEC_TIMEOUT_MS",0,15e3,"CALL_RELAY",0,{quietMs:2e3,perTurn:3,readMs:15e3,chars:600},"CATALOG_MS",0,6e5,"CHATGPT_SIGN_IN",0,{waitMs:6e5,renewBeforeMs:3e5},"COMMON_VALIDATE",0,{name:{max:16},shortDescription:{max:60},description:{max:100},prompt:{max:4e3}},"CONNECTED_TOOL_TIMEOUT_MS",0,6e5,"DATA_DIR",0,c,"DB_FILE_NAME",0,f,"DB_PATH",0,e,"DECK",0,{slides:30,shotsMs:9e4},"ENV_PATH",0,g,"EXEC_KILL_GRACE_MS",0,5e3,"EXEC_TIMEOUT_MS",0,18e4,"FINISHED_NOTICE",0,{rows:5,shown:1,words:240},"FULL_RESULT_LINES",0,400,"GIVEN_FILES",0,{dir:"inbox",maxBytes:0x1900000,perMessage:8},"INBOX_FINISHED",0,5,"IS_DEV",0,!1,"JOB_FOLDER_WALK",0,500,"KEY_MIN",0,8,"LIVE_CALL",0,{startupMs:3e4,closeMs:15e3,transcriptGapMs:1500,transcriptSaveMs:500,appendMs:15e3,backendOutputTokens:4096,reasoningCheckMs:5e3,keyCheckMs:5e3,openingHoldMs:3e3},"LOOK",0,{maxBytes:4194304},"MARKETING_SKILL",0,"marketing","MAX_PINNED_TOOLS",0,10,"MCP_IDLE_MS",0,18e5,"MEMORY_LIMITS",0,{facts:400,factsPerNote:50,descriptionChars:100},"PATHS",0,i,"PLAN_CALL",0,{delegationBytes:4096,pictureBytes:262144},"PROMPT_BUDGET",0,6e3,"PROMPT_LINE",0,{skill:90,toolArgs:30,jobOutcome:160,botMemory:100,threadStatus:200,routineRequest:300,routineOutcome:200,boardAsk:100},"REACH",0,{pollSeconds:50,retryMs:5e3,idleMs:6e5,messages:40,trimTo:30,oldChars:1e3,files:3,fileBytes:0x2d00000,rateRetries:3,rateWaitMs:3e4,codeDigits:4,held:5,pictures:9,drawMs:6e4,lookMs:2e3},"RECENT_CALL",0,{rows:20,tokens:600},"ROUTINE",0,{tickMs:3e4,max:12,minHours:1,runsShown:5},"SEARCH",0,{sources:3,excerptChars:1200,timeoutMs:3e4},"SIGNAL_PACE_MS",0,150,"SKILLS_FOLDED",0,{design:j,"picture-book":j,"interactive-page":j},"SKILL_FILES",0,{uploadBytes:0x1400000,inlineBytes:524288,unpackedBytes:0x6400000,archiveEntries:1e3},"SKILL_FILES_LISTED",0,50,"STUDIO_SERVER",0,"studio","TEXT_CALL",0,{maxSteps:12,model:"text",autoTurns:10},"THREAD_LABEL_REACH",0,20,"THREAD_STATUS_LIMIT",0,10,"TOOL_OUTPUT",0,{max:8e3,head:5500,tail:1500},"TOOL_SEARCH_SCHEMAS",0,8,"TRAVEL_SKILL",0,"travel","WORKSPACE_KEEP",0,{forMs:2592e5,sweepEveryMs:36e5},"WORKSPACE_VIEW",0,{rows:200,textMax:524288,autoCloseMs:5e3,elementMax:0x3200000}])},944536,(a,b,c)=>{let{createClientModuleProxy:d}=a.r(211857);a.n(d("[project]/node_modules/next/dist/client/script.js"))},411153,a=>{"use strict";var b=a.i(944536);a.n(b)},371618,(a,b,c)=>{b.exports=a.r(411153)}];
|
|
1
|
+
module.exports=[589578,a=>{a.v({className:"geist_a71539c9-module__T19VSG__className",variable:"geist_a71539c9-module__T19VSG__variable"})},435214,a=>{a.v({className:"geist_mono_8d43a2aa-module__8Li5zG__className",variable:"geist_mono_8d43a2aa-module__8Li5zG__variable"})},233290,a=>{"use strict";var b=a.i(907997),c=a.i(589578);let d={className:c.default.className,style:{fontFamily:"'Geist', 'Geist Fallback'",fontStyle:"normal"}};null!=c.default.variable&&(d.variable=c.default.variable);var e=a.i(435214);let f={className:e.default.className,style:{fontFamily:"'Geist Mono', 'Geist Mono Fallback'",fontStyle:"normal"}};null!=e.default.variable&&(f.variable=e.default.variable);var g=a.i(371618),h=a.i(322950),i=a.i(996266),j=a.i(569572);let k=`(function(){try{var t=localStorage.getItem(${JSON.stringify("thursday.theme")})||${JSON.stringify("light")};var d=t==="dark"||(t==="system"&&matchMedia("(prefers-color-scheme: dark)").matches);var h=document.documentElement;h.classList.toggle("dark",d);h.style.colorScheme=d?"dark":"light"}catch(e){}})();`,l={title:j.APP_NAME,description:`${j.APP_NAME} is a voice agent that runs on your own computer and hands the slow work to bots.`};a.s(["default",0,function({children:a}){return(0,b.jsx)("html",{lang:"en",suppressHydrationWarning:!0,className:`${d.variable} ${f.variable} h-full antialiased`,children:(0,b.jsxs)("body",{className:"h-screen w-full flex flex-col",children:[(0,b.jsx)(g.default,{id:"theme-boot",strategy:"beforeInteractive",children:k}),(0,b.jsx)(h.ThemeSync,{}),a,(0,b.jsx)(i.Toaster,{})]})})},"metadata",0,l],233290)},70864,function(a){a.n(a.i(233290))},265728,a=>{"use strict";a.s(["ThemeSync",()=>b]);let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call ThemeSync() from the server but ThemeSync is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/theme-sync.tsx","ThemeSync")},322950,a=>{"use strict";var b=a.i(265728);a.n(b)},502807,a=>{"use strict";a.s(["Toast",()=>c,"ToastAction",()=>d,"ToastClose",()=>e,"ToastContent",()=>f,"ToastDescription",()=>g,"ToastPortal",()=>h,"ToastProvider",()=>i,"ToastTitle",()=>j,"ToastViewport",()=>k,"Toaster",()=>l,"createToastManager",()=>m,"toast",()=>n,"useToastManager",()=>o]);var b=a.i(211857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call Toast() from the server but Toast is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","Toast"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastAction() from the server but ToastAction is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastAction"),e=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastClose() from the server but ToastClose is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastClose"),f=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastContent() from the server but ToastContent is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastContent"),g=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastDescription() from the server but ToastDescription is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastDescription"),h=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastPortal() from the server but ToastPortal is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastPortal"),i=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastProvider() from the server but ToastProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastProvider"),j=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastTitle() from the server but ToastTitle is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastTitle"),k=(0,b.registerClientReference)(function(){throw Error("Attempted to call ToastViewport() from the server but ToastViewport is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","ToastViewport"),l=(0,b.registerClientReference)(function(){throw Error("Attempted to call Toaster() from the server but Toaster is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","Toaster"),m=(0,b.registerClientReference)(function(){throw Error("Attempted to call createToastManager() from the server but createToastManager is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","createToastManager"),n=(0,b.registerClientReference)(function(){throw Error("Attempted to call toast() from the server but toast is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","toast"),o=(0,b.registerClientReference)(function(){throw Error("Attempted to call useToastManager() from the server but useToastManager is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui/toast.tsx","useToastManager")},996266,a=>{"use strict";var b=a.i(502807);a.n(b)},569572,a=>{"use strict";let b=process.env.THURSDAY_APP_DIR?.trim()||process.cwd(),c=process.env.THURSDAY_HOME?.trim()||process.cwd(),d=process.env.THURSDAY_URL?.trim()||`http://localhost:${process.env.PORT?.trim()||3e3}`,e=`${c}/local.db`,f=`file:${e}`,g=`${c}/.env`,h=".ai-workspace",i={workspace:h,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",signIns:".sign-ins",skills:{default:"skills",custom:`${h}/.agents/skills`,own:".agents/skills",runtime:"runtime",seeds:"seed-skills"}},j="artifact";a.s(["APP_DIR",0,b,"APP_NAME",0,"Thursday","APP_URL",0,d,"ARTIFACT_SKILL",0,j,"BOT_MEMORY_LIMITS",0,{files:20,chars:1e4},"BOT_ROSTER",0,{max:14},"BOT_RUN",0,{steps:100,compactAt:5e5,compactHeadroom:.8,summaryWords:{min:600,max:3e3,perTokens:200},participants:8,concurrent:8,turns:120,queuedMessages:200,silenceMs:3e5,overflowShrink:.6,retryMs:1e4,compactFiles:40},"BOT_WORK",0,{open:5,recent:5,said:80,files:2,reads:2,asked:400,readChars:4e3},"BROWSER_CLI",0,{readMs:15e3,loadMs:3e4},"BROWSER_GONE_MS",0,1e4,"BROWSER_VIEWPORT",0,"700x700","CALL_EXEC_TIMEOUT_MS",0,15e3,"CALL_RELAY",0,{quietMs:2e3,perTurn:3,readMs:15e3,chars:600},"CATALOG_MS",0,6e5,"CHATGPT_SIGN_IN",0,{waitMs:6e5,renewBeforeMs:3e5},"COMMON_VALIDATE",0,{name:{max:16},shortDescription:{max:60},description:{max:100},prompt:{max:4e3}},"CONNECTED_TOOL_TIMEOUT_MS",0,6e5,"DATA_DIR",0,c,"DB_FILE_NAME",0,f,"DB_PATH",0,e,"DECK",0,{slides:30,shotsMs:9e4},"ENV_PATH",0,g,"EXEC_KILL_GRACE_MS",0,5e3,"EXEC_TIMEOUT_MS",0,18e4,"FINISHED_NOTICE",0,{rows:5,shown:1,words:240},"FULL_RESULT_LINES",0,400,"GIVEN_FILES",0,{dir:"inbox",maxBytes:0x1900000,perMessage:8},"INBOX_FINISHED",0,5,"IS_DEV",0,!1,"JOB_FOLDER_WALK",0,500,"KEY_MIN",0,8,"LIVE_CALL",0,{startupMs:3e4,closeMs:15e3,transcriptGapMs:1500,transcriptSaveMs:500,appendMs:15e3,backendOutputTokens:4096,reasoningCheckMs:5e3,keyCheckMs:5e3,openingHoldMs:3e3},"LOOK",0,{maxBytes:4194304,perRequest:0xc00000},"MARKETING_SKILL",0,"marketing","MAX_PINNED_TOOLS",0,10,"MCP_IDLE_MS",0,18e5,"MEMORY_LIMITS",0,{facts:400,factsPerNote:50,descriptionChars:100},"PATHS",0,i,"PLAN_CALL",0,{delegationBytes:4096,pictureBytes:262144},"PROMPT_BUDGET",0,6e3,"PROMPT_LINE",0,{skill:90,toolArgs:30,jobOutcome:160,botMemory:100,threadStatus:200,routineRequest:300,routineOutcome:200,boardAsk:100},"REACH",0,{pollSeconds:50,retryMs:5e3,idleMs:6e5,messages:40,trimTo:30,oldChars:1e3,files:3,fileBytes:0x2d00000,rateRetries:3,rateWaitMs:3e4,codeDigits:4,held:5,pictures:9,drawMs:6e4,lookMs:2e3},"RECENT_CALL",0,{rows:20,tokens:600},"ROUTINE",0,{tickMs:3e4,max:12,minHours:1,runsShown:5},"SEARCH",0,{sources:3,excerptChars:1200,timeoutMs:3e4},"SEED_KITS_RENAMED",0,{marketer:"writer"},"SIGNAL_PACE_MS",0,150,"SKILLS_FOLDED",0,{design:j,"picture-book":j,"interactive-page":j},"SKILL_FILES",0,{uploadBytes:0x1400000,inlineBytes:524288,unpackedBytes:0x6400000,archiveEntries:1e3},"SKILL_FILES_LISTED",0,50,"STUDIO_SERVER",0,"studio","TEXT_CALL",0,{maxSteps:12,model:"text",autoTurns:10},"THREAD_LABEL_REACH",0,20,"THREAD_STATUS_LIMIT",0,10,"TOOL_OUTPUT",0,{max:8e3,head:5500,tail:1500},"TOOL_SEARCH_SCHEMAS",0,8,"TRAVEL_SKILL",0,"travel","WORKSPACE_KEEP",0,{forMs:2592e5,sweepEveryMs:36e5},"WORKSPACE_VIEW",0,{rows:200,textMax:524288,autoCloseMs:5e3,elementMax:0x3200000}])},944536,(a,b,c)=>{let{createClientModuleProxy:d}=a.r(211857);a.n(d("[project]/node_modules/next/dist/client/script.js"))},411153,a=>{"use strict";var b=a.i(944536);a.n(b)},371618,(a,b,c)=>{b.exports=a.r(411153)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__1867koj._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[193695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},773791,a=>{"use strict";a.s(["AppEventSource",()=>c,"useAppEvent",()=>d]);var b=a.i(211857);let c=(0,b.registerClientReference)(function(){throw Error("Attempted to call AppEventSource() from the server but AppEventSource is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/app/api/events/app-event.client.ts","AppEventSource"),d=(0,b.registerClientReference)(function(){throw Error("Attempted to call useAppEvent() from the server but useAppEvent is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/app/api/events/app-event.client.ts","useAppEvent")},33795,a=>{"use strict";var b=a.i(773791);a.n(b)},326758,a=>{a.v("/_next/static/media/favicon.37o1pjldwi2uc.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},438872,a=>{"use strict";let b={src:a.i(326758).default,width:48,height:48};a.s(["default",0,b])},50708,a=>a.a(async(b,c)=>{try{var d=a.i(907997),e=a.i(33795),f=a.i(725466),g=a.i(84389),h=a.i(756984),i=a.i(180112),j=a.i(811368),k=a.i(587370),l=a.i(569549),m=b([f,h,l]);async function n({searchParams:a}){let{intro:b}=await a,[c,m,o]=await Promise.all([(0,f.isCallable)(),(0,l.hasAnyCall)(),(0,h.hasPassedIntro)()]);return(0,d.jsxs)("div",{className:"h-full min-h-0 flex-1",children:[(0,d.jsx)(k.Thursday,{ready:c}),(0,d.jsx)(g.Intro,{ready:c,firstRun:!m&&!o,forced:void 0!==b}),(0,d.jsx)(i.ReachAsk,{}),(0,d.jsx)(j.Boot,{}),(0,d.jsx)(e.AppEventSource,{})]})}[f,h,l]=m.then?(await m)():m,a.s(["default",0,n]),c()}catch(a){c(a)}},!1),826030,function(a){a.n(a.i(50708))},982616,a=>{"use strict";a.s(["Intro",()=>b]);let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call Intro() from the server but Intro is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/intro/components/intro.tsx","Intro")},84389,a=>{"use strict";var b=a.i(982616);a.n(b)},663137,a=>{"use strict";a.s(["ReachAsk",()=>b]);let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call ReachAsk() from the server but ReachAsk is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/reach/components/reach-ask.tsx","ReachAsk")},180112,a=>{"use strict";var b=a.i(663137);a.n(b)},128756,a=>{"use strict";a.s(["Boot",()=>b]);let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call Boot() from the server but Boot is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/thursday/components/boot.tsx","Boot")},811368,a=>{"use strict";var b=a.i(128756);a.n(b)},588694,a=>{"use strict";a.s(["Thursday",()=>b]);let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call Thursday() from the server but Thursday is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/features/thursday/components/thursday.tsx","Thursday")},587370,a=>{"use strict";var b=a.i(588694);a.n(b)},651717,a=>{"use strict";var b=a.i(612948),c=a.i(167436),d=a.i(594331);a.i(670408);let e=(0,b.instrumentModuleGetter)(()=>a.r(438872)),f=(0,b.instrumentModuleGetter)(()=>a.r(70864)),g=(0,b.instrumentModuleGetter)(()=>a.r(43619)),h=(0,b.instrumentModuleGetter)(()=>a.r(13718)),i=(0,b.instrumentModuleGetter)(()=>a.r(118198)),j=(0,b.instrumentModuleGetter)(()=>a.r(262212)),k=["",{children:["__PAGE__",{},{metadata:{},page:[(0,b.instrumentModuleGetter)(()=>a.r(826030)),"[project]/app/page.tsx"]},[]]},{metadata:{icon:[async()=>{let a=(0,d.interopDefault)(await e());return[{url:`/favicon.ico?${a.src.split("/").splice(-1)[0]}`,sizes:`${a.width}x${a.height}`,type:"image/x-icon"}]}],manifest:"/manifest.webmanifest"},layout:[f,"[project]/app/layout.tsx"],"not-found":[g,"[project]/node_modules/next/dist/client/components/builtin/not-found.js"],forbidden:[h,"[project]/node_modules/next/dist/client/components/builtin/forbidden.js"],unauthorized:[i,"[project]/node_modules/next/dist/client/components/builtin/unauthorized.js"],"global-error":[j,"[project]/node_modules/next/dist/client/components/builtin/global-error.js"]},[]],l=a.r.bind(a),m=a.l.bind(a),n=(0,c.createAppPageEntrypoint)({tree:k,page:"/page",pathname:"/",require:l,loadChunk:m,interopDefault:d.interopDefault}),o=n.__next_app__,p=n.routeModule,q=n.handler;a.s(["__next_app__",0,o,"handler",0,q,"routeModule",0,p],583385),a.i(583385);var r=a.i(722922);a.s(["ClientPageRoot",()=>r.ClientPageRoot,"ClientSegmentRoot",()=>r.ClientSegmentRoot,"Fragment",()=>r.Fragment,"HTTPAccessFallbackBoundary",()=>r.HTTPAccessFallbackBoundary,"InstantValidation",()=>r.InstantValidation,"LayoutRouter",()=>r.LayoutRouter,"LoadingBoundaryProvider",()=>r.LoadingBoundaryProvider,"Postpone",()=>r.Postpone,"RenderFromTemplateContext",()=>r.RenderFromTemplateContext,"RootLayoutBoundary",()=>r.RootLayoutBoundary,"SegmentViewNode",()=>r.SegmentViewNode,"SegmentViewStateNode",()=>r.SegmentViewStateNode,"__next_app__",0,o,"captureOwnerStack",()=>r.captureOwnerStack,"collectPrefetchHints",()=>r.collectPrefetchHints,"collectSegmentData",()=>r.collectSegmentData,"createElement",()=>r.createElement,"createMetadataComponents",()=>r.createMetadataComponents,"createPrerenderParamsForClientSegment",()=>r.createPrerenderParamsForClientSegment,"createPrerenderSearchParamsForClientPage",()=>r.createPrerenderSearchParamsForClientPage,"createServerParamsForServerSegment",()=>r.createServerParamsForServerSegment,"createServerSearchParamsForServerPage",()=>r.createServerSearchParamsForServerPage,"createTemporaryReferenceSet",()=>r.createTemporaryReferenceSet,"decodeAction",()=>r.decodeAction,"decodeFormState",()=>r.decodeFormState,"decodeReply",()=>r.decodeReply,"handler",0,q,"isEmptyHTMLPrelude",()=>r.isEmptyHTMLPrelude,"patchFetch",()=>r.patchFetch,"preconnect",()=>r.preconnect,"preloadFont",()=>r.preloadFont,"preloadStyle",()=>r.preloadStyle,"prerender",()=>r.prerender,"prerenderToNodeStream",()=>r.prerenderToNodeStream,"renderToPipeableStream",()=>r.renderToPipeableStream,"renderToReadableStream",()=>r.renderToReadableStream,"routeModule",0,p,"serverHooks",()=>r.serverHooks,"taintObjectReference",()=>r.taintObjectReference],651717)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__1t38-p_._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[750227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},59639,(a,b,c)=>{b.exports=a.x("node:process",()=>require("node:process"))},986368,a=>{"use strict";let b;var c=a.i(572131),d=a.i(767561);let e=(b=new Set,{emit(a){for(let c of[...b])try{c(a)}catch(a){console.error("event listener failed",a)}},subscribe:a=>(b.add(a),()=>{b.delete(a)})});a.s(["AppEventSource",0,function(){return(0,c.useEffect)(()=>{var a;let b,c,f,g,h;return a=d.queryKey.events,b=null,c=null,f=1e3,g=!1,(h=()=>{let d=new EventSource(a);b=d,d.onopen=()=>{f=1e3},d.onmessage=a=>{let b;try{b=JSON.parse(a.data)}catch{return}e.emit(b)},d.onerror=()=>{g||d.readyState!==EventSource.CLOSED||(d.close(),c&&clearTimeout(c),c=setTimeout(h,f),f=Math.min(2*f,8e3))}})(),()=>{g=!0,c&&clearTimeout(c),b?.close()}},[]),null},"useAppEvent",0,function(a){let b;b=(0,c.useRef)(a),(0,c.useEffect)(()=>{b.current=a}),(0,c.useEffect)(()=>e.subscribe(a=>{let c;return c=b.current[a.type],void c?.(a)}),[e])}],986368)},287702,a=>{"use strict";process.env.THURSDAY_APP_DIR?.trim()||process.cwd(),process.env.THURSDAY_HOME?.trim()||process.cwd(),process.env.THURSDAY_URL?.trim()||process.env.PORT?.trim();let b=".ai-workspace",c={workspace:b,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",signIns:".sign-ins",skills:{default:"skills",custom:`${b}/.agents/skills`,own:".agents/skills",runtime:"runtime",seeds:"seed-skills"}};a.s(["APP_NAME",0,"Thursday","ARTIFACT_SKILL",0,"artifact","ARTIFACT_VIEW",0,{rows:200,setFiles:120},"ASCII_FACE",0,{fontSize:8,density:1.4,fps:30},"BOT_ROSTER",0,{max:14},"BOT_RUN",0,{steps:100,compactAt:5e5,compactHeadroom:.8,summaryWords:{min:600,max:3e3,perTokens:200},participants:8,concurrent:8,turns:120,queuedMessages:200,silenceMs:3e5,overflowShrink:.6,retryMs:1e4,compactFiles:40},"CALL_BACK",0,{ringMs:3e4},"CALL_END",0,{quietMs:600,unsaidMs:2e3,maxMs:8e3},"CALL_ENDED_MS",0,12e3,"CALL_HISTORY_PAGE",0,10,"CALL_IDLE",0,{hangUpMs:25e3,warnMs:1e4},"CALL_LINE",0,{dwellMs:2e3,lingerMs:2500,relayLingerMs:5e3,thinkingTailMs:6e3},"CALL_PAGE",0,{scrollback:24,saveFailures:3},"CALL_PICTURE",0,{longestSide:1600,qualities:[.8,.6,.45],scales:[1,.75,.5,.35]},"CALL_RELAY",0,{quietMs:2e3,perTurn:3,readMs:15e3,chars:600},"CHATGPT_SIGN_IN",0,{waitMs:6e5,renewBeforeMs:3e5},"COMMON_VALIDATE",0,{name:{max:16},shortDescription:{max:60},description:{max:100},prompt:{max:4e3}},"DRAW_PAD",0,{longestSide:1024},"FILE_THUMB",0,{pageWidth:1024,textWidth:512,textBytes:4096,pages:2,imageWidth:384,cacheSeconds:300},"FINISHED_NOTICE",0,{rows:5,shown:1,words:240},"GIVEN_FILES",0,{dir:"inbox",maxBytes:0x1900000,perMessage:8},"HERE",0,{waitMs:3e3,keptMs:18e5,holdMs:2550,globeFps:24,windyKmh:50,stormKmh:90,coastDeg:1.2},"INBOX_POLL_MS",0,3e4,"IS_DEV",0,!1,"KEY_MIN",0,8,"LIVE_CALL",0,{startupMs:3e4,closeMs:15e3,transcriptGapMs:1500,transcriptSaveMs:500,appendMs:15e3,backendOutputTokens:4096,reasoningCheckMs:5e3,keyCheckMs:5e3,openingHoldMs:3e3},"MARKETING_SKILL",0,"marketing","MAX_PINNED_TOOLS",0,10,"MEMORY_LIMITS",0,{facts:400,factsPerNote:50,descriptionChars:100},"PAGE_DRAFTS",0,{perFile:8,chars:1e6},"PAGE_SIZE",0,50,"PATHS",0,c,"PLAN_CALL",0,{delegationBytes:4096,pictureBytes:262144},"PROMPT_CROWDED",0,{bots:10,skills:20},"ROUTINE",0,{tickMs:3e4,max:12,minHours:1,runsShown:5},"SKILL_FILES",0,{uploadBytes:0x1400000,inlineBytes:524288,unpackedBytes:0x6400000,archiveEntries:1e3},"STUDIO_SERVER",0,"studio","TEXT_CALL",0,{maxSteps:12,model:"text",autoTurns:10},"TRAVEL_SKILL",0,"travel","WAKE_TOLERANCE",0,.34,"WORKSPACE_VIEW",0,{rows:200,textMax:524288,autoCloseMs:5e3,elementMax:0x3200000}])},282384,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7f329c6ce9546b9bbe43207116dfc1130f75e5a292",b.callServer,void 0,b.findSourceMapURL,"setSignInBotAction");a.s(["setSignInBotAction",0,c])},332033,a=>{"use strict";var b=a.i(572131);let c=["ctrl","alt","meta"],d=/^(Control|Alt|Shift|Meta|OS)/,e=/^(input|textarea|select)$/i,f=a=>!!a&&!!(e.test(a.tagName)||a.isContentEditable||a.closest?.("[data-hotkey-capture]")),g=a=>{let b="nativeEvent"in a?a.nativeEvent:a;return b.isComposing||229===b.keyCode},h=[],i=a=>{if("Escape"!==a.key||a.defaultPrevented||g(a))return;let b=h.at(-1);b&&(a.preventDefault(),b.current())};function j(a){let{code:b,ctrlKey:c,altKey:e,shiftKey:f,metaKey:g}=a;if(!b||d.test(b)||!c&&!e&&!g)return null;let h=[];return c&&h.push("ctrl"),e&&h.push("alt"),f&&h.push("shift"),g&&h.push("meta"),[...h,b].join("+")}let k={ctrl:["Ctrl","⌃"],alt:["Alt","⌥"],shift:["Shift","⇧"],meta:["Meta","⌘"]};function l(a,b=!1){let c=a.split("+"),d=c.at(-1)??"",e=c.slice(0,-1).map(a=>k[a]?.[+!!b]??a),f=d.replace(/^(Key|Digit|Numpad)/,"").replace(/([a-z])([A-Z])/g,"$1 $2")||d;return b?[...e,f].join(""):[...e,f].join(" + ")}a.s(["HOTKEY_CAPTURE",0,{"data-hotkey-capture":""},"capturesKeys",0,f,"comboOf",0,j,"composing",0,g,"isCombo",0,a=>{let b=a.split("+"),e=b.at(-1);return!!(e&&!d.test(e)&&b.slice(0,-1).some(a=>c.includes(a)))},"typed",0,(a,b)=>a.key===b&&!a.metaKey&&(a.altKey||!a.ctrlKey),"useCommandLabel",0,function(a,c=!1){let[d,e]=(0,b.useState)(!1);return(0,b.useEffect)(()=>e(/mac/i.test(navigator.userAgent)),[]),l([...(d?["shift","meta"]:["ctrl","shift"]).filter(a=>c||"shift"!==a),a].join("+"),d)},"useEscape",0,function(a,c){let d=(0,b.useRef)(c);d.current=c,(0,b.useEffect)(()=>{if(a)return h.push(d),1===h.length&&window.addEventListener("keydown",i),()=>{h.splice(h.indexOf(d),1),h.length||window.removeEventListener("keydown",i)}},[a])},"useHotkey",0,function({enabled:a,combo:c,onPress:d}){let e=(0,b.useRef)(d);e.current=d,(0,b.useEffect)(()=>{if(!a||!c)return;let b=a=>{a.repeat||f(a.target)||j(a)===c&&(a.preventDefault(),e.current())};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[a,c])},"useHotkeyLabel",0,function(a){let[c,d]=(0,b.useState)(!1);return(0,b.useEffect)(()=>d(/mac/i.test(navigator.userAgent)),[]),a?l(a,c):null},"windowKey",0,a=>!a.defaultPrevented&&!g(a)&&!f(a.target)&&!a.target?.closest?.('[role="dialog"]')])},483253,a=>{"use strict";let b=[1,3,5,8,13,21,34,55,90],c=[1,1.1,1.25,1.45,1.7,2,2.4,2.9],d=c.length,e=Array(d).fill(0);function f(a,e,f){a.getByteFrequencyData(e);for(let a=0;a<d;a++){let d=0,g=b[a],h=Math.min(b[a+1],e.length);for(let a=g;a<h;a++)d+=e[a];let i=h>g?d/(h-g)/255:0;f[a]=Math.min(1,i*c[a])}return f}a.s(["SPECTRUM_BANDS",0,d,"createAudioTap",0,function(){let a=new Audio;a.autoplay=!0;let b=null,c=null,g=new Uint8Array(0),h=null,i=Array(d).fill(0),j=null,k=new Uint8Array(0),l=null,m=Array(d).fill(0),n=new Uint8Array(512);function o(){if(b&&c)return{context:b,analyser:c};let a=new AudioContext,d=a.createAnalyser();return d.fftSize=512,d.smoothingTimeConstant=.55,g=new Uint8Array(d.frequencyBinCount),a.resume().catch(()=>{}),b=a,c=d,{context:a,analyser:d}}return{element:a,open:o,levels:()=>{var a;return{output:(a=c)?(a.getByteTimeDomainData(n),Math.sqrt(n.reduce((a,b)=>a+((b-128)/128)**2,0)/n.length)):0}},listen(a){if(h?.mediaStream===a)return;h?.disconnect();let b=o();(h=b.context.createMediaStreamSource(a)).connect(b.analyser),b.context.resume()},hear(a){if(l?.mediaStream===a)return;l?.disconnect();let b=o();j||((j=b.context.createAnalyser()).fftSize=512,j.smoothingTimeConstant=.6,k=new Uint8Array(j.frequencyBinCount)),(l=b.context.createMediaStreamSource(a)).connect(j),b.context.resume()},read:()=>c?f(c,g,i):e,readMic:()=>j?f(j,k,m):e}},"createClipTap",0,function(a){let b=new AudioContext,c=b.createAnalyser();c.fftSize=512,c.smoothingTimeConstant=.55;let e=new Uint8Array(c.frequencyBinCount),g=Array(d).fill(0);return b.createMediaElementSource(a).connect(c),c.connect(b.destination),{resume:()=>b.resume().catch(()=>{}),read:()=>f(c,e,g),close:()=>b.close().catch(()=>{})}},"createVoiceFollower",0,function(){let a=Array(d).fill(0),b=Array(d).fill(0),c={level:0,phrase:0,onset:0,bands:Array(d).fill(0)},e=0,f=0,g=1/0,h=(a,b,c,d)=>a+(b-a)*Math.min(1,d/c);return{read(i,j){let k=0,l=0,m=0;for(let e=0;e<d;e++){let d=i[e]??0;k+=d,a[e]=h(a[e],d,d>a[e]?.03:2.5,j),b[e]=h(b[e],d,d<b[e]?.12:3,j);let f=a[e]-b[e],g=f>.12?Math.min(1,Math.max(0,(d-b[e])/f)):0;c.bands[e]=g,f>.12&&(l+=g,m++)}let n=Math.min(1,Math.max(0,(k/d-.06)/.14)),o=n*n*(3-2*n);for(let a=0;a<d;a++)c.bands[a]*=o;return c.level=(m?l/m:0)*o,e=h(e,c.level,.05,j),f=h(f,c.level,.22,j),c.phrase=h(c.phrase,c.level,.45,j),g+=j,c.onset=0,e>f+.1&&e>.3&&g>.12&&(g=0,c.onset=Math.min(1,e)),c}}}])},327598,a=>{"use strict";var b=a.i(164831);let c={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};c.node;let d=(0,b.default)(c);a.s(["ArrowUp",0,d],327598)},168370,a=>{"use strict";var b=a.i(164831);let c={name:"external-link",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]};c.node;let d=(0,b.default)(c);a.s(["ExternalLink",0,d],168370)},875160,a=>{"use strict";var b=a.i(702918);a.s(["Loader2",()=>b.default])},53467,a=>{"use strict";var b=a.i(261234),c=a.i(539110);a.i(975930);var d=a.i(671731),e=(0,c.__name)(a=>{let{securityLevel:c}=(0,b.getConfig2)(),e=(0,d.select)("body");if("sandbox"===c){let b=(0,d.select)(`#i${a}`),c=b.node()?.contentDocument??document;e=(0,d.select)(c.body)}return e.select(`#${a}`)},"selectSvgElement");a.s(["selectSvgElement",0,e])},882458,a=>{"use strict";var b=a.i(416635),c=a.i(43429),d=a.i(428212),e=a.i(916573),f=a.i(887370),g=a.i(261234),h=a.i(875117),i=a.i(539110),j={common:g.common_default,getConfig:g.getConfig,insertCluster:b.insertCluster,insertEdge:c.insertEdge,insertEdgeLabel:c.insertEdgeLabel,insertMarkers:c.markers_default,insertNode:d.insertNode,interpolateToCurve:f.interpolateToCurve,labelHelper:e.labelHelper,log:h.log,positionEdgeLabel:c.positionEdgeLabel},k={},l=(0,i.__name)(a=>{for(let b of a)k[b.name]=b},"registerLayoutLoaders");(0,i.__name)(()=>{l([{name:"dagre",loader:(0,i.__name)(async()=>await a.A(390118),"loader")},{name:"swimlane",loader:(0,i.__name)(async()=>await a.A(860094),"loader")},{name:"cose-bilkent",loader:(0,i.__name)(async()=>await a.A(989520),"loader")}])},"registerDefaultLayoutLoaders")();var m=(0,i.__name)(async(a,b)=>{if(!(a.layoutAlgorithm in k))throw Error(`Unknown layout algorithm: ${a.layoutAlgorithm}`);if(a.diagramId)for(let b of a.nodes){let c=b.domId||b.id;b.domId=`${a.diagramId}-${c}`}let c=k[a.layoutAlgorithm],d=await c.loader(),{theme:e,themeVariables:f}=a.config,{useGradient:g,gradientStart:h,gradientStop:i}=f,l=b.attr("id");if(b.append("defs").append("filter").attr("id",`${l}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${e?.includes("dark")?"#FFFFFF":"#000000"}`),b.append("defs").append("filter").attr("id",`${l}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${e?.includes("dark")?"#FFFFFF":"#000000"}`),g){let a=b.append("linearGradient").attr("id",b.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");a.append("svg:stop").attr("offset","0%").attr("stop-color",h).attr("stop-opacity",1),a.append("svg:stop").attr("offset","100%").attr("stop-color",i).attr("stop-opacity",1)}return d.render(a,b,j,{algorithm:c.algorithm})},"render"),n=(0,i.__name)((a="",{fallback:b="dagre"}={})=>{if(a in k)return a;if(b in k)return h.log.warn(`Layout algorithm ${a} is not registered. Using ${b} as fallback.`),b;throw Error(`Both layout algorithms ${a} and ${b} are not registered.`)},"getRegisteredLayoutAlgorithm");a.s(["getRegisteredLayoutAlgorithm",0,n,"registerLayoutLoaders",0,l,"render",0,m])}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__1u42eh0._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[918622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},120635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},324725,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},43285,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/dynamic-access-async-storage.external.js",()=>require("next/dist/server/app-render/dynamic-access-async-storage.external.js"))},556704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},559043,(a,b,c)=>{b.exports=a.x("next/dist/server/runtime-reacts.external.js",()=>require("next/dist/server/runtime-reacts.external.js"))},198538,a=>{"use strict";var b=a.i(730357);a.s(["ThemeSync",0,function(){return(0,b.useFollowSystemTheme)(),null}])},730357,682823,a=>{"use strict";var b=a.i(572131);let c="thursday.theme";JSON.stringify(c),a.s(["THEMES",0,["system","light","dark"],"THEME_STORAGE_KEY",0,c],682823);let d="system",e=new Set;function f(){for(let a of e)a()}function g(a){let b="dark"===("system"!==a?a:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light");document.documentElement.classList.toggle("dark",b),document.documentElement.style.colorScheme=b?"dark":"light"}let h=a=>{let b=new MutationObserver(a);return b.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>b.disconnect()},i=()=>document.documentElement.classList.contains("dark");function j(){return(0,b.useSyncExternalStore)(a=>{e.add(a);let b=a=>{a.key===c&&(g(d="system"),f())};return window.addEventListener("storage",b),()=>{e.delete(a),window.removeEventListener("storage",b)}},()=>d,()=>"system")}a.s(["setTheme",0,function(a){d=a;try{window.localStorage.setItem(c,a)}catch{}g(a),f()},"useFollowSystemTheme",0,function(){let a=j();(0,b.useEffect)(()=>{if("system"!==a)return;let b=window.matchMedia("(prefers-color-scheme: dark)"),c=()=>g("system");return b.addEventListener("change",c),()=>b.removeEventListener("change",c)},[a])},"useIsDark",0,function(){return(0,b.useSyncExternalStore)(h,i,()=>!1)},"useTheme",0,j],730357)},497895,a=>{"use strict";var b=a.i(298621),c=a.i(474614);let d=/\[([^\]\n]+)\]\(([^)\s]+)\)/g;a.s(["MARKDOWN_LINK",0,d,"WAITING_INK",0,"text-waiting","captionText",0,function(a){let b=[],c=a.replace(/```[\s\S]*?```/g," ").replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(d,(a,c,d)=>(b.push(`[${c.replace(/[*_`]/g,"")}](${d})`),`\uE000${b.length-1}\uE000`)),e=[];for(let a of c.split("\n")){let b=a.trim();b&&(/^\|?[\s:|-]+\|[\s:|-]*$|^[-*_]{3,}$/.test(b)||(/\|.*\|/.test(b)&&(b=b.replace(/^\||\|$/g,"").split("|").map(a=>a.trim()).filter(Boolean).join(" · ")),b=b.replace(/^#{1,6}\s+/,"").replace(/^>\s?/,"").replace(/^[-*+]\s+/,"• ").replace(/`([^`]*)`/g,"$1").replace(/(\*\*|__)(\S(?:.*?\S)?)\1/g,"$2").replace(/(^|[^\w*])([*_])(\S(?:[^*_\n]*?\S)?)\2(?![\w*])/g,"$1$3").replace(/\s+/g," "),e.push(b)))}return e.join("\n").replace(/\uE000(\d+)\uE000/g,(a,c)=>b[Number(c)]??"")},"cn",0,function(...a){return(0,c.twMerge)((0,b.clsx)(a))},"errorToString",0,function(a){if(a instanceof Error)return a.message;if("object"!=typeof a||null===a)return String(a);let{message:b,error:c}=a;if("string"==typeof b&&b)return b;if("string"==typeof c&&c)return c;let d=c?.message;if("string"==typeof d&&d)return d;try{let b;return(b=JSON.stringify(a).replace(/\s+/g," ").trim()).length>300?`${b.slice(0,299).trimEnd()}…`:b}catch{return`${a.constructor?.name??"Object"} thrown without a message`}},"formatBytes",0,function(a){if(a<1024)return`${a} B`;let b=["KB","MB","GB","TB"],c=a/1024,d=0;for(;c>=1024&&d<b.length-1;)c/=1024,d+=1;return`${c.toFixed(+(c<10))} ${b[d]}`},"formatCount",0,function(a){return a<1e3?String(a):a<1e6?`${(a/1e3).toFixed(+(a<1e4))}k`:`${(a/1e6).toFixed(1)}M`},"hostOf",0,function(a){try{return new URL(a).hostname.replace(/^www\./,"")}catch{return null}},"isFunction",0,a=>"function"==typeof a,"plainText",0,function(a){return a.replace(/```[\s\S]*?```/g," ").replace(/`([^`]*)`/g,"$1").replace(/!?\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^\s{0,3}(#{1,6}\s+|[-*+]\s+|\d+\.\s+|>\s?)/gm,"").replace(/(\*\*|__)(.*?)\1/g,"$2").replace(/(\*|_)(.*?)\1/g,"$2").replace(/^\s*\|?[\s:|-]+\|\s*$/gm," ").replace(/\|/g," ").replace(/\s+/g," ").trim()}])},833354,(a,b,c)=>{"use strict";c._=function(a){return a&&a.__esModule?a:{default:a}}},430089,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"setAttributesFromProps",{enumerable:!0,get:function(){return g}});let d={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},e=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function f(a){return["async","defer","noModule"].includes(a)}function g(a,b){for(let[c,g]of Object.entries(b)){if(!b.hasOwnProperty(c)||e.includes(c)||void 0===g)continue;let h=d[c]||c.toLowerCase();"SCRIPT"===a.tagName&&f(h)?a[h]=!!g:a.setAttribute(h,String(g)),(!1===g||"SCRIPT"===a.tagName&&f(h)&&(!g||"false"===g))&&(a.setAttribute(h,""),a.removeAttribute(h))}}("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},612962,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={cancelIdleCallback:function(){return g},requestIdleCallback:function(){return f}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(a){let b=Date.now();return self.setTimeout(function(){a({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-b))}})},1)},g="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(a){return clearTimeout(a)};("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},232807,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={ESCAPE_REGEX:function(){return g},htmlEscapeAttributeString:function(){return k},htmlEscapeJsonString:function(){return j}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},g=/[&><\u2028\u2029]/g,h={"&":"&",'"':""","'":"'","<":"<",">":">"},i=/[&"'<>]/g;function j(a){return a.replace(g,a=>f[a])}function k(a){return a.replace(i,a=>h[a])}},496665,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={default:function(){return u},handleClientScriptLoad:function(){return r},initScriptLoader:function(){return s}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(833354),g=a.r(346058),h=a.r(187924),i=f._(a.r(935112)),j=g._(a.r(572131)),k=a.r(292966),l=a.r(430089),m=a.r(612962),n=a.r(232807),o=new Map,p=new Set,q=a=>{let{src:b,id:c,onLoad:d=()=>{},onReady:e=null,dangerouslySetInnerHTML:f,children:g="",strategy:h="afterInteractive",onError:j,stylesheets:k}=a,m=c||b;if(m&&p.has(m))return;if(o.has(b)){p.add(m),o.get(b).then(d,j);return}let n=()=>{e&&e(),p.add(m)},q=document.createElement("script"),r=new Promise((a,b)=>{q.addEventListener("load",function(b){a(),d&&d.call(this,b),n()}),q.addEventListener("error",function(a){b(a)})}).catch(function(a){j&&j(a)});f?(q.innerHTML=f.__html||"",n()):g?(q.textContent="string"==typeof g?g:Array.isArray(g)?g.join(""):"",n()):b&&(q.src=b,o.set(b,r)),(0,l.setAttributesFromProps)(q,a),"worker"===h&&q.setAttribute("type","text/partytown"),q.setAttribute("data-nscript",h),k&&(a=>{if(i.default.preinit)return a.forEach(a=>{i.default.preinit(a,{as:"style"})})})(k),document.body.appendChild(q)};function r(a){let{strategy:b="afterInteractive"}=a;"lazyOnload"===b?window.addEventListener("load",()=>{(0,m.requestIdleCallback)(()=>q(a))}):q(a)}function s(a){a.forEach(r),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(a=>{let b=a.id||a.getAttribute("src");p.add(b)})}function t(a){let{id:b,src:c="",onLoad:d=()=>{},onReady:e=null,strategy:f="afterInteractive",onError:g,stylesheets:l,...o}=a,{updateScripts:r,scripts:s,getIsSsr:t,appDir:u,nonce:v}=(0,j.useContext)(k.HeadManagerContext);v=o.nonce||v;let w=(0,j.useRef)(!1);(0,j.useEffect)(()=>{let a=b||c;w.current||(e&&a&&p.has(a)&&e(),w.current=!0)},[e,b,c]);let x=(0,j.useRef)(!1);if((0,j.useEffect)(()=>{if(!x.current){if("afterInteractive"===f)q(a);else"lazyOnload"===f&&("complete"===document.readyState?(0,m.requestIdleCallback)(()=>q(a)):window.addEventListener("load",()=>{(0,m.requestIdleCallback)(()=>q(a))}));x.current=!0}},[a,f]),("beforeInteractive"===f||"worker"===f)&&(r?(s[f]=(s[f]||[]).concat([{id:b,src:c,onLoad:d,onReady:e,onError:g,...o,nonce:v}]),r(s)):t&&t()?p.add(b||c):t&&!t()&&q({...a,nonce:v})),u){if(l&&l.forEach(a=>{i.default.preinit(a,{as:"style"})}),"beforeInteractive"===f)if(!c)return o.dangerouslySetInnerHTML&&(o.children=o.dangerouslySetInnerHTML.__html,delete o.dangerouslySetInnerHTML),(0,h.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,n.htmlEscapeJsonString)(JSON.stringify([0,{...o,id:b}]))})`}});else return i.default.preload(c,o.integrity?{as:"script",integrity:o.integrity,nonce:v,crossOrigin:o.crossOrigin}:{as:"script",nonce:v,crossOrigin:o.crossOrigin}),(0,h.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,n.htmlEscapeJsonString)(JSON.stringify([c,{...o,id:b}]))})`}});"afterInteractive"===f&&c&&i.default.preload(c,o.integrity?{as:"script",integrity:o.integrity,nonce:v,crossOrigin:o.crossOrigin}:{as:"script",nonce:v,crossOrigin:o.crossOrigin})}return null}Object.defineProperty(t,"__nextScript",{value:!0});let u=t;("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},342602,(a,b,c)=>{"use strict";b.exports=a.r(918622)},909270,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored.contexts.AppRouterContext},292966,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored.contexts.HeadManagerContext},736313,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored.contexts.HooksClientContext},818341,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored.contexts.ServerInsertedHtml},935112,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored["react-ssr"].ReactDOM},187924,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored["react-ssr"].ReactJsxRuntime},738783,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored["react-ssr"].ReactServerDOMTurbopackClient},572131,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored["react-ssr"].React}];
|
|
1
|
+
module.exports=[918622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},120635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},324725,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},43285,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/dynamic-access-async-storage.external.js",()=>require("next/dist/server/app-render/dynamic-access-async-storage.external.js"))},556704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},559043,(a,b,c)=>{b.exports=a.x("next/dist/server/runtime-reacts.external.js",()=>require("next/dist/server/runtime-reacts.external.js"))},198538,a=>{"use strict";var b=a.i(730357);a.s(["ThemeSync",0,function(){return(0,b.useFollowSystemTheme)(),null}])},730357,682823,a=>{"use strict";var b=a.i(572131);let c="thursday.theme",d="light";JSON.stringify(c),JSON.stringify(d),a.s(["DEFAULT_THEME",0,d,"THEMES",0,["system","light","dark"],"THEME_STORAGE_KEY",0,c],682823);let e=d,f=new Set;function g(){for(let a of f)a()}function h(a){let b="dark"===("system"!==a?a:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light");document.documentElement.classList.toggle("dark",b),document.documentElement.style.colorScheme=b?"dark":"light"}let i=a=>{let b=new MutationObserver(a);return b.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>b.disconnect()},j=()=>document.documentElement.classList.contains("dark");function k(){return(0,b.useSyncExternalStore)(a=>{f.add(a);let b=a=>{a.key===c&&(h(e=d),g())};return window.addEventListener("storage",b),()=>{f.delete(a),window.removeEventListener("storage",b)}},()=>e,()=>d)}a.s(["setTheme",0,function(a){e=a;try{window.localStorage.setItem(c,a)}catch{}h(a),g()},"useFollowSystemTheme",0,function(){let a=k();(0,b.useEffect)(()=>{if("system"!==a)return;let b=window.matchMedia("(prefers-color-scheme: dark)"),c=()=>h("system");return b.addEventListener("change",c),()=>b.removeEventListener("change",c)},[a])},"useIsDark",0,function(){return(0,b.useSyncExternalStore)(i,j,()=>!1)},"useTheme",0,k],730357)},497895,a=>{"use strict";var b=a.i(298621),c=a.i(474614);let d=["\\*","_"].flatMap(a=>{let b="_"===a?"\\w_":a;return[3,2,1].map(c=>{let d=a.repeat(c);return RegExp(`(?<![${b}])${d}(?![\\s${a}])(.+?)(?<![\\s${a}])${d}(?![${b}])`,"g")})}),e=a=>d.reduce((a,b)=>a.replace(b,"$1"),a),f=/\[([^\]\n]+)\]\(([^)\s]+)\)/g;a.s(["MARKDOWN_LINK",0,f,"WAITING_INK",0,"text-waiting","captionText",0,function(a){let b=[],c=a.replace(/```[\s\S]*?```/g," ").replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(f,(a,c,d)=>(b.push(`[${e(c.replace(/`/g,""))}](${d})`),`\uE000${b.length-1}\uE000`)),d=[];for(let a of c.split("\n")){let b=a.trim();b&&(/^\|?[\s:|-]+\|[\s:|-]*$|^[-*_]{3,}$/.test(b)||(/\|.*\|/.test(b)&&(b=b.replace(/^\||\|$/g,"").split("|").map(a=>a.trim()).filter(Boolean).join(" · ")),b=e(b.replace(/^#{1,6}\s+/,"").replace(/^>\s?/,"").replace(/^[-*+]\s+/,"• ").replace(/`([^`]*)`/g,"$1")).replace(/\s+/g," "),d.push(b)))}return d.join("\n").replace(/\uE000(\d+)\uE000/g,(a,c)=>b[Number(c)]??"")},"cn",0,function(...a){return(0,c.twMerge)((0,b.clsx)(a))},"errorToString",0,function(a){if(a instanceof Error)return a.message;if("object"!=typeof a||null===a)return String(a);let{message:b,error:c}=a;if("string"==typeof b&&b)return b;if("string"==typeof c&&c)return c;let d=c?.message;if("string"==typeof d&&d)return d;try{let b;return(b=JSON.stringify(a).replace(/\s+/g," ").trim()).length>300?`${b.slice(0,299).trimEnd()}…`:b}catch{return`${a.constructor?.name??"Object"} thrown without a message`}},"formatBytes",0,function(a){if(a<1024)return`${a} B`;let b=["KB","MB","GB","TB"],c=a/1024,d=0;for(;c>=1024&&d<b.length-1;)c/=1024,d+=1;return`${c.toFixed(+(c<10))} ${b[d]}`},"formatCount",0,function(a){return a<1e3?String(a):a<1e6?`${(a/1e3).toFixed(+(a<1e4))}k`:`${(a/1e6).toFixed(1)}M`},"hostOf",0,function(a){try{return new URL(a).hostname.replace(/^www\./,"")}catch{return null}},"isFunction",0,a=>"function"==typeof a,"plainText",0,function(a){return a.replace(/```[\s\S]*?```/g," ").replace(/`([^`]*)`/g,"$1").replace(/!?\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^\s{0,3}(#{1,6}\s+|[-*+]\s+|\d+\.\s+|>\s?)/gm,"").replace(/[^\n]+/g,e).replace(/^\s*\|?[\s:|-]+\|\s*$/gm," ").replace(/\|/g," ").replace(/\s+/g," ").trim()}])},833354,(a,b,c)=>{"use strict";c._=function(a){return a&&a.__esModule?a:{default:a}}},430089,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"setAttributesFromProps",{enumerable:!0,get:function(){return g}});let d={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},e=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function f(a){return["async","defer","noModule"].includes(a)}function g(a,b){for(let[c,g]of Object.entries(b)){if(!b.hasOwnProperty(c)||e.includes(c)||void 0===g)continue;let h=d[c]||c.toLowerCase();"SCRIPT"===a.tagName&&f(h)?a[h]=!!g:a.setAttribute(h,String(g)),(!1===g||"SCRIPT"===a.tagName&&f(h)&&(!g||"false"===g))&&(a.setAttribute(h,""),a.removeAttribute(h))}}("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},612962,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={cancelIdleCallback:function(){return g},requestIdleCallback:function(){return f}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(a){let b=Date.now();return self.setTimeout(function(){a({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-b))}})},1)},g="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(a){return clearTimeout(a)};("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},232807,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={ESCAPE_REGEX:function(){return g},htmlEscapeAttributeString:function(){return k},htmlEscapeJsonString:function(){return j}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},g=/[&><\u2028\u2029]/g,h={"&":"&",'"':""","'":"'","<":"<",">":">"},i=/[&"'<>]/g;function j(a){return a.replace(g,a=>f[a])}function k(a){return a.replace(i,a=>h[a])}},496665,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={default:function(){return u},handleClientScriptLoad:function(){return r},initScriptLoader:function(){return s}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(833354),g=a.r(346058),h=a.r(187924),i=f._(a.r(935112)),j=g._(a.r(572131)),k=a.r(292966),l=a.r(430089),m=a.r(612962),n=a.r(232807),o=new Map,p=new Set,q=a=>{let{src:b,id:c,onLoad:d=()=>{},onReady:e=null,dangerouslySetInnerHTML:f,children:g="",strategy:h="afterInteractive",onError:j,stylesheets:k}=a,m=c||b;if(m&&p.has(m))return;if(o.has(b)){p.add(m),o.get(b).then(d,j);return}let n=()=>{e&&e(),p.add(m)},q=document.createElement("script"),r=new Promise((a,b)=>{q.addEventListener("load",function(b){a(),d&&d.call(this,b),n()}),q.addEventListener("error",function(a){b(a)})}).catch(function(a){j&&j(a)});f?(q.innerHTML=f.__html||"",n()):g?(q.textContent="string"==typeof g?g:Array.isArray(g)?g.join(""):"",n()):b&&(q.src=b,o.set(b,r)),(0,l.setAttributesFromProps)(q,a),"worker"===h&&q.setAttribute("type","text/partytown"),q.setAttribute("data-nscript",h),k&&(a=>{if(i.default.preinit)return a.forEach(a=>{i.default.preinit(a,{as:"style"})})})(k),document.body.appendChild(q)};function r(a){let{strategy:b="afterInteractive"}=a;"lazyOnload"===b?window.addEventListener("load",()=>{(0,m.requestIdleCallback)(()=>q(a))}):q(a)}function s(a){a.forEach(r),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(a=>{let b=a.id||a.getAttribute("src");p.add(b)})}function t(a){let{id:b,src:c="",onLoad:d=()=>{},onReady:e=null,strategy:f="afterInteractive",onError:g,stylesheets:l,...o}=a,{updateScripts:r,scripts:s,getIsSsr:t,appDir:u,nonce:v}=(0,j.useContext)(k.HeadManagerContext);v=o.nonce||v;let w=(0,j.useRef)(!1);(0,j.useEffect)(()=>{let a=b||c;w.current||(e&&a&&p.has(a)&&e(),w.current=!0)},[e,b,c]);let x=(0,j.useRef)(!1);if((0,j.useEffect)(()=>{if(!x.current){if("afterInteractive"===f)q(a);else"lazyOnload"===f&&("complete"===document.readyState?(0,m.requestIdleCallback)(()=>q(a)):window.addEventListener("load",()=>{(0,m.requestIdleCallback)(()=>q(a))}));x.current=!0}},[a,f]),("beforeInteractive"===f||"worker"===f)&&(r?(s[f]=(s[f]||[]).concat([{id:b,src:c,onLoad:d,onReady:e,onError:g,...o,nonce:v}]),r(s)):t&&t()?p.add(b||c):t&&!t()&&q({...a,nonce:v})),u){if(l&&l.forEach(a=>{i.default.preinit(a,{as:"style"})}),"beforeInteractive"===f)if(!c)return o.dangerouslySetInnerHTML&&(o.children=o.dangerouslySetInnerHTML.__html,delete o.dangerouslySetInnerHTML),(0,h.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,n.htmlEscapeJsonString)(JSON.stringify([0,{...o,id:b}]))})`}});else return i.default.preload(c,o.integrity?{as:"script",integrity:o.integrity,nonce:v,crossOrigin:o.crossOrigin}:{as:"script",nonce:v,crossOrigin:o.crossOrigin}),(0,h.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,n.htmlEscapeJsonString)(JSON.stringify([c,{...o,id:b}]))})`}});"afterInteractive"===f&&c&&i.default.preload(c,o.integrity?{as:"script",integrity:o.integrity,nonce:v,crossOrigin:o.crossOrigin}:{as:"script",nonce:v,crossOrigin:o.crossOrigin})}return null}Object.defineProperty(t,"__nextScript",{value:!0});let u=t;("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},342602,(a,b,c)=>{"use strict";b.exports=a.r(918622)},909270,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored.contexts.AppRouterContext},292966,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored.contexts.HeadManagerContext},736313,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored.contexts.HooksClientContext},818341,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored.contexts.ServerInsertedHtml},935112,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored["react-ssr"].ReactDOM},187924,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored["react-ssr"].ReactJsxRuntime},738783,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored["react-ssr"].ReactServerDOMTurbopackClient},572131,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored["react-ssr"].React}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__203utm3._.js.map
|