PageSourceSearch

https://muni.bio/assets/orama-cloud-legacy-BCXte-JM.js

js muni.bio collected 2026-10-04 18:50:29 UTC 1,334 bytes, 1 lines download raw bytes

1import{c as g}from"./index-CX26Rylr.js";import{r as m}from"./remove-undefined-CzMSKybq-D-34gD0A.js";import"./search-default-DXMrGWPP.js";import"./index-CqS-M8ws.js";import"./client-BM8Qs5r3.js";import"./search-gDl3MLMa.js";import"./chevron-down-XL5al5T7.js";import"./chevron-right-Z3inglw5.js";function _(l){const{index:h="default",client:c,params:o={},tag:n}=l;return{deps:[h,c,n],async search(p){const a=g(p),e=[];if(h==="crawler"){const s=await c.search({...o,term:p,where:{category:n?{eq:n.slice(0,1).toUpperCase()+n.slice(1)}:void 0,...o.where},limit:10});if(!s)return e;for(const r of s.hits){const i=r.document;e.push({id:r.id,type:"page",content:a.highlightMarkdown(i.title),url:i.path},{id:"page"+r.id,type:"text",content:a.highlightMarkdown(i.content),url:i.path})}return e}const u={...o,term:p,where:m({tag:n,...o.where}),groupBy:{properties:["page_id"],maxResult:7,...o.groupBy}},d=await c.search(u);if(!d||!d.groups)return e;for(const s of d.groups){let r=!1;for(const i of s.result){const t=i.document;r||(e.push({id:t.page_id,type:"page",content:a.highlightMarkdown(t.title),breadcrumbs:t.breadcrumbs,url:t.url}),r=!0),e.push({id:t.id,content:a.highlightMarkdown(t.content),type:t.content===t.section?"heading":"text",url:t.section_id?`${t.url}#${t.section_id}`:t.url})}}return e}}}export{_ as oramaCloudLegacyClient};

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.