| 1 |
- import{D as r}from"./entry/index-CNSQBFd3.js";import{d as c,u as l}from"./base64Conver-DEMZeTZS.js";function u(e,t,d,s){l(e).then(n=>{m(n,t)})}function m(e,t,d,s){const n=c(e);f(n,t)}function f(e,t,d,s){const n=[e],a=new Blob(n,{type:"application/octet-stream"}),i=window.URL.createObjectURL(a),o=document.createElement("a");o.style.display="none",o.href=i,o.setAttribute("download",t),typeof o.download=="undefined"&&o.setAttribute("target","_blank"),document.body.appendChild(o),o.click(),document.body.removeChild(o),window.URL.revokeObjectURL(i)}function p({url:e,target:t="_blank",fileName:d}){const s=window.navigator.userAgent.toLowerCase().indexOf("chrome")>-1,n=window.navigator.userAgent.toLowerCase().indexOf("safari")>-1;if(/(iP)/g.test(window.navigator.userAgent))return!1;if(s||n){const a=document.createElement("a");if(a.href=e,a.target=t,a.download!==void 0&&(a.download=d||e.substring(e.lastIndexOf("/")+1,e.length)),document.createEvent){const i=document.createEvent("MouseEvents");return i.initEvent("click",!0,!0),a.dispatchEvent(i),!0}}return e.indexOf("?")===-1&&(e+="?download"),r(e,{target:t}),!0}export{p as a,f as b,u as c,m as d};
|