1import{a as e,i as t}from"./DWWJRJjC.js";import{Zt as n,in as r}from"./BfEYEY7z.js";import{d as i,p as a}from"./BFDGoAsW.js";import{t as o}from"./CJ2H7stM.js";import{s}from"./B9Ui1xjL.js";import{t as c}from"./2pA-X63O.js";import{a as l,n as u}from"./D1fIGxEY.js";import{n as d}from"./D6u6Ir_1.js";import{t as f}from"./DiUVFNYe.js";import{t as p}from"./NBs1dDmL.js";n();var m=c(()=>{let n=r(!1),{resolvePathTrailingSlash:c}=o(),m=f(),h=()=>n.value=!n.value;return{getCategoryUrlFromRoute:e=>{let n=e.split(`/`),{$i18n:r}=t(),{locale:i,defaultLocale:a,strategy:o}=r;if(((e,t,r)=>e===`prefix`?!0:e===`prefix_except_default`?t!==r:e===`prefix_and_default`?t!==r||n[1]===t:!1)(o,i.value,a)){let e=n.indexOf(i.value);e!==-1&&n.splice(e,1)}return n.map(e=>e.includes(`?`)?e.split(`?`)[0]:e).join(`/`)},buildCategoryMenuLink:(e,t)=>{let n=s.generateCategoryLink(t,e,``);return c(n)},isOpen:n,toggle:h,switchLocale:async(e,t=!0)=>{let{fetchSession:n}=p(),r=l(),o=a();t&&h(),await i({path:r(e),query:o.query}),await n()},createLocalePath:(e,n)=>{let{locales:r}=t().$i18n,i=r.value.map(e=>e.code.toString()).includes(n),a=u();return i?c(a(e,n)):m(e)},getAvailableLocales:()=>{let{localeCodes:t,availableLocales:n}=d(),r=e(),i=new Set(r.public.activeLanguages.split(`,`).map(e=>e.trim()).filter(e=>n.includes(e)));return t.value.filter(e=>i.has(e))}}});export{m 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.