1import{t as e}from"./arrow-left-DH8jnXe2.js";import{t}from"./external-link-BHwoCI6C.js";import{i as n,n as r,r as i,t as a}from"./popover-DpC0UIpn.js";import{Bo as o,Bt as s,Ca as c,Ea as l,Fc as u,Gc as d,Ho as f,Ht as p,Jn as m,Jr as h,Jt as g,Kn as _,Ro as v,Ut as y,Vo as b,Vt as x,Wc as S,Xc as C,Zn as w,_l as T,ar as E,ka as D,ll as O,lr as k,pl as A,qn as j,sa as M}from"./index-BkL9w7fs.js";var N=O(),P={GET:`bg-blue-500/10 text-blue-700 dark:text-blue-300 border-blue-500/20`,POST:`bg-green-500/10 text-green-700 dark:text-green-300 border-green-500/20`,PATCH:`bg-yellow-500/10 text-yellow-700 dark:text-yellow-300 border-yellow-500/20`,DELETE:`bg-red-500/10 text-red-700 dark:text-red-300 border-red-500/20`,PUT:`bg-purple-500/10 text-purple-700 dark:text-purple-300 border-purple-500/20`};function F({method:e,endpoint:t,examples:n,results:r,className:i}){let{isCopied:a,copyToClipboard:o}=g(2e3);if(!n&&!r&&!e&&!t)return null;let c=n?Object.keys(n):[],l=r?Object.keys(r):[];return(0,N.jsxs)(`div`,{className:b(`flex flex-col gap-6`,i),children:[(e??t)&&(0,N.jsxs)(`button`,{type:`button`,onClick:()=>t&&o(t),className:`bg-muted hover:bg-muted/80 flex cursor-pointer items-center gap-3 rounded-lg p-4 transition-colors`,children:[e&&(0,N.jsx)(E,{variant:`outline`,className:b(`font-mono text-sm font-semibold`,P[e]),children:e}),t&&(0,N.jsx)(`code`,{className:`text-foreground flex-1 text-left font-mono text-sm`,children:t}),a?(0,N.jsx)(d,{className:`size-4 text-green-500`}):(0,N.jsx)(u,{className:`text-muted-foreground size-4`})]}),n&&c.length>0&&(0,N.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,N.jsx)(D,{variant:`muted`,className:`text-xs`,children:`Request Examples`}),(0,N.jsxs)(s,{defaultValue:c[0],className:`w-full`,children:[(0,N.jsx)(p,{className:`grid w-full`,style:{gridTemplateColumns:`repeat(${c.length}, 1fr)`},children:c.map(e=>(0,N.jsx)(y,{value:e,className:`whitespace-nowrap capitalize`,children:e},e))}),c.map(e=>(0,N.jsx)(x,{value:e,className:`mt-2`,children:(0,N.jsx)(`pre`,{className:`bg-muted text-foreground overflow-x-auto rounded-lg p-4 text-xs`,children:(0,N.jsx)(`code`,{children:n[e].trim()})})},e))]})]}),r&&l.length>0&&(0,N.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,N.jsx)(D,{variant:`muted`,className:`text-xs`,children:`Response Examples`}),(0,N.jsxs)(s,{defaultValue:l[0],className:`w-full`,children:[(0,N.jsx)(p,{className:`grid w-full`,style:{gridTemplateColumns:`repeat(${l.length}, 1fr)`},children:l.map(e=>(0,N.jsx)(y,{value:e,className:`capitalize`,children:e},e))}),l.map(e=>(0,N.jsx)(x,{value:e,className:`mt-2`,children:(0,N.jsx)(`pre`,{className:`bg-muted text-foreground overflow-x-auto rounded-lg p-4 text-xs`,children:(0,N.jsx)(`code`,{children:r[e].trim()})})},e))]})]})]})}function I(e,t){return`${e}?q=${encodeURIComponent(`I'm looking at this ${f.title} documentation: ${t}. 2Help me understand how to use it. Be ready to explain concepts, give examples, or help debug based on it. 3 `)}`}var L={markdown:e=>(0,N.jsxs)(`a`,{href:`${e}.md`,target:`_blank`,rel:`noopener noreferrer`,children:[(0,N.jsx)(`svg`,{strokeLinejoin:`round`,viewBox:`0 0 22 16`,className:`size-4`,children:(0,N.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M19.5 2.25H2.5C1.80964 2.25 1.25 2.80964 1.25 3.5V12.5C1.25 13.1904 1.80964 13.75 2.5 13.75H19.5C20.1904 13.75 20.75 13.1904 20.75 12.5V3.5C20.75 2.80964 20.1904 2.25 19.5 2.25ZM2.5 1C1.11929 1 0 2.11929 0 3.5V12.5C0 13.8807 1.11929 15 2.5 15H19.5C20.8807 15 22 13.8807 22 12.5V3.5C22 2.11929 20.8807 1 19.5 1H2.5ZM3 4.5H4H4.25H4.6899L4.98715 4.82428L7 7.02011L9.01285 4.82428L9.3101 4.5H9.75H10H11V5.5V11.5H9V7.79807L7.73715 9.17572L7 9.97989L6.26285 9.17572L5 7.79807V11.5H3V5.5V4.5ZM15 8V4.5H17V8H19.5L17 10.5L16 11.5L15 10.5L12.5 8H15Z`,fill:`currentColor`})}),`View as Markdown`]}),v0:e=>(0,N.jsxs)(`a`,{href:I(`https://v0.dev`,e),target:`_blank`,rel:`noopener noreferrer`,children:[(0,N.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 147 70`,className:`size-4.5 -translate-x-px`,children:(0,N.jsx)(`path`,{d:`M56 50.203V14h14v46.156C70 65.593 65.593 70 60.156 70c-2.596 0-5.158-1-7-2.843L0 14h19.797L56 50.203ZM147 56h-14V23.953L100.953 56H133v14H96.687C85.814 70 77 61.
3186 77 50.312V14h14v32.156L123.156 14H91V0h36.312C138.186 0 147 8.814 147 19.688V56Z`})}),(0,N.jsx)(`span`,{className:`-translate-x-[2px]`,children:`Open in v0`})]}),chatgpt:e=>(0,N.jsxs)(`a`,{href:I(`https://chatgpt.com`,e),target:`_blank`,rel:`noopener noreferrer`,children:[(0,N.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`size-4`,children:(0,N.jsx)(`path`,{d:`M22.282 9.821a5.985 5.985 0 0 0-.516-4.91 6.046 6.046 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.985 5.985 0 0 0-3.998 2.9 6.046 6.046 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.051 6.051 0 0 0 6.515 2.9A5.985 5.985 0 0 0 13.26 24a6.056 6.056 0 0 0 5.772-4.206 5.99 5.99 0 0 0 3.997-2.9 6.056 6.056 0 0 0-.747-7.073zM13.26 22.43a4.476 4.476 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.795.795 0 0 0 .392-.681v-6.737l2.02 1.168a.071.071 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494zM3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.771.771 0 0 0 .78 0l5.843-3.369v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646zM2.34 7.896a4.485 4.485 0 0 1 2.366-1.973V11.6a.766.766 0 0 0 .388.676l5.815 3.355-2.02 1.168a.076.076 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872zm16.597 3.855-5.833-3.387L15.119 7.2a.076.076 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.79.79 0 0 0-.407-.667zm2.01-3.023-.141-.085-4.774-2.782a.776.776 0 0 0-.785 0L9.409 9.23V6.897a.066.066 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66zm-12.64 4.135-2.02-1.164a.08.08 0 0 1-.038-.057V6.075a4.5 4.5 0 0 1 7.375-3.453l-.142.08-4.778 2.758a.795.795 0 0 0-.393.681zm1.097-2.365 2.602-1.5 2.607 1.5v2.999l-2.597 1.5-2.607-1.5Z`,fill:`currentColor`})}),`Open in ChatGPT`]}),claude:e=>(0,N.jsxs)(`a`,{href:I(`https://claude.ai/new`,e),target:`_blank`,rel:`noopener noreferrer`,children:[(0,N.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`size-4`,children:(0,N.jsx)(`path`,{d:`m4.714 15.956 4.718-2.648.079-.23-.08-.128h-.23l-.79-.048-2.695-.073-2.337-.097-2.265-.122-.57-.121-.535-.704.055-.353.48-.321.685.06 1.518.104 2.277.157 1.651.098 2.447.255h.389l.054-.158-.133-.097-.103-.098-2.356-1.596-2.55-1.688-1.336-.972-.722-.491L2 6.223l-.158-1.008.655-.722.88.06.225.061.893.686 1.906 1.476 2.49 1.833.364.304.146-.104.018-.072-.164-.274-1.354-2.446-1.445-2.49-.644-1.032-.17-.619a2.972 2.972 0 0 1-.103-.729L6.287.133 6.7 0l.995.134.42.364.619 1.415L9.735 4.14l1.555 3.03.455.898.243.832.09.255h.159V9.01l.127-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.583.28.48.685-.067.444-.286 1.851-.558 2.903-.365 1.942h.213l.243-.242.983-1.306 1.652-2.064.728-.82.85-.904.547-.431h1.032l.759 1.129-.34 1.166-1.063 1.347-.88 1.142-1.263 1.7-.79 1.36.074.11.188-.02 2.853-.606 1.542-.28 1.84-.315.832.388.09.395-.327.807-1.967.486-2.307.462-3.436.813-.043.03.049.061 1.548.146.662.036h1.62l3.018.225.79.522.473.638-.08.485-1.213.62-1.64-.389-3.825-.91-1.31-.329h-.183v.11l1.093 1.068 2.003 1.81 2.508 2.33.127.578-.321.455-.34-.049-2.204-1.657-.85-.747-1.925-1.62h-.127v.17l.443.649 2.343 3.521.122 1.08-.17.353-.607.213-.668-.122-1.372-1.924-1.415-2.168-1.141-1.943-.14.08-.674 7.254-.316.37-.728.28-.607-.461-.322-.747.322-1.476.388-1.924.316-1.53.285-1.9.17-.632-.012-.042-.14.018-1.432 1.967-2.18 2.945-1.724 1.845-.413.164-.716-.37.066-.662.401-.589 2.386-3.036 1.439-1.882.929-1.086-.006-.158h-.055L4.138 18.56l-1.13.146-.485-.456.06-.746.231-.243 1.907-1.312Z`,fill:`currentColor`})}),`Open in Claude`]})};function R({page:e,url:t}){let{copyToClipboard:o,isCopied:s}=g(),c=(0,N.jsx)(v,{variant:`secondary`,size:`sm`,className:`peer -ml-0.5 size-8 shadow-none md:size-7 md:text-[0.8rem]`,children:(0,N.jsx)(S,{className:`size-4 rotate-180 sm:rotate-0`})});return(0,N.jsx)(a,{children:(0,N.jsxs)(`div`,{className:`bg-secondary group/buttons relative flex rounded-lg *:[[data-slot=button]]:focus-visible:relative *:[[data-slot=button]]:focus-visible:z-10`,children:[(0,N.jsx)(r,{}),(0,N.jsxs)(v,{variant:`secondary`,size:`sm`,className:`h-8 shadow-none md:h-7 md:text-[0.8rem]`,onClick:()=>o(e),children:[s?(0,N.jsx)(d,{className:`size-4`}):(0,N.jsx)(u,{className:`size-4`}),`Copy Page`]}),(0,N.jsxs)(_,{children:[(0,N.jsx)(w,{asChild:!0,className:`hidden sm:flex`,children:c}),(0,N.jsx)(j,{align:`end`,className:`shadow-none`,children:Object.entries(L).map(([e,n])=>(0,N.jsx)(m,{asChild:!0,children:n(t)},e))})]}
3),(0,N.jsx)(h,{orientation:`vertical`,className:`!bg-foreground/10 absolute top-0 right-8 z-0 !h-8 peer-focus-visible:opacity-0 sm:right-7 sm:!h-7`}),(0,N.jsx)(n,{asChild:!0,className:`flex sm:hidden`,children:c}),(0,N.jsx)(i,{className:`bg-background/70 dark:bg-background/60 w-52 !origin-center rounded-lg p-1 shadow-sm backdrop-blur-sm`,align:`start`,children:Object.entries(L).map(([e,n])=>(0,N.jsx)(v,{variant:`ghost`,size:`lg`,asChild:!0,className:`*:[svg]:text-muted-foreground w-full justify-start text-base font-normal`,children:n(t)},e))})]})})}function z(){return(0,N.jsx)(`header`,{className:`bg-background/95 supports-[backdrop-filter]:bg-background/60 sticky top-0 z-50 w-full border-b backdrop-blur`,children:(0,N.jsx)(`div`,{className:`container flex h-16 max-w-screen-2xl items-center px-6`,children:(0,N.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,N.jsxs)(l,{href:`/docs`,className:`flex items-center gap-2`,children:[(0,N.jsx)(c,{src:f.appIcon,alt:f.title,width:32,height:32,className:`size-8`}),(0,N.jsx)(`span`,{className:`text-lg font-bold`,children:f.title})]}),(0,N.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,N.jsx)(v,{variant:`ghost`,size:`sm`,asChild:!0,children:(0,N.jsx)(l,{href:`/`,children:`Home`})}),(0,N.jsx)(v,{variant:`ghost`,size:`sm`,asChild:!0,children:(0,N.jsx)(l,{href:`/posts`,children:`Blog`})}),(0,N.jsx)(v,{variant:`ghost`,size:`sm`,asChild:!0,children:(0,N.jsx)(l,{href:`/orgs`,children:`Dashboard`})})]})]})})})}var B=[{name:`Introduction`,href:`/docs`},{name:`Guides`,href:`/docs/guides`},{name:`Changelog`,href:`/changelog`}],V={GET:`text-blue-600 dark:text-blue-400`,POST:`text-green-600 dark:text-green-400`,PUT:`text-purple-600 dark:text-purple-400`,PATCH:`text-yellow-600 dark:text-yellow-400`,DELETE:`text-red-600 dark:text-red-400`};function H({tree:e}){let t=M();return(0,N.jsx)(`aside`,{className:`sticky top-16 hidden h-[calc(100vh-4rem)] w-64 shrink-0 overflow-y-auto border-r lg:block`,children:(0,N.jsxs)(`nav`,{className:`flex flex-col gap-5 p-4`,children:[(0,N.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,N.jsx)(`h4`,{className:`text-muted-foreground px-2 text-[11px] font-semibold tracking-wider uppercase`,children:`Getting Started`}),(0,N.jsx)(`ul`,{className:`flex flex-col`,children:B.map(({name:e,href:n})=>(0,N.jsx)(`li`,{children:(0,N.jsx)(l,{href:n,className:b(`block rounded px-2 py-1 text-[13px] transition-colors`,(n===`/docs`?t===n:t.startsWith(n))?`bg-muted text-foreground font-medium`:`text-muted-foreground hover:text-foreground`),children:e})},e))})]}),e.folders.map(e=>(0,N.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,N.jsx)(`h4`,{className:`text-muted-foreground px-2 text-[11px] font-semibold tracking-wider uppercase`,children:e.name}),(0,N.jsx)(`ul`,{className:`flex flex-col`,children:e.docs.filter(t=>t.slug!==e.slug).map(e=>{let n=e.url===t,r=e.attributes.method;return(0,N.jsx)(`li`,{children:(0,N.jsxs)(l,{href:e.url,className:b(`flex items-center gap-1.5 rounded px-2 py-1 text-[13px] transition-colors`,n?`bg-muted text-foreground font-medium`:`text-muted-foreground hover:text-foreground`),children:[r&&(0,N.jsx)(`span`,{className:b(`shrink-0 font-mono text-[10px] font-semibold`,V[r]??`text-muted-foreground`),children:r}),(0,N.jsx)(`span`,{className:`truncate`,children:e.attributes.title})]})},e.slug)})})]},e.slug))]})})}var U=T(A(),1);function W(e){let[t,n]=U.useState(null);return U.useEffect(()=>{let t=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&n(t.target.id)},{rootMargin:`0% 0% -80% 0%`});for(let n of e){let e=document.getElementById(n);e&&t.observe(e)}return()=>{for(let n of e){let e=document.getElementById(n);e&&t.unobserve(e)}}},[e]),t}function G({toc:e,className:t}){let n=W(U.useMemo(()=>e.map(e=>e.url.replace(`#`,``)),[e]));return e.length?(0,N.jsxs)(`div`,{className:b(`flex flex-col gap-3`,t),children:[(0,N.jsx)(`h4`,{className:`text-muted-foreground text-xs font-semibold tracking-wider uppercase`,children:`On This Page`}),(0,N.jsx)(`nav`,{className:`flex flex-col gap-2`,children:e.map(e=>(0,N.jsx)(`a`,{href:e.url,className:b(`text-muted-foreground hover:text-foreground block text-sm no-underline transition-colors`,e.url===`#${n}`&&`text-foreground font-medium`,e.depth===3&&`pl-4`,e.depth===4&&`pl-6`),children:e.title},e.url))})]}):null}function K(e){return(0,N.jsxs)(`div`,{className:`flex min-h-screen flex-col`,children:[(0,N.jsx)(z,{}),(0,N.jsxs)(`div`,{className:`flex flex-1`,children:[(0,N.jsx)(H,{tree:e.tree}),(0,N.jsx)(`main`,{className:`flex-1`,children:e.children})]})]})}function q(e){return(0,N.jsx)(K,{tree:e.tree,children:(0,N.jsxs)(`div`,{className:`mx-auto max-w-2xl px-6 py-16`,children:[(0,N.jsx)(D,{variant:`h1`,children:`Page not found`}),(0,N.jsx)(D,{variant:`muted`,className:`mt-3`,children:`This documentation page does not exist.`})]})})}function J(n){let r=n.allDocs.findIndex(e=>e.slug===n.doc.slug),i={previous:r>0?n.allDocs[r-1]:null,next:r<n.allDocs.length-1?n.allDocs[r+1]:null},a=n.doc.attributes.method,{endpoint:s,examples:c,results:u,links:d,video:f}=n.doc.attributes,p=a??s??c??u,m=Y(n.doc.content);return(0,N.jsx)(K,{tree:n.tree,children:(0,N.jsx)(`div`,{className:p?`xl:pr-[800px]`:m.length>0?`xl:pr-64`:``,children:(0,N.jsxs)(`div`,{className:`flex w-full`,children:[(0,N.jsx)(`div`,{className:`flex min-w-0 flex-1`,children:(0,N.jsx)(`div`,{className:`mx-auto px-6 py-8`,children:(0,N.jsxs)(`div`,{className:`mx-auto flex max-w-prose flex-col gap-6`,children:[(0,N.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,N.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,N.jsx)(D,{variant:`h1`,className:`flex-1 text-4xl font-bold tracking-tight`,children:n.doc.attributes.title}),(0,N.jsx)(`div`,{className:`shrink-0`,children:(0,N.jsx)(R,{page:n.doc.content,url:o(n.doc.url)})})]}),n.doc.attributes.description&&(0,N.jsx)(D,{variant:`p`,className:`text-muted-foreground text-lg`,children:n.doc.attributes.description}),d&&(0,N.jsxs)(`div`,{className:`flex items-center gap-2`,children:[d.doc&&(0,N.jsx)(E,{asChild:!0,variant:`secondary`,children:(0,N.jsxs)(l,{href:d.doc,target:`_blank`,rel:`noreferrer`,children:[`Docs `,(0,N.jsx)(t,{className:`size-3`})]})}),d.api&&(0,N.jsx)(E,{asChild:!0,variant:`secondary`,children:(0,N.jsxs)(l,{href:d.api,target:`_blank`,rel:`noreferrer`,children:[`API Reference `,(0,N.jsx)(t,{className:`size-3`})]})})]})]}),f&&(0,N.jsx)(`div`,{className:`relative w-full overflow-hidden rounded-lg border`,children:(0,N.jsx)(`div`,{className:`aspect-video`,children:(0,N.jsx)(`iframe`,{className:`h-full w-full border-0`,src:f.src,title:f.title??`Embedded video`,allow:`transparency; fullscreen; picture-in-picture`})})}),(0,N.jsx)(k,{source:n.doc.content}),(0,N.jsxs)(`div`,{className:`border-border flex items-center justify-between border-t pt-6`,children:[i.previous&&(0,N.jsx)(v,{variant:`outline`,size:`sm`,asChild:!0,children:(0,N.jsxs)(l,{href:i.previous.url,children:[(0,N.jsx)(e,{className:`size-4`}),i.previous.attributes.title]})}),i.next&&(0,N.jsx)(v,{variant:`outline`,size:`sm`,className:`ml-auto`,asChild:!0,children:(0,N.jsxs)(l,{href:i.next.url,children:[i.next.attributes.title,(0,N.jsx)(C,{className:`size-4`})]})})]})]})})}),(0,N.jsxs)(`div`,{className:`fixed top-16 right-0 hidden h-[calc(100vh-4rem)] overflow-y-auto xl:flex`,children:[p&&(0,N.jsx)(`aside`,{className:`bg-background w-96 overflow-y-auto border-l`,children:(0,N.jsx)(`div`,{className:`p-6`,children:(0,N.jsx)(F,{method:a,endpoint:s,examples:c,results:u})})}),m.length>0&&(0,N.jsx)(`aside`,{className:`bg-background w-64 overflow-y-auto border-l`,children:(0,N.jsx)(`div`,{className:`p-6`,children:(0,N.jsx)(G,{toc:m})})})]})]})})})}function Y(e){let t=/^(#{2,4})\s+(.+)$/gm,n=[],r;for(;(r=t.exec(e))!==null;){let e=r[1].length,t=r[2].trim(),i=t.toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/(^-|-$)/g,``);n.push({title:t,url:`#${i}`,depth:e})}return n}export{q as n,J as t};
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.