!function(e,t){if("function"==typeofdefine&&define.amd)define([],t);elseif("undefined"!=typeofexports)t();else{t(),e.FileSaver={}}}(this,function(){"use strict";varf="object"==typeofwindow&&window.window===window?window:"object"==typeofself&&self.self===self?self:"object"==typeofglobal&&global.global===global?global:void0;functiond(e,t,o){varn=newXMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){a(n.response,t,o)},n.onerror=function(){console.error("could not download file")},n.send()}functioni(e){vart=newXMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return200<=t.status&&t.status<=299}functionr(t){try{t.dispatchEvent(newMouseEvent("click"))}catch(e){varo=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(o)}}vara=f.saveAs||("object"!=typeofwindow||window!==f?function(){}:"download"inHTMLAnchorElement.prototype?function(e,t,o){varn=f.URL||f.webkitURL,a=document.createElement("a");t=t||e.name||"download",a.download=t,a.rel="noopener","string"==typeofe?(a.href=e,a.origin!==location.origin?i(a.href)?d(e,t,o):r(a,a.target="_blank"):r(a)):(a.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(a.href)},4e4),setTimeout(function(){r(a)},0))}:"msSaveOrOpenBlob"innavigator?function(e,t,o){if(t=t||e.name||"download","string"==typeofe)if(i(e))d(e,t,o);else{varn=document.createElement("a");n.href=e,n.target="_blank",setTimeout(function(){r(n)})}elsenavigator.msSaveOrOpenBlob(function(e,t){returnvoid0===t?t={autoBom:!1}:"object"!=typeoft&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?newBlob([String.fromCharCode(65279),e],{type:e.type}):e}(e,o),t)}:function(e,t,o,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),"string"==typeofe)returnd(e,t,o);vara="application/octet-stream"===e.type,i=/constructor/i.test(f.HTMLElement)||f.safari,r=/CriOS\/[\d]+/.test(navigator.userAgent);if((r||a&&i)&&"object"==typeofFileReader){varl=newFileReader;l.onloadend=function(){vare=l.result;e=r?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=e:location=e,n=null},l.readAsDataURL(e)}else{varc=f.URL||f.webkitURL,s=c.createObjectURL(e);n?n.location=s:location.href=s,n=null,setTimeout(function(){c.revokeObjectURL(s)},4e4)}});f.saveAs=a.saveAs=a,"undefined"!=typeofmodule&&(module.exports=a)});