var module$FileSaver={},saveAs$$module$FileSaver=saveAs$$module$FileSaver||function(n){if(!("undefined"==typeof n||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var i=n.document.createElementNS("http://www.w3.org/1999/xhtml","a"),s="download"in i,h=/constructor/i.test(n.HTMLElement)||n.safari,r=/CriOS\/[\d]+/.test(navigator.userAgent),u=n.setImmediate||n.setTimeout,c=function(n){u(function(){throw n;},0)},f=function(t){setTimeout(function(){"string"==typeof t?(n.URL||n.webkitURL||n).revokeObjectURL(t):t.remove()},4e4)},e=function(n){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob([String.fromCharCode(65279),n],{type:n.type}):n},o=function(t,o,l){var v;l||(t=e(t));var a=this,p="application/octet-stream"===t.type,y=function(){for(var n=["writestart","progress","write","writeend"],i,n=[].concat(n),t=n.length;t--;)if(i=a["on"+n[t]],"function"==typeof i)try{i.call(a,a)}catch(r){c(r)}};a.readyState=a.INIT;s?(v=(n.URL||n.webkitURL||n).createObjectURL(t),u(function(){i.href=v;i.download=o;var n=new MouseEvent("click");i.dispatchEvent(n);y();f(v);a.readyState=a.DONE},0)):function(){if((r||p&&h)&&n.FileReader){var i=new FileReader;i.onloadend=function(){var t=r?i.result:i.result.replace(/^data:[^;]*;/,"data:attachment/file;");n.open(t,"_blank")||(n.location.href=t);a.readyState=a.DONE;y()};i.readAsDataURL(t);a.readyState=a.INIT}else v||(v=(n.URL||n.webkitURL||n).createObjectURL(t)),p?n.location.href=v:n.open(v,"_blank")||(n.location.href=v),a.readyState=a.DONE,y(),f(v)}()},t=o.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(n,t,i){return t=t||n.name||"download",i||(n=e(n)),navigator.msSaveOrOpenBlob(n,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(n,t,i){return new o(n,t||n.name||"download",i)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this);module$FileSaver.saveAs=saveAs$$module$FileSaver