PageSourceSearch

https://depot.dev/assets/Toc-CEH5LJXD.js

js depot.dev collected 2026-10-02 05:27:02 UTC 12,651 bytes, 6 lines download raw bytes

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]="cde7e3d3-c8b7-5a34-bc87-71ea217eb760")}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]="01a0f9f2-bdd2-76d2-a2a5-6616d4d3f97f")}catch(e){}}();(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`6671e471206ed21e40f078c1c93b0fa72dcc83af`}}catch{}})();import{a as e}from"./chunk-pUsIRAOz.js";import{t}from"./react-BJShOJtD.js";import{t as n}from"./react-dom-R3r1LNSp.js";import{t as r}from"./jsx-runtime-BYB64Sxt.js";import{t as i}from"./compiler-runtime-B2kict0c.js";import{t as a}from"./cn-DvCbJWtL.js";import{t as o}from"./useMounted-CwpVzlFb.js";import{t as s}from"./Icon-Drt9cYNH.js";import{t as c}from"./Text-Con_xGsU.js";import{t as l}from"./Heading-Dtu9NS19.js";import{a as u,i as d,n as f,r as p,t as m}from"./DialogTitle-DdU6cZ85.js";import{t as h}from"./DialogTrigger-B5Jz_0ZX.js";var g=i(),_=e(t(),1),v=e(n(),1),y=r(),b=e=>({transitionDelay:`${80+e*35}ms`}),x=a(`translate-y-0 opacity-100`,`transition-[opacity,translate] duration-400 ease-[
3cubic-bezier(0.25,0.46,0.45,0.94)]`,`starting:translate-y-[10px] starting:opacity-0`),S=60,C=305,w=125,ee=96,T=`marketing-mdx-content`,E=12;function D(e){let t=(0,g.c)(3),[n,r]=(0,_.useState)(0),i,a;return t[0]===e?(i=t[1],a=t[2]):(i=()=>{let t=()=>{let t=document.getElementById(T);if(!t)return;let{top:n,bottom:i,height:a}=t.getBoundingClientRect();if(a<=0){r(0);return}if(n>e){r(0);return}if(i<=e){r(1);return}r(Math.max(0,Math.min(1,(e-n)/a)))};return t(),window.addEventListener(`scroll`,t,{passive:!0}),window.addEventListener(`resize`,t),()=>{window.removeEventListener(`scroll`,t),window.removeEventListener(`resize`,t)}},a=[e],t[0]=e,t[1]=i,t[2]=a),(0,_.useEffect)(i,a),n}function O(e,t){let n=(0,g.c)(4),[r,i]=(0,_.useState)(void 0),a,o;return n[0]!==t||n[1]!==e?(a=()=>{if(e.length===0)return;let n=()=>{let n=document.getElementById(T);if(!n)return;let r=document.documentElement.scrollHeight,a=r>window.innerHeight&&Math.ceil(window.scrollY+window.innerHeight)>=r,{top:o,bottom:s}=n.getBoundingClientRect();if(!a&&(o>t||s<=t)){i(void 0);return}let c=e[0]?.url;for(let n of e){let e=n.url.startsWith(`#`)?n.url.slice(1):void 0;if(!e)continue;let r=document.getElementById(e);if(r)if(r.getBoundingClientRect().top<=t)c=n.url;else break}a&&(c=e.at(-1)?.url??c),i(c)};return n(),window.addEventListener(`scroll`,n,{passive:!0}),window.addEventListener(`resize`,n),()=>{window.removeEventListener(`scroll`,n),window.removeEventListener(`resize`,n)}},o=[t,e],n[0]=t,n[1]=e,n[2]=a,n[3]=o):(a=n[2],o=n[3]),(0,_.useEffect)(a,o),r}function k(e,t){let n=e.startsWith(`#`)?e.slice(1):e,r=document.getElementById(n);r&&(window.history.pushState(null,``,e),requestAnimationFrame(()=>{let e=window.scrollY+r.getBoundingClientRect().top-t+E;window.scrollTo({top:Math.max(0,e),behavior:`smooth`})}))}function A(e){let t=e.startsWith(`#`)?e.slice(1):e,n=document.getElementById(t);n&&(window.history.pushState(null,``,e),n.scrollIntoView({behavior:`smooth`,block:`start`}))}var j=e=>{let t=(0,g.c)(35),{toc:n,className:r,navClassName:i,navRef:o,listRef:s,title:u,titleVariant:d,useCssScrollMargin:f,truncateLabels:p,ulClassName:m}=e,h=u===void 0?`Contents`:u,v=d===void 0?`heading`:d,b=f===void 0?!1:f,x=p===void 0?!1:p,S=O(n,ee),C=(0,_.useRef)(null),w,T;t[0]===S?(w=t[1],T=t[2]):(w=()=>{let e=C.current;if(!e||!S||window.innerWidth<1024)return;let t=e.querySelector(`a[href="${CSS.escape(S)}"]`);if(!t)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=r.top<n.top,a=r.bottom>n.bottom;(i||a)&&t.scrollIntoView({block:`nearest`,inline:`nearest`})},T=[S],t[0]=S,t[1]=w,t[2]=T),(0,_.useEffect)(w,T);let E;t[3]===o?E=t[4]:(E=e=>{C.current=e,o&&(o.current=e)},t[3]=o,t[4]=E);let D=E,k;t[5]===r?k=t[6]:(k=a(`space-y-6`,r),t[5]=r,t[6]=k);let A;t[7]!==h||t[8]!==v?(A=v===`body`?(0,y.jsx)(c,{as:`h2`,variant:`body`,children:h}):(0,y.jsx)(l,{as:`h2`,variant:`h6`,children:h}),t[7]=h,t[8]=v,t[9]=A):A=t[9];let j;t[10]===i?j=t[11]:(j=a(`min-h-0 w-full py-1 lg:scrollbar-thin lg:max-h-[min(30dvh,36rem)] lg:overflow-y-auto`,i),t[10]=i,t[11]=j);let N;t[12]===m?N=t[13]:(N=a(`space-y-4`,m),t[12]=m,t[13]=N);let P;if(t[14]!==S||t[15]!==n||t[16]!==x||t[17]!==b){let e;t[19]!==S||t[20]!==x||t[21]!==b?(e=e=>(0,y.jsx)(M,{active:e.url===S,depth:e.depth,url:e.url,title:e.title,truncate:x,useCssScrollMargin:b},e.url),t[19]=S,t[20]=x,t[21]=b,t[22]=e):e=t[22],P=n.map(e),t[14]=S,t[15]=n,t[16]=x,t[17]=b,t[18]=P}else P=t[18];let F;t[23]!==s||t[24]!==N||t[25]!==P?(F=(0,y.jsx)(`ul`,{className:N,ref:s,children:P}
3),t[23]=s,t[24]=N,t[25]=P,t[26]=F):F=t[26];let I;t[27]!==D||t[28]!==j||t[29]!==F?(I=(0,y.jsx)(`nav`,{className:j,ref:D,children:F}),t[27]=D,t[28]=j,t[29]=F,t[30]=I):I=t[30];let L;return t[31]!==I||t[32]!==k||t[33]!==A?(L=(0,y.jsxs)(`section`,{className:k,children:[A,I]}),t[31]=I,t[32]=k,t[33]=A,t[34]=L):L=t[34],L},M=e=>{let t=(0,g.c)(28),{url:n,title:r,depth:i,active:o,offset:s,truncate:l,useCssScrollMargin:u}=e,d=s===void 0?ee:s,f=l===void 0?!1:l,p=u===void 0?!1:u,m;t[0]!==d||t[1]!==n||t[2]!==p?(m=e=>{if(e.preventDefault(),p){A(n);return}k(n,d)},t[0]=d,t[1]=n,t[2]=p,t[3]=m):m=t[3];let h=m,_=f&&`min-w-0`,v;t[4]===_?v=t[5]:(v=a(_),t[4]=_,t[5]=v);let b=f&&typeof r==`string`?r:void 0,x=f?`w-full min-w-0 truncate leading-snug`:`w-fit leading-1`,S=o&&`text-depot-theme-primary`,C=i===3&&`pl-2`,w=i===4&&`pl-4`,T=i===5&&`pl-6`,E=i===6&&`pl-8`,D;t[6]!==C||t[7]!==w||t[8]!==T||t[9]!==E||t[10]!==x||t[11]!==S?(D=a(`block text-depot-neutral-50 transition-colors box-cap hover:text-depot-theme-primary`,x,S,C,w,T,E),t[6]=C,t[7]=w,t[8]=T,t[9]=E,t[10]=x,t[11]=S,t[12]=D):D=t[12];let O=f&&`block truncate tracking-[0.02em]`,j;t[13]===O?j=t[14]:(j=a(`text-inherit uppercase`,O),t[13]=O,t[14]=j);let M;t[15]!==j||t[16]!==r?(M=(0,y.jsx)(c,{as:`span`,className:j,variant:`small-mono`,children:r}),t[15]=j,t[16]=r,t[17]=M):M=t[17];let N;t[18]!==h||t[19]!==D||t[20]!==M||t[21]!==b||t[22]!==n?(N=(0,y.jsx)(`a`,{href:n,title:b,onClick:h,className:D,children:M}),t[18]=h,t[19]=D,t[20]=M,t[21]=b,t[22]=n,t[23]=N):N=t[23];let P;return t[24]!==N||t[25]!==v||t[26]!==n?(P=(0,y.jsx)(`li`,{className:v,children:N},n),t[24]=N,t[25]=v,t[26]=n,t[27]=P):P=t[27],P},N=e=>{let t=(0,g.c)(63),{toc:n,className:r,alwaysVisible:i,clampActiveToEdges:l,triggerClassName:ee,popupNavClassName:E,popupContainer:j,onOpenChange:M,useCssScrollMargin:N}=e,P=i===void 0?!1:i,F=l===void 0?!1:l,I=N===void 0?!1:N,L=o(),[te,ne]=(0,_.useState)(!1),[re,ie]=(0,_.useState)(null),[ae,oe]=(0,_.useState)(!1),[se,R]=(0,_.useState)(F&&n.length>0?n[0]:void 0),ce=(0,_.useRef)(null),le;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(le={current:0,target:0},t[0]=le):le=t[0];let ue=(0,_.useRef)(le),z=O(n,C),de=D(S),fe,pe;t[1]!==z||t[2]!==F||t[3]!==n?(fe=()=>{if(n.length===0)return;let e=()=>{let e=document.getElementById(T);if(!e){F&&R(n[0]);return}let{top:t,bottom:r}=e.getBoundingClientRect(),i=t<=S&&r>S;if(oe(i),F){if(r<=S){R(n[n.length-1]);return}if(t>S){R(n[0]);return}R(n.find(e=>e.url===z)??n[0]);return}R(n.find(e=>e.url===z)??(i?n[0]:void 0))};return e(),window.addEventListener(`scroll`,e,{passive:!0}),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`scroll`,e),window.removeEventListener(`resize`,e)}},pe=[z,F,n],t[1]=z,t[2]=F,t[3]=n,t[4]=fe,t[5]=pe):(fe=t[4],pe=t[5]),(0,_.useEffect)(fe,pe);let B=P||ae,me,he;t[6]===de?(me=t[7],he=t[8]):(me=()=>{ue.current.target=de},he=[de],t[6]=de,t[7]=me,t[8]=he),(0,_.useEffect)(me,he);let ge,_e;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(_e=()=>{let e,t=()=>{let n=ue.current,r=n.target-n.current;n.current=Math.abs(r)<1e-4?n.target:n.current+r*.2,ce.current&&(ce.current.style.width=`${n.current*100}%`),e=requestAnimationFrame(t)};return e=requestAnimationFrame(t),()=>cancelAnimationFrame(e)},ge=[],t[9]=ge,t[10]=_e):(ge=t[9],_e=t[10]),(0,_.useEffect)(_e,ge);let ve;t[11]===I?ve=t[12]:(ve=(e,t)=>{if(e.preventDefault(),ne(!1),I){A(t);return}k(t,w)},t[11]=I,t[12]=ve);let ye=ve,V;t[13]===M?V=t[14]:(V=e=>{ne(e),M?.(e)},t[13]=M,t[14]=V);let be=!B,xe=P?`relative w-full`:`fixed inset-x-0 top-15 z-15 lg:hidden`,H;t[15]!==r||t[16]!==xe?(H=a(xe,r),t[15]=r,t[16]=xe,t[17]=H):H=t[17];let Se=!P&&`overflow-hidden`,U;t[18]===Se?U=t[19]:(U=a(Se),t[18]=Se,t[19]=U);let W;t[20]!==P||t[21]!==B?(W=P?void 0:{opacity:+!!B,transform:B?`translateY(0)`:`translateY(calc(-100% - 1px))`},t[20]=P,t[21]=B,t[22]=W):W=t[22];let Ce=P?`translate-y-0 opacity-100`:`transition-[transform,opacity] duration-500 ease-[cubic-bezier(0.22,1,0.36,1)] will-change-transform`,we=!P&&!B&&`pointer-events-none`,G;t[23]!==Ce||t[24]!==we?(G=a(Ce,we),t[23]=Ce,t[24]=we,t[25]=G):G=t[25];let Te=te?`Close sections`:`Open sections`,Ee=ee??`px-4 py-3 sm:px-8`,K;t[26]===Ee?K=t[27]:(K=a(`group flex w-full cursor-pointer items-center justify-between gap-3 text-left text-depot-theme-primary outline-none`,Ee),t[26]=Ee,t[27]=K);let De=se?.title,q;t[28]===De?q=t[29]:(q=(0,y.jsx)(`span`,{className:`block min-w-0 flex-1 truncate type-favorit-small text-inherit uppercase`,children:De}),t[28]=De,t[29]=q);let Oe;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(Oe=(0,y.jsx)(s,{name:`chevron-down`,className:`size-3 shrink-0 transition-transform duration-300 ease-[
3cubic-bezier(0.22,1,0.36,1)] group-data-popup-open:rotate-180`}),t[30]=Oe):Oe=t[30];let J;t[31]!==Te||t[32]!==K||t[33]!==q?(J=(0,y.jsxs)(h,{"aria-label":Te,className:K,children:[q,Oe]}),t[31]=Te,t[32]=K,t[33]=q,t[34]=J):J=t[34];let ke;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(ke=(0,y.jsx)(`div`,{"aria-hidden":!0,className:`h-px w-full bg-depot-neutral-800/80`,children:(0,y.jsx)(`div`,{ref:ce,className:`h-full bg-[linear-gradient(260.98deg,var(--color-depot-purple)_6.85%,var(--color-depot-light-blue)_93.15%)]`})}),t[35]=ke):ke=t[35];let Y;t[36]===J?Y=t[37]:(Y=(0,y.jsxs)(`div`,{className:`relative border-b border-depot-neutral-800 bg-depot-theme-primary-inverse`,children:[J,ke]}),t[36]=J,t[37]=Y);let X;t[38]!==W||t[39]!==G||t[40]!==Y?(X=(0,y.jsx)(`div`,{style:W,className:G,children:Y}),t[38]=W,t[39]=G,t[40]=Y,t[41]=X):X=t[41];let Z;t[42]!==U||t[43]!==X?(Z=(0,y.jsx)(`div`,{className:U,children:X}),t[42]=U,t[43]=X,t[44]=Z):Z=t[44];let Q;t[45]!==se?.url||t[46]!==re||t[47]!==ye||t[48]!==j||t[49]!==E||t[50]!==n?(Q=re?(0,y.jsx)(p,{container:j??re,children:(0,y.jsxs)(d,{className:a(`absolute inset-x-0 top-full z-20 grid border-b border-depot-neutral-800 bg-depot-theme-primary-inverse`,`transition-[grid-template-rows,opacity] duration-400 ease-[
3cubic-bezier(0.22,1,0.36,1)]`,`grid-rows-[1fr] opacity-100`,`data-starting-style:grid-rows-[0fr] data-starting-style:opacity-0`,`data-ending-style:grid-rows-[0fr] data-ending-style:opacity-0 data-ending-style:duration-300`),children:[(0,y.jsx)(m,{className:`sr-only`,children:`Sections`}),(0,y.jsx)(u,{className:`sr-only`,children:`Close sections`}),(0,y.jsx)(`nav`,{className:a(`max-h-[calc(100dvh-7rem)] overflow-hidden overflow-y-auto`,E??`px-4 py-4 sm:px-8`),children:(0,y.jsx)(`ul`,{className:`flex flex-col`,children:n.map((e,t)=>{let n=e.url===se?.url;return(0,y.jsx)(`li`,{className:x,style:b(t),children:(0,y.jsx)(`a`,{href:e.url,onClick:t=>ye(t,e.url),className:a(`block w-full border-b border-depot-neutral-800/60 py-3 text-depot-neutral-50 transition-colors last:border-b-0 hover:text-depot-theme-primary`,n&&`text-depot-theme-primary`),children:(0,y.jsx)(c,{as:`span`,className:`block text-inherit uppercase`,variant:`small-mono`,children:e.title})})},e.url)})})})]})}):null,t[45]=se?.url,t[46]=re,t[47]=ye,t[48]=j,t[49]=E,t[50]=n,t[51]=Q):Q=t[51];let $;t[52]!==be||t[53]!==H||t[54]!==Z||t[55]!==Q?($=(0,y.jsxs)(`div`,{ref:ie,"aria-hidden":be,className:H,children:[Z,Q]}),t[52]=be,t[53]=H,t[54]=Z,t[55]=Q,t[56]=$):$=t[56];let Ae;t[57]!==te||t[58]!==V||t[59]!==$?(Ae=(0,y.jsx)(f,{onOpenChange:V,open:te,children:$}),t[57]=te,t[58]=V,t[59]=$,t[60]=Ae):Ae=t[60];let je=Ae;if(P)return je;if(!L)return null;let Me;return t[61]===je?Me=t[62]:(Me=(0,v.createPortal)(je,document.querySelector(`main`)??document.body),t[61]=je,t[62]=Me),Me};export{N as n,D as r,j as t};
4//# sourceMappingURL=Toc-CEH5LJXD.js.map
5//# chunkId=01a0f9f2-bdd2-76d2-a2a5-6616d4d3f97f
6//# debugId=cde7e3d3-c8b7-5a34-bc87-71ea217eb760

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.