function c(t,n){const e=t.data,a=decodeURI(t.headers.filename||"");if(typeof window<"u"&&window.navigator&&window.navigator.msSaveOrOpenBlob){const o=new Blob([e],{type:t.headers["content-type"]});window.navigator.msSaveOrOpenBlob(o,n||a)}else{const o=window.URL.createObjectURL(new Blob([e],{type:t.headers["content-type"]})),d=document.createElement("a");d.download=n||a,d.href=o,d.click()}}function l(t,n){let e=document.createElement("a");e.setAttribute("href","data:text/plain;charset=utf-8,"+n),e.setAttribute("download",t),e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e)}export{l as d,c as e};
