@alook/app 0.0.133 → 0.0.135
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled/email-worker/index.js +17 -9
- package/bundled/web/.open-next/.build/durable-objects/queue.js +5 -5
- package/bundled/web/.open-next/assets/BUILD_ID +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0vq-9me5zdpwe.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/{3issuq6aouf1q.js → 1soxnit9hjz-0.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/{1iux65sajp19w.js → 25mf0rxvnm36s.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/{1z4a4-hyguhc1.js → 29vahszwp_yzk.js} +3 -3
- package/bundled/web/.open-next/assets/_next/static/chunks/2nzhi1-lt9r-h.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/2owkk0a9xurql.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/{27vz1_55bn5h_.js → 2vvce1uli_yf3.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/3ad50t_oqhpk_.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/{2yh4j7b0i4eye.js → 3g9-r7m865tot.js} +2 -2
- package/bundled/web/.open-next/cache/{UUtXyb9u1pubazU2jTktS → sGrtuJLQm2artu6oSgWPT}/_global-error.cache +1 -1
- package/bundled/web/.open-next/cache/{UUtXyb9u1pubazU2jTktS → sGrtuJLQm2artu6oSgWPT}/_not-found.cache +1 -1
- package/bundled/web/.open-next/cache/{UUtXyb9u1pubazU2jTktS → sGrtuJLQm2artu6oSgWPT}/device.cache +1 -1
- package/bundled/web/.open-next/cache/{UUtXyb9u1pubazU2jTktS → sGrtuJLQm2artu6oSgWPT}/privacy.cache +1 -1
- package/bundled/web/.open-next/cache/{UUtXyb9u1pubazU2jTktS → sGrtuJLQm2artu6oSgWPT}/sitemap.xml.cache +1 -1
- package/bundled/web/.open-next/cloudflare/cache-assets-manifest.sql +1 -1
- package/bundled/web/.open-next/cloudflare/init.js +1 -1
- package/bundled/web/.open-next/dynamodb-provider/dynamodb-cache.json +1 -1
- package/bundled/web/.open-next/middleware/handler.mjs +6 -6
- package/bundled/web/.open-next/server-functions/default/src/web/.next/BUILD_ID +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/app-path-routes-manifest.json +1 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/build-manifest.json +3 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/prerender-manifest.json +3 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/required-server-files.json +3 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/routes-manifest.json +8 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/invite/[token]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/studio/new/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/activity/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/chat/[convId]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/chat/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/email/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/files/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/meetings/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/new/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/calendar/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/flags/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/help/email-setup/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/home/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/issues/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/runtimes/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/settings/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/traces/[traceId]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/traces/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/unread/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/agents/recruit/route.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/email/[id]/trust/route.js +15 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/email/[id]/trust/route_client-reference-manifest.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/email/notify/route.js +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/api/email/send/route.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/page/react-loadable-manifest.json +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app-paths-manifest.json +1 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[root-of-the-server]__12fz1lr._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[turbopack]_runtime.js +7 -5
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/{_1pt-oj4._.js → _0eu_mts._.js} +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/{_0c6q0et._.js → _0kca2k0._.js} +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0r2vuif._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0v95a0y._.js +14 -14
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_139j3zh._.js +14 -14
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_1nfaney._.js +14 -14
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_1p90k-4._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/src_web__next-internal_server_app_api_email_[id]_trust_route_actions_0rx9apz.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/1b4r_lucide-react_dist_esm_icons_0ci7b7p._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[turbopack]_runtime.js +7 -5
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0p54okk._.js +13 -13
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0qgcnj5._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0t5ob43._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_app_(app)_w_[slug]_agents_[id]_email_page_tsx_0gv3qni._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_lib_api_ts_1ffelwp._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-build-manifest.js +3 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-manifest.json +5 -5
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/server-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/server-reference-manifest.json +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs +99 -97
- package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs.meta.json +181 -113
- package/bundled/web/.open-next/server-functions/default/src/web/index.mjs +6 -6
- package/bundled/web/wrangler.toml +1 -1
- package/bundled/ws-do/index.js +17 -9
- package/dist/cli/index.js +1 -1
- package/dist/cli/session-runner.js +1 -1
- package/package.json +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0pd5shecdv7w3.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/1ox78wqeeqant.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/38j_4uwfj09mb.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/3bfk44a51kg4q.js +0 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0qy7lt2._.js +0 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/1b4r_lucide-react_dist_esm_icons_0u7bkx8._.js +0 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_app_(app)_w_[slug]_agents_[id]_meetings_page_tsx_0ciapb3._.js +0 -3
- /package/bundled/web/.open-next/assets/_next/static/{UUtXyb9u1pubazU2jTktS → sGrtuJLQm2artu6oSgWPT}/_buildManifest.js +0 -0
- /package/bundled/web/.open-next/assets/_next/static/{UUtXyb9u1pubazU2jTktS → sGrtuJLQm2artu6oSgWPT}/_clientMiddlewareManifest.js +0 -0
- /package/bundled/web/.open-next/assets/_next/static/{UUtXyb9u1pubazU2jTktS → sGrtuJLQm2artu6oSgWPT}/_ssgManifest.js +0 -0
- /package/bundled/web/.open-next/cache/{UUtXyb9u1pubazU2jTktS → sGrtuJLQm2artu6oSgWPT}/robots.txt.cache +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,129396,e=>{"use strict";var t=e.i(653772),s=e.i(511043),n=e.i(126942),i=e.i(500324),a=e.i(355578),l=e.i(222862);e.i(954194);var r=e.i(439769),o=e.i(186339),d=e.i(393153),c=e.i(720115),u=e.i(941693),m=e.i(37476),x=e.i(16770),h=e.i(928059),p=e.i(729432),f=p.Extension.create({name:"textAlign",addOptions:()=>({types:[],alignments:["left","center","right","justify"],defaultAlignment:null}),addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:e=>{let t=e.style.textAlign;return this.options.alignments.includes(t)?t:this.options.defaultAlignment},renderHTML:e=>e.textAlign?{style:`text-align: ${e.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:e=>({commands:t})=>!!this.options.alignments.includes(e)&&this.options.types.map(s=>t.updateAttributes(s,{textAlign:e})).some(e=>e),unsetTextAlign:()=>({commands:e})=>this.options.types.map(t=>e.resetAttributes(t,"textAlign")).some(e=>e),toggleTextAlign:e=>({editor:t,commands:s})=>!!this.options.alignments.includes(e)&&(t.isActive({textAlign:e})?s.unsetTextAlign():s.setTextAlign(e))}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),g=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,j=p.Node.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{},resize:!1}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",(0,p.mergeAttributes)(this.options.HTMLAttributes,e)]},parseMarkdown:(e,t)=>t.createNode("image",{src:e.href,title:e.title,alt:e.text}),renderMarkdown:e=>{var t,s,n,i,a,l;let r=null!=(s=null==(t=e.attrs)?void 0:t.src)?s:"",o=null!=(i=null==(n=e.attrs)?void 0:n.alt)?i:"",d=null!=(l=null==(a=e.attrs)?void 0:a.title)?l:"";return d?``:``},addNodeView(){if(!this.options.resize||!this.options.resize.enabled||"u"<typeof document)return null;let{directions:e,minWidth:t,minHeight:s,alwaysPreserveAspectRatio:n}=this.options.resize;return({node:i,getPos:a,HTMLAttributes:l,editor:r})=>{let o=document.createElement("img");o.draggable=!1;let d=(0,p.mergeAttributes)(this.options.HTMLAttributes,l);Object.entries(d).forEach(([e,t])=>{if(null!=t)switch(e){case"width":case"height":break;default:o.setAttribute(e,t)}}),null!==d.src&&(o.src=d.src);let c=new p.ResizableNodeView({element:o,editor:r,node:i,getPos:a,onResize:(e,t)=>{o.style.width=`${e}px`,o.style.height=`${t}px`},onCommit:(e,t)=>{let s=a();void 0!==s&&this.editor.chain().setNodeSelection(s).updateAttributes(this.name,{width:e,height:t}).run()},onUpdate:(e,t,s)=>e.type===i.type,options:{directions:e,min:{width:t,height:s},preserveAspectRatio:!0===n}}),u=c.dom;return u.style.visibility="hidden",u.style.pointerEvents="none",o.onload=()=>{u.style.visibility="",u.style.pointerEvents=""},c}},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[(0,p.nodeInputRule)({find:g,type:this.type,getAttributes:e=>{let[,,t,s,n]=e;return{src:s,alt:t,title:n}}})]}}),b=e.i(613349),y=e.i(329686),v=e.i(779646),N=e.i(903477),k=e.i(419412);let w=(0,k.default)("bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]),z=(0,k.default)("italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]),A=(0,k.default)("underline",[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]]),T=(0,k.default)("strikethrough",[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]]),C=(0,k.default)("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]),S=(0,k.default)("list-ordered",[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]]),M=(0,k.default)("text-align-start",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]]),H=(0,k.default)("text-align-center",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 19H5",key:"vjpgq2"}]]),B=(0,k.default)("text-align-end",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 19H7",key:"4cu937"}]]),E=(0,k.default)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]),L=(0,k.default)("unlink",[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]]),R=(0,k.default)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),_=(0,k.default)("heading-1",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"m17 12 3-2v8",key:"1hhhft"}]]),$=(0,k.default)("heading-2",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1",key:"9jr5yi"}]]);var D=e.i(573404),D=D;function I({active:e,disabled:s,onAction:n,title:i,children:a}){return(0,t.jsxs)(y.Tooltip,{children:[(0,t.jsx)(y.TooltipTrigger,{render:(0,t.jsx)(o.Button,{variant:"ghost",size:"icon-sm",disabled:s,onMouseDown:e=>e.preventDefault(),onClick:n,className:(0,b.cn)("text-muted-foreground/70",e&&"bg-accent text-foreground")}),children:a}),(0,t.jsx)(y.TooltipContent,{children:i})]})}function F(){return(0,t.jsx)("div",{className:"w-px h-4 bg-border/60 mx-0.5 shrink-0"})}function P({editor:e}){let[,n]=(0,s.useReducer)(e=>e+1,0),[i,a]=(0,s.useState)(!1),[l,r]=(0,s.useState)("link"),[d,c]=(0,s.useState)(""),[u,m]=(0,s.useState)(""),[x,h]=(0,s.useState)(""),[p,f]=(0,s.useState)(!1),g=(0,s.useRef)(null),j=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{if(!e)return;let t=()=>n();return e.on("transaction",t),()=>{e.off("transaction",t)}},[e]),(0,s.useEffect)(()=>{i&&setTimeout(()=>g.current?.focus(),0)},[i]),!e)return null;let k="size-3.5",O=()=>{let t=d.trim();if(t){try{new URL(t)}catch{m("Please enter a valid URL");return}if(m(""),"link"===l)if(p){let s=x.trim()||t;e.chain().focus().insertContent({type:"text",text:s,marks:[{type:"link",attrs:{href:t}}]}).run()}else e.chain().focus().extendMarkRange("link").setLink({href:t}).run();else e.chain().focus().setImage({src:t}).run();a(!1)}};return(0,t.jsxs)("div",{className:"flex items-center gap-0.5 px-3 py-1 overflow-x-auto",children:[(0,t.jsx)(I,{title:"Bold",active:e.isActive("bold"),onAction:()=>e.chain().focus().toggleBold().run(),children:(0,t.jsx)(w,{className:k})}),(0,t.jsx)(I,{title:"Italic",active:e.isActive("italic"),onAction:()=>e.chain().focus().toggleItalic().run(),children:(0,t.jsx)(z,{className:k})}),(0,t.jsx)(I,{title:"Underline",active:e.isActive("underline"),onAction:()=>e.chain().focus().toggleUnderline().run(),children:(0,t.jsx)(A,{className:k})}),(0,t.jsx)(I,{title:"Strikethrough",active:e.isActive("strike"),onAction:()=>e.chain().focus().toggleStrike().run(),children:(0,t.jsx)(T,{className:k})}),(0,t.jsx)(F,{}),(0,t.jsx)(I,{title:"Heading 1",active:e.isActive("heading",{level:1}),onAction:()=>e.chain().focus().toggleHeading({level:1}).run(),children:(0,t.jsx)(_,{className:k})}),(0,t.jsx)(I,{title:"Heading 2",active:e.isActive("heading",{level:2}),onAction:()=>e.chain().focus().toggleHeading({level:2}).run(),children:(0,t.jsx)($,{className:k})}),(0,t.jsx)(F,{}),(0,t.jsx)(I,{title:"Bullet List",active:e.isActive("bulletList"),onAction:()=>e.chain().focus().toggleBulletList().run(),children:(0,t.jsx)(C,{className:k})}),(0,t.jsx)(I,{title:"Ordered List",active:e.isActive("orderedList"),onAction:()=>e.chain().focus().toggleOrderedList().run(),children:(0,t.jsx)(S,{className:k})}),(0,t.jsx)(F,{}),(0,t.jsx)(I,{title:"Align Left",active:e.isActive({textAlign:"left"}),onAction:()=>e.chain().focus().setTextAlign("left").run(),children:(0,t.jsx)(M,{className:k})}),(0,t.jsx)(I,{title:"Align Center",active:e.isActive({textAlign:"center"}),onAction:()=>e.chain().focus().setTextAlign("center").run(),children:(0,t.jsx)(H,{className:k})}),(0,t.jsx)(I,{title:"Align Right",active:e.isActive({textAlign:"right"}),onAction:()=>e.chain().focus().setTextAlign("right").run(),children:(0,t.jsx)(B,{className:k})}),(0,t.jsx)(F,{}),(0,t.jsxs)(y.Tooltip,{children:[(0,t.jsx)(y.TooltipTrigger,{render:(0,t.jsx)(o.Button,{variant:"ghost",size:"icon-sm",onMouseDown:t=>{t.preventDefault(),j.current=e.isActive("link")},onClick:()=>{j.current?e.chain().focus().unsetLink().run():(r("link"),c(""),m(""),h(""),f(e.state.selection.empty),a(!0))},className:(0,b.cn)("text-muted-foreground/70",e.isActive("link")&&"bg-accent text-foreground")}),children:e.isActive("link")?(0,t.jsx)(L,{className:k}):(0,t.jsx)(E,{className:k})}),(0,t.jsx)(y.TooltipContent,{children:e.isActive("link")?"Remove Link":"Insert Link"})]}),(0,t.jsx)(I,{title:"Insert Image",onAction:()=>{r("image"),c(""),m(""),a(!0)},children:(0,t.jsx)(R,{className:k})}),(0,t.jsx)(F,{}),(0,t.jsx)(I,{title:"Horizontal Rule",onAction:()=>e.chain().focus().setHorizontalRule().run(),children:(0,t.jsx)(D.default,{className:k})}),(0,t.jsx)(v.Dialog,{open:i,onOpenChange:a,children:(0,t.jsxs)(v.DialogContent,{children:[(0,t.jsx)(v.DialogHeader,{children:(0,t.jsx)(v.DialogTitle,{children:"link"===l?"Insert Link":"Insert Image"})}),"link"===l&&p&&(0,t.jsx)(N.Input,{ref:g,value:x,onChange:e=>h(e.target.value),onKeyDown:e=>{"Enter"===e.key&&O()},placeholder:"Display text"}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)(N.Input,{ref:"image"!==l&&p?void 0:g,value:d,onChange:e=>{c(e.target.value),m("")},onKeyDown:e=>{"Enter"===e.key&&O()},placeholder:"link"===l?"https://example.com":"https://example.com/image.png",type:"url","aria-invalid":!!u}),u&&(0,t.jsx)("p",{className:"text-xs text-destructive",children:u})]}),(0,t.jsx)(v.DialogFooter,{children:(0,t.jsx)(o.Button,{onClick:O,disabled:!d.trim(),children:"Insert"})})]})})]})}var O=e.i(516266),U=e.i(392277),q=e.i(692670),V=e.i(945074),K=e.i(966662),W=e.i(492451);function G({fromAddress:n,onSend:i,onDiscard:a,initialTo:l="",initialSubject:r="",initialBody:d="",initialAttachments:p=[],inReplyTo:g,references:b}){let[v,k]=(0,s.useState)(l),[w,z]=(0,s.useState)(r),[A,T]=(0,s.useState)(!1),[C,S]=(0,s.useState)(p),[M,H]=(0,s.useState)(!1),B=(0,s.useRef)(null),E=(0,c.useEditor)({immediatelyRender:!1,content:d||void 0,extensions:[u.default.configure({link:!1,underline:!1}),m.default.configure({placeholder:"Write your email..."}),x.default,h.default.configure({autolink:!0,openOnClick:!1,linkOnPaste:!0}),f.configure({types:["heading","paragraph"]}),j.configure({inline:!0,allowBase64:!0})],editorProps:{attributes:{class:"text-sm max-w-none focus:outline-none min-h-50 px-4 py-3"}}}),L=async()=>{if(v.trim()&&w.trim()&&E){T(!0);try{let e=E.getHTML();await i(v.trim(),w.trim(),e,C,g||b?{inReplyTo:g,references:b}:void 0)&&(k(""),z(""),S([]),E.commands.clearContent())}finally{T(!1)}}},R=async t=>{let s=t.target.files;if(s&&0!==s.length){H(!0);try{let{uploadEmailAttachment:t}=await e.A(302482);for(let e of Array.from(s)){if(e.size>0xa00000){O.toast.error(`${e.name} exceeds 10 MB limit`);continue}let s=new URLSearchParams(window.location.search).get("workspace_id")??"",n=await t(e,s);S(e=>[...e,n])}}catch{O.toast.error("Failed to upload attachment")}finally{H(!1),B.current&&(B.current.value="")}}};return(0,t.jsxs)("div",{className:"flex flex-col h-full w-full min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-border/40 px-4 py-2",children:[(0,t.jsx)("h3",{className:"text-sm font-heading font-medium tracking-tight",children:"New Email"}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsxs)(o.Button,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground h-7 px-2",onClick:a,disabled:A,children:[(0,t.jsx)(q.X,{className:"size-3 mr-1"}),"Discard"]}),(0,t.jsxs)(o.Button,{size:"sm",className:"text-xs h-7 px-3",onClick:L,disabled:A||!v.trim()||!w.trim(),children:[A?(0,t.jsx)(V.Loader2,{className:"size-3 mr-1 animate-spin"}):(0,t.jsx)(U.Send,{className:"size-3 mr-1"}),"Send"]})]})]}),(0,t.jsxs)("div",{className:"border-b border-border/30 px-4 py-2.5 space-y-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm min-w-0",children:[(0,t.jsx)("span",{className:"text-muted-foreground w-16 shrink-0",children:"From"}),(0,t.jsx)("span",{className:"text-muted-foreground truncate min-w-0",children:n})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm min-w-0",children:[(0,t.jsx)("span",{className:"text-muted-foreground w-16 shrink-0",children:"To"}),(0,t.jsx)("div",{className:"flex-1 min-w-0 -ml-1.5 rounded-md bg-muted/40",children:(0,t.jsx)(N.Input,{type:"email",value:v,onChange:e=>k(e.target.value),placeholder:"recipient@example.com",className:"h-7 text-sm border-0 bg-transparent px-1.5 shadow-none focus-visible:ring-0 placeholder:text-muted-foreground/50",disabled:A})})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm min-w-0",children:[(0,t.jsx)("span",{className:"text-muted-foreground w-16 shrink-0",children:"Subject"}),(0,t.jsx)("div",{className:"flex-1 min-w-0 -ml-1.5 rounded-md bg-muted/40",children:(0,t.jsx)(N.Input,{value:w,onChange:e=>z(e.target.value),placeholder:"Email subject",className:"h-7 text-sm border-0 bg-transparent px-1.5 shadow-none focus-visible:ring-0 placeholder:text-muted-foreground/50",disabled:A})})]})]}),(0,t.jsxs)("div",{className:"flex items-center border-b border-border/30",children:[(0,t.jsx)(P,{editor:E}),(0,t.jsxs)("div",{className:"flex items-center gap-1 px-2 border-l border-border/30",children:[(0,t.jsx)("input",{ref:B,type:"file",multiple:!0,className:"hidden",onChange:R}),(0,t.jsxs)(y.Tooltip,{children:[(0,t.jsx)(y.TooltipTrigger,{render:(0,t.jsx)(o.Button,{variant:"ghost",size:"icon-sm",disabled:M,onMouseDown:e=>e.preventDefault(),onClick:()=>B.current?.click(),className:"text-muted-foreground/70"}),children:M?(0,t.jsx)(V.Loader2,{className:"size-3.5 animate-spin"}):(0,t.jsx)(K.Paperclip,{className:"size-3.5"})}),(0,t.jsx)(y.TooltipContent,{children:"Attach file"})]})]})]}),C.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5 px-4 py-2 border-b border-border/30",children:C.map(e=>{var s;return(0,t.jsxs)("div",{className:"flex items-center gap-1.5 rounded-md bg-muted px-2 py-1 text-xs",children:[(0,t.jsx)(W.File,{className:"size-3 text-muted-foreground shrink-0"}),(0,t.jsx)("span",{className:"truncate max-w-37.5",children:e.filename}),(0,t.jsx)("span",{className:"text-muted-foreground shrink-0",children:(s=e.size)<1024?`${s} B`:s<1048576?`${(s/1024).toFixed(1)} KB`:`${(s/1048576).toFixed(1)} MB`}),(0,t.jsx)("button",{type:"button",onClick:()=>{var t;return t=e.key,void S(e=>e.filter(e=>e.key!==t))},className:"text-muted-foreground hover:text-foreground ml-0.5 cursor-pointer",children:(0,t.jsx)(q.X,{className:"size-3"})})]},e.key)})}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto thin-scrollbar",children:(0,t.jsx)(c.EditorContent,{editor:E})})]})}var X=e.i(728886),J=e.i(967723),Q=e.i(896210),Y=e.i(46464),Z=e.i(947308),ee=e.i(813141);let et=(0,k.default)("forward",[["path",{d:"m15 17 5-5-5-5",key:"nf172w"}],["path",{d:"M4 18v-2a4 4 0 0 1 4-4h12",key:"jmiej9"}]]),es=(0,k.default)("reply",[["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}],["path",{d:"m9 17-5-5 5-5",key:"nvlc11"}]]);var en=e.i(330746),ei=e.i(353155);let ea=(0,k.default)("shield-alert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);var el=e.i(32273),er=e.i(584761),eo=e.i(205189),ed=e.i(996718),ec=e.i(888917),eu=e.i(940931);function em(e){let t=new Date(e),s=Math.floor((new Date().getTime()-t.getTime())/6e4);if(s<1)return"just now";if(s<60)return`${s}m ago`;let n=Math.floor(s/60);if(n<24)return`${n}h ago`;let i=Math.floor(n/24);return i<7?`${i}d ago`:t.toLocaleDateString(void 0,{month:"short",day:"numeric"})}e.s(["default",0,function(){let e=(0,n.useParams)().id,{workspaceId:c}=(0,i.useWorkspace)(),{agents:u,subscribeWs:m}=(0,a.useAgentContext)(),x=u.find(t=>t.id===e),h=(0,ed.useIsMobile)(),[p,f]=(0,s.useState)("inbox"),[g,j]=(0,s.useState)([]),v=(0,s.useMemo)(()=>g.filter(e=>"unread"===e.status).length,[g]),[N,k]=(0,s.useState)(!0),[w,z]=(0,s.useState)(null),[A,T]=(0,s.useState)(null),[C,S]=(0,s.useState)(!1),[M,H]=(0,s.useState)(!1),[B,E]=(0,s.useState)({}),[L,R]=(0,s.useState)([]),[_,$]=(0,s.useState)(null),[D,I]=(0,s.useState)({}),[F,P]=(0,s.useState)(!1),[q,ex]=(0,s.useState)(null),[eh,ep]=(0,s.useState)(!1),[ef,eg]=(0,s.useState)(!1),[ej,eb]=(0,s.useState)([]),[ey,ev]=(0,s.useState)(!1),eN=(0,s.useCallback)(e=>{f(e),j([]),z(null),T(null),H(!1)},[]),ek=x?.email_handle?(0,r.toAlookAddress)(x.email_handle):"",ew=[...ek?[{type:"alook",address:ek}]:[],...ej.map(e=>({type:"custom",address:e.email_address,accountId:e.id}))],[ez,eA]=(0,s.useState)(0),eT=ew[ez]??ew[0]??null,eC=eT?.address??"",eS=eT?.type==="custom"?eT.accountId:void 0,eM=g.find(e=>e.id===w)??null,eH=(0,s.useCallback)(async(t,s)=>{k(!0);try{let n=await (0,l.listEmails)(e,c,t,s);j(n)}catch{O.toast.error("Failed to load emails")}finally{k(!1)}},[e,c]);(0,s.useEffect)(()=>{(0,l.listEmailAccounts)(e,c).then(eb).catch(()=>{})},[e,c]),(0,s.useEffect)(()=>{eH(p,eC)},[p,eC,eH]),(0,s.useEffect)(()=>m(t=>{"email.received"===t.type&&t.agentId===e?((0,eo.trackEmailReceived)({agent_id:e,mailbox_type:eT?.type==="custom"?"imap":"alook"}),eH(p,eC)):"email.sent"===t.type&&t.agentId===e&&eH(p,eC)}),[m,e,p,eC,eH,eT?.type]);let eB=async e=>{H(!1),z(e),T(null),S(!0),R([]),$(null),I({});try{let[t,s]=await Promise.all([(0,l.getEmailBody)(e,c),(0,l.getEmailThread)(e,c).catch(()=>[])]);T(t),R(s);let n=g.find(t=>t.id===e);n&&"unread"===n.status&&(0,l.updateEmailStatus)(e,c,"read").then(()=>{j(t=>t.map(t=>t.id===e?{...t,status:"read"}:t))}).catch(()=>{j(t=>t.map(t=>t.id===e?{...t,status:"unread"}:t))})}catch{T({content:"(body not available)",isHtml:!1})}finally{S(!1)}},eE=async e=>{if(_===e)return void $(null);if($(e),!D[e])try{let t=await (0,l.getEmailBody)(e,c);I(s=>({...s,[e]:t}))}catch{I(t=>({...t,[e]:{content:"(body not available)",isHtml:!1}}))}},eL=async()=>{if(q){ep(!0);try{await (0,l.deleteEmail)(q,c),j(e=>e.filter(e=>e.id!==q)),w===q&&(z(null),T(null)),O.toast.success("Email deleted")}catch{O.toast.error("Failed to delete email")}finally{ep(!1),P(!1),ex(null)}}},eR=async(t,s,n,i,a)=>{try{return await (0,l.sendEmail)(e,t,s,n,c,i.length>0?i:void 0,a,eS),(0,eo.trackEmailComposed)({agent_id:e,has_attachments:i.length>0}),O.toast.success("Email sent"),H(!1),eN("sent"),!0}catch{return O.toast.error("Failed to send email"),!1}},e_=e=>`<br/><br/><div style="border-left: 2px solid #ccc; padding-left: 12px; margin-left: 0; color: #666;"><p><strong>From:</strong> ${e.from_email}<br/><strong>To:</strong> ${e.to_email}<br/><strong>Date:</strong> ${new Date(e.created_at).toLocaleString()}<br/><strong>Subject:</strong> ${e.subject}</p>`+(e.html_body?e.html_body:A?.isHtml?A.content:`<pre>${A?.content??""}</pre>`)+"</div>",e$=e=>({inReplyTo:e.message_id||void 0,references:[e.references,e.message_id].filter(Boolean).join(" ").trim()||void 0}),eD=async e=>{eg(!0);try{await (0,l.trustEmail)(e.id,c),O.toast.success("Email trusted and sent to agent"),j(t=>t.filter(t=>t.id!==e.id)),z(null)}catch{O.toast.error("Failed to trust email")}finally{eg(!1)}},[eI,eF]=(0,s.useState)(!1),eP=async()=>{if(eC)try{await navigator.clipboard.writeText(eC),eF(!0),setTimeout(()=>eF(!1),1500)}catch{O.toast.error("Failed to copy")}},eO=(0,t.jsxs)("div",{className:"flex h-full flex-col",children:[ew.length>0?(0,t.jsx)("div",{className:"px-3 pt-3 pb-1 relative",children:1===ew.length?(0,t.jsxs)(y.Tooltip,{children:[(0,t.jsxs)(y.TooltipTrigger,{render:(0,t.jsx)("button",{type:"button",onClick:eP,className:"group flex items-center gap-1.5 text-left cursor-pointer w-full"}),children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground truncate",children:eC}),eI?(0,t.jsx)(ei.Check,{className:"size-2.5 text-green-500 shrink-0"}):(0,t.jsx)(en.Copy,{className:"size-2.5 text-muted-foreground/0 group-hover:text-muted-foreground/60 shrink-0 transition-colors"})]}),(0,t.jsx)(y.TooltipContent,{children:"Click to copy"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-1 w-full",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>ev(!ey),className:"flex items-center gap-1 text-left cursor-pointer min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground truncate",children:eC}),(0,t.jsx)(er.ChevronDown,{className:"size-2.5 text-muted-foreground shrink-0"})]}),(0,t.jsxs)(y.Tooltip,{children:[(0,t.jsx)(y.TooltipTrigger,{render:(0,t.jsx)("button",{type:"button",onClick:eP,className:"shrink-0 p-0.5"}),children:eI?(0,t.jsx)(ei.Check,{className:"size-2.5 text-green-500"}):(0,t.jsx)(en.Copy,{className:"size-2.5 text-muted-foreground/40 hover:text-muted-foreground/80 transition-colors"})}),(0,t.jsx)(y.TooltipContent,{children:"Copy address"})]})]}),ey&&(0,t.jsx)("div",{className:"absolute left-2 right-2 top-full mt-0.5 z-10 rounded-lg border border-border bg-popover shadow-md py-1",children:ew.map((e,s)=>(0,t.jsxs)("button",{type:"button",onClick:()=>{eA(s),ev(!1)},className:(0,b.cn)("flex items-center gap-2 w-full px-2.5 py-1.5 text-left text-xs transition-colors",s===ez?"bg-accent text-foreground":"text-muted-foreground hover:bg-accent/50"),children:[(0,t.jsx)(Q.Mail,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e.address}),"custom"===e.type&&(0,t.jsx)("span",{className:"text-[9px] text-muted-foreground/60 shrink-0",children:"IMAP"})]},e.address))})]})}):(0,t.jsx)("div",{className:"px-3 pt-3 pb-1",children:(0,t.jsx)("p",{className:"text-xs text-muted-foreground/60",children:"No email configured"})}),(0,t.jsx)("div",{className:"p-2",children:(0,t.jsxs)(y.Tooltip,{children:[(0,t.jsxs)(y.TooltipTrigger,{render:(0,t.jsx)(o.Button,{size:"sm",className:"w-full justify-start text-xs h-8 gap-1.5",onClick:()=>{E({}),H(!0),z(null)},disabled:0===ew.length}),children:[(0,t.jsx)(Z.Plus,{className:"size-3.5"}),"New Email"]}),(0,t.jsx)(y.TooltipContent,{children:0===ew.length?"Configure an email in agent settings to send emails":"Compose new email"})]})}),(0,t.jsxs)("nav",{className:"flex flex-col gap-0.5 px-2",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>eN("inbox"),className:(0,b.cn)("flex items-center gap-2 rounded-lg px-2.5 py-1.5 text-sm transition-colors cursor-pointer","inbox"===p?"bg-accent text-foreground font-medium":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"),children:[(0,t.jsx)(Y.Inbox,{className:"size-4 shrink-0"}),"Inbox","inbox"===p&&v>0&&(0,t.jsx)("span",{className:"ml-auto text-xs bg-blue-500 text-white rounded-full px-1.5 py-0.5 leading-none min-w-5 text-center",children:v})]}),(0,t.jsxs)("button",{type:"button",onClick:()=>eN("sent"),className:(0,b.cn)("flex items-center gap-2 rounded-lg px-2.5 py-1.5 text-sm transition-colors cursor-pointer","sent"===p?"bg-accent text-foreground font-medium":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"),children:[(0,t.jsx)(U.Send,{className:"size-4 shrink-0"}),"Sent"]}),(0,t.jsxs)("button",{type:"button",onClick:()=>eN("untrust"),className:(0,b.cn)("flex items-center gap-2 rounded-lg px-2.5 py-1.5 text-sm transition-colors cursor-pointer","untrust"===p?"bg-accent text-foreground font-medium":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"),children:[(0,t.jsx)(ea,{className:"size-4 shrink-0"}),"Untrust"]})]})]}),eU=(0,t.jsx)("div",{className:(0,b.cn)("h-full thin-scrollbar",g.length>0&&!N?"overflow-y-auto":"overflow-hidden"),children:N?(0,t.jsx)(t.Fragment,{children:Array.from({length:3}).map((e,s)=>(0,t.jsxs)("div",{className:"px-4 py-3 border-b border-border/30",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-1.5",children:[(0,t.jsx)(X.Skeleton,{className:"h-3.5 w-32"}),(0,t.jsx)(X.Skeleton,{className:"h-2.5 w-10"})]}),(0,t.jsx)(X.Skeleton,{className:"h-3.5 w-48 mb-1.5"}),(0,t.jsx)(X.Skeleton,{className:"h-4 w-16 rounded-full"})]},s))}):0===g.length?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center h-full animate-[fade-up_400ms_ease-out_both]",children:[(0,t.jsx)(Q.Mail,{className:"size-8 text-muted-foreground mb-3"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"inbox"===p?"No emails from trusted senders":"sent"===p?"No emails sent yet":"No untrusted emails"})]}):g.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>eB(e.id),className:(0,b.cn)("w-full text-left px-4 py-3 border-b border-border/30 transition-colors duration-150 cursor-pointer",w===e.id?"bg-accent/60":"hover:bg-accent/30"),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-0.5",children:[(0,t.jsx)("p",{className:(0,b.cn)("text-sm truncate","unread"===e.status?"font-semibold":"font-medium text-muted-foreground"),children:"sent"===p?e.to_email:e.from_email}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0",children:["sent"!==p&&(0,t.jsx)("span",{className:(0,b.cn)("text-[10px] rounded-full px-1.5 py-0.5 leading-none font-medium","unread"===e.status?"bg-blue-500/15 text-blue-600 dark:text-blue-400":"bg-muted text-muted-foreground"),children:"unread"===e.status?"unread":"read"}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:em(e.created_at)})]})]}),(0,t.jsx)("p",{className:(0,b.cn)("text-[13px] truncate","unread"===e.status?"text-foreground":"text-muted-foreground"),children:e.subject||"(no subject)"})]},e.id))}),eq=(0,t.jsx)("div",{className:"h-full overflow-auto flex flex-col min-w-0 thin-scrollbar",children:M?(0,t.jsx)(G,{fromAddress:eC,onSend:eR,onDiscard:()=>{H(!1),E({})},initialTo:B.to,initialSubject:B.subject,initialBody:B.body,initialAttachments:B.attachments,inReplyTo:B.inReplyTo,references:B.references},JSON.stringify(B)):eM?(0,t.jsxs)("div",{className:"flex flex-col h-full md:min-w-100 max-w-3xl mx-auto w-full",children:[(0,t.jsxs)("div",{className:"flex items-center gap-0.5 border-b border-border/40 px-4 py-1.5",children:["untrust"===p&&(0,t.jsxs)(y.Tooltip,{children:[(0,t.jsx)(y.TooltipTrigger,{render:(0,t.jsx)(o.Button,{variant:"ghost",size:"icon",className:"size-7 text-muted-foreground/60 hover:text-foreground",disabled:ef,onClick:()=>eD(eM)}),children:ef?(0,t.jsx)(V.Loader2,{className:"size-3.5 animate-spin"}):(0,t.jsx)(el.ShieldCheck,{className:"size-3.5"})}),(0,t.jsx)(y.TooltipContent,{children:"Trust this email"})]}),"sent"!==p&&(0,t.jsxs)(y.Tooltip,{children:[(0,t.jsx)(y.TooltipTrigger,{render:(0,t.jsx)(o.Button,{variant:"ghost",size:"icon",className:"size-7 text-muted-foreground/60 hover:text-foreground",onClick:()=>{let e;return e=eM.subject.startsWith("Re:")?eM.subject:`Re: ${eM.subject}`,void(z(null),E({to:eM.from_email,subject:e,body:e_(eM),...e$(eM)}),H(!0))}}),children:(0,t.jsx)(es,{className:"size-3.5"})}),(0,t.jsx)(y.TooltipContent,{children:"Reply"})]}),(0,t.jsxs)(y.Tooltip,{children:[(0,t.jsx)(y.TooltipTrigger,{render:(0,t.jsx)(o.Button,{variant:"ghost",size:"icon",className:"size-7 text-muted-foreground/60 hover:text-foreground",onClick:()=>{let e;return e=eM.subject.startsWith("Fwd:")?eM.subject:`Fwd: ${eM.subject}`,void(z(null),E({subject:e,body:e_(eM),attachments:eM.attachments??[],...e$(eM)}),H(!0))}}),children:(0,t.jsx)(et,{className:"size-3.5"})}),(0,t.jsx)(y.TooltipContent,{children:"Forward"})]}),(0,t.jsxs)(y.Tooltip,{children:[(0,t.jsx)(y.TooltipTrigger,{render:(0,t.jsx)(o.Button,{variant:"ghost",size:"icon",className:"size-7 text-muted-foreground/60 hover:text-destructive",onClick:()=>{ex(eM.id),P(!0)}}),children:(0,t.jsx)(ee.Trash2,{className:"size-3.5"})}),(0,t.jsx)(y.TooltipContent,{children:"Delete"})]})]}),L.length>0&&(0,t.jsx)("div",{className:"border-b border-border/30",children:L.map(e=>(0,t.jsxs)("div",{className:"border-b border-border/20 last:border-b-0",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>eE(e.id),className:"w-full flex items-center gap-2 px-5 py-2.5 text-left hover:bg-accent/30 transition-colors cursor-pointer",children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:_===e.id?"▾":"▸"}),(0,t.jsx)("span",{className:"text-sm font-medium truncate flex-1",children:e.from_email}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground shrink-0",children:em(e.created_at)})]}),_===e.id&&(0,t.jsxs)("div",{className:"px-5 pb-3",children:[(0,t.jsx)("p",{className:"text-xs text-muted-foreground mb-2",children:e.subject}),D[e.id]?D[e.id].isHtml?(0,t.jsx)(eu.EmailBodyFrame,{html:D[e.id].content,className:"max-w-full text-sm"}):(0,t.jsx)("div",{className:"text-sm whitespace-pre-wrap leading-[1.65] text-foreground",children:D[e.id].content}):(0,t.jsx)(V.Loader2,{className:"size-3 animate-spin text-muted-foreground"})]})]},e.id))}),(0,t.jsxs)("div",{className:"p-5",children:[(0,t.jsx)("h2",{className:"text-lg font-heading font-semibold tracking-tight mb-1",children:eM.subject||"(no subject)"}),(0,t.jsxs)("div",{className:"text-sm space-y-1 mb-5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-muted-foreground w-16 shrink-0",children:"From"}),(0,t.jsx)("span",{children:eM.from_email})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-muted-foreground w-16 shrink-0",children:"To"}),(0,t.jsx)("span",{children:eM.to_email})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-muted-foreground w-16 shrink-0",children:"sent"===p?"Sent":"Received"}),(0,t.jsx)("span",{className:"text-muted-foreground",children:new Date(eM.created_at).toLocaleString()})]})]}),C?(0,t.jsx)("div",{className:"flex items-center justify-center py-8",children:(0,t.jsx)(V.Loader2,{className:"size-4 animate-spin text-muted-foreground"})}):eM.html_body?(0,t.jsx)(eu.EmailBodyFrame,{html:eM.html_body,className:"max-w-full"}):A?.isHtml?(0,t.jsx)(eu.EmailBodyFrame,{html:A.content,className:"max-w-full"}):(0,t.jsx)("div",{className:"text-sm whitespace-pre-wrap leading-[1.65] text-foreground",children:A?.content}),eM.attachments&&eM.attachments.length>0&&(0,t.jsxs)("div",{className:"mt-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 mb-2 text-xs text-muted-foreground",children:[(0,t.jsx)(K.Paperclip,{className:"size-3"}),eM.attachments.length," attachment",eM.attachments.length>1?"s":""]}),(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",children:eM.attachments.map((e,s)=>(0,t.jsxs)("a",{href:`/api/email/${eM.id}/attachment/${s}?workspace_id=${c}`,target:"_blank",rel:"noopener noreferrer",download:e.filename,className:"flex items-center gap-1.5 rounded-md border border-border/50 bg-muted/50 px-2.5 py-1.5 text-xs hover:bg-muted transition-colors cursor-pointer",children:[(0,t.jsx)(W.File,{className:"size-3 text-muted-foreground shrink-0"}),(0,t.jsx)("span",{className:"truncate max-w-45",children:e.filename}),(0,t.jsx)("span",{className:"text-muted-foreground shrink-0",children:e.size<1024?`${e.size} B`:e.size<1048576?`${(e.size/1024).toFixed(1)} KB`:`${(e.size/1048576).toFixed(1)} MB`})]},e.key))})]})]})]}):(0,t.jsx)("div",{className:"flex items-center justify-center h-full text-sm text-muted-foreground",children:"Select an email to view"})}),eV=M?(0,t.jsxs)("div",{className:"flex flex-col h-full",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 border-b border-border/50 px-3 py-2",children:[(0,t.jsx)(o.Button,{variant:"ghost",size:"icon-sm",onClick:()=>{H(!1),E({})},children:(0,t.jsx)(J.ArrowLeft,{className:"size-4"})}),(0,t.jsx)("span",{className:"text-sm font-medium",children:"New Email"})]}),(0,t.jsx)("div",{className:"flex-1 min-h-0 overflow-auto",children:eq})]}):w&&eM?(0,t.jsxs)("div",{className:"flex flex-col h-full",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 border-b border-border/50 px-3 py-2",children:[(0,t.jsx)(o.Button,{variant:"ghost",size:"icon-sm",onClick:()=>{z(null),T(null)},children:(0,t.jsx)(J.ArrowLeft,{className:"size-4"})}),(0,t.jsx)("span",{className:"text-sm font-medium truncate",children:eM.subject||"(no subject)"})]}),(0,t.jsx)("div",{className:"flex-1 min-h-0 overflow-auto",children:eq})]}):(0,t.jsxs)("div",{className:"flex flex-col h-full",children:[ew.length>1&&(0,t.jsxs)("div",{className:"relative px-3 pt-2 pb-1 border-b border-border/30",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>ev(!ey),className:"flex items-center gap-1 text-left cursor-pointer min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground truncate",children:eC}),(0,t.jsx)(er.ChevronDown,{className:"size-2.5 text-muted-foreground shrink-0"})]}),(0,t.jsxs)(y.Tooltip,{children:[(0,t.jsx)(y.TooltipTrigger,{render:(0,t.jsx)("button",{type:"button",onClick:eP,className:"shrink-0 p-0.5"}),children:eI?(0,t.jsx)(ei.Check,{className:"size-2.5 text-green-500"}):(0,t.jsx)(en.Copy,{className:"size-2.5 text-muted-foreground/40 hover:text-muted-foreground/80 transition-colors"})}),(0,t.jsx)(y.TooltipContent,{children:"Copy address"})]})]}),ey&&(0,t.jsx)("div",{className:"absolute left-2 right-2 top-full mt-0.5 z-10 rounded-lg border border-border bg-popover shadow-md py-1",children:ew.map((e,s)=>(0,t.jsxs)("button",{type:"button",onClick:()=>{eA(s),ev(!1)},className:(0,b.cn)("flex items-center gap-2 w-full px-2.5 py-1.5 text-left text-xs transition-colors",s===ez?"bg-accent text-foreground":"text-muted-foreground hover:bg-accent/50"),children:[(0,t.jsx)(Q.Mail,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e.address}),"custom"===e.type&&(0,t.jsx)("span",{className:"text-[9px] text-muted-foreground/60 shrink-0",children:"IMAP"})]},e.address))})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1 border-b border-border/50 px-3 py-2",children:[(0,t.jsx)("div",{className:"flex items-center gap-0.5 flex-1 min-w-0",children:[{id:"inbox",label:"Inbox"},{id:"sent",label:"Sent"},{id:"untrust",label:"Untrust"}].map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>eN(e.id),className:(0,b.cn)("px-2.5 py-1 rounded-md text-xs font-medium transition-colors",p===e.id?"bg-accent text-foreground":"text-muted-foreground hover:text-foreground"),children:[e.label,"inbox"===e.id&&"inbox"===p&&v>0&&(0,t.jsx)("span",{className:"ml-0.5 text-[10px] bg-blue-500 text-white rounded-full px-1 leading-none min-w-4 text-center",children:v})]},e.id))}),(0,t.jsx)(o.Button,{size:"icon-sm",variant:"ghost",onClick:()=>{E({}),H(!0),z(null)},disabled:0===ew.length,children:(0,t.jsx)(Z.Plus,{className:"size-4"})})]}),(0,t.jsx)("div",{className:"flex-1 min-h-0 overflow-auto",children:eU})]});return(0,t.jsxs)(t.Fragment,{children:[h?eV:(0,t.jsxs)(ec.ResizablePanelGroup,{orientation:"horizontal",children:[(0,t.jsx)(ec.ResizablePanel,{defaultSize:"15%",minSize:"10%",maxSize:"20%",children:eO}),(0,t.jsx)(ec.ResizableHandle,{withHandle:!0}),(0,t.jsx)(ec.ResizablePanel,{defaultSize:"30%",minSize:"15%",maxSize:"40%",children:eU}),(0,t.jsx)(ec.ResizableHandle,{withHandle:!0}),(0,t.jsx)(ec.ResizablePanel,{defaultSize:"55%",minSize:"25%",children:eq})]}),(0,t.jsx)(d.ConfirmDialog,{open:F,onOpenChange:P,title:"Delete email",description:"This will permanently delete this email.",loading:eh,onConfirm:eL})]})}],129396)}]);
|
package/bundled/web/.open-next/assets/_next/static/chunks/{2yh4j7b0i4eye.js → 3g9-r7m865tot.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,275351,e=>{"use strict";let t,a,n,r,i=(e,t)=>t.some(t=>e instanceof t),s=new WeakMap,o=new WeakMap,l=new WeakMap,c={get(e,t,a){if(e instanceof IDBTransaction){if("done"===t)return s.get(e);if("store"===t)return a.objectStoreNames[1]?void 0:a.objectStore(a.objectStoreNames[0])}return d(e[t])},set:(e,t,a)=>(e[t]=a,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function d(e){if(e instanceof IDBRequest){let t;return t=new Promise((t,a)=>{let n=()=>{e.removeEventListener("success",r),e.removeEventListener("error",i)},r=()=>{t(d(e.result)),n()},i=()=>{a(e.error),n()};e.addEventListener("success",r),e.addEventListener("error",i)}),l.set(t,e),t}if(o.has(e))return o.get(e);let t=function(e){if("function"==typeof e)return(r||(r=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(u(this),t),d(this.request)}:function(...t){return d(e.apply(u(this),t))};return(e instanceof IDBTransaction&&function(e){if(s.has(e))return;let t=new Promise((t,a)=>{let n=()=>{e.removeEventListener("complete",r),e.removeEventListener("error",i),e.removeEventListener("abort",i)},r=()=>{t(),n()},i=()=>{a(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",r),e.addEventListener("error",i),e.addEventListener("abort",i)});s.set(e,t)}(e),i(e,n||(n=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(e,c):e}(e);return t!==e&&(o.set(e,t),l.set(t,e)),t}let u=e=>l.get(e),p=["get","getKey","getAll","getAllKeys","count"],m=["put","add","delete","clear"],g=new Map;function f(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(g.get(t))return g.get(t);let a=t.replace(/FromIndex$/,""),n=t!==a,r=m.includes(a);if(!(a in(n?IDBIndex:IDBObjectStore).prototype)||!(r||p.includes(a)))return;let i=async function(e,...t){let i=this.transaction(e,r?"readwrite":"readonly"),s=i.store;return n&&(s=s.index(t.shift())),(await Promise.all([s[a](...t),r&&i.done]))[0]};return g.set(t,i),i}c={...t=c,get:(e,a,n)=>f(e,a)||t.get(e,a,n),has:(e,a)=>!!f(e,a)||t.has(e,a)};let h=["continue","continuePrimaryKey","advance"],y={},b=new WeakMap,w=new WeakMap,v={get(e,t){if(!h.includes(t))return e[t];let a=y[t];return a||(a=y[t]=function(...e){b.set(this,w.get(this)[t](...e))}),a}};async function*k(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;let a=new Proxy(t,v);for(w.set(a,t),l.set(a,u(t));t;)yield a,t=await (b.get(a)||t.continue()),b.delete(a)}function $(e,t){return t===Symbol.asyncIterator&&i(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&i(e,[IDBIndex,IDBObjectStore])}c={...a=c,get:(e,t,n)=>$(e,t)?k:a.get(e,t,n),has:(e,t)=>$(e,t)||a.has(e,t)};let x=null,S=null;function E(e){return"u"<typeof indexedDB?null:x&&S===e?x:(S=e,x=function(e,{blocked:t,upgrade:a,blocking:n,terminated:r}={}){let i=indexedDB.open(e,4),s=d(i);return a&&i.addEventListener("upgradeneeded",e=>{a(d(i.result),e.oldVersion,e.newVersion,d(i.transaction),e)}),t&&i.addEventListener("blocked",e=>t(e.oldVersion,e.newVersion,e)),s.then(e=>{r&&e.addEventListener("close",()=>r()),n&&e.addEventListener("versionchange",e=>n(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s}(`alook-chat-cache-${e}`,{upgrade(e,t){if(t<1){let t=e.createObjectStore("messages",{keyPath:["conversation_id","id"]});t.createIndex("by-conversation","conversation_id",{unique:!1}),t.createIndex("by-created",["conversation_id","created_at"],{unique:!1}),e.createObjectStore("cache_meta",{keyPath:"conversation_id"})}t<3&&e.createObjectStore("last_open",{keyPath:"key"}).createIndex("by-conversation","conversation_id",{unique:!1}),t<4&&e.createObjectStore("conv_extras",{keyPath:"conversation_id"})}}))}function _(e){return e?E(e):x}async function C(e,t){let a=_(t);if(!a)return null;try{let t=await a,n=await t.getAllFromIndex("messages","by-conversation",e);if(0===n.length)return null;let r=n.filter(e=>!e.id.startsWith("temp-"));r.sort((e,t)=>{let a=e.created_at.localeCompare(t.created_at);return 0!==a?a:e.id.localeCompare(t.id)});let i=await t.get("cache_meta",e);return i&&await t.put("cache_meta",{...i,lastAccessedAt:Date.now()}),r}catch{return null}}async function T(e,t,a,n,r){let i=_(r);if(!i)return null;try{let r=await i,s=await r.get("cache_meta",e);if(!s)return null;let o=IDBKeyRange.bound([e,""],[e,t],!1,!1),l=(await r.getAllFromIndex("messages","by-created",o)).filter(e=>!e.id.startsWith("temp-")&&(e.created_at!==t||!(e.id>=a)));l.sort((e,t)=>{let a=t.created_at.localeCompare(e.created_at);return 0!==a?a:t.id.localeCompare(e.id)});let c=l.slice(0,n);if(c.length<n&&s.hasMore)return null;return await r.put("cache_meta",{...s,lastAccessedAt:Date.now()}),{messages:c.reverse(),hasMore:l.length>n||s.hasMore}}catch{return null}}async function I(e,t,a,n,r){let i=_(n);if(i)try{let n=await i,s=t.filter(e=>!e.id.startsWith("temp-"));if(0===s.length)return;let o=n.transaction(["messages","cache_meta"],"readwrite"),l=o.objectStore("messages"),c=o.objectStore("cache_meta");for(let e of s)await l.put(e);let d=await l.index("by-conversation").getAllKeys(e),u=Date.now(),p=s.reduce((e,t)=>e.created_at>t.created_at?e:t),m=await c.get(e),g=a??m?.hasMore??!0,f=m?.newestMessageId&&m.newestMessageId!==p.id?await (async()=>{let t=await l.get([e,m.newestMessageId]);return t&&t.created_at>p.created_at?t.id:p.id})():p.id,h={conversation_id:e,lastFetchedAt:u,lastAccessedAt:u,messageCount:d.length,newestMessageId:f,hasMore:g,serverMessageCount:r??m?.serverMessageCount??0};await c.put(h),await o.done,L().catch(()=>{})}catch{}}async function M(e,t,a){let n=_(a);if(n&&!t.id.startsWith("temp-"))try{let a=await n,r=await a.get("cache_meta",e);if(!r)return;let i=await a.get("messages",[e,t.id]);await a.put("messages",t),await a.put("cache_meta",{...r,lastAccessedAt:Date.now(),messageCount:i?r.messageCount:r.messageCount+1,newestMessageId:t.id})}catch{}}async function j(e,t){let a=_(t);if(!a)return null;try{let t=await a;return await t.get("cache_meta",e)??null}catch{return null}}function A(e,t){return`${e}::${null==t?"":t}`}async function P(e,t,a){let n=_(a);if(!n)return null;try{let a=await n;return await a.get("last_open",A(e,t))??null}catch{return null}}async function N(e,t,a,n){let r=_(n);if(r)try{let n=await r;await n.put("last_open",{key:A(e,t),conversation_id:a.conversation_id,newestMessageId:a.newestMessageId,serverMessageCount:a.serverMessageCount,updatedAt:Date.now()})}catch{}}async function O(e,t){let a=_(t);if(!a)return null;try{let t=await a;return await t.get("conv_extras",e)??null}catch{return null}}async function D(e,t,a){let n=_(a);if(n)try{let a=await n;await a.put("conv_extras",{conversation_id:e,...t,updatedAt:Date.now()})}catch{}}async function L(e=50){let t=_();if(t)try{let a=await t,n=await a.getAll("cache_meta");if(n.length<=e)return;n.sort((e,t)=>e.lastAccessedAt-t.lastAccessedAt);let r=n.slice(0,n.length-e),i=a.transaction(["messages","cache_meta","last_open","conv_extras"],"readwrite"),s=i.objectStore("messages"),o=i.objectStore("cache_meta"),l=i.objectStore("last_open"),c=i.objectStore("conv_extras");for(let e of r){for(let t of(await s.index("by-conversation").getAllKeys(e.conversation_id)))await s.delete(t);for(let t of(await o.delete(e.conversation_id),await l.index("by-conversation").getAllKeys(e.conversation_id)))await l.delete(t);await c.delete(e.conversation_id)}await i.done}catch{}}async function B(){if("u">typeof indexedDB)try{x&&((await x).close(),x=null),S&&(await R(`alook-chat-cache-${S}`),S=null)}catch{}}async function R(e){return new Promise((t,a)=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>t(),n.onerror=()=>a(n.error),n.onblocked=()=>t()})}e.s(["appendCachedMessage",0,M,"clearAllCache",0,B,"getCacheMeta",0,j,"getCachedMessages",0,C,"getCachedMessagesBefore",0,T,"getConvExtras",0,O,"getLastOpenConversation",0,P,"mergeCachedMessages",0,I,"openCacheDB",0,E,"setConvExtras",0,D,"setLastOpenConversation",0,N],275351)},345262,e=>{"use strict";let t=(0,e.i(419412).default)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);e.s(["ArrowUpRight",0,t],345262)},500324,e=>{"use strict";var t=e.i(653772),a=e.i(511043);let n=(0,a.createContext)(null);e.s(["WorkspaceProvider",0,function({workspaceId:e,slug:r,children:i}){return(0,a.useEffect)(()=>{try{localStorage.setItem("lastWorkspace",r)}catch{}},[r]),(0,t.jsx)(n.Provider,{value:{workspaceId:e,slug:r},children:i})},"useWorkspace",0,function(){let e=(0,a.useContext)(n);if(!e)throw Error("useWorkspace must be used within WorkspaceProvider");return e}])},126942,(e,t,a)=>{t.exports=e.r(871628)},222862,636557,e=>{"use strict";var t=e.i(811374);class a extends Error{status;details;constructor(e,t,a){super(e),this.name="ApiError",this.status=t,this.details=a}get isNetworkError(){return 0===this.status}get isRateLimit(){return 429===this.status}get isUnauthorized(){return 401===this.status}}function n(e,t){return"validation error"===e&&t?.length?function(e){let[t,...a]=e.split(":"),n=a.join(":").trim();if(!n)return e;let r=t.trim(),i=r.trim().replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()),s=n.replace(/^required$/i,"is required"),o=s.toLowerCase().replace(/[_-]+/g," "),l=r.toLowerCase().replace(/[_-]+/g," ");return l&&o.startsWith(`${l} `)&&(s=s.slice(r.length).trimStart()),i?`${i} ${s}`:s}(t[0]):e}async function r(e,t){let r;try{r=await fetch(""+e,{...t,credentials:"include",headers:{"Content-Type":"application/json",...t?.headers}})}catch(e){if(e instanceof TypeError)throw new a("Unable to connect — check your network",0);throw e}if(401===r.status)throw window.location.href="/sign-in",new a("Unauthorized",401);if(!r.ok){let e,t;try{let a=await r.json();e=a.error,t=a.details}catch{}if(429===r.status)throw new a("Please wait a moment before trying again",429);if(r.status>=500)throw new a(n(e,t)||"Something went wrong — please try again",r.status,t);throw new a(n(e,t)||"Something went wrong",r.status,t)}if(204!==r.status)return r.json()}function i(e,t){let a=new URLSearchParams({workspace_id:e,...t});return`?${a.toString()}`}e.s(["ApiError",0,a],636557),parseInt(t.default.env.NEXT_PUBLIC_MOCK_NETWORK_DELAY_MS||"300",10);let s=async(e,t,n,s,o)=>{let l;if(!s||0===s.length)return r(`/api/conversations/${e}/messages${i(n)}`,{method:"POST",body:JSON.stringify({content:t,...o?{metadata:o}:{}})});let c=new FormData;for(let e of(c.append("content",t),o&&c.append("metadata",JSON.stringify(o)),s))c.append("file",e);try{l=await fetch(`/api/conversations/${e}/messages${i(n)}`,{method:"POST",credentials:"include",body:c})}catch(e){if(e instanceof TypeError)throw new a("Unable to connect — check your network",0);throw e}if(401===l.status)throw window.location.href="/sign-in",new a("Unauthorized",401);if(!l.ok){let e,t;try{let a=await l.json();e=a.error,t=a.details}catch{}if(429===l.status)throw new a("Please wait a moment before trying again",429);if(l.status>=500)throw new a(e||"Something went wrong — please try again",l.status,t);throw new a(e||"Something went wrong",l.status,t)}return l.json()},o=async(e,t)=>{let a=new URLSearchParams({workspace_id:t}),n=await fetch(`/api/email/${e}/body?${a}`,{credentials:"include"});if(!n.ok)return{content:"(body not available)",isHtml:!1};let r=n.headers.get("Content-Type")??"";return{content:await n.text(),isHtml:r.includes("text/html")}},l=async(e,t)=>{let n=new FormData;n.append("file",e);let r=await fetch(`/api/email/upload${i(t)}`,{method:"POST",credentials:"include",body:n});if(!r.ok)throw new a(await r.text().catch(()=>"Upload failed"),r.status);return r.json()},c=async(e,t)=>{let n;if(!t.files||0===t.files.length)return r(`/api/issues${i(e)}`,{method:"POST",body:JSON.stringify({agent_id:t.agent_id,title:t.title,description:t.description})});let s=new FormData;for(let e of(t.agent_id&&s.append("agent_id",t.agent_id),s.append("title",t.title),s.append("description",t.description??""),t.files))s.append("file",e);try{n=await fetch(`/api/issues${i(e)}`,{method:"POST",credentials:"include",body:s})}catch(e){if(e instanceof TypeError)throw new a("Unable to connect — check your network",0);throw e}if(401===n.status)throw window.location.href="/sign-in",new a("Unauthorized",401);if(!n.ok){let e,t;try{let a=await n.json();e=a.error,t=a.details}catch{}if(429===n.status)throw new a("Please wait a moment before trying again",429);if(n.status>=500)throw new a(e||"Something went wrong — please try again",n.status,t);throw new a(e||"Something went wrong",n.status,t)}return n.json()},d=async(e,t)=>{let a=new URLSearchParams({workspace_id:t}),n=await fetch(`/api/artifacts/${e}/content?${a}`,{credentials:"include"});return n.ok?n.text():"(content not available)"};e.s(["acceptInvite",0,e=>r(`/api/invite/${e}`,{method:"POST"}),"addWhitelistEmail",0,(e,t,a)=>r(`/api/agents/${e}/whitelist${i(a)}`,{method:"POST",body:JSON.stringify({email:t})}),"approveMeeting",0,(e,t,a)=>r(`/api/agents/${e}/meetings/${t}/approve${i(a)}`,{method:"POST"}),"cancelActiveTask",0,(e,t)=>r(`/api/conversations/${e}/active-task${i(t)}`,{method:"DELETE"}),"chatInit",0,(e,t,a)=>r(`/api/agents/${e}/chat-init${i(t)}`,{method:"POST",body:JSON.stringify({...a?{channel:a}:{}})}),"checkFreshness",0,(e,t)=>{let a={};return e.conversationId&&(a.conversation_id=e.conversationId),e.agentId&&(a.agent_id=e.agentId),e.channel&&(a.channel=e.channel),r(`/api/conversations/check-fresh${i(t,a)}`)},"conversationInit",0,(e,t,a)=>{let n={};return a?.newestMessageId&&(n.newest_message_id=a.newestMessageId),a?.messageCount&&(n.message_count=String(a.messageCount)),r(`/api/conversations/${e}/init${i(t,n)}`)},"createAgent",0,(e,t)=>r(`/api/agents${i(t)}`,{method:"POST",body:JSON.stringify(e)}),"createAgentLink",0,(e,t)=>r(`/api/agent-links${i(t)}`,{method:"POST",body:JSON.stringify(e)}),"createCalendarEvent",0,(e,t)=>r(`/api/calendar${i(t)}`,{method:"POST",body:JSON.stringify(e)}),"createChannelApi",0,(e,t)=>r(`/api/channels${i(e)}`,{method:"POST",body:JSON.stringify({name:t})}),"createConversation",0,(e,t,a)=>r(`/api/conversations${i(t)}`,{method:"POST",body:JSON.stringify({agent_id:e,...a?{channel:a}:{}})}),"createEmailAccount",0,(e,t,a)=>r(`/api/agents/${e}/email-accounts${i(a)}`,{method:"POST",body:JSON.stringify(t)}),"createInvite",0,e=>r(`/api/workspaces/${e}/invites${i(e)}`,{method:"POST"}),"createIssue",0,c,"createMachineToken",0,(e,t)=>r(`/api/machine-tokens${t?i(t):""}`,{method:"POST",body:JSON.stringify({name:e||"default"})}),"createMeeting",0,(e,t,a)=>r(`/api/agents/${e}/meetings${i(t)}`,{method:"POST",body:JSON.stringify(a)}),"createThread",0,(e,t,a,n)=>r(`/api/conversations/${e}/threads${i(n)}`,{method:"POST",body:JSON.stringify({parent_message_id:t,content:a})}),"deleteAgent",0,(e,t)=>r(`/api/agents/${e}${i(t)}`,{method:"DELETE"}),"deleteAgentLink",0,(e,t)=>r(`/api/agent-links/${e}${i(t)}`,{method:"DELETE"}),"deleteCalendarEvent",0,(e,t,a)=>r(`/api/calendar/${e}${i(t)}`,{method:"DELETE",...a&&a.scope?{headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}:{}}),"deleteChannelApi",0,(e,t)=>r(`/api/channels/${e}${i(t)}`,{method:"DELETE"}),"deleteEmail",0,(e,t)=>r(`/api/email/${e}${i(t)}`,{method:"DELETE"}),"deleteEmailAccount",0,(e,t,a)=>r(`/api/agents/${e}/email-accounts/${t}${i(a)}`,{method:"DELETE"}),"deleteIssue",0,(e,t)=>r(`/api/issues/${t}${i(e)}`,{method:"DELETE"}),"deleteMachine",0,(e,t)=>r(`/api/runtimes/machine${i(t,{daemon_id:e})}`,{method:"DELETE"}),"deleteMeeting",0,(e,t,a)=>r(`/api/agents/${e}/meetings/${t}${i(a)}`,{method:"DELETE"}),"deleteWorkspace",0,(e,t)=>r(`/api/workspaces/${e}${i(e)}`,{method:"DELETE",body:JSON.stringify({confirm_name:t})}),"fetchLatestCliVersion",0,()=>r("/api/cli/latest-version"),"fetchModelOptions",0,()=>r("/api/config/model-options"),"flagMessage",0,(e,t)=>r(`/api/flags${i(e)}`,{method:"POST",body:JSON.stringify({messageId:t})}),"getActiveTask",0,(e,t)=>r(`/api/conversations/${e}/active-task${i(t)}`),"getAgentSkills",0,(e,t)=>r(`/api/agents/${e}/skills${i(t)}`),"getArtifactContent",0,d,"getCalendarEvent",0,(e,t)=>r(`/api/calendar/${e}${i(t)}`),"getEmail",0,(e,t)=>r(`/api/email/${e}${i(t)}`),"getEmailBody",0,o,"getEmailThread",0,(e,t)=>r(`/api/email/${e}/thread${i(t)}`),"getFlaggedCount",0,e=>r(`/api/flags/count${i(e)}`),"getInboxCount",0,(e,t)=>{let a={};return t?.types?.length&&(a.types=t.types.join(",")),r(`/api/inbox/count${i(e,a)}`)},"getInviteInfo",0,e=>r(`/api/invite/${e}`),"getIssue",0,(e,t)=>r(`/api/issues/${t}${i(e)}`),"getMachineTokenStatus",0,()=>r("/api/machine-tokens/status"),"getMemberMe",0,e=>r(`/api/members/me${i(e)}`),"getMinCliVersion",0,()=>r("/api/config/min-version"),"getTask",0,(e,t)=>r(`/api/tasks/${e}${i(t)}`),"getTaskMessages",0,(e,t,a)=>r(`/api/tasks/${e}/messages${i(t,a?{since:String(a)}:void 0)}`),"getThreadSummaries",0,(e,t)=>r(`/api/conversations/${e}/threads${i(t)}`),"getTrace",0,(e,t)=>r(`/api/traces/${e}${i(t)}`),"getWorkspaceOverview",0,e=>r(`/api/workspaces/${e}/overview${i(e)}`),"grantAgentAccess",0,(e,t,a)=>r(`/api/agents/${t}/access${i(e)}`,{method:"POST",body:JSON.stringify({user_id:a})}),"listAgentAccess",0,(e,t)=>r(`/api/agents/${t}/access${i(e)}`),"listAgentActiveTaskCounts",0,e=>r(`/api/agents/active-task-counts${i(e)}`),"listAgentActivity",0,(e,t,a)=>{let n={};return a?.limit&&(n.limit=String(a.limit)),a?.before&&(n.before=a.before),a?.beforeId&&(n.before_id=a.beforeId),a?.status&&(n.status=a.status),a?.type&&(n.type=a.type),r(`/api/agents/${e}/activity${i(t,n)}`)},"listAgentLinks",0,e=>r(`/api/agent-links${i(e)}`),"listAgentPins",0,e=>r(`/api/agents/pins${i(e)}`),"listAgents",0,e=>r(`/api/agents${i(e)}`),"listArtifacts",0,(e,t)=>r(`/api/artifacts${i(t,{conversation_id:e})}`),"listCalendarEvents",0,(e,t)=>{let a={};return t?.agentId&&(a.agentId=t.agentId),t?.from&&(a.from=t.from),t?.to&&(a.to=t.to),r(`/api/calendar${i(e,a)}`)},"listChannels",0,e=>r(`/api/channels${i(e)}`),"listEmailAccounts",0,(e,t)=>r(`/api/agents/${e}/email-accounts${i(t)}`),"listEmails",0,(e,t,a,n)=>r(`/api/email${i(t,{agentId:e,...a?{folder:a}:{},...n?{address:n}:{}})}`),"listFlaggedItems",0,(e,t)=>{let a={};return t?.limit&&(a.limit=String(t.limit)),t?.before&&(a.before=t.before),r(`/api/flags${i(e,a)}`)},"listFlaggedMessageIds",0,(e,t)=>r(`/api/flags${i(e,{conversation_id:t,ids_only:"true"})}`),"listInboxItems",0,(e,t)=>{let a={};return t?.limit&&(a.limit=String(t.limit)),t?.before&&(a.before=t.before),t?.types?.length&&(a.types=t.types.join(",")),r(`/api/inbox${i(e,a)}`)},"listInvites",0,e=>r(`/api/workspaces/${e}/invites${i(e)}`),"listIssues",0,(e,t)=>{let a={};return t?.agentId&&(a.agentId=t.agentId),t?.status&&(a.status=t.status),t?.terminal!==void 0&&(a.terminal=String(t.terminal)),r(`/api/issues${i(e,a)}`)},"listMeetings",0,(e,t)=>r(`/api/agents/${e}/meetings${i(t)}`),"listMembers",0,e=>r(`/api/workspaces/${e}/members${i(e)}`),"listMessages",0,(e,t,a)=>{let n={};return a?.limit&&(n.limit=String(a.limit)),a?.before&&(n.before=a.before),a?.beforeId&&(n.before_id=a.beforeId),r(`/api/conversations/${e}/messages${i(t,n)}`)},"listMessagesAroundTask",0,(e,t,a)=>r(`/api/conversations/${e}/messages${i(t,{around_task:a})}`),"listPreviousConversations",0,(e,t,a)=>{let n={exclude:a.exclude,before:a.before};return a.channel&&(n.channel=a.channel),a.limit&&(n.limit=String(a.limit)),r(`/api/agents/${e}/conversations${i(t,n)}`)},"listRuntimes",0,e=>r(`/api/runtimes${i(e)}`),"listTraces",0,(e,t)=>{let a={};return t?.limit&&(a.limit=String(t.limit)),t?.before&&(a.before=t.before),t?.status&&(a.status=t.status),t?.multiAgent&&(a.multiAgent="true"),t?.agentId&&(a.agentId=t.agentId),t?.channel&&(a.channel=t.channel),r(`/api/traces${i(e,a)}`)},"listWhitelist",0,(e,t)=>r(`/api/agents/${e}/whitelist${i(t)}`),"listWorkspaceActiveTasks",0,e=>r(`/api/agents/active-tasks${i(e)}`),"listWorkspaces",0,()=>r("/api/workspaces"),"markAllInboxRead",0,e=>r(`/api/inbox/read-all${i(e)}`,{method:"POST"}),"markInboxRead",0,(e,t)=>r(`/api/inbox/read${i(t)}`,{method:"POST",body:JSON.stringify({conversationId:e})}),"pinAgent",0,(e,t)=>r(`/api/agents/${t}/pin${i(e)}`,{method:"POST"}),"removeMember",0,(e,t)=>r(`/api/workspaces/${e}/members/${t}${i(e)}`,{method:"DELETE"}),"removeWhitelistEmail",0,(e,t,a)=>r(`/api/agents/${e}/whitelist/${t}${i(a)}`,{method:"DELETE"}),"renameChannelApi",0,(e,t,a)=>r(`/api/channels/${e}${i(t)}`,{method:"PATCH",body:JSON.stringify({name:a})}),"reorderAgentPins",0,(e,t)=>r(`/api/agents/pins/reorder${i(e)}`,{method:"PUT",body:JSON.stringify({ordered_agent_ids:t})}),"reorderChannelsApi",0,(e,t)=>r(`/api/channels/reorder${i(e)}`,{method:"PUT",body:JSON.stringify({ordered_channel_ids:t})}),"reorderUnpinnedAgents",0,(e,t)=>r(`/api/agents/sidebar/reorder${i(e)}`,{method:"PUT",body:JSON.stringify({ordered_agent_ids:t})}),"requestWorkspaceBrowse",0,(e,t,a,n)=>r(`/api/agents/${e}/workspace/browse${i(t)}`,{method:"POST",body:JSON.stringify({request_type:a,path:n})}),"retryTask",0,(e,t)=>r(`/api/tasks/${e}/retry${i(t)}`,{method:"POST"}),"revokeAgentAccess",0,(e,t,a,n=!1)=>r(`/api/agents/${t}/access/${a}${i(e)}${n?"&remove_whitelist=true":""}`,{method:"DELETE"}),"revokeInvite",0,(e,t)=>r(`/api/workspaces/${e}/invites/${t}${i(e)}`,{method:"DELETE"}),"sendEmail",0,(e,t,a,n,s,o,l,c)=>r(`/api/email/send${i(s)}`,{method:"POST",body:JSON.stringify({agentId:e,to:t,subject:a,htmlBody:n,attachments:o,...l,customAccountId:c})}),"sendMessage",0,s,"stopMeeting",0,(e,t,a)=>r(`/api/agents/${e}/meetings/${t}/stop${i(a)}`,{method:"POST"}),"syncEmailAccount",0,(e,t,a)=>r(`/api/agents/${e}/email-accounts/${t}/sync${i(a)}`,{method:"POST"}),"triggerRuntimeRescan",0,(e,t)=>r(`/api/runtimes/${e}/rescan${i(t)}`,{method:"POST"}),"triggerRuntimeUpdate",0,(e,t)=>r(`/api/runtimes/${e}/update${i(t)}`,{method:"POST"}),"unflagMessage",0,(e,t)=>r(`/api/flags/${t}${i(e)}`,{method:"DELETE"}),"unpinAgent",0,(e,t)=>r(`/api/agents/${t}/pin${i(e)}`,{method:"DELETE"}),"updateAgent",0,(e,t,a)=>r(`/api/agents/${e}${i(a)}`,{method:"PATCH",body:JSON.stringify(t)}),"updateAgentLink",0,(e,t,a)=>r(`/api/agent-links/${e}${i(a)}`,{method:"PATCH",body:JSON.stringify(t)}),"updateCalendarEvent",0,(e,t,a)=>r(`/api/calendar/${e}${i(a)}`,{method:"PATCH",body:JSON.stringify(t)}),"updateEmailStatus",0,(e,t,a)=>r(`/api/email/${e}${i(t)}`,{method:"PATCH",body:JSON.stringify({status:a})}),"updateIssue",0,(e,t,a)=>r(`/api/issues/${t}${i(e)}`,{method:"PATCH",body:JSON.stringify(a)}),"updateMemberMe",0,(e,t)=>r(`/api/members/me${i(e)}`,{method:"PATCH",body:JSON.stringify({global_instruction:t})}),"updateWorkspace",0,(e,t)=>r(`/api/workspaces/${e}${i(e)}`,{method:"PATCH",body:JSON.stringify(t)}),"uploadEmailAttachment",0,l],222862)},728886,e=>{"use strict";var t=e.i(653772),a=e.i(613349);e.s(["Skeleton",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"skeleton",className:(0,a.cn)("animate-pulse rounded-md bg-muted",e),...n})}])},896210,e=>{"use strict";let t=(0,e.i(419412).default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["Mail",0,t],896210)},330746,e=>{"use strict";let t=(0,e.i(419412).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",0,t],330746)},966662,940931,e=>{"use strict";let t=(0,e.i(419412).default)("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]]);e.s(["Paperclip",0,t],966662);var a=e.i(653772),n=e.i(511043),r=e.i(111114);let i=`
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,275351,e=>{"use strict";let t,a,n,r,i=(e,t)=>t.some(t=>e instanceof t),s=new WeakMap,o=new WeakMap,l=new WeakMap,c={get(e,t,a){if(e instanceof IDBTransaction){if("done"===t)return s.get(e);if("store"===t)return a.objectStoreNames[1]?void 0:a.objectStore(a.objectStoreNames[0])}return d(e[t])},set:(e,t,a)=>(e[t]=a,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function d(e){if(e instanceof IDBRequest){let t;return t=new Promise((t,a)=>{let n=()=>{e.removeEventListener("success",r),e.removeEventListener("error",i)},r=()=>{t(d(e.result)),n()},i=()=>{a(e.error),n()};e.addEventListener("success",r),e.addEventListener("error",i)}),l.set(t,e),t}if(o.has(e))return o.get(e);let t=function(e){if("function"==typeof e)return(r||(r=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(u(this),t),d(this.request)}:function(...t){return d(e.apply(u(this),t))};return(e instanceof IDBTransaction&&function(e){if(s.has(e))return;let t=new Promise((t,a)=>{let n=()=>{e.removeEventListener("complete",r),e.removeEventListener("error",i),e.removeEventListener("abort",i)},r=()=>{t(),n()},i=()=>{a(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",r),e.addEventListener("error",i),e.addEventListener("abort",i)});s.set(e,t)}(e),i(e,n||(n=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(e,c):e}(e);return t!==e&&(o.set(e,t),l.set(t,e)),t}let u=e=>l.get(e),p=["get","getKey","getAll","getAllKeys","count"],m=["put","add","delete","clear"],g=new Map;function f(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(g.get(t))return g.get(t);let a=t.replace(/FromIndex$/,""),n=t!==a,r=m.includes(a);if(!(a in(n?IDBIndex:IDBObjectStore).prototype)||!(r||p.includes(a)))return;let i=async function(e,...t){let i=this.transaction(e,r?"readwrite":"readonly"),s=i.store;return n&&(s=s.index(t.shift())),(await Promise.all([s[a](...t),r&&i.done]))[0]};return g.set(t,i),i}c={...t=c,get:(e,a,n)=>f(e,a)||t.get(e,a,n),has:(e,a)=>!!f(e,a)||t.has(e,a)};let h=["continue","continuePrimaryKey","advance"],y={},b=new WeakMap,w=new WeakMap,v={get(e,t){if(!h.includes(t))return e[t];let a=y[t];return a||(a=y[t]=function(...e){b.set(this,w.get(this)[t](...e))}),a}};async function*$(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;let a=new Proxy(t,v);for(w.set(a,t),l.set(a,u(t));t;)yield a,t=await (b.get(a)||t.continue()),b.delete(a)}function k(e,t){return t===Symbol.asyncIterator&&i(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&i(e,[IDBIndex,IDBObjectStore])}c={...a=c,get:(e,t,n)=>k(e,t)?$:a.get(e,t,n),has:(e,t)=>k(e,t)||a.has(e,t)};let x=null,S=null;function E(e){return"u"<typeof indexedDB?null:x&&S===e?x:(S=e,x=function(e,{blocked:t,upgrade:a,blocking:n,terminated:r}={}){let i=indexedDB.open(e,4),s=d(i);return a&&i.addEventListener("upgradeneeded",e=>{a(d(i.result),e.oldVersion,e.newVersion,d(i.transaction),e)}),t&&i.addEventListener("blocked",e=>t(e.oldVersion,e.newVersion,e)),s.then(e=>{r&&e.addEventListener("close",()=>r()),n&&e.addEventListener("versionchange",e=>n(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s}(`alook-chat-cache-${e}`,{upgrade(e,t){if(t<1){let t=e.createObjectStore("messages",{keyPath:["conversation_id","id"]});t.createIndex("by-conversation","conversation_id",{unique:!1}),t.createIndex("by-created",["conversation_id","created_at"],{unique:!1}),e.createObjectStore("cache_meta",{keyPath:"conversation_id"})}t<3&&e.createObjectStore("last_open",{keyPath:"key"}).createIndex("by-conversation","conversation_id",{unique:!1}),t<4&&e.createObjectStore("conv_extras",{keyPath:"conversation_id"})}}))}function _(e){return e?E(e):x}async function C(e,t){let a=_(t);if(!a)return null;try{let t=await a,n=await t.getAllFromIndex("messages","by-conversation",e);if(0===n.length)return null;let r=n.filter(e=>!e.id.startsWith("temp-"));r.sort((e,t)=>{let a=e.created_at.localeCompare(t.created_at);return 0!==a?a:e.id.localeCompare(t.id)});let i=await t.get("cache_meta",e);return i&&await t.put("cache_meta",{...i,lastAccessedAt:Date.now()}),r}catch{return null}}async function T(e,t,a,n,r){let i=_(r);if(!i)return null;try{let r=await i,s=await r.get("cache_meta",e);if(!s)return null;let o=IDBKeyRange.bound([e,""],[e,t],!1,!1),l=(await r.getAllFromIndex("messages","by-created",o)).filter(e=>!e.id.startsWith("temp-")&&(e.created_at!==t||!(e.id>=a)));l.sort((e,t)=>{let a=t.created_at.localeCompare(e.created_at);return 0!==a?a:t.id.localeCompare(e.id)});let c=l.slice(0,n);if(c.length<n&&s.hasMore)return null;return await r.put("cache_meta",{...s,lastAccessedAt:Date.now()}),{messages:c.reverse(),hasMore:l.length>n||s.hasMore}}catch{return null}}async function I(e,t,a,n,r){let i=_(n);if(i)try{let n=await i,s=t.filter(e=>!e.id.startsWith("temp-"));if(0===s.length)return;let o=n.transaction(["messages","cache_meta"],"readwrite"),l=o.objectStore("messages"),c=o.objectStore("cache_meta");for(let e of s)await l.put(e);let d=await l.index("by-conversation").getAllKeys(e),u=Date.now(),p=s.reduce((e,t)=>e.created_at>t.created_at?e:t),m=await c.get(e),g=a??m?.hasMore??!0,f=m?.newestMessageId&&m.newestMessageId!==p.id?await (async()=>{let t=await l.get([e,m.newestMessageId]);return t&&t.created_at>p.created_at?t.id:p.id})():p.id,h={conversation_id:e,lastFetchedAt:u,lastAccessedAt:u,messageCount:d.length,newestMessageId:f,hasMore:g,serverMessageCount:r??m?.serverMessageCount??0};await c.put(h),await o.done,L().catch(()=>{})}catch{}}async function M(e,t,a){let n=_(a);if(n&&!t.id.startsWith("temp-"))try{let a=await n,r=await a.get("cache_meta",e);if(!r)return;let i=await a.get("messages",[e,t.id]);await a.put("messages",t),await a.put("cache_meta",{...r,lastAccessedAt:Date.now(),messageCount:i?r.messageCount:r.messageCount+1,newestMessageId:t.id})}catch{}}async function j(e,t){let a=_(t);if(!a)return null;try{let t=await a;return await t.get("cache_meta",e)??null}catch{return null}}function P(e,t){return`${e}::${null==t?"":t}`}async function A(e,t,a){let n=_(a);if(!n)return null;try{let a=await n;return await a.get("last_open",P(e,t))??null}catch{return null}}async function N(e,t,a,n){let r=_(n);if(r)try{let n=await r;await n.put("last_open",{key:P(e,t),conversation_id:a.conversation_id,newestMessageId:a.newestMessageId,serverMessageCount:a.serverMessageCount,updatedAt:Date.now()})}catch{}}async function O(e,t){let a=_(t);if(!a)return null;try{let t=await a;return await t.get("conv_extras",e)??null}catch{return null}}async function D(e,t,a){let n=_(a);if(n)try{let a=await n;await a.put("conv_extras",{conversation_id:e,...t,updatedAt:Date.now()})}catch{}}async function L(e=50){let t=_();if(t)try{let a=await t,n=await a.getAll("cache_meta");if(n.length<=e)return;n.sort((e,t)=>e.lastAccessedAt-t.lastAccessedAt);let r=n.slice(0,n.length-e),i=a.transaction(["messages","cache_meta","last_open","conv_extras"],"readwrite"),s=i.objectStore("messages"),o=i.objectStore("cache_meta"),l=i.objectStore("last_open"),c=i.objectStore("conv_extras");for(let e of r){for(let t of(await s.index("by-conversation").getAllKeys(e.conversation_id)))await s.delete(t);for(let t of(await o.delete(e.conversation_id),await l.index("by-conversation").getAllKeys(e.conversation_id)))await l.delete(t);await c.delete(e.conversation_id)}await i.done}catch{}}async function B(){if("u">typeof indexedDB)try{x&&((await x).close(),x=null),S&&(await R(`alook-chat-cache-${S}`),S=null)}catch{}}async function R(e){return new Promise((t,a)=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>t(),n.onerror=()=>a(n.error),n.onblocked=()=>t()})}e.s(["appendCachedMessage",0,M,"clearAllCache",0,B,"getCacheMeta",0,j,"getCachedMessages",0,C,"getCachedMessagesBefore",0,T,"getConvExtras",0,O,"getLastOpenConversation",0,A,"mergeCachedMessages",0,I,"openCacheDB",0,E,"setConvExtras",0,D,"setLastOpenConversation",0,N],275351)},345262,e=>{"use strict";let t=(0,e.i(419412).default)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);e.s(["ArrowUpRight",0,t],345262)},500324,e=>{"use strict";var t=e.i(653772),a=e.i(511043);let n=(0,a.createContext)(null);e.s(["WorkspaceProvider",0,function({workspaceId:e,slug:r,children:i}){return(0,a.useEffect)(()=>{try{localStorage.setItem("lastWorkspace",r)}catch{}},[r]),(0,t.jsx)(n.Provider,{value:{workspaceId:e,slug:r},children:i})},"useWorkspace",0,function(){let e=(0,a.useContext)(n);if(!e)throw Error("useWorkspace must be used within WorkspaceProvider");return e}])},126942,(e,t,a)=>{t.exports=e.r(871628)},222862,636557,e=>{"use strict";var t=e.i(811374);class a extends Error{status;details;constructor(e,t,a){super(e),this.name="ApiError",this.status=t,this.details=a}get isNetworkError(){return 0===this.status}get isRateLimit(){return 429===this.status}get isUnauthorized(){return 401===this.status}}function n(e,t){return"validation error"===e&&t?.length?function(e){let[t,...a]=e.split(":"),n=a.join(":").trim();if(!n)return e;let r=t.trim(),i=r.trim().replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()),s=n.replace(/^required$/i,"is required"),o=s.toLowerCase().replace(/[_-]+/g," "),l=r.toLowerCase().replace(/[_-]+/g," ");return l&&o.startsWith(`${l} `)&&(s=s.slice(r.length).trimStart()),i?`${i} ${s}`:s}(t[0]):e}async function r(e,t){let r;try{r=await fetch(""+e,{...t,credentials:"include",headers:{"Content-Type":"application/json",...t?.headers}})}catch(e){if(e instanceof TypeError)throw new a("Unable to connect — check your network",0);throw e}if(401===r.status)throw window.location.href="/sign-in",new a("Unauthorized",401);if(!r.ok){let e,t;try{let a=await r.json();e=a.error,t=a.details}catch{}if(429===r.status)throw new a("Please wait a moment before trying again",429);if(r.status>=500)throw new a(n(e,t)||"Something went wrong — please try again",r.status,t);throw new a(n(e,t)||"Something went wrong",r.status,t)}if(204!==r.status)return r.json()}function i(e,t){let a=new URLSearchParams({workspace_id:e,...t});return`?${a.toString()}`}e.s(["ApiError",0,a],636557),parseInt(t.default.env.NEXT_PUBLIC_MOCK_NETWORK_DELAY_MS||"300",10);let s=async(e,t,n,s,o)=>{let l;if(!s||0===s.length)return r(`/api/conversations/${e}/messages${i(n)}`,{method:"POST",body:JSON.stringify({content:t,...o?{metadata:o}:{}})});let c=new FormData;for(let e of(c.append("content",t),o&&c.append("metadata",JSON.stringify(o)),s))c.append("file",e);try{l=await fetch(`/api/conversations/${e}/messages${i(n)}`,{method:"POST",credentials:"include",body:c})}catch(e){if(e instanceof TypeError)throw new a("Unable to connect — check your network",0);throw e}if(401===l.status)throw window.location.href="/sign-in",new a("Unauthorized",401);if(!l.ok){let e,t;try{let a=await l.json();e=a.error,t=a.details}catch{}if(429===l.status)throw new a("Please wait a moment before trying again",429);if(l.status>=500)throw new a(e||"Something went wrong — please try again",l.status,t);throw new a(e||"Something went wrong",l.status,t)}return l.json()},o=async(e,t)=>{let a=new URLSearchParams({workspace_id:t}),n=await fetch(`/api/email/${e}/body?${a}`,{credentials:"include"});if(!n.ok)return{content:"(body not available)",isHtml:!1};let r=n.headers.get("Content-Type")??"";return{content:await n.text(),isHtml:r.includes("text/html")}},l=async(e,t)=>{let n=new FormData;n.append("file",e);let r=await fetch(`/api/email/upload${i(t)}`,{method:"POST",credentials:"include",body:n});if(!r.ok)throw new a(await r.text().catch(()=>"Upload failed"),r.status);return r.json()},c=async(e,t)=>{let n;if(!t.files||0===t.files.length)return r(`/api/issues${i(e)}`,{method:"POST",body:JSON.stringify({agent_id:t.agent_id,title:t.title,description:t.description})});let s=new FormData;for(let e of(t.agent_id&&s.append("agent_id",t.agent_id),s.append("title",t.title),s.append("description",t.description??""),t.files))s.append("file",e);try{n=await fetch(`/api/issues${i(e)}`,{method:"POST",credentials:"include",body:s})}catch(e){if(e instanceof TypeError)throw new a("Unable to connect — check your network",0);throw e}if(401===n.status)throw window.location.href="/sign-in",new a("Unauthorized",401);if(!n.ok){let e,t;try{let a=await n.json();e=a.error,t=a.details}catch{}if(429===n.status)throw new a("Please wait a moment before trying again",429);if(n.status>=500)throw new a(e||"Something went wrong — please try again",n.status,t);throw new a(e||"Something went wrong",n.status,t)}return n.json()},d=async(e,t)=>{let a=new URLSearchParams({workspace_id:t}),n=await fetch(`/api/artifacts/${e}/content?${a}`,{credentials:"include"});return n.ok?n.text():"(content not available)"};e.s(["acceptInvite",0,e=>r(`/api/invite/${e}`,{method:"POST"}),"addWhitelistEmail",0,(e,t,a)=>r(`/api/agents/${e}/whitelist${i(a)}`,{method:"POST",body:JSON.stringify({email:t})}),"approveMeeting",0,(e,t,a)=>r(`/api/agents/${e}/meetings/${t}/approve${i(a)}`,{method:"POST"}),"cancelActiveTask",0,(e,t)=>r(`/api/conversations/${e}/active-task${i(t)}`,{method:"DELETE"}),"chatInit",0,(e,t,a)=>r(`/api/agents/${e}/chat-init${i(t)}`,{method:"POST",body:JSON.stringify({...a?{channel:a}:{}})}),"checkFreshness",0,(e,t)=>{let a={};return e.conversationId&&(a.conversation_id=e.conversationId),e.agentId&&(a.agent_id=e.agentId),e.channel&&(a.channel=e.channel),r(`/api/conversations/check-fresh${i(t,a)}`)},"conversationInit",0,(e,t,a)=>{let n={};return a?.newestMessageId&&(n.newest_message_id=a.newestMessageId),a?.messageCount&&(n.message_count=String(a.messageCount)),r(`/api/conversations/${e}/init${i(t,n)}`)},"createAgent",0,(e,t)=>r(`/api/agents${i(t)}`,{method:"POST",body:JSON.stringify(e)}),"createAgentLink",0,(e,t)=>r(`/api/agent-links${i(t)}`,{method:"POST",body:JSON.stringify(e)}),"createCalendarEvent",0,(e,t)=>r(`/api/calendar${i(t)}`,{method:"POST",body:JSON.stringify(e)}),"createChannelApi",0,(e,t)=>r(`/api/channels${i(e)}`,{method:"POST",body:JSON.stringify({name:t})}),"createConversation",0,(e,t,a)=>r(`/api/conversations${i(t)}`,{method:"POST",body:JSON.stringify({agent_id:e,...a?{channel:a}:{}})}),"createEmailAccount",0,(e,t,a)=>r(`/api/agents/${e}/email-accounts${i(a)}`,{method:"POST",body:JSON.stringify(t)}),"createInvite",0,e=>r(`/api/workspaces/${e}/invites${i(e)}`,{method:"POST"}),"createIssue",0,c,"createMachineToken",0,(e,t)=>r(`/api/machine-tokens${t?i(t):""}`,{method:"POST",body:JSON.stringify({name:e||"default"})}),"createMeeting",0,(e,t,a)=>r(`/api/agents/${e}/meetings${i(t)}`,{method:"POST",body:JSON.stringify(a)}),"createThread",0,(e,t,a,n)=>r(`/api/conversations/${e}/threads${i(n)}`,{method:"POST",body:JSON.stringify({parent_message_id:t,content:a})}),"deleteAgent",0,(e,t)=>r(`/api/agents/${e}${i(t)}`,{method:"DELETE"}),"deleteAgentLink",0,(e,t)=>r(`/api/agent-links/${e}${i(t)}`,{method:"DELETE"}),"deleteCalendarEvent",0,(e,t,a)=>r(`/api/calendar/${e}${i(t)}`,{method:"DELETE",...a&&a.scope?{headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}:{}}),"deleteChannelApi",0,(e,t)=>r(`/api/channels/${e}${i(t)}`,{method:"DELETE"}),"deleteEmail",0,(e,t)=>r(`/api/email/${e}${i(t)}`,{method:"DELETE"}),"deleteEmailAccount",0,(e,t,a)=>r(`/api/agents/${e}/email-accounts/${t}${i(a)}`,{method:"DELETE"}),"deleteIssue",0,(e,t)=>r(`/api/issues/${t}${i(e)}`,{method:"DELETE"}),"deleteMachine",0,(e,t)=>r(`/api/runtimes/machine${i(t,{daemon_id:e})}`,{method:"DELETE"}),"deleteMeeting",0,(e,t,a)=>r(`/api/agents/${e}/meetings/${t}${i(a)}`,{method:"DELETE"}),"deleteWorkspace",0,(e,t)=>r(`/api/workspaces/${e}${i(e)}`,{method:"DELETE",body:JSON.stringify({confirm_name:t})}),"fetchLatestCliVersion",0,()=>r("/api/cli/latest-version"),"fetchModelOptions",0,()=>r("/api/config/model-options"),"flagMessage",0,(e,t)=>r(`/api/flags${i(e)}`,{method:"POST",body:JSON.stringify({messageId:t})}),"getActiveTask",0,(e,t)=>r(`/api/conversations/${e}/active-task${i(t)}`),"getAgentSkills",0,(e,t)=>r(`/api/agents/${e}/skills${i(t)}`),"getArtifactContent",0,d,"getCalendarEvent",0,(e,t)=>r(`/api/calendar/${e}${i(t)}`),"getEmail",0,(e,t)=>r(`/api/email/${e}${i(t)}`),"getEmailBody",0,o,"getEmailThread",0,(e,t)=>r(`/api/email/${e}/thread${i(t)}`),"getFlaggedCount",0,e=>r(`/api/flags/count${i(e)}`),"getInboxCount",0,(e,t)=>{let a={};return t?.types?.length&&(a.types=t.types.join(",")),r(`/api/inbox/count${i(e,a)}`)},"getInviteInfo",0,e=>r(`/api/invite/${e}`),"getIssue",0,(e,t)=>r(`/api/issues/${t}${i(e)}`),"getMachineTokenStatus",0,()=>r("/api/machine-tokens/status"),"getMemberMe",0,e=>r(`/api/members/me${i(e)}`),"getMinCliVersion",0,()=>r("/api/config/min-version"),"getTask",0,(e,t)=>r(`/api/tasks/${e}${i(t)}`),"getTaskMessages",0,(e,t,a)=>r(`/api/tasks/${e}/messages${i(t,a?{since:String(a)}:void 0)}`),"getThreadSummaries",0,(e,t)=>r(`/api/conversations/${e}/threads${i(t)}`),"getTrace",0,(e,t)=>r(`/api/traces/${e}${i(t)}`),"getWorkspaceOverview",0,e=>r(`/api/workspaces/${e}/overview${i(e)}`),"grantAgentAccess",0,(e,t,a)=>r(`/api/agents/${t}/access${i(e)}`,{method:"POST",body:JSON.stringify({user_id:a})}),"listAgentAccess",0,(e,t)=>r(`/api/agents/${t}/access${i(e)}`),"listAgentActiveTaskCounts",0,e=>r(`/api/agents/active-task-counts${i(e)}`),"listAgentActivity",0,(e,t,a)=>{let n={};return a?.limit&&(n.limit=String(a.limit)),a?.before&&(n.before=a.before),a?.beforeId&&(n.before_id=a.beforeId),a?.status&&(n.status=a.status),a?.type&&(n.type=a.type),r(`/api/agents/${e}/activity${i(t,n)}`)},"listAgentLinks",0,e=>r(`/api/agent-links${i(e)}`),"listAgentPins",0,e=>r(`/api/agents/pins${i(e)}`),"listAgents",0,e=>r(`/api/agents${i(e)}`),"listArtifacts",0,(e,t)=>r(`/api/artifacts${i(t,{conversation_id:e})}`),"listCalendarEvents",0,(e,t)=>{let a={};return t?.agentId&&(a.agentId=t.agentId),t?.from&&(a.from=t.from),t?.to&&(a.to=t.to),r(`/api/calendar${i(e,a)}`)},"listChannels",0,e=>r(`/api/channels${i(e)}`),"listEmailAccounts",0,(e,t)=>r(`/api/agents/${e}/email-accounts${i(t)}`),"listEmails",0,(e,t,a,n)=>r(`/api/email${i(t,{agentId:e,...a?{folder:a}:{},...n?{address:n}:{}})}`),"listFlaggedItems",0,(e,t)=>{let a={};return t?.limit&&(a.limit=String(t.limit)),t?.before&&(a.before=t.before),r(`/api/flags${i(e,a)}`)},"listFlaggedMessageIds",0,(e,t)=>r(`/api/flags${i(e,{conversation_id:t,ids_only:"true"})}`),"listInboxItems",0,(e,t)=>{let a={};return t?.limit&&(a.limit=String(t.limit)),t?.before&&(a.before=t.before),t?.types?.length&&(a.types=t.types.join(",")),r(`/api/inbox${i(e,a)}`)},"listInvites",0,e=>r(`/api/workspaces/${e}/invites${i(e)}`),"listIssues",0,(e,t)=>{let a={};return t?.agentId&&(a.agentId=t.agentId),t?.status&&(a.status=t.status),t?.terminal!==void 0&&(a.terminal=String(t.terminal)),r(`/api/issues${i(e,a)}`)},"listMeetings",0,(e,t)=>r(`/api/agents/${e}/meetings${i(t)}`),"listMembers",0,e=>r(`/api/workspaces/${e}/members${i(e)}`),"listMessages",0,(e,t,a)=>{let n={};return a?.limit&&(n.limit=String(a.limit)),a?.before&&(n.before=a.before),a?.beforeId&&(n.before_id=a.beforeId),r(`/api/conversations/${e}/messages${i(t,n)}`)},"listMessagesAroundTask",0,(e,t,a)=>r(`/api/conversations/${e}/messages${i(t,{around_task:a})}`),"listPreviousConversations",0,(e,t,a)=>{let n={exclude:a.exclude,before:a.before};return a.channel&&(n.channel=a.channel),a.limit&&(n.limit=String(a.limit)),r(`/api/agents/${e}/conversations${i(t,n)}`)},"listRuntimes",0,e=>r(`/api/runtimes${i(e)}`),"listTraces",0,(e,t)=>{let a={};return t?.limit&&(a.limit=String(t.limit)),t?.before&&(a.before=t.before),t?.status&&(a.status=t.status),t?.multiAgent&&(a.multiAgent="true"),t?.agentId&&(a.agentId=t.agentId),t?.channel&&(a.channel=t.channel),r(`/api/traces${i(e,a)}`)},"listWhitelist",0,(e,t)=>r(`/api/agents/${e}/whitelist${i(t)}`),"listWorkspaceActiveTasks",0,e=>r(`/api/agents/active-tasks${i(e)}`),"listWorkspaces",0,()=>r("/api/workspaces"),"markAllInboxRead",0,e=>r(`/api/inbox/read-all${i(e)}`,{method:"POST"}),"markInboxRead",0,(e,t)=>r(`/api/inbox/read${i(t)}`,{method:"POST",body:JSON.stringify({conversationId:e})}),"pinAgent",0,(e,t)=>r(`/api/agents/${t}/pin${i(e)}`,{method:"POST"}),"removeMember",0,(e,t)=>r(`/api/workspaces/${e}/members/${t}${i(e)}`,{method:"DELETE"}),"removeWhitelistEmail",0,(e,t,a)=>r(`/api/agents/${e}/whitelist/${t}${i(a)}`,{method:"DELETE"}),"renameChannelApi",0,(e,t,a)=>r(`/api/channels/${e}${i(t)}`,{method:"PATCH",body:JSON.stringify({name:a})}),"reorderAgentPins",0,(e,t)=>r(`/api/agents/pins/reorder${i(e)}`,{method:"PUT",body:JSON.stringify({ordered_agent_ids:t})}),"reorderChannelsApi",0,(e,t)=>r(`/api/channels/reorder${i(e)}`,{method:"PUT",body:JSON.stringify({ordered_channel_ids:t})}),"reorderUnpinnedAgents",0,(e,t)=>r(`/api/agents/sidebar/reorder${i(e)}`,{method:"PUT",body:JSON.stringify({ordered_agent_ids:t})}),"requestWorkspaceBrowse",0,(e,t,a,n)=>r(`/api/agents/${e}/workspace/browse${i(t)}`,{method:"POST",body:JSON.stringify({request_type:a,path:n})}),"retryTask",0,(e,t)=>r(`/api/tasks/${e}/retry${i(t)}`,{method:"POST"}),"revokeAgentAccess",0,(e,t,a,n=!1)=>r(`/api/agents/${t}/access/${a}${i(e)}${n?"&remove_whitelist=true":""}`,{method:"DELETE"}),"revokeInvite",0,(e,t)=>r(`/api/workspaces/${e}/invites/${t}${i(e)}`,{method:"DELETE"}),"sendEmail",0,(e,t,a,n,s,o,l,c)=>r(`/api/email/send${i(s)}`,{method:"POST",body:JSON.stringify({agentId:e,to:t,subject:a,htmlBody:n,attachments:o,...l,customAccountId:c})}),"sendMessage",0,s,"stopMeeting",0,(e,t,a)=>r(`/api/agents/${e}/meetings/${t}/stop${i(a)}`,{method:"POST"}),"syncEmailAccount",0,(e,t,a)=>r(`/api/agents/${e}/email-accounts/${t}/sync${i(a)}`,{method:"POST"}),"triggerRuntimeRescan",0,(e,t)=>r(`/api/runtimes/${e}/rescan${i(t)}`,{method:"POST"}),"triggerRuntimeUpdate",0,(e,t)=>r(`/api/runtimes/${e}/update${i(t)}`,{method:"POST"}),"trustEmail",0,(e,t)=>r(`/api/email/${e}/trust${i(t)}`,{method:"POST"}),"unflagMessage",0,(e,t)=>r(`/api/flags/${t}${i(e)}`,{method:"DELETE"}),"unpinAgent",0,(e,t)=>r(`/api/agents/${t}/pin${i(e)}`,{method:"DELETE"}),"updateAgent",0,(e,t,a)=>r(`/api/agents/${e}${i(a)}`,{method:"PATCH",body:JSON.stringify(t)}),"updateAgentLink",0,(e,t,a)=>r(`/api/agent-links/${e}${i(a)}`,{method:"PATCH",body:JSON.stringify(t)}),"updateCalendarEvent",0,(e,t,a)=>r(`/api/calendar/${e}${i(a)}`,{method:"PATCH",body:JSON.stringify(t)}),"updateEmailStatus",0,(e,t,a)=>r(`/api/email/${e}${i(t)}`,{method:"PATCH",body:JSON.stringify({status:a})}),"updateIssue",0,(e,t,a)=>r(`/api/issues/${t}${i(e)}`,{method:"PATCH",body:JSON.stringify(a)}),"updateMemberMe",0,(e,t)=>r(`/api/members/me${i(e)}`,{method:"PATCH",body:JSON.stringify({global_instruction:t})}),"updateWorkspace",0,(e,t)=>r(`/api/workspaces/${e}${i(e)}`,{method:"PATCH",body:JSON.stringify(t)}),"uploadEmailAttachment",0,l],222862)},728886,e=>{"use strict";var t=e.i(653772),a=e.i(613349);e.s(["Skeleton",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"skeleton",className:(0,a.cn)("animate-pulse rounded-md bg-muted",e),...n})}])},896210,e=>{"use strict";let t=(0,e.i(419412).default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["Mail",0,t],896210)},330746,e=>{"use strict";let t=(0,e.i(419412).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",0,t],330746)},966662,940931,e=>{"use strict";let t=(0,e.i(419412).default)("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]]);e.s(["Paperclip",0,t],966662);var a=e.i(653772),n=e.i(511043),r=e.i(111114);let i=`
|
|
2
2
|
html, body {
|
|
3
3
|
overflow: hidden;
|
|
4
4
|
}
|
|
@@ -60,4 +60,4 @@
|
|
|
60
60
|
<style>${i}${p?o:s}</style>
|
|
61
61
|
</head>
|
|
62
62
|
<body>${e}</body>
|
|
63
|
-
</html>`;let n=()=>{let e=t.contentDocument;if(!e)return;let n=()=>{let t=e.documentElement.scrollHeight;t>0&&u(t)};n(),(a=new ResizeObserver(n)).observe(e.documentElement)};return t.addEventListener("load",n),()=>{t.removeEventListener("load",n),a?.disconnect()}},[e,p]),(0,a.jsx)("iframe",{ref:l,sandbox:"allow-same-origin",className:t,style:{width:"100%",height:`${d}px`,border:"none",display:"block"},title:"Email content"})}],940931)},481282,731316,657587,385745,e=>{"use strict";var t=e.i(127677),a=(0,e.i(995292).default)(Object.keys,Object),n=Object.prototype.hasOwnProperty;let r=function(e){if(!(0,t.default)(e))return a(e);var r=[];for(var i in Object(e))n.call(e,i)&&"constructor"!=i&&r.push(i);return r};e.s(["default",0,r],731316);var i=e.i(130636),s=e.i(659173),o=(0,i.default)(s.default,"DataView"),l=e.i(121200),c=(0,i.default)(s.default,"Promise"),d=(0,i.default)(s.default,"Set");e.s(["default",0,d],657587);var u=(0,i.default)(s.default,"WeakMap"),p=e.i(706462),m=e.i(882148),g="[object Map]",f="[object Promise]",h="[object Set]",y="[object WeakMap]",b="[object DataView]",w=(0,m.default)(o),v=(0,m.default)(l.default),k=(0,m.default)(c),$=(0,m.default)(d),x=(0,m.default)(u),S=p.default;(o&&S(new o(new ArrayBuffer(1)))!=b||l.default&&S(new l.default)!=g||c&&S(c.resolve())!=f||d&&S(new d)!=h||u&&S(new u)!=y)&&(S=function(e){var t=(0,p.default)(e),a="[object Object]"==t?e.constructor:void 0,n=a?(0,m.default)(a):"";if(n)switch(n){case w:return b;case v:return g;case k:return f;case $:return h;case x:return y}return t});let E=S;e.s(["default",0,E],385745);var _=e.i(530194),C=e.i(764843),T=e.i(750244),I=e.i(330772),M=e.i(400745),j=Object.prototype.hasOwnProperty;e.s(["default",0,function(e){if(null==e)return!0;if((0,T.default)(e)&&((0,C.default)(e)||"string"==typeof e||"function"==typeof e.splice||(0,I.default)(e)||(0,M.default)(e)||(0,_.default)(e)))return!e.length;var a=E(e);if("[object Map]"==a||"[object Set]"==a)return!e.size;if((0,t.default)(e))return!r(e).length;for(var n in e)if(j.call(e,n))return!1;return!0}],481282)},505494,e=>{"use strict";var t=e.i(752872),a=e.i(351359);e.i(991577);var n=e.i(692423),r=(0,a.__name)(e=>{let{securityLevel:a}=(0,t.getConfig2)(),r=(0,n.select)("body");if("sandbox"===a){let t=(0,n.select)(`#i${e}`),a=t.node()?.contentDocument??document;r=(0,n.select)(a.body)}return r.select(`#${e}`)},"selectSvgElement");e.s(["selectSvgElement",0,r])},489368,e=>{"use strict";var t=e.i(102198),a=e.i(103274),n=e.i(595995),r=e.i(752872),i=e.i(351359),s={common:r.common_default,getConfig:r.getConfig,insertCluster:a.insertCluster,insertEdge:t.insertEdge,insertEdgeLabel:t.insertEdgeLabel,insertMarkers:t.markers_default,insertNode:a.insertNode,interpolateToCurve:n.interpolateToCurve,labelHelper:a.labelHelper,log:i.log,positionEdgeLabel:t.positionEdgeLabel},o={},l=(0,i.__name)(e=>{for(let t of e)o[t.name]=t},"registerLayoutLoaders");(0,i.__name)(()=>{l([{name:"dagre",loader:(0,i.__name)(async()=>await e.A(274989),"loader")},{name:"cose-bilkent",loader:(0,i.__name)(async()=>await e.A(619639),"loader")}])},"registerDefaultLayoutLoaders")();var c=(0,i.__name)(async(e,t)=>{if(!(e.layoutAlgorithm in o))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let a=t.domId||t.id;t.domId=`${e.diagramId}-${a}`}let a=o[e.layoutAlgorithm],n=await a.loader(),{theme:r,themeVariables:i}=e.config,{useGradient:l,gradientStart:c,gradientStop:d}=i,u=t.attr("id");if(t.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",`${r?.includes("dark")?"#FFFFFF":"#000000"}`),t.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",`${r?.includes("dark")?"#FFFFFF":"#000000"}`),l){let e=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.append("svg:stop").attr("offset","0%").attr("stop-color",c).attr("stop-opacity",1),e.append("svg:stop").attr("offset","100%").attr("stop-color",d).attr("stop-opacity",1)}return n.render(e,t,s,{algorithm:a.algorithm})},"render"),d=(0,i.__name)((e="",{fallback:t="dagre"}={})=>{if(e in o)return e;if(t in o)return i.log.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm");e.s(["getRegisteredLayoutAlgorithm",0,d,"registerLayoutLoaders",0,l,"render",0,c])},967723,e=>{"use strict";let t=(0,e.i(419412).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],967723)},492451,e=>{"use strict";let t=(0,e.i(419412).default)("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]);e.s(["File",0,t],492451)},80137,e=>{"use strict";let t=(0,e.i(419412).default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);e.s(["FileText",0,t],80137)},68322,522281,e=>{"use strict";var t=e.i(566710);e.s([],68322),e.s(["Streamdown",()=>t.C],522281)},288329,e=>{"use strict";var t=e.i(653772),a=e.i(511043),n=e.i(613349);e.s(["SheetResizeHandle",0,function({onPointerDown:e,onPointerMove:a,onPointerUp:r,className:i,withHandle:s=!0}){return(0,t.jsx)("div",{onPointerDown:e,onPointerMove:a,onPointerUp:r,onLostPointerCapture:r,className:(0,n.cn)("hidden sm:flex absolute left-0 top-0 bottom-0 w-1.5 cursor-col-resize z-10 items-center justify-center hover:bg-primary/10 active:bg-primary/20 transition-colors rounded-l-xl",i),children:s&&(0,t.jsx)("div",{className:"h-6 w-1 rounded-lg bg-border"})})},"useSheetResize",0,function({defaultWidth:e=480,minWidth:t=320,maxWidthRatio:n=.8}={}){let[r,i]=(0,a.useState)(e),s=(0,a.useRef)(!1),o=(0,a.useCallback)(e=>{e.preventDefault(),e.target.setPointerCapture(e.pointerId),s.current=!0},[]);return{width:r,onPointerDown:o,onPointerMove:(0,a.useCallback)(e=>{s.current&&i(Math.min(window.innerWidth*n,Math.max(t,window.innerWidth-e.clientX)))},[t,n]),onPointerUp:(0,a.useCallback)(e=>{s.current=!1,e.target.releasePointerCapture(e.pointerId)},[])}}])},998771,e=>{"use strict";let t=(0,e.i(419412).default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);e.s(["User",0,t],998771)},758956,e=>{"use strict";let t=(0,e.i(419412).default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);e.s(["MessageSquare",0,t],758956)},51724,e=>{"use strict";let t=(0,e.i(419412).default)("circle-dot",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);e.s(["CircleDot",0,t],51724)},131890,e=>{"use strict";let t=(0,e.i(419412).default)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);e.s(["ArrowUp",0,t],131890)},450463,e=>{"use strict";e.s(["relativeTime",0,function(e){let t=new Date(e);if(isNaN(t.getTime()))return"";let a=Math.floor((new Date().getTime()-t.getTime())/6e4);if(a<1)return"just now";if(a<60)return`${a}m ago`;let n=Math.floor(a/60);if(n<24)return`${n}h ago`;let r=Math.floor(n/24);return r<7?`${r}d ago`:t.toLocaleDateString(void 0,{month:"short",day:"numeric"})}])},465368,648632,e=>{"use strict";var t=e.i(653772),a=e.i(511043),n=e.i(450463);e.i(400175);var r=e.i(819748),i=e.i(126366),s=e.i(496673),o=e.i(758956),l=e.i(332680);function c(e,{delay:t=450,moveThreshold:n=10}={}){let r=a.useRef(null),i=a.useRef(null),s=a.useRef(!1),o=a.useRef(e);a.useEffect(()=>{o.current=e});let l=a.useCallback(()=>{r.current&&(clearTimeout(r.current),r.current=null),i.current=null},[]),d=a.useCallback(e=>{"mouse"!==e.pointerType&&(l(),s.current=!1,i.current={x:e.clientX,y:e.clientY},r.current=setTimeout(()=>{s.current=!0,i.current=null,r.current=null,o.current()},t))},[l,t]),u=a.useCallback(e=>{let t=i.current;if(!t)return;let a=Math.abs(e.clientX-t.x),r=Math.abs(e.clientY-t.y);(a>n||r>n)&&l()},[l,n]),p=a.useCallback(e=>{s.current&&(e.preventDefault(),e.stopPropagation(),s.current=!1)},[]);return a.useEffect(()=>l,[l]),{onPointerDown:d,onPointerMove:u,onPointerUp:l,onPointerCancel:l,onPointerLeave:l,onClick:p}}e.s(["useLongPress",0,c],648632),e.s(["EmailCard",0,function({subject:e,address:d,direction:u,onClick:p,timestamp:m,isInternal:g,internalHandle:f,targetConvId:h,targetAgentId:y,agents:b,onAgentChatOpen:w,touchAction:v}){let[k,$]=(0,a.useState)(null),[x,S]=(0,a.useState)(!1),[E,_]=(0,a.useState)(!1),C=c(()=>{v&&_(!0)}),T=(0,a.useCallback)(()=>{if(!g||x)return;S(!0);let e=b?.find(e=>e.email_handle===f);e&&$({name:e.name,avatarConfig:(0,i.parseAvatarUrl)(e.avatar_url)})},[g,x,b,f]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",onClick:e=>{v&&C.onClick&&(C.onClick(e),e.defaultPrevented)||p?.()},disabled:!p,onPointerEnter:T,...v?{onPointerDown:C.onPointerDown,onPointerMove:C.onPointerMove,onPointerUp:C.onPointerUp,onPointerCancel:C.onPointerCancel,onPointerLeave:C.onPointerLeave}:{},className:`card-grain w-104 max-w-full rounded-(--radius) border border-(--border) bg-(--paper) text-left flex flex-col cursor-pointer [transition:translate_.2s_cubic-bezier(.2,.8,.2,1),box-shadow_.2s_ease] hover:-translate-y-0.5 [box-shadow:var(--e1)] hover:[box-shadow:var(--e2)] ${g&&h?"overflow-visible group/ecard":"overflow-hidden"}`,children:[(0,t.jsx)("span",{className:"h-2.5 relative block",children:(0,t.jsx)("svg",{viewBox:"0 0 100 10",preserveAspectRatio:"none",className:"absolute inset-0 w-full h-full",children:(0,t.jsx)("path",{d:"M8,-1 L50,9 L92,-1",stroke:"var(--te)",strokeWidth:"2.5",opacity:"0.4",fill:"none",strokeLinejoin:"round",strokeLinecap:"round"})})}),(0,t.jsxs)("span",{className:"p-3 flex flex-col",children:[(0,t.jsxs)("span",{className:"flex items-start gap-1 mb-1",children:[(0,t.jsxs)("span",{className:"text-[0.72rem] text-(--muted-foreground) flex-1 min-w-0 whitespace-nowrap overflow-hidden text-ellipsis",children:["inbound"===u?"from ":"to ",d]}),(0,t.jsxs)("span",{className:"shrink-0 flex flex-col items-end gap-0.5",children:[m&&(0,t.jsx)("span",{className:"text-[0.62rem] font-mono text-muted-foreground/65",children:(0,n.relativeTime)(m)}),(0,t.jsx)("span",{className:"text-[0.5rem] font-bold uppercase tracking-wider text-(--te) px-1 py-0.5 rounded-[3px] border-[1.5px] border-(--te) opacity-45 -rotate-3",children:"inbound"===u?"Inbound":"Sent"})]})]}),(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold tracking-[-0.01em] leading-[1.35] line-clamp-2",children:e})]}),g&&k&&h&&(0,t.jsx)("span",{className:"absolute -bottom-2.5 left-1/2 -translate-x-1/2 translate-y-1 opacity-0 group-hover/ecard:opacity-100 group-hover/ecard:translate-y-0 transition-all duration-200 ease-out pointer-events-none group-hover/ecard:pointer-events-auto z-10",children:(0,t.jsxs)("span",{role:"button",tabIndex:0,onClick:e=>{e.stopPropagation(),h&&y&&w?.(y,h)},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.stopPropagation(),h&&y&&w?.(y,h))},className:"flex items-center gap-1.5 py-0.5 pl-0.5 pr-2 bg-(--paper) border border-(--border) rounded-full shadow-md hover:bg-(--secondary) cursor-pointer whitespace-nowrap",children:[k.avatarConfig&&(0,t.jsx)(r.AnimatedAvatar,{config:k.avatarConfig,size:20,isHovered:!1,className:"rounded-full"}),(0,t.jsx)("span",{className:"text-[0.62rem] font-semibold opacity-80",children:k.name}),(0,t.jsx)(s.ChevronRight,{className:"w-2.5 h-2.5 text-muted-foreground/45 -ml-0.5"})]})})]}),v&&(0,t.jsx)(l.Sheet,{open:E,onOpenChange:_,children:(0,t.jsx)(l.SheetContent,{side:"bottom",showCloseButton:!1,className:"rounded-t-2xl p-2",children:(0,t.jsx)("div",{className:"flex flex-col",children:(0,t.jsxs)("button",{type:"button",onClick:()=>{v.onClick(),_(!1)},className:"flex items-center gap-3 rounded-lg px-3 py-3 text-left text-[0.95rem] active:bg-muted text-foreground",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:(0,t.jsx)(o.MessageSquare,{className:"w-5 h-5"})}),v.label]})})})})]})}],465368)},754902,855351,157349,e=>{"use strict";var t=e.i(653772),a=e.i(613349);let n={single:"rounded-[1.05rem]",first:"rounded-[1.05rem] rounded-br-[0.35rem]",middle:"rounded-[1.05rem] rounded-tr-[0.35rem] rounded-br-[0.35rem]",last:"rounded-[1.05rem] rounded-tr-[0.35rem]"},r={single:"rounded-[1.05rem]",first:"rounded-[1.05rem] rounded-bl-[0.35rem]",middle:"rounded-[1.05rem] rounded-tl-[0.35rem] rounded-bl-[0.35rem]",last:"rounded-[1.05rem] rounded-tl-[0.35rem]"};function i(){return(0,t.jsxs)("span",{className:"inline-flex items-center gap-0.5","aria-hidden":!0,children:[(0,t.jsx)("span",{className:"size-1 rounded-full bg-muted-foreground/60 motion-safe:animate-[typing-dot_1.2s_ease-in-out_infinite]"}),(0,t.jsx)("span",{className:"size-1 rounded-full bg-muted-foreground/60 motion-safe:animate-[typing-dot_1.2s_ease-in-out_0.2s_infinite]"}),(0,t.jsx)("span",{className:"size-1 rounded-full bg-muted-foreground/60 motion-safe:animate-[typing-dot_1.2s_ease-in-out_0.4s_infinite]"})]})}e.s(["MessageBubble",0,function({variant:e,position:i,children:s,className:o,...l}){let c="user"===e?n[i]:r[i];return(0,t.jsx)("div",{className:(0,a.cn)("px-3 py-1.5 text-base",c,"user"===e?"bg-primary text-primary-foreground":"bg-muted text-foreground",o),...l,children:s})}],754902),e.s(["AVATAR_SIZE",0,30,"MessageCluster",0,function({avatar:e,name:n,children:r,position:i,className:s}){let o="first"===i||"solo"===i;return(0,t.jsxs)("div",{className:(0,a.cn)("flex justify-start items-start gap-2 min-w-0",s),children:[(0,t.jsx)("div",{className:(0,a.cn)("w-[30px]","shrink-0"),"aria-hidden":!o,children:o&&e}),(0,t.jsxs)("div",{className:"min-w-0 max-w-[86%] flex flex-col items-start gap-0.5",children:[o&&(0,t.jsx)("span",{className:"text-[0.85rem] font-semibold text-foreground leading-[1.15] pt-0.5 mb-1",children:n}),r]})]})}],855351),e.s(["PresenceLine",0,function({agentFirstName:e,taskStatus:n}){let r="running"===n?"typing":"queued"===n||"dispatched"===n?"reading":"idle";return(0,t.jsx)("div",{className:"h-5 px-1 mb-2 flex items-center","aria-live":"polite",children:(0,t.jsx)("span",{className:(0,a.cn)("inline-flex items-center gap-1.5 text-sm text-muted-foreground","idle"!==r&&"motion-safe:animate-[fade-up_200ms_ease-out_both]"),children:"idle"!==r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:"reading"===r?`${e} is reading`:`${e} is typing`}),(0,t.jsx)(i,{})]})},r)})}],157349)},899746,e=>{"use strict";let t="browser-notification-enabled",a="browser-notification-events",n=["completed","failed"],r={completed:"Task Completed",failed:"Task Failed"};function i(){return"Notification"in window}function s(){return"true"===localStorage.getItem(t)}function o(){try{let e=localStorage.getItem(a);if(e)return JSON.parse(e)}catch{}return[...n]}async function l(){return!!i()&&("granted"===Notification.permission||"denied"!==Notification.permission&&"granted"===await Notification.requestPermission())}e.s(["NOTIFICATION_EVENTS",0,n,"NOTIFICATION_EVENT_LABELS",0,r,"getNotificationEnabled",0,s,"getNotificationEvents",0,o,"isNotificationSupported",0,i,"requestNotificationPermission",0,l,"sendTaskNotification",0,function(e,t,a){if(!i()||"granted"!==Notification.permission||!s()||!o().includes(e))return;let n=r[e]??`Task ${e}`;new Notification(t?`${t} — ${n}`:n,{body:a??"",icon:"/alook.svg"})},"setNotificationEnabled",0,function(e){localStorage.setItem(t,String(e))},"setNotificationEvents",0,function(e){localStorage.setItem(a,JSON.stringify(e))}])},875494,685835,e=>{"use strict";var t=e.i(653772),a=e.i(511043),n=e.i(222862),r=e.i(355578),i=e.i(500324),s=e.i(899746);let o="inbox-filter-types",l=["user_dm_message","calendar_event","email_notification"],c=["user_dm_message"],d=["user_dm_message"];function u(){try{let e=localStorage.getItem(o);if(!e)return c;let t=JSON.parse(e).filter(e=>l.includes(e));if(0===t.length)return c;for(let e of d)t.includes(e)||t.unshift(e);return t}catch{return c}}e.s(["INBOX_FILTER_LABELS",0,{user_dm_message:"DM",calendar_event:"Calendar",email_notification:"Email"},"INBOX_FILTER_TYPES",0,l,"MANDATORY_INBOX_TYPES",0,d,"getInboxFilterTypes",0,u,"setInboxFilterTypes",0,function(e){let t=[...e];for(let e of d)t.includes(e)||t.unshift(e);localStorage.setItem(o,JSON.stringify(t))}],685835);let p=(0,a.createContext)(null),m={count:0,notificationToken:0,refresh:()=>{},decrement:()=>{}};e.s(["InboxCountProvider",0,function({children:e}){let{workspaceId:o}=(0,i.useWorkspace)(),{subscribeWs:l,agents:c}=(0,r.useAgentContext)(),[d,m]=(0,a.useState)(0),[g,f]=(0,a.useState)(0),h=(0,a.useRef)(null),y=(0,a.useRef)(null),b=(0,a.useRef)(c);(0,a.useEffect)(()=>{b.current=c});let w=(0,a.useCallback)(()=>{let e=u();(0,n.getInboxCount)(o,{types:e}).then(e=>{let t=h.current;if(h.current=e.count,m(e.count),null!==t&&e.count>t){f(e=>e+1);let e=y.current?b.current.find(e=>e.id===y.current):void 0;(0,s.sendTaskNotification)("completed",e?.name)}y.current=null}).catch(()=>{})},[o]),v=(0,a.useCallback)(()=>{m(e=>Math.max(0,e-1))},[]);return(0,a.useEffect)(()=>{w()},[w]),(0,a.useEffect)(()=>l(e=>{"task.updated"===e.type&&("completed"===e.status||"failed"===e.status)&&(y.current=e.agentId,w())}),[l,w]),(0,a.useEffect)(()=>{let e=setInterval(w,6e4);return()=>clearInterval(e)},[w]),(0,t.jsx)(p.Provider,{value:{count:d,notificationToken:g,refresh:w,decrement:v},children:e})},"useInboxCount",0,function(){return(0,a.useContext)(p)??m}],875494)},353155,e=>{"use strict";var t=e.i(452691);e.s(["Check",()=>t.default])},813141,e=>{"use strict";let t=(0,e.i(419412).default)("trash-2",[["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"}]]);e.s(["Trash2",0,t],813141)},393153,e=>{"use strict";var t=e.i(653772),a=e.i(779646),n=e.i(186339);e.s(["ConfirmDialog",0,function({open:e,onOpenChange:r,title:i,description:s,confirmLabel:o="Remove",loadingLabel:l,confirmVariant:c="destructive",loading:d=!1,onConfirm:u}){return(0,t.jsx)(a.Dialog,{open:e,onOpenChange:r,children:(0,t.jsxs)(a.DialogContent,{showCloseButton:!1,children:[(0,t.jsxs)(a.DialogHeader,{children:[(0,t.jsx)(a.DialogTitle,{children:i}),(0,t.jsx)(a.DialogDescription,{children:s})]}),(0,t.jsxs)(a.DialogFooter,{children:[(0,t.jsx)(n.Button,{variant:"outline",size:"sm",onClick:()=>r(!1),disabled:d,children:"Cancel"}),(0,t.jsx)(n.Button,{variant:c,size:"sm",onClick:u,disabled:d,children:d?l??`${o}...`:o})]})]})})}])},82970,e=>{"use strict";let t=(0,e.i(419412).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["AlertCircle",0,t],82970)},294518,e=>{"use strict";let t=(0,e.i(419412).default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);e.s(["Clock",0,t],294518)},267007,e=>{"use strict";let t=(0,e.i(419412).default)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);e.s(["Square",0,t],267007)},41793,e=>{"use strict";let t=(0,e.i(419412).default)("calendar-days",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);e.s(["CalendarDays",0,t],41793)},896315,219658,e=>{"use strict";var t=e.i(419412);let a=(0,t.default)("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);e.s(["RotateCw",0,a],896315);var n=e.i(653772),r=e.i(511043),i=e.i(186339),s=e.i(329686);let o=(0,t.default)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);var l=e.i(613349);e.s(["ScrollToBottomButton",0,function({scrollRef:e,threshold:t=100}){let[a,c]=(0,r.useState)(!1),d=(0,r.useCallback)(()=>{let a=e.current;if(!a)return;let n=a.scrollHeight-a.scrollTop-a.clientHeight<t;c(a.scrollHeight>a.clientHeight&&!n)},[e,t]);return(0,r.useEffect)(()=>{let t=e.current;if(!t)return;t.addEventListener("scroll",d,{passive:!0}),d();let a=new ResizeObserver(d);return a.observe(t),()=>{t.removeEventListener("scroll",d),a.disconnect()}},[e,d]),(0,n.jsx)("div",{className:(0,l.cn)("absolute bottom-1 left-1/2 -translate-x-1/2 z-10 transition-all duration-200 ease-out",a?"opacity-100 translate-y-0":"opacity-0 translate-y-2 pointer-events-none"),children:(0,n.jsxs)(s.Tooltip,{children:[(0,n.jsx)(s.TooltipTrigger,{render:(0,n.jsx)(i.Button,{variant:"ghost",size:"icon-sm",onClick:()=>{let t=e.current;t&&t.scrollTo({top:t.scrollHeight,behavior:"smooth"})},className:"rounded-full bg-background/80 backdrop-blur-sm border shadow-sm hover:bg-background"}),children:(0,n.jsx)(o,{})}),(0,n.jsx)(s.TooltipContent,{side:"top",children:"Scroll to bottom"})]})})}],219658)}]);
|
|
63
|
+
</html>`;let n=()=>{let e=t.contentDocument;if(!e)return;let n=()=>{let t=e.documentElement.scrollHeight;t>0&&u(t)};n(),(a=new ResizeObserver(n)).observe(e.documentElement)};return t.addEventListener("load",n),()=>{t.removeEventListener("load",n),a?.disconnect()}},[e,p]),(0,a.jsx)("iframe",{ref:l,sandbox:"allow-same-origin",className:t,style:{width:"100%",height:`${d}px`,border:"none",display:"block"},title:"Email content"})}],940931)},481282,731316,657587,385745,e=>{"use strict";var t=e.i(127677),a=(0,e.i(995292).default)(Object.keys,Object),n=Object.prototype.hasOwnProperty;let r=function(e){if(!(0,t.default)(e))return a(e);var r=[];for(var i in Object(e))n.call(e,i)&&"constructor"!=i&&r.push(i);return r};e.s(["default",0,r],731316);var i=e.i(130636),s=e.i(659173),o=(0,i.default)(s.default,"DataView"),l=e.i(121200),c=(0,i.default)(s.default,"Promise"),d=(0,i.default)(s.default,"Set");e.s(["default",0,d],657587);var u=(0,i.default)(s.default,"WeakMap"),p=e.i(706462),m=e.i(882148),g="[object Map]",f="[object Promise]",h="[object Set]",y="[object WeakMap]",b="[object DataView]",w=(0,m.default)(o),v=(0,m.default)(l.default),$=(0,m.default)(c),k=(0,m.default)(d),x=(0,m.default)(u),S=p.default;(o&&S(new o(new ArrayBuffer(1)))!=b||l.default&&S(new l.default)!=g||c&&S(c.resolve())!=f||d&&S(new d)!=h||u&&S(new u)!=y)&&(S=function(e){var t=(0,p.default)(e),a="[object Object]"==t?e.constructor:void 0,n=a?(0,m.default)(a):"";if(n)switch(n){case w:return b;case v:return g;case $:return f;case k:return h;case x:return y}return t});let E=S;e.s(["default",0,E],385745);var _=e.i(530194),C=e.i(764843),T=e.i(750244),I=e.i(330772),M=e.i(400745),j=Object.prototype.hasOwnProperty;e.s(["default",0,function(e){if(null==e)return!0;if((0,T.default)(e)&&((0,C.default)(e)||"string"==typeof e||"function"==typeof e.splice||(0,I.default)(e)||(0,M.default)(e)||(0,_.default)(e)))return!e.length;var a=E(e);if("[object Map]"==a||"[object Set]"==a)return!e.size;if((0,t.default)(e))return!r(e).length;for(var n in e)if(j.call(e,n))return!1;return!0}],481282)},505494,e=>{"use strict";var t=e.i(752872),a=e.i(351359);e.i(991577);var n=e.i(692423),r=(0,a.__name)(e=>{let{securityLevel:a}=(0,t.getConfig2)(),r=(0,n.select)("body");if("sandbox"===a){let t=(0,n.select)(`#i${e}`),a=t.node()?.contentDocument??document;r=(0,n.select)(a.body)}return r.select(`#${e}`)},"selectSvgElement");e.s(["selectSvgElement",0,r])},489368,e=>{"use strict";var t=e.i(102198),a=e.i(103274),n=e.i(595995),r=e.i(752872),i=e.i(351359),s={common:r.common_default,getConfig:r.getConfig,insertCluster:a.insertCluster,insertEdge:t.insertEdge,insertEdgeLabel:t.insertEdgeLabel,insertMarkers:t.markers_default,insertNode:a.insertNode,interpolateToCurve:n.interpolateToCurve,labelHelper:a.labelHelper,log:i.log,positionEdgeLabel:t.positionEdgeLabel},o={},l=(0,i.__name)(e=>{for(let t of e)o[t.name]=t},"registerLayoutLoaders");(0,i.__name)(()=>{l([{name:"dagre",loader:(0,i.__name)(async()=>await e.A(274989),"loader")},{name:"cose-bilkent",loader:(0,i.__name)(async()=>await e.A(619639),"loader")}])},"registerDefaultLayoutLoaders")();var c=(0,i.__name)(async(e,t)=>{if(!(e.layoutAlgorithm in o))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let a=t.domId||t.id;t.domId=`${e.diagramId}-${a}`}let a=o[e.layoutAlgorithm],n=await a.loader(),{theme:r,themeVariables:i}=e.config,{useGradient:l,gradientStart:c,gradientStop:d}=i,u=t.attr("id");if(t.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",`${r?.includes("dark")?"#FFFFFF":"#000000"}`),t.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",`${r?.includes("dark")?"#FFFFFF":"#000000"}`),l){let e=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.append("svg:stop").attr("offset","0%").attr("stop-color",c).attr("stop-opacity",1),e.append("svg:stop").attr("offset","100%").attr("stop-color",d).attr("stop-opacity",1)}return n.render(e,t,s,{algorithm:a.algorithm})},"render"),d=(0,i.__name)((e="",{fallback:t="dagre"}={})=>{if(e in o)return e;if(t in o)return i.log.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm");e.s(["getRegisteredLayoutAlgorithm",0,d,"registerLayoutLoaders",0,l,"render",0,c])},967723,e=>{"use strict";let t=(0,e.i(419412).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],967723)},492451,e=>{"use strict";let t=(0,e.i(419412).default)("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]);e.s(["File",0,t],492451)},80137,e=>{"use strict";let t=(0,e.i(419412).default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);e.s(["FileText",0,t],80137)},68322,522281,e=>{"use strict";var t=e.i(566710);e.s([],68322),e.s(["Streamdown",()=>t.C],522281)},288329,e=>{"use strict";var t=e.i(653772),a=e.i(511043),n=e.i(613349);e.s(["SheetResizeHandle",0,function({onPointerDown:e,onPointerMove:a,onPointerUp:r,className:i,withHandle:s=!0}){return(0,t.jsx)("div",{onPointerDown:e,onPointerMove:a,onPointerUp:r,onLostPointerCapture:r,className:(0,n.cn)("hidden sm:flex absolute left-0 top-0 bottom-0 w-1.5 cursor-col-resize z-10 items-center justify-center hover:bg-primary/10 active:bg-primary/20 transition-colors rounded-l-xl",i),children:s&&(0,t.jsx)("div",{className:"h-6 w-1 rounded-lg bg-border"})})},"useSheetResize",0,function({defaultWidth:e=480,minWidth:t=320,maxWidthRatio:n=.8}={}){let[r,i]=(0,a.useState)(e),s=(0,a.useRef)(!1),o=(0,a.useCallback)(e=>{e.preventDefault(),e.target.setPointerCapture(e.pointerId),s.current=!0},[]);return{width:r,onPointerDown:o,onPointerMove:(0,a.useCallback)(e=>{s.current&&i(Math.min(window.innerWidth*n,Math.max(t,window.innerWidth-e.clientX)))},[t,n]),onPointerUp:(0,a.useCallback)(e=>{s.current=!1,e.target.releasePointerCapture(e.pointerId)},[])}}])},998771,e=>{"use strict";let t=(0,e.i(419412).default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);e.s(["User",0,t],998771)},758956,e=>{"use strict";let t=(0,e.i(419412).default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);e.s(["MessageSquare",0,t],758956)},51724,e=>{"use strict";let t=(0,e.i(419412).default)("circle-dot",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);e.s(["CircleDot",0,t],51724)},131890,e=>{"use strict";let t=(0,e.i(419412).default)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);e.s(["ArrowUp",0,t],131890)},450463,e=>{"use strict";e.s(["relativeTime",0,function(e){let t=new Date(e);if(isNaN(t.getTime()))return"";let a=Math.floor((new Date().getTime()-t.getTime())/6e4);if(a<1)return"just now";if(a<60)return`${a}m ago`;let n=Math.floor(a/60);if(n<24)return`${n}h ago`;let r=Math.floor(n/24);return r<7?`${r}d ago`:t.toLocaleDateString(void 0,{month:"short",day:"numeric"})}])},465368,648632,e=>{"use strict";var t=e.i(653772),a=e.i(511043),n=e.i(450463);e.i(400175);var r=e.i(819748),i=e.i(126366),s=e.i(496673),o=e.i(758956),l=e.i(332680);function c(e,{delay:t=450,moveThreshold:n=10}={}){let r=a.useRef(null),i=a.useRef(null),s=a.useRef(!1),o=a.useRef(e);a.useEffect(()=>{o.current=e});let l=a.useCallback(()=>{r.current&&(clearTimeout(r.current),r.current=null),i.current=null},[]),d=a.useCallback(e=>{"mouse"!==e.pointerType&&(l(),s.current=!1,i.current={x:e.clientX,y:e.clientY},r.current=setTimeout(()=>{s.current=!0,i.current=null,r.current=null,o.current()},t))},[l,t]),u=a.useCallback(e=>{let t=i.current;if(!t)return;let a=Math.abs(e.clientX-t.x),r=Math.abs(e.clientY-t.y);(a>n||r>n)&&l()},[l,n]),p=a.useCallback(e=>{s.current&&(e.preventDefault(),e.stopPropagation(),s.current=!1)},[]);return a.useEffect(()=>l,[l]),{onPointerDown:d,onPointerMove:u,onPointerUp:l,onPointerCancel:l,onPointerLeave:l,onClick:p}}e.s(["useLongPress",0,c],648632),e.s(["EmailCard",0,function({subject:e,address:d,direction:u,onClick:p,timestamp:m,isInternal:g,internalHandle:f,targetConvId:h,targetAgentId:y,agents:b,onAgentChatOpen:w,touchAction:v}){let[$,k]=(0,a.useState)(null),[x,S]=(0,a.useState)(!1),[E,_]=(0,a.useState)(!1),C=c(()=>{v&&_(!0)}),T=(0,a.useCallback)(()=>{if(!g||x)return;S(!0);let e=b?.find(e=>e.email_handle===f);e&&k({name:e.name,avatarConfig:(0,i.parseAvatarUrl)(e.avatar_url)})},[g,x,b,f]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",onClick:e=>{v&&C.onClick&&(C.onClick(e),e.defaultPrevented)||p?.()},disabled:!p,onPointerEnter:T,...v?{onPointerDown:C.onPointerDown,onPointerMove:C.onPointerMove,onPointerUp:C.onPointerUp,onPointerCancel:C.onPointerCancel,onPointerLeave:C.onPointerLeave}:{},className:`card-grain w-104 max-w-full rounded-(--radius) border border-(--border) bg-(--paper) text-left flex flex-col cursor-pointer [transition:translate_.2s_cubic-bezier(.2,.8,.2,1),box-shadow_.2s_ease] hover:-translate-y-0.5 [box-shadow:var(--e1)] hover:[box-shadow:var(--e2)] ${g&&h?"overflow-visible group/ecard":"overflow-hidden"}`,children:[(0,t.jsx)("span",{className:"h-2.5 relative block",children:(0,t.jsx)("svg",{viewBox:"0 0 100 10",preserveAspectRatio:"none",className:"absolute inset-0 w-full h-full",children:(0,t.jsx)("path",{d:"M8,-1 L50,9 L92,-1",stroke:"var(--te)",strokeWidth:"2.5",opacity:"0.4",fill:"none",strokeLinejoin:"round",strokeLinecap:"round"})})}),(0,t.jsxs)("span",{className:"p-3 flex flex-col",children:[(0,t.jsxs)("span",{className:"flex items-start gap-1 mb-1",children:[(0,t.jsxs)("span",{className:"text-[0.72rem] text-(--muted-foreground) flex-1 min-w-0 whitespace-nowrap overflow-hidden text-ellipsis",children:["inbound"===u?"from ":"to ",d]}),(0,t.jsxs)("span",{className:"shrink-0 flex flex-col items-end gap-0.5",children:[m&&(0,t.jsx)("span",{className:"text-[0.62rem] font-mono text-muted-foreground/65",children:(0,n.relativeTime)(m)}),(0,t.jsx)("span",{className:"text-[0.5rem] font-bold uppercase tracking-wider text-(--te) px-1 py-0.5 rounded-[3px] border-[1.5px] border-(--te) opacity-45 -rotate-3",children:"inbound"===u?"Inbound":"Sent"})]})]}),(0,t.jsx)("span",{className:"text-[0.95rem] font-semibold tracking-[-0.01em] leading-[1.35] line-clamp-2",children:e})]}),g&&$&&h&&(0,t.jsx)("span",{className:"absolute -bottom-2.5 left-1/2 -translate-x-1/2 translate-y-1 opacity-0 group-hover/ecard:opacity-100 group-hover/ecard:translate-y-0 transition-all duration-200 ease-out pointer-events-none group-hover/ecard:pointer-events-auto z-10",children:(0,t.jsxs)("span",{role:"button",tabIndex:0,onClick:e=>{e.stopPropagation(),h&&y&&w?.(y,h)},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.stopPropagation(),h&&y&&w?.(y,h))},className:"flex items-center gap-1.5 py-0.5 pl-0.5 pr-2 bg-(--paper) border border-(--border) rounded-full shadow-md hover:bg-(--secondary) cursor-pointer whitespace-nowrap",children:[$.avatarConfig&&(0,t.jsx)(r.AnimatedAvatar,{config:$.avatarConfig,size:20,isHovered:!1,className:"rounded-full"}),(0,t.jsx)("span",{className:"text-[0.62rem] font-semibold opacity-80",children:$.name}),(0,t.jsx)(s.ChevronRight,{className:"w-2.5 h-2.5 text-muted-foreground/45 -ml-0.5"})]})})]}),v&&(0,t.jsx)(l.Sheet,{open:E,onOpenChange:_,children:(0,t.jsx)(l.SheetContent,{side:"bottom",showCloseButton:!1,className:"rounded-t-2xl p-2",children:(0,t.jsx)("div",{className:"flex flex-col",children:(0,t.jsxs)("button",{type:"button",onClick:()=>{v.onClick(),_(!1)},className:"flex items-center gap-3 rounded-lg px-3 py-3 text-left text-[0.95rem] active:bg-muted text-foreground",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:(0,t.jsx)(o.MessageSquare,{className:"w-5 h-5"})}),v.label]})})})})]})}],465368)},754902,855351,157349,e=>{"use strict";var t=e.i(653772),a=e.i(613349);let n={single:"rounded-[1.05rem]",first:"rounded-[1.05rem] rounded-br-[0.35rem]",middle:"rounded-[1.05rem] rounded-tr-[0.35rem] rounded-br-[0.35rem]",last:"rounded-[1.05rem] rounded-tr-[0.35rem]"},r={single:"rounded-[1.05rem]",first:"rounded-[1.05rem] rounded-bl-[0.35rem]",middle:"rounded-[1.05rem] rounded-tl-[0.35rem] rounded-bl-[0.35rem]",last:"rounded-[1.05rem] rounded-tl-[0.35rem]"};function i(){return(0,t.jsxs)("span",{className:"inline-flex items-center gap-0.5","aria-hidden":!0,children:[(0,t.jsx)("span",{className:"size-1 rounded-full bg-muted-foreground/60 motion-safe:animate-[typing-dot_1.2s_ease-in-out_infinite]"}),(0,t.jsx)("span",{className:"size-1 rounded-full bg-muted-foreground/60 motion-safe:animate-[typing-dot_1.2s_ease-in-out_0.2s_infinite]"}),(0,t.jsx)("span",{className:"size-1 rounded-full bg-muted-foreground/60 motion-safe:animate-[typing-dot_1.2s_ease-in-out_0.4s_infinite]"})]})}e.s(["MessageBubble",0,function({variant:e,position:i,children:s,className:o,...l}){let c="user"===e?n[i]:r[i];return(0,t.jsx)("div",{className:(0,a.cn)("px-3 py-1.5 text-base",c,"user"===e?"bg-primary text-primary-foreground":"bg-muted text-foreground",o),...l,children:s})}],754902),e.s(["AVATAR_SIZE",0,30,"MessageCluster",0,function({avatar:e,name:n,children:r,position:i,className:s}){let o="first"===i||"solo"===i;return(0,t.jsxs)("div",{className:(0,a.cn)("flex justify-start items-start gap-2 min-w-0",s),children:[(0,t.jsx)("div",{className:(0,a.cn)("w-[30px]","shrink-0"),"aria-hidden":!o,children:o&&e}),(0,t.jsxs)("div",{className:"min-w-0 max-w-[86%] flex flex-col items-start gap-0.5",children:[o&&(0,t.jsx)("span",{className:"text-[0.85rem] font-semibold text-foreground leading-[1.15] pt-0.5 mb-1",children:n}),r]})]})}],855351),e.s(["PresenceLine",0,function({agentFirstName:e,taskStatus:n}){let r="running"===n?"typing":"queued"===n||"dispatched"===n?"reading":"idle";return(0,t.jsx)("div",{className:"h-5 px-1 mb-2 flex items-center","aria-live":"polite",children:(0,t.jsx)("span",{className:(0,a.cn)("inline-flex items-center gap-1.5 text-sm text-muted-foreground","idle"!==r&&"motion-safe:animate-[fade-up_200ms_ease-out_both]"),children:"idle"!==r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:"reading"===r?`${e} is reading`:`${e} is typing`}),(0,t.jsx)(i,{})]})},r)})}],157349)},899746,e=>{"use strict";let t="browser-notification-enabled",a="browser-notification-events",n=["completed","failed"],r={completed:"Task Completed",failed:"Task Failed"};function i(){return"Notification"in window}function s(){return"true"===localStorage.getItem(t)}function o(){try{let e=localStorage.getItem(a);if(e)return JSON.parse(e)}catch{}return[...n]}async function l(){return!!i()&&("granted"===Notification.permission||"denied"!==Notification.permission&&"granted"===await Notification.requestPermission())}e.s(["NOTIFICATION_EVENTS",0,n,"NOTIFICATION_EVENT_LABELS",0,r,"getNotificationEnabled",0,s,"getNotificationEvents",0,o,"isNotificationSupported",0,i,"requestNotificationPermission",0,l,"sendTaskNotification",0,function(e,t,a){if(!i()||"granted"!==Notification.permission||!s()||!o().includes(e))return;let n=r[e]??`Task ${e}`;new Notification(t?`${t} — ${n}`:n,{body:a??"",icon:"/alook.svg"})},"setNotificationEnabled",0,function(e){localStorage.setItem(t,String(e))},"setNotificationEvents",0,function(e){localStorage.setItem(a,JSON.stringify(e))}])},875494,685835,e=>{"use strict";var t=e.i(653772),a=e.i(511043),n=e.i(222862),r=e.i(355578),i=e.i(500324),s=e.i(899746);let o="inbox-filter-types",l=["user_dm_message","calendar_event","email_notification"],c=["user_dm_message"],d=["user_dm_message"];function u(){try{let e=localStorage.getItem(o);if(!e)return c;let t=JSON.parse(e).filter(e=>l.includes(e));if(0===t.length)return c;for(let e of d)t.includes(e)||t.unshift(e);return t}catch{return c}}e.s(["INBOX_FILTER_LABELS",0,{user_dm_message:"DM",calendar_event:"Calendar",email_notification:"Email"},"INBOX_FILTER_TYPES",0,l,"MANDATORY_INBOX_TYPES",0,d,"getInboxFilterTypes",0,u,"setInboxFilterTypes",0,function(e){let t=[...e];for(let e of d)t.includes(e)||t.unshift(e);localStorage.setItem(o,JSON.stringify(t))}],685835);let p=(0,a.createContext)(null),m={count:0,notificationToken:0,refresh:()=>{},decrement:()=>{}};e.s(["InboxCountProvider",0,function({children:e}){let{workspaceId:o}=(0,i.useWorkspace)(),{subscribeWs:l,agents:c}=(0,r.useAgentContext)(),[d,m]=(0,a.useState)(0),[g,f]=(0,a.useState)(0),h=(0,a.useRef)(null),y=(0,a.useRef)(null),b=(0,a.useRef)(c);(0,a.useEffect)(()=>{b.current=c});let w=(0,a.useCallback)(()=>{let e=u();(0,n.getInboxCount)(o,{types:e}).then(e=>{let t=h.current;if(h.current=e.count,m(e.count),null!==t&&e.count>t){f(e=>e+1);let e=y.current?b.current.find(e=>e.id===y.current):void 0;(0,s.sendTaskNotification)("completed",e?.name)}y.current=null}).catch(()=>{})},[o]),v=(0,a.useCallback)(()=>{m(e=>Math.max(0,e-1))},[]);return(0,a.useEffect)(()=>{w()},[w]),(0,a.useEffect)(()=>l(e=>{"task.updated"===e.type&&("completed"===e.status||"failed"===e.status)&&(y.current=e.agentId,w())}),[l,w]),(0,a.useEffect)(()=>{let e=setInterval(w,6e4);return()=>clearInterval(e)},[w]),(0,t.jsx)(p.Provider,{value:{count:d,notificationToken:g,refresh:w,decrement:v},children:e})},"useInboxCount",0,function(){return(0,a.useContext)(p)??m}],875494)},353155,e=>{"use strict";var t=e.i(452691);e.s(["Check",()=>t.default])},813141,e=>{"use strict";let t=(0,e.i(419412).default)("trash-2",[["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"}]]);e.s(["Trash2",0,t],813141)},393153,e=>{"use strict";var t=e.i(653772),a=e.i(779646),n=e.i(186339);e.s(["ConfirmDialog",0,function({open:e,onOpenChange:r,title:i,description:s,confirmLabel:o="Remove",loadingLabel:l,confirmVariant:c="destructive",loading:d=!1,onConfirm:u}){return(0,t.jsx)(a.Dialog,{open:e,onOpenChange:r,children:(0,t.jsxs)(a.DialogContent,{showCloseButton:!1,children:[(0,t.jsxs)(a.DialogHeader,{children:[(0,t.jsx)(a.DialogTitle,{children:i}),(0,t.jsx)(a.DialogDescription,{children:s})]}),(0,t.jsxs)(a.DialogFooter,{children:[(0,t.jsx)(n.Button,{variant:"outline",size:"sm",onClick:()=>r(!1),disabled:d,children:"Cancel"}),(0,t.jsx)(n.Button,{variant:c,size:"sm",onClick:u,disabled:d,children:d?l??`${o}...`:o})]})]})})}])},82970,e=>{"use strict";let t=(0,e.i(419412).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["AlertCircle",0,t],82970)},294518,e=>{"use strict";let t=(0,e.i(419412).default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);e.s(["Clock",0,t],294518)},267007,e=>{"use strict";let t=(0,e.i(419412).default)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);e.s(["Square",0,t],267007)},41793,e=>{"use strict";let t=(0,e.i(419412).default)("calendar-days",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);e.s(["CalendarDays",0,t],41793)},896315,219658,e=>{"use strict";var t=e.i(419412);let a=(0,t.default)("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);e.s(["RotateCw",0,a],896315);var n=e.i(653772),r=e.i(511043),i=e.i(186339),s=e.i(329686);let o=(0,t.default)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);var l=e.i(613349);e.s(["ScrollToBottomButton",0,function({scrollRef:e,threshold:t=100}){let[a,c]=(0,r.useState)(!1),d=(0,r.useCallback)(()=>{let a=e.current;if(!a)return;let n=a.scrollHeight-a.scrollTop-a.clientHeight<t;c(a.scrollHeight>a.clientHeight&&!n)},[e,t]);return(0,r.useEffect)(()=>{let t=e.current;if(!t)return;t.addEventListener("scroll",d,{passive:!0}),d();let a=new ResizeObserver(d);return a.observe(t),()=>{t.removeEventListener("scroll",d),a.disconnect()}},[e,d]),(0,n.jsx)("div",{className:(0,l.cn)("absolute bottom-1 left-1/2 -translate-x-1/2 z-10 transition-all duration-200 ease-out",a?"opacity-100 translate-y-0":"opacity-0 translate-y-2 pointer-events-none"),children:(0,n.jsxs)(s.Tooltip,{children:[(0,n.jsx)(s.TooltipTrigger,{render:(0,n.jsx)(i.Button,{variant:"ghost",size:"icon-sm",onClick:()=>{let t=e.current;t&&t.scrollTo({top:t.scrollHeight,behavior:"smooth"})},className:"rounded-full bg-background/80 backdrop-blur-sm border shadow-sm hover:bg-background"}),children:(0,n.jsx)(o,{})}),(0,n.jsx)(s.TooltipContent,{side:"top",children:"Scroll to bottom"})]})})}],219658)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"app","meta":{"status":500,"headers":{"x-nextjs-stale-time":"300","x-nextjs-prerender":"1","x-next-cache-tags":"_N_T_/layout,_N_T_/_global-error/layout,_N_T_/_global-error/page,_N_T_/_global-error"},"segmentPaths":["/_tree","/_full","/__PAGE__","/_index","/_head"]},"html":"<!DOCTYPE html><html id=\"__next_error__\"><head><meta charSet=\"utf-8\"/><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/><link rel=\"preload\" as=\"script\" fetchPriority=\"low\" href=\"/_next/static/chunks/3drpmcjhmx9ln.js\"/><script src=\"/_next/static/chunks/3n9neusx6fpsl.js\" async=\"\"></script><script src=\"/_next/static/chunks/1pk347y9mbb1_.js\" async=\"\"></script><script src=\"/_next/static/chunks/3hzmwmt2aovw-.js\" async=\"\"></script><script src=\"/_next/static/chunks/15af8_prak74c.js\" async=\"\"></script><script src=\"/_next/static/chunks/turbopack-415urohlte9g1.js\" async=\"\"></script><script src=\"/_next/static/chunks/2yppsn3dp7d8f.js\" async=\"\"></script><script src=\"/_next/static/chunks/2626k24nw7-_6.js\" async=\"\"></script><meta name=\"next-size-adjust\" content=\"\"/><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src=\"/_next/static/chunks/0cz1d0mv5g_q7.js\" noModule=\"\"></script></head><body><div hidden=\"\"><!--$--><!--/$--></div><div style=\"font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;display:flex;align-items:center;justify-content:center\"><div style=\"margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left\"><svg width=\"32\" height=\"32\" viewBox=\"-0.2 -1.5 32 32\" fill=\"none\" style=\"margin-bottom:24px\"><path d=\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\" fill=\"var(--next-error-title)\"></path></svg><h1 style=\"font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)\">This page couldn’t load</h1><p style=\"font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)\">A server error occurred. Reload to try again.</p><form style=\"margin:0\"><button type=\"submit\" style=\"display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)\">Reload</button></form></div></div><!--$--><!--/$--><script src=\"/_next/static/chunks/3drpmcjhmx9ln.js\" id=\"_R_\" async=\"\"></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,\"1:\\\"$Sreact.fragment\\\"\\n2:I[646713,[\\\"/_next/static/chunks/2yppsn3dp7d8f.js\\\",\\\"/_next/static/chunks/2626k24nw7-_6.js\\\"],\\\"default\\\"]\\n3:I[590324,[\\\"/_next/static/chunks/2yppsn3dp7d8f.js\\\",\\\"/_next/static/chunks/2626k24nw7-_6.js\\\"],\\\"default\\\"]\\n4:I[191384,[\\\"/_next/static/chunks/2yppsn3dp7d8f.js\\\",\\\"/_next/static/chunks/2626k24nw7-_6.js\\\"],\\\"OutletBoundary\\\"]\\n5:\\\"$Sreact.suspense\\\"\\n8:I[191384,[\\\"/_next/static/chunks/2yppsn3dp7d8f.js\\\",\\\"/_next/static/chunks/2626k24nw7-_6.js\\\"],\\\"ViewportBoundary\\\"]\\na:I[191384,[\\\"/_next/static/chunks/2yppsn3dp7d8f.js\\\",\\\"/_next/static/chunks/2626k24nw7-_6.js\\\"],\\\"MetadataBoundary\\\"]\\nc:I[213970,[\\\"/_next/static/chunks/2yppsn3dp7d8f.js\\\",\\\"/_next/static/chunks/2626k24nw7-_6.js\\\"],\\\"default\\\",1]\\n\"])</script><script>self.__next_f.push([1,\"0:{\\\"P\\\":null,\\\"c\\\":[\\\"\\\",\\\"_global-error\\\"],\\\"q\\\":\\\"\\\",\\\"i\\\":false,\\\"f\\\":[[[\\\"\\\",{\\\"children\\\":[\\\"__PAGE__\\\",{}]}],[[\\\"$\\\",\\\"$1\\\",\\\"c\\\",{\\\"children\\\":[null,[\\\"$\\\",\\\"$L2\\\",null,{\\\"parallelRouterKey\\\":\\\"children\\\",\\\"error\\\":\\\"$undefined\\\",\\\"errorStyles\\\":\\\"$undefined\\\",\\\"errorScripts\\\":\\\"$undefined\\\",\\\"template\\\":[\\\"$\\\",\\\"$L3\\\",null,{}],\\\"templateStyles\\\":\\\"$undefined\\\",\\\"templateScripts\\\":\\\"$undefined\\\",\\\"notFound\\\":\\\"$undefined\\\",\\\"forbidden\\\":\\\"$undefined\\\",\\\"unauthorized\\\":\\\"$undefined\\\"}]]}],{\\\"children\\\":[[\\\"$\\\",\\\"$1\\\",\\\"c\\\",{\\\"children\\\":[[\\\"$\\\",\\\"html\\\",null,{\\\"id\\\":\\\"__next_error__\\\",\\\"children\\\":[[\\\"$\\\",\\\"head\\\",null,{\\\"children\\\":[[\\\"$\\\",\\\"title\\\",null,{\\\"children\\\":\\\"500: This page couldn’t load\\\"}],[\\\"$\\\",\\\"style\\\",null,{\\\"dangerouslySetInnerHTML\\\":{\\\"__html\\\":\\\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\\\"}}]]}],[\\\"$\\\",\\\"body\\\",null,{\\\"children\\\":[\\\"$\\\",\\\"div\\\",null,{\\\"style\\\":{\\\"fontFamily\\\":\\\"system-ui,\\\\\\\"Segoe UI\\\\\\\",Roboto,Helvetica,Arial,sans-serif,\\\\\\\"Apple Color Emoji\\\\\\\",\\\\\\\"Segoe UI Emoji\\\\\\\"\\\",\\\"height\\\":\\\"100vh\\\",\\\"display\\\":\\\"flex\\\",\\\"alignItems\\\":\\\"center\\\",\\\"justifyContent\\\":\\\"center\\\"},\\\"children\\\":[\\\"$\\\",\\\"div\\\",null,{\\\"style\\\":{\\\"marginTop\\\":\\\"-32px\\\",\\\"maxWidth\\\":\\\"325px\\\",\\\"padding\\\":\\\"32px 28px\\\",\\\"textAlign\\\":\\\"left\\\"},\\\"children\\\":[[\\\"$\\\",\\\"svg\\\",null,{\\\"width\\\":\\\"32\\\",\\\"height\\\":\\\"32\\\",\\\"viewBox\\\":\\\"-0.2 -1.5 32 32\\\",\\\"fill\\\":\\\"none\\\",\\\"style\\\":{\\\"marginBottom\\\":\\\"24px\\\"},\\\"children\\\":[\\\"$\\\",\\\"path\\\",null,{\\\"d\\\":\\\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\\\",\\\"fill\\\":\\\"var(--next-error-title)\\\"}]}],[\\\"$\\\",\\\"h1\\\",null,{\\\"style\\\":{\\\"fontSize\\\":\\\"24px\\\",\\\"fontWeight\\\":500,\\\"letterSpacing\\\":\\\"-0.02em\\\",\\\"lineHeight\\\":\\\"32px\\\",\\\"margin\\\":\\\"0 0 12px 0\\\",\\\"color\\\":\\\"var(--next-error-title)\\\"},\\\"children\\\":\\\"This page couldn’t load\\\"}],[\\\"$\\\",\\\"p\\\",null,{\\\"style\\\":{\\\"fontSize\\\":\\\"14px\\\",\\\"fontWeight\\\":400,\\\"lineHeight\\\":\\\"21px\\\",\\\"margin\\\":\\\"0 0 20px 0\\\",\\\"color\\\":\\\"var(--next-error-message)\\\"},\\\"children\\\":\\\"A server error occurred. Reload to try again.\\\"}],[\\\"$\\\",\\\"form\\\",null,{\\\"style\\\":{\\\"margin\\\":0},\\\"children\\\":[\\\"$\\\",\\\"button\\\",null,{\\\"type\\\":\\\"submit\\\",\\\"style\\\":{\\\"display\\\":\\\"inline-flex\\\",\\\"alignItems\\\":\\\"center\\\",\\\"justifyContent\\\":\\\"center\\\",\\\"height\\\":\\\"32px\\\",\\\"padding\\\":\\\"0 12px\\\",\\\"fontSize\\\":\\\"14px\\\",\\\"fontWeight\\\":500,\\\"lineHeight\\\":\\\"20px\\\",\\\"borderRadius\\\":\\\"6px\\\",\\\"cursor\\\":\\\"pointer\\\",\\\"color\\\":\\\"var(--next-error-btn-text)\\\",\\\"background\\\":\\\"var(--next-error-btn-bg)\\\",\\\"border\\\":\\\"var(--next-error-btn-border)\\\"},\\\"children\\\":\\\"Reload\\\"}]}]]}]}]}]]}],null,[\\\"$\\\",\\\"$L4\\\",null,{\\\"children\\\":[\\\"$\\\",\\\"$5\\\",null,{\\\"name\\\":\\\"Next.MetadataOutlet\\\",\\\"children\\\":\\\"$@6\\\"}]}]]}],{},null,false,null]},null,false,\\\"$@7\\\"],[\\\"$\\\",\\\"$1\\\",\\\"h\\\",{\\\"children\\\":[null,[\\\"$\\\",\\\"$L8\\\",null,{\\\"children\\\":\\\"$L9\\\"}],[\\\"$\\\",\\\"div\\\",null,{\\\"hidden\\\":true,\\\"children\\\":[\\\"$\\\",\\\"$La\\\",null,{\\\"children\\\":[\\\"$\\\",\\\"$5\\\",null,{\\\"name\\\":\\\"Next.Metadata\\\",\\\"children\\\":\\\"$Lb\\\"}]}]}],[\\\"$\\\",\\\"meta\\\",null,{\\\"name\\\":\\\"next-size-adjust\\\",\\\"content\\\":\\\"\\\"}]]}],false]],\\\"m\\\":\\\"$undefined\\\",\\\"G\\\":[\\\"$c\\\",[]],\\\"S\\\":true,\\\"h\\\":null,\\\"s\\\":\\\"$undefined\\\",\\\"l\\\":\\\"$undefined\\\",\\\"p\\\":\\\"$undefined\\\",\\\"d\\\":\\\"$undefined\\\",\\\"b\\\":\\\"UUtXyb9u1pubazU2jTktS\\\"}\\n\"])</script><script>self.__next_f.push([1,\"d:[]\\n7:\\\"$Wd\\\"\\n\"])</script><script>self.__next_f.push([1,\"9:[[\\\"$\\\",\\\"meta\\\",\\\"0\\\",{\\\"charSet\\\":\\\"utf-8\\\"}],[\\\"$\\\",\\\"meta\\\",\\\"1\\\",{\\\"name\\\":\\\"viewport\\\",\\\"content\\\":\\\"width=device-width, initial-scale=1\\\"}]]\\n\"])</script><script>self.__next_f.push([1,\"6:null\\nb:[]\\n\"])</script></body></html>","rsc":"1:\"$Sreact.fragment\"\n2:I[646713,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"default\"]\n3:I[590324,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"default\"]\n4:I[191384,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[191384,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"ViewportBoundary\"]\na:I[191384,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"MetadataBoundary\"]\nc:I[213970,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"default\",1]\n0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"UUtXyb9u1pubazU2jTktS\"}\nd:[]\n7:\"$Wd\"\n9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n6:null\nb:[]\n","segmentData":{"/_tree":"0:{\"tree\":{\"name\":\"\",\"param\":null,\"prefetchHints\":0,\"slots\":{\"children\":{\"name\":\"__PAGE__\",\"param\":null,\"prefetchHints\":0,\"slots\":null}}},\"staleTime\":300,\"buildId\":\"UUtXyb9u1pubazU2jTktS\"}\n","/_full":"1:\"$Sreact.fragment\"\n2:I[646713,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"default\"]\n3:I[590324,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"default\"]\n4:I[191384,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[191384,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"ViewportBoundary\"]\na:I[191384,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"MetadataBoundary\"]\nc:I[213970,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"default\",1]\n0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"UUtXyb9u1pubazU2jTktS\"}\nd:[]\n7:\"$Wd\"\n9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n6:null\nb:[]\n","/__PAGE__":"1:\"$Sreact.fragment\"\n2:I[191384,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"OutletBoundary\"]\n3:\"$Sreact.suspense\"\n0:{\"rsc\":[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$3\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@4\"}]}]]}],\"isPartial\":false,\"staleTime\":300,\"varyParams\":null,\"buildId\":\"UUtXyb9u1pubazU2jTktS\"}\n4:null\n","/_index":"1:\"$Sreact.fragment\"\n2:I[646713,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"default\"]\n3:I[590324,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"default\"]\n4:[]\n0:{\"rsc\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"template\":[\"$\",\"$L3\",null,{}]}]]}],\"isPartial\":false,\"staleTime\":300,\"varyParams\":\"$W4\",\"buildId\":\"UUtXyb9u1pubazU2jTktS\"}\n","/_head":"1:\"$Sreact.fragment\"\n2:I[191384,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"ViewportBoundary\"]\n3:I[191384,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"MetadataBoundary\"]\n4:\"$Sreact.suspense\"\n0:{\"rsc\":[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L2\",null,{\"children\":[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$4\",null,{\"name\":\"Next.Metadata\",\"children\":[]}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],\"isPartial\":false,\"staleTime\":300,\"varyParams\":null,\"buildId\":\"UUtXyb9u1pubazU2jTktS\"}\n"}}
|
|
1
|
+
{"type":"app","meta":{"status":500,"headers":{"x-nextjs-stale-time":"300","x-nextjs-prerender":"1","x-next-cache-tags":"_N_T_/layout,_N_T_/_global-error/layout,_N_T_/_global-error/page,_N_T_/_global-error"},"segmentPaths":["/_tree","/_full","/__PAGE__","/_index","/_head"]},"html":"<!DOCTYPE html><html id=\"__next_error__\"><head><meta charSet=\"utf-8\"/><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/><link rel=\"preload\" as=\"script\" fetchPriority=\"low\" href=\"/_next/static/chunks/3drpmcjhmx9ln.js\"/><script src=\"/_next/static/chunks/3n9neusx6fpsl.js\" async=\"\"></script><script src=\"/_next/static/chunks/1pk347y9mbb1_.js\" async=\"\"></script><script src=\"/_next/static/chunks/3hzmwmt2aovw-.js\" async=\"\"></script><script src=\"/_next/static/chunks/15af8_prak74c.js\" async=\"\"></script><script src=\"/_next/static/chunks/turbopack-415urohlte9g1.js\" async=\"\"></script><script src=\"/_next/static/chunks/2yppsn3dp7d8f.js\" async=\"\"></script><script src=\"/_next/static/chunks/2626k24nw7-_6.js\" async=\"\"></script><meta name=\"next-size-adjust\" content=\"\"/><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src=\"/_next/static/chunks/0cz1d0mv5g_q7.js\" noModule=\"\"></script></head><body><div hidden=\"\"><!--$--><!--/$--></div><div style=\"font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;display:flex;align-items:center;justify-content:center\"><div style=\"margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left\"><svg width=\"32\" height=\"32\" viewBox=\"-0.2 -1.5 32 32\" fill=\"none\" style=\"margin-bottom:24px\"><path d=\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\" fill=\"var(--next-error-title)\"></path></svg><h1 style=\"font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)\">This page couldn’t load</h1><p style=\"font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)\">A server error occurred. Reload to try again.</p><form style=\"margin:0\"><button type=\"submit\" style=\"display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)\">Reload</button></form></div></div><!--$--><!--/$--><script src=\"/_next/static/chunks/3drpmcjhmx9ln.js\" id=\"_R_\" async=\"\"></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,\"1:\\\"$Sreact.fragment\\\"\\n2:I[646713,[\\\"/_next/static/chunks/2yppsn3dp7d8f.js\\\",\\\"/_next/static/chunks/2626k24nw7-_6.js\\\"],\\\"default\\\"]\\n3:I[590324,[\\\"/_next/static/chunks/2yppsn3dp7d8f.js\\\",\\\"/_next/static/chunks/2626k24nw7-_6.js\\\"],\\\"default\\\"]\\n4:I[191384,[\\\"/_next/static/chunks/2yppsn3dp7d8f.js\\\",\\\"/_next/static/chunks/2626k24nw7-_6.js\\\"],\\\"OutletBoundary\\\"]\\n5:\\\"$Sreact.suspense\\\"\\n8:I[191384,[\\\"/_next/static/chunks/2yppsn3dp7d8f.js\\\",\\\"/_next/static/chunks/2626k24nw7-_6.js\\\"],\\\"ViewportBoundary\\\"]\\na:I[191384,[\\\"/_next/static/chunks/2yppsn3dp7d8f.js\\\",\\\"/_next/static/chunks/2626k24nw7-_6.js\\\"],\\\"MetadataBoundary\\\"]\\nc:I[213970,[\\\"/_next/static/chunks/2yppsn3dp7d8f.js\\\",\\\"/_next/static/chunks/2626k24nw7-_6.js\\\"],\\\"default\\\",1]\\n\"])</script><script>self.__next_f.push([1,\"0:{\\\"P\\\":null,\\\"c\\\":[\\\"\\\",\\\"_global-error\\\"],\\\"q\\\":\\\"\\\",\\\"i\\\":false,\\\"f\\\":[[[\\\"\\\",{\\\"children\\\":[\\\"__PAGE__\\\",{}]}],[[\\\"$\\\",\\\"$1\\\",\\\"c\\\",{\\\"children\\\":[null,[\\\"$\\\",\\\"$L2\\\",null,{\\\"parallelRouterKey\\\":\\\"children\\\",\\\"error\\\":\\\"$undefined\\\",\\\"errorStyles\\\":\\\"$undefined\\\",\\\"errorScripts\\\":\\\"$undefined\\\",\\\"template\\\":[\\\"$\\\",\\\"$L3\\\",null,{}],\\\"templateStyles\\\":\\\"$undefined\\\",\\\"templateScripts\\\":\\\"$undefined\\\",\\\"notFound\\\":\\\"$undefined\\\",\\\"forbidden\\\":\\\"$undefined\\\",\\\"unauthorized\\\":\\\"$undefined\\\"}]]}],{\\\"children\\\":[[\\\"$\\\",\\\"$1\\\",\\\"c\\\",{\\\"children\\\":[[\\\"$\\\",\\\"html\\\",null,{\\\"id\\\":\\\"__next_error__\\\",\\\"children\\\":[[\\\"$\\\",\\\"head\\\",null,{\\\"children\\\":[[\\\"$\\\",\\\"title\\\",null,{\\\"children\\\":\\\"500: This page couldn’t load\\\"}],[\\\"$\\\",\\\"style\\\",null,{\\\"dangerouslySetInnerHTML\\\":{\\\"__html\\\":\\\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\\\"}}]]}],[\\\"$\\\",\\\"body\\\",null,{\\\"children\\\":[\\\"$\\\",\\\"div\\\",null,{\\\"style\\\":{\\\"fontFamily\\\":\\\"system-ui,\\\\\\\"Segoe UI\\\\\\\",Roboto,Helvetica,Arial,sans-serif,\\\\\\\"Apple Color Emoji\\\\\\\",\\\\\\\"Segoe UI Emoji\\\\\\\"\\\",\\\"height\\\":\\\"100vh\\\",\\\"display\\\":\\\"flex\\\",\\\"alignItems\\\":\\\"center\\\",\\\"justifyContent\\\":\\\"center\\\"},\\\"children\\\":[\\\"$\\\",\\\"div\\\",null,{\\\"style\\\":{\\\"marginTop\\\":\\\"-32px\\\",\\\"maxWidth\\\":\\\"325px\\\",\\\"padding\\\":\\\"32px 28px\\\",\\\"textAlign\\\":\\\"left\\\"},\\\"children\\\":[[\\\"$\\\",\\\"svg\\\",null,{\\\"width\\\":\\\"32\\\",\\\"height\\\":\\\"32\\\",\\\"viewBox\\\":\\\"-0.2 -1.5 32 32\\\",\\\"fill\\\":\\\"none\\\",\\\"style\\\":{\\\"marginBottom\\\":\\\"24px\\\"},\\\"children\\\":[\\\"$\\\",\\\"path\\\",null,{\\\"d\\\":\\\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\\\",\\\"fill\\\":\\\"var(--next-error-title)\\\"}]}],[\\\"$\\\",\\\"h1\\\",null,{\\\"style\\\":{\\\"fontSize\\\":\\\"24px\\\",\\\"fontWeight\\\":500,\\\"letterSpacing\\\":\\\"-0.02em\\\",\\\"lineHeight\\\":\\\"32px\\\",\\\"margin\\\":\\\"0 0 12px 0\\\",\\\"color\\\":\\\"var(--next-error-title)\\\"},\\\"children\\\":\\\"This page couldn’t load\\\"}],[\\\"$\\\",\\\"p\\\",null,{\\\"style\\\":{\\\"fontSize\\\":\\\"14px\\\",\\\"fontWeight\\\":400,\\\"lineHeight\\\":\\\"21px\\\",\\\"margin\\\":\\\"0 0 20px 0\\\",\\\"color\\\":\\\"var(--next-error-message)\\\"},\\\"children\\\":\\\"A server error occurred. Reload to try again.\\\"}],[\\\"$\\\",\\\"form\\\",null,{\\\"style\\\":{\\\"margin\\\":0},\\\"children\\\":[\\\"$\\\",\\\"button\\\",null,{\\\"type\\\":\\\"submit\\\",\\\"style\\\":{\\\"display\\\":\\\"inline-flex\\\",\\\"alignItems\\\":\\\"center\\\",\\\"justifyContent\\\":\\\"center\\\",\\\"height\\\":\\\"32px\\\",\\\"padding\\\":\\\"0 12px\\\",\\\"fontSize\\\":\\\"14px\\\",\\\"fontWeight\\\":500,\\\"lineHeight\\\":\\\"20px\\\",\\\"borderRadius\\\":\\\"6px\\\",\\\"cursor\\\":\\\"pointer\\\",\\\"color\\\":\\\"var(--next-error-btn-text)\\\",\\\"background\\\":\\\"var(--next-error-btn-bg)\\\",\\\"border\\\":\\\"var(--next-error-btn-border)\\\"},\\\"children\\\":\\\"Reload\\\"}]}]]}]}]}]]}],null,[\\\"$\\\",\\\"$L4\\\",null,{\\\"children\\\":[\\\"$\\\",\\\"$5\\\",null,{\\\"name\\\":\\\"Next.MetadataOutlet\\\",\\\"children\\\":\\\"$@6\\\"}]}]]}],{},null,false,null]},null,false,\\\"$@7\\\"],[\\\"$\\\",\\\"$1\\\",\\\"h\\\",{\\\"children\\\":[null,[\\\"$\\\",\\\"$L8\\\",null,{\\\"children\\\":\\\"$L9\\\"}],[\\\"$\\\",\\\"div\\\",null,{\\\"hidden\\\":true,\\\"children\\\":[\\\"$\\\",\\\"$La\\\",null,{\\\"children\\\":[\\\"$\\\",\\\"$5\\\",null,{\\\"name\\\":\\\"Next.Metadata\\\",\\\"children\\\":\\\"$Lb\\\"}]}]}],[\\\"$\\\",\\\"meta\\\",null,{\\\"name\\\":\\\"next-size-adjust\\\",\\\"content\\\":\\\"\\\"}]]}],false]],\\\"m\\\":\\\"$undefined\\\",\\\"G\\\":[\\\"$c\\\",[]],\\\"S\\\":true,\\\"h\\\":null,\\\"s\\\":\\\"$undefined\\\",\\\"l\\\":\\\"$undefined\\\",\\\"p\\\":\\\"$undefined\\\",\\\"d\\\":\\\"$undefined\\\",\\\"b\\\":\\\"sGrtuJLQm2artu6oSgWPT\\\"}\\n\"])</script><script>self.__next_f.push([1,\"d:[]\\n7:\\\"$Wd\\\"\\n\"])</script><script>self.__next_f.push([1,\"9:[[\\\"$\\\",\\\"meta\\\",\\\"0\\\",{\\\"charSet\\\":\\\"utf-8\\\"}],[\\\"$\\\",\\\"meta\\\",\\\"1\\\",{\\\"name\\\":\\\"viewport\\\",\\\"content\\\":\\\"width=device-width, initial-scale=1\\\"}]]\\n\"])</script><script>self.__next_f.push([1,\"6:null\\nb:[]\\n\"])</script></body></html>","rsc":"1:\"$Sreact.fragment\"\n2:I[646713,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"default\"]\n3:I[590324,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"default\"]\n4:I[191384,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[191384,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"ViewportBoundary\"]\na:I[191384,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"MetadataBoundary\"]\nc:I[213970,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"default\",1]\n0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"sGrtuJLQm2artu6oSgWPT\"}\nd:[]\n7:\"$Wd\"\n9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n6:null\nb:[]\n","segmentData":{"/_tree":"0:{\"tree\":{\"name\":\"\",\"param\":null,\"prefetchHints\":0,\"slots\":{\"children\":{\"name\":\"__PAGE__\",\"param\":null,\"prefetchHints\":0,\"slots\":null}}},\"staleTime\":300,\"buildId\":\"sGrtuJLQm2artu6oSgWPT\"}\n","/_full":"1:\"$Sreact.fragment\"\n2:I[646713,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"default\"]\n3:I[590324,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"default\"]\n4:I[191384,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[191384,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"ViewportBoundary\"]\na:I[191384,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"MetadataBoundary\"]\nc:I[213970,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"default\",1]\n0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"sGrtuJLQm2artu6oSgWPT\"}\nd:[]\n7:\"$Wd\"\n9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n6:null\nb:[]\n","/__PAGE__":"1:\"$Sreact.fragment\"\n2:I[191384,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"OutletBoundary\"]\n3:\"$Sreact.suspense\"\n0:{\"rsc\":[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$3\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@4\"}]}]]}],\"isPartial\":false,\"staleTime\":300,\"varyParams\":null,\"buildId\":\"sGrtuJLQm2artu6oSgWPT\"}\n4:null\n","/_index":"1:\"$Sreact.fragment\"\n2:I[646713,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"default\"]\n3:I[590324,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"default\"]\n4:[]\n0:{\"rsc\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"template\":[\"$\",\"$L3\",null,{}]}]]}],\"isPartial\":false,\"staleTime\":300,\"varyParams\":\"$W4\",\"buildId\":\"sGrtuJLQm2artu6oSgWPT\"}\n","/_head":"1:\"$Sreact.fragment\"\n2:I[191384,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"ViewportBoundary\"]\n3:I[191384,[\"/_next/static/chunks/2yppsn3dp7d8f.js\",\"/_next/static/chunks/2626k24nw7-_6.js\"],\"MetadataBoundary\"]\n4:\"$Sreact.suspense\"\n0:{\"rsc\":[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L2\",null,{\"children\":[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$4\",null,{\"name\":\"Next.Metadata\",\"children\":[]}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],\"isPartial\":false,\"staleTime\":300,\"varyParams\":null,\"buildId\":\"sGrtuJLQm2artu6oSgWPT\"}\n"}}
|