1import{n as e}from"./urlHelper-CjTJ7FwX.js";import{t}from"./useGlobalTranslation-CltQzp0o.js";function n(e){return e.replaceAll(/\s?\(\{\{numChild\}\}\)|\{\{numChild\}\}|\s?\(\d+\)/g,``)}function r(){let{$t:n}=t(),r=(e,t)=>{for(let n of e){if(n.id===t)return n;let e=r(n.children,t);if(e)return e}},i=e=>e.children.filter(e=>e.component===`navigation-link`).length+e.children.reduce((e,t)=>e+i(t),0),a=e=>e.name.replace(`{{numChild}}`,String(i(e))),o=e=>{let t=e.linkName?e.linkName:e.name;return t.includes(`{{numChild}}`)?t.replace(`{{numChild}}`,n(`navigation.all`)+` `+String(i(e))):t},s=t=>t.map(t=>({...t,url:t.url?e(t.url):null,children:s(t.children??[]),footerItems:s(t.footerItems??[])}));return{findNavigationItemById:r,numberOfLinksRecursive:i,displayName:a,displayNameTopLevel:o,normalizeLinks:s}}export{r as n,n 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.