1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[15535],{15535:(e,t,r)=>{"use strict";r.d(t,{Ro:()=>P,EH:()=>q,E2:()=>z});var s=r(68987),a=r(1925),n=r(2315),o=r(86020),i=r(7586),l=r(73591),d=r(68963),c=r(93425),m=r(17150),u=r(67486),h=r(15109),x=r(81211),p=r(10734),g=r(77058),b=r(75472),f=r(60426),j=r(73248),y=r(5062),w=r(24813),v=r.n(w),N=r(80444),k=r(98738),A=r(23647),I=r(34980);let C=["codex","claude"];var S=r(88379);let E=(0,o.default)(()=>Promise.all([r.e(82249),r.e(61285),r.e(37824),r.e(4473),r.e(88922),r.e(40471),r.e(54928),r.e(27464),r.e(52157),r.e(81281),r.e(76082)]).then(r.bind(r,60505)).then(e=>e.RoutineIntegrationCards),{loadableGenerated:{webpack:()=>[60505]},ssr:!1}),P=["team","provider-setup"];function R({state:e}){return"done"===e?(0,s.jsx)(d.A,{"aria-hidden":!0,className:"mt-0.5 h-4 w-4 shrink-0 text-emerald-600"}):"attention"===e?(0,s.jsx)(c.A,{"aria-hidden":!0,className:"mt-0.5 h-4 w-4 shrink-0 text-amber-600"}):(0,s.jsx)(m.A,{"aria-hidden":!0,className:"mt-0.5 h-4 w-4 shrink-0 text-muted-foreground/40"})}let M="inline-flex size-8 shrink-0 items-center justify-center rounded-md border border-border bg-background text-muted-foreground shadow-sm transition-colors hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50";function T({card:e,userId:t,accountSelector:r,embedded:o=!1}
1){let[i,l]=(0,n.useState)(!1),d=(0,I.y)({userId:t,projectSlug:e.inventoryProjectSlug??"inbox",providerKey:e.providerKey,connectionId:e.connectionId??"",providerInstanceId:e.inventoryProjectSlug?e.providerInstanceId??"":"",enabled:e.connected,cacheForSession:!0,surface:"chat"}),c=d.data?.map(e=>({connectorId:e.providerConnectorId,name:e.name,enabled:e.enabled,callable:e.callable,toolCount:e.toolNames.length,iconUrl:e.iconUrl??null,iconUrlDark:e.iconUrlDark,attestedAt:"your selected provider account"}))??e.capabilities;return(0,s.jsxs)("section",{"aria-label":`${e.label} account setup`,className:o?"min-w-0 max-w-full":"min-w-0 max-w-full rounded-[10px] border border-border bg-background p-4",children:[(0,s.jsxs)("header",{className:"flex min-w-0 flex-wrap items-center justify-between gap-2",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,s.jsxs)("h4",{className:"flex items-center gap-2 font-medium text-foreground",children:[(0,s.jsx)("img",{src:"claude"===e.providerKey?"/claude-logo.svg":"/openai-logo.svg",alt:"",className:"size-5 object-contain"}),e.label]}),(0,s.jsx)("span",{className:`rounded-full px-2 py-0.5 text-xs font-medium ${e.ready?"bg-emerald-500/10 text-emerald-700 dark:text-emerald-400":e.connected?"bg-amber-500/10 text-amber-700 dark:text-amber-400":"bg-muted text-muted-foreground"}`,children:e.ready?"Ready":e.connected?"Finish setup":"Not connected"})]}),(0,s.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[(0,s.jsx)("button",{type:"button","aria-label":d.isFetching?"Refreshing integrations":"Refresh integrations",title:d.error?"Refresh failed. Retry integrations":"Refresh integrations",disabled:d.isFetching||!e.connectionId,onClick:()=>void d.refetch(),className:M,children:(0,s.jsx)(u.A,{className:`size-4 ${d.isFetching?"animate-spin":""}`})}),(0,s.jsx)("a",{href:"/dashboard/settings?tab=connections&connections=quota","aria-label":"Manage quota",title:"Manage quota",className:M,children:(0,s.jsx)(h.A,{className:"size-4"})}),(0,s.jsxs)(N.AM,{children:[(0,s.jsx)(N.Wv,{asChild:!0,children:(0,s.jsx)("button",{type:"button","aria-label":"Setup details",className:M,children:(0,s.jsx)(x.A,{className:"size-4"})})}),(0,s.jsxs)(N.hl,{align:"end",className:"max-h-80 w-80 max-w-[calc(100vw-3rem)] overflow-y-auto",children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"Setup details"}),d.error&&(0,s.jsxs)("p",{role:"status",className:"mt-2 text-xs text-muted-foreground",children:["Refresh did not complete. ",c.length?"Showing the last synced integrations.":"Try refreshing again."]}),(0,s.jsx)("ol",{className:"mt-3 space-y-2",children:e.steps.map(e=>{var t;return(0,s.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,s.jsx)(R,{state:e.state}),(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"font-medium text-foreground",children:e.title}),(0,s.jsxs)("span",{className:"sr-only",children:[" â ","done"===(t=e.state)?"Done":"attention"===t?"Needs attention":"Not started yet"]}),(0,s.jsx)("span",{className:"block text-muted-foreground",children:e.detail})]})]},e.id)})}),e.locations.length>0&&(0,s.jsxs)("p",{className:"mt-3 break-words text-xs text-muted-foreground",children:["Reported by ",e.locations.join("; ")]})]})]}),(0,s.jsxs)(N.AM,{open:i,onOpenChange:l,children:[(0,s.jsx)(N.Wv,{asChild:!0,children:(0,s.jsx)("button",{type:"button","aria-label":"Account details",onMouseEnter:()=>l(!0),className:M,children:(0,s.jsx)(p.A,{className:"size-4"})})}),(0,s.jsxs)(N.hl,{align:"end",className:"w-72 max-w-[calc(100vw-3rem)] text-sm",onMouseLeave:()=>l(!1),children:[(0,s.jsx)("p",{className:"font-medium",children:"Account details"}),(0,s.jsx)("p",{className:"mt-2 break-words [overflow-wrap:anywhere] text-muted-foreground",children:e.accountLabel??"Not connected"}),e.plan&&(0,s.jsxs)("p",{className:"mt-2 text-muted-foreground",children:["Plan: ",e.plan.replace(/_/g," ")]}),e.modelCount>0&&(0,s.jsxs)("p",{className:"mt-1 text-muted-foreground",children:[e.modelCount," models available"]})]})]}),o&&(0,s.jsx)(a.HM,{"aria-label":"Close",className:M,children:(0,s.jsx)(g.A,{className:"size-4"})})]})]}),(0,s.jsx)("div",{className:"mt-4",children:r}),e.usageLimits&&(0,s.jsx)(k.m,{usage:e.usageLimits,className:"mt-3"}),e.nextAction&&(0,s.jsx)("p",{className:"mt-3 text-sm leading-6 text-muted-foreground",children:e.nextAction}),c.length>0?(0,s.jsx)("div",{className:"mt-3 border-t border-border pt-3",children:(0,s.jsx)("ul",{"aria-label":"Provider integrations",tabIndex:0,style:{maxHeight:200},className:v().scroll,children:c.map(t=>(0,s.jsxs)("li",{className:"flex h-10 items-center gap-1 rounded-md px-2.5 text-xs text-muted-foreground hover:bg-muted/60",children:[(0,s.jsxs)("span",{className:"inline-flex min-w-0 items-center gap-1.5 font-medium text-foreground",children:[(0,s.jsx)(A.S,{iconUrl:t.iconUrl??void 0,iconUrlDark:t.
1iconUrlDark}),(0,s.jsx)("span",{className:"truncate",title:t.name,children:t.name})]})," \xb7 ",t.toolCount," tool",1===t.toolCount?"":"s",t.enabled&&t.callable?null:(0,s.jsxs)("span",{className:"mt-1 block text-amber-700 dark:text-amber-400",children:["Not callable yet \xb7 check ",e.capabilityHome]})]},t.connectorId))})}):null]})}function $({userId:e,cards:t,embedded:r=!1}){let[a,o]=(0,n.useState)(""),[i,l]=(0,n.useState)(!1),d=t.find(e=>e.connectionId===a)??t[0];if(!d)return null;let c=d.connected?(0,s.jsxs)(N.AM,{open:i,onOpenChange:l,children:[(0,s.jsx)(N.Wv,{asChild:!0,children:(0,s.jsxs)("button",{type:"button","aria-label":`${d.label} account`,className:"flex h-10 min-w-0 w-full max-w-full items-center justify-between gap-2 rounded-lg border bg-white px-3 text-left text-sm shadow-sm dark:bg-background",children:[(0,s.jsx)("span",{className:"min-w-0 flex-1 truncate",children:d.accountLabel??d.label}),(0,s.jsx)(b.A,{className:"size-4 shrink-0 text-muted-foreground"})]})}),(0,s.jsx)(N.hl,{align:"start",className:"w-[var(--radix-popover-trigger-width)] max-w-[calc(100vw-3rem)] bg-white p-1 dark:bg-background",children:(0,s.jsx)("div",{role:"listbox","aria-label":"Provider accounts",className:v().scroll,style:{maxHeight:192},children:t.map((e,t)=>(0,s.jsxs)("button",{role:"option","aria-selected":e.connectionId===d.connectionId,type:"button",onClick:()=>{o(e.connectionId??""),l(!1)},className:"flex w-full items-center gap-2 rounded-md px-2 py-2.5 text-left text-xs hover:bg-neutral-100 focus:bg-neutral-100 dark:hover:bg-muted",children:[(0,s.jsx)(f.A,{className:`size-3.5 shrink-0 ${e.connectionId===d.connectionId?"":"opacity-0"}`}),(0,s.jsx)("span",{className:"min-w-0 break-words [overflow-wrap:anywhere]",children:e.accountLabel??e.label})]},e.connectionId??t))})})]}):null;return(0,s.jsx)(T,{card:d,userId:e,accountSelector:c,embedded:r},d.connectionId??d.providerKey)}function q({userId:e,providerKey:t,embedded:r=!1}){let n=(0,i.I)({queryKey:[...P,e],enabled:!!e,staleTime:1/0,gcTime:1/0,retry:!1,refetchOnWindowFocus:!1,queryFn:async()=>{let e=await fetch("/api/team/provider-setup",{cache:"no-store"}),t=await e.json().catch(()=>({}));if(!e.ok||!t?.ok)throw Error(t?.error||"Provider setup could not be loaded.");return t}});return e?(0,s.jsxs)("div",{className:"min-w-0 space-y-3",children:[r&&!n.data&&(0,s.jsx)("div",{className:"flex justify-end",children:(0,s.jsx)(a.HM,{"aria-label":"Close",className:M,children:(0,s.jsx)(g.A,{className:"size-4"})})}),n.isPending?(0,s.jsxs)("p",{role:"status",className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,s.jsx)(j.A,{"aria-hidden":!0,className:"h-4 w-4 animate-spin"}),"Checking your provider accountsâ¦"]}):null,n.error?(0,s.jsxs)("div",{role:"alert",className:"rounded-[10px] border border-destructive/20 bg-destructive/5 px-4 py-3 text-sm text-destructive",children:[n.error instanceof Error?n.error.message:"Provider setup could not be loaded.",(0,s.jsx)("button",{type:"button",className:"ml-2 underline",onClick:()=>void n.refetch(),children:"Try again"})]}):null,n.data?(0,s.jsx)("div",{className:t?"min-w-0 space-y-3":"grid gap-3 md:grid-cols-2",children:C.filter(e=>!t||e===t).map(t=>(0,s.jsx)($,{embedded:r,userId:e,cards:n.data.providers.filter(e=>e.providerKey===t)},t))}):null]}):null}function z({userId:e,onConnectionsChanged:t,showTeamShares:r=!0}){let a=(0,l.jE)(),o=(0,n.useMemo)(()=>[...C],[]),i=async()=>{await Promise.all([a.invalidateQueries({queryKey:P}),Promise.resolve(t?.())])};return(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"rounded-[10px] border border-border bg-muted/30 px-4 py-3 text-sm text-muted-foreground",children:[(0,s.jsxs)("p",{className:"flex items-center gap-2 font-medium text-foreground",children:[(0,s.jsx)(y.A,{"aria-hidden":!0,className:"h-4 w-4"}),"You connect your own accounts"]}),(0,s.jsx)("p",{className:"mt-1 leading-5",children:"Sign in through your providerâs existing connection flow. Review team permissions separately below."})]}),(0,s.jsx)(E,{userId:e,compact:!0,providerKeys:o,onConnectionsChanged:i}),(0,s.jsx)(q,{userId:e}),r&&(0,s.jsx)(S.Fp,{userId:e})]})}},24813:e=>{e.exports={scroll:"provider-setup_scroll__tLHs6"}},88379:(e,t,r)=>{"use strict";r.d(t,{pl:()=>f,m6:()=>b,Fp:()=>v,qr:()=>N});var s=r(68987),a=r(2315),n=r(7586),o=r(73591),i=r(34973),l=r(73248),d=r(95530),c=r(68963),m=r(21178),u=r(5062),h=r(68596);function x({label:e="Slide to allow",disabled:t=!1,onAllow:r}){let n=(0,a.useRef)(null),o=(0,a.useRef)(null),i=(0,a.useRef)(!1),[d,c]=(0,a.useState)(0),[m,u]=(0,a.useState)(!1),[x,p]=(0,a.useState)(null),g=async()=>
1{if(!t&&!i.current){i.current=!0,u(!0),p(null);try{await r()}catch(e){p(e instanceof Error?e.message:"Access could not be saved. Try again.")}finally{i.current=!1,u(!1),c(0)}}};return(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("div",{ref:n,className:"relative h-14 overflow-hidden rounded-full border bg-muted/40",children:[(0,s.jsx)("div",{"aria-hidden":!0,className:"absolute inset-y-0 left-0 bg-foreground/5 motion-safe:transition-[width]",style:{width:`${d}%`}}),(0,s.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 flex items-center justify-center pl-12 text-sm text-muted-foreground",children:m?"Saving accessâ¦":e}),(0,s.jsx)("div",{role:"slider",tabIndex:t||m?-1:0,"aria-label":e,"aria-disabled":t||m,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d,"aria-valuetext":100===d?"Press Enter to allow access":"Drag to the right, or press End then Enter",className:"absolute top-1 flex h-12 w-16 touch-none select-none items-center justify-center rounded-full bg-foreground text-background shadow-sm outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",style:{left:`calc(${d}% + ${4-.72*d}px)`,opacity:t?.4:1},onPointerDown:e=>{t||m||0!==e.button||(o.current={start:e.clientX,width:Math.max(1,(n.current?.getBoundingClientRect().width??72)-72)},e.currentTarget.setPointerCapture(e.pointerId),c(0))},onPointerMove:e=>{o.current&&c(Math.round(Math.max(0,Math.min(100,(e.clientX-o.current.start)/o.current.width*100))))},onPointerUp:e=>{let t=o.current;o.current=null,t&&((e.clientX-t.start)/t.width>=.95?g():c(0))},onPointerCancel:()=>{o.current=null,c(0)},onLostPointerCapture:()=>{o.current&&c(0),o.current=null},onKeyDown:e=>{t||m||(["ArrowRight","ArrowLeft","Home","End","Escape","Enter"," "].includes(e.key)&&e.preventDefault(),"ArrowRight"===e.key&&c(e=>Math.min(100,e+20)),"ArrowLeft"===e.key&&c(e=>Math.max(0,e-20)),"End"===e.key&&c(100),("Home"===e.key||"Escape"===e.key)&&c(0),("Enter"===e.key||" "===e.key)&&100===d&&g())},children:m?(0,s.jsx)(l.A,{"aria-hidden":!0,className:"size-5 animate-spin motion-reduce:animate-none"}):(0,s.jsx)(h.A,{"aria-hidden":!0,className:"size-5"})})]}),(0,s.jsx)("p",{className:"sr-only",children:"Use arrow keys or End to move the handle. Press Enter at the end to allow access."}),x&&(0,s.jsx)("p",{role:"alert",className:"text-sm text-destructive",children:x})]})}var p=r(49405);function g(e){return"active"===e.status&&null===e.revokedAt&&!!e.adminGrantedAt&&!!e.memberOptedInAt}let b=["team","sharing"],f={provider_usage:{title:"Share provider quota with your team admin",member:"Your admin can view provider-reported limits for your connected accounts. This does not let them reset quota or use your login."},provider_integrations:{title:"Share your available integrations",member:"Your admin can see which integrations your provider reports. Your credentials and tool execution permissions stay with you."},provider_visibility:{title:"Show your provider accounts to your team admin",member:"Your admin sees the account label, its plan and where it is signed in. Never the credential."},shared_workflow:{title:"Share activity for this workflow",member:"Your admin can see receipts for this shared work. Running it still requires your own accounts and the existing workflow permissions."},shared_routine:{title:"Share activity for this Routine",member:"Your admin can see receipts for this shared work. Running it still requires your own accounts and the existing workflow permissions."},computer_create:{title:"Create Computers on a shared Device",member:"You can register a Computer on your team's machine. The Computer stays yours."}};function j(e){let t=f[e.grantKind];return e.resourceId?`${t.title} \xb7 ${e.resourceId}`:t.title}function y(e,t){return(0,n.I)({queryKey:[...b,e,t],staleTime:1e4,queryFn:async()=>{let e=await fetch(`/api/team/sharing${t?`?workspaceId=${encodeURIComponent(t)}`:""}`,{cache:"no-store"}),r=await e.json().catch(()=>({}));if(!e.ok||!r?.ok)throw Error(r?.error||"Team sharing could not be loaded.");return r}})}function w(){let e=(0,o.jE)(),t=()=>
1Promise.all([e.invalidateQueries({queryKey:b}),e.invalidateQueries({queryKey:["team","provider-records"]})]);return{accept:(0,i.n)({mutationFn:async e=>{let t=await fetch("/api/team/sharing",{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({grantId:e.id,expectedOfferedAt:e.adminGrantedAt})}),r=await t.json().catch(()=>({}));if(!t.ok||!r?.ok)throw Error(r?.error||"The opt-in could not be recorded.");return r},onSuccess:t}),revoke:(0,i.n)({mutationFn:async e=>{let t=await fetch(`/api/team/sharing?grantId=${encodeURIComponent(e)}`,{method:"DELETE"}),r=await t.json().catch(()=>({}));if(!t.ok||!r?.ok)throw Error(r?.error||"The share could not be revoked.");return r},onSuccess:t})}}function v({userId:e,workspaceId:t,heading:r=!0}){let n=y(e,t),{accept:o,revoke:i}=w(),[m,u]=(0,a.useState)(null),h=(n.data?.grants??[]).filter(t=>t.memberId===e&&"revoked"!==t.status),b=h.filter(e=>!g(e)),v=h.filter(g);return n.isPending?(0,s.jsxs)("p",{role:"status",className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,s.jsx)(l.A,{"aria-hidden":!0,className:"h-4 w-4 animate-spin"}),"Checking what your team has shared with youâ¦"]}):n.error?(0,s.jsx)("div",{role:"alert",className:"rounded-[10px] border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-800",children:n.error instanceof Error?n.error.message:"Team sharing could not be loaded."}):h.length?(0,s.jsxs)("section",{"aria-label":"Shared with you",className:"space-y-2",children:[r?(0,s.jsxs)("p",{className:"flex items-center gap-2 text-sm font-medium text-foreground",children:[(0,s.jsx)(d.A,{"aria-hidden":!0,className:"h-4 w-4"}),"Shared with you"]}):null,m?(0,s.jsx)("div",{role:"alert",className:"rounded-[10px] border border-red-200 bg-red-50 px-3 py-2 text-xs text-red-800",children:m}):null,b.map(e=>(0,s.jsxs)("div",{className:"rounded-[10px] border border-border bg-background p-3",children:[(0,s.jsx)("p",{className:"text-sm font-medium text-foreground",children:j(e)}),(0,s.jsx)("p",{className:"mt-1 text-xs leading-5 text-muted-foreground",children:f[e.grantKind].member}),(0,s.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:"Waiting for your opt-in. Until you accept, this shares nothing."}),(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(x,{label:"Slide to allow access",disabled:o.isPending,onAllow:async()=>{u(null),await o.mutateAsync(e)}})})]},e.id)),v.map(e=>(0,s.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2 rounded-[10px] border border-emerald-200 bg-emerald-50 p-3",children:[(0,s.jsxs)("p",{className:"flex items-center gap-2 text-sm text-emerald-900",children:[(0,s.jsx)(c.A,{"aria-hidden":!0,className:"h-4 w-4"}),j(e)]}),(0,s.jsx)(p.$,{type:"button",size:"sm",variant:"outline",className:"rounded-[5px]",disabled:i.isPending,onClick:()=>{u(null),i.mutate(e.id,{onError:e=>u(e instanceof Error?e.message:"The share could not be revoked.")})},children:"Withdraw"})]},e.id))]}):null}function N({userId:e,workspaceId:t}){let r=y(e,t),{revoke:a}=w();if(r.isPending)return(0,s.jsxs)("p",{role:"status",className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,s.jsx)(l.A,{"aria-hidden":!0,className:"h-4 w-4 animate-spin"}),"Loading team sharingâ¦"]});if(r.error)return(0,s.jsx)("div",{role:"alert",className:"rounded-md border border-red-200 bg-red-50 p-3 text-sm text-red-800",children:r.error instanceof Error?r.error.message:"Team sharing could not be loaded."});let n=(r.data?.grants??[]).filter(t=>t.adminId===e&&"revoked"!==t.status);return(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsxs)("p",{className:"flex items-center gap-2 text-sm font-medium text-foreground",children:[(0,s.jsx)(m.A,{"aria-hidden":!0,className:"h-4 w-4"}),"Shared with your team"]}),(0,s.jsxs)("p",{className:"flex items-start gap-2 rounded-[10px] border border-border bg-muted/30 px-3 py-2 text-xs leading-5 text-muted-foreground",children:[(0,s.jsx)(u.A,{"aria-hidden":!0,className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),"A share is recorded on both accounts. Yours records the offer; the member's records their opt-in. Until they opt in, the share admits nothing."]}),a.error&&(0,s.jsx)("p",{role:"alert",className:"text-sm text-destructive",children:a.error.message}),0===n.length?(0,s.jsx)("p",{className:"rounded-md border border-border bg-background p-3 text-sm text-muted-foreground",children:"Nothing shared with a team member yet."}):(0,s.jsx)("ul",{className:"space-y-2",children:n.map(e=>(0,s.jsxs)("li",{className:"flex flex-wrap items-center justify-between gap-2 rounded-md border border-border bg-background p-3",children:[(0,s.jsxs)("span",{className:"text-sm",children:[(0,s.jsx)("span",{className:"font-medium text-foreground",children:j(e)}),(0,s.jsx)("span",{className:"block text-xs text-muted-foreground",children:g(e)?`Opted in ${new Date(e.memberOptedInAt).toLocaleDateString()}`:"Waiting for the member to opt in â this shares nothing yet"})]}),(0,s.jsx)(p.$,{type:"button",size:"sm",variant:"outline",className:"rounded-[5px]",disabled:a.isPending,onClick:()=>a.mutate(e.id),children:"Revoke"})]},e.id))})]})}}}]);
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.