1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,825241,e=>{"use strict";var t=e.i(843476),a=e.i(271645);let r={},i=(0,a.createContext)(null);e.s(["PageTitleProvider",0,function({children:e}){let[n,s]=(0,a.useState)(r),u=(0,a.useMemo)(()=>({page:n,setPage:s}),[n]);return(0,t.jsx)(i.Provider,{value:u,children:e})},"usePublishedPage",0,function(){return(0,a.useContext)(i)?.page??r},"useSetPageTitle",0,function(e,t,n,s){let u=(0,a.useContext)(i)?.setPage,o=JSON.stringify(t??[]);(0,a.useEffect)(()=>{if(!u)return;let t=JSON.parse(o);return u({title:e,parents:t.length?t:void 0,headed:n,onParentNavigate:s}),()=>u(r)},[u,e,o,n,s])}])},600133,e=>{"use strict";var t=e.i(843476),a=e.i(522016),r=e.i(402485),i=e.i(694677);e.i(513036);var n=e.i(207675),s=e.i(105180),u=e.i(825241),o=e.i(736690),l=e.i(798021),c=e.i(212225);function h({href:e,...r}){let{onParentNavigate:i}=(0,u.usePublishedPage)();return(0,t.jsx)(a.default,{...r,href:e,onNavigate:t=>{i?.(e)&&t.preventDefault()}})}function p({title:e,parents:a,currentIcon:r,quiet:i}){return 0===a.length&&(i||!e)?null:(0,t.jsx)(n.Breadcrumbs,{variant:"quiet",crumbs:a,current:e,currentIcon:r,link:h})}function d(){let e=(0,o.useBrainCrumbs)();return e?(0,t.jsx)(p,{...e,quiet:0===e.parents.length}):null}function y(){return(0,t.jsx)(p,{...(0,o.usePageStrip)()})}e.s(["BrainPageTrail",0,function(){let e=(0,r.usePagePathname)();return(0,o.isBrainRoute)(e)?(0,t.jsx)("div",{className:"w-full px-4 pt-4 md:px-8",children:(0,t.jsx)(d,{})}):null},"DrawerButton",0,function({className:e}){let{openMobile:a,setOpenMobile:r}=(0,s.useSidebar)();return(0,t.jsx)("button",{type:"button","aria-label":"Open menu","aria-expanded":a,"aria-haspopup":"dialog","data-track-id":c.TRACK_IDS.navSidebarMobile,onClick:()=>r(!0),className:e?`${l.DRAWER_BUTTON} ${e}`:l.DRAWER_BUTTON,children:(0,t.jsx)(i.Menu,{size:20,strokeWidth:1.9,"aria-hidden":"true"})})},"Trail",0,function(){let e=(0,r.usePagePathname)();return(0,o.isBrainRoute)(e)?(0,t.jsx)(d,{}):(0,t.jsx)(y,{})}])},736690,e=>{"use strict";var t=e.i(16205),a=e.i(852834),r=e.i(576053),i=e.i(618566),n=e.i(402485),s=e.i(825241),u=e.i(578380),o=e.i(389517),l=e.i(367e3),c=e.i(845134),h=e.i(318803);e.i(513036);var p=e.i(699009),d=e.i(743412);let y={label:"Second Brain",href:"/brain?view=list",icon:t.Brain},f={label:"Artifacts",href:d.BRAIN_ARTIFACTS_PATH,icon:a.Layers};function g(e){return e.charAt(0).toUpperCase()+e.slice(1)}let b={label:"Chat",href:"/chat",icon:r.MessageSquare};function m(e,t){let a=t[e];return a?[{label:g(a),href:`/brain?view=list&type=${encodeURIComponent(e)}`,icon:(0,l.iconFor)(e)}]:[]}e.s(["isBrainRoute",0,function(e){return!!(e&&("/brain"===e||e.startsWith("/brain/object/")))},"useBrainCrumbs",0,function(){let e=(0,n.usePagePathname)(),a=(0,i.useSearchParams)(),{plurals:u}=(0,o.useObjectTypes)(),k=(0,s.usePublishedPage)(),v=e?.startsWith("/brain/object/")?e.slice(14).split("/")[0]:null,{data:q}=(0,h.useGraphObject)(v??""),j=(0,d.artifactOrigin)(a),P="chat"===j.from?j.thread:null,S=(0,c.useConversationList)(null,!!(v&&P),!1),w=(0,h.useGraphObject)(v&&"template"===j.from?j.template:"");if(v)return function(e,t,a,i){if(!t)return null;let n=t.json_data?.kind;return"studio_template"===t.type&&i.editing&&(0,d.isArtifactKind)(n)?{title:`New ${p.ARTIFACT_REGISTRY[n].noun}`,currentIcon:(0,l.iconFor)(t.type),parents:[y,...m(t.type,a),{label:t.name||e,href:`/brain/object/${encodeURIComponent(e)}`,icon:(0,l.iconFor)(t.type)}]}:{title:t.name||e,currentIcon:(0,l.iconFor)(t.type),parents:function(e,t,{origin:a,threadTitle:i,templateName:n}){return"chat"===a.from?a.thread?[b,{label:i||"Chat thread",href:`/chat?${new URLSearchParams({c:a.thread})}`,icon:r.MessageSquare}]:[b]:"template"===a.from?[y,...m("studio_template",t),{label:n||"Template",href:`/brain/object/${encodeURIComponent(a.template)}`,icon:(0,l.iconFor)("studio_template")}]:(0,d.isArtifactKind)(e.json_data?.artifact_kind)?[y,f]:[y,...m(e.type,t)]}(t,a,i)}}(v,q?.object,u,{origin:j,editing:"edit"===a.get(d.PAGE_MODE_PARAM),threadTitle:S.all.find(e=>e.conversation_id===P)?.title??null,templateName:w.data?.object.name??null});let K=a.get("view");return function(e,a,r,i,n){let s={label:y.label,href:`/brain?view=${e}`,icon:t.Brain};if("shared"===e)return{title:"Shared with me",parents:[y]};if("artifacts"===e)return{title:f.label,parents:[y],currentIcon:f.
1icon};if(r.length>0&&i)return{title:i,parents:[s,...r]};if(!a)return{title:"Second Brain",parents:[],currentIcon:t.Brain};let u=n[a];return{title:u?g(u):a,currentIcon:(0,l.iconFor)(a),parents:[s]}}("network"===K?"graph":K??"list",a.get("type"),k.parents??[],k.title,u)},"usePageStrip",0,function(){let e=(0,n.usePagePathname)(),{title:t,parents:a,headed:r}=(0,s.usePublishedPage)(),i=(0,u.sidebarRowForPath)(e),o=t?{title:t,parents:a??[]}:(0,u.navCrumbsForPath)(e);if(!o)return{title:"",parents:[],quiet:!0};let l=r||o.title===i;return{...o,quiet:l&&0===o.parents.length}}])},798021,e=>{"use strict";let t="text-muted-foreground hover:bg-accent hover:text-foreground flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md no-underline transition-colors duration-(--motion-fast) ease-out",a=`${t} -ml-1 xl:hidden`;e.s(["DRAWER_BUTTON",0,a,"ICON_BUTTON",0,t,"ROW_BUTTON",0,"text-muted-foreground hover:bg-accent hover:text-foreground flex h-8 cursor-pointer items-center gap-2 rounded-md px-2 text-sm transition-colors duration-(--motion-fast) ease-out"])},578380,e=>{"use strict";let t,a,r;var i=e.i(466463),n=e.i(373159),s=e.i(119346),u=e.i(747164),o=e.i(799507),l=e.i(662324),c=e.i(16205),h=e.i(700327),p=e.i(994576),d=e.i(527454),y=e.i(835508),f=e.i(319575),g=e.i(387115),b=e.i(219335),m=e.i(17296),k=e.i(31762),v=e.i(29150),q=e.i(555389),j=e.i(135741),P=e.i(843305),S=e.i(206815),w=e.i(868088),K=e.i(671488),M=e.i(525064),O=e.i(326613),_=e.i(882087),C=e.i(103893),x=e.i(996516),T=e.i(398349),A=e.i(509985),F=e.i(455022),D=e.i(566730),I=e.i(248363),Q=e.i(430704),R=e.i(710459),L=e.i(955201),B=e.i(321432),N=e.i(275332),U=e.i(387200),G=e.i(539950),H=e.i(881356),E=e.i(366617),W=e.i(818825),V=e.i(231192);let z="/about",$={label:"How it works",href:"/how-it-works"},Y={label:"Features",href:"/features"},Z={label:"Use cases",href:"/use-cases"},J={label:"FAQ",href:"/faq"},X={label:"Pricing",href:"/pricing"},ee={label:"Ideas",href:"/ideas"},et={label:"Developers",href:"/docs"},ea=[$,Y,Z,{label:"Compare",href:"/vs"},{label:"Second Brain",href:"/secondbrain"},X,J,{label:"Changelog",href:"/changelog"}],er=[{label:"Chat",href:"/chat",icon:"chat"},{label:"Second Brain",href:"/brain",icon:"brain"}],ei={"/hubspot":j.Import,"/prospectfinder":E.UserSearch,"/brandgrader":s.BadgeCheck,"/brandget":T.Palette,"/chimpgrader":q.Gauge,"/dadjoke":S.Laugh,"/delights":R.Sparkles,"/domainsales":k.Database,"/emaillookup":n.AtSign,"/execbriefing":A.Presentation,"/ghero":_.Mail,"/hubcli":N.Terminal,"/hubcode":g.Code,"/signupagent":H.UserPlus,"/socialboard":U.TrendingUp,"/socialpro":I.Share2,"/views":w.LayoutDashboard},en=(t=new Map(V.TOOL_CARDS.map(e=>[e.href,e.icon])),r=new Set((a=[[{label:"List",href:"/tools"}],[{label:"HubSpot Import",href:"/hubspot"},{label:"GMail Import",href:"/user/integrations/gmail"}],[{label:"Linked Connections",href:"/connections"},{label:"Linked Invitations",href:"/invitations"},{label:"Linked Messages",href:"/linked_messages"},{label:"Linked Posts",href:"/linked_posts"}],[{label:"Company Research",href:"/companyresearch"},{label:"ProspectFinder",href:"/prospectfinder"},{label:"HubGrader",href:"/hubgrader"},{label:"ImageGen",href:"/imagegen"},{label:"DomainValue",href:"/domainvalue"}]].flat().filter(e=>"/tools"!==e.href&&!e.href.startsWith("/user/"))).map(e=>e.href)),[...a.map(e=>({label:e.label,href:e.href,icon:t.get(e.href)??ei[e.href]})),...V.TOOL_CARDS.flatMap(e=>r.has(e.href)?[]:[{label:e.title,href:e.href,icon:e.icon}])]),es={label:V.STUDIO_TOOL_CARD.title,href:V.STUDIO_TOOL_CARD.href,icon:V.STUDIO_TOOL_CARD.icon,flag:"brand_kits"},eu={label:"Apps",href:"/tools",icon:K.LayoutGrid,children:[es,...en]};function eo(e,t){return e.filter(e=>(!e.flag||t.flags[e.flag])&&(!e.adminOnly||t.showAdmin||e.multiSpace&&t.multiSpace||!!(e.accessFlag&&t.flags[e.accessFlag]))).map(e=>e.children?{...e,children:eo(e.children,t)}:e)}let el={Chat:C.MessageCircle,"Second Brain":c.Brain},ec="/chat";function eh(e){return"/"===e||null!==e&&(0,W.pathMatches)(e,ec)}let ep=[{label:"Member directory",href:"/network",icon:x.Network},{label:$.label,href:$.href,icon:F.Route},{label:Y.label,href:Y.href,icon:l.Boxes},{label:Z.label,href:Z.href,icon:B.Telescope},{label:J.label,href:J.href,icon:y.CircleHelp},{label:X.label,href:X.href,icon:L.Tag},{label:ee.label,href:ee.href,icon:O.Lightbulb},{label:"About",href:z,icon:P.Info},{label:et.label,href:et.href,icon:b.Code2},{label:"Support",href:"/support",icon:M.LifeBuoy}],ed={chat:["/user/cloudagents"],brain:["/import","/people","/companies","/user/files","/user/memories"]},ey=[{label:"Personal Profile",href:"/user/profile",icon:f.CircleUser}
1,{label:"Spaces",href:"/user/spaces",icon:h.Building2,adminOnly:!0,multiSpace:!0,accessFlag:"graph_dreaming"},{label:"Messages",href:"/user/messages",icon:_.Mail},{label:"Integrations",href:"/user/integrations",icon:d.Plug},{label:"Background Tasks",href:"/user/status",icon:i.Activity},{label:"Settings",href:"/user/settings",icon:D.Settings},{label:"Notifications",href:"/user/notifications",icon:p.Bell},{label:"Billing",href:"/user/billing",icon:m.CreditCard}],ef={label:"Admin console",href:"/admin",icon:Q.Shield},eg=new Set(["/user/messages"]),eb=[{title:"Workspace",items:[...er.map(e=>({label:e.label,href:e.href,icon:el[e.label]})),{label:"People",href:"/people",icon:G.Users},{label:"Companies",href:"/companies",icon:h.Building2},{label:"Files",href:"/user/files",icon:v.FileText},{label:"Import",href:"/import",icon:j.Import,flag:"file_import"},{label:"Agents",href:"/user/cloudagents",icon:o.Bot},{label:"Memories",href:"/user/memories",icon:u.BookMarked},eu]},{title:"Account",items:ey},{title:"YouSpot",items:ep},{title:"Admin",adminOnly:!0,items:[ef]}],em=["/about","/how-it-works","/features","/use-cases","/vs","/faq","/docs","/pricing","/privacy","/terms","/omni","/ideas","/lp","/human","/company"],ek=[$.href,Z.href,X.href,ee.href,z].flatMap(e=>ep.filter(t=>t.href===e));function ev(e){if(!e)return null;let t="/"===e?ec:null,a=null;for(let r of eb)for(let i of r.items)for(let r of[i,...i.children??[]])(t?r.href===t:(0,W.pathMatches)(e,r.href))&&(!a||r.href.length>a.node.href.length)&&(a={node:r,parent:r===i?void 0:i});return a}let eq=new Set([ec,"/brain",...ed.chat,...ed.brain]);e.s(["ADMIN_NAV",0,ef,"APPS_NODE",0,eu,"BAR_EXTRA_HREFS",0,["/user/cloudagents"],"CHAT_HREF",0,ec,"DOCS_LINK",0,et,"FOOTER_PRODUCT_LINKS",0,ea,"IDEAS_LINK",0,ee,"LEGAL_NAV",0,[{label:"Privacy",href:"/privacy",match:null},{label:"Terms",href:"/terms",match:null}],"PRODUCT_LINKS",0,er,"RAIL_PRIMARY",0,ed,"SIDEBAR_NAV",0,eb,"SIGNED_OUT_NAV",0,ek,"YOUSPOT_MENU",0,ep,"accountNavItems",0,function(e,t){let[a,...r]=eo(ey,e);return[{...a,label:"Profile",detail:t?`youspot.com/human/${t}`:"Claim your profile URL"},...r.filter(e=>!eg.has(e.href))]},"activeHrefForPath",0,function(e){return ev(e)?.node.href},"iconForPath",0,function(e){let t=ev(e)?.node;if(t?.icon)return t.icon;if(!e)return;let a=Object.keys(ei).find(t=>(0,W.pathMatches)(e,t));return a?ei[a]:void 0},"isChatPath",0,eh,"isPublicPage",0,function(e){return!!e&&em.some(t=>(0,W.pathMatches)(e,t))},"navCrumbsForPath",0,function(e){let t=ev(e);return t?{title:t.node.label,parents:t.parent?[{label:t.parent.label,href:t.parent.href}]:[]}:null},"navItemIsCurrent",0,function(e,t){return null!==e.match&&!!t&&(0,W.pathMatches)(t,e.match??e.href)},"sectionHasRail",0,function(e){return!!eh(e)||!!e&&["/brain",...ed.brain].some(t=>(0,W.pathMatches)(e,t))}
1,"showsTopBar",0,function(e){return!e||!(0,W.pathMatches)(e,"/lp")},"sidebarRowForPath",0,function(e){let t=ev(e);return!t||t.parent?null:eq.has(t.node.href)?t.node.label:null},"visibleNav",0,function(e,t){return e.flatMap(e=>e.adminOnly&&!t.showAdmin?[]:[{...e,items:eo(e.items,t)}])},"visibleNavItems",0,eo],578380)},818825,e=>{"use strict";e.s(["pathMatches",0,function(e,t){return e===t||e.startsWith(`${t}/`)}])},389517,e=>{"use strict";var t=e.i(271645),a=e.i(318803);e.s(["useObjectTypes",0,function(){let{data:e}=(0,a.useGraphObjectTypes)();return(0,t.useMemo)(()=>{let t={icons:{},backgrounds:{},viewModules:{},plurals:{},addable:[]};for(let a of e)a.icon_url&&(t.icons[a.type]=a.icon_url),a.icon_background_color&&(t.backgrounds[a.type]=a.icon_background_color),a.view_module&&(t.viewModules[a.type]=a.view_module),a.plural_name&&(t.plurals[a.type]=a.plural_name),a.is_user_addable&&t.addable.push(a.type);return t},[e])}])},358719,e=>{"use strict";var t=e.i(271645);e.s(["useDebouncedValue",0,function(e,a){let[r,i]=(0,t.useState)(e);return(0,t.useEffect)(()=>{let t=setTimeout(()=>i(e),a);return()=>clearTimeout(t)},[e,a]),r}])},318803,916527,e=>{"use strict";var t=e.i(619273),a=e.i(13348),r=e.i(933818),i=e.i(954616),n=e.i(266027),s=e.i(912598),u=e.i(689605),o=e.i(857177),l=e.i(921110),c=e.i(358719),h=e.i(701281),p=e.i(621482),d=e.i(271645);function y({queryKey:e,fetchPage:a,rowsOf:r,enabled:i=!0,staleTime:n=6e4}){let s=(0,d.useCallback)(e=>({rows:e.pages.flatMap(r),first:e.pages[0]}),[r]),u=(0,p.useInfiniteQuery)({queryKey:e,queryFn:({pageParam:e,signal:t})=>a(e,t),initialPageParam:null,getNextPageParam:e=>e.has_more?e.next_cursor:void 0,enabled:i,staleTime:n,placeholderData:t.keepPreviousData,select:s});return{rows:u.data?.rows??[],first:u.data?.first,status:u.status,error:u.error,isRefreshing:u.isPlaceholderData||u.isFetching&&!u.isFetchingNextPage,hasMore:u.hasNextPage,isLoadingMore:u.isFetchingNextPage,loadMore:()=>{u.hasNextPage&&!u.isFetchingNextPage&&u.fetchNextPage()},dataUpdatedAt:u.dataUpdatedAt}}function f({type:e,q:t,sort:a,dir:r,filters:i}){let n={};return e&&(n.type=e),t&&(n.q=t),a&&(n.sort=a),r&&(n.dir=r),i?.length&&(n.filters=i.map(e=>JSON.stringify(e)).sort()),n}function g(e,{perPage:t}){return{objects:e.objects||[],has_more:!!e.has_more,next_cursor:e.next_cursor??null,per_page:e.per_page||t,sort:e.sort||"created_at",dir:e.dir||"desc",page:e.page,types:e.types||[],grid_columns:e.grid_columns||[],total:e.total,counts:e.counts}}function b(){let{authenticated:e,loading:t}=(0,o.useAuth)();return e&&!t}e.s(["useInfiniteList",0,y],916527);let m=e=>e.objects,k=e=>[...h.queryKeys.graph.object(e),"add-tag"],v=e=>[...h.queryKeys.graph.object(e),"remove-tag"];function q(e,t,a){e.invalidateQueries({queryKey:h.queryKeys.graph.object(t)}),e.invalidateQueries({queryKey:h.queryKeys.graph.object(a)}),e.invalidateQueries({queryKey:h.queryKeys.graph.allNetworks()})}function j(e,t,a){e.setQueryData(h.queryKeys.graph.object(t),e=>e&&{...e,connected:e.connected.filter(e=>e.object.object_id!==a||!e.disconnectable)})}function P(e,t){return Promise.all([e.invalidateQueries({queryKey:h.queryKeys.graph.allObjects()}),e.invalidateQueries({queryKey:h.queryKeys.graph.allNetworks()}),...t?[e.invalidateQueries({queryKey:h.queryKeys.graph.object(t)})]:[]])}function S(e){for(let t of(e.invalidateQueries({queryKey:h.queryKeys.graph.allObjectPages(),refetchType:"none"}),e.invalidateQueries({queryKey:h.queryKeys.graph.counts()}),["people","companies"]))e.invalidateQueries({queryKey:h.queryKeys.directory.allPages(t),refetchType:"none"}),e.invalidateQueries({queryKey:h.queryKeys.directory.allFacets(t)})}function w(e,t){for(let a of["people","companies"])e.setQueriesData({queryKey:h.queryKeys.directory.allPages(a)},e=>e&&{...e,pages:e.pages.map(e=>({...e,rows:e.rows.filter(e=>!t.has(e.object_id))}))})}let K=e=>Array.from({length:Math.ceil(e.length/200)},(t,a)=>e.slice(200*a,(a+1)*200));e.s(["addObjectTagKey",0,k,"removeObjectTagKey",0,v,"useAddObjectNote",0,function(e){var t;return(0,i.useMutation)((t=(0,s.useQueryClient)(),(0,a.mutationOptions)({retry:!1,mutationFn:t=>u.api.graph.addNote(e,t),onSuccess:()=>P(t,e)})))},"useAddObjectTag",0,function(e){let t=(0,s.useQueryClient)();return(0,i.useMutation)({mutationKey:k(e),mutationFn:t=>u.api.graph.addTag(e,t),onSuccess:()=>
1t.invalidateQueries({queryKey:h.queryKeys.graph.object(e)})})},"useAddProfileProduct",0,function(){let e=(0,s.useQueryClient)();return(0,i.useMutation)({mutationFn:e=>u.api.profile.addProduct(e),onSuccess:(t,a)=>e.invalidateQueries({queryKey:h.queryKeys.graph.object(a)})})},"useBrainCapacity",0,function(){let e=b();return(0,n.useQuery)({queryKey:h.queryKeys.graph.capacity(),queryFn:({signal:e})=>u.api.graph.capacity(e),enabled:e,staleTime:6e5})},"useBulkDeleteGraphObjects",0,function(){var e;return(0,i.useMutation)((e=(0,s.useQueryClient)(),(0,a.mutationOptions)({retry:!1,mutationFn:async e=>{let t={deletedIds:[],skipped:0};for(let a of K(e))try{let e=await u.api.graph.bulkRemove(a);t.deletedIds.push(...e.deleted_ids),t.skipped+=a.length-e.deleted_ids.length}catch(e){if(!t.deletedIds.length)throw e;t.error=e;break}return t},onSuccess:({deletedIds:t})=>{let a=new Set(t);e.setQueriesData({queryKey:h.queryKeys.graph.allObjectPages()},e=>e&&{...e,pages:e.pages.map(e=>({...e,objects:e.objects.filter(e=>!a.has(e.object_id))}))}),w(e,a),S(e)}})))},"useBulkRestoreGraphObjects",0,function(){var e;return(0,i.useMutation)((e=(0,s.useQueryClient)(),(0,a.mutationOptions)({retry:!1,mutationFn:async e=>{let t=[];for(let a of K(e))t.push(...(await u.api.graph.bulkRestore(a)).restored_ids);return t},onSettled:()=>{for(let t of(S(e),e.invalidateQueries({queryKey:h.queryKeys.graph.allObjectPages()}),["people","companies"]))e.invalidateQueries({queryKey:h.queryKeys.directory.allPages(t)})}})))},"useConnectGraphObject",0,function(e){let t=(0,s.useQueryClient)();return(0,i.useMutation)({mutationFn:t=>u.api.graph.connect(e,t),onSuccess:(a,r)=>{q(t,e,r),a.created&&t.invalidateQueries({queryKey:h.queryKeys.feed.pages()})}})},"useConnectionSuggestions",0,function(e){let t=b(),a=e.trim();return(0,n.useQuery)({queryKey:h.queryKeys.graph.connectionSuggestions(a),queryFn:async({signal:e})=>(await u.api.graph.objects({q:a,page:1,perPage:8,owned:!0,includeCounts:!1,fields:"list",filters:[{id:"type",op:"neq",value:"tag"}]},e)).objects,enabled:t&&a.length>=2})},"useCreateGraphObject",0,function(){var e;return(0,i.useMutation)((e=(0,s.useQueryClient)(),(0,a.mutationOptions)({retry:!1,mutationFn:async e=>(await u.api.graph.create(e)).object,onSuccess:(t,a)=>P(e,a.connect_to)})))},"useDeleteGraphObject",0,function(){let e=(0,s.useQueryClient)();return(0,i.useMutation)({mutationFn:e=>u.api.graph.remove(e),onSuccess:(t,a)=>{e.setQueriesData({queryKey:h.queryKeys.graph.allObjectPages()},e=>e&&{...e,pages:e.pages.map(e=>({...e,objects:e.objects.filter(e=>e.object_id!==a)}))}),w(e,new Set([a])),S(e)}})},"useDeleteObjectNote",0,function(e){let t=(0,s.useQueryClient)();return(0,i.useMutation)({mutationFn:e=>u.api.graph.remove(e),onSuccess:()=>{t.invalidateQueries({queryKey:h.queryKeys.graph.object(e)}),t.invalidateQueries({queryKey:h.queryKeys.graph.allObjects()})}})},"useDisconnectGraphObject",0,function(e){let t=(0,s.useQueryClient)();return(0,i.useMutation)({mutationFn:t=>u.api.graph.disconnect(e,t),onSuccess:(a,r)=>{j(t,e,r),j(t,r,e),q(t,e,r)}})},"useGraphCounts",0,function(e={}){return(0,n.useQuery)(function({type:e,q:t,filters:a}={},i){let n=f({type:e,q:t,filters:a});return(0,r.queryOptions)({queryKey:Object.keys(n).length?h.queryKeys.graph.matchingCounts(n):h.queryKeys.graph.counts(),queryFn:({signal:r})=>u.api.graph.counts({type:e,q:t,filters:a},r),enabled:i,staleTime:6e4})}(e,b()))},"useGraphNetwork",0,function(e,t={}){let a=b();return(0,n.useQuery)(function({focus:e,depth:t=2,perNode:a,offset:i=0},n){return(0,r.queryOptions)({queryKey:h.queryKeys.graph.network(e,t,a,i),queryFn:async({signal:r})=>{var n;return n=await u.api.graph.network({focus:e,depth:t,perNode:a,offset:i},r),{focus:n.focus,root:n.root??null,depth:n.depth??t,nodes:n.nodes||[],edges:n.edges||[],truncated:!!n.truncated,owned_total:n.owned_total,offset:n.offset,total:n.total,parent:n.parent}},enabled:n,retry:(e,t)=>e<1&&!(t instanceof l.ApiError&&t.status<500&&t.status>0)})}(e,a&&!1!==t.enabled))},"useGraphObject",0,function(e){let t=b();return(0,n.useQuery)({queryKey:h.queryKeys.graph.object(e),queryFn:async({signal:t})=>await u.api.graph.object(e,t),enabled:t&&!!e})},"useGraphObjectPages",0,function({type:e,q:t,sort:a,dir:r,filters:i},n={}){let s=b();return y({queryKey:h.queryKeys.graph.objectPages(f({type:e,q:t,sort:a,dir:r,filters:i})),fetchPage:(n,s)=>u.api.graph.objects({type:e,q:t,sort:a,dir:r,filters:i,cursor:n,perPage:50,includeCounts:!1,fields:"list"},s).then(e=>g(e,{perPage:50})),rowsOf:m,enabled:s&&!1!==n.enabled})},"useGraphObjectTypes",0,function(){let e=b();return(0,n.useQuery)({queryKey:h.queryKeys.graph.types(),queryFn:async({signal:e})=>(await u.api.graph.objectTypes(e)).types||[],enabled:e,staleTime:6e5,initialData:[],initialDataUpdatedAt:0})},"useGraphPurgeCount",0,function(e,t){let a=b();return(0,n.useQuery)({queryKey:h.queryKeys.graph.purgeCount(e),queryFn:async()=>(await u.api.graph.purge(e,!1)).count,enabled:a&&t})},"useGraphSearch",0,function(e){var t;
1let a,i=b(),s=e.trim(),o=(0,c.useDebouncedValue)(s,300),l=s!==o;return{...(0,n.useQuery)((t=i&&!l,a=o.trim(),(0,r.queryOptions)({queryKey:h.queryKeys.graph.search(a),queryFn:async({signal:e})=>(await u.api.graph.objects({q:a,perPage:8,owned:!0,includeCounts:!1,fields:"list"},e)).objects,enabled:t&&a.length>=2}))),isDebouncing:l}},"useGraphTagOptions",0,function(e,t=!0){let a=b();return(0,n.useQuery)({queryKey:h.queryKeys.graph.tagOptions(e),queryFn:({signal:t})=>u.api.graph.tagOptions(e,t),enabled:t&&a&&!!e,staleTime:6e4})},"useObjectDirectory",0,function({type:e,q:a,perPage:r=8},i={}){let s=b();return(0,n.useQuery)({queryKey:h.queryKeys.graph.directory(e,a),queryFn:async({signal:t})=>g(await u.api.graph.objects({type:e,q:a,page:1,perPage:r,owned:!1},t),{perPage:r}),enabled:s&&!1!==i.enabled,placeholderData:t.keepPreviousData})},"useObjectShares",0,function(e,t){let a=b();return(0,n.useQuery)({queryKey:h.queryKeys.graph.shares(e),queryFn:async({signal:t})=>(await u.api.graph.shares(e,t)).shares||[],enabled:a&&t,initialData:[],initialDataUpdatedAt:0})},"useObjectTypeFields",0,function(e){let t=b();return(0,n.useQuery)({queryKey:h.queryKeys.graph.typeFields(e),queryFn:async({signal:t})=>(await u.api.graph.objectTypeFields(e,t)).fields||[],enabled:t&&!!e,staleTime:6e5,initialData:[],initialDataUpdatedAt:0})},"usePreviewWebLink",0,function(){return(0,i.useMutation)({mutationFn:e=>u.api.graph.previewWebLink(e)})},"usePurgeGraphObjects",0,function(){let e=(0,s.useQueryClient)();return(0,i.useMutation)({mutationFn:({scope:e,confirm:t})=>u.api.graph.purge(e,t),onSuccess:t=>{t.queued&&S(e)}})},"useRemoveObjectTag",0,function(e){let t=(0,s.useQueryClient)();return(0,i.useMutation)({mutationKey:v(e),mutationFn:t=>u.api.graph.removeTag(e,t),onSuccess:()=>t.invalidateQueries({queryKey:h.queryKeys.graph.object(e)})})},"useRemoveProfileProduct",0,function(){let e=(0,s.useQueryClient)();return(0,i.useMutation)({mutationFn:e=>u.api.profile.removeProduct(e),onSuccess:(t,a)=>e.invalidateQueries({queryKey:h.queryKeys.graph.object(a)})})},"useRemoveShare",0,function(e){let t=(0,s.useQueryClient)();return(0,i.useMutation)({mutationFn:t=>u.api.graph.removeShare(e,t),onSuccess:(a,r)=>t.setQueryData(h.queryKeys.graph.shares(e),(e=[])=>e.filter(e=>e.id!==r))})},"useSaveWebLink",0,function(){let e=(0,s.useQueryClient)();return(0,i.useMutation)({mutationFn:async e=>(await u.api.graph.createWebLink(e)).object,onSuccess:(t,a)=>P(e,a.connect_to)})},"useShareTargets",0,function(e,t){let a=b();return(0,n.useQuery)({queryKey:h.queryKeys.graph.shareTargets(e),queryFn:async({signal:t})=>(await u.api.graph.shareTargets(e,t)).users||[],enabled:a&&t&&e.length>=3,staleTime:6e5,initialData:[],initialDataUpdatedAt:0})},"useSharedWithMe",0,function(){let e=b();return(0,n.useQuery)({queryKey:h.queryKeys.graph.sharedWithMe(),queryFn:async({signal:e})=>(await u.api.graph.sharedWithMe(e)).shares||[],enabled:e,initialData:[],initialDataUpdatedAt:0})},"useUpdateGraphObject",0,function(e){let t=(0,s.useQueryClient)();return(0,i.useMutation)({mutationFn:t=>u.api.graph.update(e,t),onSuccess:()=>{t.invalidateQueries({queryKey:h.queryKeys.graph.object(e)}),t.invalidateQueries({queryKey:h.queryKeys.graph.allObjects()})}})},"useUploadGraphFile",0,function(){let e=(0,s.useQueryClient)();return(0,i.useMutation)({mutationFn:async e=>(await u.api.graph.createFile(e)).object,onSuccess:(t,a)=>P(e,a.connect_to)})},"useUpsertShare",0,function(e){let t=(0,s.useQueryClient)();return(0,i.useMutation)({mutationFn:async t=>(await u.api.graph.upsertShare(e,t)).share,onSuccess:a=>t.setQueryData(h.queryKeys.graph.shares(e),(e=[])=>[...e.filter(e=>e.id!==a.id),a])})}],318803)},231192,e=>{"use strict";var t=e.i(555389),a=e.i(978396),r=e.i(495576),i=e.i(326613),n=e.i(700327),s=e.i(882087),u=e.i(710459),o=e.i(558196),l=e.i(539950),c=e.i(881356),h=e.i(576053),p=e.i(29150);let d={title:"Studio",description:"Social images, emails and PDFs made in your own brand, from your brand kit.",href:"/studio/og",icon:u.Sparkles},y={gauge:t.Gauge,building:n.Building2,image:a.Image,globe:r.Globe,lightbulb:i.Lightbulb,wand:o.Wand2,users:l.Users,"user-plus":c.UserPlus,"message-square":h.MessageSquare,"file-text":p.FileText,mail:s.Mail},f=[{icon:"gauge",title:"HubGrader",description:"Grade any HubSpot portal and see how your setup stacks up against best practices.",href:"/hubgrader"},{icon:"building",title:"CompanyResearch",description:"AI research reports on any company: people, products, funding and news.",href:"/companyresearch"},{icon:"image",title:"ImageGen",description:"Generate and edit on-brand images with AI, right in y
1our browser.",href:"/imagegen"},{icon:"mail",title:"GHero",description:"Search your Gmail in plain English and see the matching emails.",href:"/ghero"},{icon:"globe",title:"DomainValue",description:"AI-powered domain valuations to price and compare any name in seconds.",href:"/domainvalue"},{icon:"lightbulb",title:"DomainSuggest",description:"AI-powered domain name suggestions for your next idea.",href:"/domainsuggest"},{icon:"wand",title:"MetaPrompt",description:"Paste any AI prompt and get a sharper, more effective version back.",href:"/metaprompt"},{icon:"users",title:"Connections",description:"Browse and search your LinkedIn connections by name, company, role or date.",href:"/connections"},{icon:"user-plus",title:"Invitations",description:"Score and tag the LinkedIn invitations you sent and received against a prompt.",href:"/invitations"},{icon:"message-square",title:"Linked Messages",description:"Score and tag your LinkedIn messages so the ones worth answering rise to the top.",href:"/linked_messages"},{icon:"file-text",title:"Linked Posts",description:"Your LinkedIn posts, synced from your profile into one browsable table.",href:"/linked_posts"}].map(e=>({title:e.title,description:e.description,href:e.href,icon:y[e.icon]}));e.s(["STUDIO_TOOL_CARD",0,d,"TOOL_CARDS",0,f],231192)},119346,e=>{"use strict";let t=(0,e.i(235884).default)("badge-check",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["BadgeCheck",0,t],119346)},747164,e=>{"use strict";let t=(0,e.i(235884).default)("book-marked",[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);e.s(["BookMarked",0,t],747164)},662324,e=>{"use strict";let t=(0,e.i(235884).default)("boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);e.s(["Boxes",0,t],662324)},835508,e=>{"use strict";var t=e.i(584652);e.s(["CircleHelp",()=>t.default])},319575,e=>{"use strict";let t=(0,e.i(235884).default)("circle-user",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);e.s(["CircleUser",0,t],319575)},555389,e=>{"use strict";let t=(0,e.i(235884).default)("gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);e.s(["Gauge",0,t],555389)},135741,e=>{"use strict";let t=(0,e.i(235884).default)("import",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m8 11 4 4 4-4",key:"1dohi6"}],["path",{d:"M8 5H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-4",key:"1ywtjm"}]]);e.s(["Import",0,t],135741)},206815,e=>{"use strict";let t=(0,e.i(235884).default)("laugh",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M18 13a6 6 0 0 1-6 5 6 6 0 0 1-6-5h12Z",key:"b2q4dd"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);e.s(["Laugh",0,t],206815)},868088,e=>{"use strict";var t=e.i(464255);e.s(["LayoutDashboard",()=>t.default])},996516,e=>{"use strict";let t=(0,e.i(235884).default)("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);e.s(["Network",0,t],996516)},509985,455022,321432,e=>{"use strict";var t=e.i(235884);let a=(0,t.default)("presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]);e.s(["Presentation",0,a],509985);let r=(0,t.default)("route",[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]);e.s(["Route",0,r],455022);let i=(0,t.default)("telescope",[["path",{d:"m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44",key:"k4qptu"}],["path",{d:"m13.56 11.747 4.332-.924",key:"19l80z"}],["path",{d:"m16 21-3.105-6.21",key:"7oh9d"}
1],["path",{d:"M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z",key:"m7xp4m"}],["path",{d:"m6.158 8.633 1.114 4.456",key:"74o979"}],["path",{d:"m8 21 3.105-6.21",key:"1fvxut"}],["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}]]);e.s(["Telescope",0,i],321432)},248363,e=>{"use strict";let t=(0,e.i(235884).default)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);e.s(["Share2",0,t],248363)},275332,e=>{"use strict";let t=(0,e.i(235884).default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);e.s(["Terminal",0,t],275332)},881356,e=>{"use strict";let t=(0,e.i(235884).default)("user-plus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);e.s(["UserPlus",0,t],881356)},558196,e=>{"use strict";let t=(0,e.i(235884).default)("wand-sparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);e.s(["Wand2",0,t],558196)}]);
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.