1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0a91f1d3-b709-56b0-9c67-ceae646b521d")}catch(e){}}(); 3!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0d3ec-ede8-75b0-ac26-e1885c4b0888")}catch(e){}}();const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/bash-UPVinMis.js","assets/shellscript-Dl5PDuZO.js","assets/diff-DODoOg_s.js","assets/diff-DcryDWRm.js","assets/docker-6mkJ1GnR.js","assets/docker-7SwCLYjq.js","assets/dockerfile-6mkJ1GnR.js","assets/ini-Cv37mOfM.js","assets/ini-Bg8WZqWK.js","assets/json-BQGNoSPj.js","assets/json-BZGpuXgH.js","assets/markdown-B2Z8KWyN.js","assets/markdown-a994Yoph.js","assets/shell-UPVinMis.js","assets/typescript-DXH3TW6y.js","assets/typescript-DwVOKdFy.js","assets/yaml-C9Fw7eH5.js","assets/yaml-CBJfzvlU.js"])))=>i.map(i=>d[i]); 4(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`a8094e049e03f829f1c2e300bc93708abe9374a5`}}catch{}})();import{a as e}from"./chunk-DUZrb5sI.js";import{n as t}from"./exports-D-gfo_V_.js";import{n,t as r}from"./preload-helper-BwnrSaRm.js";import{F as i,L as a,W as o,X as s,Z as c,c as l,i as u,l as d}from"./chunk-62JRHF6Z-DVj4azcU.js";import{t as f}from"./jsx-runtime-BJ_8nwS3.js";import{t as p}from"./compiler-runtime-BjzEAB2a.js";import{t as m}from"./module-Cj7hS_C6.js";import{n as h}from"./dist-DDEIS4Eu.js";import{t as g}from"./cn-M0Kz48di.js";import{At as _,v}from"./icons-D1OxM4DS.js";import{n as y,r as b}from"./HelpPopover-CZuqhS5N.js";import{t as x}from"./useMounted-DIUpDr0a.js";import{a as S,i as C}from"./gsap.client-CMHS2UbY.js";import{t as w}from"./Icon-fI68qlhG.js";import{t as T}from"./Text-CoD2GbPr.js";import{n as E}from"./usePostHog-B3luaIOK.js";import{t as D}from"./useCopyToClipboard-CiCCfYse.js";import{t as O}from"./useChanged-Cwphoi6L.js";import{n as k}from"./syntaxTheme-BX1plMRA.js";import{t as A}from"./Tag-z3uRcZMg.js";import{i as j,n as M,r as N}from"./MarketingShell-BLpgkxwq.js";import{t as P}from"./Container-Bh1vdfCe.js";import{t as F}from"./BrandLogo-szvaO8B9.js";import{a as I,i as L,n as R,o as z,r as B,t as V}from"./DialogTrigger-BEigzSIn.js";import{t as H}from"./DialogBackdrop-DVY3dIAn.js";import{t as ee}from"./DocsFeedbackWidget-CWN9-M5a.js";import{t as U}from"./GlowBorder-CwtqW8HC.js";import{n as W}from"./Eyebrow-DMM1cjDj.js";import{t as G}from"./Toc-BogF8uln.js";import{t as te}from"./search-Dcgi_Wr9.js";import{i as ne,n as re}from"./engine-oniguruma-DjQS0XWc.js";import{t as ie}from"./core-DiezHBh3.js";import{o as ae,r as oe,s as se}from"./chunk-BO2N2NFS-Dh_5iCyz.js";import"./dist-C5BUzSB2.js";import{a as ce,i as le,n as ue,r as de,t as fe}from"./useChat-BwiQvNgH.js";import{n as pe,t as me}from"./DocsMobileChromeContext-FZuA_qWA.js";import{n as he,t as ge}from"./DocsRailContext-DTq03x_Z.js";var K=e(n(),1),q=p(),_e=await ne({themes:[k],langs:[r(()=>import(`./bash-UPVinMis.js`),__vite__mapDeps([0,1])),r(()=>import(`./diff-DODoOg_s.js`),__vite__mapDeps([2,3])),r(()=>import(`./docker-6mkJ1GnR.js`),__vite__mapDeps([4,5])),r(()=>import(`./dockerfile-6mkJ1GnR.js`),__vite__mapDeps([6,5])),r(()=>import(`./ini-Cv37mOfM.js`),__vite__mapDeps([7,8])),r(()=>import(`./json-BQGNoSPj.js`),__vite__mapDeps([9,10])),r(()=>import(`./markdown-B2Z8KWyN.js`),__vite__mapDeps([11,12])),r(()=>import(`./shell-UPVinMis.js`),__vite__mapDeps([13,1])),r(()=>import(`./toml-CP4Ow4yw.js`),[]),r(()=>import(`./typescript-DXH3TW6y.js`),__vite__mapDeps([14,15])),r(()=>import(`./yaml-C9Fw7eH5.js`),__vite__mapDeps([16,17]))],engine:re(r(()=>import(`./wasm-C_ShMyN8.js`),[]))}),J=f(),ve=(0,K.createContext)(null);function ye(e){let t=(0,q.c)(13),{children:n}=e,[r,i]=(0,K.useState)(!1),[a,o]=(0,K.useState)(void 0),[s,c]=(0,K.useState)(!1),[l,u]=(0,K.useState)(!1),d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=()=>i(!0),t[0]=d):d=t[0];let f=d,[p,m]=(0,K.useState)(0),h;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(h=()=>m(be),t[1]=h):h=t[1];let g=h,_;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(_=(e,t)=>{o(e),c(t?.hidden??!1),u(t?.expanded??!1),i(!0)}
4,t[2]=_):_=t[2];let v=_,y;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(y=()=>{o(void 0),c(!1),u(!1)},t[3]=y):y=t[3];let b=y,x;t[4]!==r||t[5]!==a||t[6]!==l||t[7]!==s||t[8]!==p?(x={isOpen:r,setIsOpen:i,open:f,close:g,requestClose:p,openWithMessage:v,pendingMessage:a,pendingMessageHidden:s,pendingMessageExpanded:l,clearPendingMessage:b},t[4]=r,t[5]=a,t[6]=l,t[7]=s,t[8]=p,t[9]=x):x=t[9];let S=x,C;return t[10]!==n||t[11]!==S?(C=(0,J.jsx)(ve.Provider,{value:S,children:n}),t[10]=n,t[11]=S,t[12]=C):C=t[12],C}function be(e){return e+1}var xe=250;function Se({initialMessage:e,shouldOpen:n,onOpenChange:r,showButton:i=!0,emptyStateMessage:o}={}){let s=(0,K.useContext)(ve),c=!!a().find(e=>e.id===`root`)?.data?.userID,[l,u]=(0,K.useState)(!1),d=s?s.isOpen:l,f=(0,K.useMemo)(()=>s?s.setIsOpen:u,[s]),p=s?.pendingMessage??e,[h,g]=(0,K.useState)(!1),[_,v]=(0,K.useState)(!1),[y,b]=(0,K.useState)(``),S=x(),[C,w]=(0,K.useState)(null),[T,E]=(0,K.useState)(null),D=(0,K.useRef)(!1),O=(0,K.useMemo)(()=>crypto.randomUUID(),[]),{messages:k,sendMessage:A,status:j,error:M}=fe({api:`/api/ai-chat`,body:()=>({pageUrl:window.location.pathname,posthogDistinctId:m.get_distinct_id(),sessionID:O}),fetch:async(e,n)=>{w(null);let r=[AbortSignal.timeout(12e4)];n?.signal&&r.push(n.signal);let i=AbortSignal.any(r);try{let r=await fetch(e,{...n,signal:i});if(!r.ok){let e=Error(`[ai-chat] Server responded with ${r.status}`);throw t(e,{tags:{error_type:`server_error`,status_code:r.status}}),m.capture(`docs ai-chat error`,{error_type:`server_error`,status_code:r.status}),w(`generic`),e}return w(null),r}catch(e){if(e instanceof Error&&e.message.startsWith(`[ai-chat] Server responded`))throw e;let n=e instanceof Error&&e.name===`TimeoutError`?`timeout`:e instanceof Error&&e.name===`AbortError`?`abort`:`fetch_error`;throw n!==`abort`&&t(e,{tags:{error_type:n}}),m.capture(`docs ai-chat error`,{error_type:n,error_message:e instanceof Error?e.message:String(e),error_name:e instanceof Error?e.name:void 0}),w(n===`timeout`?`timeout`:`generic`),e}}}),N=(0,K.useRef)(null),P=(0,K.useRef)(null),F=(0,K.useRef)(null),I=(0,K.useRef)(d),L=(0,K.useRef)(M);(0,K.useEffect)(()=>{M&&M!==L.current&&(t(M,{tags:{error_type:`stream_error`}}),m.capture(`docs ai-chat error`,{error_type:`stream_error`,error_message:M instanceof Error?M.message:String(M),error_name:M instanceof Error?M.name:void 0}),w(`generic`)),L.current=M},[M]);let R=(0,K.useCallback)(()=>{N.current?.scrollIntoView({behavior:`smooth`})},[]),z=(0,K.useCallback)((e,t)=>{let n=crypto.randomUUID();E(e),D.current=t?.hidden??!1,w(null),m.capture(`docs ai-chat message sent`,{message_id:n,message:e,message_length:e.length}),A({text:e,metadata:t?.hidden?{hidden:!0}:void 0}).then(e=>{let t=e?.parts.filter(e=>e.type===`text`).map(e=>e.text).join(``);t&&m.capture(`docs ai-chat response received`,{message_id:n,response:t,response_length:t.length})}),s?.clearPendingMessage()},[A,s]),B=(0,K.useCallback)(()=>{T&&z(T,{hidden:D.current})},[T,z]),V=(0,K.useCallback)(()=>{F.current&&=(clearTimeout(F.current),null),g(!1),f(!0)},[f]),H=(0,K.useCallback)(()=>{g(!0),F.current=setTimeout(()=>{f(!1),g(!1),F.current=null},xe)},[f]),ee=(0,K.useRef)(s?.requestClose??0);(0,K.useEffect)(()=>{let e=s?.requestClose??0;e!==ee.current&&(ee.current=e,d&&!h&&H())},[s?.requestClose,d,h,H]),(0,K.useEffect)(()=>()=>{F.current&&clearTimeout(F.current)},[]);let U=(0,K.useRef)(p),W=(0,K.useRef)(!1);(0,K.useEffect)(()=>{U.current!==p&&p&&(s?.pendingMessageExpanded&&v(!0),d&&!h?z(p,{hidden:s?.pendingMessageHidden}):(W.current=!0,V())),U.current=p},[p,d,h,z,V,s?.pendingMessageHidden,s?.pendingMessageExpanded]),(0,K.useEffect)(()=>{I.current!==d&&d&&W.current&&p&&(W.current=!1,z(p,{hidden:s?.pendingMessageHidden}))},[d,p,z,s?.pendingMessageHidden]);let G=(0,K.useRef)(n);return(0,K.useEffect)(()=>{G.current!==n&&n&&!d&&!h&&V(),G.current=n},[n,d,h,V]),(0,K.useEffect)(()=>{I.current!==d&&(I.current=d,r?.(d))},[d,r]),(0,K.useEffect)(()=>{R()},[k,R]),{showButton:i,emptyStateMessage:o,isOpen:d,isClosing:h,isExpanded:_,setIsExpanded:v,input:y,setInput:b,inputRef:P,messages:k,status:j,error:C,isLoggedIn:c,isMounted:S,handleOpen:V,handleClose:H,handleSendMessage:z,handleRetry:B,messagesEndRef:N}}var Ce=494,we=1e3,Te=32,Ee=.25,De=.22,Oe=16;function ke(e){let t=window.innerWidth-Te;return Math.min(e?we:Ce,t)}var Ae=[ae.raw,[se,{defaultOrigin:`https://depot.dev`,allowedImagePrefixes:[`*`],allowedLinkPrefixes:[`*`]}]],je={code(e){let t=typeof e.className==`string`?e.className:``,n=e.children,r=/language-(\w+)/.exec(t),i=r?r[1]:``,a=String(n).replace(/\n$/,``);return i?(0,J.jsx)(Me,{language:i,children:a}):(0,J.jsx)(`code`,{className:g(`rounded-sm bg-depot-neutral-950 px-1 py-0.5`,t),children:n})},inlineCode(e){let t=typeof e.className==`string`?e.className:``,n=e.children;return(0,J.jsx)(`code`,{className:g(`rounded-sm bg-depot-neutral-950 px-1 py-0.5`,t),children:n})},p(e){return(0,J.jsx)(`p`,{className:`mb-2 last:mb-0`,children:e.children})},a(e){let t=typeof e.href==`string`?e.href:void 0,n=e.children;return t?(0,J.jsx)(u,{to:t,className:`text-depot-light-blue underline-offset-2 hover:underline`,target:`_blank`,rel:`noopener noreferrer`,children:n}):(0,J.jsx)(`span`,{className:`text-depot-light-blue`,children:n})},ul(e){return(0,J.jsx)(`ul`,{className:`mb-2 list-disc pl-4`,children:e.children})},ol(e){return(0,J.jsx)(`ol`,{start:e.start,className:`mb-2 list-decimal pl-4`,children:e.children})},table(e){return(0,J.jsx)(`div`,{className:`mb-2 w-full overflow-x-auto rounded-sm border border-depot-neutral-800`,children:(0,J.jsx)(`table`,{className:`w-full min-w-max border-collapse text-left`,children:e.children})})},thead(e){return(0,J.jsx)(`thead`,{className:`bg-depot-neutral-950`,children:e.children})},tr(e){return(0,J.jsx)(`tr`,{className:`border-b border-depot-neutral-800 last:border-b-0`,children:e.children})},th(e){return(0,J.jsx)(`th`,{style:e.style,className:`px-3 py-2 font-semibold text-depot-theme-primary`,children:e.children})},td(e){return(0,J.jsx)(`td`,{style:e.style,className:`px-3 py-2 align-top text-depot-theme-primary`,children:e.children})}};function Me(e){let t=(0,q.c)(13),{children:n,language:r}=e,[i,a]=(0,K.useState)(!1),o;t[0]===n?o=t[1]:(o=async()=>{await navigator.clipboard.writeText(n),a(!0),setTimeout(()=>a(!1),2e3)},t[0]=n,t[1]=o);let s=o,c=i?`check`:`copy`,l;t[2]===c?l=t[3]:(l=(0,J.jsx)(w,{name:c,className:`size-4`}),t[2]=c,t[3]=l);let u;t[4]!==s||t[5]!==l?(u=(0,J.jsx)(`button`,{type:`button`,onClick:s,className:`absolute top-2 right-2 z-10 rounded-sm p-1.5 text-depot-neutral-50 transition-colors hover:bg-depot-neutral-900`,"aria-label":`Copy code`,children:l}),t[4]=s,t[5]=l,t[6]=u):u=t[6];let d;t[7]!==n||t[8]!==r?(d=(0,J.jsx)(ie,{highlighter:_e,language:r,showLanguage:!1,theme:`Depot`,className:`text-sm`,children:n}),t[7]=n,t[8]=r,t[9]=d):d=t[9];let f;return t[10]!==u||t[11]!==d?(f=(0,J.jsxs)(`div`,{className:`relative`,children:[u,d]}),t[10]=u,t[11]=d,t[12]=f):f=t[12],f}function Ne(e){let t=(0,q.c)(32),{part:n}=e,[r,i]=(0,K.useState)(!1),a,o,s,c;if(t[0]!==n.input||t[1]!==n.state||t[2]!==n.type){let e=ce(n.type),r=de[e]??{inProgress:e,done:e};
4o=n.state===`output-available`||n.state===`output-error`,a=n.state===`output-error`,s=o?r.done:r.inProgress,c=le(e,n.input),t[0]=n.input,t[1]=n.state,t[2]=n.type,t[3]=a,t[4]=o,t[5]=s,t[6]=c}else a=t[3],o=t[4],s=t[5],c=t[6];let l=c,u;t[7]===r?u=t[8]:(u=()=>i(!r),t[7]=r,t[8]=u);let d;t[9]===s?d=t[10]:(d=(0,J.jsx)(`span`,{className:`shrink-0 font-medium`,children:s}),t[9]=s,t[10]=d);let f;t[11]===l?f=t[12]:(f=l&&(0,J.jsx)(`span`,{className:`truncate`,children:l}),t[11]=l,t[12]=f);let p=r&&`rotate-90`,m;t[13]===p?m=t[14]:(m=h(`hidden size-3 shrink-0 transition-transform duration-200 group-hover:block`,p),t[13]=p,t[14]=m);let g;t[15]===m?g=t[16]:(g=(0,J.jsx)(v,{className:m}),t[15]=m,t[16]=g);let _;t[17]!==u||t[18]!==d||t[19]!==f||t[20]!==g?(_=(0,J.jsxs)(`button`,{type:`button`,onClick:u,className:`flex w-full cursor-pointer items-center gap-1.5 text-left text-depot-neutral-50 transition-colors`,children:[d,f,g]}),t[17]=u,t[18]=d,t[19]=f,t[20]=g,t[21]=_):_=t[21];let y;t[22]!==a||t[23]!==o||t[24]!==r||t[25]!==n.errorText||t[26]!==n.input||t[27]!==n.output?(y=r&&(0,J.jsxs)(`div`,{className:`space-y-2 px-3 py-2`,children:[o&&n.input!==void 0&&(0,J.jsx)(`div`,{children:(0,J.jsx)(`pre`,{className:`max-h-48 overflow-auto rounded-sm bg-depot-neutral-950 p-2 text-[11px] text-depot-theme-primary`,children:typeof n.input==`string`?n.input:JSON.stringify(n.input,null,2)})}),o&&n.output!==void 0&&(0,J.jsx)(`div`,{children:(0,J.jsx)(`pre`,{className:`max-h-48 overflow-auto rounded-sm bg-depot-neutral-950 p-2 text-[11px] text-depot-theme-primary`,children:typeof n.output==`string`?n.output:JSON.stringify(n.output,null,2)})}),a&&n.errorText&&(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`div`,{className:`mb-1 text-xs font-medium tracking-wide text-red-400 uppercase`,children:`Error`}),(0,J.jsx)(`pre`,{className:`max-h-32 overflow-auto rounded-sm bg-red-950/40 p-2 text-[11px] text-red-200`,children:n.errorText})]})]}),t[22]=a,t[23]=o,t[24]=r,t[25]=n.errorText,t[26]=n.input,t[27]=n.output,t[28]=y):y=t[28];let b;return t[29]!==_||t[30]!==y?(b=(0,J.jsxs)(`div`,{className:`group text-xs`,children:[_,y]}),t[29]=_,t[30]=y,t[31]=b):b=t[31],b}function Pe(e){let t=(0,q.c)(41),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{initialMessage:r,shouldOpen:i,onOpenChange:a,showButton:o,emptyStateMessage:s}=n,c=o===void 0?!0:o,l;t[2]!==s||t[3]!==r||t[4]!==a||t[5]!==i||t[6]!==c?(l={initialMessage:r,shouldOpen:i,onOpenChange:a,showButton:c,emptyStateMessage:s},t[2]=s,t[3]=r,t[4]=a,t[5]=i,t[6]=c,t[7]=l):l=t[7];let{isOpen:u,isClosing:d,isExpanded:f,setIsExpanded:p,input:h,setInput:g,inputRef:v,messages:y,status:b,error:x,isLoggedIn:E,isMounted:D,handleOpen:O,handleClose:k,handleSendMessage:j,handleRetry:M,messagesEndRef:N}=Se(l),P=(0,K.useRef)(null),F=(0,K.useRef)(!1),I,L;t[8]!==f||t[9]!==u?(I=()=>{if(!u){F.current=!1;return}let e=P.current;if(!e)return;let t=ke(f);if(window.matchMedia(`(prefers-reduced-motion: reduce)`).matches){S.set(e,{width:t}),F.current=!0;return}if(!F.current){S.set(e,{width:t}),F.current=!0;return}S.to(e,{width:t,duration:.28,ease:`power2.inOut`,overwrite:!0})}
4,L={dependencies:[f,u],scope:P},t[8]=f,t[9]=u,t[10]=I,t[11]=L):(I=t[10],L=t[11]),C(I,L);let R,z;t[12]!==d||t[13]!==u?(R=()=>{let e=P.current;if(!(!e||!u)){if(window.matchMedia(`(prefers-reduced-motion: reduce)`).matches){S.set(e,{y:0,opacity:1});return}return d?S.to(e,{y:Oe,opacity:0,duration:De,ease:`power2.in`,overwrite:`auto`}):S.fromTo(e,{y:Oe,opacity:0},{y:0,opacity:1,duration:Ee,ease:`power2.out`,overwrite:`auto`})}},z={dependencies:[u,d],scope:P,revertOnUpdate:!0},t[12]=d,t[13]=u,t[14]=R,t[15]=z):(R=t[14],z=t[15]),C(R,z);let B;t[16]!==O||t[17]!==d||t[18]!==u||t[19]!==c?(B=c&&(!u||d)&&(0,J.jsx)(U,{animated:!1,radius:4,intensity:0,className:`fixed right-4 bottom-4 z-50 w-auto`,children:(0,J.jsxs)(`button`,{type:`button`,onClick:()=>{m.capture(`docs ai-chat opened`),O()},className:`flex w-full cursor-pointer flex-col items-center justify-center gap-3 rounded-[4px] bg-depot-neutral-950 px-3 py-2 transition-colors duration-180 ease-out hover:bg-depot-neutral-900`,"aria-label":`Open AI chat`,children:[(0,J.jsx)(`img`,{src:`/images/sherlock-chatbot.png`,alt:``,className:`aspect-square size-8 lg:size-10`}),(0,J.jsx)(T,{variant:`body-mono`,className:`text-depot-theme-primary uppercase`,children:`Ask AI`})]})}),t[16]=O,t[17]=d,t[18]=u,t[19]=c,t[20]=B):B=t[20];let V;t[21]!==s||t[22]!==x||t[23]!==k||t[24]!==M||t[25]!==j||t[26]!==h||t[27]!==v||t[28]!==f||t[29]!==E||t[30]!==D||t[31]!==u||t[32]!==y||t[33]!==N||t[34]!==g||t[35]!==p||t[36]!==b?(V=u&&(0,J.jsx)(`div`,{ref:P,className:`fixed right-4 bottom-4 z-50 h-[min(680px,calc(100vh-2rem))] w-[min(494px,calc(100vw-2rem))]`,children:(0,J.jsx)(U,{animated:!1,radius:4,intensity:0,className:`h-full w-full`,children:(0,J.jsxs)(`div`,{className:`flex h-full flex-col overflow-hidden rounded-[4px] bg-depot-neutral-950`,children:[(0,J.jsxs)(`div`,{className:`flex items-center justify-between p-3`,children:[(0,J.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,J.jsx)(`img`,{src:`/images/sherlock-chatbot.png`,alt:``,className:`aspect-square size-4 lg:size-6`}),(0,J.jsx)(T,{as:`span`,variant:`body-large`,className:`text-depot-theme-primary`,children:`Sherlock`})]}),(0,J.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,J.jsx)(ue,{messages:y,toolLabels:de}),(0,J.jsx)(`button`,{type:`button`,onClick:()=>
4p(!f),className:`cursor-pointer rounded-sm p-0 text-depot-neutral-50 transition-colors hover:text-depot-theme-primary`,"aria-label":f?`Minimize chat`:`Expand chat`,children:(0,J.jsx)(w,{name:`expand-arrows-alt-solid`,className:`size-4.5`})}),(0,J.jsx)(`button`,{type:`button`,onClick:k,className:`cursor-pointer rounded-sm p-0 text-depot-neutral-50 transition-colors hover:text-depot-theme-primary`,"aria-label":`Close chat`,children:(0,J.jsx)(w,{name:`cross-close`,className:`size-4.5`})})]})]}),(0,J.jsxs)(`div`,{className:`flex flex-1 flex-col overflow-hidden bg-depot-theme-primary-inverse py-4`,children:[(0,J.jsxs)(`div`,{className:`flex-1 space-y-4 overflow-y-auto px-6 py-4`,children:[(y.length===0||b===`ready`&&y.every(ze))&&(0,J.jsx)(T,{as:`div`,variant:`body`,className:`text-center text-depot-neutral-50`,children:s?(0,J.jsx)(`p`,{children:s}):E?(0,J.jsx)(`p`,{children:`Hi! I'm Sherlock. Ask me questions about Depot and get help with your builds, runners, and settings.`}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`p`,{className:`mb-0`,children:`Hi! I'm Sherlock.`}),(0,J.jsx)(`p`,{className:`mb-0`,children:`I can fetch answers for you from Depot's documentation.`}),(0,J.jsx)(`p`,{children:`I don't have access to your builds or account details.`})]})}),y.map(e=>{let t=e.parts.some(Re),n=e.parts.some(Le);return!t&&!n?null:e.role===`user`?e.metadata?.hidden?null:(0,J.jsx)(`div`,{className:`flex justify-end`,children:(0,J.jsx)(`div`,{className:`max-w-[80%] rounded-sm border border-depot-neutral-900 bg-depot-neutral-950 px-4 py-2`,children:(0,J.jsx)(T,{as:`div`,variant:`body`,className:`whitespace-pre-wrap text-depot-theme-primary`,children:e.parts.filter(Ie).map(Fe).join(``)})})},e.id):(0,J.jsx)(`div`,{className:`w-full space-y-4`,children:e.parts.map((e,t)=>{if(e.type.startsWith(`tool-`)){let t=e;return(0,J.jsx)(Ne,{part:t},t.toolCallId)}return e.type===`text`&&e.text?D?(0,J.jsx)(K.Suspense,{fallback:(0,J.jsx)(T,{as:`div`,variant:`body`,className:`whitespace-pre-wrap text-depot-theme-primary`,children:e.text}),children:(0,J.jsx)(`div`,{className:`type-neue-body text-depot-theme-primary`,children:(0,J.jsx)(oe,{rehypePlugins:Ae,components:je,children:e.text})})},t):(0,J.jsx)(T,{as:`div`,variant:`body`,className:`whitespace-pre-wrap text-depot-theme-primary`,children:e.text},t):null})},e.id)}),(b===`submitted`||b===`streaming`&&y[y.length-1]?.role===`user`)&&!x&&(0,J.jsx)(`div`,{className:`flex justify-start`,children:(0,J.jsx)(`div`,{className:`inline-block text-depot-neutral-50`,children:(0,J.jsxs)(`div`,{className:`flex flex-col items-center`,children:[(0,J.jsx)(_,{className:`h-28 w-28`}),(0,J.jsxs)(`div`,{className:`mb-2 flex items-center gap-2`,children:[(0,J.jsx)(`div`,{className:`size-2 animate-bounce rounded-full bg-current`}),(0,J.jsx)(`div`,{className:`size-2 animate-bounce rounded-full bg-current [animation-delay:0.2s]`}),(0,J.jsx)(`div`,{className:`size-2 animate-bounce rounded-full bg-current [animation-delay:0.4s]`})]})]})})}),x&&(0,J.jsx)(`div`,{className:`flex justify-start`,children:(0,J.jsxs)(`div`,{className:`max-w-[80%] rounded-sm border border-depot-neutral-900 bg-depot-neutral-950 px-4 py-3`,children:[(0,J.jsx)(T,{as:`p`,variant:`body`,className:`mb-2 text-center text-depot-theme-primary`,children:`Sorry, I couldn't fetch the information.`}),(0,J.jsx)(`div`,{className:`flex justify-center`,children:(0,J.jsx)(`button`,{type:`button`,onClick:M,className:`cursor-pointer rounded-sm border border-[#00486c] bg-[#063046] px-3 py-1 type-favorit-small text-depot-light-blue uppercase transition-colors hover:brightness-110`,children:`Retry`})})]})}),(0,J.jsx)(`div`,{ref:N})]}),(0,J.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),b===`ready`&&h.trim()&&(j(h),g(``),v.current?.focus())},className:`flex flex-col`,children:[(0,J.jsxs)(`div`,{className:`flex items-stretch gap-3 px-6 py-3`,children:[(0,J.jsx)(`input`,{ref:v,type:`text`,value:h,onChange:e=>g(e.target.value),placeholder:`Ask a question...`,className:`min-w-0 flex-1 rounded-[4px] border border-depot-neutral-800 bg-depot-theme-primary-inverse p-3 type-neue-body text-depot-theme-primary placeholder:text-depot-neutral-50 focus:border-depot-purple focus:outline-none`}),(0,J.jsx)(`button`,{type:`submit`,disabled:b!==`ready`||!h.trim(),className:``,children:(0,J.jsx)(A,{variant:`blue`,className:`h-full`,children:`Send`})})]}),(0,J.jsx)(`div`,{className:`px-6 py-3`,children:(0,J.jsx)(T,{as:`p`,variant:`small-mono`,className:`text-center text-depot-neutral-50 uppercase`,children:`Sherlock is AI-powered and can make mistakes. Please double-check responses.`})})]})]})]})})}),t[21]=s,t[22]=x,t[23]=k,t[24]=M,t[25]=j,t[26]=h,t[27]=v,t[28]=f,t[29]=E,t[30]=D,t[31]=u,t[32]=y,t[33]=N,t[34]=g,t[35]=p,t[36]=b,t[37]=V):V=t[37];let H;return t[38]!==B||t[39]!==V?(H=(0,J.jsxs)(J.Fragment,{children:[B,V]}),t[38]=B,t[39]=V,t[40]=H):H=t[40],H}function Fe(e){return e.text}function Ie(e){return e.type===`text`}function Le(e){return e.type.startsWith(`tool-`)}function Re(e){return e.type===`text`&&e.text}function ze(e){return e.role===`user`&&e.metadata?.hidden}var Be=`/api/search/`;function Ve(e){return e.map(e=>({id:e.url,title:e.title,href:e.url,snippet:e.description}))}function He(e){let t=(0,q.c)(10),{item:n,highlight:r}=e,i;t[0]!==r||t[1]!==n.title?(i=r(n.title),t[0]=r,t[1]=n.title,t[2]=i):i=t[2];let a;t[3]===i?a=t[4]:(a=(0,J.jsx)(T,{as:`h4`,variant:`body`,className:`text-depot-theme-primary`,children:i}),t[3]=i,t[4]=a);let o;t[5]===n.snippet?o=t[6]:(o=n.snippet?(0,J.jsx)(T,{variant:`body-xs`,className:`text-depot-neutral-50`,children:n.snippet}):null,t[5]=n.snippet,t[6]=o);let s;return t[7]!==a||t[8]!==o?(s=(0,J.jsxs)(`div`,{className:`flex flex-col gap-4 p-3`,children:[a,o]}),t[7]=a,t[8]=o,t[9]=s):s=t[9],s}function Ue(e){let t=(0,q.c)(22),{searchItems:n,className:r,contentClassName:i,variant:a}=e,o=a===void 0?`default`:a,s=E(),c;t[0]===n?c=t[1]:(c=Ve(n),t[0]=n,t[1]=c);let l=c,u=pe(),d=o===`mobile`,f=d?u?.searchDismissKey??0:0,p=(0,K.useRef)(null),m;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(m=()=>{p.current!==null&&(window.clearTimeout(p.current),p.current=null)},t[2]=m):m=t[2];let h=m,_;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(_=e=>{e.trim().length>0&&h()},t[3]=_):_=t[3];let v=_,y,b;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(y=()=>h,b=[h],t[4]=y,t[5]=b):(y=t[4],b=t[5]),(0,K.useEffect)(y,b);let x=We,S;t[6]===s?S=t[7]:(S=e=>{let{query:t,resultsCount:n,rawResultsCount:r}=e;h(),p.current=window.setTimeout(()=>{s.capture(`docs search performed`,{query:t,results_count:n,raw_results_count:r,has_results:n>0}),p.current=null},1e3)},t[6]=s,t[7]=S);let C=S,w;t[8]===s?w=t[9]:(w=(e,t,n)=>{s.capture(`docs search result clicked`,{query:t,result_path:e.href,position:n})},t[8]=s,t[9]=w);let T=w,D=d?`w-full min-w-0`:void 0,O;t[10]!==r||t[11]!==D?(O=g(D,r),t[10]=r,t[11]=D,t[12]=O):O=t[12];let k=d?`w-full`:void 0,A=d?`max-lg:data-[expanded]:-left-8 max-lg:data-[expanded]:w-[calc(100%+2rem)]`:void 0,j;return t[13]!==i||t[14]!==C||t[15]!==T||t[16]!==l||t[17]!==f||t[18]!==O||t[19]!==k||t[20]!==A?(j=(0,J.jsx)(te,{items:l,endpoint:Be,onSearch:v,onSearchResolved:C,onSelect:T,placeholder:`Search docs...`,className:O,triggerClassName:k,contentClassName:i,surfaceClassName:A,renderResult:x},f),t[13]=i,t[14]=C,t[15]=T,t[16]=l,t[17]=f,t[18]=O,t[19]=k,t[20]=A,t[21]=j):j=t[21],j}function We(e,t,n){return(0,J.jsx)(He,{item:e,highlight:n})}function Ge(e){let t=e.scrollHeight-e.clientHeight>8,n=e.scrollTop+e.clientHeight>=e.scrollHeight-8;return t&&!n}function Ke(e,t){let n=(0,q.c)(4),r=t===void 0?!0:t,[i,a]=(0,K.useState)(!1),o,s;return n[0]!==r||n[1]!==e?(o=()=>
4{if(!r||!e){a(!1);return}let t=e,n=!1,i=()=>{n||a(Ge(t))};i();let o=requestAnimationFrame(i),s=[100,250,450,600].map(e=>window.setTimeout(i,e));t.addEventListener(`scroll`,i,{passive:!0});let c=new ResizeObserver(i);c.observe(t);let l=t.firstElementChild;return l&&c.observe(l),()=>{n=!0,cancelAnimationFrame(o);for(let e of s)window.clearTimeout(e);t.removeEventListener(`scroll`,i),c.disconnect()}},s=[e,r],n[0]=r,n[1]=e,n[2]=o,n[3]=s):(o=n[2],s=n[3]),(0,K.useLayoutEffect)(o,s),i}function qe(e){let t=(0,q.c)(5),{visible:n,className:r}=e,i=n?`opacity-100`:`opacity-0`,a;t[0]!==r||t[1]!==i?(a=g(`pointer-events-none absolute inset-x-0 bottom-0 z-10 h-16 bg-linear-to-t from-depot-theme-primary-inverse from-0% to-transparent to-70% transition-opacity duration-200 ease-out motion-reduce:transition-none`,i,r),t[0]=r,t[1]=i,t[2]=a):a=t[2];let o;return t[3]===a?o=t[4]:(o=(0,J.jsx)(`div`,{"aria-hidden":!0,className:a}),t[3]=a,t[4]=o),o}function Je(e){let t=(0,q.c)(17),{children:n,className:r,enabled:i,scrollClassName:a,scrollContainerRef:o,fadeClassName:s}=e,c=i===void 0?!0:i,[l,u]=(0,K.useState)(null),d=Ke(l,c),f;t[0]===o?f=t[1]:(f=e=>{u(e),o&&(o.current=e)},t[0]=o,t[1]=f);let p=f,m;t[2]===r?m=t[3]:(m=g(`relative flex min-h-0 flex-1 flex-col overflow-hidden`,r),t[2]=r,t[3]=m);let h;t[4]===a?h=t[5]:(h=g(`scrollbar-thin min-h-0 flex-1 overflow-y-auto overscroll-contain`,a),t[4]=a,t[5]=h);let _;t[6]!==n||t[7]!==p||t[8]!==h?(_=(0,J.jsx)(`div`,{ref:p,className:h,children:n}),t[6]=n,t[7]=p,t[8]=h,t[9]=_):_=t[9];let v;t[10]!==s||t[11]!==d?(v=(0,J.jsx)(qe,{visible:d,className:s}),t[10]=s,t[11]=d,t[12]=v):v=t[12];let y;return t[13]!==m||t[14]!==_||t[15]!==v?(y=(0,J.jsxs)(`div`,{className:m,children:[_,v]}),t[13]=m,t[14]=_,t[15]=v,t[16]=y):y=t[16],y}var Ye={id:`v1`,label:`v1`,title:`Depot CI API`,referencePath:`/docs/api/ci/reference`,specPath:`/openapi/depot-ci/v1.json`},Y=[{title:`Get Started`,icon:{kind:`icon`,name:`home-solid`},links:[{to:`/docs`,children:`Get Started`,end:!0},{to:`/docs/account`,children:`Manage Accounts`,end:!0}]},{title:`Using Depot`,icon:{kind:`icon`,name:`book-open-solid`},links:[{to:`/docs/observability`,children:`Observability`},{to:`/docs/troubleshooting`,children:`Troubleshooting`},{to:`/docs/environment-variables`,children:`Environment variables`},{to:`/docs/ai-at-depot`,children:`AI and agent resources`},{to:`/docs/security`,children:`Security`},{to:`/changelog`,children:`Changelog`}]},{title:`Depot CI`,icon:{kind:`brand-logo`},links:[{to:`/docs/ci/overview`,children:`Overview`},{to:`/docs/ci/quickstart`,children:`Quickstart`}],subSections:[{name:`Observability`,collapsed:!0,links:[{to:`/docs/ci/observability/depot-ci-metrics`,children:`Depot CI metrics`},{to:`/docs/ci/observability/depot-ci-logs`,children:`Depot CI logs`},{to:`/docs/ci/observability/depot-ci-test-results`,children:`Depot CI test results`},{to:`/docs/ci/observability/github-checks`,children:`GitHub checks`},{to:`/docs/ci/observability/datadog-ci-visibility`,children:`Datadog CI Visibility`}]},{name:`How-To Guides`,collapsed:!0,links:[{to:`/docs/ci/how-to-guides/manage-workflow-runs`,children:`Manage workflow runs`},{to:`/docs/ci/how-to-guides/manage-secrets-and-variables`,children:`Manage secrets`},{to:`/docs/ci/oidc`,children:`Configure OIDC`},{to:`/docs/ci/how-to-guides/custom-images`,children:`Build custom images`},{to:`/docs/ci/how-to-guides/debug-with-ssh`,children:`Debug jobs with SSH`},{to:`/docs/ci/how-to-guides/parallel-steps`,children:`Run steps in parallel`},{to:`/docs/ci/how-to-guides/split-tests`,children:`Split tests by timing`},{to:`/docs/ci/how-to-guides/cache-disks`,children:`Mount a durable cache disk`},{to:`/docs/ci/how-to-guides/retry-steps`,children:`Retry failed steps`},{to:`/docs/ci/how-to-guides/coding-agents`,children:`Coding agent loops`}]},{name:`Integrations`,collapsed:!0,links:[{to:`/docs/ci/integrations/origin`,children:`Origin`},{to:`/docs/integrations/tailscale`,children:`Tailscale`}]},{name:`Reference`,collapsed:!0,links:[{to:`/docs/ci/compatibility`,children:`Compatibility`},{to:Ye.referencePath,children:`API Reference`,crossLink:!0},{to:`/docs/cli/reference/depot-ci`,children:`CLI Reference`,crossLink:!0}]}]},{title:`Container Builds`,icon:{kind:`icon`,name:`microchip-solid`},links:[{to:`/docs/container-builds/overview`,children:`Overview`},{to:`/docs/container-builds/quickstart`,children:`Quickstart`},{to:`/docs/container-builds/troubleshooting`,children:`Troubleshooting`},{to:`/docs/container-builds/build-parallelism`,children:`Build Parallelism`}],subSections:[{name:`Observability`,collapsed:!0,links:[{to:`/docs/container-builds/observability/container-build-metrics`,children:`Container build metrics`},{to:`/docs/container-builds/observability/container-build-logs`,children:`Container build logs`}]},{name:`How-To Guides`,collapsed:!0,links:[{to:`/docs/container-builds/how-to-guides/local-development`,children:`Local Development`},{to:`/docs/container-builds/how-to-guides/continuous-integration`,children:`Continuous Integration`},{to:`/docs/container-builds/how-to-guides/autoscaling`,children:`Build Autoscaling`}
4,{to:`/docs/container-builds/how-to-guides/devcontainers`,children:`Dev Containers`},{to:`/docs/container-builds/how-to-guides/docker-bake`,children:`Docker Bake`},{to:`/docs/container-builds/how-to-guides/docker-build`,children:`Docker Build`},{to:`/docs/container-builds/how-to-guides/docker-compose`,children:`Docker Compose`},{to:`/docs/container-builds/how-to-guides/arm-containers`,children:`Arm Containers`},{to:`/docs/container-builds/how-to-guides/private-registries`,children:`Private Registries`}]},{name:`Integrations`,collapsed:!0,links:[{to:`/docs/container-builds/integrations/aws-codebuild`,children:`AWS CodeBuild`},{to:`/docs/container-builds/integrations/bitbucket-pipelines`,children:`Bitbucket Pipelines`},{to:`/docs/container-builds/integrations/buildkite`,children:`Buildkite`},{to:`/docs/container-builds/integrations/circleci`,children:`CircleCI`},{to:`/docs/container-builds/integrations/depot-ci`,children:`Depot CI`},{to:`/docs/container-builds/integrations/fly`,children:`Fly.io`},{to:`/docs/container-builds/integrations/github-actions`,children:`GitHub Actions`},{to:`/docs/container-builds/integrations/gitlab-ci`,children:`GitLab CI`},{to:`/docs/container-builds/integrations/google-cloud-build`,children:`Google Cloud Build`},{to:`/docs/container-builds/integrations/jenkins`,children:`Jenkins`},{to:`/docs/integrations/tailscale`,children:`Tailscale`},{to:`/docs/container-builds/integrations/travis-ci`,children:`Travis CI`}]},{name:`Optimal Dockerfiles`,collapsed:!0,links:[{to:`/docs/container-builds/optimal-dockerfiles/overview`,children:`Overview`,end:!0},{to:`/docs/container-builds/optimal-dockerfiles/dotnet`,children:`.NET`},{to:`/docs/container-builds/optimal-dockerfiles/go-dockerfile`,children:`Go`},{to:`/docs/container-builds/optimal-dockerfiles/java`,children:`Java`},{to:`/docs/container-builds/optimal-dockerfiles/node`,children:`Node.js`},{to:`/docs/container-builds/optimal-dockerfiles/php-composer-dockerfile`,children:`PHP`},{to:`/docs/container-builds/optimal-dockerfiles/python`,children:`Python`},{to:`/docs/container-builds/optimal-dockerfiles/ruby-bundler-dockerfile`,children:`Ruby`},{to:`/docs/container-builds/optimal-dockerfiles/rust-dockerfile`,children:`Rust`}]}]},{title:`GitHub Actions Runners`,icon:{kind:`icon`,name:`github`},links:[{to:`/docs/github-actions/overview`,children:`Overview`},{to:`/docs/github-actions/quickstart`,children:`Quickstart`},{to:`/docs/github-actions/troubleshooting`,children:`Troubleshooting`},{to:`/docs/github-actions/runner-types`,children:`Runner Types`}],subSections:[{name:`Observability`,collapsed:!0,links:[{to:`/docs/github-actions/observability/github-actions-metrics`,children:`GitHub Actions metrics`},{to:`/docs/github-actions/observability/github-actions-logs`,children:`GitHub Actions logs`},{to:`/docs/github-actions/observability/github-actions-test-results`,children:`GitHub Actions test results`}]},{name:`How-To Guides`,collapsed:!0,links:[{to:`/docs/github-actions/how-to-guides/access-private-resources`,children:`Access Private Resources`},{to:`/docs/github-actions/how-to-guides/egress-filtering`,children:`Use Egress Filtering`}]},{name:`Integrations`,collapsed:!0,links:[{to:`/docs/github-actions/integrations/dependabot`,children:`Dependabot`},{to:`/docs/integrations/tailscale`,children:`Tailscale`}]}]},{title:`Depot Cache`,icon:{kind:`icon`,name:`cubes-solid`},links:[{to:`/docs/cache/overview`,children:`Overview`},{to:`/docs/cache/authentication`,children:`Authentication`}],subSections:[{name:`Integrations`,collapsed:!0,links:[{to:`/docs/cache/integrations/github-actions`,children:`GitHub Actions`},{to:`/docs/cache/integrations/bazel`,children:`Bazel`},{to:`/docs/cache/integrations/gocache`,children:`Go`},{to:`/docs/cache/integrations/gradle`,children:`Gradle`},{to:`/docs/cache/integrations/maven`,children:`Maven`},{to:`/docs/cache/integrations/moonrepo`,children:`moonrepo`},{to:`/docs/cache/integrations/nx`,children:`Nx`},{to:`/docs/cache/integrations/pants`,children:`Pants`},{to:`/docs/cache/integrations/sccache`,children:`sccache`},{to:`/docs/cache/integrations/turbo`,children:`Turborepo`}]}]},{title:`Depot Registry`,icon:{kind:`icon`,name:`cube-solid`},links:[{to:`/docs/registry/overview`,children:`Overview`},{to:`/docs/registry/quickstart`,children:`Quickstart`},{to:`/docs/registry/pull-through-cache`,children:`Pull-through cache`}]},{title:`Depot Code`,icon:{kind:`icon`,name:`code-branch-solid`},links:[{to:`/docs/code/overview`,children:`Overview`},{to:`/docs/code/quickstart`,children:`Quickstart`}]},{title:`Agents`,icon:{kind:`icon`,name:`images-solid`},links:[{to:`/docs/agents/overview`,children:`Overview`},{to:`/docs/agents/claude-code/quickstart`,children:`Quickstart`}]},{title:`Depot CLI`,icon:{kind:`icon`,name:`calculator-solid`},links:[{to:`/docs/cli/installation`,children:`Installation`},{to:`/docs/cli/authentication`,children:`Authentication`}],subSections:[{name:`Reference`,collapsed:!0,links:[{to:`/docs/cli/reference/overview`,children:`Overview`},{to:`/docs/cli/reference/depot-ci`,children:`Depot CI`},{to:`/docs/cli/reference/container-builds`,children:`Container Builds`},{to:`/docs/cli/reference/agents`,children:`Agents`},{to:`/docs/cli/reference/compute`,children:`Compute`}]}]},{title:`Depot API`,icon:{kind:`icon`,name:`keyboard`},links:[{to:`/docs/api/overview`,children:`Overview`},{to:`/docs/api/authentication`,children:`Authentication`}],subSections:[{name:`Depot CI API`,collapsed:!0,links:[{to:Ye.referencePath,children:`CI API Reference`}]},{name:`GitHub Actions API`,collapsed:!0,links:[{to:`/docs/api/github-actions-api`,children:`GitHub Actions API`}]},{name:`Container Builds API`,collapsed:!0,links:[{to:`/docs/api/sdk-reference`,children:`Container Builds SDK`},{to:`/docs/api/api-container-builds-tutorial`,children:`Container Builds Tutorial`}]},{name:`Depot Code API`,collapsed:!0,links:[{to:`/docs/api/code-reference`,children:`Repository API`}]},{name:`Sandbox API`,collapsed:!0,links:[{to:`/docs/api/sandbox-sdk-reference`,children:`Sandbox SDK`}]}]},{title:`Depot Managed`,icon:{kind:`icon`,name:`cog`},links:[{to:`/docs/managed/overview`,children:`Overview`},{to:`/docs/managed/on-aws`,children:`Depot Managed on AWS`},{to:`/docs/managed/using-gpus`,children:`Using GPUs`}]}];
4function X(e,t,n){return n?t===e:t===e||t.startsWith(`${e}/`)}function Z(e,t){return e.subLinks?.some(e=>!e.crossLink&&X(e.to,t,e.end))??!1}function Xe(e){let t=new Set,n=new Set,r=new Set,i=t=>!t.crossLink&&X(t.to,e,t.end);return Y.forEach(a=>{let o=!1;a.links.forEach(t=>{(i(t)||Z(t,e))&&(o=!0),Z(t,e)&&n.add(t.to)}),a.subSections?.forEach(r=>{let s=`${a.title}-${r.name}`;r.links.some(t=>(Z(t,e)&&n.add(t.to),i(t)||Z(t,e)))&&(t.add(s),o=!0)}),o&&r.add(a.title)}),{expandedSections:t,expandedLinkBranches:n,expandedGroups:r}}function Ze(e){let t=new Set;return Y.forEach(n=>{n.subSections?.forEach(r=>{r.collapsed&&(r.links.some(t=>!t.crossLink&&X(t.to,e,t.end))||t.add(`${n.title}-${r.name}`))})}),t}function Qe(e){let t=new Set,n=n=>{n.subLinks&&n.subLinks.length>0&&!Z(n,e)&&t.add(n.to)};return Y.forEach(e=>{e.links.forEach(n),e.subSections?.forEach(e=>{e.links.forEach(n)})}),t}function $e(e){let t=e.querySelector(`[data-docs-nav-active]`);return t?t.closest(`[data-docs-nav-section]`)?.querySelector(`[data-docs-nav-section-header]`)||(t.closest(`[data-docs-nav-group]`)?.querySelector(`[data-docs-nav-group-header]`)??t):null}function et(e,t){let n=t.getBoundingClientRect().top-e.getBoundingClientRect().top+e.scrollTop;e.scrollTop=Math.max(0,n)}function tt(e,t,n){let[r,i]=(0,K.useState)(()=>new Set),[a,o]=(0,K.useState)(()=>t);return(0,K.useEffect)(()=>{i(new Set)},[e]),{isCollapsed:(0,K.useCallback)(e=>r.has(e)?a.has(e):a.has(e)&&!n.has(e),[a,n,r]),toggle:(0,K.useCallback)(e=>{i(t=>new Set(t).add(e)),o(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[])}}function nt(e,t){let n=(0,K.useMemo)(()=>Xe(e),[e]),r=tt(t,(0,K.useMemo)(()=>Ze(e),[e]),n.expandedSections),i=tt(t,(0,K.useMemo)(()=>Qe(e),[e]),n.expandedLinkBranches),a=tt(t,new Set,n.expandedGroups);return{isSectionCollapsed:r.isCollapsed,toggleSection:r.toggle,isLinkBranchCollapsed:i.isCollapsed,toggleLinkBranch:i.toggle,isGroupCollapsed:a.isCollapsed,toggleGroup:a.toggle}}var rt=(0,K.createContext)(null);function it(e){let t=(0,q.c)(7),{children:n,variant:r,onNavigate:a}=e,{pathname:o,key:s}=i(),c=nt(o,s),l;t[0]!==c||t[1]!==a||t[2]!==r?(l={variant:r,onNavigate:a,collapse:c},t[0]=c,t[1]=a,t[2]=r,t[3]=l):l=t[3];let u;return t[4]!==n||t[5]!==l?(u=(0,J.jsx)(rt.Provider,{value:l,children:n}),t[4]=n,t[5]=l,t[6]=u):u=t[6],u}function Q(){let e=(0,K.useContext)(rt);if(!e)throw Error(`useDocsNav must be used within DocsNavProvider`);return e}function at(e){let t=(0,q.c)(5),{collapsed:n,className:r}=e,i=n&&`-rotate-90`,a;t[0]!==r||t[1]!==i?(a=g(`size-[9px] text-depot-neutral-50 transition-transform motion-reduce:transition-none`,i,r),t[0]=r,t[1]=i,t[2]=a):a=t[2];let o;return t[3]===a?o=t[4]:(o=(0,J.jsx)(`span`,{className:`flex h-0 shrink-0 items-center`,children:(0,J.jsx)(w,{name:`angle-down-solid`,className:a})}),t[3]=a,t[4]=o),o}var ot=`gap-7 lg:gap-8`,st=`gap-4`,ct=`rounded-sm focus:outline-hidden focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-depot-light-blue`,lt=`rounded-sm focus:outline-hidden focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-depot-light-blue`,ut={direct:`pl-6`,nested:`pl-8`};function $(e){let t=(0,q.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({children:n,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=g(`flex flex-col`,st,r),t[4]=r,t[5]=a);let o;return t[6]!==n||t[7]!==i||t[8]!==a?(o=(0,J.jsx)(`div`,{className:a,...i,children:n}),t[6]=n,t[7]=i,t[8]=a,t[9]=o):o=t[9],o}function dt(e){let t=(0,q.c)(23),{link:n,indent:r,branch:a}=e,{onNavigate:s}=Q(),c=o(n.to),{pathname:u}=i(),d;t[0]!==n.crossLink||t[1]!==n.end||t[2]!==u||t[3]!==c?(d=!n.crossLink&&X(c.pathname,u,n.end),t[0]=n.crossLink,t[1]=n.end,t[2]=u,t[3]=c,t[4]=d):d=t[4];let f=d,p=n.to,m=n.end,h=f?``:void 0,_=ut[r],v=f?`text-depot-theme-primary`:`text-depot-neutral-50 hover:text-depot-theme-primary focus-visible:text-depot-theme-primary`,y;t[5]!==_||t[6]!==v?(y=g(`group relative flex max-w-full items-center gap-2 self-start`,ct,_,v),t[5]=_,t[6]=v,t[7]=y):y=t[7];let b;t[8]===f?b=t[9]:(b=f?(0,J.jsx)(`span`,{className:`absolute inset-y-0 left-0 flex w-4 items-center justify-center`,children:(0,J.jsx)(W,{})}):null,t[8]=f,t[9]=b);let x;t[10]===n.children?x=t[11]:(x=(0,J.jsx)(T,{as:`span`,variant:`small-mono`,className:`tracking-[0.02em] text-inherit uppercase`,children:n.children}),t[10]=n.children,t[11]=x);let S;t[12]===a?S=t[13]:(S=a?(0,J.jsx)(`button`,{type:`button`,onClick:e=>
4{e.preventDefault(),e.stopPropagation(),a.onToggle()},className:g(`ml-1 inline-flex cursor-pointer text-depot-neutral-50 hover:text-depot-theme-primary`,lt),"aria-label":a.isCollapsed?`Expand section`:`Collapse section`,children:(0,J.jsx)(at,{collapsed:a.isCollapsed})}):null,t[12]=a,t[13]=S);let C;return t[14]!==n.end||t[15]!==n.to||t[16]!==s||t[17]!==S||t[18]!==h||t[19]!==y||t[20]!==b||t[21]!==x?(C=(0,J.jsxs)(l,{to:p,end:m,onClick:s,"data-docs-nav-active":h,className:y,prefetch:`intent`,children:[b,x,S]}),t[14]=n.end,t[15]=n.to,t[16]=s,t[17]=S,t[18]=h,t[19]=y,t[20]=b,t[21]=x,t[22]=C):C=t[22],C}function ft(e){let t=(0,q.c)(24),{link:n,indent:r}=e,{collapse:i}=Q(),a;t[0]===n.subLinks?a=t[1]:(a=n.subLinks??[],t[0]=n.subLinks,t[1]=a);let o=a;if(o.length===0){let e;return t[2]!==r||t[3]!==n?(e=(0,J.jsx)(dt,{link:n,indent:r}),t[2]=r,t[3]=n,t[4]=e):e=t[4],e}let s;t[5]!==i||t[6]!==n.to?(s=i.isLinkBranchCollapsed(n.to),t[5]=i,t[6]=n.to,t[7]=s):s=t[7];let c=s,l;t[8]!==i||t[9]!==n.to?(l=()=>i.toggleLinkBranch(n.to),t[8]=i,t[9]=n.to,t[10]=l):l=t[10];let u;t[11]!==c||t[12]!==l?(u={isCollapsed:c,onToggle:l},t[11]=c,t[12]=l,t[13]=u):u=t[13];let d;t[14]!==r||t[15]!==n||t[16]!==u?(d=(0,J.jsx)(dt,{link:n,indent:r,branch:u}),t[14]=r,t[15]=n,t[16]=u,t[17]=d):d=t[17];let f;t[18]!==c||t[19]!==o?(f=c?null:o.map(pt),t[18]=c,t[19]=o,t[20]=f):f=t[20];let p;return t[21]!==d||t[22]!==f?(p=(0,J.jsxs)($,{children:[d,f]}),t[21]=d,t[22]=f,t[23]=p):p=t[23],p}function pt(e){return(0,J.jsx)(ft,{link:e,indent:`nested`},e.to)}function mt(e){let t=(0,q.c)(21),{groupTitle:n,section:r}=e,{collapse:i}=Q(),a=`${n}-${r.name}`,o;t[0]!==i||t[1]!==a?(o=i.isSectionCollapsed(a),t[0]=i,t[1]=a,t[2]=o):o=t[2];let s=o,c;t[3]!==i||t[4]!==a?(c=()=>i.toggleSection(a),t[3]=i,t[4]=a,t[5]=c):c=t[5];let l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=g(`group inline-flex w-full cursor-pointer items-center gap-1 p-0 text-left`,lt,ut.direct),t[6]=l):l=t[6];let u;t[7]===r.name?u=t[8]:(u=(0,J.jsx)(T,{as:`span`,variant:`small-mono`,className:`tracking-[0.02em] text-depot-neutral-50 uppercase group-hover:text-depot-theme-primary group-focus-visible:text-depot-theme-primary`,children:r.name}),t[7]=r.name,t[8]=u);let d;t[9]===s?d=t[10]:(d=(0,J.jsx)(at,{collapsed:s,className:`group-hover:text-depot-theme-primary group-focus-visible:text-depot-theme-primary`}),t[9]=s,t[10]=d);let f;t[11]!==c||t[12]!==u||t[13]!==d?(f=(0,J.jsxs)(`button`,{type:`button`,"data-docs-nav-section-header":!0,onClick:c,className:l,children:[u,d]}),t[11]=c,t[12]=u,t[13]=d,t[14]=f):f=t[14];let p;t[15]!==s||t[16]!==r.links?(p=s?null:(0,J.jsx)($,{children:r.links.map(ht)}),t[15]=s,t[16]=r.links,t[17]=p):p=t[17];let m;return t[18]!==f||t[19]!==p?(m=(0,J.jsxs)($,{"data-docs-nav-section":!0,children:[f,p]}),t[18]=f,t[19]=p,t[20]=m):m=t[20],m}function ht(e){return(0,J.jsx)(ft,{link:e,indent:`nested`},e.to)}function gt(e){let t=(0,q.c)(3),{icon:n}=e;if(n.kind===`brand-logo`){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,J.jsx)(F,{variant:`logomark`,gradient:!0,className:`size-4 shrink-0`}),t[0]=e):e=t[0],e}let r;return t[1]===n.name?r=t[2]:(r=(0,J.jsx)(w,{name:n.name,gradient:!0,className:`size-4 shrink-0`}),t[1]=n.name,t[2]=r),r}function _t(e){let t=(0,q.c)(19),{title:n,icon:r,isCollapsed:i,onToggle:a}=e;if(a){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=g(`flex w-full cursor-pointer items-center gap-2 p-0 text-left box-cap`,lt),t[0]=e):e=t[0];let o;t[1]===r?o=t[2]:(o=(0,J.jsx)(gt,{icon:r}),t[1]=r,t[2]=o);let s;t[3]===n?s=t[4]:(s=(0,J.jsx)(T,{as:`span`,variant:`body`,className:`flex-1 text-depot-theme-primary`,children:n}),t[3]=n,t[4]=s);let c;t[5]===i?c=t[6]:(c=(0,J.jsx)(at,{collapsed:i}),t[5]=i,t[6]=c);let l;return t[7]!==a||t[8]!==o||t[9]!==s||t[10]!==c?(l=(0,J.jsxs)(`button`,{type:`button`,"data-docs-nav-group-header":!0,onClick:a,className:e,children:[o,s,c]}),t[7]=a,t[8]=o,t[9]=s,t[10]=c,t[11]=l):l=t[11],l}let o;t[12]===r?o=t[13]:(o=(0,J.jsx)(gt,{icon:r}),t[12]=r,t[13]=o);let s;t[14]===n?s=t[15]:(s=(0,J.jsx)(T,{as:`span`,variant:`body`,className:`text-depot-theme-primary`,children:n}),t[14]=n,t[15]=s);let c;return t[16]!==o||t[17]!==s?(c=(0,J.jsxs)(`div`,{"data-docs-nav-group-header":!0,className:`flex items-center gap-2`,children:[o,s]}
4),t[16]=o,t[17]=s,t[18]=c):c=t[18],c}function vt(e){let t=(0,q.c)(21),{group:n}=e,{variant:r,collapse:i}=Q(),a;t[0]!==i||t[1]!==n.title||t[2]!==r?(a=r===`mobile`&&i.isGroupCollapsed(n.title),t[0]=i,t[1]=n.title,t[2]=r,t[3]=a):a=t[3];let o=a,s;t[4]!==i||t[5]!==n.title||t[6]!==r?(s=r===`mobile`?()=>i.toggleGroup(n.title):void 0,t[4]=i,t[5]=n.title,t[6]=r,t[7]=s):s=t[7];let c=s,l;t[8]!==n.icon||t[9]!==n.title||t[10]!==o||t[11]!==c?(l=(0,J.jsx)(_t,{title:n.title,icon:n.icon,isCollapsed:o,onToggle:c}),t[8]=n.icon,t[9]=n.title,t[10]=o,t[11]=c,t[12]=l):l=t[12];let u;t[13]!==n.links||t[14]!==n.subSections||t[15]!==n.title||t[16]!==o?(u=o?null:(0,J.jsxs)($,{children:[n.links.map(yt),n.subSections?.map(e=>(0,J.jsx)(mt,{groupTitle:n.title,section:e},e.name))]}),t[13]=n.links,t[14]=n.subSections,t[15]=n.title,t[16]=o,t[17]=u):u=t[17];let d;return t[18]!==l||t[19]!==u?(d=(0,J.jsxs)($,{"data-docs-nav-group":!0,children:[l,u]}),t[18]=l,t[19]=u,t[20]=d):d=t[20],d}function yt(e){return(0,J.jsx)(ft,{link:e,indent:`direct`},e.to)}function bt({enabled:e,scrollContainerRef:t}){let{pathname:n,key:r}=i(),a=(0,K.useCallback)(()=>t?.current??null,[t]);(0,K.useLayoutEffect)(()=>{if(!e)return;let t=!1,n=()=>{if(t)return;let e=a();if(!e||e.getClientRects().length===0)return;let n=$e(e);n&&(et(e,n),e.dispatchEvent(new Event(`scroll`)))};n();let r=requestAnimationFrame(n),i=[100,250,450,600].map(e=>window.setTimeout(n,e));return()=>{t=!0,cancelAnimationFrame(r);for(let e of i)window.clearTimeout(e)}},[e,n,r,a])}function xt(e){let t=(0,q.c)(9),{className:n,onNavigate:r,variant:i,scrollContainerRef:a,mobileNavOpen:o,mobilePanelReady:s}=e,c=i===void 0?`sidebar`:i,l=c===`mobile`&&!!(o&&s),u;t[0]!==n||t[1]!==a||t[2]!==l||t[3]!==c?(u=(0,J.jsx)(St,{className:n,variant:c,scrollContainerRef:a,scrollEnabled:l}),t[0]=n,t[1]=a,t[2]=l,t[3]=c,t[4]=u):u=t[4];let d;return t[5]!==r||t[6]!==u||t[7]!==c?(d=(0,J.jsx)(it,{variant:c,onNavigate:r,children:u}),t[5]=r,t[6]=u,t[7]=c,t[8]=d):d=t[8],d}function St(e){let t=(0,q.c)(9),{className:n,variant:r,scrollContainerRef:i,scrollEnabled:a}=e,o;t[0]!==i||t[1]!==a?(o={enabled:a,scrollContainerRef:i},t[0]=i,t[1]=a,t[2]=o):o=t[2],bt(o);let s=r===`sidebar`?void 0:`relative flex min-h-0 flex-col`,c;t[3]!==n||t[4]!==s?(c=g(s,n),t[3]=n,t[4]=s,t[5]=c):c=t[5];let l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,J.jsx)(`nav`,{className:g(`flex flex-col`,ot),children:Y.map(Ct)}),t[6]=l):l=t[6];let u;return t[7]===c?u=t[8]:(u=(0,J.jsx)(`div`,{className:c,children:l}),t[7]=c,t[8]=u),u}function Ct(e){return(0,J.jsx)(vt,{group:e},e.title)}var wt=`w-[min(85vw,20rem)]`;function Tt(e){let t=(0,q.c)(32),{searchItems:n,open:r,onOpenChange:i}=e,a=(0,K.useRef)(null),o,s;t[0]===r?(o=t[1],s=t[2]):(o=()=>{if(!r)return;let{style:e}=document.body,t=e.overflow;return e.overflow=`hidden`,()=>{e.overflow=t}},s=[r],t[0]=r,t[1]=o,t[2]=s),(0,K.useEffect)(o,s);let c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=[],t[3]=c):c=t[3],(0,K.useLayoutEffect)(Et,c);let l=r?`Close documentation navigation`:`Open documentation navigation`,u=r?`x`:`menu`,d;t[4]===u?d=t[5]:(d=(0,J.jsx)(w,{name:u,className:`size-4`}),t[4]=u,t[5]=d);let f;t[6]!==l||t[7]!==d?(f=(0,J.jsx)(V,{"aria-label":l,className:`flex shrink-0 cursor-pointer items-center p-0 text-depot-theme-primary outline-none`,children:d}),t[6]=l,t[7]=d,t[8]=f):f=t[8];let p;t[9]===n?p=t[10]:(p=(0,J.jsx)(Ue,{searchItems:n,variant:`mobile`,className:`min-w-0 flex-1`}),t[9]=n,t[10]=p);let m;t[11]!==f||t[12]!==p?(m=(0,J.jsx)(`div`,{"data-docs-mobile-nav":!0,className:`relative w-full`,children:(0,J.jsx)(`div`,{className:`relative w-full bg-depot-theme-primary-inverse`,children:(0,J.jsxs)(`div`,{className:`flex w-full min-w-0 items-center gap-4 py-4`,children:[f,p]})})}),t[11]=f,t[12]=p,t[13]=m):m=t[13];let h;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,J.jsx)(H,{className:g(`fixed inset-0 z-40 bg-black/60`,`transition-opacity duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none`,`opacity-100`,`data-starting-style:opacity-0`,`data-ending-style:opacity-0 data-ending-style:duration-200`)}),t[14]=h):h=t[14];let _,v;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(_=g(wt,`fixed inset-y-0 left-0 z-50 flex h-dvh min-h-0 flex-col gap-6 overflow-hidden bg-depot-theme-primary-inverse shadow-[4px_0_24px_rgba(0,0,0,0.12)] outline-none`,`transition-transform duration-300 ease-[
4cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none`,`translate-x-0`,`data-starting-style:-translate-x-full`,`data-ending-style:-translate-x-full data-ending-style:duration-250`),v=(0,J.jsx)(R,{className:`sr-only`,children:`Documentation navigation`}),t[15]=_,t[16]=v):(_=t[15],v=t[16]);let y;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,J.jsx)(T,{as:`span`,variant:`body`,className:`shrink-0 text-depot-theme-primary`,children:`Documents`}),t[17]=y):y=t[17];let b;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,J.jsxs)(`div`,{className:`flex shrink-0 items-center justify-between gap-4 px-6 pt-6`,children:[y,(0,J.jsx)(z,{"aria-label":`Close documentation navigation`,className:`flex cursor-pointer items-center p-0 text-depot-theme-primary outline-none`,children:(0,J.jsx)(w,{name:`x`,className:`size-4`})})]}),t[18]=b):b=t[18];let x;t[19]===i?x=t[20]:(x=()=>i(!1),t[19]=i,t[20]=x);let S;t[21]!==r||t[22]!==x?(S=(0,J.jsx)(xt,{variant:`mobile`,scrollContainerRef:a,mobileNavOpen:r,mobilePanelReady:r,onNavigate:x}),t[21]=r,t[22]=x,t[23]=S):S=t[23];let C;t[24]!==r||t[25]!==S?(C=(0,J.jsxs)(L,{children:[h,(0,J.jsxs)(I,{className:_,children:[v,b,(0,J.jsx)(Je,{enabled:r,scrollContainerRef:a,className:`min-h-0 flex-1`,scrollClassName:`scrollbar-none px-6 pb-10`,children:S})]})]}),t[24]=r,t[25]=S,t[26]=C):C=t[26];let E;return t[27]!==i||t[28]!==r||t[29]!==C||t[30]!==m?(E=(0,J.jsxs)(B,{modal:`trap-focus`,open:r,onOpenChange:i,children:[m,C]}),t[27]=i,t[28]=r,t[29]=C,t[30]=m,t[31]=E):E=t[31],E}function Et(){let e=document.querySelector(`[data-docs-mobile-nav]`);if(!(e instanceof HTMLElement))return;let t=()=>{let t=e.getBoundingClientRect().bottom;document.documentElement.style.setProperty(`--docs-mobile-search-top`,`${t}px`)};t(),window.addEventListener(`scroll`,t,{passive:!0}),window.addEventListener(`resize`,t);let n=new ResizeObserver(t);return n.observe(document.body),()=>{window.removeEventListener(`scroll`,t),window.removeEventListener(`resize`,t),n.disconnect()}}function Dt(e){let t=(0,q.c)(4),{searchItems:n,mobileNavOpen:r,onMobileNavOpenChange:i}=e,a;return t[0]!==r||t[1]!==i||t[2]!==n?(a=(0,J.jsx)(`div`,{className:`sticky top-15 z-10 -mt-20 w-full bg-depot-theme-primary-inverse lg:hidden`,children:(0,J.jsx)(Tt,{searchItems:n,open:r,onOpenChange:i})}),t[0]=r,t[1]=i,t[2]=n,t[3]=a):a=t[3],a}function Ot(e){let t=(0,q.c)(20),{githubLink:n,className:r}=e,[i,a]=D(),o;t[0]===a?o=t[1]:(o=async()=>{try{let e=await fetch(window.location.pathname,{headers:{Accept:`text/markdown`}});if(!e.ok)return;await a(await e.text())}catch{}},t[0]=a,t[1]=o);let s=o,c;t[2]===r?c=t[3]:(c=g(`flex flex-col gap-3`,r),t[2]=r,t[3]=c);let l=i?`check`:`copy`,u;t[4]===l?u=t[5]:(u=(0,J.jsx)(w,{name:l,className:`size-5 shrink-0`}),t[4]=l,t[5]=u);let d=i?`Copied!`:`Copy markdown`,f;t[6]===d?f=t[7]:(f=(0,J.jsx)(T,{as:`span`,variant:`body-xs`,className:`text-inherit`,children:d}),t[6]=d,t[7]=f);let p;t[8]!==s||t[9]!==u||t[10]!==f?(p=(0,J.jsxs)(`button`,{type:`button`,onClick:s,className:`flex cursor-pointer items-center gap-2.5 text-left text-depot-neutral-50 transition-colors hover:text-depot-theme-primary`,children:[u,f]}),t[8]=s,t[9]=u,t[10]=f,t[11]=p):p=t[11];let m,h;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,J.jsx)(w,{name:`github`,className:`size-5 shrink-0`}),h=(0,J.jsx)(T,{as:`span`,variant:`body-xs`,className:`text-inherit`,children:`Edit on GitHub`}),t[12]=m,t[13]=h):(m=t[12],h=t[13]);let _;t[14]===n?_=t[15]:(_=(0,J.jsxs)(`a`,{href:n,target:`_blank`,rel:`noreferrer`,className:`flex items-center gap-2.5 text-depot-neutral-50 transition-colors hover:text-depot-theme-primary`,children:[m,h]}),t[14]=n,t[15]=_);let v;return t[16]!==_||t[17]!==c||t[18]!==p?(v=(0,J.jsxs)(`div`,{className:c,children:[p,_]}),t[16]=_,t[17]=c,t[18]=p,t[19]=v):v=t[19],v}function kt(e){let t=(0,q.c)(14),{toc:n,githubLink:r,hideToc:i,hideActions:a,followToc:o}=e,s=(0,K.useRef)(null),c=i?`w-[235px] max-w-[235px]`:`w-[240px] max-w-[240px]`,l=o&&`max-h-[calc(100dvh-8rem)]`,u;t[0]!==c||t[1]!==l?(u=g(`flex shrink-0 flex-col gap-6`,c,`sticky top-27 z-10`,l),t[0]=c,t[1]=l,t[2]=u):u=t[2];let d;t[3]!==o||t[4]!==i||t[5]!==n?(d=!i&&n.length>0?(0,J.jsx)(G,{toc:n,viewRef:s,title:`On this page`,titleVariant:`body`,truncateLabels:!0,useCssScrollMargin:!0,className:o?`flex min-h-0 flex-1 flex-col`:void 0,navClassName:o?`lg:scrollbar-none lg:max-h-none lg:flex-1`:void 0}):null,t[3]=o,t[4]=i,t[5]=n,t[6]=d):d=t[6];let f;t[7]!==r||t[8]!==a?(f=a?null:(0,J.jsx)(Ot,{githubLink:r,className:`shrink-0`}),t[7]=r,t[8]=a,t[9]=f):f=t[9];let p;return t[10]!==u||t[11]!==d||t[12]!==f?(p=(0,J.jsxs)(`aside`,{ref:s,className:u,children:[d,f]}),t[10]=u,t[11]=d,t[12]=f,t[13]=p):p=t[13],p}function At(e){let t=(0,q.c)(8),{searchItems:n,className:r}=e,i;t[0]===r?i=t[1]:(i=g(`flex w-[235px] max-w-[235px] shrink-0 flex-col gap-6`,`sticky top-27 z-10 h-[calc(100dvh-10rem)] min-h-0 overflow-visible will-change-transform`,r),t[0]=r,t[1]=i);let a;t[2]===n?a=t[3]:(a=(0,J.jsx)(`div`,{className:`relative z-[1] shrink-0 bg-depot-theme-primary-inverse`,children:(0,J.jsx)(Ue,{searchItems:n})}),t[2]=n,t[3]=a);let o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,J.jsx)(Je,{className:`min-h-0 flex-1`,scrollClassName:`pb-10`,children:(0,J.jsx)(xt,{variant:`sidebar`})}),t[4]=o):o=t[4];let s;return t[5]!==i||t[6]!==a?(s=(0,J.jsxs)(`aside`,{className:i,children:[a,o]}),t[5]=i,t[6]=a,t[7]=s):s=t[7],s}var jt={hidePreFooter:!0},Mt=j,Nt=c(M);function Pt(e){let t=(0,q.c)(44),{loaderData:n}=e,[r,a]=(0,K.useState)(!1),{searchItems:o,user:s}=n,{pathname:c,hash:l,key:u}=i(),{rail:f}=he(),[p,m]=(0,K.useState)(!1),{open:h}=b(),_=c===`/docs`||c===`/docs/`,v;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(v=()=>{m(!0)},t[0]=v):v=t[0];let x=v,S;t[1]===p?S=t[2]:(S=e=>{!e&&p&&m(!1)},t[1]=p,t[2]=S);let C=S,w;t[3]!==h||t[4]!==s?(w=()=>{s?h(`question`):window.open(`/help`,`_blank`)},t[3]=h,t[4]=s,t[5]=w):w=t[5];let T=w,E=f.hideToc;O(c)&&a(!1);let D;t[6]===l?D=t[7]:(D=()=>
4{if(l){let e=document.getElementById(l.slice(1));e&&e.scrollIntoView()}},t[6]=l,t[7]=D);let k;t[8]!==l||t[9]!==u?(k=[l,u],t[8]=l,t[9]=u,t[10]=k):k=t[10],(0,K.useEffect)(D,k);let A;t[11]!==r||t[12]!==o?(A=(0,J.jsx)(Dt,{searchItems:o,mobileNavOpen:r,onMobileNavOpenChange:a}),t[11]=r,t[12]=o,t[13]=A):A=t[13];let j=E?`lg:grid-cols-[235px_minmax(0,1fr)_235px]`:`lg:grid-cols-[235px_minmax(0,1fr)_240px]`,M;t[14]===j?M=t[15]:(M=g(`grid grid-cols-1 items-stretch gap-6 lg:min-h-[calc(100dvh-6rem)]`,j),t[14]=j,t[15]=M);let N;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(N=g(`relative hidden min-h-0 self-stretch lg:z-30 lg:block lg:h-0 lg:min-h-full`),t[16]=N):N=t[16];let F;t[17]===o?F=t[18]:(F=(0,J.jsx)(`div`,{className:N,children:(0,J.jsx)(At,{searchItems:o})}),t[17]=o,t[18]=F);let I;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,J.jsx)(d,{}),t[19]=I):I=t[19];let L;t[20]===T?L=t[21]:(L=(0,J.jsx)(`div`,{className:`w-full min-w-0`,children:(0,J.jsx)(ee,{onAskSherlock:x,onContactSupport:T,children:I})}),t[20]=T,t[21]=L);let R;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(R=g(`relative hidden min-h-0 self-stretch lg:block`),t[22]=R):R=t[22];let z;t[23]!==_||t[24]!==f.followToc||t[25]!==f.githubLink||t[26]!==f.hideToc||t[27]!==f.toc?(z=(0,J.jsx)(`div`,{className:R,children:(0,J.jsx)(kt,{toc:f.toc,githubLink:f.githubLink,hideToc:f.hideToc,hideActions:_,followToc:f.followToc})}),t[23]=_,t[24]=f.followToc,t[25]=f.githubLink,t[26]=f.hideToc,t[27]=f.toc,t[28]=z):z=t[28];let B;t[29]!==F||t[30]!==L||t[31]!==z||t[32]!==M?(B=(0,J.jsxs)(`div`,{className:M,children:[F,L,z]}),t[29]=F,t[30]=L,t[31]=z,t[32]=M,t[33]=B):B=t[33];let V;t[34]!==C||t[35]!==p?(V=(0,J.jsx)(Pe,{shouldOpen:p,onOpenChange:C}),t[34]=C,t[35]=p,t[36]=V):V=t[36];let H;t[37]===s?H=t[38]:(H=s&&(0,J.jsx)(y,{}),t[37]=s,t[38]=H);let U;return t[39]!==B||t[40]!==V||t[41]!==H||t[42]!==A?(U=(0,J.jsxs)(P,{className:`mb-12 flex flex-col gap-6 lg:mb-50`,children:[A,B,V,H]}),t[39]=B,t[40]=V,t[41]=H,t[42]=A,t[43]=U):U=t[43],U}var Ft=s(function(e){let t=(0,q.c)(2),n;return t[0]===e?n=t[1]:(n=(0,J.jsx)(N,{children:(0,J.jsx)(ge,{children:(0,J.jsx)(ye,{children:(0,J.jsx)(me,{children:(0,J.jsx)(Pt,{...e})})})})}),t[0]=e,t[1]=n),n});export{Nt as ErrorBoundary,Ft as default,jt as handle,Mt as links}; 5//# sourceMappingURL=route-pKxyCKXT2.js.map 6//# chunkId=01a0d3ec-ede8-75b0-ac26-e1885c4b0888 7//# debugId=0a91f1d3-b709-56b0-9c67-ceae646b521d
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.