1import{_ as R}from"./DwV7ilf5.js";import{_ as E,a as M,b as N}from"./BbvuoGMC.js";import P from"./DryrfXyI.js";import{r as k,B as q,av as V,aw as z,d as $,a as F,u as K,S as L,U as S,j as d,c as f,F as G,K as J,n as _,a8 as t,e as C,t as I,ax as Q,L as U,g as y,N as T,x as W,D as X,M as B,h as g,E as Y,ar as O,as as Z,s as tt,at as et,w as x,au as j,ad as nt,q as H,ay as at,az as ot}from"./BdlGiUCX.js";import"./RkiALX8n.js";import"./Dym_awWQ.js";import"./CxYJgpPD.js";const st=()=>{const s=k(),n=k([]),c=k([]),e=o=>{o.forEach(r=>{const u=r.target.id;r.isIntersecting?n.value=[...n.value,u]:n.value=n.value.filter(p=>p!==u)})},a=o=>{o.forEach(r=>{s.value&&s.value.observe(r)})};return q(n,(o,r)=>{o.length===0?c.value=r:c.value=o}),V(()=>s.value=new IntersectionObserver(e)),z(()=>{var o;return(o=s.value)==null?void 0:o.disconnect()}),{visibleHeadings:n,activeHeadings:c,updateHeadings:a}},rt=["href","onClick"],ct=$({inheritAttrs:!1,__name:"ContentTocLinks",props:{links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},emits:["move"],setup(s,{emit:n}){const c={wrapper:"space-y-1",base:"block text-sm/6 truncate",active:"text-primary",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200",depth:"ml-3"},e=s,a=n,o=F(),r=K(),{activeHeadings:u,updateHeadings:p}=st(),{ui:i,attrs:b}=L("content.toc.links",S(e,"ui"),c,S(e,"class"),!0);r.hooks.hookOnce("page:finish",()=>{p([...document.querySelectorAll("h2"),...document.querySelectorAll("h3")])});const h=m=>{const v=encodeURIComponent(m);o.push(`#${v}`),a("move",m)};return(m,v)=>{var w;const A=D;return(w=s.links)!=null&&w.length?(d(),f("ul",T({key:0,class:t(i).wrapper},t(b)),[(d(!0),f(G,null,J(s.links,l=>(d(),f("li",{key:l.text,class:_([t(i).wrapper,l.depth===3&&t(i).depth])},[C("a",{href:`#${l.id}`,class:_([t(i).base,t(u).includes(l.id)?t(i).active:t(i).inactive]),onClick:Q(pt=>h(l.id),["prevent"])},I(l.text),11,rt),l.children?(d(),U(A,{key:0,links:l.children,ui:t(i)},null,8,["links","ui"])):y("",!0)],2))),128))],16)):y("",!0)}}}),D=Object.assign(ct,{__name:"UContentTocLinks"}),it=$({inheritAttrs:!1,__name:"ContentToc",props:{title:{type:String,default:"Table of Contents"},links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(s){const n=W(),c=X(()=>({wrapper:"sticky top-[--header-height] bg-background/75 backdrop-blur -mx-4 sm:-mx-6 px-4 sm:px-6 lg:px-4 lg:-mx-4 overflow-y-auto max-h-[calc(100vh-var(--header-height))]",container:{base:"py-3 lg:py-8 border-b border-dashed border-gray-200 dark:border-gray-800 lg:border-0 space-y-3",empty:"lg:py-8 space-y-3"},button:{base:"flex items-center gap-1.5 lg:cursor-text lg:select-text w-full group",label:"font-semibold text-sm/6 truncate",trailingIcon:{name:n.ui.icons.chevron,base:"w-5 h-5 ms-auto transform transition-transform duration-200 flex-shrink-0 mr-1.5",active:"text-gray-700 dark:text-gray-200",inactive:"text-gray-500 dark:text-gray-400 group-hover:text-gray-700 dark:group-hover:text-gray-200 -rotate-90"}},links:{}})),e=s,{ui:a,attrs:o}=L("content.toc",S(e,"ui"),c,S(e,"class"),!0),r=k(!1);return(u,p)=>{var h,m;const i=Y,b=D;return d(),f("nav",T({class:t(a).wrapper},t(o)),[C("div",{class:_([(h=s.links)!=null&&h.length?t(a).container.base:t(a).container.empty])},[B(u.$slots,"top"),(m=s.links)!=null&&m.length?(d(),f("button",{key:0,class:_(t(a).button.base),tabindex:"-1",onClick:p[0]||(p[0]=v=>r.value=!t(r))},[C("span",{class:_(t(a).button.label)},I(s.title),3),g(i,{name:t(a).button.trailingIcon.name,class:_(["lg:!hidden",[t(a).button.trailingIcon.base,t(r)?t(a).button.trailingIcon.active:t(a).button.trailingIcon.inactive]])},null,8,["name","class"])],2)):y("",!0),g(b,{links:s.links,ui:t(a).links,class:_([t(r)?"lg:block":"hidden lg:block"])},null,8,["links","ui","class"]),B(u.$slots,"bottom")],2)],16)}}}),lt=Object.assign(it,{__name:"UContentToc"}),ut={class:"text-gray-500 dark:text-gray-400"},dt={key:1},vt=$({__name:"privacy",async setup(s){let n,c;const{data:e}=([n,c]=O(()=>j("privacy",()=>H("/privacy").findOne())),n=await n,c(),n);if(!e.value)throw Z({statusCode:404,statusMessage:"Page not found",fatal:!0});const a=tt(),{data:o}=([n,c]=O(()=>j(`${a.path}-surround`,()=>H("/privacy").where({_extension:"md"}).without(["body","excerpt"]).sort({date:-1}).findSurround(at(a.path)),{default:()=>[]})),n=await n,c(),n);
1return et({title:e.value.title,ogTitle:e.value.title,description:e.value.description,ogDescription:e.value.description}),k(!1),(r,u)=>{const p=R,i=E,b=P,h=M,m=N,v=lt,A=ot,w=nt;return t(e)?(d(),U(w,{key:0},{default:x(()=>[g(i,{title:t(e).title,description:t(e).description},{headline:x(()=>[g(p,T(t(e).badge,{variant:"subtle"}),null,16),u[0]||(u[0]=C("span",{class:"text-gray-500 dark:text-gray-400"},"·",-1)),C("time",ut,I(new Date(t(e).date).toLocaleDateString("en",{year:"numeric",month:"short",day:"numeric"})),1)]),_:1},8,["title","description"]),g(A,null,{right:x(()=>[t(e).body&&t(e).body.toc?(d(),U(v,{key:0,links:t(e).body.toc.links},null,8,["links"])):y("",!0)]),default:x(()=>[g(m,{prose:""},{default:x(()=>{var l;return[t(e)&&t(e).body?(d(),U(b,{key:0,value:t(e)},null,8,["value"])):y("",!0),(l=t(o))!=null&&l.length?(d(),f("hr",dt)):y("",!0),g(h,{surround:t(o)},null,8,["surround"])]}),_:1})]),_:1})]),_:1})):y("",!0)}}});export{vt as default};
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.