import{l as n,d as k,r as f,e as u,u as g,o as r,f as v,s as o,n as p,g as F,h as O,i as Bt,j as I,k as pt,p as ht,m as Vt,q as Gt,t as mt,v as Yt,w as ye,x as qe,y as ot,M as ge,z as Zt,A as Xt,B as nt}from"./entry-DGV85QaO.js";import"./_virtual_mf___mfe_internal__com_mf_3_picsart_mf_3_idea_mf_2_to_mf_2_3d__mf_owner__258085600416845__loadShare__shared-k02NdQm7.js";import"./vite-preload-helper-BXl3LOEh.js";import"./pluggableService-DuCRy89Q.js";import"./_commonjsHelpers-DaWZu8wl.js";async function es({host:i,agent:e,capturedThreadId:t}){const s=e.threadId||"default",a=t||"default";return s===a?i.runAgent({agent:e}):(console.warn(`[MCPAppsRenderer] ui/message follow-up dropped: the thread changed (${a} → ${s}) between enqueue and execution, so running it would leak into the now-foreground thread.`),{result:void 0,newMessages:[]})}function ts(i){const e="'self' 'wasm-unsafe-eval' 'unsafe-inline' 'unsafe-eval' blob: data: http://localhost:* https://localhost:*",t="* blob: data: http://localhost:* https://localhost:*",s=i?.length?" "+i.join(" "):"";return`