1async function t(t){const e=await t.getAllByType("faq-page");e.reverse();const i=Array.from(new Set(e.map(t=>t?.data?.category?.uid).filter(Boolean)));return(await Promise.all(i.map(a=>t.getByUID("faq-category",a)))).map(t=>({categoryUid:t.uid,categoryTitle:t.data.title,linkedPages:e.filter((a,e,i)=>a.data.category.uid===t.uid&&i.findIndex(t=>t.id===a.id)===e).map(t=>({id:t.id,href:a(t),linkText:t.data.linkText||t.data.titleTag}))}))}function a(t){const a=t.data?.subpath2?.uid,e=t.uid;return a?`/faqs/${a}/${e}`:`/faqs/${e}`}async function e(t,a){return await Promise.all(a.data.slices.map(async a=>{if("promo_carousel"!==a.slice_type)return Promise.resolve(a);const e=await async function(t,a){try{const e=a.map(t=>t.card.id);return await t.getAllByIDs(e)}catch{return[]}}(t,a.items);return{...a,nestedSlices:e}}))}async function i(t,a){if(!a||"string"!=typeof a)throw new Error("no uid");const i=await t.getByUID("content-page",a),n=await e(t,i);return{uid:i.uid,document:i.data,postSlices:n}}export{t as n,e as r,i 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.