import{cM as n,r as m}from"./main-D6SjkSWq.js";function f(c){const o=n({usage:"search",...c});return m.useMemo(()=>({startsWith(l,e){return e.length===0?!0:(l=l.normalize("NFC"),e=e.normalize("NFC"),o.compare(l.slice(0,e.length),e)===0)},endsWith(l,e){return e.length===0?!0:(l=l.normalize("NFC"),e=e.normalize("NFC"),o.compare(l.slice(-e.length),e)===0)},contains(l,e){if(e.length===0)return!0;l=l.normalize("NFC"),e=e.normalize("NFC");let r=0;const a=e.length;for(;r+a<=l.length;r++){const t=l.slice(r,r+a);if(o.compare(e,t)===0)return!0}return!1}}),[o])}export{f as u};
