import{C as i}from"./index-p1BAR2Hc.js";function n(o,t){const e=document.createElement("a");e.href=o,e.download=t,document.body.appendChild(e),e.click(),e.remove()}async function r(o,t){n(o,t)}async function d(o,t){const e=URL.createObjectURL(o);try{n(e,t)}finally{window.setTimeout(()=>URL.revokeObjectURL(e),1e3)}}async function s(o,t,e){if(!o)return r(t,e);const a=await i.media(o),c=URL.createObjectURL(a);try{n(c,e)}finally{window.setTimeout(()=>URL.revokeObjectURL(c),1e3)}}export{d as a,s as d};
