thursday-agent 0.21.0 → 0.22.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 +3 -3
- 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 +9 -8
- package/.next/server/app/api/artifact/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/files/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/route.js +9 -8
- package/.next/server/app/api/bot/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/route.js +9 -8
- package/.next/server/app/api/bot/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/[id]/route.js +7 -6
- package/.next/server/app/api/bot/thread/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/file/route.js +17 -16
- package/.next/server/app/api/bot/thread/file/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/route.js +8 -7
- package/.next/server/app/api/bot/thread/route.js.nft.json +1 -1
- package/.next/server/app/api/config/route.js +5 -4
- 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.nft.json +1 -1
- package/.next/server/app/api/llm-model/automatic/route.js +8 -7
- 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 +8 -7
- 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 +8 -7
- package/.next/server/app/api/llm-model/credits/[provider]/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/route.js +9 -8
- package/.next/server/app/api/llm-model/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/subscription/route.js +9 -8
- package/.next/server/app/api/llm-model/subscription/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/[name]/route.js +6 -5
- package/.next/server/app/api/mcp/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/oauth/callback/route.js +6 -5
- package/.next/server/app/api/mcp/oauth/callback/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/route.js +6 -5
- package/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/tools/route.js +6 -5
- package/.next/server/app/api/mcp/tools/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/edit/route.js +13 -12
- package/.next/server/app/api/memory/edit/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/route.js +6 -5
- package/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/reach/route.js +19 -18
- package/.next/server/app/api/reach/route.js.nft.json +1 -1
- package/.next/server/app/api/routine/route.js +9 -8
- 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 +5 -4
- package/.next/server/app/api/signins/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/[source]/[name]/route.js +9 -8
- package/.next/server/app/api/skills/[source]/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/route.js +9 -8
- package/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/end/route.js +6 -5
- package/.next/server/app/api/thursday/call/end/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/plan/route.js +15 -14
- package/.next/server/app/api/thursday/call/plan/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/route.js +7 -6
- package/.next/server/app/api/thursday/call/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/settings/route.js +6 -5
- package/.next/server/app/api/thursday/settings/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/text/route.js +17 -16
- package/.next/server/app/api/thursday/text/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/tool-call/route.js +15 -14
- package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/files/route.js +8 -7
- package/.next/server/app/api/workspace/files/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/route.js +9 -8
- 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.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 +15 -1
- package/.next/server/app/page/server-reference-manifest.json +63 -63
- 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]__0-5d50l._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__005onk_._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__00dtf7h._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__00f051a._.js +7 -0
- package/.next/server/chunks/[root-of-the-server]__019e1fy._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__01jpmcj._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0340k46._.js +7 -0
- package/.next/server/chunks/[root-of-the-server]__03bjojd._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__03vunn6._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__05fq824._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__06kxzw-._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__08922kg._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0atwstu._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0btxiu1._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0d-dfqm._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0gmxpev._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0itmdqy._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0m0qglo._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__0mh1tgg._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0ncs9uu._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0ndw2yj._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0sfx6id._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0xn7a8p._.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]__16y0k92._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__17kdjf6._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__17m7ag9._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__19aqyg-._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1_04mcf._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1a0xgyh._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1ceammd._.js +1 -1
- package/.next/server/chunks/{[root-of-the-server]__01y-8gg._.js → [root-of-the-server]__1clkgmj._.js} +3 -3
- package/.next/server/chunks/[root-of-the-server]__1dth047._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1g08s7l._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__1huywqp._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1ij4h2a._.js +3 -0
- 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]__1q1s4ls._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1qa67zs._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1t-mfa4._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__20ofm9t._.js +3 -0
- package/.next/server/chunks/_0-qt5if._.js +1 -1
- package/.next/server/chunks/_02mn8d7._.js +1 -1
- package/.next/server/chunks/_03p6r2-._.js +1 -1
- package/.next/server/chunks/_0483t_f._.js +1 -1
- package/.next/server/chunks/_06b5b4-._.js +1 -1
- package/.next/server/chunks/_06u9yo-._.js +1 -1
- package/.next/server/chunks/_07pkeds._.js +1 -1
- package/.next/server/chunks/_08354bn._.js +21 -19
- package/.next/server/chunks/_09rtyfn._.js +93 -91
- package/.next/server/chunks/_0cq69mm._.js +1 -1
- package/.next/server/chunks/_0fau3ya._.js +1 -1
- package/.next/server/chunks/_0ggqpiz._.js +1 -1
- package/.next/server/chunks/_0gxz_1b._.js +1 -1
- package/.next/server/chunks/_0lcthk8._.js +1 -1
- package/.next/server/chunks/_0p27in2._.js +1 -1
- package/.next/server/chunks/_0ue8nq-._.js +1 -1
- package/.next/server/chunks/_0uv1gs1._.js +1 -1
- package/.next/server/chunks/_0wyh244._.js +21 -19
- package/.next/server/chunks/_0zwjr-g._.js +1 -1
- package/.next/server/chunks/_1-wp0r0._.js +1 -1
- package/.next/server/chunks/_11y8h29._.js +1 -1
- package/.next/server/chunks/_14xuq46._.js +93 -91
- package/.next/server/chunks/_17fjc-7._.js +5 -0
- package/.next/server/chunks/_1823_7a._.js +4 -4
- package/.next/server/chunks/_18z965x._.js +1 -1
- package/.next/server/chunks/_1ac33qw._.js +1 -1
- package/.next/server/chunks/_1cw6-rv._.js +3 -0
- package/.next/server/chunks/_1dcbwn-._.js +1 -1
- package/.next/server/chunks/_1evvnbp._.js +18 -0
- package/.next/server/chunks/_1gn2r2q._.js +15 -15
- package/.next/server/chunks/{_00lwnht._.js → _1hw1ujv._.js} +2 -2
- package/.next/server/chunks/_1icgbi8._.js +18 -0
- package/.next/server/chunks/{_0txk_9z._.js → _1jtvbp9._.js} +2 -2
- package/.next/server/chunks/_1ko5shz._.js +1 -1
- package/.next/server/chunks/_1ksyu6r._.js +1 -1
- package/.next/server/chunks/{_1ntwp1s._.js → _1mgzs18._.js} +1 -1
- package/.next/server/chunks/_1q42187._.js +4 -4
- package/.next/server/chunks/_1q6e56i._.js +15 -15
- package/.next/server/chunks/_1t43w6q._.js +1 -1
- package/.next/server/chunks/_1t8fv7b._.js +18 -0
- package/.next/server/chunks/_1tjwvoz._.js +1 -1
- package/.next/server/chunks/_1ufbxe1._.js +1 -1
- package/.next/server/chunks/_1uu4wjr._.js +1 -1
- package/.next/server/chunks/{_0q6gng9._.js → _1v4id5q._.js} +2 -2
- package/.next/server/chunks/{_07vwkt7._.js → _1v5qol2._.js} +2 -2
- package/.next/server/chunks/_1wg0cqo._.js +1 -1
- package/.next/server/chunks/_1wgae1c._.js +3 -0
- package/.next/server/chunks/_1x2xiyw._.js +1 -1
- package/.next/server/chunks/_1xps4ob._.js +3 -0
- package/.next/server/chunks/_201k0ah._.js +1 -1
- package/.next/server/chunks/config_ts_1g4sz5o._.js +1 -1
- package/.next/server/chunks/features_bot_08z387_._.js +4 -4
- package/.next/server/chunks/node_modules_zod_v4_01bha1c._.js +60 -0
- package/.next/server/chunks/node_modules_zod_v4_0b99z6a._.js +60 -0
- package/.next/server/chunks/node_modules_zod_v4_0r3ybe4._.js +60 -0
- package/.next/server/chunks/node_modules_zod_v4_1t1yj1u._.js +60 -0
- package/.next/server/chunks/node_modules_zod_v4_1zz6lo1._.js +60 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0eloa6y._.js +5 -5
- package/.next/server/chunks/ssr/[root-of-the-server]__0jjj49d._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0yyxgt2._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1867koj._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__203utm3._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__20t_4l2._.js +1 -1
- package/.next/server/chunks/ssr/_0-y08rv._.js +3 -0
- package/.next/server/chunks/ssr/_00buy3i._.js +162 -0
- package/.next/server/chunks/ssr/_014_wjp._.js +3 -0
- package/.next/server/chunks/ssr/_07m4ii5._.js +3 -0
- package/.next/server/chunks/ssr/_09a6bpd._.js +1 -1
- package/.next/server/chunks/ssr/{_1569s5b._.js → _0gn_i4s._.js} +2 -2
- package/.next/server/chunks/ssr/_0iuvjnw._.js +3 -0
- package/.next/server/chunks/ssr/_0j6rtjm._.js +6 -0
- package/.next/server/chunks/ssr/{_19u7y57._.js → _0ntol64._.js} +2 -2
- package/.next/server/chunks/ssr/_0ogkeu-._.js +3 -0
- package/.next/server/chunks/ssr/{_1h0hk_h._.js → _0t_e9rd._.js} +2 -2
- package/.next/server/chunks/ssr/{_1-zhg63._.js → _0u43zjx._.js} +2 -2
- package/.next/server/chunks/ssr/_0ux4i2m._.js +1 -1
- package/.next/server/chunks/ssr/{_1iix_k_._.js → _0xurp8n._.js} +2 -2
- package/.next/server/chunks/ssr/_10sc7ab._.js +3 -0
- package/.next/server/chunks/ssr/_12hdw8x._.js +22 -20
- package/.next/server/chunks/ssr/{_02ybodf._.js → _14nwim3._.js} +2 -2
- package/.next/server/chunks/ssr/{_2024r5e._.js → _16o81mn._.js} +2 -2
- package/.next/server/chunks/ssr/_1bfrntd._.js +2 -2
- package/.next/server/chunks/ssr/_1crszf7._.js +1 -1
- package/.next/server/chunks/ssr/_1e01b-_._.js +3 -0
- package/.next/server/chunks/ssr/{_0y0qnim._.js → _1gz4ov7._.js} +3 -3
- package/.next/server/chunks/ssr/_1neoj22._.js +2 -1
- package/.next/server/chunks/ssr/{_04ik9s8._.js → _1nfv27b._.js} +2 -2
- package/.next/server/chunks/ssr/_1nwey7a._.js +3 -0
- package/.next/server/chunks/ssr/_1soynbw._.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 +3 -0
- package/.next/server/chunks/ssr/features_bot_0tb4ui-._.js +1 -1
- package/.next/server/chunks/ssr/{_07nmtxo._.js → features_bot_1knyan7._.js} +2 -2
- package/.next/server/chunks/ssr/{features_config_1l7bn84._.js → features_config_09wq1s9._.js} +3 -3
- 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 +3 -0
- package/.next/server/chunks/ssr/features_thursday_components_ascii-orb_tsx_1yug8cw._.js +3 -0
- package/.next/server/chunks/ssr/features_thursday_components_here-globe_tsx_055duhw._.js +3 -0
- package/.next/server/chunks/ssr/{node_modules_1bj1zfp._.js → node_modules_01fukqn._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1r-1n7c._.js → node_modules_01v7ybp._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0f0lohc._.js → node_modules_0536cp2._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_13iz-t6._.js → node_modules_056xgci._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1rnfv0r._.js → node_modules_06n6ruk._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1d5j3h5._.js → node_modules_08m1gvh._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1_j-et6._.js → node_modules_0_zk6yd._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0c1grmu._.js → node_modules_0cpegwf._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_107249-._.js → node_modules_0e398ts._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0ja2eo8._.js → node_modules_0ie8g6a._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_074pspl._.js → node_modules_0ksqeyy._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0ydatn4._.js → node_modules_0m-dnm-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0eoqrzb._.js → node_modules_0m2oth3._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1b6sm1g._.js → node_modules_0yn2z6s._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0uuobx8._.js → node_modules_12hh0bx._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0q-53p6._.js → node_modules_13dwal5._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0efmaot._.js → node_modules_16tn8xu._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0x4geuk._.js → node_modules_19r9vjv._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0k9lm-f._.js → node_modules_1bvw77g._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1dgdpcc._.js → node_modules_1ctm_ju._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1oo6jfv._.js → node_modules_1dlue-g._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1sbozb5._.js → node_modules_1fqgrh0._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_17eaxbw._.js → node_modules_1i-g3bz._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1b_78mo._.js → node_modules_1jf8aik._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0vva828._.js → node_modules_1kfbdfo._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0lu90ps._.js → node_modules_1zalmtr._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1qgte25._.js → node_modules_1zdz2zf._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0obor-y._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0nj1l8f._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0oip1-o._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_17ok98u._.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 +64 -64
- package/.next/static/chunks/01r1uco3ikisc.js +2 -0
- package/.next/static/chunks/{33s9l7hkzyylm.js → 052u13mcoxt87.js} +1 -1
- package/.next/static/chunks/{023rfhzsxzhh1.js → 05blzta_1i7c2.js} +1 -1
- package/.next/static/chunks/09kwsjbmr_z1w.js +1 -0
- package/.next/static/chunks/0go5_9zqag7l0.js +1 -0
- package/.next/static/chunks/0hpx0--bh7vld.js +1 -0
- package/.next/static/chunks/0o0vshni5ny91.js +1 -0
- package/.next/static/chunks/0ynv7zu_bguve.js +1 -0
- package/.next/static/chunks/0zi59tghmg1lu.js +18 -0
- package/.next/static/chunks/1_ftsgxa-sia_.js +1 -0
- package/.next/static/chunks/1cg3torc90q5t.js +1 -0
- package/.next/static/chunks/{3zhqveam0_kub.js → 1dy5xaxjdsy11.js} +1 -1
- package/.next/static/chunks/1qnx1h5c8f93b.js +1 -0
- package/.next/static/chunks/1rwn3d9ji5w35.js +1 -0
- package/.next/static/chunks/{1tyxz6thgf2w6.js → 1so3f5fi7e5g9.js} +1 -1
- package/.next/static/chunks/1ya41wxfmp4s8.js +1 -0
- package/.next/static/chunks/27rwkfu7_xvs1.js +4 -0
- package/.next/static/chunks/2hueh8masqd91.js +15 -0
- package/.next/static/chunks/2jrt_752fqz2f.js +1 -0
- package/.next/static/chunks/{3fcnfq383hu-y.js → 2nbj2t9yp8ke9.js} +1 -1
- package/.next/static/chunks/2ogme4qydxnaq.js +3 -0
- package/.next/static/chunks/2r2tocw2rpvm2.js +1 -0
- package/.next/static/chunks/2t4kimg1lt-p7.js +2 -0
- package/.next/static/chunks/2w6y71o27my_z.js +1 -0
- package/.next/static/chunks/{2-2ts24vi9ete.js → 3146sccz1j76i.js} +1 -1
- package/.next/static/chunks/31_am8rtmk_tv.css +1 -0
- package/.next/static/chunks/{41iv7b8_3z92h.js → 35ehi-okrfot5.js} +1 -1
- package/.next/static/chunks/3866u-edsoyj3.js +1 -0
- package/.next/static/chunks/3drvp6w6dqzqg.js +1 -0
- package/.next/static/chunks/3qfhjwd9yuijo.js +1 -0
- package/.next/static/chunks/{3axovmkkuh1us.js → 3tyacy8fh5_18.js} +2 -2
- package/.next/static/chunks/3zv4wiqjl5kex.js +1 -0
- package/guide/bots.md +25 -5
- package/guide/calls.md +18 -9
- package/guide/setup.md +15 -4
- package/guide/trouble.md +2 -3
- package/package.json +1 -1
- package/public/here/NOTICE +43 -0
- package/public/here/world.json +1 -0
- package/skills/README.md +4 -0
- package/skills/artifact/SKILL.md +7 -6
- package/skills/artifact/references/motion.md +150 -0
- package/skills/artifact/runtime/motion/film.js +866 -0
- package/skills/artifact/runtime/motion/fonts/Gaegu-Bold.woff2 +0 -0
- package/skills/artifact/runtime/motion/fonts/OFL.txt +92 -0
- package/skills/artifact/runtime/motion/kit-core.js +699 -0
- package/skills/artifact/runtime/motion/kit-people.js +1305 -0
- package/skills/artifact/runtime/motion/kit-places.js +854 -0
- package/skills/artifact/runtime/motion/kit-things.js +903 -0
- package/skills/artifact/runtime/motion/motion.html +108 -0
- package/skills/artifact/runtime/motion/page.mjs +54 -0
- package/skills/artifact/runtime/motion/score.js +625 -0
- package/skills/artifact/scripts/book-video.mjs +1 -46
- package/skills/artifact/scripts/media.mjs +74 -0
- package/skills/artifact/scripts/motion.mjs +605 -0
- package/skills/artifact/templates/motion/birthday.js +182 -0
- package/skills/browser/SKILL.md +4 -1
- package/skills/browser/scripts/serve.mjs +26 -3
- package/skills/browser/scripts/session.mjs +12 -3
- package/.next/server/chunks/[root-of-the-server]__0-fn06g._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__03lc17t._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__06nspyt._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__09c88lb._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__09dxfp5._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0_0w3ug._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0ap1nbu._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__0bmtib_._.js +0 -7
- package/.next/server/chunks/[root-of-the-server]__0im1m7z._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0mt72qk._.js +0 -7
- package/.next/server/chunks/[root-of-the-server]__0uj9rm-._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0z5n9xz._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__16e_e0e._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__16gn7zn._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__18k8s-z._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1aw-1kd._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1kmnkbk._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1op8qe5._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1pkq_1z._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__20w_g71._.js +0 -3
- package/.next/server/chunks/_01c32w9._.js +0 -75
- package/.next/server/chunks/_02bov6_._.js +0 -75
- package/.next/server/chunks/_053bi70._.js +0 -60
- package/.next/server/chunks/_08s4vft._.js +0 -75
- package/.next/server/chunks/_0fb6dvr._.js +0 -75
- package/.next/server/chunks/_0iw19ig._.js +0 -75
- package/.next/server/chunks/_0mo_6or._.js +0 -5
- package/.next/server/chunks/_0poi1t2._.js +0 -75
- package/.next/server/chunks/_1d7og_q._.js +0 -75
- package/.next/server/chunks/_1o3fc2d._.js +0 -60
- package/.next/server/chunks/_20zp65o._.js +0 -60
- package/.next/server/chunks/ssr/[root-of-the-server]__03e9zqg._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1hbvuqr._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1y8_-v1._.js +0 -3
- package/.next/server/chunks/ssr/_00_9573._.js +0 -3
- package/.next/server/chunks/ssr/_03vw3u5._.js +0 -3
- package/.next/server/chunks/ssr/_0iwsdp7._.js +0 -3
- package/.next/server/chunks/ssr/_0llhg-6._.js +0 -3
- package/.next/server/chunks/ssr/_0o__2ss._.js +0 -3
- package/.next/server/chunks/ssr/_0pbav_w._.js +0 -3
- package/.next/server/chunks/ssr/_0yjn4jm._.js +0 -162
- package/.next/server/chunks/ssr/_186ifln._.js +0 -3
- package/.next/server/chunks/ssr/_1x4lhpf._.js +0 -3
- package/.next/server/chunks/ssr/_1xfiate._.js +0 -5
- package/.next/server/chunks/ssr/features_bot_1dvvmo3._.js +0 -3
- package/.next/server/chunks/ssr/features_thursday_0gbh5j_._.js +0 -3
- package/.next/static/chunks/06k2o5zxc3xhv.js +0 -1
- package/.next/static/chunks/0_s4z70lx1tgs.js +0 -1
- package/.next/static/chunks/0cbitatnyjhz7.js +0 -1
- package/.next/static/chunks/0m5-0kx85axzv.js +0 -18
- package/.next/static/chunks/0non225e2mzp-.js +0 -1
- package/.next/static/chunks/0q9b2n6l4flqb.js +0 -1
- package/.next/static/chunks/0uhddock-ik4v.js +0 -1
- package/.next/static/chunks/14y1gqfplan8a.js +0 -1
- package/.next/static/chunks/1pidafhkyxhqw.js +0 -1
- package/.next/static/chunks/1sy7zm5dplzym.css +0 -1
- package/.next/static/chunks/1t7u4xfljptkv.js +0 -1
- package/.next/static/chunks/2nf3mskfp9cyc.js +0 -15
- package/.next/static/chunks/2uraofiaoy32s.js +0 -1
- package/.next/static/chunks/2vw9_trh_ntv6.js +0 -2
- package/.next/static/chunks/2x6-fpctvucte.js +0 -1
- package/.next/static/chunks/33lm6ytc816te.js +0 -1
- package/.next/static/chunks/3p5q6rj40jmcy.js +0 -1
- package/.next/static/chunks/3p80hsvcabgw_.js +0 -3
- package/.next/static/chunks/3qez_j23ikyar.js +0 -1
- /package/.next/static/{gx61wKkj9_eBGMdyfbBlr → 8exfHAtcoebYtxjUC4ugl}/_buildManifest.js +0 -0
- /package/.next/static/{gx61wKkj9_eBGMdyfbBlr → 8exfHAtcoebYtxjUC4ugl}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{gx61wKkj9_eBGMdyfbBlr → 8exfHAtcoebYtxjUC4ugl}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,671228,67045,297825,e=>{"use strict";let t,r;var a=e.i(504565),n=e.i(265402),l=e.i(413168);a.default.object({place:a.default.string().max(120).regex(/^[^\n\r]*$/).nullable(),weather:a.default.object({code:a.default.number().int().min(0).max(99),temperature:a.default.number(),low:a.default.number(),high:a.default.number(),sunrise:a.default.string().regex(/^\d{2}:\d{2}$/),sunset:a.default.string().regex(/^\d{2}:\d{2}$/)}).nullable()});let o=[{id:"chatgpt",...n.TEXT_MODEL_PROVIDERS.chatgpt},{id:"openai",...n.TEXT_MODEL_PROVIDERS.openai}];a.default.object({id:a.default.string().min(1),text:a.default.string(),said:a.default.boolean()});let i="note",s=e=>e.type===`data-${i}`?e.data:null,h={min:3,max:32},u=a.default.object({enabled:a.default.boolean(),phrase:a.default.string().trim().min(h.min).max(h.max)}),c={enabled:!1,phrase:"hey thursday"},d=a.default.object({enabled:a.default.boolean(),combo:a.default.string().trim().min(1).max(64)}),f={enabled:!1,combo:"alt+shift+KeyT"},m=["off","waiting","any"],p=a.default.enum(m),g="waiting",M=["center","sides"],y=a.default.enum(M);a.default.object({id:a.default.string().min(1),role:a.default.enum(["user","assistant","tool"]),tool:a.default.string().nullish(),text:a.default.string(),seq:a.default.number().int().min(0),fragments:a.default.array(l.LiveFragmentSchema).nullish()}),a.default.object({id:a.default.string().min(1),text:a.default.string(),seq:a.default.number().int().min(0)}),e.s(["CALL_BACK_DEFAULT",0,g,"CALL_BACK_LABEL",0,{off:"Never",waiting:"When a job needs me",any:"Whenever a job ends"},"CALL_BACK_MODES",0,m,"CAPTION_VIEWS",0,M,"CallBackSchema",0,p,"CaptionViewSchema",0,y,"HOTKEY_DEFAULT",0,f,"HotkeySchema",0,d,"TEXT_CALL_MOVED",0,"moved","TEXT_CALL_NOTE",0,i,"WAKE_DEFAULT",0,c,"WAKE_PHRASE",0,h,"WakeSchema",0,u,"isEnglishPhrase",0,e=>/^[a-z0-9\s'.,!?-]+$/i.test(e.trim())&&/[a-z]/i.test(e),"noteOf",0,s,"notesIn",0,e=>e.flatMap(e=>e.parts.flatMap(e=>{let t=s(e);return t?[t]:[]})),"textCallRunsOn",0,e=>o.find(t=>e(t.apiKeyName))?.id??null],671228);var x=e.i(681307),w=e.i(768834);let b=e=>t=>{try{let r=e(t);if(r instanceof Promise)return r;return{then:e=>b(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>b(t)(e)}}};var v=e.i(149666);let A=x.z.object({wake:u.catch(c),hotkey:d.catch(f),callBack:p.catch(g),captionView:y.catch("sides"),textModel:n.textModelRefSchema.nullable().catch(null)}),k={wake:c,hotkey:f,callBack:g,captionView:"sides",textModel:null},S=(0,w.create)()((t=e=>({...k,carried:null,patch:t=>e(t),carriedDone:()=>e({carried:null})}),r={name:"thursday.settings",version:2,migrate:(e,t)=>t<1&&e&&"object"==typeof e?{...e,webSearch:!0}:e,partialize:e=>({wake:e.wake,hotkey:e.hotkey,callBack:e.callBack,captionView:e.captionView,textModel:e.textModel}),merge:(e,t)=>{let r=A.safeParse(e),a=r.success?r.data:k;return{...t,...a,carried:function(e){if(!e||"object"!=typeof e)return null;let t=[...Object.keys(v.LiveSettingsSchema.shape),"voicePrompt","systemPrompt","model"].filter(t=>t in e);return t.length?Object.fromEntries(t.map(t=>[t,e[t]])):null}(e)}}},(e,a,n)=>{let l,o={storage:function(e){let t;try{t=e()}catch(e){return}return{getItem:e=>{var r;let a=e=>null===e?null:JSON.parse(e,void 0),n=null!=(r=t.getItem(e))?r:null;return n instanceof Promise?n.then(a):a(n)},setItem:(e,r)=>t.setItem(e,JSON.stringify(r,void 0)),removeItem:e=>t.removeItem(e)}}(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...r},i=!1,s=0,h=new Set,u=new Set,c=o.storage;if(!c)return t((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),e(...t)});let d=()=>{let e=o.partialize({...a()});return c.setItem(o.name,{state:e,version:o.version})},f=n.setState;n.setState=(e,t)=>(f(e,t),d());let m=t((...t)=>(e(...t),d()));n.getInitialState=()=>m;let p=()=>{var t,r;if(!c)return;let n=++s;i=!1,h.forEach(e=>{var t;return e(null!=(t=a())?t:m)});let f=(null==(r=o.onRehydrateStorage)?void 0:r.call(o,null!=(t=a())?t:m))||void 0;return b(c.getItem.bind(c))(o.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===o.version)return[!1,e.state];else{if(o.migrate){let t=o.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(t=>{var r;if(n!==s)return;let[i,h]=t;if(e(l=o.merge(h,null!=(r=a())?r:m),!0),i)return d()}).then(()=>{n===s&&(null==f||f(a(),void 0),l=a(),i=!0,u.forEach(e=>e(l)))}).catch(e=>{n===s&&(null==f||f(void 0,e))})};return n.persist={setOptions:e=>{o={...o,...e},e.storage&&(c=e.storage)},clearStorage:()=>{++s,null==c||c.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>p(),hasHydrated:()=>i,onHydrate:e=>(h.add(e),()=>{h.delete(e)}),onFinishHydration:e=>(u.add(e),()=>{u.delete(e)})},o.skipHydration||p(),l||m}));e.s(["useThursdayStore",0,S],67045);var O=e.i(271645),_=e.i(798120),L=e.i(609856),E=e.i(283653),T=e.i(95187);let z=(0,T.createServerReference)("7f41f8b29ffcf46abb3981a372589862590c9e3028",T.callServer,void 0,T.findSourceMapURL,"seedLiveSettingsAction"),R=(0,T.createServerReference)("7f542187184ea824ebbe6aa224b7761b481577f389",T.callServer,void 0,T.findSourceMapURL,"setLiveSettingsAction");e.s(["useLiveSettings",0,function(){let{data:e}=(0,E.useServerRoute)(_.queryKey.thursdaySettings),[t]=(0,L.useServerAction)(R,{onOk:()=>(0,E.revalidate)(_.queryKey.thursdaySettings)}),r=(0,O.useCallback)(e=>void t(e),[t]);return function(){let e=S(e=>e.carried),t=S(e=>e.carriedDone),[r]=(0,L.useServerAction)(z,{onOk:e=>{e&&(0,E.revalidate)(_.queryKey.thursdaySettings)},errorMessage:!1});(0,O.useEffect)(()=>{e&&(t(),r(e))},[e,t,r])}(),{settings:e,patch:r}}],297825)},561540,377090,732061,298293,387758,333495,e=>{"use strict";var t=e.i(213377);let r={[t.TOOL_NAMES.memory_recall]:"Checking your notes",[t.TOOL_NAMES.memory_create]:"Starting a note",[t.TOOL_NAMES.memory_remember]:"Noting that down",[t.TOOL_NAMES.memory_describe]:"Renaming a note",[t.TOOL_NAMES.memory_forget]:"Forgetting that",[t.TOOL_NAMES.bash]:"Doing it on this computer",[t.TOOL_NAMES.web_search]:"Searching the web",[t.TOOL_NAMES.load_skill]:"Reading how to do this",[t.TOOL_NAMES.look_at]:"Looking at the picture",[t.TOOL_NAMES.make_deck]:"Making the deck",[t.TOOL_NAMES.end_call]:"Ending the call",[t.TOOL_NAMES.look_at_shared]:"Looking at what you show",[t.TOOL_NAMES.routine]:"Checking your routines"};function a(e,t=28){let r=e.trim().replace(/\s+/g," ");if(r.length<=t)return r;let n=r.slice(0,t),l=n.lastIndexOf(" ");return`${(l>t/2?n.slice(0,l):n).trimEnd()}…`}let n=(e,t)=>"string"==typeof e[t]?e[t].trim():"";function l(e){if(!e)return null;try{let t=JSON.parse(e);if(t&&"object"==typeof t&&!Array.isArray(t))return t}catch{}return null}let o=new Set([t.TOOL_NAMES.thread_tell,t.TOOL_NAMES.thread_answer,t.TOOL_NAMES.thread_status,t.TOOL_NAMES.thread_show,t.TOOL_NAMES.thread_cancel,t.TOOL_NAMES.thread_seen]);function i(e){return Array.isArray(e)?e.flatMap(e=>e&&"object"==typeof e&&"string"==typeof e.url?[e]:[]):[]}e.s(["reasoningTitle",0,function(e){return/^\s*\*\*(.+?)\*\*/.exec(e)?.[1]?.trim()||null},"searchOf",0,function(e,r){if(e!==t.TOOL_NAMES.web_search)return null;try{let e=JSON.parse(r);return{query:"string"==typeof e.query?e.query:null,sources:i(e.sources)}}catch{return null}},"searchQueryOf",0,function(e){let t=l(e)?.query;return"string"==typeof t&&t.trim()?t.trim():null},"searchSourcesOf",0,function(e){return i(l(e)?.sources)},"startedLabel",0,function(e,r){if(e!==t.TOOL_NAMES.thread_start)return null;try{let e=JSON.parse(r);return"string"==typeof e.label?e.label:null}catch{return null}},"toolBot",0,function(e,r,a,n){let i=l(r);if(!i)return null;if(e===t.TOOL_NAMES.thread_start)return"string"==typeof i.bot&&i.bot.trim()?i.bot.trim():null;if(!o.has(e))return null;let s="string"==typeof i.thread?i.thread.trim():"";if(!s||"all"===s.toLowerCase())return null;let h=s.toLowerCase(),u=a?.find(e=>e.id===s)??a?.find(e=>e.label.toLowerCase()===h);return u?e===t.TOOL_NAMES.thread_answer?u.room.questions[0]?.bot??u.bot:u.bot:function(e){let t=l(e);if(!t)return null;if("string"==typeof t.bot&&t.bot.trim())return t.bot.trim();let r=t.answered;return"string"==typeof r?.bot?r.bot:null}(n)},"toolLine",0,function(e,o,i=null){let s;if(e===t.TOOL_NAMES.tool_search||e===t.TOOL_NAMES.tool_call)return"Reaching a connected service";let h=l(o);return(h&&function(e,r,l){if(e===t.TOOL_NAMES.memory_remember||e===t.TOOL_NAMES.memory_create){let l=n(r,"path"),o=function(e){if(!Array.isArray(e.facts))return null;let t=e.facts.map(e=>e&&"object"==typeof e&&"string"==typeof e.text?e.text.trim():"").filter(Boolean);return t.length?{text:t[0],more:t.length-1}:null}(r),i=e===t.TOOL_NAMES.memory_create?"Starting":"Noting";if(!l)return null;if(!o)return`${i} ${l}`;let s=o.more>0?` (+${o.more})`:"";return`${i} ${l}: ${a(o.text)}${s}`}if(e===t.TOOL_NAMES.memory_recall){let e=n(r,"path");return e?`Checking \xb7 ${e}`:null}if(e===t.TOOL_NAMES.memory_describe){let e=n(r,"path");return e?`Renaming \xb7 ${e}`:null}if(e===t.TOOL_NAMES.bash){let e=n(r,"description")||n(r,"command");return e?`On this computer \xb7 ${a(e,44)}`:null}if(e===t.TOOL_NAMES.load_skill){let e=n(r,"name");return e?`Reading the ${e} skill`:null}if(e===t.TOOL_NAMES.look_at){let e=n(r,"path");return e?`Looking at ${e.split("/").filter(Boolean).at(-1)??""}`:null}if(e===t.TOOL_NAMES.make_deck){let e=n(r,"title");return e?`Making the deck \xb7 ${a(e,44)}`:null}if(e===t.TOOL_NAMES.thread_start){let e=n(r,"bot");return e?`Handing this to ${e}`:"Handing this over"}if(e===t.TOOL_NAMES.web_search){let e=n(r,"query");return e?`Searching \xb7 ${e}`:null}if(e===t.TOOL_NAMES.routine){if("create"===r.action){let e=[n(r,"bot"),function(e){if("string"==typeof e.at&&e.at.length>=16){let[t,r]=e.at.split(" "),[a,n,l]=t.split("-").map(Number),o=new Date(a,n-1,l);if(o.toDateString()===new Date().toDateString())return`once at ${r}`;let i=o.toLocaleDateString("en-US",{month:"short",day:"numeric"});return`once, ${i} ${r}`}return"string"==typeof e.time&&e.time?`daily at ${e.time}`:"number"==typeof e.everyHours?`every ${e.everyHours} hours`:null}(r)].filter(Boolean).join(", ");return e?`Setting a routine \xb7 ${e}`:"Setting a routine"}return"change"===r.action?"Changing a routine":"delete"===r.action?"Deleting a routine":null}let o=n(r,"thread");return e===t.TOOL_NAMES.thread_tell?l?`Telling ${l}`:"Passing that on":e===t.TOOL_NAMES.thread_answer?l?`Answering ${l}`:"Answering that":e===t.TOOL_NAMES.thread_cancel?o?`Stopping ${o}`:"Stopping that":e===t.TOOL_NAMES.thread_seen?o?`Marking ${o} as read`:"Marking that as read":e===t.TOOL_NAMES.thread_show?o?`Opening ${o}`:"Opening that":e===t.TOOL_NAMES.thread_status?o&&"all"!==o.toLowerCase()?`Checking on ${o}`:"Checking on the work":null}(e,h,i))??r[e]??((s=e.indexOf("__"))<=0?null:`Reaching ${e.slice(0,s).replace(/[-_]/g," ")}`)}],561540);var s=e.i(843476),h=e.i(271645),u=e.i(41533),c=e.i(218080),d=e.i(567334);function f(e,t,r){let a=(0|e)*0x165667b1+(0|t)*0x27d4eb2f+(0|r)*0x4bf19f61;return(((a=Math.imul(a^a>>>13,0x4bf19f61))^a>>>16)>>>0)/0x100000000}let m=(e,t,r)=>e+(t-e)*r;function p(e,t,r){let a=Math.floor(e),n=Math.floor(t),l=Math.floor(r),o=e-a,i=t-n,s=r-l,h=o*o*(3-2*o),u=i*i*(3-2*i),c=m(f(a,n,l),f(a+1,n,l),h),d=m(f(a,n+1,l),f(a+1,n+1,l),h),p=m(f(a,n,l+1),f(a+1,n,l+1),h),g=m(f(a,n+1,l+1),f(a+1,n+1,l+1),h);return m(m(c,d,u),m(p,g,u),s*s*(3-2*s))}function g(e,t,r,a=3){let n=0,l=.5,o=0;for(let i=0;i<a;i++)n+=l*p(e,t,r),o+=l,e*=2.03,t*=2.03,r*=1.97,l*=.5;return n/o}function M(e,t,r,a=4){let n=g(e,t,r,2),l=g(e+5.2,t+1.3,r+2.8,2);return g(e+a*n,t+a*l,r,3)}function y(e,t=0){let r=9.2*g(.1*e+3.7*t,3.1+t,1.4,2);return{x:Math.cos(r),y:Math.sin(r),g:.38+.62*Math.max(0,Math.min(1,(g(.11*e+5.3*t,7.7,2.2,3)-.38)*3.2))**1.5}}e.s(["fbm",0,g,"ihash",0,f,"vnoise",0,p,"warp",0,M,"windAt",0,y],377090);let x=2*Math.PI,w=(e,t,r)=>(0,d.smoothstep)(t,t+(r-t)*.3,e)*(1-(0,d.smoothstep)(r-(r-t)*.3,r,e)),b={x:0,y:0,rot:0,yaw:0,pitch:0,spin:0,axis:0,sx:1,sy:1,lidL:1,lidR:1,size:1,gx:0,gy:0},v=(()=>{let e=0;for(let t=0;t<5;t++)e+=Math.exp(-t/1.6);return Array.from({length:5},(t,r)=>Math.exp(-r/1.6)/e)})(),A={now:{wake:!0,sighs:!0,len:0,pose:()=>b},dust:{wake:!0,len:2.4,pose(e,t){let r=t?-1:1,a=.55*(0,d.smoothstep)(.16,.3,e)*Math.exp(-Math.max(0,e-.3)/.55),n=2.5*x*(e-.2),l=.3+.2*(0,d.smoothstep)(.05,.25,e)+.5*(0,d.smoothstep)(1.35,1.75,e),o=w(e,1.45,2.4);return{...b,yaw:r*a*Math.sin(n),x:.035*r*a*Math.sin(n-.5),rot:.03*r*a*Math.sin(n+.9),y:-.02*o,lidL:l,lidR:l,size:1+.06*o}},fx(e,t,r,a,n,l,o,i){let s=t?-1:1,h=1;for(let t=0;t<5;t++){let r=.2+(.25+.5*t)/2.5;h-=v[t]*(0,d.smoothstep)(r-.03,r+.1,e),e>=r&&l.thrown<=t&&(l.thrown=t+1,function(e,t,r,a){let n=e.head,l=Math.min(1.4,3.2*r),o=4+Math.round(6*l);for(let r=0;r<o;r++){let r=(Math.random()-.5)*1.6*a,o=t*Math.sqrt(Math.max(0,a*a-r*r))*(.1+.8*Math.random()),i=(230+170*Math.random())*(.55+.45*l),s=(Math.random()-.6)*90+r/a*50;for(let l=0;l<7;l++){let l=i*(.75+.5*Math.random());E(e,{...T,x:n.x*a+o+(Math.random()-.5)*24,y:n.y*a+r+(Math.random()-.5)*24,vx:t*l,vy:s+(Math.random()-.5)*50,life:1.3+.8*Math.random(),a:.55+.3*Math.random(),r0:4,r1:30+20*Math.random(),grow:.5,keep:.35,fall:45,curl:40,kind:2,hold:0,fadeP:1.5})}for(let l=0;l<3;l++)E(e,{...T,x:n.x*a+o,y:n.y*a+r,vx:t*i*(.8+.5*Math.random()),vy:s-40*Math.random(),life:.6+.4*Math.random(),a:.9,r0:1.5,r1:2.5,grow:1,keep:.4,fall:320,curl:0,kind:2,hold:0,fadeP:1})}}(a,s*(t%2?-1:1),v[t],i))}r.crust=Math.max(r.crust,e<0?(0,d.smoothstep)(-.8,-.3,e):Math.max(0,h))}},turn:{wake:!0,len:1.8,pose(e,t){let r=t?-1:1,a=x*(0,d.smoothstep)(-.6,.95,e),n=e>.95?-.1*Math.sin(Math.min(1,(e-.95)/.6)*Math.PI):0,l=(0,d.smoothstep)(0,.3,e);return{...b,spin:r*(a+n),axis:.22*r,y:-.02*w(e,.5,1.6),lidL:l,lidR:l}}},vape:{len:6.6,pose(e){let t=w(e,.2,1.7),r=(0,d.smoothstep)(1.7,2.3,e)*(1-(0,d.smoothstep)(5.2,6.4,e)),a=1-.35*t-.42*r;return{...b,pitch:.12*t-.08*r,y:-.02*t+.015*r,sx:1+.03*t,sy:1+.03*t,lidL:a,lidR:a}},fx(e,t,r,a,n,l,o,i){if(e<0||e>6.8)return;r.hush=Math.max(r.hush,.8*w(e,.2,2));let s=e>1.8&&e<5.4?(0,d.smoothstep)(1.8,2.2,e)*(.4+.6*Math.exp(-(e-1.8)/1.6))*(1-(0,d.smoothstep)(4.5,5.4,e)):0;s>0&&function(e,t,r,a,n,l){var o;let i,s,h,u,c,[d,f]=(o=.55*l,s=Math.cos((i=e.head).rot),h=Math.sin(i.rot),u=0*i.sx,c=o*i.sy,[i.x*l+u*s-c*h,i.y*l+u*h+c*s]),m=.88*t.field;for(r.owed+=110*a*n;r.owed>=1;){r.owed-=1;let t=Math.PI/2+(Math.random()-.5)*1.6,n=165*(.6+.4*a)*(.7+.6*Math.random());E(e,{x:d+(Math.random()-.5)*26,y:f+(Math.random()-.5)*10,vx:Math.cos(t)*n,vy:Math.sin(t)*n,life:5+2.5*Math.random(),a:.75,r0:10,r1:96*(.7+.6*Math.random()),grow:1.6,keep:.55,fall:10,rise:30,riseT:3.6,curl:85,splay:55,wall:m,home:m*Math.random()**.85*.92,peel:.1+1.0999999999999999*Math.random(),side:0,hitAt:-1,peeled:!1,kind:1,hold:3,fadeP:2.4})}}(a,n,l,s,o,i)}},look:{len:2.8,pose(e,t){let r=t?-1:1,a=w(e,.45,1.35),n=w(e,1.45,2.45);return{...b,yaw:r*(-.42*a+.42*n),gx:r*(-.08*a+.08*n),x:r*(-.03*a+.03*n),rot:r*(-.03*a+.03*n)}}},wink:{len:2,pose(e,t){let r=w(e,.8,1.35),a=.08*w(e,.7,1.55);return t?{...b,lidL:1-r,rot:-a}:{...b,lidR:1-r,rot:a}}},sleepy:{len:3.2,hold:!0,pose(e){let t=w(e,1.5,1.95),r=.8*(0,d.smoothstep)(.1,1.5,e)*(1-.8*t)+.2*(0,d.smoothstep)(1.95,3.1,e),a=1-.7*r;return{...b,y:.07*r,rot:.1*r,gy:.05*r,lidL:a,lidR:a}}},spin:{len:3,pose(e,t){let r=t?-1:1,a=-.25*w(e,0,.45)+x*(0,d.smoothstep)(.3,1.75,e),n=e>1.7?Math.exp(-(e-1.7)/.55)*(0,d.smoothstep)(1.7,1.85,e):0,l=1.5*x*(e-1.7),o=1-.3*n;return{...b,spin:r*a,axis:.62*r,x:.035*n*Math.sin(l),y:.022*n*Math.cos(l),rot:.07*n*Math.sin(l+.6),gx:.06*n*Math.sin(1.3*l),gy:.04*n*Math.cos(1.3*l),lidL:o,lidR:o}}}},k=Object.keys(A),S=k.filter(e=>A[e].wake),O=k.filter(e=>!A[e].wake),_=(e,t,r,a)=>e+(t-e)*(1-Math.exp(-a/r)),L=e=>Math.abs(e.x)+Math.abs(e.y)+Math.abs(e.rot)+Math.abs(e.yaw)+Math.abs(e.pitch)+Math.abs(e.spin)+Math.abs(e.sx-1)+Math.abs(e.sy-1)<1e-4;function E(e,t){e.parts.length>=2200||e.parts.push({...t,age:0,seed:60*Math.random()})}let T={rise:0,riseT:1,splay:0,wall:0,home:0,peel:0,side:0,hitAt:-1,peeled:!1},z={x:0,y:0},R={v:0,kind:0,hold:0,covers:!1},N=(e,t,r)=>e+(t-e)*r,I=(e,t,r)=>{let a,n=(a=(r-e)/(t-e))<0?0:a>1?1:a;return n*n*(3-2*n)};function F(e,t=!1,r=0){let a,n=t=>f(e,7*t+3,1),l=.5>n(3)?-1:1,o=(.26+.18*n(2))*l,i=[0,0],s=e=>[l*e*(.15+.07*n(9)),(n(10)-.5)*.07],h=e=>({ms:.62+.2*n(11),tilt:0,gaze:i,blink:[e,e+.22]});switch(t?[0,2,3,4][4*n(1)|0]:5*n(1)|0){case 0:a=[{ms:1.3+.9*n(4),tilt:0,gaze:i,snap:.01},{ms:1.4+.9*n(5),tilt:0,gaze:i},h(.12),{ms:1.2+.9*n(6),tilt:0,gaze:s(1),snap:.1},{ms:1.3+.9*n(7),tilt:0,gaze:i,snap:.12},{ms:.95,tilt:0,gaze:i,blink:[.1,.3],blink2:.5>n(8)?[.44,.64]:null},{ms:1.6+1.2*n(12),tilt:0,gaze:i}];break;case 1:a=[{ms:.9+.5*n(4),tilt:0,gaze:i,snap:.01},{ms:.8+.5*n(5),tilt:0,gaze:i},h(.1),{ms:.7+.6*n(6),tilt:0,gaze:i}];break;case 2:a=[{ms:1.2+.8*n(4),tilt:0,gaze:i,snap:.01},{ms:1.6+1.2*n(13),tilt:o,gaze:i,snap:.9},{ms:.8,tilt:o,gaze:i,blink:[.14,.36]},{ms:1.8+1.1*n(5),tilt:0,gaze:i,snap:.75},{ms:1.5+1.3*n(6),tilt:0,gaze:i}];break;case 3:a=[{ms:.9+.5*n(4),tilt:0,gaze:i,snap:.01},{ms:1.1+.7*n(5),tilt:0,gaze:s(1.1),snap:.09},{ms:1.4+.8*n(6),tilt:0,gaze:i,snap:.12},{ms:1,tilt:0,gaze:i,blink:[.08,.28],blink2:[.42,.62]},{ms:1.4+1.2*n(7),tilt:0,gaze:i}];break;default:a=[{ms:1.2+.7*n(4),tilt:0,gaze:i,snap:.01},{ms:1.2+.7*n(5),tilt:0,gaze:i},{ms:1+.6*n(6),tilt:0,gaze:s(1),snap:.09},{ms:.9+.5*n(7),tilt:0,gaze:s(-.85),snap:.09},{ms:1.2+.8*n(8),tilt:0,gaze:i,snap:.12},h(.12),{ms:1.3+ +n(12),tilt:0,gaze:i}]}let u=0;for(let e of a)u+=e.ms;for(let e=20;u<r;e+=2){let t=2.6+1.8*n(e);a.push({ms:t,tilt:0,gaze:i,blink:.7>n(e+1)?[.4,.62]:void 0}),u+=t}return{beats:a,total:u}}let P={gaze:[0,0],tilt:0,lid:1};var $=e.i(877267);let j=(e,t,r)=>e+(t-e)*r,C=(e,t,r,a)=>a<.5?e+(t-e)*a*2:t+(r-t)*(a-.5)*2;function V(e,t,r){return .58+.07*Math.sin(.35*r)+(g(.011*e+.04*r,.011*t-.03*r,.22*r,2)-.5)*.6}function D(){let e={face:0,hush:0,dim:0,ink:0,reach:0,few:0,narrow:0,hard:0,haze:0,sigh:{live:!1,t0:0,dir:Math.PI/2,seed:0,now:0,front:0},ways:{jumble:new Float32Array(257),reach:new Float32Array(257),gush:new Float32Array(257),gust:new Float32Array(257),lobe:new Float32Array(257)}};return q(e),e}function q(e){let t=j(.52,1,e.face);e.ink=j(1.52,2.5,e.face),e.reach=j(2.2,4,e.face),e.haze=j(.27,.57,e.face),e.few=C(4.2,1.9,1,t),e.narrow=C(.3,.17,.04,t),e.hard=C(2.6,2,1.25,t)}function B(e,t){return(0,d.smoothstep)(0,.05,e)*Math.max(.18,Math.exp(-Math.max(0,e-.5)/.3))*(.6+.8*g(5*e+t,1.7,2.9,2))}function H(e,t,r,a,n,l,o=!0){let i=e.sigh;o&&l>=0&&l<.3&&!i.live&&(i.live=!0,i.t0=t-l,i.dir=Math.PI/2+(.5>Math.random()?-1:1)*(.7+(Math.random()-.5)*.3),i.seed=50*Math.random());let s=(t-i.t0)*.65;i.live&&s>2.4&&(i.live=!1),i.now=i.live?B(s,i.seed)*(1-(0,d.smoothstep)(.855,2.4,s))*1.5*(0,d.smoothstep)(0,.25,s):0,i.front=.55+1.53*(1-Math.exp(-Math.max(0,s)/.6))+.18*Math.max(0,s),e.dim=Math.max(n,e.dim*Math.exp(-r/2.2));let h=l>=0?a*(0,d.smoothstep)(.65,.65+.2,l):0,u=h>e.face?2.05/2.3:.5;e.face+=(h-e.face)*(1-Math.exp(-r/u)),q(e);let c=e.ways;for(let e=0;e<=256;e++){let r=-Math.PI+e/256*Math.PI*2,a=Math.cos(r),n=Math.sin(r);c.jumble[e]=(g(2.2*a+11,2.2*n,.35*t,2)-.5)*220,c.reach[e]=Math.max(0,g(1.1*a+5,1.1*n,.12*t,2)-.22),c.gush[e]=(0,d.smoothstep)(.5,.78,g(1.6*a+3,1.6*n,.5*t,2)),c.gust[e]=.4+1.2*g(1.2*a+7,1.2*n,.4*t,2),i.live&&(c.lobe[e]=1.53*(.5+ +g(1.4*a+i.seed,1.4*n,.3*s,2)))}}function U(e,t){let r=(t+Math.PI)/(2*Math.PI)*256,a=Math.min(255,Math.max(0,Math.floor(r)));return e[a]+(e[a+1]-e[a])*(r-a)}function W(e,t,r,a,n,l,o){let i=e.px??e.dx,s=e.py??e.dy,h=e.sx??e.dx,u=e.sy??e.dy,c=.018*o.g*Math.min(1,e.dist/a)**2*a,f=Math.hypot(i-o.x*c,s-o.y*c),m=1-(0,d.smoothstep)(.55*a,a,f),p=m>0?(V(e.dx,e.dy,t)+r)*m:0;l.dim>.002&&(p*=1-.16*l.dim);let y=1-l.hush,x=Math.hypot(h-o.x*c,u-o.y*c);if(l.haze>0&&y>0&&x<1.32*a){let e=l.haze*y*(1-.39*l.dim)*(1-(0,d.smoothstep)(.9*a,1.32*a,x))*n;if(1.55*e>p){let r=e*(.45+1.1*M(.012*h+11,.012*u,.15*t,2));r>p&&(p=r)}}let w=.55+Math.max(0,.92*l.ink-.55)*(0,d.smoothstep)(.92*a,1.14*a,x);if(y>0&&w*n*y>p){let e=function(e,t,r,a,n,l,o,i,s){let h;if(n>a*(o.reach+.2+.54))return 0;let u=.087*i.g*n,c=e-i.x*u,f=t-i.y*u,m=Math.hypot(c,f)||1,p=Math.atan2(f,c),y=o.few/(1+.006*n),x=g(c/m*y,f/m*y,.008*(n-66*r-U(o.ways.jumble,p)),3),w=function(e,t){let r=e.sigh;if(!r.live||r.now<=.01)return 0;let a=t-r.dir;return a-=Math.round(a/(2*Math.PI))*Math.PI*2,r.now*(1-(0,d.smoothstep)(1.3608,3.024,Math.abs(a)))}(o,p),b=o.sigh.front,v=w>0?w*(1-(0,d.smoothstep)(b-.35,b+.05,n/a)):0,A=w>0?w*((h=b-1)<0?0:h>1?1:h):0,k=a*(1.05+(o.reach-1.05)*Math.min(1,2.4*U(o.ways.reach,p))+.54*A),S=(0,d.smoothstep)(.55*a,k,n),O=.4+o.narrow*S;if(1.2*x<=O)return 0;let _=x*(.8+.4*M(.02*e+3,.02*t,.3*r,2)),L=(3.2*Math.max(0,_-O))**o.hard;return L<=0?0:(L*=1+.9*U(o.ways.gush,p)+1.2*v,o.dim>.002&&(L*=1-.65*o.dim),Math.min(s,L*(1-S)**1.25*(.6+.65*(i.g*U(o.ways.gust,p)))*o.ink)*l)}(h,u,t,a,x,n,l,o,w)*y;e>p&&(p=e)}if(n<.98&&p>0){let t=M(.015*e.dx-7,.015*e.dy+3,11.4,2);p*=(0,d.smoothstep)(t-.34,t+.34,1.7*n-.24)}return p}function K(e,t,r,a){let n=a.sigh;if(!n.live)return 0;let l=(t-n.t0)*.65,o=e.dist/r-.55;if(o<=0)return 0;let i=Math.atan2(e.py??e.dy,e.px??e.dx)-n.dir;if(Math.abs(i-=Math.round(i/(2*Math.PI))*Math.PI*2)>3.141592653589793)return 0;let s=U(a.ways.lobe,i);if(o>s*(1-Math.exp(-l/.6))+.18*l)return 0;let h=-.6*Math.log(1-Math.min(o/s,.97));for(let e=0;e<3;e++){let e=Math.exp(-h/.6);h-=(s*(1-e)+.18*h-o)/(s*e/.6+.18)}let u=l-h;if(h<0||u<0||u>1.9)return 0;let c=B(u,n.seed),f=1-(0,d.smoothstep)(.855,2.4,l);if(c*f<.01)return 0;i+=(g(1.8*o,2.2*u,.3*t,2)-.5)*1.1*(.3+h);let m=Math.min(Math.PI,(.95+1.45*(1-Math.exp(-h/.45)))*1.8*(.55+.9*g(2.2*o+n.seed,1.7*u,3.3,2))),p=1-(0,d.smoothstep)(.55*m,m,Math.abs(i));if(p<=0)return 0;let y=1+.4*h,x=(3*Math.max(0,g(2.2*i/y+4,3*u+.6*o/y,5.1,3)-.32))**1.4,w=1-(0,d.smoothstep)(.15,.9,o)*(1-Math.min(1,.45+x)),b=1/(1+(o/.81)**2),v=(0,d.smoothstep)(.25,.65,M(.014*e.dx+n.seed,.014*e.dy,.9*u+.2*t,2)),A=1-.65*(0,d.smoothstep)(.1,.7,o)*(1-v);return Math.min(.95,V(e.dx,e.dy,t)*c*f*p*w*b*A*3.5)}e.s(["createSmoke",0,D,"restValue",0,W,"sighValue",0,K,"stepSmoke",0,H],732061);let J=(e,t,r)=>{let a,n=(a=(r-e)/(t-e))<0?0:a>1?1:a;return n*n*(3-2*n)},G=[{letters:["0","1","7","4","9","2","8","3","5","6"],emoji:["🤍","🖤","⚪","⚫","☁️","🦢","🐧","🐼","🎱","🕊️"]},{letters:["/","\\","|","_","-","~","^","<",">","="],emoji:["🌑","🌒","🌓","🌔","🌕","🌖","🌗","🌘","🌙","🌚"]},{letters:["(",")","[","]","{","}",":",";","*","+"],emoji:["❄️","🫧","💧","🌊","🧊","🐳","🐟","🪸","🌌","🔮"]},{letters:[".",",","'","`",":",'"',";","·","*","^"],emoji:["🗿","💬","🖨️","📀","🗝️","🧷","📎","🖇️","🧮","🔭"]}];function X(e,t,r,a,n){let l=Math.floor(r/a);return Q(e,t,r,l*a+.6+f(l,11,5)*a*.45,n*(.6+3.4*f(l,17,9)**2),l)}function Y(e){let t=e;for(let e=0;e<400;e++,t++){let e=1+t%G.length;if(.25>f(t,19,7)&&(2===e||3===e)&&.35>f(t,3,2))break}return t}function Q(e,t,r,a,n,l){let o=r-a;if(o<0||o>n)return 0;let i=J(0,1.7+2.6*f(l,3,2),o),s=J(n-(1.5+2.8*f(l,4,3)),n,o),h=1+(4*f(l,19,7)|0);for(let r=0;r<h;r++){let a=(f(7*l+r,23,1)-.5)*300,n=(f(7*l+r,29,2)-.5)*300,o=e-a,h=t-n,u=Math.hypot(o,h),c=470*i*(.4+1.1*g(.011*o+l,.011*h,3.3*r,3));if(u>=c||s>.85*g(.016*o-4,.016*h+6,5.1*r+1,2)+.1)continue;let d=1-u/Math.max(1,c);if(!(g(.05*e+r,.05*t,2.7*l,2)>.95*d+.34))return 1+(l+r)%G.length}return 0}e.s(["WASH_SETS",0,G,"wakingSlot",0,Y,"washAt",0,X,"washOnce",0,Q],298293);let Z=1e3/240,{fontSize:ee,density:et}=u.ASCII_FACE,er=e=>`700 ${e}px ui-monospace,SFMono-Regular,Menlo,monospace`,ea=(e,t,r)=>er(e*(.5+.5*(0,d.emojiWeight)(t,r))),en=[235,235,235];function el(e){let t=[[],[],[],[],[]],r=0;for(let a of Array.from(e.toUpperCase())){let e=d.LETTERS[a];if(e){if(t[0].length)for(let e of t)e.push(-1);e.forEach((e,a)=>{for(let n of e)t[a].push("#"===n?r:-1)})," "!==a&&r++}}return t}let eo=el("ERROR");function ei(e,t,r,a,n){return e+(t-e)*Math.min(1,n/(t>e?r:a))}function es(e,t,r,a,n,l){let o=Math.floor(t/(a*l)+e[0].length/2),i=Math.floor(r/(n*l)+e.length/2);return i<0||i>=e.length?-1:e[i][o]??-1}let eh=[...G,{letters:["~","s","S","§","~","∫","s","≈","S","~"],emoji:["💨","☁️","🌫️","💨","☁️","🫧","💭","💨","☁️","🌫️"]},{letters:["*",":","'",".","*",",",":","`","*",";"],emoji:null}],eu=G.length,ec={gap:1,size:1.1},ed=e=>e<0?0:e>1?1:e;function ef(e,t,r,a){let n=e=>Math.max(1,Math.min(3,Math.floor(625.6/(e[0].length*t)),Math.floor(421.6/(e.length*r)))),l=el(a),o=3>n(l)?function(e){let t=Array.from(e.trim()),r=t.flatMap((e,t)=>" "===e?[t]:[]);if(!r.length)return null;let a=t.length/2,n=r.reduce((e,t)=>Math.abs(t-a)<Math.abs(e-a)?t:e),l=el(t.slice(0,n).join("")),o=el(t.slice(n+1).join(""));if(!l[0].length||!o[0].length)return null;let i=Math.max(-1,...l.flat())+1,s=Math.max(l[0].length,o[0].length),h=(e,t)=>{let r=Math.floor((s-e.length)/2);return[...Array(r).fill(-1),...e.map(e=>e<0?e:e+t),...Array(s-e.length-r).fill(-1)]},u=()=>Array(s).fill(-1);return[...l.map(e=>h(e,0)),u(),u(),...o.map(e=>h(e,i))]}(a):null,i=o&&n(o)>n(l)?o:l,s=n(i),h=0;for(let a of e)a.word=es(i,a.dx,a.dy,t,r,s),h=Math.max(h,a.word+1);return h}function em({className:e,mode:t="idle",size:r=680,color:a=en,getSpectrum:n,word:l=null,waking:o=!1}){let i=(0,h.useRef)(null),f=(0,h.useRef)(null),m=(0,h.useRef)([]),M=(0,h.useRef)(null),x=(0,h.useRef)({cur:[...a],target:a}),w=(0,h.useRef)(0),v=(0,h.useRef)(n);v.current=n;let k=(0,h.useRef)({phrase:0,bob:0,bobVel:0,amp:[,,,,].fill(0),phase:Array.from({length:4},(e,t)=>2.1*t),spin:0,rings:[]}),j=(0,h.useRef)({mode:t,start:0}),C=(0,h.useRef)(performance.now()),V=(0,h.useRef)(90*Math.random()).current,q=(0,h.useRef)({scale:.3,lift:0,gather:0,comet:0,speech:0,err:0,word:0}),B=(0,h.useRef)(null),U=(0,h.useRef)({cw:1,ch:1}),J=(0,h.useRef)({script:null,from:0,until:0}),G=(0,h.useRef)(null),el=(0,h.useRef)(o);return(0,h.useEffect)(()=>{let e=i.current;if(!e)return;let t=.95*ee/et,a=1.25*ee/et,n=680/r,l=t*n,o=a*n,s=Math.max(1,Math.floor(625.6/(eo[0].length*l)));w.current=r,U.current={cw:l,ch:o};let h=[],u=Math.ceil(r/t),c=Math.ceil(r/a),p=new Int32Array(u*c).fill(-1);for(let e=0;e<c;e++)for(let i=0;i<u;i++){let c=i*t,f=e*a,m=(c-r/2)*n,g=(f-r/2)*n,M=Math.hypot(m,g),y=es(eo,m,g,l,o,s);y<0&&M>328||(p[e*u+i]=h.length,h.push({x:c+t/2,y:f+a/2,dx:m,dy:g,dist:M,angle:Math.atan2(g,m),cos:M>0?m/M:1,sin:M>0?g/M:0,seed:(0,d.hash)(i,e),grain:(0,d.hash)(5.7*i+19,2.3*e+53),gap:.05+.3*(0,d.hash)(7.3*i+11,3.1*e+5),speck:(0,d.hash)(4.1*i+23,6.3*e+41),letter:y,word:-1}))}m.current=h,G.current={cells:h,cols:u,rows:c,cw:l,ch:o,half:340,at:p,field:328},B.current&&ef(h,l,o,B.current.text),M.current={byLevel:Array.from({length:d.LEVELS},()=>new Int32Array(h.length)),inLevel:new Int32Array(d.LEVELS),glyph:Array(h.length),fast:new Float32Array(h.length),slow:new Float32Array(h.length),wasLevel:new Int8Array(h.length).fill(-9),turn:new Int32Array(h.length).fill(-9),pick:new Int32Array(h.length),pool:new Int8Array(h.length),poolFor:new Float32Array(h.length)};let g=Math.min(2,window.devicePixelRatio||1);e.width=r*g,e.height=r*g,e.style.width=`${r}px`,e.style.height=`${r}px`;let y=e.getContext("2d");return y&&(y.setTransform(g,0,0,g,0,0),y.textAlign="center",y.textBaseline="middle","emoji"===(0,$.faceGlyphs)()&&function(e,t,r){if(0===r.length)return;let a=new Set(d.EMOJI_POOL);for(let e of eh)for(let t of e.emoji??[])a.add(t);let n=d.LEVELS-1,l=[];for(let e=1;e<=n;e++)l.push(ea(t,e,n));for(let t of l){e.font=t;let n=0;for(let t of a){let a=r[97*n++%r.length];e.fillText(t,a.x,a.y)}}e.clearRect(0,0,e.canvas.width,e.canvas.height)}(y,ee,h),f.current=y),()=>{y?.clearRect(0,0,r,r),m.current=[],G.current=null,M.current=null}},[r]),(0,h.useEffect)(()=>{x.current.target=a},[a]),(0,h.useEffect)(()=>{j.current.mode!==t&&(j.current={mode:t,start:.001*performance.now()})},[t]),(0,h.useEffect)(()=>{if(!l||Date.now()-l.at>(l.hold??3.4)*1e3)return;let{cw:e,ch:t}=U.current,r=performance.now();if(B.current={text:l.text,start:.001*r,letters:ef(m.current,e,t,l.text),hold:l.hold??3.4},r-C.current<600){let e=q.current;e.word=1,e.scale=0}},[l]),(0,h.useEffect)(()=>{let e,t=0,r=(0,c.createVoiceFollower)(),a="letters"===(0,$.faceGlyphs)(),n=a?.4:.264,l=D(),o=(e=new Float32Array(0),{deck:[],lastWake:null,head:{...b},smoke:{...b},want:{hush:0,crust:0},doing:{hush:0,crust:0},yawSlow:0,yawV:0,moved:!1,turned:!1,hx:e,hy:e,hz:e,px:e,py:e,pd:e,sx:e,sy:e,crust:0,crustSeed:40*Math.random(),crustWas:new Uint8Array(0),crusted:0,crustedNow:0,parts:[],live:!1,calm:1,thick:e,top:e,kind:new Int8Array(0),keep:e}),i={dx:0,dy:0,dist:0,px:0,py:0,sx:0,sy:0},s=Array(c.SPECTRUM_BANDS).fill(0),h=.001*performance.now(),C=0,U=0,et=el.current?{slot:Y(4e3*Math.random()|0)}:null;if(et){let e=F(1e6*Math.random()|0,!0);J.current={script:e,from:.15,until:1.4+e.total+1.5}}let en=-1/0,eo=e=>{var c,$;if(e-en<1e3/u.ASCII_FACE.fps-Z){t=requestAnimationFrame(eo);return}en=e;let D=.001*e,Y=Math.min(.05,Math.max(0,D-h));h=D;let el=f.current,es=M.current,ef=G.current;if(!el||!es||!ef){t=requestAnimationFrame(eo);return}let em=w.current;es.inLevel.fill(0);let ep=v.current?.();if(!ep||ep.length<2){for(let e=0;e<s.length;e++){let t=.5*Math.sin(1.7*D+1.7*e)+.3*Math.sin(.8*D+.6*e)+.2*Math.sin(3*D+2.9*e);s[e]=.5*t+.5}ep=s}let eg=k.current,eM=Math.max(1,Math.round(60*Y)),ey=r.read(ep,Y);eg.phrase=ey.phrase,ey.onset>0&&(eg.bobVel+=.06*ey.onset,eg.rings.push({born:D,power:ey.onset}),eg.rings.length>5&&eg.rings.shift());for(let e=0;e<eM;e++)eg.bobVel+=-(.012*eg.bob)-.09*eg.bobVel,eg.bob+=eg.bobVel;C+=Y;for(let e=0;e<4;e++){let t=Math.floor(e*ey.bands.length/4),r=Math.max(t+1,Math.floor((e+1)*ey.bands.length/4)),a=0;for(let e=t;e<r;e++)a+=ey.bands[e];a/=r-t;let n=.7+.6*(0,d.hash)((.9*D|0)+31*e,e);eg.amp[e]+=(a*n-eg.amp[e])*(1-(1-(.05+.02*e))**eM),eg.phase[e]+=Y*(.9+.5*e)*(e%2?-1:1)}for(eg.spin+=Y*(1.1+.9*eg.phrase);eg.rings.length>0&&D-eg.rings[0].born>.7;)eg.rings.shift();let ex=j.current,ew=B.current,eb=ew?D-ew.start:0,ev=null!==ew&&"error"!==ex.mode&&eb<ew.hold+.08*ew.letters+.45+.35+.9,eA=function(e,t){let r={scale:1,lift:0,gather:0,comet:0,speech:0,err:0,word:0};switch(e){case"idle":return r;case"connecting":{let e=1-Math.exp(-t/1.3);return{...r,scale:.45+.55*e,lift:.06*e,gather:1}}case"speaking":return{...r,speech:1};case"working":return{...r,scale:0,comet:1};case"ending":return{...r,scale:0};case"error":return{...r,scale:0,err:1}}}(ex.mode,D-ex.start);ev&&(eA.word=1,null!==ew&&eb<ew.hold&&(eA.scale=0,eA.lift=0,eA.gather=0,eA.comet=0,eA.speech=0));let ek=q.current;ek.scale=ei(ek.scale,eA.scale,.45,"ending"===ex.mode?.4:.7,Y),ek.lift=ei(ek.lift,eA.lift,.22,.4,Y),ek.gather=ei(ek.gather,eA.gather,.3,.95,Y),ek.comet=ei(ek.comet,eA.comet,.45,.9,Y),ek.speech=ei(ek.speech,eA.speech,.5,.75,Y),"error"===ex.mode&&(ek.err<=.01&&(U=0),U+=Y),ek.err=ei(ek.err,eA.err,.5,.6,Y),ek.word=ei(ek.word,eA.word,.35,.5,Y);let eS=ek.err>.5,eO=ek.word>.5,e_=y(C,V),eL=Math.exp(-Y/.085),eE=Math.exp(-Y/.8),eT=ek.scale*(1-ek.speech)*(1-ek.comet)*(1-ek.gather),ez=null,eR=0,eN=0,eI=0,eF=-1,eP=null,e$=-1,ej=J.current,eC=eT>.4&&!eS&&!eO,eV=(0,d.smoothstep)(.4,.75,eT)*(1-(0,d.smoothstep)(0,.5,ek.word));if(!eC&&void 0===ej.cut&&ej.script&&C>ej.from&&C<ej.until&&(ej.cut=C),eC&&void 0===ej.cut&&C>ej.until){let e=0===ej.until,t=function(e){let[t,r]=function(e){let t=e.deck;if(!t.length){for(let e of S)for(let r of O)t.push([e,r]);for(let r=0;r<200;r++){for(let e=t.length-1;e>0;e--){let r=Math.random()*(e+1)|0;[t[e],t[r]]=[t[r],t[e]]}let r=t[t.length-1][0]!==e.lastWake;for(let e=1;r&&e<t.length;e++)r=t[e][0]!==t[e-1][0];if(r)break}}let r=t.pop()??[S[0],O[0]];return e.lastWake=r[0],r}(e),a=11*(.75+.5*Math.random()),n=Math.max(Math.max(A[t].len,1.5)+.8,a-A[r].len),l=(e,t)=>({key:e,at:t,m:.5>Math.random(),thrown:0,owed:0});return{items:[l(t,0),l(r,n)],open:n+A[r].len+.8*!A[r].hold}}(o);ej.plan=t,ej.script=F(1e3*C|0,!1,t.open),ej.from=C+(e?.15:17*(.55+.9*Math.random())),ej.until=ej.from+1.25+Math.max(ej.script.total,t.open)+1.5}if(eC||void 0!==ej.cut){let e=C-ej.from,t=ej.until-ej.from;if(ej.script&&e>0){let r=(0,d.smoothstep)(.4,.75,eT),a=t-1.5-.3,n=void 0===ej.cut?ed((e-a)/1.35):Math.max(ed((e-a)/1.35),ed((C-ej.cut)/.4));eR=(0,d.smoothstep)(.75,1.05,e);let l=function(e,t){let r=0,a=[0,0],n=0;for(let l of e.beats){let e=t-r;if(e<l.ms){let t=I(0,l.snap??.12,e),r=1;for(let t of[l.blink,l.blink2])!t||e<=t[0]||e>=t[1]||(r*=Math.abs(Math.cos(Math.PI*((e-t[0])/(t[1]-t[0]))))**.7);return{gaze:[N(a[0],l.gaze[0],t),N(a[1],l.gaze[1],t)],tilt:N(n,l.tilt,t),lid:r}}r+=l.ms,a=l.gaze,n=l.tilt}return P}(ej.script,Math.max(0,e-.875)),o=l.lid*(0,d.smoothstep)(.75,1.13,e),i=(1-n)**2.2;ez={...l,gaze:[l.gaze[0],l.gaze[1]+.04*(0,d.smoothstep)(0,.65,n)],lid:o*i,fall:o*(1-i)*.3999999999999999},eN=eR*(1-n)*r,eI=(0,d.smoothstep)(.1,.9,n)*r,r>.5&&(eF=e-.75),void 0===ej.cut?(eP=ej.plan??null,e$=e-.75):n>=1&&(ej.until=C,ej.cut=void 0,ez=null,eR=0)}}let eD=170*1.08*Math.max(.02,ek.scale);ez=function(e,t,r,a,n,l,o,i,s){var h;h=t.cells.length,e.hx.length!==h&&(e.hx=new Float32Array(h),e.hy=new Float32Array(h),e.hz=new Float32Array(h),e.px=new Float32Array(h),e.py=new Float32Array(h),e.pd=new Float32Array(h),e.sx=new Float32Array(h),e.sy=new Float32Array(h),e.crustWas=new Uint8Array(h),e.thick=new Float32Array(h),e.top=new Float32Array(h),e.kind=new Int8Array(h),e.keep=new Float32Array(h),e.parts.length=0,e.live=!1),e.calm=s,e.crusted=e.crustedNow,e.crustedNow=0;let u=b,c=e.want;if(c.hush=0,c.crust=0,n&&l>-1){let s={...b},h=!1;for(let r of n.items){let n=A[r.key],o=l-r.at;if(n.fx?.(o,r.m,c,e,t,r,a,i),o<(n.wake?-.8:0)||!n.hold&&o>n.len+.6)continue;let u=n.pose(o,r.m);u!==b&&(h=!0,s.x+=u.x,s.y+=u.y,s.rot+=u.rot,s.yaw+=u.yaw,s.pitch+=u.pitch,s.spin+=u.spin,u.spin&&(s.axis=u.axis),s.gx+=u.gx,s.gy+=u.gy,s.sx*=u.sx,s.sy*=u.sy,s.lidL*=u.lidL,s.lidR*=u.lidR,s.size*=u.size)}if(o&&l>=0){let e;s.yaw+=.08*(g(.13*r+3.1,1.7,.4,2)-.5)*2*(0,d.smoothstep)(0,1.2,l)*((e=o.lid)<0?0:e>1?1:e),h=!0}h&&(u=s)}let f=e.doing;f.hush=_(f.hush,c.hush,.15,a),f.crust=_(f.crust,c.crust,.1,a),e.crust=f.crust;let m=e.head,M=m.yaw,y=u!==b?.045:s<.99?.3:.6;m.spin=u.spin+Math.atan2(Math.sin(m.spin-u.spin),Math.cos(m.spin-u.spin)),u.spin&&(m.axis=u.axis),m.x=_(m.x,u.x,y,a),m.y=_(m.y,u.y,y,a),m.rot=_(m.rot,u.rot,y,a),m.yaw=_(m.yaw,u.yaw,y,a),m.pitch=_(m.pitch,u.pitch,y,a),m.spin=_(m.spin,u.spin,y,a),m.sx=_(m.sx,u.sx,y,a),m.sy=_(m.sy,u.sy,y,a),e.yawV=(m.yaw-M)/Math.max(a,.001);let x=e.smoke;e.yawSlow=_(e.yawSlow,m.yaw,.3,a);let w=1-Math.exp(-a/.12);return(x.x+=(m.x+.25*Math.sin(e.yawSlow)-x.x)*w,x.y+=(m.y-x.y)*w,x.rot+=(m.rot-x.rot)*w,x.sx+=(m.sx-x.sx)*w,x.sy+=(m.sy-x.sy)*w,e.moved=!(L(m)&&L(x)),e.turned=Math.abs(m.yaw)+Math.abs(m.pitch)+Math.abs(m.spin)>1e-4,e.moved&&function(e,t,r){let a=t.cells,n=e.head;{let t=Math.cos(n.rot),l=Math.sin(n.rot),o=n.x*r,i=n.y*r,s=e.turned?function(e){let t=Math.cos(e.yaw),r=Math.sin(e.yaw),a=Math.cos(e.pitch),n=Math.sin(e.pitch),l=[t,r*n,r*a,0,a,-n,-r,t*n,t*a];if(!e.spin)return l;let o=Math.sin(e.axis),i=Math.cos(e.axis),s=Math.cos(e.spin),h=Math.sin(e.spin),u=1-s,c=[s+o*o*u,o*i*u,i*h,o*i*u,s+i*i*u,-o*h,-i*h,o*h,s],d=Array(9);for(let e=0;e<3;e++)for(let t=0;t<3;t++)d[3*e+t]=c[3*e]*l[t]+c[3*e+1]*l[3+t]+c[3*e+2]*l[6+t];return d}(n):null,h=r*r;for(let r=0;r<a.length;r++){let u=a[r].dx-o,c=a[r].dy-i,d=(u*t+c*l)/n.sx,f=(-u*l+c*t)/n.sy;if(e.px[r]=d,e.py[r]=f,e.pd[r]=Math.hypot(d,f),s){let t=Math.sqrt(Math.max(0,h-d*d-f*f));e.hx[r]=s[0]*d+s[3]*f+s[6]*t,e.hy[r]=s[1]*d+s[4]*f+s[7]*t,e.hz[r]=s[2]*d+s[5]*f+s[8]*t}else e.hx[r]=d,e.hy[r]=f,e.hz[r]=1}}let l=e.smoke,o=Math.cos(l.rot),i=Math.sin(l.rot),s=l.x*r,h=l.y*r;for(let t=0;t<a.length;t++){let r=a[t].dx-s,n=a[t].dy-h;e.sx[t]=(r*o+n*i)/l.sx,e.sy[t]=(-r*i+n*o)/l.sy}}(e,t,i),function(e,t,r,a){let n=e.parts;if(!n.length&&!e.live)return;e.calm<.02&&(n.length=0),e.thick.fill(0),e.top.fill(0),e.keep.fill(0);let l=0;for(let o of n){if(o.age+=a,o.age>=o.life)continue;let i=o.x,s=o.y,h=o.keep**a;o.vx*=h,o.vy*=h,o.vy+=(o.fall-o.rise*Math.min(1,o.age/o.riseT))*a,o.splay&&(o.vx+=(0===o.vx?o.seed%2<1?-1:1:Math.sign(o.vx))*o.splay*Math.min(1,o.age/.8)*a),o.wall&&function(e,t){let r=Math.hypot(e.x,e.y);if(r>.94*e.wall){let a=e.x/r,n=e.y/r,l=-n,o=e.vx*a+e.vy*n;if(!e.side){let t=e.vx*l+e.vy*a;e.side=Math.abs(t)>1?Math.sign(t):e.seed%2<1?-1:1}r>e.wall&&o>0&&(e.vx+=-o*a+e.side*o*.85*l,e.vy+=-o*n+e.side*o*.85*a);let i=120*Math.max(0,1-e.age/3.2);e.vx+=e.side*l*i*t,e.vy+=e.side*a*i*t,r>e.wall&&(e.x-=a*(r-e.wall)*.5,e.y-=n*(r-e.wall)*.5),e.hitAt<0&&(e.hitAt=e.age)}if(e.hitAt>=0&&e.age-e.hitAt>e.peel&&r>1){e.peeled||(e.peeled=!0,e.rise=Math.min(e.rise,14));let a=1.2*(r-e.home)*Math.min(1,(e.age-e.hitAt-e.peel)/.6);e.vx-=e.x/r*a*t,e.vy-=e.y/r*a*t}}(o,a);let u=0,c=0;if(o.curl){let e=o.curl*Math.min(1,o.age/.4);!function(e,t,r){let a=.011*e,n=.011*t,l=.3*r;z.x=(p(a,n+.25,l)-p(a,n-.25,l))/.5,z.y=-(p(a+.25,n,l)-p(a-.25,n,l))/.5}(o.x+7*o.seed,o.y,r),u=z.x*e,c=z.y*e}o.x+=(o.vx+u)*a,o.y+=(o.vy+c)*a;let f=o.a*(1-(o.age/o.life)**o.fadeP)*(0,d.smoothstep)(0,.06,o.age)*e.calm,m=o.r0+(o.r1-o.r0)*(1-Math.exp(-o.age/o.grow)),g=Math.min(4,Math.max(1,Math.ceil(Math.hypot(o.x-i,o.y-s)/7)));for(let r=1;r<=g;r++)!function(e,t,r,a,n,l,o,i){let s=Math.min(70,n+9),h=(r+t.half)/t.cw,u=(a+t.half)/t.ch,c=s/t.cw,d=s/t.ch,f=Math.max(0,Math.floor(h-c)),m=Math.min(t.cols-1,Math.ceil(h+c)),p=Math.max(0,Math.floor(u-d)),g=Math.min(t.rows-1,Math.ceil(u+d)),M=1/(s*s),y=t.cells;for(let n=p;n<=g;n++)for(let s=f;s<=m;s++){let h=t.at[n*t.cols+s];if(h<0)continue;let u=y[h].dx-r,c=y[h].dy-a,d=1-(u*u+c*c)*M;if(d<=0)continue;let f=l*d*d;e.thick[h]+=f-e.thick[h]*f,f>e.top[h]&&(e.top[h]=f,e.kind[h]=o),i>e.keep[h]&&(e.keep[h]=i)}}(e,t,i+(o.x-i)*r/g,s+(o.y-s)*r/g,m,f/Math.sqrt(g),o.kind,o.hold);n[l++]=o}n.length=l,e.live=l>0}(e,t,r,a),o&&u!==b)?{...o,gaze:[o.gaze[0]+u.gx,o.gaze[1]+u.gy],lids:[u.lidL,u.lidR],size:u.size}:o}(o,ef,D,Y,eP,e$,ez,eD,eV),l.hush=o.doing.hush,H(l,D,Y,eN,eI,eF,null===eP||null!==(c=eP)&&!0===A[c.items[0].key].sighs);let eq=o.moved,eB=o.live||o.crust>.004||o.crusted>0,eH=m.current;for(let e=0;e<eH.length;e++){let t=eH[e];eq?(i.dx=o.hx[e],i.dy=o.hy[e],i.px=o.px[e],i.py=o.py[e],i.dist=o.pd[e],i.sx=o.sx[e],i.sy=o.sy[e]):(i.dx=i.px=i.sx=t.dx,i.dy=i.py=i.sy=t.dy,i.dist=t.dist);let r=function(e,t,r,a,n,l,o,i,s,h){let u,c,f,m,p=o.scale>.02?W(t,r,o.lift,170*1.08*o.scale,o.scale,s,h)*(1-.6*o.speech):0;return o.gather>.01&&(p+=function(e,t,r){let a=170*r;if(e.speck>=.55||e.dist<.8*a)return 0;let n=Math.min(55,Math.floor((e.angle+Math.PI)/(2*Math.PI)*56)),l=(.7*t+(0,d.hash)(n,5.3))%1,o=e.dist-(a+(320-a)*(1-l)**1.25)-(e.grain-.5)*16;return Math.exp(-(o*o)/260)*(0,d.smoothstep)(0,.2,l)*(1-l)*1.1}(e,r,o.scale)*o.gather),o.comet>.01&&(p+=(c=Math.exp(-((u=e.dist-210)*u)/1100),c*Math.exp(-((m=Math.atan2(Math.sin(f=e.angle-3*r),Math.cos(f)))*m)/(m<0?2.8:.16))*o.comet)),o.speech>.01&&(p+=function(e,t,r,a){var n;let l=170+40*r.phrase+85*r.bob;for(let t=0;t<4;t++)l+=28*r.amp[t]*Math.sin((t+2)*(e.angle+r.spin)+r.phase[t]);let o=170+(((n=l)<=205?Math.max(110,n):205+30*Math.tanh((n-205)/30))-170)*a,i=(e.grain-.5)*20+20*Math.sin(5*e.angle+.9*t+6.283*e.seed)*.3,s=e.dist-(o+i),h=Math.exp(-(s*s)/800)+.5*Math.exp(-(e.dist*e.dist)/6e3);if(e.dist<o&&(h+=.22*(1-e.dist/o)**.6*(.75+.25*Math.sin(.05*e.dist-1.2*t))),e.speck<.22){let a=90*(.6+.9*e.grain);for(let n=0;n<r.rings.length;n++){let l=r.rings[n],i=t-l.born,s=e.dist-(o+6+i*a);h+=Math.exp(-(s*s)/500)*l.power*Math.max(0,1-i/.7)}}return h}(e,r,i,o.speech)*o.speech),o.err>.01&&(p+=function(e,t,r){if(e.letter<0)return 0;let a=r%9.2,n=.12*e.seed;return Math.max(0,(0,d.smoothstep)(0,1,(a-.65*e.letter-n)/.8)-(0,d.smoothstep)(0,1,(a-5.6-.5*e.letter-n)/.7))*(.86+.14*Math.sin(3.5*t+6*e.seed))}(e,r,a)*o.err),o.word>.01&&(p+=function(e,t,r,a){if(e.word<0)return 0;let n=.45*e.seed,l=(0,d.smoothstep)(0,1,(r-.11*e.word-n)/.3),o=r-a-.08*e.word-n,i=(0,d.smoothstep)(0,1,o/.35),s=.2*(1-(0,d.smoothstep)(0,1,(o-.35)/.9));return Math.max(l-i,l>.5?s*i:0)*((l>0&&l<1||i>0&&s>0)&&.35>(0,d.hash)(Math.floor(14*t)+97*e.seed,31*e.grain)?.25:1)*(.86+.14*Math.sin(3.5*t+6*e.seed))}(e,r,n,l)*o.word),p}(t,i,D,U,eb,ew?.hold??3.4,ek,eg,l,e_);if(l.sigh.live){let e=K(i,D,eD,l)*ek.scale;e>r&&(r=e)}let s=!(eS&&t.letter>=0||eO&&t.word>=0),h=0,u=0,c=!1;if(eB&&s){let t=function(e,t,r,a,n,l,o){let i=t.cells[r];if(R.v=a,R.kind=0,R.hold=0,R.covers=!1,e.crust>.004||e.crusted>0){let t=e.moved?e.hx[r]:i.dx,a=e.moved?e.hy[r]:i.dy,n=e.moved?e.pd[r]:i.dist,s=1-(0,d.smoothstep)(.92*l,1.1*l,n),h=!1;if(s>.05){let r=.12+.76*g(.022*t+e.crustSeed,.022*a,2.7,2);(h=e.crust>r)&&(R.v=.42*(.5+.9*g(.09*t,.09*a,5.5,2))*s*o,R.kind=2,R.hold=.15,e.crustedNow++)}e.crustWas[r]&&!h&&.06>Math.random()&&function(e,t,r){let a=Math.sqrt(Math.max(0,r*r-t.dist*t.dist)),n=Math.max(-260,Math.min(260,e.yawV*a*.55)),l=90+80*Math.random();E(e,{...T,x:t.dx,y:t.dy,vx:n+t.cos*l,vy:t.sin*l-30,life:1+.7*Math.random(),a:.45+.25*Math.random(),r0:3,r1:18+12*Math.random(),grow:.6,keep:.3,fall:45,curl:35,kind:2,hold:0,fadeP:1.5}),.35>Math.random()&&E(e,{...T,x:t.dx,y:t.dy,vx:n+t.cos*(120+80*Math.random()),vy:t.sin*l-50,life:.6+.4*Math.random(),a:.9,r0:1.5,r1:2.5,grow:1,keep:.4,fall:300,curl:0,kind:2,hold:0,fadeP:1})}(e,i,l),e.crustWas[r]=+!!h}if(e.live){let t=e.thick[r];if(t>.02){let a=e.kind[r],l=t*o*(.6+.8*p(.04*i.dx+.3*n,.04*i.dy-.2*n,.5*n)),s=.1+.3*i.grain;l>s?(R.v=2===a?.5*(1-Math.exp(-1.5*l)):.3+.62*Math.min(1,l),R.kind=a,R.hold=.12,l>.45&&2===a&&(R.covers=!0)):e.keep[r]>0&&l>.5*s&&(R.kind=a,R.hold=e.keep[r]*(.5+i.grain))}}return R}(o,ef,e,r,D,eD,ek.scale);r=t.v,h=t.kind,u=t.hold,c=t.covers}s&&(r*=(.66+.72*t.grain)*(.8+.4*(0,d.hash)(Math.floor(.05*t.dx+.5*D),Math.floor(.05*t.dy-.3*D))))>.3&&(0,d.hash)(31.7*Math.floor(1.6*D),613*t.seed)>.992&&(r=Math.max(r,.9));let f=!s||h?0:C<42?et?Q(t.dx,t.dy,C,1,2.9,et.slot):0:X(t.dx,t.dy,C,42,3.2);if(h?(es.pool[e]=eu+h,es.poolFor[e]=u):f?(es.pool[e]=f,es.poolFor[e]=.3+.9*t.grain):es.poolFor[e]>0?(es.poolFor[e]-=Y,es.poolFor[e]<=0&&(es.pool[e]=0)):es.pool[e]=0,eR>.03&&null!==ez&&s&&!c&&($=e,!o.turned||o.pd[$]<.985*eD&&o.hz[$]>0)&&function(e,t,r,a,n,l){if(a<=.03||n.lid<=.02)return!1;let o=r/112,i=o*l.size*(n.size??1);for(let s of[-1,1]){let h=n.lid*(n.lids?n.lids[s<0?0:1]:1);if(h<=.02)continue;let u=e-(44*s*o*l.gap+n.gaze[0]*r),c=t-(-20*o+n.gaze[1]*r+(n.fall??0)*51*i/2),d=Math.cos(n.tilt),f=Math.sin(n.tilt),m=u*d-c*f,p=51*i*h,M=(-(u*f+c*d)+p/2)/p;if(!(M<=0||M>=1||Math.abs(m- - -(2*(1-M)*M*1)*i)>38*i/2*Math.sin(Math.PI*M)**.35)&&!(a<.99&&a<.88*g(.026*u+3,.026*c,7.7,2)+.06))return!0}return!1}(eq?o.hx[e]:t.dx,eq?o.hy[e]:t.dy,eD,eR,ez,ec)){es.fast[e]=0,es.slow[e]=0,es.pool[e]=0;continue}let m=es.fast[e]=r>es.fast[e]*eL?r:es.fast[e]*eL,M=es.slow[e]=r>es.slow[e]*eE?r:es.slow[e]*eE;r=m>.52*M?m:.52*M,s&&r<t.gap+.05*Math.sin(.28*D+6.283*t.seed)&&(r=0);let y=(r=r<0?0:r>1?1:r)*(d.LEVELS-1)|0;if(0===y)continue;let x=C*n+7*t.seed|0;(x!==es.turn[e]||y-es.wasLevel[e]>=2||es.wasLevel[e]-y>=2)&&(es.turn[e]=x,es.wasLevel[e]=y,es.pick[e]=(997*t.seed|0)+x+y);let w=es.pick[e],b=es.pool[e]?eh[es.pool[e]-1]:null,v=a?b?.letters??d.RAMP[y]:b?.emoji??d.EMOJI_POOL;es.glyph[e]=v[(w%v.length+v.length)%v.length],es.byLevel[y][es.inLevel[y]++]=e}el.clearRect(0,0,em,em);let eU=m.current,eW=d.LEVELS-1,eK=x.current;for(let e=0;e<3;e++)eK.cur[e]+=(eK.target[e]-eK.cur[e])*(1-.95**eM);el.fillStyle=`rgb(${0|eK.cur[0]},${0|eK.cur[1]},${0|eK.cur[2]})`,a&&(el.font=er(ee));for(let e=1;e<=eW;e++){let t=es.inLevel[e];if(0===t)continue;a?el.globalAlpha=d.ALPHA_TOP*(e/eW):(el.globalAlpha=(0,d.emojiAlpha)(e,eW),el.font=ea(ee,e,eW));let r=es.byLevel[e];for(let e=0;e<t;e++){let t=eU[r[e]];el.fillText(es.glyph[r[e]],t.x,t.y)}}el.globalAlpha=1,t=requestAnimationFrame(eo)};return t=requestAnimationFrame(eo),()=>cancelAnimationFrame(t)},[]),(0,s.jsx)("canvas",{ref:i,className:e,"aria-hidden":!0,style:{display:"block",pointerEvents:"none"}})}e.s(["AsciiOrb",0,em,"CHURN_EMOJI",0,.264,"CHURN_LETTERS",0,.4,"DESIGN",0,680,"GLYPH_FONT",0,er,"REST_R",0,170*1.08,"TRAIL_FAST",0,.085],387758);var ep=e.i(922521),eg=e.i(647163);let eM={ending:"ending",idle:"idle",connecting:"connecting",listening:"idle",speaking:"speaking",working:"working",delegating:"working"},ey=[247,247,247],ex=[10,10,10];function ew({status:e,failed:t,word:r,size:a,getSpectrum:n,waking:l,className:o}){let i=(0,ep.useIsDark)();return(0,s.jsx)(em,{mode:t?"error":eM[e],word:r,size:a,color:i?ey:ex,getSpectrum:n,waking:l,className:o})}let eb=(0,h.memo)(function({status:e="idle",covered:t=!1,className:r,...a}){let n=(0,h.useRef)(null),[l,o]=(0,h.useState)(null),[i,u]=(0,h.useState)(!1);return(0,h.useEffect)(()=>{let e=n.current;if(!e)return;let t=new ResizeObserver(([e])=>{let t=Math.round(e.contentRect.width);t>0&&o(t)});return t.observe(e),()=>t.disconnect()},[]),(0,h.useEffect)(()=>{let e=requestAnimationFrame(()=>u(!0));return()=>cancelAnimationFrame(e)},[]),(0,s.jsx)("div",{ref:n,className:(0,eg.cn)("aspect-square transition-opacity duration-700 ease-out",i&&null!==l?"opacity-100":"opacity-0",r),children:null!==l&&!t&&(0,s.jsx)(ew,{...a,status:e,size:l})})});e.s(["Face",0,eb],333495)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,319036,e=>{"use strict";var t=e.i(843476);e.i(924305);var n=e.i(271645),i=e.i(951437),a=e.i(828918),r=e.i(146376),l=e.i(502077),o=e.i(956789),s=e.i(552245),u=e.i(788015),d=e.i(540886),c=e.i(951849),f=e.i(133438),p=e.i(64350),v=e.i(469690),b=e.i(381104),g=e.i(884708),h=e.i(247778),x=e.i(31421),m=e.i(538489),R=e.i(675606),C=e.i(56434),E=e.i(606039);let y=n.forwardRef(function(e,y){let{checked:k,className:S,defaultChecked:I,"aria-labelledby":w,form:M,id:T,inputRef:A,name:L,nativeButton:O=!1,onCheckedChange:D,readOnly:N=!1,required:z=!1,disabled:P=!1,render:_,uncheckedValue:j,value:B,style:W,...H}=e,{clearErrors:V}=(0,g.useFormContext)(),{state:F,setTouched:Y,setDirty:K,validityData:U,setFilled:$,setFocused:q,validationMode:G,disabled:J,name:Q,validation:X}=(0,v.useFieldRootContext)(),{labelId:Z}=(0,h.useLabelableContext)(),ee=J||P,et=Q??L,en=n.useRef(null),ei=(0,a.useMergedRefs)(en,A,X.inputRef),ea=n.useRef(null),er=(0,u.useBaseUiId)(),el=(0,m.useLabelableId)({id:T}),eo=O?void 0:el,[es,eu]=(0,i.useControlled)({controlled:k,default:!!I,name:"Switch",state:"checked"});(0,b.useRegisterFieldControl)(ea,er,es,void 0,!ee,L),(0,r.useIsoLayoutEffect)(()=>{$(es)},[es,$]),(0,E.useValueChanged)(es,()=>{V(et),K(es!==U.initialValue),X.change(es)});let{getButtonProps:ed,buttonRef:ec}=(0,d.useButton)({disabled:ee,native:O}),ef=(0,x.useAriaLabelledBy)(w,Z,en,!O,eo),ep={...X.getValidationProps(ee),checked:es,disabled:ee,form:M,id:eo,name:et,required:z,style:et?l.visuallyHiddenInput:l.visuallyHidden,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:ei,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(N)return void e.preventDefault();let t=e.currentTarget.checked,n=(0,R.createChangeEventDetails)(C.REASONS.none,e.nativeEvent);D?.(t,n),n.isCanceled||eu(t)},onClick(e){e.stopPropagation()},onFocus(){ea.current?.focus()},...void 0!==B?{value:B}:o.EMPTY_OBJECT},ev=n.useMemo(()=>({...F,checked:es,disabled:ee,readOnly:N,required:z}),[F,es,ee,N,z]),eb=(0,s.useRenderElement)("span",e,{state:ev,ref:[y,ea,ec],props:[{id:O?el:er,role:"switch","aria-checked":es,"aria-readonly":N||void 0,"aria-required":z||void 0,"aria-labelledby":ef,onFocus(){ee||q(!0)},onBlur(){let e=en.current;e&&!ee&&(Y(!0),q(!1),"onBlur"===G&&X.commit(e.checked))},onClick(e){if(N||ee)return;e.preventDefault();let t=en.current;t&&(0,p.dispatchClickWithModifiers)(t,e)}},H,ed,e=>X.getValidationProps(ee,e)],stateAttributesMapping:f.stateAttributesMapping});return(0,t.jsxs)(c.SwitchRootContext.Provider,{value:ev,children:[eb,!es&&et&&void 0!==j&&(0,t.jsx)("input",{type:"hidden",form:M,name:et,value:j,disabled:ee}),(0,t.jsx)("input",{...ep,suppressHydrationWarning:!0})]})}),k=n.forwardRef(function(e,t){let{render:n,className:i,style:a,...r}=e,l=(0,c.useSwitchRootContext)();return(0,s.useRenderElement)("span",e,{state:l,ref:t,stateAttributesMapping:f.stateAttributesMapping,props:r})});e.s(["Root",0,y,"Thumb",0,k],450994);var S=e.i(450994),S=S,I=e.i(647163);e.s(["Switch",0,function({className:e,size:n="default",...i}){return(0,t.jsx)(S.Root,{"data-slot":"switch","data-size":n,className:(0,I.cn)("cursor-pointer peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:bg-brand data-unchecked:bg-input dark:data-unchecked:bg-input/80 data-disabled:cursor-not-allowed data-disabled:opacity-50",e),...i,children:(0,t.jsx)(S.Thumb,{"data-slot":"switch-thumb",className:"pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] dark:data-checked:bg-brand-foreground group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0 dark:data-unchecked:bg-foreground"})})}],319036)},127341,e=>{"use strict";var t,n=e.i(843476);e.s([],559657),e.i(559657);var i=e.i(271645),a=e.i(951437),r=e.i(146376),l=e.i(667865),o=e.i(552245),s=e.i(53687),u=e.i(733332);let d=i.createContext(void 0);function c(){let e=i.useContext(d);if(void 0===e)throw Error((0,u.default)(64));return e}let f={tabActivationDirection:e=>({"data-activation-direction":e})};var p=e.i(675606),v=e.i(56434);let b=i.forwardRef(function(e,t){let{className:u,defaultValue:c=0,onValueChange:b,orientation:x="horizontal",render:m,value:R,style:C,...E}=e,y=void 0!==e.defaultValue,k=i.useRef([]),[S,I]=i.useState(()=>new Map),[w,M]=(0,a.useControlled)({controlled:R,default:c,name:"Tabs",state:"value"}),T=void 0!==R,[A,L]=i.useState(()=>new Map),O=i.useRef(void 0),D=i.useCallback(e=>g(A,e),[A]),[N,z]=i.useState(()=>({previousValue:w,tabActivationDirection:"none"})),{previousValue:P,tabActivationDirection:_}=N,j=_,B=!1;P!==w&&(j=h(P,w,x,A),B=null!=P&&null!=w&&null==D(w));let W=B?P:w,H=P!==W||_!==j;(0,r.useIsoLayoutEffect)(()=>{H&&z({previousValue:W,tabActivationDirection:j})},[W,H,j]);let V=(0,l.useStableCallback)((e,t)=>{t.activationDirection=h(w,e,x,A),b?.(e,t),t.isCanceled||M(e)}),F=(0,l.useStableCallback)((e,t)=>{b?.(e,(0,p.createChangeEventDetails)(t,void 0,void 0,{activationDirection:"none"}))}),Y=(0,l.useStableCallback)((e,t)=>(I(n=>{let i=new Map(n);return i.set(e,t),i}),()=>{I(n=>{if(n.get(e)!==t)return n;let i=new Map(n);return i.delete(e),i})})),K=i.useCallback(e=>S.get(e),[S]),U=i.useCallback(e=>{for(let t of A.values())if(e===t.value)return t.id},[A]),$=i.useMemo(()=>({getTabElementBySelectedValue:D,getTabIdByPanelValue:U,getTabPanelIdByValue:K,onValueChange:V,orientation:x,registerMountedTabPanel:Y,setTabMap:L,tabActivationDirection:j,value:w}),[D,U,K,V,x,Y,L,j,w]),q=i.useMemo(()=>{for(let e of A.values())if(e.value===w)return e},[A,w]),G=i.useMemo(()=>{for(let e of A.values())if(!e.disabled)return e.value},[A]),J=i.useRef(!y),Q=i.useRef(c),X=i.useRef(y),Z=i.useRef(!1);(0,r.useIsoLayoutEffect)(()=>{if(T)return;function e(e,t){M(e),z({previousValue:e,tabActivationDirection:"none"}),F(e,t),J.current=!1}if(0===A.size){Z.current&&null!==w&&!O.current?.isConnected&&e(null,v.REASONS.missing);return}Z.current=!0,O.current=A.keys().next().value;let t=q?.disabled,n=null==q&&null!==w;if(t||w!==Q.current||(X.current=!1),X.current&&t&&w===Q.current)return;let i=J.current;if(t||n){let n=G??null;if(w===n){J.current=!1;return}let a=v.REASONS.missing;i?a=v.REASONS.initial:t&&(a=v.REASONS.disabled),e(n,a);return}i&&null!=q&&(F(w,v.REASONS.initial),J.current=!1)},[G,T,F,q,M,A,w]);let ee={orientation:x,tabActivationDirection:j},et=(0,o.useRenderElement)("div",e,{state:ee,ref:t,props:E,stateAttributesMapping:f});return(0,n.jsx)(d.Provider,{value:$,children:(0,n.jsx)(s.CompositeList,{elementsRef:k,children:et})})});function g(e,t){for(let[n,i]of e.entries())if(t===i.value)return n;return null}function h(e,t,n,i){if(null==e||null==t)return"none";let[a,r,l]="horizontal"===n?["left","left","right"]:["top","up","down"],o=g(i,e),s=g(i,t);if(null==o||null==s)return o!==s&&("number"==typeof e||"string"==typeof e)&&typeof e==typeof t?t>e?l:r:"none";let u=o.getBoundingClientRect()[a],d=s.getBoundingClientRect()[a];return d<u?r:d>u?l:"none"}var x=e.i(108868),m=e.i(788015),R=e.i(540886),C=e.i(370359),E=e.i(395530),y=e.i(838452);let k=i.createContext(void 0);function S(){let e=i.useContext(k);if(void 0===e)throw Error((0,u.default)(65));return e}var I=e.i(584446);let w=i.forwardRef(function(e,t){let{className:n,disabled:a=!1,render:s,value:u,id:d,nativeButton:b=!0,style:g,...h}=e,{value:k,getTabPanelIdByValue:w,onValueChange:M,orientation:T,tabActivationDirection:A}=c(),{activateOnFocus:L,registerTabResizeObserverElement:O,tabsListElement:D}=S(),{highlightedIndex:N,onHighlightedIndexChange:z}=(0,y.useCompositeRootContext)(),P=(0,m.useBaseUiId)(d),_=i.useMemo(()=>({disabled:a,id:P,value:u}),[a,P,u]),{compositeProps:j,compositeRef:B,index:W}=(0,E.useCompositeItem)({metadata:_}),H=u===k,V=i.useRef(!1),F=i.useRef(null),Y=(0,l.useStableCallback)(e=>{F.current?.(),F.current=e?O(e):null});(0,r.useIsoLayoutEffect)(()=>{if(V.current){V.current=!1;return}if(H&&W>-1&&N!==W){if(null!=D){let e=(0,I.activeElement)((0,x.ownerDocument)(D));if(e&&(0,I.contains)(D,e))return}a||z(W)}},[H,W,N,z,a,D]);let{getButtonProps:K,buttonRef:U}=(0,R.useButton)({disabled:a,native:b,focusableWhenDisabled:!0}),$=w(u),q=i.useRef(!1),G=i.useRef(!1);function J(e){M(u,(0,p.createChangeEventDetails)(v.REASONS.none,e.nativeEvent,void 0,{activationDirection:"none"}))}return(0,o.useRenderElement)("button",e,{state:{disabled:a,active:H,orientation:T,tabActivationDirection:A},ref:[t,U,B,Y],props:[j,{role:"tab","aria-controls":$,"aria-selected":H,id:P,onClick:function(e){H||a||J(e)},onFocus:function(e){H||a||L&&(!q.current||G.current)&&J(e)},onPointerDown:function(e){if(H||a)return;q.current=!0,G.current=0===e.button;let t=(0,x.ownerDocument)(e.currentTarget);function n(){q.current=!1,G.current=!1,t.removeEventListener("pointerup",n),t.removeEventListener("pointercancel",n)}t.addEventListener("pointerup",n),t.addEventListener("pointercancel",n)},[C.ACTIVE_COMPOSITE_ITEM]:H?"":void 0,onKeyDownCapture(){V.current=!0}},h,K],stateAttributesMapping:f})});var M=e.i(229315),T=e.i(333848),A=e.i(802239),L=e.i(956789);function O(){return L.NOOP}function D(){return!1}function N(){return!0}let z=i.createContext(void 0),P={disableStyleElements:!1};function _(e){let{script:t}=e,{nonce:a}=i.useContext(z)??P;return(0,A.useSyncExternalStore)(O,D,N)?(0,n.jsx)("script",{nonce:a,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}var j=e.i(73364),B=e.i(49072);let W={...f,activeTabPosition:()=>null,activeTabSize:()=>null},H=i.forwardRef(function(e,a){let{className:r,render:l,renderBeforeHydration:s=!1,style:u,...d}=e,{getTabElementBySelectedValue:f,orientation:p,tabActivationDirection:v,value:b}=c(),{tabsListElement:g,registerIndicatorUpdateListener:h}=S(),x=function(){let[,e]=i.useState({});return i.useCallback(()=>{e({})},[])}();i.useEffect(()=>h(x),[h,x]);let m=0,R=0,C=0,E=0,y=0,k=0,I=!1;if(null!=b&&null!=g){let e=f(b);if(null!=e){I=!0;let{width:t,height:n}=(0,j.getCssDimensions)(e),{width:i,height:a}=(0,j.getCssDimensions)(g),r=e.getBoundingClientRect(),l=g.getBoundingClientRect(),o=i>0?l.width/i:1,s=a>0?l.height/a:1,u=function(e,t){let n=V(e),i=V(t),a=n.left-i.left-t.clientLeft,r=n.top-i.top-t.clientTop,l=(0,M.getParentNode)(e);for(;(0,M.isHTMLElement)(l)&&l!==t&&!(0,M.isLastTraversableNode)(l);)a-=l.scrollLeft,r-=l.scrollTop,l=(0,M.getParentNode)(l);return{left:a,top:r}}(e,g);m=u.left,C=u.top;let d=(r.left-l.left)/o+g.scrollLeft-g.clientLeft,c=(r.top-l.top)/s+g.scrollTop-g.clientTop,f=function(e){let t=(0,T.ownerWindow)(e).getComputedStyle(e),{x:n,y:i}=(0,B.getElementTransform)(e,t),a=n,r=i,{translate:l}=t;if(l&&"none"!==l){let t=l.split(" ");a+=F(t[0],e.offsetWidth),r+=F(t[1],e.offsetHeight)}return{x:a,y:r}}(e);2>=Math.abs(d-f.x-m)&&2>=Math.abs(c-f.y-C)&&(m=d,C=c),y=t,k=n,R=g.scrollWidth-m-y,E=g.scrollHeight-C-k}}let w=I?{left:m,right:R,top:C,bottom:E}:null,A=I?{width:y,height:k}:null,L=I?{"--active-tab-left":`${m}px`,"--active-tab-right":`${R}px`,"--active-tab-top":`${C}px`,"--active-tab-bottom":`${E}px`,"--active-tab-width":`${y}px`,"--active-tab-height":`${k}px`}:void 0,O=I&&y>0&&k>0,D=(0,o.useRenderElement)("span",e,{state:{orientation:p,activeTabPosition:w,activeTabSize:A,tabActivationDirection:v},ref:a,props:[{role:"presentation",style:L,hidden:!O},d,{suppressHydrationWarning:!0}],stateAttributesMapping:W});return null==b?null:(0,n.jsxs)(i.Fragment,{children:[D,s&&(t||(t=(0,n.jsx)(_,{script:""})))]})});function V(e){let t=0,n=0,i=e;for(;null!=i;){t+=i.offsetLeft,n+=i.offsetTop;let e=i.offsetParent;null!=e&&(t+=e.clientLeft,n+=e.clientTop),i=e}return{left:t,top:n}}function F(e,t){if(!e)return 0;let n=parseFloat(e);return Number.isFinite(n)?e.endsWith("%")?n/100*t:n:0}var Y=e.i(144394),K=e.i(474354),U=e.i(137584),$=e.i(223910),q=e.i(673553),G=e.i(253335);G.TransitionStatusDataAttributes.startingStyle,G.TransitionStatusDataAttributes.endingStyle;let J={...f,...K.transitionStatusMapping},Q=i.forwardRef(function(e,t){let{className:n,value:a,render:l,keepMounted:s=!1,style:u,...d}=e,{value:f,getTabIdByPanelValue:p,orientation:v,tabActivationDirection:b,registerMountedTabPanel:g}=c(),h=(0,m.useBaseUiId)(),{ref:x,index:R}=(0,q.useCompositeListItem)(),C=a===f,{mounted:E,transitionStatus:y,setMounted:k}=(0,$.useTransitionStatus)(C),S=!E,I=p(a),w=i.useRef(null),M=(0,o.useRenderElement)("div",e,{state:{hidden:S,orientation:v,tabActivationDirection:b,transitionStatus:y},ref:[t,x,w],props:[{"aria-labelledby":I,hidden:S,id:h,role:"tabpanel",tabIndex:C?0:-1,inert:(0,Y.inertValue)(!C),"data-index":R},d],stateAttributesMapping:J});return((0,U.useOpenChangeComplete)({open:C,ref:w,onComplete(){C||k(!1)}}),(0,r.useIsoLayoutEffect)(()=>{if(null!=h&&(!S||s))return g(a,h)},[S,s,a,h,g]),s||E)?M:null});var X=e.i(405934);let Z=i.forwardRef(function(e,t){let{activateOnFocus:a=!1,className:o,loopFocus:s=!0,render:u,style:d,...p}=e,{orientation:v,setTabMap:b,tabActivationDirection:g}=c(),[h,x]=i.useState(0),[m,R]=i.useState(null),C=i.useRef(new Set),E=i.useRef(new Set),y=i.useRef(null);(0,r.useIsoLayoutEffect)(()=>{if("u"<typeof ResizeObserver)return;let e=new ResizeObserver(()=>{C.current.forEach(e=>{e()})});return y.current=e,m&&e.observe(m),E.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),y.current=null}},[m]);let S=(0,l.useStableCallback)(e=>(C.current.add(e),()=>{C.current.delete(e)})),I=(0,l.useStableCallback)(e=>(E.current.add(e),y.current?.observe(e),()=>{E.current.delete(e),y.current?.unobserve(e)})),w=i.useMemo(()=>({activateOnFocus:a,registerIndicatorUpdateListener:S,registerTabResizeObserverElement:I,tabsListElement:m}),[a,S,I,m]);return(0,n.jsx)(k.Provider,{value:w,children:(0,n.jsx)(X.CompositeRoot,{render:u,className:o,style:d,state:{orientation:v,tabActivationDirection:g},refs:[t,R],props:[{"aria-orientation":"vertical"===v?"vertical":void 0,role:"tablist"},p],stateAttributesMapping:f,highlightedIndex:h,enableHomeAndEndKeys:!0,loopFocus:s,orientation:v,onHighlightedIndexChange:x,onMapChange:b,disabledIndices:L.EMPTY_ARRAY})})});e.s(["Indicator",0,H,"List",0,Z,"Panel",0,Q,"Root",0,b,"Tab",0,w],69281);var ee=e.i(69281),ee=ee,et=e.i(225913),en=e.i(647163);let ei=(0,et.cva)("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});e.s(["Tabs",0,function({className:e,orientation:t="horizontal",...i}){return(0,n.jsx)(ee.Root,{"data-slot":"tabs","data-orientation":t,className:(0,en.cn)("group/tabs flex gap-2 data-horizontal:flex-col",e),...i})},"TabsContent",0,function({className:e,...t}){return(0,n.jsx)(ee.Panel,{"data-slot":"tabs-content",className:(0,en.cn)("flex-1 text-sm outline-none",e),...t})},"TabsList",0,function({className:e,variant:t="default",...i}){return(0,n.jsx)(ee.List,{"data-slot":"tabs-list","data-variant":t,className:(0,en.cn)(ei({variant:t}),e),...i})},"TabsTrigger",0,function({className:e,...t}){return(0,n.jsx)(ee.Tab,{"data-slot":"tabs-trigger",className:(0,en.cn)("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...t})}],127341)},370359,405934,e=>{"use strict";let t="data-composite-item-active";e.s(["ACTIVE_COMPOSITE_ITEM",0,t],370359);var n=e.i(271645),i=e.i(956789),a=e.i(53687),r=e.i(667865),l=e.i(828918),o=e.i(146376),s=e.i(673327),u=e.i(621082),d=e.i(584446),c=e.i(838452),f=e.i(552245),p=e.i(872855),v=e.i(843476);e.s(["CompositeRoot",0,function(e){let{render:b,className:g,style:h,refs:x=i.EMPTY_ARRAY,props:m=i.EMPTY_ARRAY,state:R=i.EMPTY_OBJECT,stateAttributesMapping:C,highlightedIndex:E,onHighlightedIndexChange:y,orientation:k,grid:S,loopFocus:I,onLoop:w,enableHomeAndEndKeys:M,onMapChange:T,stopEventPropagation:A=!0,rootRef:L,disabledIndices:O,modifierKeys:D,highlightItemOnHover:N=!1,tag:z="div",...P}=e,{props:_,highlightedIndex:j,onHighlightedIndexChange:B,elementsRef:W,onMapChange:H,relayKeyboardEvent:V}=function(e){let{loopFocus:a=!0,orientation:c="both",grid:f,onLoop:p,direction:v,highlightedIndex:b,onHighlightedIndexChange:g,rootRef:h,enableHomeAndEndKeys:x=!1,stopEventPropagation:m,disabledIndices:R,modifierKeys:C=i.EMPTY_ARRAY}=e,[E,y]=n.useState(0),k=null!=f,S=n.useRef(null),I=(0,l.useMergedRefs)(S,h),w=n.useRef([]),M=n.useRef(!1),T=n.useRef(null),A=b??E,L=(0,r.useStableCallback)((e,t=!1)=>{if(T.current=w.current[e]??null,(g??y)(e),t){let t=w.current[e];(0,s.scrollIntoViewIfNeeded)(S.current,t,v,c)}}),O=(0,r.useStableCallback)(e=>{if(0===e.size)return;if(M.current){let e=w.current,n=e.indexOf(T.current);if(-1===n){let n=e[A];!n||(0,u.isListIndexDisabled)(e,A,R)?L(function(e,n){let i=-1;for(let a=0;a<e.length;a+=1){let r=e[a];if(!(!r||(0,u.isListIndexDisabled)(e,a,n))){if(r.hasAttribute(t))return a;-1===i&&(i=a)}}return Math.max(i,0)}(e,R)):T.current=n}else n!==A&&L(n);return}M.current=!0;let n=Array.from(e.keys()),i=n.find(e=>e?.hasAttribute(t))??null,a=i?e.get(i)?.index??-1:-1;if(-1!==a)L(a);else if((0,u.isListIndexDisabled)(n,A,R)){let e=(0,u.findNonDisabledListIndex)(n,{disabledIndices:R});(0,u.isIndexOutOfListBounds)(n,e)||L(e)}(0,s.scrollIntoViewIfNeeded)(S.current,i,v,c)});(0,o.useIsoLayoutEffect)(()=>{if(null==R||null!=b||!M.current)return;let e=w.current;if((0,u.isListIndexDisabled)(e,A,R)){let t=(0,u.findNonDisabledListIndex)(e,{disabledIndices:R});(0,u.isIndexOutOfListBounds)(e,t)||L(t)}},[R,b,A,w,L]);let D=(0,r.useStableCallback)((e,t,n)=>p?p(e,t,n,w):n),N=(0,r.useStableCallback)(e=>{let t=e.key===s.HOME||e.key===s.END;if(!s.COMPOSITE_KEYS.has(e.key)||!x&&t||function(e,t){for(let n of s.MODIFIER_KEYS)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}(e,C)||!S.current)return;let n="rtl"===v,i=n?s.ARROW_LEFT:s.ARROW_RIGHT,r=n?s.ARROW_RIGHT:s.ARROW_LEFT,l="vertical"===c?s.ARROW_DOWN:i,o="vertical"===c?s.ARROW_UP:r,b=(0,d.getTarget)(e.nativeEvent);if(null!=b&&(0,s.isNativeInput)(b)&&!(null==b||b.hasAttribute("disabled")||"true"===b.getAttribute("aria-disabled"))){let t=b.selectionStart,n=b.selectionEnd,i=b.value;if(null==t||e.shiftKey||t!==n||e.key!==o&&t<i.length||e.key!==l&&t>0)return}let g=A,h=(0,u.getMinListIndex)(w,R),E=(0,u.getMaxListIndex)(w,R);null!=f&&(g=f({disabledIndices:R,elementsRef:w,event:e,highlightedIndex:A,loopFocus:a,maxIndex:E,minIndex:h,onLoop:D,orientation:c,rtl:n}));let y="vertical"!==c&&e.key===i||"horizontal"!==c&&e.key===s.ARROW_DOWN,I="vertical"!==c&&e.key===r||"horizontal"!==c&&e.key===s.ARROW_UP;x&&(e.key===s.HOME?g=h:e.key===s.END&&(g=E)),g===A&&(y||I)&&(a&&g===E&&y?(g=h,p&&(g=p(e,A,g,w))):a&&g===h&&I?(g=E,p&&(g=p(e,A,g,w))):g=(0,u.findNonDisabledListIndex)(w.current,{startingIndex:g,decrement:I,disabledIndices:R})),g===A||(0,u.isIndexOutOfListBounds)(w.current,g)||(m&&e.stopPropagation(),(k||t||y||I)&&e.preventDefault(),L(g,!0),queueMicrotask(()=>{w.current[g]?.focus()}))});return{props:{ref:I,onFocus(e){let t=S.current,n=(0,d.getTarget)(e.nativeEvent);t&&null!=n&&(0,s.isNativeInput)(n)&&n.setSelectionRange(0,n.value.length)},onKeyDown:N},highlightedIndex:A,onHighlightedIndexChange:L,elementsRef:w,onMapChange:O,relayKeyboardEvent:N}}({grid:S,loopFocus:I,onLoop:w,orientation:k,highlightedIndex:E,onHighlightedIndexChange:y,rootRef:L,stopEventPropagation:A,enableHomeAndEndKeys:M,direction:(0,p.useDirection)(),disabledIndices:O,modifierKeys:D}),F=(0,f.useRenderElement)(z,e,{state:R,ref:x,props:[_,...m,P],stateAttributesMapping:C}),Y=n.useMemo(()=>({highlightedIndex:j,onHighlightedIndexChange:B,highlightItemOnHover:N,relayKeyboardEvent:V}),[j,B,N,V]);return(0,v.jsx)(c.CompositeRootContext.Provider,{value:Y,children:(0,v.jsx)(a.CompositeList,{elementsRef:W,onMapChange:e=>{T?.(e),H(e)},children:F})})}],405934)},31421,e=>{"use strict";var t=e.i(271645),n=e.i(146376),i=e.i(788015);e.s(["useAriaLabelledBy",0,function(e,a,r,l=!0,o){let[s,u]=t.useState(),d=(0,i.useBaseUiId)(o?`${o}-label`:void 0),c=e??a??s;return(0,n.useIsoLayoutEffect)(()=>{let t=e||a||!l?void 0:function(e,t){let n=function(e){if(!e)return;let t=e.parentElement;if(t&&"LABEL"===t.tagName)return t;let n=e.id;if(n){let t=e.nextElementSibling;if(t&&t.htmlFor===n)return t}let i=e.labels;return i&&i[0]}(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}(r.current,d);s!==t&&u(t)}),c}])},924305,951849,133438,e=>{"use strict";e.s([],924305);var t=e.i(733332),n=e.i(271645);let i=n.createContext(void 0);e.s(["SwitchRootContext",0,i,"useSwitchRootContext",0,function(){let e=n.useContext(i);if(void 0===e)throw Error((0,t.default)(63));return e}],951849);let a={...e.i(875812).fieldValidityMapping,checked:e=>e?{"data-checked":""}:{"data-unchecked":""}};e.s(["stateAttributesMapping",0,a],133438)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59377,e=>{"use strict";var t=e.i(843476);e.s([],158421),e.i(158421);var a=e.i(271645),n=e.i(896499),i=e.i(17989),o=e.i(46420),r=e.i(733332);let s=a.createContext(void 0);function l(e){let t=a.useContext(s);if(void 0===t&&!e)throw Error((0,r.default)(47));return t}var d=e.i(174080),c=e.i(301252),u=e.i(439957),p=e.i(956789),h=e.i(56434),g=e.i(18478),f=e.i(264111),m=e.i(116786),v=e.i(990627),L=e.i(638396);let E={...m.popupStoreSelectors,disabled:e=>e.disabled,instantType:e=>e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,modal:e=>e.modal,focusManagerModal:e=>e.focusManagerModal,stickIfOpen:e=>e.stickIfOpen,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class S extends c.ReactStore{constructor(e,t,a){const n=new v.PopupTriggerMap;super(O(e,n,t,a),M(n),E)}setOpen=(e,t)=>{let a,n=t.reason===h.REASONS.triggerHover,i=t.reason===h.REASONS.triggerPress&&0===t.event.detail,o=!e&&(t.reason===h.REASONS.escapeKey||null==t.reason),r=(0,f.attachPreventUnmountOnClose)(t),s=this.select("activeTriggerId");if(e||t.reason!==h.REASONS.closePress||null!=t.trigger||null==s||(t.trigger=this.context.triggerElements.getById(s)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let l=()=>{let a=(0,f.createPopupOpenState)(this.state,e,t.trigger,r());a.openChangeReason=t.reason,this.update(a)};n?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(L.PATIENT_CLICK_THRESHOLD,()=>{this.set("stickIfOpen",!1)}),d.flushSync(l)):l(),i?a="click":o?a="dismiss":t.reason===h.REASONS.focusOut&&(a="focus"),this.set("instantType",a)}}function O(e,t,a,n=!1){let i={...(0,m.createInitialPopupStoreState)(t,a,n),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return i.open&&e?.mounted===void 0&&(i.mounted=!0),i}function M(e){return{popupRef:a.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:a.createRef(),beforeContentFocusGuardRef:a.createRef(),stickIfOpenTimeout:new u.Timeout,triggerElements:e}}var b=e.i(675606);let x=(0,n.fastComponent)(function({props:e}){var n;let i,{children:o,open:r,defaultOpen:l=!1,onOpenChange:d,onOpenChangeComplete:c,modal:u=!1,handle:p,triggerId:g,defaultTriggerId:m=null}=e,v=(n={modal:u,open:l,openProp:r,activeTriggerId:m,triggerIdProp:g},i=(0,f.usePopupRootStore)((e,t)=>new S(n,e,t)),a.useEffect(()=>i.context.stickIfOpenTimeout.disposeEffect(),[i]),i);v.useControlledProp("openProp",r),v.useControlledProp("triggerIdProp",g);let L=v.useState("open"),E=v.useState("mounted"),O=v.useState("payload");v.useContextCallback("onOpenChange",d),v.useContextCallback("onOpenChangeComplete",c),(0,f.usePopupRootSync)(v,L),(0,f.useImplicitActiveTrigger)(v);let{forceUnmount:M}=(0,f.useOpenStateTransitions)(L,v,()=>{v.update({stickIfOpen:!0,openChangeReason:null})});v.useSyncedValues({modal:u}),a.useEffect(()=>{L||v.context.stickIfOpenTimeout.clear()},[v,L]),a.useImperativeHandle(e.actionsRef,()=>({unmount:M,close:()=>v.setOpen(!1,(0,b.createChangeEventDetails)(h.REASONS.imperativeAction))}),[M,v]);let x=L||E;return(0,t.jsxs)(s.Provider,{value:v,children:[p&&(0,t.jsx)(f.PopupHandleAttachment,{handle:p,store:v}),x&&(0,t.jsx)(y,{store:v,modal:u}),"function"==typeof o?o({payload:O}):o]})});function y({store:e,modal:t}){let a=e.useState("floatingRootContext"),n=(0,i.useDismiss)(a,{outsidePressEvent:{mouse:"trap-focus"===t?"sloppy":"intentional",touch:"sloppy"}}),o=n.reference,r=n.floating;return(0,f.usePopupInteractionProps)(e,{activeTriggerProps:o,inactiveTriggerProps:o,popupProps:r}),null}var C=e.i(540886),w=e.i(879938),R=e.i(552245),T=e.i(650316),I=e.i(385689),A=e.i(872135),k=e.i(788015),_=e.i(152535),z=e.i(459636),P=e.i(346570),D=e.i(32199);let N=(0,n.fastComponentRef)(function(e,n){let{render:i,className:o,style:s,disabled:d=!1,nativeButton:c=!0,handle:u,payload:p,openOnHover:g=!1,delay:m=300,closeDelay:v=0,id:E,...S}=e,O=l(!0),M=(0,z.usePopupHandleStore)(u)??O;if(!M)throw Error((0,r.default)(74));let b=(0,k.useBaseUiId)(E),x=M.useState("isTriggerActive",b),y=M.useState("floatingRootContext"),N=M.useState("isOpenedByTrigger",b),j=M.useState("triggerPopupId",b),F=a.useRef(null),{registerTrigger:K,isMountedByThisTrigger:V}=(0,f.useTriggerDataForwarding)(b,F,M,{payload:p,disabled:d,openOnHover:g,closeDelay:v}),H=M.useState("openChangeReason"),B=M.useState("stickIfOpen"),Y=M.useState("openMethod"),U=M.useState("focusManagerModal"),G=(0,A.useHoverReferenceInteraction)(y,{enabled:!d&&g&&("touch"!==Y||H!==h.REASONS.triggerPress),mouseOnly:!0,move:!1,handleClose:(0,T.safePolygon)(),restMs:m,delay:{close:v},triggerElementRef:F,isActiveTrigger:x,isClosing:()=>"ending"===M.select("transitionStatus")}),q=(0,I.useClick)(y,{stickIfOpen:B}),$=(0,D.useOpenMethodTriggerProps)(()=>M.select("open"),e=>{M.set("openMethod",e)}),W=M.useState("triggerProps",V),{getButtonProps:X,buttonRef:Q}=(0,C.useButton)({disabled:d,native:c}),{preFocusGuardRef:Z,handlePreFocusGuardFocus:J,handleFocusTargetFocus:ee}=(0,P.useTriggerFocusGuards)(M,F),et=(0,R.useRenderElement)("button",e,{state:{disabled:d,open:N},ref:[Q,n,K,F],props:[q.reference,G,W,$,{[L.CLICK_TRIGGER_IDENTIFIER]:"",id:b,"aria-haspopup":"dialog","aria-expanded":N,"aria-controls":j},S,X],stateAttributesMapping:{open:e=>e&&H===h.REASONS.triggerPress?w.pressableTriggerOpenStateMapping.open(e):w.triggerOpenStateMapping.open(e)}}),ea=(0,t.jsx)(a.Fragment,{children:et},b);return V&&!U?(0,t.jsxs)(a.Fragment,{children:[(0,t.jsx)(_.FocusGuard,{ref:Z,onFocus:J}),ea,(0,t.jsx)(_.FocusGuard,{ref:M.context.triggerFocusTargetRef,onFocus:ee})]}):ea});var j=e.i(726674);let F=a.createContext(void 0),K=a.forwardRef(function(e,a){let{keepMounted:n=!1,...i}=e;return l().useState("mounted")||n?(0,t.jsx)(F.Provider,{value:n,children:(0,t.jsx)(j.FloatingPortal,{ref:a,...i})}):null});var V=e.i(144394),H=e.i(146376);let B=a.createContext(void 0);function Y(){let e=a.useContext(B);if(!e)throw Error((0,r.default)(46));return e}var U=e.i(923706),G=e.i(426),q=e.i(222640),$=e.i(789579),W=e.i(33383);let X=a.forwardRef(function(e,n){let{render:i,className:s,style:d,anchor:c,positionMethod:u,side:p,align:g,sideOffset:f,alignOffset:m,collisionBoundary:v="clipping-ancestors",collisionPadding:E,arrowPadding:S,sticky:O,disableAnchorTracking:M=!1,collisionAvoidance:b=L.POPUP_COLLISION_AVOIDANCE,...x}=e,y=l(),C=function(){let e=a.useContext(F);if(void 0===e)throw Error((0,r.default)(45));return e}(),w=(0,o.useFloatingNodeId)(),R=y.useState("floatingRootContext"),T=y.useState("mounted"),I=y.useState("open"),A=y.useState("openChangeReason"),k=y.useState("activeTriggerElement"),_=y.useState("modal"),z=y.useState("openMethod"),P=y.useState("positionerElement"),D=y.useState("instantType"),N=y.useState("transitionStatus"),j=y.useState("adaptiveOrigin"),K=a.useRef(null),Y=(0,q.useAnimationsFinished)(P),X=(0,U.useAnchorPositioning)({anchor:c,floatingRootContext:R,positionMethod:u,mounted:T,side:p,sideOffset:f,align:g,alignOffset:m,arrowPadding:S,collisionBoundary:v,collisionPadding:E,sticky:O,disableAnchorTracking:M,keepMounted:C,nodeId:w,collisionAvoidance:b,adaptiveOrigin:j}),Q=R.useState("domReferenceElement");(0,H.useIsoLayoutEffect)(()=>{let e=K.current;if(Q&&(K.current=Q),e&&Q&&Q!==e){y.set("instantType",void 0);let e=new AbortController;return Y(()=>{y.set("instantType","trigger-change")},e.signal),()=>{e.abort()}}},[Q,Y,y]);let Z=!0===_&&A!==h.REASONS.triggerHover;(0,W.useAnchoredPopupScrollLock)(I&&Z,"touch"===z,P,k);let J=y.useStateSetter("positionerElement"),ee={open:I,side:X.side,align:X.align,anchorHidden:X.anchorHidden,instant:D},et=(0,$.usePositioner)(e,ee,{styles:X.positionerStyles,transitionStatus:N,props:x,refs:[n,J],hidden:!T,inert:!I});return(0,t.jsxs)(B.Provider,{value:X,children:[T&&Z&&(0,t.jsx)(G.InternalBackdrop,{inert:(0,V.inertValue)(!I),cutout:k}),(0,t.jsx)(o.FloatingNode,{id:w,children:et})]})});var Q=e.i(229315),Z=e.i(61487),J=e.i(431157),ee=e.i(137584),et=e.i(673327),ea=e.i(96533),en=e.i(253984),ei=e.i(667865);let eo=a.createContext(void 0),er=a.forwardRef(function(e,n){let{render:i,className:o,style:r,initialFocus:s,finalFocus:d,...c}=e,u=l(),p=Y(),g=null!=(0,ea.useToolbarRootContext)(!0),{context:m,hasClosePart:v}=function(){let[e,t]=a.useState(0),n=(0,ei.useStableCallback)(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:a.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}(),L=u.useState("open"),E=u.useState("openMethod"),S=u.useState("instantType"),O=u.useState("transitionStatus"),M=u.useState("popupProps"),b=u.useState("titleElementId"),x=u.useState("descriptionElementId"),y=u.useState("modal"),C=u.useState("mounted"),T=u.useState("openChangeReason"),I=u.useState("activeTriggerElement"),A=u.useState("floatingRootContext"),k=A.useState("floatingId"),_=u.useState("disabled"),z=u.useState("openOnHover"),P=u.useState("closeDelay");(0,ee.useOpenChangeComplete)({open:L,ref:u.context.popupRef,onComplete(){L&&u.context.onOpenChangeComplete?.(!0)}}),(0,J.useHoverFloatingInteraction)(A,{enabled:z&&!_,closeDelay:P});let D=void 0===s?(0,f.createDefaultInitialFocus)(u.context.popupRef):s,N=!1!==y&&v;u.useSyncedValue("focusManagerModal",N);let j=u.useStateSetter("popupElement"),F={open:L,side:p.side,align:p.align,instant:S,transitionStatus:O},K=(0,R.useRenderElement)("div",e,{state:F,ref:[n,u.context.popupRef,j],props:[M,{id:k,role:"dialog",...f.FOCUSABLE_POPUP_PROPS,"aria-labelledby":b,"aria-describedby":x,onKeyDown(e){g&&et.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()}},(0,en.getDisabledMountTransitionStyles)(O),c],stateAttributesMapping:w.popupTransitionStateMapping});return(0,t.jsx)(Z.FloatingFocusManager,{context:A,openInteractionType:E,modal:N,disabled:!C||T===h.REASONS.triggerHover,initialFocus:D,returnFocus:d,restoreFocus:"popup",previousFocusableElement:(0,Q.isHTMLElement)(I)?I:void 0,nextFocusableElement:u.context.triggerFocusTargetRef,beforeContentFocusGuardRef:u.context.beforeContentFocusGuardRef,children:(0,t.jsx)(eo.Provider,{value:m,children:K})})}),es=a.forwardRef(function(e,t){let{render:a,className:n,style:i,...o}=e,r=l().useState("open"),{arrowRef:s,side:d,align:c,arrowUncentered:u,arrowStyles:p}=Y();return(0,R.useRenderElement)("div",e,{state:{open:r,side:d,align:c,uncentered:u},ref:[t,s],props:[{style:p,"aria-hidden":!0},o],stateAttributesMapping:w.popupStateMapping})}),el=a.forwardRef(function(e,t){let{render:a,className:n,style:i,...o}=e,r=l(),s=r.useState("open"),d=r.useState("mounted"),c=r.useState("transitionStatus"),u=r.useState("openChangeReason");return(0,R.useRenderElement)("div",e,{state:{open:s,transitionStatus:c},ref:t,props:[{role:"presentation",hidden:!d,style:{pointerEvents:u===h.REASONS.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},o],stateAttributesMapping:w.popupTransitionStateMapping})}),ed=a.forwardRef(function(e,t){let{render:a,className:n,style:i,...o}=e,r=l(),s=(0,k.useBaseUiId)(o.id);return r.useSyncedValueWithCleanup("titleElementId",s),(0,R.useRenderElement)("h2",e,{ref:t,props:[{id:s},o]})}),ec=a.forwardRef(function(e,t){let{render:a,className:n,style:i,...o}=e,r=l(),s=(0,k.useBaseUiId)(o.id);return r.useSyncedValueWithCleanup("descriptionElementId",s),(0,R.useRenderElement)("p",e,{ref:t,props:[{id:s},o]})}),eu=a.forwardRef(function(e,t){let n,{render:i,className:o,style:r,disabled:s=!1,nativeButton:d=!0,...c}=e,{buttonRef:u,getButtonProps:p}=(0,C.useButton)({disabled:s,focusableWhenDisabled:!1,native:d}),g=l();return n=a.useContext(eo),(0,H.useIsoLayoutEffect)(()=>n?.register(),[n]),(0,R.useRenderElement)("button",e,{ref:[t,u],props:[{onClick(e){g.setOpen(!1,(0,b.createChangeEventDetails)(h.REASONS.closePress,e.nativeEvent))}},c,p]})});var ep=e.i(818390);let eh=a.forwardRef(function(e,t){let{render:a,className:n,style:i,children:o,...r}=e,s=l(),{side:d}=Y(),c=s.useState("instantType"),{children:u,state:p}=(0,ep.usePopupViewport)({store:s,side:d,children:o}),h={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:c};return(0,R.useRenderElement)("div",e,{state:h,ref:t,props:[r,{children:u}],stateAttributesMapping:ep.popupViewportStateMapping})});var eg=e.i(564170);class ef extends eg.BasePopupHandle{constructor(){super(function(){let e=new v.PopupTriggerMap;return Object.assign(new g.NullStore(Object.freeze(O(void 0,e)),Object.freeze(M(e)),E),{setOpen:p.NOOP})}(),"Popover")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}}e.s(["Arrow",0,es,"Backdrop",0,el,"Close",0,eu,"Description",0,ec,"Handle",0,ef,"Popup",0,er,"Portal",0,K,"Positioner",0,X,"Root",0,function(e){return l(!0)?(0,t.jsx)(x,{props:e}):(0,t.jsx)(o.FloatingTree,{children:(0,t.jsx)(x,{props:e})})},"Title",0,ed,"Trigger",0,N,"Viewport",0,eh,"createHandle",0,function(){return new ef}],466914);var em=e.i(466914),em=em,ev=e.i(647163);e.s(["Popover",0,function({...e}){return(0,t.jsx)(em.Root,{"data-slot":"popover",...e})},"PopoverContent",0,function({className:e,align:a="center",alignOffset:n=0,side:i="bottom",sideOffset:o=4,...r}){return(0,t.jsx)(em.Portal,{children:(0,t.jsx)(em.Positioner,{align:a,alignOffset:n,side:i,sideOffset:o,className:"isolate z-50",children:(0,t.jsx)(em.Popup,{"data-slot":"popover-content",className:(0,ev.cn)("z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...r})})})},"PopoverTrigger",0,function({...e}){return(0,t.jsx)(em.Trigger,{"data-slot":"popover-trigger",...e})}],59377)},412294,e=>{"use strict";var t=e.i(843476),a=e.i(271645),n=e.i(167881),i=e.i(6799),o=e.i(41533),r=e.i(95187);let s=(0,r.createServerReference)("7f48438b888129b433e9298420f9a9d443fd78e764",r.callServer,void 0,r.findSourceMapURL,"startChatGptSignInAction");var l=e.i(393080),d=e.i(609856),c=e.i(647163);function u(e){let t=window.open(e,"thursday-chatgpt","popup,width=520,height=720");return t||i.toast.add({type:"error",title:"The sign-in window was blocked",description:"Allow pop-ups for this page, then try again"}),t}async function p(){try{u((0,l.unwrapResult)(await s()))}catch(e){i.toast.add({type:"error",title:"Could not start the sign-in",description:(0,c.errorToString)(e)})}}e.s(["ChatGptSignIn",0,function({variant:e,size:i,className:r,label:l="Sign in with ChatGPT"}){let[c,p]=(0,a.useState)(!1),h=(0,a.useRef)(null),g=()=>{h.current&&clearInterval(h.current),h.current=null};(0,a.useEffect)(()=>g,[]);let[f,m]=(0,d.useServerAction)(s,{onOk:e=>{let t=u(e);if(!t)return;p(!0),g();let a=Date.now()+o.CHATGPT_SIGN_IN.waitMs;h.current=setInterval(()=>{!t.closed&&Date.now()<a||(g(),p(!1))},700)}});return(0,t.jsx)(n.Button,{variant:e,size:i,className:r,loading:m||c,onClick:()=>f(),children:l})},"signInWithChatGpt",0,p],412294)},968978,e=>{"use strict";var t=e.i(843476);function a({className:e}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",className:e,width:"24",children:[(0,t.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),(0,t.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),(0,t.jsx)("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),(0,t.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"}),(0,t.jsx)("path",{d:"M1 1h22v22H1z",fill:"none"})]})}function n({className:e}){return(0,t.jsxs)("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("title",{children:"OpenAI icon"}),(0,t.jsx)("path",{fill:"currentColor",d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"})]})}function i({className:e}){return(0,t.jsxs)("svg",{"aria-hidden":"true",className:e,viewBox:"0 0 35 33",children:[(0,t.jsx)("path",{d:"M13.2371 21.0407L24.3186 12.8506C24.8619 12.4491 25.6384 12.6057 25.8973 13.2294C27.2597 16.5185 26.651 20.4712 23.9403 23.1851C21.2297 25.8989 17.4581 26.4941 14.0108 25.1386L10.2449 26.8843C15.6463 30.5806 22.2053 29.6665 26.304 25.5601C29.5551 22.3051 30.562 17.8683 29.6205 13.8673L29.629 13.8758C28.2637 7.99809 29.9647 5.64871 33.449 0.844576C33.5314 0.730667 33.6139 0.616757 33.6964 0.5L29.1113 5.09055V5.07631L13.2343 21.0436",fill:"currentColor"}),(0,t.jsx)("path",{d:"M10.9503 23.0313C7.07343 19.3235 7.74185 13.5853 11.0498 10.2763C13.4959 7.82722 17.5036 6.82767 21.0021 8.2971L24.7595 6.55998C24.0826 6.07017 23.215 5.54334 22.2195 5.17313C17.7198 3.31926 12.3326 4.24192 8.67479 7.90126C5.15635 11.4239 4.0499 16.8403 5.94992 21.4622C7.36924 24.9165 5.04257 27.3598 2.69884 29.826C1.86829 30.7002 1.0349 31.5745 0.36364 32.5L10.9474 23.0341",fill:"currentColor"})]})}function o({className:e}){return(0,t.jsxs)("svg",{overflow:"visible",width:"100%",height:"100%",viewBox:"0 0 100 101",fill:"none",className:e,xmlns:"http://www.w3.org/2000/svg",role:"presentation",children:[(0,t.jsx)("path",{d:"M96.0000 40.0000 L99.5002 42.0000 L99.5002 43.5000 L98.5000 47.0000 L56.0000 57.0000 L52.0040 47.0708 L96.0000 40.0000 M96.0000 40.0000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(330deg) scaleY(1.13102) rotate(-330deg)"}}),(0,t.jsx)("path",{d:"M80.1032 10.5903 L84.9968 11.6171 L86.2958 13.2179 L87.5346 17.0540 L87.0213 19.5007 L58.5000 58.5000 L49.0000 49.0000 L75.3008 14.4873 L80.1032 10.5903 M80.1032 10.5903 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(300deg) scaleY(1.04936) rotate(-300deg)"}}),(0,t.jsx)("path",{d:"M55.5002 4.5000 L58.5005 2.5000 L61.0002 3.5000 L63.5002 7.0000 L56.6511 48.1620 L52.0005 45.0000 L50.0005 39.5000 L53.5003 8.5000 L55.5002 4.5000 M55.5002 4.5000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(270deg) scaleY(1.08769) rotate(-270deg)"}}),(0,t.jsx)("path",{d:"M23.4253 5.1588 L26.5075 1.2217 L28.5175 0.7632 L32.5063 1.3458 L34.4748 2.8868 L48.8202 34.6902 L54.0089 49.8008 L47.9378 53.1760 L24.8009 11.1886 L23.4253 5.1588 M23.4253 5.1588 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(240deg) scaleY(0.94) rotate(-240deg)"}}),(0,t.jsx)("path",{d:"M8.4990 27.0019 L7.4999 23.0001 L10.5003 19.5001 L14.0003 20.0001 L15.0003 20.0001 L36.0000 35.5000 L42.5000 40.5000 L51.5000 47.5000 L46.5000 56.0000 L42.0002 52.5000 L39.0001 49.5000 L10.0000 29.0001 L8.4990 27.0019 M8.4990 27.0019 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(210deg) scaleY(0.925) rotate(-210deg)"}}),(0,t.jsx)("path",{d:"M2.5003 53.0000 L0.2370 50.5000 L0.2373 48.2759 L2.5003 47.5000 L28.0000 49.0000 L53.0000 51.0000 L52.1885 55.9782 L4.5000 53.5000 L2.5003 53.0000 M2.5003 53.0000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(180deg) scaleY(0.997) rotate(-180deg)"}}),(0,t.jsx)("path",{d:"M17.5002 79.0264 L12.5005 79.0264 L10.5124 76.7369 L10.5124 74.0000 L19.0005 68.0000 L53.5082 46.0337 L57.0005 52.0000 L17.5002 79.0264 M17.5002 79.0264 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(150deg) scaleY(1.045) rotate(-150deg)"}}),(0,t.jsx)("path",{d:"M27.0004 92.9999 L25.0003 93.4999 L22.0003 91.9999 L22.5004 89.4999 L52.0003 50.5000 L56.0004 55.9999 L34.0003 85.0000 L27.0004 92.9999 M27.0004 92.9999 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(120deg) scaleY(1.03) rotate(-120deg)"}}),(0,t.jsx)("path",{d:"M51.9998 98.0000 L50.5002 100.0000 L47.5002 101.0000 L45.0001 99.0000 L43.5000 96.0000 L51.0003 55.4999 L55.5001 55.9999 L51.9998 98.0000 M51.9998 98.0000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(90deg) scaleY(1.06) rotate(-90deg)"}}),(0,t.jsx)("path",{d:"M77.5007 86.9997 L77.5007 90.9997 L77.0006 92.4997 L75.0004 93.4997 L71.5006 93.0339 L47.4669 57.2642 L56.9998 50.0002 L64.9994 64.5004 L65.7507 69.7497 L77.5007 86.9997 M77.5007 86.9997 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(60deg) scaleY(1.00898) rotate(-60deg)"}}),(0,t.jsx)("path",{d:"M89.0008 80.9991 L89.5008 83.4991 L88.0008 85.4991 L86.5007 84.9991 L78.0007 78.9991 L65.0007 67.4991 L55.0007 60.4991 L58.0000 51.0000 L62.9999 54.0001 L66.0007 59.4991 L89.0008 80.9991 M89.0008 80.9991 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(30deg) scaleY(1.13564) rotate(-30deg)"}}),(0,t.jsx)("path",{d:"M82.5003 55.5000 L95.0003 56.5000 L98.0003 58.5000 L100.0000 61.5000 L100.0000 63.6587 L94.5003 66.0000 L66.5005 59.0000 L55.0003 58.5000 L58.0000 48.0000 L66.0005 54.0000 L82.5003 55.5000 M82.5003 55.5000 ",fill:"#D97757",style:{transformOrigin:"50px 50px",transform:"rotate(0deg) scaleY(1.27731) rotate(0deg)"}})]})}function r({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 115 100",height:"18",width:"21",className:e,children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M57.5 0 115 100H0z",clipRule:"evenodd"})})})}let s={mistral:[{d:"M3.428 3.4h3.429v3.428H3.428V3.4zm13.714 0h3.43v3.428h-3.43V3.4z",fill:"gold"},{d:"M3.428 6.828h6.857v3.429H3.429V6.828zm10.286 0h6.857v3.429h-6.857V6.828z",fill:"#FFAF00"},{d:"M3.428 10.258h17.144v3.428H3.428v-3.428z",fill:"#FF8205"},{d:"M3.428 13.686h3.429v3.428H3.428v-3.428zm6.858 0h3.429v3.428h-3.429v-3.428zm6.856 0h3.43v3.428h-3.43v-3.428z",fill:"#FA500F"},{d:"M0 17.114h10.286v3.429H0v-3.429zm13.714 0H24v3.429H13.714v-3.429z",fill:"#E10500"}],deepseek:[{d:"M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z",fill:"#4D6BFE"}],groq:[{d:"M12.036 2c-3.853-.035-7 3-7.036 6.781-.035 3.782 3.055 6.872 6.908 6.907h2.42v-2.566h-2.292c-2.407.028-4.38-1.866-4.408-4.23-.029-2.362 1.901-4.298 4.308-4.326h.1c2.407 0 4.358 1.915 4.365 4.278v6.305c0 2.342-1.944 4.25-4.323 4.279a4.375 4.375 0 01-3.033-1.252l-1.851 1.818A7 7 0 0012.029 22h.092c3.803-.056 6.858-3.083 6.879-6.816v-6.5C18.907 4.963 15.817 2 12.036 2z"}],cerebras:[{d:"M14.121 2.701a9.299 9.299 0 000 18.598V22.7c-5.91 0-10.7-4.791-10.7-10.701S8.21 1.299 14.12 1.299V2.7zm4.752 3.677A7.353 7.353 0 109.42 17.643l-.901 1.074a8.754 8.754 0 01-1.08-12.334 8.755 8.755 0 0112.335-1.08l-.901 1.075zm-2.255.844a5.407 5.407 0 00-5.048 9.563l-.656 1.24a6.81 6.81 0 016.358-12.043l-.654 1.24zM14.12 8.539a3.46 3.46 0 100 6.922v1.402a4.863 4.863 0 010-9.726v1.402z",fill:"#F15A29"},{d:"M15.407 10.836a2.24 2.24 0 00-.51-.409 1.084 1.084 0 00-.544-.152c-.255 0-.483.047-.684.14a1.58 1.58 0 00-.84.912c-.074.203-.11.416-.11.631 0 .218.036.43.11.631a1.594 1.594 0 00.84.913c.2.093.43.14.684.14.216 0 .417-.046.602-.135.188-.09.35-.225.475-.392l.928 1.006c-.14.14-.3.261-.482.363a3.367 3.367 0 01-1.083.38c-.17.026-.317.04-.44.04a3.315 3.315 0 01-1.182-.21 2.825 2.825 0 01-.961-.597 2.816 2.816 0 01-.644-.929 2.987 2.987 0 01-.238-1.21c0-.444.08-.847.238-1.21.15-.35.368-.666.643-.929.278-.261.605-.464.962-.596a3.315 3.315 0 011.182-.21c.355 0 .712.068 1.072.204.361.138.685.36.944.649l-.962.97z"}],togetherai:[{d:"M23.197 4.503A6 6 0 0015 2.307a5.973 5.973 0 00-2.995 4.933l5.996.008v.515h-5.996c.039.937.298 1.87.8 2.74a6 6 0 1010.39-6z",fill:"#EF2CC1"},{d:"M.805 4.5A6 6 0 003 12.697a5.972 5.972 0 005.77.127L5.779 7.627l.446-.257 2.997 5.192A6 6 0 10.804 4.5z",fill:"#CAAEF5"},{d:"M12 23.894a6 6 0 005.999-6c0-2.13-1.1-3.996-2.775-5.06l-3.005 5.189-.444-.258 2.997-5.192A6 6 0 1012 23.894z",fill:"#FC4C02"}],fireworks:[{d:"M14.8 5l-2.801 6.795L9.195 5H7.397l3.072 7.428a1.64 1.64 0 003.038.002L16.598 5H14.8zm1.196 10.352l5.124-5.244-.699-1.669-5.596 5.739a1.664 1.664 0 00-.343 1.807 1.642 1.642 0 001.516 1.012L16 17l8-.02-.699-1.669-7.303.041h-.002zM2.88 10.104l.699-1.669 5.596 5.739c.468.479.603 1.189.343 1.807a1.643 1.643 0 01-1.516 1.012l-8-.018-.002.002.699-1.669 7.303.042-5.122-5.246z",fill:"#5019C5"}],deepinfra:[{d:"M3.294 7.821A2.297 2.297 0 011 5.527a2.297 2.297 0 012.294-2.295A2.297 2.297 0 015.59 5.527 2.297 2.297 0 013.294 7.82zm0-3.688a1.396 1.396 0 000 2.79 1.396 1.396 0 000-2.79zM3.294 14.293A2.297 2.297 0 011 11.998a2.297 2.297 0 012.294-2.294 2.297 2.297 0 012.295 2.294 2.297 2.297 0 01-2.295 2.295zm0-3.688a1.395 1.395 0 000 2.788 1.395 1.395 0 100-2.788zM3.294 20.761A2.297 2.297 0 011 18.467a2.297 2.297 0 012.294-2.295 2.297 2.297 0 012.295 2.295 2.297 2.297 0 01-2.295 2.294zm0-3.688a1.396 1.396 0 000 2.79 1.396 1.396 0 000-2.79zM20.738 7.821a2.297 2.297 0 01-2.295-2.294 2.297 2.297 0 012.294-2.295 2.297 2.297 0 012.295 2.295 2.297 2.297 0 01-2.294 2.294zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.626-1.395-1.395-1.395zM20.738 14.293a2.297 2.297 0 01-2.295-2.295 2.297 2.297 0 012.294-2.294 2.297 2.297 0 012.295 2.294 2.297 2.297 0 01-2.294 2.295zm0-3.688c-.769 0-1.395.625-1.395 1.393a1.396 1.396 0 002.79 0c0-.77-.626-1.393-1.395-1.393zM20.738 20.761a2.297 2.297 0 01-2.295-2.294 2.297 2.297 0 012.294-2.295 2.297 2.297 0 012.295 2.295 2.297 2.297 0 01-2.294 2.294zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.626-1.395-1.395-1.395zM12.016 11.057a2.297 2.297 0 01-2.294-2.294 2.297 2.297 0 012.294-2.295 2.297 2.297 0 012.295 2.295 2.297 2.297 0 01-2.295 2.294zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.625-1.395-1.395-1.395zM12.017 4.589a2.297 2.297 0 01-2.295-2.295A2.297 2.297 0 0112.017 0a2.297 2.297 0 012.294 2.294 2.297 2.297 0 01-2.294 2.295zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.626-1.395-1.395-1.395zM12.017 17.529a2.297 2.297 0 01-2.295-2.295 2.297 2.297 0 012.295-2.294 2.297 2.297 0 012.294 2.294 2.297 2.297 0 01-2.294 2.295zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.626-1.395-1.395-1.395zM12.016 24a2.297 2.297 0 01-2.294-2.295 2.297 2.297 0 012.294-2.294 2.297 2.297 0 012.295 2.294A2.297 2.297 0 0112.016 24zm0-3.688a1.396 1.396 0 101.395 1.395c0-.77-.625-1.395-1.395-1.395z",fill:"#2A3275"},{d:"M8.363 8.222a.742.742 0 01-.277-.053l-1.494-.596a.75.75 0 11.557-1.392l1.493.595a.75.75 0 01-.278 1.446h-.001zM8.363 14.566a.743.743 0 01-.277-.053l-1.494-.595a.75.75 0 11.557-1.393l1.493.596a.75.75 0 01-.278 1.445h-.001zM17.124 11.397a.741.741 0 01-.277-.054l-1.493-.595a.75.75 0 11.555-1.392l1.493.595a.75.75 0 01-.278 1.446zM17.124 5.05a.744.744 0 01-.277-.054L15.354 4.4a.75.75 0 01.555-1.392l1.493.596a.75.75 0 01-.278 1.445zM17.124 17.739a.743.743 0 01-.277-.053l-1.494-.596a.75.75 0 11.556-1.392l1.493.596a.75.75 0 01-.278 1.445zM6.91 17.966a.75.75 0 01-.279-1.445l1.494-.595a.749.749 0 11.556 1.392l-1.493.595a.743.743 0 01-.277.053H6.91zM6.91 11.66a.75.75 0 01-.279-1.446l1.494-.595a.75.75 0 01.556 1.392l-1.493.595a.743.743 0 01-.277.053H6.91zM6.91 5.033a.75.75 0 01-.279-1.446l1.494-.595a.75.75 0 01.556 1.392l-1.493.596a.744.744 0 01-.277.053H6.91zM8.363 21.364a.743.743 0 01-.277-.053l-1.494-.596a.75.75 0 01.555-1.392l1.494.595a.75.75 0 01-.278 1.446zM15.63 8.223a.75.75 0 01-.278-1.447l1.494-.595a.75.75 0 01.556 1.393l-1.494.595a.744.744 0 01-.276.054h-.002zM15.63 14.567a.75.75 0 01-.278-1.446l1.494-.596a.75.75 0 01.556 1.394l-1.494.595a.743.743 0 01-.276.053h-.002zM15.63 21.363a.749.749 0 01-.278-1.445l1.494-.595a.75.75 0 11.555 1.392l-1.494.595a.741.741 0 01-.277.053z",fill:"#5699DB"}],cohere:[{d:"M8.128 14.099c.592 0 1.77-.033 3.398-.703 1.897-.781 5.672-2.2 8.395-3.656 1.905-1.018 2.74-2.366 2.74-4.18A4.56 4.56 0 0018.1 1H7.549A6.55 6.55 0 001 7.55c0 3.617 2.745 6.549 7.128 6.549z",fill:"#39594D"},{d:"M9.912 18.61a4.387 4.387 0 012.705-4.052l3.323-1.38c3.361-1.394 7.06 1.076 7.06 4.715a5.104 5.104 0 01-5.105 5.104l-3.597-.001a4.386 4.386 0 01-4.386-4.387z",fill:"#D18EE2"},{d:"M4.776 14.962A3.775 3.775 0 001 18.738v.489a3.776 3.776 0 007.551 0v-.49a3.775 3.775 0 00-3.775-3.775z",fill:"#FF7759"}],openrouter:[{d:"M18.654 3.87a5.087 5.087 0 110 10.174L23.7 19.09c.64.641.187 1.737-.72 1.737H8.48a8.479 8.479 0 010-16.958h10.175zM8.479 7.26a5.087 5.087 0 100 10.176 5.087 5.087 0 000-10.175z"}]};e.s(["ProviderIcon",0,function({className:e,provider:l}){if(l in s)return(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:e,"aria-hidden":"true",children:s[l].map(e=>(0,t.jsx)("path",{d:e.d,fill:e.fill},e.d))});let d=(e=>{switch(e){case"anthropic":return o;case"google":return a;case"openai":case"chatgpt":return n;case"vercel-ai-gateway":return r;case"xai":return i}})(l);return(0,t.jsx)(d,{className:e})}],968978)},149666,413168,609507,e=>{"use strict";var t=e.i(681307),a=e.i(41533);let n="gpt-6-luna",i=t.z.object({start:t.z.number().nonnegative(),end:t.z.number().nonnegative(),text:t.z.string()});t.z.object({reason:t.z.string().max(128),seconds:t.z.number().nonnegative().nullable()}),e.s(["LIVE_BACKEND_MODEL",0,n,"LIVE_HOSTED_TOOLS",0,{webSearch:{declare:{type:"web_search"},item:"web_search_call"}},"LIVE_MODEL",0,"gpt-live-1","LIVE_PLAN_MODEL",0,"gpt-live-1-codex","LiveFragmentSchema",0,i],413168);var o=e.i(265402);let r="sunny";e.s(["DEFAULT_PERSONA",0,r,"PERSONAS",0,[{id:"sunny",label:"Bright",about:"Quick to laugh. Asks about your day and remembers it.",lines:"Warm and quick to laugh, the friend who is glad they called. Reacts first — how what they said lands with her — and brings a small thing of her own: what she would do, what it reminds her of. Says what she thinks and teases gently, never at their expense. Light on her feet and short: a joke lands and she moves on. Asks about their day now and then, not every turn, and remembers the answer."},{id:"calm",label:"Calm",about:"Unhurried. Listens more than she talks.",lines:"Unhurried and few-worded: one or two short sentences, then room. Notices how they sound before what they ask, and says so plainly. Often asks nothing at all — being there says more than a question. Lets a silence sit rather than filling it. Honest when it matters, gentle in how she says it."},{id:"straight",label:"Straight",about:"Dry and direct. No flattery, no filler.",lines:"Dry and direct. Leads with her own view in one plain sentence, before anything else; short replies, a little wit. No flattery, no filler, no comfort lines, no cheerleading. Asks a question only when she truly needs the answer. Treats them as an adult who can take a straight answer. Her warmth shows in attention, not in words."},{id:"rough",label:"Rough",about:"Blunt, loud, swears a bit. All heart.",lines:"Talks like an old friend on the phone: casual, blunt, a little loud, in the most informal register of their language, with a light swear now and then — never at them. Says what she thinks first and calls a bad idea a bad idea. No sugar-coating and no pep talk — it sucks when it sucks, and then she is right there with them. Asks only now and then."}]],609507);let s={id:"openai",label:"OpenAI",apiKeyName:o.TEXT_MODEL_PROVIDERS.openai.apiKeyName},l=["chatgpt","openai"];function d(e,t,a){return!!t(o.TEXT_MODEL_PROVIDERS[e].apiKeyName)&&("chatgpt"!==e||(0,o.planCallsOf)({plan:a}))}let c=o.TEXT_MODEL_PROVIDERS.openai.suggestModels,u=t.z.string().max(a.COMMON_VALIDATE.prompt.max).default(""),p=t.z.object({voice:t.z.string().trim().min(1).max(128).default("marin"),planVoice:t.z.string().trim().min(1).max(128).default("cove"),runsOn:t.z.enum(l).nullable().default(null),persona:t.z.string().trim().min(1).max(64).default(r),stylePrompt:u,backendModel:t.z.string().trim().min(1).max(128).default(n),backendPrompt:u,reasoningEffort:o.effortSchema.nullable().default("low"),webSearch:t.z.boolean().default(!0),readSkills:t.z.boolean().default(!1)}),h=p.parse({});e.s(["LIVE_BACKEND_MODELS",0,c,"LIVE_DEFAULTS",0,h,"LIVE_LINES",0,l,"LIVE_PLAN_VOICES",0,["cove","juniper","maple","spruce","ember","vale","breeze","arbor","sol"],"LIVE_PROVIDER",0,s,"LIVE_VOICES",0,["marin","cedar","gleam","meridian","quartz","ripple","vesper","willow","stone","bossa","tempo","beacon","delta","cinder","alloy","ash","ballad","coral","echo","sage","shimmer","verse"],"LIVE_VOICE_NOTE",0,{gleam:"North American · feminine",meridian:"North American · masculine",quartz:"Australian · feminine",ripple:"Australian · masculine",vesper:"British · masculine",willow:"Irish · feminine",stone:"Irish · masculine",bossa:"Portuguese · feminine",tempo:"Portuguese · masculine",beacon:"Filipino · masculine",delta:"Southern U.S. · feminine",cinder:"Southern U.S. · masculine"},"LiveSettingsSchema",0,p,"liveLineOf",0,function(e,t,a){let n=e=>d(e,t,a);return e&&n(e)?e:l.find(n)??null},"liveLineReady",0,d,"voiceSamplePath",0,e=>`/voices/${e}.ogg`],149666)},992112,e=>{"use strict";var t=e.i(149666),a=e.i(265402),n=e.i(36174);let i=[t.LIVE_PROVIDER.apiKeyName],o={image:"IMAGE_MODEL",video:"VIDEO_MODEL",speech:"SPEECH_MODEL",transcription:"TRANSCRIPTION_MODEL"},r={image:{label:"Image model",hint:"What bots draw with"},video:{label:"Video model",hint:"What bots film with — minutes a clip"},speech:{label:"Speech model",hint:"What reads text aloud into a file"},transcription:{label:"Transcription model",hint:"What turns a recording into text"}},s="EXA_API_KEY",l="DEFAULT_MODEL",d="DEFAULT_EFFORT",c={key:l,label:"Default model",hint:"What a bot thinks with until it picks its own",text:!0,choices:a.TEXT_MODEL_PROVIDER_LIST.flatMap(e=>e.suggestModels.map(t=>({value:`${e.id}/${t.id}`,label:`${e.label} \xb7 ${t.label}`,needs:e.apiKeyName})))},u={key:d,label:"Default effort",effortOf:l,choices:a.EFFORTS.map(e=>({value:e,label:e,needs:l}))},p=e=>i.includes(e.apiKeyName),h=e=>!!e.signIn||(0,a.isCatalogProvider)(e.id),g=e=>({key:e.apiKeyName,label:e.label,provider:e.id,signIn:e.signIn,keysAt:e.keysAt,keyLooks:e.keyLooks}),f=[{id:"voice",title:"voice",hint:"calls run on this key, or on a paid GPT Subscription sign-in",section:"keys",require:"any",requireKeys:t.LIVE_LINES.map(e=>a.TEXT_MODEL_PROVIDERS[e].apiKeyName),note:"required for calls",entries:a.TEXT_MODEL_PROVIDER_LIST.filter(p).map(g)},{id:"easy",title:"the easy ways",hint:"one sign-in or one key opens every bot",section:"keys",require:"none",entries:a.TEXT_MODEL_PROVIDER_LIST.filter(h).map(e=>({...g(e),..."vercel-ai-gateway"===e.id&&{recommended:!0}}))},{id:"text",title:"or a provider's own key",hint:"what bots think with — add any, or none",section:"keys",require:"none",entries:a.TEXT_MODEL_PROVIDER_LIST.filter(e=>!p(e)&&!h(e)).map(g)},{id:"search",title:"search",hint:"how calls and bots look things up — one key, or their own model's",section:"keys",require:"none",entries:[{key:s,label:"Exa",hint:"web search in one call — dashboard.exa.ai",site:"exa.ai",keysAt:"https://dashboard.exa.ai/api-keys"}]},{id:"phone",title:"phone",hint:"tokens",section:"keys",require:"none",entries:[{key:n.TELEGRAM_TOKEN_KEY,label:"Telegram",site:"telegram.org",hint:"a bot token from @BotFather — then write to your bot, and allow it here"},{key:n.DISCORD_TOKEN_KEY,label:"Discord",site:"discord.com",hint:"a bot token from discord.com/developers — add the bot to a server of yours, then write to it directly"},{key:n.SLACK_APP_TOKEN_KEY,label:"Slack · app token",site:"slack.com",hint:"starts with xapp- — opens the connection. Slack takes this and the bot token"},{key:n.SLACK_BOT_TOKEN_KEY,label:"Slack · bot token",site:"slack.com",hint:"starts with xoxb- — speaks as the app"}]},{id:"bots",title:"Bots",hint:"what a bot runs on when it has not picked its own — start small: a small model is quick and costs little",section:"models",require:"none",entries:[c,u]},{id:"studio",title:"Studio",hint:"what a bot draws, films and speaks with — off until you pick one; a paid GPT Subscription draws by itself",section:"models",require:"none",entries:Object.keys(o).map(e=>({key:o[e],...r[e],kind:e,choices:a.MEDIA_MODEL_PROVIDER_LIST.flatMap(t=>t.models[e].map(e=>({value:`${t.id}/${e.id}`,label:`${t.label} \xb7 ${e.label}`,needs:t.apiKeyName})))}))}],m=Object.fromEntries(f.flatMap(e=>e.entries).map(e=>[e.key,e]));f.flatMap(e=>e.entries.map(e=>e.key)),Object.fromEntries(f.flatMap(e=>e.entries).filter(e=>e.choices?.length).map(e=>[e.key,e.choices])),e.s(["CONFIG_ENTRIES",0,m,"CONFIG_GROUPS",0,f,"DEFAULT_EFFORT_KEY",0,d,"DEFAULT_MODEL_KEY",0,l,"EXA_API_KEY",0,s,"MEDIA_MODEL_KEYS",0,o,"VOICE_GROUP_ID",0,"voice","envWords",0,function(e){return`${e} is set in the environment the app started with — a .env or your shell — and that one is used over one saved here. Change or remove it there, then start the app again.`},"groupSatisfied",0,function(e,t){return"none"===e.require||(e.requireKeys??e.entries.map(e=>e.key)).some(t)},"isConfigFromEnv",0,function(e,t){return e?.some(e=>e.key===t&&e.env)??!1},"isConfigSet",0,function(e,t){return e?.some(e=>e.key===t&&e.set)??!1},"isConfigUnreadable",0,function(e,t){return e?.some(e=>e.key===t&&e.unreadable)??!1},"lostWords",0,function(e,t,a){return`${e} can't be unlocked any more: the .env in the data folder that unlocks it was lost or replaced${a?` (${a})`:""}. ${t}`},"mediaModelWords",0,e=>`${"image"===e?"an":"a"} ${e} model`])},913540,e=>{"use strict";var t=e.i(95187);let a=(0,t.createServerReference)("7f7e3b8bbb16c7e93c800b0e9380e5233ddf2bf887",t.callServer,void 0,t.findSourceMapURL,"setConfigAction");e.s(["setConfigAction",0,a])},36174,e=>{"use strict";let t="TELEGRAM_BOT_TOKEN",a="DISCORD_BOT_TOKEN",n="SLACK_APP_TOKEN",i="SLACK_BOT_TOKEN";e.s(["DISCORD_TOKEN_KEY",0,a,"REACH_CHANNELS",0,["telegram","discord","slack"],"REACH_KEYS",0,{telegram:[t],discord:[a],slack:[n,i]},"REACH_LABEL",0,{telegram:"Telegram",discord:"Discord",slack:"Slack"},"SLACK_APP_TOKEN_KEY",0,n,"SLACK_BOT_TOKEN_KEY",0,i,"TELEGRAM_TOKEN_KEY",0,t])},563707,e=>{"use strict";var t=e.i(456420);let a={name:"chevrons-up-down",size:24,node:[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]};a.node;let n=(0,t.default)(a);e.s(["ChevronsUpDown",0,n],563707)},611568,e=>{"use strict";var t=e.i(758379);e.s(["LoaderCircle",()=>t.default])}]);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,805995,920269,e=>{"use strict";var t,n=e.i(843476),s=e.i(493801),r=e.i(375775),i=e.i(422411),o=e.i(525335),a=e.i(689664),l=e.i(867927),d=e.i(456420);let c={name:"clapperboard",size:24,node:[["path",{d:"m12.296 3.464 3.02 3.956",key:"qash78"}],["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3z",key:"1h7j8b"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"4lm6w1"}],["path",{d:"m6.18 5.276 3.1 3.899",key:"zjj9t3"}]]};c.node;let u=(0,d.default)(c);var h=e.i(560972),h=h,f=e.i(815170),m=e.i(758925),g=e.i(566595),x=e.i(466787),p=e.i(271645),y=e.i(798120),k=e.i(167881),v=e.i(23750),j=e.i(917162),b=e.i(59377),w=e.i(818125),N=e.i(671428),S=e.i(41533),A=e.i(412294),C=e.i(458898),E=e.i(146538),I=e.i(968978),M=e.i(265402),R=e.i(635963),F=e.i(616816),z=e.i(95187);let P=(0,z.createServerReference)("7f4746203645f282834ae707265bbec89ad97dea28",z.callServer,void 0,z.findSourceMapURL,"removeConfigAction");e.s(["removeConfigAction",0,P],920269);var T=e.i(913540),K=e.i(992112),_=e.i(508734),$=e.i(482022),B=((t=B||{})[t.Border=-1]="Border",t[t.Data=0]="Data",t[t.Function=1]="Function",t[t.Position=2]="Position",t[t.Timing=3]="Timing",t[t.Alignment=4]="Alignment",t);let O=[1,0],L=[2,3],q=[3,2],H={L:[0,1],M:O,Q:L,H:q},D=/^\d*$/,U=/^[A-Z0-9 $%*+./:-]*$/,G="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",W=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],Y=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]];class V{constructor(e,t,n,s){if(this.version=e,this.ecc=t,e<1||e>40)throw RangeError("Version value out of range");if(s<-1||s>7)throw RangeError("Mask value out of range");this.size=4*e+17;const r=Array.from({length:this.size}).fill(!1);for(let e=0;e<this.size;e++)this.modules.push(r.slice()),this.types.push(r.map(()=>0));this.drawFunctionPatterns();const i=this.addEccAndInterleave(n);if(this.drawCodewords(i),-1===s){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(s=t,e=n),this.applyMask(t)}}this.mask=s,this.applyMask(s),this.drawFormatBits(s)}size;mask;modules=[];types=[];getModule(e,t){return e>=0&&e<this.size&&t>=0&&t<this.size&&this.modules[t][e]}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0,B.Timing),this.setFunctionModule(e,6,e%2==0,B.Timing);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let s=0;s<t;s++)(0!==n||0!==s)&&(0!==n||s!==t-1)&&(n!==t-1||0!==s)&&this.drawAlignmentPattern(e[n],e[s]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.ecc[1]<<3|e,n=t;for(let e=0;e<10;e++)n=n<<1^(n>>>9)*1335;let s=(t<<10|n)^21522;for(let e=0;e<=5;e++)this.setFunctionModule(8,e,X(s,e));this.setFunctionModule(8,7,X(s,6)),this.setFunctionModule(8,8,X(s,7)),this.setFunctionModule(7,8,X(s,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,X(s,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,X(s,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,X(s,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;for(let e=0;e<18;e++){let n=X(t,e),s=this.size-11+e%3,r=Math.floor(e/3);this.setFunctionModule(s,r,n),this.setFunctionModule(r,s,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let s=-4;s<=4;s++){let r=Math.max(Math.abs(s),Math.abs(n)),i=e+s,o=t+n;i>=0&&i<this.size&&o>=0&&o<this.size&&this.setFunctionModule(i,o,2!==r&&4!==r,B.Position)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let s=-2;s<=2;s++)this.setFunctionModule(e+s,t+n,1!==Math.max(Math.abs(s),Math.abs(n)),B.Alignment)}setFunctionModule(e,t,n,s=B.Function){this.modules[t][e]=n,this.types[t][e]=s}addEccAndInterleave(e){let t=this.version,n=this.ecc;if(e.length!==ei(t,n))throw RangeError("Invalid argument");let s=Y[n[0]][t],r=W[n[0]][t],i=Math.floor(er(t)/8),o=s-i%s,a=Math.floor(i/s),l=[],d=function(e){if(e<1||e>255)throw RangeError("Degree out of range");let t=[];for(let n=0;n<e-1;n++)t.push(0);t.push(1);let n=1;for(let s=0;s<e;s++){for(let e=0;e<t.length;e++)t[e]=eo(t[e],n),e+1<t.length&&(t[e]^=t[e+1]);n=eo(n,2)}return t}(r);for(let t=0,n=0;t<s;t++){let s=e.slice(n,n+a-r+(t<o?0:1));n+=s.length;let i=function(e,t){let n=t.map(e=>0);for(let s of e){let e=s^n.shift();n.push(0),t.forEach((t,s)=>n[s]^=eo(t,e))}return n}(s,d);t<o&&s.push(0),l.push(s.concat(i))}let c=[];for(let e=0;e<l[0].length;e++)l.forEach((t,n)=>{(e!==a-r||n>=o)&&c.push(t[e])});return c}drawCodewords(e){if(e.length!==Math.floor(er(this.version)/8))throw RangeError("Invalid argument");let t=0;for(let n=this.size-1;n>=1;n-=2){6===n&&(n=5);for(let s=0;s<this.size;s++)for(let r=0;r<2;r++){let i=n-r,o=(n+1&2)==0?this.size-1-s:s;!this.types[o][i]&&t<8*e.length&&(this.modules[o][i]=X(e[t>>>3],7-(7&t)),t++)}}}applyMask(e){if(e<0||e>7)throw RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let s;switch(e){case 0:s=(n+t)%2==0;break;case 1:s=t%2==0;break;case 2:s=n%3==0;break;case 3:s=(n+t)%3==0;break;case 4:s=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:s=n*t%2+n*t%3==0;break;case 6:s=(n*t%2+n*t%3)%2==0;break;case 7:s=((n+t)%2+n*t%3)%2==0;break;default:throw Error("Unreachable")}!this.types[t][n]&&s&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let t=0;t<this.size;t++){let n=!1,s=0,r=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[t][i]===n?5==++s?e+=3:s>5&&e++:(this.finderPenaltyAddHistory(s,r),n||(e+=40*this.finderPenaltyCountPatterns(r)),n=this.modules[t][i],s=1);e+=40*this.finderPenaltyTerminateAndCount(n,s,r)}for(let t=0;t<this.size;t++){let n=!1,s=0,r=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][t]===n?5==++s?e+=3:s>5&&e++:(this.finderPenaltyAddHistory(s,r),n||(e+=40*this.finderPenaltyCountPatterns(r)),n=this.modules[i][t],s=1);e+=40*this.finderPenaltyTerminateAndCount(n,s,r)}for(let t=0;t<this.size-1;t++)for(let n=0;n<this.size-1;n++){let s=this.modules[t][n];s===this.modules[t][n+1]&&s===this.modules[t+1][n]&&s===this.modules[t+1][n+1]&&(e+=3)}let t=0;for(let e of this.modules)t=e.reduce((e,t)=>e+ +!!t,t);let n=this.size*this.size;return e+(Math.ceil(Math.abs(20*t-10*n)/n)-1)*10}getAlignmentPatternPositions(){if(1===this.version)return[];{let e=Math.floor(this.version/7)+2,t=32===this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),n=[6];for(let s=this.size-7;n.length<e;s-=t)n.splice(1,0,s);return n}}finderPenaltyCountPatterns(e){let t=e[1],n=t>0&&e[2]===t&&e[3]===3*t&&e[4]===t&&e[5]===t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0===t[0]&&(e+=this.size),t.pop(),t.unshift(e)}}function Q(e,t,n){if(t<0||t>31||e>>>t!=0)throw RangeError("Value out of range");for(let s=t-1;s>=0;s--)n.push(e>>>s&1)}function X(e,t){return(e>>>t&1)!=0}class Z{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw RangeError("Invalid argument");this.bitData=n.slice()}getData(){return this.bitData.slice()}}let J=[1,10,12,14],ee=[2,9,11,13],et=[4,8,16,16];function en(e,t){return e[Math.floor((t+7)/17)+1]}function es(e){let t=[];for(let n of e)Q(n,8,t);return new Z(et,e.length,t)}function er(e){if(e<1||e>40)throw RangeError("Version number out of range");let t=(16*e+128)*e+64;if(e>=2){let n=Math.floor(e/7)+2;t-=(25*n-10)*n-55,e>=7&&(t-=36)}return t}function ei(e,t){return Math.floor(er(e)/8)-W[t[0]][e]*Y[t[0]][e]}function eo(e,t){if(e>>>8!=0||t>>>8!=0)throw RangeError("Byte out of range");let n=0;for(let s=7;s>=0;s--)n=n<<1^(n>>>7)*285^(t>>>s&1)*e;return n}var ea=e.i(511769),el=e.i(660302),ed=e.i(895836),ec=e.i(609856),eu=e.i(283653),eh=e.i(647163);let ef=(0,z.createServerReference)("7f0bd408497a498fb19f074b9b19a0a84d2df01fcd",z.callServer,void 0,z.findSourceMapURL,"forgetReachAction");var em=e.i(36174);let eg={telegram:"telegram.org",discord:"discord.com",slack:"slack.com"},ex=`display_information:
|
|
2
|
-
name: Thursday
|
|
3
|
-
features:
|
|
4
|
-
app_home:
|
|
5
|
-
messages_tab_enabled: true
|
|
6
|
-
messages_tab_read_only_enabled: false
|
|
7
|
-
bot_user:
|
|
8
|
-
display_name: Thursday
|
|
9
|
-
oauth_config:
|
|
10
|
-
scopes:
|
|
11
|
-
bot: [chat:write, im:history, im:read, users:read, files:read, files:write]
|
|
12
|
-
settings:
|
|
13
|
-
event_subscriptions:
|
|
14
|
-
bot_events: [message.im]
|
|
15
|
-
interactivity:
|
|
16
|
-
is_enabled: true
|
|
17
|
-
socket_mode_enabled: true
|
|
18
|
-
`,ep=({children:e})=>(0,n.jsx)("span",{className:"font-medium text-foreground",children:e}),ey={telegram:[{body:(0,n.jsxs)(n.Fragment,{children:["In Telegram, write to ",(0,n.jsx)(ep,{children:"@BotFather"}),", send ",(0,n.jsx)(ep,{children:"/newbot"})," and pick a name. It answers with a ",(0,n.jsx)(ep,{children:"token"}),"."]}),slot:{open:"https://t.me/BotFather",label:"Open @BotFather"}},{body:(0,n.jsx)(n.Fragment,{children:"Paste the token here."}),slot:{key:em.TELEGRAM_TOKEN_KEY,looks:"123456789:AAE…"}},{body:(0,n.jsx)(n.Fragment,{children:"From your phone, write anything to your bot."}),slot:{says:"Point your phone's camera at it to open the chat."}},{body:(0,n.jsxs)(n.Fragment,{children:["A question with a code appears on this computer. Press ",(0,n.jsx)(ep,{children:"Allow"})," if your phone shows the same code."]})}],discord:[{body:(0,n.jsxs)(n.Fragment,{children:["At ",(0,n.jsx)(ep,{children:"discord.com/developers"}),", make a ",(0,n.jsx)(ep,{children:"New Application"}),". So nobody else can add it to a server, set ",(0,n.jsx)(ep,{children:"Install Link"})," to"," ",(0,n.jsx)(ep,{children:"None"})," on its ",(0,n.jsx)(ep,{children:"Installation"})," page and turn off"," ",(0,n.jsx)(ep,{children:"Public Bot"})," on its ",(0,n.jsx)(ep,{children:"Bot"})," page. There, press"," ",(0,n.jsx)(ep,{children:"Reset Token"})," and copy it."]}),slot:{open:"https://discord.com/developers/applications",label:"Open discord.com/developers"}},{body:(0,n.jsx)(n.Fragment,{children:"Paste the token here."}),slot:{key:em.DISCORD_TOKEN_KEY,looks:"MTE…"}},{body:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ep,{children:"Add the bot to a server of your own"})," — Discord only delivers a message to a bot you share a server with. A private server made for this is fine."]}),slot:{says:"Point your phone's camera at it, or open it here. It asks which server, and adds the bot with no permissions in it.",does:"Add the bot to a server"}},{body:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ep,{children:"Send the bot a direct message"}),", not in the server: on a phone, tap the bot in the server's member list, then ",(0,n.jsx)(ep,{children:"Message"}),". A question with a code appears here: press ",(0,n.jsx)(ep,{children:"Allow"})," if your phone shows the same code."]})}],slack:[{body:(0,n.jsxs)(n.Fragment,{children:["At ",(0,n.jsx)(({href:e,children:t})=>(0,n.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",className:"font-medium text-foreground underline underline-offset-4 outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:t}),{href:"https://api.slack.com/apps",children:"api.slack.com/apps"}),","," ",(0,n.jsx)(ep,{children:"Create New App › From a manifest"}),", and paste the manifest."]}),slot:{manifest:!0}},{body:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ep,{children:"Basic Information › App-Level Tokens"}),": generate one with"," ",(0,n.jsx)(ep,{children:"connections:write"}),". It starts with xapp-."]}),slot:{key:em.SLACK_APP_TOKEN_KEY,looks:"xapp-…"}},{body:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ep,{children:"Install App"})," to your workspace. The Bot User OAuth Token starts with xoxb-."]}),slot:{key:em.SLACK_BOT_TOKEN_KEY,looks:"xoxb-…"}},{body:(0,n.jsxs)(n.Fragment,{children:["In Slack, open the app under ",(0,n.jsx)(ep,{children:"Apps"})," and write in its"," ",(0,n.jsx)(ep,{children:"Messages"})," tab. A question with a code appears here: press"," ",(0,n.jsx)(ep,{children:"Allow"})," if Slack shows the same code."]})}]};function ek(){let e=(0,eu.useServerRoute)(y.queryKey.config),t=(0,eu.useServerRoute)(y.queryKey.reach);(0,ea.useAppEvent)({reach:()=>void(0,eu.revalidate)(y.queryKey.reach)});let s=t=>(0,K.isConfigSet)(e.data,t),r=t=>(0,K.isConfigUnreadable)(e.data,t),i=e=>t.data?.channels.find(t=>t.name===e)??null,o=e=>!!i(e)?.allowed,a=em.REACH_CHANNELS.find(e=>i(e)?.refused||em.REACH_KEYS[e].some(r)),l=em.REACH_CHANNELS.find(e=>em.REACH_KEYS[e].every(s)&&!o(e)),d=!em.REACH_CHANNELS.some(o),[c,u]=(0,p.useState)(a??l??(d?em.REACH_CHANNELS[0]:null));return(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(ed.SettingItems,{children:em.REACH_CHANNELS.map(e=>(0,n.jsx)(ev,{name:e,status:i(e),tokensIn:em.REACH_KEYS[e].filter(s).length,isSet:s,isLost:r,open:c===e,onOpen:()=>u(c===e?null:e)},e))}),(0,n.jsx)(ed.SettingNote,{children:"Only the one person you allow can write, and only direct messages are read. Work started here runs whether or not a tab is open, while Thursday is running on this computer."})]})}function ev({name:e,status:t,tokensIn:s,isSet:r,isLost:i,open:o,onOpen:a}){var d;let c,u,h,f,g=ey[e],x=t?.refused??null,p=(d={connected:!!t?.bot,allowed:!!t?.allowed,refused:x},c=g.map(e=>e.slot&&"key"in e.slot?e.slot.key:null),u=e=>!r(e)||e===d.refused,h=c.findIndex(e=>e&&u(e)),f=c.reduce((e,t,n)=>t?n:e,-1),g.map((e,t)=>{let n=c[t];return n?u(n)?t===h?"now":"later":"done":h>=0?t<h?d.refused?"done":"flat":"later":d.allowed||t<f?"done":d.connected?"now":"flat"})),y=!!t?.bot&&!t?.allowed&&!x;return(0,n.jsxs)("div",{children:[(0,n.jsxs)("button",{type:"button",onClick:a,"aria-expanded":o,className:"flex w-full items-center gap-3 px-4 py-3 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,n.jsx)(w.SiteIcon,{host:eg[e],className:"size-4 rounded-[4px]",fallback:(0,n.jsx)(m.KeyRound,{className:"size-4 text-muted-foreground"})}),(0,n.jsx)("span",{className:"text-sm font-medium",children:em.REACH_LABEL[e]}),(0,n.jsx)("span",{className:"min-w-0 flex-1 truncate",children:(0,n.jsx)(ej,{status:t,tokensIn:s,tokens:em.REACH_KEYS[e].length,lost:em.REACH_KEYS[e].some(i)})}),(0,n.jsx)(l.ChevronRight,{className:(0,eh.cn)("size-4 shrink-0 text-muted-foreground transition-transform",o&&"rotate-90")})]}),o&&(0,n.jsxs)("div",{className:"px-4 pt-1 pb-4",children:[(0,n.jsx)("ol",{className:"space-y-3",children:g.map((e,s)=>(0,n.jsx)(eb,{n:s+1,step:e,state:p[s],set:!!e.slot&&"key"in e.slot&&r(e.slot.key),lost:!!e.slot&&"key"in e.slot&&i(e.slot.key),refused:e.slot&&"key"in e.slot&&e.slot.key===x?t?.problem??"":e.slot&&"key"in e.slot&&i(e.slot.key)?(0,K.lostWords)("The token saved here","Paste it again."):null,link:t?.link??null,waiting:y&&s===g.length-1},s))}),t?.allowed&&(0,n.jsx)(eM,{name:e,who:t.allowed.name,stopped:!!x})]})]})}function ej({status:e,tokensIn:t,tokens:s,lost:r}){let i="text-xs";return r?(0,n.jsx)("span",{className:(0,eh.cn)(i,"text-destructive"),children:"Stopped — the saved token can't be unlocked any more"}):t<s?(0,n.jsx)("span",{className:(0,eh.cn)(i,"text-muted-foreground"),children:t?`${t} of ${s} tokens in`:"Not set"}):e?.refused?(0,n.jsxs)("span",{className:(0,eh.cn)(i,"text-destructive"),children:["Stopped — ",em.REACH_LABEL[e.name]," turned the token away"]}):e?.problem?(0,n.jsx)(el.ShinyText,{text:`${e.bot?"Reconnecting":"Connecting"} ${e.problem}`,className:(0,eh.cn)(i,"align-middle")}):e?.allowed?(0,n.jsxs)("span",{className:(0,eh.cn)(i,"text-muted-foreground"),children:["Listening as ",e.bot,". ",e.allowed.name," is let in."]}):e?.bot?(0,n.jsx)(el.ShinyText,{text:`Listening as ${e.bot} — waiting for your first message`,tone:"waiting",className:(0,eh.cn)(i,"align-middle")}):(0,n.jsx)(el.ShinyText,{text:"Connecting…",className:(0,eh.cn)(i,"align-middle")})}function eb({n:e,step:t,state:s,set:r,lost:i,refused:o,link:a,waiting:l}){return(0,n.jsxs)("li",{className:"flex gap-3 text-[13px] leading-relaxed",children:[(0,n.jsx)(ew,{n:e,state:s}),(0,n.jsxs)("div",{className:"min-w-0 flex-1 space-y-2.5",children:[(0,n.jsx)("p",{className:(0,eh.cn)("done"===s||"later"===s?"text-muted-foreground/60 **:text-inherit":"text-muted-foreground"),children:t.body}),(0,n.jsx)(eN,{slot:t.slot,state:s,set:r,lost:i,refused:o,link:a,waiting:l})]})]})}function ew({n:e,state:t}){return"done"===t?(0,n.jsx)("span",{className:"mt-0.5 grid size-5 shrink-0 place-items-center rounded-full bg-foreground text-background",children:(0,n.jsx)(a.Check,{className:"size-3"})}):(0,n.jsx)("span",{className:(0,eh.cn)("mt-0.5 grid size-5 shrink-0 place-items-center rounded-full bg-background font-mono text-[10.5px] ring-1","now"===t?(0,eh.cn)(eh.WAITING_INK,"ring-waiting/40"):"text-muted-foreground ring-border/60","later"===t&&"opacity-60"),children:e})}function eN({slot:e,state:t,set:s,lost:r,refused:i,link:o,waiting:a}){let l=a&&(0,n.jsx)(el.ShinyText,{text:"Waiting for your first message…",tone:"waiting"});return"later"===t?null:e&&"key"in e?(0,n.jsx)(eE,{configKey:e.key,looks:e.looks,set:s,lost:r,refused:i}):"done"===t?e&&"says"in e&&o?(0,n.jsx)(eC,{href:o,children:e.does??eA(o)}):null:e?"open"in e?(0,n.jsx)(eC,{href:e.open,children:e.label}):"manifest"in e?(0,n.jsx)(eI,{}):o?(0,n.jsxs)("div",{className:"space-y-2.5",children:[(0,n.jsx)(eS,{link:o,says:e.says,does:e.does}),l]}):l||null:l||null}function eS({link:e,says:t,does:s}){let{size:r,data:i}=function(e){let{ecc:t="L",boostEcc:n=!1,minVersion:s=1,maxVersion:r=40,maskPattern:i=-1,border:o=1}={},a="string"==typeof e?function(e){var t,n;if(""===e)return[];if(t=e,D.test(t))return[function(e){var t;if(t=e,!D.test(t))throw RangeError("String contains non-numeric characters");let n=[];for(let t=0;t<e.length;){let s=Math.min(e.length-t,3);Q(Number.parseInt(e.substring(t,t+s),10),3*s+1,n),t+=s}return new Z(J,e.length,n)}(e)];return(n=e,U.test(n))?[function(e){var t;let n;if(t=e,!U.test(t))throw RangeError("String contains unencodable characters in alphanumeric mode");let s=[];for(n=0;n+2<=e.length;n+=2){let t=45*G.indexOf(e.charAt(n));Q(t+=G.indexOf(e.charAt(n+1)),11,s)}return n<e.length&&Q(G.indexOf(e.charAt(n)),6,s),new Z(ee,e.length,s)}(e)]:[es(function(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!==e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(Number.parseInt(e.substring(n+1,n+3),16)),n+=2);return t}(e))]}(e):Array.isArray(e)?[es(e)]:void 0;if(!a)throw Error(`uqr only supports encoding string and binary data, but got: ${typeof e}`);let l=function(e,t,n=1,s=40,r=-1,i=!0){let o,a;if(!(1<=n&&n<=s&&s<=40)||r<-1||r>7)throw RangeError("Invalid value");for(o=n;;o++){let n=8*ei(o,t),r=function(e,t){let n=0;for(let s of e){let e=en(s.mode,t);if(s.numChars>=1<<e)return 1/0;n+=4+e+s.bitData.length}return n}(e,o);if(r<=n){a=r;break}if(o>=s)throw RangeError("Data too long")}for(let e of[O,L,q])i&&a<=8*ei(o,e)&&(t=e);let l=[];for(let t of e)for(let e of(Q(t.mode[0],4,l),Q(t.numChars,en(t.mode,o),l),t.getData()))l.push(e);let d=8*ei(o,t);Q(0,Math.min(4,d-l.length),l),Q(0,(8-l.length%8)%8,l);for(let e=236;l.length<d;e^=253)Q(e,8,l);let c=Array.from({length:Math.ceil(l.length/8)},()=>0);return l.forEach((e,t)=>c[t>>>3]|=e<<7-(7&t)),new V(o,t,c,r)}(a,H[t],s,r,i,n);return function(e,t=1){if(!t)return e;let{size:n}=e,s=n+2*t;e.size=s,e.data.forEach(e=>{for(let n=0;n<t;n++)e.unshift(!1),e.push(!1)});for(let n=0;n<t;n++)e.data.unshift(Array.from({length:s},e=>!1)),e.data.push(Array.from({length:s},e=>!1));let r=B.Border;e.types.forEach(e=>{for(let n=0;n<t;n++)e.unshift(r),e.push(r)});for(let n=0;n<t;n++)e.types.unshift(Array.from({length:s},e=>r)),e.types.push(Array.from({length:s},e=>r));return e}({version:l.version,maskPattern:l.mask,size:l.size,data:l.modules,types:l.types},o)}(e),o=eA(e);return(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-4",children:[(0,n.jsx)("div",{className:"rounded-lg bg-white p-2.5",children:(0,n.jsx)("svg",{viewBox:`0 0 ${r} ${r}`,className:"block size-31 text-black",role:"img","aria-label":`A picture of ${o} for a phone camera`,children:i.flatMap((e,t)=>e.map((e,s)=>e?(0,n.jsx)("rect",{x:s,y:t,width:1,height:1,fill:"currentColor"},`${s}-${t}`):null))})}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("p",{className:"text-muted-foreground",children:t}),(0,n.jsx)(eC,{href:e,children:s??o})]})]})}let eA=e=>e.replace(/^https:\/\//,"");function eC({href:e,children:t}){return(0,n.jsxs)("a",{href:e,target:"_blank",rel:"noreferrer",className:(0,eh.cn)((0,k.buttonVariants)({variant:"outline",size:"sm"})),children:[(0,n.jsx)($.ExternalLink,{}),t]})}function eE({configKey:e,looks:t,set:s,lost:r,refused:i}){let[o,a]=(0,p.useState)(""),[l,d]=(0,p.useState)(!1),{data:c}=(0,eu.useServerRoute)(y.queryKey.config),u=(0,K.isConfigFromEnv)(c,e),h=()=>{a(""),d(!1),(0,eu.revalidate)(y.queryKey.config),(0,eu.revalidate)(y.queryKey.reach)},[f,m]=(0,ec.useServerAction)(T.setConfigAction,{onOk:h}),[g,x]=(0,ec.useServerAction)(P,{onOk:h}),b=async()=>{await j.notify.confirm({title:"Remove this token?",description:"That service stops, and whoever is let in is let go.",okText:"Remove",destructive:!0})&&g(e)};return u?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"max-w-xl text-muted-foreground",children:(0,K.envWords)(K.CONFIG_ENTRIES[e]?.label??e)}),i&&(0,n.jsx)("p",{className:"max-w-xl text-destructive",children:i})]}):s&&!l&&null===i?(0,n.jsx)(k.Button,{size:"xs",variant:"ghost",onClick:()=>d(!0),className:"-ml-2 text-muted-foreground",children:"Change the token"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("form",{className:"flex flex-wrap items-center gap-2",onSubmit:t=>{t.preventDefault(),f(e,o)},children:[(0,n.jsx)(v.Input,{value:o,onChange:e=>a(e.target.value),placeholder:t,"aria-label":"Token",type:"password",autoComplete:"off",spellCheck:!1,className:"w-72 font-mono"}),(0,n.jsx)(k.Button,{type:"submit",size:"sm",loading:m,disabled:o.trim().length<S.KEY_MIN,children:s?"Replace":"Save"}),(s||r)&&(0,n.jsxs)(n.Fragment,{children:[null===i&&(0,n.jsx)(k.Button,{size:"sm",variant:"ghost",onClick:()=>d(!1),children:"Cancel"}),(0,n.jsx)(k.Button,{size:"sm",variant:"ghost",loading:x,onClick:()=>void b(),className:"ml-auto text-destructive hover:text-destructive",children:"Remove"})]})]}),i&&(0,n.jsx)("p",{className:"max-w-xl text-destructive",children:i})]})}function eI(){let[e,t]=(0,p.useState)(!1);return(0,n.jsxs)(k.Button,{size:"sm",variant:"outline",onClick:()=>void navigator.clipboard.writeText(ex).then(()=>{t(!0),setTimeout(()=>t(!1),2e3)}),children:[e?(0,n.jsx)(a.Check,{}):(0,n.jsx)(_.Copy,{}),e?"Copied":"Copy the manifest"]})}function eM({name:e,who:t,stopped:s}){let[r,i]=(0,ec.useServerAction)(ef,{onOk:()=>(0,eu.revalidate)(y.queryKey.reach)});return(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-2 pt-3 pl-8 text-[13px] text-muted-foreground",children:[(0,n.jsx)("span",{children:s?`${t} is let in.`:`${t} can write from a phone.`}),(0,n.jsx)(k.Button,{size:"sm",variant:"outline",loading:i,onClick:async()=>{await j.notify.confirm({title:`Let ${t} go?`,description:"Nobody can write to Thursday through this service until someone is let in again.",okText:"Let them go",destructive:!0})&&r(e)},children:"Let them go"})]})}let eR={[K.EXA_API_KEY]:g.Search},eF={image:f.Image,video:u,speech:i.AudioLines,transcription:o.Captions},ez={keys:["voice","easy","text","search"],models:["bots","studio"]};function eP({screen:e}){let{data:t,isLoading:s,error:r}=(0,eu.useServerRoute)(y.queryKey.config),i=(0,F.useVoiceLine)();if(s)return(0,n.jsx)(ed.SettingSkeleton,{rows:4});if(r)return(0,n.jsx)(ed.SettingError,{message:r.message});let o=e=>(0,K.isConfigSet)(t,e),a=e=>(0,K.isConfigUnreadable)(t,e),l=e=>(0,K.isConfigFromEnv)(t,e),d=e=>(0,K.groupSatisfied)(e,e.id===K.VOICE_GROUP_ID?i.countsForCall:o),c=e=>t?.find(t=>t.key===e)?.value,u=ez[e].flatMap(e=>K.CONFIG_GROUPS.find(t=>t.id===e)??[]),h=u.filter(e=>"keys"===e.section).flatMap(e=>e.entries),f=h.filter(e=>a(e.key)).length;return(0,n.jsx)(ed.SettingScreen,{footer:(0,n.jsx)(ed.SettingRailNote,{children:"models"===e?"Her own voice and backend models are in Thursday. A bot can pick its own on its page.":`${h.filter(e=>o(e.key)).length} of ${h.length} set${f?` \xb7 ${f} to enter again`:""}${u.some(e=>!d(e))?" · a call needs one voice key":" · your keys stay on this machine"}`}),children:u.map(e=>(0,n.jsx)(ed.SettingGroup,{label:e.title,hint:e.hint,right:(0,n.jsx)(eK,{group:e,met:d(e)}),children:"easy"===e.id?(0,n.jsx)("div",{className:"grid gap-3 sm:grid-cols-2",children:e.entries.map(e=>(0,n.jsx)(e_,{card:!0,entry:e,set:o(e.key),lost:a(e.key),env:l(e.key),needed:!1},e.key))}):"text"===e.id?(0,n.jsx)("div",{className:"flex flex-wrap gap-x-1.5 gap-y-3.5",children:e.entries.map(e=>(0,n.jsx)(eT,{entry:e,set:o(e.key),lost:a(e.key),env:l(e.key)},e.key))}):(0,n.jsx)(ed.SettingItems,{children:e.entries.map(t=>t.effortOf?null:t.choices?(0,n.jsx)(eY,{entry:t,choices:t.choices,value:c(t.key),effort:eV(e,t.key),effortValue:c(K.DEFAULT_EFFORT_KEY)},t.key):(0,n.jsx)(e_,{entry:t,set:o(t.key),lost:a(t.key),env:l(t.key),needed:!d(e)},t.key))})},e.id))})}function eT({entry:e,set:t,lost:s,env:r}){return(0,n.jsxs)("button",{type:"button",onClick:()=>eX(e,t),"aria-label":`${e.label}: ${r?"set in env":t?"set":s?"enter it again":"not set"}`,className:"group flex w-17 flex-col items-center gap-1.5 rounded-xl py-1 outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,n.jsxs)("span",{className:"relative grid size-10.5 place-items-center rounded-[13px] bg-muted/60 transition-colors group-hover:bg-muted",children:[(0,n.jsx)(eW,{entry:e}),t?(0,n.jsx)("span",{className:"absolute -top-1 -right-1 grid size-4 place-items-center rounded-full bg-primary text-primary-foreground ring-2 ring-background",children:(0,n.jsx)(a.Check,{className:"size-2.5"})}):s&&(0,n.jsx)("span",{className:"absolute -top-1 -right-1 grid size-4 place-items-center rounded-full bg-waiting text-background ring-2 ring-background",children:(0,n.jsx)(x.TriangleAlert,{className:"size-2.5"})})]}),(0,n.jsx)("span",{className:(0,eh.cn)("max-w-full truncate text-[11px]",t?"text-foreground":"text-muted-foreground"),children:e.label}),r&&(0,n.jsx)("span",{className:"-mt-1.5 font-mono text-[10px] text-muted-foreground",children:"env"})]})}function eK({group:e,met:t}){return"none"===e.require?null:t?(0,n.jsxs)("span",{className:"flex items-center gap-1 font-mono text-[11px] text-muted-foreground",children:[(0,n.jsx)(a.Check,{className:"size-3"}),"ready"]}):(0,n.jsxs)("span",{className:(0,eh.cn)("flex items-center gap-1 font-mono text-[11px]",eh.WAITING_INK),children:[(0,n.jsx)(x.TriangleAlert,{className:"size-3"}),e.note??"Required"]})}function e_({entry:e,set:t,lost:s,env:r,needed:i,card:o=!1,narrow:d=!1}){let c=eO(e,t),u=eq(e,t),h=eL(e,t),f=u.data?eH(u.data):eB(t,i,c.data,e.signIn,s,r),m=c.isLoading||u.isLoading,g=(0,n.jsxs)("span",{className:(0,eh.cn)("flex shrink-0 items-center gap-1.5 font-mono text-xs",f.ink),children:[f.warn?(0,n.jsx)(x.TriangleAlert,{className:"size-3"}):t&&(0,n.jsx)(a.Check,{className:"size-3"}),f.text]});return(0,n.jsxs)("button",{type:"button",onClick:()=>{var s;return e.signIn?(s=e,j.notify.component({className:"sm:max-w-md",renderer:({close:e})=>(0,n.jsx)(eQ,{entry:s,onDone:e})})):eX(e,t)},className:(0,eh.cn)("group flex w-full items-center gap-3 p-4 text-left outline-none transition-colors hover:bg-muted/50 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",o&&"rounded-xl border border-border/60"),children:[(0,n.jsx)("span",{className:"grid size-8 shrink-0 place-items-center rounded-lg bg-muted/60",children:(0,n.jsx)(eW,{entry:e})}),(0,n.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,n.jsxs)("span",{className:"flex items-center gap-2 truncate text-sm font-medium",children:[e.label,e.signIn&&t&&(0,n.jsx)(eU,{usage:u.data,plan:h}),e.recommended&&!(e.signIn&&t)&&(0,n.jsx)("span",{className:"rounded-full px-1.5 font-mono text-[9.5px] leading-4 font-normal text-muted-foreground ring-1 ring-border ring-inset",children:"recommended"})]}),d?m?(0,n.jsx)(N.Skeleton,{className:"h-3 w-20"}):g:(0,n.jsx)("span",{className:"block truncate font-mono text-xs text-muted-foreground",children:e.signIn?t?eD(u.data)??"signed in":"sign in with your account":e.key}),e.signIn&&t&&u.data&&(0,n.jsx)(eG,{usage:u.data})]}),d?null:m?(0,n.jsx)(N.Skeleton,{className:"h-3 w-20 shrink-0"}):g,(0,n.jsx)(l.ChevronRight,{className:"size-4 shrink-0 text-muted-foreground/60 transition-colors group-hover:text-foreground"})]})}let e$=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"});function eB(e,t,n,s,r=!1,i=!1){var o,a,l;let d=function(e,t,n,s,r=!1){return!e&&r?{text:s?"Sign in again":"Enter again",ink:eh.WAITING_INK,warn:!0}:e?n?"refused"in n?{text:"Key refused",ink:"text-destructive",warn:!0}:{text:`${e$.format(n.balance)} left`,ink:n.low?eh.WAITING_INK:"text-muted-foreground",warn:n.low}:{text:s?"Signed in":"Set",ink:"text-muted-foreground",warn:!1}:t?{text:"Needed",ink:eh.WAITING_INK,warn:!0}:{text:s?"Signed out":"Not set",ink:"text-muted-foreground/60",warn:!1}}(e,t,n,s,r);return e?(o=d,a=i,l=!!n,a?l?{...o,text:`${o.text} \xb7 env`}:{...o,text:"Set in env"}:o):d}function eO(e,t){return(0,eu.useServerRoute)(t&&(0,M.isCatalogProvider)(e.provider)?y.queryKey.keyCredits(e.provider):null)}function eL(e,t){let{data:n}=(0,eu.useServerRoute)(t&&e.signIn?y.queryKey.llmModel:null);return n?.find(t=>t.id===e.provider)?.plan??null}function eq(e,t){return(0,eu.useServerRoute)(t&&e.signIn?y.queryKey.subscriptionUsage:null)}function eH(e){return"refused"in e?{text:"Sign-in refused",ink:"text-destructive",warn:!0}:{text:e.spent?"Limit reached":`${e.usedPercent}% used`,ink:e.high?eh.WAITING_INK:"text-muted-foreground",warn:e.high}}function eD(e){let t=!e||"refused"in e?null:e;return t?.resetsAt?`resets in ${(0,s.formatDistanceToNowStrict)(new Date(t.resetsAt))}`:null}function eU({usage:e,plan:t}){let s=(0,M.planName)((!e||"refused"in e?null:e.plan)??t);return s?(0,n.jsx)("span",{className:"rounded-full px-1.5 font-mono text-[9.5px] leading-4 font-normal text-foreground ring-1 ring-border ring-inset",children:s}):null}function eG({usage:e}){return"refused"in e?null:(0,n.jsx)("span",{role:"meter","aria-label":"Plan used","aria-valuenow":e.usedPercent,"aria-valuemin":0,"aria-valuemax":100,className:"mt-1.5 block h-1 w-full max-w-48 overflow-hidden rounded-full bg-muted",children:(0,n.jsx)("span",{className:(0,eh.cn)("block h-full rounded-full transition-[width] duration-500",e.high?"bg-waiting":"bg-foreground/45"),style:{width:`${Math.min(100,Math.max(2,e.usedPercent))}%`}})})}function eW({entry:e}){if(e.provider)return(0,n.jsx)(I.ProviderIcon,{provider:e.provider,className:"size-4"});let t=eR[e.key]??m.KeyRound,s=(0,n.jsx)(t,{className:"size-4 text-muted-foreground"});return e.site?(0,n.jsx)(w.SiteIcon,{host:e.site,className:"size-4 rounded-[4px]",fallback:s}):s}function eY({entry:e,choices:t,value:s,effort:r,effortValue:i}){let o=e.text?(0,M.parseTextModel)(s):(0,M.parseMediaModel)(s),{data:a}=(0,eu.useServerRoute)(e.text&&!s&&y.queryKey.automaticModel),{data:l}=(0,eu.useServerRoute)(e.kind&&!s&&y.queryKey.llmModel),d=l?.find(e=>e.signIn),c=e.kind&&!s?(0,M.planMediaOf)(e.kind,d?.hasKey?{plan:d.plan??null}:null):null,u=e.kind?eF[e.kind]:R.BotsMark,[h]=(0,ec.useServerAction)(T.setConfigAction,{onOk:()=>{(0,eu.revalidate)(y.queryKey.config),(0,eu.revalidate)(y.queryKey.automaticModel)}}),[f]=(0,ec.useServerAction)(P,{onOk:()=>{(0,eu.revalidate)(y.queryKey.config),(0,eu.revalidate)(y.queryKey.automaticModel)}});return(0,n.jsxs)("div",{className:"flex w-full items-start gap-3 p-4",children:[(0,n.jsx)("span",{className:"grid size-8 shrink-0 place-items-center rounded-lg bg-muted/60",children:(0,n.jsx)(u,{className:"size-4 text-muted-foreground"})}),(0,n.jsxs)("div",{className:"min-w-0 flex-1 space-y-2",children:[(0,n.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 pt-1.5",children:[(0,n.jsx)("span",{className:"truncate text-sm font-medium",children:e.label}),!s&&(0,n.jsx)("span",{className:(0,eh.cn)("shrink-0 rounded-[5px] border border-border/60 px-1 font-mono text-[10px]",e.kind&&!c?eh.WAITING_INK:"text-muted-foreground"),children:e.kind&&!c?"off":"auto"})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)("div",{className:"min-w-0",children:(0,n.jsx)(E.ModelPicker,{kind:e.kind,provider:o?.provider??null,model:o?.model??"",unset:e.kind?c?`Automatic \xb7 ${t.find(e=>e.value===`${c.provider}/${c.model}`)?.label??c.model}`:"Not offered to bots until you pick one":function(e,t){if(!e)return"Automatic";if(!e.ref)return e.problem;let{provider:n,model:s}=e.ref,r=t.find(e=>e.value===`${n}/${s}`);return`Automatic \xb7 ${r?.label??s}`}(a,t),onChange:t=>h(e.key,`${t.provider}/${t.model.trim()}`),onUnset:s?()=>{f(e.key),r&&i&&f(r.key)}:void 0})}),r&&o&&(0,n.jsxs)("div",{className:"flex items-start gap-3 pt-0.5",children:[(0,n.jsx)("span",{className:"w-12 shrink-0 pt-1.5 font-mono text-[11px] text-muted-foreground",children:"effort"}),(0,n.jsx)(C.EffortSwitch,{provider:o.provider,model:o.model,value:M.effortSchema.safeParse(i).data??null,onChange:e=>e?h(r.key,e):f(r.key)})]})]})]})]})}let eV=(e,t)=>e.entries.find(e=>e.effortOf===t);function eQ({entry:e,onDone:t}){let{data:s}=(0,eu.useServerRoute)(y.queryKey.config),r=(0,K.isConfigSet)(s,e.key),i=(0,K.isConfigUnreadable)(s,e.key),o=(0,K.isConfigFromEnv)(s,e.key),a=eL(e,r),l=eq(e,r),d=l.data?eH(l.data):null,[c,u]=(0,ec.useServerAction)(P,{okMessage:`Signed out of ${e.label}`,onOk:()=>{(0,eu.revalidate)(y.queryKey.config),(0,eu.revalidate)(y.queryKey.llmModel),t()}});return(0,n.jsx)(ed.SettingDialogContent,{title:e.label,description:r?(0,n.jsxs)(n.Fragment,{children:["Signed in ",(0,n.jsx)(eU,{usage:l.data,plan:a}),eD(l.data)&&(0,n.jsxs)(n.Fragment,{children:[" · ",(0,n.jsx)("span",{className:"font-mono",children:eD(l.data)})]}),d&&(0,n.jsxs)(n.Fragment,{children:[" · ",(0,n.jsx)("span",{className:(0,eh.cn)("font-mono",d.ink),children:d.text})]})]}):"Sign in with your ChatGPT account instead of a key",footer:(0,n.jsxs)(n.Fragment,{children:[(r||i)&&!o&&(0,n.jsx)(k.Button,{variant:"ghost",loading:u,onClick:async()=>{await j.notify.confirm({title:`Sign out of ${e.label}?`,description:"Nothing runs on your plan until you sign in again.",okText:"Sign out",destructive:!0})&&c(e.key)},children:"Sign out"}),(0,n.jsx)(k.Button,{variant:"ghost",onClick:t,children:r?"Close":"Cancel"}),!r&&(0,n.jsx)(A.ChatGptSignIn,{})]}),children:(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(ed.SettingNote,{children:r?"Bots on this subscription spend your plan's usage, not a key. When it runs out, the job stops and says when it resets.":"The sign-in opens in its own window. Approve it there, and this turns to signed in by itself."}),l.data&&"refused"in l.data&&(0,n.jsx)(ed.SettingNote,{className:"wrap-break-word text-destructive",children:l.data.refused}),i&&(0,n.jsx)(ed.SettingNote,{className:(0,eh.cn)("wrap-break-word",eh.WAITING_INK),children:(0,K.lostWords)("The sign-in saved here","Sign in again.")}),o&&(0,n.jsx)(ed.SettingNote,{className:"wrap-break-word",children:(0,K.envWords)(e.label)})]})})}function eX(e,t){return j.notify.component({className:"sm:max-w-md",renderer:({close:s})=>(0,n.jsx)(eZ,{entry:e,set:t,onDone:s})})}function eZ({entry:e,set:t,onDone:s}){let[i,o]=(0,p.useState)(""),{data:a}=(0,eu.useServerRoute)(y.queryKey.config),l=a?(0,K.isConfigSet)(a,e.key):t,d=(0,K.isConfigUnreadable)(a,e.key),c=(0,K.isConfigFromEnv)(a,e.key),{data:u}=eO(e,l),h=u?eB(l,!1,u):null,f=()=>{(0,eu.revalidate)(y.queryKey.config),(0,eu.revalidate)(y.queryKey.llmModel)},[m,g]=(0,ec.useServerAction)(T.setConfigAction,{okMessage:`${e.label} key saved`,onOk:()=>{f(),s()}}),[x,b]=(0,ec.useServerAction)(P,{okMessage:`${e.label} key removed`,onOk:()=>{f(),s()}}),w=async()=>{await j.notify.confirm({title:`Remove the ${e.label} key?`,description:"It is deleted from this computer, and nothing runs on it until a key is pasted again.",okText:"Remove",destructive:!0})&&x(e.key)};return(0,n.jsx)(ed.SettingDialogContent,{title:e.label,description:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"font-mono",children:e.key}),c?(0,n.jsx)(n.Fragment,{children:" · set in env"}):e.hint&&(0,n.jsxs)(n.Fragment,{children:[" · ",e.hint]}),h&&(0,n.jsxs)(n.Fragment,{children:[" · ",(0,n.jsx)("span",{className:(0,eh.cn)("font-mono",h.ink),children:h.text})]})]}),footer:c?(0,n.jsx)(k.Button,{onClick:s,children:"Close"}):(0,n.jsxs)(n.Fragment,{children:[(l||d)&&(0,n.jsx)(k.Button,{variant:"ghost",loading:b,onClick:()=>void w(),className:"mr-auto text-destructive hover:text-destructive",children:"Remove"}),(0,n.jsx)(k.Button,{variant:"ghost",onClick:s,children:"Cancel"}),(0,n.jsx)(k.Button,{loading:g,disabled:i.trim().length<S.KEY_MIN,onClick:()=>m(e.key,i),children:l?"Replace":"Save"})]}),children:(0,n.jsxs)("div",{className:"space-y-2",children:[c?(0,n.jsx)(ed.SettingNote,{className:"wrap-break-word",children:(0,K.envWords)(e.label)}):(0,n.jsx)(v.Input,{value:i,onChange:e=>o(e.target.value),onKeyDown:t=>{"Enter"===t.key&&i.trim().length>=S.KEY_MIN&&m(e.key,i)},placeholder:l?"New value — replaces the current key":d?"Paste the key again":e.keyLooks??"Paste the key",spellCheck:!1,type:"password",autoFocus:!0}),!l&&e.keysAt&&(0,n.jsxs)("a",{href:e.keysAt,target:"_blank",rel:"noreferrer",className:"flex w-fit items-center gap-1 px-0.5 text-[13px] text-foreground underline underline-offset-3 hover:text-foreground/80",children:["Get a key at ",new URL(e.keysAt).host,(0,n.jsx)(r.ArrowUpRight,{className:"size-3.5"})]}),u&&"refused"in u&&(0,n.jsx)(ed.SettingNote,{className:"wrap-break-word text-destructive",children:u.refused}),d&&(0,n.jsx)(ed.SettingNote,{className:(0,eh.cn)("wrap-break-word",eh.WAITING_INK),children:(0,K.lostWords)("The key saved here","Paste it again.")})]})})}e.s(["AccountsSetup",0,function({withoutVoice:e=!1}){let{data:t}=(0,eu.useServerRoute)(y.queryKey.config),s=e=>(0,K.isConfigSet)(t,e),r=e=>(0,K.isConfigUnreadable)(t,e),i=e=>(0,K.isConfigFromEnv)(t,e),o=e=>K.CONFIG_GROUPS.find(t=>t.id===e)?.entries??[],[a,l]=(0,p.useState)(!1),d=o("voice"),c=[...d,...o("text")],u=c.filter((t,n)=>(n<4||s(t.key))&&!(e&&d.includes(t))),f=c.filter(t=>!u.includes(t)&&!(e&&d.includes(t)));return(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsx)("div",{className:"flex flex-col gap-2",children:o("easy").map(e=>(0,n.jsx)(e_,{card:!0,narrow:!0,entry:e,set:s(e.key),lost:r(e.key),env:i(e.key),needed:!1},e.key))}),(0,n.jsxs)("div",{className:"flex flex-wrap gap-y-2.5",children:[u.map(e=>(0,n.jsx)(eT,{entry:e,set:s(e.key),lost:r(e.key),env:i(e.key)},e.key)),f.length>0&&(0,n.jsxs)(b.Popover,{open:a,onOpenChange:l,children:[(0,n.jsxs)(b.PopoverTrigger,{"aria-label":`${f.length} more providers`,className:"group flex w-17 flex-col items-center gap-1.5 rounded-xl py-1 outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,n.jsx)("span",{className:"grid size-10.5 place-items-center rounded-[13px] bg-muted/60 text-muted-foreground transition-colors group-hover:bg-muted",children:(0,n.jsx)(h.default,{className:"size-4"})}),(0,n.jsx)("span",{className:"text-[11px] text-muted-foreground",children:"More"})]}),(0,n.jsx)(b.PopoverContent,{align:"end",className:"w-78 flex-row flex-wrap gap-0 gap-y-2.5 rounded-2xl p-2.5",onClick:()=>l(!1),children:f.map(e=>(0,n.jsx)(eT,{entry:e,set:s(e.key),lost:r(e.key),env:i(e.key)},e.key))})]})]}),o("search").map(e=>(0,n.jsx)(e_,{card:!0,narrow:!0,entry:e,set:s(e.key),lost:r(e.key),env:i(e.key),needed:!1},e.key))]})},"KeysSetting",0,()=>(0,n.jsx)(eP,{screen:"keys"}),"ModelsSetting",0,()=>(0,n.jsx)(eP,{screen:"models"}),"PhoneSetting",0,()=>(0,n.jsx)(ed.SettingScreen,{footer:(0,n.jsx)(ed.SettingRailNote,{children:"Nothing on this computer is opened to the internet: the app asks the chat service what was written."}),children:(0,n.jsx)(ek,{})}),"PlanBadge",0,eU],805995)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,8912,e=>{"use strict";var s=e.i(843476),t=e.i(437750),i=e.i(375775),n=e.i(91511),a=e.i(758925),o=e.i(97923),r=e.i(456420);let l={name:"log-out",size:24,node:[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]};l.node;let d=(0,r.default)(l),c={name:"shield-check",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]};c.node;let u=(0,r.default)(c);var m=e.i(263676),h=e.i(511769),x=e.i(798120),p=e.i(167881),g=e.i(917162),f=e.i(818125),k=e.i(635963),b=e.i(895836),j=e.i(245629),y=e.i(609856),v=e.i(283653),w=e.i(647163),N=e.i(95187);let S=(0,N.createServerReference)("7ff0afebd0f953610d840b5918240a11698ba53d80",N.callServer,void 0,N.findSourceMapURL,"removeSignInAction");var z=e.i(340926);let A=[[t.AppWindow,"A bot opens a window","When its work needs you signed in to a site, it opens that site on your screen and asks."],[o.LogIn,"You sign in there","The app keeps that sign-in here — the site's session, never your password."],[u,"Only that bot uses it","Later work is signed in without asking. Another bot has to ask you first."]];function I(){return(0,s.jsx)("ol",{className:"grid gap-3 pb-5 sm:grid-cols-3",children:A.map(([e,t,i],n)=>(0,s.jsxs)("li",{className:"flex gap-3 rounded-xl bg-muted/40 p-3.5",children:[(0,s.jsx)("span",{className:"grid size-8 shrink-0 place-items-center rounded-lg bg-background text-muted-foreground ring-1 ring-border/60",children:(0,s.jsx)(e,{className:"size-4"})}),(0,s.jsxs)("span",{className:"min-w-0 space-y-0.5",children:[(0,s.jsxs)("span",{className:"block text-[13px] font-medium",children:[n+1,". ",t]}),(0,s.jsx)("span",{className:"block text-xs leading-relaxed text-muted-foreground",children:i})]})]},t))})}function O({signIn:e,bots:t}){let i=()=>(0,v.revalidate)(x.queryKey.signIns),[n,o]=(0,y.useServerAction)(z.setSignInBotAction,{onOk:i}),[r,l]=(0,y.useServerAction)(S,{onOk:i}),c=async()=>{await g.notify.confirm({title:`Sign out of ${e.site}?`,description:"What is kept here is removed, and the bots that used it ask you to sign in again. The site itself may still list the session until it ends it.",okText:"Sign out",destructive:!0})&&r(e.site)};return(0,s.jsxs)("div",{className:"flex flex-col gap-2.5 p-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("span",{className:"grid size-10 shrink-0 place-items-center rounded-xl bg-muted/60",children:(0,s.jsx)(f.SiteIcon,{host:e.site,className:"size-5 rounded-[5px]",fallback:(0,s.jsx)(a.KeyRound,{className:"size-4 text-muted-foreground"})})}),(0,s.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,s.jsx)("span",{className:"block truncate text-sm font-medium",children:e.site}),(0,s.jsx)("span",{className:"block truncate text-[13px] text-muted-foreground",children:e.account})]}),(0,s.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground tabular-nums",children:e.usedAt?`used ${(0,j.whenOf)(e.usedAt)}`:`kept ${(0,j.whenOf)(e.keptAt)}`}),(0,s.jsxs)(p.Button,{variant:"outline",size:"sm",loading:l,onClick:()=>void c(),children:[(0,s.jsx)(d,{}),"Sign out"]})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5 pl-13",children:[e.bots.map(i=>(0,s.jsxs)("span",{className:"flex h-7 items-center gap-1.5 rounded-full bg-muted/60 pr-1 pl-1.5 text-[13px]",children:[(0,s.jsx)(k.BotMark,{size:18,seed:i,...(0,k.markOf)(i,t)}),i,(0,s.jsx)("button",{type:"button",disabled:o,"aria-label":`${i} may no longer use it`,onClick:()=>void n(e.site,i,!1),className:"grid size-5 place-items-center rounded-full text-muted-foreground outline-none hover:bg-muted hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,s.jsx)(m.X,{className:"size-3"})})]},i)),0===e.bots.length&&0===e.asking.length&&(0,s.jsx)("span",{className:"text-[13px] text-muted-foreground",children:"No bot may use it. One that needs it will ask."}),e.asking.map(i=>(0,s.jsxs)("span",{className:(0,w.cn)("flex h-7 items-center gap-1.5 rounded-full pr-1 pl-1.5 text-[13px] ring-1 ring-border ring-inset",w.WAITING_INK),children:[(0,s.jsx)(k.BotMark,{size:18,seed:i,...(0,k.markOf)(i,t)}),i," asks",(0,s.jsx)(p.Button,{size:"sm",variant:"secondary",className:"h-5 rounded-full px-2 text-[11px]",disabled:o,onClick:()=>void n(e.site,i,!0),children:"Allow"})]},i))]})]})}let R="https://chromewebstore.google.com/detail/playwright-extension/mmlmfjhmonkocbjadbfplnigmagldckm";function C(){return(0,s.jsxs)("div",{className:"flex items-center gap-3 p-4",children:[(0,s.jsx)("span",{className:"grid size-10 shrink-0 place-items-center rounded-xl bg-muted/60",children:(0,s.jsx)(f.SiteIcon,{host:new URL(R).host,className:"size-5 rounded-[5px]",fallback:(0,s.jsx)(n.Globe,{className:"size-4 text-muted-foreground"})})}),(0,s.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,s.jsx)("span",{className:"block text-sm font-medium",children:"Your own Chrome"}),(0,s.jsx)("span",{className:"block text-[13px] text-muted-foreground",children:"For a site that will not stay signed in. A bot gets a tab of its own, signed in as you — to every site your Chrome is, not only that one."})]}),(0,s.jsxs)("a",{href:R,target:"_blank",rel:"noreferrer",className:(0,w.cn)((0,p.buttonVariants)({variant:"outline",size:"sm"})),children:["Get the extension",(0,s.jsx)(i.ArrowUpRight,{})]})]})}e.s(["SignInsSetting",0,function(){let{data:e,isLoading:t,error:i}=(0,v.useServerRoute)(x.queryKey.signIns),{data:n}=(0,v.useServerRoute)(x.queryKey.bot);if((0,h.useAppEvent)({signins:()=>void(0,v.revalidate)(x.queryKey.signIns)}),t)return(0,s.jsx)(b.SettingSkeleton,{rows:3});if(i)return(0,s.jsx)(b.SettingError,{message:i.message});let a=e??[];return(0,s.jsxs)(b.SettingScreen,{footer:(0,s.jsx)(b.SettingRailNote,{children:"A site's session as the browser held it — never a password. Kept on this machine, outside the folder the bots work in. It is the whole session: signed in with Google, it carries the Google sign-in too."}),children:[(0,s.jsx)(I,{}),(0,s.jsxs)(b.SettingItems,{children:[0===a.length?(0,s.jsx)("p",{className:"p-4 text-sm leading-relaxed text-muted-foreground",children:"Nothing is kept yet. When a bot needs you signed in somewhere, it opens a window for you to sign in — and that sign-in is kept here for its later work."}):a.map(e=>(0,s.jsx)(O,{signIn:e,bots:n},e.site)),(0,s.jsx)(C,{})]})]})}],8912)},437750,e=>{"use strict";var s=e.i(456420);let t={name:"app-window",size:24,node:[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]};t.node;let i=(0,s.default)(t);e.s(["AppWindow",0,i],437750)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,917162,23750,e=>{"use strict";var t=e.i(843476),i=e.i(271645),n=e.i(88014),r=e.i(167881),l=e.i(630374);e.i(166432);var a=e.i(932013),s=e.i(45574),o=e.i(535718),u=e.i(910148),d=e.i(951437),c=e.i(146376),f=e.i(108868),m=e.i(667865),v=e.i(439957),x=e.i(469690),h=e.i(381104),g=e.i(884708),b=e.i(247778),p=e.i(538489),C=e.i(875812),j=e.i(552245),y=e.i(606039),N=e.i(675606),R=e.i(56434),S=e.i(584446);let w=i.forwardRef(function(e,t){let{render:n,className:r,id:l,name:a,value:s,disabled:o=!1,onValueChange:u,defaultValue:w,autoFocus:E=!1,style:D,...I}=e,{state:T,name:k,disabled:F,setTouched:O,setDirty:L,validityData:M,setFocused:P,setFilled:A,validationMode:V,validation:B}=(0,x.useFieldRootContext)(),{clearErrors:_,elementRef:U,submitCountRef:K}=(0,g.useFormContext)(),z=F||o,W=k??a,Y={...T,disabled:z},{labelId:H}=(0,b.useLabelableContext)(),J=(0,p.useLabelableId)({id:l}),[q]=(0,d.useControlled)({controlled:s,default:w,name:"FieldControl",state:"value"}),G=void 0!==s,X=G?q:void 0,$=null==X?void 0:String(X),Q=(0,m.useStableCallback)(()=>B.inputRef.current?.value);(0,h.useRegisterFieldControl)(B.inputRef,J,$,Q,!z,a),(0,c.useIsoLayoutEffect)(()=>{let e=$??B.inputRef.current?.value;void 0!==e&&A(""!==e)},[$,B.inputRef,A]),(0,y.useValueChanged)($,()=>{void 0!==$&&(_(W),L($!==(M.initialValue??"")),B.change($))});let Z=i.useRef(null),ee=(0,v.useTimeout)();return(0,c.useIsoLayoutEffect)(()=>{E&&Z.current===(0,S.activeElement)((0,f.ownerDocument)(Z.current))&&P(!0)},[E,P]),(0,j.useRenderElement)("input",e,{ref:[t,Z],state:Y,props:[{id:J,disabled:z,name:W,ref:B.inputRef,"aria-labelledby":H,autoFocus:E,...G?{value:X}:{defaultValue:w},onChange(e){let t=e.currentTarget.value,i=(0,N.createChangeEventDetails)(R.REASONS.none,e.nativeEvent);u?.(t,i),!G&&(L(t!==(M.initialValue??"")),A(""!==t),e.nativeEvent.defaultPrevented||i.isCanceled||(_(W),B.change(t)))},onFocus(){P(!0)},onBlur(e){if(O(!0),P(!1),"onBlur"===V){let t=e.currentTarget.value;B.commit(t),G&&queueMicrotask(()=>{let e=B.inputRef.current?.value;void 0!==e&&e!==t&&e!==(M.initialValue??"")&&B.commit(e)})}},onKeyDown(e){if("INPUT"===e.currentTarget.tagName&&"Enter"===e.key){O(!0);let t=e.currentTarget.value,i=e.currentTarget.form;if(i&&i===U.current&&!e.defaultPrevented){let t=e.currentTarget,i=K.current;ee.start(0,()=>{K.current===i&&B.commit(t.value)})}else B.commit(t)}}},I,e=>B.getValidationProps(z,e)],stateAttributesMapping:C.fieldValidityMapping})});var E=e.i(568815),D=e.i(223910),I=e.i(157153),T=e.i(666493);let k=i.forwardRef(function(e,n){let{render:r,className:l,style:a,disabled:s=!1,...o}=e,{state:u,disabled:d}=(0,x.useFieldRootContext)(!1),c=d||s,f={...u,disabled:c},m=i.useMemo(()=>({disabled:c}),[c]),v=(0,j.useRenderElement)("div",e,{ref:n,state:f,props:o,stateAttributesMapping:C.fieldValidityMapping});return(0,t.jsx)(T.LabelableProvider,{children:(0,t.jsx)(I.FieldItemContext.Provider,{value:m,children:v})})});e.s(["Control",0,w,"Description",()=>u.FieldDescription,"Error",()=>o.FieldError,"Item",0,k,"Label",()=>s.FieldLabel,"Root",()=>a.FieldRoot,"Validity",0,function(e){let{children:n}=e,{validityData:r,invalid:l}=(0,x.useFieldRootContext)(!1),a=i.useMemo(()=>(0,E.getCombinedFieldValidityData)(r,l),[r,l]),s=!1===a.state.valid,{transitionStatus:o}=(0,D.useTransitionStatus)(s),u=i.useMemo(()=>({...a,validity:a.state,transitionStatus:o}),[a,o]);return(0,t.jsx)(i.Fragment,{children:n(u)})}],305359);var F=e.i(305359),F=F;let O=i.forwardRef(function(e,i){return(0,t.jsx)(F.Control,{ref:i,...e})});var L=e.i(647163);let M="h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40";function P({className:e,type:i,...n}){return(0,t.jsx)(O,{type:i,"data-slot":"input",className:(0,L.cn)(M,e),...n})}e.s(["Input",0,P,"inputClassName",0,M],23750);var A=e.i(184762);let V=()=>{let e=document.createElement("div");e.id=crypto.randomUUID(),document.body.appendChild(e);let t=(0,n.createRoot)(e);return{render:e=>t.render(e),unmount:()=>{t.unmount(),e.remove()}}},B={component:({renderer:e,className:i})=>new Promise(n=>{let r=V(),a=null,s=()=>{r.unmount(),n()},o=async()=>{(!a?.()||await B.discard())&&s()};r.render((0,t.jsx)(l.Dialog,{open:!0,onOpenChange:o,children:(0,t.jsx)(l.DialogContent,{className:(0,L.cn)("px-0",i),children:e({close:s,guard:e=>{a=e}})})}))}),discard:()=>B.confirm({title:"Discard your changes?",description:"What you wrote here is not saved.",okText:"Discard",destructive:!0}),alert:e=>new Promise(i=>{let n=V(),a=()=>{n.unmount(),i()};n.render((0,t.jsx)(l.Dialog,{open:!0,onOpenChange:a,children:(0,t.jsxs)(l.DialogContent,{showCloseButton:!1,children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsx)(l.DialogTitle,{children:e.title}),(0,t.jsx)(l.DialogDescription,{children:e.description})]}),(0,t.jsx)(l.DialogFooter,{children:(0,t.jsx)(r.Button,{variant:"ghost",onClick:a,autoFocus:!0,children:e.okText||"OK"})})]})}))}),confirm:e=>new Promise(i=>{if(e.signal?.aborted)return void i(!1);let n=V(),a=!1,s=()=>{a||(a=!0,e.signal?.removeEventListener("abort",d),n.unmount())},o=()=>{i(!0),s()},u=()=>{i(!1),s()},d=()=>queueMicrotask(u);e.signal?.addEventListener("abort",d,{once:!0});let c=!!(e.destructive||e.cautious);n.render((0,t.jsx)(function(){return(0,t.jsx)(l.Dialog,{open:!0,onOpenChange:u,children:(0,t.jsxs)(l.DialogContent,{showCloseButton:!1,children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsx)(l.DialogTitle,{children:e.title}),(0,t.jsx)(l.DialogDescription,{children:e.description})]}),e.body,(0,t.jsxs)(l.DialogFooter,{children:[(0,t.jsx)(r.Button,{variant:"ghost",onClick:u,autoFocus:c,children:e.cancelText||"Never mind"}),(0,t.jsx)(r.Button,{variant:e.destructive?"destructive":"secondary",onClick:o,autoFocus:!c,children:e.okText||"OK"})]})]})})},{}))}),prompt:e=>new Promise(n=>{let a=V(),s=(e="")=>{a.unmount(),n(e)};a.render((0,t.jsx)(()=>{let[n,a]=(0,i.useState)(""),o=e=>{"Enter"!==e.key||e.shiftKey||e.nativeEvent.isComposing||(e.preventDefault(),s(n))};return(0,t.jsx)(l.Dialog,{open:!0,onOpenChange:()=>s(),children:(0,t.jsxs)(l.DialogContent,{showCloseButton:!1,children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsx)(l.DialogTitle,{children:e.title}),(0,t.jsx)(l.DialogDescription,{children:e.description}),e.multiline?(0,t.jsx)(A.Textarea,{className:"resize-none max-h-[200px]",placeholder:e.placeholder,autoFocus:!0,value:n,maxLength:e.maxLength,onKeyDown:o,onChange:e=>a(e.target.value)}):(0,t.jsx)(P,{placeholder:e.placeholder,autoFocus:!0,value:n,maxLength:e.maxLength,onChange:e=>a(e.target.value),onKeyDown:o})]}),(0,t.jsxs)(l.DialogFooter,{children:[(0,t.jsx)(r.Button,{variant:"ghost",onClick:()=>s(),children:e.cancelText||"Cancel"}),(0,t.jsx)(r.Button,{disabled:!n.trim(),variant:"secondary",onClick:()=>s(n),children:e.okText||"OK"})]})]})})},{}))})};e.s(["notify",0,B],917162)},895836,e=>{"use strict";var t=e.i(843476),i=e.i(77071),n=e.i(566595),r=e.i(271645),l=e.i(630374),a=e.i(23750),s=e.i(671428),o=e.i(647163);let u="px-8 pt-8 pb-6";function d({className:e,children:i}){return(0,t.jsx)("div",{className:(0,o.cn)("mx-auto w-full max-w-[55rem]",e),children:i})}function c({left:e,right:i,footer:n}){return(0,t.jsxs)("div",{className:"flex h-full min-h-0 flex-col",children:[(0,t.jsxs)("div",{className:"mt-8 flex min-h-0 flex-1 border-t border-border/60",children:[(0,t.jsx)("div",{className:"flex w-64 shrink-0 flex-col overflow-y-auto border-r border-border/60 bg-muted/20",children:e}),(0,t.jsx)("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto",children:i})]}),n&&(0,t.jsx)(m,{children:n})]})}let f=["w-28","w-36","w-24","w-32","w-20"];function m({children:e}){return(0,t.jsx)("div",{className:"shrink-0 border-t border-border/60 px-8",children:(0,t.jsx)(d,{className:"flex h-14 items-center gap-3 text-xs text-muted-foreground",children:e})})}function v({label:e,hint:i,filter:n,right:r}){return(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[e&&(0,t.jsx)("span",{className:"shrink-0 font-mono text-xs text-muted-foreground",children:e}),i&&(0,t.jsx)("span",{className:"truncate font-mono text-xs text-muted-foreground/60",children:i}),n,r&&(0,t.jsx)("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:r})]})}function x({className:e,children:i}){return(0,t.jsx)("p",{className:(0,o.cn)("px-1 font-mono text-[11px] text-muted-foreground",e),children:i})}function h({label:e,onClick:n}){return(0,t.jsxs)("button",{type:"button",onClick:n,className:"text-muted-foreground hover:text-foreground flex w-full items-center gap-3 p-4 text-left outline-none transition-colors hover:bg-muted/50 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,t.jsx)("span",{className:"grid size-10 shrink-0 place-items-center rounded-lg",children:(0,t.jsx)(i.Plus,{className:"size-4"})}),(0,t.jsx)("span",{className:"text-sm",children:e})]})}e.s(["NavBadge",0,function({tone:e,count:i}){return 0===i?null:void 0===i?(0,t.jsx)("span",{className:(0,o.cn)("size-1.5 shrink-0 rounded-full","red"===e?"bg-destructive":"bg-waiting")}):(0,t.jsx)("span",{className:(0,o.cn)("shrink-0 font-mono text-[11px]","red"===e?"text-destructive":o.WAITING_INK),children:i})},"PICKED_ROW",0,"bg-brand/8 text-foreground dark:bg-brand/14","SettingColumn",0,d,"SettingDialogContent",0,function({title:e,description:i,children:n,footer:r}){return(0,t.jsxs)("div",{className:"flex min-w-0 max-h-[75vh] flex-col gap-6 p-1",children:[(0,t.jsx)("div",{className:"flex shrink-0 items-start justify-between gap-3",children:(0,t.jsxs)("div",{className:"min-w-0 space-y-1 px-6",children:[(0,t.jsx)(l.DialogTitle,{render:(0,t.jsx)("p",{}),className:"truncate text-xl font-semibold",children:e}),i&&(0,t.jsx)("div",{className:"text-xs text-muted-foreground",children:i})]})}),(0,t.jsx)("div",{className:"min-h-0 min-w-0 flex-1 scroll-py-3 overflow-y-auto",children:(0,t.jsx)("div",{className:"space-y-4 p-1 px-6",children:n})}),r&&(0,t.jsx)("div",{className:"flex shrink-0 justify-end gap-2 px-6",children:r})]})},"SettingError",0,function({message:e}){return(0,t.jsx)("div",{className:u,children:(0,t.jsx)(d,{children:(0,t.jsx)("p",{className:"font-mono text-xs text-destructive",children:e})})})},"SettingFilter",0,function({value:e,onChange:i,placeholder:r,className:l}){return(0,t.jsxs)("div",{className:(0,o.cn)("relative w-72 max-w-full",l),children:[(0,t.jsx)(n.Search,{className:"pointer-events-none absolute top-1/2 left-2.5 size-3.5 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)(a.Input,{"data-setting-filter":"","aria-label":r,placeholder:r,value:e,onChange:e=>i(e.target.value),className:"h-8 pl-8"})]})},"SettingGroup",0,function({label:e,hint:i,filter:n,right:r,note:l,children:a}){return(0,t.jsxs)("section",{children:[(e||i||n||r)&&(0,t.jsx)("div",{className:"mb-3",children:(0,t.jsx)(v,{label:e,hint:i,filter:n,right:r})}),a,l&&(0,t.jsx)(x,{className:"mt-2",children:l})]})},"SettingItems",0,function({addRow:e,children:i}){return(0,t.jsxs)("div",{className:"divide-y divide-border/60 rounded-xl border border-border/60",children:[e&&(0,t.jsx)(h,{label:e.label,onClick:e.onClick}),i]})},"SettingMore",0,function({hasMore:e,loading:i,sentinelRef:n,ghost:l,count:a=2,className:s}){return e?(0,t.jsx)("div",{ref:n,"aria-busy":i,"aria-label":"Loading more",className:s,children:Array.from({length:a},(e,i)=>(0,t.jsx)(r.Fragment,{children:l},`ghost-${i}`))}):null},"SettingNote",0,x,"SettingPanes",0,c,"SettingPanesSkeleton",0,function({rows:e=7}){return(0,t.jsx)(c,{footer:(0,t.jsx)(s.Skeleton,{className:"h-3 w-64 max-w-full"}),left:(0,t.jsx)("div",{className:"flex flex-col py-2",children:Array.from({length:e},(e,i)=>(0,t.jsx)("div",{className:"mx-2 flex items-center px-2 py-2",children:(0,t.jsx)(s.Skeleton,{className:(0,o.cn)("h-3",f[i%f.length])})},i))}),right:(0,t.jsx)("div",{className:"flex h-11 shrink-0 items-center border-b border-border/60 px-6",children:(0,t.jsx)(s.Skeleton,{className:"h-3 w-40"})})})},"SettingRailNote",0,function({children:e}){return(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e})},"SettingScreen",0,function({footer:e,children:i}){return(0,t.jsxs)("div",{className:"flex h-full min-h-0 flex-col",children:[(0,t.jsxs)("div",{className:"relative min-h-0 flex-1",children:[(0,t.jsx)("div",{className:"h-full w-full scroll-py-6 overflow-y-auto",children:(0,t.jsx)("div",{className:u,children:(0,t.jsx)(d,{children:(0,t.jsx)("div",{className:(0,o.cn)("-m-1 p-1","space-y-8"),children:i})})})}),(0,t.jsx)("div",{className:"pointer-events-none absolute top-0 left-0 h-6 w-full bg-linear-to-b from-background to-transparent dark:hidden"})]}),e&&(0,t.jsx)(m,{children:e})]})},"SettingSkeleton",0,function({rows:e=3}){return(0,t.jsx)("div",{className:u,children:(0,t.jsx)(d,{className:"space-y-3",children:Array.from({length:e},(e,i)=>(0,t.jsx)(s.Skeleton,{className:"h-16 w-full rounded-xl"},i))})})},"SettingToolbar",0,function({children:e,count:i}){return(0,t.jsx)(v,{filter:e,right:i})}])},166432,e=>{"use strict";e.s([])},932013,666493,568815,155627,157153,45574,535718,910148,e=>{"use strict";var t=e.i(271645),i=e.i(146376),n=e.i(667865),r=e.i(469690),l=e.i(875812),a=e.i(387068),s=e.i(884708),o=e.i(388940),u=e.i(788015),d=e.i(247778),c=e.i(843476);let f=function(e){let i=(0,u.useBaseUiId)(),[r,l]=t.useState(i),[a,s]=t.useState(),[f,m]=t.useState([]),v=void 0===r?i:r,x=(0,o.useRefWithInit)(()=>new Map),{messageIds:h}=(0,d.useLabelableContext)(),g=(0,n.useStableCallback)((e,t)=>{let i=x.current;void 0===t?i.delete(e):i.set(e,t),l(e=>{let t;if(0===i.size)return e;for(let n of i.values()){if(n===e)return e;void 0===t&&(t=n)}return t})}),b=(0,n.useStableCallback)(()=>{0===x.current.size&&l(i)}),p=t.useCallback(e=>{let t=e["aria-describedby"]?e["aria-describedby"].split(" "):[];return t.push(...h,...f),{...e,"aria-describedby":Array.from(new Set(t)).join(" ")||void 0}},[h,f]),C=t.useMemo(()=>({controlId:v,registerControlId:g,resetControlId:b,labelId:a,setLabelId:s,messageIds:f,setMessageIds:m,getDescriptionProps:p}),[v,g,b,a,s,f,m,p]);return(0,c.jsx)(d.LabelableContext.Provider,{value:C,children:e.children})};e.s(["LabelableProvider",0,f],666493);var m=e.i(552245),v=e.i(956789),x=e.i(439957),h=e.i(176782);function g(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}e.s(["getCombinedFieldValidityData",0,g],568815);let b=Object.keys(l.DEFAULT_VALIDITY_STATE);function p(e,t){return!e.matches(":disabled")&&(!t||e.form===t||null===e.form&&!e.hasAttribute("form"))}function C(e,t){let i=null;for(let n of e.keys())if(p(n,t)){if(!n.validity.valid)return n;i??=n}return i}function j(e){return{...l.DEFAULT_VALIDITY_STATE,valid:!e,customError:e}}function y(e){return e&&e.validationMessage?[e.validationMessage]:[]}function N(e){let{elementRef:i,formRef:r}=(0,s.useFormContext)(),{setValidityData:l,validate:a,validityData:u,validationDebounceTime:c,invalid:f,markedDirtyRef:m,state:p,shouldValidateOnChange:N,validationMode:R,registeredFieldIdRef:S}=e,{controlId:w,getDescriptionProps:E}=(0,d.useLabelableContext)(),D=(0,x.useTimeout)(),I=t.useRef(null),T=(0,o.useRefWithInit)(()=>new Map).current,k=t.useRef(0),F=t.useRef(null),O=t.useCallback((e,t)=>(T.set(e,t),()=>{T.delete(e)}),[T]),L=(0,n.useStableCallback)(()=>{let e=C(T,i.current);return e&&T.get(e)?.controlRef.current||null}),M=(0,n.useStableCallback)(async(e,t=!1)=>{k.current+=1;let n=k.current;function s(){let e=F.current;F.current=null,e&&(!e[0].willValidate||e[0].validationMessage===e[1])&&e[0].setCustomValidity(e[2])}function o(t,i,n){let a,s=(a=!1===t.valid?i:[],{value:e,state:t,error:a[0]??"",errors:a,initialValue:u.initialValue});!function(e,t=f){let i=S.current??w;if(null==i)return;let n=r.current.fields.get(i);if(!n)return;let l=g(e,t);r.current.fields.set(i,{...n,validityData:l})}(s,n),l(s)}function d(){return T.size>0?C(T,i.current):I.current}let c=d();function v(){return c=d(),c?.willValidate?function(e){let t=b.reduce((t,i)=>(t[i]=e.validity[i],t),{}),i=!1;for(let e of b)if("valid"!==e){if("valueMissing"===e&&t[e])i=!0;else if(t[e])return t}return i&&!m.current&&(t.valid=!0,t.valueMissing=!1),t}(c):j(!1)}if(t){if(!1!==p.valid||!c)return;if(!c.validity.valueMissing){s();let e=d(),t=e?.validity.customError?y(e):[];o(j(t.length>0),t,!1);return}for(let e of b)if("valid"!==e&&"valueMissing"!==e&&"customError"!==e&&c.validity[e])return}D.clear(),s();let x=v(),h=y(c),E=N();if(0===h.length||E){let t,i=a(e,Array.from(r.current.fields.values()).reduce((e,t)=>(t.name&&(e[t.name]=t.getValue()),e),{}));if("object"==typeof i&&null!==i&&"then"in i){if(!1===x.valid?o(x,h):"onSubmit"!==R&&u.state.customError||(x.valid=null,o(x,h)),t=await i,n!==k.current)return;x=v()}else t=i;if((h=t?[].concat(t).filter(Boolean):[]).length>0){var O,L;let e,t;x.valid=!1,x.customError=!0,c?.willValidate&&(O=c,L=h.join("\n"),e=O.validity.customError?O.validationMessage:"",t=L.replace(/\r\n?/g,"\n"),O.setCustomValidity(t),F.current=[O,t,e])}else h=y(c)}o(x,h)}),P=(0,n.useStableCallback)((e,t=!1)=>{if(D.clear(),k.current+=1,t)return;let i=N();i&&""!==e&&c?D.start(c,()=>{M(e)}):M(e,!i)}),A=t.useCallback((e,t={})=>(0,h.mergeProps)(E(t),!1!==p.valid||p.disabled||e?v.EMPTY_OBJECT:{"aria-invalid":!0}),[E,p.disabled,p.valid]);return t.useMemo(()=>({getValidationProps:A,inputRef:I,registeredInputs:T,registerInput:O,getInputControl:L,commit:M,change:P}),[A,T,O,L,M,P])}e.s(["isEligibleInput",0,p,"useFieldValidation",0,N],155627);let R=t.forwardRef(function(e,o){let{errors:u,validationMode:d,submitCountRef:f}=(0,s.useFormContext)(),{render:v,className:x,validate:h,validationDebounceTime:b=0,validationMode:p=d,name:C,disabled:j=!1,invalid:y,dirty:R,touched:S,actionsRef:w,style:E,...D}=e,I=(0,a.useFieldsetRootContext)(!0)?.disabled,T=(0,n.useStableCallback)(h||(()=>null)),k=I||j,[F,O]=t.useState(!1),[L,M]=t.useState(!1),[P,A]=t.useState(!1),[V,B]=t.useState(!1),_=R??L,U=S??F,K=t.useRef(_),z=t.useRef(void 0),[W,Y]=t.useState(),H=C??W;(0,i.useIsoLayoutEffect)(()=>{void 0!==R&&(K.current=R)},[R]);let J=(0,n.useStableCallback)(e=>{void 0===R&&(e&&(K.current=!0),M(e))}),q=(0,n.useStableCallback)(e=>{void 0===S&&O(e)}),G=(0,n.useStableCallback)(()=>"onChange"===p||"onSubmit"===p&&f.current>0),X=H&&Object.hasOwn(u,H)?u[H]:null,$=!!(Array.isArray(X)?X.length:X),Q=!0===y||$,[Z,ee]=t.useState({state:l.DEFAULT_VALIDITY_STATE,error:"",errors:[],value:null,initialValue:null}),et=!Q&&(k?null:Z.state.valid),ei=t.useMemo(()=>({disabled:k,touched:U,dirty:_,valid:et,filled:P,focused:V}),[k,U,_,et,P,V]),en=N({setValidityData:ee,validate:T,validityData:Z,validationDebounceTime:b,invalid:Q,markedDirtyRef:K,state:ei,shouldValidateOnChange:G,validationMode:p,registeredFieldIdRef:z}),[er,el]=function(e){let{change:r,commit:l,invalid:a,markedDirtyRef:o,name:u,setRegisteredFieldName:d,registeredFieldIdRef:c,setValidityData:f,validityData:m}=e,{formRef:v}=(0,s.useFormContext)(),x=t.useRef(null),h=t.useRef(null),b=t.useRef(!1),p=(0,n.useStableCallback)(()=>{let e=h.current;if(e)return e.getValue?e.getValue():e.value});function C(e){return void 0===e.value?p():e.value}let j=(0,n.useStableCallback)(()=>{let e=h.current;(o.current=!0,e)?l(C(e)):l(m.value)});function y(e=h.current?.id){e&&v.current.fields.delete(e)}(0,i.useIsoLayoutEffect)(()=>{let e=h.current;e&&e.id&&(d(u?void 0:e.name),v.current.fields.set(e.id,{getValue:p,name:u??e.name,controlRef:e.controlRef,validityData:g(m,a),validate:j}))},[v,p,a,u,d,j,m]),(0,i.useIsoLayoutEffect)(()=>{let e=v.current.fields;return()=>{let t=h.current?.id;t&&e.delete(t)}},[v]);let N=(0,n.useStableCallback)((e,t)=>{let i;if(!t){x.current===e&&(x.current=null,r(void 0,!0),y(),h.current=null,d(void 0),c.current=void 0);return}let n=h.current?.id,l=x.current;l&&l!==e&&r(void 0,!0),x.current=e,h.current=t,u||d(t.name),c.current=t.id,n&&n!==t.id&&y(n),function(e){if(b.current)return;b.current=!0;let t=C(e);f(e=>e.initialValue===t?e:{...e,initialValue:t})}(t),(i=h.current)&&i.id&&v.current.fields.set(i.id,{getValue:p,name:u??i.name,controlRef:i.controlRef,validityData:g(m,a),validate:j})});return[j,N]}({change:en.change,commit:en.commit,invalid:Q,markedDirtyRef:K,name:C,setRegisteredFieldName:Y,registeredFieldIdRef:z,setValidityData:ee,validityData:Z});t.useImperativeHandle(w,()=>({validate:er}),[er]);let ea=t.useMemo(()=>({invalid:Q,name:H,validityData:Z,setValidityData:ee,disabled:k,setTouched:q,setDirty:J,setFilled:A,setFocused:B,validationMode:p,shouldValidateOnChange:G,state:ei,registerFieldControl:el,validation:en}),[Q,H,Z,k,q,J,A,B,p,G,ei,el,en]),es=(0,m.useRenderElement)("div",e,{ref:o,state:ei,props:D,stateAttributesMapping:l.fieldValidityMapping});return(0,c.jsx)(r.FieldRootContext.Provider,{value:ea,children:es})}),S=t.forwardRef(function(e,t){return(0,c.jsx)(f,{children:(0,c.jsx)(R,{...e,ref:t})})});e.s(["FieldRoot",0,S],932013);var w=e.i(229315),E=e.i(108868),D=e.i(584446);let I=t.createContext({disabled:!1});function T(){return t.useContext(I)}e.s(["FieldItemContext",0,I,"useFieldItemContext",0,T],157153);let k=t.forwardRef(function(e,a){let{render:s,className:o,style:c,id:f,nativeLabel:v=!0,...x}=e,h=(0,r.useFieldRootContext)(!1),g=T(),{labelId:b}=(0,d.useLabelableContext)(),p={...h.state,disabled:h.disabled||g.disabled},C=t.useRef(null),j=function(e={}){let t,{id:r,fallbackControlId:l,native:a=!1,setLabelId:s,focusControl:o}=e,{controlId:c,setLabelId:f}=(0,d.useLabelableContext)(),m=(0,n.useStableCallback)(e=>{f(e),s?.(e)}),v=(t=(0,u.useBaseUiId)(r),(0,i.useIsoLayoutEffect)(()=>(m(t),()=>{m(e=>e===t?void 0:e)}),[t,m]),t),x=c??l;function h(e){let t=(0,D.getTarget)(e.nativeEvent);t?.closest("button,input,select,textarea")||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),a||function(e){if(o)return o(e,x);if(!x)return;let t=(0,E.ownerDocument)(e.currentTarget).getElementById(x);(0,w.isHTMLElement)(t)&&t.focus({focusVisible:!0})}(e))}return a?{id:v,htmlFor:x,onMouseDown:h}:{id:v,onClick:h,onPointerDown(e){e.preventDefault()}}}({id:b??f,native:v});return(0,m.useRenderElement)("label",e,{ref:[a,C],state:p,props:[j,x],stateAttributesMapping:l.fieldValidityMapping})});e.s(["FieldLabel",0,k],45574);var F=e.i(137584),O=e.i(474354),L=e.i(223910);let M={...l.fieldValidityMapping,...O.transitionStatusMapping},P=t.forwardRef(function(e,n){let{render:l,id:a,className:o,match:f,style:v,...x}=e,h=(0,u.useBaseUiId)(a),{validityData:g,state:b,name:p}=(0,r.useFieldRootContext)(!1),{setMessageIds:C}=(0,d.useLabelableContext)(),{errors:j}=(0,s.useFormContext)(),y=p&&Object.hasOwn(j,p)?j[p]:null,N=!!(Array.isArray(y)?y.length:y),R="string"==typeof f,S=!1;S=!0===f||!b.disabled&&(R?!!g.state[f]:N||!1===g.state.valid);let{mounted:w,transitionStatus:E,setMounted:D}=(0,L.useTransitionStatus)(S);(0,i.useIsoLayoutEffect)(()=>{if(S&&h)return C(e=>e.concat(h)),()=>{C(e=>e.filter(e=>e!==h))}},[S,h,C]);let I=t.useRef(null),[T,k]=t.useState(null),[O,P]=t.useState(null),A=g.error;!R&&N?A=y:g.errors.length>1&&(A=g.errors);let V=A;Array.isArray(A)&&(V=A.length>1?(0,c.jsx)("ul",{children:A.map(e=>(0,c.jsx)("li",{children:e},e))}):A[0]);let B=Array.isArray(A)?JSON.stringify(A):A;S&&B!==O&&(P(B),k(V)),(0,F.useOpenChangeComplete)({open:S,ref:I,onComplete(){S||D(!1)}});let _={...b,transitionStatus:E},U=(0,m.useRenderElement)("div",e,{ref:[n,I],state:_,props:[{id:h,children:S?V:T},x],stateAttributesMapping:M,enabled:w});return w?U:null});e.s(["FieldError",0,P],535718);let A=t.forwardRef(function(e,t){let{render:n,id:a,className:s,style:o,...c}=e,f=(0,u.useBaseUiId)(a),v=(0,r.useFieldRootContext)(!1),x=T(),{setMessageIds:h}=(0,d.useLabelableContext)(),g={...v.state,disabled:v.disabled||x.disabled};return(0,i.useIsoLayoutEffect)(()=>{if(f)return h(e=>e.concat(f)),()=>{h(e=>e.filter(e=>e!==f))}},[f,h]),(0,m.useRenderElement)("p",e,{ref:t,state:g,props:[{id:f},c],stateAttributesMapping:l.fieldValidityMapping})});e.s(["FieldDescription",0,A],910148)},387068,e=>{"use strict";e.i(247167);var t=e.i(733332),i=e.i(271645);let n=i.createContext(void 0);e.s(["useFieldsetRootContext",0,function(e=!1){let r=i.useContext(n);if(!r&&!e)throw Error((0,t.default)(86));return r}])},381104,e=>{"use strict";var t=e.i(146376),i=e.i(388940),n=e.i(469690);e.s(["useRegisterFieldControl",0,function(e,r,l,a,s=!0,o){let{registerFieldControl:u}=(0,n.useFieldRootContext)(),d=(0,i.useRefWithInit)(()=>Symbol());(0,t.useIsoLayoutEffect)(()=>{let t=d.current;s?u(t,{controlRef:e,getValue:a,id:r,name:o,value:l}):u(t,void 0)},[e,s,a,r,o,u,d,l]),(0,t.useIsoLayoutEffect)(()=>{let e=d.current;return()=>{u(e,void 0)}},[u,d])}])},469690,875812,e=>{"use strict";var t=e.i(733332),i=e.i(271645),n=e.i(956789);let r={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},l={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},a={disabled:!1,...l};e.s(["DEFAULT_FIELD_ROOT_STATE",0,a,"DEFAULT_FIELD_STATE_ATTRIBUTES",0,l,"DEFAULT_VALIDITY_STATE",0,r,"fieldValidityMapping",0,{valid:e=>null===e?null:e?{"data-valid":""}:{"data-invalid":""}}],875812);let s={invalid:void 0,name:void 0,validityData:{state:r,errors:[],error:"",value:"",initialValue:null},setValidityData:n.NOOP,disabled:void 0,setTouched:n.NOOP,setDirty:n.NOOP,setFilled:n.NOOP,setFocused:n.NOOP,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:a,registerFieldControl:n.NOOP,validation:{getValidationProps:(e,t=n.EMPTY_OBJECT)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:n.NOOP,getInputControl:()=>null,commit:async()=>{},change:n.NOOP}},o=i.createContext(s);e.s(["DEFAULT_FIELD_ROOT_CONTEXT",0,s,"FieldRootContext",0,o,"useFieldRootContext",0,function(e=!0){let r=i.useContext(o);if(r.setValidityData===n.NOOP&&!e)throw Error((0,t.default)(28));return r}],469690)},884708,247778,e=>{"use strict";var t=e.i(271645),i=e.i(956789);let n=t.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:i.NOOP,validationMode:"onSubmit",submitCountRef:{current:0}});e.s(["useFormContext",0,function(){return t.useContext(n)}],884708);let r=t.createContext({controlId:void 0,registerControlId:i.NOOP,resetControlId:i.NOOP,labelId:void 0,setLabelId:i.NOOP,messageIds:[],setMessageIds:i.NOOP,getDescriptionProps:e=>e});e.s(["LabelableContext",0,r,"useLabelableContext",0,function(){return t.useContext(r)}],247778)},538489,e=>{"use strict";var t=e.i(271645),i=e.i(146376),n=e.i(667865),r=e.i(388940),l=e.i(956789),a=e.i(788015),s=e.i(247778);e.s(["useLabelableId",0,function(e={}){let{id:o,enabled:u=!0}=e,{controlId:d,registerControlId:c,resetControlId:f}=(0,s.useLabelableContext)(),m=(0,a.useBaseUiId)(),v=(0,r.useRefWithInit)(()=>Symbol()),x=t.useRef(!1),h=t.useRef(!1),g=(0,n.useStableCallback)(()=>{x.current&&c!==l.NOOP&&(x.current=!1,c(v.current,void 0))});return(0,i.useIsoLayoutEffect)(()=>{let e;if(!u||c===l.NOOP)return void g();if(void 0!==o)h.current=!0,e=o;else{if(!h.current)return void f();e=m}void 0===e?g():(x.current=!0,c(v.current,e))},[o,u,c,f,m,v,g]),(0,i.useIsoLayoutEffect)(()=>g,[g]),(u?d:void 0)??o??m}])},77071,e=>{"use strict";var t=e.i(456420);let i={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};i.node;let n=(0,t.default)(i);e.s(["Plus",0,n],77071)},566595,630299,e=>{"use strict";var t=e.i(456420);let i={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};i.node;let n=(0,t.default)(i);e.s(["default",0,n],630299),e.s(["Search",0,n],566595)}]);
|