function n(e){return new Promise((o,t)=>{const r=document.createElement("script");r.src=e,r.async=!0,r.defer=!0,r.onload=()=>o(),r.onerror=()=>t(new Error(`Script load error for ${e}`)),document.head.appendChild(r)})}export{n as l};