@alook/app 0.0.77 → 0.0.79
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/bundled/email-worker/index.js +2 -1
- package/bundled/web/.open-next/.build/durable-objects/queue.js +5 -5
- package/bundled/web/.open-next/.build/open-next.config.edge.mjs +146 -5
- package/bundled/web/.open-next/.build/open-next.config.mjs +140 -5
- package/bundled/web/.open-next/assets/BUILD_ID +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/031m-eb429hj4.js +2 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/{0d2ptea7.h139.js → 05~4tl0zgrol5.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/07-fakltbt2a2.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/07zixwn.53xcm.js +3 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/0_i1v2~_w-_jk.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/0bwptiqeu8.61.js +325 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/0e32q02m3ewux.js +3 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/0h_a9~1fp7ago.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/{00vv.te1qu_1m.js → 0ie.u1iu3pwrm.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/{0alt4g70q0kns.js → 0ivn_32mz4lhv.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0jahw0dpk9vgc.js +3 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/{0zeouhtn0hbkx.js → 0kcuw_83491vk.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0mntmjgjntb7y.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/{0t2w-7.88r2xw.js → 0oh4spqzj65-a.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/{0.ow13_gacl1n.js → 0p-5xcfjcbn~s.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0v3.4j_hftqix.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/0x8emvplqk0j_.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/0y.7dv.ck31vl.css +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/0~xam~jpkm~vn.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/106i157mnp0ro.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/11r7n17iffcwi.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/17gxqoer2p0mw.js +22 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/1816-z_y9qndk.js +1 -0
- package/bundled/web/.open-next/assets/gallery/calendar.png +0 -0
- package/bundled/web/.open-next/assets/gallery/collaboration.png +0 -0
- package/bundled/web/.open-next/assets/gallery/email.png +0 -0
- package/bundled/web/.open-next/assets/gallery/issues.png +0 -0
- package/bundled/web/.open-next/assets/gallery/local-agent.png +0 -0
- package/bundled/web/.open-next/assets/gallery/org.png +0 -0
- package/bundled/web/.open-next/cache/{eq06ANXMuNGifrnr5Hg7O → 3zHg2EwefkGKUXp1h2jId}/_global-error.cache +1 -1
- package/bundled/web/.open-next/cache/{eq06ANXMuNGifrnr5Hg7O → 3zHg2EwefkGKUXp1h2jId}/_not-found.cache +1 -1
- package/bundled/web/.open-next/cache/{eq06ANXMuNGifrnr5Hg7O → 3zHg2EwefkGKUXp1h2jId}/sitemap.xml.cache +1 -1
- package/bundled/web/.open-next/cloudflare/cache-assets-manifest.sql +1 -1
- package/bundled/web/.open-next/cloudflare/init.js +1 -1
- package/bundled/web/.open-next/dynamodb-provider/dynamodb-cache.json +1 -1
- package/bundled/web/.open-next/dynamodb-provider/open-next.config.mjs +140 -5
- package/bundled/web/.open-next/middleware/handler.mjs +4 -4
- package/bundled/web/.open-next/middleware/open-next.config.mjs +146 -5
- package/bundled/web/.open-next/server-functions/default/src/web/.next/BUILD_ID +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/build-manifest.json +3 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/prerender-manifest.json +3 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/invite/[token]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/studio/new/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/activity/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/chat/[convId]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/chat/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/email/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/files/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/meetings/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/new/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/calendar/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/flags/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/help/email-setup/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/home/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/issues/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/runtimes/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/settings/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/threads/[traceId]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/threads/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/unread/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/workspaces/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(auth)/sign-in/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/calendar/route.js +6 -5
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/templates/[id]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/templates/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/0b5f_next_dist_esm_build_templates_app-route_08rz-qa.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[turbopack]_runtime.js +13 -11
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0266t8u._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_03t_17c._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_09j_99x._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0drn_ol._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0exm5_w._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0h3guve._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0w6dw.t._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_12wxdg1._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/0b-r_unique-names-generator_dist_index_m_10n7h-y.js +4 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__03fsn3f._.js +13 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__091lwu-._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{[root-of-the-server]__099etsu._.js → [root-of-the-server]__0esiqa8._.js} +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{[root-of-the-server]__0r2s1aj._.js → [root-of-the-server]__0rdn-xi._.js} +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[turbopack]_runtime.js +13 -11
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_0vv9cr4._.js → _02qoj2p._.js} +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_063q-hj._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0ilz5db._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0n4z71y._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_05wa4wr._.js → _0rgicks._.js} +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0tu039y._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_11h_8jo._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_12e18r-._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_13__3im._.js +21 -22
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/node_modules__pnpm_0ioufd8._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/node_modules__pnpm_10wwsme._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_0~23g-y._.js +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_app_(app)_w_[slug]_agents_[id]_email_page_tsx_09mq1-g._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_app_(app)_w_[slug]_agents_[id]_layout_tsx_0juu2um._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_components_00xgo_-._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_components_0nj0euq._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_components_home_home-page_tsx_0to84tv._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_lib_api_ts_0uf2r1p._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-build-manifest.js +3 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-manifest.json +5 -5
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/server-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/server-reference-manifest.json +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs +83 -83
- package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs.meta.json +261 -214
- package/bundled/web/.open-next/server-functions/default/src/web/index.mjs +3 -3
- package/bundled/web/.open-next/server-functions/default/src/web/open-next.config.mjs +146 -5
- package/bundled/ws-do/index.js +2 -1
- package/dist/cli/index.js +4 -1
- package/dist/cli/session-runner.js +2 -1
- package/dist/index.js +3 -2
- package/package.json +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0.vi-1cgnne0e.css +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/01je4kbh.8akj.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/05rjq4guhci-w.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0fmcohc0raah~.js +0 -326
- package/bundled/web/.open-next/assets/_next/static/chunks/0ipcqq75rslc3.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0khqgglj_9zdp.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0lf4c2v9ftogx.js +0 -3
- package/bundled/web/.open-next/assets/_next/static/chunks/0m~et1blru7_u.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0npw723ph39ai.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0pig4vcvoqn0w.js +0 -20
- package/bundled/web/.open-next/assets/_next/static/chunks/0pijx0.ayvlyr.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0sp16c8-thn5e.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0uht5kak3uat9.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0ypg5.fp9-.a2.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0zoi2a2-ucmjh.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/112_xk40~~_sr.js +0 -3
- package/bundled/web/.open-next/assets/_next/static/chunks/173os6ji32qc1.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/182fqror32n8n.js +0 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0x7m_vj._.js +0 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__0.a2670._.js +0 -13
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__0nava3-._.js +0 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_091qk6t._.js +0 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0xcw94t._.js +0 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/node_modules__pnpm_0d6x0l6._.js +0 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/node_modules__pnpm_0o~nukr._.js +0 -3
- /package/bundled/web/.open-next/assets/_next/static/{eq06ANXMuNGifrnr5Hg7O → 3zHg2EwefkGKUXp1h2jId}/_buildManifest.js +0 -0
- /package/bundled/web/.open-next/assets/_next/static/{eq06ANXMuNGifrnr5Hg7O → 3zHg2EwefkGKUXp1h2jId}/_clientMiddlewareManifest.js +0 -0
- /package/bundled/web/.open-next/assets/_next/static/{eq06ANXMuNGifrnr5Hg7O → 3zHg2EwefkGKUXp1h2jId}/_ssgManifest.js +0 -0
- /package/bundled/web/.open-next/cache/{eq06ANXMuNGifrnr5Hg7O → 3zHg2EwefkGKUXp1h2jId}/robots.txt.cache +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,222862,636557,e=>{"use strict";class t extends Error{status;details;constructor(e,t,n){super(e),this.name="ApiError",this.status=t,this.details=n}get isNetworkError(){return 0===this.status}get isRateLimit(){return 429===this.status}get isUnauthorized(){return 401===this.status}}function n(e,t){return"validation error"===e&&t?.length?function(e){let[t,...n]=e.split(":"),a=n.join(":").trim();if(!a)return e;let i=t.trim(),o=i.trim().replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()),r=a.replace(/^required$/i,"is required"),s=r.toLowerCase().replace(/[_-]+/g," "),l=i.toLowerCase().replace(/[_-]+/g," ");return l&&s.startsWith(`${l} `)&&(r=r.slice(i.length).trimStart()),o?`${o} ${r}`:r}(t[0]):e}async function a(e,a){let i;try{i=await fetch(""+e,{...a,credentials:"include",headers:{"Content-Type":"application/json",...a?.headers}})}catch(e){if(e instanceof TypeError)throw new t("Unable to connect — check your network",0);throw e}if(401===i.status)throw window.location.href="/sign-in",new t("Unauthorized",401);if(!i.ok){let e,a;try{let t=await i.json();e=t.error,a=t.details}catch{}if(429===i.status)throw new t("Please wait a moment before trying again",429);if(i.status>=500)throw new t(n(e,a)||"Something went wrong — please try again",i.status,a);throw new t(n(e,a)||"Something went wrong",i.status,a)}if(204!==i.status)return i.json()}function i(e,t){let n=new URLSearchParams({workspace_id:e,...t});return`?${n.toString()}`}e.s(["ApiError",0,t],636557);let o=async(e,n,o,r)=>{let s;if(!r||0===r.length)return a(`/api/conversations/${e}/messages${i(o)}`,{method:"POST",body:JSON.stringify({content:n})});let l=new FormData;for(let e of(l.append("content",n),r))l.append("file",e);try{s=await fetch(`/api/conversations/${e}/messages${i(o)}`,{method:"POST",credentials:"include",body:l})}catch(e){if(e instanceof TypeError)throw new t("Unable to connect — check your network",0);throw e}if(401===s.status)throw window.location.href="/sign-in",new t("Unauthorized",401);if(!s.ok){let e,n;try{let t=await s.json();e=t.error,n=t.details}catch{}if(429===s.status)throw new t("Please wait a moment before trying again",429);if(s.status>=500)throw new t(e||"Something went wrong — please try again",s.status,n);throw new t(e||"Something went wrong",s.status,n)}return s.json()},r=async(e,n,o,r)=>{let s;if(!r||0===r.length)return a(`/api/conversations/${e}/buffered-messages${i(o)}`,{method:"POST",body:JSON.stringify({content:n})});let l=new FormData;for(let e of(l.append("content",n),r))l.append("file",e);try{s=await fetch(`/api/conversations/${e}/buffered-messages${i(o)}`,{method:"POST",credentials:"include",body:l})}catch(e){if(e instanceof TypeError)throw new t("Unable to connect — check your network",0);throw e}if(401===s.status)throw window.location.href="/sign-in",new t("Unauthorized",401);if(!s.ok){let e,n;try{let t=await s.json();e=t.error,n=t.details}catch{}if(429===s.status)throw new t(e||"Maximum follow-ups reached",429);if(s.status>=500)throw new t(e||"Something went wrong — please try again",s.status,n);throw new t(e||"Something went wrong",s.status,n)}return s.json()},s=async(e,t)=>{let n=new URLSearchParams({workspace_id:t}),a=await fetch(`/api/email/${e}/body?${n}`,{credentials:"include"});if(!a.ok)return{content:"(body not available)",isHtml:!1};let i=a.headers.get("Content-Type")??"";return{content:await a.text(),isHtml:i.includes("text/html")}},l=async(e,n)=>{let a=new FormData;a.append("file",e);let o=await fetch(`/api/email/upload${i(n)}`,{method:"POST",credentials:"include",body:a});if(!o.ok)throw new t(await o.text().catch(()=>"Upload failed"),o.status);return o.json()},d=async(e,n)=>{let o;if(!n.files||0===n.files.length)return a(`/api/issues${i(e)}`,{method:"POST",body:JSON.stringify({agent_id:n.agent_id,title:n.title,description:n.description})});let r=new FormData;for(let e of(n.agent_id&&r.append("agent_id",n.agent_id),r.append("title",n.title),r.append("description",n.description??""),n.files))r.append("file",e);try{o=await fetch(`/api/issues${i(e)}`,{method:"POST",credentials:"include",body:r})}catch(e){if(e instanceof TypeError)throw new t("Unable to connect — check your network",0);throw e}if(401===o.status)throw window.location.href="/sign-in",new t("Unauthorized",401);if(!o.ok){let e,n;try{let t=await o.json();e=t.error,n=t.details}catch{}if(429===o.status)throw new t("Please wait a moment before trying again",429);if(o.status>=500)throw new t(e||"Something went wrong — please try again",o.status,n);throw new t(e||"Something went wrong",o.status,n)}return o.json()},u=async(e,t)=>{let n=new URLSearchParams({workspace_id:t}),a=await fetch(`/api/artifacts/${e}/content?${n}`,{credentials:"include"});return a.ok?a.text():"(content not available)"};e.s(["acceptInvite",0,e=>a(`/api/invite/${e}`,{method:"POST"}),"addWhitelistEmail",0,(e,t,n)=>a(`/api/agents/${e}/whitelist${i(n)}`,{method:"POST",body:JSON.stringify({email:t})}),"approveMeeting",0,(e,t,n)=>a(`/api/agents/${e}/meetings/${t}/approve${i(n)}`,{method:"POST"}),"cancelActiveTask",0,(e,t)=>a(`/api/conversations/${e}/active-task${i(t)}`,{method:"DELETE"}),"chatInit",0,(e,t,n)=>a(`/api/agents/${e}/chat-init${i(t)}`,{method:"POST",body:JSON.stringify({...n?{channel:n}:{}})}),"checkFreshness",0,(e,t)=>{let n={};return e.conversationId&&(n.conversation_id=e.conversationId),e.agentId&&(n.agent_id=e.agentId),e.channel&&(n.channel=e.channel),a(`/api/conversations/check-fresh${i(t,n)}`)},"conversationInit",0,(e,t,n)=>{let o={};return n?.newestMessageId&&(o.newest_message_id=n.newestMessageId),a(`/api/conversations/${e}/init${i(t,o)}`)},"createAgent",0,(e,t)=>a(`/api/agents${i(t)}`,{method:"POST",body:JSON.stringify(e)}),"createAgentLink",0,(e,t)=>a(`/api/agent-links${i(t)}`,{method:"POST",body:JSON.stringify(e)}),"createBufferedMessage",0,r,"createCalendarEvent",0,(e,t)=>a(`/api/calendar${i(t)}`,{method:"POST",body:JSON.stringify(e)}),"createChannelApi",0,(e,t)=>a(`/api/channels${i(e)}`,{method:"POST",body:JSON.stringify({name:t})}),"createConversation",0,(e,t,n)=>a(`/api/conversations${i(t)}`,{method:"POST",body:JSON.stringify({agent_id:e,...n?{channel:n}:{}})}),"createEmailAccount",0,(e,t,n)=>a(`/api/agents/${e}/email-accounts${i(n)}`,{method:"POST",body:JSON.stringify(t)}),"createInvite",0,e=>a(`/api/workspaces/${e}/invites${i(e)}`,{method:"POST"}),"createIssue",0,d,"createMachineToken",0,(e,t)=>a(`/api/machine-tokens${t?i(t):""}`,{method:"POST",body:JSON.stringify({name:e||"default"})}),"createMeeting",0,(e,t,n)=>a(`/api/agents/${e}/meetings${i(t)}`,{method:"POST",body:JSON.stringify(n)}),"deleteAgent",0,(e,t)=>a(`/api/agents/${e}${i(t)}`,{method:"DELETE"}),"deleteAgentLink",0,(e,t)=>a(`/api/agent-links/${e}${i(t)}`,{method:"DELETE"}),"deleteBufferedMessage",0,(e,t,n)=>a(`/api/conversations/${e}/buffered-messages/${t}${i(n)}`,{method:"DELETE"}),"deleteCalendarEvent",0,(e,t,n)=>a(`/api/calendar/${e}${i(t)}`,{method:"DELETE",...n&&n.scope?{headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}:{}}),"deleteChannelApi",0,(e,t)=>a(`/api/channels/${e}${i(t)}`,{method:"DELETE"}),"deleteEmail",0,(e,t)=>a(`/api/email/${e}${i(t)}`,{method:"DELETE"}),"deleteEmailAccount",0,(e,t,n)=>a(`/api/agents/${e}/email-accounts/${t}${i(n)}`,{method:"DELETE"}),"deleteIssue",0,(e,t)=>a(`/api/issues/${t}${i(e)}`,{method:"DELETE"}),"deleteMachine",0,(e,t)=>a(`/api/runtimes/machine${i(t,{daemon_id:e})}`,{method:"DELETE"}),"deleteMeeting",0,(e,t,n)=>a(`/api/agents/${e}/meetings/${t}${i(n)}`,{method:"DELETE"}),"deleteWorkspace",0,(e,t)=>a(`/api/workspaces/${e}${i(e)}`,{method:"DELETE",body:JSON.stringify({confirm_name:t})}),"fetchLatestCliVersion",0,()=>a("/api/cli/latest-version"),"fetchModelOptions",0,()=>a("/api/config/model-options"),"flagMessage",0,(e,t)=>a(`/api/flags${i(e)}`,{method:"POST",body:JSON.stringify({messageId:t})}),"getActiveTask",0,(e,t)=>a(`/api/conversations/${e}/active-task${i(t)}`),"getArtifactContent",0,u,"getEmail",0,(e,t)=>a(`/api/email/${e}${i(t)}`),"getEmailBody",0,s,"getEmailThread",0,(e,t)=>a(`/api/email/${e}/thread${i(t)}`),"getFlaggedCount",0,e=>a(`/api/flags/count${i(e)}`),"getInboxCount",0,(e,t)=>{let n={};return t?.types?.length&&(n.types=t.types.join(",")),a(`/api/inbox/count${i(e,n)}`)},"getInviteInfo",0,e=>a(`/api/invite/${e}`),"getIssue",0,(e,t)=>a(`/api/issues/${t}${i(e)}`),"getMemberMe",0,e=>a(`/api/members/me${i(e)}`),"getMinCliVersion",0,()=>a("/api/config/min-version"),"getTask",0,(e,t)=>a(`/api/tasks/${e}${i(t)}`),"getTaskMessages",0,(e,t,n)=>a(`/api/tasks/${e}/messages${i(t,n?{since:String(n)}:void 0)}`),"getTrace",0,(e,t)=>a(`/api/traces/${e}${i(t)}`),"getWorkspaceOverview",0,e=>a(`/api/workspaces/${e}/overview${i(e)}`),"grantAgentAccess",0,(e,t,n)=>a(`/api/agents/${t}/access${i(e)}`,{method:"POST",body:JSON.stringify({user_id:n})}),"listAgentAccess",0,(e,t)=>a(`/api/agents/${t}/access${i(e)}`),"listAgentActiveTaskCounts",0,e=>a(`/api/agents/active-task-counts${i(e)}`),"listAgentActivity",0,(e,t,n)=>{let o={};return n?.limit&&(o.limit=String(n.limit)),n?.before&&(o.before=n.before),n?.beforeId&&(o.before_id=n.beforeId),n?.status&&(o.status=n.status),n?.type&&(o.type=n.type),a(`/api/agents/${e}/activity${i(t,o)}`)},"listAgentLinks",0,e=>a(`/api/agent-links${i(e)}`),"listAgentPins",0,e=>a(`/api/agents/pins${i(e)}`),"listAgents",0,e=>a(`/api/agents${i(e)}`),"listArtifacts",0,(e,t)=>a(`/api/artifacts${i(t,{conversation_id:e})}`),"listBufferedMessages",0,(e,t)=>a(`/api/conversations/${e}/buffered-messages${i(t)}`),"listCalendarEvents",0,(e,t)=>{let n={};return t?.agentId&&(n.agentId=t.agentId),t?.from&&(n.from=t.from),t?.to&&(n.to=t.to),a(`/api/calendar${i(e,n)}`)},"listChannels",0,e=>a(`/api/channels${i(e)}`),"listEmailAccounts",0,(e,t)=>a(`/api/agents/${e}/email-accounts${i(t)}`),"listEmails",0,(e,t,n,o)=>a(`/api/email${i(t,{agentId:e,...n?{folder:n}:{},...o?{address:o}:{}})}`),"listFlaggedItems",0,(e,t)=>{let n={};return t?.limit&&(n.limit=String(t.limit)),t?.before&&(n.before=t.before),a(`/api/flags${i(e,n)}`)},"listFlaggedMessageIds",0,(e,t)=>a(`/api/flags${i(e,{conversation_id:t,ids_only:"true"})}`),"listInboxItems",0,(e,t)=>{let n={};return t?.limit&&(n.limit=String(t.limit)),t?.before&&(n.before=t.before),t?.types?.length&&(n.types=t.types.join(",")),a(`/api/inbox${i(e,n)}`)},"listInvites",0,e=>a(`/api/workspaces/${e}/invites${i(e)}`),"listIssues",0,(e,t)=>{let n={};return t?.agentId&&(n.agentId=t.agentId),t?.status&&(n.status=t.status),t?.terminal!==void 0&&(n.terminal=String(t.terminal)),a(`/api/issues${i(e,n)}`)},"listMeetings",0,(e,t)=>a(`/api/agents/${e}/meetings${i(t)}`),"listMembers",0,e=>a(`/api/workspaces/${e}/members${i(e)}`),"listMessages",0,(e,t,n)=>{let o={};return n?.limit&&(o.limit=String(n.limit)),n?.before&&(o.before=n.before),n?.beforeId&&(o.before_id=n.beforeId),a(`/api/conversations/${e}/messages${i(t,o)}`)},"listMessagesAroundTask",0,(e,t,n)=>a(`/api/conversations/${e}/messages${i(t,{around_task:n})}`),"listPreviousConversations",0,(e,t,n)=>{let o={exclude:n.exclude,before:n.before};return n.channel&&(o.channel=n.channel),n.limit&&(o.limit=String(n.limit)),a(`/api/agents/${e}/conversations${i(t,o)}`)},"listRuntimes",0,e=>a(`/api/runtimes${i(e)}`),"listTraces",0,(e,t)=>{let n={};return t?.limit&&(n.limit=String(t.limit)),t?.before&&(n.before=t.before),t?.status&&(n.status=t.status),t?.multiAgent&&(n.multiAgent="true"),t?.agentId&&(n.agentId=t.agentId),t?.channel&&(n.channel=t.channel),a(`/api/traces${i(e,n)}`)},"listWhitelist",0,(e,t)=>a(`/api/agents/${e}/whitelist${i(t)}`),"listWorkspaceActiveTasks",0,e=>a(`/api/agents/active-tasks${i(e)}`),"listWorkspaces",0,()=>a("/api/workspaces"),"markAllInboxRead",0,e=>a(`/api/inbox/read-all${i(e)}`,{method:"POST"}),"markInboxRead",0,(e,t)=>a(`/api/inbox/read${i(t)}`,{method:"POST",body:JSON.stringify({conversationId:e})}),"pinAgent",0,(e,t)=>a(`/api/agents/${t}/pin${i(e)}`,{method:"POST"}),"removeMember",0,(e,t)=>a(`/api/workspaces/${e}/members/${t}${i(e)}`,{method:"DELETE"}),"removeWhitelistEmail",0,(e,t,n)=>a(`/api/agents/${e}/whitelist/${t}${i(n)}`,{method:"DELETE"}),"renameChannelApi",0,(e,t,n)=>a(`/api/channels/${e}${i(t)}`,{method:"PATCH",body:JSON.stringify({name:n})}),"reorderAgentPins",0,(e,t)=>a(`/api/agents/pins/reorder${i(e)}`,{method:"PUT",body:JSON.stringify({ordered_agent_ids:t})}),"reorderChannelsApi",0,(e,t)=>a(`/api/channels/reorder${i(e)}`,{method:"PUT",body:JSON.stringify({ordered_channel_ids:t})}),"reorderUnpinnedAgents",0,(e,t)=>a(`/api/agents/sidebar/reorder${i(e)}`,{method:"PUT",body:JSON.stringify({ordered_agent_ids:t})}),"requestWorkspaceBrowse",0,(e,t,n,o)=>a(`/api/agents/${e}/workspace/browse${i(t)}`,{method:"POST",body:JSON.stringify({request_type:n,path:o})}),"retryTask",0,(e,t)=>a(`/api/tasks/${e}/retry${i(t)}`,{method:"POST"}),"revokeAgentAccess",0,(e,t,n,o=!1)=>a(`/api/agents/${t}/access/${n}${i(e)}${o?"&remove_whitelist=true":""}`,{method:"DELETE"}),"revokeInvite",0,(e,t)=>a(`/api/workspaces/${e}/invites/${t}${i(e)}`,{method:"DELETE"}),"sendEmail",0,(e,t,n,o,r,s,l,d)=>a(`/api/email/send${i(r)}`,{method:"POST",body:JSON.stringify({agentId:e,to:t,subject:n,htmlBody:o,attachments:s,...l,customAccountId:d})}),"sendMessage",0,o,"stopMeeting",0,(e,t,n)=>a(`/api/agents/${e}/meetings/${t}/stop${i(n)}`,{method:"POST"}),"syncEmailAccount",0,(e,t,n)=>a(`/api/agents/${e}/email-accounts/${t}/sync${i(n)}`,{method:"POST"}),"triggerRuntimeRescan",0,(e,t)=>a(`/api/runtimes/${e}/rescan${i(t)}`,{method:"POST"}),"triggerRuntimeUpdate",0,(e,t)=>a(`/api/runtimes/${e}/update${i(t)}`,{method:"POST"}),"unflagMessage",0,(e,t)=>a(`/api/flags/${t}${i(e)}`,{method:"DELETE"}),"unpinAgent",0,(e,t)=>a(`/api/agents/${t}/pin${i(e)}`,{method:"DELETE"}),"updateAgent",0,(e,t,n)=>a(`/api/agents/${e}${i(n)}`,{method:"PATCH",body:JSON.stringify(t)}),"updateAgentLink",0,(e,t,n)=>a(`/api/agent-links/${e}${i(n)}`,{method:"PATCH",body:JSON.stringify(t)}),"updateCalendarEvent",0,(e,t,n)=>a(`/api/calendar/${e}${i(n)}`,{method:"PATCH",body:JSON.stringify(t)}),"updateEmailStatus",0,(e,t,n)=>a(`/api/email/${e}${i(t)}`,{method:"PATCH",body:JSON.stringify({status:n})}),"updateIssue",0,(e,t,n)=>a(`/api/issues/${t}${i(e)}`,{method:"PATCH",body:JSON.stringify(n)}),"updateMemberMe",0,(e,t)=>a(`/api/members/me${i(e)}`,{method:"PATCH",body:JSON.stringify({global_instruction:t})}),"updateWorkspace",0,(e,t)=>a(`/api/workspaces/${e}${i(e)}`,{method:"PATCH",body:JSON.stringify(t)}),"uploadEmailAttachment",0,l],222862)},208020,(e,t,n)=>{t.exports=e.r(170928)},406963,e=>{"use strict";var t=e.i(298699);let n=(...e)=>e.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),a=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,t.createContext)({}),r=(0,t.forwardRef)(({color:e,size:a,strokeWidth:r,absoluteStrokeWidth:s,className:l="",children:d,iconNode:u,...c},p)=>{let{size:g=24,strokeWidth:m=2,absoluteStrokeWidth:f=!1,color:h="currentColor",className:b=""}=(0,t.useContext)(o)??{},v=s??f?24*Number(r??m)/Number(a??g):r??m;return(0,t.createElement)("svg",{ref:p,...i,width:a??g??i.width,height:a??g??i.height,stroke:e??h,strokeWidth:v,className:n("lucide",b,l),...!d&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(c)&&{"aria-hidden":"true"},...c},[...u.map(([e,n])=>(0,t.createElement)(e,n)),...Array.isArray(d)?d:[d]])});e.s(["default",0,(e,i)=>{let o=(0,t.forwardRef)(({className:o,...s},l)=>(0,t.createElement)(r,{ref:l,iconNode:i,className:n(`lucide-${a(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,o),...s}));return o.displayName=a(e),o}],406963)},616117,484665,e=>{"use strict";e.i(459119);var t=e.i(298699),n=e.i(92615),a=e.i(773825),i=e.i(389068),o=e.i(943891),r=e.i(398258);let s=t.createContext(void 0);function l(e=!1){let n=t.useContext(s);if(void 0===n&&!e)throw Error((0,r.default)(16));return n}function d(e){return(0,n.isHTMLElement)(e)&&"BUTTON"===e.tagName}e.s(["CompositeRootContext",0,s,"useCompositeRootContext",0,l],484665),e.s(["useButton",0,function(e={}){let{disabled:n=!1,focusableWhenDisabled:r,tabIndex:s=0,native:u=!0,composite:c}=e,p=t.useRef(null),g=l(!0),m=c??void 0!==g,{props:f}=function(e){let{focusableWhenDisabled:n,disabled:a,composite:i=!1,tabIndex:o=0,isNativeButton:r}=e,s=i&&!1!==n,l=i&&!1===n;return{props:t.useMemo(()=>{let e={onKeyDown(e){a&&n&&"Tab"!==e.key&&e.preventDefault()}};return i||(e.tabIndex=o,!r&&a&&(e.tabIndex=n?o:-1)),(r&&(n||s)||!r&&a)&&(e["aria-disabled"]=a),r&&(!n||l)&&(e.disabled=a),e},[i,a,n,s,l,r,o])}}({focusableWhenDisabled:r,disabled:n,composite:m,tabIndex:s,isNativeButton:u}),h=t.useCallback(()=>{let e=p.current;d(e)&&m&&n&&void 0===f.disabled&&e.disabled&&(e.disabled=!1)},[n,f.disabled,m]);return(0,i.useIsoLayoutEffect)(h,[h]),{getButtonProps:t.useCallback((e={})=>{let{onClick:t,onMouseDown:a,onKeyUp:i,onKeyDown:r,onPointerDown:s,...l}=e,c=u?"button":void 0;return(0,o.mergeProps)({type:c,onClick(e){n?e.preventDefault():t?.(e)},onMouseDown(e){n||a?.(e)},onKeyDown(e){var a;if(n||((0,o.makeEventPreventable)(e),r?.(e),e.baseUIHandlerPrevented))return;let i=e.target===e.currentTarget,s=e.currentTarget,l=d(s),c=!u&&(a=s,!!(a?.tagName==="A"&&a?.href)),p=i&&(u?l:!c),g="Enter"===e.key,f=" "===e.key,h=s.getAttribute("role"),b=h?.startsWith("menuitem")||"option"===h||"gridcell"===h;if(i&&m&&f){if(e.defaultPrevented&&b)return;e.preventDefault(),c||u&&l?(s.click(),e.preventBaseUIHandler()):p&&(t?.(e),e.preventBaseUIHandler());return}p&&(!u&&(f||g)&&e.preventDefault(),!u&&g&&t?.(e))},onKeyUp(e){n||(((0,o.makeEventPreventable)(e),i?.(e),e.target===e.currentTarget&&u&&m&&d(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||u||m||" "!==e.key||t?.(e)))},onPointerDown(e){n?e.preventDefault():s?.(e)}},u?void 0:{role:"button"},f,l)},[n,f,m,u]),buttonRef:(0,a.useStableCallback)(e=>{p.current=e,h()})}}],616117)},294237,e=>{"use strict";var t=e.i(7284);let n=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=t.clsx;e.s(["cva",0,(e,t)=>i=>{var o;if((null==t?void 0:t.variants)==null)return a(e,null==i?void 0:i.class,null==i?void 0:i.className);let{variants:r,defaultVariants:s}=t,l=Object.keys(r).map(e=>{let t=null==i?void 0:i[e],a=null==s?void 0:s[e];if(null===t)return null;let o=n(t)||n(a);return r[e][o]}),d=i&&Object.entries(i).reduce((e,t)=>{let[n,a]=t;return void 0===a||(e[n]=a),e},{});return a(e,l,null==t||null==(o=t.compoundVariants)?void 0:o.reduce((e,t)=>{let{class:n,className:a,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...d}[t]):({...s,...d})[t]===n})?[...e,n,a]:e},[]),null==i?void 0:i.class,null==i?void 0:i.className)}])},186339,e=>{"use strict";var t=e.i(368075);e.i(459119);var n=e.i(298699),a=e.i(616117),i=e.i(597849);let o=n.forwardRef(function(e,t){let{render:n,className:o,disabled:r=!1,focusableWhenDisabled:s=!1,nativeButton:l=!0,style:d,...u}=e,{getButtonProps:c,buttonRef:p}=(0,a.useButton)({disabled:r,focusableWhenDisabled:s,native:l});return(0,i.useRenderElement)("button",e,{state:{disabled:r},ref:[t,p],props:[u,c]})});var r=e.i(294237),s=e.i(613349);let l=(0,r.cva)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});e.s(["Button",0,function({className:e,variant:n="default",size:a="default",...i}){return(0,t.jsx)(o,{"data-slot":"button",className:(0,s.cn)(l({variant:n,size:a,className:e})),...i})},"buttonVariants",0,l],186339)},31829,e=>{"use strict";var t=e.i(298699),n=e.i(926249),a=e.i(128726),i=e.i(464054),o=e.i(210366);let r=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);e.s(["useRole",0,function(e,s={}){let l="rootStore"in e?e.rootStore:e,d=l.useState("open"),u=l.useState("floatingId"),c=l.useState("domReferenceElement"),p=l.useState("floatingElement"),{role:g="dialog"}=s,m=(0,n.useId)(),f=c?.id||m,h=t.useMemo(()=>(0,i.getFloatingFocusElement)(p)?.id||u,[p,u]),b=r.get(g)??g,v=null!=(0,o.useFloatingParentNodeId)(),y=t.useMemo(()=>"tooltip"===b||"label"===g?a.EMPTY_OBJECT:{"aria-haspopup":"alertdialog"===b?"dialog":b,"aria-expanded":"false",..."listbox"===b&&{role:"combobox"},..."menu"===b&&v&&{role:"menuitem"},..."select"===g&&{"aria-autocomplete":"none"},..."combobox"===g&&{"aria-autocomplete":"list"}},[b,v,g]),S=t.useMemo(()=>"tooltip"===b||"label"===g?{[`aria-${"label"===g?"labelledby":"describedby"}`]:d?h:void 0}:{...y,"aria-expanded":d?"true":"false","aria-controls":d?h:void 0,..."menu"===b&&{id:f}},[b,h,d,f,g,y]),$=t.useMemo(()=>{let e={id:h,...b&&{role:b}};return"tooltip"===b||"label"===g?e:{...e,..."menu"===b&&{"aria-labelledby":f}}},[b,h,f,g]),w=t.useCallback(({active:e,selected:t})=>{let n={role:"option",...e&&{id:`${h}-fui-option`}};switch(g){case"select":case"combobox":return{...n,"aria-selected":t}}return{}},[h,g]);return t.useMemo(()=>({reference:S,floating:$,item:w,trigger:y}),[S,$,y,w])}])},917739,e=>{"use strict";e.s([],751816),e.i(751816),e.i(459119);var t,n,a,i=e.i(298699),o=e.i(398258);let r=i.createContext(void 0);function s(e){let t=i.useContext(r);if(!1===e&&void 0===t)throw Error((0,o.default)(27));return t}var l=e.i(597849),d=e.i(676372),u=e.i(106580);let c={...d.popupStateMapping,...u.transitionStatusMapping},p=i.forwardRef(function(e,t){let{render:n,className:a,style:i,forceRender:o=!1,...r}=e,{store:d}=s(),u=d.useState("open"),p=d.useState("nested"),g=d.useState("mounted"),m=d.useState("transitionStatus");return(0,l.useRenderElement)("div",e,{state:{open:u,transitionStatus:m},ref:[d.context.backdropRef,t],stateAttributesMapping:c,props:[{role:"presentation",hidden:!g,style:{userSelect:"none",WebkitUserSelect:"none"}},r],enabled:o||!p})});var g=e.i(616117),m=e.i(211752),f=e.i(857504);let h=i.forwardRef(function(e,t){let{render:n,className:a,disabled:i=!1,nativeButton:o=!0,style:r,...d}=e,{store:u}=s(),c=u.useState("open"),{getButtonProps:p,buttonRef:h}=(0,g.useButton)({disabled:i,native:o});return(0,l.useRenderElement)("button",e,{state:{disabled:i},ref:[t,h],props:[{onClick:function(e){c&&u.setOpen(!1,(0,m.createChangeEventDetails)(f.REASONS.closePress,e.nativeEvent))}},d,p]})});var b=e.i(541126);let v=i.forwardRef(function(e,t){let{render:n,className:a,style:i,id:o,...r}=e,{store:d}=s(),u=(0,b.useBaseUiId)(o);return d.useSyncedValueWithCleanup("descriptionElementId",u),(0,l.useRenderElement)("p",e,{ref:t,props:[{id:u},r]})});var y=e.i(454094);let S=((t={}).nestedDialogs="--nested-dialogs",t),$=((n={})[n.open=d.CommonPopupDataAttributes.open]="open",n[n.closed=d.CommonPopupDataAttributes.closed]="closed",n[n.startingStyle=d.CommonPopupDataAttributes.startingStyle]="startingStyle",n[n.endingStyle=d.CommonPopupDataAttributes.endingStyle]="endingStyle",n.nested="data-nested",n.nestedDialogOpen="data-nested-dialog-open",n),w=i.createContext(void 0);function x(){let e=i.useContext(w);if(void 0===e)throw Error((0,o.default)(26));return e}var E=e.i(570868),C=e.i(850746),k=e.i(368075);let O={...d.popupStateMapping,...u.transitionStatusMapping,nestedDialogOpen:e=>e?{[$.nestedDialogOpen]:""}:null},T=i.forwardRef(function(e,t){let{className:n,finalFocus:a,initialFocus:i,render:o,style:r,...d}=e,{store:u}=s(),c=u.useState("descriptionElementId"),p=u.useState("disablePointerDismissal"),g=u.useState("floatingRootContext"),m=u.useState("popupProps"),f=u.useState("modal"),h=u.useState("mounted"),b=u.useState("nested"),v=u.useState("nestedOpenDialogCount"),$=u.useState("open"),w=u.useState("openMethod"),T=u.useState("titleElementId"),D=u.useState("transitionStatus"),P=u.useState("role");x(),(0,E.useOpenChangeComplete)({open:$,ref:u.context.popupRef,onComplete(){$&&u.context.onOpenChangeComplete?.(!0)}});let I=void 0===i?function(e){return"touch"!==e||u.context.popupRef.current}:i,A=(0,l.useRenderElement)("div",e,{state:{open:$,nested:b,transitionStatus:D,nestedDialogOpen:v>0},props:[m,{"aria-labelledby":T??void 0,"aria-describedby":c??void 0,role:P,tabIndex:-1,hidden:!h,onKeyDown(e){C.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()},style:{[S.nestedDialogs]:v}},d],ref:[t,u.context.popupRef,u.useStateSetter("popupElement")],stateAttributesMapping:O});return(0,k.jsx)(y.FloatingFocusManager,{context:g,openInteractionType:w,disabled:!h,closeOnFocusOut:!p,initialFocus:I,returnFocus:a,modal:!1!==f,restoreFocus:"popup",children:A})});var D=e.i(191760),P=e.i(349285),I=e.i(75200);let A=i.forwardRef(function(e,t){let{keepMounted:n=!1,...a}=e,{store:i}=s(),o=i.useState("mounted"),r=i.useState("modal"),l=i.useState("open");return o||n?(0,k.jsx)(w.Provider,{value:n,children:(0,k.jsxs)(P.FloatingPortal,{ref:t,...a,children:[o&&!0===r&&(0,k.jsx)(I.InternalBackdrop,{ref:i.context.internalBackdropRef,inert:(0,D.inertValue)(!l)}),e.children]})}):null});var R=e.i(862620),N=e.i(244716),M=e.i(554655),j=e.i(351464),_=e.i(31829),L=e.i(278686),U=e.i(677320),B=e.i(436161),J=e.i(906912),z=e.i(24234),F=e.i(954944),W=e.i(610580),H=e.i(860920),K=e.i(646996);let V={...H.popupStoreSelectors,modal:(0,z.createSelector)(e=>e.modal),nested:(0,z.createSelector)(e=>e.nested),nestedOpenDialogCount:(0,z.createSelector)(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:(0,z.createSelector)(e=>e.nestedOpenDrawerCount),disablePointerDismissal:(0,z.createSelector)(e=>e.disablePointerDismissal),openMethod:(0,z.createSelector)(e=>e.openMethod),descriptionElementId:(0,z.createSelector)(e=>e.descriptionElementId),titleElementId:(0,z.createSelector)(e=>e.titleElementId),viewportElement:(0,z.createSelector)(e=>e.viewportElement),role:(0,z.createSelector)(e=>e.role)};class q extends F.ReactStore{constructor(e){super(function(e={}){return{...(0,H.createInitialPopupStoreState)(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}(e),{popupRef:i.createRef(),backdropRef:i.createRef(),internalBackdropRef:i.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:new K.PopupTriggerMap,onOpenChange:void 0,onOpenChangeComplete:void 0},V)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},e||null!=t.trigger||null==this.state.activeTriggerId||(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e},a=t.trigger?.id??null;(a||e)&&(n.activeTriggerId=a,n.activeTriggerElement=t.trigger??null),this.update(n)};static useStore(e,t){let n=(0,W.useRefWithInit)(()=>new q(t)).current;return e??n}}let G=i.createContext(!1),Y=((a={})[a.open=d.CommonPopupDataAttributes.open]="open",a[a.closed=d.CommonPopupDataAttributes.closed]="closed",a[a.startingStyle=d.CommonPopupDataAttributes.startingStyle]="startingStyle",a[a.endingStyle=d.CommonPopupDataAttributes.endingStyle]="endingStyle",a.nested="data-nested",a.nestedDialogOpen="data-nested-dialog-open",a),Z={...d.popupStateMapping,...u.transitionStatusMapping,nested:e=>e?{[Y.nested]:""}:null,nestedDialogOpen:e=>e?{[Y.nestedDialogOpen]:""}:null},X=i.forwardRef(function(e,t){let{className:n,render:a,children:i,style:o,...r}=e,d=x(),{store:u}=s(),c=u.useState("open"),p=u.useState("nested"),g=u.useState("transitionStatus"),m=u.useState("nestedOpenDialogCount"),f=u.useState("mounted");return(0,l.useRenderElement)("div",e,{enabled:d||f,state:{open:c,nested:p,transitionStatus:g,nestedDialogOpen:m>0},ref:[t,u.useStateSetter("viewportElement")],stateAttributesMapping:Z,props:[{role:"presentation",hidden:!f,style:{pointerEvents:c?void 0:"none"},children:i},r]})}),Q=i.forwardRef(function(e,t){let{render:n,className:a,style:i,id:o,...r}=e,{store:d}=s(),u=(0,b.useBaseUiId)(o);return d.useSyncedValueWithCleanup("titleElementId",u),(0,l.useRenderElement)("h2",e,{ref:t,props:[{id:u},r]})});var ee=e.i(996830),et=e.i(24725);let en=i.forwardRef(function(e,t){let{render:n,className:a,disabled:r=!1,nativeButton:u=!0,id:c,payload:p,handle:m,style:f,...h}=e,v=s(!0),y=m?.store??v?.store;if(!y)throw Error((0,o.default)(79));let S=(0,b.useBaseUiId)(c),$=y.useState("floatingRootContext"),w=y.useState("isOpenedByTrigger",S),x=i.useRef(null),{registerTrigger:E,isMountedByThisTrigger:C}=(0,J.useTriggerDataForwarding)(S,x,y,{payload:p}),{getButtonProps:k,buttonRef:O}=(0,g.useButton)({disabled:r,native:u}),T=(0,et.useClick)($,{enabled:null!=$}),D=(0,j.useInteractions)([T]),P=y.useState("triggerProps",C);return(0,l.useRenderElement)("button",e,{state:{disabled:r,open:w},ref:[O,t,E,x],props:[D.getReferenceProps(),P,{[ee.CLICK_TRIGGER_IDENTIFIER]:"",id:S},h,k],stateAttributesMapping:d.triggerOpenStateMapping})});class ea{constructor(e){this.store=e??new q}open(e){let t=e?this.store.context.triggerElements.getById(e):void 0;this.store.setOpen(!0,(0,m.createChangeEventDetails)(f.REASONS.imperativeAction,void 0,t))}openWithPayload(e){this.store.set("payload",e),this.store.setOpen(!0,(0,m.createChangeEventDetails)(f.REASONS.imperativeAction,void 0,void 0))}close(){this.store.setOpen(!1,(0,m.createChangeEventDetails)(f.REASONS.imperativeAction,void 0,void 0))}get isOpen(){return this.store.state.open}}e.s(["Backdrop",0,p,"Close",0,h,"Description",0,v,"Handle",0,ea,"Popup",0,T,"Portal",0,A,"Root",0,function(e){let{children:t,open:n,defaultOpen:a=!1,onOpenChange:o,onOpenChangeComplete:l,disablePointerDismissal:d=!1,modal:u=!0,actionsRef:c,handle:p,triggerId:g,defaultTriggerId:h=null}=e,b=s(!0),v=i.useContext(G),y=!!b,S=q.useStore(p?.store,{open:a,openProp:n,activeTriggerId:h,triggerIdProp:g,modal:u,disablePointerDismissal:d,nested:y});(0,R.useOnFirstRender)(()=>{void 0===n&&!1===S.state.open&&!0===a&&S.update({open:!0,activeTriggerId:h})}),S.useControlledProp("openProp",n),S.useControlledProp("triggerIdProp",g),S.useSyncedValues({disablePointerDismissal:d,nested:y,modal:u}),S.useContextCallback("onOpenChange",o),S.useContextCallback("onOpenChangeComplete",l);let $=S.useState("payload");!function(e){let{store:t,parentContext:n,actionsRef:a,isDrawer:o}=e,r=t.useState("open"),s=t.useState("disablePointerDismissal"),l=t.useState("modal"),d=t.useState("popupElement"),{openMethod:u,triggerProps:c}=(0,B.useOpenInteractionType)(r);(0,J.useImplicitActiveTrigger)(t);let{forceUnmount:p}=(0,J.useOpenStateTransitions)(r,t),g=i.useCallback(()=>{t.setOpen(!1,(0,m.createChangeEventDetails)(f.REASONS.imperativeAction))},[t]);i.useImperativeHandle(a,()=>({unmount:p,close:g}),[p,g]);let h=(0,L.useSyncedFloatingRootContext)({popupStore:t,onOpenChange:t.setOpen,treatPopupAsFloatingElement:!0}),[b,v]=i.useState(0),[y,S]=i.useState(0),$=0===b,w=(0,_.useRole)(h),x=(0,M.useDismiss)(h,{outsidePressEvent:()=>t.context.internalBackdropRef.current||t.context.backdropRef.current?"intentional":{mouse:"trap-focus"===l?"sloppy":"intentional",touch:"sloppy"},outsidePress(e){if(!t.context.outsidePressEnabledRef.current||"button"in e&&0!==e.button||"touches"in e&&1!==e.touches.length)return!1;let n=(0,U.getTarget)(e);return!!$&&!s&&(!l||!t.context.internalBackdropRef.current&&!t.context.backdropRef.current||t.context.internalBackdropRef.current===n||t.context.backdropRef.current===n||(0,U.contains)(n,d)&&!n?.hasAttribute("data-base-ui-portal"))},escapeKey:$});(0,N.useScrollLock)(r&&!0===l,d);let{getReferenceProps:E,getFloatingProps:C,getTriggerProps:k}=(0,j.useInteractions)([w,x]);t.useContextCallback("onNestedDialogOpen",(e,t)=>{v(e),S(t)}),t.useContextCallback("onNestedDialogClose",()=>{v(0),S(0)}),i.useEffect(()=>(n?.onNestedDialogOpen&&r&&n.onNestedDialogOpen(b+1,y+ +!!o),n?.onNestedDialogClose&&!r&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&r&&n.onNestedDialogClose()}),[o,r,b,y,n]);let O=i.useMemo(()=>E(c),[E,c]),T=i.useMemo(()=>k(c),[k,c]),D=i.useMemo(()=>C(),[C]);t.useSyncedValues({openMethod:u,activeTriggerProps:O,inactiveTriggerProps:T,popupProps:D,floatingRootContext:h,nestedOpenDialogCount:b,nestedOpenDrawerCount:y})}({store:S,actionsRef:c,parentContext:b?.store.context,isDrawer:v,onOpenChange:o,triggerIdProp:g});let w=i.useMemo(()=>({store:S}),[S]);return(0,k.jsx)(G.Provider,{value:!1,children:(0,k.jsx)(r.Provider,{value:w,children:"function"==typeof t?t({payload:$}):t})})},"Title",0,Q,"Trigger",0,en,"Viewport",0,X,"createHandle",0,function(){return new ea}],350592);var ei=e.i(350592);e.s(["Dialog",0,ei],917739)},852665,e=>{"use strict";let t=(0,e.i(406963).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["default",0,t])},779646,49695,e=>{"use strict";var t=e.i(368075),n=e.i(917739),a=e.i(613349),i=e.i(186339),o=e.i(852665);e.s(["XIcon",()=>o.default],49695);var o=o;function r({...e}){return(0,t.jsx)(n.Dialog.Portal,{"data-slot":"dialog-portal",...e})}function s({className:e,...i}){return(0,t.jsx)(n.Dialog.Backdrop,{"data-slot":"dialog-overlay",className:(0,a.cn)("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...i})}e.s(["Dialog",0,function({...e}){return(0,t.jsx)(n.Dialog.Root,{"data-slot":"dialog",...e})},"DialogClose",0,function({...e}){return(0,t.jsx)(n.Dialog.Close,{"data-slot":"dialog-close",...e})},"DialogContent",0,function({className:e,children:l,showCloseButton:d=!0,...u}){return(0,t.jsxs)(r,{children:[(0,t.jsx)(s,{forceRender:!0}),(0,t.jsxs)(n.Dialog.Popup,{"data-slot":"dialog-content",className:(0,a.cn)("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...u,children:[l,d&&(0,t.jsxs)(n.Dialog.Close,{"data-slot":"dialog-close",render:(0,t.jsx)(i.Button,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[(0,t.jsx)(o.default,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})},"DialogDescription",0,function({className:e,...i}){return(0,t.jsx)(n.Dialog.Description,{"data-slot":"dialog-description",className:(0,a.cn)("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...i})},"DialogFooter",0,function({className:e,showCloseButton:o=!1,children:r,...s}){return(0,t.jsxs)("div",{"data-slot":"dialog-footer",className:(0,a.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),...s,children:[r,o&&(0,t.jsx)(n.Dialog.Close,{render:(0,t.jsx)(i.Button,{variant:"outline"}),children:"Close"})]})},"DialogHeader",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,a.cn)("flex flex-col gap-2",e),...n})},"DialogTitle",0,function({className:e,...i}){return(0,t.jsx)(n.Dialog.Title,{"data-slot":"dialog-title",className:(0,a.cn)("font-heading text-base leading-none font-medium",e),...i})},"DialogTrigger",0,function({...e}){return(0,t.jsx)(n.Dialog.Trigger,{"data-slot":"dialog-trigger",...e})}],779646)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,889072,e=>{"use strict";let t;var n=e.i(298699),r=e.i(610580);let i=[];function s(e){let n=(n,s)=>{let u,l=(0,r.useRefWithInit)(o).current;try{for(let e of(t=l,i))e.before(l);for(let t of(u=e(n,s),i))t.after(l);l.didInitialize=!0}finally{t=void 0}return u};return n.displayName=e.displayName||e.name,n}function o(){return{didInitialize:!1}}e.s(["fastComponent",0,s,"fastComponentRef",0,function(e){return n.forwardRef(s(e))},"getInstance",0,function(){return t},"register",0,function(e){i.push(e)}])},862620,e=>{"use strict";var t=e.i(298699);e.s(["useOnFirstRender",0,function(e){let n=t.useRef(!0);n.current&&(n.current=!1,e())}])},730310,625656,e=>{"use strict";e.s(["addEventListener",0,function(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}],730310),e.s(["mergeCleanups",0,function(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}],625656)},385967,e=>{"use strict";var t=e.i(610580),n=e.i(658507);class r{static create(){return new r}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}e.s(["Timeout",0,r,"useTimeout",0,function(){let e=(0,t.useRefWithInit)(r.create).current;return(0,n.useOnMount)(e.disposeEffect),e}])},464054,e=>{"use strict";var t=e.i(92615),n=e.i(297099),r=e.i(869576),i=e.i(677320);function s(e){return(0,t.isHTMLElement)(e)&&e.matches(r.TYPEABLE_SELECTOR)}e.s(["getFloatingFocusElement",0,function(e){return e?e.hasAttribute(r.FOCUSABLE_ATTRIBUTE)?e:e.querySelector(`[${r.FOCUSABLE_ATTRIBUTE}]`)||e:null},"isEventTargetWithin",0,function(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))},"isInteractiveElement",0,function(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${r.TYPEABLE_SELECTOR}`)!=null},"isRootElement",0,function(e){return e.matches("html,body")},"isTargetInsideEnabledTrigger",0,function(e,n){if(!(0,t.isElement)(e))return!1;if(n.hasElement(e))return!e.hasAttribute("data-trigger-disabled");for(let[,t]of n.entries())if((0,i.contains)(t,e))return!t.hasAttribute("data-trigger-disabled");return!1},"isTypeableCombobox",0,function(e){return!!e&&"combobox"===e.getAttribute("role")&&s(e)},"isTypeableElement",0,s,"matchesFocusVisible",0,function(e){if(!e||n.isJSDOM)return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}])},62138,e=>{"use strict";e.s(["getNodeAncestors",0,function(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n},"getNodeChildren",0,function e(t,n,r=!0){return t.filter(e=>e.parentId===n).flatMap(n=>[...!r||n.context?.open?[n]:[],...e(t,n.id,r)])}])},210366,932428,486138,e=>{"use strict";e.i(459119);var t=e.i(298699),n=e.i(926249),r=e.i(389068),i=e.i(610580);function s(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}e.s(["createEventEmitter",0,s],932428);class o{nodesRef={current:[]};events=s();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);-1!==t&&this.nodesRef.current.splice(t,1)}}e.s(["FloatingTreeStore",0,o],486138);var u=e.i(368075);let l=t.createContext(null),a=t.createContext(null),c=()=>t.useContext(l)?.id||null,d=e=>{let n=t.useContext(a);return e??n};e.s(["FloatingNode",0,function(e){let{children:n,id:r}=e,i=c();return(0,u.jsx)(l.Provider,{value:t.useMemo(()=>({id:r,parentId:i}),[r,i]),children:n})},"FloatingTree",0,function(e){let{children:t,externalTree:n}=e,r=(0,i.useRefWithInit)(()=>n??new o).current;return(0,u.jsx)(a.Provider,{value:r,children:t})},"useFloatingNodeId",0,function(e){let t=(0,n.useId)(),i=d(e),s=c();return(0,r.useIsoLayoutEffect)(()=>{if(!t)return;let e={id:t,parentId:s};return i?.addNode(e),()=>{i?.removeNode(e)}},[i,t,s]),t},"useFloatingParentNodeId",0,c,"useFloatingTree",0,d],210366)},342225,e=>{"use strict";e.s(["createAttribute",0,function(e){return`data-base-ui-${e}`}])},554655,e=>{"use strict";var t=e.i(298699),n=e.i(92615),r=e.i(730310),i=e.i(625656),s=e.i(385967),o=e.i(773825),u=e.i(208700),l=e.i(677320),a=e.i(464054),c=e.i(9722),d=e.i(62138),f=e.i(210366),p=e.i(211752),g=e.i(857504),h=e.i(342225);let m={intentional:"onClick",sloppy:"onPointerDown"};function E(){return!1}e.s(["useDismiss",0,function(e,v={}){let b="rootStore"in e?e.rootStore:e,S=b.useState("open"),T=b.useState("floatingElement"),{dataRef:y}=b.context,{enabled:C=!0,escapeKey:R=!0,outsidePress:I=!0,outsidePressEvent:O="sloppy",referencePress:x=E,referencePressEvent:P="sloppy",bubbles:w,externalTree:A}=v,L=(0,f.useFloatingTree)(A),N=(0,o.useStableCallback)("function"==typeof I?I:()=>!1),M="function"==typeof I?N:I,k=!1!==M,D=(0,o.useStableCallback)(()=>O),F=t.useRef(!1),_=t.useRef(!1),W=t.useRef(!1),{escapeKey:H,outsidePress:B}={escapeKey:"boolean"==typeof w?w:w?.escapeKey??!1,outsidePress:"boolean"==typeof w?w:w?.outsidePress??!0},j=t.useRef(null),V=(0,s.useTimeout)(),Y=(0,s.useTimeout)(),K=(0,o.useStableCallback)(()=>{Y.clear(),y.current.insideReactTree=!1}),U=t.useRef(!1),z=t.useRef(""),X=(0,o.useStableCallback)(x),G=(0,o.useStableCallback)(e=>{if(!S||!C||!R||"Escape"!==e.key||U.current)return;let t=y.current.floatingContext?.nodeId,n=L?(0,d.getNodeChildren)(L.nodesRef.current,t):[];if(!H&&n.length>0){let e=!0;if(n.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}let r=(0,c.isReactEvent)(e)?e.nativeEvent:e,i=(0,p.createChangeEventDetails)(g.REASONS.escapeKey,r);b.setOpen(!1,i),H||i.isPropagationAllowed||e.stopPropagation()}),J=(0,o.useStableCallback)(()=>{y.current.insideReactTree=!0,Y.start(0,K)});t.useEffect(()=>{if(!S||!C)return;y.current.__escapeKeyBubbles=H,y.current.__outsidePressBubbles=B;let e=new s.Timeout,t=new s.Timeout;function o(){W.current=!0,t.start(0,()=>{W.current=!1})}function c(){F.current=!1,_.current=!1}function f(){let e=z.current,t=D(),n="function"==typeof t?t():t;return"string"==typeof n?n:n["pen"!==e&&e?e:"mouse"]}function m(e){let t=y.current.floatingContext?.nodeId,n=L&&(0,d.getNodeChildren)(L.nodesRef.current,t).some(t=>(0,a.isEventTargetWithin)(e,t.context?.elements.floating));return(0,a.isEventTargetWithin)(e,b.select("floatingElement"))||(0,a.isEventTargetWithin)(e,b.select("domReferenceElement"))||n}function E(e){let r;if("intentional"===(r=f())&&"click"!==e.type||"sloppy"===r&&"click"===e.type||y.current.insideReactTree)return void K();let i=(0,l.getTarget)(e),s=`[${(0,h.createAttribute)("inert")}]`,o=(0,n.isElement)(i)?i.getRootNode():null,c=Array.from(((0,n.isShadowRoot)(o)?o:(0,u.ownerDocument)(b.select("floatingElement"))).querySelectorAll(s)),E=b.context.triggerElements;if(i&&(E.hasElement(i)||E.hasMatchingElement(e=>(0,l.contains)(e,i))))return;let v=(0,n.isElement)(i)?i:null;for(;v&&!(0,n.isLastTraversableNode)(v);){let e=(0,n.getParentNode)(v);if((0,n.isLastTraversableNode)(e)||!(0,n.isElement)(e))break;v=e}if(c.length&&(0,n.isElement)(i)&&!(0,a.isRootElement)(i)&&!(0,l.contains)(i,b.select("floatingElement"))&&c.every(e=>!(0,l.contains)(v,e)))return;if((0,n.isHTMLElement)(i)&&!("touches"in e)){let t=(0,n.isLastTraversableNode)(i),r=(0,n.getComputedStyle)(i),s=/auto|scroll/,o=t||s.test(r.overflowX),u=t||s.test(r.overflowY),l=o&&i.clientWidth>0&&i.scrollWidth>i.clientWidth,a=u&&i.clientHeight>0&&i.scrollHeight>i.clientHeight,c="rtl"===r.direction,d=a&&(c?e.offsetX<=i.offsetWidth-i.clientWidth:e.offsetX>i.clientWidth),f=l&&e.offsetY>i.clientHeight;if(d||f)return}if(m(e))return;if("intentional"===f()&&W.current){t.clear(),W.current=!1;return}if("function"==typeof M&&!M(e))return;let S=y.current.floatingContext?.nodeId,T=L?(0,d.getNodeChildren)(L.nodesRef.current,S):[];if(T.length>0){let e=!0;if(T.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}b.setOpen(!1,(0,p.createChangeEventDetails)(g.REASONS.outsidePress,e)),K()}function v(e){if("sloppy"!==f()||!b.select("open")||!C||(0,a.isEventTargetWithin)(e,b.select("floatingElement"))||(0,a.isEventTargetWithin)(e,b.select("domReferenceElement")))return;let t=e.touches[0];t&&(j.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},V.start(1e3,()=>{j.current&&(j.current.dismissOnTouchEnd=!1,j.current.dismissOnMouseDown=!1)}))}function I(e,t){let n=(0,l.getTarget)(e);if(!n)return;let i=(0,r.addEventListener)(n,e.type,()=>{t(e),i()})}function O(e){V.clear(),"pointerdown"===e.type&&(z.current=e.pointerType),("mousedown"!==e.type||!j.current||j.current.dismissOnMouseDown)&&I(e,e=>{if("pointerdown"===e.type)"sloppy"!==f()||"touch"===e.pointerType||!b.select("open")||!C||(0,a.isEventTargetWithin)(e,b.select("floatingElement"))||(0,a.isEventTargetWithin)(e,b.select("domReferenceElement"))||E(e);else E(e)})}function x(e){if(!F.current)return;let n=_.current;if(c(),"intentional"===f()){if("pointercancel"===e.type){n&&o();return}m(e)||(n?o():("function"!=typeof M||M(e))&&(t.clear(),W.current=!0,K()))}}function P(e){if("sloppy"!==f()||!j.current||(0,a.isEventTargetWithin)(e,b.select("floatingElement"))||(0,a.isEventTargetWithin)(e,b.select("domReferenceElement")))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-j.current.startX),r=Math.abs(t.clientY-j.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(j.current.dismissOnTouchEnd=!0),i>10&&(E(e),V.clear(),j.current=null)}function w(e){"sloppy"!==f()||!j.current||(0,a.isEventTargetWithin)(e,b.select("floatingElement"))||(0,a.isEventTargetWithin)(e,b.select("domReferenceElement"))||(j.current.dismissOnTouchEnd&&E(e),V.clear(),j.current=null)}let A=(0,u.ownerDocument)(T),N=(0,i.mergeCleanups)(R&&(0,i.mergeCleanups)((0,r.addEventListener)(A,"keydown",G),(0,r.addEventListener)(A,"compositionstart",function(){e.clear(),U.current=!0}),(0,r.addEventListener)(A,"compositionend",function(){e.start(5*!!(0,n.isWebKit)(),()=>{U.current=!1})})),k&&(0,i.mergeCleanups)((0,r.addEventListener)(A,"click",O,!0),(0,r.addEventListener)(A,"pointerdown",O,!0),(0,r.addEventListener)(A,"pointerup",x,!0),(0,r.addEventListener)(A,"pointercancel",x,!0),(0,r.addEventListener)(A,"mousedown",O,!0),(0,r.addEventListener)(A,"mouseup",x,!0),(0,r.addEventListener)(A,"touchstart",function(e){z.current="touch",I(e,v)},!0),(0,r.addEventListener)(A,"touchmove",function(e){I(e,P)},!0),(0,r.addEventListener)(A,"touchend",function(e){I(e,w)},!0)));return()=>{N(),e.clear(),t.clear(),c(),W.current=!1}},[y,T,R,k,M,S,C,H,B,G,K,D,L,b,V]),t.useEffect(K,[M,K]);let $=t.useMemo(()=>({onKeyDown:G,[m[P]]:e=>{X()&&b.setOpen(!1,(0,p.createChangeEventDetails)(g.REASONS.triggerPress,e.nativeEvent))},..."intentional"!==P&&{onClick(e){X()&&b.setOpen(!1,(0,p.createChangeEventDetails)(g.REASONS.triggerPress,e.nativeEvent))}}}),[G,b,P,X]),q=(0,o.useStableCallback)(e=>{if(!S||!C||0!==e.button)return;let t=(0,l.getTarget)(e.nativeEvent);(0,l.contains)(b.select("floatingElement"),t)&&(F.current||(F.current=!0,_.current=!1))}),Q=(0,o.useStableCallback)(e=>{!S||!C||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&F.current&&(_.current=!0)}),Z=t.useMemo(()=>({onKeyDown:G,onPointerDown:Q,onMouseDown:Q,onClickCapture:J,onMouseDownCapture(e){J(),q(e)},onPointerDownCapture(e){J(),q(e)},onMouseUpCapture:J,onTouchEndCapture:J,onTouchMoveCapture:J}),[G,J,q,Q]);return t.useMemo(()=>C?{reference:$,floating:Z,trigger:$}:{},[C,$,Z])}])},351464,e=>{"use strict";var t=e.i(298699),n=e.i(869576);function r(e,t,r){let s=new Map,o="item"===r,u={};for(let t in"floating"===r&&(u.tabIndex=-1,u[n.FOCUSABLE_ATTRIBUTE]=""),e)o&&e&&(t===n.ACTIVE_KEY||t===n.SELECTED_KEY)||(u[t]=e[t]);for(let n=0;n<t.length;n+=1){let l,a=t[n]?.[r];(l="function"==typeof a?e?a(e):null:a)&&i(u,l,o,s)}return i(u,e,o,s),u}function i(e,t,r,i){for(let s in t){let o=t[s];r&&(s===n.ACTIVE_KEY||s===n.SELECTED_KEY)||(s.startsWith("on")?(i.has(s)||i.set(s,[]),"function"==typeof o&&(i.get(s)?.push(o),e[s]=(...e)=>i.get(s)?.map(t=>t(...e)).find(e=>void 0!==e))):e[s]=o)}}e.s(["useInteractions",0,function(e=[]){let n=e.map(e=>e?.reference),i=e.map(e=>e?.floating),s=e.map(e=>e?.item),o=e.map(e=>e?.trigger),u=t.useCallback(t=>r(t,e,"reference"),n),l=t.useCallback(t=>r(t,e,"floating"),i),a=t.useCallback(t=>r(t,e,"item"),s),c=t.useCallback(t=>r(t,e,"trigger"),o);return t.useMemo(()=>({getReferenceProps:u,getFloatingProps:l,getItemProps:a,getTriggerProps:c}),[u,l,a,c])}])},906912,e=>{"use strict";var t=e.i(298699),n=e.i(773825),r=e.i(389068),i=e.i(221995),s=e.i(570868);function o(e,n){let r=t.useRef(null),i=t.useRef(null);return t.useCallback(t=>{if(void 0!==e){if(null!==r.current){let e=r.current,t=i.current,s=n.context.triggerElements.getById(e);t&&s===t&&n.context.triggerElements.delete(e),r.current=null,i.current=null}null!==t&&(r.current=e,i.current=t,n.context.triggerElements.add(e,t))}},[n,e])}e.s(["useImplicitActiveTrigger",0,function(e){let t=e.useState("open");(0,r.useIsoLayoutEffect)(()=>{if(t&&!e.select("activeTriggerId")&&1===e.context.triggerElements.size){let t=e.context.triggerElements.entries().next();if(!t.done){let[n,r]=t.value;e.update({activeTriggerId:n,activeTriggerElement:r})}}},[t,e])},"useOpenStateTransitions",0,function(e,t,r){let{mounted:o,setMounted:u,transitionStatus:l}=(0,i.useTransitionStatus)(e);t.useSyncedValues({mounted:o,transitionStatus:l});let a=(0,n.useStableCallback)(()=>{u(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),r?.(),t.context.onOpenChangeComplete?.(!1)}),c=t.useState("preventUnmountingOnClose");return(0,s.useOpenChangeComplete)({enabled:!c,open:e,ref:t.context.popupRef,onComplete(){e||a()}}),{forceUnmount:a,transitionStatus:l}},"useTriggerDataForwarding",0,function(e,t,i,s){let u=i.useState("isMountedByTrigger",e),l=o(e,i),a=(0,n.useStableCallback)(t=>{if(l(t),!t||!i.select("open"))return;let n=i.select("activeTriggerId");n===e?i.update({activeTriggerElement:t,...s}):null==n&&i.update({activeTriggerId:e,activeTriggerElement:t,...s})});return(0,r.useIsoLayoutEffect)(()=>{u&&i.update({activeTriggerElement:t.current,...s})},[u,i,t,...Object.values(s)]),{registerTrigger:a,isMountedByThisTrigger:u}},"useTriggerRegistration",0,o])},24234,e=>{"use strict";var t=e.i(398258);e.s(["createSelector",0,(e,n,r,i,s,o,...u)=>{let l;if(u.length>0)throw Error((0,t.default)(1));if(e&&n&&r&&i&&s&&o)l=(t,u,l,a)=>o(e(t,u,l,a),n(t,u,l,a),r(t,u,l,a),i(t,u,l,a),s(t,u,l,a),u,l,a);else if(e&&n&&r&&i&&s)l=(t,o,u,l)=>s(e(t,o,u,l),n(t,o,u,l),r(t,o,u,l),i(t,o,u,l),o,u,l);else if(e&&n&&r&&i)l=(t,s,o,u)=>i(e(t,s,o,u),n(t,s,o,u),r(t,s,o,u),s,o,u);else if(e&&n&&r)l=(t,i,s,o)=>r(e(t,i,s,o),n(t,i,s,o),i,s,o);else if(e&&n)l=(t,r,i,s)=>n(e(t,r,i,s),r,i,s);else if(e)l=e;else throw Error("Missing arguments");return l}])},165371,(e,t,n)=>{"use strict";var r=e.r(298699),i=e.r(207102),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useSyncExternalStore,u=r.useRef,l=r.useEffect,a=r.useMemo,c=r.useDebugValue;n.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=u(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=o(e,(d=a(function(){function e(e){if(!l){if(l=!0,o=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return u=t}return u=e}if(t=u,s(o,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(o=e,t):(o=e,u=n)}var o,u,l=!1,a=void 0===n?null:n;return[function(){return e(t())},null===a?void 0:function(){return e(a())}]},[t,n,r,i]))[0],d[1]);return l(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}},673295,(e,t,n)=>{"use strict";t.exports=e.r(165371)},506295,91150,e=>{"use strict";var t=e.i(298699),n=e.i(207102),r=e.i(673295),i=e.i(938593),s=e.i(889072);let o=(0,i.isReactVersionAtLeast)(19)?function(e,r,i,o,u){let l,a=(0,s.getInstance)();if(!a){let s;return s=t.useCallback(()=>r(e.getSnapshot(),i,o,u),[e,r,i,o,u]),(0,n.useSyncExternalStore)(e.subscribe,s,s)}let c=a.syncIndex;return a.syncIndex+=1,a.didInitialize?(l=a.syncHooks[c]).store===e&&l.selector===r&&Object.is(l.a1,i)&&Object.is(l.a2,o)&&Object.is(l.a3,u)||(l.store!==e&&(a.didChangeStore=!0),l.store=e,l.selector=r,l.a1=i,l.a2=o,l.a3=u,l.didChange=!0):(l={store:e,selector:r,a1:i,a2:o,a3:u,value:r(e.getSnapshot(),i,o,u),didChange:!1},a.syncHooks.push(l)),l.value}:function(e,t,n,i,s){return(0,r.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,i,s))};function u(e,t,n,r,i){return o(e,t,n,r,i)}(0,s.register)({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);(r.didChange||!Object.is(r.value,i))&&(t=!0,r.value=i,r.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,n.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}}),e.s(["useStore",0,u],91150),e.s(["Store",0,class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return u(this,e,t,n,r)}}],506295)},629972,954944,e=>{"use strict";var t=e.i(24234);e.i(459119);var n=e.i(298699),r=e.i(506295),i=e.i(91150),s=e.i(773825),o=e.i(389068),u=e.i(128726);class l extends r.Store{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){n.useDebugValue(e),(0,o.useIsoLayoutEffect)(()=>{this.state[e]!==t&&this.set(e,t)},[e,t])}useSyncedValueWithCleanup(e,t){let n=this;(0,o.useIsoLayoutEffect)(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this,n=Object.values(e);(0,o.useIsoLayoutEffect)(()=>{t.update(e)},[t,...n])}useControlledProp(e,t){n.useDebugValue(e);let r=void 0!==t;(0,o.useIsoLayoutEffect)(()=>{r&&!Object.is(this.state[e],t)&&super.setState({...this.state,[e]:t})},[e,t,r])}select(e,t,n,r){return(0,this.selectors[e])(this.state,t,n,r)}useState(e,t,r,s){return n.useDebugValue(e),(0,i.useStore)(this,this.selectors[e],t,r,s)}useContextCallback(e,t){n.useDebugValue(e);let r=(0,s.useStableCallback)(t??u.NOOP);this.context[e]=r}useStateSetter(e){let t=n.useRef(void 0);return void 0===t.current&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n,r=(n="function"==typeof e?e:this.selectors[e])(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}}e.s(["ReactStore",0,l],954944);var a=e.i(932428),c=e.i(9722);let d={open:(0,t.createSelector)(e=>e.open),transitionStatus:(0,t.createSelector)(e=>e.transitionStatus),domReferenceElement:(0,t.createSelector)(e=>e.domReferenceElement),referenceElement:(0,t.createSelector)(e=>e.positionReference??e.referenceElement),floatingElement:(0,t.createSelector)(e=>e.floatingElement),floatingId:(0,t.createSelector)(e=>e.floatingId)};e.s(["FloatingRootStore",0,class extends l{constructor(e){const{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...s}=e;super({...s,positionReference:s.referenceElement,domReferenceElement:s.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:(0,a.createEventEmitter)(),nested:n,triggerElements:i},d),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||null!=t&&(0,c.isClickLikeEvent)(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}],629972)},278686,e=>{"use strict";var t=e.i(926249),n=e.i(610580),r=e.i(389068),i=e.i(92615),s=e.i(210366),o=e.i(629972);e.s(["useSyncedFloatingRootContext",0,function(e){let{popupStore:u,treatPopupAsFloatingElement:l=!1,onOpenChange:a}=e,c=(0,t.useId)(),d=null!=(0,s.useFloatingParentNodeId)(),f=u.useState("open"),p=u.useState("activeTriggerElement"),g=u.useState(l?"popupElement":"positionerElement"),h=u.context.triggerElements,m=(0,n.useRefWithInit)(()=>new o.FloatingRootStore({open:f,transitionStatus:void 0,referenceElement:p,floatingElement:g,triggerElements:h,onOpenChange:a,floatingId:c,syncOnly:!0,nested:d})).current;return(0,r.useIsoLayoutEffect)(()=>{let e={open:f,floatingId:c,referenceElement:p,floatingElement:g};(0,i.isElement)(p)&&(e.domReferenceElement=p),m.state.positionReference===m.state.referenceElement&&(e.positionReference=p),m.update(e)},[f,c,p,g,m]),m.context.onOpenChange=a,m.context.nested=d,m}])},646996,e=>{"use strict";e.s(["PopupTriggerMap",0,class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(void 0!==n&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}])},860920,e=>{"use strict";var t=e.i(24234),n=e.i(128726),r=e.i(646996),i=e.i(629972);let s=(0,t.createSelector)(e=>e.triggerIdProp??e.activeTriggerId),o={open:(0,t.createSelector)(e=>e.openProp??e.open),mounted:(0,t.createSelector)(e=>e.mounted),transitionStatus:(0,t.createSelector)(e=>e.transitionStatus),floatingRootContext:(0,t.createSelector)(e=>e.floatingRootContext),preventUnmountingOnClose:(0,t.createSelector)(e=>e.preventUnmountingOnClose),payload:(0,t.createSelector)(e=>e.payload),activeTriggerId:s,activeTriggerElement:(0,t.createSelector)(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:(0,t.createSelector)((e,t)=>void 0!==t&&s(e)===t),isOpenedByTrigger:(0,t.createSelector)((e,t)=>void 0!==t&&s(e)===t&&e.open),isMountedByTrigger:(0,t.createSelector)((e,t)=>void 0!==t&&s(e)===t&&e.mounted),triggerProps:(0,t.createSelector)((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:(0,t.createSelector)(e=>e.popupProps),popupElement:(0,t.createSelector)(e=>e.popupElement),positionerElement:(0,t.createSelector)(e=>e.positionerElement)};e.s(["createInitialPopupStoreState",0,function(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new i.FloatingRootStore({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new r.PopupTriggerMap,floatingId:"",syncOnly:!1,nested:!1,onOpenChange:void 0}),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:n.EMPTY_OBJECT,inactiveTriggerProps:n.EMPTY_OBJECT,popupProps:n.EMPTY_OBJECT}},"popupStoreSelectors",0,o],860920)},676372,e=>{"use strict";var t,n,r=e.i(106580);let i=((t={}).open="data-open",t.closed="data-closed",t[t.startingStyle=r.TransitionStatusDataAttributes.startingStyle]="startingStyle",t[t.endingStyle=r.TransitionStatusDataAttributes.endingStyle]="endingStyle",t.anchorHidden="data-anchor-hidden",t.side="data-side",t.align="data-align",t),s=((n={}).popupOpen="data-popup-open",n.pressed="data-pressed",n),o={[s.popupOpen]:""},u={[s.popupOpen]:"",[s.pressed]:""},l={[i.open]:""},a={[i.closed]:""},c={[i.anchorHidden]:""};e.s(["CommonPopupDataAttributes",0,i,"CommonTriggerDataAttributes",0,s,"popupStateMapping",0,{open:e=>e?l:a,anchorHidden:e=>e?c:null},"pressableTriggerOpenStateMapping",0,{open:e=>e?u:null},"triggerOpenStateMapping",0,{open:e=>e?o:null}])},417963,e=>{"use strict";var t=e.i(389068),n=e.i(610580);function r(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}e.s(["useValueAsRef",0,function(e){let i=(0,n.useRefWithInit)(r,e).current;return i.next=e,(0,t.useIsoLayoutEffect)(i.effect),i}])},81485,e=>{"use strict";let t={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},n={...t,position:"fixed",top:0,left:0},r={...t,position:"absolute"};e.s(["visuallyHidden",0,n,"visuallyHiddenInput",0,r])},965223,e=>{"use strict";var t=e.i(298699),n=e.i(389068),r=e.i(297099),i=e.i(81485),s=e.i(368075);let o=t.forwardRef(function(e,o){let[u,l]=t.useState();return(0,n.useIsoLayoutEffect)(()=>{r.isSafari&&l("button")},[]),(0,s.jsx)("span",{...e,ref:o,style:i.visuallyHidden,"aria-hidden":!u||void 0,...{tabIndex:0,role:u},"data-base-ui-focus-guard":""})});e.s(["FocusGuard",0,o])},351471,e=>{"use strict";var t=e.i(92615),n=e.i(208700),r=e.i(677320),i=e.i(845879);function s(e){for(let n of Array.from(e.children))if("summary"===(0,t.getNodeName)(n))return n;return null}function o(e){let n=e?(0,t.getNodeName)(e):"";return null!=e&&e.matches('a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]')&&("summary"!==n||null!=e.parentElement&&"details"===(0,t.getNodeName)(e.parentElement)&&s(e.parentElement)===e)&&("details"!==n||null==s(e))&&("input"!==n||"hidden"!==e.type)}function u(e){if(!o(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let n=e;n;n=function(e){let n=e.assignedSlot;if(n)return n;if(e.parentElement)return e.parentElement;let r=e.getRootNode();return(0,t.isShadowRoot)(r)?r.host:null}(n)){let o=n!==e,u="slot"===(0,t.getNodeName)(n);if(n.hasAttribute("inert")||o&&"details"===(0,t.getNodeName)(n)&&!n.open&&!function(e,t){let n=s(t);return!!n&&(e===n||(0,r.contains)(n,e))}(e,n)||n.hasAttribute("hidden")||!u&&!function(e,n){let r=(0,t.getComputedStyle)(e);return n?"none"!==r.display:(0,i.isElementVisible)(e,r)}(n,o))return!1}return!0}function l(e){let n=e.tabIndex;if(n<0){let n=(0,t.getNodeName)(e);if("details"===n||"audio"===n||"video"===n||(0,t.isHTMLElement)(e)&&e.isContentEditable)return 0}return n}function a(e){return"input"!==(0,t.getNodeName)(e)?null:"radio"===e.type&&""!==e.name?e:null}function c(e){if((0,t.isHTMLElement)(e)&&"slot"===(0,t.getNodeName)(e)){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return(0,t.isHTMLElement)(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function d(e){let t=[];return!function e(t,n){c(t).forEach(t=>{o(t)&&n.push(t),e(t,n)})}(e,t),t.filter(u)}function f(e){let t=d(e);return t.filter(e=>l(e)>=0&&function(e,t){let n=a(e);if(!n)return!0;let r=t.find(e=>{let t=a(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=a(e);return t?.name===n.name&&t.form===n.form})===n}(e,t))}function p(e,t){let i=f(e),s=i.length;if(0===s)return;let o=(0,r.activeElement)((0,n.ownerDocument)(e)),u=i.indexOf(o);return i[-1===u?1===t?0:s-1:u+t]}function g(e,t){if(!e)return null;let r=f((0,n.ownerDocument)(e).body),i=r.length;if(0===i)return null;let s=r.indexOf(e);return -1===s?null:r[(s+t+i)%i]}e.s(["disableFocusInside",0,function(e){f(e).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})},"enableFocusInside",0,function(e){let n=[];!function e(n,r,i){c(n).forEach(n=>{(0,t.isHTMLElement)(n)&&n.matches(r)&&i.push(n),e(n,r,i)})}(e,"[data-tabindex]",n),n.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})},"focusable",0,d,"getNextTabbable",0,function(e){return p((0,n.ownerDocument)(e).body,1)||e},"getPreviousTabbable",0,function(e){return p((0,n.ownerDocument)(e).body,-1)||e},"getTabbableAfterElement",0,function(e){return g(e,1)},"getTabbableBeforeElement",0,function(e){return g(e,-1)},"isOutsideEvent",0,function(e,t){let n=t||e.currentTarget,i=e.relatedTarget;return!i||!(0,r.contains)(n,i)},"isTabbable",0,function(e){return u(e)&&l(e)>=0},"tabbable",0,f])},996830,e=>{"use strict";e.s(["CLICK_TRIGGER_IDENTIFIER",0,"data-base-ui-click-trigger","DISABLED_TRANSITIONS_STYLE",0,{style:{transition:"none"}},"DROPDOWN_COLLISION_AVOIDANCE",0,{fallbackAxisSide:"none"},"PATIENT_CLICK_THRESHOLD",0,500,"POPUP_COLLISION_AVOIDANCE",0,{fallbackAxisSide:"end"},"TYPEAHEAD_RESET_MS",0,500,"ownerVisuallyHidden",0,{clipPath:"inset(50%)",position:"fixed",top:0,left:0}])},349285,e=>{"use strict";var t=e.i(298699),n=e.i(550008),r=e.i(92615),i=e.i(730310),s=e.i(625656),o=e.i(926249),u=e.i(389068),l=e.i(773825),a=e.i(128726),c=e.i(965223),d=e.i(351471),f=e.i(211752),p=e.i(857504),g=e.i(342225),h=e.i(597849),m=e.i(996830),E=e.i(368075);let v=t.createContext(null),b=()=>t.useContext(v),S=(0,g.createAttribute)("portal");function T(e={}){let{ref:i,container:s,componentProps:c=a.EMPTY_OBJECT,elementProps:d}=e,f=(0,o.useId)(),p=b(),g=p?.portalNode,[m,E]=t.useState(null),[v,y]=t.useState(null),C=(0,l.useStableCallback)(e=>{null!==e&&y(e)}),R=t.useRef(null);(0,u.useIsoLayoutEffect)(()=>{if(null===s){R.current&&(R.current=null,y(null),E(null));return}if(null==f)return;let e=(s&&((0,r.isNode)(s)?s:s.current))??g??document.body;if(null==e){R.current&&(R.current=null,y(null),E(null));return}R.current!==e&&(R.current=e,y(null),E(e))},[s,g,f]);let I=(0,h.useRenderElement)("div",c,{ref:[i,C],props:[{id:f,[S]:""},d]});return{portalNode:v,portalSubtree:m&&I?n.createPortal(I,m):null}}let y=t.forwardRef(function(e,r){let{children:o,container:u,className:l,render:a,renderGuards:g,style:h,...b}=e,{portalNode:S,portalSubtree:y}=T({container:u,ref:r,componentProps:e,elementProps:b}),C=t.useRef(null),R=t.useRef(null),I=t.useRef(null),O=t.useRef(null),[x,P]=t.useState(null),w=t.useRef(!1),A=x?.modal,L=x?.open,N="boolean"==typeof g?g:!!x&&!x.modal&&x.open&&!!S;t.useEffect(()=>{if(S&&!A)return(0,s.mergeCleanups)((0,i.addEventListener)(S,"focusin",e,!0),(0,i.addEventListener)(S,"focusout",e,!0));function e(e){S&&e.relatedTarget&&(0,d.isOutsideEvent)(e)&&("focusin"===e.type?w.current&&((0,d.enableFocusInside)(S),w.current=!1):((0,d.disableFocusInside)(S),w.current=!0))}},[S,A]),t.useEffect(()=>{S&&!1===L&&((0,d.enableFocusInside)(S),w.current=!1)},[L,S]);let M=t.useMemo(()=>({beforeOutsideRef:C,afterOutsideRef:R,beforeInsideRef:I,afterInsideRef:O,portalNode:S,setFocusManagerState:P}),[S]);return(0,E.jsxs)(t.Fragment,{children:[y,(0,E.jsxs)(v.Provider,{value:M,children:[N&&S&&(0,E.jsx)(c.FocusGuard,{"data-type":"outside",ref:C,onFocus:e=>{if((0,d.isOutsideEvent)(e,S))I.current?.focus();else{let e=x?x.domReference:null,t=(0,d.getPreviousTabbable)(e);t?.focus()}}}),N&&S&&(0,E.jsx)("span",{"aria-owns":S.id,style:m.ownerVisuallyHidden}),S&&n.createPortal(o,S),N&&S&&(0,E.jsx)(c.FocusGuard,{"data-type":"outside",ref:R,onFocus:e=>{if((0,d.isOutsideEvent)(e,S))O.current?.focus();else{let t=x?x.domReference:null,n=(0,d.getNextTabbable)(t);n?.focus(),x?.closeOnFocusOut&&x?.onOpenChange(!1,(0,f.createChangeEventDetails)(p.REASONS.focusOut,e.nativeEvent))}}})]})]})});e.s(["FloatingPortal",0,y,"useFloatingPortalNode",0,T,"usePortalContext",0,b])},285182,e=>{"use strict";var t=e.i(92615);e.s(["ownerWindow",()=>t.getWindow])}]);
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70738,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=e.r(298699);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=l(e,n)),t&&(i.current=l(t,n))},[e,t])}function l(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},192474,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return u},urlObjectKeys:function(){return s}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let l=e.r(744066)._(e.r(679680)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,n=e.protocol||"",i=e.pathname||"",a=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(l.urlQueryToSearchParams(s)));let c=e.search||s&&`?${s}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==u?(u="//"+(u||""),i&&"/"!==i[0]&&(i="/"+i)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),i=i.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${i}${c}${a}`}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return a(e)}},402809,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return l}});let n=e.r(11789),i=e.r(737514);function l(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},256206,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},789994,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return v}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let l=e.r(744066),o=e.r(368075),a=l._(e.r(298699)),s=e.r(192474),u=e.r(748304),c=e.r(70738),d=e.r(11789),f=e.r(992943);e.r(611134);let p=e.r(371391),h=e.r(110445),g=e.r(402809),m=e.r(324882);function y(t){var r,n;let i,l,y,[v,b]=(0,a.useOptimistic)(h.IDLE_LINK_STATUS),j=(0,a.useRef)(null),{href:x,as:P,children:_,prefetch:w=null,passHref:O,replace:S,shallow:R,scroll:M,onClick:E,onMouseEnter:L,onTouchStart:A,legacyBehavior:I=!1,onNavigate:N,transitionTypes:D,ref:T,unstable_dynamicOnHover:z,...k}=t;i=_,I&&("string"==typeof i||"number"==typeof i)&&(i=(0,o.jsx)("a",{children:i}));let F=a.default.useContext(u.AppRouterContext),U=!1!==w,B=!1!==w?null===(n=w)||"auto"===n?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,H="string"==typeof(r=P||x)?r:(0,s.formatUrl)(r);if(I){if(i?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});l=a.default.Children.only(i)}let V=I?l&&"object"==typeof l&&l.ref:T,X=a.default.useCallback(e=>(null!==F&&(j.current=(0,h.mountLinkInstance)(e,H,F,B,U,b)),()=>{j.current&&((0,h.unmountLinkForCurrentNavigation)(j.current),j.current=null),(0,h.unmountPrefetchableInstance)(e)}),[U,H,F,B,b]),$={ref:(0,c.useMergedRef)(X,V),onClick(t){I||"function"!=typeof E||E(t),I&&l.props&&"function"==typeof l.props.onClick&&l.props.onClick(t),!F||t.defaultPrevented||function(t,r,n,i,l,o,s){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(r)){i&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(973821);a.default.startTransition(()=>{d(r,i?"replace":"push",!1===l?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,s)})}}(t,H,j,S,M,N,D)},onMouseEnter(e){I||"function"!=typeof L||L(e),I&&l.props&&"function"==typeof l.props.onMouseEnter&&l.props.onMouseEnter(e),F&&U&&(0,h.onNavigationIntent)(e.currentTarget,!0===z)},onTouchStart:function(e){I||"function"!=typeof A||A(e),I&&l.props&&"function"==typeof l.props.onTouchStart&&l.props.onTouchStart(e),F&&U&&(0,h.onNavigationIntent)(e.currentTarget,!0===z)}};return(0,d.isAbsoluteUrl)(H)?$.href=H:I&&!O&&("a"!==l.type||"href"in l.props)||($.href=(0,f.addBasePath)(H)),y=I?a.default.cloneElement(l,$):(0,o.jsx)("a",{...k,...$,children:i}),(0,o.jsx)(C.Provider,{value:v,children:y})}e.r(256206);let C=(0,a.createContext)(h.IDLE_LINK_STATUS),v=()=>(0,a.useContext)(C);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},855062,e=>{"use strict";var t=e.i(298699);e.s(["useLocalStorage",0,function(e,r){let[n,i]=(0,t.useState)(r);return(0,t.useLayoutEffect)(()=>{try{let t=localStorage.getItem(e);t&&i(JSON.parse(t))}catch{}},[e]),[n,(0,t.useCallback)(t=>{i(r=>{let n=t instanceof Function?t(r):t;try{localStorage.setItem(e,JSON.stringify(n))}catch{}return n})},[e])]}])},323550,e=>{"use strict";let t=(0,e.i(406963).default)("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);e.s(["Monitor",0,t],323550)},855372,e=>{"use strict";var t=e.i(368075),r=e.i(323550);function n({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 16 16",fill:"#D97757",className:e,children:(0,t.jsx)("path",{d:"m3.127 10.604 3.135-1.76.053-.153-.053-.085H6.11l-.525-.032-1.791-.048-1.554-.065-1.505-.08-.38-.081L0 7.832l.036-.234.32-.214.455.04 1.009.069 1.513.105 1.097.064 1.626.17h.259l.036-.105-.089-.065-.068-.064-1.566-1.062-1.695-1.121-.887-.646-.48-.327-.243-.306-.104-.67.435-.48.585.04.15.04.593.456 1.267.981 1.654 1.218.242.202.097-.068.012-.049-.109-.181-.9-1.626-.96-1.655-.428-.686-.113-.411a2 2 0 0 1-.068-.484l.496-.674L4.446 0l.662.089.279.242.411.94.666 1.48 1.033 2.014.302.597.162.553.06.17h.105v-.097l.085-1.134.157-1.392.154-1.792.052-.504.25-.605.497-.327.387.186.319.456-.045.294-.19 1.23-.37 1.93-.243 1.29h.142l.161-.16.654-.868 1.097-1.372.484-.545.565-.601.363-.287h.686l.505.751-.226.775-.707.895-.585.759-.839 1.13-.524.904.048.072.125-.012 1.897-.403 1.024-.186 1.223-.21.553.258.06.263-.218.536-1.307.323-1.533.307-2.284.54-.028.02.032.04 1.029.098.44.024h1.077l2.005.15.525.346.315.424-.053.323-.807.411-3.631-.863-.872-.218h-.12v.073l.726.71 1.331 1.202 1.667 1.55.084.383-.214.302-.226-.032-1.464-1.101-.565-.497-1.28-1.077h-.084v.113l.295.432 1.557 2.34.08.718-.112.234-.404.141-.444-.08-.911-1.28-.94-1.44-.759-1.291-.093.053-.448 4.821-.21.246-.484.186-.403-.307-.214-.496.214-.98.258-1.28.21-1.016.19-1.263.112-.42-.008-.028-.092.012-.953 1.307-1.448 1.957-1.146 1.227-.274.109-.477-.247.045-.44.266-.39 1.586-2.018.956-1.25.617-.723-.004-.105h-.036l-4.212 2.736-.75.096-.324-.302.04-.496.154-.162 1.267-.871z"})})}function i({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 16 16",fill:"currentColor",className:e,children:(0,t.jsx)("path",{d:"M14.949 6.547a3.94 3.94 0 0 0-.348-3.273 4.11 4.11 0 0 0-4.4-1.934A4.1 4.1 0 0 0 8.423.2 4.15 4.15 0 0 0 6.305.086a4.1 4.1 0 0 0-1.891.948 4.04 4.04 0 0 0-1.158 1.753 4.1 4.1 0 0 0-1.563.679A4 4 0 0 0 .554 4.72a3.99 3.99 0 0 0 .502 4.731 3.94 3.94 0 0 0 .346 3.274 4.11 4.11 0 0 0 4.402 1.933c.382.425.852.764 1.377.995.526.231 1.095.35 1.67.346 1.78.002 3.358-1.132 3.901-2.804a4.1 4.1 0 0 0 1.563-.68 4 4 0 0 0 1.14-1.253 3.99 3.99 0 0 0-.506-4.716m-6.097 8.406a3.05 3.05 0 0 1-1.945-.694l.096-.054 3.23-1.838a.53.53 0 0 0 .265-.455v-4.49l1.366.778q.02.011.025.035v3.722c-.003 1.653-1.361 2.992-3.037 2.996m-6.53-2.75a2.95 2.95 0 0 1-.36-2.01l.095.057L5.29 12.09a.53.53 0 0 0 .527 0l3.949-2.246v1.555a.05.05 0 0 1-.022.041L6.473 13.3c-1.454.826-3.311.335-4.15-1.098m-.85-6.94A3.02 3.02 0 0 1 3.07 3.949v3.785a.51.51 0 0 0 .262.451l3.93 2.237-1.366.779a.05.05 0 0 1-.048 0L2.585 9.342a2.98 2.98 0 0 1-1.113-4.094zm11.216 2.571L8.747 5.576l1.362-.776a.05.05 0 0 1 .048 0l3.265 1.86a3 3 0 0 1 1.173 1.207 2.96 2.96 0 0 1-.27 3.2 3.05 3.05 0 0 1-1.36.997V8.279a.52.52 0 0 0-.276-.445m1.36-2.015-.097-.057-3.226-1.855a.53.53 0 0 0-.53 0L6.249 6.153V4.598a.04.04 0 0 1 .019-.04L9.533 2.7a3.07 3.07 0 0 1 3.257.139c.474.325.843.778 1.066 1.303.223.526.289 1.103.191 1.664zM5.503 8.575 4.139 7.8a.05.05 0 0 1-.026-.037V4.049c0-.57.166-1.127.476-1.607s.752-.864 1.275-1.105a3.08 3.08 0 0 1 3.234.41l-.096.054-3.23 1.838a.53.53 0 0 0-.265.455zm.742-1.577 1.758-1 1.762 1v2l-1.755 1-1.762-1z"})})}function l({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 240 300",fill:"none",className:e,children:[(0,t.jsx)("path",{d:"M180 240H60V120H180V240Z",fill:"#CFCECD"}),(0,t.jsx)("path",{d:"M180 60H60V240H180V60ZM240 300H0V0H240V300Z",fill:"#211E1E"})]})}function o({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 16 16",fill:"none",className:e,children:[(0,t.jsx)("path",{d:"M8 2C5.5 2 3.5 4 3.5 6.5S5 10.5 6.5 11v1.5H8V11c.3.1.7.1 1 0v1.5h1.5V11c1.5-.5 3-2.5 3-4.5S10.5 2 8 2Z",fill:"#E8453A"}),(0,t.jsx)("path",{d:"M3.5 5.5C2 5 1 6 1.5 7s2 .5 2.2-.7",fill:"#FF6B5A"}),(0,t.jsx)("path",{d:"M12.5 5.5c1.5-.5 2.5.5 2 1.5s-2 .5-2.2-.7",fill:"#FF6B5A"}),(0,t.jsx)("path",{d:"M6.5 3Q5 1.2 4.3 1.5",stroke:"#FF6B5A",strokeWidth:"0.8",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M9.5 3Q11 1.2 11.7 1.5",stroke:"#FF6B5A",strokeWidth:"0.8",strokeLinecap:"round"}),(0,t.jsx)("circle",{cx:"6.2",cy:"5.2",r:"0.9",fill:"#050810"}),(0,t.jsx)("circle",{cx:"9.8",cy:"5.2",r:"0.9",fill:"#050810"}),(0,t.jsx)("circle",{cx:"6.4",cy:"5",r:"0.3",fill:"#00E5CC"}),(0,t.jsx)("circle",{cx:"10",cy:"5",r:"0.3",fill:"#00E5CC"})]})}function a({className:e}){return(0,t.jsx)("img",{src:"data:image/webp;base64,UklGRuYDAABXRUJQVlA4INoDAADQEwCdASowADAAPm0uk0ckIiGhKrqpWIANiWkAEyQea/fD8IewvGL5V7Nb3H8u/MA8G9rT+4flL+UfIe42/23GB8zPqF/o3E0UAP5h/h/+F6ZX+x5evnX/r+4T/K/67/u/zg7znogfrusMANZLkn1gvlY/vNsKubtj/9xLSzxTsLr7K9GLdFNs5rwtISRcPXvH4z57n2fg0XR3aQ2D+pPpycwyl7TwAAD+/2DbjivnePzfyHCsdOgJXKlUR/OgAkofD7K4AdmsPKyP5Ml4/4HBYmIm5/efn/H+X3IZtngyaUOvwbFuRS/1yODFYO3vf3qeXGgPdfgIROXd/EPT7K2jysfvY9N71+w6g2gBPs+P6lxYkPf6S9QfpvH/7Pp7i8xRh0nVDBTEQyczSz7V9hoqo4nDJuii+SfibZRR/d5zB+9jkcb1DNN7YnC5Y7+WfGrE3eseXt3hSm+NS5++m1MHbjsrd9z/Q4HPRP/C85Po41XObalGyIUcFUL2j2n3uI/Yh6U8r6trCUJFB4kT3fsv6+8ylX/d96y2hq869FCXLjq4YqEO8vs5BtT52sf7KyDxPAWkH/b06YbfVXf4/7y5THL6Sr/4mOrrY9P2LW81f05HHFN8n0jcyqKOH7AluMm0AHPgFyz8RVrfBdmnPiC2FLMQfNDte5yGFzGC3fMlDed/tS/PO3Q/hjsNLvAXUUjqHyCo3JeN69jyNgWjjf8iUqoBsXT+lJyp2r8p60ad1jxhNyTblyJwda8aWEw1hFDeGjpMGguDF66RL4c+ZO+PhculC6WxvCsZ7IPAsdD7/ywx3w3AowJ66hAAK7k+m6X2QV06OVOCwyIGERex/AUyuBbLUK93X58+M+Si7YfYjVYGpoJ7JvSgD8ExaA21z9OY+si+1wreacDanKnFDmhwBQC3t6MLeXCOGp3VURDKl10K7tdKHQcb4hr48ba+1x/MrMRwHfq3IQrDIXPYCg4b0OLnVN9JyXttKGM63B5imIdKuU0r6hhSslT10lGLjnIJuwO5WKR0RHs+BX5vs6H63y3K7IuuZ1eRN+Aczvbs4QuDs6ZRuzjJ/1DJ5R/3ZrFPrtxvMwT06vAXIgcbhLGNLhOQUYRPdUN5MgyCtL5NH71ArTPLRRkIjhGwoCYXKKqlqIKKT9NX3vwp/nlh4SX71dlYg/mPXbJ9bMeVugyjqFahjFTJ/rT3HtBCWG8h+OvvbOFDFKurCG9BOhO9B719OS7zsP0KPqoymnv7hVvoJyZp0iziCbBvaJpmF9Cvfs8/vWqWr7TUo616WfMW+X9nkgpuqtnfAAAAAA==",alt:"Hermes",className:`${e} rounded-sm`})}function s({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 800 800",fill:"none",className:e,children:[(0,t.jsx)("rect",{width:"800",height:"800",rx:"150",fill:"#09090b"}),(0,t.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M165.29 165.29H517.36V400H400V517.36H282.65V634.72H165.29ZM282.65 282.65V400H400V282.65Z"}),(0,t.jsx)("path",{fill:"#fff",d:"M517.36 400H634.72V634.72H517.36Z"})]})}function u({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:e,children:(0,t.jsx)("path",{d:"M12 1C5.9225 1 1 5.9225 1 12C1 16.8675 4.14875 20.9787 8.52125 22.4362C9.07125 22.5325 9.2775 22.2025 9.2775 21.9137C9.2775 21.6525 9.26375 20.7862 9.26375 19.865C6.5 20.3737 5.785 19.1912 5.565 18.5725C5.44125 18.2562 4.905 17.28 4.4375 17.0187C4.0525 16.8125 3.5025 16.3037 4.42375 16.29C5.29 16.2762 5.90875 17.0875 6.115 17.4175C7.105 19.0812 8.68625 18.6137 9.31875 18.325C9.415 17.61 9.70375 17.1287 10.02 16.8537C7.5725 16.5787 5.015 15.63 5.015 11.4225C5.015 10.2262 5.44125 9.23625 6.1425 8.46625C6.0325 8.19125 5.6475 7.06375 6.2525 5.55125C6.2525 5.55125 7.17375 5.2625 9.2775 6.67875C10.1575 6.43125 11.0925 6.3075 12.0275 6.3075C12.9625 6.3075 13.8975 6.43125 14.7775 6.67875C16.8813 5.24875 17.8025 5.55125 17.8025 5.55125C18.4075 7.06375 18.0225 8.19125 17.9125 8.46625C18.6138 9.23625 19.04 10.2125 19.04 11.4225C19.04 15.6437 16.4688 16.5787 14.0213 16.8537C14.42 17.1975 14.7638 17.8575 14.7638 18.8887C14.7638 20.36 14.75 21.5425 14.75 21.9137C14.75 22.2025 14.9563 22.5462 15.5063 22.4362C19.8513 20.9787 23 16.8537 23 12C23 5.9225 18.0775 1 12 1Z"})})}function c({className:e}){return(0,t.jsxs)("svg",{viewBox:"600 300 400 400",fill:"none",className:e,children:[(0,t.jsx)("path",{fill:"#14120B",d:"M999.994 554.294C999.994 559.859 999.994 565.419 999.962 570.984C999.935 575.67 999.882 580.357 999.753 585.038C999.475 595.247 998.875 605.542 997.059 615.639C995.217 625.88 992.212 635.409 987.477 644.718C982.822 653.861 976.738 662.233 969.485 669.491C962.227 676.748 953.861 682.828 944.712 687.482C935.409 692.217 925.875 695.222 915.633 697.065C905.537 698.88 895.242 699.48 885.033 699.759C880.346 699.887 875.665 699.941 870.978 699.968C865.413 700.005 859.853 700 854.288 700H745.695C740.13 700 734.571 700 729.005 699.968C724.319 699.941 719.632 699.887 714.951 699.759C704.742 699.48 694.447 698.88 684.35 697.065C674.109 695.222 664.58 692.217 655.271 687.482C646.128 682.828 637.756 676.743 630.499 669.491C623.241 662.233 617.161 653.866 612.507 644.718C607.772 635.414 604.767 625.88 602.925 615.639C601.109 605.542 600.509 595.247 600.23 585.038C600.102 580.352 600.048 575.67 600.021 570.984C600 565.419 600 559.859 600 554.294V445.701C600 440.136 600 434.576 600.032 429.011C600.059 424.324 600.112 419.637 600.241 414.956C600.52 404.747 601.119 394.452 602.935 384.356C604.778 374.115 607.783 364.586 612.518 355.277C617.172 346.133 623.257 337.762 630.509 330.504C637.767 323.246 646.133 317.167 655.282 312.512C664.586 307.777 674.12 304.772 684.361 302.93C694.458 301.114 704.752 300.514 714.961 300.236C719.648 300.107 724.329 300.054 729.016 300.027C734.576 300 740.136 300 745.701 300H854.294C859.859 300 865.419 300 870.984 300.032C875.67 300.059 880.357 300.112 885.038 300.241C895.247 300.52 905.542 301.119 915.639 302.935C925.88 304.778 935.409 307.783 944.718 312.518C953.861 317.172 962.233 323.257 969.491 330.509C976.748 337.767 982.828 346.133 987.482 355.282C992.217 364.586 995.222 374.12 997.065 384.361C998.88 394.458 999.48 404.752 999.759 414.961C999.887 419.648 999.941 424.329 999.968 429.016C1000.01 434.581 1000 440.141 1000 445.706V554.299L999.994 554.294Z"}),(0,t.jsx)("path",{fill:"#72716D",d:"M800.004 500L923.821 571.486C923.061 572.804 921.957 573.929 920.591 574.716L804.863 641.531C801.858 643.266 798.151 643.266 795.146 641.531L679.417 574.716C678.052 573.929 676.948 572.804 676.188 571.486L800.004 500Z"}),(0,t.jsx)("path",{fill:"#55544F",d:"M800.005 357.168V500L676.188 571.486C675.427 570.168 675.004 568.647 675.004 567.072V432.928C675.004 429.774 676.686 426.865 679.418 425.285L795.141 358.47C796.646 357.602 798.323 357.168 799.999 357.168H800.005Z"}),(0,t.jsx)("path",{fill:"#43413C",d:"M923.815 428.515C923.055 427.197 921.951 426.072 920.586 425.285L804.857 358.47C803.357 357.602 801.68 357.168 800.004 357.168V500L923.821 571.486C924.581 570.168 925.005 568.647 925.005 567.072V432.928C925.005 431.348 924.587 429.838 923.821 428.515H923.815Z"}),(0,t.jsx)("path",{fill:"#D6D5D2",d:"M915.156 433.518C915.857 434.728 915.954 436.281 915.156 437.663L802.764 632.323C802.008 633.641 800 633.1 800 631.584V503.311C800 502.287 799.727 501.302 799.229 500.44L915.15 433.512H915.156V433.518Z"}),(0,t.jsx)("path",{fill:"white",d:"M915.155 433.518L799.233 500.445C798.741 499.588 798.023 498.86 797.134 498.345L686.049 434.209C684.731 433.453 685.272 431.445 686.788 431.445H911.566C913.162 431.445 914.459 432.307 915.155 433.518Z"})]})}function d({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",className:e,children:[(0,t.jsx)("path",{d:"M12 24C12 18.2 12 15.5 10.1 13.9C8.5 12 5.8 12 0 12C5.8 12 8.5 12 10.1 10.1C12 8.5 12 5.8 12 0C12 5.8 12 8.5 13.9 10.1C15.5 12 18.2 12 24 12C18.2 12 15.5 12 13.9 13.9C12 15.5 12 18.2 12 24Z",fill:"url(#gemini-gradient)"}),(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"gemini-gradient",x1:"0",y1:"0",x2:"24",y2:"24",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{stopColor:"#4285F4"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#886FBF"})]})})]})}e.s(["ProviderLogo",0,function({provider:e,className:f="h-4 w-4"}){switch(e){case"claude":return(0,t.jsx)(n,{className:f});case"codex":return(0,t.jsx)(i,{className:f});case"opencode":return(0,t.jsx)(l,{className:f});case"openclaw":return(0,t.jsx)(o,{className:f});case"hermes":return(0,t.jsx)(a,{className:f});case"pi":return(0,t.jsx)(s,{className:f});case"copilot":return(0,t.jsx)(u,{className:f});case"cursor":return(0,t.jsx)(c,{className:f});case"gemini":return(0,t.jsx)(d,{className:f});default:return(0,t.jsx)(r.Monitor,{className:f})}}])},821752,(e,t,r)=>{"use strict";function n({widthInt:e,heightInt:t,blurWidth:r,blurHeight:i,blurDataURL:l,objectFit:o}){let a=r?40*r:e,s=i?40*i:t,u=a&&s?`viewBox='0 0 ${a} ${s}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${u}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${u?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${l}'/%3E%3C/svg%3E`}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},498074,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={VALID_LOADERS:function(){return l},imageConfigDefault:function(){return o}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let l=["default","imgix","cloudinary","akamai","custom"],o={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},355477,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImgProps",{enumerable:!0,get:function(){return u}}),e.r(611134);let n=e.r(641894),i=e.r(821752),l=e.r(498074),o=["-moz-initial","fill","none","scale-down",void 0];function a(e){return void 0!==e.default}function s(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function u({src:e,sizes:t,unoptimized:r=!1,priority:c=!1,preload:d=!1,loading:f,className:p,quality:h,width:g,height:m,fill:y=!1,style:C,overrideSrc:v,onLoad:b,onLoadingComplete:j,placeholder:x="empty",blurDataURL:P,fetchPriority:_,decoding:w="async",layout:O,objectFit:S,objectPosition:R,lazyBoundary:M,lazyRoot:E,...L},A){var I;let N,D,T,{imgConf:z,showAltText:k,blurComplete:F,defaultLoader:U}=A,B=z||l.imageConfigDefault;if("allSizes"in B)N=B;else{let e=[...B.deviceSizes,...B.imageSizes].sort((e,t)=>e-t),t=B.deviceSizes.sort((e,t)=>e-t),r=B.qualities?.sort((e,t)=>e-t);N={...B,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===U)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let H=L.loader||U;delete L.loader,delete L.srcSet;let V="__next_img_default"in H;if(V){if("custom"===N.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop.
|
|
2
|
-
Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=H;H=t=>{let{config:r,...n}=t;return e(n)}}if(O){"fill"===O&&(y=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[O];e&&(C={...C,...e});let r={responsive:"100vw",fill:"100vw"}[O];r&&!t&&(t=r)}let X="",$=s(g),K=s(m);if((I=e)&&"object"==typeof I&&(a(I)||void 0!==I.src)){let t=a(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(D=t.blurWidth,T=t.blurHeight,P=P||t.blurDataURL,X=t.src,!y)if($||K){if($&&!K){let e=$/t.width;K=Math.round(t.height*e)}else if(!$&&K){let e=K/t.height;$=Math.round(t.width*e)}}else $=t.width,K=t.height}let q=!c&&!d&&("lazy"===f||void 0===f);(!(e="string"==typeof e?e:X)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,q=!1),N.unoptimized&&(r=!0),V&&!N.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let G=s(h),W=Object.assign(y?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:S,objectPosition:R}:{},k?{}:{color:"transparent"},C),Z=F||"empty"===x?null:"blur"===x?`url("data:image/svg+xml;charset=utf-8,${(0,i.getImageBlurSvg)({widthInt:$,heightInt:K,blurWidth:D,blurHeight:T,blurDataURL:P||"",objectFit:W.objectFit})}")`:`url("${x}")`,J=o.includes(W.objectFit)?"fill"===W.objectFit?"100% 100%":"cover":W.objectFit,Y=Z?{backgroundSize:J,backgroundPosition:W.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Z}:{},Q=function({config:e,src:t,unoptimized:r,width:i,quality:l,sizes:o,loader:a}){if(r){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,n.getDeploymentId)();if(e){let r=t.indexOf("?");if(-1!==r){let n=new URLSearchParams(t.slice(r+1));n.get("dpl")||(n.append("dpl",e),t=t.slice(0,r)+"?"+n.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:s,kind:u}=function({deviceSizes:e,allSizes:t},r,n){if(n){let r=/(^|\s)(1?\d?\d)vw/g,i=[];for(let e;e=r.exec(n);)i.push(parseInt(e[2]));if(i.length){let r=.01*Math.min(...i);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,i,o),c=s.length-1;return{sizes:o||"w"!==u?o:"100vw",srcSet:s.map((r,n)=>`${a({config:e,src:t,quality:l,width:r})} ${"w"===u?r:n+1}${u}`).join(", "),src:a({config:e,src:t,quality:l,width:s[c]})}}({config:N,src:e,unoptimized:r,width:$,quality:G,sizes:t,loader:H}),ee=q?"lazy":f;return{props:{...L,loading:ee,fetchPriority:_,width:$,height:K,decoding:w,className:p,style:{...W,...Y},sizes:Q.sizes,srcSet:Q.srcSet,src:v||Q.src},meta:{unoptimized:r,preload:d||c,placeholder:x,fill:y}}}},477847,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return a}});let n=e.r(298699),i="u"<typeof window,l=i?()=>{}:n.useLayoutEffect,o=i?()=>{}:n.useEffect;function a(e){let{headManager:t,reduceComponentsToState:r}=e;function a(){if(t&&t.mountedInstances){let e=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return i&&(t?.mountedInstances?.add(e.children),a()),l(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),l(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),o(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},769049,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},defaultHead:function(){return d}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let l=e.r(481258),o=e.r(744066),a=e.r(368075),s=o._(e.r(298699)),u=l._(e.r(477847)),c=e.r(951024);function d(){return[(0,a.jsx)("meta",{charSet:"utf-8"},"charset"),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===s.default.Fragment?e.concat(s.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}e.r(611134);let p=["name","httpEquiv","charSet","itemProp"];function h(e){let t,r,n,i;return e.reduce(f,[]).reverse().concat(d().reverse()).filter((t=new Set,r=new Set,n=new Set,i={},e=>{let l=!0,o=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){o=!0;let r=e.key.slice(e.key.indexOf("$")+1);t.has(r)?l=!1:t.add(r)}switch(e.type){case"title":case"base":r.has(e.type)?l=!1:r.add(e.type);break;case"meta":for(let t=0,r=p.length;t<r;t++){let r=p[t];if(e.props.hasOwnProperty(r))if("charSet"===r)n.has(r)?l=!1:n.add(r);else{let t=e.props[r],n=i[r]||new Set;("name"!==r||!o)&&n.has(t)?l=!1:(n.add(t),i[r]=n)}}}return l})).reverse().map((e,t)=>{let r=e.key||t;return s.default.cloneElement(e,{key:r})})}let g=function({children:e}){let t=(0,s.useContext)(c.HeadManagerContext);return(0,a.jsx)(u.default,{reduceComponentsToState:h,headManager:t,children:e})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},703694,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageConfigContext",{enumerable:!0,get:function(){return l}});let n=e.r(481258)._(e.r(298699)),i=e.r(498074),l=n.default.createContext(i.imageConfigDefault)},507585,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RouterContext",{enumerable:!0,get:function(){return n}});let n=e.r(481258)._(e.r(298699)).default.createContext(null)},246955,(e,t,r)=>{"use strict";function n(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e,t.qualities[0]):r}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"findClosestQuality",{enumerable:!0,get:function(){return n}})},107475,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return o}});let n=e.r(246955),i=e.r(641894);function l({config:e,src:t,width:r,quality:o}){let a=(0,i.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//")){let e=t.indexOf("?");if(-1!==e){let r=new URLSearchParams(t.slice(e+1)),n=r.get("dpl");if(n){a=n,r.delete("dpl");let i=r.toString();t=t.slice(0,e)+(i?"?"+i:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns.
|
|
3
|
-
Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let s=(0,n.findClosestQuality)(o,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${s}${t.startsWith("/")&&a?`&dpl=${a}`:""}`}l.__next_img_default=!0;let o=l},730145,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Image",{enumerable:!0,get:function(){return b}});let n=e.r(481258),i=e.r(744066),l=e.r(368075),o=i._(e.r(298699)),a=n._(e.r(550008)),s=n._(e.r(769049)),u=e.r(355477),c=e.r(498074),d=e.r(703694);e.r(611134);let f=e.r(507585),p=n._(e.r(107475)),h=e.r(70738),g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function m(e,t,r,n,i,l,o){let a=e?.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}n?.current&&n.current(e)}}))}function y(e){return o.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let C=(0,o.forwardRef)(({src:e,srcSet:t,sizes:r,height:n,width:i,decoding:a,className:s,style:u,fetchPriority:c,placeholder:d,loading:f,unoptimized:p,fill:g,onLoadRef:C,onLoadingCompleteRef:v,setBlurComplete:b,setShowAltText:j,sizesInput:x,onLoad:P,onError:_,...w},O)=>{let S=(0,o.useCallback)(e=>{e&&(_&&(e.src=e.src),e.complete&&m(e,d,C,v,b,p,x))},[e,d,C,v,b,_,p,x]),R=(0,h.useMergedRef)(O,S);return(0,l.jsx)("img",{...w,...y(c),loading:f,width:i,height:n,decoding:a,"data-nimg":g?"fill":"1",className:s,style:u,sizes:r,srcSet:t,src:e,ref:R,onLoad:e=>{m(e.currentTarget,d,C,v,b,p,x)},onError:e=>{j(!0),"empty"!==d&&b(!0),_&&_(e)}})});function v({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...y(t.fetchPriority)};return e&&a.default.preload?(a.default.preload(t.src,r),null):(0,l.jsx)(s.default,{children:(0,l.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let b=(0,o.forwardRef)((e,t)=>{let r=(0,o.useContext)(f.RouterContext),n=(0,o.useContext)(d.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=g||n||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t),i=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r,qualities:i,localPatterns:"u"<typeof window?n?.localPatterns:e.localPatterns}},[n]),{onLoad:a,onLoadingComplete:s}=e,h=(0,o.useRef)(a);(0,o.useEffect)(()=>{h.current=a},[a]);let m=(0,o.useRef)(s);(0,o.useEffect)(()=>{m.current=s},[s]);let[y,b]=(0,o.useState)(!1),[j,x]=(0,o.useState)(!1),{props:P,meta:_}=(0,u.getImgProps)(e,{defaultLoader:p.default,imgConf:i,blurComplete:y,showAltText:j});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(C,{...P,unoptimized:_.unoptimized,placeholder:_.placeholder,fill:_.fill,onLoadRef:h,onLoadingCompleteRef:m,setBlurComplete:b,setShowAltText:x,sizesInput:e.sizes,ref:t}),_.preload?(0,l.jsx)(v,{isAppRouter:!r,imgAttributes:P}):null]})});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},851287,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return c},getImageProps:function(){return u}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let l=e.r(481258),o=e.r(355477),a=e.r(730145),s=l._(e.r(107475));function u(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let c=a.Image},736956,(e,t,r)=>{t.exports=e.r(851287)},640565,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return i}});let n=e.r(350947);function i({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new n.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},454320,(e,t,r)=>{"use strict";function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return n}})},220095,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return s}});let n=e.r(368075),i=e.r(550008),l=e.r(408669),o=e.r(454320),a=e.r(641894);function s({moduleIds:e}){if("u">typeof window)return null;let t=l.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;r.push(...e)}}if(0===r.length)return null;let u=(0,a.getAssetTokenQuery)();return(0,n.jsx)(n.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,o.encodeURIPath)(e)}${u}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,i.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,113354,e=>{"use strict";let t=(0,e.i(406963).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],113354)},541544,e=>{"use strict";var t=e.i(297925);e.s(["Check",()=>t.default])},642342,e=>{"use strict";var t=e.i(459119),r=e.i(298699);let a=(0,e.i(613349).isLocalMode)(),n=Number(t.default.env.NEXT_PUBLIC_WS_DO_PORT)||8789,s=Number(t.default.env.NEXT_PUBLIC_WS_RECONNECT_DELAY_MS)||1e3,o=Number(t.default.env.NEXT_PUBLIC_WS_RECONNECT_MAX_DELAY_MS)||3e4;e.s(["useUserWs",0,function(e,t){let c=(0,r.useRef)(null),i=(0,r.useRef)(s),l=(0,r.useRef)(e),d=(0,r.useRef)(t?.onReconnect),u=(0,r.useRef)(null),f=(0,r.useRef)(!1),m=(0,r.useRef)(0),h=(0,r.useRef)(null),p=(0,r.useRef)(null);(0,r.useEffect)(()=>{l.current=e},[e]),(0,r.useEffect)(()=>{d.current=t?.onReconnect},[t?.onReconnect]);let g=(0,r.useRef)(null),x=(0,r.useCallback)(()=>{let e=Math.min(i.current,o);i.current=Math.min(2*e,o),u.current=setTimeout(()=>{g.current?.()},e+500*Math.random())},[]),w=(0,r.useCallback)(async()=>{let e,t,r,o=n;try{let r=await fetch("/api/ws/token");if(!r.ok){console.warn("[ws] token fetch failed:",r.status),x();return}let a=await r.json();e=a.userId,t=a.token,a.wsPort&&(o=a.wsPort)}catch(e){console.warn("[ws] token fetch error:",e),x();return}let u=a?`ws://localhost:${o}/?userId=${e}`:`${location.origin.replace("http","ws")}/api/ws/user?userId=${e}`;try{r=new WebSocket(u)}catch(e){console.warn("[ws] WebSocket creation failed:",e),x();return}c.current=r,r.onopen=()=>{i.current=s,r.send(JSON.stringify({type:"auth",token:t})),f.current&&d.current?.(),f.current=!0,m.current=Date.now(),h.current=setInterval(()=>{r.readyState===WebSocket.OPEN&&r.send("ping")},25e3),p.current=setInterval(()=>{Date.now()-m.current>3e4&&r.close()},5e3)},r.onmessage=e=>{m.current=Date.now();try{let t=JSON.parse(e.data);if("auth.ok"===t.type)return;l.current(t)}catch{}},r.onerror=()=>{},r.onclose=()=>{r===c.current&&(h.current&&(clearInterval(h.current),h.current=null),p.current&&(clearInterval(p.current),p.current=null),x())}},[x]);(0,r.useEffect)(()=>{g.current=w},[w]),(0,r.useEffect)(()=>(w(),()=>{null!==u.current&&(clearTimeout(u.current),u.current=null),h.current&&(clearInterval(h.current),h.current=null),p.current&&(clearInterval(p.current),p.current=null);let e=c.current;c.current=null,e?.close()}),[w])}])},297925,e=>{"use strict";let t=(0,e.i(406963).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",0,t])},371522,e=>{"use strict";let t=(0,e.i(406963).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",0,t],371522)},275351,e=>{"use strict";let t,r,a,n,s=(e,t)=>t.some(t=>e instanceof t),o=new WeakMap,c=new WeakMap,i=new WeakMap,l={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return o.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return d(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function d(e){if(e instanceof IDBRequest){let t;return t=new Promise((t,r)=>{let a=()=>{e.removeEventListener("success",n),e.removeEventListener("error",s)},n=()=>{t(d(e.result)),a()},s=()=>{r(e.error),a()};e.addEventListener("success",n),e.addEventListener("error",s)}),i.set(t,e),t}if(c.has(e))return c.get(e);let t=function(e){if("function"==typeof e)return(n||(n=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(u(this),t),d(this.request)}:function(...t){return d(e.apply(u(this),t))};return(e instanceof IDBTransaction&&function(e){if(o.has(e))return;let t=new Promise((t,r)=>{let a=()=>{e.removeEventListener("complete",n),e.removeEventListener("error",s),e.removeEventListener("abort",s)},n=()=>{t(),a()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),a()};e.addEventListener("complete",n),e.addEventListener("error",s),e.addEventListener("abort",s)});o.set(e,t)}(e),s(e,a||(a=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(e,l):e}(e);return t!==e&&(c.set(e,t),i.set(t,e)),t}let u=e=>i.get(e),f=["get","getKey","getAll","getAllKeys","count"],m=["put","add","delete","clear"],h=new Map;function p(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(h.get(t))return h.get(t);let r=t.replace(/FromIndex$/,""),a=t!==r,n=m.includes(r);if(!(r in(a?IDBIndex:IDBObjectStore).prototype)||!(n||f.includes(r)))return;let s=async function(e,...t){let s=this.transaction(e,n?"readwrite":"readonly"),o=s.store;return a&&(o=o.index(t.shift())),(await Promise.all([o[r](...t),n&&s.done]))[0]};return h.set(t,s),s}l={...t=l,get:(e,r,a)=>p(e,r)||t.get(e,r,a),has:(e,r)=>!!p(e,r)||t.has(e,r)};let g=["continue","continuePrimaryKey","advance"],x={},w=new WeakMap,y=new WeakMap,b={get(e,t){if(!g.includes(t))return e[t];let r=x[t];return r||(r=x[t]=function(...e){w.set(this,y.get(this)[t](...e))}),r}};async function*v(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;let r=new Proxy(t,b);for(y.set(r,t),i.set(r,u(t));t;)yield r,t=await (w.get(r)||t.continue()),w.delete(r)}function C(e,t){return t===Symbol.asyncIterator&&s(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&s(e,[IDBIndex,IDBObjectStore])}l={...r=l,get:(e,t,a)=>C(e,t)?v:r.get(e,t,a),has:(e,t)=>C(e,t)||r.has(e,t)};let j=null,I=null;function k(e){return"u"<typeof indexedDB?null:j&&I===e?j:(I=e,j=function(e,{blocked:t,upgrade:r,blocking:a,terminated:n}={}){let s=indexedDB.open(e,1),o=d(s);return r&&s.addEventListener("upgradeneeded",e=>{r(d(s.result),e.oldVersion,e.newVersion,d(s.transaction),e)}),t&&s.addEventListener("blocked",e=>t(e.oldVersion,e.newVersion,e)),o.then(e=>{n&&e.addEventListener("close",()=>n()),a&&e.addEventListener("versionchange",e=>a(e.oldVersion,e.newVersion,e))}).catch(()=>{}),o}(`alook-chat-cache-${e}`,{upgrade(e){let t=e.createObjectStore("messages",{keyPath:["conversation_id","id"]});t.createIndex("by-conversation","conversation_id",{unique:!1}),t.createIndex("by-created",["conversation_id","created_at"],{unique:!1}),e.createObjectStore("cache_meta",{keyPath:"conversation_id"})}}))}function _(e){return e?k(e):j}async function D(e,t){let r=_(t);if(!r)return null;try{let t=await r,a=await t.getAllFromIndex("messages","by-conversation",e);if(0===a.length)return null;let n=a.filter(e=>"buffered"!==e.status&&!e.id.startsWith("temp-"));n.sort((e,t)=>{let r=e.created_at.localeCompare(t.created_at);return 0!==r?r:e.id.localeCompare(t.id)});let s=await t.get("cache_meta",e);return s&&await t.put("cache_meta",{...s,lastAccessedAt:Date.now()}),n}catch{return null}}async function N(e,t,r,a,n){let s=_(n);if(!s)return null;try{let n=await s,o=await n.get("cache_meta",e);if(!o)return null;let c=IDBKeyRange.bound([e,""],[e,t],!1,!1),i=(await n.getAllFromIndex("messages","by-created",c)).filter(e=>!("buffered"===e.status||e.id.startsWith("temp-"))&&(e.created_at!==t||!(e.id>=r)));i.sort((e,t)=>{let r=t.created_at.localeCompare(e.created_at);return 0!==r?r:t.id.localeCompare(e.id)});let l=i.slice(0,a);if(l.length<a&&o.hasMore)return null;return await n.put("cache_meta",{...o,lastAccessedAt:Date.now()}),{messages:l.reverse(),hasMore:i.length>a||o.hasMore}}catch{return null}}async function B(e,t,r,a){let n=_(a);if(n)try{let a=await n,s=t.filter(e=>"buffered"!==e.status&&!e.id.startsWith("temp-"));if(0===s.length)return;let o=a.transaction(["messages","cache_meta"],"readwrite"),c=o.objectStore("messages"),i=o.objectStore("cache_meta");for(let e of s)await c.put(e);let l=await c.index("by-conversation").getAllKeys(e),d=Date.now(),u=s.reduce((e,t)=>e.created_at>t.created_at?e:t),f=await i.get(e),m=r??f?.hasMore??!0,h=f?.newestMessageId&&f.newestMessageId!==u.id?await (async()=>{let t=await c.get([e,f.newestMessageId]);return t&&t.created_at>u.created_at?t.id:u.id})():u.id,p={conversation_id:e,lastFetchedAt:d,lastAccessedAt:d,messageCount:l.length,newestMessageId:h,hasMore:m};await i.put(p),await o.done,A().catch(()=>{})}catch{}}async function M(e,t,r){let a=_(r);if(a&&!("buffered"===t.status||t.id.startsWith("temp-")))try{let r=await a,n=await r.get("cache_meta",e);if(!n)return;let s=await r.get("messages",[e,t.id]);await r.put("messages",t),await r.put("cache_meta",{...n,lastAccessedAt:Date.now(),messageCount:s?n.messageCount:n.messageCount+1,newestMessageId:t.id})}catch{}}async function E(e,t){let r=_(t);if(!r)return null;try{let t=await r;return await t.get("cache_meta",e)??null}catch{return null}}async function A(e=50){let t=_();if(t)try{let r=await t,a=await r.getAll("cache_meta");if(a.length<=e)return;a.sort((e,t)=>e.lastAccessedAt-t.lastAccessedAt);let n=a.slice(0,a.length-e),s=r.transaction(["messages","cache_meta"],"readwrite"),o=s.objectStore("messages"),c=s.objectStore("cache_meta");for(let e of n){for(let t of(await o.index("by-conversation").getAllKeys(e.conversation_id)))await o.delete(t);await c.delete(e.conversation_id)}await s.done}catch{}}async function S(){if("u">typeof indexedDB)try{j&&((await j).close(),j=null),I&&(await T(`alook-chat-cache-${I}`),I=null)}catch{}}async function T(e){return new Promise((t,r)=>{let a=indexedDB.deleteDatabase(e);a.onsuccess=()=>t(),a.onerror=()=>r(a.error),a.onblocked=()=>t()})}e.s(["appendCachedMessage",0,M,"clearAllCache",0,S,"getCacheMeta",0,E,"getCachedMessages",0,D,"getCachedMessagesBefore",0,N,"mergeCachedMessages",0,B,"openCacheDB",0,k],275351)},934351,e=>{"use strict";var t=e.i(368075),r=e.i(613349);e.s(["Card",0,function({className:e,size:a="default",...n}){return(0,t.jsx)("div",{"data-slot":"card","data-size":a,className:(0,r.cn)("group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...n})},"CardAction",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,r.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...a})},"CardContent",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-4 group-data-[size=sm]/card:px-3",e),...a})},"CardHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",e),...a})},"CardTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...a})}])},866519,e=>{"use strict";let t=(0,e.i(406963).default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);e.s(["LogOut",0,t],866519)},371406,e=>{"use strict";var t=e.i(368075),r=e.i(298699),a=e.i(186339),n=e.i(329686),s=e.i(541544),o=e.i(880932),c=e.i(613349);function i({step:e,completed:r}){return r?(0,t.jsx)("span",{className:"flex items-center justify-center size-5 rounded-full bg-emerald-500 text-white transition-all duration-300",children:(0,t.jsx)(s.Check,{className:"size-3",strokeWidth:3})}):(0,t.jsx)("span",{className:"flex items-center justify-center size-5 rounded-full bg-foreground text-background text-xs font-semibold",children:e})}e.s(["ConnectMachineSteps",0,function({generatedToken:e,generatingToken:s,onGenerateToken:l,registered:d}){let u=(0,r.useRef)(!1);(0,r.useEffect)(()=>{e||s||u.current||(u.current=!0,l())},[e,s,l]);let f=()=>{navigator.clipboard.writeText(`${(0,c.cliCmd)()} register --token ${e}`),o.toast.success("Copied to clipboard")},m=(0,c.daemonStartCmd)(),h=()=>{navigator.clipboard.writeText(m),o.toast.success("Copied to clipboard")};return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("p",{className:"text-sm font-medium flex items-center gap-2",children:[(0,t.jsx)(i,{step:1,completed:d}),"Register your CLI",d&&(0,t.jsx)("span",{className:"text-xs text-emerald-500 font-normal",children:"Done"})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground pl-7",children:"Run this in your terminal to link your machine."}),s?(0,t.jsx)("div",{className:"pl-7",children:(0,t.jsx)("div",{className:"rounded-md bg-muted p-2.5 font-mono text-xs text-muted-foreground animate-pulse",children:"Generating token..."})}):e?(0,t.jsxs)("div",{className:"pl-7 space-y-2",children:[(0,t.jsxs)(n.Tooltip,{children:[(0,t.jsxs)(n.TooltipTrigger,{render:(0,t.jsx)("div",{className:"rounded-md bg-muted p-2.5 font-mono text-xs text-muted-foreground cursor-pointer hover:bg-muted/80 transition-colors break-all",onClick:f}),children:[(0,c.cliCmd)()," register --token"," ",(0,t.jsx)("span",{className:"text-foreground/70",children:e})]}),(0,t.jsx)(n.TooltipContent,{children:"Click to copy"})]}),!d&&(0,t.jsx)(a.Button,{size:"sm",onClick:f,className:"w-full",children:"Copy Command"})]}):null]}),(0,t.jsxs)("div",{className:`space-y-2 transition-opacity duration-300 ${!d?"opacity-40 pointer-events-none":""}`,children:[(0,t.jsxs)("p",{className:"text-sm font-medium flex items-center gap-2",children:[(0,t.jsx)(i,{step:2,completed:!1}),"Start the daemon"]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground pl-7",children:"The daemon connects your local agents to Alook."}),(0,t.jsxs)(n.Tooltip,{children:[(0,t.jsx)(n.TooltipTrigger,{render:(0,t.jsx)("div",{className:"ml-7 rounded-md bg-muted p-2.5 font-mono text-xs text-muted-foreground cursor-pointer hover:bg-muted/80 transition-colors",onClick:h}),children:m}),(0,t.jsx)(n.TooltipContent,{children:"Click to copy"})]}),d&&(0,t.jsx)("div",{className:"pl-7",children:(0,t.jsx)(a.Button,{size:"sm",onClick:h,className:"w-full",children:"Copy Command"})})]})]})}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,38444,e=>{"use strict";var t=e.i(298699);let i=t.createContext(void 0),r={disableStyleElements:!1};e.s(["useCSPContext",0,function(){return t.useContext(i)??r}])},130577,682351,e=>{"use strict";function t(e,i=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(i,Math.min(e,r))}e.s(["clamp",0,t],682351),e.s(["SCROLL_EDGE_TOLERANCE_PX",0,1,"getMaxScrollOffset",0,function(e,t){return Math.max(0,e-t)},"normalizeScrollOffset",0,function(e,i){if(i<=0)return 0;let r=t(e,0,i),l=i-r,a=r<=1,n=l<=1;return a&&n?r<=l?0:i:a?0:n?i:r}],130577)},428365,e=>{"use strict";var t=e.i(368075);let i="base-ui-disable-scrollbar";e.s(["styleDisableScrollbar",0,{className:i,getElement:e=>(0,t.jsx)("style",{nonce:e,href:i,precedence:"base-ui:low",children:`.${i}{scrollbar-width:none}.${i}::-webkit-scrollbar{display:none}`})}])},716532,220308,e=>{"use strict";e.i(459119);var t,i=e.i(398258),r=e.i(298699),l=e.i(128726);let a=((t={}).disabled="data-disabled",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t),n={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},s={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},o={disabled:!1,...s};e.s(["DEFAULT_FIELD_ROOT_STATE",0,o,"DEFAULT_FIELD_STATE_ATTRIBUTES",0,s,"DEFAULT_VALIDITY_STATE",0,n,"fieldValidityMapping",0,{valid:e=>null===e?null:e?{[a.valid]:""}:{[a.invalid]:""}}],220308);let u=r.createContext({invalid:void 0,name:void 0,validityData:{state:n,errors:[],error:"",value:"",initialValue:null},setValidityData:l.NOOP,disabled:void 0,touched:s.touched,setTouched:l.NOOP,dirty:s.dirty,setDirty:l.NOOP,filled:s.filled,setFilled:l.NOOP,focused:s.focused,setFocused:l.NOOP,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:o,markedDirtyRef:{current:!1},registerFieldControl:l.NOOP,validation:{getValidationProps:(e=l.EMPTY_OBJECT)=>e,getInputValidationProps:(e=l.EMPTY_OBJECT)=>e,inputRef:{current:null},commit:async()=>{}}});e.s(["FieldRootContext",0,u,"useFieldRootContext",0,function(e=!0){let t=r.useContext(u);if(t.setValidityData===l.NOOP&&!e)throw Error((0,i.default)(28));return t}],716532)},482691,e=>{"use strict";var t=e.i(298699),i=e.i(128726);let r=t.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:i.NOOP,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});e.s(["useFormContext",0,function(){return t.useContext(r)}])},536735,e=>{"use strict";var t=e.i(298699),i=e.i(128726);let r=t.createContext({controlId:void 0,registerControlId:i.NOOP,labelId:void 0,setLabelId:i.NOOP,messageIds:[],setMessageIds:i.NOOP,getDescriptionProps:e=>e});e.s(["LabelableContext",0,r,"useLabelableContext",0,function(){return t.useContext(r)}])},945656,e=>{"use strict";var t=e.i(298699),i=e.i(389068),r=e.i(716532);e.s(["useRegisterFieldControl",0,function(e,l){let{enabled:a=!0,getValue:n,id:s,value:o}=l,{registerFieldControl:u}=(0,r.useFieldRootContext)(),d=t.useRef(null);d.current||(d.current=Symbol()),(0,i.useIsoLayoutEffect)(()=>{let t=d.current;if(t&&a)return u(t,{controlRef:e,getValue:n,id:s,value:o}),()=>{u(t,void 0)}},[e,a,n,s,u,o])}])},589193,e=>{"use strict";var t=e.i(92615),i=e.i(208700),r=e.i(773825),l=e.i(677320),a=e.i(389068),n=e.i(541126),s=e.i(536735);e.s(["useLabel",0,function(e={}){let o,{id:u,fallbackControlId:d,native:c=!1,setLabelId:f,focusControl:m}=e,{controlId:v,setLabelId:C}=(0,s.useLabelableContext)(),p=(0,r.useStableCallback)(e=>{C(e),f?.(e)}),b=(o=(0,n.useBaseUiId)(u),(0,a.useIsoLayoutEffect)(()=>(p(o),()=>{p(void 0)}),[o,p]),o),h=v??d;function x(e){let r=(0,l.getTarget)(e.nativeEvent);r?.closest("button,input,select,textarea")||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),c||function(e){if(m)return m(e,h);if(!h)return;let r=(0,i.ownerDocument)(e.currentTarget).getElementById(h);(0,t.isHTMLElement)(r)&&r.focus({focusVisible:!0})}(e))}return c?{id:b,htmlFor:h??void 0,onMouseDown:x}:{id:b,onClick:x,onPointerDown(e){e.preventDefault()}}}],589193)},734525,e=>{"use strict";var t=e.i(298699),i=e.i(389068),r=e.i(773825),l=e.i(610580),a=e.i(92615),n=e.i(128726),s=e.i(541126),o=e.i(536735);e.s(["useLabelableId",0,function(e={}){let{id:u,implicit:d=!1,controlRef:c}=e,{controlId:f,registerControlId:m}=(0,o.useLabelableContext)(),v=(0,s.useBaseUiId)(u),C=d?f:void 0,p=(0,l.useRefWithInit)(()=>Symbol("labelable-control")),b=t.useRef(!1),h=t.useRef(null!=u),x=(0,r.useStableCallback)(()=>{b.current&&m!==n.NOOP&&(b.current=!1,m(p.current,void 0))});return(0,i.useIsoLayoutEffect)(()=>{let e;if(m!==n.NOOP){if(d){let t=c?.current;e=(0,a.isElement)(t)&&null!=t.closest("label")?u??null:C??v}else if(null!=u)h.current=!0,e=u;else{if(!h.current)return void x();e=v}if(void 0===e)return void x();b.current=!0,m(p.current,e)}},[u,c,C,m,d,v,p,x]),t.useEffect(()=>x,[x]),f??v}])},416765,e=>{"use strict";let t=(0,e.i(406963).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["default",0,t])},855372,e=>{"use strict";var t=e.i(368075),i=e.i(323550);function r({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 16 16",fill:"#D97757",className:e,children:(0,t.jsx)("path",{d:"m3.127 10.604 3.135-1.76.053-.153-.053-.085H6.11l-.525-.032-1.791-.048-1.554-.065-1.505-.08-.38-.081L0 7.832l.036-.234.32-.214.455.04 1.009.069 1.513.105 1.097.064 1.626.17h.259l.036-.105-.089-.065-.068-.064-1.566-1.062-1.695-1.121-.887-.646-.48-.327-.243-.306-.104-.67.435-.48.585.04.15.04.593.456 1.267.981 1.654 1.218.242.202.097-.068.012-.049-.109-.181-.9-1.626-.96-1.655-.428-.686-.113-.411a2 2 0 0 1-.068-.484l.496-.674L4.446 0l.662.089.279.242.411.94.666 1.48 1.033 2.014.302.597.162.553.06.17h.105v-.097l.085-1.134.157-1.392.154-1.792.052-.504.25-.605.497-.327.387.186.319.456-.045.294-.19 1.23-.37 1.93-.243 1.29h.142l.161-.16.654-.868 1.097-1.372.484-.545.565-.601.363-.287h.686l.505.751-.226.775-.707.895-.585.759-.839 1.13-.524.904.048.072.125-.012 1.897-.403 1.024-.186 1.223-.21.553.258.06.263-.218.536-1.307.323-1.533.307-2.284.54-.028.02.032.04 1.029.098.44.024h1.077l2.005.15.525.346.315.424-.053.323-.807.411-3.631-.863-.872-.218h-.12v.073l.726.71 1.331 1.202 1.667 1.55.084.383-.214.302-.226-.032-1.464-1.101-.565-.497-1.28-1.077h-.084v.113l.295.432 1.557 2.34.08.718-.112.234-.404.141-.444-.08-.911-1.28-.94-1.44-.759-1.291-.093.053-.448 4.821-.21.246-.484.186-.403-.307-.214-.496.214-.98.258-1.28.21-1.016.19-1.263.112-.42-.008-.028-.092.012-.953 1.307-1.448 1.957-1.146 1.227-.274.109-.477-.247.045-.44.266-.39 1.586-2.018.956-1.25.617-.723-.004-.105h-.036l-4.212 2.736-.75.096-.324-.302.04-.496.154-.162 1.267-.871z"})})}function l({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 16 16",fill:"currentColor",className:e,children:(0,t.jsx)("path",{d:"M14.949 6.547a3.94 3.94 0 0 0-.348-3.273 4.11 4.11 0 0 0-4.4-1.934A4.1 4.1 0 0 0 8.423.2 4.15 4.15 0 0 0 6.305.086a4.1 4.1 0 0 0-1.891.948 4.04 4.04 0 0 0-1.158 1.753 4.1 4.1 0 0 0-1.563.679A4 4 0 0 0 .554 4.72a3.99 3.99 0 0 0 .502 4.731 3.94 3.94 0 0 0 .346 3.274 4.11 4.11 0 0 0 4.402 1.933c.382.425.852.764 1.377.995.526.231 1.095.35 1.67.346 1.78.002 3.358-1.132 3.901-2.804a4.1 4.1 0 0 0 1.563-.68 4 4 0 0 0 1.14-1.253 3.99 3.99 0 0 0-.506-4.716m-6.097 8.406a3.05 3.05 0 0 1-1.945-.694l.096-.054 3.23-1.838a.53.53 0 0 0 .265-.455v-4.49l1.366.778q.02.011.025.035v3.722c-.003 1.653-1.361 2.992-3.037 2.996m-6.53-2.75a2.95 2.95 0 0 1-.36-2.01l.095.057L5.29 12.09a.53.53 0 0 0 .527 0l3.949-2.246v1.555a.05.05 0 0 1-.022.041L6.473 13.3c-1.454.826-3.311.335-4.15-1.098m-.85-6.94A3.02 3.02 0 0 1 3.07 3.949v3.785a.51.51 0 0 0 .262.451l3.93 2.237-1.366.779a.05.05 0 0 1-.048 0L2.585 9.342a2.98 2.98 0 0 1-1.113-4.094zm11.216 2.571L8.747 5.576l1.362-.776a.05.05 0 0 1 .048 0l3.265 1.86a3 3 0 0 1 1.173 1.207 2.96 2.96 0 0 1-.27 3.2 3.05 3.05 0 0 1-1.36.997V8.279a.52.52 0 0 0-.276-.445m1.36-2.015-.097-.057-3.226-1.855a.53.53 0 0 0-.53 0L6.249 6.153V4.598a.04.04 0 0 1 .019-.04L9.533 2.7a3.07 3.07 0 0 1 3.257.139c.474.325.843.778 1.066 1.303.223.526.289 1.103.191 1.664zM5.503 8.575 4.139 7.8a.05.05 0 0 1-.026-.037V4.049c0-.57.166-1.127.476-1.607s.752-.864 1.275-1.105a3.08 3.08 0 0 1 3.234.41l-.096.054-3.23 1.838a.53.53 0 0 0-.265.455zm.742-1.577 1.758-1 1.762 1v2l-1.755 1-1.762-1z"})})}function a({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 240 300",fill:"none",className:e,children:[(0,t.jsx)("path",{d:"M180 240H60V120H180V240Z",fill:"#CFCECD"}),(0,t.jsx)("path",{d:"M180 60H60V240H180V60ZM240 300H0V0H240V300Z",fill:"#211E1E"})]})}function n({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 16 16",fill:"none",className:e,children:[(0,t.jsx)("path",{d:"M8 2C5.5 2 3.5 4 3.5 6.5S5 10.5 6.5 11v1.5H8V11c.3.1.7.1 1 0v1.5h1.5V11c1.5-.5 3-2.5 3-4.5S10.5 2 8 2Z",fill:"#E8453A"}),(0,t.jsx)("path",{d:"M3.5 5.5C2 5 1 6 1.5 7s2 .5 2.2-.7",fill:"#FF6B5A"}),(0,t.jsx)("path",{d:"M12.5 5.5c1.5-.5 2.5.5 2 1.5s-2 .5-2.2-.7",fill:"#FF6B5A"}),(0,t.jsx)("path",{d:"M6.5 3Q5 1.2 4.3 1.5",stroke:"#FF6B5A",strokeWidth:"0.8",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M9.5 3Q11 1.2 11.7 1.5",stroke:"#FF6B5A",strokeWidth:"0.8",strokeLinecap:"round"}),(0,t.jsx)("circle",{cx:"6.2",cy:"5.2",r:"0.9",fill:"#050810"}),(0,t.jsx)("circle",{cx:"9.8",cy:"5.2",r:"0.9",fill:"#050810"}),(0,t.jsx)("circle",{cx:"6.4",cy:"5",r:"0.3",fill:"#00E5CC"}),(0,t.jsx)("circle",{cx:"10",cy:"5",r:"0.3",fill:"#00E5CC"})]})}function s({className:e}){return(0,t.jsx)("img",{src:"data:image/webp;base64,UklGRuYDAABXRUJQVlA4INoDAADQEwCdASowADAAPm0uk0ckIiGhKrqpWIANiWkAEyQea/fD8IewvGL5V7Nb3H8u/MA8G9rT+4flL+UfIe42/23GB8zPqF/o3E0UAP5h/h/+F6ZX+x5evnX/r+4T/K/67/u/zg7znogfrusMANZLkn1gvlY/vNsKubtj/9xLSzxTsLr7K9GLdFNs5rwtISRcPXvH4z57n2fg0XR3aQ2D+pPpycwyl7TwAAD+/2DbjivnePzfyHCsdOgJXKlUR/OgAkofD7K4AdmsPKyP5Ml4/4HBYmIm5/efn/H+X3IZtngyaUOvwbFuRS/1yODFYO3vf3qeXGgPdfgIROXd/EPT7K2jysfvY9N71+w6g2gBPs+P6lxYkPf6S9QfpvH/7Pp7i8xRh0nVDBTEQyczSz7V9hoqo4nDJuii+SfibZRR/d5zB+9jkcb1DNN7YnC5Y7+WfGrE3eseXt3hSm+NS5++m1MHbjsrd9z/Q4HPRP/C85Po41XObalGyIUcFUL2j2n3uI/Yh6U8r6trCUJFB4kT3fsv6+8ylX/d96y2hq869FCXLjq4YqEO8vs5BtT52sf7KyDxPAWkH/b06YbfVXf4/7y5THL6Sr/4mOrrY9P2LW81f05HHFN8n0jcyqKOH7AluMm0AHPgFyz8RVrfBdmnPiC2FLMQfNDte5yGFzGC3fMlDed/tS/PO3Q/hjsNLvAXUUjqHyCo3JeN69jyNgWjjf8iUqoBsXT+lJyp2r8p60ad1jxhNyTblyJwda8aWEw1hFDeGjpMGguDF66RL4c+ZO+PhculC6WxvCsZ7IPAsdD7/ywx3w3AowJ66hAAK7k+m6X2QV06OVOCwyIGERex/AUyuBbLUK93X58+M+Si7YfYjVYGpoJ7JvSgD8ExaA21z9OY+si+1wreacDanKnFDmhwBQC3t6MLeXCOGp3VURDKl10K7tdKHQcb4hr48ba+1x/MrMRwHfq3IQrDIXPYCg4b0OLnVN9JyXttKGM63B5imIdKuU0r6hhSslT10lGLjnIJuwO5WKR0RHs+BX5vs6H63y3K7IuuZ1eRN+Aczvbs4QuDs6ZRuzjJ/1DJ5R/3ZrFPrtxvMwT06vAXIgcbhLGNLhOQUYRPdUN5MgyCtL5NH71ArTPLRRkIjhGwoCYXKKqlqIKKT9NX3vwp/nlh4SX71dlYg/mPXbJ9bMeVugyjqFahjFTJ/rT3HtBCWG8h+OvvbOFDFKurCG9BOhO9B719OS7zsP0KPqoymnv7hVvoJyZp0iziCbBvaJpmF9Cvfs8/vWqWr7TUo616WfMW+X9nkgpuqtnfAAAAAA==",alt:"Hermes",className:`${e} rounded-sm`})}function o({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 800 800",fill:"none",className:e,children:[(0,t.jsx)("rect",{width:"800",height:"800",rx:"150",fill:"#09090b"}),(0,t.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M165.29 165.29H517.36V400H400V517.36H282.65V634.72H165.29ZM282.65 282.65V400H400V282.65Z"}),(0,t.jsx)("path",{fill:"#fff",d:"M517.36 400H634.72V634.72H517.36Z"})]})}function u({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:e,children:(0,t.jsx)("path",{d:"M12 1C5.9225 1 1 5.9225 1 12C1 16.8675 4.14875 20.9787 8.52125 22.4362C9.07125 22.5325 9.2775 22.2025 9.2775 21.9137C9.2775 21.6525 9.26375 20.7862 9.26375 19.865C6.5 20.3737 5.785 19.1912 5.565 18.5725C5.44125 18.2562 4.905 17.28 4.4375 17.0187C4.0525 16.8125 3.5025 16.3037 4.42375 16.29C5.29 16.2762 5.90875 17.0875 6.115 17.4175C7.105 19.0812 8.68625 18.6137 9.31875 18.325C9.415 17.61 9.70375 17.1287 10.02 16.8537C7.5725 16.5787 5.015 15.63 5.015 11.4225C5.015 10.2262 5.44125 9.23625 6.1425 8.46625C6.0325 8.19125 5.6475 7.06375 6.2525 5.55125C6.2525 5.55125 7.17375 5.2625 9.2775 6.67875C10.1575 6.43125 11.0925 6.3075 12.0275 6.3075C12.9625 6.3075 13.8975 6.43125 14.7775 6.67875C16.8813 5.24875 17.8025 5.55125 17.8025 5.55125C18.4075 7.06375 18.0225 8.19125 17.9125 8.46625C18.6138 9.23625 19.04 10.2125 19.04 11.4225C19.04 15.6437 16.4688 16.5787 14.0213 16.8537C14.42 17.1975 14.7638 17.8575 14.7638 18.8887C14.7638 20.36 14.75 21.5425 14.75 21.9137C14.75 22.2025 14.9563 22.5462 15.5063 22.4362C19.8513 20.9787 23 16.8537 23 12C23 5.9225 18.0775 1 12 1Z"})})}function d({className:e}){return(0,t.jsxs)("svg",{viewBox:"600 300 400 400",fill:"none",className:e,children:[(0,t.jsx)("path",{fill:"#14120B",d:"M999.994 554.294C999.994 559.859 999.994 565.419 999.962 570.984C999.935 575.67 999.882 580.357 999.753 585.038C999.475 595.247 998.875 605.542 997.059 615.639C995.217 625.88 992.212 635.409 987.477 644.718C982.822 653.861 976.738 662.233 969.485 669.491C962.227 676.748 953.861 682.828 944.712 687.482C935.409 692.217 925.875 695.222 915.633 697.065C905.537 698.88 895.242 699.48 885.033 699.759C880.346 699.887 875.665 699.941 870.978 699.968C865.413 700.005 859.853 700 854.288 700H745.695C740.13 700 734.571 700 729.005 699.968C724.319 699.941 719.632 699.887 714.951 699.759C704.742 699.48 694.447 698.88 684.35 697.065C674.109 695.222 664.58 692.217 655.271 687.482C646.128 682.828 637.756 676.743 630.499 669.491C623.241 662.233 617.161 653.866 612.507 644.718C607.772 635.414 604.767 625.88 602.925 615.639C601.109 605.542 600.509 595.247 600.23 585.038C600.102 580.352 600.048 575.67 600.021 570.984C600 565.419 600 559.859 600 554.294V445.701C600 440.136 600 434.576 600.032 429.011C600.059 424.324 600.112 419.637 600.241 414.956C600.52 404.747 601.119 394.452 602.935 384.356C604.778 374.115 607.783 364.586 612.518 355.277C617.172 346.133 623.257 337.762 630.509 330.504C637.767 323.246 646.133 317.167 655.282 312.512C664.586 307.777 674.12 304.772 684.361 302.93C694.458 301.114 704.752 300.514 714.961 300.236C719.648 300.107 724.329 300.054 729.016 300.027C734.576 300 740.136 300 745.701 300H854.294C859.859 300 865.419 300 870.984 300.032C875.67 300.059 880.357 300.112 885.038 300.241C895.247 300.52 905.542 301.119 915.639 302.935C925.88 304.778 935.409 307.783 944.718 312.518C953.861 317.172 962.233 323.257 969.491 330.509C976.748 337.767 982.828 346.133 987.482 355.282C992.217 364.586 995.222 374.12 997.065 384.361C998.88 394.458 999.48 404.752 999.759 414.961C999.887 419.648 999.941 424.329 999.968 429.016C1000.01 434.581 1000 440.141 1000 445.706V554.299L999.994 554.294Z"}),(0,t.jsx)("path",{fill:"#72716D",d:"M800.004 500L923.821 571.486C923.061 572.804 921.957 573.929 920.591 574.716L804.863 641.531C801.858 643.266 798.151 643.266 795.146 641.531L679.417 574.716C678.052 573.929 676.948 572.804 676.188 571.486L800.004 500Z"}),(0,t.jsx)("path",{fill:"#55544F",d:"M800.005 357.168V500L676.188 571.486C675.427 570.168 675.004 568.647 675.004 567.072V432.928C675.004 429.774 676.686 426.865 679.418 425.285L795.141 358.47C796.646 357.602 798.323 357.168 799.999 357.168H800.005Z"}),(0,t.jsx)("path",{fill:"#43413C",d:"M923.815 428.515C923.055 427.197 921.951 426.072 920.586 425.285L804.857 358.47C803.357 357.602 801.68 357.168 800.004 357.168V500L923.821 571.486C924.581 570.168 925.005 568.647 925.005 567.072V432.928C925.005 431.348 924.587 429.838 923.821 428.515H923.815Z"}),(0,t.jsx)("path",{fill:"#D6D5D2",d:"M915.156 433.518C915.857 434.728 915.954 436.281 915.156 437.663L802.764 632.323C802.008 633.641 800 633.1 800 631.584V503.311C800 502.287 799.727 501.302 799.229 500.44L915.15 433.512H915.156V433.518Z"}),(0,t.jsx)("path",{fill:"white",d:"M915.155 433.518L799.233 500.445C798.741 499.588 798.023 498.86 797.134 498.345L686.049 434.209C684.731 433.453 685.272 431.445 686.788 431.445H911.566C913.162 431.445 914.459 432.307 915.155 433.518Z"})]})}function c({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",className:e,children:[(0,t.jsx)("path",{d:"M12 24C12 18.2 12 15.5 10.1 13.9C8.5 12 5.8 12 0 12C5.8 12 8.5 12 10.1 10.1C12 8.5 12 5.8 12 0C12 5.8 12 8.5 13.9 10.1C15.5 12 18.2 12 24 12C18.2 12 15.5 12 13.9 13.9C12 15.5 12 18.2 12 24Z",fill:"url(#gemini-gradient)"}),(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"gemini-gradient",x1:"0",y1:"0",x2:"24",y2:"24",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{stopColor:"#4285F4"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#886FBF"})]})})]})}e.s(["ProviderLogo",0,function({provider:e,className:f="h-4 w-4"}){switch(e){case"claude":return(0,t.jsx)(r,{className:f});case"codex":return(0,t.jsx)(l,{className:f});case"opencode":return(0,t.jsx)(a,{className:f});case"openclaw":return(0,t.jsx)(n,{className:f});case"hermes":return(0,t.jsx)(s,{className:f});case"pi":return(0,t.jsx)(o,{className:f});case"copilot":return(0,t.jsx)(u,{className:f});case"cursor":return(0,t.jsx)(d,{className:f});case"gemini":return(0,t.jsx)(c,{className:f});default:return(0,t.jsx)(i.Monitor,{className:f})}}])},596519,e=>{"use strict";let t=(0,e.i(406963).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CheckCircle2",0,t],596519)},752814,9441,e=>{"use strict";e.i(459119);var t=e.i(298699);let i=t.createContext({disabled:!1});e.s(["FieldItemContext",0,i,"useFieldItemContext",0,function(){return t.useContext(i)}],752814);var r=e.i(398258);let l=t.createContext(void 0);e.s(["useCheckboxGroupContext",0,function(e=!0){let i=t.useContext(l);if(void 0===i&&!e)throw Error((0,r.default)(3));return i}],9441)},903477,e=>{"use strict";var t=e.i(368075);e.i(459119);var i=e.i(298699);e.s([],691118),e.i(691118);var r=e.i(773825),l=e.i(716532),a=e.i(220308),n=e.i(398258);let s=i.createContext({legendId:void 0,setLegendId:()=>{},disabled:void 0});var o=e.i(482691),u=e.i(610580),d=e.i(943891),c=e.i(541126),f=e.i(536735);let m=function(e){let l=(0,c.useBaseUiId)(),a=void 0===e.controlId?l:e.controlId,[n,s]=i.useState(a),[o,m]=i.useState(e.labelId),[v,C]=i.useState([]),p=(0,u.useRefWithInit)(()=>new Map),{messageIds:b}=(0,f.useLabelableContext)(),h=(0,r.useStableCallback)((e,t)=>{let i=p.current;void 0===t?i.delete(e):(i.set(e,t),s(e=>{let t;if(0!==i.size){for(let r of i.values()){if(void 0!==e&&r===e)return e;void 0===t&&(t=r)}return t}}))}),x=i.useCallback(e=>(0,d.mergeProps)({"aria-describedby":b.concat(v).join(" ")||void 0},e),[b,v]),g=i.useMemo(()=>({controlId:n,registerControlId:h,labelId:o,setLabelId:m,messageIds:v,setMessageIds:C,getDescriptionProps:x}),[n,h,o,m,v,C,x]);return(0,t.jsx)(f.LabelableContext.Provider,{value:g,children:e.children})};var v=e.i(597849),C=e.i(128726),p=e.i(385967);function b(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}let h=Object.keys(a.DEFAULT_VALIDITY_STATE);var x=e.i(550008),g=e.i(389068);let y=i.forwardRef(function(e,u){let{errors:c,validationMode:m,submitAttemptedRef:y}=(0,o.useFormContext)(),{render:j,className:M,validate:E,validationDebounceTime:R=0,validationMode:A=m,name:L,disabled:I=!1,invalid:S,dirty:w,touched:F,actionsRef:P,style:T,...N}=e,{disabled:O}=function(e=!1){let t=i.useContext(s);if(!t&&!e)throw Error((0,n.default)(86));return t}(),V=(0,r.useStableCallback)(E||(()=>null)),D=O||I,[k,H]=i.useState(!1),[B,_]=i.useState(!1),[U,q]=i.useState(!1),[z,G]=i.useState(!1),X=w??B,K=F??k,Y=i.useRef(!1),Z=(0,r.useStableCallback)(e=>{void 0===w&&(e&&(Y.current=!0),_(e))}),W=(0,r.useStableCallback)(e=>{void 0===F&&H(e)}),J=(0,r.useStableCallback)(()=>"onChange"===A||"onSubmit"===A&&y.current),Q=!!L&&Object.hasOwn(c,L)&&void 0!==c[L],$=!0===S||Q,[ee,et]=i.useState({state:a.DEFAULT_VALIDITY_STATE,error:"",errors:[],value:null,initialValue:null}),ei=!$&&ee.state.valid,er=i.useMemo(()=>({disabled:D,touched:K,dirty:X,valid:ei,filled:U,focused:z}),[D,K,X,ei,U,z]),el=function(e){let{formRef:t,clearErrors:l}=(0,o.useFormContext)(),{setValidityData:n,validate:s,validityData:u,validationDebounceTime:c,invalid:m,markedDirtyRef:v,state:x,name:g,shouldValidateOnChange:y}=e,{controlId:j,getDescriptionProps:M}=(0,f.useLabelableContext)(),E=(0,p.useTimeout)(),R=i.useRef(null),A=(0,r.useStableCallback)(async(e,i=!1)=>{let r,l=R.current;if(!l)return;if(i){if(!1!==x.valid)return;let i=l.validity;if(!i.valueMissing){let i={value:e,state:{...a.DEFAULT_VALIDITY_STATE,valid:!0},error:"",errors:[],initialValue:u.initialValue};if(l.setCustomValidity(""),j){let e=t.current.fields.get(j);e&&t.current.fields.set(j,{...e,...b(i,!1)})}n(i);return}let r=h.reduce((e,t)=>(e[t]=i[t],e),{});if(!r.valid&&!function(e){if(!e||e.valid||!e.valueMissing)return!1;let t=!1;for(let i of h)"valid"!==i&&("valueMissing"===i&&(t=e[i]),e[i]&&(t=!1));return t}(r))return}E.clear();let o=null,d=[],c=function(e){let t=h.reduce((t,i)=>(t[i]=e.validity[i],t),{}),i=!1;for(let e of h)if("valid"!==e){if("valueMissing"===e&&t[e])i=!0;else if(t[e])return t}return i&&!v.current&&(t.valid=!0,t.valueMissing=!1),t}(l),f=y();if(l.validationMessage&&!f)r=l.validationMessage,d=[l.validationMessage];else{let i=s(e,Array.from(t.current.fields.values()).reduce((e,t)=>(t.name&&(e[t.name]=t.getValue()),e),{}));null!==(o="object"==typeof i&&null!==i&&"then"in i?await i:i)?(c.valid=!1,c.customError=!0,Array.isArray(o)?(d=o,l.setCustomValidity(o.join("\n"))):o&&(d=[o],l.setCustomValidity(o))):f&&(l.setCustomValidity(""),c.customError=!1,l.validationMessage?(r=l.validationMessage,d=[l.validationMessage]):l.validity.valid&&!c.valid&&(c.valid=!0))}let C={value:e,state:c,error:r??(Array.isArray(o)?o[0]:o??""),errors:d,initialValue:u.initialValue};if(j){let e=t.current.fields.get(j);e&&t.current.fields.set(j,{...e,...b(C,m)})}n(C)}),L=i.useCallback((e={})=>(0,d.mergeProps)(M,!1===x.valid?{"aria-invalid":!0}:C.EMPTY_OBJECT,e),[M,x.valid]),I=i.useCallback((e={})=>(0,d.mergeProps)({onChange(e){if(e.nativeEvent.defaultPrevented)return;if(l(g),!y())return void A(e.currentTarget.value,!0);let t=e.currentTarget;""===t.value?A(t.value):(E.clear(),c?E.start(c,()=>{A(t.value)}):A(t.value))}},L(e)),[L,l,g,E,A,c,y]);return i.useMemo(()=>({getValidationProps:L,getInputValidationProps:I,inputRef:R,commit:A}),[L,I,A])}({setValidityData:et,validate:V,validityData:ee,validationDebounceTime:R,invalid:$,markedDirtyRef:Y,state:er,name:L,shouldValidateOnChange:J}),ea=i.useCallback(()=>{Y.current=!0,el.commit(ee.value)},[el,ee]),en=function(e){let{commit:t,invalid:l,markedDirtyRef:a,name:n,setValidityData:s,validityData:u}=e,{formRef:d}=(0,o.useFormContext)(),c=i.useRef(null),f=i.useRef(null),m=i.useRef(null),v=(0,r.useStableCallback)(()=>{let e=f.current;if(e)return e.getValue?e.getValue():e.value}),C=(0,r.useStableCallback)((e=!0)=>{let i=f.current;if(!i)return;let r=i.value;void 0===r&&(r=v()),a.current=!0,e?x.flushSync(()=>t(r)):t(r)});function p(e=f.current?.id){e&&d.current.fields.delete(e)}return(0,g.useIsoLayoutEffect)(()=>{let e=f.current;e&&e.id&&d.current.fields.set(e.id,{getValue:v,name:n,controlRef:e.controlRef??m,validityData:b(u,l),validate:C})},[d,v,l,n,C,u]),(0,g.useIsoLayoutEffect)(()=>{let e=d.current.fields;return()=>{let t=f.current?.id;t&&e.delete(t)}},[d]),(0,r.useStableCallback)((e,t)=>{let i;if(!t){c.current===e&&(c.current=null,p(),f.current=null);return}let r=f.current?.id;c.current=e,f.current=t,r&&r!==t.id&&p(r),function(){let e=f.current;if(!e)return;let t=e.value;void 0===t&&(t=v()),null===u.initialValue&&null!==t&&s(e=>({...e,initialValue:t}))}(),(i=f.current)&&i.id&&d.current.fields.set(i.id,{getValue:v,name:n,controlRef:i.controlRef??m,validityData:b(u,l),validate:C})})}({commit:el.commit,invalid:$,markedDirtyRef:Y,name:L,setValidityData:et,validityData:ee});i.useImperativeHandle(P,()=>({validate:ea}),[ea]);let es=i.useMemo(()=>({invalid:$,name:L,validityData:ee,setValidityData:et,disabled:D,touched:K,setTouched:W,dirty:X,setDirty:Z,filled:U,setFilled:q,focused:z,setFocused:G,validate:V,validationMode:A,validationDebounceTime:R,shouldValidateOnChange:J,state:er,markedDirtyRef:Y,registerFieldControl:en,validation:el}),[$,L,ee,D,K,W,X,Z,U,q,z,G,V,A,R,J,er,en,el]),eo=(0,v.useRenderElement)("div",e,{ref:u,state:er,props:N,stateAttributesMapping:a.fieldValidityMapping});return(0,t.jsx)(l.FieldRootContext.Provider,{value:es,children:eo})}),j=i.forwardRef(function(e,i){return(0,t.jsx)(m,{children:(0,t.jsx)(y,{...e,ref:i})})});var M=e.i(589193);let E=i.forwardRef(function(e,t){let{render:r,className:n,style:s,id:o,nativeLabel:u=!0,...d}=e,c=(0,l.useFieldRootContext)(!1),{labelId:m}=(0,f.useLabelableContext)(),C=i.useRef(null),p=(0,M.useLabel)({id:m??o,native:u});return(0,v.useRenderElement)("label",e,{ref:[t,C],state:c.state,props:[p,d],stateAttributesMapping:a.fieldValidityMapping})});var R=e.i(570868),A=e.i(106580),L=e.i(221995);let I={...a.fieldValidityMapping,...A.transitionStatusMapping},S=i.forwardRef(function(e,r){let{render:a,id:n,className:s,match:u,style:d,...m}=e,C=(0,c.useBaseUiId)(n),{validityData:p,state:b,name:h}=(0,l.useFieldRootContext)(!1),{setMessageIds:x}=(0,f.useLabelableContext)(),{errors:y}=(0,o.useFormContext)(),j=h?y[h]:null,M="string"==typeof u,E=!1;E=!0===u||(M?!!p.state[u]:!!j||!1===p.state.valid);let{mounted:A,transitionStatus:S,setMounted:w}=(0,L.useTransitionStatus)(E);(0,g.useIsoLayoutEffect)(()=>{if(E&&C)return x(e=>e.concat(C)),()=>{x(e=>e.filter(e=>e!==C))}},[E,C,x]);let F=i.useRef(null),[P,T]=i.useState(null),[N,O]=i.useState(null),V=p.errors.length>1?(0,t.jsx)("ul",{children:p.errors.map(e=>(0,t.jsx)("li",{children:e},e))}):p.error,D=M?V:j||V,k=p.error;null!=j?k=Array.isArray(j)?JSON.stringify(j):j:p.errors.length>1&&(k=JSON.stringify(p.errors)),E&&k!==N&&(O(k),T(D)),(0,R.useOpenChangeComplete)({open:E,ref:F,onComplete(){E||w(!1)}});let H={...b,transitionStatus:S},B=(0,v.useRenderElement)("div",e,{ref:[r,F],state:H,props:[{id:C,children:E?D:P},m],stateAttributesMapping:I,enabled:A});return A?B:null}),w=i.forwardRef(function(e,t){let{render:i,id:r,className:n,style:s,...o}=e,u=(0,c.useBaseUiId)(r),d=(0,l.useFieldRootContext)(!1),{setMessageIds:m}=(0,f.useLabelableContext)();return(0,g.useIsoLayoutEffect)(()=>{if(u)return m(e=>e.concat(u)),()=>{m(e=>e.filter(e=>e!==u))}},[u,m]),(0,v.useRenderElement)("p",e,{ref:t,state:d.state,props:[{id:u},o],stateAttributesMapping:a.fieldValidityMapping})});var F=e.i(969183),P=e.i(208700),T=e.i(945656),N=e.i(734525),O=e.i(211752),V=e.i(857504),D=e.i(677320);let k=i.forwardRef(function(e,t){let{render:n,className:s,id:o,name:u,value:d,disabled:c=!1,onValueChange:m,defaultValue:C,autoFocus:p=!1,style:b,...h}=e,{state:x,name:y,disabled:j,setTouched:M,setDirty:E,validityData:R,setFocused:A,setFilled:L,validationMode:I,validation:S}=(0,l.useFieldRootContext)(),w=j||c,k={...x,disabled:w},{labelId:H}=(0,f.useLabelableContext)(),B=(0,N.useLabelableId)({id:o});(0,g.useIsoLayoutEffect)(()=>{let e=null!=d;S.inputRef.current?.value||e&&""!==d?L(!0):e&&""===d&&L(!1)},[S.inputRef,L,d]);let _=i.useRef(null);(0,g.useIsoLayoutEffect)(()=>{p&&_.current===(0,D.activeElement)((0,P.ownerDocument)(_.current))&&A(!0)},[p,A]);let[U]=(0,F.useControlled)({controlled:d,default:C,name:"FieldControl",state:"value"}),q=void 0!==d,z=q?U:void 0,G=(0,r.useStableCallback)(()=>S.inputRef.current?.value);return(0,T.useRegisterFieldControl)(S.inputRef,{id:B,value:z,getValue:G}),(0,v.useRenderElement)("input",e,{ref:[t,_],state:k,props:[{id:B,disabled:w,name:y??u,ref:S.inputRef,"aria-labelledby":H,autoFocus:p,...q?{value:z}:{defaultValue:C},onChange(e){let t=e.currentTarget.value;m?.(t,(0,O.createChangeEventDetails)(V.REASONS.none,e.nativeEvent)),E(t!==R.initialValue),L(""!==t)},onFocus(){A(!0)},onBlur(e){M(!0),A(!1),"onBlur"===I&&S.commit(e.currentTarget.value)},onKeyDown(e){"INPUT"===e.currentTarget.tagName&&"Enter"===e.key&&(M(!0),S.commit(e.currentTarget.value))}},S.getInputValidationProps(),h],stateAttributesMapping:a.fieldValidityMapping})});var H=e.i(752814),B=e.i(9441);let _=i.forwardRef(function(e,r){let{render:n,className:s,style:o,disabled:u=!1,...d}=e,{state:c,disabled:f}=(0,l.useFieldRootContext)(!1),C=f||u,p=(0,B.useCheckboxGroupContext)(),b=p?.parent.id,h=p?.allValues!==void 0,x=i.useMemo(()=>({disabled:C}),[C]),g=(0,v.useRenderElement)("div",e,{ref:r,state:c,props:d,stateAttributesMapping:a.fieldValidityMapping});return(0,t.jsx)(m,{controlId:h?b:void 0,children:(0,t.jsx)(H.FieldItemContext.Provider,{value:x,children:g})})});e.s(["Control",0,k,"Description",0,w,"Error",0,S,"Item",0,_,"Label",0,E,"Root",0,j,"Validity",0,function(e){let{children:r}=e,{validityData:a,invalid:n}=(0,l.useFieldRootContext)(!1),s=i.useMemo(()=>b(a,n),[a,n]),o=!1===s.state.valid,{transitionStatus:u}=(0,L.useTransitionStatus)(o),d=i.useMemo(()=>({...s,validity:s.state,transitionStatus:u}),[s,u]);return(0,t.jsx)(i.Fragment,{children:r(d)})}],234437);var U=e.i(234437),U=U;let q=i.forwardRef(function(e,i){return(0,t.jsx)(U.Control,{ref:i,...e})});var z=e.i(613349);e.s(["Input",0,function({className:e,type:i,...r}){return(0,t.jsx)(q,{type:i,"data-slot":"input",className:(0,z.cn)("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),...r})}],903477)},473131,e=>{"use strict";var t=e.i(368075),i=e.i(613349);e.s(["Label",0,function({className:e,...r}){return(0,t.jsx)("label",{"data-slot":"label",className:(0,i.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}])},553617,e=>{"use strict";e.s(["hasCustomEmailErrors",0,function(e){return!!(e.emailAddress||e.imapHost||e.imapPassword||e.smtpHost||e.smtpPassword)},"hasWorkspaceFormErrors",0,function(e){return!!(e.name||e.slug)},"validateCustomEmailFields",0,function({emailAddress:e,imapHost:t,imapUsername:i,imapPassword:r,smtpHost:l,smtpUsername:a,smtpPassword:n}){let s={};return e.trim()||(s.emailAddress="Email address is required"),t.trim()||(s.imapHost="IMAP host is required"),i.trim()&&r.trim()||(s.imapPassword="IMAP credentials are required"),l.trim()||(s.smtpHost="SMTP host is required"),a.trim()&&n.trim()||(s.smtpPassword="SMTP credentials are required"),s},"validateWorkspaceForm",0,function({name:e,slug:t}){let i={};return e.trim()||(i.name="Workspace name is required"),t.trim()||(i.slug="Workspace slug is required"),i}])},858262,e=>{"use strict";var t=e.i(368075),i=e.i(298699),r=e.i(208020),l=e.i(355578),a=e.i(500324),n=e.i(186339),s=e.i(617108),o=e.i(656955);e.i(400175);var u=e.i(108772),d=e.i(126366);let c={shape:"circle",eye:"dots",nose:"dot",bg:0};async function f(){let t=await ((e,t=3e3)=>new Promise(i=>{let r=document.querySelector(e);if(r)return void i(r);let l=new MutationObserver(()=>{let t=document.querySelector(e);t&&(l.disconnect(),i(t))});l.observe(document.body,{childList:!0,subtree:!0}),setTimeout(()=>{l.disconnect(),i(null)},t)}))("#agent-name");if(!t||(await new Promise(e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))}),!t.getBoundingClientRect().height))return;let{driver:i}=await e.A(820354);await e.A(830260),i({showProgress:!0,animate:!0,allowClose:!0,overlayClickBehavior:()=>{},overlayColor:"black",overlayOpacity:.4,popoverClass:"agent-tour-popover",steps:[{element:"#agent-name",popover:{title:"Name your agent",description:"Give your agent a name — this is how you'll identify it.",side:"bottom",align:"start"}},{element:"#agent-runtime-select",disableActiveInteraction:!1,popover:{title:"Choose a runtime",description:"Select which machine and provider will run this agent.",side:"bottom",align:"start"}}]}).drive()}function m({runtimes:e,defaultRuntimeId:r="",modelOptions:l,guided:v=!1,onTourReady:C,onSave:p,onCancel:b,saving:h}){let{workspaceId:x}=(0,a.useWorkspace)(),[g,y]=(0,i.useState)(""),[j,M]=(0,i.useState)(""),[E,R]=(0,i.useState)(""),[A,L]=(0,i.useState)(r),[I,S]=(0,i.useState)(""),[w,F]=(0,i.useState)({}),[P,T]=(0,i.useState)(null),N=(0,i.useRef)(null),[O,V]=(0,i.useState)(""),[D,k]=(0,i.useState)(c),H=(0,i.useRef)(!1);(0,i.useEffect)(()=>{H.current||(H.current=!0,k((0,d.randomConfig)()))},[]);let B=e.find(e=>e.id===A),_=B&&l?l[B.provider]??[]:[],U=(0,s.nameToHandle)(g),q=I||U,z=(0,s.getHandleError)(q),G=(0,i.useRef)(!1);(0,i.useEffect)(()=>{C?.(()=>f())},[C]),(0,i.useEffect)(()=>{v&&!G.current&&(G.current=!0,f())},[v]);let X=async e=>{e.preventDefault();let t=function({name:e,runtimeId:t}){let i={};return e.trim()||(i.name="Name is required"),t||(i.runtimeId="Select an online runtime"),i}({name:g,runtimeId:A});F(t),t.name||t.runtimeId||await p({name:g.trim(),description:j,instructions:E,runtime_id:A,email_handle:I||U||void 0,runtime_config:O?{model:O}:{},custom_email:N.current?.()??P??void 0,avatar_url:(0,d.serializeAvatarConfig)(D)})};return(0,t.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto thin-scrollbar px-5 py-6",children:(0,t.jsxs)("form",{onSubmit:X,noValidate:!0,className:"mx-auto max-w-md space-y-4",children:[(0,t.jsx)(u.AvatarPickerDialog,{config:D,onChange:k}),(0,t.jsx)(s.GeneralFields,{name:g,setName:e=>{y(e),w.name&&e.trim()&&F(e=>({...e,name:void 0}))},description:j,setDescription:M,instructions:E,setInstructions:R,model:O,setModel:V,runtimeId:A,setRuntimeId:t=>{let i=e.find(e=>e.id===A)?.provider,r=e.find(e=>e.id===t)?.provider;L(t),i&&i!==r&&V(""),w.runtimeId&&t&&F(e=>({...e,runtimeId:void 0}))},runtimes:e,providerModels:_,errors:w,runtimeAsRadio:!0}),(0,t.jsxs)("div",{className:"border-t border-border/50 pt-4 mt-4 space-y-4",children:[(0,t.jsx)(s.EmailHandleField,{emailHandle:I,setEmailHandle:S,derivedHandle:U}),(0,t.jsx)(o.CustomEmailForm,{workspaceId:x,onDataChange:T,getDataRef:N})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-2",children:[(0,t.jsx)(n.Button,{type:"button",variant:"ghost",size:"sm",onClick:b,children:"Cancel"}),(0,t.jsx)(n.Button,{type:"submit",size:"sm",disabled:h||!!z,children:h?"Creating...":"Create"})]})]})})}var v=e.i(222862),C=e.i(880932),p=e.i(987604),b=e.i(329686);e.s(["default",0,function(){let e=(0,r.useRouter)(),{slug:s,workspaceId:o}=(0,a.useWorkspace)(),{agents:u,runtimes:d,handleCreateAgent:c,getFirstOnlineRuntimeId:f}=(0,l.useAgentContext)(),[h,x]=(0,i.useState)(!1),[g,y]=(0,i.useState)({}),j=(0,i.useRef)(null);(0,i.useEffect)(()=>{(0,v.fetchModelOptions)().then(y).catch(()=>{})},[]);let M=(0,i.useCallback)(e=>{j.current=e},[]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 border-b border-border/50 px-3 md:px-5 py-2.5",children:[(0,t.jsx)("h1",{className:"text-sm font-medium",children:"Create Agent"}),(0,t.jsxs)(b.Tooltip,{children:[(0,t.jsx)(b.TooltipTrigger,{render:(0,t.jsx)(n.Button,{variant:"ghost",size:"icon-xs",onClick:()=>j.current?.(),className:"text-muted-foreground"}),children:(0,t.jsx)(p.CircleHelp,{className:"size-3.5"})}),(0,t.jsx)(b.TooltipContent,{children:"Show guided tour"})]})]}),(0,t.jsx)(m,{runtimes:d,defaultRuntimeId:f(),modelOptions:g,guided:0===u.length,onTourReady:M,saving:h,onCancel:()=>e.back(),onSave:async t=>{x(!0);try{let i=await c({name:t.name,description:t.description||void 0,instructions:t.instructions||void 0,runtime_id:t.runtime_id,email_handle:t.email_handle||void 0,runtime_config:t.runtime_config,avatar_url:t.avatar_url});if(i){if(t.custom_email)try{await (0,v.createEmailAccount)(i.id,t.custom_email,o),C.toast.success("Custom email connected")}catch(e){C.toast.error(e instanceof Error?e.message:"Failed to connect custom email")}e.push(`/w/${s}/agents/${i.id}/chat`)}return!!i}finally{x(!1)}}})]})}],858262)},302482,e=>{e.v(e=>Promise.resolve().then(()=>e(222862)))},820354,e=>{e.v(t=>Promise.all(["static/chunks/0tv4yf1ht_cen.js"].map(t=>e.l(t))).then(()=>t(637237)))},830260,e=>{e.v(t=>Promise.all(["static/chunks/17aqqaujl56vl.css"].map(t=>e.l(t))).then(()=>{}))}]);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,208020,(e,t,r)=>{t.exports=e.r(170928)},406963,e=>{"use strict";var t=e.i(298699);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),a=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,t.createContext)({}),l=(0,t.forwardRef)(({color:e,size:a,strokeWidth:l,absoluteStrokeWidth:o,className:s="",children:u,iconNode:d,...c},f)=>{let{size:p=24,strokeWidth:v=2,absoluteStrokeWidth:m=!1,color:g="currentColor",className:h=""}=(0,t.useContext)(i)??{},b=o??m?24*Number(l??v)/Number(a??p):l??v;return(0,t.createElement)("svg",{ref:f,...n,width:a??p??n.width,height:a??p??n.height,stroke:e??g,strokeWidth:b,className:r("lucide",h,s),...!u&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(c)&&{"aria-hidden":"true"},...c},[...d.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(u)?u:[u]])});e.s(["default",0,(e,n)=>{let i=(0,t.forwardRef)(({className:i,...o},s)=>(0,t.createElement)(l,{ref:s,iconNode:n,className:r(`lucide-${a(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...o}));return i.displayName=a(e),i}],406963)},616117,484665,e=>{"use strict";e.i(459119);var t=e.i(298699),r=e.i(92615),a=e.i(773825),n=e.i(389068),i=e.i(943891),l=e.i(398258);let o=t.createContext(void 0);function s(e=!1){let r=t.useContext(o);if(void 0===r&&!e)throw Error((0,l.default)(16));return r}function u(e){return(0,r.isHTMLElement)(e)&&"BUTTON"===e.tagName}e.s(["CompositeRootContext",0,o,"useCompositeRootContext",0,s],484665),e.s(["useButton",0,function(e={}){let{disabled:r=!1,focusableWhenDisabled:l,tabIndex:o=0,native:d=!0,composite:c}=e,f=t.useRef(null),p=s(!0),v=c??void 0!==p,{props:m}=function(e){let{focusableWhenDisabled:r,disabled:a,composite:n=!1,tabIndex:i=0,isNativeButton:l}=e,o=n&&!1!==r,s=n&&!1===r;return{props:t.useMemo(()=>{let e={onKeyDown(e){a&&r&&"Tab"!==e.key&&e.preventDefault()}};return n||(e.tabIndex=i,!l&&a&&(e.tabIndex=r?i:-1)),(l&&(r||o)||!l&&a)&&(e["aria-disabled"]=a),l&&(!r||s)&&(e.disabled=a),e},[n,a,r,o,s,l,i])}}({focusableWhenDisabled:l,disabled:r,composite:v,tabIndex:o,isNativeButton:d}),g=t.useCallback(()=>{let e=f.current;u(e)&&v&&r&&void 0===m.disabled&&e.disabled&&(e.disabled=!1)},[r,m.disabled,v]);return(0,n.useIsoLayoutEffect)(g,[g]),{getButtonProps:t.useCallback((e={})=>{let{onClick:t,onMouseDown:a,onKeyUp:n,onKeyDown:l,onPointerDown:o,...s}=e,c=d?"button":void 0;return(0,i.mergeProps)({type:c,onClick(e){r?e.preventDefault():t?.(e)},onMouseDown(e){r||a?.(e)},onKeyDown(e){var a;if(r||((0,i.makeEventPreventable)(e),l?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,o=e.currentTarget,s=u(o),c=!d&&(a=o,!!(a?.tagName==="A"&&a?.href)),f=n&&(d?s:!c),p="Enter"===e.key,m=" "===e.key,g=o.getAttribute("role"),h=g?.startsWith("menuitem")||"option"===g||"gridcell"===g;if(n&&v&&m){if(e.defaultPrevented&&h)return;e.preventDefault(),c||d&&s?(o.click(),e.preventBaseUIHandler()):f&&(t?.(e),e.preventBaseUIHandler());return}f&&(!d&&(m||p)&&e.preventDefault(),!d&&p&&t?.(e))},onKeyUp(e){r||(((0,i.makeEventPreventable)(e),n?.(e),e.target===e.currentTarget&&d&&v&&u(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||d||v||" "!==e.key||t?.(e)))},onPointerDown(e){r?e.preventDefault():o?.(e)}},d?void 0:{role:"button"},m,s)},[r,m,v,d]),buttonRef:(0,a.useStableCallback)(e=>{f.current=e,g()})}}],616117)},294237,e=>{"use strict";var t=e.i(7284);let r=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=t.clsx;e.s(["cva",0,(e,t)=>n=>{var i;if((null==t?void 0:t.variants)==null)return a(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:l,defaultVariants:o}=t,s=Object.keys(l).map(e=>{let t=null==n?void 0:n[e],a=null==o?void 0:o[e];if(null===t)return null;let i=r(t)||r(a);return l[e][i]}),u=n&&Object.entries(n).reduce((e,t)=>{let[r,a]=t;return void 0===a||(e[r]=a),e},{});return a(e,s,null==t||null==(i=t.compoundVariants)?void 0:i.reduce((e,t)=>{let{class:r,className:a,...n}=t;return Object.entries(n).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...u}[t]):({...o,...u})[t]===r})?[...e,r,a]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}])},186339,e=>{"use strict";var t=e.i(368075);e.i(459119);var r=e.i(298699),a=e.i(616117),n=e.i(597849);let i=r.forwardRef(function(e,t){let{render:r,className:i,disabled:l=!1,focusableWhenDisabled:o=!1,nativeButton:s=!0,style:u,...d}=e,{getButtonProps:c,buttonRef:f}=(0,a.useButton)({disabled:l,focusableWhenDisabled:o,native:s});return(0,n.useRenderElement)("button",e,{state:{disabled:l},ref:[t,f],props:[d,c]})});var l=e.i(294237),o=e.i(613349);let s=(0,l.cva)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});e.s(["Button",0,function({className:e,variant:r="default",size:a="default",...n}){return(0,t.jsx)(i,{"data-slot":"button",className:(0,o.cn)(s({variant:r,size:a,className:e})),...n})},"buttonVariants",0,s],186339)},969183,e=>{"use strict";var t=e.i(298699);e.s(["useControlled",0,function({controlled:e,default:r,name:a,state:n="value"}){let{current:i}=t.useRef(void 0!==e),[l,o]=t.useState(r),s=t.useCallback(e=>{i||o(e)},[]);return[i?e:l,s]}])},957563,e=>{"use strict";var t=e.i(298699),r=e.i(597849);let a=t.forwardRef(function(e,t){let{className:a,render:n,orientation:i="horizontal",style:l,...o}=e;return(0,r.useRenderElement)("div",e,{state:{orientation:i},ref:t,props:[{role:"separator","aria-orientation":i},o]})});e.s(["Separator",0,a])},855062,e=>{"use strict";var t=e.i(298699);e.s(["useLocalStorage",0,function(e,r){let[a,n]=(0,t.useState)(r);return(0,t.useLayoutEffect)(()=>{try{let t=localStorage.getItem(e);t&&n(JSON.parse(t))}catch{}},[e]),[a,(0,t.useCallback)(t=>{n(r=>{let a=t instanceof Function?t(r):t;try{localStorage.setItem(e,JSON.stringify(a))}catch{}return a})},[e])]}])},934351,e=>{"use strict";var t=e.i(368075),r=e.i(613349);e.s(["Card",0,function({className:e,size:a="default",...n}){return(0,t.jsx)("div",{"data-slot":"card","data-size":a,className:(0,r.cn)("group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...n})},"CardAction",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,r.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...a})},"CardContent",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-4 group-data-[size=sm]/card:px-3",e),...a})},"CardHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",e),...a})},"CardTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...a})}])},716532,220308,e=>{"use strict";e.i(459119);var t,r=e.i(398258),a=e.i(298699),n=e.i(128726);let i=((t={}).disabled="data-disabled",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t),l={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},o={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},s={disabled:!1,...o};e.s(["DEFAULT_FIELD_ROOT_STATE",0,s,"DEFAULT_FIELD_STATE_ATTRIBUTES",0,o,"DEFAULT_VALIDITY_STATE",0,l,"fieldValidityMapping",0,{valid:e=>null===e?null:e?{[i.valid]:""}:{[i.invalid]:""}}],220308);let u=a.createContext({invalid:void 0,name:void 0,validityData:{state:l,errors:[],error:"",value:"",initialValue:null},setValidityData:n.NOOP,disabled:void 0,touched:o.touched,setTouched:n.NOOP,dirty:o.dirty,setDirty:n.NOOP,filled:o.filled,setFilled:n.NOOP,focused:o.focused,setFocused:n.NOOP,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:s,markedDirtyRef:{current:!1},registerFieldControl:n.NOOP,validation:{getValidationProps:(e=n.EMPTY_OBJECT)=>e,getInputValidationProps:(e=n.EMPTY_OBJECT)=>e,inputRef:{current:null},commit:async()=>{}}});e.s(["FieldRootContext",0,u,"useFieldRootContext",0,function(e=!0){let t=a.useContext(u);if(t.setValidityData===n.NOOP&&!e)throw Error((0,r.default)(28));return t}],716532)},482691,e=>{"use strict";var t=e.i(298699),r=e.i(128726);let a=t.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:r.NOOP,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});e.s(["useFormContext",0,function(){return t.useContext(a)}])},536735,e=>{"use strict";var t=e.i(298699),r=e.i(128726);let a=t.createContext({controlId:void 0,registerControlId:r.NOOP,labelId:void 0,setLabelId:r.NOOP,messageIds:[],setMessageIds:r.NOOP,getDescriptionProps:e=>e});e.s(["LabelableContext",0,a,"useLabelableContext",0,function(){return t.useContext(a)}])},945656,e=>{"use strict";var t=e.i(298699),r=e.i(389068),a=e.i(716532);e.s(["useRegisterFieldControl",0,function(e,n){let{enabled:i=!0,getValue:l,id:o,value:s}=n,{registerFieldControl:u}=(0,a.useFieldRootContext)(),d=t.useRef(null);d.current||(d.current=Symbol()),(0,r.useIsoLayoutEffect)(()=>{let t=d.current;if(t&&i)return u(t,{controlRef:e,getValue:l,id:o,value:s}),()=>{u(t,void 0)}},[e,i,l,o,u,s])}])},589193,e=>{"use strict";var t=e.i(92615),r=e.i(208700),a=e.i(773825),n=e.i(677320),i=e.i(389068),l=e.i(541126),o=e.i(536735);e.s(["useLabel",0,function(e={}){let s,{id:u,fallbackControlId:d,native:c=!1,setLabelId:f,focusControl:p}=e,{controlId:v,setLabelId:m}=(0,o.useLabelableContext)(),g=(0,a.useStableCallback)(e=>{m(e),f?.(e)}),h=(s=(0,l.useBaseUiId)(u),(0,i.useIsoLayoutEffect)(()=>(g(s),()=>{g(void 0)}),[s,g]),s),b=v??d;function x(e){let a=(0,n.getTarget)(e.nativeEvent);a?.closest("button,input,select,textarea")||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),c||function(e){if(p)return p(e,b);if(!b)return;let a=(0,r.ownerDocument)(e.currentTarget).getElementById(b);(0,t.isHTMLElement)(a)&&a.focus({focusVisible:!0})}(e))}return c?{id:h,htmlFor:b??void 0,onMouseDown:x}:{id:h,onClick:x,onPointerDown(e){e.preventDefault()}}}],589193)},734525,e=>{"use strict";var t=e.i(298699),r=e.i(389068),a=e.i(773825),n=e.i(610580),i=e.i(92615),l=e.i(128726),o=e.i(541126),s=e.i(536735);e.s(["useLabelableId",0,function(e={}){let{id:u,implicit:d=!1,controlRef:c}=e,{controlId:f,registerControlId:p}=(0,s.useLabelableContext)(),v=(0,o.useBaseUiId)(u),m=d?f:void 0,g=(0,n.useRefWithInit)(()=>Symbol("labelable-control")),h=t.useRef(!1),b=t.useRef(null!=u),x=(0,a.useStableCallback)(()=>{h.current&&p!==l.NOOP&&(h.current=!1,p(g.current,void 0))});return(0,r.useIsoLayoutEffect)(()=>{let e;if(p!==l.NOOP){if(d){let t=c?.current;e=(0,i.isElement)(t)&&null!=t.closest("label")?u??null:m??v}else if(null!=u)b.current=!0,e=u;else{if(!b.current)return void x();e=v}if(void 0===e)return void x();h.current=!0,p(g.current,e)}},[u,c,m,p,d,v,g,x]),t.useEffect(()=>x,[x]),f??v}])},752814,9441,e=>{"use strict";e.i(459119);var t=e.i(298699);let r=t.createContext({disabled:!1});e.s(["FieldItemContext",0,r,"useFieldItemContext",0,function(){return t.useContext(r)}],752814);var a=e.i(398258);let n=t.createContext(void 0);e.s(["useCheckboxGroupContext",0,function(e=!0){let r=t.useContext(n);if(void 0===r&&!e)throw Error((0,a.default)(3));return r}],9441)},903477,e=>{"use strict";var t=e.i(368075);e.i(459119);var r=e.i(298699);e.s([],691118),e.i(691118);var a=e.i(773825),n=e.i(716532),i=e.i(220308),l=e.i(398258);let o=r.createContext({legendId:void 0,setLegendId:()=>{},disabled:void 0});var s=e.i(482691),u=e.i(610580),d=e.i(943891),c=e.i(541126),f=e.i(536735);let p=function(e){let n=(0,c.useBaseUiId)(),i=void 0===e.controlId?n:e.controlId,[l,o]=r.useState(i),[s,p]=r.useState(e.labelId),[v,m]=r.useState([]),g=(0,u.useRefWithInit)(()=>new Map),{messageIds:h}=(0,f.useLabelableContext)(),b=(0,a.useStableCallback)((e,t)=>{let r=g.current;void 0===t?r.delete(e):(r.set(e,t),o(e=>{let t;if(0!==r.size){for(let a of r.values()){if(void 0!==e&&a===e)return e;void 0===t&&(t=a)}return t}}))}),x=r.useCallback(e=>(0,d.mergeProps)({"aria-describedby":h.concat(v).join(" ")||void 0},e),[h,v]),y=r.useMemo(()=>({controlId:l,registerControlId:b,labelId:s,setLabelId:p,messageIds:v,setMessageIds:m,getDescriptionProps:x}),[l,b,s,p,v,m,x]);return(0,t.jsx)(f.LabelableContext.Provider,{value:y,children:e.children})};var v=e.i(597849),m=e.i(128726),g=e.i(385967);function h(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}let b=Object.keys(i.DEFAULT_VALIDITY_STATE);var x=e.i(550008),y=e.i(389068);let C=r.forwardRef(function(e,u){let{errors:c,validationMode:p,submitAttemptedRef:C}=(0,s.useFormContext)(),{render:w,className:j,validate:E,validationDebounceTime:S=0,validationMode:k=p,name:R,disabled:I=!1,invalid:M,dirty:N,touched:T,actionsRef:P,style:O,...L}=e,{disabled:D}=function(e=!1){let t=r.useContext(o);if(!t&&!e)throw Error((0,l.default)(86));return t}(),A=(0,a.useStableCallback)(E||(()=>null)),F=D||I,[B,V]=r.useState(!1),[_,z]=r.useState(!1),[U,W]=r.useState(!1),[H,G]=r.useState(!1),$=N??_,K=T??B,Y=r.useRef(!1),J=(0,a.useStableCallback)(e=>{void 0===N&&(e&&(Y.current=!0),z(e))}),q=(0,a.useStableCallback)(e=>{void 0===T&&V(e)}),Z=(0,a.useStableCallback)(()=>"onChange"===k||"onSubmit"===k&&C.current),X=!!R&&Object.hasOwn(c,R)&&void 0!==c[R],Q=!0===M||X,[ee,et]=r.useState({state:i.DEFAULT_VALIDITY_STATE,error:"",errors:[],value:null,initialValue:null}),er=!Q&&ee.state.valid,ea=r.useMemo(()=>({disabled:F,touched:K,dirty:$,valid:er,filled:U,focused:H}),[F,K,$,er,U,H]),en=function(e){let{formRef:t,clearErrors:n}=(0,s.useFormContext)(),{setValidityData:l,validate:o,validityData:u,validationDebounceTime:c,invalid:p,markedDirtyRef:v,state:x,name:y,shouldValidateOnChange:C}=e,{controlId:w,getDescriptionProps:j}=(0,f.useLabelableContext)(),E=(0,g.useTimeout)(),S=r.useRef(null),k=(0,a.useStableCallback)(async(e,r=!1)=>{let a,n=S.current;if(!n)return;if(r){if(!1!==x.valid)return;let r=n.validity;if(!r.valueMissing){let r={value:e,state:{...i.DEFAULT_VALIDITY_STATE,valid:!0},error:"",errors:[],initialValue:u.initialValue};if(n.setCustomValidity(""),w){let e=t.current.fields.get(w);e&&t.current.fields.set(w,{...e,...h(r,!1)})}l(r);return}let a=b.reduce((e,t)=>(e[t]=r[t],e),{});if(!a.valid&&!function(e){if(!e||e.valid||!e.valueMissing)return!1;let t=!1;for(let r of b)"valid"!==r&&("valueMissing"===r&&(t=e[r]),e[r]&&(t=!1));return t}(a))return}E.clear();let s=null,d=[],c=function(e){let t=b.reduce((t,r)=>(t[r]=e.validity[r],t),{}),r=!1;for(let e of b)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}(n),f=C();if(n.validationMessage&&!f)a=n.validationMessage,d=[n.validationMessage];else{let r=o(e,Array.from(t.current.fields.values()).reduce((e,t)=>(t.name&&(e[t.name]=t.getValue()),e),{}));null!==(s="object"==typeof r&&null!==r&&"then"in r?await r:r)?(c.valid=!1,c.customError=!0,Array.isArray(s)?(d=s,n.setCustomValidity(s.join("\n"))):s&&(d=[s],n.setCustomValidity(s))):f&&(n.setCustomValidity(""),c.customError=!1,n.validationMessage?(a=n.validationMessage,d=[n.validationMessage]):n.validity.valid&&!c.valid&&(c.valid=!0))}let m={value:e,state:c,error:a??(Array.isArray(s)?s[0]:s??""),errors:d,initialValue:u.initialValue};if(w){let e=t.current.fields.get(w);e&&t.current.fields.set(w,{...e,...h(m,p)})}l(m)}),R=r.useCallback((e={})=>(0,d.mergeProps)(j,!1===x.valid?{"aria-invalid":!0}:m.EMPTY_OBJECT,e),[j,x.valid]),I=r.useCallback((e={})=>(0,d.mergeProps)({onChange(e){if(e.nativeEvent.defaultPrevented)return;if(n(y),!C())return void k(e.currentTarget.value,!0);let t=e.currentTarget;""===t.value?k(t.value):(E.clear(),c?E.start(c,()=>{k(t.value)}):k(t.value))}},R(e)),[R,n,y,E,k,c,C]);return r.useMemo(()=>({getValidationProps:R,getInputValidationProps:I,inputRef:S,commit:k}),[R,I,k])}({setValidityData:et,validate:A,validityData:ee,validationDebounceTime:S,invalid:Q,markedDirtyRef:Y,state:ea,name:R,shouldValidateOnChange:Z}),ei=r.useCallback(()=>{Y.current=!0,en.commit(ee.value)},[en,ee]),el=function(e){let{commit:t,invalid:n,markedDirtyRef:i,name:l,setValidityData:o,validityData:u}=e,{formRef:d}=(0,s.useFormContext)(),c=r.useRef(null),f=r.useRef(null),p=r.useRef(null),v=(0,a.useStableCallback)(()=>{let e=f.current;if(e)return e.getValue?e.getValue():e.value}),m=(0,a.useStableCallback)((e=!0)=>{let r=f.current;if(!r)return;let a=r.value;void 0===a&&(a=v()),i.current=!0,e?x.flushSync(()=>t(a)):t(a)});function g(e=f.current?.id){e&&d.current.fields.delete(e)}return(0,y.useIsoLayoutEffect)(()=>{let e=f.current;e&&e.id&&d.current.fields.set(e.id,{getValue:v,name:l,controlRef:e.controlRef??p,validityData:h(u,n),validate:m})},[d,v,n,l,m,u]),(0,y.useIsoLayoutEffect)(()=>{let e=d.current.fields;return()=>{let t=f.current?.id;t&&e.delete(t)}},[d]),(0,a.useStableCallback)((e,t)=>{let r;if(!t){c.current===e&&(c.current=null,g(),f.current=null);return}let a=f.current?.id;c.current=e,f.current=t,a&&a!==t.id&&g(a),function(){let e=f.current;if(!e)return;let t=e.value;void 0===t&&(t=v()),null===u.initialValue&&null!==t&&o(e=>({...e,initialValue:t}))}(),(r=f.current)&&r.id&&d.current.fields.set(r.id,{getValue:v,name:l,controlRef:r.controlRef??p,validityData:h(u,n),validate:m})})}({commit:en.commit,invalid:Q,markedDirtyRef:Y,name:R,setValidityData:et,validityData:ee});r.useImperativeHandle(P,()=>({validate:ei}),[ei]);let eo=r.useMemo(()=>({invalid:Q,name:R,validityData:ee,setValidityData:et,disabled:F,touched:K,setTouched:q,dirty:$,setDirty:J,filled:U,setFilled:W,focused:H,setFocused:G,validate:A,validationMode:k,validationDebounceTime:S,shouldValidateOnChange:Z,state:ea,markedDirtyRef:Y,registerFieldControl:el,validation:en}),[Q,R,ee,F,K,q,$,J,U,W,H,G,A,k,S,Z,ea,el,en]),es=(0,v.useRenderElement)("div",e,{ref:u,state:ea,props:L,stateAttributesMapping:i.fieldValidityMapping});return(0,t.jsx)(n.FieldRootContext.Provider,{value:eo,children:es})}),w=r.forwardRef(function(e,r){return(0,t.jsx)(p,{children:(0,t.jsx)(C,{...e,ref:r})})});var j=e.i(589193);let E=r.forwardRef(function(e,t){let{render:a,className:l,style:o,id:s,nativeLabel:u=!0,...d}=e,c=(0,n.useFieldRootContext)(!1),{labelId:p}=(0,f.useLabelableContext)(),m=r.useRef(null),g=(0,j.useLabel)({id:p??s,native:u});return(0,v.useRenderElement)("label",e,{ref:[t,m],state:c.state,props:[g,d],stateAttributesMapping:i.fieldValidityMapping})});var S=e.i(570868),k=e.i(106580),R=e.i(221995);let I={...i.fieldValidityMapping,...k.transitionStatusMapping},M=r.forwardRef(function(e,a){let{render:i,id:l,className:o,match:u,style:d,...p}=e,m=(0,c.useBaseUiId)(l),{validityData:g,state:h,name:b}=(0,n.useFieldRootContext)(!1),{setMessageIds:x}=(0,f.useLabelableContext)(),{errors:C}=(0,s.useFormContext)(),w=b?C[b]:null,j="string"==typeof u,E=!1;E=!0===u||(j?!!g.state[u]:!!w||!1===g.state.valid);let{mounted:k,transitionStatus:M,setMounted:N}=(0,R.useTransitionStatus)(E);(0,y.useIsoLayoutEffect)(()=>{if(E&&m)return x(e=>e.concat(m)),()=>{x(e=>e.filter(e=>e!==m))}},[E,m,x]);let T=r.useRef(null),[P,O]=r.useState(null),[L,D]=r.useState(null),A=g.errors.length>1?(0,t.jsx)("ul",{children:g.errors.map(e=>(0,t.jsx)("li",{children:e},e))}):g.error,F=j?A:w||A,B=g.error;null!=w?B=Array.isArray(w)?JSON.stringify(w):w:g.errors.length>1&&(B=JSON.stringify(g.errors)),E&&B!==L&&(D(B),O(F)),(0,S.useOpenChangeComplete)({open:E,ref:T,onComplete(){E||N(!1)}});let V={...h,transitionStatus:M},_=(0,v.useRenderElement)("div",e,{ref:[a,T],state:V,props:[{id:m,children:E?F:P},p],stateAttributesMapping:I,enabled:k});return k?_:null}),N=r.forwardRef(function(e,t){let{render:r,id:a,className:l,style:o,...s}=e,u=(0,c.useBaseUiId)(a),d=(0,n.useFieldRootContext)(!1),{setMessageIds:p}=(0,f.useLabelableContext)();return(0,y.useIsoLayoutEffect)(()=>{if(u)return p(e=>e.concat(u)),()=>{p(e=>e.filter(e=>e!==u))}},[u,p]),(0,v.useRenderElement)("p",e,{ref:t,state:d.state,props:[{id:u},s],stateAttributesMapping:i.fieldValidityMapping})});var T=e.i(969183),P=e.i(208700),O=e.i(945656),L=e.i(734525),D=e.i(211752),A=e.i(857504),F=e.i(677320);let B=r.forwardRef(function(e,t){let{render:l,className:o,id:s,name:u,value:d,disabled:c=!1,onValueChange:p,defaultValue:m,autoFocus:g=!1,style:h,...b}=e,{state:x,name:C,disabled:w,setTouched:j,setDirty:E,validityData:S,setFocused:k,setFilled:R,validationMode:I,validation:M}=(0,n.useFieldRootContext)(),N=w||c,B={...x,disabled:N},{labelId:V}=(0,f.useLabelableContext)(),_=(0,L.useLabelableId)({id:s});(0,y.useIsoLayoutEffect)(()=>{let e=null!=d;M.inputRef.current?.value||e&&""!==d?R(!0):e&&""===d&&R(!1)},[M.inputRef,R,d]);let z=r.useRef(null);(0,y.useIsoLayoutEffect)(()=>{g&&z.current===(0,F.activeElement)((0,P.ownerDocument)(z.current))&&k(!0)},[g,k]);let[U]=(0,T.useControlled)({controlled:d,default:m,name:"FieldControl",state:"value"}),W=void 0!==d,H=W?U:void 0,G=(0,a.useStableCallback)(()=>M.inputRef.current?.value);return(0,O.useRegisterFieldControl)(M.inputRef,{id:_,value:H,getValue:G}),(0,v.useRenderElement)("input",e,{ref:[t,z],state:B,props:[{id:_,disabled:N,name:C??u,ref:M.inputRef,"aria-labelledby":V,autoFocus:g,...W?{value:H}:{defaultValue:m},onChange(e){let t=e.currentTarget.value;p?.(t,(0,D.createChangeEventDetails)(A.REASONS.none,e.nativeEvent)),E(t!==S.initialValue),R(""!==t)},onFocus(){k(!0)},onBlur(e){j(!0),k(!1),"onBlur"===I&&M.commit(e.currentTarget.value)},onKeyDown(e){"INPUT"===e.currentTarget.tagName&&"Enter"===e.key&&(j(!0),M.commit(e.currentTarget.value))}},M.getInputValidationProps(),b],stateAttributesMapping:i.fieldValidityMapping})});var V=e.i(752814),_=e.i(9441);let z=r.forwardRef(function(e,a){let{render:l,className:o,style:s,disabled:u=!1,...d}=e,{state:c,disabled:f}=(0,n.useFieldRootContext)(!1),m=f||u,g=(0,_.useCheckboxGroupContext)(),h=g?.parent.id,b=g?.allValues!==void 0,x=r.useMemo(()=>({disabled:m}),[m]),y=(0,v.useRenderElement)("div",e,{ref:a,state:c,props:d,stateAttributesMapping:i.fieldValidityMapping});return(0,t.jsx)(p,{controlId:b?h:void 0,children:(0,t.jsx)(V.FieldItemContext.Provider,{value:x,children:y})})});e.s(["Control",0,B,"Description",0,N,"Error",0,M,"Item",0,z,"Label",0,E,"Root",0,w,"Validity",0,function(e){let{children:a}=e,{validityData:i,invalid:l}=(0,n.useFieldRootContext)(!1),o=r.useMemo(()=>h(i,l),[i,l]),s=!1===o.state.valid,{transitionStatus:u}=(0,R.useTransitionStatus)(s),d=r.useMemo(()=>({...o,validity:o.state,transitionStatus:u}),[o,u]);return(0,t.jsx)(r.Fragment,{children:a(d)})}],234437);var U=e.i(234437),U=U;let W=r.forwardRef(function(e,r){return(0,t.jsx)(U.Control,{ref:r,...e})});var H=e.i(613349);e.s(["Input",0,function({className:e,type:r,...a}){return(0,t.jsx)(W,{type:r,"data-slot":"input",className:(0,H.cn)("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),...a})}],903477)},473131,e=>{"use strict";var t=e.i(368075),r=e.i(613349);e.s(["Label",0,function({className:e,...a}){return(0,t.jsx)("label",{"data-slot":"label",className:(0,r.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...a})}])},898707,e=>{"use strict";var t=e.i(368075);e.s(["GradientBackground",0,function(){return(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none fixed inset-0 -z-10 overflow-hidden bg-[oklch(0.93_0.015_80)] dark:bg-transparent"})}])},98432,e=>{"use strict";let t=(0,e.i(406963).default)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);e.s(["default",0,t])},45356,e=>{"use strict";e.i(459119);var t=e.i(368075),r=e.i(298699),a=e.i(208020),n=e.i(23055),i=e.i(186339),l=e.i(934351),o=e.i(903477),s=Object.defineProperty,u=Object.defineProperties,d=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,v=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,m=r.createContext({}),g=r.forwardRef((e,t)=>{let a;var n,i,l,o,s,{value:g,onChange:x,maxLength:y,textAlign:C="left",pattern:w,placeholder:j,inputMode:E="numeric",onComplete:S,pushPasswordManagerStrategy:k="increase-width",pasteTransformer:R,containerClassName:I,noScriptCSSFallback:M=b,render:N,children:T}=e,P=((e,t)=>{var r={};for(var a in e)f.call(e,a)&&0>t.indexOf(a)&&(r[a]=e[a]);if(null!=e&&c)for(var a of c(e))0>t.indexOf(a)&&p.call(e,a)&&(r[a]=e[a]);return r})(e,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[O,L]=r.useState("string"==typeof P.defaultValue?P.defaultValue:""),D=null!=g?g:O,A=(a=r.useRef(),r.useEffect(()=>{a.current=D}),a.current),F=r.useCallback(e=>{null==x||x(e),L(e)},[x]),B=r.useMemo(()=>w?"string"==typeof w?new RegExp(w):w:null,[w]),V=r.useRef(null),_=r.useRef(null),z=r.useRef({value:D,onChange:F,isIOS:"u">typeof window&&(null==(i=null==(n=null==window?void 0:window.CSS)?void 0:n.supports)?void 0:i.call(n,"-webkit-touch-callout","none"))}),U=r.useRef({prev:[null==(l=V.current)?void 0:l.selectionStart,null==(o=V.current)?void 0:o.selectionEnd,null==(s=V.current)?void 0:s.selectionDirection]});r.useImperativeHandle(t,()=>V.current,[]),r.useEffect(()=>{let e=V.current,t=_.current;if(!e||!t)return;function r(){if(document.activeElement!==e){Y(null),q(null);return}let t=e.selectionStart,r=e.selectionEnd,a=e.selectionDirection,n=e.maxLength,i=e.value,l=U.current.prev,o=-1,s=-1,u;if(0!==i.length&&null!==t&&null!==r){let e=t===r,a=t===i.length&&i.length<n;if(e&&!a){if(0===t)o=0,s=1,u="forward";else if(t===n)o=t-1,s=t,u="backward";else if(n>1&&i.length>1){let e=0;if(null!==l[0]&&null!==l[1]){u=t<l[1]?"backward":"forward";let r=l[0]===l[1]&&l[0]<n;"backward"!==u||r||(e=-1)}o=e+t,s=e+t+1}}-1!==o&&-1!==s&&o!==s&&V.current.setSelectionRange(o,s,u)}let d=-1!==o?o:t,c=-1!==s?s:r,f=null!=u?u:a;Y(d),q(c),U.current.prev=[d,c,f]}if(z.current.value!==e.value&&z.current.onChange(e.value),U.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",r,{capture:!0}),r(),document.activeElement===e&&$(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";h(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),h(e.sheet,`[data-input-otp]:autofill { ${t} }`),h(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),h(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),h(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let a=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};a();let n=new ResizeObserver(a);return n.observe(e),()=>{document.removeEventListener("selectionchange",r,{capture:!0}),n.disconnect()}},[]);let[W,H]=r.useState(!1),[G,$]=r.useState(!1),[K,Y]=r.useState(null),[J,q]=r.useState(null);r.useEffect(()=>{var e;setTimeout(e=()=>{var e,t,r,a;null==(e=V.current)||e.dispatchEvent(new Event("input"));let n=null==(t=V.current)?void 0:t.selectionStart,i=null==(r=V.current)?void 0:r.selectionEnd,l=null==(a=V.current)?void 0:a.selectionDirection;null!==n&&null!==i&&(Y(n),q(i),U.current.prev=[n,i,l])},0),setTimeout(e,10),setTimeout(e,50)},[D,G]),r.useEffect(()=>{void 0!==A&&D!==A&&A.length<y&&D.length===y&&(null==S||S(D))},[y,S,A,D]);let Z=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:a,isFocused:n}){let[i,l]=r.useState(!1),[o,s]=r.useState(!1),[u,d]=r.useState(!1),c=r.useMemo(()=>"none"!==a&&("increase-width"===a||"experimental-no-flickering"===a)&&i&&o,[i,o,a]),f=r.useCallback(()=>{let r=e.current,n=t.current;if(!r||!n||u||"none"===a)return;let i=r.getBoundingClientRect().left+r.offsetWidth,o=r.getBoundingClientRect().top+r.offsetHeight/2;0===document.querySelectorAll('[data-lastpass-icon-root],com-1password-button,[data-dashlanecreated],[style$="2147483647 !important;"]').length&&document.elementFromPoint(i-18,o)===r||(l(!0),d(!0))},[e,t,u,a]);return r.useEffect(()=>{let t=e.current;if(!t||"none"===a)return;function r(){s(window.innerWidth-t.getBoundingClientRect().right>=40)}r();let n=setInterval(r,1e3);return()=>{clearInterval(n)}},[e,a]),r.useEffect(()=>{let e=n||document.activeElement===t.current;if("none"===a||!e)return;let r=setTimeout(f,0),i=setTimeout(f,2e3),l=setTimeout(f,5e3),o=setTimeout(()=>{d(!0)},6e3);return()=>{clearTimeout(r),clearTimeout(i),clearTimeout(l),clearTimeout(o)}},[t,n,a,f]),{hasPWMBadge:i,willPushPWMBadge:c,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:_,inputRef:V,pushPasswordManagerStrategy:k,isFocused:G}),X=r.useCallback(e=>{let t=e.currentTarget.value.slice(0,y);t.length>0&&B&&!B.test(t)?e.preventDefault():("string"==typeof A&&t.length<A.length&&document.dispatchEvent(new Event("selectionchange")),F(t))},[y,F,A,B]),Q=r.useCallback(()=>{var e;if(V.current){let t=Math.min(V.current.value.length,y-1),r=V.current.value.length;null==(e=V.current)||e.setSelectionRange(t,r),Y(t),q(r)}$(!0)},[y]),ee=r.useCallback(e=>{var t,r;let a=V.current;if(!R&&(!z.current.isIOS||!e.clipboardData||!a))return;let n=e.clipboardData.getData("text/plain"),i=R?R(n):n;e.preventDefault();let l=null==(t=V.current)?void 0:t.selectionStart,o=null==(r=V.current)?void 0:r.selectionEnd,s=(l!==o?D.slice(0,l)+i+D.slice(o):D.slice(0,l)+i+D.slice(l)).slice(0,y);if(s.length>0&&B&&!B.test(s))return;a.value=s,F(s);let u=Math.min(s.length,y-1),d=s.length;a.setSelectionRange(u,d),Y(u),q(d)},[y,F,B,D]),et=r.useMemo(()=>({position:"relative",cursor:P.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[P.disabled]),er=r.useMemo(()=>({position:"absolute",inset:0,width:Z.willPushPWMBadge?`calc(100% + ${Z.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:Z.willPushPWMBadge?`inset(0 ${Z.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:C,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[Z.PWM_BADGE_SPACE_WIDTH,Z.willPushPWMBadge,C]),ea=r.useMemo(()=>r.createElement("input",u(((e,t)=>{for(var r in t||(t={}))f.call(t,r)&&v(e,r,t[r]);if(c)for(var r of c(t))p.call(t,r)&&v(e,r,t[r]);return e})({autoComplete:P.autoComplete||"one-time-code"},P),d({"data-input-otp":!0,"data-input-otp-placeholder-shown":0===D.length||void 0,"data-input-otp-mss":K,"data-input-otp-mse":J,inputMode:E,pattern:null==B?void 0:B.source,"aria-placeholder":j,style:er,maxLength:y,value:D,ref:V,onPaste:e=>{var t;ee(e),null==(t=P.onPaste)||t.call(P,e)},onChange:X,onMouseOver:e=>{var t;H(!0),null==(t=P.onMouseOver)||t.call(P,e)},onMouseLeave:e=>{var t;H(!1),null==(t=P.onMouseLeave)||t.call(P,e)},onFocus:e=>{var t;Q(),null==(t=P.onFocus)||t.call(P,e)},onBlur:e=>{var t;$(!1),null==(t=P.onBlur)||t.call(P,e)}}))),[X,Q,ee,E,er,y,J,K,P,null==B?void 0:B.source,D]),en=r.useMemo(()=>({slots:Array.from({length:y}).map((e,t)=>{var r;let a=G&&null!==K&&null!==J&&(K===J&&t===K||t>=K&&t<J),n=void 0!==D[t]?D[t]:null;return{char:n,placeholderChar:void 0!==D[0]?null:null!=(r=null==j?void 0:j[t])?r:null,isActive:a,hasFakeCaret:a&&null===n}}),isFocused:G,isHovering:!P.disabled&&W}),[G,W,y,J,K,P.disabled,D]),ei=r.useMemo(()=>N?N(en):r.createElement(m.Provider,{value:en},T),[T,en,N]);return r.createElement(r.Fragment,null,null!==M&&r.createElement("noscript",null,r.createElement("style",null,M)),r.createElement("div",{ref:_,"data-input-otp-container":!0,style:et,className:I},ei,r.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},ea)))});function h(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}g.displayName="Input";var b=`
|
|
2
|
-
[data-input-otp] {
|
|
3
|
-
--nojs-bg: white !important;
|
|
4
|
-
--nojs-fg: black !important;
|
|
5
|
-
|
|
6
|
-
background-color: var(--nojs-bg) !important;
|
|
7
|
-
color: var(--nojs-fg) !important;
|
|
8
|
-
caret-color: var(--nojs-fg) !important;
|
|
9
|
-
letter-spacing: .25em !important;
|
|
10
|
-
text-align: center !important;
|
|
11
|
-
border: 1px solid var(--nojs-fg) !important;
|
|
12
|
-
border-radius: 4px !important;
|
|
13
|
-
width: 100% !important;
|
|
14
|
-
}
|
|
15
|
-
@media (prefers-color-scheme: dark) {
|
|
16
|
-
[data-input-otp] {
|
|
17
|
-
--nojs-bg: black !important;
|
|
18
|
-
--nojs-fg: white !important;
|
|
19
|
-
}
|
|
20
|
-
}`,x=e.i(613349);function y({className:e,containerClassName:r,...a}){return(0,t.jsx)(g,{"data-slot":"input-otp",containerClassName:(0,x.cn)("cn-input-otp flex items-center has-disabled:opacity-50",r),spellCheck:!1,className:(0,x.cn)("disabled:cursor-not-allowed",e),...a})}function C({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"input-otp-group",className:(0,x.cn)("flex items-center rounded-lg has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40",e),...r})}function w({index:e,className:a,...n}){let i=r.useContext(m),{char:l,hasFakeCaret:o,isActive:s}=i?.slots[e]??{};return(0,t.jsxs)("div",{"data-slot":"input-otp-slot","data-active":s,className:(0,x.cn)("relative flex size-8 items-center justify-center border-y border-r border-input text-sm transition-all outline-none first:rounded-l-lg first:border-l last:rounded-r-lg aria-invalid:border-destructive data-[active=true]:z-10 data-[active=true]:border-ring data-[active=true]:ring-3 data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40",a),...n,children:[l,o&&(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:(0,t.jsx)("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})}e.i(98432);var j=e.i(294237),E=e.i(473131),S=e.i(957563);function k({className:e,orientation:r="horizontal",...a}){return(0,t.jsx)(S.Separator,{"data-slot":"separator",orientation:r,className:(0,x.cn)("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",e),...a})}function R({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"field-group",className:(0,x.cn)("group/field-group @container/field-group flex w-full flex-col gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4",e),...r})}let I=(0,j.cva)("group/field flex w-full gap-2 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:"flex-col *:w-full [&>.sr-only]:w-auto",horizontal:"flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",responsive:"flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"}},defaultVariants:{orientation:"vertical"}});function M({className:e,orientation:r="vertical",...a}){return(0,t.jsx)("div",{role:"group","data-slot":"field","data-orientation":r,className:(0,x.cn)(I({orientation:r}),e),...a})}function N({className:e,...r}){return(0,t.jsx)(E.Label,{"data-slot":"field-label",className:(0,x.cn)("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",e),...r})}function T({children:e,className:r,...a}){return(0,t.jsxs)("div",{"data-slot":"field-separator","data-content":!!e,className:(0,x.cn)("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",r),...a,children:[(0,t.jsx)(k,{className:"absolute inset-0 top-1/2"}),e&&(0,t.jsx)("span",{className:"relative mx-auto block w-fit bg-background px-2 text-muted-foreground","data-slot":"field-separator-content",children:e})]})}function P({className:e,children:a,errors:n,...i}){let l=(0,r.useMemo)(()=>{if(a)return a;if(!n?.length)return null;let e=[...new Map(n.map(e=>[e?.message,e])).values()];return e?.length==1?e[0]?.message:(0,t.jsx)("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:e.map((e,r)=>e?.message&&(0,t.jsx)("li",{children:e.message},r))})},[a,n]);return l?(0,t.jsx)("div",{role:"alert","data-slot":"field-error",className:(0,x.cn)("text-sm font-normal text-destructive",e),...i,children:l}):null}let O=r.forwardRef(function({title:e="GitHub",color:r="currentColor",size:a=24,...n},i){return"default"===r&&(r="#181717"),(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:a,height:a,fill:r,viewBox:"0 0 24 24",ref:i,...n,children:[(0,t.jsx)("title",{children:e}),(0,t.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})]})}),L=r.forwardRef(function({title:e="Google",color:r="currentColor",size:a=24,...n},i){return"default"===r&&(r="#4285F4"),(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:a,height:a,fill:r,viewBox:"0 0 24 24",ref:i,...n,children:[(0,t.jsx)("title",{children:e}),(0,t.jsx)("path",{d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"})]})});var D=e.i(898707),A=e.i(795379);e.i(954194);var F=e.i(824863),B=e.i(582168);let V="production"===(0,F.resolveMode)({nodeEnv:"production",hostname:window.location.hostname});function _({postLoginUrl:e}){let[a,l]=(0,r.useState)(""),[s,u]=(0,r.useState)(""),[d,c]=(0,r.useState)(!1),[f,p]=(0,r.useState)(""),[v,m]=(0,r.useState)("email"),[g,h]=(0,r.useState)(null);(0,r.useEffect)(()=>{if(null==g)return;let e=setTimeout(()=>{h(e=>null==e||e<=1?null:e-1)},1e3);return()=>clearTimeout(e)},[g]);let b={onError:e=>{if(429===e.response.status){let t=function(e){let t=e.get("X-Retry-After")??e.get("Retry-After");if(!t)return null;let r=Number.parseInt(t,10);return Number.isFinite(r)&&r>0?r:null}(e.response.headers);null!=t&&h(t)}}};async function x(e){if(e.preventDefault(),null==g){u(""),h(null),c(!0);try{let{error:e}=await n.authClient.emailOtp.sendVerificationOtp({email:a,type:"sign-in",fetchOptions:b});e?429!==e.status&&u(e.message??"Failed to send code"):m("code")}catch{u("Failed to send code")}c(!1)}}async function j(t){if(p(t),6===t.length){u(""),c(!0);try{let{error:r}=await n.authClient.signIn.emailOtp({email:a,otp:t});if(r)u(r.message??"Invalid code"),p("");else{window.location.href=e;return}}catch{u("Invalid code"),p("")}c(!1)}}async function E(t){t.preventDefault(),u(""),c(!0);let{error:r}=await n.signIn.email({email:a,password:B.DEV_PASSWORD},{onError:()=>{}});if(r){let{error:e}=await n.signUp.email({name:a.split("@")[0],email:a,password:B.DEV_PASSWORD},{onError:()=>{}});if(e){u(e.message??"Failed to sign in"),c(!1);return}}window.location.href=e}let S=null!=g,k=d?"Sending...":S?`Wait ${g}s`:"Send Code",I=V&&"code"===v?"Enter the code we sent you":V?"Enter your email — we’ll send you a verification code":void 0;return(0,t.jsxs)(R,{children:[(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 text-center",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold",children:"Sign in"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"or create an account to get started"}),I&&(0,t.jsx)("p",{className:"text-balance text-muted-foreground",children:I})]}),S&&(0,t.jsxs)(P,{children:["Too many requests. Try again in ",g,"s."]}),s&&!S&&(0,t.jsx)(P,{children:s}),V?"email"===v?(0,t.jsx)("form",{onSubmit:x,children:(0,t.jsxs)(R,{children:[(0,t.jsxs)(M,{children:[(0,t.jsx)(N,{htmlFor:"email",children:"Email"}),(0,t.jsx)(o.Input,{id:"email",type:"email",placeholder:"you@example.com",value:a,onChange:e=>l(e.target.value),required:!0,autoFocus:!0})]}),(0,t.jsx)(M,{children:(0,t.jsx)(i.Button,{type:"submit",disabled:d||S,className:"w-full",children:k})})]})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"text-sm text-muted-foreground text-center",children:["We sent a code to ",(0,t.jsx)("strong",{children:a})]}),(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)(y,{maxLength:6,value:f,onChange:j,disabled:d,autoFocus:!0,children:(0,t.jsxs)(C,{children:[(0,t.jsx)(w,{index:0}),(0,t.jsx)(w,{index:1}),(0,t.jsx)(w,{index:2}),(0,t.jsx)(w,{index:3}),(0,t.jsx)(w,{index:4}),(0,t.jsx)(w,{index:5})]})})}),(0,t.jsx)(i.Button,{variant:"ghost",className:"w-full",onClick:()=>{m("email"),p(""),u("")},children:"Use a different email"})]}):(0,t.jsx)("form",{onSubmit:E,children:(0,t.jsxs)(R,{children:[(0,t.jsxs)(M,{children:[(0,t.jsx)(N,{htmlFor:"email",children:"Email"}),(0,t.jsx)(o.Input,{id:"email",type:"email",placeholder:"you@example.com",value:a,onChange:e=>l(e.target.value),required:!0,autoFocus:!0})]}),(0,t.jsx)(M,{children:(0,t.jsx)(i.Button,{type:"submit",disabled:d,className:"w-full",children:d?"Signing in...":"Sign in"})})]})}),(0,t.jsx)(T,{className:"*:data-[slot=field-separator-content]:bg-card",children:"Or continue with"}),(0,t.jsxs)(M,{className:"grid grid-cols-2 gap-4",children:[(0,t.jsxs)(i.Button,{variant:"outline",type:"button",onClick:()=>n.signIn.social({provider:"github",callbackURL:e}),children:[(0,t.jsx)(O,{className:"size-4"}),"GitHub"]}),(0,t.jsxs)(i.Button,{variant:"outline",type:"button",onClick:()=>n.signIn.social({provider:"google",callbackURL:e}),children:[(0,t.jsx)(L,{className:"size-4"}),"Google"]})]})]})}e.s(["default",0,function(){var e;let r=(e=(0,a.useSearchParams)().get("redirect"))&&e.startsWith("/")&&!e.startsWith("//")?e:"/workspaces?auto";return(0,t.jsxs)("div",{className:"relative flex min-h-svh flex-col items-center justify-center p-6 md:p-10",children:[(0,t.jsx)(D.GradientBackground,{}),(0,t.jsx)("div",{className:"w-full max-w-sm md:max-w-4xl",children:(0,t.jsx)("div",{className:"flex flex-col gap-6",children:(0,t.jsx)(l.Card,{className:"overflow-hidden p-0",children:(0,t.jsxs)(l.CardContent,{className:"grid p-0 md:grid-cols-2",children:[(0,t.jsx)("div",{className:"p-6 md:p-8 md:min-h-105 flex flex-col justify-center",children:(0,t.jsx)(_,{postLoginUrl:r})}),(0,t.jsx)("div",{className:"hidden bg-muted md:flex items-center justify-center overflow-visible min-h-80 pt-24",children:(0,t.jsx)(A.TypewriterVisual,{className:"scale-[0.65] shrink-0",emails:A.EMAILS_PLAYFUL,blobScale:2.5,blobBottom:"30%"})})]})})})})]})}],45356)}]);
|