import{aZ as i,fk as w}from"./index-d6499a22.js";const u=()=>{const e=i();return async(r,d,c)=>{var o,t,s,n;try{await w.download(r,d,c)}catch(a){const l=((t=(o=a==null?void 0:a.response)==null?void 0:o.data)==null?void 0:t.usrMsg)||((n=(s=a==null?void 0:a.response)==null?void 0:s.data)==null?void 0:n.errorMsg);e.error({title:"Error",content:l})}}};export{u};
