(function(a,b){if("function"==typeofdefine&&define.amd)define([],b);elseif("undefined"!=typeofexports)b();else{b(),a.FileSaver={exports:{}}.exports}})(this,function(){"use strict";functionb(a,b){return"undefined"==typeofb?b={autoBom:!1}:"object"!=typeofb&&(console.warn("Deprecated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?newBlob(["\uFEFF",a],{type:a.type}):a}functionc(a,b,c){vard=newXMLHttpRequest;d.open("GET",a),d.responseType="blob",d.onload=function(){g(d.response,b,c)},d.onerror=function(){console.error("could not download file")},d.send()}functiond(a){varb=newXMLHttpRequest;b.open("HEAD",a,!1);try{b.send()}catch(a){}return200<=b.status&&299>=b.status}functione(a){try{a.dispatchEvent(newMouseEvent("click"))}catch(c){varb=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b)}}varf="object"==typeofwindow&&window.window===window?window:"object"==typeofself&&self.self===self?self:"object"==typeofglobal&&global.global===global?global:void0,a=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=f.saveAs||("object"!=typeofwindow||window!==f?function(){}:"download"inHTMLAnchorElement.prototype&&!a?function(b,g,h){vari=f.URL||f.webkitURL,j=document.createElement("a");g=g||b.name||"download",j.download=g,j.rel="noopener","string"==typeofb?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target="_blank")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href)},4E4),setTimeout(function(){e(j)},0))}:"msSaveOrOpenBlob"innavigator?function(f,g,h){if(g=g||f.name||"download","string"!=typeoff)navigator.msSaveOrOpenBlob(b(f,h),g);elseif(d(f))c(f,g,h);else{vari=document.createElement("a");i.href=f,i.target="_blank",setTimeout(function(){e(i)})}}:function(b,d,e,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),"string"==typeofb)returnc(b,d,e);varh="application/octet-stream"===b.type,i=/constructor/i.test(f.HTMLElement)||f.safari,j=/CriOS\/[\d]+/.test(navigator.userAgent);if((j||h&&i||a)&&"undefined"!=typeofFileReader){vark=newFileReader;k.onloadend=function(){vara=k.result;a=j?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=a:location=a,g=null},k.readAsDataURL(b)}else{varl=f.URL||f.webkitURL,m=l.createObjectURL(b);g?g.location=m:location.href=m,g=null,setTimeout(function(){l.revokeObjectURL(m)},4E4)}});f.saveAs=g.saveAs=g,"undefined"!=typeofmodule&&(module.exports=g)});