function c(t,o,n,l){const a=[t],d=new Blob(a,{type:"application/octet-stream"}),i=window.URL.createObjectURL(d),e=document.createElement("a");e.style.display="none",e.href=i,e.setAttribute("download",o),typeof e.download>"u"&&e.setAttribute("target","_blank"),document.body.appendChild(e),e.click(),document.body.removeChild(e),window.URL.revokeObjectURL(i)}function s(t){var o=t["content-disposition"].split(";")[1].split("filename=")[1],n=t["content-disposition"].split("filename*=")[1];return n&&(o=decodeURIComponent(n.split("''")[1])),o}export{c as d,s as g};