import{l as o}from"./p-3f757e7f.js";import{g as r}from"./p-259f1737.js";let t=[];function e(e,n,s){for(const r of(null==s?void 0:s.partials)||[])o.registerPartial(r.id,(null==r?void 0:r.html)||"");try{const e=Object.keys((null==s?void 0:s.helpers)||[]).length?s.helpers:r();for(const[r,n]of Object.entries(e))try{t.includes(r)&&o.unregisterHelper(r),o.registerHelper(r,n),t.includes(r)||(t=[...t,r])}catch(o){console.log(`Error setting helper ${r}.`,o)}}catch(o){console.log("Error setting helpers.")}return o.compile(e)(n)}export{e as r}