thursday-agent 0.10.0 → 0.12.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 +0 -1
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/routes-manifest.json +0 -6
- 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 +2 -2
- package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/artifact/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/keep-working/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/files/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/route.js.nft.json +1 -1
- 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/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.nft.json +1 -1
- package/.next/server/app/api/favicon/[host]/route.js.nft.json +1 -1
- package/.next/server/app/api/file/[...path]/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/catalog/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/credits/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/subscription/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/oauth/callback/route.js.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.nft.json +1 -1
- package/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/reach/route.js +13 -13
- package/.next/server/app/api/reach/route.js.nft.json +1 -1
- package/.next/server/app/api/routine/route.js.nft.json +1 -1
- package/.next/server/app/api/signins/route.js +1 -1
- package/.next/server/app/api/signins/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/[source]/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/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/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/text/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/tool-call/route.js +14 -15
- package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/files/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/route.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page/server-reference-manifest.json +1 -1
- 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 +56 -56
- package/.next/server/app/page.js +4 -4
- 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 +0 -1
- package/.next/server/chunks/[root-of-the-server]__014ydvq._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__0209ah4._.js +7 -5
- package/.next/server/chunks/[root-of-the-server]__04r4h-2._.js +4 -2
- package/.next/server/chunks/[root-of-the-server]__04wldw9._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0542v_d._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0cfszwn._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0gewdg9._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__0mrk2it._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0npn_pn._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0nr-v8s._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0rqgb17._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1-swlkw._.js +2 -2
- package/.next/server/chunks/[root-of-the-server]__12iddfq._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1ai5lme._.js +3 -3
- package/.next/server/chunks/[root-of-the-server]__1cjxw0-._.js +2 -2
- package/.next/server/chunks/{[root-of-the-server]__1fy2g82._.js → [root-of-the-server]__1k3j52n._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1kyjt5m._.js +3 -3
- package/.next/server/chunks/[root-of-the-server]__1tg5got._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1ygplx1._.js +1 -1
- package/.next/server/chunks/_05v8k21._.js +3 -1
- package/.next/server/chunks/_0awtznl._.js +1 -1
- package/.next/server/chunks/_0f6ts7z._.js +1 -1
- package/.next/server/chunks/_0na2fj1._.js +1 -1
- package/.next/server/chunks/_0x-ej3f._.js +17 -17
- package/.next/server/chunks/_10tkr26._.js +1 -1
- package/.next/server/chunks/_12-amdu._.js +2 -2
- package/.next/server/chunks/_15740dw._.js +60 -0
- package/.next/server/chunks/_1dc_d1q._.js +3 -3
- package/.next/server/chunks/_1i350l5._.js +3 -1
- package/.next/server/chunks/_1jc5g4p._.js +2 -2
- package/.next/server/chunks/_1jn-aep._.js +4 -4
- package/.next/server/chunks/_1m88lkh._.js +11 -11
- package/.next/server/chunks/_1ogqovh._.js +4 -4
- package/.next/server/chunks/_1taa4bs._.js +1 -1
- package/.next/server/chunks/_1tpr507._.js +1 -1
- package/.next/server/chunks/_1uuucy-._.js +1 -1
- package/.next/server/chunks/_1zxp-p6._.js +1 -1
- package/.next/server/chunks/features_0rfvely._.js +5 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0a967km._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__1se25x0._.js → [root-of-the-server]__0hpp3nw._.js} +29 -13
- package/.next/server/chunks/ssr/[root-of-the-server]__0tzekbl._.js +24 -60
- package/.next/server/chunks/ssr/{[root-of-the-server]__0tvavy9._.js → [root-of-the-server]__1iwyp1e._.js} +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1r77-88._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1w9hqq8._.js +1 -1
- package/.next/server/chunks/ssr/_026qnc9._.js +1 -1
- package/.next/server/chunks/ssr/{_173siic._.js → _02c7o30._.js} +2 -2
- package/.next/server/chunks/ssr/_097-ljd._.js +1 -1
- package/.next/server/chunks/ssr/_0euzzf8._.js +3 -0
- package/.next/server/chunks/ssr/{_1u2jw0i._.js → _0fbi6om._.js} +3 -3
- package/.next/server/chunks/ssr/_0fqhhwi._.js +1 -1
- package/.next/server/chunks/ssr/_0igfcax._.js +20 -0
- package/.next/server/chunks/ssr/_0ld9_qq._.js +1 -1
- package/.next/server/chunks/ssr/_0nvh1h9._.js +3 -0
- package/.next/server/chunks/ssr/_0qmpw35._.js +3 -0
- package/.next/server/chunks/ssr/{_1yk6yak._.js → _0rmaf32._.js} +2 -2
- package/.next/server/chunks/ssr/_0uv-qs4._.js +3 -0
- package/.next/server/chunks/ssr/{_1doidrw._.js → _10f-jib._.js} +2 -2
- package/.next/server/chunks/ssr/{_05rxyf9._.js → _10mo72m._.js} +2 -2
- package/.next/server/chunks/ssr/_12mijol._.js +11 -11
- package/.next/server/chunks/ssr/_132qkfz._.js +1 -1
- package/.next/server/chunks/ssr/_15zqt-t._.js +1 -1
- package/.next/server/chunks/ssr/_16gfxpn._.js +3 -0
- package/.next/server/chunks/ssr/_184327j._.js +1 -1
- package/.next/server/chunks/ssr/{_1ng831c._.js → _18ujhhq._.js} +2 -2
- package/.next/server/chunks/ssr/_1d423aj._.js +7 -5
- package/.next/server/chunks/ssr/_1lx6w_o._.js +67 -0
- package/.next/server/chunks/ssr/_1mqn9mc._.js +1 -1
- package/.next/server/chunks/ssr/_1neoj22._.js +1 -1
- package/.next/server/chunks/ssr/{_19n08g5._.js → _1ntpny5._.js} +2 -2
- package/.next/server/chunks/ssr/{_0bp-_fi._.js → _1o1g4uk._.js} +3 -3
- package/.next/server/chunks/ssr/_1xoch6f._.js +1 -1
- package/.next/server/chunks/ssr/_1yh5bj5._.js +1 -1
- package/.next/server/chunks/ssr/{_0tg0vf8._.js → _2008vmi._.js} +8 -8
- package/.next/server/chunks/ssr/{features_bot_1yr-_pm._.js → features_bot_1n1s7bh._.js} +2 -2
- package/.next/server/chunks/ssr/features_connectors_components_mcp-setting_tsx_0jmbgvp._.js +1 -1
- package/.next/server/chunks/ssr/features_memory_components_memory-setting_tsx_0oa43sw._.js +1 -1
- package/.next/server/chunks/ssr/features_routine_components_routine-setting_tsx_055fknz._.js +1 -1
- package/.next/server/chunks/ssr/features_workspace_00jz2hu._.js +1 -1
- package/.next/server/chunks/ssr/{node_modules_1n0h9sf._.js → node_modules_0-x0zxm._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1xzo2wn._.js → node_modules_00nrzz_._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0511ha-._.js → node_modules_01ed0yi._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_18woe20._.js → node_modules_01u4ea3._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1expacw._.js → node_modules_05b6e99._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0eb4rx7._.js → node_modules_07jp6tj._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0piws2a._.js → node_modules_0azd56x._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0f2k5l0._.js → node_modules_0b0iy01._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0wq4-ts._.js → node_modules_0fpnetd._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_11hbkuj._.js → node_modules_0ky76fz._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_048wmmj._.js → node_modules_0lautv3._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1dcbvfw._.js → node_modules_0m3_5ge._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0pk6i-e._.js → node_modules_0operbz._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1zkpek5._.js → node_modules_0ou0all._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_04t200t._.js → node_modules_0ucridu._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_08g12f-._.js → node_modules_0v_-uht._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1m2ho33._.js → node_modules_0yzmxfq._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1ksh9gy._.js → node_modules_19b0bir._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1qehmwm._.js → node_modules_1c2ikr9._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1_afpz7._.js → node_modules_1hv-j1l._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0cdu6jq._.js → node_modules_1iau_ea._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1zf46lp._.js → node_modules_1ma_y68._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0s1lwc9._.js → node_modules_1omg9xr._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1cxc8kn._.js → node_modules_1wgnj8q._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0zjqwz7._.js → node_modules_1wvf3oo._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1_ban4u._.js → node_modules_1z3sh11._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0avl8-1._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0tmjn9w._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_14oslro._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1_e8c3o._.js} +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +57 -57
- package/.next/static/chunks/09pkygbht7ki8.js +18 -0
- package/.next/static/chunks/0bm-nhblcmmj4.js +17 -0
- package/.next/static/chunks/{22shnca_6zfzs.js → 0hhza87hkbqaz.js} +1 -1
- package/.next/static/chunks/{19ojn4lomsk0r.js → 0mscosx0eh3ee.js} +1 -1
- package/.next/static/chunks/{3vynnr71ghvom.js → 0p50d-au6-3hx.js} +2 -2
- package/.next/static/chunks/{42890jqk049q1.js → 0p9jcyqkpq71f.js} +1 -1
- package/.next/static/chunks/{35kwn237o4wdn.js → 0qgn3u86jkbm7.js} +1 -1
- package/.next/static/chunks/{2d4z3er53ng8r.js → 0samf80yu2b17.js} +1 -1
- package/.next/static/chunks/{1pjygp7hqib6j.js → 1czfknd4luo6t.js} +1 -1
- package/.next/static/chunks/{09120tms63y21.js → 1jz8n0mhtdzr8.js} +1 -1
- package/.next/static/chunks/206laxm6maiz2.js +1 -0
- package/.next/static/chunks/{24dst4mgurbsh.js → 2_c7mu6x1lu49.js} +1 -1
- package/.next/static/chunks/{2ky81z-jgvasc.js → 2h-tlhb2ffhkk.js} +1 -1
- package/.next/static/chunks/{0oz3rs47yy3p8.js → 2i5_w8olnrvo0.js} +2 -2
- package/.next/static/chunks/{1mwee7xvitlp9.js → 2m8iqwc6sykln.js} +1 -1
- package/.next/static/chunks/{0o980477kfqez.js → 2r6xnyg7ezyxr.js} +1 -1
- package/.next/static/chunks/33fyp-byw48ju.js +65 -0
- package/.next/static/chunks/{2ndw4w4u2x51r.js → 35yd_27d9ylra.js} +1 -1
- package/.next/static/chunks/{3exjsi8pfdvzj.js → 3ag1i3__yl94f.js} +1 -1
- package/.next/static/chunks/{3obf9n3cxj99k.js → 3jvldk2wvwbge.js} +1 -1
- package/.next/static/chunks/3m_ejzg-xn21r.css +1 -0
- package/.next/static/chunks/{0w20wnnfrscq7.js → 3s-jpd3ky49-n.js} +1 -1
- package/.next/static/chunks/40ij3wsn3vt7h.js +1 -0
- package/README.md +1 -1
- package/app/api/thursday/tool-call/route.ts +1 -15
- package/docs/images/demo-still.jpg +0 -0
- package/docs/live-calls.md +19 -11
- package/features/ai/components/model-picker.tsx +8 -2
- package/features/ai/model.schema.ts +26 -0
- package/features/ai/prompts/live.prompt.ts +51 -26
- package/features/ai/prompts/prompt-helper.ts +1 -9
- package/features/ai/prompts/thursday.prompt.ts +8 -2
- package/features/bot/bot.run.ts +9 -3
- package/features/bot/bot.seed.ts +35 -91
- package/features/bot/components/bot-room.tsx +3 -12
- package/features/bot/components/room-list.tsx +1 -1
- package/features/bot/components/room-pill.tsx +44 -55
- package/features/bot/seed-bots.ts +2 -2
- package/features/config/components/config-badge.tsx +6 -0
- package/features/config/components/config-setting.tsx +20 -1
- package/features/config/components/models-badge.tsx +5 -7
- package/features/config/components/voice-key.tsx +24 -1
- package/features/config/config.const.ts +7 -0
- package/features/intro/components/intro.tsx +4 -19
- package/features/reach/reach.ts +2 -2
- package/features/settings/components/setting-ui.tsx +14 -5
- package/features/settings/components/settings.tsx +3 -1
- package/features/settings/settings.alert.ts +12 -11
- package/features/signins/signins.query.ts +66 -1
- package/features/thursday/components/side-captions.tsx +31 -8
- package/features/thursday/components/tab-state.tsx +5 -2
- package/features/thursday/components/thursday.tsx +158 -68
- package/features/thursday/components/write-line.tsx +37 -17
- package/features/thursday/thursday.action.ts +4 -20
- package/features/thursday/thursday.schema.ts +0 -9
- package/features/thursday/thursday.store.ts +11 -15
- package/features/thursday/thursday.text.ts +10 -8
- package/features/thursday/tool-line.ts +17 -6
- package/features/thursday/use-call-ring.ts +1 -5
- package/features/thursday/use-text-call.ts +37 -21
- package/features/thursday/use-thursday.ts +14 -44
- package/features/workspace/workspace.ts +4 -2
- package/guide/bots.md +12 -2
- package/guide/calls.md +9 -6
- package/guide/setup.md +4 -1
- package/lib/live/live.session.ts +0 -39
- package/package.json +1 -1
- package/scripts/live-session.test.mts +19 -26
- package/seed-skills/analyst/README.md +3 -4
- package/seed-skills/analyst/data-report/SKILL.md +5 -4
- package/seed-skills/insta/instagram/SKILL.md +5 -2
- package/seed-skills/insta/instagram/references/post.md +2 -2
- package/seed-skills/insta/instagram/scripts/compose.mjs +5 -1
- package/seed-skills/insta/instagram/scripts/inbox.mjs +5 -1
- package/seed-skills/insta/instagram/scripts/lib.mjs +12 -70
- package/seed-skills/insta/instagram/scripts/media.mjs +1 -1
- package/seed-skills/insta/instagram/scripts/profile.mjs +6 -2
- package/seed-skills/insta/instagram/scripts/read.mjs +5 -1
- package/seed-skills/insta/instagram/scripts/search.mjs +6 -2
- package/seed-skills/insta/instagram/scripts/sheet.mjs +31 -88
- package/seed-skills/insta/instagram/templates/carousel.html +1 -1
- package/seed-skills/tutor/picture-book/SKILL.md +16 -0
- package/seed-skills/tutor/picture-book/book/book.css +181 -0
- package/seed-skills/tutor/picture-book/book/book.html +33 -0
- package/seed-skills/tutor/picture-book/book/book.js +60 -0
- package/seed-skills/tutor/picture-book/references/picture-book.md +104 -0
- package/seed-skills/tutor/picture-book/scripts/book-video.mjs +177 -0
- package/seed-skills/tutor/picture-book/scripts/book.mjs +98 -0
- package/skills/browser/SKILL.md +13 -4
- package/skills/browser/references/scripts.md +55 -0
- package/{seed-skills/insta/instagram → skills/browser}/scripts/render.mjs +1 -1
- package/skills/browser/scripts/session.mjs +105 -0
- package/skills/browser/scripts/sheet.mjs +97 -0
- package/{seed-skills/insta/instagram → skills/browser}/scripts/webimage.mjs +1 -1
- package/skills/interactive-page/SKILL.md +4 -3
- package/{seed-skills/analyst/data-report → skills/interactive-page}/scripts/chart.mjs +3 -3
- package/skills/interactive-page/scripts/page.mjs +1 -0
- package/.next/server/app/api/probe/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/probe/route/build-manifest.json +0 -12
- package/.next/server/app/api/probe/route/server-reference-manifest.json +0 -4
- package/.next/server/app/api/probe/route.js +0 -10
- package/.next/server/app/api/probe/route.js.map +0 -5
- package/.next/server/app/api/probe/route.js.nft.json +0 -1
- package/.next/server/app/api/probe/route_client-reference-manifest.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__012s2o8._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0z0hc1f._.js +0 -4
- package/.next/server/chunks/[root-of-the-server]__1v7-zke._.js +0 -5
- package/.next/server/chunks/_0whlpyi._.js +0 -4
- package/.next/server/chunks/_next-internal_server_app_api_probe_route_actions_0cqd30j.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0cxqzfc._.js +0 -103
- package/.next/server/chunks/ssr/[root-of-the-server]__1-d2tgh._.js +0 -3
- package/.next/server/chunks/ssr/_070nv1_._.js +0 -3
- package/.next/server/chunks/ssr/_0hlxij-._.js +0 -3
- package/.next/server/chunks/ssr/_0p9pmxe._.js +0 -3
- package/.next/server/chunks/ssr/_0s41irp._.js +0 -3
- package/.next/server/chunks/ssr/_157yfrk._.js +0 -3
- package/.next/server/chunks/ssr/_17v-33v._.js +0 -20
- package/.next/server/chunks/ssr/_1flsjeo._.js +0 -3
- package/.next/static/chunks/03kgfyrli_0gz.js +0 -1
- package/.next/static/chunks/1p764d75_0lhv.js +0 -18
- package/.next/static/chunks/25zq8gzhbdsr7.js +0 -1
- package/.next/static/chunks/2qod5tqlpz8b7.js +0 -17
- package/.next/static/chunks/30skcjexa57zn.js +0 -101
- package/.next/static/chunks/3qq4o8w2rv_e9.css +0 -1
- package/lib/probe.server.ts +0 -17
- package/lib/probe.ts +0 -55
- package/seed-skills/mail/mail/SKILL.md +0 -37
- package/seed-skills/mail/mail/recipes/gmail.mjs +0 -448
- package/seed-skills/mail/mail/references/recipes.md +0 -55
- package/seed-skills/mail/mail/scripts/mail.mjs +0 -202
- /package/.next/static/{Ar5V4kMdL4CE1trx8anrH → QSe0rTdXU5kh5BBzr2XBB}/_buildManifest.js +0 -0
- /package/.next/static/{Ar5V4kMdL4CE1trx8anrH → QSe0rTdXU5kh5BBzr2XBB}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{Ar5V4kMdL4CE1trx8anrH → QSe0rTdXU5kh5BBzr2XBB}/_ssgManifest.js +0 -0
- /package/{seed-skills/insta/instagram → skills/browser}/scripts/image-size.mjs +0 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,818125,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(798120),n=e.i(647163);e.s(["SiteIcon",0,function({host:e,className:r="size-3.5 rounded-full",fallback:s}){let[o,l]=(0,a.useState)(!1);return o?s??(0,t.jsx)("span",{"aria-hidden":!0,className:(0,n.cn)("grid shrink-0 place-items-center bg-foreground/10 text-[8.5px] font-medium text-foreground/70 uppercase",r),children:e[0]}):(0,t.jsx)("img",{src:i.queryKey.favicon(e),alt:"",onError:()=>l(!0),className:(0,n.cn)("shrink-0",r)})},"hostOf",0,function(e){try{return new URL(e).hostname.replace(/^www\./,"")}catch{return null}}])},265402,e=>{"use strict";var t=e.i(681307),a=e.i(41533);let i=t.z.enum(["openai","chatgpt","anthropic","google","xai","vercel-ai-gateway","mistral","deepseek","groq","cerebras","togetherai","fireworks","deepinfra","cohere"]),n=t.z.object({provider:i,model:t.z.string().trim().min(1,"Model name is required").max(80)}),r=t.z.enum(["openai","google","xai","vercel-ai-gateway"]),s=t.z.object({provider:r,model:t.z.string().trim().min(1,"Model name is required").max(120)}),o={openai:{label:"Open AI",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"}]}}},l=Object.keys(o).map(e=>({id:e,...o[e]})),d={openai:{label:"Open AI",apiKeyName:"OPENAI_API_KEY",keysAt:"https://platform.openai.com/api-keys",keyLooks:"sk-…",suggestModels:[{id:"gpt-5.6-luna",label:"5.6 Luna",tier:"small",context:105e4},{id:"gpt-5.6-terra",label:"5.6 Terra",tier:"mid",context:105e4},{id:"gpt-5.6-sol",label:"5.6 Sol",tier:"large",context:105e4},{id:"gpt-6-astra",label:"6 Astra",tier:"large",context:105e4}]},chatgpt:{label:"GPT Subscription",apiKeyName:"CHATGPT_SIGN_IN",signIn:!0,suggestModels:[{id:"gpt-5.6-luna",label:"5.6 Luna",tier:"small",context:272e3},{id:"gpt-5.6-terra",label:"5.6 Terra",tier:"mid",context:272e3},{id:"gpt-5.6-sol",label:"5.6 Sol",tier:"large",context:272e3},{id:"gpt-6-astra",label:"6 Astra",tier:"large",context:272e3}]},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"},{id:"claude-sonnet-5",label:"Sonnet 5",tier:"mid",context:1e6},{id:"claude-opus-5",label:"Opus 5",tier:"large",context:1e6},{id:"claude-fable-5-1",label:"Fable 5.1",tier:"large"}]},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},{id:"gemini-3.8-flash",label:"3.8 Flash",tier:"mid",context:1e6}]},xai:{label:"xAI",apiKeyName:"XAI_API_KEY",keysAt:"https://console.x.ai",keyLooks:"xai-…",suggestModels:[{id:"grok-4.6",label:"Grok 4.6",tier:"large",context:5e5}]},"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-5.6-luna",label:"GPT 5.6 Luna",tier:"small",context:105e4},{id:"zai/glm-5.3",label:"GLM 5.3",tier:"mid"},{id:"spacexai/grok-4.6",label:"Grok 4.6",tier:"mid",context:5e5},{id:"anthropic/claude-sonnet-5",label:"Claude Sonnet 5",tier:"mid"},{id:"openai/gpt-5.6-terra",label:"GPT 5.6 Terra",tier:"mid",context:105e4},{id:"moonshotai/kimi-k3",label:"Kimi K3",tier:"mid"},{id:"openai/gpt-5.6-sol",label:"GPT 5.6 Sol",tier:"large",context:105e4},{id:"anthropic/claude-opus-5",label:"Claude Opus 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"},{id:"mistral-small-latest",label:"Small",tier:"mid"},{id:"mistral-medium-latest",label:"Medium",tier:"large"},{id:"mistral-large-latest",label:"Large",tier:"large"}]},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},{id:"deepseek-v4-pro",label:"V4 Pro",tier:"large",context:1e6}]},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},{id:"openai/gpt-oss-120b",label:"GPT OSS 120B",tier:"mid",context:131072},{id:"llama-3.3-70b-versatile",label:"Llama 3.3 70B",tier:"mid",context:131072}]},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}]}},u=Object.keys(d).map(e=>({id:e,...d[e]}));e.s(["GATEWAY_TEXT",0,"language","GATEWAY_TOOL_USE",0,"tool-use","MEDIA_MODEL_PROVIDERS",0,o,"MEDIA_MODEL_PROVIDER_LIST",0,l,"TEXT_MODEL_PROVIDERS",0,d,"TEXT_MODEL_PROVIDER_LIST",0,u,"canMakeKind",0,(e,t)=>(o[e]?.models[t]?.length??0)>0,"compactAtFor",0,e=>e&&e>0?Math.round(e*a.BOT_RUN.compactHeadroom):a.BOT_RUN.compactAt,"contextWindowOf",0,function(e,t,a=[]){if("vercel-ai-gateway"===e)return a.find(e=>e.id===t)?.contextWindow??null;let i=d[e].suggestModels;return i.find(e=>e.id===t)?.context??null},"parseMediaModel",0,function(e){let[t,...a]=(e??"").trim().split("/"),i=s.safeParse({provider:t,model:a.join("/")});return i.success?i.data:null},"parseTextModel",0,function(e){let[t,...a]=(e??"").trim().split("/"),i=n.safeParse({provider:t,model:a.join("/")});return i.success?i.data:null},"textModelProviderSchema",0,i,"textModelRefSchema",0,n])},213377,e=>{"use strict";e.s(["STUDIO_TOOLS",0,{generate_image:"generate_image",generate_speech:"generate_speech",transcribe:"transcribe",generate_video:"generate_video"},"TOOL_NAMES",0,{memory_recall:"memory_recall",memory_remember:"memory_remember",memory_forget:"memory_forget",memory_conversation:"memory_conversation",bash:"bash",write_file:"write_file",tool_search:"tool_search",tool_call:"tool_call",load_skill:"load_skill",web_search:"web_search",thread_start:"thread_start",thread_tell:"thread_tell",thread_answer:"thread_answer",thread_status:"thread_status",thread_cancel:"thread_cancel",thread_show:"thread_show",thread_seen:"thread_seen",routine:"routine",send_message:"send_message",thread_recall:"thread_recall",sign_in_use:"sign_in_use",sign_in_keep:"sign_in_keep",look_at:"look_at",end_call:"end_call",emote:"emote"}])},451888,e=>{"use strict";var t=e.i(504565),a=e.i(265402),i=e.i(245629),n=e.i(981203),r=e.i(864723),s=e.i(553429);let o=t.default.object({color:t.default.string().regex(/^(#[0-9a-fA-F]{6}|currentColor)$/,"Hex color").optional(),shape:t.default.enum(r.MARK_SHAPES).optional(),outline:t.default.boolean().optional(),paint:t.default.enum(r.MARK_PAINT_IDS).optional()}),l=t.default.string().max(n.COMMON_VALIDATE.prompt.max);function d(e){return(0,r.randomMarkFills)(e).map(e=>({...e,shape:r.MARK_SHAPES[Math.floor(Math.random()*r.MARK_SHAPES.length)]}))}let u=t.default.object({id:t.default.number(),name:t.default.string(),serverName:t.default.string()}),c=t.default.string().trim().transform(e=>e.replace(/\s+/g," ")).refine(e=>e.toLowerCase()!==s.ROOM_THURSDAY.toLowerCase(),"Thursday is reserved for the voice assistant.").pipe(t.default.string().min(1,"A name is required").max(n.COMMON_VALIDATE.name.max)),h=t.default.object({input:t.default.number(),output:t.default.number()});t.default.object({name:t.default.string(),description:t.default.string(),systemPrompt:t.default.string().nullish(),icon:o.nullish(),provider:a.textModelProviderSchema.nullish(),model:t.default.string().nullish(),compactAt:t.default.number().nullish(),disabled:t.default.boolean(),createdAt:i.DateLikeSchema,tools:u.array().default([]),tokens:h,lastJobAt:i.DateLikeSchema.nullish()}),t.default.object({name:c,description:t.default.string().trim().min(1,"Say what this bot is for").max(n.COMMON_VALIDATE.description.max),systemPrompt:l.optional(),icon:o.optional(),provider:a.textModelProviderSchema.nullish(),model:t.default.string().trim().max(80).nullish(),compactAt:t.default.coerce.number().int().min(8e3,"At least 8k").nullish(),disabled:t.default.boolean().optional(),toolIds:t.default.number().int().array().max(10).default([])}),t.default.object({file:t.default.string(),path:t.default.string(),line:t.default.string(),at:i.DateLikeSchema,bytes:t.default.number()});let m="Continue",p=t.default.discriminatedUnion("type",[t.default.object({type:t.default.literal("text"),text:t.default.string()}),t.default.object({type:t.default.literal("image"),src:t.default.string()})]),g=t.default.object({id:t.default.string(),seq:t.default.number(),bot:t.default.string().nullable(),parent:t.default.string().nullable(),to:t.default.string().nullish(),at:i.DateLikeSchema}),f=t.default.discriminatedUnion("kind",[g.extend({kind:t.default.literal("user"),text:t.default.string()}),g.extend({kind:t.default.literal("text"),text:t.default.string()}),g.extend({kind:t.default.literal("note"),text:t.default.string()}),g.extend({kind:t.default.literal("stop"),text:t.default.string()}),g.extend({kind:t.default.literal("tool"),callId:t.default.string(),name:t.default.string(),input:t.default.string(),note:t.default.string().nullish(),path:t.default.string().nullish()}),g.extend({kind:t.default.literal("tool-result"),callId:t.default.string(),name:t.default.string(),results:p.array(),more:t.default.boolean()}),g.extend({kind:t.default.literal("ask"),callId:t.default.string(),to:t.default.string(),text:t.default.string(),question:t.default.boolean().optional()})]),b=t.default.object({question:t.default.string(),messageId:t.default.string().optional(),bot:t.default.string().optional(),options:t.default.string().array(),auto:t.default.boolean()});t.default.object({id:t.default.string(),bot:t.default.string(),label:t.default.string(),request:t.default.string(),status:t.default.enum(["running","waiting","done","cancelled"]),outcome:t.default.string().nullable(),ask:b.nullable(),seen:t.default.boolean(),routineId:t.default.string().nullable(),tokens:h,contextTokens:t.default.number(),contextBudget:t.default.number(),createdAt:i.DateLikeSchema,updatedAt:i.DateLikeSchema,lines:f.array(),room:s.RoomViewSchema}),e.s(["DEFAULT_BOT",0,{name:"Jarvis",description:"Anything — this computer, a browser, the web, files, services",systemPrompt:null,icon:{color:"#14B8A6",shape:"squircle"},provider:null,model:null,disabled:!1,compactAt:null},"MAX_PINNED_TOOLS",0,10,"THREAD_CONTINUE",0,m,"isAppStop",0,e=>{let t=e?.options??[];return!e?.messageId&&1===t.length&&t[0]===m},"needsThreadReply",0,e=>"waiting"===e.status||e.room.questions.length>0,"randomBotIcon",0,()=>d(1)[0],"randomBotIcons",0,d])},742978,463625,e=>{"use strict";var t=e.i(95187);let a=(0,t.createServerReference)("7fe1ddd9593ef1af9741fdc148628d6d4ea18adf40",t.callServer,void 0,t.findSourceMapURL,"createSeedBotsAction");e.s(["createSeedBotsAction",0,a],742978);var i=e.i(41533),n=e.i(213377),r=e.i(451888);let s=[{name:"Jarvis",description:"Anything nobody else is for — orders, bookings, forms, the web, this computer",hint:"Takes whatever nobody else is for",systemPrompt:""},{name:"Planner",description:"Any job that needs a team — decides what done means, assigns the parts, checks them, signs off",hint:"Runs the job: assigns, checks, decides",systemPrompt:`You run the team the way a chief executive runs a company: accountable for the result, not the one who produces it. A job comes in as a request and goes out as one finished result. Between the two you decide what done means, give each part to whoever on Bots is best placed for it, hold every part to what it was asked for, and make the calls nobody else can. A part is yours only when nobody on Bots fits it.
|
|
2
|
+
|
|
3
|
+
**Decide what done means, first.** Before anything is handed out, send Thursday one \`${n.TOOL_NAMES.send_message}\` question holding everything only the user can decide — which one, how much, by when, in what form — with options where they fit. What you can find out, or the request already says, is not asked. After that, a doubt a reasonable choice settles is yours: decide, write \`Ruling: <what> — <why>\` in the plan, and keep going. Only what cannot be undone goes back to Thursday.
|
|
4
|
+
|
|
5
|
+
**Staff it to its size.** A job one bot can do goes whole to that bot. Split only where parts run at the same time or need different strengths, and never let two parts write the same file at once.
|
|
6
|
+
|
|
7
|
+
**The plan is the one record.** \`plan.md\` in the job's scratch folder holds the goal; the facts every part needs (the user's answers, names, dates, units); one line per part, \`- [ ] <what exists when done, and how it will be checked> — <who> → <path>\`; then rulings and misses. Read it before every decision and update it as each part lands. Send the checklist to Thursday as a \`message\` once it is written.
|
|
8
|
+
|
|
9
|
+
**A brief is an assignment finished without asking you.** The goal and how it will be judged; the facts from \`plan.md\` it needs; the files to read; where to write — the part's own folder in scratch, the bot's own folder under \`artifacts/\` for what the user opens, \`projects/\` for code that outlives the job; what not to touch because another part owns it; what to send back — a few lines and the paths. Send every part that waits on nothing in the same step; a part that needs another's output goes out once that file exists.
|
|
10
|
+
|
|
11
|
+
**Judge the work, not the report.** Open what a part wrote and test it against its line — values, units, names and dates agreeing across parts — then tick it. Short or wrong: back to the same bot once, saying exactly what. Short again: another bot or another way, never the same brief twice. A third miss stops that part: ask Thursday how to go on, with what was tried. Every miss goes in the plan.
|
|
12
|
+
|
|
13
|
+
**Your memory is how the team gets better.** Keep a file for each: which bot did which kind of part well or badly; briefs that worked; jobs that come back and where their results live. Date each line, merge rather than add, delete what proved wrong. Never a job's contents — those stay in its files. The team changes: a bot you remember may be gone, so staff from Bots as it is now.
|
|
14
|
+
|
|
15
|
+
**Sign off on one result.** Put the deliverable together from the part files. Your final text says what was done, where it is, who did which part, the rulings you made, and what is unverified and why.`},{name:"Analyst",description:"Answers with numbers — costs, markets, trends, companies, which to pick — cited and charted",hint:"Finds the numbers and draws them",systemPrompt:`Questions answered with numbers are yours — what something costs, how big a market is, how a figure moved and why, how a company is doing, which option to pick, whether to buy now or wait.
|
|
16
|
+
|
|
17
|
+
**Answer first.** Whoever asked reads your first lines and may stop there, so they hold the answer and the two or three numbers behind it; everything after supports them. A title says the finding ("Rent rose faster than pay"), not the topic.
|
|
18
|
+
|
|
19
|
+
**Size the answer to the ask.** A few numbers are your final text and nothing more. A trend, a comparison, or more rows than a few lines hold is one self-contained page in your folder under \`artifacts/\`, written in minutes: the finding, then the charts and tables, every figure with where it came from — one file, never a report beside a chart beside a spreadsheet. A built page, with controls that keep state, is only for a reader who will work the numbers themselves.
|
|
20
|
+
|
|
21
|
+
**Work by a skill.** Before collecting anything, load the method on your Skills list for reports with numbers: it holds the form each kind of question wants, and scripts that fetch series and draw charts, so a chart or a data table is never typed by hand. When nothing there fits the kind of work — a statistical test, a valuation model — find one to install.
|
|
22
|
+
|
|
23
|
+
**Get the real numbers.** From where they are published — a filing, an official statistic, the seller's own page, a file you were given — never from memory or an article quoting them, and a trend as the series from its source, not one value from today. Compare like with like: the same period, definition and currency, with the rate and its date when you convert.
|
|
24
|
+
|
|
25
|
+
**Show your working.** A number you derive — a share, a growth rate, a market size — shows its arithmetic; an estimate is a range, with the input it depends on most.
|
|
26
|
+
|
|
27
|
+
**Mark what is not solid.** A figure you could not confirm, a source older than the question, two sources that disagree: say so beside it.
|
|
28
|
+
|
|
29
|
+
**One bash call per step.** Fetch every series in one call, draw every chart in the next.
|
|
30
|
+
|
|
31
|
+
Your final text gives the answer with its numbers, what is not solid, and the page's path when there is one.`},{name:"Tutor",description:"Explains anything simply, as a picture book — a picture and a line or two a page — or a video of it",hint:"Explains anything like a picture book",systemPrompt:`Explaining is yours — anything someone wants to understand, told so that a person who knows nothing about it follows every step. It ends as a picture book in your folder under \`artifacts/\`: one picture and a line or two a page, as a page to swipe through, a PDF, or a video that reads itself aloud. Load your own \`picture-book\` skill before any step: it holds how a page is written, where each picture comes from, and the scripts that print and voice the book.
|
|
32
|
+
|
|
33
|
+
**Ask which one, once.** When the request does not say a page, a PDF or a video, send Thursday one \`${n.TOOL_NAMES.send_message}\` question before writing anything, with the options \`A page\`, \`A PDF\` and \`A video that reads itself\`. A video spends a speech model on every page.
|
|
34
|
+
|
|
35
|
+
**Simple, never wrong.** Read what you explain from where it is stated — the official page, a textbook, the thing itself — before the first page. A picture that simplifies still shows how it really works; a comparison that would mislead is left out.
|
|
36
|
+
|
|
37
|
+
**Start where they are.** Your memory keeps what the user already knows and how they liked being taught: the level, a picture style, how many pages. Read it before the story, and after a book keep what this one showed, dated.
|
|
38
|
+
|
|
39
|
+
Your final text gives the path, and in one sentence the idea the book leaves them with.`},{name:"Marketer",description:"Marketing — positioning, copy, launch plans, posts, ads, emails, SEO and competitor reviews",hint:"Works out what to say, to whom, and where",systemPrompt:`Marketing work is yours — positioning, page copy, a launch plan, posts, ads, emails, an SEO or competitor review — and it ends as the thing itself in your folder under \`artifacts/\`, ready to paste, post or send.
|
|
40
|
+
|
|
41
|
+
**Work by a skill.** Copy, SEO, launches, social posts, ads, emails, competitors and pricing each have written methods worth following. Start from the closest one on your Skills list and load it; only when nothing there fits, find one to install, then load it and follow it. Install only what this job needs.
|
|
42
|
+
|
|
43
|
+
**Ground every claim.** Competitors, prices, search terms and what people say about the problem come from pages you opened, with the link beside them. What you could not check is marked as a guess.
|
|
44
|
+
|
|
45
|
+
**Hand off what is not marketing work.** Posting, publishing and sending belong to whoever on Bots does that; when nobody does, deliver it ready to post and say where it goes.
|
|
46
|
+
|
|
47
|
+
Your final text gives the file's path, the angle you would lead with, and what to test first.`},{name:"Insta",description:"Instagram end to end — studies accounts that work, builds posts like theirs, posts them, reads DMs",hint:"Posts like the best in a niche, reads DMs",systemPrompt:`Instagram is yours end to end — find what works in a niche, build the post the same way, put it up, and read the account's messages. Load the \`${i.BROWSER_SKILL}\` skill and your own \`instagram\` skill before any step: its scripts read Instagram in a few lines where a snapshot costs twenty thousand characters, so run them first, chain them in one bash call, and snapshot only when a script says the page changed.
|
|
48
|
+
|
|
49
|
+
Sign in once, and into an account made for this rather than their own — the session is kept and every later job posts as whoever it is. \`${n.TOOL_NAMES.sign_in_use}\` with \`instagram.com\` before anything else; the login page is \`https://www.instagram.com/accounts/login/\` when nothing is kept.
|
|
50
|
+
|
|
51
|
+
Settle a post in one question. Ask only what the request leaves open — the topic, how many slides — in a single \`${n.TOOL_NAMES.send_message}\` question to Thursday. Told to decide yourself: \`${n.TOOL_NAMES.web_search}\` for what is current on the topic. Never ask twice for one round.
|
|
52
|
+
|
|
53
|
+
**Copy what already works.** Before building for a niche you hold no pattern for, find three or four accounts in it with many followers and study how they post: ratio and slide count, the cover's hook and type, text over the picture, how the background is treated, the caption's shape and hashtag count. Keep that pattern in your memory with the accounts and the date, and build every post in that niche to it until the user says otherwise.
|
|
54
|
+
|
|
55
|
+
**A picture tells the truth about what it is.** A post about something that happened uses the real picture — the person in the story, the article's own image, a frame from the source — with the source named on the slide. A post about an idea or a mood can use a drawn one: \`${n.STUDIO_TOOLS.generate_image}\` through \`${n.TOOL_NAMES.tool_call}\` on \`${i.STUDIO_SERVER}\`, the whole picture in \`prompt\` and the same look repeated in each. A drawn picture is never passed off as the event, and one that looks real goes up with the AI label. \`${n.STUDIO_TOOLS.generate_image}\` not coming back from \`${n.TOOL_NAMES.tool_search}\`, or a call answering that the model cannot make images, means there is no image model: go on when real pictures make the post; when it needs a drawn one, send Thursday a \`${n.TOOL_NAMES.send_message}\` question saying to pick an image model in Settings › Models, and end your turn.
|
|
56
|
+
|
|
57
|
+
**Every slide is HTML rendered at the post's exact size**, one size for the whole carousel: that is how text comes out right and nothing is cut. Look at the finished slides once, side by side, before they go anywhere.
|
|
58
|
+
|
|
59
|
+
Write the caption to be read: what this is, in the user's voice, no invented facts, hashtags as the pattern has them.
|
|
60
|
+
|
|
61
|
+
**Ask before it goes up.** Fill the composer to its last screen and leave it there; send Thursday a \`${n.TOOL_NAMES.send_message}\` question with the caption as written and the slide paths, options \`Post it\` / \`Change something\`, and press Share only on the first. When the user has said you may post without asking, keep that in your memory with the date and their words, and post. Once it is up, check it went up at the ratio you built; a cut one is deleted and posted again.
|
|
62
|
+
|
|
63
|
+
Messages are read without being opened: list the inbox first and open only the threads the job is about, since opening one marks it seen. A reply goes out only when the user asked for one.
|
|
64
|
+
|
|
65
|
+
Answer with the post's url and the file paths, or with what the messages say and what they need.`}];e.s(["BOT_SEEDS",0,s,"rollSeedIcons",0,()=>(0,r.randomBotIcons)(s.length)],463625)},950953,e=>{"use strict";var t=e.i(95187);let a=(0,t.createServerReference)("7f1f25bd84bfa9df4c5bd901ee0c1e7d11924c7940",t.callServer,void 0,t.findSourceMapURL,"setSignInBotAction");e.s(["setSignInBotAction",0,a])},83928,e=>{"use strict";var t=e.i(843476),a=e.i(829600),i=e.i(456420);let n={name:"file-code",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]]};n.node;let r=(0,i.default)(n),s={name:"file-image",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]};s.node;let o=(0,i.default)(s);var l=e.i(905015);let d={name:"file-spreadsheet",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]};d.node;let u=(0,i.default)(d);var c=e.i(226091);let h={name:"file-type",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M11 18h2",key:"12mj7e"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"M9 13v-.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v.5",key:"qbrxap"}]]};h.node;let m=(0,i.default)(h),p={name:"file-play",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M15.033 13.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .967-.56z",key:"1tzo1f"}]],aliases:["file-video"]};p.node;let g=(0,i.default)(p);var f=e.i(51921),b=e.i(271645),y=e.i(798120),k=e.i(683408),w=e.i(41533),v=e.i(616172),x=e.i(647163);let A={markdown:c.FileText,csv:u,json:l.FileJson,text:m,image:o,audio:f.Music,video:g};function _(e){let t=(0,v.viewKindOf)(e);return"frame"===t?e.toLowerCase().endsWith(".pdf")?c.FileText:r:A[t]??a.File}let M=new Set(["markdown","text","csv","json"]);function S(e,t){let a=(0,v.viewKindOf)(e);return void 0!==t&&t>w.WORKSPACE_VIEW.elementMax?"glyph":"image"===a?"image":"frame"===a&&/\.html?$/i.test(e)?"page":M.has(a)?"text":"glyph"}function E({width:e,className:a,children:i}){let n=(0,b.useRef)(null),[r,s]=(0,b.useState)(null);(0,b.useLayoutEffect)(()=>{let e=n.current;if(!e)return;let t=()=>s({w:e.clientWidth,h:e.clientHeight});t();let a=new ResizeObserver(t);return a.observe(e),()=>a.disconnect()},[]);let o=r?r.w/e:0;return(0,t.jsx)("span",{ref:n,"aria-hidden":!0,className:(0,x.cn)("relative block overflow-hidden",a),children:o>0&&r&&(0,t.jsx)("span",{className:"absolute top-0 left-0 block origin-top-left",style:{width:e,transform:`scale(${o})`},children:i(Math.ceil(r.h/o))})})}function T({path:e,onMissing:a}){let[i,n]=(0,b.useState)(null);return((0,b.useEffect)(()=>{let t=new AbortController;return fetch(y.queryKey.file(e),{headers:{range:`bytes=0-${w.FILE_THUMB.textBytes-1}`},signal:t.signal}).then(e=>e.ok?e.text():Promise.reject()).then(e=>n(e.replace(/\uFFFD+$/,""))).catch(()=>{t.signal.aborted||a()}),()=>t.abort()},[e,a]),null===i)?null:"markdown"===(0,v.viewKindOf)(e)?(0,t.jsx)("div",{className:"pointer-events-none px-9 py-8 text-[15px] text-foreground",children:(0,t.jsx)(k.Markdown,{controls:!1,components:{a:"span"},children:i})}):(0,t.jsx)("pre",{className:"pointer-events-none px-7 py-6 font-mono text-[13px] leading-relaxed whitespace-pre-wrap text-foreground",children:i})}e.s(["FileThumb",0,function({path:e,bytes:a,glyph:i="size-4",className:n}){let[r,s]=(0,b.useState)(!1),o=(0,b.useCallback)(()=>s(!0),[]),l=r?"glyph":S(e,a);if("image"===l)return(0,t.jsx)("img",{src:y.queryKey.file(e),alt:"",loading:"lazy",decoding:"async",onError:()=>s(!0),className:(0,x.cn)("block bg-muted object-cover",n)});if("page"===l)return(0,t.jsx)(E,{width:w.FILE_THUMB.pageWidth,className:(0,x.cn)("bg-white",n),children:a=>(0,t.jsx)("iframe",{title:"",src:y.queryKey.file(e),sandbox:"allow-scripts",loading:"lazy",tabIndex:-1,"aria-hidden":!0,scrolling:"no",style:{width:w.FILE_THUMB.pageWidth,height:a},className:"pointer-events-none block border-0 bg-white"})});if("text"===l)return(0,t.jsx)(E,{width:w.FILE_THUMB.textWidth,className:(0,x.cn)("bg-background",n),children:()=>(0,t.jsx)(T,{path:e,onMissing:o})});let d=_(e);return(0,t.jsx)("span",{className:(0,x.cn)("grid place-items-center bg-muted text-muted-foreground",n),children:(0,t.jsx)(d,{className:i})})},"faceOf",0,S,"fileIcon",0,_],83928)},981203,413168,e=>{"use strict";e.s(["COMMON_VALIDATE",0,{name:{max:16},shortDescription:{max:60},description:{max:100},prompt:{max:4e3}}],981203);var t=e.i(681307);let a=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,"gpt-5.6-luna","LIVE_HOSTED_TOOLS",0,{webSearch:{declare:{type:"web_search"},item:"web_search_call"}},"LIVE_MODEL",0,"gpt-live-1","LiveFragmentSchema",0,a],413168)},260891,e=>{"use strict";e.i(247167);var t=e.i(271645),a=e.i(708445),i=e.i(146376),n=e.i(108868),r=e.i(667865),s=e.i(446265),o=e.i(328744),l=e.i(229315),d=e.i(675606),u=e.i(56434),c=e.i(46420),h=e.i(621082),m=e.i(449055),p=e.i(584446),g=e.i(596296),f=e.i(503596),b=e.i(157940);function y(e){return o.platform.engine.webkit&&0===e.movementX&&0===e.movementY}function k(e,t,a){switch(e){case"vertical":return t;case"horizontal":return a;default:return t||a}}function w(e,t){return k(t,e===m.ARROW_UP||e===m.ARROW_DOWN,e===m.ARROW_LEFT||e===m.ARROW_RIGHT)}function v(e,t,a){return k(t,e===m.ARROW_DOWN,a?e===m.ARROW_LEFT:e===m.ARROW_RIGHT)||"Enter"===e||" "===e||""===e}e.s(["useListNavigation",0,function(e,o){let{listRef:x,activeIndex:A,onNavigate:_=()=>{},enabled:M=!0,selectedIndex:S=null,allowEscape:E=!1,loopFocus:T=!1,nested:I=!1,rtl:O=!1,virtual:L=!1,focusItemOnOpen:R="auto",focusItemOnHover:P=!0,openOnArrowKeyDown:N=!0,disabledIndices:K,orientation:F="vertical",parentOrientation:D,id:z,resetOnPointerLeave:j=!0,externalTree:G,grid:C}=o,V=null!=C,W="rootStore"in e?e.rootStore:e,B=W.useState("open"),H=W.useState("floatingElement"),Y=W.useState("domReferenceElement"),q=W.context.dataRef,U=(0,g.getFloatingFocusElement)(H),$=(0,g.isTypeableCombobox)(Y),X=(0,s.useValueAsRef)(U),J=(0,c.useFloatingParentNodeId)(),Q=(0,c.useFloatingTree)(G),Z=t.useRef(R),ee=t.useRef(S??-1),et=t.useRef(null),ea=t.useRef(!0),ei=(0,r.useStableCallback)(e=>{_(-1===ee.current?null:ee.current,e)}),en=t.useRef(!!H),er=t.useRef(B),es=t.useRef(!1),eo=t.useRef(!1),el=t.useRef(null),ed=(0,s.useValueAsRef)(K),eu=(0,s.useValueAsRef)(B),ec=(0,s.useValueAsRef)(S),eh=(0,s.useValueAsRef)(j),em=(0,a.useAnimationFrame)(),ep=(0,a.useAnimationFrame)(),eg=(0,r.useStableCallback)(()=>{function e(e){L?Q?.events.emit("virtualfocus",e):el.current=(0,f.enqueueFocus)(e,{sync:es.current,preventScroll:!0})}let t=x.current[ee.current],a=eo.current;t&&e(t),(es.current?e=>e():e=>em.request(e))(()=>{let i=x.current[ee.current]||t;!i||(t||e(i),ev&&(a||!ea.current)&&i.scrollIntoView?.({block:"nearest",inline:"nearest"}))})});(0,i.useIsoLayoutEffect)(()=>{q.current.orientation=F},[q,F]),(0,i.useIsoLayoutEffect)(()=>{M&&(B&&H?(ee.current=S??-1,Z.current&&null!=S&&(eo.current=!0,ei())):en.current&&(ee.current=-1,ei()))},[M,B,H,S,ei]),(0,i.useIsoLayoutEffect)(()=>{if(M){if(!B){es.current=!1;return}if(H)if(null==A){if(es.current=!1,null!=ec.current)return;if(en.current&&(ee.current=-1,eg()),(!er.current||!en.current)&&Z.current&&(null!=et.current||!0===Z.current&&null==et.current)){let e=0,t=()=>{null==x.current[0]?(e<2&&(e?e=>ep.request(e):queueMicrotask)(t),e+=1):(ee.current=null==et.current||v(et.current,F,O)||I?(0,h.getMinListIndex)(x):(0,h.getMaxListIndex)(x),et.current=null,ei())};t()}}else(0,h.isIndexOutOfListBounds)(x.current,A)||(ee.current=A,eg(),eo.current=!1)}},[M,B,H,A,ec,I,x,F,O,ei,eg,ep]),(0,i.useIsoLayoutEffect)(()=>{if(!M||H||!Q||L||!en.current)return;let e=Q.nodesRef.current,t=e.find(e=>e.id===J)?.context?.elements.floating,a=(0,p.activeElement)((0,n.ownerDocument)(Y??t??null)),i=e.some(e=>e.context&&(0,p.contains)(e.context.elements.floating,a));t&&!i&&ea.current&&t.focus({preventScroll:!0})},[M,H,Y,Q,J,L]),(0,i.useIsoLayoutEffect)(()=>{er.current=B,en.current=!!H}),(0,i.useIsoLayoutEffect)(()=>{B||(et.current=null,Z.current=R)},[B,R]);let ef=null!=A,eb=(0,r.useStableCallback)(e=>{if(!eu.current)return;let t=x.current.indexOf(e.currentTarget);-1!==t&&(ee.current!==t||A!==t)&&(ee.current=t,ei(e))}),ey=(0,r.useStableCallback)(()=>D??Q?.nodesRef.current.find(e=>e.id===J)?.context?.dataRef?.current.orientation),ek=(0,r.useStableCallback)(()=>(0,h.getMinListIndex)(x,ed.current)),ew=(0,r.useStableCallback)(e=>{var t;let a,i;if(ea.current=!1,es.current=!0,229===e.which||!eu.current&&e.currentTarget===X.current)return;if(I&&(t=e.key,a=O?t===m.ARROW_RIGHT:t===m.ARROW_LEFT,i=t===m.ARROW_UP,"both"===F||"horizontal"===F&&V?"Escape"===t:k(F,a,i))){w(e.key,ey())||(0,b.stopEvent)(e),W.setOpen(!1,(0,d.createChangeEventDetails)(u.REASONS.listNavigation,e.nativeEvent)),(0,l.isHTMLElement)(Y)&&(L?Q?.events.emit("virtualfocus",Y):Y.focus());return}let n=ee.current,r=(0,h.getMinListIndex)(x,K),s=(0,h.getMaxListIndex)(x,K);if($||("Home"===e.key&&((0,b.stopEvent)(e),ee.current=r,ei(e)),"End"===e.key&&((0,b.stopEvent)(e),ee.current=s,ei(e))),null!=C){let t=C(e,ee.current,x,F,T,O,K,r,s);if(null!=t&&(ee.current=t,ei(e)),"both"===F)return}if(w(e.key,F)){if((0,b.stopEvent)(e),B&&!L&&(0,p.activeElement)(e.currentTarget.ownerDocument)===e.currentTarget){ee.current=v(e.key,F,O)?r:s,ei(e);return}v(e.key,F,O)?T?n>=s?E&&n!==x.current.length?ee.current=-1:(es.current=!1,ee.current=r):ee.current=(0,h.findNonDisabledListIndex)(x.current,{startingIndex:n,disabledIndices:K}):ee.current=Math.min(s,(0,h.findNonDisabledListIndex)(x.current,{startingIndex:n,disabledIndices:K})):T?n<=r?E&&-1!==n?ee.current=x.current.length:(es.current=!1,ee.current=s):ee.current=(0,h.findNonDisabledListIndex)(x.current,{startingIndex:n,decrement:!0,disabledIndices:K}):ee.current=Math.max(r,(0,h.findNonDisabledListIndex)(x.current,{startingIndex:n,decrement:!0,disabledIndices:K})),(0,h.isIndexOutOfListBounds)(x.current,ee.current)&&(ee.current=-1),ei(e)}}),ev=t.useMemo(()=>({onFocus(e){es.current=!0,eb(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){!y(e)&&(es.current=!0,eo.current=!1,P&&eb(e))},onPointerLeave(e){if(!eu.current||!ea.current||"touch"===e.pointerType)return;es.current=!0;let t=e.relatedTarget;if(!(!P||x.current.includes(t))&&eh.current&&(el.current?.(),el.current=null,ee.current=-1,ei(e),!L)){let e=X.current,t=(0,p.activeElement)((0,n.ownerDocument)(e));e&&(0,p.contains)(e,t)&&e.focus({preventScroll:!0})}}}),[eb,eu,X,P,x,ei,eh,L]),ex=t.useMemo(()=>L&&B&&ef&&{"aria-activedescendant":`${z}-${A}`},[L,B,ef,z,A]),eA=t.useMemo(()=>({...!$?ex:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&B&&!L){let t=(0,p.getTarget)(e.nativeEvent);if(t&&!(0,p.contains)(X.current,t))return;(0,b.stopEvent)(e),W.setOpen(!1,(0,d.createChangeEventDetails)(u.REASONS.focusOut,e.nativeEvent)),(0,l.isHTMLElement)(Y)&&Y.focus();return}ew(e)},onPointerMove(e){y(e)||(ea.current=!0)}}),[ex,ew,X,$,W,B,L,Y]),e_=t.useMemo(()=>{function e(e){W.setOpen(!0,(0,d.createChangeEventDetails)(u.REASONS.listNavigation,e.nativeEvent,e.currentTarget))}function t(e){"auto"===R&&(0,b.isVirtualClick)(e.nativeEvent)&&(Z.current=!L)}function a(e){Z.current=R,"auto"===R&&(0,b.isVirtualPointerEvent)(e.nativeEvent)&&(Z.current=!0)}return{onKeyDown(t){var a,i;let n=W.select("open");ea.current=!1;let r=t.key.startsWith("Arrow"),s=(a=t.key,i=ey(),k(i,O?a===m.ARROW_LEFT:a===m.ARROW_RIGHT,a===m.ARROW_DOWN)),o=w(t.key,F),l=(I?s:o)||"Enter"===t.key||""===t.key.trim();if(L&&n)return ew(t);if(n||N||!r){if(l){let e=w(t.key,ey());et.current=I&&e?null:t.key}if(I){s&&((0,b.stopEvent)(t),n?(ee.current=ek(),ei(t)):e(t));return}o&&(null!=ec.current&&(ee.current=ec.current),(0,b.stopEvent)(t),!n&&N?e(t):ew(t),n&&ei(t))}},onFocus(e){W.select("open")&&!L&&(ee.current=-1,ei(e))},onPointerDown:a,onPointerEnter:a,onMouseDown:t,onClick:t}},[ew,R,ek,I,ei,W,N,F,ey,O,ec,L]),eM=t.useMemo(()=>({...ex,...e_}),[ex,e_]);return t.useMemo(()=>M?{reference:eM,floating:eA,item:ev,trigger:e_}:{},[M,eM,eA,e_,ev])}])},736760,e=>{"use strict";var t=e.i(271645),a=e.i(146376),i=e.i(667865),n=e.i(439957),r=e.i(956789),s=e.i(621082),o=e.i(584446),l=e.i(157940);e.s(["useTypeahead",0,function(e,d){let{listRef:u,elementsRef:c,activeIndex:h,onMatch:m,disabledIndices:p,onTyping:g,enabled:f=!0,resetMs:b=750,selectedIndex:y=null}=d,k="rootStore"in e?e.rootStore:e,w=k.useState("open"),v=(0,n.useTimeout)(),x=t.useRef(""),A=t.useRef(y??h??-1),_=t.useRef(null),M=(0,i.useStableCallback)(e=>{function t(e){let t=c?.current[e];return!(t&&!(0,s.isElementVisible)(t)||t?.matches(":disabled"))&&(null==p||!(0,s.isListIndexDisabled)(r.EMPTY_ARRAY,e,p))}function a(e,i,n=0){if(0===e.length)return -1;let r=(n%e.length+e.length)%e.length,s=i.toLowerCase();for(let a=0;a<e.length;a+=1){let i=(r+a)%e.length,n=e[i];if(n?.toLowerCase().startsWith(s)&&t(i))return i}return -1}let i=u.current;if(x.current.length>0&&" "===e.key&&((0,l.stopEvent)(e),g?.(!0)),x.current.length>0&&" "!==x.current[0]&&-1===a(i,x.current)&&" "!==e.key&&g?.(!1),null==i||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;w&&" "!==e.key&&((0,l.stopEvent)(e),g?.(!0));let n=""===x.current;n&&(A.current=y??h??-1),i.every((e,a)=>!(e&&t(a))||e[0]?.toLowerCase()!==e[1]?.toLowerCase())&&x.current===e.key&&(x.current="",A.current=_.current),x.current+=e.key,v.start(b,()=>{x.current="",A.current=_.current,g?.(!1)});let o=n?y??h??-1:A.current,d=a(i,x.current,(o??0)+1);-1!==d?(m?.(d),_.current=d):" "!==e.key&&(x.current="",g?.(!1))}),S=(0,i.useStableCallback)(e=>{let t=e.relatedTarget,a=k.select("domReferenceElement"),i=k.select("floatingElement");(0,o.contains)(a,t)||(0,o.contains)(i,t)||(v.clear(),x.current="",A.current=_.current,g?.(!1))});(0,a.useIsoLayoutEffect)(()=>{(w||null===y)&&(v.clear(),_.current=null,""!==x.current&&(x.current=""))},[w,y,v]);let E=t.useMemo(()=>({onKeyDown:M,onBlur:S}),[M,S]);return t.useMemo(()=>f?{reference:E,floating:E}:{},[f,E])}])},348990,431594,e=>{"use strict";var t=e.i(956789),a=e.i(552245),i=e.i(395530);e.s(["CompositeItem",0,function(e){let{render:n,className:r,style:s,state:o=t.EMPTY_OBJECT,props:l=t.EMPTY_ARRAY,refs:d=t.EMPTY_ARRAY,metadata:u,stateAttributesMapping:c,tag:h="div",...m}=e,{compositeProps:p,compositeRef:g}=(0,i.useCompositeItem)({metadata:u});return(0,a.useRenderElement)(h,e,{state:o,ref:[g,...d],props:[p,...l,m],stateAttributesMapping:c})}],348990);var n=e.i(456420);let r={name:"repeat",size:24,node:[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]};r.node;let s=(0,n.default)(r);e.s(["RoutineMark",0,s],431594)},264042,e=>{"use strict";var t=e.i(333848),a=e.i(328744);e.s(["isMouseWithinBounds",0,function(e,i){let n=function(e){let i=e.getBoundingClientRect(),n=(0,t.ownerWindow)(e);if(a.platform.env.jsdom)return i;let r=n.getComputedStyle(e,"::before"),s=n.getComputedStyle(e,"::after");if("none"===r.content&&"none"===s.content)return i;let o=parseFloat(r.width)||0,l=parseFloat(r.height)||0,d=parseFloat(s.width)||0,u=parseFloat(s.height)||0,c=Math.max(i.width,o,d),h=Math.max(i.height,l,u),m=c-i.width,p=h-i.height;return{left:i.left-m/2,right:i.right+m/2,top:i.top-p/2,bottom:i.bottom+p/2}}(i);return e.clientX>=n.left-5&&e.clientX<=n.right+5&&e.clientY>=n.top-5&&e.clientY<=n.bottom+5}])},856539,e=>{"use strict";var t=e.i(456420);let a={name:"book-bookmark",size:24,node:[["path",{d:"M10 2v7.751a.25.25 0 00.407.195l2.28-1.834a.5.5 0 01.627 0l2.28 1.834A.25.25 0 0016 9.751V2",key:"x9x4jl"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 016.5 2H19a1 1 0 011 1v18a1 1 0 01-1 1H6.5a1 1 0 010-5H20",key:"1889un"}]],aliases:["book-marked"]};a.node;let i=(0,t.default)(a);e.s(["BookMarked",0,i],856539)},905015,51921,e=>{"use strict";var t=e.i(456420);let a={name:"file-braces",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],aliases:["file-json"]};a.node;let i=(0,t.default)(a);e.s(["FileJson",0,i],905015);let n={name:"music",size:24,node:[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]};n.node;let r=(0,t.default)(n);e.s(["Music",0,r],51921)},226091,e=>{"use strict";var t=e.i(456420);let a={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};a.node;let i=(0,t.default)(a);e.s(["FileText",0,i],226091)},829600,e=>{"use strict";var t=e.i(456420);let a={name:"file",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]};a.node;let i=(0,t.default)(a);e.s(["File",0,i],829600)},569644,e=>{"use strict";var t=e.i(456420);let a={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};a.node;let i=(0,t.default)(a);e.s(["FolderOpen",0,i],569644)},91511,e=>{"use strict";var t=e.i(456420);let a={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};a.node;let i=(0,t.default)(a);e.s(["Globe",0,i],91511)},758925,e=>{"use strict";var t=e.i(456420);let a={name:"key-round",size:24,node:[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]};a.node;let i=(0,t.default)(a);e.s(["KeyRound",0,i],758925)},97923,e=>{"use strict";var t=e.i(456420);let a={name:"log-in",size:24,node:[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]};a.node;let i=(0,t.default)(a);e.s(["LogIn",0,i],97923)},747925,e=>{"use strict";var t=e.i(456420);let a={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};a.node;let i=(0,t.default)(a);e.s(["Wrench",0,i],747925)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,23750,e=>{"use strict";var t=e.i(843476),r=e.i(271645);e.i(166432);var n=e.i(932013),i=e.i(45574),l=e.i(535718),a=e.i(910148),s=e.i(951437),o=e.i(146376),u=e.i(108868),d=e.i(667865),c=e.i(439957),f=e.i(469690),v=e.i(381104),m=e.i(884708),g=e.i(247778),h=e.i(538489),b=e.i(875812),p=e.i(552245),x=e.i(606039),y=e.i(675606),C=e.i(56434),j=e.i(584446);let w=r.forwardRef(function(e,t){let{render:n,className:i,id:l,name:a,value:w,disabled:R=!1,onValueChange:S,defaultValue:k,autoFocus:E=!1,style:O,...N}=e,{state:D,name:T,disabled:I,setTouched:F,setDirty:L,validityData:M,setFocused:P,setFilled:V,validationMode:_,validation:A}=(0,f.useFieldRootContext)(),{clearErrors:U,elementRef:B,submitCountRef:W}=(0,m.useFormContext)(),z=I||R,K=T??a,$={...D,disabled:z},{labelId:q}=(0,g.useLabelableContext)(),Y=(0,h.useLabelableId)({id:l}),[H]=(0,s.useControlled)({controlled:w,default:k,name:"FieldControl",state:"value"}),J=void 0!==w,G=J?H:void 0,X=null==G?void 0:String(G),Q=(0,d.useStableCallback)(()=>A.inputRef.current?.value);(0,v.useRegisterFieldControl)(A.inputRef,Y,X,Q,!z,a),(0,o.useIsoLayoutEffect)(()=>{let e=X??A.inputRef.current?.value;void 0!==e&&V(""!==e)},[X,A.inputRef,V]),(0,x.useValueChanged)(X,()=>{void 0!==X&&(U(K),L(X!==(M.initialValue??"")),A.change(X))});let Z=r.useRef(null),ee=(0,c.useTimeout)();return(0,o.useIsoLayoutEffect)(()=>{E&&Z.current===(0,j.activeElement)((0,u.ownerDocument)(Z.current))&&P(!0)},[E,P]),(0,p.useRenderElement)("input",e,{ref:[t,Z],state:$,props:[{id:Y,disabled:z,name:K,ref:A.inputRef,"aria-labelledby":q,autoFocus:E,...J?{value:G}:{defaultValue:k},onChange(e){let t=e.currentTarget.value,r=(0,y.createChangeEventDetails)(C.REASONS.none,e.nativeEvent);S?.(t,r),!J&&(L(t!==(M.initialValue??"")),V(""!==t),e.nativeEvent.defaultPrevented||r.isCanceled||(U(K),A.change(t)))},onFocus(){P(!0)},onBlur(e){if(F(!0),P(!1),"onBlur"===_){let t=e.currentTarget.value;A.commit(t),J&&queueMicrotask(()=>{let e=A.inputRef.current?.value;void 0!==e&&e!==t&&e!==(M.initialValue??"")&&A.commit(e)})}},onKeyDown(e){if("INPUT"===e.currentTarget.tagName&&"Enter"===e.key){F(!0);let t=e.currentTarget.value,r=e.currentTarget.form;if(r&&r===B.current&&!e.defaultPrevented){let t=e.currentTarget,r=W.current;ee.start(0,()=>{W.current===r&&A.commit(t.value)})}else A.commit(t)}}},N,e=>A.getValidationProps(z,e)],stateAttributesMapping:b.fieldValidityMapping})});var R=e.i(568815),S=e.i(223910),k=e.i(157153),E=e.i(666493);let O=r.forwardRef(function(e,n){let{render:i,className:l,style:a,disabled:s=!1,...o}=e,{state:u,disabled:d}=(0,f.useFieldRootContext)(!1),c=d||s,v={...u,disabled:c},m=r.useMemo(()=>({disabled:c}),[c]),g=(0,p.useRenderElement)("div",e,{ref:n,state:v,props:o,stateAttributesMapping:b.fieldValidityMapping});return(0,t.jsx)(E.LabelableProvider,{children:(0,t.jsx)(k.FieldItemContext.Provider,{value:m,children:g})})});e.s(["Control",0,w,"Description",()=>a.FieldDescription,"Error",()=>l.FieldError,"Item",0,O,"Label",()=>i.FieldLabel,"Root",()=>n.FieldRoot,"Validity",0,function(e){let{children:n}=e,{validityData:i,invalid:l}=(0,f.useFieldRootContext)(!1),a=r.useMemo(()=>(0,R.getCombinedFieldValidityData)(i,l),[i,l]),s=!1===a.state.valid,{transitionStatus:o}=(0,S.useTransitionStatus)(s),u=r.useMemo(()=>({...a,validity:a.state,transitionStatus:o}),[a,o]);return(0,t.jsx)(r.Fragment,{children:n(u)})}],305359);var N=e.i(305359),N=N;let D=r.forwardRef(function(e,r){return(0,t.jsx)(N.Control,{ref:r,...e})});var T=e.i(647163);let I="h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40";e.s(["Input",0,function({className:e,type:r,...n}){return(0,t.jsx)(D,{type:r,"data-slot":"input",className:(0,T.cn)(I,e),...n})},"inputClassName",0,I],23750)},917162,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(88014),i=e.i(167881),l=e.i(630374),a=e.i(23750),s=e.i(184762),o=e.i(647163);let u=()=>{let e=document.createElement("div");return e.id=crypto.randomUUID(),document.body.appendChild(e),e};e.s(["notify",0,{component:({renderer:e,className:r})=>new Promise(i=>{let a=u(),s=(0,n.createRoot)(a),d=()=>{s.unmount(),a.remove(),i()};s.render((0,t.jsx)(l.Dialog,{open:!0,onOpenChange:d,children:(0,t.jsxs)(l.DialogContent,{className:(0,o.cn)("px-0",r),children:[(0,t.jsxs)(l.DialogHeader,{className:"hidden",children:[(0,t.jsx)(l.DialogTitle,{}),(0,t.jsx)(l.DialogDescription,{})]}),e({close:d})]})}))}),alert:e=>new Promise(r=>{let a=u(),s=(0,n.createRoot)(a),o=()=>{s.unmount(),a.remove(),r()};s.render((0,t.jsx)(l.Dialog,{open:!0,onOpenChange:o,children:(0,t.jsxs)(l.DialogContent,{showCloseButton:!1,children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsx)(l.DialogTitle,{children:e.title}),(0,t.jsx)(l.DialogDescription,{children:e.description})]}),(0,t.jsx)(l.DialogFooter,{children:(0,t.jsx)(i.Button,{variant:"ghost",onClick:o,autoFocus:!0,children:e.okText||"OK"})})]})}))}),confirm:e=>new Promise(r=>{let a=u(),s=(0,n.createRoot)(a),o=()=>{s.unmount(),a.remove()},d=()=>{r(!0),o()},c=()=>{r(!1),o()};s.render((0,t.jsx)(function(){return(0,t.jsx)(l.Dialog,{open:!0,onOpenChange:c,children:(0,t.jsxs)(l.DialogContent,{showCloseButton:!1,children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsx)(l.DialogTitle,{children:e.title}),(0,t.jsx)(l.DialogDescription,{children:e.description})]}),(0,t.jsxs)(l.DialogFooter,{children:[(0,t.jsx)(i.Button,{variant:"ghost",onClick:c,autoFocus:e.destructive,children:e.cancelText||"Never mind"}),(0,t.jsx)(i.Button,{variant:e.destructive?"destructive":"secondary",onClick:d,autoFocus:!e.destructive,children:e.okText||"OK"})]})]})})},{}))}),prompt:e=>new Promise(o=>{let d=u(),c=(0,n.createRoot)(d),f=(e="")=>{c.unmount(),d.remove(),o(e)};c.render((0,t.jsx)(()=>{let[n,o]=(0,r.useState)(""),u=e=>{"Enter"!==e.key||e.shiftKey||e.nativeEvent.isComposing||(e.preventDefault(),f(n))};return(0,t.jsx)(l.Dialog,{open:!0,onOpenChange:()=>f(),children:(0,t.jsxs)(l.DialogContent,{showCloseButton:!1,children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsx)(l.DialogTitle,{children:e.title}),(0,t.jsx)(l.DialogDescription,{children:e.description}),e.multiline?(0,t.jsx)(s.Textarea,{className:"resize-none max-h-[200px]",placeholder:e.placeholder,autoFocus:!0,value:n,maxLength:e.maxLength,onKeyDown:u,onChange:e=>o(e.target.value)}):(0,t.jsx)(a.Input,{placeholder:e.placeholder,autoFocus:!0,value:n,maxLength:e.maxLength,onChange:e=>o(e.target.value),onKeyDown:u})]}),(0,t.jsxs)(l.DialogFooter,{children:[(0,t.jsx)(i.Button,{variant:"ghost",onClick:()=>f(),children:e.cancelText||"Cancel"}),(0,t.jsx)(i.Button,{disabled:!n.trim(),variant:"secondary",onClick:()=>f(n),children:e.okText||"OK"})]})]})})},{}))})}])},184762,677309,646192,271235,699018,560491,283653,e=>{"use strict";var t=e.i(843476),r=e.i(647163);e.s(["Textarea",0,function({className:e,...n}){return(0,t.jsx)("textarea",{"data-slot":"textarea",className:(0,r.cn)("flex field-sizing-content max-h-64 min-h-16 w-full overflow-y-auto rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...n})}],184762);var n=e.i(271645),i=e.i(802239),l=Object.prototype.hasOwnProperty;let a=new WeakMap,s=()=>{},o=s(),u=Object,d=e=>e===o,c=e=>"function"==typeof e,f=(e,t)=>({...e,...t}),v=e=>c(e.then),m={},g={},h="undefined",b=typeof window!=h,p=typeof document!=h,x=b&&"Deno"in window,y=(e,t)=>{let r=a.get(e);return[()=>!d(t)&&e.get(t)||m,n=>{if(!d(t)){let i=e.get(t);t in g||(g[t]=i),r[5](t,f(i,n),i||m)}},r[6],()=>!d(t)&&t in g?g[t]:!d(t)&&e.get(t)||m]},C=!0,[j,w]=b&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[s,s],R={initFocus:e=>(p&&document.addEventListener("visibilitychange",e),j("focus",e),()=>{p&&document.removeEventListener("visibilitychange",e),w("focus",e)}),initReconnect:e=>{let t=()=>{C=!0,e()},r=()=>{C=!1};return j("online",t),j("offline",r),()=>{w("online",t),w("offline",r)}}},S=!n.default.useId,k=!b||x,E=e=>b&&typeof window.requestAnimationFrame!=h?window.requestAnimationFrame(e):setTimeout(e,1),O=k?n.useEffect:n.useLayoutEffect,N="u">typeof navigator&&navigator.connection,D=!k&&N&&(["slow-2g","2g"].includes(N.effectiveType)||N.saveData),T=new WeakMap,I=(e,t)=>e===`[object ${t}]`,F=0,L=e=>{let t,r,n=typeof e,i=u.prototype.toString.call(e),l=I(i,"Date"),a=I(i,"RegExp"),s=I(i,"Object");if(u(e)!==e||l||a)t=l?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=T.get(e))return t;if(t=++F+"~",T.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=L(e[r])+",";T.set(e,t)}if(s){t="#";let n=u.keys(e).sort();for(;!d(r=n.pop());)d(e[r])||(t+=r+":"+L(e[r])+",");T.set(e,t)}}return t},M=e=>{if(c(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?L(e):"",t]},P=0,V=()=>++P;async function _(...e){let[t,r,n,i]=e,l=f({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),s=l.populateCache,u=l.rollbackOnError,m=l.optimisticData,g=l.throwOnError;if(c(r)){let e=[];for(let n of t.keys())!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n);return Promise.all(e.map(h))}return h(r);async function h(r){let i,[f]=M(r);if(!f)return;let[h,b]=y(t,f),[p,x,C,j]=a.get(t),w=()=>{let e=p[f];return(c(l.revalidate)?l.revalidate(h().data,r):!1!==l.revalidate)&&(delete C[f],delete j[f],e&&e[0])?e[0](2).then(()=>h().data):h().data};if(e.length<3)return w();let R=n,S=!1,k=V();x[f]=[k,0];let E=!d(m),O=h(),N=O.data,D=O._c,T=d(D)?N:D;if(E&&b({data:m=c(m)?m(T,N):m,_c:T}),c(R))try{R=R(T)}catch(e){i=e,S=!0}if(R&&v(R)){let e;if(R=await R.catch(e=>{i=e,S=!0}),k!==x[f][0]){if(S)throw i;return R}S&&E&&(e=i,"function"==typeof u?u(e):!1!==u)&&(s=!0,b({data:T,_c:o}))}if(s&&!S&&(c(s)?b({data:s(R,T),error:o,_c:o}):b({data:R,error:o,_c:o})),x[f][1]=V(),Promise.resolve(w()).then(()=>{b({_c:o})}),S){if(g)throw i;return}return R}}let A=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},U=(e,t)=>{if(!a.has(e)){let r=f(R,t),n=Object.create(null),i=_.bind(o,e),l=s,u=Object.create(null),d=(e,t)=>{let r=u[e]||[];return u[e]=r,r.push(t),()=>{let e=r.indexOf(t);e>=0&&(r[e]=r[r.length-1],r.pop())}},c=(t,r,n)=>{e.set(t,r);let i=u[t];if(i)for(let e of i)e(r,n)},v=t=>{let r=a.get(e),[,i,l,s]=r,o=V();for(let e in r[8]++,l)delete l[e];for(let e in s)delete s[e];for(let e in i)i[e]=[o,o];let d={};for(let t of[...e.keys()]){let r=e.get(t);e.delete(t);let n=u[t];if(n)for(let e of n)e(d,r)}let c=!t||!1!==t.revalidate;for(let e in n){let t=n[e];for(let e=0;e<t.length;e++)t[e](4,{revalidate:c&&!e})}},m=()=>{if(!a.has(e)&&(a.set(e,[n,Object.create(null),Object.create(null),Object.create(null),i,c,d,v,0]),!k)){let t=r.initFocus(setTimeout.bind(o,A.bind(o,n,0))),i=r.initReconnect(setTimeout.bind(o,A.bind(o,n,1)));l=()=>{t&&t(),i&&i(),a.delete(e)}}};return m(),[e,i,m,l,v]}let r=a.get(e);return[e,r[4],o,o,r[7]]},[B,W,,,z]=U(new Map),K=f({onLoadingSlow:s,onSuccess:s,onError:s,onErrorRetry:(e,t,r,n,i)=>{let l=r.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;(d(l)||!(a>l))&&setTimeout(n,s,i)},onDiscarded:s,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:D?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:D?5e3:3e3,compare:function e(t,r){var n,i;if(t===r)return!0;if(t&&r&&(n=t.constructor)===r.constructor){if(n===Date)return t.getTime()===r.getTime();if(n===RegExp)return t.toString()===r.toString();if(n===Array){if((i=t.length)===r.length)for(;i--&&e(t[i],r[i]););return -1===i}if(!n||"object"==typeof t){for(n in i=0,t)if(l.call(t,n)&&++i&&!l.call(r,n)||!(n in r)||!e(t[n],r[n]))return!1;return Object.keys(r).length===i}}return t!=t&&r!=r},isPaused:()=>!1,cache:B,mutate:W,unload:z,fallback:{}},{isOnline:()=>C,isVisible:()=>{let e=p&&document.visibilityState;return d(e)||"hidden"!==e}}),$=(e,t)=>{let r=f(e,t);if(t){let{use:n,fallback:i,cacheData:l}=e,{use:a,fallback:s,cacheData:o}=t;n&&a&&(r.use=n.concat(a)),i&&s&&(r.fallback=f(i,s)),l&&o&&(r.cacheData=f(l,o))}return r},q=(0,n.createContext)({}),Y=e=>{let{value:t}=e,r=(0,n.useContext)(q),i=c(t),l=(0,n.useMemo)(()=>i?t(r):t,[i,r,t]),a=(0,n.useMemo)(()=>i?l:$(r,l),[i,r,l]),s=l&&l.provider,u=(0,n.useRef)(o);s&&!u.current&&(u.current=U(s(a.cache||B),l));let d=u.current;return d&&(a.cache=d[0],a.mutate=d[1],a.unload=d[4]),O(()=>{if(d)return d[2]&&d[2](),d[3]},[]),(0,n.createElement)(q.Provider,f(e,{value:a}))};e.s(["E",0,3,"F",0,0,"I",0,k,"M",0,2,"O",0,u,"R",0,1,"S",0,Y,"U",0,o,"a",0,a,"b",0,v,"c",0,y,"d",0,K,"e",0,c,"f",0,_,"g",0,V,"h",0,4,"i",0,d,"j",0,S,"k",0,W,"m",0,f,"n",0,s,"o",0,B,"p",0,b,"q",0,q,"r",0,E,"s",0,M,"t",0,$,"u",0,O],677309);let H="$inf$";e.s(["INFINITE_PREFIX",0,H],646192);let J=b&&window.__SWR_DEVTOOLS_USE__,G=J?window.__SWR_DEVTOOLS_USE__:[],X=e=>c(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Q=G.concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let[n]=M(t),[,,,i]=a.get(B);if(n.startsWith(H))return r(...e);let l=i[n];return d(l)?r(...e):(delete i[n],l)});return e(t,i,n)}),Z=e=>function(...t){let r,i=(r=(0,n.useContext)(q),(0,n.useMemo)(()=>f(K,r),[r])),[l,a,s]=X(t),o=$(i,s),u=e,{use:d}=o,c=(d||[]).concat(Q);for(let e=c.length;e--;)u=c[e](u);return u(l,a||o.fetcher||null,o)},ee=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}};J&&(window.__SWR_DEVTOOLS_REACT__=n.default),e.s(["subscribeCallback",0,ee,"withArgs",0,Z,"withMiddleware",0,(e,t)=>(...r)=>{let[n,i,l]=X(r),a=(l.use||[]).concat(t);return e(n,i,{...l,use:a})}],271235);let et=n.default.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),er={dedupe:!0},en=(e,t,r)=>{var n;return!!t&&(null==(n=e.get(t))?void 0:n.has(r))===!0},ei=(e,t,r)=>{if(!t)return;let n=e.get(t);n||(n=new Set,e.set(t,n)),n.add(r)},el=Promise.resolve(o);el.status="fulfilled",el.value=o;let ea=()=>s;u.defineProperty(Y,"defaultValue",{value:K});let es=Z((e,t,r)=>{let{cache:l,compare:s,suspense:u,fallbackData:m,revalidateOnMount:g,revalidateIfStale:h,refreshInterval:b,refreshWhenHidden:p,refreshWhenOffline:x,keepPreviousData:C,strictServerPrefetchWarning:j}=r,[w,R,N,D]=a.get(l),[T,I]=M(e),F=(0,n.useRef)(!1),L=(0,n.useRef)(!1),P=(0,n.useRef)(T),A=(0,n.useRef)(t),U=(0,n.useRef)(r),B=()=>U.current.isVisible()&&U.current.isOnline(),[W,z,K,$]=y(l,T),q=(0,n.useRef)({}).current,Y=d(m)?d(r.fallback)?o:r.fallback[T]:m,H=r.cacheData,J=T?null==H?void 0:H[T]:o,G=T?D[T]:o,X=d(G)&&!d(J),Q=X?J:G,Z=(e,t)=>{for(let r in q)if("data"===r){if(!s(e[r],t[r])&&(!d(e[r])||!s(ep,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},es=!F.current,eo=(0,n.useMemo)(()=>{let e=W(),r=$(),n=e=>{let r=f(e);return(delete r._k,(()=>{if(!T||!t||U.current.isPaused())return!1;if(es&&!d(g))return g;let e=d(Y)?r.data:Y;return!(u&&X&&d(e))&&(d(e)||h)})())?{isValidating:!0,isLoading:!0,...r}:r},i=n(e),l=e===r?i:n(r),a=i;return[()=>{let e=n(W());return Z(e,a)?(a.data=e.data,a.isLoading=e.isLoading,a.isValidating=e.isValidating,a.error=e.error,a):(a=e,e)},()=>l]},[l,T]),eu=(0,i.useSyncExternalStore)((0,n.useCallback)(e=>K(T,(t,r)=>{Z(r,t)||e()}),[l,T]),eo[0],eo[1]),ed=w[T]&&w[T].length>0,ec=eu.data,ef=d(ec)?Y&&v(Y)?et(Y):Y:ec,ev=eu.error,em=(0,n.useRef)(ef),eg=(0,n.useRef)(o),eh=eg.current;eh||(eg.current=eh=new WeakMap);let eb=(0,n.useRef)(null),ep=C?d(ec)?d(em.current)?ef:em.current:ec:ef,ex=T&&d(ef),ey=(0,n.useRef)(null);k||(0,i.useSyncExternalStore)(ea,()=>(ey.current=!1,ey),()=>(ey.current=!0,ey));let eC=ey.current;j&&eC&&!u&&ex&&console.warn(`Missing pre-initiated data for serialized key "${T}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let ej=!(!T||!t||U.current.isPaused())&&(!ed||!!d(ev))&&(es&&!d(g)?g:(!u||!X||!ex)&&(u?!d(ef)&&h:d(ef)||h)),ew=es&&ej,eR=d(eu.isValidating)?ew:eu.isValidating,eS=d(eu.isLoading)?ew:eu.isLoading,ek=(0,n.useCallback)(async e=>{let t,n,i=A.current;if(!T||!i||L.current||U.current.isPaused())return!1;let l=!0,a=e||{},u=!N[T]||!a.dedupe,f=X&&!en(eh,H,T)&&!d(Q)&&d(W().data),v=()=>S?!L.current&&T===P.current&&F.current:T===P.current,m={isValidating:!1,isLoading:!1},g=()=>{z(m)},h=()=>{let e=N[T];e&&e[1]===n&&delete N[T]},b={isValidating:!0};d(W().data)&&(b.isLoading=!0);try{if(u&&(z(b),r.loadingTimeout&&d(W().data)&&setTimeout(()=>{l&&v()&&U.current.onLoadingSlow(T,r)},r.loadingTimeout),f&&ei(eh,H,T),N[T]=[f?Q:i(I),V()],f&&D[T]&&delete D[T]),[t,n]=N[T],t=await t,u&&setTimeout(h,r.dedupingInterval),!N[T]||N[T][1]!==n)return u&&v()&&U.current.onDiscarded(T),!1;m.error=o;let e=R[T];if(!d(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return g(),u&&v()&&U.current.onDiscarded(T),!1;let a=W().data;m.data=s(a,t)?a:t,u&&v()&&U.current.onSuccess(t,T,r)}catch(r){h();let e=U.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(m.error=r,u&&v()&&(e.onError(r,T,e),(!0===t||c(t)&&t(r))&&(!U.current.revalidateOnFocus||!U.current.revalidateOnReconnect||B())&&e.onErrorRetry(r,T,e,e=>{let t=w[T];t&&t[0]&&t[0](3,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return l=!1,g(),!0},[T,l]),eE=(0,n.useCallback)((...e)=>_(l,P.current,...e),[]);if(O(()=>{let e=eb.current;e&&(eb.current=null,ei(eh,e.cacheData,e.key),d(W().data)&&z({data:e.data,error:o,_k:e._k}),D[e.key]&&delete D[e.key])}),O(()=>{A.current=t,U.current=r,d(ec)||(em.current=ec)}),O(()=>{if(t||!X||d(Q)||en(eh,H,T)||!d(W().data))return;ei(eh,H,T);let e=R[T];(({value:e,getCacheData:t,canCommit:r,setCache:n})=>{let i=e=>{r()&&d(t())&&n(e)};Promise.resolve(e).then(e=>{i({data:e,error:o})},e=>{i({error:e})})})({value:Q,getCacheData:()=>W().data,canCommit:()=>!L.current&&T===P.current&&R[T]===e,setCache:e=>z({...e,_k:I})})}),O(()=>{if(!T)return;let e=ek.bind(o,er),t=0;U.current.revalidateOnFocus&&(t=Date.now()+U.current.focusThrottleInterval);let r=ee(T,w,(r,n={})=>{if(0==r){let r=Date.now();U.current.revalidateOnFocus&&r>t&&B()&&(t=r+U.current.focusThrottleInterval,e())}else if(1==r)U.current.revalidateOnReconnect&&B()&&e();else if(2==r)return ek();else if(3==r)return ek(n);else if(4==r&&(em.current=o,n.revalidate))return ek()});return L.current=!1,P.current=T,F.current=!0,z({_k:I}),ej&&!N[T]&&(d(ef)||k?e():E(e)),()=>{L.current=!0,r()}},[T]),O(()=>{let e;function t(){let t=c(b)?b(W().data):b;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!W().error&&(p||U.current.isVisible())&&(x||U.current.isOnline())?ek(er).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[b,p,x,T]),(0,n.useDebugValue)(ep),u){if(!S&&k&&ex&&d(Q))throw Error("Fallback data is required when using Suspense in SSR.");ex&&(A.current=t,U.current=r,L.current=!1);let e=!d(Q)&&ex,n=o;if(e&&X?(ef=n=Q&&v(Q)?et(Q):Q,ep=n,k||(eb.current={data:n,_k:I,key:T,cacheData:H})):et(e?eE(Q):el),!d(ev)&&ex)throw ev;let i=ex&&d(n)?ek(er):el;!d(ep)&&ex&&(i.status="fulfilled",i.value=!0),et(i)}return{mutate:eE,get data(){return q.data=!0,ep},get error(){return q.error=!0,ev},get isValidating(){return q.isValidating=!0,eR},get isLoading(){return q.isLoading=!0,eS}}});e.s(["u",0,es],699018),e.s(["default",0,es],560491);var eo=e.i(6799),eu=e.i(393080);let ed=new Set;function ec(e){return!e||"string"!=typeof e&&e.pathVariable?.some(e=>null==e)?null:e}async function ef(e){let t,r=await fetch(function(e){if("string"==typeof e)return e;let t=(e.pathVariable??[]).map(e=>encodeURIComponent(String(e))),r=[e.url,...t].join("/"),n=new URLSearchParams;for(let[t,r]of Object.entries(e.query??{}))null!=r&&n.set(t,String(r));let i=n.toString();return i?`${r}?${i}`:r}(e)),n=await r.text();try{t=n?JSON.parse(n):null}catch{throw Error(`Unexpected response (${r.status})`)}if((0,eu.isResult)(t))return(0,eu.unwrapResult)(t);if(!r.ok)throw Error(`Request failed (${r.status})`);return t}let ev={dedupingInterval:500,revalidateOnMount:!0,revalidateOnFocus:!0,revalidateOnReconnect:!0,focusThrottleInterval:1e3},em=new Map;function eg(e,t){let n=Date.now();n-(em.get(t)??0)<3e4||(em.set(t,n),eo.toast.add({type:"error",title:"Failed to load",description:(0,r.errorToString)(e)}))}e.s(["fetchRoute",0,ef,"registerPagedReader",0,function(e){return ed.add(e),()=>{ed.delete(e)}},"resolveKey",0,ec,"revalidate",0,function(e){let t="string"==typeof e?e:e.url;return Promise.all([W(e=>(function(e,t){if("string"==typeof e)return e.startsWith(t);let r=e?.url;return"string"==typeof r&&r.startsWith(t)})(e,t)),...[...ed].filter(e=>e.url.startsWith(t)).map(e=>e.refresh())])},"revalidateAll",0,()=>Promise.all([W(()=>!0),...[...ed].map(e=>e.refresh())]),"useServerRoute",0,function(e,t){return es(ec(e),ef,{...ev,...t,onError:t?.onError??eg})}],283653)},895836,e=>{"use strict";var t=e.i(843476),r=e.i(689664),n=e.i(77071),i=e.i(566595),l=e.i(271645),a=e.i(23750),s=e.i(671428),o=e.i(647163);let u="px-8 pt-8 pb-6";function d({className:e,children:r}){return(0,t.jsx)("div",{className:(0,o.cn)("mx-auto w-full max-w-[55rem]",e),children:r})}function c({left:e,right:r,footer:n}){return(0,t.jsxs)("div",{className:"flex h-full min-h-0 flex-col",children:[(0,t.jsxs)("div",{className:"mt-8 flex min-h-0 flex-1 border-t border-border/60",children:[(0,t.jsx)("div",{className:"flex w-64 shrink-0 flex-col overflow-y-auto border-r border-border/60 bg-muted/20",children:e}),(0,t.jsx)("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto",children:r})]}),n&&(0,t.jsx)(v,{children:n})]})}let f=["w-28","w-36","w-24","w-32","w-20"];function v({children:e}){return(0,t.jsx)("div",{className:"shrink-0 border-t border-border/60 px-8",children:(0,t.jsx)(d,{className:"flex h-14 items-center gap-3 text-xs text-muted-foreground",children:e})})}function m({label:e,hint:r,filter:n,right:i}){return(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[e&&(0,t.jsx)("span",{className:"shrink-0 font-mono text-xs text-muted-foreground",children:e}),r&&(0,t.jsx)("span",{className:"truncate font-mono text-xs text-muted-foreground/60",children:r}),n,i&&(0,t.jsx)("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:i})]})}function g({addRow:e,children:r}){return(0,t.jsxs)("div",{className:"divide-y divide-border/60 rounded-xl border border-border/60",children:[e&&(0,t.jsx)(b,{label:e.label,onClick:e.onClick}),r]})}function h({className:e,children:r}){return(0,t.jsx)("p",{className:(0,o.cn)("px-1 font-mono text-[11px] text-muted-foreground",e),children:r})}function b({label:e,onClick:r}){return(0,t.jsxs)("button",{type:"button",onClick:r,className:"text-muted-foreground hover:text-foreground flex w-full items-center gap-3 p-4 text-left outline-none transition-colors hover:bg-muted/50 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,t.jsx)("span",{className:"grid size-10 shrink-0 place-items-center rounded-lg",children:(0,t.jsx)(n.Plus,{className:"size-4"})}),(0,t.jsx)("span",{className:"text-sm",children:e})]})}e.s(["NavBadge",0,function({tone:e,count:r}){return 0===r?null:void 0===r?(0,t.jsx)("span",{className:(0,o.cn)("size-1.5 shrink-0 rounded-full","red"===e?"bg-destructive":"bg-amber-600 dark:bg-amber-400")}):(0,t.jsx)("span",{className:(0,o.cn)("shrink-0 font-mono text-[11px]","red"===e?"text-destructive":o.WAITING_INK),children:r})},"SettingChoiceRows",0,function({options:e,value:n,onChange:i,disabled:l}){return(0,t.jsx)(g,{children:e.map(e=>{let a=e.value===n;return(0,t.jsxs)("button",{type:"button",disabled:l||!!e.disabled,onClick:()=>i(e.value),className:(0,o.cn)("flex w-full items-center gap-3 p-4 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",a?"bg-muted/40":"hover:bg-muted/50",e.disabled&&"opacity-50"),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:e.label}),(e.disabled||e.hint)&&(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:e.disabled||e.hint})]}),a&&(0,t.jsx)(r.Check,{className:"size-4 shrink-0"})]},e.value)})})},"SettingColumn",0,d,"SettingDialogContent",0,function({title:e,description:r,children:n,footer:i}){return(0,t.jsxs)("div",{className:"flex min-w-0 max-h-[75vh] flex-col gap-6 p-1",children:[(0,t.jsx)("div",{className:"flex shrink-0 items-start justify-between gap-3",children:(0,t.jsxs)("div",{className:"min-w-0 space-y-1 px-6",children:[(0,t.jsx)("p",{className:"truncate text-xl font-semibold",children:e}),r&&(0,t.jsx)("div",{className:"text-xs text-muted-foreground",children:r})]})}),(0,t.jsx)("div",{className:"min-h-0 min-w-0 flex-1 scroll-py-3 overflow-y-auto",children:(0,t.jsx)("div",{className:"space-y-4 p-1 px-6",children:n})}),i&&(0,t.jsx)("div",{className:"flex shrink-0 justify-end gap-2 px-6",children:i})]})},"SettingError",0,function({message:e}){return(0,t.jsx)("div",{className:u,children:(0,t.jsx)(d,{children:(0,t.jsx)("p",{className:"font-mono text-xs text-destructive",children:e})})})},"SettingFilter",0,function({value:e,onChange:r,placeholder:n,className:l}){return(0,t.jsxs)("div",{className:(0,o.cn)("relative w-72 max-w-full",l),children:[(0,t.jsx)(i.Search,{className:"pointer-events-none absolute top-1/2 left-2.5 size-3.5 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)(a.Input,{"data-setting-filter":"","aria-label":n,placeholder:n,value:e,onChange:e=>r(e.target.value),className:"h-8 pl-8"})]})},"SettingGroup",0,function({label:e,hint:r,filter:n,right:i,note:l,children:a}){return(0,t.jsxs)("section",{children:[(e||r||n||i)&&(0,t.jsx)("div",{className:"mb-3",children:(0,t.jsx)(m,{label:e,hint:r,filter:n,right:i})}),a,l&&(0,t.jsx)(h,{className:"mt-2",children:l})]})},"SettingItems",0,g,"SettingMore",0,function({hasMore:e,loading:r,sentinelRef:n,ghost:i,count:a=2,className:s}){return e?(0,t.jsx)("div",{ref:n,"aria-busy":r,"aria-label":"Loading more",className:s,children:Array.from({length:a},(e,r)=>(0,t.jsx)(l.Fragment,{children:i},`ghost-${r}`))}):null},"SettingNote",0,h,"SettingPanes",0,c,"SettingPanesSkeleton",0,function({rows:e=7}){return(0,t.jsx)(c,{footer:(0,t.jsx)(s.Skeleton,{className:"h-3 w-64 max-w-full"}),left:(0,t.jsx)("div",{className:"flex flex-col py-2",children:Array.from({length:e},(e,r)=>(0,t.jsx)("div",{className:"mx-2 flex items-center px-2 py-2",children:(0,t.jsx)(s.Skeleton,{className:(0,o.cn)("h-3",f[r%f.length])})},r))}),right:(0,t.jsx)("div",{className:"flex h-11 shrink-0 items-center border-b border-border/60 px-6",children:(0,t.jsx)(s.Skeleton,{className:"h-3 w-40"})})})},"SettingRailNote",0,function({children:e}){return(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e})},"SettingScreen",0,function({footer:e,children:r}){return(0,t.jsxs)("div",{className:"flex h-full min-h-0 flex-col",children:[(0,t.jsxs)("div",{className:"relative min-h-0 flex-1",children:[(0,t.jsx)("div",{className:"h-full w-full scroll-py-6 overflow-y-auto",children:(0,t.jsx)("div",{className:u,children:(0,t.jsx)(d,{children:(0,t.jsx)("div",{className:(0,o.cn)("-m-1 p-1","space-y-8"),children:r})})})}),(0,t.jsx)("div",{className:"pointer-events-none absolute top-0 left-0 h-6 w-full bg-linear-to-b from-background to-transparent dark:hidden"})]}),e&&(0,t.jsx)(v,{children:e})]})},"SettingSkeleton",0,function({rows:e=3}){return(0,t.jsx)("div",{className:u,children:(0,t.jsx)(d,{className:"space-y-3",children:Array.from({length:e},(e,r)=>(0,t.jsx)(s.Skeleton,{className:"h-16 w-full rounded-xl"},r))})})},"SettingToolbar",0,function({children:e,count:r}){return(0,t.jsx)(m,{filter:e,right:r})}])},166432,e=>{"use strict";e.s([])},932013,666493,568815,155627,157153,45574,535718,910148,e=>{"use strict";var t=e.i(271645),r=e.i(146376),n=e.i(667865),i=e.i(469690),l=e.i(875812),a=e.i(387068),s=e.i(884708),o=e.i(388940),u=e.i(788015),d=e.i(247778),c=e.i(843476);let f=function(e){let r=(0,u.useBaseUiId)(),[i,l]=t.useState(r),[a,s]=t.useState(),[f,v]=t.useState([]),m=void 0===i?r:i,g=(0,o.useRefWithInit)(()=>new Map),{messageIds:h}=(0,d.useLabelableContext)(),b=(0,n.useStableCallback)((e,t)=>{let r=g.current;void 0===t?r.delete(e):r.set(e,t),l(e=>{let t;if(0===r.size)return e;for(let n of r.values()){if(n===e)return e;void 0===t&&(t=n)}return t})}),p=(0,n.useStableCallback)(()=>{0===g.current.size&&l(r)}),x=t.useCallback(e=>{let t=e["aria-describedby"]?e["aria-describedby"].split(" "):[];return t.push(...h,...f),{...e,"aria-describedby":Array.from(new Set(t)).join(" ")||void 0}},[h,f]),y=t.useMemo(()=>({controlId:m,registerControlId:b,resetControlId:p,labelId:a,setLabelId:s,messageIds:f,setMessageIds:v,getDescriptionProps:x}),[m,b,p,a,s,f,v,x]);return(0,c.jsx)(d.LabelableContext.Provider,{value:y,children:e.children})};e.s(["LabelableProvider",0,f],666493);var v=e.i(552245),m=e.i(956789),g=e.i(439957),h=e.i(176782);function b(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}e.s(["getCombinedFieldValidityData",0,b],568815);let p=Object.keys(l.DEFAULT_VALIDITY_STATE);function x(e,t){return!e.matches(":disabled")&&(!t||e.form===t||null===e.form&&!e.hasAttribute("form"))}function y(e,t){let r=null;for(let n of e.keys())if(x(n,t)){if(!n.validity.valid)return n;r??=n}return r}function C(e){return{...l.DEFAULT_VALIDITY_STATE,valid:!e,customError:e}}function j(e){return e&&e.validationMessage?[e.validationMessage]:[]}function w(e){let{elementRef:r,formRef:i}=(0,s.useFormContext)(),{setValidityData:l,validate:a,validityData:u,validationDebounceTime:c,invalid:f,markedDirtyRef:v,state:x,shouldValidateOnChange:w,validationMode:R,registeredFieldIdRef:S}=e,{controlId:k,getDescriptionProps:E}=(0,d.useLabelableContext)(),O=(0,g.useTimeout)(),N=t.useRef(null),D=(0,o.useRefWithInit)(()=>new Map).current,T=t.useRef(0),I=t.useRef(null),F=t.useCallback((e,t)=>(D.set(e,t),()=>{D.delete(e)}),[D]),L=(0,n.useStableCallback)(()=>{let e=y(D,r.current);return e&&D.get(e)?.controlRef.current||null}),M=(0,n.useStableCallback)(async(e,t=!1)=>{T.current+=1;let n=T.current;function s(){let e=I.current;I.current=null,e&&(!e[0].willValidate||e[0].validationMessage===e[1])&&e[0].setCustomValidity(e[2])}function o(t,r,n){let a,s=(a=!1===t.valid?r:[],{value:e,state:t,error:a[0]??"",errors:a,initialValue:u.initialValue});!function(e,t=f){let r=S.current??k;if(null==r)return;let n=i.current.fields.get(r);if(!n)return;let l=b(e,t);i.current.fields.set(r,{...n,validityData:l})}(s,n),l(s)}function d(){return D.size>0?y(D,r.current):N.current}let c=d();function m(){return c=d(),c?.willValidate?function(e){let t=p.reduce((t,r)=>(t[r]=e.validity[r],t),{}),r=!1;for(let e of p)if("valid"!==e){if("valueMissing"===e&&t[e])r=!0;else if(t[e])return t}return r&&!v.current&&(t.valid=!0,t.valueMissing=!1),t}(c):C(!1)}if(t){if(!1!==x.valid||!c)return;if(!c.validity.valueMissing){s();let e=d(),t=e?.validity.customError?j(e):[];o(C(t.length>0),t,!1);return}for(let e of p)if("valid"!==e&&"valueMissing"!==e&&"customError"!==e&&c.validity[e])return}O.clear(),s();let g=m(),h=j(c),E=w();if(0===h.length||E){let t,r=a(e,Array.from(i.current.fields.values()).reduce((e,t)=>(t.name&&(e[t.name]=t.getValue()),e),{}));if("object"==typeof r&&null!==r&&"then"in r){if(!1===g.valid?o(g,h):"onSubmit"!==R&&u.state.customError||(g.valid=null,o(g,h)),t=await r,n!==T.current)return;g=m()}else t=r;if((h=t?[].concat(t).filter(Boolean):[]).length>0){var F,L;let e,t;g.valid=!1,g.customError=!0,c?.willValidate&&(F=c,L=h.join("\n"),e=F.validity.customError?F.validationMessage:"",t=L.replace(/\r\n?/g,"\n"),F.setCustomValidity(t),I.current=[F,t,e])}else h=j(c)}o(g,h)}),P=(0,n.useStableCallback)((e,t=!1)=>{if(O.clear(),T.current+=1,t)return;let r=w();r&&""!==e&&c?O.start(c,()=>{M(e)}):M(e,!r)}),V=t.useCallback((e,t={})=>(0,h.mergeProps)(E(t),!1!==x.valid||x.disabled||e?m.EMPTY_OBJECT:{"aria-invalid":!0}),[E,x.disabled,x.valid]);return t.useMemo(()=>({getValidationProps:V,inputRef:N,registeredInputs:D,registerInput:F,getInputControl:L,commit:M,change:P}),[V,D,F,L,M,P])}e.s(["isEligibleInput",0,x,"useFieldValidation",0,w],155627);let R=t.forwardRef(function(e,o){let{errors:u,validationMode:d,submitCountRef:f}=(0,s.useFormContext)(),{render:m,className:g,validate:h,validationDebounceTime:p=0,validationMode:x=d,name:y,disabled:C=!1,invalid:j,dirty:R,touched:S,actionsRef:k,style:E,...O}=e,N=(0,a.useFieldsetRootContext)(!0)?.disabled,D=(0,n.useStableCallback)(h||(()=>null)),T=N||C,[I,F]=t.useState(!1),[L,M]=t.useState(!1),[P,V]=t.useState(!1),[_,A]=t.useState(!1),U=R??L,B=S??I,W=t.useRef(U),z=t.useRef(void 0),[K,$]=t.useState(),q=y??K;(0,r.useIsoLayoutEffect)(()=>{void 0!==R&&(W.current=R)},[R]);let Y=(0,n.useStableCallback)(e=>{void 0===R&&(e&&(W.current=!0),M(e))}),H=(0,n.useStableCallback)(e=>{void 0===S&&F(e)}),J=(0,n.useStableCallback)(()=>"onChange"===x||"onSubmit"===x&&f.current>0),G=q&&Object.hasOwn(u,q)?u[q]:null,X=!!(Array.isArray(G)?G.length:G),Q=!0===j||X,[Z,ee]=t.useState({state:l.DEFAULT_VALIDITY_STATE,error:"",errors:[],value:null,initialValue:null}),et=!Q&&(T?null:Z.state.valid),er=t.useMemo(()=>({disabled:T,touched:B,dirty:U,valid:et,filled:P,focused:_}),[T,B,U,et,P,_]),en=w({setValidityData:ee,validate:D,validityData:Z,validationDebounceTime:p,invalid:Q,markedDirtyRef:W,state:er,shouldValidateOnChange:J,validationMode:x,registeredFieldIdRef:z}),[ei,el]=function(e){let{change:i,commit:l,invalid:a,markedDirtyRef:o,name:u,setRegisteredFieldName:d,registeredFieldIdRef:c,setValidityData:f,validityData:v}=e,{formRef:m}=(0,s.useFormContext)(),g=t.useRef(null),h=t.useRef(null),p=t.useRef(!1),x=(0,n.useStableCallback)(()=>{let e=h.current;if(e)return e.getValue?e.getValue():e.value});function y(e){return void 0===e.value?x():e.value}let C=(0,n.useStableCallback)(()=>{let e=h.current;(o.current=!0,e)?l(y(e)):l(v.value)});function j(e=h.current?.id){e&&m.current.fields.delete(e)}(0,r.useIsoLayoutEffect)(()=>{let e=h.current;e&&e.id&&(d(u?void 0:e.name),m.current.fields.set(e.id,{getValue:x,name:u??e.name,controlRef:e.controlRef,validityData:b(v,a),validate:C}))},[m,x,a,u,d,C,v]),(0,r.useIsoLayoutEffect)(()=>{let e=m.current.fields;return()=>{let t=h.current?.id;t&&e.delete(t)}},[m]);let w=(0,n.useStableCallback)((e,t)=>{let r;if(!t){g.current===e&&(g.current=null,i(void 0,!0),j(),h.current=null,d(void 0),c.current=void 0);return}let n=h.current?.id,l=g.current;l&&l!==e&&i(void 0,!0),g.current=e,h.current=t,u||d(t.name),c.current=t.id,n&&n!==t.id&&j(n),function(e){if(p.current)return;p.current=!0;let t=y(e);f(e=>e.initialValue===t?e:{...e,initialValue:t})}(t),(r=h.current)&&r.id&&m.current.fields.set(r.id,{getValue:x,name:u??r.name,controlRef:r.controlRef,validityData:b(v,a),validate:C})});return[C,w]}({change:en.change,commit:en.commit,invalid:Q,markedDirtyRef:W,name:y,setRegisteredFieldName:$,registeredFieldIdRef:z,setValidityData:ee,validityData:Z});t.useImperativeHandle(k,()=>({validate:ei}),[ei]);let ea=t.useMemo(()=>({invalid:Q,name:q,validityData:Z,setValidityData:ee,disabled:T,setTouched:H,setDirty:Y,setFilled:V,setFocused:A,validationMode:x,shouldValidateOnChange:J,state:er,registerFieldControl:el,validation:en}),[Q,q,Z,T,H,Y,V,A,x,J,er,el,en]),es=(0,v.useRenderElement)("div",e,{ref:o,state:er,props:O,stateAttributesMapping:l.fieldValidityMapping});return(0,c.jsx)(i.FieldRootContext.Provider,{value:ea,children:es})}),S=t.forwardRef(function(e,t){return(0,c.jsx)(f,{children:(0,c.jsx)(R,{...e,ref:t})})});e.s(["FieldRoot",0,S],932013);var k=e.i(229315),E=e.i(108868),O=e.i(584446);let N=t.createContext({disabled:!1});function D(){return t.useContext(N)}e.s(["FieldItemContext",0,N,"useFieldItemContext",0,D],157153);let T=t.forwardRef(function(e,a){let{render:s,className:o,style:c,id:f,nativeLabel:m=!0,...g}=e,h=(0,i.useFieldRootContext)(!1),b=D(),{labelId:p}=(0,d.useLabelableContext)(),x={...h.state,disabled:h.disabled||b.disabled},y=t.useRef(null),C=function(e={}){let t,{id:i,fallbackControlId:l,native:a=!1,setLabelId:s,focusControl:o}=e,{controlId:c,setLabelId:f}=(0,d.useLabelableContext)(),v=(0,n.useStableCallback)(e=>{f(e),s?.(e)}),m=(t=(0,u.useBaseUiId)(i),(0,r.useIsoLayoutEffect)(()=>(v(t),()=>{v(e=>e===t?void 0:e)}),[t,v]),t),g=c??l;function h(e){let t=(0,O.getTarget)(e.nativeEvent);t?.closest("button,input,select,textarea")||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),a||function(e){if(o)return o(e,g);if(!g)return;let t=(0,E.ownerDocument)(e.currentTarget).getElementById(g);(0,k.isHTMLElement)(t)&&t.focus({focusVisible:!0})}(e))}return a?{id:m,htmlFor:g,onMouseDown:h}:{id:m,onClick:h,onPointerDown(e){e.preventDefault()}}}({id:p??f,native:m});return(0,v.useRenderElement)("label",e,{ref:[a,y],state:x,props:[C,g],stateAttributesMapping:l.fieldValidityMapping})});e.s(["FieldLabel",0,T],45574);var I=e.i(137584),F=e.i(474354),L=e.i(223910);let M={...l.fieldValidityMapping,...F.transitionStatusMapping},P=t.forwardRef(function(e,n){let{render:l,id:a,className:o,match:f,style:m,...g}=e,h=(0,u.useBaseUiId)(a),{validityData:b,state:p,name:x}=(0,i.useFieldRootContext)(!1),{setMessageIds:y}=(0,d.useLabelableContext)(),{errors:C}=(0,s.useFormContext)(),j=x&&Object.hasOwn(C,x)?C[x]:null,w=!!(Array.isArray(j)?j.length:j),R="string"==typeof f,S=!1;S=!0===f||!p.disabled&&(R?!!b.state[f]:w||!1===b.state.valid);let{mounted:k,transitionStatus:E,setMounted:O}=(0,L.useTransitionStatus)(S);(0,r.useIsoLayoutEffect)(()=>{if(S&&h)return y(e=>e.concat(h)),()=>{y(e=>e.filter(e=>e!==h))}},[S,h,y]);let N=t.useRef(null),[D,T]=t.useState(null),[F,P]=t.useState(null),V=b.error;!R&&w?V=j:b.errors.length>1&&(V=b.errors);let _=V;Array.isArray(V)&&(_=V.length>1?(0,c.jsx)("ul",{children:V.map(e=>(0,c.jsx)("li",{children:e},e))}):V[0]);let A=Array.isArray(V)?JSON.stringify(V):V;S&&A!==F&&(P(A),T(_)),(0,I.useOpenChangeComplete)({open:S,ref:N,onComplete(){S||O(!1)}});let U={...p,transitionStatus:E},B=(0,v.useRenderElement)("div",e,{ref:[n,N],state:U,props:[{id:h,children:S?_:D},g],stateAttributesMapping:M,enabled:k});return k?B:null});e.s(["FieldError",0,P],535718);let V=t.forwardRef(function(e,t){let{render:n,id:a,className:s,style:o,...c}=e,f=(0,u.useBaseUiId)(a),m=(0,i.useFieldRootContext)(!1),g=D(),{setMessageIds:h}=(0,d.useLabelableContext)(),b={...m.state,disabled:m.disabled||g.disabled};return(0,r.useIsoLayoutEffect)(()=>{if(f)return h(e=>e.concat(f)),()=>{h(e=>e.filter(e=>e!==f))}},[f,h]),(0,v.useRenderElement)("p",e,{ref:t,state:b,props:[{id:f},c],stateAttributesMapping:l.fieldValidityMapping})});e.s(["FieldDescription",0,V],910148)},387068,e=>{"use strict";e.i(247167);var t=e.i(733332),r=e.i(271645);let n=r.createContext(void 0);e.s(["useFieldsetRootContext",0,function(e=!1){let i=r.useContext(n);if(!i&&!e)throw Error((0,t.default)(86));return i}])},381104,e=>{"use strict";var t=e.i(146376),r=e.i(388940),n=e.i(469690);e.s(["useRegisterFieldControl",0,function(e,i,l,a,s=!0,o){let{registerFieldControl:u}=(0,n.useFieldRootContext)(),d=(0,r.useRefWithInit)(()=>Symbol());(0,t.useIsoLayoutEffect)(()=>{let t=d.current;s?u(t,{controlRef:e,getValue:a,id:i,name:o,value:l}):u(t,void 0)},[e,s,a,i,o,u,d,l]),(0,t.useIsoLayoutEffect)(()=>{let e=d.current;return()=>{u(e,void 0)}},[u,d])}])},469690,875812,e=>{"use strict";var t=e.i(733332),r=e.i(271645),n=e.i(956789);let i={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},l={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},a={disabled:!1,...l};e.s(["DEFAULT_FIELD_ROOT_STATE",0,a,"DEFAULT_FIELD_STATE_ATTRIBUTES",0,l,"DEFAULT_VALIDITY_STATE",0,i,"fieldValidityMapping",0,{valid:e=>null===e?null:e?{"data-valid":""}:{"data-invalid":""}}],875812);let s={invalid:void 0,name:void 0,validityData:{state:i,errors:[],error:"",value:"",initialValue:null},setValidityData:n.NOOP,disabled:void 0,setTouched:n.NOOP,setDirty:n.NOOP,setFilled:n.NOOP,setFocused:n.NOOP,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:a,registerFieldControl:n.NOOP,validation:{getValidationProps:(e,t=n.EMPTY_OBJECT)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:n.NOOP,getInputControl:()=>null,commit:async()=>{},change:n.NOOP}},o=r.createContext(s);e.s(["DEFAULT_FIELD_ROOT_CONTEXT",0,s,"FieldRootContext",0,o,"useFieldRootContext",0,function(e=!0){let i=r.useContext(o);if(i.setValidityData===n.NOOP&&!e)throw Error((0,t.default)(28));return i}],469690)},884708,247778,e=>{"use strict";var t=e.i(271645),r=e.i(956789);let n=t.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:r.NOOP,validationMode:"onSubmit",submitCountRef:{current:0}});e.s(["useFormContext",0,function(){return t.useContext(n)}],884708);let i=t.createContext({controlId:void 0,registerControlId:r.NOOP,resetControlId:r.NOOP,labelId:void 0,setLabelId:r.NOOP,messageIds:[],setMessageIds:r.NOOP,getDescriptionProps:e=>e});e.s(["LabelableContext",0,i,"useLabelableContext",0,function(){return t.useContext(i)}],247778)},538489,e=>{"use strict";var t=e.i(271645),r=e.i(146376),n=e.i(667865),i=e.i(388940),l=e.i(956789),a=e.i(788015),s=e.i(247778);e.s(["useLabelableId",0,function(e={}){let{id:o,enabled:u=!0}=e,{controlId:d,registerControlId:c,resetControlId:f}=(0,s.useLabelableContext)(),v=(0,a.useBaseUiId)(),m=(0,i.useRefWithInit)(()=>Symbol()),g=t.useRef(!1),h=t.useRef(!1),b=(0,n.useStableCallback)(()=>{g.current&&c!==l.NOOP&&(g.current=!1,c(m.current,void 0))});return(0,r.useIsoLayoutEffect)(()=>{let e;if(!u||c===l.NOOP)return void b();if(void 0!==o)h.current=!0,e=o;else{if(!h.current)return void f();e=v}void 0===e?b():(g.current=!0,c(m.current,e))},[o,u,c,f,v,m,b]),(0,r.useIsoLayoutEffect)(()=>b,[b]),(u?d:void 0)??o??v}])},951437,e=>{"use strict";e.i(247167);var t=e.i(271645);e.s(["useControlled",0,function({controlled:e,default:r,name:n,state:i="value"}){let{current:l}=t.useRef(void 0!==e),[a,s]=t.useState(r),o=t.useCallback(e=>{l||s(e)},[]);return[l&&void 0!==e?e:a,o]}])},689664,643957,e=>{"use strict";var t=e.i(456420);let r={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};r.node;let n=(0,t.default)(r);e.s(["default",0,n],643957),e.s(["Check",0,n],689664)},77071,e=>{"use strict";var t=e.i(456420);let r={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};r.node;let n=(0,t.default)(r);e.s(["Plus",0,n],77071)},566595,630299,e=>{"use strict";var t=e.i(456420);let r={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};r.node;let n=(0,t.default)(r);e.s(["default",0,n],630299),e.s(["Search",0,n],566595)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,23750,e=>{"use strict";var t=e.i(843476),r=e.i(271645);e.i(166432);var n=e.i(932013),i=e.i(45574),l=e.i(535718),a=e.i(910148),s=e.i(951437),o=e.i(146376),u=e.i(108868),d=e.i(667865),c=e.i(439957),f=e.i(469690),v=e.i(381104),m=e.i(884708),g=e.i(247778),h=e.i(538489),b=e.i(875812),x=e.i(552245),p=e.i(606039),y=e.i(675606),C=e.i(56434),j=e.i(584446);let w=r.forwardRef(function(e,t){let{render:n,className:i,id:l,name:a,value:w,disabled:R=!1,onValueChange:S,defaultValue:k,autoFocus:E=!1,style:O,...N}=e,{state:D,name:T,disabled:I,setTouched:F,setDirty:L,validityData:M,setFocused:P,setFilled:V,validationMode:_,validation:A}=(0,f.useFieldRootContext)(),{clearErrors:U,elementRef:B,submitCountRef:W}=(0,m.useFormContext)(),z=I||R,K=T??a,$={...D,disabled:z},{labelId:q}=(0,g.useLabelableContext)(),Y=(0,h.useLabelableId)({id:l}),[H]=(0,s.useControlled)({controlled:w,default:k,name:"FieldControl",state:"value"}),J=void 0!==w,G=J?H:void 0,X=null==G?void 0:String(G),Q=(0,d.useStableCallback)(()=>A.inputRef.current?.value);(0,v.useRegisterFieldControl)(A.inputRef,Y,X,Q,!z,a),(0,o.useIsoLayoutEffect)(()=>{let e=X??A.inputRef.current?.value;void 0!==e&&V(""!==e)},[X,A.inputRef,V]),(0,p.useValueChanged)(X,()=>{void 0!==X&&(U(K),L(X!==(M.initialValue??"")),A.change(X))});let Z=r.useRef(null),ee=(0,c.useTimeout)();return(0,o.useIsoLayoutEffect)(()=>{E&&Z.current===(0,j.activeElement)((0,u.ownerDocument)(Z.current))&&P(!0)},[E,P]),(0,x.useRenderElement)("input",e,{ref:[t,Z],state:$,props:[{id:Y,disabled:z,name:K,ref:A.inputRef,"aria-labelledby":q,autoFocus:E,...J?{value:G}:{defaultValue:k},onChange(e){let t=e.currentTarget.value,r=(0,y.createChangeEventDetails)(C.REASONS.none,e.nativeEvent);S?.(t,r),!J&&(L(t!==(M.initialValue??"")),V(""!==t),e.nativeEvent.defaultPrevented||r.isCanceled||(U(K),A.change(t)))},onFocus(){P(!0)},onBlur(e){if(F(!0),P(!1),"onBlur"===_){let t=e.currentTarget.value;A.commit(t),J&&queueMicrotask(()=>{let e=A.inputRef.current?.value;void 0!==e&&e!==t&&e!==(M.initialValue??"")&&A.commit(e)})}},onKeyDown(e){if("INPUT"===e.currentTarget.tagName&&"Enter"===e.key){F(!0);let t=e.currentTarget.value,r=e.currentTarget.form;if(r&&r===B.current&&!e.defaultPrevented){let t=e.currentTarget,r=W.current;ee.start(0,()=>{W.current===r&&A.commit(t.value)})}else A.commit(t)}}},N,e=>A.getValidationProps(z,e)],stateAttributesMapping:b.fieldValidityMapping})});var R=e.i(568815),S=e.i(223910),k=e.i(157153),E=e.i(666493);let O=r.forwardRef(function(e,n){let{render:i,className:l,style:a,disabled:s=!1,...o}=e,{state:u,disabled:d}=(0,f.useFieldRootContext)(!1),c=d||s,v={...u,disabled:c},m=r.useMemo(()=>({disabled:c}),[c]),g=(0,x.useRenderElement)("div",e,{ref:n,state:v,props:o,stateAttributesMapping:b.fieldValidityMapping});return(0,t.jsx)(E.LabelableProvider,{children:(0,t.jsx)(k.FieldItemContext.Provider,{value:m,children:g})})});e.s(["Control",0,w,"Description",()=>a.FieldDescription,"Error",()=>l.FieldError,"Item",0,O,"Label",()=>i.FieldLabel,"Root",()=>n.FieldRoot,"Validity",0,function(e){let{children:n}=e,{validityData:i,invalid:l}=(0,f.useFieldRootContext)(!1),a=r.useMemo(()=>(0,R.getCombinedFieldValidityData)(i,l),[i,l]),s=!1===a.state.valid,{transitionStatus:o}=(0,S.useTransitionStatus)(s),u=r.useMemo(()=>({...a,validity:a.state,transitionStatus:o}),[a,o]);return(0,t.jsx)(r.Fragment,{children:n(u)})}],305359);var N=e.i(305359),N=N;let D=r.forwardRef(function(e,r){return(0,t.jsx)(N.Control,{ref:r,...e})});var T=e.i(647163);let I="h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40";e.s(["Input",0,function({className:e,type:r,...n}){return(0,t.jsx)(D,{type:r,"data-slot":"input",className:(0,T.cn)(I,e),...n})},"inputClassName",0,I],23750)},917162,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(88014),i=e.i(167881),l=e.i(630374),a=e.i(23750),s=e.i(184762),o=e.i(647163);let u=()=>{let e=document.createElement("div");return e.id=crypto.randomUUID(),document.body.appendChild(e),e};e.s(["notify",0,{component:({renderer:e,className:r})=>new Promise(i=>{let a=u(),s=(0,n.createRoot)(a),d=()=>{s.unmount(),a.remove(),i()};s.render((0,t.jsx)(l.Dialog,{open:!0,onOpenChange:d,children:(0,t.jsxs)(l.DialogContent,{className:(0,o.cn)("px-0",r),children:[(0,t.jsxs)(l.DialogHeader,{className:"hidden",children:[(0,t.jsx)(l.DialogTitle,{}),(0,t.jsx)(l.DialogDescription,{})]}),e({close:d})]})}))}),alert:e=>new Promise(r=>{let a=u(),s=(0,n.createRoot)(a),o=()=>{s.unmount(),a.remove(),r()};s.render((0,t.jsx)(l.Dialog,{open:!0,onOpenChange:o,children:(0,t.jsxs)(l.DialogContent,{showCloseButton:!1,children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsx)(l.DialogTitle,{children:e.title}),(0,t.jsx)(l.DialogDescription,{children:e.description})]}),(0,t.jsx)(l.DialogFooter,{children:(0,t.jsx)(i.Button,{variant:"ghost",onClick:o,autoFocus:!0,children:e.okText||"OK"})})]})}))}),confirm:e=>new Promise(r=>{let a=u(),s=(0,n.createRoot)(a),o=()=>{s.unmount(),a.remove()},d=()=>{r(!0),o()},c=()=>{r(!1),o()};s.render((0,t.jsx)(function(){return(0,t.jsx)(l.Dialog,{open:!0,onOpenChange:c,children:(0,t.jsxs)(l.DialogContent,{showCloseButton:!1,children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsx)(l.DialogTitle,{children:e.title}),(0,t.jsx)(l.DialogDescription,{children:e.description})]}),(0,t.jsxs)(l.DialogFooter,{children:[(0,t.jsx)(i.Button,{variant:"ghost",onClick:c,autoFocus:e.destructive,children:e.cancelText||"Never mind"}),(0,t.jsx)(i.Button,{variant:e.destructive?"destructive":"secondary",onClick:d,autoFocus:!e.destructive,children:e.okText||"OK"})]})]})})},{}))}),prompt:e=>new Promise(o=>{let d=u(),c=(0,n.createRoot)(d),f=(e="")=>{c.unmount(),d.remove(),o(e)};c.render((0,t.jsx)(()=>{let[n,o]=(0,r.useState)(""),u=e=>{"Enter"!==e.key||e.shiftKey||e.nativeEvent.isComposing||(e.preventDefault(),f(n))};return(0,t.jsx)(l.Dialog,{open:!0,onOpenChange:()=>f(),children:(0,t.jsxs)(l.DialogContent,{showCloseButton:!1,children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsx)(l.DialogTitle,{children:e.title}),(0,t.jsx)(l.DialogDescription,{children:e.description}),e.multiline?(0,t.jsx)(s.Textarea,{className:"resize-none max-h-[200px]",placeholder:e.placeholder,autoFocus:!0,value:n,maxLength:e.maxLength,onKeyDown:u,onChange:e=>o(e.target.value)}):(0,t.jsx)(a.Input,{placeholder:e.placeholder,autoFocus:!0,value:n,maxLength:e.maxLength,onChange:e=>o(e.target.value),onKeyDown:u})]}),(0,t.jsxs)(l.DialogFooter,{children:[(0,t.jsx)(i.Button,{variant:"ghost",onClick:()=>f(),children:e.cancelText||"Cancel"}),(0,t.jsx)(i.Button,{disabled:!n.trim(),variant:"secondary",onClick:()=>f(n),children:e.okText||"OK"})]})]})})},{}))})}])},184762,677309,646192,271235,699018,560491,283653,e=>{"use strict";var t=e.i(843476),r=e.i(647163);e.s(["Textarea",0,function({className:e,...n}){return(0,t.jsx)("textarea",{"data-slot":"textarea",className:(0,r.cn)("flex field-sizing-content max-h-64 min-h-16 w-full overflow-y-auto rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...n})}],184762);var n=e.i(271645),i=e.i(802239),l=Object.prototype.hasOwnProperty;let a=new WeakMap,s=()=>{},o=s(),u=Object,d=e=>e===o,c=e=>"function"==typeof e,f=(e,t)=>({...e,...t}),v=e=>c(e.then),m={},g={},h="undefined",b=typeof window!=h,x=typeof document!=h,p=b&&"Deno"in window,y=(e,t)=>{let r=a.get(e);return[()=>!d(t)&&e.get(t)||m,n=>{if(!d(t)){let i=e.get(t);t in g||(g[t]=i),r[5](t,f(i,n),i||m)}},r[6],()=>!d(t)&&t in g?g[t]:!d(t)&&e.get(t)||m]},C=!0,[j,w]=b&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[s,s],R={initFocus:e=>(x&&document.addEventListener("visibilitychange",e),j("focus",e),()=>{x&&document.removeEventListener("visibilitychange",e),w("focus",e)}),initReconnect:e=>{let t=()=>{C=!0,e()},r=()=>{C=!1};return j("online",t),j("offline",r),()=>{w("online",t),w("offline",r)}}},S=!n.default.useId,k=!b||p,E=e=>b&&typeof window.requestAnimationFrame!=h?window.requestAnimationFrame(e):setTimeout(e,1),O=k?n.useEffect:n.useLayoutEffect,N="u">typeof navigator&&navigator.connection,D=!k&&N&&(["slow-2g","2g"].includes(N.effectiveType)||N.saveData),T=new WeakMap,I=(e,t)=>e===`[object ${t}]`,F=0,L=e=>{let t,r,n=typeof e,i=u.prototype.toString.call(e),l=I(i,"Date"),a=I(i,"RegExp"),s=I(i,"Object");if(u(e)!==e||l||a)t=l?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=T.get(e))return t;if(t=++F+"~",T.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=L(e[r])+",";T.set(e,t)}if(s){t="#";let n=u.keys(e).sort();for(;!d(r=n.pop());)d(e[r])||(t+=r+":"+L(e[r])+",");T.set(e,t)}}return t},M=e=>{if(c(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?L(e):"",t]},P=0,V=()=>++P;async function _(...e){let[t,r,n,i]=e,l=f({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),s=l.populateCache,u=l.rollbackOnError,m=l.optimisticData,g=l.throwOnError;if(c(r)){let e=[];for(let n of t.keys())!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n);return Promise.all(e.map(h))}return h(r);async function h(r){let i,[f]=M(r);if(!f)return;let[h,b]=y(t,f),[x,p,C,j]=a.get(t),w=()=>{let e=x[f];return(c(l.revalidate)?l.revalidate(h().data,r):!1!==l.revalidate)&&(delete C[f],delete j[f],e&&e[0])?e[0](2).then(()=>h().data):h().data};if(e.length<3)return w();let R=n,S=!1,k=V();p[f]=[k,0];let E=!d(m),O=h(),N=O.data,D=O._c,T=d(D)?N:D;if(E&&b({data:m=c(m)?m(T,N):m,_c:T}),c(R))try{R=R(T)}catch(e){i=e,S=!0}if(R&&v(R)){let e;if(R=await R.catch(e=>{i=e,S=!0}),k!==p[f][0]){if(S)throw i;return R}S&&E&&(e=i,"function"==typeof u?u(e):!1!==u)&&(s=!0,b({data:T,_c:o}))}if(s&&!S&&(c(s)?b({data:s(R,T),error:o,_c:o}):b({data:R,error:o,_c:o})),p[f][1]=V(),Promise.resolve(w()).then(()=>{b({_c:o})}),S){if(g)throw i;return}return R}}let A=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},U=(e,t)=>{if(!a.has(e)){let r=f(R,t),n=Object.create(null),i=_.bind(o,e),l=s,u=Object.create(null),d=(e,t)=>{let r=u[e]||[];return u[e]=r,r.push(t),()=>{let e=r.indexOf(t);e>=0&&(r[e]=r[r.length-1],r.pop())}},c=(t,r,n)=>{e.set(t,r);let i=u[t];if(i)for(let e of i)e(r,n)},v=t=>{let r=a.get(e),[,i,l,s]=r,o=V();for(let e in r[8]++,l)delete l[e];for(let e in s)delete s[e];for(let e in i)i[e]=[o,o];let d={};for(let t of[...e.keys()]){let r=e.get(t);e.delete(t);let n=u[t];if(n)for(let e of n)e(d,r)}let c=!t||!1!==t.revalidate;for(let e in n){let t=n[e];for(let e=0;e<t.length;e++)t[e](4,{revalidate:c&&!e})}},m=()=>{if(!a.has(e)&&(a.set(e,[n,Object.create(null),Object.create(null),Object.create(null),i,c,d,v,0]),!k)){let t=r.initFocus(setTimeout.bind(o,A.bind(o,n,0))),i=r.initReconnect(setTimeout.bind(o,A.bind(o,n,1)));l=()=>{t&&t(),i&&i(),a.delete(e)}}};return m(),[e,i,m,l,v]}let r=a.get(e);return[e,r[4],o,o,r[7]]},[B,W,,,z]=U(new Map),K=f({onLoadingSlow:s,onSuccess:s,onError:s,onErrorRetry:(e,t,r,n,i)=>{let l=r.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;(d(l)||!(a>l))&&setTimeout(n,s,i)},onDiscarded:s,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:D?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:D?5e3:3e3,compare:function e(t,r){var n,i;if(t===r)return!0;if(t&&r&&(n=t.constructor)===r.constructor){if(n===Date)return t.getTime()===r.getTime();if(n===RegExp)return t.toString()===r.toString();if(n===Array){if((i=t.length)===r.length)for(;i--&&e(t[i],r[i]););return -1===i}if(!n||"object"==typeof t){for(n in i=0,t)if(l.call(t,n)&&++i&&!l.call(r,n)||!(n in r)||!e(t[n],r[n]))return!1;return Object.keys(r).length===i}}return t!=t&&r!=r},isPaused:()=>!1,cache:B,mutate:W,unload:z,fallback:{}},{isOnline:()=>C,isVisible:()=>{let e=x&&document.visibilityState;return d(e)||"hidden"!==e}}),$=(e,t)=>{let r=f(e,t);if(t){let{use:n,fallback:i,cacheData:l}=e,{use:a,fallback:s,cacheData:o}=t;n&&a&&(r.use=n.concat(a)),i&&s&&(r.fallback=f(i,s)),l&&o&&(r.cacheData=f(l,o))}return r},q=(0,n.createContext)({}),Y=e=>{let{value:t}=e,r=(0,n.useContext)(q),i=c(t),l=(0,n.useMemo)(()=>i?t(r):t,[i,r,t]),a=(0,n.useMemo)(()=>i?l:$(r,l),[i,r,l]),s=l&&l.provider,u=(0,n.useRef)(o);s&&!u.current&&(u.current=U(s(a.cache||B),l));let d=u.current;return d&&(a.cache=d[0],a.mutate=d[1],a.unload=d[4]),O(()=>{if(d)return d[2]&&d[2](),d[3]},[]),(0,n.createElement)(q.Provider,f(e,{value:a}))};e.s(["E",0,3,"F",0,0,"I",0,k,"M",0,2,"O",0,u,"R",0,1,"S",0,Y,"U",0,o,"a",0,a,"b",0,v,"c",0,y,"d",0,K,"e",0,c,"f",0,_,"g",0,V,"h",0,4,"i",0,d,"j",0,S,"k",0,W,"m",0,f,"n",0,s,"o",0,B,"p",0,b,"q",0,q,"r",0,E,"s",0,M,"t",0,$,"u",0,O],677309);let H="$inf$";e.s(["INFINITE_PREFIX",0,H],646192);let J=b&&window.__SWR_DEVTOOLS_USE__,G=J?window.__SWR_DEVTOOLS_USE__:[],X=e=>c(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Q=G.concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let[n]=M(t),[,,,i]=a.get(B);if(n.startsWith(H))return r(...e);let l=i[n];return d(l)?r(...e):(delete i[n],l)});return e(t,i,n)}),Z=e=>function(...t){let r,i=(r=(0,n.useContext)(q),(0,n.useMemo)(()=>f(K,r),[r])),[l,a,s]=X(t),o=$(i,s),u=e,{use:d}=o,c=(d||[]).concat(Q);for(let e=c.length;e--;)u=c[e](u);return u(l,a||o.fetcher||null,o)},ee=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}};J&&(window.__SWR_DEVTOOLS_REACT__=n.default),e.s(["subscribeCallback",0,ee,"withArgs",0,Z,"withMiddleware",0,(e,t)=>(...r)=>{let[n,i,l]=X(r),a=(l.use||[]).concat(t);return e(n,i,{...l,use:a})}],271235);let et=n.default.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),er={dedupe:!0},en=(e,t,r)=>{var n;return!!t&&(null==(n=e.get(t))?void 0:n.has(r))===!0},ei=(e,t,r)=>{if(!t)return;let n=e.get(t);n||(n=new Set,e.set(t,n)),n.add(r)},el=Promise.resolve(o);el.status="fulfilled",el.value=o;let ea=()=>s;u.defineProperty(Y,"defaultValue",{value:K});let es=Z((e,t,r)=>{let{cache:l,compare:s,suspense:u,fallbackData:m,revalidateOnMount:g,revalidateIfStale:h,refreshInterval:b,refreshWhenHidden:x,refreshWhenOffline:p,keepPreviousData:C,strictServerPrefetchWarning:j}=r,[w,R,N,D]=a.get(l),[T,I]=M(e),F=(0,n.useRef)(!1),L=(0,n.useRef)(!1),P=(0,n.useRef)(T),A=(0,n.useRef)(t),U=(0,n.useRef)(r),B=()=>U.current.isVisible()&&U.current.isOnline(),[W,z,K,$]=y(l,T),q=(0,n.useRef)({}).current,Y=d(m)?d(r.fallback)?o:r.fallback[T]:m,H=r.cacheData,J=T?null==H?void 0:H[T]:o,G=T?D[T]:o,X=d(G)&&!d(J),Q=X?J:G,Z=(e,t)=>{for(let r in q)if("data"===r){if(!s(e[r],t[r])&&(!d(e[r])||!s(ex,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},es=!F.current,eo=(0,n.useMemo)(()=>{let e=W(),r=$(),n=e=>{let r=f(e);return(delete r._k,(()=>{if(!T||!t||U.current.isPaused())return!1;if(es&&!d(g))return g;let e=d(Y)?r.data:Y;return!(u&&X&&d(e))&&(d(e)||h)})())?{isValidating:!0,isLoading:!0,...r}:r},i=n(e),l=e===r?i:n(r),a=i;return[()=>{let e=n(W());return Z(e,a)?(a.data=e.data,a.isLoading=e.isLoading,a.isValidating=e.isValidating,a.error=e.error,a):(a=e,e)},()=>l]},[l,T]),eu=(0,i.useSyncExternalStore)((0,n.useCallback)(e=>K(T,(t,r)=>{Z(r,t)||e()}),[l,T]),eo[0],eo[1]),ed=w[T]&&w[T].length>0,ec=eu.data,ef=d(ec)?Y&&v(Y)?et(Y):Y:ec,ev=eu.error,em=(0,n.useRef)(ef),eg=(0,n.useRef)(o),eh=eg.current;eh||(eg.current=eh=new WeakMap);let eb=(0,n.useRef)(null),ex=C?d(ec)?d(em.current)?ef:em.current:ec:ef,ep=T&&d(ef),ey=(0,n.useRef)(null);k||(0,i.useSyncExternalStore)(ea,()=>(ey.current=!1,ey),()=>(ey.current=!0,ey));let eC=ey.current;j&&eC&&!u&&ep&&console.warn(`Missing pre-initiated data for serialized key "${T}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let ej=!(!T||!t||U.current.isPaused())&&(!ed||!!d(ev))&&(es&&!d(g)?g:(!u||!X||!ep)&&(u?!d(ef)&&h:d(ef)||h)),ew=es&&ej,eR=d(eu.isValidating)?ew:eu.isValidating,eS=d(eu.isLoading)?ew:eu.isLoading,ek=(0,n.useCallback)(async e=>{let t,n,i=A.current;if(!T||!i||L.current||U.current.isPaused())return!1;let l=!0,a=e||{},u=!N[T]||!a.dedupe,f=X&&!en(eh,H,T)&&!d(Q)&&d(W().data),v=()=>S?!L.current&&T===P.current&&F.current:T===P.current,m={isValidating:!1,isLoading:!1},g=()=>{z(m)},h=()=>{let e=N[T];e&&e[1]===n&&delete N[T]},b={isValidating:!0};d(W().data)&&(b.isLoading=!0);try{if(u&&(z(b),r.loadingTimeout&&d(W().data)&&setTimeout(()=>{l&&v()&&U.current.onLoadingSlow(T,r)},r.loadingTimeout),f&&ei(eh,H,T),N[T]=[f?Q:i(I),V()],f&&D[T]&&delete D[T]),[t,n]=N[T],t=await t,u&&setTimeout(h,r.dedupingInterval),!N[T]||N[T][1]!==n)return u&&v()&&U.current.onDiscarded(T),!1;m.error=o;let e=R[T];if(!d(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return g(),u&&v()&&U.current.onDiscarded(T),!1;let a=W().data;m.data=s(a,t)?a:t,u&&v()&&U.current.onSuccess(t,T,r)}catch(r){h();let e=U.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(m.error=r,u&&v()&&(e.onError(r,T,e),(!0===t||c(t)&&t(r))&&(!U.current.revalidateOnFocus||!U.current.revalidateOnReconnect||B())&&e.onErrorRetry(r,T,e,e=>{let t=w[T];t&&t[0]&&t[0](3,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return l=!1,g(),!0},[T,l]),eE=(0,n.useCallback)((...e)=>_(l,P.current,...e),[]);if(O(()=>{let e=eb.current;e&&(eb.current=null,ei(eh,e.cacheData,e.key),d(W().data)&&z({data:e.data,error:o,_k:e._k}),D[e.key]&&delete D[e.key])}),O(()=>{A.current=t,U.current=r,d(ec)||(em.current=ec)}),O(()=>{if(t||!X||d(Q)||en(eh,H,T)||!d(W().data))return;ei(eh,H,T);let e=R[T];(({value:e,getCacheData:t,canCommit:r,setCache:n})=>{let i=e=>{r()&&d(t())&&n(e)};Promise.resolve(e).then(e=>{i({data:e,error:o})},e=>{i({error:e})})})({value:Q,getCacheData:()=>W().data,canCommit:()=>!L.current&&T===P.current&&R[T]===e,setCache:e=>z({...e,_k:I})})}),O(()=>{if(!T)return;let e=ek.bind(o,er),t=0;U.current.revalidateOnFocus&&(t=Date.now()+U.current.focusThrottleInterval);let r=ee(T,w,(r,n={})=>{if(0==r){let r=Date.now();U.current.revalidateOnFocus&&r>t&&B()&&(t=r+U.current.focusThrottleInterval,e())}else if(1==r)U.current.revalidateOnReconnect&&B()&&e();else if(2==r)return ek();else if(3==r)return ek(n);else if(4==r&&(em.current=o,n.revalidate))return ek()});return L.current=!1,P.current=T,F.current=!0,z({_k:I}),ej&&!N[T]&&(d(ef)||k?e():E(e)),()=>{L.current=!0,r()}},[T]),O(()=>{let e;function t(){let t=c(b)?b(W().data):b;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!W().error&&(x||U.current.isVisible())&&(p||U.current.isOnline())?ek(er).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[b,x,p,T]),(0,n.useDebugValue)(ex),u){if(!S&&k&&ep&&d(Q))throw Error("Fallback data is required when using Suspense in SSR.");ep&&(A.current=t,U.current=r,L.current=!1);let e=!d(Q)&&ep,n=o;if(e&&X?(ef=n=Q&&v(Q)?et(Q):Q,ex=n,k||(eb.current={data:n,_k:I,key:T,cacheData:H})):et(e?eE(Q):el),!d(ev)&&ep)throw ev;let i=ep&&d(n)?ek(er):el;!d(ex)&&ep&&(i.status="fulfilled",i.value=!0),et(i)}return{mutate:eE,get data(){return q.data=!0,ex},get error(){return q.error=!0,ev},get isValidating(){return q.isValidating=!0,eR},get isLoading(){return q.isLoading=!0,eS}}});e.s(["u",0,es],699018),e.s(["default",0,es],560491);var eo=e.i(6799),eu=e.i(393080);let ed=new Set;function ec(e){return!e||"string"!=typeof e&&e.pathVariable?.some(e=>null==e)?null:e}async function ef(e){let t,r=await fetch(function(e){if("string"==typeof e)return e;let t=(e.pathVariable??[]).map(e=>encodeURIComponent(String(e))),r=[e.url,...t].join("/"),n=new URLSearchParams;for(let[t,r]of Object.entries(e.query??{}))null!=r&&n.set(t,String(r));let i=n.toString();return i?`${r}?${i}`:r}(e)),n=await r.text();try{t=n?JSON.parse(n):null}catch{throw Error(`Unexpected response (${r.status})`)}if((0,eu.isResult)(t))return(0,eu.unwrapResult)(t);if(!r.ok)throw Error(`Request failed (${r.status})`);return t}let ev={dedupingInterval:500,revalidateOnMount:!0,revalidateOnFocus:!0,revalidateOnReconnect:!0,focusThrottleInterval:1e3},em=new Map;function eg(e,t){let n=Date.now();n-(em.get(t)??0)<3e4||(em.set(t,n),eo.toast.add({type:"error",title:"Failed to load",description:(0,r.errorToString)(e)}))}e.s(["fetchRoute",0,ef,"registerPagedReader",0,function(e){return ed.add(e),()=>{ed.delete(e)}},"resolveKey",0,ec,"revalidate",0,function(e){let t="string"==typeof e?e:e.url;return Promise.all([W(e=>(function(e,t){if("string"==typeof e)return e.startsWith(t);let r=e?.url;return"string"==typeof r&&r.startsWith(t)})(e,t)),...[...ed].filter(e=>e.url.startsWith(t)).map(e=>e.refresh())])},"revalidateAll",0,()=>Promise.all([W(()=>!0),...[...ed].map(e=>e.refresh())]),"useServerRoute",0,function(e,t){return es(ec(e),ef,{...ev,...t,onError:t?.onError??eg})}],283653)},895836,e=>{"use strict";var t=e.i(843476),r=e.i(689664),n=e.i(77071),i=e.i(566595),l=e.i(271645),a=e.i(23750),s=e.i(671428),o=e.i(647163);let u="px-8 pt-8 pb-6";function d({className:e,children:r}){return(0,t.jsx)("div",{className:(0,o.cn)("mx-auto w-full max-w-[55rem]",e),children:r})}function c({left:e,right:r,footer:n}){return(0,t.jsxs)("div",{className:"flex h-full min-h-0 flex-col",children:[(0,t.jsxs)("div",{className:"mt-8 flex min-h-0 flex-1 border-t border-border/60",children:[(0,t.jsx)("div",{className:"flex w-64 shrink-0 flex-col overflow-y-auto border-r border-border/60 bg-muted/20",children:e}),(0,t.jsx)("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto",children:r})]}),n&&(0,t.jsx)(v,{children:n})]})}let f=["w-28","w-36","w-24","w-32","w-20"];function v({children:e}){return(0,t.jsx)("div",{className:"shrink-0 border-t border-border/60 px-8",children:(0,t.jsx)(d,{className:"flex h-14 items-center gap-3 text-xs text-muted-foreground",children:e})})}function m({label:e,hint:r,filter:n,right:i}){return(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[e&&(0,t.jsx)("span",{className:"shrink-0 font-mono text-xs text-muted-foreground",children:e}),r&&(0,t.jsx)("span",{className:"truncate font-mono text-xs text-muted-foreground/60",children:r}),n,i&&(0,t.jsx)("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:i})]})}function g({addRow:e,children:r}){return(0,t.jsxs)("div",{className:"divide-y divide-border/60 rounded-xl border border-border/60",children:[e&&(0,t.jsx)(b,{label:e.label,onClick:e.onClick}),r]})}function h({className:e,children:r}){return(0,t.jsx)("p",{className:(0,o.cn)("px-1 font-mono text-[11px] text-muted-foreground",e),children:r})}function b({label:e,onClick:r}){return(0,t.jsxs)("button",{type:"button",onClick:r,className:"text-muted-foreground hover:text-foreground flex w-full items-center gap-3 p-4 text-left outline-none transition-colors hover:bg-muted/50 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,t.jsx)("span",{className:"grid size-10 shrink-0 place-items-center rounded-lg",children:(0,t.jsx)(n.Plus,{className:"size-4"})}),(0,t.jsx)("span",{className:"text-sm",children:e})]})}e.s(["NavBadge",0,function({tone:e,count:r}){return 0===r?null:void 0===r?(0,t.jsx)("span",{className:(0,o.cn)("size-1.5 shrink-0 rounded-full","red"===e?"bg-destructive":"brand"===e?"bg-brand":"bg-amber-600 dark:bg-amber-400")}):(0,t.jsx)("span",{className:(0,o.cn)("shrink-0 font-mono text-[11px]","red"===e?"text-destructive":"brand"===e?"text-brand":o.WAITING_INK),children:r})},"SettingChoiceRows",0,function({options:e,value:n,onChange:i,disabled:l}){return(0,t.jsx)(g,{children:e.map(e=>{let a=e.value===n;return(0,t.jsxs)("button",{type:"button",disabled:l||!!e.disabled,onClick:()=>i(e.value),className:(0,o.cn)("flex w-full items-center gap-3 p-4 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",a?"bg-muted/40":"hover:bg-muted/50",e.disabled&&"opacity-50"),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:e.label}),(e.disabled||e.hint)&&(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:e.disabled||e.hint})]}),a&&(0,t.jsx)(r.Check,{className:"size-4 shrink-0"})]},e.value)})})},"SettingColumn",0,d,"SettingDialogContent",0,function({title:e,description:r,children:n,footer:i}){return(0,t.jsxs)("div",{className:"flex min-w-0 max-h-[75vh] flex-col gap-6 p-1",children:[(0,t.jsx)("div",{className:"flex shrink-0 items-start justify-between gap-3",children:(0,t.jsxs)("div",{className:"min-w-0 space-y-1 px-6",children:[(0,t.jsx)("p",{className:"truncate text-xl font-semibold",children:e}),r&&(0,t.jsx)("div",{className:"text-xs text-muted-foreground",children:r})]})}),(0,t.jsx)("div",{className:"min-h-0 min-w-0 flex-1 scroll-py-3 overflow-y-auto",children:(0,t.jsx)("div",{className:"space-y-4 p-1 px-6",children:n})}),i&&(0,t.jsx)("div",{className:"flex shrink-0 justify-end gap-2 px-6",children:i})]})},"SettingError",0,function({message:e}){return(0,t.jsx)("div",{className:u,children:(0,t.jsx)(d,{children:(0,t.jsx)("p",{className:"font-mono text-xs text-destructive",children:e})})})},"SettingFilter",0,function({value:e,onChange:r,placeholder:n,className:l}){return(0,t.jsxs)("div",{className:(0,o.cn)("relative w-72 max-w-full",l),children:[(0,t.jsx)(i.Search,{className:"pointer-events-none absolute top-1/2 left-2.5 size-3.5 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)(a.Input,{"data-setting-filter":"","aria-label":n,placeholder:n,value:e,onChange:e=>r(e.target.value),className:"h-8 pl-8"})]})},"SettingGroup",0,function({label:e,hint:r,filter:n,right:i,note:l,children:a}){return(0,t.jsxs)("section",{children:[(e||r||n||i)&&(0,t.jsx)("div",{className:"mb-3",children:(0,t.jsx)(m,{label:e,hint:r,filter:n,right:i})}),a,l&&(0,t.jsx)(h,{className:"mt-2",children:l})]})},"SettingItems",0,g,"SettingMore",0,function({hasMore:e,loading:r,sentinelRef:n,ghost:i,count:a=2,className:s}){return e?(0,t.jsx)("div",{ref:n,"aria-busy":r,"aria-label":"Loading more",className:s,children:Array.from({length:a},(e,r)=>(0,t.jsx)(l.Fragment,{children:i},`ghost-${r}`))}):null},"SettingNote",0,h,"SettingPanes",0,c,"SettingPanesSkeleton",0,function({rows:e=7}){return(0,t.jsx)(c,{footer:(0,t.jsx)(s.Skeleton,{className:"h-3 w-64 max-w-full"}),left:(0,t.jsx)("div",{className:"flex flex-col py-2",children:Array.from({length:e},(e,r)=>(0,t.jsx)("div",{className:"mx-2 flex items-center px-2 py-2",children:(0,t.jsx)(s.Skeleton,{className:(0,o.cn)("h-3",f[r%f.length])})},r))}),right:(0,t.jsx)("div",{className:"flex h-11 shrink-0 items-center border-b border-border/60 px-6",children:(0,t.jsx)(s.Skeleton,{className:"h-3 w-40"})})})},"SettingRailNote",0,function({children:e}){return(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e})},"SettingScreen",0,function({footer:e,children:r}){return(0,t.jsxs)("div",{className:"flex h-full min-h-0 flex-col",children:[(0,t.jsxs)("div",{className:"relative min-h-0 flex-1",children:[(0,t.jsx)("div",{className:"h-full w-full scroll-py-6 overflow-y-auto",children:(0,t.jsx)("div",{className:u,children:(0,t.jsx)(d,{children:(0,t.jsx)("div",{className:(0,o.cn)("-m-1 p-1","space-y-8"),children:r})})})}),(0,t.jsx)("div",{className:"pointer-events-none absolute top-0 left-0 h-6 w-full bg-linear-to-b from-background to-transparent dark:hidden"})]}),e&&(0,t.jsx)(v,{children:e})]})},"SettingSkeleton",0,function({rows:e=3}){return(0,t.jsx)("div",{className:u,children:(0,t.jsx)(d,{className:"space-y-3",children:Array.from({length:e},(e,r)=>(0,t.jsx)(s.Skeleton,{className:"h-16 w-full rounded-xl"},r))})})},"SettingToolbar",0,function({children:e,count:r}){return(0,t.jsx)(m,{filter:e,right:r})}])},166432,e=>{"use strict";e.s([])},932013,666493,568815,155627,157153,45574,535718,910148,e=>{"use strict";var t=e.i(271645),r=e.i(146376),n=e.i(667865),i=e.i(469690),l=e.i(875812),a=e.i(387068),s=e.i(884708),o=e.i(388940),u=e.i(788015),d=e.i(247778),c=e.i(843476);let f=function(e){let r=(0,u.useBaseUiId)(),[i,l]=t.useState(r),[a,s]=t.useState(),[f,v]=t.useState([]),m=void 0===i?r:i,g=(0,o.useRefWithInit)(()=>new Map),{messageIds:h}=(0,d.useLabelableContext)(),b=(0,n.useStableCallback)((e,t)=>{let r=g.current;void 0===t?r.delete(e):r.set(e,t),l(e=>{let t;if(0===r.size)return e;for(let n of r.values()){if(n===e)return e;void 0===t&&(t=n)}return t})}),x=(0,n.useStableCallback)(()=>{0===g.current.size&&l(r)}),p=t.useCallback(e=>{let t=e["aria-describedby"]?e["aria-describedby"].split(" "):[];return t.push(...h,...f),{...e,"aria-describedby":Array.from(new Set(t)).join(" ")||void 0}},[h,f]),y=t.useMemo(()=>({controlId:m,registerControlId:b,resetControlId:x,labelId:a,setLabelId:s,messageIds:f,setMessageIds:v,getDescriptionProps:p}),[m,b,x,a,s,f,v,p]);return(0,c.jsx)(d.LabelableContext.Provider,{value:y,children:e.children})};e.s(["LabelableProvider",0,f],666493);var v=e.i(552245),m=e.i(956789),g=e.i(439957),h=e.i(176782);function b(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}e.s(["getCombinedFieldValidityData",0,b],568815);let x=Object.keys(l.DEFAULT_VALIDITY_STATE);function p(e,t){return!e.matches(":disabled")&&(!t||e.form===t||null===e.form&&!e.hasAttribute("form"))}function y(e,t){let r=null;for(let n of e.keys())if(p(n,t)){if(!n.validity.valid)return n;r??=n}return r}function C(e){return{...l.DEFAULT_VALIDITY_STATE,valid:!e,customError:e}}function j(e){return e&&e.validationMessage?[e.validationMessage]:[]}function w(e){let{elementRef:r,formRef:i}=(0,s.useFormContext)(),{setValidityData:l,validate:a,validityData:u,validationDebounceTime:c,invalid:f,markedDirtyRef:v,state:p,shouldValidateOnChange:w,validationMode:R,registeredFieldIdRef:S}=e,{controlId:k,getDescriptionProps:E}=(0,d.useLabelableContext)(),O=(0,g.useTimeout)(),N=t.useRef(null),D=(0,o.useRefWithInit)(()=>new Map).current,T=t.useRef(0),I=t.useRef(null),F=t.useCallback((e,t)=>(D.set(e,t),()=>{D.delete(e)}),[D]),L=(0,n.useStableCallback)(()=>{let e=y(D,r.current);return e&&D.get(e)?.controlRef.current||null}),M=(0,n.useStableCallback)(async(e,t=!1)=>{T.current+=1;let n=T.current;function s(){let e=I.current;I.current=null,e&&(!e[0].willValidate||e[0].validationMessage===e[1])&&e[0].setCustomValidity(e[2])}function o(t,r,n){let a,s=(a=!1===t.valid?r:[],{value:e,state:t,error:a[0]??"",errors:a,initialValue:u.initialValue});!function(e,t=f){let r=S.current??k;if(null==r)return;let n=i.current.fields.get(r);if(!n)return;let l=b(e,t);i.current.fields.set(r,{...n,validityData:l})}(s,n),l(s)}function d(){return D.size>0?y(D,r.current):N.current}let c=d();function m(){return c=d(),c?.willValidate?function(e){let t=x.reduce((t,r)=>(t[r]=e.validity[r],t),{}),r=!1;for(let e of x)if("valid"!==e){if("valueMissing"===e&&t[e])r=!0;else if(t[e])return t}return r&&!v.current&&(t.valid=!0,t.valueMissing=!1),t}(c):C(!1)}if(t){if(!1!==p.valid||!c)return;if(!c.validity.valueMissing){s();let e=d(),t=e?.validity.customError?j(e):[];o(C(t.length>0),t,!1);return}for(let e of x)if("valid"!==e&&"valueMissing"!==e&&"customError"!==e&&c.validity[e])return}O.clear(),s();let g=m(),h=j(c),E=w();if(0===h.length||E){let t,r=a(e,Array.from(i.current.fields.values()).reduce((e,t)=>(t.name&&(e[t.name]=t.getValue()),e),{}));if("object"==typeof r&&null!==r&&"then"in r){if(!1===g.valid?o(g,h):"onSubmit"!==R&&u.state.customError||(g.valid=null,o(g,h)),t=await r,n!==T.current)return;g=m()}else t=r;if((h=t?[].concat(t).filter(Boolean):[]).length>0){var F,L;let e,t;g.valid=!1,g.customError=!0,c?.willValidate&&(F=c,L=h.join("\n"),e=F.validity.customError?F.validationMessage:"",t=L.replace(/\r\n?/g,"\n"),F.setCustomValidity(t),I.current=[F,t,e])}else h=j(c)}o(g,h)}),P=(0,n.useStableCallback)((e,t=!1)=>{if(O.clear(),T.current+=1,t)return;let r=w();r&&""!==e&&c?O.start(c,()=>{M(e)}):M(e,!r)}),V=t.useCallback((e,t={})=>(0,h.mergeProps)(E(t),!1!==p.valid||p.disabled||e?m.EMPTY_OBJECT:{"aria-invalid":!0}),[E,p.disabled,p.valid]);return t.useMemo(()=>({getValidationProps:V,inputRef:N,registeredInputs:D,registerInput:F,getInputControl:L,commit:M,change:P}),[V,D,F,L,M,P])}e.s(["isEligibleInput",0,p,"useFieldValidation",0,w],155627);let R=t.forwardRef(function(e,o){let{errors:u,validationMode:d,submitCountRef:f}=(0,s.useFormContext)(),{render:m,className:g,validate:h,validationDebounceTime:x=0,validationMode:p=d,name:y,disabled:C=!1,invalid:j,dirty:R,touched:S,actionsRef:k,style:E,...O}=e,N=(0,a.useFieldsetRootContext)(!0)?.disabled,D=(0,n.useStableCallback)(h||(()=>null)),T=N||C,[I,F]=t.useState(!1),[L,M]=t.useState(!1),[P,V]=t.useState(!1),[_,A]=t.useState(!1),U=R??L,B=S??I,W=t.useRef(U),z=t.useRef(void 0),[K,$]=t.useState(),q=y??K;(0,r.useIsoLayoutEffect)(()=>{void 0!==R&&(W.current=R)},[R]);let Y=(0,n.useStableCallback)(e=>{void 0===R&&(e&&(W.current=!0),M(e))}),H=(0,n.useStableCallback)(e=>{void 0===S&&F(e)}),J=(0,n.useStableCallback)(()=>"onChange"===p||"onSubmit"===p&&f.current>0),G=q&&Object.hasOwn(u,q)?u[q]:null,X=!!(Array.isArray(G)?G.length:G),Q=!0===j||X,[Z,ee]=t.useState({state:l.DEFAULT_VALIDITY_STATE,error:"",errors:[],value:null,initialValue:null}),et=!Q&&(T?null:Z.state.valid),er=t.useMemo(()=>({disabled:T,touched:B,dirty:U,valid:et,filled:P,focused:_}),[T,B,U,et,P,_]),en=w({setValidityData:ee,validate:D,validityData:Z,validationDebounceTime:x,invalid:Q,markedDirtyRef:W,state:er,shouldValidateOnChange:J,validationMode:p,registeredFieldIdRef:z}),[ei,el]=function(e){let{change:i,commit:l,invalid:a,markedDirtyRef:o,name:u,setRegisteredFieldName:d,registeredFieldIdRef:c,setValidityData:f,validityData:v}=e,{formRef:m}=(0,s.useFormContext)(),g=t.useRef(null),h=t.useRef(null),x=t.useRef(!1),p=(0,n.useStableCallback)(()=>{let e=h.current;if(e)return e.getValue?e.getValue():e.value});function y(e){return void 0===e.value?p():e.value}let C=(0,n.useStableCallback)(()=>{let e=h.current;(o.current=!0,e)?l(y(e)):l(v.value)});function j(e=h.current?.id){e&&m.current.fields.delete(e)}(0,r.useIsoLayoutEffect)(()=>{let e=h.current;e&&e.id&&(d(u?void 0:e.name),m.current.fields.set(e.id,{getValue:p,name:u??e.name,controlRef:e.controlRef,validityData:b(v,a),validate:C}))},[m,p,a,u,d,C,v]),(0,r.useIsoLayoutEffect)(()=>{let e=m.current.fields;return()=>{let t=h.current?.id;t&&e.delete(t)}},[m]);let w=(0,n.useStableCallback)((e,t)=>{let r;if(!t){g.current===e&&(g.current=null,i(void 0,!0),j(),h.current=null,d(void 0),c.current=void 0);return}let n=h.current?.id,l=g.current;l&&l!==e&&i(void 0,!0),g.current=e,h.current=t,u||d(t.name),c.current=t.id,n&&n!==t.id&&j(n),function(e){if(x.current)return;x.current=!0;let t=y(e);f(e=>e.initialValue===t?e:{...e,initialValue:t})}(t),(r=h.current)&&r.id&&m.current.fields.set(r.id,{getValue:p,name:u??r.name,controlRef:r.controlRef,validityData:b(v,a),validate:C})});return[C,w]}({change:en.change,commit:en.commit,invalid:Q,markedDirtyRef:W,name:y,setRegisteredFieldName:$,registeredFieldIdRef:z,setValidityData:ee,validityData:Z});t.useImperativeHandle(k,()=>({validate:ei}),[ei]);let ea=t.useMemo(()=>({invalid:Q,name:q,validityData:Z,setValidityData:ee,disabled:T,setTouched:H,setDirty:Y,setFilled:V,setFocused:A,validationMode:p,shouldValidateOnChange:J,state:er,registerFieldControl:el,validation:en}),[Q,q,Z,T,H,Y,V,A,p,J,er,el,en]),es=(0,v.useRenderElement)("div",e,{ref:o,state:er,props:O,stateAttributesMapping:l.fieldValidityMapping});return(0,c.jsx)(i.FieldRootContext.Provider,{value:ea,children:es})}),S=t.forwardRef(function(e,t){return(0,c.jsx)(f,{children:(0,c.jsx)(R,{...e,ref:t})})});e.s(["FieldRoot",0,S],932013);var k=e.i(229315),E=e.i(108868),O=e.i(584446);let N=t.createContext({disabled:!1});function D(){return t.useContext(N)}e.s(["FieldItemContext",0,N,"useFieldItemContext",0,D],157153);let T=t.forwardRef(function(e,a){let{render:s,className:o,style:c,id:f,nativeLabel:m=!0,...g}=e,h=(0,i.useFieldRootContext)(!1),b=D(),{labelId:x}=(0,d.useLabelableContext)(),p={...h.state,disabled:h.disabled||b.disabled},y=t.useRef(null),C=function(e={}){let t,{id:i,fallbackControlId:l,native:a=!1,setLabelId:s,focusControl:o}=e,{controlId:c,setLabelId:f}=(0,d.useLabelableContext)(),v=(0,n.useStableCallback)(e=>{f(e),s?.(e)}),m=(t=(0,u.useBaseUiId)(i),(0,r.useIsoLayoutEffect)(()=>(v(t),()=>{v(e=>e===t?void 0:e)}),[t,v]),t),g=c??l;function h(e){let t=(0,O.getTarget)(e.nativeEvent);t?.closest("button,input,select,textarea")||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),a||function(e){if(o)return o(e,g);if(!g)return;let t=(0,E.ownerDocument)(e.currentTarget).getElementById(g);(0,k.isHTMLElement)(t)&&t.focus({focusVisible:!0})}(e))}return a?{id:m,htmlFor:g,onMouseDown:h}:{id:m,onClick:h,onPointerDown(e){e.preventDefault()}}}({id:x??f,native:m});return(0,v.useRenderElement)("label",e,{ref:[a,y],state:p,props:[C,g],stateAttributesMapping:l.fieldValidityMapping})});e.s(["FieldLabel",0,T],45574);var I=e.i(137584),F=e.i(474354),L=e.i(223910);let M={...l.fieldValidityMapping,...F.transitionStatusMapping},P=t.forwardRef(function(e,n){let{render:l,id:a,className:o,match:f,style:m,...g}=e,h=(0,u.useBaseUiId)(a),{validityData:b,state:x,name:p}=(0,i.useFieldRootContext)(!1),{setMessageIds:y}=(0,d.useLabelableContext)(),{errors:C}=(0,s.useFormContext)(),j=p&&Object.hasOwn(C,p)?C[p]:null,w=!!(Array.isArray(j)?j.length:j),R="string"==typeof f,S=!1;S=!0===f||!x.disabled&&(R?!!b.state[f]:w||!1===b.state.valid);let{mounted:k,transitionStatus:E,setMounted:O}=(0,L.useTransitionStatus)(S);(0,r.useIsoLayoutEffect)(()=>{if(S&&h)return y(e=>e.concat(h)),()=>{y(e=>e.filter(e=>e!==h))}},[S,h,y]);let N=t.useRef(null),[D,T]=t.useState(null),[F,P]=t.useState(null),V=b.error;!R&&w?V=j:b.errors.length>1&&(V=b.errors);let _=V;Array.isArray(V)&&(_=V.length>1?(0,c.jsx)("ul",{children:V.map(e=>(0,c.jsx)("li",{children:e},e))}):V[0]);let A=Array.isArray(V)?JSON.stringify(V):V;S&&A!==F&&(P(A),T(_)),(0,I.useOpenChangeComplete)({open:S,ref:N,onComplete(){S||O(!1)}});let U={...x,transitionStatus:E},B=(0,v.useRenderElement)("div",e,{ref:[n,N],state:U,props:[{id:h,children:S?_:D},g],stateAttributesMapping:M,enabled:k});return k?B:null});e.s(["FieldError",0,P],535718);let V=t.forwardRef(function(e,t){let{render:n,id:a,className:s,style:o,...c}=e,f=(0,u.useBaseUiId)(a),m=(0,i.useFieldRootContext)(!1),g=D(),{setMessageIds:h}=(0,d.useLabelableContext)(),b={...m.state,disabled:m.disabled||g.disabled};return(0,r.useIsoLayoutEffect)(()=>{if(f)return h(e=>e.concat(f)),()=>{h(e=>e.filter(e=>e!==f))}},[f,h]),(0,v.useRenderElement)("p",e,{ref:t,state:b,props:[{id:f},c],stateAttributesMapping:l.fieldValidityMapping})});e.s(["FieldDescription",0,V],910148)},387068,e=>{"use strict";e.i(247167);var t=e.i(733332),r=e.i(271645);let n=r.createContext(void 0);e.s(["useFieldsetRootContext",0,function(e=!1){let i=r.useContext(n);if(!i&&!e)throw Error((0,t.default)(86));return i}])},381104,e=>{"use strict";var t=e.i(146376),r=e.i(388940),n=e.i(469690);e.s(["useRegisterFieldControl",0,function(e,i,l,a,s=!0,o){let{registerFieldControl:u}=(0,n.useFieldRootContext)(),d=(0,r.useRefWithInit)(()=>Symbol());(0,t.useIsoLayoutEffect)(()=>{let t=d.current;s?u(t,{controlRef:e,getValue:a,id:i,name:o,value:l}):u(t,void 0)},[e,s,a,i,o,u,d,l]),(0,t.useIsoLayoutEffect)(()=>{let e=d.current;return()=>{u(e,void 0)}},[u,d])}])},469690,875812,e=>{"use strict";var t=e.i(733332),r=e.i(271645),n=e.i(956789);let i={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},l={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},a={disabled:!1,...l};e.s(["DEFAULT_FIELD_ROOT_STATE",0,a,"DEFAULT_FIELD_STATE_ATTRIBUTES",0,l,"DEFAULT_VALIDITY_STATE",0,i,"fieldValidityMapping",0,{valid:e=>null===e?null:e?{"data-valid":""}:{"data-invalid":""}}],875812);let s={invalid:void 0,name:void 0,validityData:{state:i,errors:[],error:"",value:"",initialValue:null},setValidityData:n.NOOP,disabled:void 0,setTouched:n.NOOP,setDirty:n.NOOP,setFilled:n.NOOP,setFocused:n.NOOP,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:a,registerFieldControl:n.NOOP,validation:{getValidationProps:(e,t=n.EMPTY_OBJECT)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:n.NOOP,getInputControl:()=>null,commit:async()=>{},change:n.NOOP}},o=r.createContext(s);e.s(["DEFAULT_FIELD_ROOT_CONTEXT",0,s,"FieldRootContext",0,o,"useFieldRootContext",0,function(e=!0){let i=r.useContext(o);if(i.setValidityData===n.NOOP&&!e)throw Error((0,t.default)(28));return i}],469690)},884708,247778,e=>{"use strict";var t=e.i(271645),r=e.i(956789);let n=t.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:r.NOOP,validationMode:"onSubmit",submitCountRef:{current:0}});e.s(["useFormContext",0,function(){return t.useContext(n)}],884708);let i=t.createContext({controlId:void 0,registerControlId:r.NOOP,resetControlId:r.NOOP,labelId:void 0,setLabelId:r.NOOP,messageIds:[],setMessageIds:r.NOOP,getDescriptionProps:e=>e});e.s(["LabelableContext",0,i,"useLabelableContext",0,function(){return t.useContext(i)}],247778)},538489,e=>{"use strict";var t=e.i(271645),r=e.i(146376),n=e.i(667865),i=e.i(388940),l=e.i(956789),a=e.i(788015),s=e.i(247778);e.s(["useLabelableId",0,function(e={}){let{id:o,enabled:u=!0}=e,{controlId:d,registerControlId:c,resetControlId:f}=(0,s.useLabelableContext)(),v=(0,a.useBaseUiId)(),m=(0,i.useRefWithInit)(()=>Symbol()),g=t.useRef(!1),h=t.useRef(!1),b=(0,n.useStableCallback)(()=>{g.current&&c!==l.NOOP&&(g.current=!1,c(m.current,void 0))});return(0,r.useIsoLayoutEffect)(()=>{let e;if(!u||c===l.NOOP)return void b();if(void 0!==o)h.current=!0,e=o;else{if(!h.current)return void f();e=v}void 0===e?b():(g.current=!0,c(m.current,e))},[o,u,c,f,v,m,b]),(0,r.useIsoLayoutEffect)(()=>b,[b]),(u?d:void 0)??o??v}])},951437,e=>{"use strict";e.i(247167);var t=e.i(271645);e.s(["useControlled",0,function({controlled:e,default:r,name:n,state:i="value"}){let{current:l}=t.useRef(void 0!==e),[a,s]=t.useState(r),o=t.useCallback(e=>{l||s(e)},[]);return[l&&void 0!==e?e:a,o]}])},689664,643957,e=>{"use strict";var t=e.i(456420);let r={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};r.node;let n=(0,t.default)(r);e.s(["default",0,n],643957),e.s(["Check",0,n],689664)},77071,e=>{"use strict";var t=e.i(456420);let r={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};r.node;let n=(0,t.default)(r);e.s(["Plus",0,n],77071)},566595,630299,e=>{"use strict";var t=e.i(456420);let r={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};r.node;let n=(0,t.default)(r);e.s(["default",0,n],630299),e.s(["Search",0,n],566595)}]);
|