thursday-agent 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +2 -2
- package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/artifact/route.js +3 -3
- package/.next/server/app/api/artifact/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/files/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/route.js.nft.json +1 -1
- package/.next/server/app/api/file/[...path]/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/edit/route.js +1 -1
- package/.next/server/app/api/memory/edit/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/[source]/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/tool-call/route.js +1 -1
- package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/missing/route.js +2 -2
- package/.next/server/app/api/workspace/missing/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/route.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page/server-reference-manifest.json +1 -1
- package/.next/server/app/artifact/[...path]/page.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/page/server-reference-manifest.json +42 -42
- package/.next/server/app/page.js +5 -4
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0-06t3f._.js +8 -0
- package/.next/server/chunks/{[root-of-the-server]__049f521._.js → [root-of-the-server]__06l05n_._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0_ue8oe._.js +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0ye3da2._.js → [root-of-the-server]__0btqrct._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0c9fgca._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0zp35ul._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1kv8p3e._.js +1 -1
- package/.next/server/chunks/_02szwk8._.js +1 -1
- package/.next/server/chunks/_06c9kie._.js +24 -24
- package/.next/server/chunks/_0i55en5._.js +6 -6
- package/.next/server/chunks/_0p56fn0._.js +1 -1
- package/.next/server/chunks/_11ujpya._.js +1 -1
- package/.next/server/chunks/_1dbixxz._.js +1 -1
- package/.next/server/chunks/_1dc_d1q._.js +16 -16
- package/.next/server/chunks/_1gnjfli._.js +3 -0
- package/.next/server/chunks/_1klbcft._.js +1 -1
- package/.next/server/chunks/features_0-cnt0l._.js +1 -1
- package/.next/server/chunks/features_0hdaci0._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0-e011f._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0pd8yr7._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1nygfik._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1sdphb0._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__1fll8dc._.js → [root-of-the-server]__1vdmfbe._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__1waa3rc._.js +34 -49
- package/.next/server/chunks/ssr/{_1anqots._.js → _0-2qsxo._.js} +2 -2
- package/.next/server/chunks/ssr/_02oc_h5._.js +9 -9
- package/.next/server/chunks/ssr/_05yghx6._.js +1 -1
- package/.next/server/chunks/ssr/_07nbwap._.js +3 -0
- package/.next/server/chunks/ssr/_08c4z-9._.js +1 -1
- package/.next/server/chunks/ssr/_0_qfdlw._.js +1 -1
- package/.next/server/chunks/ssr/_0b6_jv-._.js +3 -0
- package/.next/server/chunks/ssr/_0hxt2ul._.js +1 -1
- package/.next/server/chunks/ssr/_0i_6q1w._.js +1 -1
- package/.next/server/chunks/ssr/{_18xqmny._.js → _0no7i1o._.js} +2 -2
- package/.next/server/chunks/ssr/_0tzg--b._.js +3 -0
- package/.next/server/chunks/ssr/{_1ztk7p6._.js → _114ylv7._.js} +3 -3
- package/.next/server/chunks/ssr/{_1k0spz7._.js → _12c-iwh._.js} +2 -2
- package/.next/server/chunks/ssr/_12w42gi._.js +1 -1
- package/.next/server/chunks/ssr/{_0eaog6_._.js → _167hchk._.js} +2 -2
- package/.next/server/chunks/ssr/{_1x9pskj._.js → _1_x5spz._.js} +3 -3
- package/.next/server/chunks/ssr/{_0dr-ddg._.js → _1a61fc9._.js} +2 -2
- package/.next/server/chunks/ssr/_1jmz33w._.js +1 -1
- package/.next/server/chunks/ssr/{_1y6b5mr._.js → _1w_t7h7._.js} +2 -2
- package/.next/server/chunks/ssr/{_0dh2e1j._.js → _1wyfaq_._.js} +7 -7
- package/.next/server/chunks/ssr/{[root-of-the-server]__0bxsfyn._.js → _200gt-m._.js} +4 -3
- package/.next/server/chunks/ssr/features_config_components_config-setting_tsx_0xfwqdg._.js +1 -1
- package/.next/server/chunks/ssr/features_connectors_components_mcp-setting_tsx_0jmbgvp._.js +1 -1
- package/.next/server/chunks/ssr/{_0c9e5w6._.js → features_workspace_00jz2hu._.js} +3 -4
- package/.next/server/chunks/ssr/{node_modules_0746rzi._.js → node_modules_02ai7br._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0vsxbzp._.js → node_modules_02deexj._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1g1eihe._.js → node_modules_07za262._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0332gw4._.js → node_modules_0_s9get._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1gpednh._.js → node_modules_0n3c7h0._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0t-9nup._.js → node_modules_0od6jwr._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0mxvg8h._.js → node_modules_0rdt7pk._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0vv0-fg._.js → node_modules_0w1z7kz._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1d53yiq._.js → node_modules_0wdupfz._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1u6w1pb._.js → node_modules_1720w0a._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1gu1pph._.js → node_modules_18lsg7d._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1he1w8_._.js → node_modules_1b94fxf._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0qbfyjh._.js → node_modules_1ecdo1s._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0qapgjr._.js → node_modules_1fa9ag7._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0d5uzof._.js → node_modules_1fv-_si._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1lnjapm._.js → node_modules_1hf461g._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1-urho9._.js → node_modules_1m71ta-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1lynj9m._.js → node_modules_1n93n-g._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0fr-ml8._.js → node_modules_1n9lqu9._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_04vxchl._.js → node_modules_1npnsvd._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0exkwcm._.js → node_modules_1rn2r0n._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_022sipm._.js → node_modules_1vq-mfk._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_00_51_v._.js → node_modules_1vzyw1t._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0wsvp00._.js → node_modules_1w359w4._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1xn6saw._.js → node_modules_1yajbl6._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_16pi_dd._.js → node_modules_20eqhy8._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_067_exa._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_019sbis._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0nrrdaq._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0s6piq3._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@vercel_oidc_dist_21a5haa._.js → node_modules_@vercel_oidc_dist_05itbb1._.js} +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +43 -43
- package/.next/static/chunks/{0dr16v67vj4n7.js → 07vqbk_9t4em4.js} +2 -2
- package/.next/static/chunks/{2nvepds1fu2ux.js → 08krja1zx7nqg.js} +1 -1
- package/.next/static/chunks/{42wcg3wfg_m_p.js → 0qcuwdk132jjt.js} +1 -1
- package/.next/static/chunks/{2_pnccjp6j1ca.js → 0z69gvysmave7.js} +1 -1
- package/.next/static/chunks/12fvz1w5ows75.js +1 -0
- package/.next/static/chunks/14t03ned286iu.js +1 -0
- package/.next/static/chunks/{2jlz8zp4jax_m.js → 156xxbkrz5lzu.js} +1 -1
- package/.next/static/chunks/1fz14reod4lft.js +1 -0
- package/.next/static/chunks/{0joan-69kbspd.js → 1g23dbabl-vkr.js} +1 -1
- package/.next/static/chunks/{18mkhstgiqcbt.js → 1qy_rc3oxfxok.js} +1 -1
- package/.next/static/chunks/1zea7qdl-7365.js +1 -0
- package/.next/static/chunks/1zvqumkg7kmo0.css +1 -0
- package/.next/static/chunks/26hpqt3y6bogl.js +12 -0
- package/.next/static/chunks/{3zk6q3-3f9swq.js → 2_j5mqm6d-z18.js} +1 -1
- package/.next/static/chunks/{1vj_5bnbxx84e.js → 2dt6tu7a22svs.js} +1 -1
- package/.next/static/chunks/2h5ls3d86kya6.js +1 -0
- package/.next/static/chunks/2wc6y1ht6dfuy.js +1 -0
- package/.next/static/chunks/{1i-u2wzub_to1.js → 2xr0zpll7thyi.js} +6 -6
- package/.next/static/chunks/{26ql4y-43xwhp.js → 31jztc-yq30m7.js} +1 -1
- package/.next/static/chunks/391af0i8eljzk.js +1 -0
- package/.next/static/chunks/{1kp5nfp06nj9h.js → 3p2s2cjokx1aa.js} +2 -2
- package/.next/static/chunks/{1wlo979mx-y3w.js → 41s3fml5oivsa.js} +1 -1
- package/README.md +60 -19
- package/docs/how-it-works.md +2 -0
- package/docs/live-calls.md +38 -33
- package/features/ai/load-tools.ts +4 -2
- package/features/ai/prompts/bot.prompt.ts +5 -5
- package/features/ai/prompts/live.prompt.ts +36 -132
- package/features/ai/prompts/prompt-helper.ts +5 -4
- package/features/ai/prompts/thursday.prompt.ts +75 -54
- package/features/ai/tools/call.tool.ts +32 -4
- package/features/ai/tools/tool-name.ts +1 -0
- package/features/bot/bot.runner.ts +5 -5
- package/features/thursday/ascii.const.ts +74 -0
- package/features/thursday/components/ascii-orb.tsx +173 -30
- package/features/thursday/components/face.tsx +6 -1
- package/features/thursday/components/side-captions.tsx +273 -0
- package/features/thursday/components/tab-state.tsx +11 -3
- package/features/thursday/components/thursday-setting.tsx +6 -5
- package/features/thursday/components/thursday.tsx +227 -251
- package/features/thursday/face.store.ts +5 -0
- package/features/thursday/thursday.action.ts +4 -6
- package/features/thursday/thursday.schema.ts +10 -5
- package/features/thursday/thursday.store.ts +3 -0
- package/features/thursday/use-thursday.ts +461 -392
- package/features/workspace/file-kind.ts +9 -0
- package/hooks/use-hotkey.ts +3 -2
- package/lib/live/live.schema.ts +0 -21
- package/lib/live/live.server.ts +1 -3
- package/package.json +1 -1
- package/scripts/artifact-paths.test.mts +13 -0
- package/scripts/live-session.test.mts +56 -66
- package/.next/server/chunks/[root-of-the-server]__0g-ueei._.js +0 -8
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1kipdeo._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__172cq4x._.js +0 -3
- package/.next/server/chunks/ssr/_03_928f._.js +0 -3
- package/.next/server/chunks/ssr/_0g_rlog._.js +0 -3
- package/.next/server/chunks/ssr/_123ttsf._.js +0 -3
- package/.next/static/chunks/10k2xvap03z20.css +0 -1
- package/.next/static/chunks/1t9qms5pwwa3n.js +0 -1
- package/.next/static/chunks/2a51-ywz9b2a3.js +0 -1
- package/.next/static/chunks/2fvdgxih7x7hr.js +0 -1
- package/.next/static/chunks/3addj3i4-izma.js +0 -1
- package/.next/static/chunks/3gfh7nxwusbt0.js +0 -1
- package/.next/static/chunks/3gwa44cvz4qoi.js +0 -1
- package/.next/static/chunks/3zkg5iup3v4a2.js +0 -12
- package/.next/static/chunks/405m0bqtoihev.js +0 -1
- /package/.next/static/{0qzGoKn2wTERVZtblX1tp → yyRVBc0xxYQsh3GpbQX9b}/_buildManifest.js +0 -0
- /package/.next/static/{0qzGoKn2wTERVZtblX1tp → yyRVBc0xxYQsh3GpbQX9b}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{0qzGoKn2wTERVZtblX1tp → yyRVBc0xxYQsh3GpbQX9b}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,41533,e=>{"use strict";var t=e.i(247167);t.default.env.THURSDAY_APP_DIR?.trim()||t.default.cwd(),t.default.env.THURSDAY_HOME?.trim()||t.default.cwd(),t.default.env.THURSDAY_URL?.trim()||t.default.env.PORT?.trim();let r=".ai-workspace",n={workspace:r,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",skills:{default:"skills",custom:`${r}/.agents/skills`}};e.s(["APP_NAME",0,"Thursday","ARTIFACT_VIEW",0,{rows:200,setFiles:120},"ASCII_FACE",0,{charset:"emojiOnly",fontSize:{default:8,min:4,max:16},density:{default:1.4,min:.6,max:2}},"BOT_RUN",0,{steps:100,compactAt:5e5,compactHeadroom:.8,summaryWords:{min:600,max:3e3,perTokens:200},participants:12,concurrent:4,turns:120,queuedMessages:200,silenceMs:3e5,overflowShrink:.6,retryMs:1e4,compactFiles:40},"BROWSER_SKILL",0,"browser","CALL_END",0,{quietMs:600,unsaidMs:2e3,maxMs:8e3},"CALL_HISTORY_PAGE",0,10,"CALL_IDLE",0,{hangUpMs:3e4,graceMs:15e3,warnMs:1e4,agentSilentMs:3e4},"CALL_RELAY",0,{quietMs:7e3,perTurn:3,readMs:15e3},"IS_DEV",0,!1,"LIVE_CALL",0,{startupMs:3e4,closeMs:15e3,transcriptGapMs:1500,transcriptSaveMs:500,appendMs:15e3,backendOutputTokens:4096,reasoningCheckMs:5e3},"PAGE_SIZE",0,50,"PATHS",0,n,"PROMPT_CROWDED",0,{bots:10,skills:20},"ROOM_KEEP_READ_MS",0,6e5,"STUDIO_SERVER",0,"studio","WORKSPACE_VIEW",0,{rows:200,textMax:524288,elementMax:0x3200000}])},149666,981203,413168,e=>{"use strict";var t=e.i(681307);let r={name:{max:16},shortDescription:{max:60},description:{max:100},prompt:{max:4e3}};e.s(["COMMON_VALIDATE",0,r],981203);let n="gpt-5.6-luna",a=t.z.object({start:t.z.number().nonnegative(),end:t.z.number().nonnegative(),text:t.z.string()});t.z.object({reason:t.z.string().max(128),seconds:t.z.number().nonnegative().nullable()}),e.s(["LIVE_BACKEND_MODEL",0,n,"LIVE_MODEL",0,"gpt-live-1","LiveFragmentSchema",0,a],413168);var l=e.i(265402);let i={id:"openai",label:"OpenAI",apiKeyName:l.TEXT_MODEL_PROVIDERS.openai.apiKeyName},o=l.TEXT_MODEL_PROVIDERS.openai.suggestModels,s=["none","minimal","low","medium","high","xhigh"],u=t.z.string().max(r.prompt.max).default(""),c=t.z.object({voice:t.z.string().trim().min(1).max(128).default("marin"),voicePrompt:u,backendModel:t.z.string().trim().min(1).max(128).default(n),backendPrompt:u,reasoningEffort:t.z.enum(s).nullable().default("low"),webSearch:t.z.boolean().default(!1)}),d=c.parse({});e.s(["LIVE_BACKEND_MODELS",0,o,"LIVE_DEFAULTS",0,d,"LIVE_PROVIDER",0,i,"LIVE_REASONING",0,s,"LIVE_VOICES",0,["marin","cedar","gleam","meridian","quartz","ripple","vesper","willow","stone","bossa","tempo","beacon","delta","cinder","alloy","ash","ballad","coral","echo","sage","shimmer","verse"],"LIVE_VOICE_NOTE",0,{gleam:"North American · feminine",meridian:"North American · masculine",quartz:"Australian · feminine",ripple:"Australian · masculine",vesper:"British · masculine",willow:"Irish · feminine",stone:"Irish · masculine",bossa:"Portuguese · feminine",tempo:"Portuguese · masculine",beacon:"Filipino · masculine",delta:"Southern U.S. · feminine",cinder:"Southern U.S. · masculine"},"LiveSettingsSchema",0,c,"migrateLiveSettings",0,function(e){let r=e&&"object"==typeof e?e:{},{model:n,systemPrompt:a,...l}=r,i=t.z.object({provider:t.z.string(),voice:t.z.string().nullish(),backendModel:t.z.string().nullish()}).safeParse(n),o=i.success&&"openai"===i.data.provider?i.data:null,s={voice:r.voice??o?.voice,voicePrompt:r.voicePrompt??a,backendModel:r.backendModel??o?.backendModel,backendPrompt:r.backendPrompt??a,reasoningEffort:r.reasoningEffort,webSearch:r.webSearch},u=Object.fromEntries(Object.keys(s).map(e=>{let t=c.shape[e].safeParse(s[e]);return[e,t.success?t.data:d[e]]}));return{...l,...u}},"voiceSamplePath",0,e=>`/voices/${e}.ogg`],149666)},265402,e=>{"use strict";var t=e.i(681307),r=e.i(41533);let n=t.z.enum(["openai","chatgpt","anthropic","google","xai","vercel-ai-gateway"]),a=t.z.object({provider:n,model:t.z.string().trim().min(1,"Model name is required").max(80)}),l=t.z.enum(["openai","google","xai","vercel-ai-gateway"]),i=t.z.object({provider:l,model:t.z.string().trim().min(1,"Model name is required").max(120)}),o={openai:{label:"Open AI",apiKeyName:"OPENAI_API_KEY",models:{image:[{id:"gpt-image-1-mini",label:"GPT Image 1 mini",tier:"small"},{id:"gpt-image-2.5-flare",label:"GPT Image 2.5 Flare",tier:"mid"},{id:"gpt-image-2.5-sunburst",label:"GPT Image 2.5 Sunburst",tier:"large"}],video:[],speech:[{id:"tts-1",label:"TTS 1",tier:"small"},{id:"gpt-4o-mini-tts",label:"4o mini TTS",tier:"mid"},{id:"tts-1-hd",label:"TTS 1 HD",tier:"large"}],transcription:[{id:"gpt-4o-mini-transcribe",label:"4o mini Transcribe",tier:"small"},{id:"gpt-transcribe",label:"GPT Transcribe",tier:"mid"}]}},google:{label:"Gemini",apiKeyName:"GOOGLE_GENERATIVE_AI_API_KEY",models:{image:[{id:"gemini-3.1-flash-lite-image",label:"3.1 Flash Lite Image",tier:"small"},{id:"gemini-3.1-flash-image",label:"3.1 Flash Image",tier:"mid"},{id:"gemini-3-pro-image",label:"3 Pro Image",tier:"large"}],video:[{id:"veo-3.1-lite-generate-preview",label:"Veo 3.1 Lite",tier:"small"},{id:"veo-3.1-fast-generate-preview",label:"Veo 3.1 Fast",tier:"mid"},{id:"veo-3.1-generate-preview",label:"Veo 3.1",tier:"large"}],speech:[{id:"gemini-2.5-flash-preview-tts",label:"2.5 Flash TTS",tier:"small"},{id:"gemini-3.1-flash-tts-preview",label:"3.1 Flash TTS",tier:"mid"},{id:"gemini-2.5-pro-preview-tts",label:"2.5 Pro TTS",tier:"large"}],transcription:[{id:"gemini-3.5-transcribe",label:"3.5 Transcribe",tier:"mid"}]}},xai:{label:"xAI",apiKeyName:"XAI_API_KEY",models:{image:[{id:"grok-imagine-image",label:"Grok Imagine",tier:"small"},{id:"grok-imagine-image-2.0",label:"Grok Imagine 2.0",tier:"mid"}],video:[{id:"grok-imagine-video",label:"Grok Imagine Video",tier:"small"},{id:"grok-imagine-video-1.5",label:"Grok Imagine Video 1.5",tier:"mid"}],speech:[{id:"grok-tts",label:"Grok TTS",tier:"mid"}],transcription:[{id:"grok-stt",label:"Grok STT",tier:"mid"}]}},"vercel-ai-gateway":{label:"Vercel AI GateWay",apiKeyName:"AI_GATEWAY_API_KEY",models:{image:[{id:"bytedance/seedream-5.0-lite",label:"Seedream 5.0 Lite",tier:"small"},{id:"bfl/flux-2-klein-9b",label:"FLUX 2 Klein 9B",tier:"small"},{id:"spacexai/grok-imagine-image-2.0",label:"Grok Imagine 2.0",tier:"small"},{id:"bfl/flux-2-pro",label:"FLUX 2 Pro",tier:"mid"},{id:"bytedance/seedream-5.0-pro",label:"Seedream 5.0 Pro",tier:"mid"},{id:"recraft/recraft-v4.1",label:"Recraft V4.1",tier:"mid"},{id:"openai/gpt-image-2.5-sunburst",label:"GPT Image 2.5 Sunburst",tier:"large"}],video:[{id:"bytedance/seedance-2.0-mini",label:"Seedance 2.0 Mini",tier:"small"},{id:"google/veo-3.1-lite-generate-001",label:"Veo 3.1 Lite",tier:"small"},{id:"alibaba/wan-v2.6-t2v",label:"Wan 2.6",tier:"small"},{id:"google/veo-3.1-fast-generate-001",label:"Veo 3.1 Fast",tier:"mid"},{id:"bytedance/seedance-2.5",label:"Seedance 2.5",tier:"mid"},{id:"spacexai/grok-imagine-video-1.5",label:"Grok Imagine Video 1.5",tier:"mid"},{id:"klingai/kling-v3.0-t2v",label:"Kling 3.0",tier:"large"},{id:"google/veo-3.1-generate-001",label:"Veo 3.1",tier:"large"}],speech:[{id:"fish-audio/s1",label:"Fish Audio S1",tier:"small"},{id:"openai/tts-1",label:"OpenAI TTS 1",tier:"small"},{id:"spacexai/grok-tts",label:"Grok TTS",tier:"mid"},{id:"fish-audio/s2.1-pro",label:"Fish Audio S2.1 Pro",tier:"mid"},{id:"openai/tts-1-hd",label:"OpenAI TTS 1 HD",tier:"large"}],transcription:[{id:"spacexai/grok-stt",label:"Grok STT",tier:"small"},{id:"fish-audio/transcribe-1",label:"Fish Transcribe 1",tier:"small"},{id:"openai/gpt-4o-mini-transcribe",label:"4o mini Transcribe",tier:"small"},{id:"openai/gpt-4o-transcribe",label:"4o Transcribe",tier:"mid"},{id:"google/gemini-3.5-transcribe",label:"Gemini 3.5 Transcribe",tier:"mid"}]}}},s=Object.keys(o).map(e=>({id:e,...o[e]})),u={openai:{label:"Open AI",apiKeyName:"OPENAI_API_KEY",suggestModels:[{id:"gpt-5.6-luna",label:"5.6 Luna",tier:"small",context:105e4},{id:"gpt-5.6-terra",label:"5.6 Terra",tier:"mid",context:105e4},{id:"gpt-5.6-sol",label:"5.6 Sol",tier:"large",context:105e4},{id:"gpt-6-astra",label:"6 Astra",tier:"large",context:105e4}]},chatgpt:{label:"GPT Subscription",apiKeyName:"CHATGPT_SIGN_IN",signIn:!0,suggestModels:[{id:"gpt-5.6-luna",label:"5.6 Luna",tier:"small",context:272e3},{id:"gpt-5.6-terra",label:"5.6 Terra",tier:"mid",context:272e3},{id:"gpt-5.6-sol",label:"5.6 Sol",tier:"large",context:272e3},{id:"gpt-6-astra",label:"6 Astra",tier:"large",context:272e3}]},anthropic:{label:"Claude",apiKeyName:"ANTHROPIC_API_KEY",suggestModels:[{id:"claude-haiku-4-5",label:"Haiku 4.5",tier:"small"},{id:"claude-sonnet-5",label:"Sonnet 5",tier:"mid",context:1e6},{id:"claude-opus-5",label:"Opus 5",tier:"large",context:1e6},{id:"claude-fable-5-1",label:"Fable 5.1",tier:"large"}]},google:{label:"Gemini",apiKeyName:"GOOGLE_GENERATIVE_AI_API_KEY",suggestModels:[{id:"gemini-3.5-flash-lite",label:"3.5 Flash Lite",tier:"small",context:1e6},{id:"gemini-3.8-flash",label:"3.8 Flash",tier:"mid",context:1e6}]},xai:{label:"xAI",apiKeyName:"XAI_API_KEY",suggestModels:[{id:"grok-4.6",label:"Grok 4.6",tier:"large",context:5e5}]},"vercel-ai-gateway":{label:"Vercel AI GateWay",apiKeyName:"AI_GATEWAY_API_KEY",suggestModels:[{id:"zai/glm-5.3-flash",label:"GLM 5.3 Flash",tier:"small"},{id:"google/gemini-3.8-flash",label:"Gemini 3.8 Flash",tier:"small"},{id:"openai/gpt-5.6-luna",label:"GPT 5.6 Luna",tier:"small",context:105e4},{id:"zai/glm-5.3",label:"GLM 5.3",tier:"mid"},{id:"spacexai/grok-4.6",label:"Grok 4.6",tier:"mid",context:5e5},{id:"anthropic/claude-sonnet-5",label:"Claude Sonnet 5",tier:"mid"},{id:"openai/gpt-5.6-terra",label:"GPT 5.6 Terra",tier:"mid",context:105e4},{id:"moonshotai/kimi-k3",label:"Kimi K3",tier:"mid"},{id:"openai/gpt-5.6-sol",label:"GPT 5.6 Sol",tier:"large",context:105e4},{id:"anthropic/claude-opus-5",label:"Claude Opus 5",tier:"large",context:1e6},{id:"openai/gpt-6-astra",label:"GPT 6 Astra",tier:"large",context:105e4}]}},c=Object.keys(u).map(e=>({id:e,...u[e]}));e.s(["GATEWAY_TEXT",0,"language","GATEWAY_TOOL_USE",0,"tool-use","MEDIA_MODEL_PROVIDERS",0,o,"MEDIA_MODEL_PROVIDER_LIST",0,s,"TEXT_MODEL_PROVIDERS",0,u,"TEXT_MODEL_PROVIDER_LIST",0,c,"canMakeKind",0,(e,t)=>(o[e]?.models[t]?.length??0)>0,"compactAtFor",0,e=>e&&e>0?Math.round(e*r.BOT_RUN.compactHeadroom):r.BOT_RUN.compactAt,"contextWindowOf",0,function(e,t,r=[]){if("vercel-ai-gateway"===e)return r.find(e=>e.id===t)?.contextWindow??null;let n=u[e].suggestModels;return n.find(e=>e.id===t)?.context??null},"parseMediaModel",0,function(e){let[t,...r]=(e??"").trim().split("/"),n=i.safeParse({provider:t,model:r.join("/")});return n.success?n.data:null},"parseTextModel",0,function(e){let[t,...r]=(e??"").trim().split("/"),n=a.safeParse({provider:t,model:r.join("/")});return n.success?n.data:null},"textModelProviderSchema",0,n])},635963,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(218080),a=e.i(864723);let l=2*Math.PI,i="-18 -18 276 276",o=e=>Math.round(100*e)/100,s=(e,t,r)=>Math.min(r,Math.max(t,e));function u(e){let t=e>>>0;return()=>{let e=Math.imul((t=t+0x6d2b79f5>>>0)^t>>>15,1|t);return(((e=e+Math.imul(e^e>>>7,61|e)^e)^e>>>14)>>>0)/0x100000000}}function c(e,t){return[e[0]-t[0],e[1]-t[1]]}function d(e){let t=Math.hypot(e[0],e[1])||1;return[e[0]/t,e[1]/t]}function f(e){let t=e.map((e,t)=>{let r=t/128*l;return[120+Math.cos(r)*e,120+Math.sin(r)*e]}),r=`M${o(t[0][0])} ${o(t[0][1])}`;for(let e=0;e<128;e++){let n=t[(e-1+128)%128],a=t[e],l=t[(e+1)%128],i=t[(e+2)%128],s=a[0]+(l[0]-n[0])/6,u=a[1]+(l[1]-n[1])/6,c=l[0]-(i[0]-a[0])/6,d=l[1]-(i[1]-a[1])/6;r+=`C${o(s)} ${o(u)} ${o(c)} ${o(d)} ${o(l[0])} ${o(l[1])}`}return`${r}Z`}function m(e){let t=e.tilt*Math.PI/180,r=Math.cos(t),n=Math.sin(t),a=(t,a)=>[e.cx+t*r-a*n,e.cy+t*n+a*r],l=-e.len/2,i=e.len/2,s=[],u=[];for(let t=0;t<=30;t++){let r=t/30,n=1-r,o=n*n*l+r*r*i,c=-(2*n*r*e.bend),d=-(2*n*l)+2*r*i,f=-(2*n*e.bend)+2*r*e.bend,m=Math.hypot(d,f)||1,h=-f/m,g=d/m,p=e.width/2*Math.sin(Math.PI*r)**e.taper;s.push(a(o+h*p,c+g*p)),u.push(a(o-h*p,c-g*p))}let c=`M${o(s[0][0])} ${o(s[0][1])}`;for(let e=1;e<=30;e++)c+=`L${o(s[e][0])} ${o(s[e][1])}`;for(let e=29;e>=0;e--)c+=`L${o(u[e][0])} ${o(u[e][1])}`;return`${c}Z`}let h={shape:"blob",sides:3,corner:.74,rotation:0,squircle:4.6,wobble:.2,seed:113,autofit:!0,color:"currentColor",fill:!0,strokeWidth:14,eyeLen:51,eyeWidth:38,eyeBend:-1,eyeTaper:.35,eyeTilt:-90,eyeSkew:0,eyeGap:88,eyeY:100,gazeRange:7,follow:!0,ripple:9,pulse:7,punch:.05,bandEase:.019,bobRate:1,stretch:15,idle:!0,liveliness:55,float:7,breathe:3.7,speed:1.7,blink:!0,notify:!1,notifyAngle:41,notifyDist:109,notifyR:25,notifyRing:11};function g(e,t,r=.035){let n=u(12139^t),a=[2,3,5].map(e=>({k:e,a:(2*n()-1)/e,p:n()*l})),i=e.map((e,t)=>{let r=t/128*l,n=0;for(let e of a)n+=e.a*Math.sin(e.k*r+e.p);return n}),o=Math.max(...i.map(Math.abs))||1;return e.map((e,t)=>e*(1+r*i[t]/o))}let p=new Map;function b(e,t,r){var n,a,i;let o=`${"poly"===t?`poly|${e.sides}|${e.corner}|${e.rotation}|${r}`:"squircle"===t?`squircle|${e.squircle}|${r}`:"heart"===t?`heart|${r}`:`blob|${e.wobble}|${r}`}|${e.autofit}`,f=p.get(o);if(f)return f;let m=function(e){let t=Array(128);for(let r=0;r<128;r++){let n=r/128*l,a=Math.cos(n),i=Math.sin(n),o=0;for(let t=0;t<e.length;t++){let r=e[t],n=e[(t+1)%e.length],l=n[0]-r[0],s=n[1]-r[1],u=a*s-i*l;if(1e-9>Math.abs(u))continue;let c=r[0]-120,d=r[1]-120,f=(c*s-d*l)/u,m=(c*i-d*a)/u;f>o&&m>=-1e-9&&m<=1+1e-9&&(o=f)}t[r]=o||112}return t}((n=e,a=t,i=r,"squircle"===a?function(e){let t=[],r=2/e;for(let e=0;e<360;e++){let n=e/360*l,a=Math.cos(n),i=Math.sin(n);t.push([120+Math.sign(a)*Math.abs(a)**r*112,120+Math.sign(i)*Math.abs(i)**r*112])}return t}(n.squircle):"poly"===a?function(e,t,r){let n=r*Math.PI/180-Math.PI/2,a=[];for(let t=0;t<e;t++){let r=n+t/e*l;a.push([120+112*Math.cos(r),120+112*Math.sin(r)])}let i=(Math.PI-l/e)/2,o=224*Math.sin(Math.PI/e)/2*Math.tan(i)*s(t,.001,1),u=o/Math.tan(i),f=[];for(let t=0;t<e;t++){let r=a[t],n=a[(t-1+e)%e],s=a[(t+1)%e],m=d(c(n,r)),h=d(c(s,r)),g=[r[0]+m[0]*u,r[1]+m[1]*u],p=d([m[0]+h[0],m[1]+h[1]]),b=[r[0]+p[0]*o/Math.sin(i),r[1]+p[1]*o/Math.sin(i)],y=Math.atan2(g[1]-b[1],g[0]-b[0]),M=[r[0]+h[0]*u,r[1]+h[1]*u],v=Math.atan2(M[1]-b[1],M[0]-b[0])-y;for(;v>Math.PI;)v-=l;for(;v<-Math.PI;)v+=l;for(let e=0;e<=20;e++){let t=y+e/20*v;f.push([b[0]+Math.cos(t)*o,b[1]+Math.sin(t)*o])}}return f}(n.sides,n.corner,n.rotation):"heart"===a?function(){let e=[];for(let t=0;t<400;t++){let r=t/400*l,n=16*Math.sin(r)**3,a=13*Math.cos(r)-5*Math.cos(2*r)-2*Math.cos(3*r)-Math.cos(4*r);e.push([120+6.6*n,120-(a+2.2)*7.26])}return e}():function(e,t){let r=u(e),n=[1,2,3,4,5].map(e=>({k:e,a:(2*r()-1)/e,p:r()*l})),a=[],i=0;for(let e=0;e<360;e++){let t=e/360*l,r=0;for(let e of n)r+=e.a*Math.sin(e.k*t+e.p);a.push(r),i=Math.max(i,Math.abs(r))}let o=i>0?t/i:0;return a.map((e,t)=>{let r=t/360*l,n=112*(1+e*o);return[120+Math.cos(r)*n,120+Math.sin(r)*n]})}(i,n.wobble))),h="blob"===t?m:"heart"===t?function(e,t){let r=e;for(let e=0;e<2;e++){let e=r;r=e.map((t,r)=>{let n=0;for(let t=-3;t<=3;t++)n+=e[(r+t+128)%128];return n/7})}let n=r.reduce((e,t)=>e+t,0)/128,a=g(r.map(e=>.95*e+.05*n),t,.05),l=Math.round((2*u(20977^t)()-1)*3);return l?a.map((e,t)=>a[(t-l+256)%128]):a}(m,r):g(m,r),b=e.autofit?function(e){let t=l/128,r=0,n=0;for(let a of e)r+=.5*a*a*t,a>n&&(n=a);if(r<=0)return e;let a=Math.min(Math.sqrt(112*Math.PI*112/r),130/n);return e.map(e=>e*a)}(h):h;return p.size>400&&p.clear(),p.set(o,b),b}let y=e=>345*(.7+.3*e),M=[{cx:42,sway:40,period:5},{cx:134,sway:-35,period:6.5},{cx:209,sway:29,period:4.5}],v={eyeLen:1,eyeWid:1,eyeX:0,eyeY:0,bodyX:0,bodyY:0,rot:0,scale:1,blinkIn:0},x=e=>e*e*(3-2*e),k=e=>Math.sin(Math.PI*e);function E(e,t,r){return e<=0||e>=1?0:e<t?x(e/t):e>1-r?x((1-e)/r):1}let A={glance:{weight:26,dur:[900,1400],play:(e,t,r)=>{let n=E(e,.12,.34);return{eyeX:22*t*n,eyeY:22*r*n,rot:.9*t*n,blinkIn:40*!!(e<.02&&.4>Math.random())}}},lookAway:{weight:12,dur:[1800,2600],play:(e,t,r)=>{let n=E(e,.1,.46);return{eyeX:30*t*n,eyeY:(.5*r+.35)*22*n,rot:1.6*t*n}}},widen:{weight:8,dur:[700,950],play:(e,t)=>{let r=E(e,.22,.5);return{eyeLen:1+.16*r,eyeWid:1+.2*r,rot:-(.5*t)*r}}},squint:{weight:8,dur:[800,1050],play:e=>{let t=E(e,.25,.45);return{eyeLen:1-.3*t,eyeWid:1-.12*t}}},double:{weight:7,dur:[420,420],play:e=>({blinkIn:+(e<.02)})},nod:{weight:11,dur:[1150,1400],play:e=>({bodyY:10*Math.sin(2*l*e)*k(e),rot:2.2*Math.sin(2*l*e+.5)*k(e),eyeY:3.2*Math.sin(2*l*e-.7)*k(e)})},sink:{weight:7,dur:[1800,2300],play:e=>{let t=k(e)**.7;return{eyeLen:1-.26*t,eyeY:4*t,bodyY:8*t,scale:1-.03*t,rot:1.8*t}}},wave:{weight:7,dur:[1300,1700],play:(e,t)=>{let r=E(e,.24,.34);return{bodyX:t*Math.sin(1.5*l*e)*9*r,rot:t*Math.sin(1.5*l*e+.5)*4.5*r,eyeX:t*Math.sin(1.5*l*e)*5*r,eyeLen:1-.2*r}}},reach:{weight:7,dur:[1800,2300],play:e=>{let t=E(e,.28,.34);return{scale:1+.045*t,bodyY:-4*t,eyeLen:1-.28*t,eyeY:3*t,rot:1.8*t}}},tilt:{weight:11,dur:[1500,1900],play:(e,t)=>{let r=E(e,.22,.4);return{rot:9*t*r,bodyX:-3*t*r,eyeY:-1.5*r}}},sweep:{weight:9,dur:[1600,2200],play:(e,t,r)=>{let n=E(e,.12,.18),a=Math.cos(Math.PI*s((e-.15)/.7,0,1));return{eyeX:24*t*n*a,eyeY:24*r*n*a,rot:1.2*t*n*a}}},roll:{weight:5,dur:[900,1200],play:(e,t)=>{let r=k(e)**.5,n=l*e*(t>=0?1:-1);return{eyeX:20*Math.cos(n)*r,eyeY:14*Math.sin(n)*r,rot:1.5*Math.sin(n)*r,blinkIn:+(e>.9&&e<.93)}}},shake:{weight:8,dur:[650,900],play:(e,t)=>{let r=k(e),n=Math.sin(2*l*e);return{rot:t*n*5*r,bodyX:t*n*4*r,eyeX:-t*n*4*r}}},bounce:{weight:6,dur:[850,1100],play:e=>{let t=1-.45*e,r=Math.abs(Math.sin(l*e))*t;return{bodyY:-14*r,eyeY:2.5*r,scale:1-Math.max(0,-Math.cos(l*e))*t*.04}}},slowBlink:{weight:6,dur:[900,1200],play:e=>({eyeWid:1-.88*k(e)**.6,eyeY:1.5*k(e)})},perk:{weight:5,dur:[700,950],play:(e,t)=>{let r=E(e,.09,.62);return{bodyY:-7*r,scale:1+.035*r,eyeLen:1+.14*r,eyeWid:1+.1*r,rot:.8*t*r}}}},R=Object.keys(A),S={idle:{},connecting:{nod:0,wave:0,bounce:0,sweep:1.6,roll:1.4},listening:{glance:.3,lookAway:.15,sweep:.2,roll:0,wave:0,shake:0,bounce:0,sink:.3,widen:2.2,perk:1.8,nod:1.6,slowBlink:1.4},thinking:{lookAway:2.2,squint:2,tilt:1.8,roll:2,sweep:1.4,sink:1.6,glance:.8,slowBlink:1.2,nod:.3,wave:0,bounce:.2,perk:.5},delegating:{wave:2.6,nod:1.8,perk:1.6,glance:1.4,tilt:1.2,lookAway:.4,squint:.4,sink:0,roll:0},speaking:{nod:2,glance:1.2,widen:1.2,sink:0,roll:.3,wave:.4,slowBlink:.4,bounce:.6}},w={idle:{eyes:1,body:1,churn:0,churnSpeed:0,dwell:1,breathe:1,float:1,blink:1,lean:0,aspect:1,gazeX:0,gazeY:0},connecting:{eyes:.75,body:.91,churn:2.5,churnSpeed:3,dwell:.8,breathe:2.2,float:.6,blink:.6,lean:0,aspect:1.03,gazeX:0,gazeY:4},listening:{eyes:1.3,body:1.04,churn:0,churnSpeed:0,dwell:2.6,breathe:.45,float:.35,blink:1.8,lean:0,aspect:.97,gazeX:0,gazeY:-3},thinking:{eyes:.66,body:.96,churn:5,churnSpeed:.6,dwell:.5,breathe:1.3,float:1.4,blink:.8,lean:7,aspect:1.04,gazeX:-9,gazeY:-8},delegating:{eyes:.9,body:.98,churn:0,churnSpeed:0,dwell:2.2,breathe:.6,float:.5,blink:1.3,lean:-6,aspect:1,gazeX:15,gazeY:2},speaking:{eyes:.95,body:1,churn:2.5,churnSpeed:3,dwell:4,breathe:.4,float:.5,blink:1.2,lean:0,aspect:1,gazeX:0,gazeY:0}},I=Array(n.SPECTRUM_BANDS).fill(0);function T(){let e=Math.random();return e<.15?180+320*Math.random():e<.8?1200+2300*Math.random():3500+2800*Math.random()}let L={x:0,y:0,live:!1},P=!1;function _(e){if("number"==typeof e)return e;let t=0x811c9dc5;for(let r=0;r<e.length;r++)t=Math.imul(t^e.charCodeAt(r),0x1000193);return(t>>>0)%1e4}function C({size:e=32,seed:u,color:c,shape:d,outline:g,paint:p,notify:x,crossed:k,state:E="idle",getSpectrum:O,options:$,className:D}){var F;let Y=(0,r.useId)(),G=(0,r.useMemo)(()=>({...h,...$,...void 0===g?{}:{fill:!g}}),[$,g]),N=`${Y}-mask`,j=`${Y}-paint`,z=`${Y}-curtain`,W=(0,r.useRef)(null),B=(0,r.useRef)(null),V=(0,r.useRef)(null),K=(0,r.useRef)(null),U=(0,r.useRef)(null),X=(0,r.useRef)(null),q=(0,r.useRef)(null),H=(0,r.useRef)(null),Z=(0,r.useRef)([]),J=(0,r.useRef)(null),Q=(0,r.useRef)(null),ee=(0,r.useRef)(null),et=(0,r.useRef)(null),er=void 0===u?G.seed:_(u),en=d??G.shape,ea=c??G.color,el=x??G.notify,ei=p?a.MARK_PAINTS[p]:null,eo=s((e-14)/98,0,1),es=ei?"edge"in ei?ei.edge:null:(function(e){let t=/^#([0-9a-f]{6})$/i.exec(e);if(!t)return null;let r=e=>{let r=Number.parseInt(t[1].slice(e,e+2),16)/255;return r<=.04045?r/12.92:((r+.055)/1.055)**2.4};return .2126*r(0)+.7152*r(2)+.0722*r(4)}(ea)??1)<.06?"dark":null,eu=(0,r.useMemo)(()=>b(G,en,er),[G,en,er]),ec=(0,r.useMemo)(()=>f(eu),[eu]),ed=(0,r.useMemo)(()=>m({len:G.eyeLen,width:G.eyeWidth,bend:G.eyeBend,taper:G.eyeTaper,tilt:G.eyeTilt,cx:120-G.eyeGap/2,cy:G.eyeY}),[G]),ef=(0,r.useMemo)(()=>m({len:G.eyeLen,width:G.eyeWidth,bend:G.eyeBend,taper:G.eyeTaper,tilt:G.eyeTilt+G.eyeSkew,cx:120+G.eyeGap/2,cy:G.eyeY}),[G]),em=ei?.look??null,eh=!!k,eg=(0,r.useRef)({cfg:G,state:E,getSpectrum:O,radii:eu,shapeSeed:er,look:em,crossed:eh,grow:eo});eg.current={cfg:G,state:E,getSpectrum:O,radii:eu,shapeSeed:er,look:em,crossed:eh,grow:eo},(0,r.useEffect)(()=>{P||(P=!0,window.addEventListener("pointermove",e=>{L.x=e.clientX,L.y=e.clientY,L.live=!0},{passive:!0}));let e=0,t=eg.current.shapeSeed%17*.91,r=0,a=0,i=performance.now()+600+T(),u=0,c=130,d=0,m=(0,n.createVoiceFollower)(),h={...w.idle},g=Object.keys(h),p=0,b=0,x=.5,k=0,E=0,_=0,C=Array(n.SPECTRUM_BANDS).fill(0),O=Array.from({length:n.SPECTRUM_BANDS},(e,t)=>1.7*t),$=0,D=performance.now(),F=null,Y=performance.now()+1500+3e3*Math.random(),G=P=>{e=requestAnimationFrame(G);let{cfg:N,state:j}=eg.current,z=P/1e3*N.speed,er=Math.min(.05,(P-D)/1e3);D=P;let en=w[j];for(let e of g)h[e]+=(en[e]-h[e])*.06;$+=er*h.churnSpeed*N.speed;let ea="speaking"===j?eg.current.getSpectrum?.():void 0,el=m.read(ea??I,er),ei=0;for(let e=0;e<n.SPECTRUM_BANDS;e++){let t=el.bands[e];C[e]+=(t-C[e])*N.bandEase,O[e]+=er*(.05+.018*e)*(e%2?-1:1),ei+=t}let eo="speaking"===j?s(el.level,0,1):0;p+=(eo-p)*.3,b+=(eo-b)*.016,el.onset>0&&P-_>340&&(_=P,E-=N.punch*Math.min(1,1.6*p)*N.bobRate);let es=.01*N.bobRate*N.bobRate;if(E+=-k*es-.085*E*N.bobRate,k+=E,ei>.04){let e=0;for(let t=0;t<n.SPECTRUM_BANDS;t++)e+=C[t]*t;x+=(e/ei/(n.SPECTRUM_BANDS-1)-x)*.04}else x+=(.5-x)*.03;let eu=h.dwell;if(N.idle&&!F&&P>=Y){let e=function(e){let t=S[e],r=e=>A[e].weight*(t[e]??1),n=0;for(let e of R)n+=r(e);let a=Math.random()*n;for(let e of R)if((a-=r(e))<=0)return e;return R[0]}(j),t=A[e],r=Math.PI/4*Math.floor(8*Math.random());F={key:e,start:P,dur:t.dur[0]+Math.random()*(t.dur[1]-t.dur[0]),dx:Math.cos(r),dy:.7*Math.sin(r)-.5*("thinking"===j)}}let ec=v;if(F){let e=(P-F.start)/F.dur;e>=1?(F=null,Y=P+(9e3-74*N.liveliness)*eu*(.6+.8*Math.random())):(ec={...v,...A[F.key].play(e,F.dx,F.dy)}).blinkIn>0&&0===d&&(d=P+ec.blinkIn)}if(W.current){let e=N.breathe*h.breathe/100,r=b*N.pulse/300-.05*k,n=(.45-x)/.45*b*(N.stretch/100),a=(1+e*Math.sin(1.6*z+t)-.75*r+n)*h.body*ec.scale/h.aspect,l=(1+r-.8*n)*h.body*ec.scale*h.aspect,i=25*e*Math.sin(1.1*z+1.7*t)+ec.rot+h.lean,s=120+90*e*Math.sin(.7*z+.6*t)+ec.bodyX,u=120+120*e*Math.sin(1.3*z+2.3*t)+ec.bodyY+k*N.pulse*2;W.current.setAttribute("transform",`translate(${o(s)} ${o(u)}) rotate(${o(i)}) scale(${l.toFixed(4)} ${a.toFixed(4)}) translate(${-120} ${-120})`)}let ed=eg.current.look;if(ed){let e=P/1e3,t=eg.current.grow;if("flow"===ed)H.current?.setAttribute("gradientTransform",`rotate(-35 120 120) translate(${o(-(e/3.6%1)*y(t))} 0)`);else if("aurora"===ed)for(let[t,r]of M.entries()){let n=.5-.5*Math.cos(e/r.period*l);Z.current[t]?.setAttribute("transform",`translate(${o(r.sway*n)} 0) translate(${r.cx} 91) skewX(${o(20*n-10)}) scale(1 ${o(1+.18*n)}) translate(${-r.cx} -91)`)}}let ef=(C[0]+C[1]+C[2])/3,em=(C[3]+C[4])/2,eh=(C[5]+C[6]+C[7])/3,ep=ef+em+eh>.03&&N.ripple>0,eb=h.churn>0;if(V.current&&(ep||eb)){let e=$,r=f(eg.current.radii.map((r,n)=>{let a=n/128*l,i=r;return ep&&(i+=N.ripple*(ef*Math.sin(2*a+O[0])+.7*em*Math.sin(3*a+O[1])+.5*eh*Math.sin(4*a+O[2]))),eb&&(i+=h.churn*(.65*Math.sin(2*a+e)+.35*Math.sin(3*a-1.4*e+t))),i}));V.current.setAttribute("d",r),K.current?.setAttribute("d",r),q.current?.setAttribute("d",r)}if(B.current){let e=0,n=0;if(N.follow&&L.live&&et.current){let t=et.current.getBoundingClientRect();t.width>0&&(e=s((L.x-(t.left+t.width/2))/(1.5*t.width),-1,1)*N.gazeRange,n=s((L.y-(t.top+t.height/2))/(1.5*t.height),-1,1)*N.gazeRange)}r+=(e-r)*.12,a+=(n-a)*.12;let l=N.float*h.float*(.62*Math.sin(1.15*z+t)+.38*Math.sin(.47*z+2.1*t)),f=1;if(0===u&&!eg.current.crossed&&(d>0&&P>=d?(u=P,d=0):N.blink&&P>=i&&(u=P),u>0&&(c=110+60*Math.random())),u>0){let e=(P-u)/c;e>=1?(u=0,i=P+T()*h.blink):f=1-.94*Math.sin(Math.PI*e)}let m=`translate(${o(r+ec.eyeX+h.gazeX)} ${o(a+l+ec.eyeY+h.gazeY)}) translate(120 ${N.eyeY}) scale(1 ${f.toFixed(3)}) translate(${-120} ${-N.eyeY})`;B.current.setAttribute("transform",m),J.current?.setAttribute("transform",m);let g=ec.eyeWid*(1-.13*b)*h.eyes,p=ec.eyeLen*(1+.04*b)*h.eyes,y=N.eyeGap/2;for(let[e,t]of[U,X].entries()){if(!t.current)continue;let r=120+(0===e?-y:y),n=0===e?N.eyeTilt:N.eyeTilt+N.eyeSkew,a=p.toFixed(3),l=g.toFixed(3),i=`translate(${o(r)} ${N.eyeY}) rotate(${o(n)}) scale(${a} ${l}) rotate(${o(-n)}) translate(${o(-r)} ${-N.eyeY})`;t.current.setAttribute("transform",i),(0===e?Q:ee).current?.setAttribute("transform",i)}}};return e=requestAnimationFrame(G),()=>cancelAnimationFrame(e)},[]);let ep=G.notifyAngle*Math.PI/180,eb=ei?`url(#${j})`:"var(--fg)",ey=o(18-3*eo),eM=o(22-9*eo),ev=(e,r,n)=>eh?(0,t.jsx)("path",{d:`M${r-ey} ${G.eyeY-ey}L${r+ey} ${G.eyeY+ey}M${r+ey} ${G.eyeY-ey}L${r-ey} ${G.eyeY+ey}`,fill:"none",stroke:n,strokeWidth:eM,strokeLinecap:"round"}):(0,t.jsx)("path",{d:e,fill:n});return(0,t.jsxs)("svg",{ref:et,"data-slot":"bot-mark","aria-hidden":"true",className:D,viewBox:i,width:e,height:e,style:{overflow:"visible","--fg":ea},children:[(0,t.jsxs)("defs",{children:[(0,t.jsx)("clipPath",{id:Y,children:(0,t.jsx)("path",{ref:K,d:ec})}),G.fill&&(0,t.jsxs)("mask",{id:N,maskUnits:"userSpaceOnUse",children:[(0,t.jsx)("path",{ref:q,d:ec,fill:"#fff"}),(0,t.jsx)("g",{clipPath:`url(#${Y})`,children:(0,t.jsxs)("g",{ref:B,children:[(0,t.jsx)("g",{ref:U,children:ev(ed,120-G.eyeGap/2,"#000")}),(0,t.jsx)("g",{ref:X,children:ev(ef,120+G.eyeGap/2,"#000")})]})}),el&&(0,t.jsx)("circle",{cx:o(120+Math.cos(ep)*G.notifyDist),cy:o(120+Math.sin(ep)*G.notifyDist),r:G.notifyR+G.notifyRing,fill:"#000"})]}),ei&&(0,t.jsx)("linearGradient",{ref:H,id:j,...(F=ei.look,"flow"===F?{gradientUnits:"userSpaceOnUse",x1:0,y1:0,x2:y(eo),y2:0,spreadMethod:"repeat"}:{gradientUnits:"userSpaceOnUse",x1:0,y1:0,x2:240*("duo"===F),y2:240}),children:(function({look:e,colors:t}){let r="aurora"===e?t.slice(0,2):t;return r.map((e,t)=>({offset:t/(r.length-1),color:e}))})(ei).map(e=>(0,t.jsx)("stop",{offset:e.offset,stopColor:e.color},`${e.offset}-${e.color}`))}),ei?.look==="aurora"&&(0,t.jsx)("filter",{id:z,filterUnits:"userSpaceOnUse",x:-72,y:-72,width:384,height:384,colorInterpolationFilters:"sRGB",children:(0,t.jsx)("feGaussianBlur",{stdDeviation:o(34-12*eo)})})]}),(0,t.jsxs)("g",{ref:W,children:[G.fill?(0,t.jsxs)("g",{mask:`url(#${N})`,children:[(0,t.jsx)("path",{ref:V,d:ec,fill:eb}),ei?.look==="aurora"&&(0,t.jsxs)("g",{filter:`url(#${z})`,children:[(0,t.jsx)("rect",{x:-72,y:-72,width:384,height:384,fill:eb}),M.map((e,r)=>(0,t.jsx)("ellipse",{ref:e=>{Z.current[r]=e},cx:e.cx,cy:91,rx:o(60-29*eo),ry:138,fill:ei.colors[2+r],style:{mixBlendMode:"screen"}},e.cx))]})]}):(0,t.jsx)("path",{ref:V,d:ec,fill:"none",stroke:eb,strokeWidth:G.strokeWidth,strokeLinejoin:"round"}),G.fill&&"dark"===es&&(0,t.jsx)("g",{clipPath:`url(#${Y})`,opacity:.92,children:(0,t.jsxs)("g",{ref:J,children:[(0,t.jsx)("g",{ref:Q,children:ev(ed,120-G.eyeGap/2,"#fff")}),(0,t.jsx)("g",{ref:ee,children:ev(ef,120+G.eyeGap/2,"#fff")})]})}),!G.fill&&(0,t.jsx)("g",{clipPath:`url(#${Y})`,children:(0,t.jsxs)("g",{ref:B,children:[(0,t.jsx)("g",{ref:U,children:ev(ed,120-G.eyeGap/2,eb)}),(0,t.jsx)("g",{ref:X,children:ev(ef,120+G.eyeGap/2,eb)})]})}),el&&(0,t.jsx)("circle",{cx:o(120+Math.cos(ep)*G.notifyDist),cy:o(120+Math.sin(ep)*G.notifyDist),r:G.notifyR,className:"fill-amber-600 dark:fill-amber-400"})]})]})}e.s(["BotMark",0,C,"BotsMark",0,function({size:e=16,className:r}){return(0,t.jsx)(C,{size:e,seed:"bots",className:r})},"markAtRest",0,function(e){let t=(e,t)=>m({len:h.eyeLen,width:h.eyeWidth,bend:h.eyeBend,taper:h.eyeTaper,tilt:t,cx:e,cy:h.eyeY});return{head:f(b(h,h.shape,_(e))),eyes:[t(120-h.eyeGap/2,h.eyeTilt),t(120+h.eyeGap/2,h.eyeTilt+h.eyeSkew)]}}])},864723,e=>{"use strict";let t="currentColor",r=[{id:"system",label:"System",value:t},{id:"slate",label:"Slate",value:"#64748B"},{id:"indigo",label:"Indigo",value:"#6366F1"},{id:"blue",label:"Blue",value:"#3B82F6"},{id:"cyan",label:"Cyan",value:"#06B6D4"},{id:"teal",label:"Teal",value:"#14B8A6"},{id:"green",label:"Green",value:"#22C55E"},{id:"lime",label:"Lime",value:"#84CC16"},{id:"amber",label:"Amber",value:"#F59E0B"},{id:"orange",label:"Orange",value:"#F97316"},{id:"red",label:"Red",value:"#EF4444"},{id:"pink",label:"Pink",value:"#EC4899"},{id:"violet",label:"Violet",value:"#8B5CF6"},{id:"fuchsia",label:"Fuchsia",value:"#D946EF"},{id:"rose",label:"Rose",value:"#F43F5E"},{id:"sky",label:"Sky",value:"#0EA5E9"},{id:"emerald",label:"Emerald",value:"#10B981"},{id:"yellow",label:"Yellow",value:"#EAB308"},{id:"stone",label:"Stone",value:"#78716C"}],n=Object.fromEntries(r.map(e=>[e.id,e.value])),a=r.filter(e=>e.value!==t).map(e=>e.value),l=[n.amber,n.red],i={rainbow:{label:"Rainbow",look:"flow",colors:[0,45,90,140,190,240,290,330,360].map(e=>`oklch(0.77 0.16 ${e})`)},duo:{label:"Duo",look:"duo",colors:["#818CF8","#F472B6"]},aurora:{label:"Aurora",look:"aurora",edge:"dark",colors:["#1a2f73","#2c56c9","#34d399","#22d3ee","#a7f3d0"]},"aurora-pink":{label:"Pink aurora",look:"aurora",edge:"dark",colors:["#3a1478","#7c3aed","#f472b6","#e879f9","#fbcfe8"]}},o=Object.keys(i);e.s(["MARK_PAINTS",0,i,"MARK_PAINT_IDS",0,o,"MARK_PALETTE",0,a,"MARK_SHAPES",0,["blob","poly","squircle","heart"],"MARK_SYSTEM",0,t,"paintSwatch",0,function(e){let{look:t,colors:r}=i[e];return"aurora"===t?`radial-gradient(circle at 35% 30%, ${r[2]}, transparent 70%), linear-gradient(180deg, ${r[0]}, ${r[1]})`:`linear-gradient(135deg, ${r.join(", ")})`},"randomMarkFills",0,function(e){let t=[...a.filter(e=>!l.includes(e)).map(e=>({color:e})),...o.map(e=>({paint:e}))];for(let e=t.length-1;e>0;e--){let r=Math.floor(Math.random()*(e+1));[t[e],t[r]]=[t[r],t[e]]}return t.slice(0,e)}])},218080,e=>{"use strict";let t=[1,3,5,8,13,21,34,55,90],r=[1,1.1,1.25,1.45,1.7,2,2.4,2.9],n=r.length,a=Array(n).fill(0);function l(e,a,l){e.getByteFrequencyData(a);for(let e=0;e<n;e++){let n=0,i=t[e],o=Math.min(t[e+1],a.length);for(let e=i;e<o;e++)n+=a[e];let s=o>i?n/(o-i)/255:0;l[e]=Math.min(1,s*r[e])}return l}e.s(["SPECTRUM_BANDS",0,n,"createAudioTap",0,function(){let e=new Audio;e.autoplay=!0;let t=null,r=null,i=new Uint8Array(0),o=null,s=Array(n).fill(0),u=null,c=new Uint8Array(0),d=null,f=Array(n).fill(0),m=new Uint8Array(512);function h(){if(t&&r)return{context:t,analyser:r};let e=new AudioContext,n=e.createAnalyser();return n.fftSize=512,n.smoothingTimeConstant=.55,i=new Uint8Array(n.frequencyBinCount),e.resume().catch(()=>{}),t=e,r=n,{context:e,analyser:n}}return{element:e,open:h,levels:()=>{var e;return{output:(e=r)?(e.getByteTimeDomainData(m),Math.sqrt(m.reduce((e,t)=>e+((t-128)/128)**2,0)/m.length)):0}},listen(e){if(o?.mediaStream===e)return;o?.disconnect();let t=h();(o=t.context.createMediaStreamSource(e)).connect(t.analyser),t.context.resume()},hear(e){if(d?.mediaStream===e)return;d?.disconnect();let t=h();u||((u=t.context.createAnalyser()).fftSize=512,u.smoothingTimeConstant=.6,c=new Uint8Array(u.frequencyBinCount)),(d=t.context.createMediaStreamSource(e)).connect(u),t.context.resume()},read:()=>r?l(r,i,s):a,readMic:()=>u?l(u,c,f):a}},"createClipTap",0,function(e){let t=new AudioContext,r=t.createAnalyser();r.fftSize=512,r.smoothingTimeConstant=.55;let a=new Uint8Array(r.frequencyBinCount),i=Array(n).fill(0);return t.createMediaElementSource(e).connect(r),r.connect(t.destination),{resume:()=>t.resume().catch(()=>{}),read:()=>l(r,a,i),close:()=>t.close().catch(()=>{})}},"createVoiceFollower",0,function(){let e=Array(n).fill(0),t=Array(n).fill(0),r={level:0,phrase:0,onset:0,bands:Array(n).fill(0)},a=0,l=0,i=1/0,o=(e,t,r,n)=>e+(t-e)*Math.min(1,n/r);return{read(s,u){let c=0,d=0,f=0;for(let a=0;a<n;a++){let n=s[a]??0;c+=n,e[a]=o(e[a],n,n>e[a]?.03:2.5,u),t[a]=o(t[a],n,n<t[a]?.12:3,u);let l=e[a]-t[a],i=l>.12?Math.min(1,Math.max(0,(n-t[a])/l)):0;r.bands[a]=i,l>.12&&(d+=i,f++)}let m=Math.min(1,Math.max(0,(c/n-.03)/.09)),h=m*m*(3-2*m);for(let e=0;e<n;e++)r.bands[e]*=h;return r.level=(f?d/f:0)*h,a=o(a,r.level,.05,u),l=o(l,r.level,.22,u),r.phrase=o(r.phrase,r.level,.45,u),i+=u,r.onset=0,a>l+.1&&a>.3&&i>.12&&(i=0,r.onset=Math.min(1,a)),r}}}])},260891,e=>{"use strict";e.i(247167);var t=e.i(271645),r=e.i(708445),n=e.i(146376),a=e.i(108868),l=e.i(667865),i=e.i(446265),o=e.i(328744),s=e.i(229315),u=e.i(675606),c=e.i(56434),d=e.i(46420),f=e.i(621082),m=e.i(449055),h=e.i(584446),g=e.i(596296),p=e.i(503596),b=e.i(157940);function y(e){return o.platform.engine.webkit&&0===e.movementX&&0===e.movementY}function M(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function v(e,t){return M(t,e===m.ARROW_UP||e===m.ARROW_DOWN,e===m.ARROW_LEFT||e===m.ARROW_RIGHT)}function x(e,t,r){return M(t,e===m.ARROW_DOWN,r?e===m.ARROW_LEFT:e===m.ARROW_RIGHT)||"Enter"===e||" "===e||""===e}e.s(["useListNavigation",0,function(e,o){let{listRef:k,activeIndex:E,onNavigate:A=()=>{},enabled:R=!0,selectedIndex:S=null,allowEscape:w=!1,loopFocus:I=!1,nested:T=!1,rtl:L=!1,virtual:P=!1,focusItemOnOpen:_="auto",focusItemOnHover:C=!0,openOnArrowKeyDown:O=!0,disabledIndices:$,orientation:D="vertical",parentOrientation:F,id:Y,resetOnPointerLeave:G=!0,externalTree:N,grid:j}=o,z=null!=j,W="rootStore"in e?e.rootStore:e,B=W.useState("open"),V=W.useState("floatingElement"),K=W.useState("domReferenceElement"),U=W.context.dataRef,X=(0,g.getFloatingFocusElement)(V),q=(0,g.isTypeableCombobox)(K),H=(0,i.useValueAsRef)(X),Z=(0,d.useFloatingParentNodeId)(),J=(0,d.useFloatingTree)(N),Q=t.useRef(_),ee=t.useRef(S??-1),et=t.useRef(null),er=t.useRef(!0),en=(0,l.useStableCallback)(e=>{A(-1===ee.current?null:ee.current,e)}),ea=t.useRef(!!V),el=t.useRef(B),ei=t.useRef(!1),eo=t.useRef(!1),es=t.useRef(null),eu=(0,i.useValueAsRef)($),ec=(0,i.useValueAsRef)(B),ed=(0,i.useValueAsRef)(S),ef=(0,i.useValueAsRef)(G),em=(0,r.useAnimationFrame)(),eh=(0,r.useAnimationFrame)(),eg=(0,l.useStableCallback)(()=>{function e(e){P?J?.events.emit("virtualfocus",e):es.current=(0,p.enqueueFocus)(e,{sync:ei.current,preventScroll:!0})}let t=k.current[ee.current],r=eo.current;t&&e(t),(ei.current?e=>e():e=>em.request(e))(()=>{let n=k.current[ee.current]||t;!n||(t||e(n),ex&&(r||!er.current)&&n.scrollIntoView?.({block:"nearest",inline:"nearest"}))})});(0,n.useIsoLayoutEffect)(()=>{U.current.orientation=D},[U,D]),(0,n.useIsoLayoutEffect)(()=>{R&&(B&&V?(ee.current=S??-1,Q.current&&null!=S&&(eo.current=!0,en())):ea.current&&(ee.current=-1,en()))},[R,B,V,S,en]),(0,n.useIsoLayoutEffect)(()=>{if(R){if(!B){ei.current=!1;return}if(V)if(null==E){if(ei.current=!1,null!=ed.current)return;if(ea.current&&(ee.current=-1,eg()),(!el.current||!ea.current)&&Q.current&&(null!=et.current||!0===Q.current&&null==et.current)){let e=0,t=()=>{null==k.current[0]?(e<2&&(e?e=>eh.request(e):queueMicrotask)(t),e+=1):(ee.current=null==et.current||x(et.current,D,L)||T?(0,f.getMinListIndex)(k):(0,f.getMaxListIndex)(k),et.current=null,en())};t()}}else(0,f.isIndexOutOfListBounds)(k.current,E)||(ee.current=E,eg(),eo.current=!1)}},[R,B,V,E,ed,T,k,D,L,en,eg,eh]),(0,n.useIsoLayoutEffect)(()=>{if(!R||V||!J||P||!ea.current)return;let e=J.nodesRef.current,t=e.find(e=>e.id===Z)?.context?.elements.floating,r=(0,h.activeElement)((0,a.ownerDocument)(K??t??null)),n=e.some(e=>e.context&&(0,h.contains)(e.context.elements.floating,r));t&&!n&&er.current&&t.focus({preventScroll:!0})},[R,V,K,J,Z,P]),(0,n.useIsoLayoutEffect)(()=>{el.current=B,ea.current=!!V}),(0,n.useIsoLayoutEffect)(()=>{B||(et.current=null,Q.current=_)},[B,_]);let ep=null!=E,eb=(0,l.useStableCallback)(e=>{if(!ec.current)return;let t=k.current.indexOf(e.currentTarget);-1!==t&&(ee.current!==t||E!==t)&&(ee.current=t,en(e))}),ey=(0,l.useStableCallback)(()=>F??J?.nodesRef.current.find(e=>e.id===Z)?.context?.dataRef?.current.orientation),eM=(0,l.useStableCallback)(()=>(0,f.getMinListIndex)(k,eu.current)),ev=(0,l.useStableCallback)(e=>{var t;let r,n;if(er.current=!1,ei.current=!0,229===e.which||!ec.current&&e.currentTarget===H.current)return;if(T&&(t=e.key,r=L?t===m.ARROW_RIGHT:t===m.ARROW_LEFT,n=t===m.ARROW_UP,"both"===D||"horizontal"===D&&z?"Escape"===t:M(D,r,n))){v(e.key,ey())||(0,b.stopEvent)(e),W.setOpen(!1,(0,u.createChangeEventDetails)(c.REASONS.listNavigation,e.nativeEvent)),(0,s.isHTMLElement)(K)&&(P?J?.events.emit("virtualfocus",K):K.focus());return}let a=ee.current,l=(0,f.getMinListIndex)(k,$),i=(0,f.getMaxListIndex)(k,$);if(q||("Home"===e.key&&((0,b.stopEvent)(e),ee.current=l,en(e)),"End"===e.key&&((0,b.stopEvent)(e),ee.current=i,en(e))),null!=j){let t=j(e,ee.current,k,D,I,L,$,l,i);if(null!=t&&(ee.current=t,en(e)),"both"===D)return}if(v(e.key,D)){if((0,b.stopEvent)(e),B&&!P&&(0,h.activeElement)(e.currentTarget.ownerDocument)===e.currentTarget){ee.current=x(e.key,D,L)?l:i,en(e);return}x(e.key,D,L)?I?a>=i?w&&a!==k.current.length?ee.current=-1:(ei.current=!1,ee.current=l):ee.current=(0,f.findNonDisabledListIndex)(k.current,{startingIndex:a,disabledIndices:$}):ee.current=Math.min(i,(0,f.findNonDisabledListIndex)(k.current,{startingIndex:a,disabledIndices:$})):I?a<=l?w&&-1!==a?ee.current=k.current.length:(ei.current=!1,ee.current=i):ee.current=(0,f.findNonDisabledListIndex)(k.current,{startingIndex:a,decrement:!0,disabledIndices:$}):ee.current=Math.max(l,(0,f.findNonDisabledListIndex)(k.current,{startingIndex:a,decrement:!0,disabledIndices:$})),(0,f.isIndexOutOfListBounds)(k.current,ee.current)&&(ee.current=-1),en(e)}}),ex=t.useMemo(()=>({onFocus(e){ei.current=!0,eb(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){!y(e)&&(ei.current=!0,eo.current=!1,C&&eb(e))},onPointerLeave(e){if(!ec.current||!er.current||"touch"===e.pointerType)return;ei.current=!0;let t=e.relatedTarget;if(!(!C||k.current.includes(t))&&ef.current&&(es.current?.(),es.current=null,ee.current=-1,en(e),!P)){let e=H.current,t=(0,h.activeElement)((0,a.ownerDocument)(e));e&&(0,h.contains)(e,t)&&e.focus({preventScroll:!0})}}}),[eb,ec,H,C,k,en,ef,P]),ek=t.useMemo(()=>P&&B&&ep&&{"aria-activedescendant":`${Y}-${E}`},[P,B,ep,Y,E]),eE=t.useMemo(()=>({...!q?ek:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&B&&!P){let t=(0,h.getTarget)(e.nativeEvent);if(t&&!(0,h.contains)(H.current,t))return;(0,b.stopEvent)(e),W.setOpen(!1,(0,u.createChangeEventDetails)(c.REASONS.focusOut,e.nativeEvent)),(0,s.isHTMLElement)(K)&&K.focus();return}ev(e)},onPointerMove(e){y(e)||(er.current=!0)}}),[ek,ev,H,q,W,B,P,K]),eA=t.useMemo(()=>{function e(e){W.setOpen(!0,(0,u.createChangeEventDetails)(c.REASONS.listNavigation,e.nativeEvent,e.currentTarget))}function t(e){"auto"===_&&(0,b.isVirtualClick)(e.nativeEvent)&&(Q.current=!P)}function r(e){Q.current=_,"auto"===_&&(0,b.isVirtualPointerEvent)(e.nativeEvent)&&(Q.current=!0)}return{onKeyDown(t){var r,n;let a=W.select("open");er.current=!1;let l=t.key.startsWith("Arrow"),i=(r=t.key,n=ey(),M(n,L?r===m.ARROW_LEFT:r===m.ARROW_RIGHT,r===m.ARROW_DOWN)),o=v(t.key,D),s=(T?i:o)||"Enter"===t.key||""===t.key.trim();if(P&&a)return ev(t);if(a||O||!l){if(s){let e=v(t.key,ey());et.current=T&&e?null:t.key}if(T){i&&((0,b.stopEvent)(t),a?(ee.current=eM(),en(t)):e(t));return}o&&(null!=ed.current&&(ee.current=ed.current),(0,b.stopEvent)(t),!a&&O?e(t):ev(t),a&&en(t))}},onFocus(e){W.select("open")&&!P&&(ee.current=-1,en(e))},onPointerDown:r,onPointerEnter:r,onMouseDown:t,onClick:t}},[ev,_,eM,T,en,W,O,D,ey,L,ed,P]),eR=t.useMemo(()=>({...ek,...eA}),[ek,eA]);return t.useMemo(()=>R?{reference:eR,floating:eE,item:ex,trigger:eA}:{},[R,eR,eE,eA,ex])}])},736760,e=>{"use strict";var t=e.i(271645),r=e.i(146376),n=e.i(667865),a=e.i(439957),l=e.i(956789),i=e.i(621082),o=e.i(584446),s=e.i(157940);e.s(["useTypeahead",0,function(e,u){let{listRef:c,elementsRef:d,activeIndex:f,onMatch:m,disabledIndices:h,onTyping:g,enabled:p=!0,resetMs:b=750,selectedIndex:y=null}=u,M="rootStore"in e?e.rootStore:e,v=M.useState("open"),x=(0,a.useTimeout)(),k=t.useRef(""),E=t.useRef(y??f??-1),A=t.useRef(null),R=(0,n.useStableCallback)(e=>{function t(e){let t=d?.current[e];return!(t&&!(0,i.isElementVisible)(t)||t?.matches(":disabled"))&&(null==h||!(0,i.isListIndexDisabled)(l.EMPTY_ARRAY,e,h))}function r(e,n,a=0){if(0===e.length)return -1;let l=(a%e.length+e.length)%e.length,i=n.toLowerCase();for(let r=0;r<e.length;r+=1){let n=(l+r)%e.length,a=e[n];if(a?.toLowerCase().startsWith(i)&&t(n))return n}return -1}let n=c.current;if(k.current.length>0&&" "===e.key&&((0,s.stopEvent)(e),g?.(!0)),k.current.length>0&&" "!==k.current[0]&&-1===r(n,k.current)&&" "!==e.key&&g?.(!1),null==n||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;v&&" "!==e.key&&((0,s.stopEvent)(e),g?.(!0));let a=""===k.current;a&&(E.current=y??f??-1),n.every((e,r)=>!(e&&t(r))||e[0]?.toLowerCase()!==e[1]?.toLowerCase())&&k.current===e.key&&(k.current="",E.current=A.current),k.current+=e.key,x.start(b,()=>{k.current="",E.current=A.current,g?.(!1)});let o=a?y??f??-1:E.current,u=r(n,k.current,(o??0)+1);-1!==u?(m?.(u),A.current=u):" "!==e.key&&(k.current="",g?.(!1))}),S=(0,n.useStableCallback)(e=>{let t=e.relatedTarget,r=M.select("domReferenceElement"),n=M.select("floatingElement");(0,o.contains)(r,t)||(0,o.contains)(n,t)||(x.clear(),k.current="",E.current=A.current,g?.(!1))});(0,r.useIsoLayoutEffect)(()=>{(v||null===y)&&(x.clear(),A.current=null,""!==k.current&&(k.current=""))},[v,y,x]);let w=t.useMemo(()=>({onKeyDown:R,onBlur:S}),[R,S]);return t.useMemo(()=>p?{reference:w,floating:w}:{},[p,w])}])},348990,e=>{"use strict";var t=e.i(956789),r=e.i(552245),n=e.i(395530);e.s(["CompositeItem",0,function(e){let{render:a,className:l,style:i,state:o=t.EMPTY_OBJECT,props:s=t.EMPTY_ARRAY,refs:u=t.EMPTY_ARRAY,metadata:c,stateAttributesMapping:d,tag:f="div",...m}=e,{compositeProps:h,compositeRef:g}=(0,n.useCompositeItem)({metadata:c});return(0,r.useRenderElement)(f,e,{state:o,ref:[g,...u],props:[h,...s,m],stateAttributesMapping:d})}])},395530,e=>{"use strict";var t=e.i(271645),r=e.i(828918),n=e.i(838452),a=e.i(673553);e.s(["useCompositeItem",0,function(e={}){let{highlightItemOnHover:l,highlightedIndex:i,onHighlightedIndexChange:o}=(0,n.useCompositeRootContext)(),{ref:s,index:u}=(0,a.useCompositeListItem)(e),c=i===u,d=t.useRef(null),f=(0,r.useMergedRefs)(s,d);return{compositeProps:{tabIndex:c?0:-1,onFocus(){o(u)},onMouseMove(){let e=d.current;if(!l||!e)return;let t=e.hasAttribute("disabled")||"true"===e.ariaDisabled;c||t||e.focus()}},compositeRef:f,index:u}}])},53687,e=>{"use strict";var t=e.i(271645),r=e.i(388940),n=e.i(667865),a=e.i(146376),l=e.i(545356),i=e.i(843476);function o(){return new Map}function s(){return new Set}function u(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}e.s(["CompositeList",0,function(e){let{children:c,elementsRef:d,labelsRef:f,onMapChange:m}=e,h=(0,n.useStableCallback)(m),[,g]=t.useState(!1),p=(0,r.useRefWithInit)(s).current,b=(0,r.useRefWithInit)(o).current,y=t.useRef(0),M=t.useRef(!0),v=t.useRef(null),x=t.useRef(null),k=(0,n.useStableCallback)(()=>{M.current||(M.current=!0,g(e=>!e))}),E=(0,n.useStableCallback)((e,t)=>{b.set(e,t),k()}),A=(0,n.useStableCallback)(e=>{b.delete(e),k()}),R=(0,n.useStableCallback)(e=>{let t=new Map;return d.current.length=0,f&&(f.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),d.current[e.index]=e.element,f&&(f.current[e.index]=void 0!==e.registration.label?e.registration.label:e.registration.textRef?.current?.textContent??e.element.textContent)}),y.current=d.current.length,t}),S=(0,n.useStableCallback)(()=>{var e;let t,r,n,a,[l,i]=(e=b,t=new Set,r=[],n=[],e.forEach((e,a)=>{if(!a.isConnected)return;let l=e.index,i={index:l??-1,element:a,registration:e};null===l?n.push(i):l>=0&&(t.add(l),r.push(i))}),a=0,n.sort((e,t)=>u(e.element,t.element)),n.forEach(e=>{for(;t.has(a);)a+=1;e.index=a,r.push(e),a+=1}),t.size>0&&r.sort((e,t)=>e.index-t.index),[r,n.map(e=>e.element)]),o=R(l),s=v.current,c=!s||s.length!==l.length||l.some((e,t)=>{let r=s[t];return e.index!==r.index||e.element!==r.element||e.registration.index!==r.registration.index||e.registration.metadata!==r.registration.metadata});!function(e){if(x.current?.disconnect(),x.current=null,"function"!=typeof MutationObserver||e.length<2)return;let t=new MutationObserver(r=>{if(!function(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}(r))return;let n=null;for(let r of e)if(r.isConnected){if(n&&u(n,r)>0){t.disconnect(),k();return}n=r}});x.current=t;let r=new Set;for(let t=1;t<e.length;t+=1){let n=function(e,t){let r=e.parentElement;for(;r&&!r.contains(t);)r=r.parentElement;return r}(e[t-1],e[t]);n&&r.add(n)}r.forEach(e=>t.observe(e,{childList:!0}))}(i),v.current=l,M.current=!1,c&&(p.forEach(e=>e(o)),h(o))});(0,a.useIsoLayoutEffect)(()=>(!M.current&&v.current&&R(v.current),()=>{d.current=[],f&&(f.current=[])}),[d,f,R]),(0,a.useIsoLayoutEffect)(()=>{M.current&&S()}),(0,a.useIsoLayoutEffect)(()=>()=>{x.current?.disconnect(),M.current=!0},[]);let w=(0,n.useStableCallback)(e=>(p.add(e),()=>{p.delete(e)})),I=t.useMemo(()=>({register:E,unregister:A,subscribeMapChange:w,nextIndexRef:y}),[E,A,w,y]);return(0,i.jsx)(l.CompositeListContext.Provider,{value:I,children:c})}])},545356,e=>{"use strict";e.i(247167);var t=e.i(271645);let r=t.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});e.s(["CompositeListContext",0,r,"useCompositeListContext",0,function(){return t.useContext(r)}])},673553,e=>{"use strict";var t=e.i(271645),r=e.i(146376),n=e.i(545356);e.s(["useCompositeListItem",0,function(e={}){let{guess:a,label:l,metadata:i,textRef:o,index:s}=e,{register:u,unregister:c,subscribeMapChange:d,nextIndexRef:f}=(0,n.useCompositeListContext)(),m=t.useRef(-1),[h,g]=t.useState(null==s&&a?()=>{if(-1===m.current){let e=f.current;f.current+=1,m.current=e}return m.current}:-1),p=s??h,b=t.useRef(null),y=t.useCallback(e=>{let t=b.current;t&&c(t),b.current=e,e&&u(e,{metadata:i??null,index:s??null,label:l,textRef:o})},[s,u,c,i,l,o]);return(0,r.useIsoLayoutEffect)(()=>{if(null==s)return d(e=>{let t=b.current?e.get(b.current)?.index:null;null!=t&&g(t)})},[s,d]),{ref:y,index:p}}])},264042,e=>{"use strict";var t=e.i(333848),r=e.i(328744);e.s(["isMouseWithinBounds",0,function(e,n){let a=function(e){let n=e.getBoundingClientRect(),a=(0,t.ownerWindow)(e);if(r.platform.env.jsdom)return n;let l=a.getComputedStyle(e,"::before"),i=a.getComputedStyle(e,"::after");if("none"===l.content&&"none"===i.content)return n;let o=parseFloat(l.width)||0,s=parseFloat(l.height)||0,u=parseFloat(i.width)||0,c=parseFloat(i.height)||0,d=Math.max(n.width,o,u),f=Math.max(n.height,s,c),m=d-n.width,h=f-n.height;return{left:n.left-m/2,right:n.right+m/2,top:n.top-h/2,bottom:n.bottom+h/2}}(n);return e.clientX>=a.left-5&&e.clientX<=a.right+5&&e.clientY>=a.top-5&&e.clientY<=a.bottom+5}])},33383,e=>{"use strict";var t=e.i(271645),r=e.i(108868),n=e.i(145484),a=e.i(146376);e.s(["useAnchoredPopupScrollLock",0,function(e,l,i,o){let[s,u]=t.useState(!1);(0,a.useIsoLayoutEffect)(()=>{if(!e||!l||null==i)return void u(!1);let t=(0,r.ownerDocument)(i).documentElement.clientWidth,n=i.offsetWidth;u(t>0&&n>0&&n>=t-20)},[e,l,i]),(0,n.useScrollLock)(e&&(!l||s),o)}])},716327,e=>{"use strict";var t=e.i(456420);let r={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};r.node;let n=(0,t.default)(r);e.s(["ChevronDown",0,n],716327)},986253,e=>{"use strict";var t=e.i(456420);let r={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};r.node;let n=(0,t.default)(r);e.s(["default",0,n])},867927,e=>{"use strict";var t=e.i(986253);e.s(["ChevronRight",()=>t.default])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,660302,213377,e=>{"use strict";var t=e.i(843476),n=e.i(647163);let r={muted:{rest:"text-muted-foreground",under:"text-muted-foreground/60 dark:text-muted-foreground",band:"via-foreground"},waiting:{rest:n.WAITING_INK,under:"text-amber-700/60 dark:text-amber-400",band:"via-amber-950 dark:via-amber-100"}};e.s(["ShinyText",0,function({text:e,tone:a="muted",motion:i="shine",speed:o=2.4,className:u}){let{rest:l,under:s,band:c}=r[a];return"pulse"===i?(0,t.jsx)("span",{"data-slot":"shiny-text",className:(0,n.cn)("inline-block max-w-full animate-pulse motion-reduce:animate-none",l,u),children:e}):(0,t.jsxs)("span",{"data-slot":"shiny-text",className:(0,n.cn)("relative inline-block max-w-full",s,u),children:[e,(0,t.jsx)("span",{"aria-hidden":!0,style:{animationDuration:`${o}s`},className:(0,n.cn)("pointer-events-none absolute inset-0 animate-shine overflow-hidden bg-linear-120 from-transparent from-35% via-50% to-transparent to-65% bg-size-[200%_auto] bg-clip-text text-transparent p-[inherit] select-none [text-overflow:inherit] motion-reduce:hidden",c),children:e})]})}],660302),e.s(["STUDIO_TOOLS",0,{generate_image:"generate_image",generate_speech:"generate_speech",transcribe:"transcribe",generate_video:"generate_video"},"TOOL_NAMES",0,{memory_recall:"memory_recall",memory_remember:"memory_remember",memory_forget:"memory_forget",memory_conversation:"memory_conversation",bash:"bash",write_file:"write_file",tool_search:"tool_search",tool_call:"tool_call",load_skill:"load_skill",web_search:"web_search",delegate:"delegate",thread:"thread",send_message:"send_message",end_call:"end_call"}],213377)},127341,e=>{"use strict";var t,n=e.i(843476);e.s([],559657),e.i(559657);var r=e.i(271645),a=e.i(951437),i=e.i(146376),o=e.i(667865),u=e.i(552245),l=e.i(53687),s=e.i(733332);let c=r.createContext(void 0);function d(){let e=r.useContext(c);if(void 0===e)throw Error((0,s.default)(64));return e}let f={tabActivationDirection:e=>({"data-activation-direction":e})};var g=e.i(675606),h=e.i(56434);let m=r.forwardRef(function(e,t){let{className:s,defaultValue:d=0,onValueChange:m,orientation:v="horizontal",render:w,value:x,style:y,...M}=e,k=void 0!==e.defaultValue,R=r.useRef([]),[E,S]=r.useState(()=>new Map),[C,D]=(0,a.useControlled)({controlled:x,default:d,name:"Tabs",state:"value"}),T=void 0!==x,[O,I]=r.useState(()=>new Map),_=r.useRef(void 0),L=r.useCallback(e=>b(O,e),[O]),[N,P]=r.useState(()=>({previousValue:C,tabActivationDirection:"none"})),{previousValue:A,tabActivationDirection:z}=N,H=z,Y=!1;A!==C&&(H=p(A,C,v,O),Y=null!=A&&null!=C&&null==L(C));let F=Y?A:C,W=A!==F||z!==H;(0,i.useIsoLayoutEffect)(()=>{W&&P({previousValue:F,tabActivationDirection:H})},[F,W,H]);let j=(0,o.useStableCallback)((e,t)=>{t.activationDirection=p(C,e,v,O),m?.(e,t),t.isCanceled||D(e)}),B=(0,o.useStableCallback)((e,t)=>{m?.(e,(0,g.createChangeEventDetails)(t,void 0,void 0,{activationDirection:"none"}))}),$=(0,o.useStableCallback)((e,t)=>(S(n=>{let r=new Map(n);return r.set(e,t),r}),()=>{S(n=>{if(n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})})),q=r.useCallback(e=>E.get(e),[E]),G=r.useCallback(e=>{for(let t of O.values())if(e===t.value)return t.id},[O]),V=r.useMemo(()=>({getTabElementBySelectedValue:L,getTabIdByPanelValue:G,getTabPanelIdByValue:q,onValueChange:j,orientation:v,registerMountedTabPanel:$,setTabMap:I,tabActivationDirection:H,value:C}),[L,G,q,j,v,$,I,H,C]),K=r.useMemo(()=>{for(let e of O.values())if(e.value===C)return e},[O,C]),Q=r.useMemo(()=>{for(let e of O.values())if(!e.disabled)return e.value},[O]),U=r.useRef(!k),X=r.useRef(d),Z=r.useRef(k),J=r.useRef(!1);(0,i.useIsoLayoutEffect)(()=>{if(T)return;function e(e,t){D(e),P({previousValue:e,tabActivationDirection:"none"}),B(e,t),U.current=!1}if(0===O.size){J.current&&null!==C&&!_.current?.isConnected&&e(null,h.REASONS.missing);return}J.current=!0,_.current=O.keys().next().value;let t=K?.disabled,n=null==K&&null!==C;if(t||C!==X.current||(Z.current=!1),Z.current&&t&&C===X.current)return;let r=U.current;if(t||n){let n=Q??null;if(C===n){U.current=!1;return}let a=h.REASONS.missing;r?a=h.REASONS.initial:t&&(a=h.REASONS.disabled),e(n,a);return}r&&null!=K&&(B(C,h.REASONS.initial),U.current=!1)},[Q,T,B,K,D,O,C]);let ee={orientation:v,tabActivationDirection:H},et=(0,u.useRenderElement)("div",e,{state:ee,ref:t,props:M,stateAttributesMapping:f});return(0,n.jsx)(c.Provider,{value:V,children:(0,n.jsx)(l.CompositeList,{elementsRef:R,children:et})})});function b(e,t){for(let[n,r]of e.entries())if(t===r.value)return n;return null}function p(e,t,n,r){if(null==e||null==t)return"none";let[a,i,o]="horizontal"===n?["left","left","right"]:["top","up","down"],u=b(r,e),l=b(r,t);if(null==u||null==l)return u!==l&&("number"==typeof e||"string"==typeof e)&&typeof e==typeof t?t>e?o:i:"none";let s=u.getBoundingClientRect()[a],c=l.getBoundingClientRect()[a];return c<s?i:c>s?o:"none"}var v=e.i(108868),w=e.i(788015),x=e.i(540886),y=e.i(370359),M=e.i(395530),k=e.i(838452);let R=r.createContext(void 0);function E(){let e=r.useContext(R);if(void 0===e)throw Error((0,s.default)(65));return e}var S=e.i(584446);let C=r.forwardRef(function(e,t){let{className:n,disabled:a=!1,render:l,value:s,id:c,nativeButton:m=!0,style:b,...p}=e,{value:R,getTabPanelIdByValue:C,onValueChange:D,orientation:T,tabActivationDirection:O}=d(),{activateOnFocus:I,registerTabResizeObserverElement:_,tabsListElement:L}=E(),{highlightedIndex:N,onHighlightedIndexChange:P}=(0,k.useCompositeRootContext)(),A=(0,w.useBaseUiId)(c),z=r.useMemo(()=>({disabled:a,id:A,value:s}),[a,A,s]),{compositeProps:H,compositeRef:Y,index:F}=(0,M.useCompositeItem)({metadata:z}),W=s===R,j=r.useRef(!1),B=r.useRef(null),$=(0,o.useStableCallback)(e=>{B.current?.(),B.current=e?_(e):null});(0,i.useIsoLayoutEffect)(()=>{if(j.current){j.current=!1;return}if(W&&F>-1&&N!==F){if(null!=L){let e=(0,S.activeElement)((0,v.ownerDocument)(L));if(e&&(0,S.contains)(L,e))return}a||P(F)}},[W,F,N,P,a,L]);let{getButtonProps:q,buttonRef:G}=(0,x.useButton)({disabled:a,native:m,focusableWhenDisabled:!0}),V=C(s),K=r.useRef(!1),Q=r.useRef(!1);function U(e){D(s,(0,g.createChangeEventDetails)(h.REASONS.none,e.nativeEvent,void 0,{activationDirection:"none"}))}return(0,u.useRenderElement)("button",e,{state:{disabled:a,active:W,orientation:T,tabActivationDirection:O},ref:[t,G,Y,$],props:[H,{role:"tab","aria-controls":V,"aria-selected":W,id:A,onClick:function(e){W||a||U(e)},onFocus:function(e){W||a||I&&(!K.current||Q.current)&&U(e)},onPointerDown:function(e){if(W||a)return;K.current=!0,Q.current=0===e.button;let t=(0,v.ownerDocument)(e.currentTarget);function n(){K.current=!1,Q.current=!1,t.removeEventListener("pointerup",n),t.removeEventListener("pointercancel",n)}t.addEventListener("pointerup",n),t.addEventListener("pointercancel",n)},[y.ACTIVE_COMPOSITE_ITEM]:W?"":void 0,onKeyDownCapture(){j.current=!0}},p,q],stateAttributesMapping:f})});var D=e.i(229315),T=e.i(333848),O=e.i(802239),I=e.i(956789);function _(){return I.NOOP}function L(){return!1}function N(){return!0}let P=r.createContext(void 0),A={disableStyleElements:!1};function z(e){let{script:t}=e,{nonce:a}=r.useContext(P)??A;return(0,O.useSyncExternalStore)(_,L,N)?(0,n.jsx)("script",{nonce:a,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}var H=e.i(73364),Y=e.i(49072);let F={...f,activeTabPosition:()=>null,activeTabSize:()=>null},W=r.forwardRef(function(e,a){let{className:i,render:o,renderBeforeHydration:l=!1,style:s,...c}=e,{getTabElementBySelectedValue:f,orientation:g,tabActivationDirection:h,value:m}=d(),{tabsListElement:b,registerIndicatorUpdateListener:p}=E(),v=function(){let[,e]=r.useState({});return r.useCallback(()=>{e({})},[])}();r.useEffect(()=>p(v),[p,v]);let w=0,x=0,y=0,M=0,k=0,R=0,S=!1;if(null!=m&&null!=b){let e=f(m);if(null!=e){S=!0;let{width:t,height:n}=(0,H.getCssDimensions)(e),{width:r,height:a}=(0,H.getCssDimensions)(b),i=e.getBoundingClientRect(),o=b.getBoundingClientRect(),u=r>0?o.width/r:1,l=a>0?o.height/a:1,s=function(e,t){let n=j(e),r=j(t),a=n.left-r.left-t.clientLeft,i=n.top-r.top-t.clientTop,o=(0,D.getParentNode)(e);for(;(0,D.isHTMLElement)(o)&&o!==t&&!(0,D.isLastTraversableNode)(o);)a-=o.scrollLeft,i-=o.scrollTop,o=(0,D.getParentNode)(o);return{left:a,top:i}}(e,b);w=s.left,y=s.top;let c=(i.left-o.left)/u+b.scrollLeft-b.clientLeft,d=(i.top-o.top)/l+b.scrollTop-b.clientTop,f=function(e){let t=(0,T.ownerWindow)(e).getComputedStyle(e),{x:n,y:r}=(0,Y.getElementTransform)(e,t),a=n,i=r,{translate:o}=t;if(o&&"none"!==o){let t=o.split(" ");a+=B(t[0],e.offsetWidth),i+=B(t[1],e.offsetHeight)}return{x:a,y:i}}(e);2>=Math.abs(c-f.x-w)&&2>=Math.abs(d-f.y-y)&&(w=c,y=d),k=t,R=n,x=b.scrollWidth-w-k,M=b.scrollHeight-y-R}}let C=S?{left:w,right:x,top:y,bottom:M}:null,O=S?{width:k,height:R}:null,I=S?{"--active-tab-left":`${w}px`,"--active-tab-right":`${x}px`,"--active-tab-top":`${y}px`,"--active-tab-bottom":`${M}px`,"--active-tab-width":`${k}px`,"--active-tab-height":`${R}px`}:void 0,_=S&&k>0&&R>0,L=(0,u.useRenderElement)("span",e,{state:{orientation:g,activeTabPosition:C,activeTabSize:O,tabActivationDirection:h},ref:a,props:[{role:"presentation",style:I,hidden:!_},c,{suppressHydrationWarning:!0}],stateAttributesMapping:F});return null==m?null:(0,n.jsxs)(r.Fragment,{children:[L,l&&(t||(t=(0,n.jsx)(z,{script:""})))]})});function j(e){let t=0,n=0,r=e;for(;null!=r;){t+=r.offsetLeft,n+=r.offsetTop;let e=r.offsetParent;null!=e&&(t+=e.clientLeft,n+=e.clientTop),r=e}return{left:t,top:n}}function B(e,t){if(!e)return 0;let n=parseFloat(e);return Number.isFinite(n)?e.endsWith("%")?n/100*t:n:0}var $=e.i(144394),q=e.i(474354),G=e.i(137584),V=e.i(223910),K=e.i(673553),Q=e.i(253335);Q.TransitionStatusDataAttributes.startingStyle,Q.TransitionStatusDataAttributes.endingStyle;let U={...f,...q.transitionStatusMapping},X=r.forwardRef(function(e,t){let{className:n,value:a,render:o,keepMounted:l=!1,style:s,...c}=e,{value:f,getTabIdByPanelValue:g,orientation:h,tabActivationDirection:m,registerMountedTabPanel:b}=d(),p=(0,w.useBaseUiId)(),{ref:v,index:x}=(0,K.useCompositeListItem)(),y=a===f,{mounted:M,transitionStatus:k,setMounted:R}=(0,V.useTransitionStatus)(y),E=!M,S=g(a),C=r.useRef(null),D=(0,u.useRenderElement)("div",e,{state:{hidden:E,orientation:h,tabActivationDirection:m,transitionStatus:k},ref:[t,v,C],props:[{"aria-labelledby":S,hidden:E,id:p,role:"tabpanel",tabIndex:y?0:-1,inert:(0,$.inertValue)(!y),"data-index":x},c],stateAttributesMapping:U});return((0,G.useOpenChangeComplete)({open:y,ref:C,onComplete(){y||R(!1)}}),(0,i.useIsoLayoutEffect)(()=>{if(null!=p&&(!E||l))return b(a,p)},[E,l,a,p,b]),l||M)?D:null});var Z=e.i(405934);let J=r.forwardRef(function(e,t){let{activateOnFocus:a=!1,className:u,loopFocus:l=!0,render:s,style:c,...g}=e,{orientation:h,setTabMap:m,tabActivationDirection:b}=d(),[p,v]=r.useState(0),[w,x]=r.useState(null),y=r.useRef(new Set),M=r.useRef(new Set),k=r.useRef(null);(0,i.useIsoLayoutEffect)(()=>{if("u"<typeof ResizeObserver)return;let e=new ResizeObserver(()=>{y.current.forEach(e=>{e()})});return k.current=e,w&&e.observe(w),M.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),k.current=null}},[w]);let E=(0,o.useStableCallback)(e=>(y.current.add(e),()=>{y.current.delete(e)})),S=(0,o.useStableCallback)(e=>(M.current.add(e),k.current?.observe(e),()=>{M.current.delete(e),k.current?.unobserve(e)})),C=r.useMemo(()=>({activateOnFocus:a,registerIndicatorUpdateListener:E,registerTabResizeObserverElement:S,tabsListElement:w}),[a,E,S,w]);return(0,n.jsx)(R.Provider,{value:C,children:(0,n.jsx)(Z.CompositeRoot,{render:s,className:u,style:c,state:{orientation:h,tabActivationDirection:b},refs:[t,x],props:[{"aria-orientation":"vertical"===h?"vertical":void 0,role:"tablist"},g],stateAttributesMapping:f,highlightedIndex:p,enableHomeAndEndKeys:!0,loopFocus:l,orientation:h,onHighlightedIndexChange:v,onMapChange:m,disabledIndices:I.EMPTY_ARRAY})})});e.s(["Indicator",0,W,"List",0,J,"Panel",0,X,"Root",0,m,"Tab",0,C],69281);var ee=e.i(69281),ee=ee,et=e.i(225913),en=e.i(647163);let er=(0,et.cva)("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});e.s(["Tabs",0,function({className:e,orientation:t="horizontal",...r}){return(0,n.jsx)(ee.Root,{"data-slot":"tabs","data-orientation":t,className:(0,en.cn)("group/tabs flex gap-2 data-horizontal:flex-col",e),...r})},"TabsContent",0,function({className:e,...t}){return(0,n.jsx)(ee.Panel,{"data-slot":"tabs-content",className:(0,en.cn)("flex-1 text-sm outline-none",e),...t})},"TabsList",0,function({className:e,variant:t="default",...r}){return(0,n.jsx)(ee.List,{"data-slot":"tabs-list","data-variant":t,className:(0,en.cn)(er({variant:t}),e),...r})},"TabsTrigger",0,function({className:e,...t}){return(0,n.jsx)(ee.Tab,{"data-slot":"tabs-trigger",className:(0,en.cn)("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...t})}],127341)},245629,401851,980797,383482,e=>{"use strict";var t=e.i(55545),n=e.i(455024),r=e.i(99151),a=e.i(845110),i=e.i(234662),o=e.i(281092);function u(e,t){let n=(0,o.toDate)(e,t?.in);return n.setHours(0,0,0,0),n}function l(e,t){let r=(0,n.getDefaultOptions)(),a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=(0,o.toDate)(e,t?.in),u=i.getDay();return i.setDate(i.getDate()-(7*(u<a)+u-a)),i.setHours(0,0,0,0),i}function s(e,t){return l(e,{...t,weekStartsOn:1})}var c=e.i(677241);function d(e,t){let n=(0,o.toDate)(e,t?.in),r=n.getFullYear(),a=(0,c.constructFrom)(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);let i=s(a),u=(0,c.constructFrom)(n,0);u.setFullYear(r,0,4),u.setHours(0,0,0,0);let l=s(u);return n.getTime()>=i.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function f(e,t){let r=(0,o.toDate)(e,t?.in),a=r.getFullYear(),i=(0,n.getDefaultOptions)(),u=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,s=(0,c.constructFrom)(t?.in||e,0);s.setFullYear(a+1,0,u),s.setHours(0,0,0,0);let d=l(s,t),f=(0,c.constructFrom)(t?.in||e,0);f.setFullYear(a,0,u),f.setHours(0,0,0,0);let g=l(f,t);return+r>=+d?a+1:+r>=+g?a:a-1}function g(e,t){let n=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+n}let h={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return g("yy"===t?r%100:r,t.length)},M(e,t){let n=e.getMonth();return"M"===t?String(n+1):g(n+1,2)},d:(e,t)=>g(e.getDate(),t.length),a(e,t){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>g(e.getHours()%12||12,t.length),H:(e,t)=>g(e.getHours(),t.length),m:(e,t)=>g(e.getMinutes(),t.length),s:(e,t)=>g(e.getSeconds(),t.length),S(e,t){let n=t.length;return g(Math.trunc(e.getMilliseconds()*Math.pow(10,n-3)),t.length)}},m={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){let t=e.getFullYear();return n.ordinalNumber(t>0?t:1-t,{unit:"year"})}return h.y(e,t)},Y:function(e,t,n,r){let a=f(e,r),i=a>0?a:1-a;return"YY"===t?g(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):g(i,t.length)},R:function(e,t){return g(d(e),t.length)},u:function(e,t){return g(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return g(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return g(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){let r=e.getMonth();switch(t){case"M":case"MM":return h.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){let r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return g(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){let u,s,d,h,m,b=Math.round((l(u=(0,o.toDate)(e,a?.in),a)-(s=(0,n.getDefaultOptions)(),d=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,h=f(u,a),(m=(0,c.constructFrom)(a?.in||u,0)).setFullYear(h,0,d),m.setHours(0,0,0,0),l(m,a)))/i.millisecondsInWeek)+1;return"wo"===t?r.ordinalNumber(b,{unit:"week"}):g(b,t.length)},I:function(e,t,n){let r,a,u,l=Math.round((s(r=(0,o.toDate)(e,void 0))-(a=d(r,void 0),(u=(0,c.constructFrom)(r,0)).setFullYear(a,0,4),u.setHours(0,0,0,0),s(u)))/i.millisecondsInWeek)+1;return"Io"===t?n.ordinalNumber(l,{unit:"week"}):g(l,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):h.d(e,t)},D:function(e,t,n){let l,s,c=function(e,t){let[n,o]=(0,a.normalizeDates)(void 0,e,t),l=u(n),s=u(o);return Math.round((l-(0,r.getTimezoneOffsetInMilliseconds)(l)-(s-(0,r.getTimezoneOffsetInMilliseconds)(s)))/i.millisecondsInDay)}(l=(0,o.toDate)(e,void 0),((s=(0,o.toDate)(l,void 0)).setFullYear(s.getFullYear(),0,1),s.setHours(0,0,0,0),s))+1;return"Do"===t?n.ordinalNumber(c,{unit:"dayOfYear"}):g(c,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){let a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return g(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){let a=e.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return g(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){let r=e.getDay(),a=0===r?7:r;switch(t){case"i":return String(a);case"ii":return g(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){let r,a=e.getHours();switch(r=12===a?"noon":0===a?"midnight":a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){let r,a=e.getHours();switch(r=a>=17?"evening":a>=12?"afternoon":a>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return h.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):h.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):g(r,t.length)},k:function(e,t,n){let r=e.getHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):g(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):h.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):h.s(e,t)},S:function(e,t){return h.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return p(r);case"XXXX":case"XX":return v(r);default:return v(r,":")}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"x":return p(r);case"xxxx":case"xx":return v(r);default:return v(r,":")}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+b(r,":");default:return"GMT"+v(r,":")}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+b(r,":");default:return"GMT"+v(r,":")}},t:function(e,t,n){return g(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return g(+e,t.length)}};function b(e,t=""){let n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),i=r%60;return 0===i?n+String(a):n+String(a)+t+g(i,2)}function p(e,t){return e%60==0?(e>0?"-":"+")+g(Math.abs(e)/60,2):v(e,t)}function v(e,t=""){let n=Math.abs(e);return(e>0?"-":"+")+g(Math.trunc(n/60),2)+t+g(n%60,2)}let w=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},x=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},y={p:x,P:(e,t)=>{let n,r=e.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return w(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",w(a,t)).replace("{{time}}",x(i,t))}},M=/^D+$/,k=/^Y+$/,R=["D","DD","YY","YYYY"],E=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,S=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,C=/^'([^]*?)'?$/,D=/''/g,T=/[a-zA-Z]/;function O(e,r,a){let i=(0,n.getDefaultOptions)(),u=a?.locale??i.locale??t.defaultLocale,l=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,s=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,c=(0,o.toDate)(e,a?.in);if(!(c instanceof Date||"object"==typeof c&&"[object Date]"===Object.prototype.toString.call(c))&&"number"!=typeof c||isNaN(+(0,o.toDate)(c)))throw RangeError("Invalid time value");let d=r.match(S).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,y[t])(e,u.formatLong):e}).join("").match(E).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t){var n;let t;return{isToken:!1,value:(t=(n=e).match(C))?t[1].replace(D,"'"):n}}if(m[t])return{isToken:!0,value:e};if(t.match(T))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});u.localize.preprocessor&&(d=u.localize.preprocessor(c,d));let f={firstWeekContainsDate:l,weekStartsOn:s,locale:u};return d.map(t=>{if(!t.isToken)return t.value;let n=t.value;return(!a?.useAdditionalWeekYearTokens&&k.test(n)||!a?.useAdditionalDayOfYearTokens&&M.test(n))&&function(e,t,n){var r,a,i;let o,u=(r=e,a=t,i=n,o="Y"===r[0]?"years":"days of the month",`Use \`${r.toLowerCase()}\` instead of \`${r}\` (in \`${a}\`) for formatting ${o} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(console.warn(u),R.includes(e))throw RangeError(u)}(n,r,String(e)),(0,m[n[0]])(c,n,u.localize,f)}).join("")}e.s(["format",0,O],401851);var I=e.i(24708);function _(e,t,n){let[r,i]=(0,a.normalizeDates)(n?.in,e,t);return+u(r)==+u(i)}function L(e,t){return _((0,c.constructFrom)(t?.in||e,e),(0,I.constructNow)(t?.in||e))}function N(e,t){var n,r;let a;return _((0,c.constructFrom)(t?.in||e,e),(n=(0,I.constructNow)(t?.in||e),r=void 0,a=(0,o.toDate)(n,r?.in),isNaN(-1)?(0,c.constructFrom)(r?.in||n,NaN):(a.setDate(a.getDate()+-1),a)))}e.s(["isToday",0,L],980797),e.s(["isYesterday",0,N],383482);var P=e.i(681307);let A=P.z.union([P.z.date(),P.z.iso.datetime()]),z=e=>new Date(e);e.s(["DateLikeSchema",0,A,"shortAgo",0,function(e,t=Date.now()){let n=Math.max(0,Math.round((t-z(e).getTime())/1e3));if(n<60)return"now";let r=Math.round(n/60);if(r<60)return`${r}m`;let a=Math.round(r/60);return a<24?`${a}h`:`${Math.round(a/24)}d`},"toDate",0,z,"whenOf",0,function(e){let t=z(e),n=O(t,"HH:mm");return L(t)?n:N(t)?`Yesterday ${n}`:`${O(t,"MMM d")} \xb7 ${n}`}],245629)},370359,405934,e=>{"use strict";let t="data-composite-item-active";e.s(["ACTIVE_COMPOSITE_ITEM",0,t],370359);var n=e.i(271645),r=e.i(956789),a=e.i(53687),i=e.i(667865),o=e.i(828918),u=e.i(146376),l=e.i(673327),s=e.i(621082),c=e.i(584446),d=e.i(838452),f=e.i(552245),g=e.i(872855),h=e.i(843476);e.s(["CompositeRoot",0,function(e){let{render:m,className:b,style:p,refs:v=r.EMPTY_ARRAY,props:w=r.EMPTY_ARRAY,state:x=r.EMPTY_OBJECT,stateAttributesMapping:y,highlightedIndex:M,onHighlightedIndexChange:k,orientation:R,grid:E,loopFocus:S,onLoop:C,enableHomeAndEndKeys:D,onMapChange:T,stopEventPropagation:O=!0,rootRef:I,disabledIndices:_,modifierKeys:L,highlightItemOnHover:N=!1,tag:P="div",...A}=e,{props:z,highlightedIndex:H,onHighlightedIndexChange:Y,elementsRef:F,onMapChange:W,relayKeyboardEvent:j}=function(e){let{loopFocus:a=!0,orientation:d="both",grid:f,onLoop:g,direction:h,highlightedIndex:m,onHighlightedIndexChange:b,rootRef:p,enableHomeAndEndKeys:v=!1,stopEventPropagation:w,disabledIndices:x,modifierKeys:y=r.EMPTY_ARRAY}=e,[M,k]=n.useState(0),R=null!=f,E=n.useRef(null),S=(0,o.useMergedRefs)(E,p),C=n.useRef([]),D=n.useRef(!1),T=n.useRef(null),O=m??M,I=(0,i.useStableCallback)((e,t=!1)=>{if(T.current=C.current[e]??null,(b??k)(e),t){let t=C.current[e];(0,l.scrollIntoViewIfNeeded)(E.current,t,h,d)}}),_=(0,i.useStableCallback)(e=>{if(0===e.size)return;if(D.current){let e=C.current,n=e.indexOf(T.current);if(-1===n){let n=e[O];!n||(0,s.isListIndexDisabled)(e,O,x)?I(function(e,n){let r=-1;for(let a=0;a<e.length;a+=1){let i=e[a];if(!(!i||(0,s.isListIndexDisabled)(e,a,n))){if(i.hasAttribute(t))return a;-1===r&&(r=a)}}return Math.max(r,0)}(e,x)):T.current=n}else n!==O&&I(n);return}D.current=!0;let n=Array.from(e.keys()),r=n.find(e=>e?.hasAttribute(t))??null,a=r?e.get(r)?.index??-1:-1;if(-1!==a)I(a);else if((0,s.isListIndexDisabled)(n,O,x)){let e=(0,s.findNonDisabledListIndex)(n,{disabledIndices:x});(0,s.isIndexOutOfListBounds)(n,e)||I(e)}(0,l.scrollIntoViewIfNeeded)(E.current,r,h,d)});(0,u.useIsoLayoutEffect)(()=>{if(null==x||null!=m||!D.current)return;let e=C.current;if((0,s.isListIndexDisabled)(e,O,x)){let t=(0,s.findNonDisabledListIndex)(e,{disabledIndices:x});(0,s.isIndexOutOfListBounds)(e,t)||I(t)}},[x,m,O,C,I]);let L=(0,i.useStableCallback)((e,t,n)=>g?g(e,t,n,C):n),N=(0,i.useStableCallback)(e=>{let t=e.key===l.HOME||e.key===l.END;if(!l.COMPOSITE_KEYS.has(e.key)||!v&&t||function(e,t){for(let n of l.MODIFIER_KEYS)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}(e,y)||!E.current)return;let n="rtl"===h,r=n?l.ARROW_LEFT:l.ARROW_RIGHT,i=n?l.ARROW_RIGHT:l.ARROW_LEFT,o="vertical"===d?l.ARROW_DOWN:r,u="vertical"===d?l.ARROW_UP:i,m=(0,c.getTarget)(e.nativeEvent);if(null!=m&&(0,l.isNativeInput)(m)&&!(null==m||m.hasAttribute("disabled")||"true"===m.getAttribute("aria-disabled"))){let t=m.selectionStart,n=m.selectionEnd,r=m.value;if(null==t||e.shiftKey||t!==n||e.key!==u&&t<r.length||e.key!==o&&t>0)return}let b=O,p=(0,s.getMinListIndex)(C,x),M=(0,s.getMaxListIndex)(C,x);null!=f&&(b=f({disabledIndices:x,elementsRef:C,event:e,highlightedIndex:O,loopFocus:a,maxIndex:M,minIndex:p,onLoop:L,orientation:d,rtl:n}));let k="vertical"!==d&&e.key===r||"horizontal"!==d&&e.key===l.ARROW_DOWN,S="vertical"!==d&&e.key===i||"horizontal"!==d&&e.key===l.ARROW_UP;v&&(e.key===l.HOME?b=p:e.key===l.END&&(b=M)),b===O&&(k||S)&&(a&&b===M&&k?(b=p,g&&(b=g(e,O,b,C))):a&&b===p&&S?(b=M,g&&(b=g(e,O,b,C))):b=(0,s.findNonDisabledListIndex)(C.current,{startingIndex:b,decrement:S,disabledIndices:x})),b===O||(0,s.isIndexOutOfListBounds)(C.current,b)||(w&&e.stopPropagation(),(R||t||k||S)&&e.preventDefault(),I(b,!0),queueMicrotask(()=>{C.current[b]?.focus()}))});return{props:{ref:S,onFocus(e){let t=E.current,n=(0,c.getTarget)(e.nativeEvent);t&&null!=n&&(0,l.isNativeInput)(n)&&n.setSelectionRange(0,n.value.length)},onKeyDown:N},highlightedIndex:O,onHighlightedIndexChange:I,elementsRef:C,onMapChange:_,relayKeyboardEvent:N}}({grid:E,loopFocus:S,onLoop:C,orientation:R,highlightedIndex:M,onHighlightedIndexChange:k,rootRef:I,stopEventPropagation:O,enableHomeAndEndKeys:D,direction:(0,g.useDirection)(),disabledIndices:_,modifierKeys:L}),B=(0,f.useRenderElement)(P,e,{state:x,ref:v,props:[z,...w,A],stateAttributesMapping:y}),$=n.useMemo(()=>({highlightedIndex:H,onHighlightedIndexChange:Y,highlightItemOnHover:N,relayKeyboardEvent:j}),[H,Y,N,j]);return(0,h.jsx)(d.CompositeRootContext.Provider,{value:$,children:(0,h.jsx)(a.CompositeList,{elementsRef:F,onMapChange:e=>{T?.(e),W(e)},children:B})})}],405934)},96892,e=>{"use strict";var t=e.i(456420);let n={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};n.node;let r=(0,t.default)(n);e.s(["ArrowUp",0,r],96892)},632781,661504,e=>{"use strict";var t=e.i(758379);e.s(["Loader2",()=>t.default],632781);var n=e.i(271645),r=e.i(699018),a=e.i(677309),i=e.i(271235),o=e.i(802239),u=e.i(646192);let l=Promise.resolve(),s=(0,i.withMiddleware)(r.u,e=>(t,r,i)=>{let s,c=(0,n.useRef)(!1),{cache:d,initialSize:f=1,revalidateAll:g=!1,persistSize:h=!1,revalidateFirstPage:m=!0,revalidateOnMount:b=!1,parallel:p=!1}=i,[,,,v]=a.a.get(a.o);try{(s=(0,a.s)(t?t(0,null):null)[0])&&(s=u.INFINITE_PREFIX+s)}catch(e){}let[w,x,y]=(0,a.c)(d,s),M=(0,n.useCallback)(()=>(0,a.i)(w()._l)?f:w()._l,[d,s,f]);(0,o.useSyncExternalStore)((0,n.useCallback)(e=>s?y(s,()=>{e()}):()=>{},[d,s]),M,M);let k=(0,n.useCallback)(()=>{let e=w()._l;return(0,a.i)(e)?f:e},[s,f]),R=(0,n.useRef)(k());(0,a.u)(()=>{if(!c.current){c.current=!0;return}s&&x({_l:h?R.current:k()})},[s,d]);let E=b&&!c.current,S=e(s,async e=>{let n=w()._i,o=w()._r,u=a.a.get(d),l=u[8],s=()=>u[8]!==l;x({_r:a.U});let c=[],f=k(),[h]=(0,a.c)(d,e),b=h().data,y=[],M=null;for(let e=0;e<f;++e){let[u,l]=(0,a.s)(t(e,p?null:M));if(!u)break;let[f,h]=(0,a.c)(d,u),w=f().data,x=g||n||(0,a.i)(w)||m&&!e&&!(0,a.i)(b)||E||b&&!(0,a.i)(b[e])&&!i.compare(b[e],w);if(r&&("function"==typeof o?o(w,l):x)){let t=async()=>{if(u in v){let e=v[u];delete v[u],w=await e}else w=await r(l);s()||h({data:w,_k:l}),c[e]=w};p?y.push(t):await t()}else c[e]=w;p||(M=w)}return p&&await Promise.all(y.map(e=>e())),s()||x({_i:a.U}),c},i),C=(0,n.useCallback)(function(e,t){let n="boolean"==typeof t?{revalidate:t}:t||{},r=!1!==n.revalidate;return s?(r&&((0,a.i)(e)?x({_i:!0,_r:n.revalidate}):x({_i:!1,_r:n.revalidate})),arguments.length?S.mutate(e,{...n,revalidate:r}):S.mutate()):l},[s,d]),D=(0,n.useCallback)(e=>{let n;if(!s)return l;let[,r]=(0,a.c)(d,s);if((0,a.e)(e)?n=e(k()):"number"==typeof e&&(n=e),"number"!=typeof n)return l;r({_l:n}),R.current=n;let i=[],[o]=(0,a.c)(d,s),u=null;for(let e=0;e<n;++e){let[n]=(0,a.s)(t(e,u)),[r]=(0,a.c)(d,n),l=n?r().data:a.U;if((0,a.i)(l))return C(o().data);i.push(l),u=l}return C(i)},[s,d,C,k]);return{size:k(),setSize:D,mutate:C,get data(){return S.data},get error(){return S.error},get isValidating(){return S.isValidating},get isLoading(){return S.isLoading}}});var c=e.i(41533),d=e.i(283653);e.s(["useServerPages",0,function(e){let t=e.size??c.PAGE_SIZE,{key:r}=e,{data:a,error:i,isLoading:o,isValidating:u,setSize:l,mutate:f}=s((e,t)=>(0,d.resolveKey)(r(e,t)),d.fetchRoute,{dedupingInterval:500,revalidateOnMount:!0,revalidateOnFocus:!0,revalidateOnReconnect:!0,focusThrottleInterval:1e3,revalidateFirstPage:!1,...e.swr}),g=a??[],h=(0,n.useMemo)(()=>(a??[]).flat(),[a]),m=g.at(-1),b=void 0!==m&&m.length>=t,p=(0,n.useRef)(0),v=u&&g.length>0&&p.current>g.length,w=(0,n.useRef)({isValidating:u,setSize:l,pages:g.length});w.current={isValidating:u,setSize:l,pages:g.length};let x=(0,n.useCallback)(()=>f(),[f]),y=(0,d.resolveKey)(r(0,null)),M="string"==typeof y?y:y?.url;(0,n.useEffect)(()=>{if(M)return(0,d.registerPagedReader)({url:M,refresh:x})},[M,x]);let k=function(e,t={}){let{enabled:r=!0,margin:a="600px",revision:i}=t,o=(0,n.useRef)(e);o.current=e;let u=(0,n.useRef)(null),l=(0,n.useRef)(null),s=(0,n.useCallback)(e=>{u.current=e},[]);return(0,n.useEffect)(()=>{l.current?.disconnect();let e=u.current;if(e&&r)return l.current=new IntersectionObserver(([e])=>{e.isIntersecting&&o.current()},{root:function(e){let t=e.parentElement;for(;t;){let{overflowY:e}=getComputedStyle(t);if(("auto"===e||"scroll"===e)&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return null}(e),rootMargin:a}),l.current.observe(e),()=>l.current?.disconnect()},[r,a,i]),s}(()=>{let e=w.current;e.isValidating||(p.current=e.pages+1,e.setSize(e.pages+1))},{enabled:b,revision:`${g.length}:${u}`});return{items:h,isLoading:o,isLoadingMore:v,error:i,hasMore:b,sentinelRef:k,refresh:x}}],661504)},263676,e=>{"use strict";var t=e.i(814387);e.s(["X",()=>t.default])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,41533,t=>{"use strict";var s=t.i(247167);s.default.env.THURSDAY_APP_DIR?.trim()||s.default.cwd(),s.default.env.THURSDAY_HOME?.trim()||s.default.cwd(),s.default.env.THURSDAY_URL?.trim()||s.default.env.PORT?.trim();let a=".ai-workspace",e={workspace:a,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",skills:{default:"skills",custom:`${a}/.agents/skills`}};t.s(["APP_NAME",0,"Thursday","ARTIFACT_VIEW",0,{rows:200,setFiles:120},"ASCII_FACE",0,{charset:"emojiOnly",fontSize:{default:8,min:4,max:16},density:{default:1.4,min:.6,max:2}},"BOT_RUN",0,{steps:100,compactAt:5e5,compactHeadroom:.8,summaryWords:{min:600,max:3e3,perTokens:200},participants:12,concurrent:4,turns:120,queuedMessages:200,silenceMs:3e5,overflowShrink:.6,retryMs:1e4,compactFiles:40},"BROWSER_SKILL",0,"browser","CALL_END",0,{quietMs:600,unsaidMs:2e3,maxMs:8e3},"CALL_HISTORY_PAGE",0,10,"CALL_IDLE",0,{hangUpMs:3e4,graceMs:15e3,warnMs:1e4,agentSilentMs:3e4},"CALL_RELAY",0,{quietMs:7e3,perTurn:3,readMs:15e3},"IS_DEV",0,!1,"LIVE_CALL",0,{startupMs:3e4,closeMs:15e3,transcriptGapMs:1500,transcriptSaveMs:500,appendMs:15e3,backendOutputTokens:4096,reasoningCheckMs:5e3},"PAGE_SIZE",0,50,"PATHS",0,e,"PROMPT_CROWDED",0,{bots:10,skills:20},"ROOM_KEEP_READ_MS",0,6e5,"STUDIO_SERVER",0,"studio","WORKSPACE_VIEW",0,{rows:200,textMax:524288,elementMax:0x3200000}])},621285,616172,67268,t=>{"use strict";var s=t.i(843476),a=t.i(271645),e=t.i(798120),l=t.i(167881),i=t.i(630374),n=t.i(683408),c=t.i(671428),r=t.i(647163);function h({className:t,...a}){return(0,s.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,s.jsx)("table",{"data-slot":"table",className:(0,r.cn)("w-full caption-bottom text-sm",t),...a})})}function o({className:t,...a}){return(0,s.jsx)("thead",{"data-slot":"table-header",className:(0,r.cn)("[&_tr]:border-b",t),...a})}function m({className:t,...a}){return(0,s.jsx)("tbody",{"data-slot":"table-body",className:(0,r.cn)("[&_tr:last-child]:border-0",t),...a})}function u({className:t,...a}){return(0,s.jsx)("tr",{"data-slot":"table-row",className:(0,r.cn)("border-b border-border/60 transition-colors data-[state=selected]:bg-muted hover:bg-muted/40",t),...a})}function d({className:t,...a}){return(0,s.jsx)("th",{"data-slot":"table-head",className:(0,r.cn)("h-9 px-2 text-left align-middle font-mono text-[11px] font-normal tracking-[0.1em] whitespace-nowrap text-muted-foreground uppercase [&:has([role=checkbox])]:pr-0",t),...a})}function p({className:t,...a}){return(0,s.jsx)("td",{"data-slot":"table-cell",className:(0,r.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0",t),...a})}var k=t.i(41533);let j=t=>`text/${t}; charset=utf-8`,v={md:{kind:"markdown",mime:j("markdown")},markdown:{kind:"markdown",mime:j("markdown")},csv:{kind:"csv",mime:j("csv")},json:{kind:"json",mime:"application/json; charset=utf-8"},txt:{kind:"text",mime:j("plain")},log:{kind:"text",mime:j("plain")},html:{kind:"frame",mime:j("html")},htm:{kind:"frame",mime:j("html")},pdf:{kind:"frame",mime:"application/pdf"},png:{kind:"image",mime:"image/png"},jpg:{kind:"image",mime:"image/jpeg"},jpeg:{kind:"image",mime:"image/jpeg"},gif:{kind:"image",mime:"image/gif"},webp:{kind:"image",mime:"image/webp"},svg:{kind:"image",mime:"image/svg+xml"},mp3:{kind:"audio",mime:"audio/mpeg"},wav:{kind:"audio",mime:"audio/wav"},mp4:{kind:"video",mime:"video/mp4"},webm:{kind:"video",mime:"video/webm"},css:{kind:"none",mime:j("css")},js:{kind:"none",mime:j("javascript")},woff2:{kind:"none",mime:"font/woff2"}},g=t=>v[t.split(".").pop()?.toLowerCase()??""]?.kind??"none",w=Object.entries(v).filter(([,t])=>"none"!==t.kind).map(([t])=>t),f=RegExp(String.raw`(?<![\p{L}\p{N}_/:@%-])(?:[\p{L}\p{N}_.@%-]+/)*[\p{L}\p{N}_@%-]+(?:\.[\p{L}\p{N}_-]+)*\.(?:${w.join("|")})\b`,"giu"),P=`${k.PATHS.workspace}/`;function y(t){let s=t.trim(),a=s.indexOf(P);return a>=0?s.slice(a+P.length)||null:s.startsWith("/")||/^[A-Za-z]:/.test(s)||s.split("/").includes("..")?null:s||null}t.s(["pathsIn",0,function(t){let s=t.replace(/\b[a-z][\w+.-]*:\/\/\S+/gi," "),a=new Set;for(let t of s.match(f)??[]){let s=function(t){let s=y(t);if(!s)return null;let[a,...e]=s.split("/");return e.length&&a.includes(".")?null:s}(t);s&&a.add(s)}return[...a].slice(0,6)},"viewKindOf",0,g,"workspaceRelative",0,y],616172);var x=t.i(95187);let b=(0,x.createServerReference)("7fbd6f0e49811eccb94c49c5cb9f649b9a03d6a678",x.callServer,void 0,x.findSourceMapURL,"openFileAction");t.s(["openFileAction",0,b],67268);var _=t.i(609856);let z=new Set(["frame","image","audio","video"]);function q(t){let s=y(t);if(!s)return{how:"os"};let a=g(s);return z.has(a)?{how:"tab",path:s,href:e.queryKey.fileView(s)}:"none"===a?{how:"os"}:{how:"dialog",path:s}}let N=(0,a.createContext)(null),S={dialog:{prose:"px-5 py-4",block:"px-4 py-3"},page:{prose:"px-5 py-6 sm:px-8",block:"px-5 py-5"},inline:{prose:"pb-3",block:"pb-3"}};function C({kind:t,content:a,truncated:e,where:l="dialog"}){return(0,s.jsxs)(s.Fragment,{children:[null!=e&&(0,s.jsx)(E,{of:e}),(0,s.jsx)(B,{kind:t,content:a,where:l})]})}function E({of:t}){return(0,s.jsxs)("p",{className:"border-b border-border/60 px-5 py-2.5 font-mono text-[11px] text-muted-foreground",children:[`Showing the first ${(0,r.formatBytes)(k.WORKSPACE_VIEW.textMax)} of ${(0,r.formatBytes)(t)}. `,"Open the file itself for the rest."]})}function B({kind:t,content:a,where:e}){let l=S[e];switch(t){case"markdown":return(0,s.jsx)("div",{className:(0,r.cn)("min-w-0 text-sm leading-relaxed",l.prose),children:(0,s.jsx)(n.Markdown,{children:a})});case"csv":return(0,s.jsx)(A,{content:a,className:l.block});case"json":return(0,s.jsx)(T,{text:function(t){try{return JSON.stringify(JSON.parse(t),null,2)}catch{return t}}(a),className:l.block});default:return(0,s.jsx)(T,{text:a,className:l.block})}}function L(t){let[s,l]=(0,a.useState)(null),[i,n]=(0,a.useState)(null),[c,h]=(0,a.useState)(null);return(0,a.useEffect)(()=>{if(!t)return;l(null),n(null),h(null);let s=!1;return fetch(e.queryKey.file(t),{headers:{range:`bytes=0-${k.WORKSPACE_VIEW.textMax-1}`}}).then(async t=>{if(!t.ok)throw Error(await t.text());return{text:await t.text(),of:function(t){let s=t.headers.get("content-range")?.match(/^bytes \d+-(\d+)\/(\d+)$/);if(!s)return null;let[,a,e]=s.map(Number);return a+1<e?e:null}(t)}}).then(({text:t,of:a})=>{s||(l(null===a?t:t.slice(0,t.lastIndexOf("\n")+1||void 0)),h(a))}).catch(t=>!s&&n((0,r.errorToString)(t))),()=>{s=!0}},[t]),{content:s,failure:i,truncated:c}}function M({path:t,bytes:a}){let[e,i]=(0,_.useServerAction)(b);return(0,s.jsxs)("div",{className:"space-y-4 p-8",children:[(0,s.jsxs)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:[`This file is ${(0,r.formatBytes)(a)} — too big to draw here without `,"taking the window with it. Open it where it is instead."]}),(0,s.jsx)(l.Button,{variant:"outline",loading:i,onClick:()=>e(t),children:"Reveal in the file manager"})]})}function R({path:t,kind:a,onClose:e}){let{content:l,failure:n,truncated:r}=L(t),h=t?.split("/").pop()??"";return(0,s.jsx)(i.Dialog,{open:null!==t,onOpenChange:t=>!t&&e(),children:(0,s.jsxs)(i.DialogContent,{className:"flex max-h-[calc(100vh-3rem)] flex-col gap-0 overflow-hidden p-0 sm:max-w-4xl",children:[(0,s.jsx)(i.DialogTitle,{className:"sr-only",children:h}),(0,s.jsx)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border/60 px-4 py-2.5 pr-12",children:(0,s.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[12px]",children:t})}),(0,s.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:n?(0,s.jsx)("p",{className:"p-5 font-mono text-xs text-destructive",children:n}):null===l?(0,s.jsxs)("div",{className:"space-y-3 p-5",children:[(0,s.jsx)(c.Skeleton,{className:"h-5 w-2/3"}),(0,s.jsx)(c.Skeleton,{className:"h-4 w-full"}),(0,s.jsx)(c.Skeleton,{className:"h-4 w-5/6"})]}):(0,s.jsx)(C,{kind:a,content:l,truncated:r})})]})})}function T({text:t,className:a}){return(0,s.jsx)("pre",{className:(0,r.cn)("overflow-x-auto font-mono text-[12px] leading-relaxed whitespace-pre-wrap text-foreground/90",a),children:t})}function A({content:t,className:e}){let[l,...i]=(0,a.useMemo)(()=>(function(t){let s=[],a=[],e="",l=!1;for(let i=0;i<t.length;i++){let n=t[i];l?'"'===n&&'"'===t[i+1]?(e+='"',i++):'"'===n?l=!1:e+=n:'"'===n?l=!0:","===n?(a.push(e),e=""):"\n"===n||"\r"===n?("\r"===n&&"\n"===t[i+1]&&i++,a.push(e),s.push(a),a=[],e=""):e+=n}return(e.length||a.length)&&(a.push(e),s.push(a)),s.filter(t=>t.some(t=>t.trim()))})(t),[t]);return l?(0,s.jsx)("div",{className:(0,r.cn)("overflow-x-auto",e),children:(0,s.jsxs)(h,{children:[(0,s.jsx)(o,{children:(0,s.jsx)(u,{children:l.map((t,a)=>(0,s.jsx)(d,{className:"whitespace-nowrap",children:t},`${a}-${t}`))})}),(0,s.jsx)(m,{children:i.map((t,a)=>(0,s.jsx)(u,{children:l.map((e,l)=>(0,s.jsx)(p,{className:"whitespace-nowrap",children:t[l]??""},`${a}-${l}`))},`${a}-${t[0]??""}`))})]})}):(0,s.jsx)(T,{text:t,className:e})}t.s(["FileBody",0,C,"FileDialog",0,R,"FileLink",0,function({path:t,className:l,title:i,label:n,children:c}){let r=q(t),h=(0,a.useContext)(N),[o,m]=(0,_.useServerAction)(b);return"tab"===r.how?(0,s.jsx)("a",{href:r.href,target:"_blank",rel:"noreferrer",title:i??t,"aria-label":n,className:l,children:c}):(0,s.jsx)("button",{type:"button",disabled:m,title:i??t,"aria-label":n,className:l,onClick:()=>{"dialog"===r.how?h?h(r.path):window.open(e.queryKey.fileView(r.path),"_blank"):o(t)},children:c})},"FilePreview",0,function({path:t,bytes:a}){let l=g(t),{content:i,failure:n,truncated:r}=L(z.has(l)?null:t);return("frame"===l||"image"===l)&&a>k.WORKSPACE_VIEW.elementMax?(0,s.jsx)(M,{path:t,bytes:a}):"frame"===l?(0,s.jsx)("iframe",{title:t,src:e.queryKey.file(t),allow:"clipboard-read; clipboard-write; fullscreen; autoplay",className:"h-full w-full bg-white"}):"image"===l?(0,s.jsx)("img",{src:e.queryKey.file(t),alt:t,className:"mx-auto max-w-full p-6"}):"audio"===l||"video"===l?"audio"===l?(0,s.jsx)("audio",{controls:!0,src:e.queryKey.file(t),className:"w-full p-6",children:(0,s.jsx)("track",{kind:"captions"})}):(0,s.jsx)("video",{controls:!0,src:e.queryKey.file(t),className:"max-w-full p-6",children:(0,s.jsx)("track",{kind:"captions"})}):n?(0,s.jsx)("p",{className:"p-5 font-mono text-xs text-destructive",children:n}):null===i?(0,s.jsxs)("div",{className:"space-y-3 p-5",children:[(0,s.jsx)(c.Skeleton,{className:"h-5 w-2/3"}),(0,s.jsx)(c.Skeleton,{className:"h-4 w-full"}),(0,s.jsx)(c.Skeleton,{className:"h-4 w-5/6"})]}):(0,s.jsx)(C,{kind:l,content:i,truncated:r})},"FileViewer",0,function({children:t}){let[e,l]=(0,a.useState)(null);return(0,s.jsxs)(N,{value:l,children:[t,(0,s.jsx)(R,{path:e,kind:e?g(e):"text",onClose:()=>l(null)})]})},"fileTarget",0,q,"useFileText",0,L,"useOpenFile",0,function(){let t=(0,a.useContext)(N);return(0,a.useCallback)(s=>{let a=q(s);if("os"===a.how)return!1;if("dialog"===a.how&&t)return t(a.path),!0;let l="tab"===a.how?a.href:e.queryKey.fileView(a.path);return null!==window.open(l,"_blank")},[t])}],621285)},516690,t=>{t.v(s=>Promise.all(["static/chunks/0teeo9xl5wnnq.js"].map(s=>t.l(s))).then(()=>s(395360)))},274435,t=>{t.v(s=>Promise.all(["static/chunks/1wiw0gk7-qp8i.js"].map(s=>t.l(s))).then(()=>s(249740)))},796339,t=>{t.v(s=>Promise.all(["static/chunks/0w_ja4ciemrbk.js"].map(s=>t.l(s))).then(()=>s(948115)))},196546,t=>{t.v(s=>Promise.all(["static/chunks/3zx2nr3-vl_eh.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(365711)))},60308,t=>{t.v(s=>Promise.all(["static/chunks/18ov-ugtitlq2.js","static/chunks/1ozmtvibzzync.js","static/chunks/0iowzpfymsgpq.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(148707)))},608734,t=>{t.v(s=>Promise.all(["static/chunks/0p3bmx6ek0qp8.js"].map(s=>t.l(s))).then(()=>s(398778)))},902952,t=>{t.v(s=>Promise.all(["static/chunks/0q82iw85zo1m8.js"].map(s=>t.l(s))).then(()=>s(262053)))},814026,t=>{t.v(s=>Promise.all(["static/chunks/1txgr9-t0s4je.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(922608)))},210042,t=>{t.v(s=>Promise.all(["static/chunks/1qwswx0hjsw00.js"].map(s=>t.l(s))).then(()=>s(894523)))},327701,t=>{t.v(s=>Promise.all(["static/chunks/0r5gq9qo4arwu.js"].map(s=>t.l(s))).then(()=>s(641837)))},864940,t=>{t.v(s=>Promise.all(["static/chunks/0r3z95rc2ypfx.js"].map(s=>t.l(s))).then(()=>s(730184)))},581996,t=>{t.v(s=>Promise.all(["static/chunks/0t5b3chki_9fl.js"].map(s=>t.l(s))).then(()=>s(625004)))},185223,t=>{t.v(s=>Promise.all(["static/chunks/2g-myvn_f_a_4.js","static/chunks/16vtcomz233wa.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/31rpioh8q87-5.js"].map(s=>t.l(s))).then(()=>s(484803)))},577689,t=>{t.v(s=>Promise.all(["static/chunks/0-mnxu8ow6er0.js"].map(s=>t.l(s))).then(()=>s(401885)))},887861,t=>{t.v(s=>Promise.all(["static/chunks/05m1q2yic6i_6.js"].map(s=>t.l(s))).then(()=>s(545199)))},769047,t=>{t.v(s=>Promise.all(["static/chunks/0n7sj9xm17ln0.js"].map(s=>t.l(s))).then(()=>s(135626)))},566005,t=>{t.v(s=>Promise.all(["static/chunks/20p5cex0-ilx3.js"].map(s=>t.l(s))).then(()=>s(532400)))},64129,t=>{t.v(s=>Promise.all(["static/chunks/1hoe492g5-o2q.js"].map(s=>t.l(s))).then(()=>s(770767)))},686785,t=>{t.v(s=>Promise.all(["static/chunks/40epaf180rm_o.js"].map(s=>t.l(s))).then(()=>s(770913)))},234475,t=>{t.v(s=>Promise.all(["static/chunks/3v2r9tkahr03c.js"].map(s=>t.l(s))).then(()=>s(427540)))},273197,t=>{t.v(s=>Promise.all(["static/chunks/26elp1iu9_rfo.js"].map(s=>t.l(s))).then(()=>s(574536)))},184291,t=>{t.v(s=>Promise.all(["static/chunks/3y2yeb8hqhgma.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2-ohkulfwwqkp.js"].map(s=>t.l(s))).then(()=>s(294139)))},254810,t=>{t.v(s=>Promise.all(["static/chunks/31srg3-v_-3ex.js"].map(s=>t.l(s))).then(()=>s(124527)))},715630,t=>{t.v(s=>Promise.all(["static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(39516)))},721406,t=>{t.v(s=>Promise.all(["static/chunks/251ctc7y-p1x6.js"].map(s=>t.l(s))).then(()=>s(55582)))},928418,t=>{t.v(s=>Promise.all(["static/chunks/3svu996x25pgh.js"].map(s=>t.l(s))).then(()=>s(324330)))},496018,t=>{t.v(s=>Promise.all(["static/chunks/10a6xv-y_2nwl.js","static/chunks/36oxg-33dy_jz.js"].map(s=>t.l(s))).then(()=>s(944027)))},268805,t=>{t.v(s=>Promise.all(["static/chunks/3xpdaet8dw9x9.js"].map(s=>t.l(s))).then(()=>s(732548)))},885670,t=>{t.v(s=>Promise.all(["static/chunks/1ctnkqxh0n4u3.js"].map(s=>t.l(s))).then(()=>s(218663)))},850277,t=>{t.v(s=>Promise.all(["static/chunks/28t2bvti86a67.js"].map(s=>t.l(s))).then(()=>s(774228)))},608435,t=>{t.v(s=>Promise.all(["static/chunks/2urfmi-h-efgc.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(183824)))},677655,t=>{t.v(s=>Promise.all(["static/chunks/07o4ns4nqda4i.js"].map(s=>t.l(s))).then(()=>s(773966)))},393919,t=>{t.v(s=>Promise.all(["static/chunks/1-vnisuyudqdj.js"].map(s=>t.l(s))).then(()=>s(135921)))},499510,t=>{t.v(s=>Promise.all(["static/chunks/34asi35tmks9s.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(694693)))},314583,t=>{t.v(s=>Promise.all(["static/chunks/368hf3scqy9et.js"].map(s=>t.l(s))).then(()=>s(694899)))},138305,t=>{t.v(s=>Promise.all(["static/chunks/02cmf-0vz-j0l.js"].map(s=>t.l(s))).then(()=>s(98254)))},162895,t=>{t.v(s=>Promise.all(["static/chunks/446dwbh9a1brd.js","static/chunks/2ro2w2784zwl0.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(750497)))},715822,t=>{t.v(s=>Promise.all(["static/chunks/45c7xyr85-p84.js","static/chunks/1vpp0zxc5amhf.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(276426)))},156548,t=>{t.v(s=>Promise.all(["static/chunks/1px0m_9u11val.js"].map(s=>t.l(s))).then(()=>s(804440)))},68853,t=>{t.v(s=>Promise.all(["static/chunks/04kziyzzvkmhl.js"].map(s=>t.l(s))).then(()=>s(174708)))},508072,t=>{t.v(s=>Promise.all(["static/chunks/1fw3www6hshi2.js"].map(s=>t.l(s))).then(()=>s(717147)))},379420,t=>{t.v(s=>Promise.all(["static/chunks/07fixed86aya_.js"].map(s=>t.l(s))).then(()=>s(517328)))},901081,t=>{t.v(s=>Promise.all(["static/chunks/2sj3ymj88_zus.js"].map(s=>t.l(s))).then(()=>s(820123)))},732086,t=>{t.v(s=>Promise.all(["static/chunks/0n0bzpsdtg893.js"].map(s=>t.l(s))).then(()=>s(293222)))},8814,t=>{t.v(s=>Promise.all(["static/chunks/16zbzmvpg2ww4.js"].map(s=>t.l(s))).then(()=>s(333824)))},706010,t=>{t.v(s=>Promise.all(["static/chunks/0s54dho0z8p6j.js"].map(s=>t.l(s))).then(()=>s(258271)))},611671,t=>{t.v(s=>Promise.all(["static/chunks/2_jhl4ez3w5lm.js"].map(s=>t.l(s))).then(()=>s(612944)))},499264,t=>{t.v(s=>Promise.all(["static/chunks/0f4x882qymosc.js"].map(s=>t.l(s))).then(()=>s(289460)))},964927,t=>{t.v(s=>Promise.all(["static/chunks/09k-wbu71lfrt.js"].map(s=>t.l(s))).then(()=>s(551327)))},86855,t=>{t.v(s=>Promise.all(["static/chunks/1dd6qzaoby04o.js"].map(s=>t.l(s))).then(()=>s(12522)))},955357,t=>{t.v(s=>Promise.all(["static/chunks/34678qecnnj_h.js"].map(s=>t.l(s))).then(()=>s(217285)))},40814,t=>{t.v(s=>Promise.all(["static/chunks/3paqvl_z7hv3n.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(164704)))},534593,t=>{t.v(s=>Promise.all(["static/chunks/0_lh4_g7vdhq1.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(805100)))},80402,t=>{t.v(s=>Promise.all(["static/chunks/3qum31hte42y1.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(709757)))},659962,t=>{t.v(s=>Promise.all(["static/chunks/1u8j3eb8for0y.js"].map(s=>t.l(s))).then(()=>s(563571)))},655306,t=>{t.v(s=>Promise.all(["static/chunks/3qlz6dwx-4wpg.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3tq8wpaa3ie4_.js","static/chunks/31rpioh8q87-5.js","static/chunks/2six92-4e054u.js","static/chunks/2ro2w2784zwl0.js"].map(s=>t.l(s))).then(()=>s(24609)))},379291,t=>{t.v(s=>Promise.all(["static/chunks/16ya3783k-z1s.js"].map(s=>t.l(s))).then(()=>s(329263)))},56334,t=>{t.v(s=>Promise.all(["static/chunks/0u__wtz-jozok.js"].map(s=>t.l(s))).then(()=>s(970013)))},955953,t=>{t.v(s=>Promise.all(["static/chunks/1jz5jakghqd9v.js"].map(s=>t.l(s))).then(()=>s(274265)))},372286,t=>{t.v(s=>Promise.all(["static/chunks/2jhadmpmcpdrj.js"].map(s=>t.l(s))).then(()=>s(146027)))},709599,t=>{t.v(s=>Promise.all(["static/chunks/2tfc-naqg7z-u.js","static/chunks/319502xf-tnxv.js"].map(s=>t.l(s))).then(()=>s(774293)))},417187,t=>{t.v(s=>Promise.all(["static/chunks/319502xf-tnxv.js"].map(s=>t.l(s))).then(()=>s(363400)))},106583,t=>{t.v(s=>Promise.all(["static/chunks/28-z_wt6ndz-b.js"].map(s=>t.l(s))).then(()=>s(576577)))},600350,t=>{t.v(s=>Promise.all(["static/chunks/3hwj-0h-0-lla.js"].map(s=>t.l(s))).then(()=>s(823068)))},718592,t=>{t.v(s=>Promise.all(["static/chunks/00uuedu6-4dre.js"].map(s=>t.l(s))).then(()=>s(129659)))},964292,t=>{t.v(s=>Promise.all(["static/chunks/10jgwafb21-7w.js"].map(s=>t.l(s))).then(()=>s(961451)))},251227,t=>{t.v(s=>Promise.all(["static/chunks/3_8v942h1s07y.js"].map(s=>t.l(s))).then(()=>s(869943)))},781674,t=>{t.v(s=>Promise.all(["static/chunks/0uud_z0v566uf.js"].map(s=>t.l(s))).then(()=>s(143691)))},765886,t=>{t.v(s=>Promise.all(["static/chunks/3mk3dcnt98mri.js"].map(s=>t.l(s))).then(()=>s(640067)))},643635,t=>{t.v(s=>Promise.all(["static/chunks/0ftzs9_34hr49.js"].map(s=>t.l(s))).then(()=>s(118337)))},469752,t=>{t.v(s=>Promise.all(["static/chunks/0qo6w-wynmd7q.js"].map(s=>t.l(s))).then(()=>s(598277)))},220210,t=>{t.v(s=>Promise.all(["static/chunks/43x-wo-t6g20f.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(872516)))},952204,t=>{t.v(s=>Promise.all(["static/chunks/2qqx13x1_na_q.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(405817)))},615932,t=>{t.v(s=>Promise.all(["static/chunks/2nuuq6y_mebd9.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(238102)))},846517,t=>{t.v(s=>Promise.all(["static/chunks/22e7k4k061g55.js"].map(s=>t.l(s))).then(()=>s(289319)))},334810,t=>{t.v(s=>Promise.all(["static/chunks/17pegra88jm_q.js"].map(s=>t.l(s))).then(()=>s(466502)))},518233,t=>{t.v(s=>Promise.all(["static/chunks/2e7ddq5vayqre.js"].map(s=>t.l(s))).then(()=>s(902077)))},527502,t=>{t.v(s=>Promise.all(["static/chunks/0vuwq9sa14vne.js","static/chunks/3tq8wpaa3ie4_.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/31rpioh8q87-5.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(564011)))},783131,t=>{t.v(s=>Promise.all(["static/chunks/324t9a-cp4u8q.js"].map(s=>t.l(s))).then(()=>s(394796)))},866363,t=>{t.v(s=>Promise.all(["static/chunks/17tgaro217rkw.js","static/chunks/3v4h-8da4l5p7.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(416128)))},936482,t=>{t.v(s=>Promise.all(["static/chunks/38lhx55kr9dl6.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(23141)))},219104,t=>{t.v(s=>Promise.all(["static/chunks/1jbxee7jz6bbc.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(892708)))},982274,t=>{t.v(s=>Promise.all(["static/chunks/0_9ky7_0gqp29.js"].map(s=>t.l(s))).then(()=>s(375491)))},843593,t=>{t.v(s=>Promise.all(["static/chunks/1niiwgkyydxzm.js"].map(s=>t.l(s))).then(()=>s(462002)))},392582,t=>{t.v(s=>Promise.all(["static/chunks/21xei27jfzp7x.js"].map(s=>t.l(s))).then(()=>s(40781)))},32395,t=>{t.v(s=>Promise.all(["static/chunks/16hinmy0f-glt.js"].map(s=>t.l(s))).then(()=>s(609979)))},336975,t=>{t.v(s=>Promise.all(["static/chunks/0zgg9c0-wj935.js"].map(s=>t.l(s))).then(()=>s(563498)))},736812,t=>{t.v(s=>Promise.all(["static/chunks/3uf4bpnwlk9hu.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(662407)))},615475,t=>{t.v(s=>Promise.all(["static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(346619)))},722332,t=>{t.v(s=>Promise.all(["static/chunks/1zse9_sq278z3.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1ebo_riinwqq8.js","static/chunks/31rpioh8q87-5.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(679394)))},77996,t=>{t.v(s=>Promise.all(["static/chunks/1u06mkqc8lt5y.js","static/chunks/31rpioh8q87-5.js","static/chunks/3tq8wpaa3ie4_.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(546754)))},412671,t=>{t.v(s=>Promise.all(["static/chunks/2id4c69a8l7tw.js"].map(s=>t.l(s))).then(()=>s(788619)))},98975,t=>{t.v(s=>Promise.all(["static/chunks/1k3nt_5za2_5v.js"].map(s=>t.l(s))).then(()=>s(894666)))},221794,t=>{t.v(s=>Promise.all(["static/chunks/0ju2q95btugv1.js"].map(s=>t.l(s))).then(()=>s(904077)))},712237,t=>{t.v(s=>Promise.all(["static/chunks/1oyr1d-wo_dr-.js"].map(s=>t.l(s))).then(()=>s(251070)))},25004,t=>{t.v(s=>Promise.all(["static/chunks/1ggeg-sqe8ngu.js"].map(s=>t.l(s))).then(()=>s(388943)))},792799,t=>{t.v(s=>Promise.all(["static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(122952)))},300535,t=>{t.v(s=>Promise.all(["static/chunks/1xlbhszlykr4p.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(776627)))},299868,t=>{t.v(s=>Promise.all(["static/chunks/335-38r54vx4c.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(313300)))},692658,t=>{t.v(s=>Promise.all(["static/chunks/39sp7w7wcwxjl.js"].map(s=>t.l(s))).then(()=>s(866695)))},145390,t=>{t.v(s=>Promise.all(["static/chunks/0kmw809wgqjkq.js"].map(s=>t.l(s))).then(()=>s(948742)))},459901,t=>{t.v(s=>Promise.all(["static/chunks/0z36xjjyl3kid.js"].map(s=>t.l(s))).then(()=>s(75400)))},844018,t=>{t.v(s=>Promise.all(["static/chunks/2t-fmsms_i3sr.js"].map(s=>t.l(s))).then(()=>s(380021)))},932597,t=>{t.v(s=>Promise.all(["static/chunks/3a7qna12wpg2h.js"].map(s=>t.l(s))).then(()=>s(45900)))},386493,t=>{t.v(s=>Promise.all(["static/chunks/3xcqoeizdjzn2.js"].map(s=>t.l(s))).then(()=>s(398160)))},287672,t=>{t.v(s=>Promise.all(["static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(823760)))},148045,t=>{t.v(s=>Promise.all(["static/chunks/36oxg-33dy_jz.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/2ro2w2784zwl0.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3_ue_94qji2lm.js"].map(s=>t.l(s))).then(()=>s(134812)))},704538,t=>{t.v(s=>Promise.all(["static/chunks/1crpy7f655-f-.js","static/chunks/29kou1oqg257y.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/36oxg-33dy_jz.js","static/chunks/31rpioh8q87-5.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2ro2w2784zwl0.js","static/chunks/1ozmtvibzzync.js","static/chunks/2six92-4e054u.js","static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(398122)))},522051,t=>{t.v(s=>Promise.all(["static/chunks/1t8ujmkza6s35.js"].map(s=>t.l(s))).then(()=>s(281694)))},278014,t=>{t.v(s=>Promise.all(["static/chunks/1c0t4bkzgxkho.js"].map(s=>t.l(s))).then(()=>s(376175)))},511938,t=>{t.v(s=>Promise.all(["static/chunks/2n0e6pbzr1vhc.js"].map(s=>t.l(s))).then(()=>s(251031)))},382697,t=>{t.v(s=>Promise.all(["static/chunks/3_3mt55_s_8nf.js","static/chunks/0w75738j7k0f7.js"].map(s=>t.l(s))).then(()=>s(906106)))},106774,t=>{t.v(s=>Promise.all(["static/chunks/2-0-eka22mzly.js"].map(s=>t.l(s))).then(()=>s(548052)))},657069,t=>{t.v(s=>Promise.all(["static/chunks/3ia1uy-ta-wwx.js"].map(s=>t.l(s))).then(()=>s(315754)))},133954,t=>{t.v(s=>Promise.all(["static/chunks/35w79dw14-r51.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(411335)))},969445,t=>{t.v(s=>Promise.all(["static/chunks/3ma22p0pjm53-.js"].map(s=>t.l(s))).then(()=>s(233218)))},532210,t=>{t.v(s=>Promise.all(["static/chunks/1t4tz6qnsit4z.js"].map(s=>t.l(s))).then(()=>s(127844)))},917136,t=>{t.v(s=>Promise.all(["static/chunks/20i3ov2af4zvh.js"].map(s=>t.l(s))).then(()=>s(499412)))},147287,t=>{t.v(s=>Promise.all(["static/chunks/3oyixq96_fa_z.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(950510)))},298173,t=>{t.v(s=>Promise.all(["static/chunks/38rdxmvrwtp57.js"].map(s=>t.l(s))).then(()=>s(372302)))},418877,t=>{t.v(s=>Promise.all(["static/chunks/3pzxtzd-vdn2f.js"].map(s=>t.l(s))).then(()=>s(377217)))},159142,t=>{t.v(s=>Promise.all(["static/chunks/2bk7wc4-ptm-c.js"].map(s=>t.l(s))).then(()=>s(274754)))},644609,t=>{t.v(s=>Promise.all(["static/chunks/13qtfpmkarvmt.js","static/chunks/0bp3uew85t0ry.js","static/chunks/3ia1uy-ta-wwx.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(76277)))},323845,t=>{t.v(s=>Promise.all(["static/chunks/29hqqnd781kvs.js"].map(s=>t.l(s))).then(()=>s(744344)))},367535,t=>{t.v(s=>Promise.all(["static/chunks/1j_bjoxgu91mc.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(635473)))},659189,t=>{t.v(s=>Promise.all(["static/chunks/1q28ddzt1afnq.js"].map(s=>t.l(s))).then(()=>s(857397)))},457619,t=>{t.v(s=>Promise.all(["static/chunks/3-06o0suuf1y4.js"].map(s=>t.l(s))).then(()=>s(368643)))},401626,t=>{t.v(s=>Promise.all(["static/chunks/151lx87jseoly.js"].map(s=>t.l(s))).then(()=>s(321142)))},524176,t=>{t.v(s=>Promise.all(["static/chunks/2asmzjaah8m8z.js"].map(s=>t.l(s))).then(()=>s(747044)))},205353,t=>{t.v(s=>Promise.all(["static/chunks/0hyz-d49g6v3x.js"].map(s=>t.l(s))).then(()=>s(518227)))},847969,t=>{t.v(s=>Promise.all(["static/chunks/1u6au-494n78m.js"].map(s=>t.l(s))).then(()=>s(990800)))},755902,t=>{t.v(s=>Promise.all(["static/chunks/2e150n34zc8g9.js"].map(s=>t.l(s))).then(()=>s(731026)))},272194,t=>{t.v(s=>Promise.all(["static/chunks/05-_p9k102i_g.js"].map(s=>t.l(s))).then(()=>s(874353)))},557638,t=>{t.v(s=>Promise.all(["static/chunks/0v_3gh96z3jaa.js"].map(s=>t.l(s))).then(()=>s(400936)))},47723,t=>{t.v(s=>Promise.all(["static/chunks/3dur64hdd_v7c.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(337476)))},446820,t=>{t.v(s=>Promise.all(["static/chunks/2v-fuc1wwaulc.js","static/chunks/2zxe_jdp_h7n8.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(181320)))},565220,t=>{t.v(s=>Promise.all(["static/chunks/2800ji7zpl6a7.js"].map(s=>t.l(s))).then(()=>s(775253)))},821908,t=>{t.v(s=>Promise.all(["static/chunks/0-a6206-r3j_8.js"].map(s=>t.l(s))).then(()=>s(265932)))},798543,t=>{t.v(s=>Promise.all(["static/chunks/2ovlkdbar4cl8.js"].map(s=>t.l(s))).then(()=>s(873456)))},953213,t=>{t.v(s=>Promise.all(["static/chunks/39upf2vnyk-xq.js"].map(s=>t.l(s))).then(()=>s(573095)))},357016,t=>{t.v(s=>Promise.all(["static/chunks/0jrnpgq-_qp2f.js"].map(s=>t.l(s))).then(()=>s(739360)))},144,t=>{t.v(s=>Promise.all(["static/chunks/273azq8ya_70t.js"].map(s=>t.l(s))).then(()=>s(834527)))},389188,t=>{t.v(s=>Promise.all(["static/chunks/1tcwgfbes5bur.js"].map(s=>t.l(s))).then(()=>s(292052)))},494584,t=>{t.v(s=>Promise.all(["static/chunks/2mgfqtimlpa2_.js"].map(s=>t.l(s))).then(()=>s(386104)))},590087,t=>{t.v(s=>Promise.all(["static/chunks/3rnj3hwd2gpl1.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(362833)))},753525,t=>{t.v(s=>Promise.all(["static/chunks/39sp7w7wcwxjl.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3rudiphv22_sj.js"].map(s=>t.l(s))).then(()=>s(235865)))},506695,t=>{t.v(s=>Promise.all(["static/chunks/16j4idsrg5cyn.js"].map(s=>t.l(s))).then(()=>s(528594)))},985641,t=>{t.v(s=>Promise.all(["static/chunks/1y1vu9-4l76_e.js"].map(s=>t.l(s))).then(()=>s(762570)))},215520,t=>{t.v(s=>Promise.all(["static/chunks/0o66-rbdl-bpr.js"].map(s=>t.l(s))).then(()=>s(767399)))},579736,t=>{t.v(s=>Promise.all(["static/chunks/3bnhh87m-vba3.js"].map(s=>t.l(s))).then(()=>s(793940)))},344743,t=>{t.v(s=>Promise.all(["static/chunks/0lmkqj5bnn1tx.js"].map(s=>t.l(s))).then(()=>s(478163)))},69901,t=>{t.v(s=>Promise.all(["static/chunks/2fx1t7nywz-zx.js"].map(s=>t.l(s))).then(()=>s(293157)))},849765,t=>{t.v(s=>Promise.all(["static/chunks/0uw1nhbzgcr4z.js"].map(s=>t.l(s))).then(()=>s(65260)))},925840,t=>{t.v(s=>Promise.all(["static/chunks/2htbqsoc2bojb.js"].map(s=>t.l(s))).then(()=>s(620602)))},678110,t=>{t.v(s=>Promise.all(["static/chunks/028oldt2v0xyz.js"].map(s=>t.l(s))).then(()=>s(121139)))},710002,t=>{t.v(s=>Promise.all(["static/chunks/3b13ywcpwn31z.js"].map(s=>t.l(s))).then(()=>s(236865)))},753456,t=>{t.v(s=>Promise.all(["static/chunks/1wxrfgphp_7tx.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(487420)))},328116,t=>{t.v(s=>Promise.all(["static/chunks/1eyi5me_bl5mq.js"].map(s=>t.l(s))).then(()=>s(303348)))},762792,t=>{t.v(s=>Promise.all(["static/chunks/012oo6xzblu6s.js"].map(s=>t.l(s))).then(()=>s(122362)))},548436,t=>{t.v(s=>Promise.all(["static/chunks/36oxg-33dy_jz.js"].map(s=>t.l(s))).then(()=>s(265525)))},985774,t=>{t.v(s=>Promise.all(["static/chunks/0xnzoirqkfqgi.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(979978)))},822682,t=>{t.v(s=>Promise.all(["static/chunks/1xcq4o53ccqj-.js"].map(s=>t.l(s))).then(()=>s(777438)))},29273,t=>{t.v(s=>Promise.all(["static/chunks/3wssn6tbdvadr.js"].map(s=>t.l(s))).then(()=>s(12899)))},917431,t=>{t.v(s=>Promise.all(["static/chunks/2w0jipt45km-n.js"].map(s=>t.l(s))).then(()=>s(426182)))},127184,t=>{t.v(s=>Promise.all(["static/chunks/1kkj4dqqizj1g.js"].map(s=>t.l(s))).then(()=>s(569590)))},402999,t=>{t.v(s=>Promise.all(["static/chunks/1abc3xfswhk36.js"].map(s=>t.l(s))).then(()=>s(389508)))},22510,t=>{t.v(s=>Promise.all(["static/chunks/3p-mvzd69i8m_.js","static/chunks/1px0m_9u11val.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(792808)))},392914,t=>{t.v(s=>Promise.all(["static/chunks/3qa8z7ahjfjda.js"].map(s=>t.l(s))).then(()=>s(270093)))},864980,t=>{t.v(s=>Promise.all(["static/chunks/0unfsbpxtuicd.js"].map(s=>t.l(s))).then(()=>s(221610)))},362249,t=>{t.v(s=>Promise.all(["static/chunks/2pma0utbxjpx3.js"].map(s=>t.l(s))).then(()=>s(292310)))},919686,t=>{t.v(s=>Promise.all(["static/chunks/418b-iezadyqk.js"].map(s=>t.l(s))).then(()=>s(513929)))},123169,t=>{t.v(s=>Promise.all(["static/chunks/0-e41flx3-6kr.js"].map(s=>t.l(s))).then(()=>s(495422)))},866973,t=>{t.v(s=>Promise.all(["static/chunks/3trm7ge6o-yl3.js"].map(s=>t.l(s))).then(()=>s(381082)))},580357,t=>{t.v(s=>Promise.all(["static/chunks/0l8oeumi7zreb.js","static/chunks/29kou1oqg257y.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/1ozmtvibzzync.js","static/chunks/36oxg-33dy_jz.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2ro2w2784zwl0.js","static/chunks/31rpioh8q87-5.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/2six92-4e054u.js","static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(428855)))},660137,t=>{t.v(s=>Promise.all(["static/chunks/29kou1oqg257y.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/2ro2w2784zwl0.js","static/chunks/3tq8wpaa3ie4_.js","static/chunks/31rpioh8q87-5.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2six92-4e054u.js"].map(s=>t.l(s))).then(()=>s(259585)))},225837,t=>{t.v(s=>Promise.all(["static/chunks/409byf0ixcxxo.js"].map(s=>t.l(s))).then(()=>s(98542)))},559154,t=>{t.v(s=>Promise.all(["static/chunks/2e7zn6goip-16.js"].map(s=>t.l(s))).then(()=>s(672283)))},428160,t=>{t.v(s=>Promise.all(["static/chunks/2np1b-o9o9lxe.js"].map(s=>t.l(s))).then(()=>s(428978)))},679226,t=>{t.v(s=>Promise.all(["static/chunks/1zexcknv1j-z7.js"].map(s=>t.l(s))).then(()=>s(351908)))},95554,t=>{t.v(s=>Promise.all(["static/chunks/1zch7s-d9ym1d.js"].map(s=>t.l(s))).then(()=>s(843805)))},256229,t=>{t.v(s=>Promise.all(["static/chunks/0bp3uew85t0ry.js"].map(s=>t.l(s))).then(()=>s(455496)))},257294,t=>{t.v(s=>Promise.all(["static/chunks/34vbgf3h6aynb.js"].map(s=>t.l(s))).then(()=>s(763343)))},287646,t=>{t.v(s=>Promise.all(["static/chunks/3py7aam1ahr8d.js"].map(s=>t.l(s))).then(()=>s(470313)))},77876,t=>{t.v(s=>Promise.all(["static/chunks/10ur2oml6p9x4.js"].map(s=>t.l(s))).then(()=>s(883808)))},702789,t=>{t.v(s=>Promise.all(["static/chunks/11b9yf9dfuujx.js"].map(s=>t.l(s))).then(()=>s(713367)))},105404,t=>{t.v(s=>Promise.all(["static/chunks/2dnh5lwhlmqjo.js"].map(s=>t.l(s))).then(()=>s(503988)))},664050,t=>{t.v(s=>Promise.all(["static/chunks/40ei945lllr9w.js"].map(s=>t.l(s))).then(()=>s(80464)))},423766,t=>{t.v(s=>Promise.all(["static/chunks/0ra7vu-67oxip.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(34684)))},471095,t=>{t.v(s=>Promise.all(["static/chunks/2evctkklgum84.js"].map(s=>t.l(s))).then(()=>s(259514)))},713125,t=>{t.v(s=>Promise.all(["static/chunks/2_59ceoqu2j9o.js"].map(s=>t.l(s))).then(()=>s(435493)))},347760,t=>{t.v(s=>Promise.all(["static/chunks/17tgaro217rkw.js"].map(s=>t.l(s))).then(()=>s(588587)))},525380,t=>{t.v(s=>Promise.all(["static/chunks/0txq63lra1gy5.js"].map(s=>t.l(s))).then(()=>s(843156)))},927772,t=>{t.v(s=>Promise.all(["static/chunks/38b2vebizod3f.js"].map(s=>t.l(s))).then(()=>s(286144)))},131592,t=>{t.v(s=>Promise.all(["static/chunks/1-pex3noy3abf.js"].map(s=>t.l(s))).then(()=>s(568096)))},942509,t=>{t.v(s=>Promise.all(["static/chunks/208d1-7kvefg6.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(809240)))},209551,t=>{t.v(s=>Promise.all(["static/chunks/1asjpdf763drn.js","static/chunks/4469hynu4qc3x.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(361218)))},174099,t=>{t.v(s=>Promise.all(["static/chunks/3l445yien52wx.js"].map(s=>t.l(s))).then(()=>s(42)))},401250,t=>{t.v(s=>Promise.all(["static/chunks/2qbs5ja7xij_y.js"].map(s=>t.l(s))).then(()=>s(921955)))},944475,t=>{t.v(s=>Promise.all(["static/chunks/3agxmq5t1fgcm.js"].map(s=>t.l(s))).then(()=>s(775193)))},600538,t=>{t.v(s=>Promise.all(["static/chunks/2osmatdeuj3s-.js"].map(s=>t.l(s))).then(()=>s(705623)))},336651,t=>{t.v(s=>Promise.all(["static/chunks/0obkw0gs46t63.js"].map(s=>t.l(s))).then(()=>s(605927)))},709948,t=>{t.v(s=>Promise.all(["static/chunks/1nax-hzuha2nt.js"].map(s=>t.l(s))).then(()=>s(596338)))},340336,t=>{t.v(s=>Promise.all(["static/chunks/1caj6_s4hafz8.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(461138)))},508436,t=>{t.v(s=>Promise.all(["static/chunks/1flk5q9pa7qsp.js"].map(s=>t.l(s))).then(()=>s(318633)))},155636,t=>{t.v(s=>Promise.all(["static/chunks/3_3mt55_s_8nf.js"].map(s=>t.l(s))).then(()=>s(107395)))},351979,t=>{t.v(s=>Promise.all(["static/chunks/0rc3dvh91j2qq.js"].map(s=>t.l(s))).then(()=>s(40899)))},65678,t=>{t.v(s=>Promise.all(["static/chunks/0n-9icasrt3tr.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/29kou1oqg257y.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(352763)))},841727,t=>{t.v(s=>Promise.all(["static/chunks/1t71kx4hckhdg.js"].map(s=>t.l(s))).then(()=>s(526893)))},557754,t=>{t.v(s=>Promise.all(["static/chunks/31rpioh8q87-5.js"].map(s=>t.l(s))).then(()=>s(578270)))},670454,t=>{t.v(s=>Promise.all(["static/chunks/42lcx54bokm4l.js"].map(s=>t.l(s))).then(()=>s(891579)))},670515,t=>{t.v(s=>Promise.all(["static/chunks/2fkhtkfyegbfl.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/36oxg-33dy_jz.js","static/chunks/3rudiphv22_sj.js","static/chunks/2ro2w2784zwl0.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/31rpioh8q87-5.js","static/chunks/2six92-4e054u.js","static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(259443)))},48460,t=>{t.v(s=>Promise.all(["static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(3737)))},744538,t=>{t.v(s=>Promise.all(["static/chunks/38f2w40jfofcx.js"].map(s=>t.l(s))).then(()=>s(610648)))},963321,t=>{t.v(s=>Promise.all(["static/chunks/2keoa22_a2i05.js"].map(s=>t.l(s))).then(()=>s(717620)))},43837,t=>{t.v(s=>Promise.all(["static/chunks/3iufy6ir2ow_s.js"].map(s=>t.l(s))).then(()=>s(476205)))},830536,t=>{t.v(s=>Promise.all(["static/chunks/0dum5lyb1kgdu.js"].map(s=>t.l(s))).then(()=>s(18661)))},785051,t=>{t.v(s=>Promise.all(["static/chunks/3iooxhh1ig5bw.js"].map(s=>t.l(s))).then(()=>s(938702)))},586017,t=>{t.v(s=>Promise.all(["static/chunks/17z996osqxkqt.js"].map(s=>t.l(s))).then(()=>s(588430)))},495694,t=>{t.v(s=>Promise.all(["static/chunks/0h-2v5t5yj2f3.js"].map(s=>t.l(s))).then(()=>s(562973)))},404547,t=>{t.v(s=>Promise.all(["static/chunks/1idh9y3ry9ztt.js"].map(s=>t.l(s))).then(()=>s(44445)))},160550,t=>{t.v(s=>Promise.all(["static/chunks/2tslt-7b091nm.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(338022)))},109,t=>{t.v(s=>Promise.all(["static/chunks/1mi-5-8zn56-m.js","static/chunks/0bp3uew85t0ry.js","static/chunks/1qil2ska-_5gi.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3ia1uy-ta-wwx.js"].map(s=>t.l(s))).then(()=>s(534365)))},934329,t=>{t.v(s=>Promise.all(["static/chunks/2cl_2bjqc1lsc.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(532041)))},834235,t=>{t.v(s=>Promise.all(["static/chunks/3c5h1ejnae2s_.js"].map(s=>t.l(s))).then(()=>s(288188)))},879931,t=>{t.v(s=>Promise.all(["static/chunks/0tbmf55xnq95w.js"].map(s=>t.l(s))).then(()=>s(997855)))},738463,t=>{t.v(s=>Promise.all(["static/chunks/41klrxz2-ykw3.js"].map(s=>t.l(s))).then(()=>s(786105)))},464547,t=>{t.v(s=>Promise.all(["static/chunks/1g4yzqc8g06o2.js"].map(s=>t.l(s))).then(()=>s(995255)))},74196,t=>{t.v(s=>Promise.all(["static/chunks/1pgom6axjfimi.js"].map(s=>t.l(s))).then(()=>s(786142)))},926245,t=>{t.v(s=>Promise.all(["static/chunks/00f7egm3k9vam.js"].map(s=>t.l(s))).then(()=>s(829634)))},998654,t=>{t.v(s=>Promise.all(["static/chunks/0gklkn8q2umf3.js"].map(s=>t.l(s))).then(()=>s(121147)))},160115,t=>{t.v(s=>Promise.all(["static/chunks/0-rd1xjzbrve6.js"].map(s=>t.l(s))).then(()=>s(244703)))},656841,t=>{t.v(s=>Promise.all(["static/chunks/3vdfjhigz-c80.js"].map(s=>t.l(s))).then(()=>s(33176)))},291412,t=>{t.v(s=>Promise.all(["static/chunks/2rbi0f59-vmf9.js"].map(s=>t.l(s))).then(()=>s(620584)))},441270,t=>{t.v(s=>Promise.all(["static/chunks/088x63_2l0zc9.js"].map(s=>t.l(s))).then(()=>s(675022)))},332344,t=>{t.v(s=>Promise.all(["static/chunks/3ve5sdpvgjpbu.js"].map(s=>t.l(s))).then(()=>s(642400)))},252913,t=>{t.v(s=>Promise.all(["static/chunks/2i6moah6rdm25.js"].map(s=>t.l(s))).then(()=>s(202714)))},695208,t=>{t.v(s=>Promise.all(["static/chunks/3_gqqu4iritf3.js"].map(s=>t.l(s))).then(()=>s(40379)))},952844,t=>{t.v(s=>Promise.all(["static/chunks/0wdb6hvovrzpj.js"].map(s=>t.l(s))).then(()=>s(48975)))},776488,t=>{t.v(s=>Promise.all(["static/chunks/07ciqblogdtfg.js"].map(s=>t.l(s))).then(()=>s(938096)))},536002,t=>{t.v(s=>Promise.all(["static/chunks/0n254r0xtp5py.js"].map(s=>t.l(s))).then(()=>s(340767)))},872934,t=>{t.v(s=>Promise.all(["static/chunks/3qx8r_111vbcq.js"].map(s=>t.l(s))).then(()=>s(216129)))},831036,t=>{t.v(s=>Promise.all(["static/chunks/0b7u4oyc-4h1f.js"].map(s=>t.l(s))).then(()=>s(188870)))},423803,t=>{t.v(s=>Promise.all(["static/chunks/1464ilzyzd67x.js"].map(s=>t.l(s))).then(()=>s(9753)))},486330,t=>{t.v(s=>Promise.all(["static/chunks/0akc8wpmmqk3w.js"].map(s=>t.l(s))).then(()=>s(611191)))},381001,t=>{t.v(s=>Promise.all(["static/chunks/0db0pjco5lunx.js"].map(s=>t.l(s))).then(()=>s(297569)))},902100,t=>{t.v(s=>Promise.all(["static/chunks/3cayxge-4bh_2.js"].map(s=>t.l(s))).then(()=>s(899637)))},295735,t=>{t.v(s=>Promise.all(["static/chunks/1_dzz-lgnak2h.js"].map(s=>t.l(s))).then(()=>s(504007)))},358172,t=>{t.v(s=>Promise.all(["static/chunks/2cbug7-1qys8e.js"].map(s=>t.l(s))).then(()=>s(824395)))},775274,t=>{t.v(s=>Promise.all(["static/chunks/16_2z7zojg3g3.js"].map(s=>t.l(s))).then(()=>s(760511)))},514214,t=>{t.v(s=>Promise.all(["static/chunks/0cmf43-qvwr5g.js"].map(s=>t.l(s))).then(()=>s(815758)))},948353,t=>{t.v(s=>Promise.all(["static/chunks/210l205kz5g3q.js"].map(s=>t.l(s))).then(()=>s(365094)))},640920,t=>{t.v(s=>Promise.all(["static/chunks/3skrxw7zfkqzf.js"].map(s=>t.l(s))).then(()=>s(363976)))},157811,t=>{t.v(s=>Promise.all(["static/chunks/17brxt738o00g.js"].map(s=>t.l(s))).then(()=>s(805755)))},805550,t=>{t.v(s=>Promise.all(["static/chunks/0cg7tv-i19f6n.js"].map(s=>t.l(s))).then(()=>s(7419)))},360233,t=>{t.v(s=>Promise.all(["static/chunks/2tsbrs7m-0f65.js"].map(s=>t.l(s))).then(()=>s(797673)))},579755,t=>{t.v(s=>Promise.all(["static/chunks/01bd73-hm8457.js"].map(s=>t.l(s))).then(()=>s(525522)))},980721,t=>{t.v(s=>Promise.all(["static/chunks/458hu9cfcc3s_.js"].map(s=>t.l(s))).then(()=>s(560616)))},27266,t=>{t.v(s=>Promise.all(["static/chunks/01i1qitd_8rtz.js"].map(s=>t.l(s))).then(()=>s(134497)))},231214,t=>{t.v(s=>Promise.all(["static/chunks/1fviz3qosnq__.js"].map(s=>t.l(s))).then(()=>s(770771)))},881110,t=>{t.v(s=>Promise.all(["static/chunks/037scab0ici8w.js"].map(s=>t.l(s))).then(()=>s(764248)))},337683,t=>{t.v(s=>Promise.all(["static/chunks/1yj-z4gstw2xu.js"].map(s=>t.l(s))).then(()=>s(581666)))},28130,t=>{t.v(s=>Promise.all(["static/chunks/0p3vq3l43725n.js"].map(s=>t.l(s))).then(()=>s(365013)))},487165,t=>{t.v(s=>Promise.all(["static/chunks/3xes-pn_ri2cj.js"].map(s=>t.l(s))).then(()=>s(7363)))},470579,t=>{t.v(s=>Promise.all(["static/chunks/12z0zeu7lvha7.js"].map(s=>t.l(s))).then(()=>s(791178)))},677856,t=>{t.v(s=>Promise.all(["static/chunks/3v0b10wj4wq9y.js"].map(s=>t.l(s))).then(()=>s(182360)))},194363,t=>{t.v(s=>Promise.all(["static/chunks/3pa4udctptdhb.js"].map(s=>t.l(s))).then(()=>s(720465)))},448953,t=>{t.v(s=>Promise.all(["static/chunks/3473zud7njrud.js"].map(s=>t.l(s))).then(()=>s(951566)))},711812,t=>{t.v(s=>Promise.all(["static/chunks/1xdsthrspgqid.js"].map(s=>t.l(s))).then(()=>s(935992)))},409732,t=>{t.v(s=>Promise.all(["static/chunks/3t3e6rkuocks5.js"].map(s=>t.l(s))).then(()=>s(553497)))},930788,t=>{t.v(s=>Promise.all(["static/chunks/0r8pu9o18-9be.js"].map(s=>t.l(s))).then(()=>s(94790)))},769460,t=>{t.v(s=>Promise.all(["static/chunks/2wewgtk8lsm47.js"].map(s=>t.l(s))).then(()=>s(258941)))},774478,t=>{t.v(s=>Promise.all(["static/chunks/2l6fe0r1d_q6v.js"].map(s=>t.l(s))).then(()=>s(899054)))},49008,t=>{t.v(s=>Promise.all(["static/chunks/14_d5b8v93ic0.js"].map(s=>t.l(s))).then(()=>s(645619)))},377952,t=>{t.v(s=>Promise.all(["static/chunks/1ji12pypkyvd6.js"].map(s=>t.l(s))).then(()=>s(464754)))},411374,t=>{t.v(s=>Promise.all(["static/chunks/0j6p1caglumb5.js"].map(s=>t.l(s))).then(()=>s(669891)))},820463,t=>{t.v(s=>Promise.all(["static/chunks/3oj0ck1e2y0rg.js"].map(s=>t.l(s))).then(()=>s(966937)))},630169,t=>{t.v(s=>Promise.all(["static/chunks/21bsne5xprg9x.js"].map(s=>t.l(s))).then(()=>s(412397)))},777035,t=>{t.v(s=>Promise.all(["static/chunks/2nz_jsjkeh_3n.js"].map(s=>t.l(s))).then(()=>s(323854)))},28589,t=>{t.v(s=>Promise.all(["static/chunks/3bl5nolxelhoh.js"].map(s=>t.l(s))).then(()=>s(299023)))},161439,t=>{t.v(s=>Promise.all(["static/chunks/2qvx9cvdob30_.js"].map(s=>t.l(s))).then(()=>s(83923)))},467304,t=>{t.v(s=>Promise.all(["static/chunks/2r50d8i8nzafy.js"].map(s=>t.l(s))).then(()=>s(620576)))},794497,t=>{t.v(s=>Promise.all(["static/chunks/2-q2d_mg8eewn.js"].map(s=>t.l(s))).then(()=>s(383983)))},353619,t=>{t.v(s=>Promise.all(["static/chunks/00133qbkud_a1.js"].map(s=>t.l(s))).then(()=>s(311461)))},841717,t=>{t.v(s=>Promise.all(["static/chunks/3wyndekp6gs1e.js"].map(s=>t.l(s))).then(()=>s(905139)))},703232,t=>{t.v(s=>Promise.all(["static/chunks/0a5uw59rid6rr.js"].map(s=>t.l(s))).then(()=>s(7846)))},469411,t=>{t.v(s=>Promise.all(["static/chunks/1tdg7-4y92ae5.js"].map(s=>t.l(s))).then(()=>s(135966)))},81356,t=>{t.v(s=>Promise.all(["static/chunks/27679aiblwt7d.js"].map(s=>t.l(s))).then(()=>s(920400)))},291336,t=>{t.v(s=>Promise.all(["static/chunks/2-r_2y3shm5dp.js"].map(s=>t.l(s))).then(()=>s(154629)))},753065,t=>{t.v(s=>Promise.all(["static/chunks/3zru906admgda.js"].map(s=>t.l(s))).then(()=>s(792599)))},758732,t=>{t.v(s=>Promise.all(["static/chunks/1m_1wucqbm0dk.js"].map(s=>t.l(s))).then(()=>s(341854)))},505358,t=>{t.v(s=>Promise.all(["static/chunks/3n91b_r3lsocx.js"].map(s=>t.l(s))).then(()=>s(273427)))},953493,t=>{t.v(s=>Promise.all(["static/chunks/0ppunhtgdiybw.js"].map(s=>t.l(s))).then(()=>s(468746)))},767374,t=>{t.v(s=>Promise.all(["static/chunks/2e77rof1d6aab.js"].map(s=>t.l(s))).then(()=>s(948350)))},461630,t=>{t.v(s=>Promise.all(["static/chunks/1ua4os8wtpq3w.js"].map(s=>t.l(s))).then(()=>s(200388)))},135353,t=>{t.v(s=>Promise.all(["static/chunks/3_rh0kun_htkr.js"].map(s=>t.l(s))).then(()=>s(720692)))},129817,t=>{t.v(s=>Promise.all(["static/chunks/2wgde6wz3k5s5.js"].map(s=>t.l(s))).then(()=>s(832876)))},666144,t=>{t.v(s=>Promise.all(["static/chunks/2wm8p15qdp-ng.js"].map(s=>t.l(s))).then(()=>s(942760)))},496740,t=>{t.v(s=>Promise.all(["static/chunks/365l-wyhfm_-p.js"].map(s=>t.l(s))).then(()=>s(436913)))},896290,t=>{t.v(s=>Promise.all(["static/chunks/0_81-tq3u4vi9.js"].map(s=>t.l(s))).then(()=>s(67631)))},161379,t=>{t.v(s=>Promise.all(["static/chunks/2ktgnhn-0j381.js"].map(s=>t.l(s))).then(()=>s(397216)))},839484,t=>{t.v(t=>Promise.resolve().then(()=>t(716400)))},350117,t=>{t.v(s=>Promise.all(["static/chunks/0mkmxdnpoteey.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(s=>t.l(s))).then(()=>s(36245)))},382528,t=>{t.v(s=>Promise.all(["static/chunks/00h58csdfefay.js","static/chunks/1-2_pusn4n8oh.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/411-m6wb1xycs.js"].map(s=>t.l(s))).then(()=>s(868938)))},705108,t=>{t.v(s=>Promise.all(["static/chunks/0kdfzi54utgbh.js","static/chunks/42kilhgqayez4.js"].map(s=>t.l(s))).then(()=>s(121437)))},143904,t=>{t.v(s=>Promise.all(["static/chunks/0u3ktztrzu1fa.js","static/chunks/1ebh7wwf-wzqn.js"].map(s=>t.l(s))).then(()=>s(482661)))},696017,t=>{"use strict";var s=t.i(60231),a=t.i(419524);t.i(947716);var e=t.i(723685),l=(0,a.__name)(t=>{let{securityLevel:a}=(0,s.getConfig2)(),l=(0,e.select)("body");if("sandbox"===a){let s=(0,e.select)(`#i${t}`),a=s.node()?.contentDocument??document;l=(0,e.select)(a.body)}return l.select(`#${t}`)},"selectSvgElement");t.s(["selectSvgElement",0,l])},502056,t=>{"use strict";var s=t.i(217248),a=t.i(447804),e=t.i(508324),l=t.i(419524),i=(0,l.__name)(({flowchart:t})=>{let s=t?.subGraphTitleMargin?.top??0,a=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:s,subGraphTitleBottomMargin:a,subGraphTitleTotalMargin:s+a}},"getSubGraphTitleMargins"),n=new Map;async function c(t,e,l){let i,c;"rect"===e.shape&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");let r=e.shape?s.shapes[e.shape]:void 0;if(!r)throw Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let s;"sandbox"===l.config.securityLevel?s="_top":e.linkTarget&&(s=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",s??null),c=await r(i,e,l)}else i=c=await r(t,e,l);return i.attr("data-look",(0,a.handleUndefinedAttr)(e.look)),e.tooltip&&c.attr("title",e.tooltip),n.set(e.id,i),e.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}(0,l.__name)(c,"insertNode");var r=(0,l.__name)((t,s)=>{n.set(s.id,t)},"setNodeElem"),h=(0,l.__name)(()=>{n.clear()},"clear"),o=(0,l.__name)(t=>{let s=n.get(t.id);e.log.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let a=t.diff||0;return t.clusterNode?s.attr("transform","translate("+(t.x+a-t.width/2)+", "+(t.y-t.height/2-8)+")"):s.attr("transform","translate("+t.x+", "+t.y+")"),a},"positionNode");t.s(["clear",0,h,"getSubGraphTitleMargins",0,i,"insertNode",0,c,"positionNode",0,o,"setNodeElem",0,r])},369110,t=>{"use strict";var s=t.i(502056),a=t.i(217248),e=t.i(224797),l=t.i(836333),i=t.i(60231),n=t.i(508324),c=t.i(419524);t.i(947716);var r=t.i(723685),h=t.i(883272),o=(0,c.__name)(async(t,s)=>{let c,o,m=(0,i.getConfig2)(),{themeVariables:u,handDrawnSeed:d}=m,{clusterBkg:p,clusterBorder:k}=u,{labelStyles:j,nodeStyles:v,borderStyles:g,backgroundStyles:w}=(0,e.styles2String)(s),f=t.insert("g").attr("class","cluster swimlane "+(s.cssClasses||"")).attr("id",s.id).attr("data-id",s.id).attr("data-et","cluster").attr("data-look",s.look),P=(0,i.evaluate)(m.flowchart.htmlLabels),y="LR"===s.direction,x=f.insert("g").attr("class","cluster-label swimlane-label"),b=await (0,l.createText)(x,s.label,{style:s.labelStyle,useHtmlLabels:P,isNode:!0,width:s.width}),_=b.getBBox();if(P){let t=b.children[0],s=(0,r.select)(b);_=t.getBoundingClientRect(),s.attr("width",_.width),s.attr("height",_.height)}let z=s.padding??0,q=s.width<=_.width+z?_.width+z:s.width;s.width<=_.width+z?s.diff=(q-s.width)/2-z:s.diff=-z;let N=s.height,S=s.y-N/2,C=s.y+N/2,E=s.x-q/2,B=void 0!==s.swimlaneContentTop?s.swimlaneContentTop:S+N/3,L=4*!!y,M=_.height+2*L;if(y){let t=Math.max(M,_.height+2*L),a=E+t,l=Math.max(0,q-t);if("handDrawn"===s.look){let i=h.default.svg(f),n=(0,e.userNodeOverrides)(s,{roughness:.7,fill:p,stroke:k,fillWeight:3,seed:d}),r=(0,e.userNodeOverrides)(s,{roughness:.7,fill:"none",stroke:k,seed:d}),m=i.rectangle(E,S,t,N,n);c=f.insert(()=>m,":first-child");let u=i.rectangle(a,S,l,N,r);o=f.insert(()=>u,":first-child"),c.select("path:nth-child(2)").attr("style",g.join(";")),c.select("path").attr("style",w.join(";").replace("fill","stroke"))}else c=f.insert("rect",":first-child"),o=f.insert("rect",":first-child"),c.attr("class","swimlane-title").attr("style",v).attr("x",E).attr("y",S).attr("width",t).attr("height",N).attr("fill",p).attr("stroke",k),o.attr("class","swimlane-body").attr("style",v).attr("x",a).attr("y",S).attr("width",l).attr("height",N).attr("fill","none").attr("stroke",k);let i=E+t/2,n=s.y;x.attr("transform",`translate(${i}, ${n}) rotate(-90) translate(${-_.width/2}, ${-_.height/2})`)}else{let t=Math.min(M,Math.max(0,B-S)),a=S+t,l=Math.max(0,C-a),i=s.x-q/2;if("handDrawn"===s.look){let n=h.default.svg(f),r=(0,e.userNodeOverrides)(s,{roughness:.7,fill:p,stroke:k,fillWeight:3,seed:d}),m=(0,e.userNodeOverrides)(s,{roughness:.7,fill:"none",stroke:k,seed:d}),u=n.rectangle(i,S,q,t,r);c=f.insert(()=>u,":first-child");let j=n.rectangle(i,a,q,l,m);o=f.insert(()=>j,":first-child"),c.select("path:nth-child(2)").attr("style",g.join(";")),c.select("path").attr("style",w.join(";").replace("fill","stroke"))}else c=f.insert("rect",":first-child"),o=f.insert("rect",":first-child"),c.attr("class","swimlane-title").attr("style",v).attr("x",i).attr("y",S).attr("width",q).attr("height",t).attr("fill",p).attr("stroke",k),o.attr("class","swimlane-body").attr("style",v).attr("x",i).attr("y",a).attr("width",q).attr("height",l).attr("fill","none").attr("stroke",k);let n=s.x-_.width/2,r=S+(t-_.height)/2;x.attr("transform",`translate(${n}, ${r})`)}if(n.log.trace("Swimlane data ",s,JSON.stringify(s)),j){let t=x.select("span");t&&t.attr("style",j)}return s.offsetX=0,s.width=q,s.height=N,s.offsetY=_.height-z/2,s.intersect=function(t){return(0,a.intersect_rect_default)(s,t)},{cluster:f,labelBBox:_}},"swimlane"),m=(0,c.__name)(async(t,c)=>{let o,m;n.log.info("Creating subgraph rect for ",c.id,c);let u=(0,i.getConfig2)(),{themeVariables:d,handDrawnSeed:p}=u,{clusterBkg:k,clusterBorder:j}=d,{labelStyles:v,nodeStyles:g,borderStyles:w,backgroundStyles:f}=(0,e.styles2String)(c),P=t.insert("g").attr("class","cluster "+c.cssClasses).attr("id",c.domId).attr("data-look",c.look),y=(0,i.getEffectiveHtmlLabels)(u),x=P.insert("g").attr("class","cluster-label "),b=(o="markdown"===c.labelType?await (0,l.createText)(x,c.label,{style:c.labelStyle,useHtmlLabels:y,isNode:!0,width:c.width}):await (0,a.createLabel_default)(x,c.label,c.labelStyle||"",!1,!0)).getBBox();if((0,i.getEffectiveHtmlLabels)(u)){let t=o.children[0],s=(0,r.select)(o);b=t.getBoundingClientRect(),s.attr("width",b.width),s.attr("height",b.height)}let _=c.width<=b.width+c.padding?b.width+c.padding:c.width;c.width<=b.width+c.padding?c.diff=(_-c.width)/2-c.padding:c.diff=-c.padding;let z=c.height,q=c.x-_/2,N=c.y-z/2;if(n.log.trace("Data ",c,JSON.stringify(c)),"handDrawn"===c.look){let t=h.default.svg(P),s=(0,e.userNodeOverrides)(c,{roughness:.7,fill:k,stroke:j,fillWeight:3,seed:p}),l=t.path((0,a.createRoundedRectPathD)(q,N,_,z,0),s);(m=P.insert(()=>(n.log.debug("Rough node insert CXC",l),l),":first-child")).select("path:nth-child(2)").attr("style",w.join(";")),m.select("path").attr("style",f.join(";").replace("fill","stroke"))}else(m=P.insert("rect",":first-child")).attr("style",g).attr("rx",c.rx).attr("ry",c.ry).attr("x",q).attr("y",N).attr("width",_).attr("height",z);let{subGraphTitleTopMargin:S}=(0,s.getSubGraphTitleMargins)(u);if(x.attr("transform",`translate(${c.x-b.width/2}, ${c.y-c.height/2+S})`),v){let t=x.select("span");t&&t.attr("style",v)}let C=m.node().getBBox();return c.offsetX=0,c.width=C.width,c.height=C.height,c.offsetY=b.height-c.padding/2,c.intersect=function(t){return(0,a.intersect_rect_default)(c,t)},{cluster:P,labelBBox:b}},"rect"),u=(0,c.__name)((t,s)=>{let e=t.insert("g").attr("class","note-cluster").attr("id",s.domId),l=e.insert("rect",":first-child"),i=0*s.padding,n=i/2;l.attr("rx",s.rx).attr("ry",s.ry).attr("x",s.x-s.width/2-n).attr("y",s.y-s.height/2-n).attr("width",s.width+i).attr("height",s.height+i).attr("fill","none");let c=l.node().getBBox();return s.width=c.width,s.height=c.height,s.intersect=function(t){return(0,a.intersect_rect_default)(s,t)},{cluster:e,labelBBox:{width:0,height:0}}},"noteGroup"),d=(0,c.__name)(async(t,s)=>{let e,l=(0,i.getConfig2)(),{themeVariables:n,handDrawnSeed:c}=l,{altBackground:o,compositeBackground:m,compositeTitleBackground:u,nodeBorder:d}=n,p=t.insert("g").attr("class",s.cssClasses).attr("id",s.domId).attr("data-id",s.id).attr("data-look",s.look),k=p.insert("g",":first-child"),j=p.insert("g").attr("class","cluster-label"),v=p.append("rect"),g=await (0,a.createLabel_default)(j,s.label,s.labelStyle,void 0,!0),w=g.getBBox();if((0,i.getEffectiveHtmlLabels)(l)){let t=g.children[0],s=(0,r.select)(g);w=t.getBoundingClientRect(),s.attr("width",w.width),s.attr("height",w.height)}let f=0*s.padding,P=(s.width<=w.width+s.padding?w.width+s.padding:s.width)+f;s.width<=w.width+s.padding?s.diff=(P-s.width)/2-s.padding:s.diff=-s.padding;let y=s.height+f,x=s.height+f-w.height-6,b=s.x-P/2,_=s.y-y/2;s.width=P;let z=s.y-s.height/2-f/2+w.height+2;if("handDrawn"===s.look){let t=s.cssClasses.includes("statediagram-cluster-alt"),l=h.default.svg(p),i=s.rx||s.ry?l.path((0,a.createRoundedRectPathD)(b,_,P,y,10),{roughness:.7,fill:u,fillStyle:"solid",stroke:d,seed:c}):l.rectangle(b,_,P,y,{seed:c});e=p.insert(()=>i,":first-child");let n=l.rectangle(b,z,P,x,{fill:t?o:m,fillStyle:t?"hachure":"solid",stroke:d,seed:c});e=p.insert(()=>i,":first-child"),v=p.insert(()=>n)}else(e=k.insert("rect",":first-child")).attr("class","outer").attr("x",b).attr("y",_).attr("width",P).attr("height",y).attr("data-look",s.look),v.attr("class","inner").attr("x",b).attr("y",z).attr("width",P).attr("height",x);return j.attr("transform",`translate(${s.x-w.width/2}, ${_+1-3*!(0,i.getEffectiveHtmlLabels)(l)})`),s.height=e.node().getBBox().height,s.offsetX=0,s.offsetY=w.height-s.padding/2,s.labelBBox=w,s.intersect=function(t){return(0,a.intersect_rect_default)(s,t)},{cluster:p,labelBBox:w}},"roundedWithTitle"),p=(0,c.__name)(async(t,c)=>{let o;n.log.info("Creating subgraph rect for ",c.id,c);let m=(0,i.getConfig2)(),{themeVariables:u,handDrawnSeed:d}=m,{clusterBkg:p,clusterBorder:k}=u,{labelStyles:j,nodeStyles:v,borderStyles:g,backgroundStyles:w}=(0,e.styles2String)(c),f=t.insert("g").attr("class","cluster "+c.cssClasses).attr("id",c.domId).attr("data-look",c.look),P=(0,i.getEffectiveHtmlLabels)(m),y=f.insert("g").attr("class","cluster-label "),x=await (0,l.createText)(y,c.label,{style:c.labelStyle,useHtmlLabels:P,isNode:!0,width:c.width}),b=x.getBBox();if((0,i.getEffectiveHtmlLabels)(m)){let t=x.children[0],s=(0,r.select)(x);b=t.getBoundingClientRect(),s.attr("width",b.width),s.attr("height",b.height)}let _=c.width<=b.width+c.padding?b.width+c.padding:c.width;c.width<=b.width+c.padding?c.diff=(_-c.width)/2-c.padding:c.diff=-c.padding;let z=c.height,q=c.x-_/2,N=c.y-z/2;if(n.log.trace("Data ",c,JSON.stringify(c)),"handDrawn"===c.look){let t=h.default.svg(f),s=(0,e.userNodeOverrides)(c,{roughness:.7,fill:p,stroke:k,fillWeight:4,seed:d}),l=t.path((0,a.createRoundedRectPathD)(q,N,_,z,c.rx),s);(o=f.insert(()=>(n.log.debug("Rough node insert CXC",l),l),":first-child")).select("path:nth-child(2)").attr("style",g.join(";")),o.select("path").attr("style",w.join(";").replace("fill","stroke"))}else(o=f.insert("rect",":first-child")).attr("style",v).attr("rx",c.rx).attr("ry",c.ry).attr("x",q).attr("y",N).attr("width",_).attr("height",z);let{subGraphTitleTopMargin:S}=(0,s.getSubGraphTitleMargins)(m);if(y.attr("transform",`translate(${c.x-b.width/2}, ${c.y-c.height/2+S})`),j){let t=y.select("span");t&&t.attr("style",j)}let C=o.node().getBBox();return c.offsetX=0,c.width=C.width,c.height=C.height,c.offsetY=b.height-c.padding/2,c.intersect=function(t){return(0,a.intersect_rect_default)(c,t)},{cluster:f,labelBBox:b}},"kanbanSection"),k={rect:m,squareRect:m,roundedWithTitle:d,noteGroup:u,divider:(0,c.__name)((t,s)=>{let e,{themeVariables:l,handDrawnSeed:n}=(0,i.getConfig2)(),{nodeBorder:c}=l,r=t.insert("g").attr("class",s.cssClasses).attr("id",s.domId).attr("data-look",s.look),o=r.insert("g",":first-child"),m=0*s.padding,u=s.width+m;s.diff=-s.padding;let d=s.height+m,p=s.x-u/2,k=s.y-d/2;if(s.width=u,"handDrawn"===s.look){let t=h.default.svg(r).rectangle(p,k,u,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:c,seed:n});e=r.insert(()=>t,":first-child")}else{e=o.insert("rect",":first-child");let t="outer";s.look,t="divider",e.attr("class",t).attr("x",p).attr("y",k).attr("width",u).attr("height",d).attr("data-look",s.look)}return s.height=e.node().getBBox().height,s.offsetX=0,s.offsetY=0,s.intersect=function(t){return(0,a.intersect_rect_default)(s,t)},{cluster:r,labelBBox:{}}},"divider"),kanbanSection:p,swimlane:o},j=new Map,v=(0,c.__name)(async(t,s)=>{let a=s.shape||"rect",e=await k[a](t,s);return j.set(s.id,e),e},"insertCluster"),g=(0,c.__name)(()=>{j=new Map},"clear");t.s(["clear",0,g,"insertCluster",0,v])},121292,t=>{"use strict";var s=t.i(369110),a=t.i(382793),e=t.i(502056),l=t.i(217248),i=t.i(447804),n=t.i(60231),c=t.i(508324),r=t.i(419524),h={common:n.common_default,getConfig:n.getConfig,insertCluster:s.insertCluster,insertEdge:a.insertEdge,insertEdgeLabel:a.insertEdgeLabel,insertMarkers:a.markers_default,insertNode:e.insertNode,interpolateToCurve:i.interpolateToCurve,labelHelper:l.labelHelper,log:c.log,positionEdgeLabel:a.positionEdgeLabel},o={},m=(0,r.__name)(t=>{for(let s of t)o[s.name]=s},"registerLayoutLoaders");(0,r.__name)(()=>{m([{name:"dagre",loader:(0,r.__name)(async()=>await t.A(555153),"loader")},{name:"swimlane",loader:(0,r.__name)(async()=>await t.A(12782),"loader")},{name:"cose-bilkent",loader:(0,r.__name)(async()=>await t.A(208503),"loader")}])},"registerDefaultLayoutLoaders")();var u=(0,r.__name)(async(t,s)=>{if(!(t.layoutAlgorithm in o))throw Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(let s of t.nodes){let a=s.domId||s.id;s.domId=`${t.diagramId}-${a}`}let a=o[t.layoutAlgorithm],e=await a.loader(),{theme:l,themeVariables:i}=t.config,{useGradient:n,gradientStart:c,gradientStop:r}=i,m=s.attr("id");if(s.append("defs").append("filter").attr("id",`${m}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${l?.includes("dark")?"#FFFFFF":"#000000"}`),s.append("defs").append("filter").attr("id",`${m}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${l?.includes("dark")?"#FFFFFF":"#000000"}`),n){let t=s.append("linearGradient").attr("id",s.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("svg:stop").attr("offset","0%").attr("stop-color",c).attr("stop-opacity",1),t.append("svg:stop").attr("offset","100%").attr("stop-color",r).attr("stop-opacity",1)}return e.render(t,s,h,{algorithm:a.algorithm})},"render"),d=(0,r.__name)((t="",{fallback:s="dagre"}={})=>{if(t in o)return t;if(s in o)return c.log.warn(`Layout algorithm ${t} is not registered. Using ${s} as fallback.`),s;throw Error(`Both layout algorithms ${t} and ${s} are not registered.`)},"getRegisteredLayoutAlgorithm");t.s(["getRegisteredLayoutAlgorithm",0,d,"registerLayoutLoaders",0,m,"render",0,u])},110338,t=>{t.v(s=>Promise.all(["static/chunks/2gocl3dq0_h1s.js","static/chunks/2itcfm_igcz5x.js"].map(s=>t.l(s))).then(()=>s(59618)))},4699,t=>{t.v(s=>Promise.all(["static/chunks/01xjer0i_e5z5.js","static/chunks/2itcfm_igcz5x.js"].map(s=>t.l(s))).then(()=>s(595016)))},208503,t=>{t.v(s=>Promise.all(["static/chunks/0vhltcpdssl3-.js","static/chunks/411-m6wb1xycs.js"].map(s=>t.l(s))).then(()=>s(752312)))},342649,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1g6hadfcoz4ag.js"].map(s=>t.l(s))).then(()=>s(447429)))},555153,t=>{t.v(s=>Promise.all(["static/chunks/16mzcd_gvdgbo.js","static/chunks/3lx-n8v_8u7og.js"].map(s=>t.l(s))).then(()=>s(921789)))},121563,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/221-n1wtpkus8.js"].map(s=>t.l(s))).then(()=>s(52278)))},775281,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/3oif9bymgqjgd.js"].map(s=>t.l(s))).then(()=>s(75306)))},840094,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/3mjwob-a5hhwz.js"].map(s=>t.l(s))).then(()=>s(958133)))},806739,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/266qo7h19xz_m.js"].map(s=>t.l(s))).then(()=>s(486182)))},725135,t=>{t.v(s=>Promise.all(["static/chunks/25pfy8u3vc_bn.js","static/chunks/2qq7e47gpyc_e.js"].map(s=>t.l(s))).then(()=>s(271981)))},257999,t=>{t.v(s=>Promise.all(["static/chunks/1kg8hnvdsweku.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(s=>t.l(s))).then(()=>s(954776)))},126038,t=>{t.v(s=>Promise.all(["static/chunks/1wrwqqt23_cqy.js"].map(s=>t.l(s))).then(()=>s(868948)))},299022,t=>{t.v(s=>Promise.all(["static/chunks/025bmrgeukcb2.js","static/chunks/2b4v6n9b8htrv.js"].map(s=>t.l(s))).then(()=>s(595502)))},216587,t=>{t.v(s=>Promise.all(["static/chunks/1ztlt8o8gnas8.js","static/chunks/04e-e--5lk26x.js"].map(s=>t.l(s))).then(()=>s(222024)))},405760,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1rh4z578p-h1a.js"].map(s=>t.l(s))).then(()=>s(896515)))},937084,t=>{t.v(s=>Promise.all(["static/chunks/09nk4rn1z6j8b.js","static/chunks/2qq7e47gpyc_e.js"].map(s=>t.l(s))).then(()=>s(722875)))},223045,t=>{t.v(s=>Promise.all(["static/chunks/0x7n81v2cw92f.js"].map(s=>t.l(s))).then(()=>s(239077)))},104423,t=>{t.v(s=>Promise.all(["static/chunks/0oyz95sujd2c7.js"].map(s=>t.l(s))).then(()=>s(547384)))},847615,t=>{t.v(s=>Promise.all(["static/chunks/3s-zbm7kxc46y.js"].map(s=>t.l(s))).then(()=>s(980953)))},265584,t=>{t.v(s=>Promise.all(["static/chunks/14b2ne-5dycww.js"].map(s=>t.l(s))).then(()=>s(582576)))},121612,t=>{t.v(s=>Promise.all(["static/chunks/1-axl1a1s8xi7.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(s=>t.l(s))).then(()=>s(724854)))},761201,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/38h4_u_fq6ose.js"].map(s=>t.l(s))).then(()=>s(537834)))},480988,t=>{t.v(s=>Promise.all(["static/chunks/0dhmf6y59xjoo.js"].map(s=>t.l(s))).then(()=>s(713179)))},780947,t=>{t.v(s=>Promise.all(["static/chunks/3r7r2d2yc93-y.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(s=>t.l(s))).then(()=>s(354077)))},775900,t=>{t.v(s=>Promise.all(["static/chunks/14osgsp3aiqpz.js"].map(s=>t.l(s))).then(()=>s(207851)))},650519,t=>{t.v(s=>Promise.all(["static/chunks/3peltyinql2qj.js"].map(s=>t.l(s))).then(()=>s(621500)))},654159,t=>{t.v(s=>Promise.all(["static/chunks/2o4dndk0d68do.js","static/chunks/1u5i-jti87jbo.js"].map(s=>t.l(s))).then(()=>s(801891)))},483976,t=>{t.v(s=>Promise.all(["static/chunks/0p54qye85am3w.js"].map(s=>t.l(s))).then(()=>s(122015)))},99530,t=>{t.v(s=>Promise.all(["static/chunks/0u9ae9k_2g7k3.js","static/chunks/3lx-n8v_8u7og.js","static/chunks/3her9o9_qn46y.js"].map(s=>t.l(s))).then(()=>s(757018)))},633604,t=>{t.v(s=>Promise.all(["static/chunks/2sdwbfs1x5skp.js","static/chunks/3her9o9_qn46y.js"].map(s=>t.l(s))).then(()=>s(196572)))},12782,t=>{t.v(s=>Promise.all(["static/chunks/0_l0vn2teso0z.js"].map(s=>t.l(s))).then(()=>s(619325)))},868278,t=>{t.v(s=>Promise.all(["static/chunks/2m267diam_vib.js","static/chunks/2b4v6n9b8htrv.js"].map(s=>t.l(s))).then(()=>s(557786)))},9691,t=>{t.v(s=>Promise.all(["static/chunks/2udhdtq_z8488.js"].map(s=>t.l(s))).then(()=>s(254768)))},539575,t=>{t.v(s=>Promise.all(["static/chunks/0si45yj1su8y7.js"].map(s=>t.l(s))).then(()=>s(263487)))},85919,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/02slxciv9jt1p.js"].map(s=>t.l(s))).then(()=>s(353883)))},437446,t=>{t.v(s=>Promise.all(["static/chunks/2v_t22-0u_seu.js","static/chunks/0m-pl93u72hp9.js"].map(s=>t.l(s))).then(()=>s(819125)))},514467,t=>{t.v(s=>Promise.all(["static/chunks/1zlldlu99uorc.js"].map(s=>t.l(s))).then(()=>s(477142)))},369582,t=>{t.v(s=>Promise.all(["static/chunks/2hugas7n-e13p.js"].map(s=>t.l(s))).then(()=>s(976823)))},558850,t=>{t.v(s=>Promise.all(["static/chunks/41s9cnvp51p5u.js"].map(s=>t.l(s))).then(()=>s(335871)))}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,107941,e=>{"use strict";var t=e.i(843476),i=e.i(24071),n=e.i(867927),s=e.i(482022),r=e.i(829600),a=e.i(434322),o=e.i(905015),l=e.i(226091),d=e.i(726067),c=e.i(569644),m=e.i(815170),u=e.i(51921),x=e.i(650639),f=e.i(759659),h=e.i(438583),p=e.i(271645),g=e.i(798120),y=e.i(167881),v=e.i(917162),k=e.i(41533),j=e.i(895836),b=e.i(621285),w=e.i(914281),N=e.i(95187);let S=(0,N.createServerReference)("7fefd295187e02f4444371c90821d90314c11d3fe1",N.callServer,void 0,N.findSourceMapURL,"emptyScratchAction");var F=e.i(67268),C=e.i(245629),z=e.i(609856),A=e.i(283653),R=e.i(647163);let M={markdown:l.FileText,csv:x.Sheet,json:o.FileJson,text:l.FileText,frame:a.FileCode2,image:m.Image,audio:u.Music,video:h.Video,none:r.File};function $({label:e,rows:i,children:n}){return 0===i.length?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"px-3 pt-3 pb-1 font-mono text-[10px] text-muted-foreground/60",children:e}),n]})}function E({entry:e,active:i,onPick:s}){let r="dir"===e.kind?d.Folder:M[e.view];return(0,t.jsxs)("button",{type:"button",onClick:s,title:"file"===e.kind?`${e.name} \xb7 ${(0,C.shortAgo)(e.at)}`:e.name,className:(0,R.cn)("mx-2 flex items-center gap-2 rounded-md px-2 py-1.5 text-left text-[13px] outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",i?"bg-secondary font-medium text-foreground":"text-muted-foreground hover:bg-muted/60 hover:text-foreground"),children:[(0,t.jsx)(r,{className:"size-3.5 shrink-0 opacity-70"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.name}),"file"===e.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/75",children:(0,R.formatBytes)(e.bytes)}),(0,t.jsx)("span",{className:"w-3.5 shrink-0"})]}):(0,t.jsx)(n.ChevronRight,{className:"size-3.5 shrink-0 text-muted-foreground/50"})]})}function O({empty:e,onReveal:i}){return(0,t.jsxs)("div",{className:"space-y-4 p-8",children:[e?(0,t.jsxs)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:["Nothing here yet. What a bot writes during a call lands in"," ",(0,t.jsx)("span",{className:"font-mono text-[13px] text-foreground",children:"artifacts/"})," ","— a page, a table, a picture — and shows up here to open."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-sm leading-relaxed text-muted-foreground",children:"Pick a file on the left."}),(0,t.jsx)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:"Only what the app can open is listed — a page, a table, a picture, a note. Installed packages and tool leftovers are left out, and no folder is measured, so a folder opens as fast as it lists. Reveal folder for everything else."})]}),(0,t.jsxs)(y.Button,{variant:"outline",onClick:i,children:[(0,t.jsx)(c.FolderOpen,{}),"Reveal folder"]})]})}function P({file:e,onGone:i}){let n=e.path,[r]=(0,z.useServerAction)(F.openFileAction),[a,o]=(0,z.useServerAction)(w.deleteWorkspaceFileAction,{okMessage:"File deleted",onOk:()=>{(0,A.revalidate)(g.queryKey.workspace),i()}}),l=async()=>{await v.notify.confirm({title:`Delete ${n.split("/").pop()}?`,description:"It is deleted from disk for good.",okText:"Delete",destructive:!0})&&a(n)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3 border-b border-border/60 px-6 py-2",children:[(0,t.jsx)(V,{path:n}),(0,t.jsxs)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/70",children:[(0,R.formatBytes)(e.bytes)," · ",(0,C.shortAgo)(e.at)]}),(0,t.jsx)("a",{href:g.queryKey.fileView(n),target:"_blank",rel:"noreferrer","aria-label":"Open in a new tab",className:"grid size-7 shrink-0 place-items-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(s.ExternalLink,{className:"size-4"})}),(0,t.jsx)(y.Button,{size:"icon-sm",variant:"ghost","aria-label":"Reveal in the file manager",className:"text-muted-foreground",onClick:()=>r(n),children:(0,t.jsx)(c.FolderOpen,{})}),(0,t.jsx)(y.Button,{size:"icon-sm",variant:"ghost","aria-label":"Delete",loading:o,className:"text-muted-foreground",onClick:l,children:(0,t.jsx)(f.Trash2,{})})]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:(0,t.jsx)(b.FilePreview,{path:n,bytes:e.bytes})})]})}function V({path:e}){let i=["workspace",...e.split("/").filter(Boolean)];return(0,t.jsx)("span",{className:"flex min-w-0 flex-1 items-center gap-1 font-mono text-[11px] text-muted-foreground",children:i.map((e,s)=>(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1",children:[s>0&&(0,t.jsx)(n.ChevronRight,{className:"size-3 shrink-0 opacity-50"}),(0,t.jsx)("span",{className:(0,R.cn)("truncate",s===i.length-1&&"text-foreground"),children:e})]},`${s}-${e}`))})}e.s(["WorkspaceSetting",0,function(){let[e,n]=(0,p.useState)(""),[s,r]=(0,p.useState)(k.WORKSPACE_VIEW.rows),[a,o]=(0,p.useState)(null),[l,d]=(0,p.useState)(""),{data:m,isLoading:u,error:x}=(0,A.useServerRoute)(g.queryKey.workspaceFolder(e,s),{keepPreviousData:!0}),f=e=>{n(e),r(k.WORKSPACE_VIEW.rows)},[h,b]=(0,z.useServerAction)(S,{okMessage:"Scratch emptied",onOk:()=>(0,A.revalidate)(g.queryKey.workspace)}),[w]=(0,z.useServerAction)(F.openFileAction),N=async()=>{await v.notify.confirm({title:"Empty scratch?",description:"Everything under scratch/ is deleted for good. artifacts/ and projects/ are untouched.",okText:"Empty",destructive:!0})&&h()};if(u)return(0,t.jsx)(j.SettingPanesSkeleton,{});if(x)return(0,t.jsx)(j.SettingError,{message:x.message});let C=m?.entries??[],R=m?.total??0,M=l.trim().toLowerCase(),V=M?C.filter(e=>e.name.toLowerCase().includes(M)):C,W=V.filter(e=>"dir"===e.kind),B=V.filter(e=>"file"===e.kind),L=C.find(e=>"file"===e.kind&&e.path===a?.path)??a;return(0,t.jsx)(j.SettingPanes,{footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.SettingRailNote,{children:(0,t.jsxs)("span",{className:"font-mono",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:`.ai-workspace${e?`/${e}`:""}`}),` \xb7 ${function(e,t){let i=e.filter(e=>"dir"===e.kind).length,n=e.length-i,s=[i&&`${i} ${1===i?"folder":"folders"}`,n&&`${n} ${1===n?"file":"files"}`].filter(Boolean);if(!s.length)return"empty";let r=s.join(" · ");return t>e.length?`${r} of ${t.toLocaleString("en")}`:r}(C,R)}`]})}),(0,t.jsxs)(y.Button,{variant:"outline",size:"sm",onClick:()=>w(e||"."),children:[(0,t.jsx)(c.FolderOpen,{}),"Reveal folder"]}),(0,t.jsx)(y.Button,{variant:"outline",size:"sm",loading:b,onClick:N,className:"text-destructive hover:text-destructive",children:"Empty scratch"})]}),left:(0,t.jsxs)("div",{className:"flex flex-col py-2",children:[(0,t.jsx)(j.SettingFilter,{value:l,onChange:d,placeholder:"Filter this folder",className:"mx-2 mb-1.5 w-auto"}),e&&(0,t.jsxs)("button",{type:"button",onClick:()=>f(e.split("/").slice(0,-1).join("/")),className:"mx-2 mb-1 flex items-center gap-1 rounded-md px-2 py-1 text-left font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,t.jsx)(i.ChevronLeft,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e.split("/").slice(0,-1).pop()??"workspace"})]}),0===V.length?(0,t.jsx)("p",{className:"px-4 py-3 text-xs text-muted-foreground/60",children:M?"Nothing matches":"Empty folder"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)($,{label:"folders",rows:W,children:W.map(e=>(0,t.jsx)(E,{entry:e,onPick:()=>f(e.path)},e.path))}),(0,t.jsx)($,{label:"files",rows:B,children:B.map(e=>(0,t.jsx)(E,{entry:e,active:e.path===a?.path,onPick:()=>"file"===e.kind&&o(e)},e.path))})]}),R>C.length&&(0,t.jsx)("button",{type:"button",onClick:()=>r(s+k.WORKSPACE_VIEW.rows),className:"mx-2 mt-2 rounded-md px-2 py-1.5 text-left font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:`Show ${Math.min(k.WORKSPACE_VIEW.rows,R-C.length)} more of ${R.toLocaleString("en")}`})]}),right:L?.kind==="file"?(0,t.jsx)(P,{file:L,onGone:()=>o(null)},L.path):(0,t.jsx)(O,{empty:!e&&0===C.length,onReveal:()=>w(".")})})}],107941)},914281,e=>{"use strict";var t=e.i(95187);let i=(0,t.createServerReference)("7f376ce11e02bd8623e15e8cff16afba68bbafc52f",t.callServer,void 0,t.findSourceMapURL,"deleteWorkspaceFileAction");e.s(["deleteWorkspaceFileAction",0,i])},434322,51921,650639,438583,e=>{"use strict";var t=e.i(456420);let i={name:"file-code-corner",size:24,node:[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],aliases:["file-code-2"]};i.node;let n=(0,t.default)(i);e.s(["FileCode2",0,n],434322);let s={name:"music",size:24,node:[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]};s.node;let r=(0,t.default)(s);e.s(["Music",0,r],51921);let a={name:"sheet",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]]};a.node;let o=(0,t.default)(a);e.s(["Sheet",0,o],650639);let l={name:"video",size:24,node:[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]};l.node;let d=(0,t.default)(l);e.s(["Video",0,d],438583)},726067,e=>{"use strict";var t=e.i(456420);let i={name:"folder",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};i.node;let n=(0,t.default)(i);e.s(["Folder",0,n],726067)},815170,e=>{"use strict";var t=e.i(456420);let i={name:"image",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]};i.node;let n=(0,t.default)(i);e.s(["Image",0,n],815170)},759659,e=>{"use strict";var t=e.i(456420);let i={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};i.node;let n=(0,t.default)(i);e.s(["Trash2",0,n],759659)}]);
|