var d=t=>t,a=(t,o)=>{if(!o)return t;let e=t.cloneNode(!0);e.selected=t.selected;let n=e.getTextLabel(),r=n.toLowerCase().indexOf(o.toLowerCase()),i=e.innerHTML.indexOf(n),p=document.createElement("mark");p.textContent=n.slice(r,r+o.length);let s=n.replace(new RegExp(o,"i"),p.outerHTML),l=e.innerHTML.slice(0,i),c=e.innerHTML.slice(i+n.length);return e.innerHTML=l.concat(s,c),e};export{d as a,a as b};
