Rodney Chen
2024-05-09 a340c8f451865656db12fa50fe9cad888f65dd5b
1
var f=(t,o,e)=>new Promise((a,r)=>{var i=c=>{try{n(e.next(c))}catch(s){r(s)}},d=c=>{try{n(e.throw(c))}catch(s){r(s)}},n=c=>c.done?a(c.value):Promise.resolve(c.value).then(i,d);n((e=e.apply(t,o)).next())});import{a4 as g,__tla as p}from"./index-f0df2f76.js";import{u as b,d as v}from"./base64Conver-39fc0d26.js";let l,u,m,w,h=Promise.all([(()=>{try{return p}catch(t){}})()]).then(()=>f(void 0,null,function*(){m=function(t,o,e,a){b(t).then(r=>{u(r,o,e,a)})},u=function(t,o,e,a){const r=v(t);l(r,o,e,a)},l=function(t,o,e,a){const r=typeof a<"u"?[a,t]:[t],i=new Blob(r,{type:e||"application/octet-stream"}),d=window.URL.createObjectURL(i),n=document.createElement("a");n.style.display="none",n.href=d,n.setAttribute("download",o),typeof n.download>"u"&&n.setAttribute("target","_blank"),document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(d)},w=function({url:t,target:o="_blank",fileName:e}){const a=window.navigator.userAgent.toLowerCase().indexOf("chrome")>-1,r=window.navigator.userAgent.toLowerCase().indexOf("safari")>-1;if(/(iP)/g.test(window.navigator.userAgent))return!1;if(a||r){const i=document.createElement("a");if(i.href=t,i.target=o,i.download!==void 0&&(i.download=e||t.substring(t.lastIndexOf("/")+1,t.length)),document.createEvent){const d=document.createEvent("MouseEvents");return d.initEvent("click",!0,!0),i.dispatchEvent(d),!0}}return t.indexOf("?")===-1&&(t+="?download"),g(t,{target:o}),!0}}));export{h as __tla,l as a,u as b,m as c,w as d};