var saveAs=saveAs||(navigator.msSaveBlob&&navigator.msSaveBlob.bind(navigator))||(function(view){"\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74";var doc=view.document,get_URL=function(){return view.webkitURL||view;},URL=view.webkitURL||view,save_link=doc.createElementNS("\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x77\x2e\x77\x33\x2e\x6f\x72\x67\x2f\x31\x39\x39\x39\x2f\x78\x68\x74\x6d\x6c","\x61"),can_use_save_link="\x64\x6f\x77\x6e\x6c\x6f\x61\x64"in save_link,click=function(node){var event=doc.createEvent("\x4d\x6f\x75\x73\x65\x45\x76\x65\x6e\x74\x73");event.initMouseEvent("\x63\x6c\x69\x63\x6b",true,false,view,0,0,0,0,0,false,false,false,false,0,null);return node.dispatchEvent(event);},webkit_req_fs=view.webkitRequestFileSystem,req_fs=view.requestFileSystem||webkit_req_fs||view.mozRequestFileSystem,throw_outside=function(ex){(view.setImmediate||view.setTimeout)(function(){throw ex;},0);},force_saveable_type="\x61\x70\x70\x6c\x69\x63\x61\x74\x69\x6f\x6e\x2f\x6f\x63\x74\x65\x74\x2d\x73\x74\x72\x65\x61\x6d",fs_min_size=0,deletion_queue=[],process_deletion_queue=function(){var i=deletion_queue.length;while(i--){var file=deletion_queue[i];if(typeof file==="\x73\x74\x72\x69\x6e\x67"){URL.revokeObjectURL(file);}else{file.remove();}}deletion_queue.length=0;},dispatch=function(filesaver,event_types,event){event_types=[].concat(event_types);var i=event_types.length;while(i--){var listener=filesaver["\x6f\x6e"+event_types[i]];if(typeof listener==="\x66\x75\x6e\x63\x74\x69\x6f\x6e"){try{listener.call(filesaver,event||filesaver);}catch(ex){throw_outside(ex);}}}},FileSaver=function(blob,name){var filesaver=this,type=blob.type,blob_changed=false,object_url,target_view,get_object_url=function(){var object_url=get_URL().createObjectURL(blob);deletion_queue.push(object_url);return object_url;},dispatch_all=function(){dispatch(filesaver,"\x77\x72\x69\x74\x65\x73\x74\x61\x72\x74\x20\x70\x72\x6f\x67\x72\x65\x73\x73\x20\x77\x72\x69\x74\x65\x20\x77\x72\x69\x74\x65\x65\x6e\x64".split("\x20"));},fs_error=function(){if(blob_changed|| !object_url){object_url=get_object_url(blob);}target_view.location.href=object_url;filesaver.readyState=filesaver.DONE;dispatch_all();},abortable=function(func){return function(){if(filesaver.readyState!==filesaver.DONE){return func.apply(this,arguments);}};},create_if_not_found={create:true,exclusive:false},slice;filesaver.readyState=filesaver.INIT;if(!name){name="\x64\x6f\x77\x6e\x6c\x6f\x61\x64";}if(can_use_save_link){object_url=get_object_url(blob);save_link.href=object_url;save_link.download=name;if(click(save_link)){filesaver.readyState=filesaver.DONE;dispatch_all();return;}}if(view.chrome&&type&&type!==force_saveable_type){slice=blob.slice||blob.webkitSlice;blob=slice.call(blob,0,blob.size,force_saveable_type);blob_changed=true;}if(webkit_req_fs&&name!=="\x64\x6f\x77\x6e\x6c\x6f\x61\x64"){name+="\x2e\x64\x6f\x77\x6e\x6c\x6f\x61\x64";}if(type===force_saveable_type||webkit_req_fs){target_view=view;}else{target_view=view.open();}if(!req_fs){fs_error();return;}fs_min_size+=blob.size;req_fs(view.TEMPORARY,fs_min_size,abortable(function(fs){fs.root.getDirectory("\x73\x61\x76\x65\x64",create_if_not_found,abortable(function(dir){var save=function(){dir.getFile(name,create_if_not_found,abortable(function(file){file.createWriter(abortable(function(writer){writer.onwriteend=function(event){target_view.location.href=file.toURL();deletion_queue.push(file);filesaver.readyState=filesaver.DONE;dispatch(filesaver,"\x77\x72\x69\x74\x65\x65\x6e\x64",event);};writer.onerror=function(){var error=writer.error;if(error.code!==error.ABORT_ERR){fs_error();}};"\x77\x72\x69\x74\x65\x73\x74\x61\x72\x74\x20\x70\x72\x6f\x67\x72\x65\x73\x73\x20\x77\x72\x69\x74\x65\x20\x61\x62\x6f\x72\x74".split("\x20").forEach(function(event){writer["\x6f\x6e"+event]=filesaver["\x6f\x6e"+event];});writer.write(blob);filesaver.abort=function(){writer.abort();filesaver.readyState=filesaver.DONE;};filesaver.readyState=filesaver.WRITING;}),fs_error);}),fs_error);};dir.getFile(name,{create:false},abortable(function(file){file.remove();save();}),abortable(function(ex){if(ex.code===ex.NOT_FOUND_ERR){save();}else{fs_error();}}));}),fs_error);}),fs_error);},FS_proto=FileSaver.prototype,saveAs=function(blob,name){return new FileSaver(blob,name);};FS_proto.abort=function(){var filesaver=this;filesaver.readyState=filesaver.DONE;dispatch(filesaver,"\x61\x62\x6f\x72\x74");};FS_proto.readyState=FS_proto.INIT=0;FS_proto.WRITING=1;FS_proto.DONE=2;FS_proto.error=FS_proto.onwritestart=FS_proto.onprogress=FS_proto.onwrite=FS_proto.onabort=FS_proto.onerror=FS_proto.onwriteend=null;view.addEventListener("\x75\x6e\x6c\x6f\x61\x64",process_deletion_queue,false);return saveAs;}(self)); 