thursday-agent 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/api/artifact/route.js +4 -4
- package/.next/server/app/api/artifact/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/files/route.js +3 -3
- 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/task/[id]/route.js +8 -8
- package/.next/server/app/api/bot/task/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/task/route.js +6 -6
- package/.next/server/app/api/bot/task/route.js.nft.json +1 -1
- package/.next/server/app/api/config/route.js.nft.json +1 -1
- package/.next/server/app/api/events/route.js.nft.json +1 -1
- package/.next/server/app/api/file/[...path]/route.js +4 -4
- package/.next/server/app/api/file/[...path]/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/catalog/route.js +2 -2
- package/.next/server/app/api/llm-model/catalog/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/credits/route.js +2 -2
- package/.next/server/app/api/llm-model/credits/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/route.js +2 -2
- package/.next/server/app/api/llm-model/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/subscription/route.js +2 -2
- package/.next/server/app/api/llm-model/subscription/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/oauth/callback/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/tools/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/edit/route.js +11 -11
- package/.next/server/app/api/memory/edit/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/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 +6 -6
- package/.next/server/app/api/thursday/call/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/skills/route.js +6 -6
- package/.next/server/app/api/thursday/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/tool-call/route.js +8 -8
- package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/route.js +3 -2
- 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 +2 -2
- package/.next/server/app/artifact/[...path]/page.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/.next/server/app/page/server-reference-manifest.json +40 -40
- package/.next/server/app/page.js +1 -1
- 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]__026u77e._.js +5 -0
- package/.next/server/chunks/{[root-of-the-server]__02xjoto._.js → [root-of-the-server]__050zri4._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__0bg9710._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0in-d5s._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0pa9k-f._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__0qi_m0e._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__0tq0m_k._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0xep6j_._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__144l7qt._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__1anc1p9._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__1jg8t86._.js +8 -0
- package/.next/server/chunks/{[root-of-the-server]__12cabg9._.js → [root-of-the-server]__1lldzy9._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__01dkp4a._.js → [root-of-the-server]__1peqvsi._.js} +1 -1
- package/.next/server/chunks/[root-of-the-server]__1w8gm5h._.js +10 -0
- package/.next/server/chunks/[root-of-the-server]__1xt39nn._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__1zb8mfo._.js +8 -0
- package/.next/server/chunks/_0-fjql4._.js +11 -6
- package/.next/server/chunks/_00xh_q0._.js +1 -1
- package/.next/server/chunks/{_1_9mjx-._.js → _091bi8d._.js} +1 -1
- package/.next/server/chunks/_0fzqt2y._.js +29 -21
- package/.next/server/chunks/{_0u4aiy2._.js → _0lr92vd._.js} +1 -1
- package/.next/server/chunks/_0mecv0f._.js +11 -6
- package/.next/server/chunks/{_0sbynis._.js → _0si7xzn._.js} +1 -1
- package/.next/server/chunks/_1230wbx._.js +5 -5
- package/.next/server/chunks/{_0obojvv._.js → _18d7-5p._.js} +1 -1
- package/.next/server/chunks/_1c78vw5._.js +33 -25
- package/.next/server/chunks/_1d0j961._.js +2 -2
- package/.next/server/chunks/_1krd9rf._.js +1 -1
- package/.next/server/chunks/{_03a0897._.js → _1zkfbaa._.js} +1 -1
- package/.next/server/chunks/features_1qf3cei._.js +6 -1
- package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_0r28-sm._.js → node_modules_consola_dist_chunks_prompt_mjs_17k8irj._.js} +1 -1
- package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_1xoq2rl._.js → node_modules_consola_dist_chunks_prompt_mjs_1jidylq._.js} +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0-nob52._.js +4 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__202p40z._.js → [root-of-the-server]__0s4wb56._.js} +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__0xsog8n._.js → [root-of-the-server]__0sd3izg._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__1gtlw6v._.js → [root-of-the-server]__1-13tcn._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__10-dz5o._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__0s9l2sv._.js → [root-of-the-server]__1zidpfl._.js} +1 -1
- package/.next/server/chunks/ssr/_001_ms1._.js +6 -1
- package/.next/server/chunks/ssr/{_0gb4gmf._.js → _04z2c7b._.js} +2 -2
- package/.next/server/chunks/ssr/{_1nnsk7z._.js → _06tssji._.js} +2 -2
- package/.next/server/chunks/ssr/_0fk4c7d._.js +3 -0
- package/.next/server/chunks/ssr/_0i_6q1w._.js +1 -1
- package/.next/server/chunks/ssr/{_1h0rw11._.js → _0m2lsd1._.js} +2 -2
- package/.next/server/chunks/ssr/_0mggveb._.js +3 -0
- package/.next/server/chunks/ssr/{_1jhd09t._.js → _0nbpc_8._.js} +2 -2
- package/.next/server/chunks/ssr/{_1fojd41._.js → _0rzucul._.js} +3 -3
- package/.next/server/chunks/ssr/_0s99bgb._.js +1 -1
- package/.next/server/chunks/ssr/_1-teee5._.js +4 -4
- package/.next/server/chunks/ssr/{_0fz4mf_._.js → _11j92tu._.js} +2 -2
- package/.next/server/chunks/ssr/{_1b2mjwr._.js → _1ebxla1._.js} +2 -2
- package/.next/server/chunks/ssr/{_1gd8q8l._.js → _1jdgjv9._.js} +2 -2
- package/.next/server/chunks/ssr/_1lz_cq2._.js +19 -11
- package/.next/server/chunks/ssr/{_0ilna52._.js → _1nj4niv._.js} +2 -2
- package/.next/server/chunks/ssr/_1ovmc9s._.js +3 -0
- 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/{node_modules_0pvd7q-._.js → node_modules_0-dr_o7._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1_pc9kq._.js → node_modules_04sksn9._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1vh5ntv._.js → node_modules_05-n6dz._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0b__sgl._.js → node_modules_056qgf-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0g7fzk3._.js → node_modules_07dsgkx._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_04jf_m8._.js → node_modules_0bvopy2._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0arus10._.js → node_modules_0fkeku3._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_14om4ar._.js → node_modules_0ifp389._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0cxaxk9._.js → node_modules_0iur59s._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1aaxuef._.js → node_modules_0m383r2._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1qpjvy5._.js → node_modules_0u9da1h._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1cx_ql6._.js → node_modules_0zeg3x_._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0_-_a--._.js → node_modules_1-y7nni._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_08dhkiq._.js → node_modules_16mkxuo._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_198nmll._.js → node_modules_1a0kmjl._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1efrqxi._.js → node_modules_1chvq5f._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0yugy6m._.js → node_modules_1j8j4pt._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_09q35v_._.js → node_modules_1k6n600._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1cz2hle._.js → node_modules_1k7z2j6._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1gdh31p._.js → node_modules_1k8j8n0._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1eg7m6c._.js → node_modules_1lz0oxc._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0940ns5._.js → node_modules_1t77e4n._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_00etblx._.js → node_modules_1uyk91w._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0had7xd._.js → node_modules_1x0ztf4._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_14q6g4n._.js → node_modules_1y79i83._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1hpopmo._.js → node_modules_20c28js._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1b748ic._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0bkwd0u._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1z4hm5e._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0p9a9su._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_@vercel_oidc_dist_06mk8id._.js → node_modules_@vercel_oidc_dist_1o553h-._.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 +41 -41
- package/.next/static/chunks/{39j0fvpybzabl.js → 0n3jle9kbqfr2.js} +2 -2
- package/.next/static/chunks/{0fl3gwe4-l6tz.js → 11r2yp_yh9_qn.js} +1 -1
- package/.next/static/chunks/{1jd09sxcjddu1.js → 126fj4pga_72k.js} +1 -1
- package/.next/static/chunks/{0gnqdjn2lvdad.js → 159udiexf6dom.js} +1 -1
- package/.next/static/chunks/{08qe4as2q428z.js → 18gi7o2ibrgh8.js} +1 -1
- package/.next/static/chunks/{2u7xt6mxg44lf.js → 1q9z1tohil7xn.js} +1 -1
- package/.next/static/chunks/{3zmcsnuo25zvq.js → 1sjgfets224re.js} +1 -1
- package/.next/static/chunks/{0wcprt5ot5she.js → 1wszsr83t01gh.js} +1 -1
- package/.next/static/chunks/{0w52rrrmuj9r9.js → 2szintyibu0s5.js} +1 -1
- package/.next/static/chunks/{0hwap1-p0m5sa.js → 3-b6b7entqazs.js} +1 -1
- package/.next/static/chunks/{17p6tk6k88dq6.js → 3dmbhsv2u_8kj.js} +1 -1
- package/.next/static/chunks/{214ya3n5gxeih.js → 3i0a5px-oufgc.js} +1 -1
- package/.next/static/chunks/{1w73ece_6bheu.js → 3wexk9qo8zuj3.js} +3 -3
- package/.next/static/chunks/3xre8bu_pk1p_.js +1 -0
- package/.next/static/chunks/{3woj-xd7ki5_i.js → 3zv6t3i77xhr_.js} +1 -1
- package/.next/static/chunks/{3akmqm77muj4-.js → 408ueu4hfvcg7.js} +1 -1
- package/.next/static/chunks/{15m575979un5f.js → 435atsnhs7ksu.js} +6 -6
- package/bin/thursday.mjs +0 -0
- package/features/ai/prompts/bot.prompt.ts +1 -1
- package/features/ai/tools/bot.tool.ts +3 -3
- package/features/ai/tools/skills.tool.ts +25 -8
- package/features/bot/bot.run.ts +184 -73
- package/features/bot/bot.runner.ts +48 -23
- package/features/bot/task.query.ts +107 -4
- package/features/bot/task.store.ts +3 -5
- package/features/workspace/workspace.ts +27 -20
- package/package.json +1 -1
- package/skills/browser/SKILL.md +6 -5
- package/.next/server/chunks/[root-of-the-server]__04q--0f._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__0bl-e63._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0jq4ohy._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__0ls6_8y._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__1339jnv._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__18_teo8._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__1ccon1w._.js +0 -10
- package/.next/server/chunks/[root-of-the-server]__1wa1k7r._.js +0 -8
- package/.next/server/chunks/_1zjrdag._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1ox7hbk._.js +0 -4
- package/.next/server/chunks/ssr/_0n3toaw._.js +0 -3
- package/.next/server/chunks/ssr/_1-_etts._.js +0 -3
- package/.next/server/chunks/ssr/_1f-dg-6._.js +0 -3
- package/.next/static/chunks/00rd4-v8r7axp.js +0 -1
- /package/.next/static/{kaTO0UHqF1bMnWgCDik2f → G6-gNoyGDEcgAsq-L4PE1}/_buildManifest.js +0 -0
- /package/.next/static/{kaTO0UHqF1bMnWgCDik2f → G6-gNoyGDEcgAsq-L4PE1}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{kaTO0UHqF1bMnWgCDik2f → G6-gNoyGDEcgAsq-L4PE1}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,519029,e=>{"use strict";var t=e.i(843476),r=e.i(647163);function s({color:e,picked:i,onPick:a}){return(0,t.jsx)("button",{type:"button",onClick:a,"aria-label":e??"Follow the theme",style:e?{backgroundColor:e}:void 0,className:(0,r.cn)("size-5 rounded-full outline-none transition-transform hover:scale-110 focus-visible:ring-3 focus-visible:ring-ring/50",!e&&"bg-foreground",i&&"ring-2 ring-foreground/40 ring-offset-2 ring-offset-background")})}var i=e.i(864723);e.s(["MarkPalette",0,function({color:e,themePicked:r,onTheme:a,onPick:n}){return(0,t.jsx)("div",{className:"flex justify-center px-2",children:(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)(s,{color:null,picked:r,onPick:a}),(0,t.jsx)("span",{className:"w-2"}),i.MARK_PALETTE_ROWS[0].map(r=>(0,t.jsx)(s,{color:r,picked:e===r,onPick:()=>n(r)},r))]}),(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-2 pl-11",children:i.MARK_PALETTE_ROWS[1].map(r=>(0,t.jsx)(s,{color:r,picked:e===r,onPick:()=>n(r)},r))})]})})}],519029)},
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,519029,e=>{"use strict";var t=e.i(843476),r=e.i(647163);function s({color:e,picked:i,onPick:a}){return(0,t.jsx)("button",{type:"button",onClick:a,"aria-label":e??"Follow the theme",style:e?{backgroundColor:e}:void 0,className:(0,r.cn)("size-5 rounded-full outline-none transition-transform hover:scale-110 focus-visible:ring-3 focus-visible:ring-ring/50",!e&&"bg-foreground",i&&"ring-2 ring-foreground/40 ring-offset-2 ring-offset-background")})}var i=e.i(864723);e.s(["MarkPalette",0,function({color:e,themePicked:r,onTheme:a,onPick:n}){return(0,t.jsx)("div",{className:"flex justify-center px-2",children:(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)(s,{color:null,picked:r,onPick:a}),(0,t.jsx)("span",{className:"w-2"}),i.MARK_PALETTE_ROWS[0].map(r=>(0,t.jsx)(s,{color:r,picked:e===r,onPick:()=>n(r)},r))]}),(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-2 pl-11",children:i.MARK_PALETTE_ROWS[1].map(r=>(0,t.jsx)(s,{color:r,picked:e===r,onPick:()=>n(r)},r))})]})})}],519029)},333826,e=>{"use strict";var t=e.i(95187);let r=(0,t.createServerReference)("7f2cd09869c1a94eb452d214e327ed12bf3043400f",t.callServer,void 0,t.findSourceMapURL,"deleteWorkspaceFileAction");e.s(["deleteWorkspaceFileAction",0,r])},333999,e=>{"use strict";var t=e.i(271645),r=e.i(647163);e.s(["useObjectState",0,e=>{let[s,i]=(0,t.useState)(e);return[s,(0,t.useMemo)(()=>{let e=e=>{i(t=>{let s=(0,r.isFunction)(e)?e(t):e;return Object.keys(s).some(e=>!Object.is(t[e],s[e]))?{...t,...s}:t})},t=new Map;return new Proxy(e,{get(s,i,a){if("symbol"==typeof i)return Reflect.get(s,i,a);let n=t.get(i);return n||(n=t=>{e(e=>({[i]:(0,r.isFunction)(t)?t(e[i]):t}))},t.set(i,n)),n}})},[])]}])},759659,e=>{"use strict";var t=e.i(456420);let r={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"]};r.node;let s=(0,t.default)(r);e.s(["Trash2",0,s],759659)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,621285,616172,177373,t=>{"use strict";var e=t.i(843476),r=t.i(271645),a=t.i(798120),n=t.i(167881),i=t.i(630374),l=t.i(683408),s=t.i(671428),o=t.i(647163);function d({className:t,...r}){return(0,e.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,e.jsx)("table",{"data-slot":"table",className:(0,o.cn)("w-full caption-bottom text-sm",t),...r})})}function c({className:t,...r}){return(0,e.jsx)("thead",{"data-slot":"table-header",className:(0,o.cn)("[&_tr]:border-b",t),...r})}function u({className:t,...r}){return(0,e.jsx)("tbody",{"data-slot":"table-body",className:(0,o.cn)("[&_tr:last-child]:border-0",t),...r})}function h({className:t,...r}){return(0,e.jsx)("tr",{"data-slot":"table-row",className:(0,o.cn)("border-b border-border/60 transition-colors data-[state=selected]:bg-muted hover:bg-muted/40",t),...r})}function f({className:t,...r}){return(0,e.jsx)("th",{"data-slot":"table-head",className:(0,o.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),...r})}function g({className:t,...r}){return(0,e.jsx)("td",{"data-slot":"table-cell",className:(0,o.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0",t),...r})}var m=t.i(41533);let w=t=>`text/${t}; charset=utf-8`,p={md:{kind:"markdown",mime:w("markdown")},markdown:{kind:"markdown",mime:w("markdown")},csv:{kind:"csv",mime:w("csv")},json:{kind:"json",mime:"application/json; charset=utf-8"},txt:{kind:"text",mime:w("plain")},log:{kind:"text",mime:w("plain")},html:{kind:"frame",mime:w("html")},htm:{kind:"frame",mime:w("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:w("css")},js:{kind:"none",mime:w("javascript")},woff2:{kind:"none",mime:"font/woff2"}},x=t=>p[t.split(".").pop()?.toLowerCase()??""]?.kind??"none",b=Object.entries(p).filter(([,t])=>"none"!==t.kind).map(([t])=>t),y=RegExp(String.raw`(?<![\p{L}\p{N}_/:@%-])(?:[\p{L}\p{N}_.@%-]+/)*[\p{L}\p{N}_@%-]+(?:\.[\p{L}\p{N}_-]+)*\.(?:${b.join("|")})\b`,"giu"),k=`${m.PATHS.workspace}/`;function v(t){let e=t.trim(),r=e.indexOf(k);return r>=0?e.slice(r+k.length)||null:e.startsWith("/")||/^[A-Za-z]:/.test(e)||e.split("/").includes("..")?null:e||null}t.s(["pathsIn",0,function(t){let e=t.replace(/\b[a-z][\w+.-]*:\/\/\S+/gi," "),r=new Set;for(let t of e.match(y)??[]){let e=function(t){let e=v(t);if(!e)return null;let[r,...a]=e.split("/");return a.length&&r.includes(".")?null:e}(t);e&&r.add(e)}return[...r].slice(0,6)},"viewKindOf",0,x,"workspaceRelative",0,v],616172);var N=t.i(95187);let j=(0,N.createServerReference)("7f4957e151a50cd41ee138dc20323d2118d625a8e9",N.callServer,void 0,N.findSourceMapURL,"openFileAction");t.s(["openFileAction",0,j],177373);var S=t.i(609856);let D=new Set(["frame","image","audio","video"]);function M(t){let e=v(t);if(!e)return{how:"os"};let r=x(e);return D.has(r)?{how:"tab",path:e,href:a.queryKey.fileView(e)}:"none"===r?{how:"os"}:{how:"dialog",path:e}}let _=(0,r.createContext)(null),C={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 B({kind:t,content:r,truncated:a,where:n="dialog"}){return(0,e.jsxs)(e.Fragment,{children:[null!=a&&(0,e.jsx)(T,{of:a}),(0,e.jsx)(O,{kind:t,content:r,where:n})]})}function T({of:t}){return(0,e.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,o.formatBytes)(m.WORKSPACE_VIEW.textMax)} of ${(0,o.formatBytes)(t)}. `,"Open the file itself for the rest."]})}function O({kind:t,content:r,where:a}){let n=C[a];switch(t){case"markdown":return(0,e.jsx)("div",{className:(0,o.cn)("min-w-0 text-sm leading-relaxed",n.prose),children:(0,e.jsx)(l.Markdown,{children:r})});case"csv":return(0,e.jsx)(P,{content:r,className:n.block});case"json":return(0,e.jsx)(F,{text:function(t){try{return JSON.stringify(JSON.parse(t),null,2)}catch{return t}}(r),className:n.block});default:return(0,e.jsx)(F,{text:r,className:n.block})}}function $(t){let[e,n]=(0,r.useState)(null),[i,l]=(0,r.useState)(null),[s,d]=(0,r.useState)(null);return(0,r.useEffect)(()=>{if(!t)return;n(null),l(null),d(null);let e=!1;return fetch(a.queryKey.file(t),{headers:{range:`bytes=0-${m.WORKSPACE_VIEW.textMax-1}`}}).then(async t=>{if(!t.ok)throw Error(await t.text());return{text:await t.text(),of:function(t){let e=t.headers.get("content-range")?.match(/^bytes \d+-(\d+)\/(\d+)$/);if(!e)return null;let[,r,a]=e.map(Number);return r+1<a?a:null}(t)}}).then(({text:t,of:r})=>{e||(n(null===r?t:t.slice(0,t.lastIndexOf("\n")+1||void 0)),d(r))}).catch(t=>!e&&l((0,o.errorToString)(t))),()=>{e=!0}},[t]),{content:e,failure:i,truncated:s}}function L({path:t,bytes:r}){let[a,i]=(0,S.useServerAction)(j);return(0,e.jsxs)("div",{className:"space-y-4 p-8",children:[(0,e.jsxs)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:[`This file is ${(0,o.formatBytes)(r)} — too big to draw here without `,"taking the window with it. Open it where it is instead."]}),(0,e.jsx)(n.Button,{variant:"outline",loading:i,onClick:()=>a(t),children:"Reveal in the file manager"})]})}function E({path:t,kind:r,onClose:a}){let{content:n,failure:l,truncated:o}=$(t),d=t?.split("/").pop()??"";return(0,e.jsx)(i.Dialog,{open:null!==t,onOpenChange:t=>!t&&a(),children:(0,e.jsxs)(i.DialogContent,{className:"flex max-h-[calc(100vh-3rem)] flex-col gap-0 overflow-hidden p-0 sm:max-w-4xl",children:[(0,e.jsx)(i.DialogTitle,{className:"sr-only",children:d}),(0,e.jsx)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border/60 px-4 py-2.5 pr-12",children:(0,e.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[12px]",children:t})}),(0,e.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:l?(0,e.jsx)("p",{className:"p-5 font-mono text-xs text-destructive",children:l}):null===n?(0,e.jsxs)("div",{className:"space-y-3 p-5",children:[(0,e.jsx)(s.Skeleton,{className:"h-5 w-2/3"}),(0,e.jsx)(s.Skeleton,{className:"h-4 w-full"}),(0,e.jsx)(s.Skeleton,{className:"h-4 w-5/6"})]}):(0,e.jsx)(B,{kind:r,content:n,truncated:o})})]})})}function F({text:t,className:r}){return(0,e.jsx)("pre",{className:(0,o.cn)("overflow-x-auto font-mono text-[12px] leading-relaxed whitespace-pre-wrap text-foreground/90",r),children:t})}function P({content:t,className:a}){let[n,...i]=(0,r.useMemo)(()=>(function(t){let e=[],r=[],a="",n=!1;for(let i=0;i<t.length;i++){let l=t[i];n?'"'===l&&'"'===t[i+1]?(a+='"',i++):'"'===l?n=!1:a+=l:'"'===l?n=!0:","===l?(r.push(a),a=""):"\n"===l||"\r"===l?("\r"===l&&"\n"===t[i+1]&&i++,r.push(a),e.push(r),r=[],a=""):a+=l}return(a.length||r.length)&&(r.push(a),e.push(r)),e.filter(t=>t.some(t=>t.trim()))})(t),[t]);return n?(0,e.jsx)("div",{className:(0,o.cn)("overflow-x-auto",a),children:(0,e.jsxs)(d,{children:[(0,e.jsx)(c,{children:(0,e.jsx)(h,{children:n.map((t,r)=>(0,e.jsx)(f,{className:"whitespace-nowrap",children:t},`${r}-${t}`))})}),(0,e.jsx)(u,{children:i.map((t,r)=>(0,e.jsx)(h,{children:n.map((a,n)=>(0,e.jsx)(g,{className:"whitespace-nowrap",children:t[n]??""},`${r}-${n}`))},`${r}-${t[0]??""}`))})]})}):(0,e.jsx)(F,{text:t,className:a})}t.s(["FileBody",0,B,"FileDialog",0,E,"FileLink",0,function({path:t,className:n,title:i,label:l,children:s}){let o=M(t),d=(0,r.useContext)(_),[c,u]=(0,S.useServerAction)(j);return"tab"===o.how?(0,e.jsx)("a",{href:o.href,target:"_blank",rel:"noreferrer",title:i??t,"aria-label":l,className:n,children:s}):(0,e.jsx)("button",{type:"button",disabled:u,title:i??t,"aria-label":l,className:n,onClick:()=>{"dialog"===o.how?d?d(o.path):window.open(a.queryKey.fileView(o.path),"_blank"):c(t)},children:s})},"FilePreview",0,function({path:t,bytes:r}){let n=x(t),{content:i,failure:l,truncated:o}=$(D.has(n)?null:t);return("frame"===n||"image"===n)&&r>m.WORKSPACE_VIEW.elementMax?(0,e.jsx)(L,{path:t,bytes:r}):"frame"===n?(0,e.jsx)("iframe",{title:t,src:a.queryKey.file(t),allow:"clipboard-read; clipboard-write; fullscreen; autoplay",className:"h-full w-full bg-white"}):"image"===n?(0,e.jsx)("img",{src:a.queryKey.file(t),alt:t,className:"mx-auto max-w-full p-6"}):"audio"===n||"video"===n?"audio"===n?(0,e.jsx)("audio",{controls:!0,src:a.queryKey.file(t),className:"w-full p-6",children:(0,e.jsx)("track",{kind:"captions"})}):(0,e.jsx)("video",{controls:!0,src:a.queryKey.file(t),className:"max-w-full p-6",children:(0,e.jsx)("track",{kind:"captions"})}):l?(0,e.jsx)("p",{className:"p-5 font-mono text-xs text-destructive",children:l}):null===i?(0,e.jsxs)("div",{className:"space-y-3 p-5",children:[(0,e.jsx)(s.Skeleton,{className:"h-5 w-2/3"}),(0,e.jsx)(s.Skeleton,{className:"h-4 w-full"}),(0,e.jsx)(s.Skeleton,{className:"h-4 w-5/6"})]}):(0,e.jsx)(B,{kind:n,content:i,truncated:o})},"FileViewer",0,function({children:t}){let[a,n]=(0,r.useState)(null);return(0,e.jsxs)(_,{value:n,children:[t,(0,e.jsx)(E,{path:a,kind:a?x(a):"text",onClose:()=>n(null)})]})},"fileTarget",0,M,"useFileText",0,$,"useOpenFile",0,function(){let t=(0,r.useContext)(_);return(0,r.useCallback)(e=>{let r=M(e);if("os"===r.how)return!1;if("dialog"===r.how&&t)return t(r.path),!0;let n="tab"===r.how?r.href:a.queryKey.fileView(r.path);return null!==window.open(n,"_blank")},[t])}],621285)},245629,401851,t=>{"use strict";var e=t.i(55545),r=t.i(455024),a=t.i(99151),n=t.i(845110),i=t.i(234662),l=t.i(281092);function s(t,e){let r=(0,l.toDate)(t,e?.in);return r.setHours(0,0,0,0),r}function o(t,e){let a=(0,r.getDefaultOptions)(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,i=(0,l.toDate)(t,e?.in),s=i.getDay();return i.setDate(i.getDate()-(7*(s<n)+s-n)),i.setHours(0,0,0,0),i}function d(t,e){return o(t,{...e,weekStartsOn:1})}var c=t.i(677241);function u(t,e){let r=(0,l.toDate)(t,e?.in),a=r.getFullYear(),n=(0,c.constructFrom)(r,0);n.setFullYear(a+1,0,4),n.setHours(0,0,0,0);let i=d(n),s=(0,c.constructFrom)(r,0);s.setFullYear(a,0,4),s.setHours(0,0,0,0);let o=d(s);return r.getTime()>=i.getTime()?a+1:r.getTime()>=o.getTime()?a:a-1}function h(t,e){let a=(0,l.toDate)(t,e?.in),n=a.getFullYear(),i=(0,r.getDefaultOptions)(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,d=(0,c.constructFrom)(e?.in||t,0);d.setFullYear(n+1,0,s),d.setHours(0,0,0,0);let u=o(d,e),h=(0,c.constructFrom)(e?.in||t,0);h.setFullYear(n,0,s),h.setHours(0,0,0,0);let f=o(h,e);return+a>=+u?n+1:+a>=+f?n:n-1}function f(t,e){let r=Math.abs(t).toString().padStart(e,"0");return(t<0?"-":"")+r}let g={y(t,e){let r=t.getFullYear(),a=r>0?r:1-r;return f("yy"===e?a%100:a,e.length)},M(t,e){let r=t.getMonth();return"M"===e?String(r+1):f(r+1,2)},d:(t,e)=>f(t.getDate(),e.length),a(t,e){let r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(t,e)=>f(t.getHours()%12||12,e.length),H:(t,e)=>f(t.getHours(),e.length),m:(t,e)=>f(t.getMinutes(),e.length),s:(t,e)=>f(t.getSeconds(),e.length),S(t,e){let r=e.length;return f(Math.trunc(t.getMilliseconds()*Math.pow(10,r-3)),e.length)}},m={G:function(t,e,r){let a=+(t.getFullYear()>0);switch(e){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});default:return r.era(a,{width:"wide"})}},y:function(t,e,r){if("yo"===e){let e=t.getFullYear();return r.ordinalNumber(e>0?e:1-e,{unit:"year"})}return g.y(t,e)},Y:function(t,e,r,a){let n=h(t,a),i=n>0?n:1-n;return"YY"===e?f(i%100,2):"Yo"===e?r.ordinalNumber(i,{unit:"year"}):f(i,e.length)},R:function(t,e){return f(u(t),e.length)},u:function(t,e){return f(t.getFullYear(),e.length)},Q:function(t,e,r){let a=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(a);case"QQ":return f(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,e,r){let a=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(a);case"qq":return f(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,e,r){let a=t.getMonth();switch(e){case"M":case"MM":return g.M(t,e);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(t,e,r){let a=t.getMonth();switch(e){case"L":return String(a+1);case"LL":return f(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(t,e,a,n){let s,d,u,g,m,w=Math.round((o(s=(0,l.toDate)(t,n?.in),n)-(d=(0,r.getDefaultOptions)(),u=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??d.firstWeekContainsDate??d.locale?.options?.firstWeekContainsDate??1,g=h(s,n),(m=(0,c.constructFrom)(n?.in||s,0)).setFullYear(g,0,u),m.setHours(0,0,0,0),o(m,n)))/i.millisecondsInWeek)+1;return"wo"===e?a.ordinalNumber(w,{unit:"week"}):f(w,e.length)},I:function(t,e,r){let a,n,s,o=Math.round((d(a=(0,l.toDate)(t,void 0))-(n=u(a,void 0),(s=(0,c.constructFrom)(a,0)).setFullYear(n,0,4),s.setHours(0,0,0,0),d(s)))/i.millisecondsInWeek)+1;return"Io"===e?r.ordinalNumber(o,{unit:"week"}):f(o,e.length)},d:function(t,e,r){return"do"===e?r.ordinalNumber(t.getDate(),{unit:"date"}):g.d(t,e)},D:function(t,e,r){let o,d,c=function(t,e){let[r,l]=(0,n.normalizeDates)(void 0,t,e),o=s(r),d=s(l);return Math.round((o-(0,a.getTimezoneOffsetInMilliseconds)(o)-(d-(0,a.getTimezoneOffsetInMilliseconds)(d)))/i.millisecondsInDay)}(o=(0,l.toDate)(t,void 0),((d=(0,l.toDate)(o,void 0)).setFullYear(d.getFullYear(),0,1),d.setHours(0,0,0,0),d))+1;return"Do"===e?r.ordinalNumber(c,{unit:"dayOfYear"}):f(c,e.length)},E:function(t,e,r){let a=t.getDay();switch(e){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(t,e,r,a){let n=t.getDay(),i=(n-a.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return f(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},c:function(t,e,r,a){let n=t.getDay(),i=(n-a.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return f(i,e.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(t,e,r){let a=t.getDay(),n=0===a?7:a;switch(e){case"i":return String(n);case"ii":return f(n,e.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(t,e,r){let a=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,e,r){let a,n=t.getHours();switch(a=12===n?"noon":0===n?"midnight":n/12>=1?"pm":"am",e){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,e,r){let a,n=t.getHours();switch(a=n>=17?"evening":n>=12?"afternoon":n>=4?"morning":"night",e){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,e,r){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),r.ordinalNumber(e,{unit:"hour"})}return g.h(t,e)},H:function(t,e,r){return"Ho"===e?r.ordinalNumber(t.getHours(),{unit:"hour"}):g.H(t,e)},K:function(t,e,r){let a=t.getHours()%12;return"Ko"===e?r.ordinalNumber(a,{unit:"hour"}):f(a,e.length)},k:function(t,e,r){let a=t.getHours();return(0===a&&(a=24),"ko"===e)?r.ordinalNumber(a,{unit:"hour"}):f(a,e.length)},m:function(t,e,r){return"mo"===e?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):g.m(t,e)},s:function(t,e,r){return"so"===e?r.ordinalNumber(t.getSeconds(),{unit:"second"}):g.s(t,e)},S:function(t,e){return g.S(t,e)},X:function(t,e,r){let a=t.getTimezoneOffset();if(0===a)return"Z";switch(e){case"X":return p(a);case"XXXX":case"XX":return x(a);default:return x(a,":")}},x:function(t,e,r){let a=t.getTimezoneOffset();switch(e){case"x":return p(a);case"xxxx":case"xx":return x(a);default:return x(a,":")}},O:function(t,e,r){let a=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+w(a,":");default:return"GMT"+x(a,":")}},z:function(t,e,r){let a=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+w(a,":");default:return"GMT"+x(a,":")}},t:function(t,e,r){return f(Math.trunc(t/1e3),e.length)},T:function(t,e,r){return f(+t,e.length)}};function w(t,e=""){let r=t>0?"-":"+",a=Math.abs(t),n=Math.trunc(a/60),i=a%60;return 0===i?r+String(n):r+String(n)+e+f(i,2)}function p(t,e){return t%60==0?(t>0?"-":"+")+f(Math.abs(t)/60,2):x(t,e)}function x(t,e=""){let r=Math.abs(t);return(t>0?"-":"+")+f(Math.trunc(r/60),2)+e+f(r%60,2)}let b=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},y=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},k={p:y,P:(t,e)=>{let r,a=t.match(/(P+)(p+)?/)||[],n=a[1],i=a[2];if(!i)return b(t,e);switch(n){case"P":r=e.dateTime({width:"short"});break;case"PP":r=e.dateTime({width:"medium"});break;case"PPP":r=e.dateTime({width:"long"});break;default:r=e.dateTime({width:"full"})}return r.replace("{{date}}",b(n,e)).replace("{{time}}",y(i,e))}},v=/^D+$/,N=/^Y+$/,j=["D","DD","YY","YYYY"],S=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,M=/^'([^]*?)'?$/,_=/''/g,C=/[a-zA-Z]/;function B(t,a,n){let i=(0,r.getDefaultOptions)(),s=n?.locale??i.locale??e.defaultLocale,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,d=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,c=(0,l.toDate)(t,n?.in);if(!(c instanceof Date||"object"==typeof c&&"[object Date]"===Object.prototype.toString.call(c))&&"number"!=typeof c||isNaN(+(0,l.toDate)(c)))throw RangeError("Invalid time value");let u=a.match(D).map(t=>{let e=t[0];return"p"===e||"P"===e?(0,k[e])(t,s.formatLong):t}).join("").match(S).map(t=>{if("''"===t)return{isToken:!1,value:"'"};let e=t[0];if("'"===e){var r;let e;return{isToken:!1,value:(e=(r=t).match(M))?e[1].replace(_,"'"):r}}if(m[e])return{isToken:!0,value:t};if(e.match(C))throw RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}});s.localize.preprocessor&&(u=s.localize.preprocessor(c,u));let h={firstWeekContainsDate:o,weekStartsOn:d,locale:s};return u.map(e=>{if(!e.isToken)return e.value;let r=e.value;return(!n?.useAdditionalWeekYearTokens&&N.test(r)||!n?.useAdditionalDayOfYearTokens&&v.test(r))&&function(t,e,r){var a,n,i;let l,s=(a=t,n=e,i=r,l="Y"===a[0]?"years":"days of the month",`Use \`${a.toLowerCase()}\` instead of \`${a}\` (in \`${n}\`) for formatting ${l} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(console.warn(s),j.includes(t))throw RangeError(s)}(r,a,String(t)),(0,m[r[0]])(c,r,s.localize,h)}).join("")}t.s(["format",0,B],401851);var T=t.i(24708);function O(t,e,r){let[a,i]=(0,n.normalizeDates)(r?.in,t,e);return+s(a)==+s(i)}var $=t.i(681307);let L=$.z.union([$.z.date(),$.z.iso.datetime()]),E=t=>new Date(t);t.s(["DateLikeSchema",0,L,"shortAgo",0,function(t,e=Date.now()){let r=Math.max(0,Math.round((e-E(t).getTime())/1e3));if(r<60)return"now";let a=Math.round(r/60);if(a<60)return`${a}m`;let n=Math.round(a/60);return n<24?`${n}h`:`${Math.round(n/24)}d`},"toDate",0,E,"whenOf",0,function(t){let e=E(t),r=B(e,"HH:mm");return O((0,c.constructFrom)(e,e),(0,T.constructNow)(e))?r:!function(t){var e,r;let a;return O((0,c.constructFrom)(t,t),(e=(0,T.constructNow)(t),r=void 0,a=(0,l.toDate)(e,r?.in),isNaN(-1)?(0,c.constructFrom)(r?.in||e,NaN):(a.setDate(a.getDate()+-1),a)))}(e)?`${B(e,"MMM d")} \xb7 ${r}`:`Yesterday ${r}`}],245629)},696017,t=>{"use strict";var e=t.i(60231),r=t.i(419524);t.i(947716);var a=t.i(723685),n=(0,r.__name)(t=>{let{securityLevel:r}=(0,e.getConfig2)(),n=(0,a.select)("body");if("sandbox"===r){let e=(0,a.select)(`#i${t}`),r=e.node()?.contentDocument??document;n=(0,a.select)(r.body)}return n.select(`#${t}`)},"selectSvgElement");t.s(["selectSvgElement",0,n])},502056,t=>{"use strict";var e=t.i(217248),r=t.i(447804),a=t.i(508324),n=t.i(419524),i=(0,n.__name)(({flowchart:t})=>{let e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:e+r}},"getSubGraphTitleMargins"),l=new Map;async function s(t,a,n){let i,s;"rect"===a.shape&&(a.rx&&a.ry?a.shape="roundedRect":a.shape="squareRect");let o=a.shape?e.shapes[a.shape]:void 0;if(!o)throw Error(`No such shape: ${a.shape}. Please check your syntax.`);if(a.link){let e;"sandbox"===n.config.securityLevel?e="_top":a.linkTarget&&(e=a.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",a.link).attr("target",e??null),s=await o(i,a,n)}else i=s=await o(t,a,n);return i.attr("data-look",(0,r.handleUndefinedAttr)(a.look)),a.tooltip&&s.attr("title",a.tooltip),l.set(a.id,i),a.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}(0,n.__name)(s,"insertNode");var o=(0,n.__name)((t,e)=>{l.set(e.id,t)},"setNodeElem"),d=(0,n.__name)(()=>{l.clear()},"clear"),c=(0,n.__name)(t=>{let e=l.get(t.id);a.log.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},"positionNode");t.s(["clear",0,d,"getSubGraphTitleMargins",0,i,"insertNode",0,s,"positionNode",0,c,"setNodeElem",0,o])},369110,t=>{"use strict";var e=t.i(502056),r=t.i(217248),a=t.i(224797),n=t.i(836333),i=t.i(60231),l=t.i(508324),s=t.i(419524);t.i(947716);var o=t.i(723685),d=t.i(883272),c=(0,s.__name)(async(t,e)=>{let s,c,u=(0,i.getConfig2)(),{themeVariables:h,handDrawnSeed:f}=u,{clusterBkg:g,clusterBorder:m}=h,{labelStyles:w,nodeStyles:p,borderStyles:x,backgroundStyles:b}=(0,a.styles2String)(e),y=t.insert("g").attr("class","cluster swimlane "+(e.cssClasses||"")).attr("id",e.id).attr("data-id",e.id).attr("data-et","cluster").attr("data-look",e.look),k=(0,i.evaluate)(u.flowchart.htmlLabels),v="LR"===e.direction,N=y.insert("g").attr("class","cluster-label swimlane-label"),j=await (0,n.createText)(N,e.label,{style:e.labelStyle,useHtmlLabels:k,isNode:!0,width:e.width}),S=j.getBBox();if(k){let t=j.children[0],e=(0,o.select)(j);S=t.getBoundingClientRect(),e.attr("width",S.width),e.attr("height",S.height)}let D=e.padding??0,M=e.width<=S.width+D?S.width+D:e.width;e.width<=S.width+D?e.diff=(M-e.width)/2-D:e.diff=-D;let _=e.height,C=e.y-_/2,B=e.y+_/2,T=e.x-M/2,O=void 0!==e.swimlaneContentTop?e.swimlaneContentTop:C+_/3,$=4*!!v,L=S.height+2*$;if(v){let t=Math.max(L,S.height+2*$),r=T+t,n=Math.max(0,M-t);if("handDrawn"===e.look){let i=d.default.svg(y),l=(0,a.userNodeOverrides)(e,{roughness:.7,fill:g,stroke:m,fillWeight:3,seed:f}),o=(0,a.userNodeOverrides)(e,{roughness:.7,fill:"none",stroke:m,seed:f}),u=i.rectangle(T,C,t,_,l);s=y.insert(()=>u,":first-child");let h=i.rectangle(r,C,n,_,o);c=y.insert(()=>h,":first-child"),s.select("path:nth-child(2)").attr("style",x.join(";")),s.select("path").attr("style",b.join(";").replace("fill","stroke"))}else s=y.insert("rect",":first-child"),c=y.insert("rect",":first-child"),s.attr("class","swimlane-title").attr("style",p).attr("x",T).attr("y",C).attr("width",t).attr("height",_).attr("fill",g).attr("stroke",m),c.attr("class","swimlane-body").attr("style",p).attr("x",r).attr("y",C).attr("width",n).attr("height",_).attr("fill","none").attr("stroke",m);let i=T+t/2,l=e.y;N.attr("transform",`translate(${i}, ${l}) rotate(-90) translate(${-S.width/2}, ${-S.height/2})`)}else{let t=Math.min(L,Math.max(0,O-C)),r=C+t,n=Math.max(0,B-r),i=e.x-M/2;if("handDrawn"===e.look){let l=d.default.svg(y),o=(0,a.userNodeOverrides)(e,{roughness:.7,fill:g,stroke:m,fillWeight:3,seed:f}),u=(0,a.userNodeOverrides)(e,{roughness:.7,fill:"none",stroke:m,seed:f}),h=l.rectangle(i,C,M,t,o);s=y.insert(()=>h,":first-child");let w=l.rectangle(i,r,M,n,u);c=y.insert(()=>w,":first-child"),s.select("path:nth-child(2)").attr("style",x.join(";")),s.select("path").attr("style",b.join(";").replace("fill","stroke"))}else s=y.insert("rect",":first-child"),c=y.insert("rect",":first-child"),s.attr("class","swimlane-title").attr("style",p).attr("x",i).attr("y",C).attr("width",M).attr("height",t).attr("fill",g).attr("stroke",m),c.attr("class","swimlane-body").attr("style",p).attr("x",i).attr("y",r).attr("width",M).attr("height",n).attr("fill","none").attr("stroke",m);let l=e.x-S.width/2,o=C+(t-S.height)/2;N.attr("transform",`translate(${l}, ${o})`)}if(l.log.trace("Swimlane data ",e,JSON.stringify(e)),w){let t=N.select("span");t&&t.attr("style",w)}return e.offsetX=0,e.width=M,e.height=_,e.offsetY=S.height-D/2,e.intersect=function(t){return(0,r.intersect_rect_default)(e,t)},{cluster:y,labelBBox:S}},"swimlane"),u=(0,s.__name)(async(t,s)=>{let c,u;l.log.info("Creating subgraph rect for ",s.id,s);let h=(0,i.getConfig2)(),{themeVariables:f,handDrawnSeed:g}=h,{clusterBkg:m,clusterBorder:w}=f,{labelStyles:p,nodeStyles:x,borderStyles:b,backgroundStyles:y}=(0,a.styles2String)(s),k=t.insert("g").attr("class","cluster "+s.cssClasses).attr("id",s.domId).attr("data-look",s.look),v=(0,i.getEffectiveHtmlLabels)(h),N=k.insert("g").attr("class","cluster-label "),j=(c="markdown"===s.labelType?await (0,n.createText)(N,s.label,{style:s.labelStyle,useHtmlLabels:v,isNode:!0,width:s.width}):await (0,r.createLabel_default)(N,s.label,s.labelStyle||"",!1,!0)).getBBox();if((0,i.getEffectiveHtmlLabels)(h)){let t=c.children[0],e=(0,o.select)(c);j=t.getBoundingClientRect(),e.attr("width",j.width),e.attr("height",j.height)}let S=s.width<=j.width+s.padding?j.width+s.padding:s.width;s.width<=j.width+s.padding?s.diff=(S-s.width)/2-s.padding:s.diff=-s.padding;let D=s.height,M=s.x-S/2,_=s.y-D/2;if(l.log.trace("Data ",s,JSON.stringify(s)),"handDrawn"===s.look){let t=d.default.svg(k),e=(0,a.userNodeOverrides)(s,{roughness:.7,fill:m,stroke:w,fillWeight:3,seed:g}),n=t.path((0,r.createRoundedRectPathD)(M,_,S,D,0),e);(u=k.insert(()=>(l.log.debug("Rough node insert CXC",n),n),":first-child")).select("path:nth-child(2)").attr("style",b.join(";")),u.select("path").attr("style",y.join(";").replace("fill","stroke"))}else(u=k.insert("rect",":first-child")).attr("style",x).attr("rx",s.rx).attr("ry",s.ry).attr("x",M).attr("y",_).attr("width",S).attr("height",D);let{subGraphTitleTopMargin:C}=(0,e.getSubGraphTitleMargins)(h);if(N.attr("transform",`translate(${s.x-j.width/2}, ${s.y-s.height/2+C})`),p){let t=N.select("span");t&&t.attr("style",p)}let B=u.node().getBBox();return s.offsetX=0,s.width=B.width,s.height=B.height,s.offsetY=j.height-s.padding/2,s.intersect=function(t){return(0,r.intersect_rect_default)(s,t)},{cluster:k,labelBBox:j}},"rect"),h=(0,s.__name)((t,e)=>{let a=t.insert("g").attr("class","note-cluster").attr("id",e.domId),n=a.insert("rect",":first-child"),i=0*e.padding,l=i/2;n.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-l).attr("y",e.y-e.height/2-l).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");let s=n.node().getBBox();return e.width=s.width,e.height=s.height,e.intersect=function(t){return(0,r.intersect_rect_default)(e,t)},{cluster:a,labelBBox:{width:0,height:0}}},"noteGroup"),f=(0,s.__name)(async(t,e)=>{let a,n=(0,i.getConfig2)(),{themeVariables:l,handDrawnSeed:s}=n,{altBackground:c,compositeBackground:u,compositeTitleBackground:h,nodeBorder:f}=l,g=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look),m=g.insert("g",":first-child"),w=g.insert("g").attr("class","cluster-label"),p=g.append("rect"),x=await (0,r.createLabel_default)(w,e.label,e.labelStyle,void 0,!0),b=x.getBBox();if((0,i.getEffectiveHtmlLabels)(n)){let t=x.children[0],e=(0,o.select)(x);b=t.getBoundingClientRect(),e.attr("width",b.width),e.attr("height",b.height)}let y=0*e.padding,k=(e.width<=b.width+e.padding?b.width+e.padding:e.width)+y;e.width<=b.width+e.padding?e.diff=(k-e.width)/2-e.padding:e.diff=-e.padding;let v=e.height+y,N=e.height+y-b.height-6,j=e.x-k/2,S=e.y-v/2;e.width=k;let D=e.y-e.height/2-y/2+b.height+2;if("handDrawn"===e.look){let t=e.cssClasses.includes("statediagram-cluster-alt"),n=d.default.svg(g),i=e.rx||e.ry?n.path((0,r.createRoundedRectPathD)(j,S,k,v,10),{roughness:.7,fill:h,fillStyle:"solid",stroke:f,seed:s}):n.rectangle(j,S,k,v,{seed:s});a=g.insert(()=>i,":first-child");let l=n.rectangle(j,D,k,N,{fill:t?c:u,fillStyle:t?"hachure":"solid",stroke:f,seed:s});a=g.insert(()=>i,":first-child"),p=g.insert(()=>l)}else(a=m.insert("rect",":first-child")).attr("class","outer").attr("x",j).attr("y",S).attr("width",k).attr("height",v).attr("data-look",e.look),p.attr("class","inner").attr("x",j).attr("y",D).attr("width",k).attr("height",N);return w.attr("transform",`translate(${e.x-b.width/2}, ${S+1-3*!(0,i.getEffectiveHtmlLabels)(n)})`),e.height=a.node().getBBox().height,e.offsetX=0,e.offsetY=b.height-e.padding/2,e.labelBBox=b,e.intersect=function(t){return(0,r.intersect_rect_default)(e,t)},{cluster:g,labelBBox:b}},"roundedWithTitle"),g=(0,s.__name)(async(t,s)=>{let c;l.log.info("Creating subgraph rect for ",s.id,s);let u=(0,i.getConfig2)(),{themeVariables:h,handDrawnSeed:f}=u,{clusterBkg:g,clusterBorder:m}=h,{labelStyles:w,nodeStyles:p,borderStyles:x,backgroundStyles:b}=(0,a.styles2String)(s),y=t.insert("g").attr("class","cluster "+s.cssClasses).attr("id",s.domId).attr("data-look",s.look),k=(0,i.getEffectiveHtmlLabels)(u),v=y.insert("g").attr("class","cluster-label "),N=await (0,n.createText)(v,s.label,{style:s.labelStyle,useHtmlLabels:k,isNode:!0,width:s.width}),j=N.getBBox();if((0,i.getEffectiveHtmlLabels)(u)){let t=N.children[0],e=(0,o.select)(N);j=t.getBoundingClientRect(),e.attr("width",j.width),e.attr("height",j.height)}let S=s.width<=j.width+s.padding?j.width+s.padding:s.width;s.width<=j.width+s.padding?s.diff=(S-s.width)/2-s.padding:s.diff=-s.padding;let D=s.height,M=s.x-S/2,_=s.y-D/2;if(l.log.trace("Data ",s,JSON.stringify(s)),"handDrawn"===s.look){let t=d.default.svg(y),e=(0,a.userNodeOverrides)(s,{roughness:.7,fill:g,stroke:m,fillWeight:4,seed:f}),n=t.path((0,r.createRoundedRectPathD)(M,_,S,D,s.rx),e);(c=y.insert(()=>(l.log.debug("Rough node insert CXC",n),n),":first-child")).select("path:nth-child(2)").attr("style",x.join(";")),c.select("path").attr("style",b.join(";").replace("fill","stroke"))}else(c=y.insert("rect",":first-child")).attr("style",p).attr("rx",s.rx).attr("ry",s.ry).attr("x",M).attr("y",_).attr("width",S).attr("height",D);let{subGraphTitleTopMargin:C}=(0,e.getSubGraphTitleMargins)(u);if(v.attr("transform",`translate(${s.x-j.width/2}, ${s.y-s.height/2+C})`),w){let t=v.select("span");t&&t.attr("style",w)}let B=c.node().getBBox();return s.offsetX=0,s.width=B.width,s.height=B.height,s.offsetY=j.height-s.padding/2,s.intersect=function(t){return(0,r.intersect_rect_default)(s,t)},{cluster:y,labelBBox:j}},"kanbanSection"),m={rect:u,squareRect:u,roundedWithTitle:f,noteGroup:h,divider:(0,s.__name)((t,e)=>{let a,{themeVariables:n,handDrawnSeed:l}=(0,i.getConfig2)(),{nodeBorder:s}=n,o=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look),c=o.insert("g",":first-child"),u=0*e.padding,h=e.width+u;e.diff=-e.padding;let f=e.height+u,g=e.x-h/2,m=e.y-f/2;if(e.width=h,"handDrawn"===e.look){let t=d.default.svg(o).rectangle(g,m,h,f,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:s,seed:l});a=o.insert(()=>t,":first-child")}else{a=c.insert("rect",":first-child");let t="outer";e.look,t="divider",a.attr("class",t).attr("x",g).attr("y",m).attr("width",h).attr("height",f).attr("data-look",e.look)}return e.height=a.node().getBBox().height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return(0,r.intersect_rect_default)(e,t)},{cluster:o,labelBBox:{}}},"divider"),kanbanSection:g,swimlane:c},w=new Map,p=(0,s.__name)(async(t,e)=>{let r=e.shape||"rect",a=await m[r](t,e);return w.set(e.id,a),a},"insertCluster"),x=(0,s.__name)(()=>{w=new Map},"clear");t.s(["clear",0,x,"insertCluster",0,p])},121292,t=>{"use strict";var e=t.i(369110),r=t.i(382793),a=t.i(502056),n=t.i(217248),i=t.i(447804),l=t.i(60231),s=t.i(508324),o=t.i(419524),d={common:l.common_default,getConfig:l.getConfig,insertCluster:e.insertCluster,insertEdge:r.insertEdge,insertEdgeLabel:r.insertEdgeLabel,insertMarkers:r.markers_default,insertNode:a.insertNode,interpolateToCurve:i.interpolateToCurve,labelHelper:n.labelHelper,log:s.log,positionEdgeLabel:r.positionEdgeLabel},c={},u=(0,o.__name)(t=>{for(let e of t)c[e.name]=e},"registerLayoutLoaders");(0,o.__name)(()=>{u([{name:"dagre",loader:(0,o.__name)(async()=>await t.A(555153),"loader")},{name:"swimlane",loader:(0,o.__name)(async()=>await t.A(12782),"loader")},{name:"cose-bilkent",loader:(0,o.__name)(async()=>await t.A(208503),"loader")}])},"registerDefaultLayoutLoaders")();var h=(0,o.__name)(async(t,e)=>{if(!(t.layoutAlgorithm in c))throw Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(let e of t.nodes){let r=e.domId||e.id;e.domId=`${t.diagramId}-${r}`}let r=c[t.layoutAlgorithm],a=await r.loader(),{theme:n,themeVariables:i}=t.config,{useGradient:l,gradientStart:s,gradientStop:o}=i,u=e.attr("id");if(e.append("defs").append("filter").attr("id",`${u}-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",`${n?.includes("dark")?"#FFFFFF":"#000000"}`),e.append("defs").append("filter").attr("id",`${u}-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",`${n?.includes("dark")?"#FFFFFF":"#000000"}`),l){let t=e.append("linearGradient").attr("id",e.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",s).attr("stop-opacity",1),t.append("svg:stop").attr("offset","100%").attr("stop-color",o).attr("stop-opacity",1)}return a.render(t,e,d,{algorithm:r.algorithm})},"render"),f=(0,o.__name)((t="",{fallback:e="dagre"}={})=>{if(t in c)return t;if(e in c)return s.log.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm");t.s(["getRegisteredLayoutAlgorithm",0,f,"registerLayoutLoaders",0,u,"render",0,h])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,621285,616172,866575,t=>{"use strict";var e=t.i(843476),r=t.i(271645),a=t.i(798120),n=t.i(167881),i=t.i(630374),l=t.i(683408),s=t.i(671428),o=t.i(647163);function d({className:t,...r}){return(0,e.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,e.jsx)("table",{"data-slot":"table",className:(0,o.cn)("w-full caption-bottom text-sm",t),...r})})}function c({className:t,...r}){return(0,e.jsx)("thead",{"data-slot":"table-header",className:(0,o.cn)("[&_tr]:border-b",t),...r})}function u({className:t,...r}){return(0,e.jsx)("tbody",{"data-slot":"table-body",className:(0,o.cn)("[&_tr:last-child]:border-0",t),...r})}function h({className:t,...r}){return(0,e.jsx)("tr",{"data-slot":"table-row",className:(0,o.cn)("border-b border-border/60 transition-colors data-[state=selected]:bg-muted hover:bg-muted/40",t),...r})}function f({className:t,...r}){return(0,e.jsx)("th",{"data-slot":"table-head",className:(0,o.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),...r})}function g({className:t,...r}){return(0,e.jsx)("td",{"data-slot":"table-cell",className:(0,o.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0",t),...r})}var m=t.i(41533);let w=t=>`text/${t}; charset=utf-8`,p={md:{kind:"markdown",mime:w("markdown")},markdown:{kind:"markdown",mime:w("markdown")},csv:{kind:"csv",mime:w("csv")},json:{kind:"json",mime:"application/json; charset=utf-8"},txt:{kind:"text",mime:w("plain")},log:{kind:"text",mime:w("plain")},html:{kind:"frame",mime:w("html")},htm:{kind:"frame",mime:w("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:w("css")},js:{kind:"none",mime:w("javascript")},woff2:{kind:"none",mime:"font/woff2"}},x=t=>p[t.split(".").pop()?.toLowerCase()??""]?.kind??"none",b=Object.entries(p).filter(([,t])=>"none"!==t.kind).map(([t])=>t),y=RegExp(String.raw`(?<![\p{L}\p{N}_/:@%-])(?:[\p{L}\p{N}_.@%-]+/)*[\p{L}\p{N}_@%-]+(?:\.[\p{L}\p{N}_-]+)*\.(?:${b.join("|")})\b`,"giu"),k=`${m.PATHS.workspace}/`;function v(t){let e=t.trim(),r=e.indexOf(k);return r>=0?e.slice(r+k.length)||null:e.startsWith("/")||/^[A-Za-z]:/.test(e)||e.split("/").includes("..")?null:e||null}t.s(["pathsIn",0,function(t){let e=t.replace(/\b[a-z][\w+.-]*:\/\/\S+/gi," "),r=new Set;for(let t of e.match(y)??[]){let e=function(t){let e=v(t);if(!e)return null;let[r,...a]=e.split("/");return a.length&&r.includes(".")?null:e}(t);e&&r.add(e)}return[...r].slice(0,6)},"viewKindOf",0,x,"workspaceRelative",0,v],616172);var N=t.i(95187);let j=(0,N.createServerReference)("7fe75c180b16ec13b8c8052e5fbacba3e5789f0aca",N.callServer,void 0,N.findSourceMapURL,"openFileAction");t.s(["openFileAction",0,j],866575);var S=t.i(609856);let D=new Set(["frame","image","audio","video"]);function M(t){let e=v(t);if(!e)return{how:"os"};let r=x(e);return D.has(r)?{how:"tab",path:e,href:a.queryKey.fileView(e)}:"none"===r?{how:"os"}:{how:"dialog",path:e}}let _=(0,r.createContext)(null),C={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 B({kind:t,content:r,truncated:a,where:n="dialog"}){return(0,e.jsxs)(e.Fragment,{children:[null!=a&&(0,e.jsx)(T,{of:a}),(0,e.jsx)(O,{kind:t,content:r,where:n})]})}function T({of:t}){return(0,e.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,o.formatBytes)(m.WORKSPACE_VIEW.textMax)} of ${(0,o.formatBytes)(t)}. `,"Open the file itself for the rest."]})}function O({kind:t,content:r,where:a}){let n=C[a];switch(t){case"markdown":return(0,e.jsx)("div",{className:(0,o.cn)("min-w-0 text-sm leading-relaxed",n.prose),children:(0,e.jsx)(l.Markdown,{children:r})});case"csv":return(0,e.jsx)(P,{content:r,className:n.block});case"json":return(0,e.jsx)(F,{text:function(t){try{return JSON.stringify(JSON.parse(t),null,2)}catch{return t}}(r),className:n.block});default:return(0,e.jsx)(F,{text:r,className:n.block})}}function $(t){let[e,n]=(0,r.useState)(null),[i,l]=(0,r.useState)(null),[s,d]=(0,r.useState)(null);return(0,r.useEffect)(()=>{if(!t)return;n(null),l(null),d(null);let e=!1;return fetch(a.queryKey.file(t),{headers:{range:`bytes=0-${m.WORKSPACE_VIEW.textMax-1}`}}).then(async t=>{if(!t.ok)throw Error(await t.text());return{text:await t.text(),of:function(t){let e=t.headers.get("content-range")?.match(/^bytes \d+-(\d+)\/(\d+)$/);if(!e)return null;let[,r,a]=e.map(Number);return r+1<a?a:null}(t)}}).then(({text:t,of:r})=>{e||(n(null===r?t:t.slice(0,t.lastIndexOf("\n")+1||void 0)),d(r))}).catch(t=>!e&&l((0,o.errorToString)(t))),()=>{e=!0}},[t]),{content:e,failure:i,truncated:s}}function L({path:t,bytes:r}){let[a,i]=(0,S.useServerAction)(j);return(0,e.jsxs)("div",{className:"space-y-4 p-8",children:[(0,e.jsxs)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:[`This file is ${(0,o.formatBytes)(r)} — too big to draw here without `,"taking the window with it. Open it where it is instead."]}),(0,e.jsx)(n.Button,{variant:"outline",loading:i,onClick:()=>a(t),children:"Reveal in the file manager"})]})}function E({path:t,kind:r,onClose:a}){let{content:n,failure:l,truncated:o}=$(t),d=t?.split("/").pop()??"";return(0,e.jsx)(i.Dialog,{open:null!==t,onOpenChange:t=>!t&&a(),children:(0,e.jsxs)(i.DialogContent,{className:"flex max-h-[calc(100vh-3rem)] flex-col gap-0 overflow-hidden p-0 sm:max-w-4xl",children:[(0,e.jsx)(i.DialogTitle,{className:"sr-only",children:d}),(0,e.jsx)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border/60 px-4 py-2.5 pr-12",children:(0,e.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[12px]",children:t})}),(0,e.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:l?(0,e.jsx)("p",{className:"p-5 font-mono text-xs text-destructive",children:l}):null===n?(0,e.jsxs)("div",{className:"space-y-3 p-5",children:[(0,e.jsx)(s.Skeleton,{className:"h-5 w-2/3"}),(0,e.jsx)(s.Skeleton,{className:"h-4 w-full"}),(0,e.jsx)(s.Skeleton,{className:"h-4 w-5/6"})]}):(0,e.jsx)(B,{kind:r,content:n,truncated:o})})]})})}function F({text:t,className:r}){return(0,e.jsx)("pre",{className:(0,o.cn)("overflow-x-auto font-mono text-[12px] leading-relaxed whitespace-pre-wrap text-foreground/90",r),children:t})}function P({content:t,className:a}){let[n,...i]=(0,r.useMemo)(()=>(function(t){let e=[],r=[],a="",n=!1;for(let i=0;i<t.length;i++){let l=t[i];n?'"'===l&&'"'===t[i+1]?(a+='"',i++):'"'===l?n=!1:a+=l:'"'===l?n=!0:","===l?(r.push(a),a=""):"\n"===l||"\r"===l?("\r"===l&&"\n"===t[i+1]&&i++,r.push(a),e.push(r),r=[],a=""):a+=l}return(a.length||r.length)&&(r.push(a),e.push(r)),e.filter(t=>t.some(t=>t.trim()))})(t),[t]);return n?(0,e.jsx)("div",{className:(0,o.cn)("overflow-x-auto",a),children:(0,e.jsxs)(d,{children:[(0,e.jsx)(c,{children:(0,e.jsx)(h,{children:n.map((t,r)=>(0,e.jsx)(f,{className:"whitespace-nowrap",children:t},`${r}-${t}`))})}),(0,e.jsx)(u,{children:i.map((t,r)=>(0,e.jsx)(h,{children:n.map((a,n)=>(0,e.jsx)(g,{className:"whitespace-nowrap",children:t[n]??""},`${r}-${n}`))},`${r}-${t[0]??""}`))})]})}):(0,e.jsx)(F,{text:t,className:a})}t.s(["FileBody",0,B,"FileDialog",0,E,"FileLink",0,function({path:t,className:n,title:i,label:l,children:s}){let o=M(t),d=(0,r.useContext)(_),[c,u]=(0,S.useServerAction)(j);return"tab"===o.how?(0,e.jsx)("a",{href:o.href,target:"_blank",rel:"noreferrer",title:i??t,"aria-label":l,className:n,children:s}):(0,e.jsx)("button",{type:"button",disabled:u,title:i??t,"aria-label":l,className:n,onClick:()=>{"dialog"===o.how?d?d(o.path):window.open(a.queryKey.fileView(o.path),"_blank"):c(t)},children:s})},"FilePreview",0,function({path:t,bytes:r}){let n=x(t),{content:i,failure:l,truncated:o}=$(D.has(n)?null:t);return("frame"===n||"image"===n)&&r>m.WORKSPACE_VIEW.elementMax?(0,e.jsx)(L,{path:t,bytes:r}):"frame"===n?(0,e.jsx)("iframe",{title:t,src:a.queryKey.file(t),allow:"clipboard-read; clipboard-write; fullscreen; autoplay",className:"h-full w-full bg-white"}):"image"===n?(0,e.jsx)("img",{src:a.queryKey.file(t),alt:t,className:"mx-auto max-w-full p-6"}):"audio"===n||"video"===n?"audio"===n?(0,e.jsx)("audio",{controls:!0,src:a.queryKey.file(t),className:"w-full p-6",children:(0,e.jsx)("track",{kind:"captions"})}):(0,e.jsx)("video",{controls:!0,src:a.queryKey.file(t),className:"max-w-full p-6",children:(0,e.jsx)("track",{kind:"captions"})}):l?(0,e.jsx)("p",{className:"p-5 font-mono text-xs text-destructive",children:l}):null===i?(0,e.jsxs)("div",{className:"space-y-3 p-5",children:[(0,e.jsx)(s.Skeleton,{className:"h-5 w-2/3"}),(0,e.jsx)(s.Skeleton,{className:"h-4 w-full"}),(0,e.jsx)(s.Skeleton,{className:"h-4 w-5/6"})]}):(0,e.jsx)(B,{kind:n,content:i,truncated:o})},"FileViewer",0,function({children:t}){let[a,n]=(0,r.useState)(null);return(0,e.jsxs)(_,{value:n,children:[t,(0,e.jsx)(E,{path:a,kind:a?x(a):"text",onClose:()=>n(null)})]})},"fileTarget",0,M,"useFileText",0,$,"useOpenFile",0,function(){let t=(0,r.useContext)(_);return(0,r.useCallback)(e=>{let r=M(e);if("os"===r.how)return!1;if("dialog"===r.how&&t)return t(r.path),!0;let n="tab"===r.how?r.href:a.queryKey.fileView(r.path);return null!==window.open(n,"_blank")},[t])}],621285)},245629,401851,t=>{"use strict";var e=t.i(55545),r=t.i(455024),a=t.i(99151),n=t.i(845110),i=t.i(234662),l=t.i(281092);function s(t,e){let r=(0,l.toDate)(t,e?.in);return r.setHours(0,0,0,0),r}function o(t,e){let a=(0,r.getDefaultOptions)(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,i=(0,l.toDate)(t,e?.in),s=i.getDay();return i.setDate(i.getDate()-(7*(s<n)+s-n)),i.setHours(0,0,0,0),i}function d(t,e){return o(t,{...e,weekStartsOn:1})}var c=t.i(677241);function u(t,e){let r=(0,l.toDate)(t,e?.in),a=r.getFullYear(),n=(0,c.constructFrom)(r,0);n.setFullYear(a+1,0,4),n.setHours(0,0,0,0);let i=d(n),s=(0,c.constructFrom)(r,0);s.setFullYear(a,0,4),s.setHours(0,0,0,0);let o=d(s);return r.getTime()>=i.getTime()?a+1:r.getTime()>=o.getTime()?a:a-1}function h(t,e){let a=(0,l.toDate)(t,e?.in),n=a.getFullYear(),i=(0,r.getDefaultOptions)(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,d=(0,c.constructFrom)(e?.in||t,0);d.setFullYear(n+1,0,s),d.setHours(0,0,0,0);let u=o(d,e),h=(0,c.constructFrom)(e?.in||t,0);h.setFullYear(n,0,s),h.setHours(0,0,0,0);let f=o(h,e);return+a>=+u?n+1:+a>=+f?n:n-1}function f(t,e){let r=Math.abs(t).toString().padStart(e,"0");return(t<0?"-":"")+r}let g={y(t,e){let r=t.getFullYear(),a=r>0?r:1-r;return f("yy"===e?a%100:a,e.length)},M(t,e){let r=t.getMonth();return"M"===e?String(r+1):f(r+1,2)},d:(t,e)=>f(t.getDate(),e.length),a(t,e){let r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(t,e)=>f(t.getHours()%12||12,e.length),H:(t,e)=>f(t.getHours(),e.length),m:(t,e)=>f(t.getMinutes(),e.length),s:(t,e)=>f(t.getSeconds(),e.length),S(t,e){let r=e.length;return f(Math.trunc(t.getMilliseconds()*Math.pow(10,r-3)),e.length)}},m={G:function(t,e,r){let a=+(t.getFullYear()>0);switch(e){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});default:return r.era(a,{width:"wide"})}},y:function(t,e,r){if("yo"===e){let e=t.getFullYear();return r.ordinalNumber(e>0?e:1-e,{unit:"year"})}return g.y(t,e)},Y:function(t,e,r,a){let n=h(t,a),i=n>0?n:1-n;return"YY"===e?f(i%100,2):"Yo"===e?r.ordinalNumber(i,{unit:"year"}):f(i,e.length)},R:function(t,e){return f(u(t),e.length)},u:function(t,e){return f(t.getFullYear(),e.length)},Q:function(t,e,r){let a=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(a);case"QQ":return f(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,e,r){let a=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(a);case"qq":return f(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,e,r){let a=t.getMonth();switch(e){case"M":case"MM":return g.M(t,e);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(t,e,r){let a=t.getMonth();switch(e){case"L":return String(a+1);case"LL":return f(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(t,e,a,n){let s,d,u,g,m,w=Math.round((o(s=(0,l.toDate)(t,n?.in),n)-(d=(0,r.getDefaultOptions)(),u=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??d.firstWeekContainsDate??d.locale?.options?.firstWeekContainsDate??1,g=h(s,n),(m=(0,c.constructFrom)(n?.in||s,0)).setFullYear(g,0,u),m.setHours(0,0,0,0),o(m,n)))/i.millisecondsInWeek)+1;return"wo"===e?a.ordinalNumber(w,{unit:"week"}):f(w,e.length)},I:function(t,e,r){let a,n,s,o=Math.round((d(a=(0,l.toDate)(t,void 0))-(n=u(a,void 0),(s=(0,c.constructFrom)(a,0)).setFullYear(n,0,4),s.setHours(0,0,0,0),d(s)))/i.millisecondsInWeek)+1;return"Io"===e?r.ordinalNumber(o,{unit:"week"}):f(o,e.length)},d:function(t,e,r){return"do"===e?r.ordinalNumber(t.getDate(),{unit:"date"}):g.d(t,e)},D:function(t,e,r){let o,d,c=function(t,e){let[r,l]=(0,n.normalizeDates)(void 0,t,e),o=s(r),d=s(l);return Math.round((o-(0,a.getTimezoneOffsetInMilliseconds)(o)-(d-(0,a.getTimezoneOffsetInMilliseconds)(d)))/i.millisecondsInDay)}(o=(0,l.toDate)(t,void 0),((d=(0,l.toDate)(o,void 0)).setFullYear(d.getFullYear(),0,1),d.setHours(0,0,0,0),d))+1;return"Do"===e?r.ordinalNumber(c,{unit:"dayOfYear"}):f(c,e.length)},E:function(t,e,r){let a=t.getDay();switch(e){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(t,e,r,a){let n=t.getDay(),i=(n-a.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return f(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},c:function(t,e,r,a){let n=t.getDay(),i=(n-a.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return f(i,e.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(t,e,r){let a=t.getDay(),n=0===a?7:a;switch(e){case"i":return String(n);case"ii":return f(n,e.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(t,e,r){let a=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,e,r){let a,n=t.getHours();switch(a=12===n?"noon":0===n?"midnight":n/12>=1?"pm":"am",e){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,e,r){let a,n=t.getHours();switch(a=n>=17?"evening":n>=12?"afternoon":n>=4?"morning":"night",e){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,e,r){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),r.ordinalNumber(e,{unit:"hour"})}return g.h(t,e)},H:function(t,e,r){return"Ho"===e?r.ordinalNumber(t.getHours(),{unit:"hour"}):g.H(t,e)},K:function(t,e,r){let a=t.getHours()%12;return"Ko"===e?r.ordinalNumber(a,{unit:"hour"}):f(a,e.length)},k:function(t,e,r){let a=t.getHours();return(0===a&&(a=24),"ko"===e)?r.ordinalNumber(a,{unit:"hour"}):f(a,e.length)},m:function(t,e,r){return"mo"===e?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):g.m(t,e)},s:function(t,e,r){return"so"===e?r.ordinalNumber(t.getSeconds(),{unit:"second"}):g.s(t,e)},S:function(t,e){return g.S(t,e)},X:function(t,e,r){let a=t.getTimezoneOffset();if(0===a)return"Z";switch(e){case"X":return p(a);case"XXXX":case"XX":return x(a);default:return x(a,":")}},x:function(t,e,r){let a=t.getTimezoneOffset();switch(e){case"x":return p(a);case"xxxx":case"xx":return x(a);default:return x(a,":")}},O:function(t,e,r){let a=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+w(a,":");default:return"GMT"+x(a,":")}},z:function(t,e,r){let a=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+w(a,":");default:return"GMT"+x(a,":")}},t:function(t,e,r){return f(Math.trunc(t/1e3),e.length)},T:function(t,e,r){return f(+t,e.length)}};function w(t,e=""){let r=t>0?"-":"+",a=Math.abs(t),n=Math.trunc(a/60),i=a%60;return 0===i?r+String(n):r+String(n)+e+f(i,2)}function p(t,e){return t%60==0?(t>0?"-":"+")+f(Math.abs(t)/60,2):x(t,e)}function x(t,e=""){let r=Math.abs(t);return(t>0?"-":"+")+f(Math.trunc(r/60),2)+e+f(r%60,2)}let b=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},y=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},k={p:y,P:(t,e)=>{let r,a=t.match(/(P+)(p+)?/)||[],n=a[1],i=a[2];if(!i)return b(t,e);switch(n){case"P":r=e.dateTime({width:"short"});break;case"PP":r=e.dateTime({width:"medium"});break;case"PPP":r=e.dateTime({width:"long"});break;default:r=e.dateTime({width:"full"})}return r.replace("{{date}}",b(n,e)).replace("{{time}}",y(i,e))}},v=/^D+$/,N=/^Y+$/,j=["D","DD","YY","YYYY"],S=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,M=/^'([^]*?)'?$/,_=/''/g,C=/[a-zA-Z]/;function B(t,a,n){let i=(0,r.getDefaultOptions)(),s=n?.locale??i.locale??e.defaultLocale,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,d=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,c=(0,l.toDate)(t,n?.in);if(!(c instanceof Date||"object"==typeof c&&"[object Date]"===Object.prototype.toString.call(c))&&"number"!=typeof c||isNaN(+(0,l.toDate)(c)))throw RangeError("Invalid time value");let u=a.match(D).map(t=>{let e=t[0];return"p"===e||"P"===e?(0,k[e])(t,s.formatLong):t}).join("").match(S).map(t=>{if("''"===t)return{isToken:!1,value:"'"};let e=t[0];if("'"===e){var r;let e;return{isToken:!1,value:(e=(r=t).match(M))?e[1].replace(_,"'"):r}}if(m[e])return{isToken:!0,value:t};if(e.match(C))throw RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}});s.localize.preprocessor&&(u=s.localize.preprocessor(c,u));let h={firstWeekContainsDate:o,weekStartsOn:d,locale:s};return u.map(e=>{if(!e.isToken)return e.value;let r=e.value;return(!n?.useAdditionalWeekYearTokens&&N.test(r)||!n?.useAdditionalDayOfYearTokens&&v.test(r))&&function(t,e,r){var a,n,i;let l,s=(a=t,n=e,i=r,l="Y"===a[0]?"years":"days of the month",`Use \`${a.toLowerCase()}\` instead of \`${a}\` (in \`${n}\`) for formatting ${l} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(console.warn(s),j.includes(t))throw RangeError(s)}(r,a,String(t)),(0,m[r[0]])(c,r,s.localize,h)}).join("")}t.s(["format",0,B],401851);var T=t.i(24708);function O(t,e,r){let[a,i]=(0,n.normalizeDates)(r?.in,t,e);return+s(a)==+s(i)}var $=t.i(681307);let L=$.z.union([$.z.date(),$.z.iso.datetime()]),E=t=>new Date(t);t.s(["DateLikeSchema",0,L,"shortAgo",0,function(t,e=Date.now()){let r=Math.max(0,Math.round((e-E(t).getTime())/1e3));if(r<60)return"now";let a=Math.round(r/60);if(a<60)return`${a}m`;let n=Math.round(a/60);return n<24?`${n}h`:`${Math.round(n/24)}d`},"toDate",0,E,"whenOf",0,function(t){let e=E(t),r=B(e,"HH:mm");return O((0,c.constructFrom)(e,e),(0,T.constructNow)(e))?r:!function(t){var e,r;let a;return O((0,c.constructFrom)(t,t),(e=(0,T.constructNow)(t),r=void 0,a=(0,l.toDate)(e,r?.in),isNaN(-1)?(0,c.constructFrom)(r?.in||e,NaN):(a.setDate(a.getDate()+-1),a)))}(e)?`${B(e,"MMM d")} \xb7 ${r}`:`Yesterday ${r}`}],245629)},696017,t=>{"use strict";var e=t.i(60231),r=t.i(419524);t.i(947716);var a=t.i(723685),n=(0,r.__name)(t=>{let{securityLevel:r}=(0,e.getConfig2)(),n=(0,a.select)("body");if("sandbox"===r){let e=(0,a.select)(`#i${t}`),r=e.node()?.contentDocument??document;n=(0,a.select)(r.body)}return n.select(`#${t}`)},"selectSvgElement");t.s(["selectSvgElement",0,n])},502056,t=>{"use strict";var e=t.i(217248),r=t.i(447804),a=t.i(508324),n=t.i(419524),i=(0,n.__name)(({flowchart:t})=>{let e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:e+r}},"getSubGraphTitleMargins"),l=new Map;async function s(t,a,n){let i,s;"rect"===a.shape&&(a.rx&&a.ry?a.shape="roundedRect":a.shape="squareRect");let o=a.shape?e.shapes[a.shape]:void 0;if(!o)throw Error(`No such shape: ${a.shape}. Please check your syntax.`);if(a.link){let e;"sandbox"===n.config.securityLevel?e="_top":a.linkTarget&&(e=a.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",a.link).attr("target",e??null),s=await o(i,a,n)}else i=s=await o(t,a,n);return i.attr("data-look",(0,r.handleUndefinedAttr)(a.look)),a.tooltip&&s.attr("title",a.tooltip),l.set(a.id,i),a.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}(0,n.__name)(s,"insertNode");var o=(0,n.__name)((t,e)=>{l.set(e.id,t)},"setNodeElem"),d=(0,n.__name)(()=>{l.clear()},"clear"),c=(0,n.__name)(t=>{let e=l.get(t.id);a.log.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},"positionNode");t.s(["clear",0,d,"getSubGraphTitleMargins",0,i,"insertNode",0,s,"positionNode",0,c,"setNodeElem",0,o])},369110,t=>{"use strict";var e=t.i(502056),r=t.i(217248),a=t.i(224797),n=t.i(836333),i=t.i(60231),l=t.i(508324),s=t.i(419524);t.i(947716);var o=t.i(723685),d=t.i(883272),c=(0,s.__name)(async(t,e)=>{let s,c,u=(0,i.getConfig2)(),{themeVariables:h,handDrawnSeed:f}=u,{clusterBkg:g,clusterBorder:m}=h,{labelStyles:w,nodeStyles:p,borderStyles:x,backgroundStyles:b}=(0,a.styles2String)(e),y=t.insert("g").attr("class","cluster swimlane "+(e.cssClasses||"")).attr("id",e.id).attr("data-id",e.id).attr("data-et","cluster").attr("data-look",e.look),k=(0,i.evaluate)(u.flowchart.htmlLabels),v="LR"===e.direction,N=y.insert("g").attr("class","cluster-label swimlane-label"),j=await (0,n.createText)(N,e.label,{style:e.labelStyle,useHtmlLabels:k,isNode:!0,width:e.width}),S=j.getBBox();if(k){let t=j.children[0],e=(0,o.select)(j);S=t.getBoundingClientRect(),e.attr("width",S.width),e.attr("height",S.height)}let D=e.padding??0,M=e.width<=S.width+D?S.width+D:e.width;e.width<=S.width+D?e.diff=(M-e.width)/2-D:e.diff=-D;let _=e.height,C=e.y-_/2,B=e.y+_/2,T=e.x-M/2,O=void 0!==e.swimlaneContentTop?e.swimlaneContentTop:C+_/3,$=4*!!v,L=S.height+2*$;if(v){let t=Math.max(L,S.height+2*$),r=T+t,n=Math.max(0,M-t);if("handDrawn"===e.look){let i=d.default.svg(y),l=(0,a.userNodeOverrides)(e,{roughness:.7,fill:g,stroke:m,fillWeight:3,seed:f}),o=(0,a.userNodeOverrides)(e,{roughness:.7,fill:"none",stroke:m,seed:f}),u=i.rectangle(T,C,t,_,l);s=y.insert(()=>u,":first-child");let h=i.rectangle(r,C,n,_,o);c=y.insert(()=>h,":first-child"),s.select("path:nth-child(2)").attr("style",x.join(";")),s.select("path").attr("style",b.join(";").replace("fill","stroke"))}else s=y.insert("rect",":first-child"),c=y.insert("rect",":first-child"),s.attr("class","swimlane-title").attr("style",p).attr("x",T).attr("y",C).attr("width",t).attr("height",_).attr("fill",g).attr("stroke",m),c.attr("class","swimlane-body").attr("style",p).attr("x",r).attr("y",C).attr("width",n).attr("height",_).attr("fill","none").attr("stroke",m);let i=T+t/2,l=e.y;N.attr("transform",`translate(${i}, ${l}) rotate(-90) translate(${-S.width/2}, ${-S.height/2})`)}else{let t=Math.min(L,Math.max(0,O-C)),r=C+t,n=Math.max(0,B-r),i=e.x-M/2;if("handDrawn"===e.look){let l=d.default.svg(y),o=(0,a.userNodeOverrides)(e,{roughness:.7,fill:g,stroke:m,fillWeight:3,seed:f}),u=(0,a.userNodeOverrides)(e,{roughness:.7,fill:"none",stroke:m,seed:f}),h=l.rectangle(i,C,M,t,o);s=y.insert(()=>h,":first-child");let w=l.rectangle(i,r,M,n,u);c=y.insert(()=>w,":first-child"),s.select("path:nth-child(2)").attr("style",x.join(";")),s.select("path").attr("style",b.join(";").replace("fill","stroke"))}else s=y.insert("rect",":first-child"),c=y.insert("rect",":first-child"),s.attr("class","swimlane-title").attr("style",p).attr("x",i).attr("y",C).attr("width",M).attr("height",t).attr("fill",g).attr("stroke",m),c.attr("class","swimlane-body").attr("style",p).attr("x",i).attr("y",r).attr("width",M).attr("height",n).attr("fill","none").attr("stroke",m);let l=e.x-S.width/2,o=C+(t-S.height)/2;N.attr("transform",`translate(${l}, ${o})`)}if(l.log.trace("Swimlane data ",e,JSON.stringify(e)),w){let t=N.select("span");t&&t.attr("style",w)}return e.offsetX=0,e.width=M,e.height=_,e.offsetY=S.height-D/2,e.intersect=function(t){return(0,r.intersect_rect_default)(e,t)},{cluster:y,labelBBox:S}},"swimlane"),u=(0,s.__name)(async(t,s)=>{let c,u;l.log.info("Creating subgraph rect for ",s.id,s);let h=(0,i.getConfig2)(),{themeVariables:f,handDrawnSeed:g}=h,{clusterBkg:m,clusterBorder:w}=f,{labelStyles:p,nodeStyles:x,borderStyles:b,backgroundStyles:y}=(0,a.styles2String)(s),k=t.insert("g").attr("class","cluster "+s.cssClasses).attr("id",s.domId).attr("data-look",s.look),v=(0,i.getEffectiveHtmlLabels)(h),N=k.insert("g").attr("class","cluster-label "),j=(c="markdown"===s.labelType?await (0,n.createText)(N,s.label,{style:s.labelStyle,useHtmlLabels:v,isNode:!0,width:s.width}):await (0,r.createLabel_default)(N,s.label,s.labelStyle||"",!1,!0)).getBBox();if((0,i.getEffectiveHtmlLabels)(h)){let t=c.children[0],e=(0,o.select)(c);j=t.getBoundingClientRect(),e.attr("width",j.width),e.attr("height",j.height)}let S=s.width<=j.width+s.padding?j.width+s.padding:s.width;s.width<=j.width+s.padding?s.diff=(S-s.width)/2-s.padding:s.diff=-s.padding;let D=s.height,M=s.x-S/2,_=s.y-D/2;if(l.log.trace("Data ",s,JSON.stringify(s)),"handDrawn"===s.look){let t=d.default.svg(k),e=(0,a.userNodeOverrides)(s,{roughness:.7,fill:m,stroke:w,fillWeight:3,seed:g}),n=t.path((0,r.createRoundedRectPathD)(M,_,S,D,0),e);(u=k.insert(()=>(l.log.debug("Rough node insert CXC",n),n),":first-child")).select("path:nth-child(2)").attr("style",b.join(";")),u.select("path").attr("style",y.join(";").replace("fill","stroke"))}else(u=k.insert("rect",":first-child")).attr("style",x).attr("rx",s.rx).attr("ry",s.ry).attr("x",M).attr("y",_).attr("width",S).attr("height",D);let{subGraphTitleTopMargin:C}=(0,e.getSubGraphTitleMargins)(h);if(N.attr("transform",`translate(${s.x-j.width/2}, ${s.y-s.height/2+C})`),p){let t=N.select("span");t&&t.attr("style",p)}let B=u.node().getBBox();return s.offsetX=0,s.width=B.width,s.height=B.height,s.offsetY=j.height-s.padding/2,s.intersect=function(t){return(0,r.intersect_rect_default)(s,t)},{cluster:k,labelBBox:j}},"rect"),h=(0,s.__name)((t,e)=>{let a=t.insert("g").attr("class","note-cluster").attr("id",e.domId),n=a.insert("rect",":first-child"),i=0*e.padding,l=i/2;n.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-l).attr("y",e.y-e.height/2-l).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");let s=n.node().getBBox();return e.width=s.width,e.height=s.height,e.intersect=function(t){return(0,r.intersect_rect_default)(e,t)},{cluster:a,labelBBox:{width:0,height:0}}},"noteGroup"),f=(0,s.__name)(async(t,e)=>{let a,n=(0,i.getConfig2)(),{themeVariables:l,handDrawnSeed:s}=n,{altBackground:c,compositeBackground:u,compositeTitleBackground:h,nodeBorder:f}=l,g=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look),m=g.insert("g",":first-child"),w=g.insert("g").attr("class","cluster-label"),p=g.append("rect"),x=await (0,r.createLabel_default)(w,e.label,e.labelStyle,void 0,!0),b=x.getBBox();if((0,i.getEffectiveHtmlLabels)(n)){let t=x.children[0],e=(0,o.select)(x);b=t.getBoundingClientRect(),e.attr("width",b.width),e.attr("height",b.height)}let y=0*e.padding,k=(e.width<=b.width+e.padding?b.width+e.padding:e.width)+y;e.width<=b.width+e.padding?e.diff=(k-e.width)/2-e.padding:e.diff=-e.padding;let v=e.height+y,N=e.height+y-b.height-6,j=e.x-k/2,S=e.y-v/2;e.width=k;let D=e.y-e.height/2-y/2+b.height+2;if("handDrawn"===e.look){let t=e.cssClasses.includes("statediagram-cluster-alt"),n=d.default.svg(g),i=e.rx||e.ry?n.path((0,r.createRoundedRectPathD)(j,S,k,v,10),{roughness:.7,fill:h,fillStyle:"solid",stroke:f,seed:s}):n.rectangle(j,S,k,v,{seed:s});a=g.insert(()=>i,":first-child");let l=n.rectangle(j,D,k,N,{fill:t?c:u,fillStyle:t?"hachure":"solid",stroke:f,seed:s});a=g.insert(()=>i,":first-child"),p=g.insert(()=>l)}else(a=m.insert("rect",":first-child")).attr("class","outer").attr("x",j).attr("y",S).attr("width",k).attr("height",v).attr("data-look",e.look),p.attr("class","inner").attr("x",j).attr("y",D).attr("width",k).attr("height",N);return w.attr("transform",`translate(${e.x-b.width/2}, ${S+1-3*!(0,i.getEffectiveHtmlLabels)(n)})`),e.height=a.node().getBBox().height,e.offsetX=0,e.offsetY=b.height-e.padding/2,e.labelBBox=b,e.intersect=function(t){return(0,r.intersect_rect_default)(e,t)},{cluster:g,labelBBox:b}},"roundedWithTitle"),g=(0,s.__name)(async(t,s)=>{let c;l.log.info("Creating subgraph rect for ",s.id,s);let u=(0,i.getConfig2)(),{themeVariables:h,handDrawnSeed:f}=u,{clusterBkg:g,clusterBorder:m}=h,{labelStyles:w,nodeStyles:p,borderStyles:x,backgroundStyles:b}=(0,a.styles2String)(s),y=t.insert("g").attr("class","cluster "+s.cssClasses).attr("id",s.domId).attr("data-look",s.look),k=(0,i.getEffectiveHtmlLabels)(u),v=y.insert("g").attr("class","cluster-label "),N=await (0,n.createText)(v,s.label,{style:s.labelStyle,useHtmlLabels:k,isNode:!0,width:s.width}),j=N.getBBox();if((0,i.getEffectiveHtmlLabels)(u)){let t=N.children[0],e=(0,o.select)(N);j=t.getBoundingClientRect(),e.attr("width",j.width),e.attr("height",j.height)}let S=s.width<=j.width+s.padding?j.width+s.padding:s.width;s.width<=j.width+s.padding?s.diff=(S-s.width)/2-s.padding:s.diff=-s.padding;let D=s.height,M=s.x-S/2,_=s.y-D/2;if(l.log.trace("Data ",s,JSON.stringify(s)),"handDrawn"===s.look){let t=d.default.svg(y),e=(0,a.userNodeOverrides)(s,{roughness:.7,fill:g,stroke:m,fillWeight:4,seed:f}),n=t.path((0,r.createRoundedRectPathD)(M,_,S,D,s.rx),e);(c=y.insert(()=>(l.log.debug("Rough node insert CXC",n),n),":first-child")).select("path:nth-child(2)").attr("style",x.join(";")),c.select("path").attr("style",b.join(";").replace("fill","stroke"))}else(c=y.insert("rect",":first-child")).attr("style",p).attr("rx",s.rx).attr("ry",s.ry).attr("x",M).attr("y",_).attr("width",S).attr("height",D);let{subGraphTitleTopMargin:C}=(0,e.getSubGraphTitleMargins)(u);if(v.attr("transform",`translate(${s.x-j.width/2}, ${s.y-s.height/2+C})`),w){let t=v.select("span");t&&t.attr("style",w)}let B=c.node().getBBox();return s.offsetX=0,s.width=B.width,s.height=B.height,s.offsetY=j.height-s.padding/2,s.intersect=function(t){return(0,r.intersect_rect_default)(s,t)},{cluster:y,labelBBox:j}},"kanbanSection"),m={rect:u,squareRect:u,roundedWithTitle:f,noteGroup:h,divider:(0,s.__name)((t,e)=>{let a,{themeVariables:n,handDrawnSeed:l}=(0,i.getConfig2)(),{nodeBorder:s}=n,o=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look),c=o.insert("g",":first-child"),u=0*e.padding,h=e.width+u;e.diff=-e.padding;let f=e.height+u,g=e.x-h/2,m=e.y-f/2;if(e.width=h,"handDrawn"===e.look){let t=d.default.svg(o).rectangle(g,m,h,f,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:s,seed:l});a=o.insert(()=>t,":first-child")}else{a=c.insert("rect",":first-child");let t="outer";e.look,t="divider",a.attr("class",t).attr("x",g).attr("y",m).attr("width",h).attr("height",f).attr("data-look",e.look)}return e.height=a.node().getBBox().height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return(0,r.intersect_rect_default)(e,t)},{cluster:o,labelBBox:{}}},"divider"),kanbanSection:g,swimlane:c},w=new Map,p=(0,s.__name)(async(t,e)=>{let r=e.shape||"rect",a=await m[r](t,e);return w.set(e.id,a),a},"insertCluster"),x=(0,s.__name)(()=>{w=new Map},"clear");t.s(["clear",0,x,"insertCluster",0,p])},121292,t=>{"use strict";var e=t.i(369110),r=t.i(382793),a=t.i(502056),n=t.i(217248),i=t.i(447804),l=t.i(60231),s=t.i(508324),o=t.i(419524),d={common:l.common_default,getConfig:l.getConfig,insertCluster:e.insertCluster,insertEdge:r.insertEdge,insertEdgeLabel:r.insertEdgeLabel,insertMarkers:r.markers_default,insertNode:a.insertNode,interpolateToCurve:i.interpolateToCurve,labelHelper:n.labelHelper,log:s.log,positionEdgeLabel:r.positionEdgeLabel},c={},u=(0,o.__name)(t=>{for(let e of t)c[e.name]=e},"registerLayoutLoaders");(0,o.__name)(()=>{u([{name:"dagre",loader:(0,o.__name)(async()=>await t.A(555153),"loader")},{name:"swimlane",loader:(0,o.__name)(async()=>await t.A(12782),"loader")},{name:"cose-bilkent",loader:(0,o.__name)(async()=>await t.A(208503),"loader")}])},"registerDefaultLayoutLoaders")();var h=(0,o.__name)(async(t,e)=>{if(!(t.layoutAlgorithm in c))throw Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(let e of t.nodes){let r=e.domId||e.id;e.domId=`${t.diagramId}-${r}`}let r=c[t.layoutAlgorithm],a=await r.loader(),{theme:n,themeVariables:i}=t.config,{useGradient:l,gradientStart:s,gradientStop:o}=i,u=e.attr("id");if(e.append("defs").append("filter").attr("id",`${u}-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",`${n?.includes("dark")?"#FFFFFF":"#000000"}`),e.append("defs").append("filter").attr("id",`${u}-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",`${n?.includes("dark")?"#FFFFFF":"#000000"}`),l){let t=e.append("linearGradient").attr("id",e.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",s).attr("stop-opacity",1),t.append("svg:stop").attr("offset","100%").attr("stop-color",o).attr("stop-opacity",1)}return a.render(t,e,d,{algorithm:r.algorithm})},"render"),f=(0,o.__name)((t="",{fallback:e="dagre"}={})=>{if(t in c)return t;if(e in c)return s.log.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm");t.s(["getRegisteredLayoutAlgorithm",0,f,"registerLayoutLoaders",0,u,"render",0,h])}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,94682,e=>{"use strict";var t=e.i(843476),n=e.i(24071),i=e.i(482022),s=e.i(829600),r=e.i(434322),a=e.i(905015),o=e.i(226091),l=e.i(569644),c=e.i(815170),d=e.i(456420);let u={name:"images",size:24,node:[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16",key:"9kzy35"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2",key:"1t0f0t"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor",key:"1obus6"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2",key:"1gvhby"}]]};u.node;let f=(0,d.default)(u);var m=e.i(51921),h=e.i(650639),x=e.i(759659),g=e.i(438583),p=e.i(271645),y=e.i(798120),v=e.i(167881),b=e.i(917162),j=e.i(671428),k=e.i(41533),N=e.i(95187);let w=(0,N.createServerReference)("7fc5826b1ab07dadbb3ec995a5171fff0a4fab8c7a",N.callServer,void 0,N.findSourceMapURL,"deleteArtifactAction");var S=e.i(895836),A=e.i(621285),C=e.i(177373),F=e.i(245629),$=e.i(609856),z=e.i(283653),T=e.i(647163);let R={markdown:o.FileText,csv:h.Sheet,json:a.FileJson,text:o.FileText,frame:r.FileCode2,image:c.Image,audio:m.Music,video:g.Video,none:s.File};function M({entry:e,active:n,onPick:i}){let s="set"===e.kind?f:R[e.view];return(0,t.jsxs)("button",{type:"button",onClick:i,title:`${e.name} \xb7 ${(0,F.shortAgo)(e.at)}`,className:(0,T.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",n?"bg-secondary font-medium text-foreground":"text-muted-foreground hover:bg-muted/60 hover:text-foreground"),children:[(0,t.jsx)(s,{className:"size-3.5 shrink-0 opacity-70"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.name}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/75",children:"set"===e.kind?e.count:(0,T.formatBytes)(e.bytes)})]})}function V({row:e,file:s,onOpen:r,onBack:a,onGone:o}){let[c]=(0,$.useServerAction)(C.openFileAction),[d,u]=(0,$.useServerAction)(w,{okMessage:"Deleted",onOk:()=>{(0,z.revalidate)(y.queryKey.artifacts),s?a():o()}}),f=s?{path:s.path,bytes:s.bytes,at:s.at}:"file"===e.kind?{path:e.path,bytes:e.bytes,at:e.at}:null,m=async e=>{await b.notify.confirm({title:`Delete ${e.split("/").pop()}?`,description:"It is deleted from disk for good.",okText:"Delete",destructive:!0})&&d(e)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex h-11 shrink-0 items-center gap-3 border-b border-border/60 px-6",children:[s&&(0,t.jsxs)("button",{type:"button",onClick:a,className:"-ml-1 flex shrink-0 items-center gap-1 rounded-md px-1.5 py-1 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",children:[(0,t.jsx)(n.ChevronLeft,{className:"size-3"}),e.name]}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] text-foreground",children:f?f.path.split("/").pop()??e.name:e.name}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/70",children:f?`${(0,T.formatBytes)(f.bytes)} \xb7 ${(0,F.shortAgo)(f.at)}`:`${e.count} ${1===e.count?"file":"files"} \xb7 ${(0,F.shortAgo)(e.at)}`}),f&&(0,t.jsx)("a",{href:y.queryKey.fileView(f.path),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)(i.ExternalLink,{className:"size-4"})}),(0,t.jsx)(v.Button,{size:"icon-sm",variant:"ghost","aria-label":"Reveal in the file manager",className:"text-muted-foreground",onClick:()=>c(f?.path??e.path),children:(0,t.jsx)(l.FolderOpen,{})}),f&&(0,t.jsx)(v.Button,{size:"icon-sm",variant:"ghost","aria-label":"Delete",loading:u,className:"text-muted-foreground",onClick:()=>m(f.path),children:(0,t.jsx)(x.Trash2,{})})]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:f?(0,t.jsx)(A.FilePreview,{path:f.path,bytes:f.bytes}):(0,t.jsx)(I,{name:e.name,onOpen:r})})]})}function I({name:e,onOpen:n}){let{data:i,isLoading:s,error:r}=(0,z.useServerRoute)(y.queryKey.artifactSet(e,k.ARTIFACT_VIEW.setFiles));if(s)return(0,t.jsx)("div",{className:"grid grid-cols-4 gap-3 p-5",children:Array.from({length:8},(e,n)=>(0,t.jsx)(j.Skeleton,{className:"aspect-4/3 w-full rounded-xl"},n))});if(r)return(0,t.jsx)(S.SettingError,{message:r.message});let a=i?.files??[];return 0===a.length?(0,t.jsx)("p",{className:"p-5 text-xs text-muted-foreground/60",children:"Nothing in here the app can open."}):(0,t.jsxs)("div",{className:"p-5",children:[(0,t.jsx)("div",{className:"grid grid-cols-4 gap-3",children:a.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>n(e),title:`${e.name} \xb7 ${(0,T.formatBytes)(e.bytes)}`,className:"flex flex-col gap-1.5 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-offset-2",children:[(0,t.jsx)(L,{file:e}),(0,t.jsx)("span",{className:"truncate font-mono text-[11px] text-muted-foreground",children:e.name})]},e.path))}),i&&i.total>a.length&&(0,t.jsx)("p",{className:"pt-4 font-mono text-[11px] text-muted-foreground/60",children:`${a.length} of ${i.total.toLocaleString("en")} — the rest are in the folder`})]})}function L({file:e}){if("image"===e.view&&e.bytes<=k.WORKSPACE_VIEW.elementMax)return(0,t.jsx)("img",{src:y.queryKey.file(e.path),alt:e.name,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full rounded-xl object-cover"});let n=R[e.view];return(0,t.jsx)("span",{className:"grid aspect-4/3 w-full place-items-center rounded-xl bg-muted/40 text-muted-foreground",children:(0,t.jsx)(n,{className:"size-5"})})}function B({empty:e,onReveal:n}){return(0,t.jsxs)("div",{className:"space-y-4 p-8",children:[(0,t.jsx)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:e?"Nothing finished yet. When a bot ends a job with something to hand over — a page, a report, a set of pictures — it lands here.":"Pick something on the left. A folder a bot filled is one row, and opens as a sheet."}),(0,t.jsxs)(v.Button,{variant:"outline",onClick:n,children:[(0,t.jsx)(l.FolderOpen,{}),"Reveal folder"]})]})}e.s(["ArtifactSetting",0,function(){let[e,n]=(0,p.useState)(null),[i,s]=(0,p.useState)(""),[r,a]=(0,p.useState)(k.ARTIFACT_VIEW.rows),{data:o,isLoading:c,error:d}=(0,z.useServerRoute)(y.queryKey.artifactShelf(r),{keepPreviousData:!0}),[u]=(0,$.useServerAction)(C.openFileAction);if(c)return(0,t.jsx)(S.SettingPanesSkeleton,{});if(d)return(0,t.jsx)(S.SettingError,{message:d.message});let f=o?.entries??[],m=o?.total??0,h=i.trim().toLowerCase(),x=h?f.filter(e=>e.name.toLowerCase().includes(h)):f,g=f.find(t=>t.path===e?.row.path)??e?.row;return(0,t.jsx)(S.SettingPanes,{footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(S.SettingRailNote,{children:(0,t.jsxs)("span",{className:"font-mono",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:"artifacts"}),` \xb7 ${function(e,t,n){if(0===t)return"empty";let i=t>e.length?`${e.length} of ${t.toLocaleString("en")} artifacts`:`${t} ${1===t?"artifact":"artifacts"}`;return n>t?`${i} \xb7 ${n.toLocaleString("en")} files`:i}(f,m,o?.files??0)}`]})}),(0,t.jsxs)(v.Button,{variant:"outline",size:"sm",onClick:()=>u("artifacts"),children:[(0,t.jsx)(l.FolderOpen,{}),"Reveal folder"]})]}),left:(0,t.jsxs)("div",{className:"flex flex-col py-2",children:[(0,t.jsx)(S.SettingFilter,{value:i,onChange:s,placeholder:"Filter artifacts",className:"mx-2 mb-1.5 w-auto"}),0===x.length?(0,t.jsx)("p",{className:"px-4 py-3 text-xs text-muted-foreground/60",children:h?"Nothing matches":"Nothing here yet"}):x.map(e=>(0,t.jsx)(M,{entry:e,active:e.path===g?.path,onPick:()=>n({row:e,file:null})},e.path)),m>f.length&&(0,t.jsx)("button",{type:"button",onClick:()=>a(r+k.ARTIFACT_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.ARTIFACT_VIEW.rows,m-f.length)} more of ${m.toLocaleString("en")}`})]}),right:g?(0,t.jsx)(V,{row:g,file:e?.file??null,onOpen:e=>n({row:g,file:e}),onBack:()=>n({row:g,file:null}),onGone:()=>n(null)},g.path):(0,t.jsx)(B,{empty:0===m,onReveal:()=>u("artifacts")})})}],94682)},434322,51921,650639,438583,e=>{"use strict";var t=e.i(456420);let n={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"]};n.node;let i=(0,t.default)(n);e.s(["FileCode2",0,i],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 c=(0,t.default)(l);e.s(["Video",0,c],438583)},759659,e=>{"use strict";var t=e.i(456420);let n={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"]};n.node;let i=(0,t.default)(n);e.s(["Trash2",0,i],759659)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,94682,e=>{"use strict";var t=e.i(843476),n=e.i(24071),i=e.i(482022),s=e.i(829600),r=e.i(434322),a=e.i(905015),o=e.i(226091),l=e.i(569644),c=e.i(815170),d=e.i(456420);let u={name:"images",size:24,node:[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16",key:"9kzy35"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2",key:"1t0f0t"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor",key:"1obus6"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2",key:"1gvhby"}]]};u.node;let f=(0,d.default)(u);var m=e.i(51921),h=e.i(650639),x=e.i(759659),g=e.i(438583),p=e.i(271645),y=e.i(798120),v=e.i(167881),b=e.i(917162),j=e.i(671428),k=e.i(41533),N=e.i(95187);let w=(0,N.createServerReference)("7f5e9d55d642fe92f8db17f028783ed35610b7df76",N.callServer,void 0,N.findSourceMapURL,"deleteArtifactAction");var S=e.i(895836),A=e.i(621285),C=e.i(866575),F=e.i(245629),$=e.i(609856),z=e.i(283653),T=e.i(647163);let R={markdown:o.FileText,csv:h.Sheet,json:a.FileJson,text:o.FileText,frame:r.FileCode2,image:c.Image,audio:m.Music,video:g.Video,none:s.File};function M({entry:e,active:n,onPick:i}){let s="set"===e.kind?f:R[e.view];return(0,t.jsxs)("button",{type:"button",onClick:i,title:`${e.name} \xb7 ${(0,F.shortAgo)(e.at)}`,className:(0,T.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",n?"bg-secondary font-medium text-foreground":"text-muted-foreground hover:bg-muted/60 hover:text-foreground"),children:[(0,t.jsx)(s,{className:"size-3.5 shrink-0 opacity-70"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.name}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/75",children:"set"===e.kind?e.count:(0,T.formatBytes)(e.bytes)})]})}function V({row:e,file:s,onOpen:r,onBack:a,onGone:o}){let[c]=(0,$.useServerAction)(C.openFileAction),[d,u]=(0,$.useServerAction)(w,{okMessage:"Deleted",onOk:()=>{(0,z.revalidate)(y.queryKey.artifacts),s?a():o()}}),f=s?{path:s.path,bytes:s.bytes,at:s.at}:"file"===e.kind?{path:e.path,bytes:e.bytes,at:e.at}:null,m=async e=>{await b.notify.confirm({title:`Delete ${e.split("/").pop()}?`,description:"It is deleted from disk for good.",okText:"Delete",destructive:!0})&&d(e)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex h-11 shrink-0 items-center gap-3 border-b border-border/60 px-6",children:[s&&(0,t.jsxs)("button",{type:"button",onClick:a,className:"-ml-1 flex shrink-0 items-center gap-1 rounded-md px-1.5 py-1 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",children:[(0,t.jsx)(n.ChevronLeft,{className:"size-3"}),e.name]}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] text-foreground",children:f?f.path.split("/").pop()??e.name:e.name}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/70",children:f?`${(0,T.formatBytes)(f.bytes)} \xb7 ${(0,F.shortAgo)(f.at)}`:`${e.count} ${1===e.count?"file":"files"} \xb7 ${(0,F.shortAgo)(e.at)}`}),f&&(0,t.jsx)("a",{href:y.queryKey.fileView(f.path),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)(i.ExternalLink,{className:"size-4"})}),(0,t.jsx)(v.Button,{size:"icon-sm",variant:"ghost","aria-label":"Reveal in the file manager",className:"text-muted-foreground",onClick:()=>c(f?.path??e.path),children:(0,t.jsx)(l.FolderOpen,{})}),f&&(0,t.jsx)(v.Button,{size:"icon-sm",variant:"ghost","aria-label":"Delete",loading:u,className:"text-muted-foreground",onClick:()=>m(f.path),children:(0,t.jsx)(x.Trash2,{})})]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:f?(0,t.jsx)(A.FilePreview,{path:f.path,bytes:f.bytes}):(0,t.jsx)(I,{name:e.name,onOpen:r})})]})}function I({name:e,onOpen:n}){let{data:i,isLoading:s,error:r}=(0,z.useServerRoute)(y.queryKey.artifactSet(e,k.ARTIFACT_VIEW.setFiles));if(s)return(0,t.jsx)("div",{className:"grid grid-cols-4 gap-3 p-5",children:Array.from({length:8},(e,n)=>(0,t.jsx)(j.Skeleton,{className:"aspect-4/3 w-full rounded-xl"},n))});if(r)return(0,t.jsx)(S.SettingError,{message:r.message});let a=i?.files??[];return 0===a.length?(0,t.jsx)("p",{className:"p-5 text-xs text-muted-foreground/60",children:"Nothing in here the app can open."}):(0,t.jsxs)("div",{className:"p-5",children:[(0,t.jsx)("div",{className:"grid grid-cols-4 gap-3",children:a.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>n(e),title:`${e.name} \xb7 ${(0,T.formatBytes)(e.bytes)}`,className:"flex flex-col gap-1.5 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-offset-2",children:[(0,t.jsx)(L,{file:e}),(0,t.jsx)("span",{className:"truncate font-mono text-[11px] text-muted-foreground",children:e.name})]},e.path))}),i&&i.total>a.length&&(0,t.jsx)("p",{className:"pt-4 font-mono text-[11px] text-muted-foreground/60",children:`${a.length} of ${i.total.toLocaleString("en")} — the rest are in the folder`})]})}function L({file:e}){if("image"===e.view&&e.bytes<=k.WORKSPACE_VIEW.elementMax)return(0,t.jsx)("img",{src:y.queryKey.file(e.path),alt:e.name,loading:"lazy",decoding:"async",className:"aspect-4/3 w-full rounded-xl object-cover"});let n=R[e.view];return(0,t.jsx)("span",{className:"grid aspect-4/3 w-full place-items-center rounded-xl bg-muted/40 text-muted-foreground",children:(0,t.jsx)(n,{className:"size-5"})})}function B({empty:e,onReveal:n}){return(0,t.jsxs)("div",{className:"space-y-4 p-8",children:[(0,t.jsx)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:e?"Nothing finished yet. When a bot ends a job with something to hand over — a page, a report, a set of pictures — it lands here.":"Pick something on the left. A folder a bot filled is one row, and opens as a sheet."}),(0,t.jsxs)(v.Button,{variant:"outline",onClick:n,children:[(0,t.jsx)(l.FolderOpen,{}),"Reveal folder"]})]})}e.s(["ArtifactSetting",0,function(){let[e,n]=(0,p.useState)(null),[i,s]=(0,p.useState)(""),[r,a]=(0,p.useState)(k.ARTIFACT_VIEW.rows),{data:o,isLoading:c,error:d}=(0,z.useServerRoute)(y.queryKey.artifactShelf(r),{keepPreviousData:!0}),[u]=(0,$.useServerAction)(C.openFileAction);if(c)return(0,t.jsx)(S.SettingPanesSkeleton,{});if(d)return(0,t.jsx)(S.SettingError,{message:d.message});let f=o?.entries??[],m=o?.total??0,h=i.trim().toLowerCase(),x=h?f.filter(e=>e.name.toLowerCase().includes(h)):f,g=f.find(t=>t.path===e?.row.path)??e?.row;return(0,t.jsx)(S.SettingPanes,{footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(S.SettingRailNote,{children:(0,t.jsxs)("span",{className:"font-mono",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:"artifacts"}),` \xb7 ${function(e,t,n){if(0===t)return"empty";let i=t>e.length?`${e.length} of ${t.toLocaleString("en")} artifacts`:`${t} ${1===t?"artifact":"artifacts"}`;return n>t?`${i} \xb7 ${n.toLocaleString("en")} files`:i}(f,m,o?.files??0)}`]})}),(0,t.jsxs)(v.Button,{variant:"outline",size:"sm",onClick:()=>u("artifacts"),children:[(0,t.jsx)(l.FolderOpen,{}),"Reveal folder"]})]}),left:(0,t.jsxs)("div",{className:"flex flex-col py-2",children:[(0,t.jsx)(S.SettingFilter,{value:i,onChange:s,placeholder:"Filter artifacts",className:"mx-2 mb-1.5 w-auto"}),0===x.length?(0,t.jsx)("p",{className:"px-4 py-3 text-xs text-muted-foreground/60",children:h?"Nothing matches":"Nothing here yet"}):x.map(e=>(0,t.jsx)(M,{entry:e,active:e.path===g?.path,onPick:()=>n({row:e,file:null})},e.path)),m>f.length&&(0,t.jsx)("button",{type:"button",onClick:()=>a(r+k.ARTIFACT_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.ARTIFACT_VIEW.rows,m-f.length)} more of ${m.toLocaleString("en")}`})]}),right:g?(0,t.jsx)(V,{row:g,file:e?.file??null,onOpen:e=>n({row:g,file:e}),onBack:()=>n({row:g,file:null}),onGone:()=>n(null)},g.path):(0,t.jsx)(B,{empty:0===m,onReveal:()=>u("artifacts")})})}],94682)},434322,51921,650639,438583,e=>{"use strict";var t=e.i(456420);let n={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"]};n.node;let i=(0,t.default)(n);e.s(["FileCode2",0,i],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 c=(0,t.default)(l);e.s(["Video",0,c],438583)},759659,e=>{"use strict";var t=e.i(456420);let n={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"]};n.node;let i=(0,t.default)(n);e.s(["Trash2",0,i],759659)}]);
|