PageSourceSearch

https://cdn.grok.com/_next/static/chunks/0jy8vp8bvxgb2.js

js grok.com collected 2026-10-01 09:14:13 UTC 39,923 bytes, 5 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="501aeb7a-49dc-5cd8-5214-6f6a1ff00a39")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,5641664,e=>{"use strict";var t=e.i(7671246);let n=(0,t.cn)("[--content-max-width:clamp(32rem,100cqw_-_3rem,44rem)]","[--content-gutter:1.5rem]","[--thead-sticky-top:0rem]","@xl/mainview:[--thead-sticky-top:0px]","breakout"),r="chat-md",i=[r,"prose","prose-chat"],o=(0,t.cn)(...i,"dark:prose-invert break-words");e.s(["CHAT_BODY_TEXT_CN",0,r,"CHAT_CONTAINER_CLASSES",0,n,"CHAT_MARKDOWN_LINK_CN",0,"chat-md-links","CHAT_MESSAGE_PROSE_CN",0,o,"CHAT_PROSE_TOKENS",0,i,"CHAT_THOUGHT_TEXT_CN",0,"chat-md-thought"])},8481501,893981,8676178,8959554,e=>{"use strict";var t=e.i(9338149),n=e.i(4372644),r=e.i(5641664),i=e.i(8326210);e.i(379120);var o=e.i(8071649),s=e.i(7026337),a=e.i(1546153);let l=(0,a.createContext)({scrollToBubble:()=>!1}),u=(0,a.createContext)(null);function c(){let e=new Set;return{register:t=>(e.add(t),()=>{e.delete(t)}),navigation:{scrollToBubble:(t,n)=>[...e].some(e=>e.scrollToBubble(t,n))}}}function d(){return(0,a.use)(l)}e.s(["PlaneNavigationContext",0,l,"PlaneNavigationScope",0,function(e){let r,i,o=(0,n.c)(6),{children:s}=e,[d]=(0,a.useState)(c);return o[0]!==s||o[1]!==d.navigation?(r=(0,t.jsx)(l,{value:d.navigation,children:s}),o[0]=s,o[1]=d.navigation,o[2]=r):r=o[2],o[3]!==d||o[4]!==r?(i=(0,t.jsx)(u,{value:d,children:r}),o[3]=d,o[4]=r,o[5]=i):i=o[5],i},"usePlaneNavigation",0,d,"useRegisterPlaneNavigation",0,function(e){let t,r,i=(0,n.c)(4),o=(0,a.use)(u);i[0]!==e||i[1]!==o?(t=()=>o?.register(e),r=[o,e],i[0]=e,i[1]=o,i[2]=t,i[3]=r):(t=i[2],r=i[3]),(0,a.useEffect)(t,r)}],893981);let f="responseHighlight";function m(e){return`response-${e}`}function g(e,t,n){if("none"===n)return;let r=new IntersectionObserver(e=>{e[0]?.isIntersecting&&(window.dispatchEvent(new CustomEvent(f,{detail:{responseId:t,effect:n}})),r.disconnect())},{threshold:.2});r.observe(e),setTimeout(()=>r.disconnect(),2e3)}e.s(["RESPONSE_HIGHLIGHT_EVENT",0,f,"useScrollToResponse",0,function(){let e,t=(0,n.c)(2),{scrollToBubble:r}=d();return t[0]!==r?(e=(e,t)=>{var n,i;let o,{effect:s}=void 0===t?{}:t,a=void 0===s?"pulse":s;return n=e,i=a,!!(o=document.getElementById(m(n)))&&(o.style.scrollMarginTop="5rem",o.scrollIntoView({behavior:"smooth",block:"start"}),g(o,n,i),!0)||r(e,t=>{let n=t.querySelector(`#${CSS.escape(m(e))}`);return n instanceof HTMLElement&&g(n,e,a),n})},t[0]=r,t[1]=e):e=t[1],e}],8676178);let p=/<\/?system[-_]reminder>/g,h=["shutdown_resume","proactive_checkin"];function b(e,t){return e&&!!t&&"user"!==t}function y(e){return null!=e&&h.includes(e)}function _(e){let t=e.replace(p,"").trim(),n=t.search(/\bresponse:\s/i);if(-1===n)return t;let r=t.indexOf("\n",n);return t.slice(-1!==r?r+1:n).trim()}function v(e){let t=e.slice(0,1024).match(/\(exit code: (-?\d+)\)/);return t?Number(t[1]):null}function w(e){let t=e.slice(0,1024).replace(p,""),n=t.match(/Background subagent "([^"]*)" \(([^:]*): "([^"]*)"\)/),r=t.match(/completed (successfully|with failure)/);if(!n||!r)return null;let i=t.match(/Duration:\s*([\d.]+s)/);return{subagentId:n[1]??"",subagentType:n[2]??"",description:n[3]??"",success:"successfully"===r[1],duration:i?.[1]??"?"}}e.s(["extractNotificationOutput",0,_,"inferNotificationOrigin",0,function(e){var t;if(e&&(t=e)&&/^\s*<system[-_]reminder>/.test(t))return w(e)?"subagent":/Background task "/.test(e.slice(0,1024))?"background_task":"system_reminder"},"isHiddenSystemOrigin",0,y,"isSystemOriginMessage",0,b,"parseBackgroundTaskExitCode",0,v,"parseSubagentMeta",0,w],8959554);var S=e.i(7671246),x=e.i(5984511),I=e.i(576664);e.i(9337504);var C=e.i(2910017);let E={tl:24,tr:24,br:24,bl:24},N={fill:"none",stroke:"currentColor",animate:{pathLength:[0,1,1,0],pathOffset:[0,0,0,1]},transition:{duration:1.8,ease:"easeInOut",times:[0,.222,.778,1]}};function k(e){let r,i,o,s,l,u,c,d,f,m=(0,n.c)(24),{bubbleRef:g,isHighlighted:p,isUser:h,onHighlightEnd:b}=e,[y,_]=(0,a.useState)(null);if(m[0]!==g||m[1]!==p||m[2]!==h?(r=()=>{if(!p)return;let e=g.current;if(!e)return;let t=()=>{let t=e.getBoundingClientRect(),n=window.getComputedStyle(e);_({width:t.width+32*!h,height:t.height,radii:h?{tl:parseFloat(n.borderTopLeftRadius)||0,tr:parseFloat(n.borderTopRightRadius)||0,br:parseFloat(n.borderBottomRightRadius)||0,bl:parseFloat(n.borderBottomLeftRadius)||0}:E})};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},i=[p,g,h],m[0]=g,m[1]=p,m[2]=h,m[3]=r,m[4]=i):(r=m[3],i=m[4]),(0,a.useLayoutEffect)(r,i),!p||!y)return null;let{width:v,height:w,radii:x}=y;m[5]!==w||m[6]!==x||m[7]!==v?(o=function(e,t,n){let{tl:r,tr:i,br:
2o,bl:s}=function(e,t,n){if(e<=0||t<=0)return{tl:0,tr:0,br:0,bl:0};let r=(e,t,n)=>t+n>0?e/(t+n):1,i=Math.min(1,r(e,n.tl,n.tr),r(e,n.bl,n.br),r(t,n.tl,n.bl),r(t,n.tr,n.br)),o=t=>Math.max(0,Math.min(t*i,e/2));return{tl:o(n.tl),tr:o(n.tr),br:o(n.br),bl:o(n.bl)}}(e-0,t-0,n),a=e-0,l=t-0,u=e/2,c=e=>Math.round(100*e)/100;return{cwD:`M ${c(u)} ${c(0)} H ${c(a-i)} A ${c(i)} ${c(i)} 0 0 1 ${c(a)} ${c(0+i)} V ${c(l-o)} A ${c(o)} ${c(o)} 0 0 1 ${c(a-o)} ${c(l)} H ${c(u-.5)}`,ccwD:`M ${c(u)} ${c(0)} H ${c(0+r)} A ${c(r)} ${c(r)} 0 0 0 ${c(0)} ${c(0+r)} V ${c(l-s)} A ${c(s)} ${c(s)} 0 0 0 ${c(0+s)} ${c(l)} H ${c(u+.5)}`}}(v,w,x),m[5]=w,m[6]=x,m[7]=v,m[8]=o):o=m[8];let{cwD:C,ccwD:k}=o,A=h?"w-full inset-0":"w-[calc(100%+32px)] inset-y-0 inset-x-[-16px] overflow-visible";m[9]!==A?(s=(0,S.cn)("absolute h-full pointer-events-none text-fg-secondary",A),m[9]=A,m[10]=s):s=m[10];let T=`0 0 ${v} ${w}`,M=h?2:1;return m[11]===Symbol.for("react.memo_cache_sentinel")?(l={opacity:0},u={opacity:1},m[11]=l,m[12]=u):(l=m[11],u=m[12]),m[13]!==C||m[14]!==b?(c=(0,t.jsx)(I.motion.path,{d:C,...
2N,onAnimationComplete:b}),m[13]=C,m[14]=b,m[15]=c):c=m[15],m[16]!==k?(d=(0,t.jsx)(I.motion.path,{d:k,...N}),m[16]=k,m[17]=d):d=m[17],m[18]!==c||m[19]!==d||m[20]!==s||m[21]!==T||m[22]!==M?(f=(0,t.jsxs)(I.motion.svg,{className:s,viewBox:T,preserveAspectRatio:"none",strokeWidth:M,initial:l,animate:u,children:[c,d]}),m[18]=c,m[19]=d,m[20]=s,m[21]=T,m[22]=M,m[23]=f):f=m[23],f}function A(e){let r,i,o,s,a,l=(0,n.c)(8),{isPulsing:u,isUser:c,onPulseEnd:d}=e;if(!u)return null;let f=c?"inset-0 rounded-[inherit]":"-inset-4 rounded-3xl";return l[0]!==f?(r=(0,S.cn)("absolute pointer-events-none text-fg-secondary bg-current",f),l[0]=f,l[1]=r):r=l[1],l[2]===Symbol.for("react.memo_cache_sentinel")?(i={opacity:0},o={opacity:[0,.1,0]},s={duration:.5,ease:"easeOut"},l[2]=i,l[3]=o,l[4]=s):(i=l[2],o=l[3],s=l[4]),l[5]!==d||l[6]!==r?(a=(0,t.jsx)(I.motion.div,{className:r,initial:i,animate:o,transition:s,onAnimationComplete:d}),l[5]=d,l[6]=r,l[7]=a):a=l[7],a}function T(e){if(!window)return;let t=window.getSelection();if(!t||t.isCollapsed||!t.rangeCount)return;let n=t.getRangeAt(0),r=n.cloneContents(),i=document.createElement("div");i.appendChild(r);let o=i.querySelector(".message-bubble")??i;o.querySelectorAll("*").forEach(j),o.className="",Array.from(o.querySelectorAll("[class]")).forEach(M);let s=!!o.querySelector("table, thead, tbody, tfoot, tr, th, td"),a=!!o.querySelector("p, div, h1, h2, h3, h4, h5, h6, ul, ol, li"),l=O(n);if(!l)return;let u=s?o.querySelector("table")?o.innerHTML:`<table>${o.innerHTML}</table>`:a?o.innerHTML:function(e){let t=e.split("\n"),n=[],r="";for(let e=0;e<t.length;e++){let i=t[e];i?.trim()===""?r&&(n.push(r),r=""):r+=r?`
3${i}`:i}return r&&n.push(r),n.filter(e=>""!==e).map(e=>`<p dir="auto" style="white-space: pre-wrap;">${e}</p>`).join("\n")}(l);e.clipboardData?.setData("text/plain",l),e.clipboardData?.setData("text/html",u),e.preventDefault()}function M(e){e.removeAttribute("class")}function j(e){R(e)&&e.remove()}function P(e){return!e}let R=e=>{let t=window.getComputedStyle(e),n=e.tagName.toLowerCase();return"none"===t.userSelect||"none"===t.display||"hidden"===t.visibility||"button"===n||"input"===n||"select"===n||"textarea"===n||"button"===e.getAttribute("role")||e.classList.contains("no-copy")||e.hasAttribute("data-no-copy")},O=e=>{let t=e.toString();if(!t.trim())return t;let n=e.cloneContents(),r=document.createElement("div");r.appendChild(n),r.querySelectorAll("*").forEach(e=>{R(e)&&e.remove()});let i="";return Array.from(r.childNodes).forEach(e=>{!function e(t){if(t.nodeType===Node.TEXT_NODE){let e=t.textContent||"";i+=e}else if(t.nodeType===Node.ELEMENT_NODE){let n=t.tagName.toLowerCase();Array.from(t.childNodes).forEach(t=>{e(t)}),"block"===window.getComputedStyle(t).display?t.nextSibling&&i&&!i.endsWith("\n")&&(i+="\n"):"br"===n&&(i+="\n")}}(e)}),i.trim()};function $(e){let r,i,o=(0,n.c)(4),{message:s}=e;o[0]!==s?(r=_(s),o[0]=s,o[1]=r):r=o[1];let a=r;return o[2]!==a?(i=(0,t.jsx)("pre",{className:"whitespace-pre-wrap font-mono text-fg-primary/80",children:a}),o[2]=a,o[3]=i):i=o[3],i}function L(e){let r,a,l,u,c,d,f,m,g,p,h,b,y,_=(0,n.c)(46),{origin:E,message:N,isExpanded:k,onToggle:A}=e,{t:T}=(0,C.useTranslation)("chat");_[0]!==N||_[1]!==E?(r="subagent"===E?w(N):null,_[0]=N,_[1]=E,_[2]=r):r=_[2];let M=r,j="subagent"===E&&null!==M;_[3]!==N||_[4]!==E?(a="background_task"===E?v(N):null,_[3]=N,_[4]=E,_[5]=a):a=_[5];let P=a,R=j?!M.success:null!==P&&0!==P;_[6]!==R||_[7]!==T?(l=R?T("system-notification-subagent-failed.title","Subagent failed"):T("system-notification-subagent.title","Subagent completed"),_[6]=R,_[7]=T,_[8]=l):l=_[8];let O=l;e:{let e;if(j){u=`${O}${M.description?`: ${M.description}`:""}`;break e}if("background_task"===E){let e;_[9]!==R||_[10]!==T?(e=R?T("system-notification-bg-task-failed.title","Background command failed"):T("system-notification-bg-task.title","Background command finished"),_[9]=R,_[10]=T,_[11]=e):e=_[11],u=e;break e}if("subagent"===E){let e;_[12]!==T?(e=T("system-notification-subagent.title","Subagent completed"),_[12]=T,_[13]=e):e=_[13],u=e;break e}if("scheduled_task"===E){let e;_[14]!==T?(e=T("system-notification-scheduled-task.title","Loop ran"),_[14]=T,_[15]=e):e=_[15],u=e;break e}if("monitor"===E){let e;_[16]!==T?(e=T("system-notification-monitor.title","Monitor event"),_[16]=T,_[17]=e):e=_[17],u=e;break e}_[18]!==T?(e=T("system-notification-default.title","System event"),_[18]=T,_[19]=e):e=_[19],u=e}let L=u;return _[20]===Symbol.for("react.memo_cache_sentinel")?(c=(0,S.cn)("flex min-h-11 w-full items-center gap-2 px-3 py-2.5","text-left transition-colors hover:bg-surface-l2","outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring"),_[20]=c):c=_[20],_[21]!==R||_[22]!==E?(d="subagent"===E||"background_task"===E?(0,t.jsx)(i.SubagentStatusLottie,{status:R?"failed":"done",size:15,className:"shrink-0 text-fg-secondary"}):(0,t.jsx)(o.TerminalIcon,{className:"size-3.5 shrink-0 text-fg-secondary"}),_[21]=R,_[22]=E,_[23]=d):d=_[23],_[24]!==L?(f=(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-xs font-semibold text-fg-primary",children:L}),_[24]=L,_[25]=f):f=_[25],_[26]!==j||_[27]!==M?(m=j&&(0,t.jsx)("span",{className:"shrink-0 text-xs text-fg-secondary",children:M.duration}),_[26]=j,_[27]=M,_[28]=m):m=_[28],_[29]!==k?(g=(0,t.jsx)(s.MorphingChevron,{open:k,className:"size-3.5 shrink-0 text-fg-secondary"}),_[29]=k,_[30]=g):g=_[30],_[31]!==k||_[32]!==A||_[33]!==d||_[34]!==f||_[35]!==m||_[36]!==g?(p=(0,t.jsxs)("button",{type:"button",onClick:A,"aria-expanded":k,className:c,children:[d,f,m,g]}),_[31]=k,_[32]=A,_[33]=d,_[34]=f,_[35]=m,_[36]=g,_[37]=p):p=_[37],_[38]!==k||_[39]!==N?(h=k&&(0,t.jsx)(I.motion.div,{initial:{height:0,opacity:0}
3,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",children:(0,t.jsx)("div",{className:"border-t border-border-l1 px-3 py-2.5 text-xs",children:(0,t.jsx)($,{message:N})})}),_[38]=k,_[39]=N,_[40]=h):h=_[40],_[41]!==h?(b=(0,t.jsx)(x.AnimatePresence,{children:h}),_[41]=h,_[42]=b):b=_[42],_[43]!==p||_[44]!==b?(y=(0,t.jsxs)("div",{className:"not-prose overflow-hidden rounded-[14px] border border-border-l1",children:[p,b]}),_[43]=p,_[44]=b,_[45]=y):y=_[45],y}e.s(["MessageBubble",0,function(e){let i,o,s,l,u,c,d,m,g,p,h,_,v=(0,n.c)(38),{isUser:w,isIncognito:x,children:I,responseId:E,className:N,origin:M,message:j}=e,{t:R}=(0,C.useTranslation)("chat");v[0]!==w||v[1]!==M?(i=b(w,M),v[0]=w,v[1]=M,v[2]=i):i=v[2];let O=i;v[3]!==O||v[4]!==w||v[5]!==R?(o=O?R("message-bubble.sender-system","System"):w?R("message-bubble.sender-you","You"):R("message-bubble.sender-grok","Grok"),v[3]=O,v[4]=w,v[5]=R,v[6]=o):o=v[6];let $=o,[B,D]=(0,a.useState)(!1),[F,G]=(0,a.useState)(!1),[W,H]=(0,a.useState)(!1);v[7]===Symbol.for("react.memo_cache_sentinel")?(s=()=>H(P),v[7]=s):s=v[7];let U=s;v[8]!==E?(l=()=>{let e=e=>{e.detail.responseId===E&&("trace"===e.detail.effect?D(!0):G(!0))};return window.addEventListener(f,e),()=>{window.removeEventListener(f,e)}},u=[E],v[8]=E,v[9]=l,v[10]=u):(l=v[9],u=v[10]),(0,a.useEffect)(l,u);let z=(0,a.useRef)(null);if(w&&y(M))return null;let V=w?"user-message":"assistant-message",q=O?M:void 0;return v[11]!==N||v[12]!==x||v[13]!==O||v[14]!==w?(c=(0,S.cn)("message-bubble relative","rounded-3xl text-fg-primary min-h-7",r.CHAT_MESSAGE_PROSE_CN,w&&!O?(0,S.cn)("max-w-[100%] @sm/mainview:max-w-[90%] has-[pre]:w-full px-4 py-2 overflow-x-auto",x?"bg-surface-incognito-elevated border border-border-incognito-muted rounded-br-lg":"bg-surface-user-bubble rounded-2xl"):O?"w-full max-w-none overflow-hidden rounded-[14px] px-0 py-0":"w-full max-w-none",N),v[11]=N,v[12]=x,v[13]=O,v[14]=w,v[15]=c):c=v[15],v[16]!==I||v[17]!==W||v[18]!==O||v[19]!==j||v[20]!==M?(d=O?(0,t.jsx)(L,{origin:M,message:j??"",isExpanded:W,onToggle:U}):I,v[16]=I,v[17]=W,v[18]=O,v[19]=j,v[20]=M,v[21]=d):d=v[21],v[22]===Symbol.for("react.memo_cache_sentinel")?(m=()=>D(!1),v[22]=m):m=v[22],v[23]!==B||v[24]!==w?(g=(0,t.jsx)(k,{bubbleRef:z,isHighlighted:B,isUser:w,onHighlightEnd:m}),v[23]=B,v[24]=w,v[25]=g):g=v[25],v[26]===Symbol.for("react.memo_cache_sentinel")?(p=()=>G(!1),v[26]=p):p=v[26],v[27]!==F||v[28]!==w?(h=(0,t.jsx)(A,{isPulsing:F,isUser:w,onPulseEnd:p}),v[27]=F,v[28]=w,v[29]=h):h=v[29],v[30]!==$||v[31]!==g||v[32]!==h||v[33]!==V||v[34]!==q||v[35]!==c||v[36]!==d?(_=(0,t.jsxs)("div",{dir:"auto",ref:z,role:"article","aria-label":$,"data-testid":V,"data-origin":q,className:c,onCopy:T,suppressHydrationWarning:!0,children:[d,g,h]}),v[30]=$,v[31]=g,v[32]=h,v[33]=V,v[34]=q,v[35]=c,v[36]=d,v[37]=_):_=v[37],_}],8481501)},8326210,e=>{"use strict";var t=e.i(9338149),n=e.i(4372644),r=e.i(1546153),i=e.i(4184113),o=e.i(8900221),s=e.i(7671246);let a=(0,o.lazyComponent)(()=>e.A(4114427),e=>e.SubagentStatusClip,{name:"subagent-status-lottie"});e.s(["SubagentStatusLottie",0,function(e){let o,l,u,c,d=(0,n.c)(13),{status:f,size:m,className:g}=e,p=void 0===m?14:m,[h]=(0,r.useState)(i.prefersReducedMotion),[b]=(0,r.useState)(f),y="running"!==f&&f===b,_=!h&&"pending"!==f&&!y,v="pending"===f?"running":f;return d[0]!==g||d[1]!==f?(o=(0,s.cn)("failed"===f?"text-fg-danger":"text-fg-secondary",g),d[0]=g,d[1]=f,d[2]=o):o=d[2],d[3]!==p?(l={width:p,height:p},d[3]=p,d[4]=l):l=d[4],d[5]!==v||d[6]!==_||d[7]!==p?(u=(0,t.jsx)(a,{clip:v,size:p,play:_},v),d[5]=v,d[6]=_,d[7]=p,d[8]=u):u=d[8],d[9]!==o||d[10]!==l||d[11]!==u?(c=(0,t.jsx)("div",{className:o,style:l,children:u}),d[9]=o,d[10]=l,d[11]=u,d[12]=c):c=d[12],c}])},3411147,e=>{"use strict";var t=e.i(9338149),n=e.i(4372644),r=e.i(7671246),i=e.i(5583746),o=e.i(6014795);e.s(["GrokBotThinkingIndicator",0,function(e){let s,a,l,u,c,d=(0,n.c)(13),{className:f,color:m,messaging:g,shape:p,state:h}=e;d[0]!==f?(s=(0,r.cn)("flex size-6 shrink-0",f),d[0]=f,d[1]=s):s=d[1],d[2]!==m?(a=m?(0,i.botAvatarFill)(m):"hsl(var(--fg-primary))",d[2]=m,d[3]=a):a=d[3],d[4]!==a?(l={"--fg":a,"--bg":"hsl(var(--surface-base))"},d[4]=a,d[5]=l):l=d[5];let b=l,y=void 0!==g&&g?"thinking":void 0===h?"loading":h;return d[6]!==p||d[7]!==y?(u=(0,t.jsx)(o.LazyGrokBot,{className:"size-full",shape:p,state:y,initialInView:!0}),d[6]=p,d[7]=y,d[8]=u):u=d[8],d[9]!==s||d[10]!==b||d[11]!==u?(c=(0,t.jsx)("span",{"aria-hidden":!0,
3className:s,style:b,children:u}),d[9]=s,d[10]=b,d[11]=u,d[12]=c):c=d[12],c}])},7026337,36986,5902099,e=>{"use strict";var t=e.i(9338149),n=e.i(4372644),r=e.i(576664),i=e.i(703203),o=e.i(1155167),s=e.i(702401),a=e.i(5114981),l=e.i(5901581);function u(e){return"number"==typeof e?e:parseFloat(e)}var c=e.i(1546153),d=e.i(2705809),f=e.i(3893886);function m(e){let t=(0,f.useConstant)(()=>(0,o.motionValue)(e)),{isStatic:n}=(0,c.useContext)(d.MotionConfigContext);if(n){let[,n]=(0,c.useState)(e);(0,c.useEffect)(()=>t.on("change",n),[])}return t}e.s(["useMotionValue",0,m],36986);var g=e.i(755101),p=e.i(5455169);function h(e,t){let n=m(t()),r=()=>n.set(t());return r(),(0,p.useIsomorphicLayoutEffect)(()=>{let t=()=>l.frame.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,l.cancelFrame)(r)}}),n}function b(e,t,n,r){if("function"==typeof e){let t;return o.collectMotionValues.current=[],e(),t=h(o.collectMotionValues.current,e),o.collectMotionValues.current=void 0,t}if(void 0!==n&&!Array.isArray(n)&&"function"!=typeof t){var i=e,s=t,a=n,l=r;let o=(0,f.useConstant)(()=>Object.keys(a)),u=(0,f.useConstant)(()=>({}));for(let e of o)u[e]=b(i,s,a[e],l);return u}let u="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],s=e[3+n],a=(0,g.interpolate)(i,o,s);return t?a(r):a}(t,n,r),c=Array.isArray(e)?y(e,u):y([e],([e])=>u(e)),d=Array.isArray(e)?void 0:e.accelerate;return d&&!d.isTransformed&&"function"!=typeof t&&Array.isArray(n)&&r?.clamp!==!1&&(c.accelerate={...d,times:t,keyframes:n,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),c}function y(e,t){let n=(0,f.useConstant)(()=>[]);return h(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}e.s(["useTransform",0,b],5902099);let _={viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round"};function v(e){let[t,n]=e;return`4,${t} 8,${n} 12,${t}`}e.s(["MorphingChevron",0,function(e){let o,f,g,p,h,y,w,S,x,I,C=(0,n.c)(24),{open:E,className:N}=e,k=void 0===N?"size-3":N,A=(0,i.useReducedMotion)();C[0]===Symbol.for("react.memo_cache_sentinel")?(o={stiffness:400,damping:30},C[0]=o):o=C[0];let T=function(e,t={}){return function(e,t={}){let{isStatic:n}=(0,c.useContext)(d.MotionConfigContext),r=()=>(0,a.isMotionValue)(e)?e.get():e;if(n)return b(r);let i=m(r());return(0,c.useInsertionEffect)(()=>(function(e,t,n={}){let r,i=e.get(),o=null,c=i,d="string"==typeof i?i.replace(/[\d.-]/g,""):void 0,f=()=>{o&&(o.stop(),o=null),e.animation=void 0},m=()=>{(()=>{let t=u(e.get()),i=u(c);if(t===i)return f();let a=o?o.getGeneratorVelocity():e.getVelocity();f(),o=new s.JSAnimation({keyframes:[t,i],velocity:a,type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:r})})(),e.animation=o??void 0,e.events.animationStart?.notify(),o?.then(()=>{e.animation=void 0,e.events.animationComplete?.notify()})};if(e.attach((e,t)=>{c=e,r=e=>{var n,r;return t((n=e,(r=d)?n+r:n))},l.frame.postRender(m)},f),(0,a.isMotionValue)(t)){let r=!0===n.skipInitialAnimation,i=t.on("change",t=>{var n,i,o,s;r?(r=!1,e.jump((n=t,(i=d)?n+i:n),!1)):e.set((o=t,(s=d)?o+s:o))}),o=e.on("destroy",i);return()=>{i(),o()}}return f})(i,e,t),[i,JSON.stringify(t)]),i}(e,{type:"spring",...t})}(+!!E,o);C[1]!==E||C[2]!==T?(f=()=>{T.set(+!!E)},g=[E,T],C[1]=E,C[2]=T,C[3]=f,C[4]=g):(f=C[3],g=C[4]),(0,c.useEffect)(f,g),C[5]===Symbol.for("react.memo_cache_sentinel")?(p=[0,1],h=[10,6],C[5]=p,C[6]=h):(p=C[5],h=C[6]);let M=b(T,p,h);C[7]===Symbol.for("react.memo_cache_sentinel")?(y=[0,1],w=[6,10],C[7]=y,C[8]=w):(y=C[7],w=C[8]);let j=b(T,y,w);C[9]!==j||C[10]!==M?(S=[j,M],C[9]=j,C[10]=M,C[11]=S):S=C[11];let P=b(S,v);if(A){let e,n,r;if(C[12]!==E){let t;t=E?10:6,e=`4,${t} 8,${E?6:10} 12,${t}`,C[12]=E,C[13]=e}else e=C[13];return C[14]!==e?(n=(0,t.jsx)("polyline",{points:e}),C[14]=e,C[15]=n):n=C[15],C[16]!==k||C[17]!==n?(r=(0,t.jsx)("svg",{..._,className:k,"aria-hidden":!0,children:n}),C[16]=k,C[17]=n,C[18]=r):r=C[18],r}return C[19]!==P?(x=(0,t.jsx)(r.motion.polyline,{points:P}),C[19]=P,C[20]=x):x=C[20],C[21]!==k||C[22]!==x?(I=(0,t.jsx)("svg",{..._,className:k,"aria-hidden":!0,
3children:x}),C[21]=k,C[22]=x,C[23]=I):I=C[23],I}],7026337)},22090,e=>{"use strict";function t(e){return e.replace("___","_")}let n=new WeakMap;e.s(["findConnectorByToolName",0,function(e,r){let i=function(e){let r=n.get(e);if(r)return r;let i=new Map,o=new Map;for(let n of e){for(let e of n.tools)i.set(t(e.name),n);let e=n.displayName.toLowerCase().replace(/\s+/g,"_");o.set(e,n)}let s={byToolName:i,byPrefix:o};return n.set(e,s),s}(r),o=i.byToolName.get(t(e));if(o)return o;let s=e.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase();for(let e=s.length;e>0;e=s.lastIndexOf("_",e-1)){let t=i.byPrefix.get(s.slice(0,e));if(t)return t}},"getConnectorUsageFromTraceSteps",0,function(e,t){let n=new Set,r=new Set;for(let i of e)if("tool"===i.type)for(let e of i.cards){let i=e.mcp?.toolName??function(e){for(let[t,n]of Object.entries(e))if("toolUsageCardId"!==t&&"intent"!==t&&null!=n)return t}(e);if(!i)continue;r.add(i);let o=t.get(i);o&&n.add(o.displayName)}return{connectorsUsed:Array.from(n),connectorToolsUsed:Array.from(r)}}])},8900221,e=>{"use strict";var t=e.i(9338149),n=e.i(4372644),r=e.i(6970496),i=e.i(2210872),o=e.i(1546153);e.s(["lazyComponent",0,function(e,s,a={}){let l,u=a.name??"lazy-component",{fallback:c}=a,d=(0,i.cachedPromise)(e);function f(){let e=d();if("fulfilled"===e.status)return e;if(!l){let e=(0,i.trackPromise)((0,r.lazyWithRetry)(u,d)());e.then(void 0,()=>{l=void 0}),l=e}return l}function m(e){return(0,o.createElement)(s((0,o.use)(f())),e)}function g(e){let r,i,s,a=(0,n.c)(7);return a[0]!==e?(r="function"==typeof c?c(e):c,a[0]=e,a[1]=r):r=a[1],a[2]!==e?(i=(0,t.jsx)(m,{...e}),a[2]=e,a[3]=i):i=a[3],a[4]!==r||a[5]!==i?(s=(0,t.jsx)(o.Suspense,{fallback:r,children:i}),a[4]=r,a[5]=i,a[6]=s):s=a[6],s}return g.displayName=`Lazy(${u})`,Object.assign(g,{preload:()=>(0,r.preloadWithRetry)(u,d).then(()=>void 0),load:()=>f().then(()=>void 0)})},"useHasEverOpened",0,function(e){let[t,n]=(0,o.useState)(e);return e&&!t&&n(!0),e||t}])},7319439,2373803,e=>{"use strict";let t="/home/workdir/artifacts",n="/mnt/project",r=[`${t}/`,"/home/workdir/","/workspace/","workspace/","artifacts/",`${n}/`];function i(e){return e?.split(/\r?\n/,1)[0]?.trim()??""}function o(e){let t=i(e);if(!t)return"";if(/^[A-Za-z]:[/\\]/.test(t))return t;if("/workspace"===t||"workspace"===t||t===n)return"/";for(let e of r)if(t.startsWith(e)){t=t.slice(e.length);break}return t&&"/"!==t?(!t.startsWith("/")&&t.includes("/")&&(t=`/${t}`),t):"/"}let s=new Set([".png",".jpg",".jpeg",".gif",".webp",".bmp",".ico",".tiff",".tif",".avif"]);function a(e){let t=e.split(/[?#]/,1)[0]??"";return t.slice(t.lastIndexOf(".")).toLowerCase()}function l(e){return!!e&&".svg"===a(e)}function u(e){return!(!e||l(e))&&s.has(a(e))}function c(e){return!(l(e.fileName)||l(e.filePath))&&(!!(u(e.fileName)||u(e.filePath))||(e.width??0)>0&&(e.height??0)>0)}function d(e){return void 0===e.fileName||c({fileName:e.fileName,filePath:e.url,width:e.width,height:e.height})}e.s(["GROK_WORKDIR_PATH",0,t,"PROJECT_MOUNT_PATH",0,n,"WORKDIR_PREFIXES",0,r,"firstPathLine",0,i,"isImageAttachmentEntry",0,c,"isImageAttachmentName",0,function(e,t){return!(t&&t.toLowerCase().split(";",1)[0]?.trim()==="image/svg+xml"||l(e))&&(!!t?.toLowerCase().startsWith("image/")||u(e))},"isImageFilePath",0,u,"isImageMedia",0,d,"isSkillFilePath",0,function(e){return"skill.md"===(e.split(/[/\\]/).pop()??"").toLowerCase()},"isSvgAssetRef",0,function(e){return!!e&&(!!e.toLowerCase().startsWith("data:image/svg+xml")||l(e))},"isSvgFilePath",0,l,"normalizeFilePath",0,o,"partitionBotMedia",0,function(e){let t=[],n=[];for(let r of e)d(r)?t.push(r):void 0!==r.fileName&&n.push({path:r.url,fileName:r.fileName});return{images:t,files:n}}],2373803);let f=["/home/workdir/attachments/","attachments/","/tmp/"];function m(e){let t=o(e);return t&&"/"!==t?t.startsWith("/")?t:`/${t}`:"/"}let g=[`${t}/`,"artifacts/",`${n}/`];e.s(["buildModeWorkspaceRootedPath",0,function(e){let r=i(e);if(!r)return"";if(r===n||r===t||"artifacts"===r)return"/";let o=g.find(e=>r.startsWith(e));if(void 0===o)return"";let s=r.slice(o.length);return s&&"/"!==s?s.startsWith("/")?s:`/${s}`:"/"},"getEditTargetPath",0,function(e){return e.editFile?.args?.filePath??e.writeFile?.args?.filePath},"isEphemeralToolFilePath",0,function(e){let t=i(e);return f.some(e=>
3t.startsWith(e))},"normalizeWorkspaceOpenPath",0,m,"workspaceRootedPath",0,function(e){let t=i(e);return t&&("/workspace"===t||"workspace"===t||t===n||!t.startsWith("/")||r.some(e=>t.startsWith(e)))?m(t):""}],7319439)},703203,e=>{"use strict";var t=e.i(3532927),n=e.i(7583558),r=e.i(1546153);e.s(["useReducedMotion",0,function(){t.hasReducedMotionListener.current||(0,n.initPrefersReducedMotion)();let[e]=(0,r.useState)(t.prefersReducedMotion.current);return e}])},3120128,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BailoutToCSR",{enumerable:!0,get:function(){return i}});let r=e.r(1700879);function i({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new r.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},3378436,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"PreloadChunks",{enumerable:!0,get:function(){return l}});let r=e.r(9338149),i=e.r(5927437),o=e.r(5523406),s=e.r(207917),a=e.r(3731222);function l({moduleIds:e}){if("u">typeof window)return null;let t=o.workAsyncStorage.getStore();if(void 0===t)return null;let n=[];if(t.reactLoadableManifest&&e){let r=t.reactLoadableManifest;for(let t of e){if(!r[t])continue;let e=r[t].files;n.push(...e)}}if(0===n.length)return null;let u=(0,a.getAssetTokenQuery)();return(0,r.jsx)(r.Fragment,{children:n.map(e=>{let n=`${t.assetPrefix}/_next/${(0,s.encodeURIPath)(e)}${u}`;return e.endsWith(".css")?(0,r.jsx)("link",{precedence:"dynamic",href:n,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,i.preload)(n,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},7320064,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return u}});let r=e.r(9338149),i=e.r(1546153),o=e.r(3120128),s=e.r(3378436);function a(e){return{default:e&&"default"in e?e.default:e}}let l={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},u=function(e){let t={...l,...e},n=(0,i.lazy)(()=>t.loader().then(a)),u=t.loading;function c(e){let a=u?(0,r.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,l=!t.ssr||!!t.loading,c=l?i.Suspense:i.Fragment,d=t.ssr?(0,r.jsxs)(r.Fragment,{children:["u"<typeof window?(0,r.jsx)(s.PreloadChunks,{moduleIds:t.modules}):null,(0,r.jsx)(n,{...e})]}):(0,r.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...e})});return(0,r.jsx)(c,{...l?{fallback:a}:{},children:d})}return c.displayName="LoadableComponent",c}},8077623,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return i}});let r=e.r(6665568)._(e.r(7320064));function i(e,t){let n={};"function"==typeof e&&(n.loader=e);let i={...n,...t};return(0,r.default)({...i,modules:i.loadableGenerated?.modules})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},5583746,e=>{"use strict";var t=e.i(7749087),n=e.i(9415910);function r(e){return[...e].sort().join("\0")}function i(e,t){return e.length===t.length&&r(e)===r(t)}function o(e,t){let n=t.trim().toLowerCase();return""!==n&&[e.name,e.agentId].some(e=>e.trim().toLowerCase()===n)}e.s(["DEFAULT_BOT_AVATAR",0,{color:"blue",glyph:"blob"},"GROUP_MAX_MEMBERS",0,6,"agentForRecipients",0,function(e,t){if(0!==t.length){if(1===t.length){let n=t[0];return void 0===n?void 0:e.find(e=>e.agentId===n)}return t.length<2?void 0:e.find(e=>!0===e.isGroup&&void 0!==e.memberIds&&i(e.memberIds,t))}},"agentMemberIds",0,function(e){return!0===e.isGroup?[...e.memberIds??[]]:[e.agentId]},"botActivityAgent",0,function(e,t,n){if(!0===e.isGroup&&null!==n&&e.memberIds?.includes(n)===!0)return t.find(e=>e.agentId===n)},"botAvatarFill",0,function(e){return"black"===e?"light-dark(#000000, #ffffff)":(0,t.grokBotColorValue)(e)},"botsWithExactMatch",0,function(e,t){return e.filter(e=>o(e,t))},"canRemoveGroupMember",0,function(e){return e.length>2},"collapsedBotIds",0,function(e,t,n){let r=new Set(e.map(e=>e.agentId)),i=new Set([...void 0===n?[]:[n],...t].filter(e=>r.has(e)));for(let t of e){if(i.size>=3)break;i.add(t.agentId)}return i},"filterBotsByQuery",0,function(e,t){let n=t.trim().toLowerCase();return n?e.filter(e=>e.name.toLowerCase().includes(n)||o(e,t)):[...e]},"formatNameList",0,function(e,t,n="conjunction"){return new Intl.ListFormat(t,"unit"===n?{style:"short",type:"unit"}:{style:"long",type:"conjunction"}).format(e)},"groupSidebarBots",0,function(e,t){let r=new Set(t.flatMap(e=>e.id===n.UNASSIGNED_SIDEBAR_SECTION_ID?[]:e.agentIds)),i=e=>!r.has(e.agentId),o=t.map(t=>({sectionId:t.id,name:t.id===n.UNASSIGNED_SIDEBAR_SECTION_ID?null:t.name,agents:e.filter(e=>t.id===n.UNASSIGNED_SIDEBAR_SECTION_ID?i(e):t.agentIds.includes(e.agentId))}));return t.some(e=>e.id===n.UNASSIGNED_SIDEBAR_SECTION_ID)||o.push({sectionId:n.UNASSIGNED_SIDEBAR_SECTION_ID,name:null,agents:e.filter(i)}),o.filter(e=>null!==e.name||e.agents.length>0)},"isExactBotMatch",0,o,"memberAgents",0,function(e,t){if(!t||0===t.length)return[];let n=new Map(e.map(e=>[e.agentId,e]));return t.flatMap(e=>{let t=n.get(e);return t?[t]:[]})},"normalizeSidebarSections",0,function(e){let t=new Set,r=new Set,i=[];for(let o of e){let e=o.id.trim();if(!e||t.has(e))continue;if(t.add(e),e===n.UNASSIGNED_SIDEBAR_SECTION_ID){i.push({...o,id:e,agentIds:[]});continue}let s=o.agentIds.filter(e=>!(!e||r.has(e))&&(r.add(e),!0));i.push({...o,id:e,agentIds:s})}return i.every(e=>e.id===n.UNASSIGNED_SIDEBAR_SECTION_ID&&!e.isCollapsed)?[]:i},"partitionSidebarBots",0,function(e){let t=[],n=[];for(let r of e)r.hiddenFromSidebar?n.push(r):t.push(r);return{visible:t,hidden:n}},"reorderSidebarSections",0,function(e,t,r){let i=e.some(e=>e.id===n.UNASSIGNED_SIDEBAR_SECTION_ID)||r!==n.UNASSIGNED_SIDEBAR_SECTION_ID?e:[...e,{id:n.UNASSIGNED_SIDEBAR_SECTION_ID,name:"",agentIds:[],isCollapsed:!1}],o=i.find(e=>e.id===t),s=i.findIndex(e=>e.id===r);if(!o||s<0||t===r)return;let a=i.filter(e=>e!==o);return a.splice(s,0,o),a},"sameMemberSet",0,i,"splitPinnedBots",0,function(e,t){let n=new Map(e.map(e=>[e.agentId,e])),r=new Set,i=[];for(let e of t){let t=n.get(e);!t||r.has(e)||(r.add(e),i.push(t))}return{pinned:i,unpinned:e.filter(e=>!r.has(e.agentId))}},"withAgentUpdated",0,function(e,t,n){let r=e.map(e=>e.agentId===t?n(e):e);return r.every((t,n)=>t===e[n])?e:r},"withPreservedLocalFields",0,function(e,t){let n=e.hiddenFromSidebar??t?.hiddenFromSidebar,r=e.conversationId??t?.conversationId,i=void 0!==e.lastMessagePreview||void 0!==e.lastMessagePreviewSource,o=i?e.lastMessagePreview:t?.lastMessagePreview,s=i?e.lastMessagePreviewSource:t?.lastMessagePreviewSource,a=e.lastMessagePreviewAt??t?.lastMessagePreviewAt;return{...e,...void 0!==n?{hiddenFromSidebar:n}:{},...void 0!==r?{conversationId:r}:{},...void 0!==o?{lastMessagePreview:o}:{},...void 0!==s?{lastMessagePreviewSource:s}:{},...void 0!==a?{lastMessagePreviewAt:a}:{}}},"withUpdatedAtAtLeast",0,function(e,t){return t>(e.updatedAt??0)?{...e,updatedAt:t}:e}])},3301370,e=>{"use strict";function t(e){return(e.connectorId??"").length>0||(e.connectorCatalogId??"").length>0||(e.connectorName??"").trim().length>0}function n(e){let t=e.lastIndexOf("___");return(-1===t?e:e.slice(t+3)).toLowerCase()}function r(e){let t=e.indexOf("___");return -1===t?"":e.slice(0,t)}function i(e){return r(e).toLowerCase()}function o(e){return e.trim().toLowerCase().replace(/[\s-]+/g,"_")}function s(e){let t=n(e);return t.startsWith("gmail_")||"gmail"===t?"gmail":t.startsWith("google_calendar_")||"google_calendar"===t?"google_calendar":void 0}let a=new Set(["imagine_text_to_image","imagine_image_to_image","imagine_reference_to_image"]),l=new Set(["get_task_output","get_task_or_subagent_output","get_command_or_subagent_output","get_terminal_command_output","kill_task","kill_terminal_command","kill_command_or_subagent","wait_tasks","wait_tasks_or_subagents","wait_commands_or_subagents","init_terminal_session"]),u=new Set(["list_available_connectors","search_connected_tools","open_page","generate_video","monitor"]),c=["imagine_","scheduler_","voice_","finance_","automation_"],d=["_pdf_attachment"],f=[[/^microsoft_teams_/i,"Microsoft Teams "],[/^ms_teams_/i,"Microsoft Teams "]];function m(e){for(let[t,n]of f)if(t.test(e))return n+g(e.replace(t,""));return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase())}
3function g(e){return e.split(/[_-]+/).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")}e.s(["MCP_TOOL_NAME_DELIMITER",0,"___","XAI_MCP_PREFIX",0,"xai","bareMcpToolName",0,n,"hasMcpConnectorIdentity",0,t,"isFirstPartyMcpTool",0,function(e,r){let i;return!t(r)&&0!==(i=n(e)).length&&(u.has(i)||l.has(i)||c.some(e=>i.startsWith(e))||d.some(e=>i.endsWith(e)))},"isHiddenAgentMcpTool",0,function(e,r){return!(0===e.length||t(r))&&l.has(n(e))},"isImagineImageMcpToolName",0,function(e){return a.has(n(e))},"mcpProviderKey",0,function(e,n){let r=i(e),a=n.connectorName?.trim()??"";return"xai"!==r||t(n)?a.length>0?o(a):r.length>0&&"xai"!==r?o(r):s(e):s(e)},"mcpServerPrefix",0,r,"mcpServerSegment",0,i,"prettifyMcpToolName",0,function(e){let t=e.indexOf("___");if(-1===t)return m(e);let n=e.slice(0,t),r=g(e.slice(t+3));if("xai"===n.toLowerCase())return r;let i=g(n),o=i.toLowerCase();if(r.toLowerCase().startsWith(o)){let e=r.slice(i.length).replace(/^[-_\s]+/,"");if(e)return`${i} ${e}`}return`${i} ${r}`},"prettifyToolFieldName",0,m,"titleCaseWords",0,g])},2571880,e=>{"use strict";e.s(["isErrorResultPayload",0,e=>{if(!0===e.isError)return!0;let t=e.error;return"string"==typeof t?t.length>0:null!=t&&"object"==typeof t},"isPlainObject",0,e=>"object"==typeof e&&null!==e&&!Array.isArray(e),"tryParseJson",0,e=>{try{return JSON.parse(e)}catch{return}}])},6014795,7829375,e=>{"use strict";var t,n,r=e.i(9338149),i=e.i(4372644),o=e.i(8077623),s=e.i(1546153),a=Object.defineProperty,l=new Map,u=new WeakMap,c=0;s.Component,null!=(null!=(n="useInsertionEffect"in s?s.useInsertionEffect:void 0)?n:s.useLayoutEffect)||s.useEffect;var d=e.i(3572231);function f(e,t){let n=e.slice(t),r=n.reduce((e,t)=>e+t.ms,0),i=Date.now()%r;for(let[e,r]of n.entries()){if(i<r.ms)return{step:t+e,remainingMs:r.ms-i};i-=r.ms}return{step:t,remainingMs:n[0].ms}}function m(e,t){let n,r,o,a,l,u,c=(0,i.c)(16);c[0]!==t?(n=void 0===t?{}:t,c[0]=t,c[1]=n):n=c[1];let{enabled:d,loopFrom:m,restState:g,wallClockPhase:p}=n,h=void 0===d||d,b=void 0===m?0:m,y=void 0!==p&&p;c[2]!==b||c[3]!==e||c[4]!==y?(r=()=>y&&e.length>0?f(e,b).step:0,c[2]=b,c[3]=e,c[4]=y,c[5]=r):r=c[5];let[_,v]=(0,s.useState)(r),[w,S]=(0,s.useState)(!1);return(c[6]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{S(window.matchMedia("(prefers-reduced-motion: reduce)").matches)},a=[],c[6]=o,c[7]=a):(o=c[6],a=c[7]),(0,s.useEffect)(o,a),c[8]!==h||c[9]!==b||c[10]!==w||c[11]!==_||c[12]!==e||c[13]!==y?(u=()=>{if(!h||w||0===e.length)return;if(y){let t=f(e,b);v(t.step);let n=window.setTimeout(()=>v(t.step+1>=e.length?b:t.step+1),t.remainingMs);return()=>window.clearTimeout(n)}let t=window.setTimeout(()=>v(t=>t+1>=e.length?b:t+1),e[Math.min(_,e.length-1)].ms);return()=>window.clearTimeout(t)},l=[h,w,_,e,b,y],c[8]=h,c[9]=b,c[10]=w,c[11]=_,c[12]=e,c[13]=y,c[14]=l,c[15]=u):(l=c[14],u=c[15]),(0,s.useEffect)(u,l),w||0===e.length)?void 0===g?"idle":g:e[Math.min(_,e.length-1)].state}e.s(["useGrokBotSequence",0,m],7829375);let g=[];(0,o.default)(()=>e.A(6054651).then(e=>e.GrokBot),{loadableGenerated:{modules:[1645623]},ssr:!1,loading:()=>(0,r.jsx)(d.default,{})});let p=null,h=null;function b(){return p}e.s(["LazyGrokBot",0,function(n){let o,a,f,y,_,v,w,S,x,I,C,E,N,k,A,T,M=(0,i.c)(35);M[0]!==n?({className:o,size:_,sequence:f,loopFrom:w,wallClockPhase:S,initialInView:x,state:v,shape:y,...a}=n,M[0]=n,M[1]=o,M[2]=a,M[3]=f,M[4]=y,M[5]=_,M[6]=v,M[7]=w,M[8]=S,M[9]=x):(o=M[1],a=M[2],f=M[3],y=M[4],_=M[5],v=M[6],w=M[7],S=M[8],x=M[9]);let j=void 0===w?0:w,P=void 0!==S&&S,R=void 0!==x&&x;M[10]!==R?(I={initialInView:R},M[10]=R,M[11]=I):I=M[11];let{ref:O,inView:$}=function({threshold:e,delay:n,trackVisibility:r,rootMargin:i,scrollMargin:o,root:a,triggerOnce:d,skip:f,initialInView:m,fallbackInView:g,onChange:p}={}){var h;let[b,y]=s.useState(null),_=s.useRef(p),v=s.useRef(m),[w,S]=s.useState({inView:!!m,entry:void 0});_.current=p,s.useEffect(()=>{let s;if(void 0===v.current&&(v.current=m),!f&&b)return s=function(e,n,r={},i=t){if(void 0===window.IntersectionObserver&&void 0!==i){let t=e.getBoundingClientRect();return n(i,{isIntersecting:i,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:t,intersectionRect:t,rootBounds:t}),()=>{}}let{id:o,observer:s,elements:a}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var n;return`${t}_${"root"===t?!(n=e.root)?"0":(u.has(n)||(c+=1,u.set(n,c.toString())),u.get(n)):e[t]}`}).toString(),n=l.get(t);if(!n){let r,i=new Map,o=new IntersectionObserver(t=>{t.forEach(t=>{var n;let o=t.isIntersecting&&r.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),[...null!=(n=i.get(t.target))?n:[]].forEac
3h(e=>{e(o,t)})})},e);r=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:o,elements:i},l.set(t,n)}return n}(r),d=a.get(e)||[];return a.has(e)||a.set(e,d),d.push(n),s.observe(e),function(){d.splice(d.indexOf(n),1),0===d.length&&(a.delete(e),s.unobserve(e)),0===a.size&&(s.disconnect(),l.delete(o))}}(b,(e,t)=>{let n=v.current;v.current=e,(void 0!==n||e)&&(S({inView:e,entry:t}),_.current&&_.current(e,t),t.isIntersecting&&d&&s&&(s(),s=void 0))},{root:a,rootMargin:i,scrollMargin:o,threshold:e,trackVisibility:r,delay:n},g),()=>{s&&s()}},[Array.isArray(e)?e.toString():e,b,a,i,o,d,f,r,g,n]);let x=null==(h=w.entry)?void 0:h.target,I=s.useRef(void 0);b||!x||d||f||I.current===x||(I.current=x,S({inView:!!m,entry:void 0}),v.current=m);let C=[y,w.inView,w.entry];return C.ref=C[0],C.inView=C[1],C.entry=C[2],C}(I),L=$&&null!=f;M[12]!==j||M[13]!==L||M[14]!==P?(C={enabled:L,loopFrom:j,wallClockPhase:P},M[12]=j,M[13]=L,M[14]=P,M[15]=C):C=M[15];let B=m(f??g,C),[D,F]=(0,s.useState)(b);M[16]!==D||M[17]!==$?(E=()=>{if(D)return;let t=!1,n=()=>{(h??=e.A(3203603).then(e=>(p=e.GrokBot,e.GrokBot))).then(e=>{t||F(()=>e)})};if($)return n(),()=>{t=!0};let r=function(e){if("function"==typeof window.requestIdleCallback){let t=window.requestIdleCallback(e);return()=>window.cancelIdleCallback(t)}let t=window.setTimeout(e,1500);return()=>window.clearTimeout(t)}(n);return()=>{t=!0,r()}},N=[D,$],M[16]=D,M[17]=$,M[18]=E,M[19]=N):(E=M[18],N=M[19]),(0,s.useEffect)(E,N);let G=o?`grok-bot-lazy ${o}`:"grok-bot-lazy";return M[20]!==_?(k=_?{width:_,height:_}:void 0,M[20]=_,M[21]=k):k=M[21],M[22]!==D||M[23]!==$||M[24]!==a||M[25]!==f||M[26]!==B||M[27]!==y||M[28]!==v?(A=$&&D?(0,r.jsx)(D,{shape:y,state:f?B:v,...a}):(0,r.jsx)(d.default,{shape:y}),M[22]=D,M[23]=$,M[24]=a,M[25]=f,M[26]=B,M[27]=y,M[28]=v,M[29]=A):A=M[29],M[30]!==O||M[31]!==k||M[32]!==A||M[33]!==G?(T=(0,r.jsx)("span",{ref:O,className:G,style:k,children:A}),M[30]=O,M[31]=k,M[32]=A,M[33]=G,M[34]=T):T=M[34],T}],6014795)}]);
4
5//# debugId=501aeb7a-49dc-5cd8-5214-6f6a1ff00a39

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.