function s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}async function u(e){return fetch(e).then(t=>t.blob()).then(t=>new Promise((n,o)=>{const r=new FileReader;r.onloadend=()=>{typeof r.result=="string"?n(r.result):o("Failed to convert blob to base64")},r.onerror=o,r.readAsDataURL(t)}))}function l(e,t=[]){return Object.entries(e).reduce((n,[o,r])=>((r||t.includes(o))&&(n[o]=r),n),{})}function a(e){return new Promise(t=>setTimeout(t,e))}function d(e,t){const n=Math.floor(Math.random()*(t-e+1))+e;return a(n)}export{a,d,s as g,l as r,u};
