1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,571182,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(618566);e.i(513036);var s=e.i(768402),n=e.i(347250),i=e.i(33851),o=e.i(731320),l=e.i(632210),d=e.i(640366),c=e.i(603333),u=e.i(539950),m=e.i(599486),f=e.i(649449),g=e.i(163753),p=e.i(566730),x=e.i(942944),h=e.i(516516),b=e.i(944266),w=e.i(857177),y=e.i(833221),v=e.i(618789),j=e.i(700327),k=e.i(119346),S=e.i(211746);function N({platform:e,entityType:r,isVerified:a}){let s=r?.includes("company");return(0,t.jsxs)("div",{className:"flex items-center gap-1",children:["twitter"===e?(0,t.jsxs)(v.Badge,{className:"border-transparent bg-foreground text-background",children:[(0,t.jsx)(b.Twitter,{size:12}),"X"]}):(0,t.jsxs)(v.Badge,{className:"border-transparent text-white",style:{backgroundColor:S.LINKEDIN_BLUE},children:[(0,t.jsx)(h.Linkedin,{size:12}),"LinkedIn"]}),s&&(0,t.jsxs)(v.Badge,{variant:"outline",children:[(0,t.jsx)(j.Building2,{size:12}),"Company"]}),a&&(0,t.jsx)(v.Badge,{variant:"info","aria-label":"Verified",children:(0,t.jsx)(k.BadgeCheck,{size:12})})]})}let T="rounded-2xl border border-border bg-card";function E(){let e=(0,a.useRouter)(),{token:v,authenticated:j}=(0,w.useAuth)(),k=(e,t,r="info")=>(0,o.toast)({title:e,description:t,tone:"error"===r?"destructive":r}),[S,E]=(0,r.useState)([]),[$,P]=(0,r.useState)(!0),[B,I]=(0,r.useState)(""),[_,A]=(0,r.useState)("linkedin"),[C,F]=(0,r.useState)(!1),[z,U]=(0,r.useState)(null),[L,D]=(0,r.useState)(""),[R,O]=(0,r.useState)(null),M=(0,r.useCallback)(async()=>{if(!j)return void P(!1);P(!0);try{let e=await (0,y.fetchBoards)({userToken:v});e.success?E(e.boards):k("Error loading boards",e.error||"Failed to load boards","error")}catch(e){k("Error loading boards",String(e),"error")}P(!1)},[v,j]);(0,r.useEffect)(()=>{M()},[M]);let K=async()=>{if(!B.trim())return void k("Please enter a board name",void 0,"warning");F(!0);try{let e=await (0,y.createBoard)({name:B.trim(),platform:_},{userToken:v});e.success?(E(t=>[...t,e.board]),I(""),A("linkedin"),k("Board created",`"${e.board.name}" has been created`,"success")):k("Error creating board",e.error||"Failed to create board","error")}catch(e){k("Error creating board",String(e),"error")}F(!1)},X=async e=>{if(!L.trim())return void k("Please enter a board name",void 0,"warning");try{let t=await (0,y.updateBoard)(e,{name:L.trim()},{userToken:v});t.success?(E(t=>t.map(t=>t.board_id===e?{...t,name:L.trim()}:t)),U(null),D(""),k("Board updated","Board name has been updated","success")):k("Error updating board",t.error||"Failed to update board","error")}catch(e){k("Error updating board",String(e),"error")}},V=async e=>{O(e);try{let t=await (0,y.deleteBoard)(e,{userToken:v});t.success?(E(t=>t.filter(t=>t.board_id!==e)),k("Board deleted","Board has been deleted","success")):k("Error deleting board",t.error||"Failed to delete board","error")}catch(e){k("Error deleting board",String(e),"error")}O(null)},G=()=>{U(null),D("")};return j?$?(0,t.jsx)(d.default,{appName:"socialboard",activeNav:"Apps",children:(0,t.jsx)("div",{className:"flex min-h-[400px] items-center justify-center",children:(0,t.jsx)(n.Spinner,{size:"lg",label:"Loading your boards"})})}):(0,t.jsx)(d.default,{appName:"socialboard",activeNav:"Apps",children:(0,t.jsxs)("div",{className:"mx-auto max-w-[1440px] px-4 py-6 md:px-6 md:py-10",children:[(0,t.jsx)(l.default,{appName:"SocialBoard",items:[{key:"boards",label:"My Boards",isActive:!0}]}),(0,t.jsx)("div",{className:"h-6"}),(0,t.jsxs)("div",{className:`${T}
1 mb-6 p-6`,children:[(0,t.jsx)("h2",{className:"m-0 mb-4 text-lg font-semibold text-foreground",children:"Create New Board"}),(0,t.jsxs)("div",{className:"mb-3 flex flex-wrap items-center gap-2",children:[(0,t.jsxs)(s.Button,{variant:"linkedin"===_?"primary":"secondary",onPress:()=>A("linkedin"),children:[(0,t.jsx)(h.Linkedin,{size:14}),"LinkedIn Board"]}),(0,t.jsxs)(s.Button,{variant:"twitter"===_?"primary":"secondary",onPress:()=>A("twitter"),children:[(0,t.jsx)(b.Twitter,{size:14}),"X/Twitter Board"]})]}),(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(i.TextField,{"aria-label":"Board name",placeholder:"Enter board name...",value:B,onChange:I,onKeyDown:e=>{"Enter"===e.key&&K()},className:"flex-1"}),(0,t.jsxs)(s.Button,{onPress:K,isDisabled:C,className:"shrink-0",children:[C?(0,t.jsx)(n.Spinner,{size:"sm",className:"text-current",label:"Creating board"}):(0,t.jsx)(c.Plus,{size:18}),C?"Creatingâ¦":"Create Board"]})]})]}),0===S.length?(0,t.jsxs)("div",{className:`${T} p-8 text-center`,children:[(0,t.jsx)(u.Users,{size:48,className:"mx-auto mb-4 text-muted-foreground"}),(0,t.jsx)("h2",{className:"m-0 mb-2 text-lg font-semibold text-foreground",children:"No boards yet"}),(0,t.jsx)("p",{className:"m-0 text-muted-foreground",children:"Create your first board to start tracking social media followers."})]}):(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:S.map(r=>(0,t.jsx)("div",{className:`${T} p-5 transition-colors hover:border-border-strong`,children:z===r.board_id?(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(i.TextField,{"aria-label":"Board name",value:L,onChange:D,onKeyDown:e=>{"Enter"===e.key&&X(r.board_id),"Escape"===e.key&&G()},autoFocus:!0}),(0,t.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,t.jsx)(s.Button,{variant:"quiet",onPress:G,children:"Cancel"}),(0,t.jsx)(s.Button,{onPress:()=>X(r.board_id),children:"Save"})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mb-3 flex items-start justify-between gap-2",children:[(0,t.jsx)("h3",{className:"m-0 min-w-0 truncate text-base font-semibold text-foreground",children:r.name}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[(0,t.jsx)(s.Button,{variant:"quiet","aria-label":`Edit ${r.name}`,onPress:()=>{U(r.board_id),D(r.name)},children:(0,t.jsx)(m.Pencil,{size:14})}),(0,t.jsx)(s.Button,{variant:"quiet","aria-label":`Delete ${r.name}`,onPress:()=>V(r.board_id),isDisabled:R===r.board_id,className:"text-muted-foreground hover:text-destructive",children:R===r.board_id?(0,t.jsx)(n.Spinner,{size:"sm",className:"text-current",label:"Deleting board"}):(0,t.jsx)(f.Trash2,{size:14})})]})]}),(0,t.jsx)("div",{className:"mb-3",children:(0,t.jsx)(N,{platform:r.platform})}),(0,t.jsxs)("p",{className:"m-0 mb-4 text-sm text-muted-foreground",children:["Created"," ",new Date(r.created_at).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)(s.Button,{variant:"secondary",className:"flex-1",onPress:()=>e.push(`/socialboard/manage/${r.socialboard_id}`),children:[(0,t.jsx)(p.Settings,{size:14}),"Manage"]}),(0,t.jsxs)(s.Button,{className:"flex-1",onPress:()=>e.push(`/socialboard/view/${r.socialboard_id}`),children:[(0,t.jsx)(g.Eye,{size:14}),"View"]}
1)]})]})},r.board_id))})]})}):(0,t.jsx)(d.default,{appName:"socialboard",activeNav:"Apps",children:(0,t.jsxs)("div",{className:"mx-auto max-w-[1440px] px-4 py-6 md:px-6 md:py-10",children:[(0,t.jsx)(l.default,{appName:"SocialBoard",items:[{key:"boards",label:"My Boards",isActive:!0}]}),(0,t.jsx)("div",{className:"h-6"}),(0,t.jsxs)("div",{className:`${T} p-8 text-center`,children:[(0,t.jsx)(x.BarChart3,{size:48,className:"mx-auto mb-4 text-muted-foreground"}),(0,t.jsx)("h2",{className:"m-0 mb-2 text-2xl font-semibold text-foreground",children:"Sign in to view your boards"}),(0,t.jsx)("p",{className:"m-0 text-muted-foreground",children:"Create and manage social media leaderboards to track follower growth."})]})]})})}e.s(["default",0,function(){return(0,t.jsx)(E,{})}],571182)},632210,e=>{"use strict";var t=e.i(843476),r=e.i(785305);function a({item:e}){let{label:r,isActive:s,isDisabled:n,onClick:i}=e;return(0,t.jsx)("button",{type:"button",onClick:n?void 0:i,disabled:n,"aria-current":s?"page":void 0,className:`relative border-none bg-transparent px-0.5 pb-4 pt-3.5 text-left font-sans text-[14.5px] leading-[1.2] tracking-[-0.005em] transition-colors duration-150 ease-out md:text-[15px] ${s?'font-semibold text-foreground after:absolute after:inset-x-0 after:-bottom-px after:h-[2.5px] after:rounded-t-sm after:bg-primary after:content-[""]':"font-medium text-muted-foreground"} ${n?"pointer-events-none cursor-not-allowed opacity-50":"cursor-pointer hover:text-foreground"}`,children:r})}e.s(["default",0,function({appName:e,tagline:s,badge:n,items:i,rightSlot:o,icon:l}){let d=i.length;return(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsxs)("div",{className:"flex flex-col items-start justify-between gap-4 md:flex-row md:items-center md:gap-6",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-3 gap-y-2.5 md:gap-5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[l?(0,t.jsx)("div",{className:"text-foreground",children:l}):(0,t.jsx)(r.default,{size:24,className:"shrink-0 text-primary"}),(0,t.jsx)("h1",{className:"m-0 text-[28px] font-medium leading-none tracking-[-0.02em] text-foreground md:text-[34px]",style:{fontFamily:"Georgia, 'Times New Roman', serif"},children:e}),n&&(0,t.jsx)("span",{className:"inline-block rounded-full bg-foreground px-2.5 py-1 text-xs font-semibold lowercase leading-none tracking-[0.04em] text-background",children:n})]}),s&&(0,t.jsx)("div",{className:"flex flex-col gap-0.5 border-l-[3px] border-primary py-1.5 pl-3.5",children:(0,t.jsx)("p",{className:"m-0 max-w-[480px] text-sm font-medium leading-[1.35] text-muted-foreground md:text-[14.5px]",children:s})})]}),o&&(0,t.jsx)("div",{className:"flex items-center gap-3 self-start md:self-center",children:o})]}),d>0&&(0,t.jsx)("div",{className:"mt-5 flex flex-wrap gap-5 border-b border-border md:mt-7 md:gap-10",children:i.map(e=>(0,t.jsx)(a,{item:e},e.key))})]})}])},640366,e=>{"use strict";var t=e.i(843476),r=e.i(843350),a=e.i(155913),s=e.i(940857),n=e.i(391021);let i={wide:"var(--w-wide)",default:"var(--w-default)",prose:"var(--w-prose)"};e.s(["default",0,function({children:e,width:o="wide",showFooter:l=!0,footerText:d,title:c,parents:u,onParentNavigate:m,headed:f}){return(0,t.jsxs)("div",{className:"connect-app",style:{"--page-measure":i[o]},children:[(0,t.jsx)(a.default,{}),(0,t.jsx)(s.default,{}),(0,t.jsx)(n.default,{}),(0,t.jsx)(r.default,{showFooter:l,footerText:d,title:c,parents:u,onParentNavigate:m,headed:f,children:e})]})}])},155913,29620,e=>{"use strict";var t=e.i(843476),r=e.i(230726),a=e.i(271645),s=e.i(835362),n=e.i(109509);e.i(513036);var i=e.i(347250),o=e.i(689605),l=e.i(921110),d=e.i(439563),c=e.i(412570),u=e.i(342498),m=e.i(75456);let f="youspot:pending-prompt",g="youspot:pending-prompt-source";function p(){try{return!!sessionStorage.getItem(f)}catch{return!1}}e.s(["hasPendingPrompt",0,p,"setPendingPrompt",0,function(e,t="landing_replay"){sessionStorage.setItem(f,e),sessionStorage.setItem(g,t),(0,u.rememberSignedUpViaChat)()},"takePendingPrompt",0,function(){let e=sessionStorage.getItem(f);if(!e)return null;let t=(0,m.parsePromptSource)(sessionStorage.getItem(g))??"landing_replay";return sessionStorage.removeItem(f),sessionStorage.removeItem(g),{text:e,source:t}}],29620);var x=e.i(841702),h=e.i(389760),b=e.i(148810);let w=e=>new Promise(t=>setTimeout(t,e)),y=[1e3,2e3,4e3,8e3,15e3,3e4,3e4,6e4,6e4,6e4],v=[500,1500],j=new Set([408,429]),k=/^[a-z_]{1,64}$/;function S(){let{isLoaded:e,isSignedIn:r,getToken:u,signOut:m}=(0,s.useAuth)(),{user:f}=(0,n.useUser)(),g=(0,a.useRef)(null),S=(0,a.useRef)(null),N=(0,a.useRef)(!1),T=(0,a.useRef)(!1),E=(0,b.useSessionStore)(e=>e.setClerkSync),$=(0,b.useSessionStore)(e=>e.syncSlow);return((0,a.useEffect)(()=>
1{if(!e||(T.current=!1,S.current=r?f?.id??null:null,E({clerkSignedIn:!!r,syncing:!1,syncFailed:!!r&&void 0,syncOwed:!1}),"1"===window.localStorage.getItem("impersonating")||x.DEV_SESSION.present()))return;if(!r){let e=x.AUTH_HINT.present()||!!window.localStorage.getItem("user_token");if(e&&N.current){window.localStorage.removeItem("user_token"),window.localStorage.removeItem("user_email"),o.api.authSession.end().catch(()=>{}),window.dispatchEvent(new CustomEvent("agentai-clear-auth"));return}e&&(0,h.refreshSession)(void 0,!1).catch(()=>{});return}if(N.current=!0,!f?.id||g.current===f.id)return;if(x.AUTH_HINT.present()){"1"===window.localStorage.getItem("agentai_logged_out")&&(window.localStorage.removeItem("agentai_logged_out"),window.dispatchEvent(new CustomEvent("agentai-auth-updated")));return}let t=f.id;g.current=t;let a=()=>T.current||S.current!==t;E({clerkSignedIn:!0,syncing:!0,syncFailed:!1,syncOwed:!0,syncSlow:!1});let s=async e=>{a()||(E({clerkSignedIn:!0,syncing:!1,syncFailed:!0,syncSlow:!1}),await m({redirectUrl:function(e){let{pathname:t,search:r}=window.location,a=t.startsWith("/sign-in")||t.startsWith("/sign-up")?new URLSearchParams(r).get("redirect_url"):`${t}${r}`,s=new URLSearchParams({reason:e});return a&&s.set("redirect_url",a),`/sign-in?${s}`}(e)}))};return(async()=>{let e=0,r=0;try{for(let t=0;;t++){if(a())return;let n=null;try{await o.api.authSession.exchange({entry_source:(0,d.getEntrySource)(),signed_up_via_chat:p(),signup_source_url:(0,c.getSignupSourceUrl)(),attempt:t})}catch(e){if(!(e instanceof l.ApiError))throw e;n=e}if(a())return;if(!n){window.localStorage.removeItem("agentai_logged_out"),E({clerkSignedIn:!0,syncing:!1,syncFailed:!1,syncSlow:!1}),window.dispatchEvent(new CustomEvent("agentai-auth-updated"));return}let{status:i,code:m}=n;if(0===i||i>=500||j.has(i)){if(e>=y.length)return void await s("unavailable");e>=3&&E({clerkSignedIn:!0,syncing:!0,syncSlow:!0}),await w(y[e++]);continue}if(401===i){if(r<v.length){await w(v[r++]),await u({skipCache:!0}).catch(()=>null);continue}await s("session_expired");return}await s(m&&k.test(m)?m:"sign_in_failed");return}}finally{g.current===t&&(g.current=null,E({clerkSignedIn:!0,syncing:!1,syncOwed:!1}))}})(),()=>{T.current=!0}},[e,r,f?.id,E,u,m]),$)?(0,t.jsxs)("div",{className:"pointer-events-none fixed bottom-4 right-4 z-50 flex items-center gap-2 rounded-full border border-border bg-card px-3 py-1.5 text-xs text-muted-foreground shadow-sm",children:[(0,t.jsx)(i.Spinner,{size:"sm",label:"Reconnecting"}),(0,t.jsx)("span",{children:"Reconnecting..."})]}):null}e.s(["default",0,function(){return"clerk"===(0,r.useAuthMode)()?(0,t.jsx)(S,{}):null}],155913)},940857,e=>{"use strict";var t=e.i(271645),r=e.i(618566);let a=["textbox","combobox","searchbox"];function s(e){if(!(e instanceof Element))return!1;let t=e.tagName;return"INPUT"===t||"TEXTAREA"===t||"SELECT"===t||e.isContentEditable||a.includes(e.getAttribute("role")||"")||t.includes("-")}let n=new Map,i={g:"/graph",c:"/chat",f:"/feed"};e.s(["default",0,function(){let e=(0,r.useRouter)(),a=(0,t.useRef)(0);return(0,t.useEffect)(()=>{let t=t=>{var r;if(t.metaKey||t.ctrlKey||t.altKey||t.defaultPrevented||t.isComposing||function(e){let t=e.composedPath()[0],r=document.activeElement;for(;r?.shadowRoot?.activeElement;)r=r.shadowRoot.activeElement;return s(t)||s(r)}(t))return;let o=Date.now()<a.current;if(o&&i[t.key]){a.current=0,t.preventDefault(),e.push(i[t.key]);return}let l=o?(r=t.key,n.get(r)):void 0;if(l){a.current=0,t.preventDefault(),l();return}a.current="g"!==t.key||o?0:Date.now()+800};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[e]),null}],940857)},391021,e=>{"use strict";var t=e.i(843476),r=e.i(728864);e.s(["default",0,function(){let{active:e,email:a}=(0,r.useImpersonation)();return e?(0,t.jsxs)("div",{className:"impersonation-bar",children:[(0,t.jsx)("style",{children:` 2 .impersonation-bar{display:flex; align-items:center; justify-content:center; gap:14px; 3 flex-wrap:wrap; background:#B45309; color:#FFF7ED; font-size:13px; font-weight:600; 4 padding:7px 16px; position:sticky; top:0; z-index:40; text-align:center} 5 .impersonation-bar button{background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.35); 6 color:#FFF7ED; font:inherit; font-size:12px; padding:3px 10px; border-radius:6px; cursor:pointer} 7 .impersonation-bar button:hover{background:rgba(255,255,255,.28)} 8 `}),(0,t.jsxs)("span",{children:["Viewing as ",(0,t.jsx)("strong",{children:a||"another user"})," â not your own account"]}),(0,t.jsx)("button",{type:"button",onClick:()=>(0,r.stopImpersonating)(),children:"Stop impersonating"})]}):null}])},843350,e=>{"use strict";var t=e.i(843476),r=e.i(402485),a=e.i(587728),s=e.i(825241),n=e.i(522016);e.i(513036);var i=e.i(626788),o=e.i(578380);let l=[{title:"Product",links:o.FOOTER_PRODUCT_LINKS},{title:"Company",links:[o.DOCS_LINK,{label:"Brand",href:"/brand"},{label:"Security",href:"/security"}]},{title:"Legal",links:[{label:"Privacy",href:"/privacy"},{label:"Terms",href:"/terms"},{label:"SMS terms",href:"/terms/sms"}]}];function d({footerText:e}){return(0,t.jsx)(i.SiteFooter,{groups:l,link:n.default,credit:e})}e.s(["default",0,function({children:e,showFooter:n=!0,footerText:i,title:l,parents:c,onParentNavigate:u,headed:m}){(0,s.useSetPageTitle)(l,c,m,u);let f=(0,a.useShellMounted)(),g=(0,o.isPublicPage)((0,r.usePagePathname)()),p=f&&!g;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("main",{className:"connect-main flex-1",style:p?{"--page-measure":"var(--w-wide)"}:void 0,children:e}),n&&(!f||g)&&(0,t.jsx)(d,{footerText:i})]})}],843350)},785305,e=>{"use strict";var t=e.i(843476),r=e.i(402485),a=e.i(578380);e.s(["default",0,function({size:e,className:s}){let n=(0,a.iconForPath)((0,r.usePagePathname)());return n?(0,t.jsx)(n,{size:e,className:s,"aria-hidden":!0}):null}])},211746,e=>{"use strict";e.s(["LINKEDIN_BLUE",0,"#0A66C2","LINKEDIN_BLUE_HOVER",0,"#004182"])},833221,e=>{"use strict";let t=e.i(661704).clientSettings.apiBaseUrl,r=e=>{if(!e.startsWith("/"))throw Error(`API path must start with "/": received "${e}"`);return`${t}${e}`},a={"Content-Type":"application/json",Accept:"application/json"};async function s(e){let t=r("/socialboard/api/boards"),s=await fetch(t,{method:"GET",headers:{...a,...e?.userToken?{"X-AgentAI-User-Token":e.userToken}:{}},credentials:"include",signal:e?.signal});if(!s.ok){let e=await s.text();throw Error(`Failed to fetch boards: ${s.status} ${s.statusText} - ${e}`)}return await s.json()}async function n(e,t){let s=r("/socialboard/api/boards"),n=await fetch(s,{method:"POST",headers:{...a,...t?.userToken?{"X-AgentAI-User-Token":t.userToken}:{}},body:JSON.stringify(e),credentials:"include",signal:t?.signal});if(!n.ok){let e=await n.text();throw Error(`Failed to create board: ${n.status} ${n.statusText} - ${e}`)}return await n.json()}async function i(e,t,s){let n=r(`/socialboard/api/boards/${e}`),i=await fetch(n,{method:"PUT",headers:{...a,...s?.userToken?{"X-AgentAI-User-Token":s.userToken}:{}},body:JSON.stringify(t),credentials:"include",signal:s?.signal});if(!i.ok){let e=await i.text();throw Error(`Failed to update board: ${i.status} ${i.statusText} - ${e}`)}return await i.json()}async function o(e,t){let s=r(`/socialboard/api/boards/${e}`),n=await fetch(s,{method:"DELETE",headers:{...a,...t?.userToken?{"X-AgentAI-User-Token":t.userToken}:{}},credentials:"include",signal:t?.signal});if(!n.ok){let e=await n.text();throw Error(`Failed to delete board: ${n.status} ${n.statusText} - ${e}`)}return await n.json()}async function l(e,t){let s=r(`/socialboard/api/boards/${e}/profiles`),n=await fetch(s,{method:"GET",headers:{...a,...t?.userToken?{"X-AgentAI-User-Token":t.userToken}:{}},credentials:"include",signal:t?.signal});if(!n.ok){let e=await n.text();throw Error(`Failed to fetch profiles: ${n.status} ${n.statusText} - ${e}`)}return await n.json()}async function d(e,t,s){let n=r(`/socialboard/api/boards/${e}/profiles`),i=await fetch(n,{method:"POST",headers:{...a,...s?.userToken?{"X-AgentAI-User-Token":s.userToken}:{}},body:JSON.stringify(t),credentials:"include",signal:s?.signal}),o=await i.json();if(!i.ok||!o.success)throw Error(o.error||`Failed to add profile: ${i.status} ${i.statusText}`);return o}async function c(e,t){let s=r(`/socialboard/api/profiles/${e}`),n=await fetch(s,{method:"DELETE",headers:{...a,...t?.userToken?{"X-AgentAI-User-Token":t.userToken}:{}},credentials:"include",signal:t?.signal});if(!n.ok){let e=await n.text();throw Error(`Failed to delete profile: ${n.status} ${n.statusText} - ${e}`)}return await n.json()}async function u(e,t){let s=r(`/socialboard/api/boards/${e}/resync`),n=await fetch(s,{method:"POST",headers:{...a,...t?.userToken?{"X-AgentAI-User-Token":t.userToken}:{}},credentials:"include",signal:t?.signal});if(!n.ok){let e=await n.text();throw Error(`Failed to resync profiles: ${n.status} ${n.statusText} - ${e}`)}return await n.json()}async function m(e,t){let s=new URLSearchParams({q:e});t?.type&&s.set("type",t.type);let n=r(`/socialboard/api/search-linkedin?${s.toString()}`),i=await fetch(n,{method:"GET",headers:a,credentials:"include",signal:t?.signal});return i.ok?await i.json():{success:!1,results:[],error:`${i.status} ${i.statusText}`}}async function f(e,t="twitter",s){let n=r("/socialboard/api/resolve-prompt"),i=await fetch(n,{method:"POST",headers:{...a,...s?.userToken?{"X-AgentAI-User-Token":s.userToken}:{}},body:JSON.stringify({prompt:e,platform:t}),credentials:"include",signal:s?.signal});return await i.json()}async function g(e,t){let s=r(`/socialboard/api/view/${e}`),n=await fetch(s,{method:"GET",headers:a,credentials:"include",signal:t?.signal});if(!n.ok){let e=await n.text();throw Error(`Failed to fetch leaderboard: ${n.status} ${n.statusText} - ${e}`)}return await n.json()}async function p(e,t){let s=r(`/socialboard/api/profiles/${e}/history`),n=await fetch(s,{method:"GET",headers:a,credentials:"include",signal:t?.signal});if(!n.ok){let e=await n.text();throw Error(`Failed to fetch profile history: ${n.status} ${n.statusText} - ${e}`)}return await n.json()}e.s(["addProfile",0,d,"createBoard",0,n,"deleteBoard",0,o,"deleteProfile",0,c,"fetchBoardProfiles",0,l,"fetchBoards",0,s,"fetchLeaderboard",0,g,"fetchProfileHistory",0,p,"resolveProfilePrompt",0,f,"resyncProfiles",0,u,"searchLinkedin",0,m,"updateBoard",0,i])},942944,e=>{"use strict";let t=(0,e.i(235884).default)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);e.s(["BarChart3",0,t],942944)},26121,e=>{"use strict";let t=(0,e.i(235884).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["default",0,t])},599486,e=>{"use strict";var t=e.i(26121);e.s(["Pencil",()=>t.default])},944266,e=>{"use strict";let t=(0,e.i(235884).default)("twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);e.s(["Twitter",0,t],944266)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.