thursday-agent 0.18.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +3 -2
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/routes-manifest.json +22 -12
- package/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +12 -12
- package/.next/server/app/_not-found.segments/_full.segment.rsc +12 -12
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +11 -11
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/artifact/route.js +6 -6
- package/.next/server/app/api/artifact/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/files/route.js +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 +3 -3
- package/.next/server/app/api/bot/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/route.js +3 -3
- package/.next/server/app/api/bot/route.js.nft.json +1 -1
- 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 -17
- package/.next/server/app/api/bot/thread/file/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/route.js.nft.json +1 -1
- package/.next/server/app/api/config/route.js.nft.json +1 -1
- package/.next/server/app/api/events/route.js +2 -2
- 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 +2 -2
- package/.next/server/app/api/file/[...path]/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/automatic/route.js +2 -2
- package/.next/server/app/api/llm-model/automatic/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/catalog/[provider]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/llm-model/catalog/{route.js → [provider]/route.js} +7 -7
- package/.next/server/app/api/llm-model/catalog/[provider]/route.js.nft.json +1 -0
- package/.next/server/app/api/llm-model/catalog/[provider]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/llm-model/credits/[provider]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/llm-model/credits/{route.js → [provider]/route.js} +7 -7
- package/.next/server/app/api/llm-model/credits/[provider]/route.js.nft.json +1 -0
- package/.next/server/app/api/llm-model/credits/[provider]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/llm-model/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/subscription/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/oauth/callback/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/tools/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/edit/route.js +12 -12
- package/.next/server/app/api/memory/edit/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/reach/route.js +16 -16
- package/.next/server/app/api/reach/route.js.nft.json +1 -1
- package/.next/server/app/api/routine/route.js +5 -5
- package/.next/server/app/api/routine/route.js.nft.json +1 -1
- package/.next/server/app/api/running/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/running/route/build-manifest.json +12 -0
- package/.next/server/app/api/running/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/running/route.js +10 -0
- package/.next/server/app/api/running/route.js.map +5 -0
- package/.next/server/app/api/running/route.js.nft.json +1 -0
- package/.next/server/app/api/running/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/signins/route.js +4 -4
- package/.next/server/app/api/signins/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/[source]/[name]/route.js +6 -6
- package/.next/server/app/api/skills/[source]/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/route.js +6 -6
- package/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/end/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/settings/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/text/route.js +12 -12
- package/.next/server/app/api/thursday/text/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/tool-call/route.js +12 -12
- package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/files/route.js +6 -6
- package/.next/server/app/api/workspace/files/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/route.js +5 -5
- 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 +7 -6
- 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/server-reference-manifest.json +63 -63
- package/.next/server/app/page.js +10 -9
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +3 -2
- package/.next/server/chunks/{[externals]__178rv3v._.js → [externals]__12stas-._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__02ra64t._.js +1 -1
- package/.next/server/chunks/{[root-of-the-server]__05dp5tr._.js → [root-of-the-server]__06ky9of._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0b565-x._.js +7 -0
- package/.next/server/chunks/{[root-of-the-server]__1izes4_._.js → [root-of-the-server]__0bmtib_._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0bqveex._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0brmiv2._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__0eivkvk._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__0f7m79q._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0g38-aj._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__0gvdr2h._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0h656y-._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__0hm3tiq._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__0hzdqnv._.js +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0my9geo._.js → [root-of-the-server]__0kzmxpg._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0mgyt8p._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__0mrk2it._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0o5s5-o._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__0p80i1n._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0qdoc_9._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0qzho69._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0sm5xvm._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0v_kuor._.js +1 -1
- package/.next/server/chunks/{[root-of-the-server]__1k2qs1m._.js → [root-of-the-server]__0ypkfbu._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1-18_pz._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__13hng6h._.js +1 -1
- package/.next/server/chunks/{[root-of-the-server]__01k3vi3._.js → [root-of-the-server]__14iga7p._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__16gn7zn._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__18e65_-._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1_04mcf._.js +2 -2
- package/.next/server/chunks/{[root-of-the-server]__0lvjz0b._.js → [root-of-the-server]__1_cgawk._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__1ceammd._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1ckt1yj._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1cu5f3z._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1dth047._.js +1 -1
- package/.next/server/chunks/{[root-of-the-server]__061o2_x._.js → [root-of-the-server]__1fc6v12._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1hviq62._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__1m1q6u5._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1m_dmf6._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1mys2c3._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1ndi14y._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1p0njle._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__1p47fbb._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1pugoq0._.js +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0ts7ai0._.js → [root-of-the-server]__1trns9g._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1ygplx1._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1zn039k._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__20w_g71._.js +3 -0
- package/.next/server/chunks/_06hnfi8._.js +2 -2
- package/.next/server/chunks/_06u9yo-._.js +1 -1
- package/.next/server/chunks/_08_-9ay._.js +2 -2
- package/.next/server/chunks/_0bgjf07._.js +1 -1
- package/.next/server/chunks/_0c49lmw._.js +1 -1
- package/.next/server/chunks/_0hgvg55._.js +1 -1
- package/.next/server/chunks/_0s8ao8z._.js +1 -1
- package/.next/server/chunks/_0ucx1jv._.js +1 -1
- package/.next/server/chunks/_0uzj57i._.js +1 -1
- package/.next/server/chunks/_1-sk_q4._.js +1 -1
- package/.next/server/chunks/_1dxq827._.js +2 -2
- package/.next/server/chunks/_1e54wxa._.js +1 -1
- package/.next/server/chunks/_1frcwj1._.js +1 -1
- package/.next/server/chunks/_1gn2r2q._.js +4 -2
- package/.next/server/chunks/_1gxankq._.js +2 -2
- package/.next/server/chunks/_1i3uucm._.js +1 -1
- package/.next/server/chunks/_1jvy78-._.js +1 -1
- package/.next/server/chunks/_1lg0lsu._.js +53 -0
- package/.next/server/chunks/_1njolhx._.js +294 -0
- package/.next/server/chunks/_1q6e56i._.js +4 -2
- package/.next/server/chunks/_1wtb-77._.js +294 -0
- package/.next/server/chunks/_next-internal_server_app_api_llm-model_catalog_[provider]_route_actions_1i0449q.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_llm-model_credits_[provider]_route_actions_0iui9hz.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_running_route_actions_0o1g-aw.js +3 -0
- package/.next/server/chunks/config_ts_1g4sz5o._.js +1 -1
- package/.next/server/chunks/features_bot_0zy_q8y._.js +7 -7
- package/.next/server/chunks/features_bot_1dfrdsb._.js +7 -7
- package/.next/server/chunks/{node_modules_1rosz79._.js → node_modules_035o7ku._.js} +1 -1
- package/.next/server/chunks/{node_modules_1er1u8w._.js → node_modules_0tn5t13._.js} +1 -1
- package/.next/server/chunks/{node_modules_103lpef._.js → node_modules_12oq3hr._.js} +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__04upd5v._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0p0mv2u._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__1r7tj27._.js → [root-of-the-server]__0sk5enu._.js} +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0xyaud4._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__128hnrd._.js → [root-of-the-server]__1-gi9sm._.js} +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__0h6jo0s._.js → [root-of-the-server]__16nn3pe._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__1867koj._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1c8-7cw._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1tb5vve._.js +2 -1
- package/.next/server/chunks/ssr/_02cm0fr._.js +5 -0
- package/.next/server/chunks/ssr/_07nmtxo._.js +1 -1
- package/.next/server/chunks/ssr/_088vzgn._.js +1 -1
- package/.next/server/chunks/ssr/{_1oafxdu._.js → _0bg1u1j._.js} +2 -2
- package/.next/server/chunks/ssr/_0cv9tmv._.js +1 -1
- package/.next/server/chunks/ssr/_0f9hx5p._.js +1 -1
- package/.next/server/chunks/ssr/_0g9ula_._.js +3 -0
- package/.next/server/chunks/ssr/{_0wuvkqk._.js → _0irozu9._.js} +2 -2
- package/.next/server/chunks/ssr/_0iwsdp7._.js +3 -0
- package/.next/server/chunks/ssr/_0l7rjg5._.js +1 -1
- package/.next/server/chunks/ssr/{_0fo4552._.js → _0nk80t6._.js} +44 -5
- package/.next/server/chunks/ssr/_0pbav_w._.js +1 -1
- package/.next/server/chunks/ssr/{_1r4mc3i._.js → _0q-mdwv._.js} +8 -8
- package/.next/server/chunks/ssr/{_1w899wx._.js → _0s5_ahb._.js} +2 -2
- package/.next/server/chunks/ssr/{_1omom9y._.js → _0t5f2c3._.js} +2 -2
- package/.next/server/chunks/ssr/_0v9r8g2._.js +1 -1
- package/.next/server/chunks/ssr/_0x8ophf._.js +1 -1
- package/.next/server/chunks/ssr/_0x9f717._.js +1 -1
- package/.next/server/chunks/ssr/_107vtdk._.js +162 -0
- package/.next/server/chunks/ssr/{_0ixe3g3._.js → _12lql1x._.js} +3 -3
- package/.next/server/chunks/ssr/_165wnr4._.js +1 -1
- package/.next/server/chunks/ssr/_16_7zeo._.js +1 -1
- package/.next/server/chunks/ssr/_17komoi._.js +3 -0
- package/.next/server/chunks/ssr/{_0j9vh-8._.js → _190hjys._.js} +2 -2
- package/.next/server/chunks/ssr/_1bfrntd._.js +2 -2
- package/.next/server/chunks/ssr/{_1tx-2k7._.js → _1booff4._.js} +2 -2
- package/.next/server/chunks/ssr/{_12jv_41._.js → _1ew1j7l._.js} +2 -2
- package/.next/server/chunks/ssr/_1i2swyr._.js +1 -1
- package/.next/server/chunks/ssr/_1neoj22._.js +1 -1
- package/.next/server/chunks/ssr/{_0osvxkt._.js → _1qsa25k._.js} +2 -2
- package/.next/server/chunks/ssr/_1soynbw._.js +2 -2
- package/.next/server/chunks/ssr/_1vc2xmu._.js +3 -0
- package/.next/server/chunks/ssr/{_1_ogjze._.js → _1wq90j8._.js} +2 -2
- package/.next/server/chunks/ssr/{_1pgxh81._.js → _1zrhkf0._.js} +44 -5
- package/.next/server/chunks/ssr/{_0mpn6q0._.js → _21awrs2._.js} +2 -2
- package/.next/server/chunks/ssr/features_0796o8r._.js +1 -1
- package/.next/server/chunks/ssr/features_bot_1c56lew._.js +37 -0
- package/.next/server/chunks/ssr/{features_bot_18gqkr_._.js → features_bot_1fn_grf._.js} +2 -2
- package/.next/server/chunks/ssr/{features_config_1ond01n._.js → features_config_05zi68v._.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/{node_modules_1-4q6is._.js → node_modules_0-sux1a._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_17o218r._.js → node_modules_01oezhb._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0f485jl._.js → node_modules_04m6ebg._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0upwx50._.js → node_modules_067jfov._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0i_v0-m._.js → node_modules_06ugby3._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0lxwg2v._.js → node_modules_07p51j3._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_16z7p8b._.js → node_modules_0995xyq._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_004qt-z._.js → node_modules_0_uecwx._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0lrn9ci._.js → node_modules_0dsyc90._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0v__o4h._.js → node_modules_0hli6s2._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1gpapfv._.js → node_modules_0m-bde_._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1tus4vi._.js → node_modules_0oqfdbr._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_09dy7tk._.js → node_modules_0tgy5s5._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1hdaxu9._.js → node_modules_1-kjmls._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0gbx70b._.js → node_modules_1-l3ka5._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_20448xv._.js → node_modules_1-w3ayh._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_06m6e97._.js → node_modules_133exgm._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1srjf5c._.js → node_modules_17xc5_k._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1tv_7lk._.js → node_modules_1_i_w30._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1hjvwkh._.js → node_modules_1a2cjfk._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0_hy3i2._.js → node_modules_1k752fe._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0n2-p5q._.js → node_modules_1lie7z8._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0pw13ww._.js → node_modules_1mv70-y._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_10mb0cv._.js → node_modules_1r611t2._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0nj36zf._.js → node_modules_1vfd8dz._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0ppirau._.js → node_modules_1yaowd7._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1j886a5._.js → node_modules_20a1wpo._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0lg9pkl._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1r8pxbe._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1xgbf5j._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1siiu4h._.js} +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/middleware.js +1 -1
- 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/{1dpg1u4a16ujt.js → 088d3w5qxu19g.js} +2 -2
- package/.next/static/chunks/0bxekp4hnuk1g.js +1 -0
- package/.next/static/chunks/{17dx6w478vnb0.js → 0fw4u_s974j24.js} +1 -1
- package/.next/static/chunks/0hy2x7qhk8wgx.css +1 -0
- package/.next/static/chunks/{240nfv2dtidhc.js → 0n_eshmn_7wfn.js} +2 -2
- package/.next/static/chunks/0ulcp_u_y1u0b.js +15 -0
- package/.next/static/chunks/0vj93zo0yvix9.js +35 -0
- package/.next/static/chunks/{05uvci-bk-vgp.js → 10f98bh4hdmhe.js} +1 -1
- package/.next/static/chunks/{0ruf3dqs--3ve.js → 1b8bce_z_act0.js} +1 -1
- package/.next/static/chunks/1c32d2azsjaj_.js +1 -0
- package/.next/static/chunks/1fs829mz69pxz.js +1 -0
- package/.next/static/chunks/{2ug8q1x9e-_j6.js → 1lwlh4mo_vv8d.js} +1 -1
- package/.next/static/chunks/{3r7u1y9xjoh-v.js → 1po8fkg40peu-.js} +1 -1
- package/.next/static/chunks/{27l8qwnk1j66z.js → 1rg6b9l5fm1hj.js} +1 -1
- package/.next/static/chunks/{1pe7i5yu779ta.js → 26g3iwfuad-7p.js} +1 -1
- package/.next/static/chunks/2bjnmtke_q43c.js +1 -0
- package/.next/static/chunks/2c86k0o-1p9_w.js +1 -0
- package/.next/static/chunks/2gf4t0d76bvyv.js +1 -0
- package/.next/static/chunks/2rj3q_ahctv19.js +1 -0
- package/.next/static/chunks/{2lhc74urf3acr.js → 2x6-fpctvucte.js} +1 -1
- package/.next/static/chunks/{2gxfy__ef51n9.js → 2yicf7bky866n.js} +1 -1
- package/.next/static/chunks/{0oqviw3f55nfp.js → 350ws7svim7ij.js} +1 -1
- package/.next/static/chunks/3e1w_nwfb39j-.js +1 -0
- package/.next/static/chunks/3v3ooretb54ag.js +1 -0
- package/.next/static/chunks/{2lzg4zedtmyic.js → 44bcbnmup71so.js} +1 -1
- package/.next/static/chunks/{1h_6rh86q3i4p.js → 458dtbsemx996.js} +1 -1
- package/bin/background.mjs +995 -0
- package/bin/lock.mjs +64 -29
- package/bin/thursday.mjs +111 -42
- package/bin/tools.mjs +58 -4
- package/guide/calls.md +8 -0
- package/guide/setup.md +27 -13
- package/package.json +1 -1
- package/seed-skills/concierge/travel/references/itinerary.md +1 -1
- package/seed-skills/concierge/travel/scripts/itinerary.mjs +7 -2
- package/skills/artifact/references/book.md +3 -3
- package/.next/server/app/api/llm-model/catalog/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/llm-model/catalog/route.js.nft.json +0 -1
- package/.next/server/app/api/llm-model/catalog/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/llm-model/credits/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/llm-model/credits/route.js.nft.json +0 -1
- package/.next/server/app/api/llm-model/credits/route_client-reference-manifest.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__03xamry._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__04hhvpu._.js +0 -7
- package/.next/server/chunks/[root-of-the-server]__1-rmal0._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__10xnb7e._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1etbk64._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1v7x5ym._.js +0 -3
- package/.next/server/chunks/_07nxi75._.js +0 -255
- package/.next/server/chunks/_0srlnvd._.js +0 -16
- package/.next/server/chunks/_0xygcxs._.js +0 -255
- package/.next/server/chunks/_next-internal_server_app_api_llm-model_catalog_route_actions_1eu2y41.js +0 -3
- package/.next/server/chunks/_next-internal_server_app_api_llm-model_credits_route_actions_0v424pb.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__06knwl5._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__07ehpky._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1gzje-h._.js +0 -3
- package/.next/server/chunks/ssr/_0jstvlg._.js +0 -39
- package/.next/server/chunks/ssr/_1-41lck._.js +0 -3
- package/.next/server/chunks/ssr/_10jtmhl._.js +0 -3
- package/.next/server/chunks/ssr/_19jez1a._.js +0 -3
- package/.next/server/chunks/ssr/_1jd8rjm._.js +0 -3
- package/.next/server/chunks/ssr/_1mdjoak._.js +0 -162
- package/.next/static/chunks/09y_43y1cy5jw.js +0 -1
- package/.next/static/chunks/0vggwjufw2-6r.js +0 -1
- package/.next/static/chunks/0x4m9nj2fazl2.js +0 -35
- package/.next/static/chunks/1-1yfu34-3p2p.js +0 -1
- package/.next/static/chunks/10oyyypxn_cpx.js +0 -1
- package/.next/static/chunks/184-r80rv0xay.css +0 -1
- package/.next/static/chunks/1_hgdoungpm0o.js +0 -1
- package/.next/static/chunks/2kjwmo70judc2.js +0 -15
- package/.next/static/chunks/2uk8rdtr-pk58.js +0 -1
- package/.next/static/chunks/3vg1-oc-zgw_7.js +0 -1
- package/.next/static/chunks/3vrmcm31ih7gb.js +0 -1
- package/.next/static/chunks/41ztsnjn4qrn-.js +0 -1
- package/bin/autostart.mjs +0 -192
- /package/.next/server/app/api/llm-model/catalog/{route → [provider]/route}/build-manifest.json +0 -0
- /package/.next/server/app/api/llm-model/catalog/{route → [provider]/route}/server-reference-manifest.json +0 -0
- /package/.next/server/app/api/llm-model/catalog/{route.js.map → [provider]/route.js.map} +0 -0
- /package/.next/server/app/api/llm-model/credits/{route → [provider]/route}/build-manifest.json +0 -0
- /package/.next/server/app/api/llm-model/credits/{route → [provider]/route}/server-reference-manifest.json +0 -0
- /package/.next/server/app/api/llm-model/credits/{route.js.map → [provider]/route.js.map} +0 -0
- /package/.next/static/{-IBxB5oqr6e3RuOCCmYtL → YhaRHJqObuAcXZe5VLFs0}/_buildManifest.js +0 -0
- /package/.next/static/{-IBxB5oqr6e3RuOCCmYtL → YhaRHJqObuAcXZe5VLFs0}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{-IBxB5oqr6e3RuOCCmYtL → YhaRHJqObuAcXZe5VLFs0}/_ssgManifest.js +0 -0
|
@@ -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),o=e.i(17989),r=e.i(46420),i=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,i.default)(47));return t}var d=e.i(174080),u=e.i(301252),p=e.i(439957),c=e.i(956789),f=e.i(56434),g=e.i(18478),h=e.i(264111),v=e.i(116786),m=e.i(990627),L=e.i(638396);let x={...v.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 u.ReactStore{constructor(e,t,a){const n=new m.PopupTriggerMap;super(M(e,n,t,a),C(n),x)}setOpen=(e,t)=>{let a,n=t.reason===f.REASONS.triggerHover,o=t.reason===f.REASONS.triggerPress&&0===t.event.detail,r=!e&&(t.reason===f.REASONS.escapeKey||null==t.reason),i=(0,h.attachPreventUnmountOnClose)(t),s=this.select("activeTriggerId");if(e||t.reason!==f.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,h.createPopupOpenState)(this.state,e,t.trigger,i());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(),o?a="click":r?a="dismiss":t.reason===f.REASONS.focusOut&&(a="focus"),this.set("instantType",a)}}function M(e,t,a,n=!1){let o={...(0,v.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 o.open&&e?.mounted===void 0&&(o.mounted=!0),o}function C(e){return{popupRef:a.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:a.createRef(),beforeContentFocusGuardRef:a.createRef(),stickIfOpenTimeout:new p.Timeout,triggerElements:e}}var O=e.i(675606);let z=(0,n.fastComponent)(function({props:e}){var n;let o,{children:r,open:i,defaultOpen:l=!1,onOpenChange:d,onOpenChangeComplete:u,modal:p=!1,handle:c,triggerId:g,defaultTriggerId:v=null}=e,m=(n={modal:p,open:l,openProp:i,activeTriggerId:v,triggerIdProp:g},o=(0,h.usePopupRootStore)((e,t)=>new S(n,e,t)),a.useEffect(()=>o.context.stickIfOpenTimeout.disposeEffect(),[o]),o);m.useControlledProp("openProp",i),m.useControlledProp("triggerIdProp",g);let L=m.useState("open"),x=m.useState("mounted"),M=m.useState("payload");m.useContextCallback("onOpenChange",d),m.useContextCallback("onOpenChangeComplete",u),(0,h.usePopupRootSync)(m,L),(0,h.useImplicitActiveTrigger)(m);let{forceUnmount:C}=(0,h.useOpenStateTransitions)(L,m,()=>{m.update({stickIfOpen:!0,openChangeReason:null})});m.useSyncedValues({modal:p}),a.useEffect(()=>{L||m.context.stickIfOpenTimeout.clear()},[m,L]),a.useImperativeHandle(e.actionsRef,()=>({unmount:C,close:()=>m.setOpen(!1,(0,O.createChangeEventDetails)(f.REASONS.imperativeAction))}),[C,m]);let z=L||x;return(0,t.jsxs)(s.Provider,{value:m,children:[c&&(0,t.jsx)(h.PopupHandleAttachment,{handle:c,store:m}),z&&(0,t.jsx)(R,{store:m,modal:p}),"function"==typeof r?r({payload:M}):r]})});function R({store:e,modal:t}){let a=e.useState("floatingRootContext"),n=(0,o.useDismiss)(a,{outsidePressEvent:{mouse:"trap-focus"===t?"sloppy":"intentional",touch:"sloppy"}}),r=n.reference,i=n.floating;return(0,h.usePopupInteractionProps)(e,{activeTriggerProps:r,inactiveTriggerProps:r,popupProps:i}),null}var E=e.i(540886),P=e.i(879938),A=e.i(552245),I=e.i(650316),y=e.i(385689),T=e.i(872135),j=e.i(788015),w=e.i(152535),b=e.i(459636),F=e.i(346570),H=e.i(32199);let D=(0,n.fastComponentRef)(function(e,n){let{render:o,className:r,style:s,disabled:d=!1,nativeButton:u=!0,handle:p,payload:c,openOnHover:g=!1,delay:v=300,closeDelay:m=0,id:x,...S}=e,M=l(!0),C=(0,b.usePopupHandleStore)(p)??M;if(!C)throw Error((0,i.default)(74));let O=(0,j.useBaseUiId)(x),z=C.useState("isTriggerActive",O),R=C.useState("floatingRootContext"),D=C.useState("isOpenedByTrigger",O),N=C.useState("triggerPopupId",O),k=a.useRef(null),{registerTrigger:B,isMountedByThisTrigger:V}=(0,h.useTriggerDataForwarding)(O,k,C,{payload:c,disabled:d,openOnHover:g,closeDelay:m}),Y=C.useState("openChangeReason"),U=C.useState("stickIfOpen"),G=C.useState("openMethod"),_=C.useState("focusManagerModal"),K=(0,T.useHoverReferenceInteraction)(R,{enabled:!d&&g&&("touch"!==G||Y!==f.REASONS.triggerPress),mouseOnly:!0,move:!1,handleClose:(0,I.safePolygon)(),restMs:v,delay:{close:m},triggerElementRef:k,isActiveTrigger:z,isClosing:()=>"ending"===C.select("transitionStatus")}),W=(0,y.useClick)(R,{stickIfOpen:U}),q=(0,H.useOpenMethodTriggerProps)(()=>C.select("open"),e=>{C.set("openMethod",e)}),Z=C.useState("triggerProps",V),{getButtonProps:J,buttonRef:Q}=(0,E.useButton)({disabled:d,native:u}),{preFocusGuardRef:X,handlePreFocusGuardFocus:$,handleFocusTargetFocus:ee}=(0,F.useTriggerFocusGuards)(C,k),et=(0,A.useRenderElement)("button",e,{state:{disabled:d,open:D},ref:[Q,n,B,k],props:[W.reference,K,Z,q,{[L.CLICK_TRIGGER_IDENTIFIER]:"",id:O,"aria-haspopup":"dialog","aria-expanded":D,"aria-controls":N},S,J],stateAttributesMapping:{open:e=>e&&Y===f.REASONS.triggerPress?P.pressableTriggerOpenStateMapping.open(e):P.triggerOpenStateMapping.open(e)}}),ea=(0,t.jsx)(a.Fragment,{children:et},O);return V&&!_?(0,t.jsxs)(a.Fragment,{children:[(0,t.jsx)(w.FocusGuard,{ref:X,onFocus:$}),ea,(0,t.jsx)(w.FocusGuard,{ref:C.context.triggerFocusTargetRef,onFocus:ee})]}):ea});var N=e.i(726674);let k=a.createContext(void 0),B=a.forwardRef(function(e,a){let{keepMounted:n=!1,...o}=e;return l().useState("mounted")||n?(0,t.jsx)(k.Provider,{value:n,children:(0,t.jsx)(N.FloatingPortal,{ref:a,...o})}):null});var V=e.i(144394),Y=e.i(146376);let U=a.createContext(void 0);function G(){let e=a.useContext(U);if(!e)throw Error((0,i.default)(46));return e}var _=e.i(923706),K=e.i(426),W=e.i(222640),q=e.i(789579),Z=e.i(33383);let J=a.forwardRef(function(e,n){let{render:o,className:s,style:d,anchor:u,positionMethod:p,side:c,align:g,sideOffset:h,alignOffset:v,collisionBoundary:m="clipping-ancestors",collisionPadding:x,arrowPadding:S,sticky:M,disableAnchorTracking:C=!1,collisionAvoidance:O=L.POPUP_COLLISION_AVOIDANCE,...z}=e,R=l(),E=function(){let e=a.useContext(k);if(void 0===e)throw Error((0,i.default)(45));return e}(),P=(0,r.useFloatingNodeId)(),A=R.useState("floatingRootContext"),I=R.useState("mounted"),y=R.useState("open"),T=R.useState("openChangeReason"),j=R.useState("activeTriggerElement"),w=R.useState("modal"),b=R.useState("openMethod"),F=R.useState("positionerElement"),H=R.useState("instantType"),D=R.useState("transitionStatus"),N=R.useState("adaptiveOrigin"),B=a.useRef(null),G=(0,W.useAnimationsFinished)(F),J=(0,_.useAnchorPositioning)({anchor:u,floatingRootContext:A,positionMethod:p,mounted:I,side:c,sideOffset:h,align:g,alignOffset:v,arrowPadding:S,collisionBoundary:m,collisionPadding:x,sticky:M,disableAnchorTracking:C,keepMounted:E,nodeId:P,collisionAvoidance:O,adaptiveOrigin:N}),Q=A.useState("domReferenceElement");(0,Y.useIsoLayoutEffect)(()=>{let e=B.current;if(Q&&(B.current=Q),e&&Q&&Q!==e){R.set("instantType",void 0);let e=new AbortController;return G(()=>{R.set("instantType","trigger-change")},e.signal),()=>{e.abort()}}},[Q,G,R]);let X=!0===w&&T!==f.REASONS.triggerHover;(0,Z.useAnchoredPopupScrollLock)(y&&X,"touch"===b,F,j);let $=R.useStateSetter("positionerElement"),ee={open:y,side:J.side,align:J.align,anchorHidden:J.anchorHidden,instant:H},et=(0,q.usePositioner)(e,ee,{styles:J.positionerStyles,transitionStatus:D,props:z,refs:[n,$],hidden:!I,inert:!y});return(0,t.jsxs)(U.Provider,{value:J,children:[I&&X&&(0,t.jsx)(K.InternalBackdrop,{inert:(0,V.inertValue)(!y),cutout:j}),(0,t.jsx)(r.FloatingNode,{id:P,children:et})]})});var Q=e.i(229315),X=e.i(61487),$=e.i(431157),ee=e.i(137584),et=e.i(673327),ea=e.i(96533),en=e.i(253984),eo=e.i(667865);let er=a.createContext(void 0),ei=a.forwardRef(function(e,n){let{render:o,className:r,style:i,initialFocus:s,finalFocus:d,...u}=e,p=l(),c=G(),g=null!=(0,ea.useToolbarRootContext)(!0),{context:v,hasClosePart:m}=function(){let[e,t]=a.useState(0),n=(0,eo.useStableCallback)(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:a.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}(),L=p.useState("open"),x=p.useState("openMethod"),S=p.useState("instantType"),M=p.useState("transitionStatus"),C=p.useState("popupProps"),O=p.useState("titleElementId"),z=p.useState("descriptionElementId"),R=p.useState("modal"),E=p.useState("mounted"),I=p.useState("openChangeReason"),y=p.useState("activeTriggerElement"),T=p.useState("floatingRootContext"),j=T.useState("floatingId"),w=p.useState("disabled"),b=p.useState("openOnHover"),F=p.useState("closeDelay");(0,ee.useOpenChangeComplete)({open:L,ref:p.context.popupRef,onComplete(){L&&p.context.onOpenChangeComplete?.(!0)}}),(0,$.useHoverFloatingInteraction)(T,{enabled:b&&!w,closeDelay:F});let H=void 0===s?(0,h.createDefaultInitialFocus)(p.context.popupRef):s,D=!1!==R&&m;p.useSyncedValue("focusManagerModal",D);let N=p.useStateSetter("popupElement"),k={open:L,side:c.side,align:c.align,instant:S,transitionStatus:M},B=(0,A.useRenderElement)("div",e,{state:k,ref:[n,p.context.popupRef,N],props:[C,{id:j,role:"dialog",...h.FOCUSABLE_POPUP_PROPS,"aria-labelledby":O,"aria-describedby":z,onKeyDown(e){g&&et.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()}},(0,en.getDisabledMountTransitionStyles)(M),u],stateAttributesMapping:P.popupTransitionStateMapping});return(0,t.jsx)(X.FloatingFocusManager,{context:T,openInteractionType:x,modal:D,disabled:!E||I===f.REASONS.triggerHover,initialFocus:H,returnFocus:d,restoreFocus:"popup",previousFocusableElement:(0,Q.isHTMLElement)(y)?y:void 0,nextFocusableElement:p.context.triggerFocusTargetRef,beforeContentFocusGuardRef:p.context.beforeContentFocusGuardRef,children:(0,t.jsx)(er.Provider,{value:v,children:B})})}),es=a.forwardRef(function(e,t){let{render:a,className:n,style:o,...r}=e,i=l().useState("open"),{arrowRef:s,side:d,align:u,arrowUncentered:p,arrowStyles:c}=G();return(0,A.useRenderElement)("div",e,{state:{open:i,side:d,align:u,uncentered:p},ref:[t,s],props:[{style:c,"aria-hidden":!0},r],stateAttributesMapping:P.popupStateMapping})}),el=a.forwardRef(function(e,t){let{render:a,className:n,style:o,...r}=e,i=l(),s=i.useState("open"),d=i.useState("mounted"),u=i.useState("transitionStatus"),p=i.useState("openChangeReason");return(0,A.useRenderElement)("div",e,{state:{open:s,transitionStatus:u},ref:t,props:[{role:"presentation",hidden:!d,style:{pointerEvents:p===f.REASONS.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},r],stateAttributesMapping:P.popupTransitionStateMapping})}),ed=a.forwardRef(function(e,t){let{render:a,className:n,style:o,...r}=e,i=l(),s=(0,j.useBaseUiId)(r.id);return i.useSyncedValueWithCleanup("titleElementId",s),(0,A.useRenderElement)("h2",e,{ref:t,props:[{id:s},r]})}),eu=a.forwardRef(function(e,t){let{render:a,className:n,style:o,...r}=e,i=l(),s=(0,j.useBaseUiId)(r.id);return i.useSyncedValueWithCleanup("descriptionElementId",s),(0,A.useRenderElement)("p",e,{ref:t,props:[{id:s},r]})}),ep=a.forwardRef(function(e,t){let n,{render:o,className:r,style:i,disabled:s=!1,nativeButton:d=!0,...u}=e,{buttonRef:p,getButtonProps:c}=(0,E.useButton)({disabled:s,focusableWhenDisabled:!1,native:d}),g=l();return n=a.useContext(er),(0,Y.useIsoLayoutEffect)(()=>n?.register(),[n]),(0,A.useRenderElement)("button",e,{ref:[t,p],props:[{onClick(e){g.setOpen(!1,(0,O.createChangeEventDetails)(f.REASONS.closePress,e.nativeEvent))}},u,c]})});var ec=e.i(818390);let ef=a.forwardRef(function(e,t){let{render:a,className:n,style:o,children:r,...i}=e,s=l(),{side:d}=G(),u=s.useState("instantType"),{children:p,state:c}=(0,ec.usePopupViewport)({store:s,side:d,children:r}),f={activationDirection:c.activationDirection,transitioning:c.transitioning,instant:u};return(0,A.useRenderElement)("div",e,{state:f,ref:t,props:[i,{children:p}],stateAttributesMapping:ec.popupViewportStateMapping})});var eg=e.i(564170);class eh extends eg.BasePopupHandle{constructor(){super(function(){let e=new m.PopupTriggerMap;return Object.assign(new g.NullStore(Object.freeze(M(void 0,e)),Object.freeze(C(e)),x),{setOpen:c.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,ep,"Description",0,eu,"Handle",0,eh,"Popup",0,ei,"Portal",0,B,"Positioner",0,J,"Root",0,function(e){return l(!0)?(0,t.jsx)(z,{props:e}):(0,t.jsx)(r.FloatingTree,{children:(0,t.jsx)(z,{props:e})})},"Title",0,ed,"Trigger",0,D,"Viewport",0,ef,"createHandle",0,function(){return new eh}],466914);var ev=e.i(466914),ev=ev,em=e.i(647163);e.s(["Popover",0,function({...e}){return(0,t.jsx)(ev.Root,{"data-slot":"popover",...e})},"PopoverContent",0,function({className:e,align:a="center",alignOffset:n=0,side:o="bottom",sideOffset:r=4,...i}){return(0,t.jsx)(ev.Portal,{children:(0,t.jsx)(ev.Positioner,{align:a,alignOffset:n,side:o,sideOffset:r,className:"isolate z-50",children:(0,t.jsx)(ev.Popup,{"data-slot":"popover-content",className:(0,em.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),...i})})})},"PopoverTrigger",0,function({...e}){return(0,t.jsx)(ev.Trigger,{"data-slot":"popover-trigger",...e})}],59377)},968978,7227,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 o({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 r({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 i({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"})})})}e.s(["ClaudeIcon",0,r,"GoogleIcon",0,a,"GrokIcon",0,o,"OpenAIIcon",0,n,"VercelIcon",0,i],7227);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"}]};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 r;case"google":return a;case"openai":case"chatgpt":return n;case"vercel-ai-gateway":return i;case"xai":return o}})(l);return(0,t.jsx)(d,{className:e})}],968978)},734899,e=>{"use strict";var t=e.i(95187);let a=(0,t.createServerReference)("7f76f5cac3ee50f8dab475f3fdb52046343c578af1",t.callServer,void 0,t.findSourceMapURL,"setConfigAction");e.s(["setConfigAction",0,a])},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 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59158,e=>{"use strict";var t=e.i(843476),n=e.i(689664),r=e.i(563707),l=e.i(466787),a=e.i(271645),s=e.i(798120),i=e.i(167881);e.s([],148099),e.i(148099);var o=e.i(733332),u=e.i(951437),c=e.i(146376),d=e.i(667865),p=e.i(828918),f=e.i(446265),m=e.i(502077),x=e.i(388940),h=e.i(301252),g=e.i(956789),v=e.i(229315),b=e.i(17989),S=e.i(265858),y=e.i(260891),C=e.i(385689),E=e.i(621082);function j(e,t,n,r,l,a,s,i,o,u=2){let c=(0,E.getGridNavigatedIndex)(n.current,{event:e,orientation:r,loopFocus:l,rtl:a,cols:u,disabledIndices:s,minIndex:i,maxIndex:o,prevIndex:t>o?i:t,stopEvent:!0});return(0,E.isIndexOutOfListBounds)(n.current,c)?void 0:c}var N=e.i(584446),k=e.i(675606),R=e.i(56434);let I=a.createContext(void 0),w=a.createContext(void 0),O=a.createContext(void 0),A=a.createContext(!1),P=a.createContext("");function T(){let e=a.useContext(I);if(!e)throw Error((0,o.default)(22));return e}function M(){let e=a.useContext(w);if(!e)throw Error((0,o.default)(23));return e}function D(){let e=a.useContext(O);if(!e)throw Error((0,o.default)(24));return e}function V(){return a.useContext(P)}let L=(e,t)=>Object.is(e,t);function _(e,t,n){return null==e||null==t?Object.is(e,t):n(e,t)}function F(e,t,n){return!!e&&e.some(e=>void 0!==e&&_(t,e,n))}function B(e,t,n){return e?e.findIndex(e=>void 0!==e&&_(e,t,n)):-1}function H(e,t,n,r){let l=r&&Array.isArray(t)?e.findIndex(function(e,t){if(t!==L)return n=>F(e,n,t);let n=new Set(e);return n.delete(void 0),t=>n.has(t)&&(0!==t||e.some(e=>Object.is(t,e)))}(t,n)):B(e,t,n);return -1===l?null:l}function K(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}function z(e){var t;return"object"==typeof(t=e?.[0])&&null!=t&&Array.isArray(t.items)}function q(e){return z(e)?e.flatMap(e=>e.items):e}function W(e,t){if(t&&null!=e)return t(e)??"";if(e&&"object"==typeof e){if("label"in e&&null!=e.label)return String(e.label);if("value"in e)return String(e.value)}return K(e)}function U(e,t){return t&&null!=e?t(e)??"":e&&"object"==typeof e&&"value"in e&&"label"in e?K(e.value):K(e)}let G={id:e=>e.id,labelId:e=>e.labelId,items:e=>e.items,selectedValue:e=>e.selectedValue,hasSelectionChips:e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0},hasSelectedValue:e=>{let{selectedValue:t,selectionMode:n}=e;return null!=t&&(!("multiple"===n&&Array.isArray(t))||t.length>0)},hasNullItemLabel:(e,t)=>!!t&&function(e){if(!Array.isArray(e))return null!=e&&"null"in e;if(z(e)){for(let t of e)for(let e of t.items)if(e&&null==e.value&&null!=e.label)return!0;return!1}for(let t of e)if(t&&null==t.value&&null!=t.label)return!0;return!1}(e.items),open:e=>e.open,mounted:e=>e.mounted,forceMounted:e=>e.forceMounted,inline:e=>e.inline,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let n=e.isItemEqualToValue,r=e.selectedValue;return Array.isArray(r)?r.some(e=>_(t,e,n)):_(t,r,n)},transitionStatus:e=>e.transitionStatus,popupProps:e=>e.popupProps,listProps:e=>e.listProps,inputProps:e=>e.inputProps,triggerProps:e=>e.triggerProps,itemProps:e=>e.itemProps,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupId:e=>e.popupId,triggerElement:e=>e.triggerElement,inputElement:e=>e.inputElement,inputGroupElement:e=>e.inputGroupElement,popupSide:e=>e.popupSide,openMethod:e=>e.openMethod,inputInsidePopup:e=>e.inputInsidePopup,inputOwnsFormValue:e=>e.inputOwnsFormValue,selectionMode:e=>e.selectionMode,name:e=>e.name,form:e=>e.form,disabled:e=>e.disabled,readOnly:e=>e.readOnly,required:e=>e.required,grid:e=>e.grid,virtualized:e=>e.virtualized,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,modal:e=>e.modal,autoHighlight:e=>e.autoHighlight};var $=e.i(137584),Y=e.i(469690),J=e.i(381104),Q=e.i(884708),X=e.i(538489);function Z(e){return null==e?void 0:`${e}-popup`}let ee=new Map,et=function(e={}){let t={usage:"search",sensitivity:"base",ignorePunctuation:!0,...e},n=`${function e(t){return Array.isArray(t)?t.map(t=>e(t)).join(","):null==t?"":String(t)}(e.locale)}|${JSON.stringify(t)}`,r=ee.get(n);if(r)return r;let l=new Intl.Collator(e.locale,t),a={contains(e,t,n){if(!t)return!0;let r=W(e,n);for(let e=0;e<=r.length-t.length;e+=1)if(0===l.compare(r.slice(e,e+t.length),t))return!0;return!1},startsWith(e,t,n){if(!t)return!0;let r=W(e,n);return 0===l.compare(r.slice(0,t.length),t)},endsWith(e,t,n){if(!t)return!0;let r=W(e,n),a=t.length;return r.length>=a&&0===l.compare(r.slice(r.length-a),t)}};return ee.set(n,a),a};var en=e.i(223910),er=e.i(32199),el=e.i(606039),ea=e.i(264111),es=e.i(176782);let ei=Symbol("none"),eo={value:ei,index:-1};var eu=e.i(872855);function ec(e){let n,r,{id:l,onOpenChangeComplete:s,defaultSelectedValue:i=null,selectedValue:E,onSelectedValueChange:T,defaultInputValue:M,inputValue:D,open:V,defaultOpen:K=!1,selectionMode:Z,onItemHighlighted:ee,name:ec,form:ed,disabled:ep=!1,readOnly:ef=!1,required:em=!1,inputRef:ex,grid:eh=!1,items:eg,filteredItems:ev,filter:eb,filterQuery:eS,openOnInputClick:ey=!0,autoHighlight:eC=!1,keepHighlight:eE=!1,highlightItemOnHover:ej=!0,loopFocus:eN=!0,itemToStringLabel:ek,itemToStringValue:eR,isItemEqualToValue:eI=L,virtualized:ew=!1,inline:eO=!1,fillInputOnItemPress:eA=!0,modal:eP=!1,limit:eT=-1,autoComplete:eM="list",formAutoComplete:eD,locale:eV,submitOnItemClick:eL=!1}=e,{clearErrors:e_}=(0,Q.useFormContext)(),{setDirty:eF,validityData:eB,setFilled:eH,name:eK,disabled:ez,setTouched:eq,setFocused:eW,validationMode:eU,validation:eG}=(0,Y.useFieldRootContext)(),e$=(0,eu.useDirection)(),eY=(0,X.useLabelableId)({id:l}),eJ=et({locale:eV}),eQ=Array.isArray(eg)?null:eg;if(eQ&&"function"!=typeof eQ.label)throw Error((0,o.default)(100));let eX=eQ?eQ.data:eg,eZ=eQ?.value,e0=eZ?void 0:eX,e1=a.useMemo(()=>{let e;if(!ev||!eZ)return;let t=q(ev),n=t.map(eZ);return{values:n,findItem(r,l){if(!e){e=new Map;for(let r=0;r<n.length;r+=1)e.has(n[r])||e.set(n[r],t[r])}var a=e;let s=a.get(r);if(void 0!==s||l===L)return s;for(let[e,t]of a)if(_(e,r,l))return t}}},[ev,eZ]),e2=a.useMemo(()=>eQ?e=>eQ.label(e,eI,e=>{let t=e1?.findItem(e,eI);return null!=t?eQ.itemLabel(t):W(e,ek)}):ek,[eQ,ek,e1,eI]),e3=a.useMemo(()=>eQ?Object.assign(e=>eQ.itemLabel(e),{selected:e=>W(e,e2)}):ek,[eQ,e2,ek]);function e5(e){return W(e,e2)}let[e6,e4]=a.useState(!1),[e8,e7]=a.useState(null),e9=a.useRef(e8),te=a.useRef([]),tt=a.useRef([]),tn=a.useRef(null),tr=a.useRef(null),tl=a.useRef(null),ta=a.useRef(null),ts=a.useRef(null),ti=a.useRef(!0),to=a.useRef(!1),tu=a.useRef(null),tc=a.useRef(null),td=a.useRef(null),tp=a.useRef(eo),tf=a.useRef(null),tm=a.useRef([]),tx=a.useRef(null),th=ez||ep,tg=eK??ec,tv="multiple"===Z,tb="single"===Z,tS=void 0!==D||void 0!==M,ty=void 0!==eX,tC=void 0!==ev;n="always"===eC?"always":!!eC&&"input-change";let[tE,tj]=(0,u.useControlled)({controlled:E,default:tv?i??g.EMPTY_ARRAY:i,name:"Combobox",state:"selectedValue"}),tN=a.useMemo(()=>null===eb?()=>!0:void 0!==eb?eb:(e,t)=>null!=e&&eJ.contains(e,t,e3),[eb,eJ,e3]),tk=(0,x.useRefWithInit)(()=>tS?M??"":tb?e5(tE):"").current,[tR,tI]=(0,u.useControlled)({controlled:D,default:tk,name:"Combobox",state:"inputValue"}),[tw,tO]=(0,u.useControlled)({controlled:V,default:K,name:"Combobox",state:"open"}),tA=z(eX),tP=tw||null===e8?String(tR).trim():e8,tT=tb?e5(tE):"",tM=tb&&!e6&&""!==tP&&tT.length===tP.length&&eJ.contains(tT,tP),tD=tM?"":eS??tP,tV=ty&&tC&&tM&&(!eQ||eQ.hasValue(tE,eI)),tL=a.useMemo(()=>eX?q(eX):g.EMPTY_ARRAY,[eX]),t_=a.useMemo(()=>{if(ev&&!tV)return ev;if(!eX)return g.EMPTY_ARRAY;if(tA){let e=[],t=0;for(let n of eX){if(eT>-1&&t>=eT)break;let r=eT>-1?eT-t:1/0,l=""===tD?n.items.slice(0,r):[];if(""!==tD)for(let e of n.items){if(l.length>=r)break;tN(e,tD,e3)&&l.push(e)}if(l.length>0){let r={...n,items:l};e.push(r),t+=l.length}}return e}if(""===tD)return eT>-1?tL.slice(0,eT):tL;let e=[];for(let t of tL){if(eT>-1&&e.length>=eT)break;tN(t,tD,e3)&&e.push(t)}return e},[ev,tV,eX,tA,tD,eT,tN,e3,tL]),tF=a.useMemo(()=>{if(e1&&t_===ev)return e1.values;let e=q(t_);return eZ?e.map(e=>eZ(e)):e},[t_,ev,e1,eZ]),tB=(0,x.useRefWithInit)(()=>{let e=null;return eO&&tw&&ty&&"none"!==Z&&(e=H(tF,tE,eI,tv)),new h.ReactStore({id:eY,labelId:void 0,selectedValue:tE,open:tw,items:e0,selectionMode:Z,name:tg,form:ed,disabled:th,readOnly:ef,required:em,grid:eh,virtualized:ew,openOnInputClick:ey,itemToStringLabel:e2,isItemEqualToValue:eI,modal:eP,autoHighlight:n,submitOnItemClick:eL,hasInputValue:tS,mounted:!1,forceMounted:!1,transitionStatus:"idle",inline:eO,activeIndex:null,selectedIndex:e,popupProps:{},listProps:{},inputProps:{},triggerProps:{},itemProps:g.EMPTY_OBJECT,positionerElement:null,listElement:null,popupId:void 0,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:"none"===Z},{onOpenChangeComplete:g.NOOP,setOpen:g.NOOP,setInputValue:g.NOOP,setSelectedValue:g.NOOP,setIndices:g.NOOP,handleSelection:g.NOOP,forceMount:g.NOOP,requestSubmit:g.NOOP,listRef:te,labelsRef:tt,popupRef:tn,emptyRef:ts,inputRef:tr,startDismissRef:tl,endDismissRef:ta,keyboardActiveRef:ti,chipsContainerRef:tu,clearRef:tc,valuesRef:tm,pointerDownItemRef:tx,selectionEventRef:td},G)}).current,tH="none"===Z?tR:tE,tK=a.useMemo(()=>"none"===Z?tH:Array.isArray(tE)?tE.map(e=>U(e,eR)):U(tE,eR),[tH,eR,Z,tE]),tz=(0,d.useStableCallback)(ee),tq=(0,d.useStableCallback)(s),tW=tB.useState("activeIndex"),tU=tB.useState("selectedIndex"),tG=tB.useState("positionerElement"),t$=tB.useState("listElement"),tY=tB.useState("triggerElement"),tJ=tB.useState("inputElement"),tQ=tB.useState("inputGroupElement"),tX=tB.useState("inline"),tZ=tB.useState("inputInsidePopup"),t0=tB.useState("inputOwnsFormValue"),t1=tb&&!tZ&&tR===tT,t2=(0,f.useValueAsRef)(tY),{mounted:t3,setMounted:t5,transitionStatus:t6}=(0,en.useTransitionStatus)(tw),{openMethod:t4,triggerProps:t8}=(0,er.useOpenInteractionType)(tw),t7=(0,d.useStableCallback)(()=>tK);(0,J.useRegisterFieldControl)(tZ?t2:tr,eY,tH,t7,!th,ec);let t9=(0,d.useStableCallback)(()=>{eX?tt.current=tF.map(e5):tB.set("forceMounted",!0)}),ne=(0,d.useStableCallback)((e,t,n)=>{if(-1===t){if(tp.current===eo)return;tp.current=eo}else tp.current={value:e,index:t};tz(e,(0,k.createGenericEventDetails)(n,void 0,{index:t}))}),nt=(0,d.useStableCallback)(e=>{let t={};void 0!==e.activeIndex&&(t.activeIndex=e.activeIndex),void 0!==e.selectedIndex&&(t.selectedIndex=e.selectedIndex),tB.update(t);let n=e.activeIndex;if(void 0===n)return;let r=e.type||R.REASONS.none;null===n?ne(void 0,-1,r):ne(tm.current[n],n,r)}),nn=(0,d.useStableCallback)((t,r)=>{if(e.onInputValueChange?.(t,r),!r.isCanceled){if(to.current=r.reason===R.REASONS.inputClear,r.reason===R.REASONS.inputChange){tw&&null!==e8&&e7(null);let e=r.event,l=e.inputType;if("compositionend"===e.type||null!=l&&""!==l&&"insertReplacementText"!==l){let e=""!==t.trim();e&&e4(!0),tf.current={hasQuery:e};let r=tB.state.listElement;if(!tB.state.virtualized&&r){let e=tn.current;for(let t of(0,v.getOverflowAncestors)(r.firstElementChild??r)){if(!(0,v.isHTMLElement)(t)||(e?!(0,N.contains)(e,t):"dialog"===t.getAttribute("role")))break;if(function(e,t=!1){let{overflowY:n}=(0,v.getComputedStyle)(e);return("auto"===n||"scroll"===n)&&(t?e.clientHeight>0:e.scrollHeight>e.clientHeight)}(t)){t.scrollTop=0;break}}}e&&n&&null==tB.state.activeIndex&&(tw||tX)&&tB.set("activeIndex",0)}}else r.reason===R.REASONS.inputClear&&""===t&&tB.state.inputInsidePopup&&(tf.current={hasQuery:!1,selection:!0});tI(t)}}),nr=(0,d.useStableCallback)(e=>{let t=!e&&tZ&&!tX&&""!==tR&&(String(tR).trim()===e8||tR===tT);!e&&(t||""===tR||t1)&&e4(!1),e7(null),t&&nn("",(0,k.createChangeEventDetails)(R.REASONS.inputClear))}),nl=(0,d.useStableCallback)((t,n)=>{if(tw!==t&&(n.reason===R.REASONS.escapeKey&&ty&&0===tF.length&&!ts.current&&n.allowPropagation(),e.onOpenChange?.(t,n),!n.isCanceled&&(t&&null!==e8&&nr(n.reason===R.REASONS.inputChange),!t&&e6&&(tb?(tX||e7(tP),""===tP&&e4(!1)):tv&&(tX||e7(tP),tZ&&nt({activeIndex:null}),(!tZ||tX)&&nn("",(0,k.createChangeEventDetails)(R.REASONS.inputClear,n.event,void 0,{isItemPress:n.reason===R.REASONS.itemPress})))),tO(t),!t&&tZ&&(n.reason===R.REASONS.focusOut||n.reason===R.REASONS.outsidePress))&&(eq(!0),eW(!1),"onBlur"===eU))){let e="none"===Z?tR:tE;eG.commit(e)}}),na=(0,d.useStableCallback)((e,t)=>{T?.(e,t),t.isCanceled||(tj(e),("none"===Z&&tn.current&&eA||tb&&!tB.state.inputInsidePopup)&&nn(e5(e),(0,k.createChangeEventDetails)(t.reason,t.event)))}),ns=(0,d.useStableCallback)((e,t)=>{let n=(0,N.getTarget)(e),r=td.current??e;td.current=null;let l=(0,k.createChangeEventDetails)(R.REASONS.itemPress,r),a=n?.closest("a")?.getAttribute("href");if(a){a.startsWith("#")&&nl(!1,l);return}if(tv){let e=Array.isArray(tE)?tE:[],n=F(e,t,eI);if(na(n?e.filter(e=>!_(t,e,eI)):[...e,t],l),l.isCanceled||!(tr.current&&""!==tr.current.value.trim()))return;if(tB.state.inputInsidePopup){nn("",(0,k.createChangeEventDetails)(R.REASONS.inputClear,l.event,void 0,{isItemPress:!0}));let e=tf.current;e&&!n&&(e.toggledValue=t)}else nl(!1,l)}else{if(na(t,l),l.isCanceled)return;nl(!1,l)}}),ni=(0,d.useStableCallback)(()=>{let e=eG.inputRef.current?.form??tB.state.inputElement?.form;e&&"function"==typeof e.requestSubmit&&e.requestSubmit()}),no=(0,d.useStableCallback)(()=>{if(t5(!1),tq?.(!1),e4(!1),e7(null),"none"===Z?nt({activeIndex:null,selectedIndex:null}):nt({activeIndex:null}),tv&&tr.current&&""!==tr.current.value&&!to.current&&nn("",(0,k.createChangeEventDetails)(R.REASONS.inputClear)),tb)if(tB.state.inputInsidePopup)tr.current&&""!==tr.current.value&&nn("",(0,k.createChangeEventDetails)(R.REASONS.inputClear));else{let e=e5(tE);if(tr.current&&tr.current.value!==e){let t=""===e?R.REASONS.inputClear:R.REASONS.none;nn(e,(0,k.createChangeEventDetails)(t))}}}),nu=a.useMemo(()=>tX&&tG?{current:tG.closest('[role="dialog"]')}:tn,[tX,tG]);(0,$.useOpenChangeComplete)({enabled:!e.actionsRef,open:tw,ref:nu,onComplete(){tw||no()}}),a.useImperativeHandle(e.actionsRef,()=>({unmount:no}),[no]),(0,c.useIsoLayoutEffect)(function(){let e=null!==e9.current&&null===e8;e9.current=e8,(!tw||e&&ty)&&(tw||(tx.current=null),"none"===Z||nt({selectedIndex:H(ty?tF:tm.current,tE,eI,tv)}))},[tw,e8,tE,Z,tv,ty,tF,eI,nt]),(0,c.useIsoLayoutEffect)(()=>{eX&&(tm.current=tF,te.current.length=tF.length)},[eX,tF]),(0,c.useIsoLayoutEffect)(()=>{let e=tf.current;if(e){let t=tw||tX||tB.state.positionerElement?.hidden===!1;if(e.hasQuery)n&&t&&tB.set("activeIndex",0),tf.current=null;else if(""===String(tR).trim()&&(tf.current=null,t)){let t=e.selection;"always"!==n||t||"none"!==tB.state.selectionMode||tB.set("activeIndex",0),queueMicrotask(()=>{if(!tB.state.open&&!tB.state.inline||tr.current&&""!==tr.current.value.trim())return;let r=tB.state.selectedValue,l="multiple"===tB.state.selectionMode;if(l&&Array.isArray(r)?r.length>0:"none"!==tB.state.selectionMode&&null!=r){let t=ty||tC?tF:tm.current,n=B(t,e.toggledValue,tB.state.isItemEqualToValue);tB.set("activeIndex",-1!==n?n:H(t,r,tB.state.isItemEqualToValue,l))}else t?tB.set("activeIndex",null):"always"===n&&tB.set("activeIndex",0)})}}if(!tw&&!tX)return;let t=ty||tC?tF:tm.current,r=tB.state.activeIndex;if(null==r)return"always"===n&&t.length>0?void tB.set("activeIndex",0):void ne(void 0,-1,R.REASONS.none);if(r>=t.length){ne(void 0,-1,R.REASONS.none),tB.set("activeIndex",null);return}let l=t[r],a=tp.current.value,s=a!==ei&&_(l,a,tB.state.isItemEqualToValue);tp.current.index===r&&s||ne(l,r,R.REASONS.none)},[tW,n,ne,tC,ty,tF,tX,tw,tB,tR]),(0,c.useIsoLayoutEffect)(()=>{"none"===Z?eH(""!==String(tR)):eH(tv?Array.isArray(tE)&&tE.length>0:null!=tE)},[eH,Z,tR,tE,tv]),a.useEffect(()=>{ty&&n&&0===tF.length&&nt({activeIndex:null})},[ty,n,tF.length,nt]);let nc=!1;function nd(){nc||tR===tT||(nc=!0,nn(tT,(0,k.createChangeEventDetails)(R.REASONS.none)))}function np(){!tb||tS||tZ||e6||nd()}(0,el.useValueChanged)(tP,function(){tw&&""!==tP&&tP!==String(tk)&&!t1&&e4(!0)}),(0,el.useValueChanged)(tw,function(){tw&&null!==e8&&nr(!1)}),(0,el.useValueChanged)(tE,function(){if("none"!==Z){var e;e_(tg),eF((e=eB.initialValue,Array.isArray(tE)&&Array.isArray(e)?!function(e,t,n=Object.is){let{length:r}=e;if(r!==t.length)return!1;for(let l=0;l<r;l+=1)if(!n(e[l],t[l]))return!1;return!0}(tE,e,(e,t)=>_(e,t,eI)):tE!==e)),eG.change(tE),!tb||tS||tZ||nd()}}),(0,el.useValueChanged)(tT,np),(0,el.useValueChanged)(eX,np),(0,el.useValueChanged)(tR,function(){"none"===Z&&(e_(tg),eF(tR!==eB.initialValue),eG.change(tR))});let nf=(0,S.useFloatingRootContext)({open:!!tX||tw,onOpenChange:nl,elements:{reference:tZ?tY:tJ,floating:tG}}),nm=eh?"grid":"listbox",nx=tw||tX,nh=nx?"true":"false",ng=a.useMemo(()=>{let e=tJ?.tagName==="INPUT",t=null==tJ||e,n=t||nx,r=t?{autoComplete:"off",spellCheck:"false",autoCorrect:"off",autoCapitalize:"none"}:{};return n&&(r.role="combobox",r["aria-expanded"]=nh,r["aria-haspopup"]=nm,r["aria-controls"]=nx?t$?.id:void 0,r["aria-autocomplete"]=ef?"none":eM),{reference:r,floating:{role:"presentation"}}},[tJ,nx,nh,nm,t$?.id,eM,ef]),nv=(0,C.useClick)(nf,{enabled:!th&&ey,event:"mousedown-only",toggle:!1,touchOpenDelay:100*!tZ,reason:R.REASONS.inputPress}),nb=(0,b.useDismiss)(nf,{enabled:!th&&!tX,outsidePressEvent:{mouse:"sloppy",touch:"intentional"},bubbles:!!tX||void 0,outsidePress(e){let t=(0,N.getTarget)(e);return!(0,N.contains)(tY,t)&&!(0,N.contains)(tc.current,t)&&!(0,N.contains)(tu.current,t)&&!(0,N.contains)(tQ,t)}}),nS=(0,y.useListNavigation)(nf,{enabled:!th,id:eY,listRef:te,activeIndex:tW,selectedIndex:tU,virtual:!0,loopFocus:eN,allowEscape:eN&&!n,focusItemOnOpen:!e6&&("none"!==Z||!!n)&&"auto",focusItemOnHover:ej,resetOnPointerLeave:!eE,orientation:eh?"horizontal":void 0,rtl:"rtl"===e$,disabledIndices:g.EMPTY_ARRAY,grid:eh?j:void 0,onNavigate(e,t){(t||tw)&&"ending"!==t6&&(t?nt({activeIndex:e,type:ti.current?R.REASONS.keyboard:R.REASONS.pointer}):nt({activeIndex:e}))}}),ny=a.useMemo(()=>(0,es.mergeProps)(nS.reference,{onKeyDown(e){eh&&null==tB.state.activeIndex&&("ArrowLeft"===e.key||"ArrowRight"===e.key)&&e.preventBaseUIHandler()}},nb.reference,nv.reference,ng.reference),[nS.reference,nb.reference,nv.reference,ng.reference,eh,tB]),nC=a.useMemo(()=>(0,es.mergeProps)(ea.FOCUSABLE_POPUP_PROPS,nb.floating),[nb.floating]),nE=a.useMemo(()=>(0,es.mergeProps)(nS.floating,ng.floating),[nS.floating,ng.floating]),nj=a.useMemo(()=>{let e=nS.item;return e?{...e,onFocus:void 0}:g.EMPTY_OBJECT},[nS.item]);tB.useContextCallback("setOpen",nl),tB.useContextCallback("setInputValue",nn),tB.useContextCallback("setSelectedValue",na),tB.useContextCallback("setIndices",nt),tB.useContextCallback("handleSelection",ns),tB.useContextCallback("forceMount",t9),tB.useContextCallback("requestSubmit",ni),tB.useContextCallback("onOpenChangeComplete",s),(r=a.useRef(!0)).current&&(r.current=!1,(()=>{tB.update({inline:eO,popupProps:nC,listProps:nE,inputProps:ny,triggerProps:t8,itemProps:nj})})());let nN={id:eY,selectedValue:tE,open:tw,mounted:t3,transitionStatus:t6,items:e0,inline:eO,popupProps:nC,listProps:nE,inputProps:ny,triggerProps:t8,itemProps:nj,openMethod:t4,selectionMode:Z,name:tg,form:ed,disabled:th,readOnly:ef,required:em,grid:eh,virtualized:ew,openOnInputClick:ey,itemToStringLabel:e2,modal:eP,autoHighlight:n,isItemEqualToValue:eI,submitOnItemClick:eL,hasInputValue:tS};(0,c.useIsoLayoutEffect)(()=>{tB.update({...nN,inputOwnsFormValue:"none"===Z&&(eO||!tB.state.inputInsidePopup)})},[tB,...Object.values(nN)]);let nk=(0,p.useMergedRefs)(ex,eG.inputRef),nR=a.useMemo(()=>({query:tP,hasItems:ty,filteredItems:t_,flatFilteredValues:tF}),[tP,ty,t_,tF]),nI=a.useMemo(()=>Array.isArray(tH)?"":U(tH,eR),[tH,eR]),nw=tv&&Array.isArray(tE)&&tE.length>0,nO=tv||"none"===Z&&t0?void 0:tg,nA=a.useMemo(()=>tv&&Array.isArray(tE)&&tg?tE.map(e=>{let n=U(e,eR);return(0,t.jsx)("input",{type:"hidden",form:ed,name:tg,value:n,disabled:th},n)}):null,[tv,tE,ed,tg,eR,th]),nP=(0,t.jsxs)(a.Fragment,{children:[e.children,(0,t.jsx)("input",{...eG.getValidationProps(th,{onFocus(){tZ?tY?.focus():(tr.current||tY)?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented||th||ef)return;let t=e.currentTarget.value,n=t.toLowerCase(),r=(0,k.createChangeEventDetails)(R.REASONS.none,e.nativeEvent),l=()=>tm.current.findIndex(e=>U(e,eR).toLowerCase()===n||e5(e).toLowerCase()===n);tb&&(t9(),eX&&-1===l()&&tB.set("forceMounted",!0)),queueMicrotask(function(){if(tv)return;if("none"===Z)return void nn(t,r);let e=l();-1===e&&(e=tm.current.findIndex((e,t)=>{let r=tt.current[t];return null!=r&&r.toLowerCase()===n}));let a=-1===e?void 0:tm.current[e];null!=a&&na?.(a,r)})}}),id:eY&&null==nO?`${eY}-hidden-input`:void 0,form:ed,name:nO,autoComplete:eD,disabled:th,required:em&&!nw,readOnly:ef,value:nI,ref:nk,style:nO?m.visuallyHiddenInput:m.visuallyHidden,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),nA]});return(0,t.jsx)(I.Provider,{value:tB,children:(0,t.jsx)(w.Provider,{value:nf,children:(0,t.jsx)(A.Provider,{value:ty,children:(0,t.jsx)(O.Provider,{value:nR,children:(0,t.jsx)(P.Provider,{value:tR,children:nP})})})})})}var ed=e.i(439957),ep=e.i(108868),ef=e.i(552245),em=e.i(540886),ex=e.i(879938),eh=e.i(875812),eg=e.i(145147);eg.CommonTriggerDataAttributes.popupOpen,eg.CommonTriggerDataAttributes.pressed;let ev={...ex.pressableTriggerOpenStateMapping,...eh.fieldValidityMapping,popupSide:e=>e?{"data-popup-side":e}:null,listEmpty:e=>e?{"data-list-empty":""}:null};var eb=e.i(247778),eS=e.i(157940),ey=e.i(264042),eC=e.i(736760);function eE(e){let t=e.useState("mounted"),n=e.useState("popupSide"),r=e.useState("positionerElement");return t&&r?n:null}function ej(){return 0===D().filteredItems.length}function eN(e,t,n){let r=e.context.listRef.current[t];r&&(e.context.selectionEventRef.current=n,r.click(),e.context.selectionEventRef.current=null)}let ek=a.forwardRef(function(e,t){let n,{render:r,className:l,nativeButton:s=!0,disabled:i=!1,id:o,style:u,...c}=e,{state:p,disabled:f,setTouched:m,setFocused:x,validationMode:h,validation:g}=(0,Y.useFieldRootContext)(),{labelId:v}=(0,eb.useLabelableContext)(),b=T(),S=b.useState("selectionMode"),y=b.useState("disabled"),E=b.useState("readOnly"),j=b.useState("required"),I=b.useState("positionerElement"),w=b.useState("listElement"),O=b.useState("popupId"),A=b.useState("triggerProps"),P=b.useState("inputInsidePopup"),D=b.useState("id"),L=b.useState("labelId"),_=b.useState("open"),F=b.useState("selectedValue"),B=b.useState("activeIndex"),H=b.useState("selectedIndex"),K=b.useState("hasSelectedValue"),z=M(),q=V(),W=(0,ed.useTimeout)(),U=f||y||i,G=ej(),$=eE(b);(0,X.useLabelableId)({id:P?o:void 0});let J=P?o??D:o;_&&P?n=O??Z(D):_&&(n=w?.id);let Q=a.useRef("");function ee(e){Q.current=e.pointerType}let{reference:et}=(0,eC.useTypeahead)(z,{enabled:!_&&!E&&!y&&"single"===S,listRef:b.context.labelsRef,activeIndex:B,selectedIndex:H,onMatch(e){let t=b.context.valuesRef.current[e];void 0!==t&&b.context.setSelectedValue(t,(0,k.createChangeEventDetails)(R.REASONS.none))}}),{reference:en}=(0,C.useClick)(z,{enabled:!y,event:"mousedown"}),{buttonRef:er,getButtonProps:el}=(0,em.useButton)({native:s,disabled:U}),ea={...p,readOnly:E,open:_,disabled:U,popupSide:$,listEmpty:G,placeholder:"none"!==S&&!K},es=(0,d.useStableCallback)(e=>{b.set("triggerElement",e)});return(0,ef.useRenderElement)("button",e,{ref:[t,er,es],state:ea,props:[A,en,et,{id:J,tabIndex:P?0:-1,role:P?"combobox":void 0,"aria-expanded":_,"aria-haspopup":P?"dialog":"listbox","aria-controls":n,"aria-required":P&&j||void 0,"aria-readonly":P&&E||void 0,"aria-labelledby":v??L,onPointerDown:ee,onPointerEnter:ee,onFocus(){x(!0),U||W.start(0,b.context.forceMount)},onBlur(e){(0,N.contains)(I,e.relatedTarget)||(m(!0),x(!1),"onBlur"===h&&g.commit("none"===S?q:F))},onMouseDown(e){if(U||(P||z.set("domReferenceElement",e.currentTarget),b.context.forceMount(),"touch"!==Q.current&&(b.context.inputRef.current?.focus(),P||e.preventDefault()),_))return;let t=(0,ep.ownerDocument)(e.currentTarget);P&&t.addEventListener("mouseup",function(e){let t=b.state.triggerElement;if(!t)return;let n=(0,N.getTarget)(e),r=b.state.positionerElement,l=b.state.listElement;(0,N.contains)(t,n)||(0,N.contains)(r,n)||(0,N.contains)(l,n)||(0,ey.isMouseWithinBounds)(e,t)||b.context.setOpen(!1,(0,k.createChangeEventDetails)(R.REASONS.cancelOpen,e))},{once:!0})},onKeyDown(e){("ArrowDown"===e.key||"ArrowUp"===e.key)&&((0,eS.stopEvent)(e),b.context.setOpen(!0,(0,k.createChangeEventDetails)(R.REASONS.listNavigation,e.nativeEvent)),b.context.inputRef.current?.focus())}},g.getValidationProps(U,c),el],stateAttributesMapping:ev})});var eR=e.i(328744),eI=e.i(788015);let ew=a.createContext(void 0),eO=a.createContext(void 0);function eA(e){let t=a.useContext(eO);if(void 0===t&&!e)throw Error((0,o.default)(21));return t}let eP=a.forwardRef(function(e,n){let r=T(),{buttonRef:l,getButtonProps:a}=(0,em.useButton)({native:!1}),s=(0,p.useMergedRefs)(n,l),i=a({onClick:function(e){r.context.setOpen(!1,(0,k.createChangeEventDetails)(R.REASONS.closePress,e.nativeEvent,e.currentTarget))}});return(0,t.jsx)("span",{ref:s,...i,"aria-label":"Dismiss",tabIndex:void 0,style:m.visuallyHiddenInput})}),eT=a.forwardRef(function(e,n){let{render:r,className:l,disabled:s=!1,id:i,style:o,...u}=e,{state:c,disabled:p,setTouched:f,setFocused:m,validationMode:x,validation:h}=(0,Y.useFieldRootContext)(),{labelId:g}=(0,eb.useLabelableContext)(),v=a.useContext(ew),b=!!eA(!0),S=T(),y=V(),C=(0,eu.useDirection)(),E=S.useState("required"),j=S.useState("disabled"),N=S.useState("readOnly"),I=S.useState("name"),w=S.useState("form"),O=S.useState("selectionMode"),A=S.useState("autoHighlight"),P=S.useState("inputProps"),M=S.useState("triggerProps"),D=S.useState("open"),L=S.useState("mounted"),_=S.useState("selectedValue"),F=S.useState("id"),B=S.useState("inline"),H=S.useState("modal"),K=!!A,z=eE(S),q=p||j||s,W=ej(),U=b||B,G=(0,eI.useBaseUiId)(i??(U?void 0:F)),$=b?eh.DEFAULT_FIELD_STATE_ATTRIBUTES:c,[J,Q]=a.useState(null),X=a.useRef(!1),Z=a.useRef(null),ee=a.useRef(!1),et="none"===O&&!b,en=(0,d.useStableCallback)(e=>{let t=b||S.state.inline;t&&!S.state.hasInputValue&&S.context.setInputValue("",(0,k.createChangeEventDetails)(R.REASONS.none)),S.update({inputElement:e,inputInsidePopup:t,inputOwnsFormValue:et})}),er=b?u:h.getValidationProps(q,u);function el(){S.context.setIndices({activeIndex:null,selectedIndex:null,type:S.context.keyboardActiveRef.current?R.REASONS.keyboard:R.REASONS.pointer})}function ea(){S.context.keyboardActiveRef.current=!1}let es={...$,open:D,disabled:q,readOnly:N,popupSide:z,listEmpty:W},ei=(0,ef.useRenderElement)("input",e,{state:es,ref:[n,S.context.inputRef,en],props:[P,M,{value:J??y,"aria-readonly":N||void 0,"aria-required":E||void 0,"aria-labelledby":g,disabled:q,readOnly:N,required:"none"===O?E:void 0,form:w,...et&&I&&{name:I},id:G,onFocus(){if(m(!0),!B||!ee.current)return;ee.current=!1;let e=Z.current;null!=e&&Object.hasOwn(S.context.valuesRef.current,e)&&S.context.setIndices({activeIndex:e})},onBlur(){f(!0),m(!1);let e=S.state.activeIndex;if(B&&null!==e&&"always"!==A&&(Z.current=e,ee.current=!0,S.context.setIndices({activeIndex:null})),"onBlur"===x){let e="none"===O?y:_;h.commit(e)}},onCompositionStart(e){eR.platform.os.android||(X.current=!0,Q(e.currentTarget.value))},onCompositionEnd(e){X.current=!1;let t=e.currentTarget.value;Q(null),S.context.setInputValue(t,(0,k.createChangeEventDetails)(R.REASONS.inputChange,e.nativeEvent))},onChange(e){let t=e.nativeEvent,n=t.inputType,r=X.current||!(!n||"insertReplacementText"===n);function l(e){!N&&!q&&e&&r&&(S.context.setOpen(!0,(0,k.createChangeEventDetails)(R.REASONS.inputChange,t)),K||el())}if(X.current){let n=e.currentTarget.value;Q(n),""!==n||S.state.openOnInputClick||S.state.inputInsidePopup||S.context.setOpen(!1,(0,k.createChangeEventDetails)(R.REASONS.inputClear,t));let r=n.trim(),a=K&&""!==r;l(r),D&&null!==S.state.activeIndex&&!a&&el();return}let a=(0,k.createChangeEventDetails)(R.REASONS.inputChange,t);if(S.context.setInputValue(e.currentTarget.value,a),a.isCanceled)return;let s=""===e.currentTarget.value,i=(0,k.createChangeEventDetails)(R.REASONS.inputClear,t);s&&!S.state.inputInsidePopup&&("single"===O&&S.context.setSelectedValue(null,i),S.state.openOnInputClick||S.context.setOpen(!1,i)),l(e.currentTarget.value.trim()),D&&null!==S.state.activeIndex&&!K&&el()},onKeyDown(e){if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;if(S.context.keyboardActiveRef.current=!0,q||N){N&&"Enter"===e.key&&D&&null!==S.state.activeIndex&&(0,eS.stopEvent)(e);return}let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,r="rtl"===C;if("Home"===e.key){(0,eS.stopEvent)(e);let n=eR.platform.engine.gecko&&r?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if("End"===e.key){(0,eS.stopEvent)(e);let l=eR.platform.engine.gecko&&r?0:t.value.length;t.setSelectionRange(l,l),t.scrollLeft=r?-n:n;return}if(!L&&"Escape"===e.key){let t="multiple"===O&&Array.isArray(_)?0===_.length:null===_,n=(0,k.createChangeEventDetails)(R.REASONS.escapeKey,e.nativeEvent);S.context.setInputValue("",n),S.context.setSelectedValue("multiple"===O?[]:null,n),t||S.state.inline||n.isPropagationAllowed||e.stopPropagation();return}if(v&&"Backspace"===e.key&&""===t.value&&void 0===v.highlightedChipIndex&&Array.isArray(_)&&_.length>0){let t=v.chipsRef.current.length,n=t>0?t-1:_.length-1,r=_.filter((e,t)=>t!==n);el(),S.context.setSelectedValue(r,(0,k.createChangeEventDetails)(R.REASONS.none,e.nativeEvent));return}let l=v?.highlightedChipIndex!==void 0,a=function(e){let t;if(!v)return;let{highlightedChipIndex:n}=v,r=v.chipsRef.current.length,[l,a]="rtl"===C?["ArrowRight","ArrowLeft"]:["ArrowLeft","ArrowRight"];if(void 0!==n){if(e.key===l)e.preventDefault(),t=n>0?n-1:void 0;else if(e.key===a)e.preventDefault(),t=n<r-1?n+1:void 0;else if("Backspace"===e.key||"Delete"===e.key){var s;let r;e.preventDefault(),t=(r=n>=(s=_.length)-1?s-2:n)>=0?r:void 0,el()}return t}return e.key===l&&(e.currentTarget.selectionStart??0)===0&&_.length>0&&(e.preventDefault(),t=r>0?r-1:void 0),t}(e);if(v?.setHighlightedChipIndex(a),void 0!==a?v?.chipsRef.current[a]?.focus():l&&S.context.inputRef.current?.focus(),229!==e.which&&"Enter"===e.key&&D){let t=S.state.activeIndex,n=e.nativeEvent;if(null===t){if(B)return;S.context.setOpen(!1,(0,k.createChangeEventDetails)(R.REASONS.none,n));return}(0,eS.stopEvent)(e),eN(S,t,n)}},onPointerMove:ea,onPointerDown:ea},er],stateAttributesMapping:ev}),eo=b?(0,t.jsx)(Y.FieldRootContext.Provider,{value:Y.DEFAULT_FIELD_ROOT_CONTEXT,children:ei}):ei;return(0,t.jsxs)(a.Fragment,{children:[D&&(!U||H)&&(0,t.jsx)(eP,{ref:S.context.startDismissRef}),eo]})});var eM=e.i(596296);let eD=a.forwardRef(function(e,t){let{render:n,className:r,style:l,...a}=e,{state:s}=(0,Y.useFieldRootContext)(),i=T(),o=i.useState("open"),u=i.useState("disabled"),c=i.useState("readOnly"),p=i.useState("hasSelectedValue"),f=i.useState("selectionMode"),m=eE(i),x=ej(),h={...s,open:o,disabled:u,readOnly:c,popupSide:m,listEmpty:x,placeholder:"none"!==f&&!p},g=(0,d.useStableCallback)(e=>{i.set("inputGroupElement",e)});return(0,ef.useRenderElement)("div",e,{ref:[t,g],props:[{role:"group",onMouseDown(e){!function(e,t,n,r){if(e.baseUIHandlerPrevented)return;let l=(0,N.getTarget)(e.nativeEvent),a=(0,v.isElement)(l)?l:null;a!==e.currentTarget&&(r?.(a)||(0,eM.isInteractiveElement)(a))||(e.preventDefault(),!n&&(t.context.inputRef.current?.focus(),t.state.openOnInputClick&&t.context.setOpen(!0,(0,k.createChangeEventDetails)(R.REASONS.inputPress,e.nativeEvent))))}(e,i,u,e=>(0,N.contains)(i.context.chipsContainerRef.current,e))}},a],state:h,stateAttributesMapping:ev})}),eV=a.forwardRef(function(e,t){let{render:n,className:r,style:l,...a}=e;return(0,ef.useRenderElement)("span",e,{ref:t,props:[{"aria-hidden":!0,children:"▼"},a]})});var eL=e.i(474354);let e_={...eL.transitionStatusMapping,...ex.triggerOpenStateMapping},eF=a.forwardRef(function(e,t){let{render:n,className:r,disabled:l=!1,nativeButton:a=!0,keepMounted:s=!1,style:i,...o}=e,{disabled:u}=(0,Y.useFieldRootContext)(),c=T(),d=c.useState("selectionMode"),p=c.useState("disabled"),f=c.useState("readOnly"),m=c.useState("open"),x=c.useState("selectedValue"),h=c.useState("hasSelectionChips"),g=V(),v=!1;v="none"===d?""!==g:"single"===d?null!=x:h;let b=u||p||l,{buttonRef:S,getButtonProps:y}=(0,em.useButton)({native:a,disabled:b}),{mounted:C,transitionStatus:E,setMounted:j}=(0,en.useTransitionStatus)(v),N={disabled:b,visible:v,open:m,transitionStatus:E};(0,$.useOpenChangeComplete)({open:v,ref:c.context.clearRef,onComplete(){v||j(!1)}});let I=(0,ef.useRenderElement)("button",e,{state:N,ref:[t,S,c.context.clearRef],props:[{tabIndex:-1,children:"x",onMouseDown(e){e.preventDefault()},onClick(e){if(b||f)return;let t=c.context.keyboardActiveRef.current?R.REASONS.keyboard:R.REASONS.pointer;c.context.setInputValue("",(0,k.createChangeEventDetails)(R.REASONS.clearPress,e.nativeEvent)),"none"!==d?(c.context.setSelectedValue(Array.isArray(x)?[]:null,(0,k.createChangeEventDetails)(R.REASONS.clearPress,e.nativeEvent)),c.context.setIndices({activeIndex:null,selectedIndex:null,type:t})):c.context.setIndices({activeIndex:null,type:t}),c.context.inputRef.current?.focus()}},o,y],stateAttributesMapping:e_});return s||C?I:null}),eB=a.createContext(null);function eH(e){let{children:n,items:r}=e,l=a.useMemo(()=>({items:r}),[r]);return(0,t.jsx)(eB.Provider,{value:l,children:n})}function eK(e){let{children:n}=e,{filteredItems:r}=D(),l=a.useContext(eB),s=l?l.items:r;return(0,t.jsx)(a.Fragment,{children:s.map(n)})}var ez=e.i(53687);let eq=a.forwardRef(function(e,n){var r;let{render:l,className:s,style:i,children:o,...u}=e,c=T(),p=M(),f=!!eA(!0),{filteredItems:m,hasItems:x}=D(),h=c.useState("selectionMode"),g=c.useState("grid"),v=c.useState("readOnly"),b=c.useState("listProps"),S=c.useState("virtualized"),y=c.useState("forceMounted"),C=0===m.length,E=(0,d.useStableCallback)(e=>{c.set("positionerElement",e)}),j=(0,d.useStableCallback)(e=>{c.set("listElement",e)}),N=a.useMemo(()=>"function"==typeof o?r||(r=(0,t.jsx)(eK,{children:o})):o,[o]),k=p.useState("floatingId"),R=(0,ef.useRenderElement)("div",e,{state:{empty:C},ref:[n,j,f?null:E],props:[b,{children:N,tabIndex:-1,id:k,role:g?"grid":"listbox","aria-multiselectable":"multiple"===h?"true":void 0,"aria-readonly":!g&&!!v||void 0,onKeyDown(e){if(!c.state.disabled&&!c.state.readOnly&&"Enter"===e.key){let t=c.state.activeIndex;null!=t&&((0,eS.stopEvent)(e),eN(c,t,e.nativeEvent))}},onKeyDownCapture(){c.context.keyboardActiveRef.current=!0},onPointerMoveCapture(){c.context.keyboardActiveRef.current=!1}},u]});if(S)return R;let I=x&&!y?void 0:c.context.labelsRef;return(0,t.jsx)(ez.CompositeList,{elementsRef:c.context.listRef,labelsRef:I,children:R})});function eW(){let e=(0,ed.useTimeout)(),t=a.useRef(null);return a.useEffect(()=>{if(eR.platform.os.ios)return;let n=t.current;if(null==n)return;let r=function(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=null;for(;t.nextNode();){let e=t.currentNode;""!==e.nodeValue&&(n=e)}return n}(n);if(null==r)return;let l=r.data,a=`${l}\u2060`;return r.nodeValue=a,e.start(200,()=>{r.nodeValue===a&&(r.nodeValue=l)}),()=>{e.clear(),r.nodeValue===a&&(r.nodeValue=l)}},[t,e]),t}let eU=a.forwardRef(function(e,t){let{render:n,className:r,style:l,children:a,...s}=e,i=eW();return(0,ef.useRenderElement)("div",e,{ref:[t,i],props:[{children:a,role:"status","aria-live":"polite","aria-atomic":!0},s]})});var eG=e.i(726674);let e$=a.createContext(void 0),eY=a.forwardRef(function(e,n){let{keepMounted:r=!1,...l}=e,a=T(),s=a.useState("mounted"),i=a.useState("forceMounted");return s||r||i?(0,t.jsx)(e$.Provider,{value:r,children:(0,t.jsx)(eG.FloatingPortal,{ref:n,...l})}):null}),eJ={...ex.popupStateMapping,...eL.transitionStatusMapping},eQ=a.forwardRef(function(e,t){let{render:n,className:r,style:l,...a}=e,s=T(),i=s.useState("open"),o=s.useState("mounted"),u=s.useState("transitionStatus");return(0,ef.useRenderElement)("div",e,{state:{open:i,transitionStatus:u},ref:t,stateAttributesMapping:eJ,props:[{role:"presentation",hidden:!o,style:{userSelect:"none",WebkitUserSelect:"none"}},a]})});var eX=e.i(144394),eZ=e.i(923706),e0=e.i(638396),e1=e.i(426),e2=e.i(789579),e3=e.i(33383);let e5=a.forwardRef(function(e,n){let{render:r,className:l,anchor:s,positionMethod:i,side:u,align:p,sideOffset:f,alignOffset:m,collisionBoundary:x="clipping-ancestors",collisionPadding:h,arrowPadding:g,sticky:v,disableAnchorTracking:b=!1,collisionAvoidance:S=e0.DROPDOWN_COLLISION_AVOIDANCE,style:y,...C}=e,E=T(),j=M(),N=function(){let e=a.useContext(e$);if(void 0===e)throw Error((0,o.default)(20));return e}(),k=E.useState("modal"),R=E.useState("open"),I=E.useState("mounted"),w=E.useState("openMethod"),O=E.useState("positionerElement"),A=E.useState("triggerElement"),P=E.useState("inputElement"),D=E.useState("inputGroupElement"),V=E.useState("inputInsidePopup"),L=E.useState("transitionStatus"),_=ej(),F=(0,eZ.useAnchorPositioning)({anchor:s??(V?A:D??P),floatingRootContext:j,positionMethod:i,mounted:I,side:u,sideOffset:f,align:p,alignOffset:m,arrowPadding:g,collisionBoundary:x,collisionPadding:h,sticky:v,disableAnchorTracking:b,keepMounted:N,collisionAvoidance:S,lazyFlip:!0});(0,e3.useAnchoredPopupScrollLock)(R&&k,"touch"===w,O,A);let B={open:R,side:F.side,align:F.align,anchorHidden:F.anchorHidden,empty:_};(0,c.useIsoLayoutEffect)(()=>{E.set("popupSide",F.side)},[E,F.side]);let H=(0,d.useStableCallback)(e=>{E.set("positionerElement",e)}),K=(0,e2.usePositioner)(e,B,{styles:F.positionerStyles,transitionStatus:L,props:C,refs:[n,H],hidden:!I,inert:!R});return(0,t.jsxs)(eO.Provider,{value:F,children:[I&&k&&(0,t.jsx)(e1.InternalBackdrop,{inert:(0,eX.inertValue)(!R),cutout:D??P??A}),K]})});var e6=e.i(61487),e4=e.i(253984);let e8={...ex.popupStateMapping,...eL.transitionStatusMapping},e7=a.forwardRef(function(e,n){let{render:r,className:l,style:s,initialFocus:i,finalFocus:o,...u}=e,d=T(),p=eA(),f=M(),m=d.useState("mounted"),x=d.useState("open"),h=d.useState("openMethod"),g=d.useState("popupProps"),v=d.useState("transitionStatus"),b=d.useState("inputInsidePopup"),S=d.useState("inputElement"),y=d.useState("modal"),C=d.useState("id"),E=ej(),j=u.id??(b?Z(C):void 0);(0,c.useIsoLayoutEffect)(()=>(d.set("popupId",d.context.popupRef.current?.id||j),()=>{d.set("popupId",void 0)}),[d,j]),(0,$.useOpenChangeComplete)({open:x,ref:d.context.popupRef,onComplete(){x&&d.context.onOpenChangeComplete(!0)}});let k={open:x,side:p.side,align:p.align,anchorHidden:p.anchorHidden,transitionStatus:v,empty:E},R=(0,ef.useRenderElement)("div",e,{state:k,ref:[n,d.context.popupRef],props:[g,{id:j,role:b?"dialog":"presentation",onFocus(e){let t=(0,N.getTarget)(e.nativeEvent);"touch"!==h&&((0,N.contains)(d.state.listElement,t)||t===e.currentTarget)&&d.context.inputRef.current?.focus()}},(0,e4.getDisabledMountTransitionStyles)(v),u],stateAttributesMapping:e8}),I=!!b&&(e=>"touch"===e?d.context.popupRef.current:S),w=!b||y;return(0,t.jsx)(e6.FloatingFocusManager,{context:f,disabled:!m,modal:w,openInteractionType:h,initialFocus:void 0===i?I:i,returnFocus:null!=o?o:!!b&&void 0,getInsideElements:()=>[d.context.startDismissRef.current,d.context.endDismissRef.current],children:(0,t.jsxs)(a.Fragment,{children:[R,w&&(0,t.jsx)(eP,{ref:d.context.endDismissRef})]})})}),e9=a.forwardRef(function(e,t){let{render:n,className:r,style:l,...a}=e,s=T(),{arrowRef:i,side:o,align:u,arrowUncentered:c,arrowStyles:d}=eA(),p=s.useState("open");return(0,ef.useRenderElement)("div",e,{ref:[i,t],stateAttributesMapping:ex.popupStateMapping,state:{open:p,side:o,align:u,uncentered:c},props:{style:d,"aria-hidden":!0,...a}})}),te=a.createContext(void 0),tt=a.forwardRef(function(e,n){let{render:r,className:l,style:s,items:i,...o}=e,u=T().useState("grid"),[c,d]=a.useState(),p=a.useMemo(()=>({labelId:c,setLabelId:d,items:i}),[c,d,i]),f=(0,ef.useRenderElement)("div",e,{ref:n,props:[{role:u?"rowgroup":"group","aria-labelledby":c},o]}),m=(0,t.jsx)(te.Provider,{value:p,children:f});return i?(0,t.jsx)(eH,{items:i,children:m}):m}),tn=a.forwardRef(function(e,t){let{render:n,className:r,style:l,id:s,...i}=e,{setLabelId:u}=function(){let e=a.useContext(te);if(void 0===e)throw Error((0,o.default)(18));return e}(),d=(0,eI.useBaseUiId)(s);return(0,c.useIsoLayoutEffect)(()=>(u(d),()=>{u(e=>e===d?void 0:e)}),[d,u]),(0,ef.useRenderElement)("div",e,{ref:t,props:[{id:d,"aria-hidden":!0},i]})});var tr=e.i(174080),tl=e.i(673553);let ta=a.createContext(void 0),ts=a.createContext(!1);function ti(e){let{componentProps:n,forwardedRef:r,virtualized:l,indexFromFilter:s}=e,{render:i,className:o,style:u,value:d=null,index:p,disabled:f=!1,nativeButton:m=!1,...x}=n,h=a.useRef(null),g=(0,tl.useCompositeListItem)({guess:!0,index:p,textRef:h}),v=T(),b=a.useContext(ts),S=a.useContext(A),y=v.useState("selectionMode"),C=v.useState("disabled"),E=v.useState("readOnly"),j=v.useState("isItemEqualToValue"),N=C||f,k="none"!==y,R=p??s??g.index,I=-1!==R,w=v.useState("id"),O=v.useState("isActive",R),P=v.useState("isSelected",d),M=v.useState("itemProps"),D=a.useRef(null),V=null!=w&&I?`${w}-${R}`:void 0,L=P&&k;(0,c.useIsoLayoutEffect)(()=>{if(!(I&&(l||null!=p)))return;let e=v.context.listRef.current;return e[R]=D.current,()=>{delete e[R]}},[I,l,R,p,v]),(0,c.useIsoLayoutEffect)(()=>{if(!I||S)return;let e=v.context.valuesRef.current;return e[R]=d,()=>{delete e[R]}},[I,S,R,d,v]),(0,c.useIsoLayoutEffect)(()=>{if(!I||S)return;let e=v.state.selectedValue,t=v.state.selectedIndex;if("multiple"===v.state.selectionMode&&Array.isArray(e)){var n,r;n=v.context.valuesRef.current,r=t,t=F(e,d,j)?null!=r&&R>r&&F(e,n[r],j)?r:R:R===r?H(n,e,j,!0):r}else _(d,e,j)&&(t=R);v.set("selectedIndex",t)},[I,S,v,R,d,j]);let{getButtonProps:B,buttonRef:K}=(0,em.useButton)({disabled:N,focusableWhenDisabled:!0,native:m,composite:!0});function z(e){function t(){v.context.handleSelection(e,d)}v.state.submitOnItemClick?(tr.flushSync(t),v.context.requestSubmit()):t()}let q=(0,ef.useRenderElement)("div",n,{ref:[K,r,g.ref,D],state:{disabled:N,selected:L,highlighted:O},props:[M,{id:V,role:b?"gridcell":"option","aria-selected":k?L:void 0,tabIndex:void 0,onPointerDownCapture(e){e.isPrimary&&(v.context.pointerDownItemRef.current=e.currentTarget),e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){N||E||z(e.nativeEvent)},onMouseUp(e){let t=v.context.pointerDownItemRef.current===e.currentTarget;v.context.pointerDownItemRef.current=null,N||E||0!==e.button||t||!O||z(e.nativeEvent)}},x,B]}),W=a.useMemo(()=>({selected:L,textRef:h}),[L,h]);return(0,t.jsx)(ta.Provider,{value:W,children:q})}function to(e){let{componentProps:n,forwardedRef:r}=e,l=T().useState("isItemEqualToValue"),{flatFilteredValues:a}=D(),s=B(a,n.value??null,l);return(0,t.jsx)(ti,{componentProps:n,forwardedRef:r,virtualized:!0,indexFromFilter:s})}let tu=a.memo(a.forwardRef(function(e,n){let r=T().useState("virtualized");return r&&null==e.index?(0,t.jsx)(to,{componentProps:e,forwardedRef:n}):(0,t.jsx)(ti,{componentProps:e,forwardedRef:n,virtualized:r,indexFromFilter:void 0})})),tc=a.forwardRef(function(e,n){let{render:r,className:l,style:a,...s}=e,i=(0,ef.useRenderElement)("div",e,{ref:n,props:[{role:"row"},s]});return(0,t.jsx)(ts.Provider,{value:!0,children:i})}),td=a.forwardRef(function(e,t){let{render:n,className:r,style:l,children:a,...s}=e,{filteredItems:i}=D(),o=T(),u=eW(),c=0===i.length?a:null;return(0,ef.useRenderElement)("div",e,{ref:[t,o.context.emptyRef,u],props:[{children:c,role:"status","aria-live":"polite","aria-atomic":!0},s]})}),tp=a.forwardRef(function(e,t){let{className:n,render:r,orientation:l="horizontal",style:a,...s}=e;return(0,ef.useRenderElement)("div",e,{state:{orientation:l},ref:t,props:[{role:"presentation"},s]})});e.s(["Arrow",0,e9,"Backdrop",0,eQ,"Clear",0,eF,"Collection",0,eK,"Empty",0,td,"Group",0,tt,"GroupLabel",0,tn,"Icon",0,eV,"Input",0,eT,"InputGroup",0,eD,"Item",0,tu,"List",0,eq,"Popup",0,e7,"Portal",0,eY,"Positioner",0,e5,"Root",0,function(e){let n,{openOnInputClick:r=!1,value:l,defaultValue:s,onValueChange:i,mode:o="list",itemToStringValue:u,...c}=e,d=("inline"===o||"both"===o)&&!e.readOnly,p=void 0!==l,[f,m]=a.useState(s??""),[x,h]=a.useState("");a.useEffect(()=>{(p||!d)&&h("")},[l,p,d]),n=d&&""!==x?x:p?l??"":f;let g=et({locale:c.locale}),v=String((p?l:f)??"").trim(),b="inline"===o||"none"===o||null===c.filter?null:c.filter??g.contains;return(0,t.jsx)(ec,{...c,itemToStringLabel:u,openOnInputClick:r,selectionMode:"none",fillInputOnItemPress:!0,filter:b,filterQuery:"both"===o?v:void 0,autoComplete:o,inputValue:n,defaultInputValue:s,onInputValueChange:function(e,t){h(""),p||m(e),i?.(e,t)},onItemHighlighted:function(t,n){e.onItemHighlighted?.(t,n),n.reason!==R.REASONS.pointer&&h(d&&null!=t?W(t,u):"")}})},"Row",0,tc,"Separator",0,tp,"Status",0,eU,"Trigger",0,ek,"Value",0,function(e){let{children:n}=e,r=V(),l=null;return l="function"==typeof n?n(String(r)):null!=n?n:r,(0,t.jsx)(a.Fragment,{children:l})},"useFilter",0,et,"useFilteredItems",0,function(){return D().filteredItems}],196799);var tf=e.i(196799),tf=tf,tm=e.i(716327),tx=e.i(611568),th=e.i(23750),tg=e.i(647163);function tv({value:e,onChange:r,options:l,placeholder:s,empty:o="Nothing matches",note:u="Not on the list? Type it, then save.",loading:c=!1,disabled:d=!1,className:p,"aria-label":f}){let m=new Set(l.map(e=>e.value.toLowerCase())),[x,h]=(0,a.useState)(e),[g,v]=(0,a.useState)(e);g!==e&&(v(e),h(e));let b=x.trim(),S=""!==b&&b!==e;return(0,t.jsxs)(tf.Root,{items:l,value:x,onValueChange:(e,t)=>{h(e),"item-press"===t.reason&&r(e)},itemToStringValue:e=>e.value,filter:(e,t)=>{let n;return!!(!(n=t.trim().toLowerCase())||m.has(n))||[e.value,e.label,e.badge].filter(Boolean).some(e=>String(e).toLowerCase().includes(n))},openOnInputClick:!0,disabled:d,children:[(0,t.jsxs)("div",{className:(0,tg.cn)("flex gap-2",p),children:[(0,t.jsxs)(tf.InputGroup,{className:"relative min-w-0 flex-1",children:[(0,t.jsx)(tf.Input,{placeholder:s,"aria-label":f,spellCheck:!1,className:(0,tg.cn)(th.inputClassName,"pr-8 font-mono text-sm")}),(0,t.jsx)(tf.Trigger,{"aria-label":"Show suggestions",className:"absolute inset-y-0 right-0 flex w-8 items-center justify-center text-muted-foreground transition-colors outline-none hover:text-foreground focus-visible:text-foreground disabled:opacity-50",children:c?(0,t.jsx)(tx.LoaderCircle,{className:"size-3.5 animate-spin"}):(0,t.jsx)(tm.ChevronDown,{className:"size-3.5"})})]}),S&&!d&&(0,t.jsx)(i.Button,{variant:"outline",className:"shrink-0",onClick:()=>r(b),children:"Save"})]}),(0,t.jsx)(tf.Portal,{children:(0,t.jsx)(tf.Positioner,{sideOffset:4,className:"isolate z-50 outline-none",children:(0,t.jsxs)(tf.Popup,{className:"max-h-(--available-height) w-max min-w-(--anchor-width) max-w-[min(28rem,var(--available-width))] origin-(--transform-origin) rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none 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",children:[u&&(0,t.jsx)("p",{className:"px-1.5 pt-1 pb-1.5 text-[11px] text-muted-foreground",children:u}),(0,t.jsx)(tf.Empty,{className:"px-2 py-2 font-mono text-[11px] text-muted-foreground empty:hidden",children:c?"Loading…":o}),(0,t.jsx)(tf.List,{className:"max-h-64 overflow-y-auto outline-none",children:r=>(0,t.jsxs)(tf.Item,{value:r,className:"flex cursor-default items-center gap-2 rounded-md px-1.5 py-1.5 text-sm outline-none select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground",children:[(0,t.jsx)("span",{className:"flex-1 whitespace-nowrap",children:r.label}),r.badge&&(0,t.jsx)("span",{className:"shrink-0 rounded-full bg-muted px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:r.badge}),r.hint&&r.hint!==r.label&&(0,t.jsx)("span",{className:"min-w-0 shrink truncate font-mono text-[11px] text-muted-foreground",children:r.hint}),(0,t.jsx)(n.Check,{className:(0,tg.cn)("size-3.5 shrink-0",r.value===e.trim()?"opacity-100":"opacity-0")})]},r.value)})]})})})]})}var tb=e.i(917162),tS=e.i(59377);e.s([],506329),e.i(506329);let ty={checked:e=>e?{"data-checked":""}:{"data-unchecked":""},...eL.transitionStatusMapping,...eh.fieldValidityMapping};var tC=e.i(64350),tE=e.i(370359),tj=e.i(348990),tN=e.i(157153),tk=e.i(31421);let tR=a.createContext(void 0),tI=a.createContext(void 0),tw=a.forwardRef(function(e,n){let{render:r,className:l,disabled:s=!1,readOnly:i=!1,required:o=!1,"aria-labelledby":u,value:d,inputRef:f,nativeButton:x=!1,id:h,style:v,...b}=e,S=a.useContext(tR),{disabled:y,readOnly:C,required:E,form:j,checkedValue:N,touched:I=!1,validation:w,name:O,setCheckedValue:A=g.NOOP,setTouched:P=g.NOOP,registerInputRef:T=g.NOOP}=S??{},{setTouched:M,setFilled:D,state:V,disabled:L}=(0,Y.useFieldRootContext)(),_=(0,tN.useFieldItemContext)(),{labelId:F,getDescriptionProps:B}=(0,eb.useLabelableContext)(),H=L||_.disabled||y||s,z=C||i,q=E||o,W=S?N===d:""===d,U=a.useRef(null),G=a.useRef(null),$=w?.registerInput,J=a.useCallback(e=>$?.(e,{controlRef:U,value:void 0}),[$]),Q=(0,p.useMergedRefs)(f,G,T,J);(0,c.useIsoLayoutEffect)(()=>{G.current?.checked&&D(!0)},[D]),(0,c.useIsoLayoutEffect)(()=>{if(G.current){if(H&&W)return void T(null);T(G.current)}},[W,H,T]);let Z=(0,eI.useBaseUiId)(),ee=(0,X.useLabelableId)({id:h}),et=x?void 0:ee,en={role:"radio","aria-checked":W,"aria-labelledby":(0,tk.useAriaLabelledBy)(u,F,G,!x,et),[tE.ACTIVE_COMPOSITE_ITEM]:W?"":void 0,id:x?ee:Z,onKeyDown(e){"Enter"===e.key&&e.preventDefault()},onClick(e){if(e.defaultPrevented||H||z)return;e.preventDefault();let t=G.current;t&&(0,tC.dispatchClickWithModifiers)(t,e)},onFocus(e){e.defaultPrevented||H||z||!I||(G.current?.click(),P(!1))}},{getButtonProps:er,buttonRef:el}=(0,em.useButton)({disabled:H,native:x,composite:!1}),ea={type:"radio",ref:Q,form:j,id:et,name:O,tabIndex:-1,style:O?m.visuallyHiddenInput:m.visuallyHidden,"aria-hidden":!0,...void 0!==d?{value:K(d)}:g.EMPTY_OBJECT,disabled:H,checked:W,required:q,readOnly:z,onChange(e){if(e.nativeEvent.defaultPrevented||H||z||void 0===d)return;let t=(0,k.createChangeEventDetails)(R.REASONS.none,e.nativeEvent);A(d,t),t.isCanceled||M(!0)},onClick(e){e.stopPropagation()},onFocus(){U.current?.focus()}},es=a.useMemo(()=>({...V,required:q,disabled:H,readOnly:z,checked:W}),[V,H,z,W,q]),ei=void 0!==S,eo=[n,U,el],eu=[en,b,er,B,w?e=>w.getValidationProps(H,e):g.EMPTY_OBJECT],ec=(0,ef.useRenderElement)("span",e,{enabled:!ei,state:es,ref:eo,props:eu,stateAttributesMapping:ty});return(0,t.jsxs)(tI.Provider,{value:es,children:[ei?(0,t.jsx)(tj.CompositeItem,{tag:"span",render:r,className:l,style:v,state:es,refs:eo,props:eu,stateAttributesMapping:ty}):ec,(0,t.jsx)("input",{...ea,suppressHydrationWarning:!0})]})}),tO=a.forwardRef(function(e,t){let{render:n,className:r,style:l,keepMounted:s=!1,...i}=e,u=function(){let e=a.useContext(tI);if(void 0===e)throw Error((0,o.default)(52));return e}(),c=u.checked,{mounted:d,transitionStatus:p,setMounted:f}=(0,en.useTransitionStatus)(c),m={...u,transitionStatus:p},x=a.useRef(null),h=(0,ef.useRenderElement)("span",e,{ref:[t,x],state:m,props:i,stateAttributesMapping:ty});return((0,$.useOpenChangeComplete)({batch:!0,enabled:!c,open:c,ref:x,onComplete(){c||f(!1)}}),s||d)?h:null});e.s(["Indicator",0,tO,"Root",0,tw],66747);var tA=e.i(66747),tA=tA,tP=e.i(673327),tT=e.i(405934),tM=e.i(155627),tD=e.i(387068);let tV=[tP.SHIFT],tL=a.forwardRef(function(e,n){let{render:r,className:l,disabled:s,readOnly:i,required:o,onValueChange:c,value:p,defaultValue:f,form:m,name:x,inputRef:h,id:g,style:v,...b}=e,{setTouched:S,setFocused:y,validationMode:C,name:E,disabled:j,state:k,validation:R,setDirty:I,setFilled:w,validityData:O}=(0,Y.useFieldRootContext)(),{labelId:A}=(0,eb.useLabelableContext)(),{clearErrors:P,elementRef:T}=(0,Q.useFormContext)(),M=(0,tD.useFieldsetRootContext)(!0),D=j||s,V=E??x,L=(0,eI.useBaseUiId)(g),[_,F]=(0,u.useControlled)({controlled:p,default:f,name:"RadioGroup",state:"value"}),[B,H]=a.useState(!1),K=(0,d.useStableCallback)((e,t)=>{c?.(e,t),t.isCanceled||F(e)}),z=R.getInputControl,q=a.useMemo(()=>({get current(){return z()}}),[z]),W=a.useRef(null),U=a.useRef(null);function G(e){let t;return h&&("function"==typeof h?t=h(e):h.current=e),W.current=e,t}let $=(0,d.useStableCallback)(e=>{if(!e||e.disabled)return;U.current||(U.current=e);let t=W.current,n=e.checked||null==t||t.disabled?G(e):void 0;return()=>{U.current===e&&(U.current=null),W.current===e?n?(n(),W.current=null):G(null):n?.()}}),X=(0,d.useStableCallback)(()=>{let e=T.current;if(!e)return _??null;for(let t of R.registeredInputs.keys())if(t.checked&&(0,tM.isEligibleInput)(t,e))return _??null;return null});(0,J.useRegisterFieldControl)(q,L,_??null,X,!D,x),(0,el.useValueChanged)(_,()=>{P(V),I(_!==O.initialValue),w(null!=_),R.change(_);let e=U.current;null==_&&e&&!e.disabled&&G(e)});let Z=A??M?.legendId,ee={...k,disabled:D??!1,required:o??!1,readOnly:i??!1},et=a.useMemo(()=>({checkedValue:_,disabled:D,form:m,validation:R,name:V,readOnly:i,registerInputRef:$,required:o,setCheckedValue:K,setTouched:H,touched:B}),[_,D,m,R,V,i,$,o,K,H,B]);return(0,t.jsx)(tR.Provider,{value:et,children:(0,t.jsx)(tT.CompositeRoot,{render:r,className:l,style:v,state:ee,props:[{id:g,role:"radiogroup","aria-required":o||void 0,"aria-disabled":D||void 0,"aria-readonly":i||void 0,"aria-labelledby":Z,onFocus(){y(!0)},onBlur(e){(0,N.contains)(e.currentTarget,e.relatedTarget)||(S(!0),y(!1),"onBlur"===C&&R.commit(_))},onKeyDownCapture(e){e.key.startsWith("Arrow")&&(H(!0),y(!0))}},b,e=>R.getValidationProps(D??!1,e)],refs:[n],stateAttributesMapping:eh.fieldValidityMapping,enableHomeAndEndKeys:!1,modifierKeys:tV})})});function t_({className:e,...n}){return(0,t.jsx)(tL,{"data-slot":"radio-group",className:(0,tg.cn)("grid w-full gap-2",e),...n})}function tF({className:e,...n}){return(0,t.jsx)(tA.Root,{"data-slot":"radio-group-item",className:(0,tg.cn)("group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:not-data-checked:border-input after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-brand data-checked:bg-brand data-checked:text-brand-foreground group-has-[:focus-visible]/field-label:data-checked:border-brand dark:data-checked:bg-brand",e),...n,children:(0,t.jsx)(tA.Indicator,{"data-slot":"radio-group-indicator",className:"flex size-4 items-center justify-center",children:(0,t.jsx)("span",{className:"absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-brand-foreground"})})})}var tB=e.i(319036),tH=e.i(184762),tK=e.i(41533),tz=e.i(458898),tq=e.i(149666),tW=e.i(609507),tU=e.i(616816),tG=e.i(734899),t$=e.i(895836),tY=e.i(867927),tJ=e.i(456420);let tQ={name:"phone",size:24,node:[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]};tQ.node;let tX=(0,tJ.default)(tQ);var tZ=e.i(759659),t0=e.i(660302),t1=e.i(671428),t2=e.i(633669),t3=e.i(222055),t5=e.i(245629),t6=e.i(609856),t4=e.i(661504),t8=e.i(95187);let t7=(0,t8.createServerReference)("7ffbc7b2919f251aa8d0ed166cd55b8a764dd251bc",t8.callServer,void 0,t8.findSourceMapURL,"deleteCallAction"),t9=(0,t8.createServerReference)("7fe82f7e2885647af4c83372a233ea243011a345f4",t8.callServer,void 0,t8.findSourceMapURL,"deleteEndedCallsAction");var ne=e.i(561540),nt=e.i(256604);function nn(){return(0,t.jsxs)("button",{type:"button",onClick:()=>tb.notify.component({className:"sm:max-w-3xl",renderer:()=>(0,t.jsx)(ns,{})}),className:"flex w-full min-w-0 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 bg-muted text-muted-foreground",children:(0,t.jsx)(tX,{className:"size-4"})}),(0,t.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,t.jsx)("span",{className:"block text-sm font-medium",children:"Call history"}),(0,t.jsx)("span",{className:"block text-xs text-muted-foreground",children:"Every call, word for word — hers and yours"})]}),(0,t.jsx)(tY.ChevronRight,{className:"size-4 shrink-0 text-muted-foreground"})]})}let nr={running:"working",waiting:"waiting on you",done:"done",cancelled:"stopped"},nl={running:"text-muted-foreground",waiting:tg.WAITING_INK,done:"text-muted-foreground",cancelled:"text-muted-foreground"},na="h-[min(34rem,58vh)] min-h-64 px-1";function ns(){let{items:e,isLoading:n,isLoadingMore:r,error:l,hasMore:o,sentinelRef:u,refresh:c}=(0,t4.useServerPages)({key:(e,t)=>{if(0===e)return s.queryKey.callHistory(null);let n=t?.at(-1);return n?s.queryKey.callHistory((0,t5.toDate)(n.startedAt).toISOString()):null},size:tK.CALL_HISTORY_PAGE,swr:{revalidateOnFocus:!1}}),d=(0,a.useMemo)(()=>[...e].reverse(),[e]),[p,f]=(0,t6.useServerAction)(t9,{okMessage:e=>1===e?"1 call deleted":`${e} calls deleted`,onOk:c}),m=async()=>{await tb.notify.confirm({title:"Delete every call?",description:"Every turn of every call goes — and she stops reading any of it back into the next call. A call still on the line stays.",okText:"Delete all",destructive:!0})&&p()},x=(0,a.useRef)(null),h=(0,a.useRef)(!1),g=(0,a.useRef)(0);(0,a.useLayoutEffect)(()=>{let e=x.current;e&&0!==d.length&&(h.current?e.scrollTop=e.scrollHeight-g.current:(h.current=!0,e.scrollTop=e.scrollHeight),g.current=e.scrollHeight-e.scrollTop)},[d]);let v=e=>(0,t.jsx)(t$.SettingDialogContent,{title:"Call history",description:`Everything said on the line, oldest at the top.${d.length>0?" Scroll up for older calls.":""}`,children:e});return v(n?(0,t.jsx)("div",{className:(0,tg.cn)(na,"overflow-hidden"),children:(0,t.jsx)(ni,{})}):l?(0,t.jsx)(t$.SettingError,{message:l.message}):(0,t.jsx)(t.Fragment,{children:0===d.length?(0,t.jsx)("p",{className:"px-1 text-sm leading-relaxed text-muted-foreground",children:"No calls yet. Everything said on the line is kept here — hers and yours, in the order it was said."}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{ref:x,onScroll:e=>{let t=e.currentTarget;g.current=t.scrollHeight-t.scrollTop},className:(0,tg.cn)(na,"overflow-y-auto overscroll-contain pb-6"),children:[(0,t.jsx)(t$.SettingMore,{hasMore:o,loading:r,sentinelRef:u,count:1,ghost:(0,t.jsx)(ni,{})}),d.map((e,n)=>(0,t.jsx)(nu,{call:e,first:0===n,onDropped:c},e.id))]}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsxs)(i.Button,{variant:"ghost",loading:f,onClick:m,className:"text-muted-foreground hover:text-destructive",children:[(0,t.jsx)(tZ.Trash2,{}),"Delete all"]})})]})}))}function ni(){return(0,t.jsxs)("div",{className:"pb-3",children:[(0,t.jsxs)("div",{className:"flex h-7 items-center gap-2.5",children:[(0,t.jsx)(t1.Skeleton,{className:"h-3 w-24"}),(0,t.jsx)(t1.Skeleton,{className:"h-3 w-10"})]}),(0,t.jsx)("div",{className:"mt-2 mb-[18px] h-px bg-border/60"}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(t1.Skeleton,{className:"h-9 w-3/5 rounded-2xl rounded-br-sm"})}),(0,t.jsxs)("div",{className:"mt-3 flex items-start gap-2",children:[(0,t.jsx)(t1.Skeleton,{className:"mt-0.5 size-[18px] shrink-0 rounded-full"}),(0,t.jsx)(t1.Skeleton,{className:"mt-1 h-3.5 w-2/3"})]})]})}let no=e=>"user"===e.role?"user":"her";function nu({call:e,first:n,onDropped:r}){let[l,a]=(0,t6.useServerAction)(t7,{okMessage:"Call deleted",onOk:r}),s=(0,t5.toDate)(e.startedAt),o=e.turns.at(-1),u=e.endedAt&&o?function(e,t){let n=Math.max(0,Math.round((t.getTime()-e.getTime())/1e3));if(n<60)return`${n}s`;let r=Math.floor(n/60);return r<60?`${r}m ${String(n%60).padStart(2,"0")}s`:`${Math.floor(r/60)}h ${String(r%60).padStart(2,"0")}m`}(s,(0,t5.toDate)(o.at)):"on the line",c=async()=>{await tb.notify.confirm({title:`Delete the call from ${(0,t5.whenOf)(s)}?`,description:"Every turn of it goes — and she stops reading it back into the next call.",okText:"Delete",destructive:!0})&&l(e.id)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:(0,tg.cn)("group flex items-center gap-2.5",n?"mt-1":"mt-11"),children:[(0,t.jsx)("span",{title:[e.provider,e.model,e.backendModel,null===e.seconds?null:`${e.seconds}s active`,e.endedReason].filter(Boolean).join(" · "),className:"font-mono text-[10px] tracking-[0.14em] uppercase",children:(0,t5.whenOf)(s)}),(0,t.jsx)("span",{className:"font-mono text-[10px] text-muted-foreground",children:e.model===tK.TEXT_CALL.model?`${u} \xb7 in writing`:u}),(0,t.jsx)("span",{className:"ml-auto flex size-7 shrink-0 items-center justify-center",children:e.endedAt&&(0,t.jsx)(i.Button,{size:"icon-sm",variant:"ghost",loading:a,"aria-label":"Delete this call",onClick:c,className:"text-muted-foreground/60 opacity-0 transition-opacity group-hover:opacity-100 hover:text-destructive focus-visible:opacity-100",children:(0,t.jsx)(tZ.Trash2,{})})})]}),(0,t.jsx)("div",{className:"mt-2 mb-[18px] h-px bg-border/60"}),(function(e){let t=[];for(let n of e){let e=t.at(-1);if(e&&"tool"===n.role&&"tool"===e.turn.role&&e.turn.tool===n.tool&&e.turn.text===n.text){e.repeats+=1;continue}t.push({turn:n,repeats:1})}return t})(e.turns).map(({turn:n,repeats:r},l,a)=>{var s,i;let o,u=a[l-1]?.turn,c=a[l+1]?.turn;return(0,t.jsx)(nc,{turn:n,job:(s=e,i=n,(o=(0,ne.startedLabel)(i.tool,i.text))?s.jobs.find(e=>e.label===o):void 0),repeats:r,opensRun:!u||no(u)!==no(n),closesRun:!c||no(c)!==no(n)},n.id)})]})}function nc({turn:e,job:n,opensRun:r,closesRun:l,repeats:a=1}){return"tool"===e.role?(0,t.jsx)(np,{turn:e,job:n,repeats:a,opensRun:r}):"user"===e.role?(0,t.jsx)("div",{className:(0,tg.cn)("flex justify-end",r?"mt-3":"mt-1"),children:(0,t.jsx)("p",{className:(0,tg.cn)("max-w-[min(34rem,78%)] rounded-2xl bg-muted px-3.5 py-2 text-[13.5px] leading-relaxed break-keep wrap-anywhere whitespace-pre-wrap",l&&"rounded-br-sm"),children:e.text})}):(0,t.jsxs)("div",{className:(0,tg.cn)("flex items-start gap-2",r?"mt-3":"mt-1"),children:[(0,t.jsx)(nd,{face:r,className:"mt-0.5"}),(0,t.jsx)("p",{className:"max-w-[min(34rem,78%)] text-[13.5px] leading-relaxed break-keep wrap-anywhere whitespace-pre-wrap",children:e.text})]})}function nd({face:e,className:n}){return(0,t.jsx)("span",{className:(0,tg.cn)("grid size-[18px] shrink-0 place-items-center",n),children:e&&(0,t.jsx)(nt.ThursdayMark,{size:18})})}function np({turn:e,job:n,repeats:r,opensRun:l}){let a=e.tool??"",s=(0,t3.toolIcon)(a),i=(0,ne.toolLine)(a,e.text),o=(0,ne.searchOf)(e.tool,e.text)?.sources??[];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:(0,tg.cn)("flex items-center gap-2",l?"mt-3":"mt-1.5"),children:[(0,t.jsx)(nd,{face:l}),(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 text-muted-foreground",children:[(0,t.jsx)(s,{className:"size-3 shrink-0"}),i&&(0,t.jsx)("span",{className:"truncate text-[11px] break-keep",children:i}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground/60",children:a}),r>1&&(0,t.jsxs)("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground/70",children:["×",r]})]})]}),o.length>0&&(0,t.jsx)(t2.SourceChips,{sources:o,className:"mt-1 ml-[26px]"}),n&&(0,t.jsxs)("p",{className:"mt-0.5 ml-[26px] flex min-w-0 items-baseline gap-1.5 text-[11px]",children:["running"===n.status?(0,t.jsx)(t0.ShinyText,{text:nr.running,className:"shrink-0 font-mono text-[10px]"}):(0,t.jsx)("span",{className:(0,tg.cn)("shrink-0 font-mono text-[10px]",nl[n.status]),children:nr[n.status]}),n.outcome&&"running"!==n.status&&(0,t.jsx)("span",{className:"truncate text-muted-foreground",children:(0,tg.plainText)(n.outcome)})]})]})}var nf=e.i(263676),nm=e.i(6799),nx=e.i(333495),nh=e.i(218080);let ng=Array(nh.SPECTRUM_BANDS).fill(0);function nv({voice:e,onChange:r}){let[l,s]=(0,a.useState)(!1),[o,u]=(0,a.useState)(e),[c,d]=(0,a.useState)(!1),[p,f]=(0,a.useState)(""),m=(0,a.useRef)(null),x=(0,a.useRef)(null),h=(0,a.useRef)(0),g=(0,a.useRef)(!1),v=(0,a.useCallback)(()=>x.current&&g.current?x.current.clip.read():ng,[]),b=e=>{g.current=e,d(e)};(0,a.useEffect)(()=>{if(l)return()=>{let e=x.current;x.current=null,e&&(e.element.pause(),e.clip.close())}},[l]);let S=(e,t)=>{e===h.current&&(h.current++,b(!1),nm.toast.add({type:"error",title:"Voice sample did not play",description:(0,tg.errorToString)(t)}))},y=()=>{h.current++;let e=m.current;e&&(e.pause(),e.currentTime=0),b(!1)};return l?(0,t.jsxs)("div",{className:"@container space-y-2",children:[(0,t.jsx)("audio",{ref:m,onEnded:()=>b(!1),onError:e=>{g.current&&S(h.current,e.currentTarget.error?.message||"The clip could not be read.")},children:(0,t.jsx)("track",{kind:"captions"})}),(0,t.jsxs)("div",{className:"rounded-xl border border-border/60 p-3",children:[(0,t.jsxs)("div",{className:"mb-2 flex items-center gap-2",children:[(0,t.jsx)("span",{className:"font-mono text-[11px] text-muted-foreground",children:"click a name to hear it"}),(0,t.jsx)(i.Button,{variant:"ghost",size:"icon-xs",className:"ml-auto","aria-label":"Close",onClick:()=>{y(),s(!1),f(""),u(e)},children:(0,t.jsx)(nf.X,{})})]}),(0,t.jsxs)("div",{className:"grid gap-4 @md:grid-cols-[11rem_minmax(0,1fr)]",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,t.jsx)(nx.Face,{status:c?"speaking":"idle",getSpectrum:v,className:"w-44"}),(0,t.jsx)("span",{className:"text-sm font-medium",children:c?(0,t.jsx)(t0.ShinyText,{text:o}):o}),(0,t.jsx)("span",{className:"h-4 font-mono text-[11px] text-muted-foreground",children:tq.LIVE_VOICE_NOTE[o]})]}),(0,t.jsx)("div",{className:"max-h-56 min-w-0 overflow-y-auto",children:tq.LIVE_VOICES.map(r=>(0,t.jsxs)("button",{type:"button",onClick:()=>(e=>{let t=m.current;if(!t)return;if(c&&e===o)return void y();u(e),f(""),x.current?.element!==t&&(x.current?.clip.close(),x.current={element:t,clip:(0,nh.createClipTap)(t)}),x.current.clip.resume();let n=++h.current;t.src=(0,tq.voiceSamplePath)(e),b(!0),t.play().catch(e=>{e instanceof DOMException&&"AbortError"===e.name||S(n,e)})})(r),className:(0,tg.cn)("flex w-full items-center gap-2 rounded-md px-1.5 py-1.5 text-sm outline-none hover:bg-accent focus-visible:bg-accent",r===o&&"bg-accent text-accent-foreground"),children:[(0,t.jsx)("span",{className:"flex-1 text-left",children:c&&r===o?(0,t.jsx)(t0.ShinyText,{text:r}):r}),(0,t.jsx)("span",{className:"shrink truncate font-mono text-[11px] text-muted-foreground",children:tq.LIVE_VOICE_NOTE[r]}),(0,t.jsx)(n.Check,{className:(0,tg.cn)("size-3.5 shrink-0",r===e?"opacity-100":"opacity-0")})]},r))})]})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(th.Input,{value:p,onChange:e=>f(e.target.value),placeholder:"another voice id","aria-label":"Another voice id",spellCheck:!1,className:"font-mono text-sm"}),(0,t.jsx)(i.Button,{className:"shrink-0",onClick:()=>{let t=p.trim()||o;y(),s(!1),f(""),u(t),t!==e&&r(t)},children:"Save"})]})]}):(0,t.jsxs)("button",{type:"button",onClick:()=>s(!0),"aria-label":"Voice",className:(0,tg.cn)(th.inputClassName,"flex items-center gap-2 text-left font-mono text-sm hover:border-ring"),children:[(0,t.jsx)("span",{className:"shrink-0",children:e}),(0,t.jsx)("span",{className:"min-w-0 truncate text-[11px] text-muted-foreground",children:tq.LIVE_VOICE_NOTE[e]}),(0,t.jsx)(tm.ChevronDown,{className:"ml-auto size-3.5 shrink-0 text-muted-foreground"})]})}let nb=(0,t8.createServerReference)("7f02f838f9443f7b90a34eab46c3360bea4d93e5ca",t8.callServer,void 0,t8.findSourceMapURL,"resetHistoryAction");var nS=e.i(671228),ny=e.i(67045),nC=e.i(297825),nE=e.i(319841);function nj(e,t,{min:n=1,accepts:r=()=>!0}={}){let[l,s]=(0,a.useState)(e),[i,o]=(0,a.useState)(e);return e!==i&&(o(e),s(e)),{value:l,set:s,commit:()=>{let a=l.trim();if(a.length<n||!r(a))return s(e);s(a),a!==e&&t(a)},onKeyDown:e=>{"Enter"!==e.key||(0,nE.composing)(e)||e.currentTarget.blur()}}}var nN=e.i(413168),nk=e.i(283653);function nR({columns:e,children:n}){return(0,t.jsx)("div",{className:"@container",children:(0,t.jsx)("div",{className:(0,tg.cn)("grid divide-y divide-border/60 overflow-hidden rounded-xl border border-border/60",3===e?"@3xl:grid-cols-3 @3xl:divide-x @3xl:divide-y-0":"@xl:grid-cols-2 @xl:divide-x @xl:divide-y-0"),children:n})})}function nI({label:e,children:n}){return(0,t.jsxs)("div",{className:"flex min-h-5 items-center gap-3",children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:e}),n]})}function nw({value:e,hasKey:n,onChange:r}){return(0,t.jsx)(t$.SettingGroup,{label:"Models",note:"Both run on your OpenAI key. Instructions are saved when you leave the field.",children:(0,t.jsxs)("div",{className:"@container divide-y divide-border/60 rounded-xl border border-border/60",children:[!n&&(0,t.jsx)(nT,{}),(0,t.jsxs)(nO,{name:"Voice",fact:"billed by the minute",children:[(0,t.jsx)("div",{className:"grid gap-4 @xl:grid-cols-2",children:(0,t.jsx)(nP,{label:"model",children:(0,t.jsx)(tv,{value:nN.LIVE_MODEL,onChange:()=>void 0,options:[{value:nN.LIVE_MODEL,label:"GPT-Live 1"}],"aria-label":"Voice model",disabled:!0})})}),(0,t.jsx)(nP,{label:"voice",children:(0,t.jsx)(nv,{voice:e.voice,onChange:e=>r({voice:e.trim()||tq.LIVE_DEFAULTS.voice})})}),(0,t.jsx)(nP,{label:"style",children:(0,t.jsx)(nA,{value:e.persona,own:e.stylePrompt,onPersona:e=>r({persona:e}),onOwn:e=>r({stylePrompt:e})})})]}),(0,t.jsxs)(nO,{name:"Backend",fact:"billed per token",children:[(0,t.jsx)(nP,{label:"model",children:(0,t.jsx)(nM,{value:e.backendModel,onChange:e=>r({backendModel:e})})}),(0,t.jsx)(nP,{label:"effort",children:(0,t.jsx)(tz.EffortSwitch,{provider:"openai",model:e.backendModel,value:e.reasoningEffort,onChange:e=>r({reasoningEffort:e})})}),(0,t.jsx)(nP,{label:"tools",children:(0,t.jsx)(nD,{webSearch:e.webSearch,readSkills:e.readSkills,onChange:r})}),(0,t.jsx)(nP,{label:"instructions",children:(0,t.jsx)(n_,{value:e.backendPrompt,onCommit:e=>r({backendPrompt:e}),placeholder:"How work should be handed over, what to check first.","aria-label":"Backend instructions"})})]})]})})}function nO({name:e,fact:n,children:r}){return(0,t.jsxs)("div",{className:"grid gap-4 p-5 @2xl:grid-cols-[8.5rem_minmax(0,1fr)] @2xl:gap-6",children:[(0,t.jsxs)("span",{className:"space-y-0.5",children:[(0,t.jsx)("span",{className:"block text-sm font-medium",children:e}),(0,t.jsx)("span",{className:"block font-mono text-[11px] text-muted-foreground",children:n})]}),(0,t.jsx)("div",{className:"min-w-0 space-y-4",children:r})]})}function nA({value:e,own:l,onPersona:s,onOwn:i}){let[o,u]=(0,a.useState)(!1),[c,d]=(0,a.useState)(!1),p=tW.PERSONAS.find(t=>t.id===e)??tW.PERSONAS.find(e=>e.id===tW.DEFAULT_PERSONA)??tW.PERSONAS[0];return(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)(tS.Popover,{open:o,onOpenChange:u,children:[(0,t.jsx)(tS.PopoverTrigger,{render:(0,t.jsxs)("button",{type:"button",className:"flex w-full items-center gap-3 rounded-lg border px-3 py-2.5 text-left transition-colors hover:bg-muted/50",children:[(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"text-sm font-medium",children:p.label}),(0,t.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:p.about})]}),(0,t.jsx)(r.ChevronsUpDown,{className:"size-4 shrink-0 text-muted-foreground"})]})}),(0,t.jsxs)(tS.PopoverContent,{align:"start",className:"w-104 p-1.5",children:[(0,t.jsx)("p",{className:"px-2 py-1.5 text-xs text-muted-foreground",children:"How she talks to you. It never changes what she can do."}),tW.PERSONAS.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>{s(e.id),u(!1)},className:(0,tg.cn)("flex w-full items-baseline gap-3 rounded-md px-2 py-1.5 text-left",e.id===p.id?t$.PICKED_ROW:"hover:bg-muted/60"),children:[(0,t.jsx)("span",{className:"w-20 shrink-0 text-sm font-medium",children:e.label}),(0,t.jsx)("span",{className:"min-w-0 flex-1 text-xs text-muted-foreground",children:e.about}),e.id===p.id&&(0,t.jsx)(n.Check,{className:"size-3.5 shrink-0 text-brand"})]},e.id)),(0,t.jsxs)("button",{type:"button",onClick:()=>{d(!0),u(!1)},className:(0,tg.cn)("flex w-full items-baseline gap-3 rounded-md px-2 py-1.5 text-left",l.trim()?t$.PICKED_ROW:"hover:bg-muted/60"),children:[(0,t.jsx)("span",{className:"w-20 shrink-0 text-sm font-medium",children:"Your own"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 text-xs text-muted-foreground",children:"Say it in your words, over the one above."}),l.trim()?(0,t.jsx)(n.Check,{className:"size-3.5 shrink-0 text-brand"}):null]})]})]}),c||l.trim()?(0,t.jsx)(n_,{value:l,onCommit:i,placeholder:"Quieter. Don't explain things I didn't ask about.","aria-label":"In your own words"}):null]})}function nP({label:e,children:n}){return(0,t.jsxs)("div",{className:"min-w-0 space-y-2",children:[(0,t.jsx)("span",{className:"block font-mono text-[11px] text-muted-foreground",children:e}),n]})}function nT(){let[e,n]=(0,a.useState)(""),[r,l]=(0,t6.useServerAction)(tG.setConfigAction,{onOk:()=>{(0,nk.revalidate)(s.queryKey.llmModel),(0,nk.revalidate)(s.queryKey.config),n("")}}),i=e.trim().length>=tK.KEY_MIN;return(0,t.jsxs)("div",{className:"space-y-3 p-5",children:[(0,t.jsxs)("span",{className:"block space-y-0.5",children:[(0,t.jsx)("span",{className:(0,tg.cn)("block text-sm font-medium",tg.WAITING_INK),children:"No OpenAI key"}),(0,t.jsx)("span",{className:"block text-xs text-muted-foreground",children:"Her voice and the backend both run on it"})]}),(0,t.jsx)(tU.KeyInput,{dense:!0,provider:tq.LIVE_PROVIDER,saved:!1,value:e,ready:i,saving:l,onValue:n,onSubmit:()=>i&&r(tq.LIVE_PROVIDER.apiKeyName,e)})]})}function nM({value:e,onChange:r}){let l=nj(tq.LIVE_BACKEND_MODELS.some(t=>t.id===e)?"":e,e=>r(e||tq.LIVE_DEFAULTS.backendModel),{min:0});return(0,t.jsxs)("div",{className:"@container space-y-2",children:[(0,t.jsx)("div",{role:"radiogroup","aria-label":"Backend model",className:"grid grid-cols-2 gap-2 @2xl:grid-cols-4",children:tq.LIVE_BACKEND_MODELS.map(l=>{let a=l.id===e;return(0,t.jsxs)("button",{type:"button",role:"radio","aria-checked":a,onClick:()=>r(l.id),className:(0,tg.cn)("min-w-0 space-y-0.5 rounded-lg border px-3 py-2.5 text-left outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",a?"border-brand bg-brand/4":"border-border/60 hover:bg-muted/50"),children:[(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:l.label}),a&&(0,t.jsx)(n.Check,{className:"size-3.5 shrink-0 text-brand"})]}),(0,t.jsxs)("span",{className:"block truncate font-mono text-[11px] text-muted-foreground",children:[l.id," · ",l.tier]})]},l.id)})}),(0,t.jsx)(th.Input,{value:l.value,onChange:e=>l.set(e.target.value),onBlur:l.commit,onKeyDown:l.onKeyDown,placeholder:"Other model id","aria-label":"Other backend model id",spellCheck:!1,className:"font-mono text-sm"})]})}function nD({webSearch:e,readSkills:n,onChange:r}){return(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-x-7 gap-y-3",children:[(0,t.jsx)(nV,{label:"Search the web",checked:e,onChange:e=>r({webSearch:e})}),(0,t.jsx)(nV,{label:"Read skills herself",checked:n,onChange:e=>r({readSkills:e})})]}),e&&(0,t.jsx)(t$.SettingNote,{children:"Each search adds to the backend's OpenAI usage."}),n&&(0,t.jsx)(nL,{})]})}function nV({label:e,checked:n,disabled:r,onChange:l}){return(0,t.jsxs)("label",{className:"flex items-center gap-2.5 text-sm",children:[(0,t.jsx)(tB.Switch,{checked:n,disabled:r,onCheckedChange:l}),e]})}function nL(){let{data:e}=(0,nk.useServerRoute)(s.queryKey.skills);return e?(0,t.jsx)(t$.SettingNote,{className:(0,tg.cn)(!e.length&&tg.WAITING_INK),children:e.length?`The same ${e.length} a bot reads. Each one she opens spends a page of the call on it.`:"Nothing installed yet — there is nothing for her to read."}):null}function n_({value:e,onCommit:n,placeholder:r,"aria-label":l}){let a=nj(e,n,{min:0});return(0,t.jsx)(tH.Textarea,{value:a.value,maxLength:tK.COMMON_VALIDATE.prompt.max,onChange:e=>a.set(e.target.value),onBlur:a.commit,placeholder:r,"aria-label":l})}function nF(){let[e,n]=(0,t6.useServerAction)(nb,{okMessage:({calls:e,threads:t,notes:n})=>`Wiped ${e} calls, ${t} jobs, ${n} notes`,onOk:()=>{(0,nk.revalidate)(s.queryKey.memory),(0,nk.revalidate)(s.queryKey.threads),(0,nk.revalidate)(s.queryKey.callHistory(null))}}),r=async()=>{await tb.notify.confirm({title:"Reset history?",description:"Every call, every job and everything she remembers is deleted for good. Keys, bots and connectors stay, and so does what each bot keeps for itself.",okText:"Reset",destructive:!0})&&e()};return(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-3 p-4",children:[(0,t.jsx)("span",{className:"grid size-10 shrink-0 place-items-center rounded-lg bg-muted text-muted-foreground",children:(0,t.jsx)(l.TriangleAlert,{className:"size-4"})}),(0,t.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,t.jsx)("span",{className:"block truncate text-sm font-medium",children:"Reset history"}),(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:"Calls, jobs and memory. Keys and bots stay."})]}),(0,t.jsx)(i.Button,{variant:"outline",size:"sm",loading:n,onClick:r,className:"shrink-0 text-destructive hover:text-destructive",children:"Reset"})]})}let nB={center:{label:"Her last line",hint:"One caption under the mark — only what she said."},sides:{label:"Both sides",hint:"Hers on the left, yours on the right. Click a line to read it again."}};function nH({value:e,onChange:r}){return(0,t.jsx)(t$.SettingGroup,{label:"Captions",children:(0,t.jsx)("div",{className:"@container",children:(0,t.jsx)("div",{role:"radiogroup","aria-label":"Captions",className:"grid gap-3 @xl:grid-cols-2",children:nS.CAPTION_VIEWS.map(l=>{let a=l===e;return(0,t.jsxs)("button",{type:"button",role:"radio","aria-checked":a,onClick:()=>r(l),className:(0,tg.cn)("min-w-0 space-y-3 rounded-xl border p-3 text-left outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",a?"border-brand bg-brand/4":"border-border/60 hover:bg-muted/50"),children:[(0,t.jsx)(nK,{view:l}),(0,t.jsxs)("span",{className:"flex items-center gap-3 px-1 pb-0.5",children:[(0,t.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,t.jsx)("span",{className:"block truncate text-sm font-medium",children:nB[l].label}),(0,t.jsx)("span",{className:"block text-xs text-pretty text-muted-foreground",children:nB[l].hint})]}),a&&(0,t.jsx)(n.Check,{className:"size-4 shrink-0 text-brand"})]})]},l)})})})})}function nK({view:e}){let n="block h-1 max-w-full rounded-full bg-foreground/20";return(0,t.jsx)("span",{className:"flex h-24 items-center justify-center rounded-lg bg-muted",children:"center"===e?(0,t.jsxs)("span",{className:"flex flex-col items-center gap-2.5",children:[(0,t.jsx)(nt.ThursdayMark,{size:32}),(0,t.jsx)("span",{className:(0,tg.cn)(n,"w-28")})]}):(0,t.jsxs)("span",{className:"grid w-full grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-4 px-6",children:[(0,t.jsxs)("span",{className:"space-y-1.5",children:[(0,t.jsx)("span",{className:(0,tg.cn)(n,"w-24")}),(0,t.jsx)("span",{className:(0,tg.cn)(n,"w-16")})]}),(0,t.jsx)(nt.ThursdayMark,{size:32}),(0,t.jsx)("span",{children:(0,t.jsx)("span",{className:(0,tg.cn)(n,"ml-auto w-20")})})]})})}function nz({value:e,onChange:n}){return(0,t.jsxs)("div",{className:"min-w-0 space-y-3 p-4",children:[(0,t.jsx)(nI,{label:"She calls you"}),(0,t.jsx)(t_,{"aria-label":"She calls you",value:e,onValueChange:e=>n(nS.CallBackSchema.parse(e)),className:"gap-2.5",children:nS.CALL_BACK_MODES.map(e=>(0,t.jsxs)("label",{className:"flex min-w-0 items-center gap-2.5 text-sm",children:[(0,t.jsx)(tF,{value:e}),(0,t.jsx)("span",{className:"truncate",children:nS.CALL_BACK_LABEL[e]})]},e))}),(0,t.jsx)(t$.SettingNote,{children:nq[e]}),"off"!==e&&(0,t.jsx)(t$.SettingNote,{children:"Needs this tab open. It rings until you answer, decline or let it go."})]})}let nq={off:"Nothing opens a call but you.",waiting:"A job that stopped to ask gets her to ring you.",any:"Anything a bot finishes, she rings you to tell you."};function nW({value:e,onChange:n}){let r=nj(e.phrase,t=>n({...e,phrase:t}),{min:nS.WAKE_PHRASE.min,accepts:nS.isEnglishPhrase}),l=(0,nS.isEnglishPhrase)(r.value)||!r.value.trim(),a=r.value.trim().split(/\s+/).length<2;return(0,t.jsxs)("div",{className:"min-w-0 space-y-3 p-4",children:[(0,t.jsx)(nI,{label:"Wake phrase",children:(0,t.jsx)(tB.Switch,{"aria-label":"Answer to her name",checked:e.enabled,onCheckedChange:t=>n({...e,enabled:t})})}),(0,t.jsx)(th.Input,{value:r.value,maxLength:nS.WAKE_PHRASE.max,spellCheck:!1,disabled:!e.enabled,onChange:e=>r.set(e.target.value),onBlur:r.commit,onKeyDown:r.onKeyDown,"aria-label":"Wake phrase",className:"font-mono text-sm"}),(0,t.jsx)(t$.SettingNote,{children:e.enabled?l?a?"One word will wake her by accident — say hello first.":"Heard loosely, in English. Near misses count.":"English words only — she listens for it in English.":"Between calls, the browser listens for it and picks up — Chrome by sending what it hears to Google."})]})}function nU({value:e,onChange:n}){let[r,l]=(0,a.useState)(!1),[s,i]=(0,a.useState)(!1),o=(0,nE.useHotkeyLabel)((0,nE.isCombo)(e.combo)?e.combo:null);return(0,t.jsxs)("div",{className:"min-w-0 space-y-3 p-4",children:[(0,t.jsx)(nI,{label:"Shortcut",children:(0,t.jsx)(tB.Switch,{"aria-label":"Answer to a key",checked:e.enabled,onCheckedChange:t=>n({...e,enabled:t})})}),(0,t.jsx)("button",{type:"button",...nE.HOTKEY_CAPTURE,disabled:!e.enabled,onClick:()=>{i(!1),l(!0)},onBlur:()=>l(!1),onKeyDown:r?t=>{if("Tab"===t.key)return;if(t.preventDefault(),t.stopPropagation(),"Escape"===t.key)return l(!1);let r=(0,nE.comboOf)(t.nativeEvent);if(!r)return i(!0);i(!1),l(!1),n({...e,combo:r})}:void 0,className:(0,tg.cn)("flex h-8 w-full items-center justify-center rounded-lg border px-3 font-mono text-sm outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50",r?"border-foreground/40 text-muted-foreground":"border-border/60 hover:bg-muted/50"),children:r?"Press the keys…":o??"Set a shortcut"}),(0,t.jsx)(t$.SettingNote,{children:s?"Hold Ctrl, Alt or Cmd — a plain key is typing.":r?"Esc to keep the one you have.":e.enabled?"Only while this tab has focus. Not while you are typing.":"Starts a call, and ends the one that is running."})]})}e.s(["ThursdaySetting",0,function(){let e=(0,ny.useThursdayStore)(),n=(0,ny.useThursdayStore)(e=>e.patch),{settings:r,patch:l}=(0,nC.useLiveSettings)(),{data:a=[],isLoading:i,error:o}=(0,nk.useServerRoute)(s.queryKey.llmModel);if(i||!r)return(0,t.jsx)(t$.SettingSkeleton,{rows:4});if(o)return(0,t.jsx)(t$.SettingError,{message:o.message});let u=a.some(e=>e.apiKeyName===tq.LIVE_PROVIDER.apiKeyName&&e.hasKey);return(0,t.jsxs)(t$.SettingScreen,{footer:(0,t.jsx)(t$.SettingRailNote,{children:"Both of her prompts are assembled fresh on every call — memory, the roster and your skills go in. Changes here apply from the next call."}),children:[(0,t.jsx)(nH,{value:e.captionView,onChange:e=>n({captionView:e})}),(0,t.jsx)(nw,{value:r,hasKey:u,onChange:l}),(0,t.jsx)(t$.SettingGroup,{label:"Starting a call",children:(0,t.jsxs)(nR,{columns:3,children:[(0,t.jsx)(nW,{value:e.wake,onChange:e=>n({wake:e})}),(0,t.jsx)(nU,{value:e.hotkey,onChange:e=>n({hotkey:e})}),(0,t.jsx)(nz,{value:e.callBack,onChange:e=>n({callBack:e})})]})}),(0,t.jsx)(t$.SettingGroup,{label:"History",children:(0,t.jsxs)(nR,{columns:2,children:[(0,t.jsx)(nn,{}),(0,t.jsx)(nF,{})]})})]})}],59158)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,660302,e=>{"use strict";var t=e.i(843476),i=e.i(647163);let n={muted:{under:"text-muted-foreground/60 dark:text-muted-foreground",band:"via-foreground"},waiting:{under:"text-waiting/70",band:"via-waiting/30"},reading:{under:"text-foreground",band:"via-waiting/80"}};e.s(["ShinyText",0,function({text:e,tone:r="muted",speed:o=2.4,className:l}){let{under:a,band:s}=n[r];return(0,t.jsxs)("span",{"data-slot":"shiny-text",className:(0,i.cn)("relative inline-block max-w-full",a,l),children:[e,(0,t.jsx)("span",{"aria-hidden":!0,style:{animationDuration:`${o}s`},className:(0,i.cn)("pointer-events-none absolute inset-0 animate-shine overflow-hidden bg-linear-120 from-transparent from-35% via-50% to-transparent to-65% bg-size-[200%_auto] bg-clip-text text-transparent p-[inherit] select-none [text-overflow:inherit] motion-reduce:hidden",s),children:e})]})}])},265402,e=>{"use strict";var t=e.i(681307),i=e.i(41533);let n=t.z.enum(["openai","chatgpt","anthropic","google","xai","vercel-ai-gateway","mistral","deepseek","groq","cerebras","togetherai","fireworks","deepinfra","cohere"]),r=t.z.object({provider:n,model:t.z.string().trim().min(1,"Model name is required").max(80)}),o=["none","minimal","low","medium","high","xhigh"],l=t.z.enum(o),a=t.z.enum(["openai","google","xai","vercel-ai-gateway"]),s=t.z.object({provider:a,model:t.z.string().trim().min(1,"Model name is required").max(120)}),u={openai:{label:"OpenAI",apiKeyName:"OPENAI_API_KEY",models:{image:[{id:"gpt-image-1-mini",label:"GPT Image 1 mini",tier:"small"},{id:"gpt-image-2.5-flare",label:"GPT Image 2.5 Flare",tier:"mid"},{id:"gpt-image-2.5-sunburst",label:"GPT Image 2.5 Sunburst",tier:"large"}],video:[],speech:[{id:"tts-1",label:"TTS 1",tier:"small"},{id:"gpt-4o-mini-tts",label:"4o mini TTS",tier:"mid"},{id:"tts-1-hd",label:"TTS 1 HD",tier:"large"}],transcription:[{id:"gpt-4o-mini-transcribe",label:"4o mini Transcribe",tier:"small"},{id:"gpt-transcribe",label:"GPT Transcribe",tier:"mid"}]}},google:{label:"Gemini",apiKeyName:"GOOGLE_GENERATIVE_AI_API_KEY",models:{image:[{id:"gemini-3.1-flash-lite-image",label:"3.1 Flash Lite Image",tier:"small"},{id:"gemini-3.1-flash-image",label:"3.1 Flash Image",tier:"mid"},{id:"gemini-3-pro-image",label:"3 Pro Image",tier:"large"}],video:[{id:"veo-3.1-lite-generate-preview",label:"Veo 3.1 Lite",tier:"small"},{id:"veo-3.1-fast-generate-preview",label:"Veo 3.1 Fast",tier:"mid"},{id:"veo-3.1-generate-preview",label:"Veo 3.1",tier:"large"}],speech:[{id:"gemini-2.5-flash-preview-tts",label:"2.5 Flash TTS",tier:"small"},{id:"gemini-3.1-flash-tts-preview",label:"3.1 Flash TTS",tier:"mid"},{id:"gemini-2.5-pro-preview-tts",label:"2.5 Pro TTS",tier:"large"}],transcription:[{id:"gemini-3.5-transcribe",label:"3.5 Transcribe",tier:"mid"}]}},xai:{label:"xAI",apiKeyName:"XAI_API_KEY",models:{image:[{id:"grok-imagine-image",label:"Grok Imagine",tier:"small"},{id:"grok-imagine-image-2.0",label:"Grok Imagine 2.0",tier:"mid"}],video:[{id:"grok-imagine-video",label:"Grok Imagine Video",tier:"small"},{id:"grok-imagine-video-1.5",label:"Grok Imagine Video 1.5",tier:"mid"}],speech:[{id:"grok-tts",label:"Grok TTS",tier:"mid"}],transcription:[{id:"grok-stt",label:"Grok STT",tier:"mid"}]}},"vercel-ai-gateway":{label:"Vercel AI Gateway",apiKeyName:"AI_GATEWAY_API_KEY",models:{image:[{id:"bytedance/seedream-5.0-lite",label:"Seedream 5.0 Lite",tier:"small"},{id:"bfl/flux-2-klein-9b",label:"FLUX 2 Klein 9B",tier:"small"},{id:"spacexai/grok-imagine-image-2.0",label:"Grok Imagine 2.0",tier:"small"},{id:"bfl/flux-2-pro",label:"FLUX 2 Pro",tier:"mid"},{id:"bytedance/seedream-5.0-pro",label:"Seedream 5.0 Pro",tier:"mid"},{id:"recraft/recraft-v4.1",label:"Recraft V4.1",tier:"mid"},{id:"openai/gpt-image-2.5-sunburst",label:"GPT Image 2.5 Sunburst",tier:"large"}],video:[{id:"bytedance/seedance-2.0-mini",label:"Seedance 2.0 Mini",tier:"small"},{id:"google/veo-3.1-lite-generate-001",label:"Veo 3.1 Lite",tier:"small"},{id:"alibaba/wan-v2.6-t2v",label:"Wan 2.6",tier:"small"},{id:"google/veo-3.1-fast-generate-001",label:"Veo 3.1 Fast",tier:"mid"},{id:"bytedance/seedance-2.5",label:"Seedance 2.5",tier:"mid"},{id:"spacexai/grok-imagine-video-1.5",label:"Grok Imagine Video 1.5",tier:"mid"},{id:"klingai/kling-v3.0-t2v",label:"Kling 3.0",tier:"large"},{id:"google/veo-3.1-generate-001",label:"Veo 3.1",tier:"large"}],speech:[{id:"fish-audio/s1",label:"Fish Audio S1",tier:"small"},{id:"openai/tts-1",label:"OpenAI TTS 1",tier:"small"},{id:"spacexai/grok-tts",label:"Grok TTS",tier:"mid"},{id:"fish-audio/s2.1-pro",label:"Fish Audio S2.1 Pro",tier:"mid"},{id:"openai/tts-1-hd",label:"OpenAI TTS 1 HD",tier:"large"}],transcription:[{id:"spacexai/grok-stt",label:"Grok STT",tier:"small"},{id:"fish-audio/transcribe-1",label:"Fish Transcribe 1",tier:"small"},{id:"openai/gpt-4o-mini-transcribe",label:"4o mini Transcribe",tier:"small"},{id:"openai/gpt-4o-transcribe",label:"4o Transcribe",tier:"mid"},{id:"google/gemini-3.5-transcribe",label:"Gemini 3.5 Transcribe",tier:"mid"}]}}},c=Object.keys(u).map(e=>({id:e,...u[e]})),d={openai:{label:"OpenAI",apiKeyName:"OPENAI_API_KEY",keysAt:"https://platform.openai.com/api-keys",keyLooks:"sk-…",defaultTier:"small",suggestModels:[{id:"gpt-6-luna",label:"6 Luna",tier:"small",context:105e4,efforts:["none","low","medium","high","xhigh"]},{id:"gpt-6-sol",label:"6 Sol",tier:"mid",context:105e4,efforts:["none","low","medium","high","xhigh"]},{id:"gpt-6-astra",label:"6 Astra",tier:"large",context:105e4,efforts:["low","medium","high","xhigh"]}]},chatgpt:{label:"GPT Subscription",apiKeyName:"CHATGPT_SIGN_IN",signIn:!0,suggestModels:[{id:"gpt-6-luna",label:"6 Luna",tier:"small",context:272e3,efforts:["none","low","medium","high","xhigh"]},{id:"gpt-6-sol",label:"6 Sol",tier:"mid",context:272e3,efforts:["none","low","medium","high","xhigh"]},{id:"gpt-6-astra",label:"6 Astra",tier:"large",context:272e3,efforts:["low","medium","high","xhigh"]}]},anthropic:{label:"Claude",apiKeyName:"ANTHROPIC_API_KEY",keysAt:"https://platform.claude.com/settings/keys",keyLooks:"sk-ant-…",suggestModels:[{id:"claude-haiku-4-5",label:"Haiku 4.5",tier:"small",efforts:["none","minimal","low","medium","high","xhigh"]},{id:"claude-sonnet-5",label:"Sonnet 5",tier:"mid",context:1e6,efforts:["none","low","medium","high","xhigh"]},{id:"claude-opus-5-5",label:"Opus 5.5",tier:"large",context:1e6,efforts:["low","medium","high","xhigh"]},{id:"claude-fable-5-1",label:"Fable 5.1",tier:"large",efforts:["none","low","medium","high","xhigh"]}]},google:{label:"Gemini",apiKeyName:"GOOGLE_GENERATIVE_AI_API_KEY",keysAt:"https://aistudio.google.com/apikey",keyLooks:"AIza…",suggestModels:[{id:"gemini-3.5-flash-lite",label:"3.5 Flash Lite",tier:"small",context:1e6,efforts:["minimal","low","medium","high"]},{id:"gemini-3.8-flash",label:"3.8 Flash",tier:"mid",context:1e6,efforts:["low","medium","high"]}]},xai:{label:"xAI",apiKeyName:"XAI_API_KEY",keysAt:"https://console.x.ai",keyLooks:"xai-…",suggestModels:[{id:"grok-4.7",label:"Grok 4.7",tier:"large",context:5e5,efforts:["none","low","medium","high","xhigh"]}]},"vercel-ai-gateway":{label:"Vercel AI Gateway",apiKeyName:"AI_GATEWAY_API_KEY",keysAt:"https://vercel.com/docs/ai-gateway/authentication-and-byok/authentication",suggestModels:[{id:"zai/glm-5.3-flash",label:"GLM 5.3 Flash",tier:"small"},{id:"google/gemini-3.8-flash",label:"Gemini 3.8 Flash",tier:"small"},{id:"openai/gpt-6-luna",label:"GPT 6 Luna",tier:"small",context:105e4},{id:"zai/glm-5.3",label:"GLM 5.3",tier:"mid"},{id:"spacexai/grok-4.7",label:"Grok 4.7",tier:"mid",context:5e5},{id:"anthropic/claude-sonnet-5",label:"Claude Sonnet 5",tier:"mid"},{id:"openai/gpt-6-sol",label:"GPT 6 Sol",tier:"mid",context:105e4},{id:"moonshotai/kimi-k3",label:"Kimi K3",tier:"mid"},{id:"anthropic/claude-opus-5.5",label:"Claude Opus 5.5",tier:"large",context:1e6},{id:"openai/gpt-6-astra",label:"GPT 6 Astra",tier:"large",context:105e4}]},mistral:{label:"Mistral",apiKeyName:"MISTRAL_API_KEY",keysAt:"https://console.mistral.ai/api-keys",suggestModels:[{id:"ministral-8b-latest",label:"Ministral 8B",tier:"small",efforts:[]},{id:"mistral-small-latest",label:"Small",tier:"mid",efforts:["none","high"]},{id:"mistral-medium-latest",label:"Medium",tier:"large",efforts:["none","high"]},{id:"mistral-large-latest",label:"Large",tier:"large",efforts:[]}]},deepseek:{label:"DeepSeek",apiKeyName:"DEEPSEEK_API_KEY",keysAt:"https://platform.deepseek.com/api_keys",keyLooks:"sk-…",suggestModels:[{id:"deepseek-flash",label:"V4.1 Flash",tier:"small",context:1e6,efforts:["none","low","high","xhigh"]},{id:"deepseek-v4-pro",label:"V4 Pro",tier:"large",context:1e6,efforts:["none","low","high","xhigh"]}]},groq:{label:"Groq",apiKeyName:"GROQ_API_KEY",keysAt:"https://console.groq.com/keys",keyLooks:"gsk_…",suggestModels:[{id:"openai/gpt-oss-20b",label:"GPT OSS 20B",tier:"small",context:131072,efforts:["low","medium","high"]},{id:"openai/gpt-oss-120b",label:"GPT OSS 120B",tier:"mid",context:131072,efforts:["low","medium","high"]},{id:"llama-3.3-70b-versatile",label:"Llama 3.3 70B",tier:"mid",context:131072,efforts:[]}]},cerebras:{label:"Cerebras",apiKeyName:"CEREBRAS_API_KEY",keysAt:"https://cloud.cerebras.ai",keyLooks:"csk-…",suggestModels:[{id:"qwen-3.8-27b",label:"Qwen 3.8 27B",tier:"small",context:64e3},{id:"gpt-oss-120b",label:"GPT OSS 120B",tier:"mid",context:65536}]},togetherai:{label:"Together",apiKeyName:"TOGETHER_AI_API_KEY",keysAt:"https://api.together.ai/settings/api-keys",suggestModels:[{id:"Qwen/Qwen3.5-9B",label:"Qwen 3.5 9B",tier:"small",context:262144},{id:"zai-org/GLM-5.3-Flash",label:"GLM 5.3 Flash",tier:"small",context:1048575},{id:"openai/gpt-oss-120b",label:"GPT OSS 120B",tier:"mid",context:131072},{id:"deepseek-ai/DeepSeek-V4.1-Flash",label:"DeepSeek V4.1 Flash",tier:"mid",context:1e6},{id:"zai-org/GLM-5.3",label:"GLM 5.3",tier:"large",context:1048575},{id:"moonshotai/Kimi-K3",label:"Kimi K3",tier:"large",context:1048576}]},fireworks:{label:"Fireworks",apiKeyName:"FIREWORKS_API_KEY",keysAt:"https://app.fireworks.ai/account/api-keys",keyLooks:"fw_…",suggestModels:[{id:"accounts/fireworks/models/glm-5p3-flash",label:"GLM 5.3 Flash",tier:"small",context:1048576},{id:"accounts/fireworks/models/deepseek-v4p1-flash",label:"DeepSeek V4.1 Flash",tier:"mid",context:1048576},{id:"accounts/fireworks/models/minimax-m3",label:"MiniMax M3",tier:"mid",context:512e3},{id:"accounts/fireworks/models/glm-5p3",label:"GLM 5.3",tier:"large",context:1048576},{id:"accounts/fireworks/models/kimi-k3",label:"Kimi K3",tier:"large",context:1048576}]},deepinfra:{label:"DeepInfra",apiKeyName:"DEEPINFRA_API_KEY",keysAt:"https://deepinfra.com/dash/api_keys",suggestModels:[{id:"deepseek-ai/DeepSeek-V4-Flash-0731",label:"DeepSeek V4 Flash",tier:"small",context:1048576},{id:"deepseek-ai/DeepSeek-V4.1-Flash",label:"DeepSeek V4.1 Flash",tier:"mid",context:1048576},{id:"zai-org/GLM-5.2",label:"GLM 5.2",tier:"mid",context:1048576},{id:"zai-org/GLM-5.3",label:"GLM 5.3",tier:"large",context:1048576},{id:"moonshotai/Kimi-K3",label:"Kimi K3",tier:"large",context:1048576}]},cohere:{label:"Cohere",apiKeyName:"COHERE_API_KEY",keysAt:"https://dashboard.cohere.com/api-keys",suggestModels:[{id:"command-r7b-12-2024",label:"Command R7B",tier:"small",context:128e3},{id:"command-a-03-2025",label:"Command A",tier:"mid",context:256e3},{id:"command-a-plus-05-2026",label:"Command A+",tier:"large",context:128e3}]}},m=Object.keys(d).map(e=>({id:e,...d[e]}));e.s(["EFFORTS",0,o,"GATEWAY_OWNERS",0,{anthropic:"anthropic",openai:"openai",google:"google",spacexai:"xai",mistral:"mistral",deepseek:"deepseek",cohere:"cohere"},"GATEWAY_TEXT",0,"language","GATEWAY_TOOL_USE",0,"tool-use","MEDIA_MODEL_PROVIDERS",0,u,"MEDIA_MODEL_PROVIDER_LIST",0,c,"TEXT_MODEL_PROVIDERS",0,d,"TEXT_MODEL_PROVIDER_LIST",0,m,"canMakeKind",0,(e,t)=>(u[e]?.models[t]?.length??0)>0,"compactAtFor",0,e=>e&&e>0?Math.round(e*i.BOT_RUN.compactHeadroom):i.BOT_RUN.compactAt,"contextWindowOf",0,function(e,t,i=[]){if("vercel-ai-gateway"===e)return i.find(e=>e.id===t)?.contextWindow??null;let n=d[e].suggestModels;return n.find(e=>e.id===t)?.context??null},"effortSchema",0,l,"effortsOf",0,function(e,t,i=[]){if("vercel-ai-gateway"===e)return i.find(e=>e.id===t)?.efforts??null;let n=d[e].suggestModels;return n.find(e=>e.id===t)?.efforts??null},"parseMediaModel",0,function(e){let[t,...i]=(e??"").trim().split("/"),n=s.safeParse({provider:t,model:i.join("/")});return n.success?n.data:null},"parseTextModel",0,function(e){let[t,...i]=(e??"").trim().split("/"),n=r.safeParse({provider:t,model:i.join("/")});return n.success?n.data:null},"textModelProviderSchema",0,n,"textModelRefSchema",0,r])},431157,e=>{"use strict";var t=e.i(271645),i=e.i(574735),n=e.i(365420),r=e.i(146376),o=e.i(108868),l=e.i(667865),a=e.i(439957),s=e.i(229315),u=e.i(675606),c=e.i(56434),d=e.i(46420),m=e.i(584446),g=e.i(958408),p=e.i(673752),f=e.i(596296),h=e.i(944681),b=e.i(994814);e.s(["useHoverFloatingInteraction",0,function(e,E={}){let{enabled:v=!0,closeDelay:y=0,nodeId:S}=E,T="rootStore"in e?e.rootStore:e,k=T.useState("open"),x=T.useState("floatingElement"),P=T.useState("domReferenceElement"),{dataRef:w}=T.context,A=(0,d.useFloatingTree)(),I=(0,d.useFloatingParentNodeId)(),O=(0,p.useHoverInteractionSharedState)(T),M=(0,a.useTimeout)(),R=(0,l.useStableCallback)(()=>(0,h.isClickLikeOpenEvent)(w.current.openEvent?.type,O.interactedInside)),C=(0,l.useStableCallback)(()=>(0,h.isHoverOpenEvent)(w.current.openEvent?.type)),L=(0,l.useStableCallback)(()=>{(0,p.clearSafePolygonPointerEventsMutation)(O)});(0,r.useIsoLayoutEffect)(()=>{k||(O.pointerType=void 0,O.restTimeoutPending=!1,O.interactedInside=!1,L())},[k,O,L]),t.useEffect(()=>L,[L]),(0,r.useIsoLayoutEffect)(()=>{if(v&&k&&O.handleCloseOptions?.blockPointerEvents&&C()&&(0,s.isElement)(P)&&x){let e=(0,o.ownerDocument)(x),t=A?.nodesRef.current.find(e=>e.id===I)?.context?.elements.floating;t&&(t.style.pointerEvents="");let i=O.pointerEventsScopeElement!==x?O.pointerEventsScopeElement:null,n=t!==x?t:null,r=O.handleCloseOptions?.getScope?.()??i??n??P.closest("[data-rootownerid]")??e.body;return(0,p.applySafePolygonPointerEventsMutation)(O,{scopeElement:r,referenceElement:P,floatingElement:x}),()=>{L()}}},[v,k,P,x,O,C,A,I,L]),t.useEffect(()=>{if(v)return(0,n.mergeCleanups)(x&&(0,i.addEventListener)(x,"mouseenter",function(){O.openChangeTimeout.clear(),M.clear(),A?.events.off("floating.closed",t),L()}),x&&(0,i.addEventListener)(x,"mouseleave",function(i){if(e()&&A)return void A.events.on("floating.closed",t);if((0,b.isInsideEnabledTrigger)(i.relatedTarget,T.context.triggerElements))return;let n=w.current.floatingContext?.nodeId??S,r=i.relatedTarget;if(!(A&&n&&(0,s.isElement)(r)&&(0,g.getNodeChildren)(A.nodesRef.current,n,!1).some(e=>(0,m.contains)(e.context?.elements.floating,r)))){let e,t;if(O.handler)return void O.handler(i);L(),C()&&!R()&&(e=(0,h.getDelay)(y,"close",O.pointerType),t=()=>{T.setOpen(!1,(0,u.createChangeEventDetails)(c.REASONS.triggerHover,i)),A?.events.emit("floating.closed",i)},e?O.openChangeTimeout.start(e,t):(O.openChangeTimeout.clear(),t()))}}),x&&(0,i.addEventListener)(x,"pointerdown",function(e){let t=(0,m.getTarget)(e);if(!(0,f.isInteractiveElement)(t)){O.interactedInside=!1;return}O.interactedInside=t?.closest("[aria-haspopup]")!=null},!0),()=>{A?.events.off("floating.closed",t)});function e(){return!!(A&&I&&(0,g.getNodeChildren)(A.nodesRef.current,I).length>0)}function t(i){!A||!I||e()||M.start(0,()=>{A.events.off("floating.closed",t),T.setOpen(!1,(0,u.createChangeEventDetails)(c.REASONS.triggerHover,i)),A.events.emit("floating.closed",i)})}},[v,x,T,w,y,S,C,R,L,O,A,I,M])}])},673752,e=>{"use strict";var t=e.i(626300),i=e.i(388940),n=e.i(439957);e.i(596296);class r{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new n.Timeout,this.restTimeout=new n.Timeout,this.handleCloseOptions=void 0}static create(){return new r}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}let o=new WeakMap;function l(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&o.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),o.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}e.s(["applySafePolygonPointerEventsMutation",0,function(e,t){let{scopeElement:i,referenceElement:n,floatingElement:r}=t,a=o.get(i);a&&a!==e&&l(a),l(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=i,e.pointerEventsReferenceElement=n,e.pointerEventsFloatingElement=r,o.set(i,e),i.style.pointerEvents="none",n.style.pointerEvents="auto",r.style.pointerEvents="auto"},"clearSafePolygonPointerEventsMutation",0,l,"useHoverInteractionSharedState",0,function(e){let n=e.context.dataRef.current,o=(0,i.useRefWithInit)(()=>n.hoverInteractionState??r.create()).current;return n.hoverInteractionState||(n.hoverInteractionState=o),(0,t.useOnMount)(n.hoverInteractionState.disposeEffect),n.hoverInteractionState}])},872135,e=>{"use strict";var t=e.i(271645),i=e.i(174080),n=e.i(574735),r=e.i(365420),o=e.i(108868),l=e.i(667865),a=e.i(446265),s=e.i(229315),u=e.i(675606),c=e.i(56434),d=e.i(46420),m=e.i(584446),g=e.i(157940),p=e.i(673752),f=e.i(944681),h=e.i(994814);let b={current:null};e.s(["useHoverReferenceInteraction",0,function(e,E={}){let{enabled:v=!0,delay:y=0,handleClose:S=null,mouseOnly:T=!1,restMs:k=0,move:x=!0,triggerElementRef:P=b,externalTree:w,isActiveTrigger:A=!0,getHandleCloseContext:I,isClosing:O,shouldOpen:M,guardStaleOpen:R=!1}=E,C="rootStore"in e?e.rootStore:e,{dataRef:L,events:_}=C.context,G=(0,d.useFloatingTree)(w),D=(0,p.useHoverInteractionSharedState)(C),F=t.useRef(!1),N=(0,a.useValueAsRef)(S),K=(0,a.useValueAsRef)(y),V=(0,a.useValueAsRef)(k),H=(0,a.useValueAsRef)(v),Y=(0,a.useValueAsRef)(M),B=(0,a.useValueAsRef)(O),W=(0,l.useStableCallback)(()=>(0,f.isClickLikeOpenEvent)(L.current.openEvent?.type,D.interactedInside)),z=(0,l.useStableCallback)(()=>Y.current?.()!==!1),j=(0,l.useStableCallback)((e,t,i)=>{let n=C.context.triggerElements;return n.hasElement(t)?!e||!(0,m.contains)(e,t):!!(0,s.isElement)(i)&&n.hasMatchingElement(e=>(0,m.contains)(e,i))&&(!e||!(0,m.contains)(e,i))}),X=(0,l.useStableCallback)(()=>{D.handler&&((0,o.ownerDocument)(C.select("domReferenceElement")).removeEventListener("mousemove",D.handler),D.handler=void 0)}),$=(0,l.useStableCallback)(()=>{(0,p.clearSafePolygonPointerEventsMutation)(D)});return A&&(D.handleCloseOptions=S?.__options),t.useEffect(()=>X,[X]),t.useEffect(()=>{if(v)return _.on("openchange",e),()=>{_.off("openchange",e)};function e(e){e.open?F.current=!1:(F.current=e.reason===c.REASONS.triggerHover,X(),D.openChangeTimeout.clear(),D.restTimeout.clear(),D.blockMouseMove=!0,D.restTimeoutPending=!1)}},[v,_,D,X]),t.useEffect(()=>{if(!v)return;function e(t,i=!0){let n=(0,f.getDelay)(K.current,"close",D.pointerType);n?D.openChangeTimeout.start(n,()=>{C.setOpen(!1,(0,u.createChangeEventDetails)(c.REASONS.triggerHover,t)),G?.events.emit("floating.closed",t)}):i&&(D.openChangeTimeout.clear(),C.setOpen(!1,(0,u.createChangeEventDetails)(c.REASONS.triggerHover,t)),G?.events.emit("floating.closed",t))}let t=P.current??(A?C.select("domReferenceElement"):null);if(!(0,s.isElement)(t))return;function i(e){if(D.openChangeTimeout.clear(),D.blockMouseMove=!1,T&&!(0,g.isMouseLikePointerType)(D.pointerType))return;let t=(0,f.getRestMs)(V.current),i=(0,f.getDelay)(K.current,"open",D.pointerType),n=(0,m.getTarget)(e),r=e.currentTarget??null,o=C.select("domReferenceElement"),l=r;if((0,s.isElement)(n)&&!C.context.triggerElements.hasElement(n)){for(let e of C.context.triggerElements.elements())if((0,m.contains)(e,n)){l=e;break}}(0,s.isElement)(r)&&(0,s.isElement)(o)&&!C.context.triggerElements.hasElement(r)&&(0,m.contains)(r,o)&&(l=o);let a=null!=l&&j(o,l,n),d=C.select("open"),p=B.current?.()??"ending"===C.select("transitionStatus"),h=!d&&p&&F.current,b=!a&&(0,s.isElement)(l)&&(0,s.isElement)(o)&&(0,m.contains)(o,l)&&h,E=t>0&&!i,v=!d||a;if(a&&(d||h)||b){z()&&C.setOpen(!0,(0,u.createChangeEventDetails)(c.REASONS.triggerHover,e,l));return}!E&&(i?D.openChangeTimeout.start(i,()=>{v&&z()&&C.setOpen(!0,(0,u.createChangeEventDetails)(c.REASONS.triggerHover,e,l))}):v&&z()&&C.setOpen(!0,(0,u.createChangeEventDetails)(c.REASONS.triggerHover,e,l)))}function l(t){if(W())return void $();X();let i=C.select("domReferenceElement"),n=(0,o.ownerDocument)(i);D.restTimeout.clear(),D.restTimeoutPending=!1;let r=L.current.floatingContext??I?.();if(!(0,h.isInsideEnabledTrigger)(t.relatedTarget,C.context.triggerElements)){if(N.current&&r){C.select("open")||D.openChangeTimeout.clear();let i=P.current;D.handler=N.current({...r,tree:G,x:t.clientX,y:t.clientY,onClose(){$(),X(),H.current&&!W()&&i===C.select("domReferenceElement")&&e(t,!0)}}),n.addEventListener("mousemove",D.handler),D.handler(t);return}"touch"===D.pointerType&&(0,m.contains)(C.select("floatingElement"),t.relatedTarget)||e(t)}}let a=R?(0,n.addEventListener)(t,"mouseout",function(e){(0,m.contains)(t,e.relatedTarget)||(D.openChangeTimeout.clear(),D.restTimeout.clear(),D.restTimeoutPending=!1)}):void 0;return x?(0,r.mergeCleanups)((0,n.addEventListener)(t,"mousemove",i,{once:!0}),(0,n.addEventListener)(t,"mouseenter",i),(0,n.addEventListener)(t,"mouseleave",l),a):(0,r.mergeCleanups)((0,n.addEventListener)(t,"mouseenter",i),(0,n.addEventListener)(t,"mouseleave",l),a)},[X,$,L,K,C,v,N,D,A,j,W,T,x,V,P,G,H,I,B,z,R]),t.useMemo(()=>{if(v)return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=C.select("domReferenceElement"),o=C.select("open"),l=j(r,n,e.target);if(T&&!(0,g.isMouseLikePointerType)(D.pointerType))return;if(o&&l&&D.handleCloseOptions?.blockPointerEvents){let e=C.select("floatingElement");if(e){let t=D.handleCloseOptions?.getScope?.()??n.ownerDocument.body;(0,p.applySafePolygonPointerEventsMutation)(D,{scopeElement:t,referenceElement:n,floatingElement:e})}}let a=(0,f.getRestMs)(V.current);function s(){if(D.restTimeoutPending=!1,W())return;let e=C.select("open");!D.blockMouseMove&&(!e||l)&&z()&&C.setOpen(!0,(0,u.createChangeEventDetails)(c.REASONS.triggerHover,t,n))}(!o||l)&&0!==a&&(!l&&D.restTimeoutPending&&e.movementX**2+e.movementY**2<2||(D.restTimeout.clear(),"touch"===D.pointerType?i.flushSync(()=>{s()}):l&&o?s():(D.restTimeoutPending=!0,D.restTimeout.start(a,s))))}};function e(e){D.pointerType=e.pointerType}},[v,D,W,j,T,C,V,z])}])},944681,e=>{"use strict";var t=e.i(157940);e.s(["getDelay",0,function(e,i,n){let r=null==n||(0,t.isMouseLikePointerType)(n)?"function"==typeof e?e():e:0;return"number"==typeof r?r:r?.[i]},"getRestMs",0,function(e){return"function"==typeof e?e():e},"isClickLikeOpenEvent",0,function(e,t){return t||"click"===e||"mousedown"===e},"isHoverOpenEvent",0,function(e){return e?.includes("mouse")&&"mousedown"!==e}])},650316,e=>{"use strict";var t=e.i(229315),i=e.i(439957),n=e.i(584446),r=e.i(958408);let o=.1*.1;function l(e,t,i,n,r,o){return n>=t!=o>=t&&e<=(r-i)*(t-n)/(o-n)+i}function a(e,t,i,n,r,o,a,s,u,c){let d=!1;return l(e,t,i,n,r,o)&&(d=!d),l(e,t,r,o,a,s)&&(d=!d),l(e,t,a,s,u,c)&&(d=!d),l(e,t,u,c,i,n)&&(d=!d),d}function s(e,t,i,n,r,o){let l=Math.min(i,r),a=Math.max(i,r),s=Math.min(n,o),u=Math.max(n,o);return e>=l&&e<=a&&t>=s&&t<=u}e.s(["safePolygon",0,function(e={}){let{blockPointerEvents:l=!1}=e,u=new i.Timeout,c=({x:e,y:i,placement:l,elements:c,onClose:d,nodeId:m,tree:g})=>{let p=l?.split("-")[0],f=!1,h=null,b=null,E="u">typeof performance?performance.now():0;return function(l){u.clear();let v=c.domReference,y=c.floating;if(!v||!y||null==p||null==e||null==i)return;let{clientX:S,clientY:T}=l,k=(0,n.getTarget)(l),x="mouseleave"===l.type,P=(0,n.contains)(y,k),w=(0,n.contains)(v,k);if(P&&(f=!0,!x))return;if(w&&(f=!1,!x)){f=!0;return}if(x&&(0,t.isElement)(l.relatedTarget)&&(0,n.contains)(y,l.relatedTarget))return;function A(){return!!(g&&(0,r.getNodeChildren)(g.nodesRef.current,m).length>0)}function I(){A()||(u.clear(),d())}if(A())return;let O=v.getBoundingClientRect(),M=y.getBoundingClientRect(),R=e>M.right-M.width/2,C=i>M.bottom-M.height/2,L=M.width>O.width,_=M.height>O.height,G=(L?O:M).left,D=(L?O:M).right,F=(_?O:M).top,N=(_?O:M).bottom;if("top"===p&&i>=O.bottom-1||"bottom"===p&&i<=O.top+1||"left"===p&&e>=O.right-1||"right"===p&&e<=O.left+1)return void I();let K=!1;switch(p){case"top":K=s(S,T,G,O.top+1,D,M.bottom-1);break;case"bottom":K=s(S,T,G,M.top+1,D,O.bottom-1);break;case"left":K=s(S,T,M.right-1,N,O.left+1,F);break;case"right":K=s(S,T,O.right-1,N,M.left+1,F)}if(K)return;if(f&&(!(S>=O.x)||!(S<=O.x+O.width)||!(T>=O.y)||!(T<=O.y+O.height))||!x&&function(e,t){let i=performance.now(),n=i-E;if(null===h||null===b||0===n)return h=e,b=t,E=i,!1;let r=e-h,l=t-b;return h=e,b=t,E=i,r*r+l*l<n*n*o}(S,T))return void I();let V=!1;switch(p){case"top":{let t=L?.25:2,n=i+.5+1,r=R||L?M.bottom-.5:M.top,o=R?L?M.bottom-.5:M.top:M.bottom-.5;V=a(S,T,L||R?e+t:e-t,n,L?e-t:R?e+t:e-t,n,M.left,r,M.right,o);break}case"bottom":{let t=L?.25:2,n=i-.5,r=R||L?M.top+.5:M.bottom,o=R?L?M.top+.5:M.bottom:M.top+.5;V=a(S,T,L||R?e+t:e-t,n,L?e-t:R?e+t:e-t,n,M.left,r,M.right,o);break}case"left":{let t=_?.25:2,n=e+.5+1,r=C||_?M.right-.5:M.left,o=C?_?M.right-.5:M.left:M.right-.5;V=a(S,T,r,M.top,o,M.bottom,n,_||C?i+t:i-t,n,_?i-t:C?i+t:i-t);break}case"right":{let t=_?.25:2,n=e-.5,r=C||_?M.left+.5:M.right,o=C?_?M.left+.5:M.right:M.left+.5;V=a(S,T,n,_||C?i+t:i-t,n,_?i-t:C?i+t:i-t,r,M.top,o,M.bottom)}}V?f||u.start(40,I):I()}};return c.__options={...e,blockPointerEvents:l},c}])},994814,e=>{"use strict";var t=e.i(596296);e.s(["isInsideEnabledTrigger",()=>t.isTargetInsideEnabledTrigger])},96533,e=>{"use strict";e.i(247167);var t=e.i(733332),i=e.i(271645);let n=i.createContext(void 0);e.s(["useToolbarRootContext",0,function(e){let r=i.useContext(n);if(void 0===r&&!e)throw Error((0,t.default)(69));return r}])},346570,e=>{"use strict";var t=e.i(271645),i=e.i(174080),n=e.i(584446),r=e.i(383976),o=e.i(675606),l=e.i(56434);e.s(["useTriggerFocusGuards",0,function(e,a){let s=t.useRef(null);return{preFocusGuardRef:s,handlePreFocusGuardFocus:function(t){i.flushSync(()=>{e.setOpen(!1,(0,o.createChangeEventDetails)(l.REASONS.focusOut,t.nativeEvent,t.currentTarget))});let n=(0,r.getTabbableBeforeElement)(s.current);n?.focus()},handleFocusTargetFocus:function(t){let s=e.select("positionerElement");if(s&&(0,r.isOutsideEvent)(t,s))e.context.beforeContentFocusGuardRef.current?.focus();else{i.flushSync(()=>{e.setOpen(!1,(0,o.createChangeEventDetails)(l.REASONS.focusOut,t.nativeEvent,t.currentTarget))});let u=(0,r.getTabbableAfterElement)(e.context.triggerFocusTargetRef.current||a.current);for(;null!==u&&(0,n.contains)(s,u);){let e=u;if((u=(0,r.getNextTabbable)(u))===e)break}u?.focus()}}}}])},33383,e=>{"use strict";var t=e.i(271645),i=e.i(108868),n=e.i(145484),r=e.i(146376);e.s(["useAnchoredPopupScrollLock",0,function(e,o,l,a){let[s,u]=t.useState(!1);(0,r.useIsoLayoutEffect)(()=>{if(!e||!o||null==l)return void u(!1);let t=(0,i.ownerDocument)(l).documentElement.clientWidth,n=l.offsetWidth;u(t>0&&n>0&&n>=t-20)},[e,o,l]),(0,n.useScrollLock)(e&&(!o||s),a)}])},818390,e=>{"use strict";var t=e.i(271645),i=e.i(174080),n=e.i(144394),r=e.i(708445),o=e.i(146376),l=e.i(667865),a=e.i(108868),s=e.i(222640),u=e.i(956789),c=e.i(73364);let d="--popup-width",m="--popup-height";var g=e.i(667387);function p(e,t,i){let n=e.style.getPropertyValue(t);return e.style.setProperty(t,i),()=>{e.style.setProperty(t,n)}}function f(e,t){let i=[];for(let[n,r]of Object.entries(t))i.push(p(e,n,r));return i.length?()=>{i.forEach(e=>e())}:u.NOOP}function h(e,t){let i="auto"===t?"auto":`${t.width}px`,n="auto"===t?"auto":`${t.height}px`;e.style.setProperty(d,i),e.style.setProperty(m,n)}function b(e,t){let i="max-content"===t?"max-content":`${t.width}px`,n="max-content"===t?"max-content":`${t.height}px`;e.style.setProperty(g.positionerWidth,i),e.style.setProperty(g.positionerHeight,n)}var E=e.i(872855),v=e.i(333848),y=e.i(343084),S=e.i(909091);let T={name:"adaptiveOrigin",async fn(e){let{x:t,y:i,rects:{floating:n},elements:{floating:r},platform:o,strategy:l,placement:s}=e,u=(0,v.ownerWindow)(r),c=u.getComputedStyle(r);if("0s"===c.transitionDuration||""===c.transitionDuration)return{x:t,y:i,data:S.DEFAULT_SIDES};let d=await o.getOffsetParent?.(r),m={width:0,height:0};if("fixed"===l&&u?.visualViewport)m={width:u.visualViewport.width,height:u.visualViewport.height};else if(d===u){let e=(0,a.ownerDocument)(r);m={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await o.isElement?.(d)&&(m=await o.getDimensions(d));let g=(0,y.getSide)(s),p=t,f=i;return"left"===g&&(p=m.width-(t+n.width)),"top"===g&&(f=m.height-(i+n.height)),{x:p,y:f,data:{sideX:"left"===g?"right":S.DEFAULT_SIDES.sideX,sideY:"top"===g?"bottom":S.DEFAULT_SIDES.sideY}}}};var k=e.i(843476);e.s(["popupViewportStateMapping",0,{activationDirection:e=>e?{"data-activation-direction":e}:null},"usePopupViewport",0,function(e){let v,{store:y,side:S,children:x}=e,P=(0,E.useDirection)(),w=y.useState("activeTriggerElement"),A=y.useState("activeTriggerId"),I=y.useState("open"),O=y.useState("payload"),M=y.useState("mounted"),R=y.useState("popupElement"),C=y.useState("positionerElement"),L=function(e){let[i,n]=t.useState({current:e,previous:null});return Object.is(e,i.current)||n({current:e,previous:i.current}),i.previous}(I?w:null),_=function(e,i){let[n,r]=t.useState(0),l=t.useRef(e),a=t.useRef(i),s=t.useRef(!1);return(0,o.useIsoLayoutEffect)(()=>{let t=l.current,n=i!==a.current;e!==t?(r(e=>e+1),s.current=!n):s.current&&n&&(r(e=>e+1),s.current=!1),l.current=e,a.current=i},[e,i]),`${e??"current"}-${n}`}(A,O),G=t.useRef(null),[D,F]=t.useState(null),[N,K]=t.useState(null),V=t.useRef(null),H=t.useRef(null),Y=(0,s.useAnimationsFinished)(V,!0),B=(0,r.useAnimationFrame)(),W=t.useRef(null),[z,j]=t.useState(null),[X,$]=t.useState(!1);(0,o.useIsoLayoutEffect)(()=>(y.set("adaptiveOrigin",T),()=>{y.set("adaptiveOrigin",void 0)}),[y]);let U=(0,l.useStableCallback)(()=>{V.current?.style.setProperty("animation","none"),V.current?.style.setProperty("transition","none"),H.current?.style.setProperty("display","none")}),q=(0,l.useStableCallback)(e=>{V.current?.style.removeProperty("animation"),V.current?.style.removeProperty("transition"),H.current?.style.removeProperty("display"),e&&j(e)}),Q=(0,l.useStableCallback)(()=>{W.current?.abort();let e=new AbortController;W.current=e,Y(()=>{F(null),j(null),G.current=null},e.signal)}),J=t.useRef(null);(0,o.useIsoLayoutEffect)(()=>{I&&M||(J.current=null)},[I,M]),(0,o.useIsoLayoutEffect)(()=>{var e,t;let i,n,r,o;w&&L&&w!==L&&J.current!==w&&G.current&&(F(G.current),$(!0),K((e=L,t=w,i=e.getBoundingClientRect(),n=t.getBoundingClientRect(),r={x:i.left+i.width/2,y:i.top+i.height/2},{horizontal:(o={x:n.left+n.width/2,y:n.top+n.height/2}).x-r.x,vertical:o.y-r.y})),J.current=w)},[w,L]),(0,o.useIsoLayoutEffect)(()=>{null!=D&&(W.current?.abort(),$(!0),B.request(()=>{i.flushSync(()=>{$(!1)}),Q()}))},[_,D,Q,B]),(0,o.useIsoLayoutEffect)(()=>{let e=V.current;if(!e)return;let t=(0,a.ownerDocument)(e).createElement("div");for(let i of Array.from(e.childNodes))t.appendChild(i.cloneNode(!0));G.current=t});let Z=null!=D;return v=Z?(0,k.jsxs)(t.Fragment,{children:[(0,k.jsx)("div",{"data-previous":!0,inert:(0,n.inertValue)(!0),ref:H,style:{...z?{[d]:`${z.width}px`,[m]:`${z.height}px`}:null,position:"absolute"},"data-ending-style":X?void 0:""},"previous"),(0,k.jsx)("div",{"data-current":!0,ref:V,"data-starting-style":X?"":void 0,children:x},_)]}):(0,k.jsx)("div",{"data-current":!0,ref:V,children:x},_),(0,o.useIsoLayoutEffect)(()=>{let e=H.current;e&&D&&e.replaceChildren(...Array.from(D.childNodes))},[D]),!function(e){let{popupElement:i,positionerElement:n,content:a,mounted:E,onMeasureLayout:v,onMeasureLayoutComplete:y,side:S,direction:T}=e,k=(0,s.useAnimationsFinished)(i,!0),x=(0,r.useAnimationFrame)(),P=t.useRef(null),w=t.useRef(!0),A=t.useRef(u.NOOP),I=(0,l.useStableCallback)(v),O=(0,l.useStableCallback)(y),M=t.useMemo(()=>{var e,t;let i,n;return e=S,t=T,i="top"===e,n="left"===e||e===("rtl"===t?"inline-end":"inline-start"),i||n?{position:"absolute",[i?"bottom":"top"]:"0",[n?"right":"left"]:"0"}:u.EMPTY_OBJECT},[S,T]);(0,o.useIsoLayoutEffect)(()=>{if(!E){A.current=u.NOOP,w.current=!0,P.current=null;return}if(!i||!n)return;A.current=f(i,M),h(i,"auto");let e=p(i,"position","static"),t=p(i,"transform","none"),r=p(i,"scale","1"),o=f(n,{[g.availableWidth]:"max-content",[g.availableHeight]:"max-content"});function l(){e(),t(),o(),r()}if(I?.(),w.current||null===P.current){b(n,"max-content");let e=(0,c.getCssDimensions)(i);return P.current=e,b(n,e),l(),O?.(null,e),w.current=!1,()=>{A.current(),A.current=u.NOOP}}b(n,"max-content");let a=P.current,s=(0,c.getCssDimensions)(i);P.current=s,h(i,a),l(),O?.(a,s),b(n,s);let v=new AbortController;return x.request(()=>{h(i,s),k(()=>{i.style.setProperty(d,"auto"),i.style.setProperty(m,"auto")},v.signal)}),()=>{v.abort(),x.cancel(),A.current(),A.current=u.NOOP}},[a,i,n,k,x,E,I,O,M])}({popupElement:R,positionerElement:C,mounted:M,content:O,onMeasureLayout:U,onMeasureLayoutComplete:q,side:S,direction:P}),{children:v,state:{activationDirection:function(e){if(e){var t,i;return`${(t=e.horizontal)>5?"right":t<-5?"left":""} ${(i=e.vertical)>5?"down":i<-5?"up":""}`}}(N),transitioning:Z}}}],818390)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,421429,e=>{"use strict";var t=e.i(843476),a=e.i(647163);e.s(["Segmented",0,function({options:e,value:n,onChange:i,view:l=!1,className:s,...r}){return(0,t.jsx)("div",{role:"radiogroup",className:(0,a.cn)("flex w-fit gap-0.5 rounded-full bg-muted p-0.75",s),...r,children:e.map(e=>{let s=e.value===n;return(0,t.jsx)("button",{type:"button",role:"radio","aria-checked":s,title:e.title,onClick:()=>i(e.value),className:(0,a.cn)("flex h-7 items-center justify-center gap-1.5 rounded-full px-3 text-[12.5px] whitespace-nowrap transition-colors outline-none focus-visible:ring-3 focus-visible:ring-ring/50",!s&&"text-muted-foreground hover:text-foreground",s&&(l?"bg-background font-medium text-foreground shadow-sm dark:bg-input/60":"bg-brand font-medium text-brand-foreground")),children:e.label},e.value)})})}])},818125,e=>{"use strict";var t=e.i(843476),a=e.i(271645),n=e.i(798120),i=e.i(647163);e.s(["SiteIcon",0,function({host:e,className:l="size-3.5 rounded-full",fallback:s}){let[r,o]=(0,a.useState)(!1);return r?s??(0,t.jsx)("span",{"aria-hidden":!0,className:(0,i.cn)("grid shrink-0 place-items-center bg-foreground/10 text-[8.5px] font-medium text-foreground/70 uppercase",l),children:e[0]}):(0,t.jsx)("img",{src:n.queryKey.favicon(e),alt:"",onError:()=>o(!0),className:(0,i.cn)("shrink-0",l)})}])},412294,e=>{"use strict";var t=e.i(843476),a=e.i(271645),n=e.i(167881),i=e.i(6799),l=e.i(41533),s=e.i(95187);let r=(0,s.createServerReference)("7f4aa832655e7330d277ada21d01fd4143b2f250c7",s.callServer,void 0,s.findSourceMapURL,"startChatGptSignInAction");var o=e.i(609856);e.s(["ChatGptSignIn",0,function({variant:e}){let[s,c]=(0,a.useState)(!1),d=(0,a.useRef)(null),h=()=>{d.current&&clearInterval(d.current),d.current=null};(0,a.useEffect)(()=>h,[]);let[m,u]=(0,o.useServerAction)(r,{onOk:e=>{let t=window.open(e,"thursday-chatgpt","popup,width=520,height=720");if(!t)return void i.toast.add({type:"error",title:"The sign-in window was blocked",description:"Allow pop-ups for this page, then try again"});c(!0),h();let a=Date.now()+l.CHATGPT_SIGN_IN.waitMs;d.current=setInterval(()=>{!t.closed&&Date.now()<a||(h(),c(!1))},700)}});return(0,t.jsx)(n.Button,{variant:e,loading:u||s,onClick:()=>m(),children:"Sign in with ChatGPT"})}],412294)},458898,e=>{"use strict";var t=e.i(843476),a=e.i(271645),n=e.i(798120),i=e.i(421429),l=e.i(283653),s=e.i(265402);e.s(["EffortSwitch",0,function({provider:e,model:r,value:o,onChange:c}){var d;let h="vercel-ai-gateway"===e,{data:m}=(0,l.useServerRoute)(h&&r?n.queryKey.modelCatalog:null),u=!!(e&&r),p=u&&e?(0,s.effortsOf)(e,r,m??[]):null,f=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(!o||p?.includes(o)){f.current=null;return}p&&f.current!==o&&(f.current=o,c(null))},[o,p,c]);let[x,g]=(0,a.useState)(null);(0,a.useEffect)(()=>{g(e=>e&&e.step===o?null:e)},[o]);let v=x?x.step:o,b=p??[],y=!v||!b.includes(v);return(0,t.jsx)("div",{className:"min-w-0",title:u?null===(d=p)?"This model's steps are unknown":0===d.length?"This model has no effort to set":`${d.length} steps, plus Auto`:"Pick a model first",children:(0,t.jsx)(i.Segmented,{"aria-label":"Thinking effort",className:"max-w-full flex-wrap",options:[{value:"auto",label:"auto",title:"The model's own default"},...b.map(e=>({value:e,label:e,title:`Thinking effort ${e}`}))],value:y?"auto":v,onChange:e=>{let t="auto"===e?null:e;g({step:t}),c(t)}})})}])},146538,e=>{"use strict";var t=e.i(843476),a=e.i(689664),n=e.i(563707),i=e.i(152886),l=e.i(758925),s=e.i(271645),r=e.i(798120),o=e.i(167881),c=e.i(23750),d=e.i(59377),h=e.i(41533),m=e.i(734899),u=e.i(609856),p=e.i(283653),f=e.i(647163),x=e.i(265402),g=e.i(412294),v=e.i(611568),b=e.i(566595),y=e.i(7227),k=e.i(630374),w=e.i(421429),N=e.i(968978);let E={alibaba:[{d:"M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z"}],amazon:[{d:"M13.05 15.513h3.08c.214 0 .389.177.389.394v1.82a1.704 1.704 0 011.296 1.661c0 .943-.755 1.708-1.685 1.708-.931 0-1.686-.765-1.686-1.708 0-.807.554-1.484 1.297-1.662v-1.425h-2.69v4.663a.395.395 0 01-.188.338l-2.69 1.641a.385.385 0 01-.405-.002l-4.926-3.086a.395.395 0 01-.185-.336V16.3L2.196 14.87A.395.395 0 012 14.555L2 14.528V9.406c0-.14.073-.27.192-.34l2.465-1.462V4.448c0-.129.062-.249.165-.322l.021-.014L9.77 1.058a.385.385 0 01.407 0l2.69 1.675a.395.395 0 01.185.336V7.6h3.856V5.683a1.704 1.704 0 01-1.296-1.662c0-.943.755-1.708 1.685-1.708.931 0 1.685.765 1.685 1.708 0 .807-.553 1.484-1.296 1.662v2.311a.391.391 0 01-.389.394h-4.245v1.806h6.624a1.69 1.69 0 011.64-1.313c.93 0 1.685.764 1.685 1.707 0 .943-.754 1.708-1.685 1.708a1.69 1.69 0 01-1.64-1.314H13.05v1.937h4.953l.915 1.18a1.66 1.66 0 01.84-.227c.931 0 1.685.764 1.685 1.707 0 .943-.754 1.708-1.685 1.708-.93 0-1.685-.765-1.685-1.708 0-.346.102-.668.276-.937l-.724-.935H13.05v1.806zM9.973 1.856L7.93 3.122V6.09h-.778V3.604L5.435 4.669v2.945l2.11 1.36L9.712 7.61V5.334h.778V7.83c0 .136-.07.263-.184.335L7.963 9.638v2.081l1.422 1.009-.446.646-1.406-.998-1.53 1.005-.423-.66 1.605-1.055v-1.99L5.038 8.29l-2.26 1.34v1.676l1.972-1.189.398.677-2.37 1.429V14.3l2.166 1.258 2.27-1.368.397.677-2.176 1.311V19.3l1.876 1.175 2.365-1.426.398.678-2.017 1.216 1.918 1.201 2.298-1.403v-5.78l-4.758 2.893-.4-.675 5.158-3.136V3.289L9.972 1.856zM16.13 18.47a.913.913 0 00-.908.92c0 .507.406.918.908.918a.913.913 0 00.907-.919.913.913 0 00-.907-.92zm3.63-3.81a.913.913 0 00-.908.92c0 .508.406.92.907.92a.913.913 0 00.908-.92.913.913 0 00-.908-.92zm1.555-4.99a.913.913 0 00-.908.92c0 .507.407.918.908.918a.913.913 0 00.907-.919.913.913 0 00-.907-.92zM17.296 3.1a.913.913 0 00-.907.92c0 .508.406.92.907.92a.913.913 0 00.908-.92.913.913 0 00-.908-.92z"}],"arcee-ai":[{d:"M13.236 2.377L2.751 20.493H0L11.863 0l1.373 2.377zm3.554 6.156l-9.606 11.96H4.13L15.511 6.32l1.279 2.212zm6.908 11.96H14.05l8.406-2.151 1.242 2.15zm-3.42-5.922l-7.843 5.92H8.482l10.597-7.997 1.2 2.077z"}],bfl:[{d:"M0 20.683L12.01 2.5 24 20.683h-2.233L12.009 5.878 3.471 18.806h12.122l1.239 1.877H0z"},{d:"M8.069 16.724l2.073-3.115 2.074 3.115H8.069zM18.24 20.683l-5.668-8.707h2.177l5.686 8.707h-2.196zM19.74 11.676l2.13-3.19 2.13 3.19h-4.26z"}],bytedance:[{d:"M14.944 18.587l-1.704-.445V10.01l1.824-.462c1-.254 1.84-.461 1.88-.453.032 0 .056 2.235.056 4.972v4.973l-.176-.008c-.104 0-.952-.207-1.88-.446z"},{d:"M7 16.542c0-2.736.024-4.98.064-4.98.032-.008.872.2 1.88.454l1.816.461-.016 4.05-.024 4.049-1.632.422c-.896.23-1.736.445-1.856.469L7 21.523v-4.98z"},{d:"M19.24 12.477c0-9.03.008-9.515.144-9.475.072.024.784.207 1.576.406.792.207 1.576.405 1.744.445l.296.08-.016 8.56-.024 8.568-1.624.414c-.888.23-1.728.437-1.856.47l-.24.055v-9.523z"},{d:"M1 12.509c0-4.678.024-8.505.064-8.505.032 0 .872.207 1.872.454l1.824.461v7.582c0 4.16-.016 7.574-.032 7.574-.024 0-.872.215-1.88.47L1 21.013v-8.505z"}],"fish-audio":[{d:"M23.12 12.13v.62c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-.62c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44m-1.77.37v1.74c0 .24.2.44.44.44.25 0 .44-.2.44-.44V12.5c0-.24-.19-.44-.44-.44-.24 0-.44.2-.44.44m-1.76.43v1.99q0 .09.03.17.04.08.1.14.07.07.15.1t.17.03c.24 0 .44-.19.44-.44v-1.99c0-.25-.2-.44-.44-.44q-.09 0-.17.03t-.15.1q-.06.06-.1.14-.03.08-.03.17m-1.76.35v1.97c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-1.97c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44m-1.77.32v1.65c0 .25.2.45.44.45s.44-.2.44-.45V13.6c0-.25-.2-.45-.44-.45s-.44.2-.44.45m-1.76 1.26v.3q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3v-.3q-.01-.17-.14-.3-.13-.11-.31-.12-.17.01-.3.12-.13.13-.14.3M0 9.38v.19c0 .24.2.44.44.44.25 0 .44-.2.44-.44v-.19c0-.25-.19-.44-.44-.44-.24 0-.44.19-.44.44m1.82.15v.81c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-.81q0-.18-.13-.31t-.31-.13-.31.13-.13.31m1.81-.24v3.39q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V9.29q-.01-.17-.14-.3-.13-.11-.31-.12-.17.01-.3.12-.13.13-.14.3m1.83-.35v.22c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-.22q0-.18-.13-.31T5.9 8.5t-.31.13-.13.31m0 2.94v2.34c0 .25.19.44.44.44.24 0 .44-.19.44-.44v-2.34c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44m15.89-3.32V11c0 .25.2.44.44.44.25 0 .44-.19.44-.44V8.56c0-.24-.19-.44-.44-.44-.24 0-.44.2-.44.44m-1.76-.39v3.28q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V8.17c0-.25-.2-.44-.44-.44q-.09 0-.17.03t-.15.1q-.06.06-.1.14-.03.08-.03.17M17.83 8v3.9c0 .24.19.44.44.44.24 0 .44-.2.44-.44V8c0-.25-.2-.44-.44-.44-.25 0-.44.19-.44.44m-1.77.11v3.96c0 .25.2.44.44.44s.44-.19.44-.44V8.11c0-.25-.2-.44-.44-.44s-.44.19-.44.44m-1.76.27v5.03q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V8.38c0-.25-.2-.44-.45-.44-.24 0-.44.19-.44.44m-1.8.46v5.75q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V8.84c0-.25-.2-.44-.45-.44-.24 0-.44.19-.44.44m-1.76.76v5.52c0 .24.2.44.44.44.25 0 .44-.2.44-.44V9.6c0-.24-.19-.44-.44-.44-.24 0-.44.2-.44.44m-1.77 1.01v4.77q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3v-4.77q-.01-.17-.14-.3-.13-.11-.31-.12-.17.01-.3.12-.13.13-.14.3M23.12 9.6v1.22c0 .24.19.44.44.44.24 0 .44-.2.44-.44V9.6c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44M7.21 11.32V16c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-4.68q0-.18-.13-.31t-.31-.13-.31.13-.13.31"}],inception:[{d:"M14.767 1H7.884L1 7.883v6.884h6.884V7.883h6.883V1zM9.234 23h6.882L23 16.116V9.233h-6.884v6.883H9.234V23z"}],klingai:[{d:"M5.493 21.234c-1.112-1.451-1.109-4.263-.081-7.459l-4.557-2.63a1.683 1.683 0 01-.85-1.304 1.505 1.505 0 01.08-.622 13.18 13.18 0 011.037-2.255c3.476-6.02 10.916-8.23 16.619-4.938.46.266.82.67 1.081 1.184.785 1.545.685 4.096-.234 6.954l4.557 2.631c.339.196.596.492.736.832a1.53 1.53 0 01.034 1.093 13.146 13.146 0 01-1.037 2.255c-3.476 6.02-10.916 8.23-16.619 4.938a2.6 2.6 0 01-.766-.68zm11.096-6.615c-2.073 3.591-5.808 5.316-8.343 3.852-1.267-.731-1.994-2.122-2.145-3.778-.095-1.035.036-2.173.4-3.32.217-.684.517-1.37.902-2.039l.008-.014c2.073-3.59 5.808-5.315 8.343-3.852.633.366 1.13.895 1.49 1.54.986 1.772.922 4.415-.285 6.914-.111.23-.232.457-.362.683l-.008.014z"}],kwaipilot:[{d:"M11.765.03C5.327.03.108 5.25.108 11.686c0 3.514 1.556 6.665 4.015 8.804L9.89 8.665h6.451L9.31 23.083c.807.173 1.63.26 2.455.26 6.438 0 11.657-5.22 11.657-11.658S18.202.028 11.765.028V.03z"}],meta:[{d:"M6.897 4c1.915 0 3.516.932 5.43 3.376l.282-.373c.19-.246.383-.484.58-.71l.313-.35C14.588 4.788 15.792 4 17.225 4c1.273 0 2.469.557 3.491 1.516l.218.213c1.73 1.765 2.917 4.71 3.053 8.026l.011.392.002.25c0 1.501-.28 2.759-.818 3.7l-.14.23-.108.153c-.301.42-.664.758-1.086 1.009l-.265.142-.087.04a3.493 3.493 0 01-.302.118 4.117 4.117 0 01-1.33.208c-.524 0-.996-.067-1.438-.215-.614-.204-1.163-.56-1.726-1.116l-.227-.235c-.753-.812-1.534-1.976-2.493-3.586l-1.43-2.41-.544-.895-1.766 3.13-.343.592C7.597 19.156 6.227 20 4.356 20c-1.21 0-2.205-.42-2.936-1.182l-.168-.184c-.484-.573-.837-1.311-1.043-2.189l-.067-.32a8.69 8.69 0 01-.136-1.288L0 14.468c.002-.745.06-1.49.174-2.23l.1-.573c.298-1.53.828-2.958 1.536-4.157l.209-.34c1.177-1.83 2.789-3.053 4.615-3.16L6.897 4zm-.033 2.615l-.201.01c-.83.083-1.606.673-2.252 1.577l-.138.199-.01.018c-.67 1.017-1.185 2.378-1.456 3.845l-.004.022a12.591 12.591 0 00-.207 2.254l.002.188c.004.18.017.36.04.54l.043.291c.092.503.257.908.486 1.208l.117.137c.303.323.698.492 1.17.492 1.1 0 1.796-.676 3.696-3.641l2.175-3.4.454-.701-.139-.198C9.11 7.3 8.084 6.616 6.864 6.616zm10.196-.552l-.176.007c-.635.048-1.223.359-1.82.933l-.196.198c-.439.462-.887 1.064-1.367 1.807l.266.398c.18.274.362.56.55.858l.293.475 1.396 2.335.695 1.114c.583.926 1.03 1.6 1.408 2.082l.213.262c.282.326.529.54.777.673l.102.05c.227.1.457.138.718.138.176.002.35-.023.518-.073.338-.104.61-.32.813-.637l.095-.163.077-.162c.194-.459.29-1.06.29-1.785l-.006-.449c-.08-2.871-.938-5.372-2.2-6.798l-.176-.189c-.67-.683-1.444-1.074-2.27-1.074z"}],minimax:[{d:"M16.278 2c1.156 0 2.093.927 2.093 2.07v12.501a.74.74 0 00.744.709.74.74 0 00.743-.709V9.099a2.06 2.06 0 012.071-2.049A2.06 2.06 0 0124 9.1v6.561a.649.649 0 01-.652.645.649.649 0 01-.653-.645V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v7.472a2.037 2.037 0 01-2.048 2.026 2.037 2.037 0 01-2.048-2.026v-12.5a.785.785 0 00-.788-.753.785.785 0 00-.789.752l-.001 15.904A2.037 2.037 0 0113.441 22a2.037 2.037 0 01-2.048-2.026V18.04c0-.356.292-.645.652-.645.36 0 .652.289.652.645v1.934c0 .263.142.506.372.638.23.131.514.131.744 0a.734.734 0 00.372-.638V4.07c0-1.143.937-2.07 2.093-2.07zm-5.674 0c1.156 0 2.093.927 2.093 2.07v11.523a.648.648 0 01-.652.645.648.648 0 01-.652-.645V4.07a.785.785 0 00-.789-.78.785.785 0 00-.789.78v14.013a2.06 2.06 0 01-2.07 2.048 2.06 2.06 0 01-2.071-2.048V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v3.8a2.06 2.06 0 01-2.071 2.049A2.06 2.06 0 010 12.9v-1.378c0-.357.292-.646.652-.646.36 0 .653.29.653.646V12.9c0 .418.343.757.766.757s.766-.339.766-.757V9.099a2.06 2.06 0 012.07-2.048 2.06 2.06 0 012.071 2.048v8.984c0 .419.343.758.767.758.423 0 .766-.339.766-.758V4.07c0-1.143.937-2.07 2.093-2.07z"}],moonshotai:[{d:"M1.052 16.916l9.539 2.552a21.007 21.007 0 00.06 2.033l5.956 1.593a11.997 11.997 0 01-5.586.865l-.18-.016-.044-.004-.084-.009-.094-.01a11.605 11.605 0 01-.157-.02l-.107-.014-.11-.016a11.962 11.962 0 01-.32-.051l-.042-.008-.075-.013-.107-.02-.07-.015-.093-.019-.075-.016-.095-.02-.097-.023-.094-.022-.068-.017-.088-.022-.09-.024-.095-.025-.082-.023-.109-.03-.062-.02-.084-.025-.093-.028-.105-.034-.058-.019-.08-.026-.09-.031-.066-.024a6.293 6.293 0 01-.044-.015l-.068-.025-.101-.037-.057-.022-.08-.03-.087-.035-.088-.035-.079-.032-.095-.04-.063-.028-.063-.027a5.655 5.655 0 01-.041-.018l-.066-.03-.103-.047-.052-.024-.096-.046-.062-.03-.084-.04-.086-.044-.093-.047-.052-.027-.103-.055-.057-.03-.058-.032a6.49 6.49 0 01-.046-.026l-.094-.053-.06-.034-.051-.03-.072-.041-.082-.05-.093-.056-.052-.032-.084-.053-.061-.039-.079-.05-.07-.047-.053-.035a7.785 7.785 0 01-.054-.036l-.044-.03-.044-.03a6.066 6.066 0 01-.04-.028l-.057-.04-.076-.054-.069-.05-.074-.054-.056-.042-.076-.057-.076-.059-.086-.067-.045-.035-.064-.052-.074-.06-.089-.073-.046-.039-.046-.039a7.516 7.516 0 01-.043-.037l-.045-.04-.061-.053-.07-.062-.068-.06-.062-.058-.067-.062-.053-.05-.088-.084a13.28 13.28 0 01-.099-.097l-.029-.028-.041-.042-.069-.07-.05-.051-.05-.053a6.457 6.457 0 01-.168-.179l-.08-.088-.062-.07-.071-.08-.042-.049-.053-.062-.058-.068-.046-.056a7.175 7.175 0 01-.027-.033l-.045-.055-.066-.082-.041-.052-.05-.064-.02-.025a11.99 11.99 0 01-1.44-2.402zm-1.02-5.794l11.353 3.037a20.468 20.468 0 00-.469 2.011l10.817 2.894a12.076 12.076 0 01-1.845 2.005L.657 15.923l-.016-.046-.035-.104a11.965 11.965 0 01-.05-.153l-.007-.023a11.896 11.896 0 01-.207-.741l-.03-.126-.018-.08-.021-.097-.018-.081-.018-.09-.017-.084-.018-.094c-.026-.141-.05-.283-.071-.426l-.017-.118-.011-.083-.013-.102a12.01 12.01 0 01-.019-.161l-.005-.047a12.12 12.12 0 01-.034-2.145zm1.593-5.15l11.948 3.196c-.368.605-.705 1.231-1.01 1.875l11.295 3.022c-.142.82-.368 1.612-.668 2.365l-11.55-3.09L.124 10.26l.015-.1.008-.049.01-.067.015-.087.018-.098c.026-.148.056-.295.088-.442l.028-.124.02-.085.024-.097c.022-.09.045-.18.07-.268l.028-.102.023-.083.03-.1.025-.082.03-.096.026-.082.031-.095a11.896 11.896 0 011.01-2.232zm4.442-4.4L17.352 4.59a20.77 20.77 0 00-1.688 1.721l7.823 2.093c.267.852.442 1.744.513 2.665L2.106 5.213l.045-.065.027-.04.04-.055.046-.065.055-.076.054-.072.064-.086.05-.065.057-.073.055-.07.06-.074.055-.069.065-.077.054-.066.066-.077.053-.06.072-.082.053-.06.067-.074.054-.058.073-.078.058-.06.063-.067.168-.17.1-.098.059-.056.076-.071a12.084 12.084 0 012.272-1.677zM12.017 0h.097l.082.001.069.001.054.002.068.002.046.001.076.003.047.002.06.003.054.002.087.005.105.007.144.011.088.007.044.004.077.008.082.008.047.005.102.012.05.006.108.014.081.01.042.006.065.01.207.032.07.012.065.011.14.026.092.018.11.022.046.01.075.016.041.01L14.7.3l.042.01.065.015.049.012.071.017.096.024.112.03.113.03.113.032.05.015.07.02.078.024.073.023.05.016.05.016.076.025.099.033.102.036.048.017.064.023.093.034.11.041.116.045.1.04.047.02.06.024.041.018.063.026.04.018.057.025.11.048.1.046.074.035.075.036.06.028.092.046.091.045.102.052.053.028.049.026.046.024.06.033.041.022.052.029.088.05.106.06.087.051.057.034.053.032.096.059.088.055.098.062.036.024.064.041.084.056.04.027.062.042.062.043.023.017c.054.037.108.075.161.114l.083.06.065.048.056.043.086.065.082.064.04.03.05.041.086.069.079.065.085.071c.712.6 1.353 1.283 1.909 2.031L7.222.994l.062-.027.065-.028.081-.034.086-.035c.113-.045.227-.09.341-.131l.096-.035.093-.033.084-.03.096-.031c.087-.03.176-.058.264-.085l.091-.027.086-.025.102-.03.085-.023.1-.026L9.04.37l.09-.023.091-.022.095-.022.09-.02.098-.021.091-.02.095-.018.092-.018.1-.018.091-.016.098-.017.092-.014.097-.015.092-.013.102-.013.091-.012.105-.012.09-.01.105-.01c.093-.01.186-.018.28-.024l.106-.008.09-.005.11-.006.093-.004.1-.004.097-.002.099-.002.197-.002z"}],morph:[{d:"M7.941 2c.23 0 .452.073.638.21.186.136.325.328.397.55l.593 1.814c.073.221.212.413.397.55.186.136.409.21.638.21h2.791c.23 0 .452-.074.638-.21a1.11 1.11 0 00.397-.55l.594-1.815a1.11 1.11 0 01.397-.55c.185-.136.408-.209.637-.209h1.7c.23 0 .453.073.639.21.185.136.324.328.397.55l.652 1.994c.118.361.41.635.77.728l2.957.752c.236.06.446.199.596.394.15.195.23.436.231.684v9.376c0 .248-.081.488-.231.684a1.09 1.09 0 01-.595.394l-2.957.752a1.086 1.086 0 00-.477.263 1.114 1.114 0 00-.293.465l-.653 1.994a1.11 1.11 0 01-.396.55c-.186.136-.41.21-.638.21h-1.702c-.229 0-.452-.073-.637-.21a1.11 1.11 0 01-.397-.55l-.364-1.11a1.131 1.131 0 01.15-1.002 1.074 1.074 0 01.885-.462h2.85c.29 0 .567-.116.772-.325.204-.208.32-.49.32-.785V6.444c0-.294-.116-.577-.32-.785a1.08 1.08 0 00-.771-.326h-3.273c-.29 0-.567.117-.772.326-.204.208-.32.49-.32.785v7.778c0 .295-.114.578-.319.786a1.08 1.08 0 01-.771.325h-2.182a1.08 1.08 0 01-.771-.325 1.122 1.122 0 01-.32-.786V6.444c0-.294-.115-.577-.32-.785a1.081 1.081 0 00-.77-.326H5.454c-.29 0-.567.117-.772.326-.204.208-.32.49-.32.785v11.112c0 .294.116.577.32.785.205.209.482.326.772.326h2.85a1.075 1.075 0 01.885.461 1.122 1.122 0 01.15 1.001l-.364 1.112a1.11 1.11 0 01-.397.55c-.185.136-.408.209-.637.209H6.24c-.229 0-.452-.073-.638-.21a1.11 1.11 0 01-.397-.55l-.652-1.994a1.114 1.114 0 00-.294-.465 1.086 1.086 0 00-.477-.263l-2.956-.752a1.09 1.09 0 01-.595-.394A1.124 1.124 0 010 16.688V7.312c0-.248.081-.489.231-.684.15-.195.36-.334.595-.394l2.957-.753c.178-.045.342-.136.477-.263.134-.127.235-.287.293-.464l.653-1.995a1.11 1.11 0 01.397-.55C5.788 2.075 6.01 2 6.24 2h1.701z"}],nvidia:[{d:"M10.212 8.976V7.62c.127-.01.256-.017.388-.021 3.596-.117 5.957 3.184 5.957 3.184s-2.548 3.647-5.282 3.647a3.227 3.227 0 01-1.063-.175v-4.109c1.4.174 1.681.812 2.523 2.258l1.873-1.627a4.905 4.905 0 00-3.67-1.846 6.594 6.594 0 00-.729.044m0-4.476v2.025c.13-.01.259-.019.388-.024 5.002-.174 8.261 4.226 8.261 4.226s-3.743 4.69-7.643 4.69c-.338 0-.675-.031-1.007-.092v1.25c.278.038.558.057.838.057 3.629 0 6.253-1.91 8.794-4.169.421.347 2.146 1.193 2.501 1.564-2.416 2.083-8.048 3.763-11.24 3.763-.308 0-.603-.02-.894-.048V19.5H24v-15H10.21zm0 9.756v1.068c-3.356-.616-4.287-4.21-4.287-4.21a7.173 7.173 0 014.287-2.138v1.172h-.005a3.182 3.182 0 00-2.502 1.178s.615 2.276 2.507 2.931m-5.961-3.3c1.436-1.935 3.604-3.148 5.961-3.336V6.523C5.81 6.887 2 10.723 2 10.723s2.158 6.427 8.21 7.015v-1.166C5.77 16 4.25 10.958 4.25 10.958h-.002z"}],perplexity:[{d:"M19.785 0v7.272H22.5V17.62h-2.935V24l-7.037-6.194v6.145h-1.091v-6.152L4.392 24v-6.465H1.5V7.188h2.884V0l7.053 6.494V.19h1.09v6.49L19.786 0zm-7.257 9.044v7.319l5.946 5.234V14.44l-5.946-5.397zm-1.099-.08l-5.946 5.398v7.235l5.946-5.234V8.965zm8.136 7.58h1.844V8.349H13.46l6.105 5.54v2.655zm-8.982-8.28H2.59v8.195h1.8v-2.576l6.192-5.62zM5.475 2.476v4.71h5.115l-5.115-4.71zm13.219 0l-5.115 4.71h5.115v-4.71z"}],recraft:[{d:"M19.667 8.275c0-4.57-4.15-8.275-9.27-8.275-1.774 0-3.213 3.705-3.213 8.275 0 1.143.09 2.233.253 3.224H4.29L1 23h9.4v-6.447c5.117 0 9.266-3.707 9.266-8.275l.001-.002zm-9.27-6.76c.93 0 1.682 3.028 1.682 6.76 0 3.733-.752 6.76-1.681 6.76-.93 0-1.681-3.027-1.681-6.76 0-3.732.752-6.76 1.68-6.76z"},{d:"M19.848 16.552h-9.44L14.028 23h9.438l-3.618-6.448z"}],stepfun:[{d:"M12 0C5.372 0 0 5.372 0 12s5.372 12 12 12 12-5.372 12-12S18.628 0 12 0zM8.762 19.614H4.376v-4.386h4.386v4.386zm5.423 0H9.798v-4.386h4.387v4.386zm0-5.42H9.798V9.81h4.387v4.386zm0-5.418H9.798V4.39h4.387v4.386zm5.422-.004h-4.386V4.386h4.386v4.386z"}],tencent:[{d:"M12 0c6.627 0 12 5.373 12 12s-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0zm1.652 1.123l-.01-.001c.533.097 1.023.233 1.41.404 6.084 2.683 7.396 9.214 1.601 14.338a3.781 3.781 0 01-5.337-.328 3.654 3.654 0 01-.884-3.044c-1.934.6-3.295 2.305-3.524 4.45-.204 1.912.324 4.044 2.056 5.634l.245.067C10.1 22.876 11.036 23 12 23c6.075 0 11-4.925 11-11 0-5.513-4.056-10.08-9.348-10.877zM2.748 6.21c-.178.269-.348.536-.51.803l-.235.394.078-.167A10.957 10.957 0 001 12c0 4.919 3.228 9.083 7.682 10.49l.214.065C3.523 18.528 2.84 14.149 6.47 8.68A2.234 2.234 0 102.748 6.21zm10.157-5.172c4.408 1.33 3.61 5.41 2.447 6.924-.86 1.117-2.922 1.46-3.708 2.238-.666.657-1.077 1.462-1.212 2.291A5.303 5.303 0 0112 12.258a5.672 5.672 0 001.404-11.169 10.51 10.51 0 00-.5-.052z"}],voyage:[{d:"M5.407 0v.066a.974.974 0 00-.048.245c-.011.11-.016.208-.016.295 0 .339.043.715.128 1.13.097.405.274.912.531 1.524l7.125 16.366L20.011 3.39c.161-.404.333-.846.515-1.327.182-.48.273-.966.273-1.458a1.406 1.406 0 00-.096-.54V0H24v.066c-.204.207-.45.578-.74 1.114-.29.535-.606 1.195-.949 1.982L13.095 24h-1.287L3.075 3.965c-.204-.47-.418-.923-.644-1.36-.214-.437-.418-.83-.61-1.18-.194-.36-.365-.66-.515-.9A5.666 5.666 0 001 .064V0h4.407z"}],xiaomi:[{d:"M12 0C8.016 0 4.756.255 2.493 2.516.23 4.776 0 8.033 0 12.012c0 3.98.23 7.235 2.494 9.497C4.757 23.77 8.017 24 12 24c3.983 0 7.243-.23 9.506-2.491C23.77 19.247 24 15.99 24 12.012c0-3.984-.233-7.243-2.502-9.504C19.234.252 15.978 0 12 0zM4.906 7.405h5.624c1.47 0 3.007.068 3.764.827.746.746.827 2.233.83 3.676v4.54a.15.15 0 0 1-.152.147h-1.947a.15.15 0 0 1-.152-.148V11.83c-.002-.806-.048-1.634-.464-2.051-.358-.36-1.026-.441-1.72-.458H7.158a.15.15 0 0 0-.151.147v6.98a.15.15 0 0 1-.152.148H4.906a.15.15 0 0 1-.15-.148V7.554a.15.15 0 0 1 .15-.149zm12.131 0h1.949a.15.15 0 0 1 .15.15v8.892a.15.15 0 0 1-.15.148h-1.949a.15.15 0 0 1-.151-.148V7.554a.15.15 0 0 1 .151-.149zM8.92 10.948h2.046c.083 0 .15.066.15.147v5.352a.15.15 0 0 1-.15.148H8.92a.15.15 0 0 1-.152-.148v-5.352a.15.15 0 0 1 .152-.147Z"}],zai:[{d:"M12.105 2L9.927 4.953H.653L2.83 2h9.276zM23.254 19.048L21.078 22h-9.242l2.174-2.952h9.244zM24 2L9.264 22H0L14.736 2H24z"}]};function M({owner:e,className:a}){let n=x.GATEWAY_OWNERS[e];if(n)return(0,t.jsx)(N.ProviderIcon,{provider:n,className:a});let i=E[e];return i?(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:a,"aria-hidden":"true",children:i.map(e=>(0,t.jsx)("path",{d:e.d,opacity:e.opacity},e.d))}):null}function j({models:e,kind:a,value:n,loading:i,onPick:l}){let[r,d]=(0,s.useState)(!1),[h,m]=(0,s.useState)(""),[u,p]=(0,s.useState)("cheap"),[g,N]=(0,s.useState)(n),E=e.filter(e=>e.type===(a??x.GATEWAY_TEXT)),M=a?E:E.filter(e=>e.tags.includes(x.GATEWAY_TOOL_USE)),_=h.trim().toLowerCase(),C=(_?M.filter(e=>`${e.id} ${e.label}`.toLowerCase().includes(_)):M).slice().sort(z[u].compare);return(0,t.jsxs)(k.Dialog,{open:r,onOpenChange:e=>{d(e),e?N(n):m("")},children:[(0,t.jsxs)(k.DialogTrigger,{render:(0,t.jsx)("button",{type:"button","aria-label":"Model",className:(0,f.cn)(c.inputClassName,"relative flex items-center pr-8 text-left font-mono text-sm")}),children:[(0,t.jsx)("span",{className:(0,f.cn)("min-w-0 flex-1 truncate",!n&&"font-sans text-muted-foreground"),children:n||"Pick a model"}),(0,t.jsx)("span",{className:"absolute inset-y-0 right-0 flex w-8 items-center justify-center text-muted-foreground",children:i&&0===M.length?(0,t.jsx)(v.LoaderCircle,{className:"size-3.5 animate-spin"}):(0,t.jsx)(b.Search,{className:"size-3.5"})})]}),(0,t.jsx)(k.DialogContent,{className:"h-[min(40rem,calc(100vh-3rem))] gap-0 overflow-hidden p-0 sm:max-w-2xl",children:(0,t.jsxs)("div",{className:"flex h-full min-h-0 min-w-0 flex-col",children:[(0,t.jsxs)("div",{className:"shrink-0 space-y-1 px-6 pt-5 pb-4",children:[(0,t.jsxs)(k.DialogTitle,{className:"flex items-center gap-2.5 text-xl font-semibold",children:[(0,t.jsx)(y.VercelIcon,{className:"size-3.5"}),a?L[a]:"Text"," models"]}),(0,t.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:_?`${C.length} matching “${h.trim()}”`:a?`${M.length} on the gateway`:`${M.length} of ${E.length} on the gateway can call tools`})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3 border-t border-border/60 px-6 py-3",children:[(0,t.jsxs)("div",{className:"relative min-w-0 flex-1",children:[(0,t.jsx)(b.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)(c.Input,{autoFocus:!0,"aria-label":"Search models",placeholder:"name, id or provider",spellCheck:!1,value:h,onChange:e=>m(e.target.value),className:"h-8 pl-8 font-mono text-xs"})]}),(0,t.jsx)(w.Segmented,{"aria-label":"Sort",options:S,value:u,onChange:p})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-4 px-6 pb-1.5 font-mono text-[10px] tracking-wide text-muted-foreground/60",children:[(0,t.jsx)("span",{className:"min-w-0 flex-1",children:"model"}),(0,t.jsx)("span",{className:"w-28 text-right",children:"per 1M in / out"})]}),(0,t.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto border-t border-border/60",children:[C.map(e=>(0,t.jsx)(T,{model:e,picked:e.id===g,onPick:()=>N(e.id)},e.id)),0===C.length&&(0,t.jsxs)("div",{className:"flex flex-col items-start gap-2.5 p-10",children:[(0,t.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:_?`Nothing matches “${h.trim()}”.`:"Nothing on the shelf — search for an id."}),_&&(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)(o.Button,{size:"sm",onClick:()=>N(h.trim()),children:["Use “",h.trim(),"” as the id"]}),(0,t.jsx)(o.Button,{variant:"outline",size:"sm",onClick:()=>m(""),children:"Clear search"})]})]})]}),(0,t.jsxs)("div",{className:"flex h-14 shrink-0 items-center gap-3 border-t border-border/60 px-6",children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-xs text-muted-foreground",children:g||"Nothing picked — the field keeps what it has"}),(0,t.jsx)(o.Button,{variant:"outline",onClick:()=>d(!1),children:"Cancel"}),(0,t.jsx)(o.Button,{disabled:!g,onClick:()=>{l(g),d(!1)},children:"Use this model"})]})]})})]})}let L={image:"Image",video:"Video",speech:"Speech",transcription:"Transcription"},z={cheap:{label:"$↑",title:"Cheapest first",compare:(e,t)=>(e.price.in??1/0)-(t.price.in??1/0)},dear:{label:"$↓",title:"Dearest first",compare:(e,t)=>(t.price.in??-1)-(e.price.in??-1)},name:{label:"a–z",title:"By name",compare:(e,t)=>e.label.localeCompare(t.label)}},S=Object.keys(z).map(e=>({value:e,label:z[e].label,title:z[e].title})),_=e=>e>=1?e.toFixed(2):String(Number(e.toFixed(4)));function T({model:e,picked:n,onPick:i}){let{price:l}=e,s=null!==l.in||null!==l.out;return(0,t.jsxs)("button",{type:"button",onClick:i,className:(0,f.cn)("flex w-full items-center gap-4 border-b border-border/60 px-6 py-2.5 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",n?"bg-muted/40":"hover:bg-muted/50"),children:[(0,t.jsx)("span",{className:"grid size-[18px] shrink-0 place-items-center",children:(0,t.jsx)(M,{owner:e.owner,className:"size-[15px]"})}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,t.jsx)("span",{className:(0,f.cn)("truncate text-[13px]",n&&"font-medium"),children:e.label}),n&&(0,t.jsx)(a.Check,{className:"size-3.5 shrink-0"}),e.retiring&&(0,t.jsx)("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground",children:"retiring"})]}),(0,t.jsx)("span",{className:"block truncate font-mono text-[11px] text-muted-foreground",children:e.id})]}),(0,t.jsxs)("span",{className:"flex w-28 shrink-0 flex-col items-end",children:[(0,t.jsx)("span",{className:(0,f.cn)("font-mono text-xs",s||l.free?"text-foreground":"text-muted-foreground"),children:l.free?"free":null===l.in&&null===l.out?l.note??"—":`${null===l.in?"—":_(l.in)} / ${null===l.out?"—":_(l.out)}`}),s&&l.note&&(0,t.jsx)("span",{className:"font-mono text-[9px] text-muted-foreground/70",children:l.note})]})]})}function C({tier:e}){return(0,t.jsx)("span",{className:"shrink-0 rounded-full px-1.5 font-mono text-[9.5px] leading-4 font-normal text-muted-foreground ring-1 ring-border ring-inset",children:e})}function O({provider:e,onSaved:a}){let[n,i]=(0,s.useState)(""),[l,d]=(0,u.useServerAction)(m.setConfigAction,{onOk:()=>{(0,p.revalidate)(r.queryKey.llmModel),(0,p.revalidate)(r.queryKey.config),a()}});return e.signIn?(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("p",{className:"px-1 font-mono text-[11px] text-muted-foreground",children:"Runs on your plan once you sign in"}),(0,t.jsx)(g.ChatGptSignIn,{variant:"outline"})]}):(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(c.Input,{value:n,onChange:e=>i(e.target.value),placeholder:x.TEXT_MODEL_PROVIDERS[e.id].keyLooks??"Paste the key",spellCheck:!1,type:"password"}),(0,t.jsx)(o.Button,{variant:"outline",loading:d,disabled:n.trim().length<h.KEY_MIN,onClick:()=>l(e.apiKeyName,n),children:"Save key"})]})}e.s(["ModelPicker",0,function({provider:e,model:h,kind:m,unset:u,onChange:g,onUnset:v,compact:b=!1}){let{data:y=[],mutate:k}=(0,p.useServerRoute)(r.queryKey.llmModel),w=m?y.filter(e=>(0,x.canMakeKind)(e.id,m)):y,E=w.find(t=>t.id===e),[M,L]=(0,s.useState)(!1),[z,S]=(0,s.useState)(null),[_,T]=(0,s.useState)(""),V=w.find(t=>t.id===(z??e))??w[0],D=V?.id==="vercel-ai-gateway",A=(0,p.useServerRoute)(M&&D&&r.queryKey.modelCatalog),I=e=>m&&e?x.MEDIA_MODEL_PROVIDERS[e.id]?.models[m]??[]:e?.suggestModels??[],K=I(E).find(e=>e.id===h),R=e=>{V&&e.trim()&&(g({provider:V.id,model:e.trim()}),T(""),L(!1))};return(0,t.jsxs)(d.Popover,{open:M,onOpenChange:e=>{L(e),e||S(null)},children:[(0,t.jsxs)(d.PopoverTrigger,{render:b?(0,t.jsx)("button",{type:"button",className:"inline-flex h-5 max-w-64 items-center gap-1.5 rounded-full px-2 text-foreground/80 ring-1 ring-border outline-none ring-inset transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50"}):(0,t.jsx)(o.Button,{variant:"outline",className:"w-full min-w-0 justify-start gap-2 font-normal"}),children:[E?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(N.ProviderIcon,{provider:E.id,className:(0,f.cn)("shrink-0",b?"size-3":"size-4")}),!b&&(0,t.jsxs)("span",{className:"min-w-0 max-w-fit grow basis-0 truncate text-muted-foreground",children:[E.label,(0,t.jsx)("span",{className:"ml-2 text-muted-foreground/40",children:"·"})]}),(0,t.jsx)("span",{className:(0,f.cn)("truncate",!b&&"font-medium"),children:K?.label??(h||"Pick a model")})]}):(0,t.jsx)("span",{className:"truncate text-muted-foreground",children:u??(m?"Not picked":"App default")}),(0,t.jsx)(n.ChevronsUpDown,{className:(0,f.cn)("ml-auto shrink-0 text-muted-foreground",b?"size-2.5":"size-3.5")})]}),(0,t.jsxs)(d.PopoverContent,{align:"start",className:"flex w-[min(34rem,calc(100vw-2rem))] flex-row gap-0 overflow-hidden rounded-2xl p-0",children:[(0,t.jsxs)("div",{className:"flex max-h-80 w-48 shrink-0 flex-col gap-px overflow-y-auto border-r border-border/60 bg-muted/40 p-1.5",children:[v&&(0,t.jsxs)("button",{type:"button",onClick:()=>{v(),L(!1)},className:(0,f.cn)("mb-1 flex h-8.5 shrink-0 items-center gap-2 rounded-lg px-2 text-left text-[13px] outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",E?"hover:bg-muted/60":"bg-muted font-medium"),children:[(0,t.jsx)(i.CircleDashed,{className:"size-4 shrink-0 text-muted-foreground"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:u??(m?"Not picked":"App default")}),!E&&(0,t.jsx)(a.Check,{className:"size-3.5 shrink-0"})]}),w.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>S(e.id),className:(0,f.cn)("flex h-8.5 shrink-0 items-center gap-2 rounded-lg px-2 text-left text-[13px] outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",e.id===V?.id?"bg-muted font-medium":"hover:bg-muted/60",!e.hasKey&&"text-muted-foreground"),children:[(0,t.jsx)(N.ProviderIcon,{provider:e.id,className:"size-4 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.label}),!e.hasKey&&(0,t.jsx)(l.KeyRound,{className:"size-3 shrink-0"})]},e.id))]}),(0,t.jsx)("div",{className:"flex max-h-80 min-w-0 flex-1 flex-col gap-px overflow-y-auto p-1.5",children:V?V.hasKey?D&&!A.error?(0,t.jsxs)("div",{className:"space-y-2 p-2",children:[(0,t.jsx)("p",{className:"text-xs leading-relaxed text-muted-foreground",children:"Every model the gateway carries, with what each costs."}),(0,t.jsx)(j,{models:A.data??[],kind:m,value:V.id===e?h:"",loading:A.isLoading,onPick:R})]}):(0,t.jsxs)(t.Fragment,{children:[I(V).map(n=>{let i=V.id===e&&n.id===h;return(0,t.jsxs)("button",{type:"button",onClick:()=>R(n.id),className:(0,f.cn)("flex shrink-0 items-center gap-2 rounded-lg px-2.5 py-1.5 text-left outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",i?"bg-muted":"hover:bg-muted/60"),children:[(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1.5 text-[13px] font-medium",children:[(0,t.jsx)("span",{className:"truncate",children:n.label}),(0,t.jsx)(C,{tier:n.tier})]}),(0,t.jsx)("span",{className:"block truncate font-mono text-[10.5px] text-muted-foreground",children:n.id})]}),i&&(0,t.jsx)(a.Check,{className:"size-3.5 shrink-0"})]},n.id)}),(0,t.jsx)("form",{onSubmit:e=>{e.preventDefault(),R(_)},className:"mt-1 px-1 pb-1",children:(0,t.jsx)(c.Input,{value:_,onChange:e=>T(e.target.value),spellCheck:!1,"aria-label":"Model id",placeholder:A.error?"Could not read the catalog — type an id":"or type a model id",className:"h-8 font-mono text-xs"})})]}):(0,t.jsxs)("div",{className:"space-y-2 p-2",children:[(0,t.jsxs)("p",{className:"text-xs leading-relaxed text-muted-foreground",children:[V.label," has no key yet."]}),(0,t.jsx)(O,{provider:V,onSaved:()=>k()})]}):null})]})]})}],146538)},992112,413168,609507,149666,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","LiveFragmentSchema",0,i],413168);var l=e.i(265402);let s="sunny";e.s(["DEFAULT_PERSONA",0,s,"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 r={id:"openai",label:"OpenAI",apiKeyName:l.TEXT_MODEL_PROVIDERS.openai.apiKeyName},o=l.TEXT_MODEL_PROVIDERS.openai.suggestModels,c=t.z.string().max(a.COMMON_VALIDATE.prompt.max).default(""),d=t.z.object({voice:t.z.string().trim().min(1).max(128).default("marin"),persona:t.z.string().trim().min(1).max(64).default(s),stylePrompt:c,backendModel:t.z.string().trim().min(1).max(128).default(n),backendPrompt:c,reasoningEffort:l.effortSchema.nullable().default("low"),webSearch:t.z.boolean().default(!0),readSkills:t.z.boolean().default(!1)}),h=d.parse({});e.s(["LIVE_BACKEND_MODELS",0,o,"LIVE_DEFAULTS",0,h,"LIVE_PROVIDER",0,r,"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,d,"voiceSamplePath",0,e=>`/voices/${e}.ogg`],149666);var m=e.i(36174);let u=[r.apiKeyName],p={image:"IMAGE_MODEL",video:"VIDEO_MODEL",speech:"SPEECH_MODEL",transcription:"TRANSCRIPTION_MODEL"},f={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"}},x="EXA_API_KEY",g="DEFAULT_MODEL",v="DEFAULT_EFFORT",b={key:g,label:"Default model",hint:"What a bot thinks with until it picks its own",text:!0,choices:l.TEXT_MODEL_PROVIDER_LIST.flatMap(e=>e.suggestModels.map(t=>({value:`${e.id}/${t.id}`,label:`${e.label} \xb7 ${t.label}`,needs:e.apiKeyName})))},y={key:v,label:"Default effort",effortOf:g,choices:l.EFFORTS.map(e=>({value:e,label:e,needs:g}))},k=e=>u.includes(e.apiKeyName),w=e=>!!e.signIn||"vercel-ai-gateway"===e.id,N=e=>({key:e.apiKeyName,label:e.label,provider:e.id,signIn:e.signIn,keysAt:e.keysAt,keyLooks:e.keyLooks}),E=[{id:"voice",title:"voice",hint:"calls run on this key",section:"keys",require:"any",note:"required for calls",entries:l.TEXT_MODEL_PROVIDER_LIST.filter(k).map(N)},{id:"easy",title:"the easy ways",hint:"one sign-in or one key opens every bot",section:"keys",require:"none",entries:l.TEXT_MODEL_PROVIDER_LIST.filter(w).map(e=>({...N(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:l.TEXT_MODEL_PROVIDER_LIST.filter(e=>!k(e)&&!w(e)).map(N)},{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:x,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:m.TELEGRAM_TOKEN_KEY,label:"Telegram",site:"telegram.org",hint:"a bot token from @BotFather — then write to your bot, and allow it here"},{key:m.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:m.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:m.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:[b,y]},{id:"studio",title:"Studio",hint:"what a bot draws, films and speaks with — off until you pick one",section:"models",require:"none",entries:Object.keys(p).map(e=>({key:p[e],...f[e],kind:e,choices:l.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})))}))}];Object.fromEntries(E.flatMap(e=>e.entries).map(e=>[e.key,e])),E.flatMap(e=>e.entries.map(e=>e.key)),Object.fromEntries(E.flatMap(e=>e.entries).filter(e=>e.choices?.length).map(e=>[e.key,e.choices])),e.s(["CONFIG_GROUPS",0,E,"DEFAULT_EFFORT_KEY",0,v,"DEFAULT_MODEL_KEY",0,g,"EXA_API_KEY",0,x,"MEDIA_MODEL_KEYS",0,p,"groupSatisfied",0,function(e,t){return"none"===e.require||(e.requireKeys??e.entries.map(e=>e.key)).some(t)},"isConfigSet",0,function(e,t){return e?.some(e=>e.key===t&&e.set)??!1},"mediaModelWords",0,e=>`${"image"===e?"an":"a"} ${e} model`],992112)},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])},989366,e=>{"use strict";var t=e.i(55545),a=e.i(455024),n=e.i(99151),i=e.i(845110),l=e.i(281092),s=e.i(234662);e.s(["formatDistanceStrict",0,function(e,r,o){var c;let d,h,m=(0,a.getDefaultOptions)(),u=o?.locale??m.locale??t.defaultLocale,p=(h=(0,l.toDate)(e)-(0,l.toDate)(r))<0?-1:h>0?1:h;if(isNaN(p))throw RangeError("Invalid time value");let f=Object.assign({},o,{addSuffix:o?.addSuffix,comparison:p}),[x,g]=(0,i.normalizeDates)(o?.in,...p>0?[r,e]:[e,r]),v=(c=o?.roundingMethod??"round",e=>{let t=(c?Math[c]:Math.trunc)(e);return 0===t?0:t}),b=g.getTime()-x.getTime(),y=b/s.millisecondsInMinute,k=(b-((0,n.getTimezoneOffsetInMilliseconds)(g)-(0,n.getTimezoneOffsetInMilliseconds)(x)))/s.millisecondsInMinute,w=o?.unit;if("second"===(d=w||(y<1?"second":y<60?"minute":y<s.minutesInDay?"hour":k<s.minutesInMonth?"day":k<s.minutesInYear?"month":"year"))){let e=v(b/1e3);return u.formatDistance("xSeconds",e,f)}if("minute"===d){let e=v(y);return u.formatDistance("xMinutes",e,f)}if("hour"===d){let e=v(y/60);return u.formatDistance("xHours",e,f)}if("day"===d){let e=v(k/s.minutesInDay);return u.formatDistance("xDays",e,f)}if("month"===d){let e=v(k/s.minutesInMonth);return 12===e&&"month"!==w?u.formatDistance("xYears",1,f):u.formatDistance("xMonths",e,f)}else{let e=v(k/s.minutesInYear);return u.formatDistance("xYears",e,f)}}],989366)},493801,e=>{"use strict";var t=e.i(24708),a=e.i(989366);e.s(["formatDistanceToNowStrict",0,function(e,n){return(0,a.formatDistanceStrict)(e,(0,t.constructNow)(e),n)}])},375775,e=>{"use strict";var t=e.i(456420);let a={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};a.node;let n=(0,t.default)(a);e.s(["ArrowUpRight",0,n],375775)},422411,525335,e=>{"use strict";var t=e.i(456420);let a={name:"audio-lines",size:24,node:[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]]};a.node;let n=(0,t.default)(a);e.s(["AudioLines",0,n],422411);let i={name:"captions",size:24,node:[["rect",{width:"18",height:"14",x:"3",y:"5",rx:"2",ry:"2",key:"12ruh7"}],["path",{d:"M7 15h4M15 15h2M7 11h2M13 11h4",key:"1ueiar"}]],aliases:["subtitles"]};i.node;let l=(0,t.default)(i);e.s(["Captions",0,l],525335)},689664,e=>{"use strict";var t=e.i(643957);e.s(["Check",()=>t.default])},152886,e=>{"use strict";var t=e.i(456420);let a={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};a.node;let n=(0,t.default)(a);e.s(["CircleDashed",0,n],152886)},466787,e=>{"use strict";var t=e.i(755566);e.s(["TriangleAlert",()=>t.default])}]);
|