!function(a,b){"object"==typeofexports&&"object"==typeofmodule?module.exports=b():"function"==typeofdefine&&define.amd?define([],b):"object"==typeofexports?exports["angular-file-upload"]=b():a["angular-file-upload"]=b()}(this,function(){returnfunction(a){functionb(d){if(c[d])returnc[d].exports;vare=c[d]={exports:{},id:d,loaded:!1};returna[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}varc={};returnb.m=a,b.c=c,b.p="",b(0)}([function(a,b,c){"use strict";functiond(a){returna&&a.__esModule?a:{default:a}}vare=c(1),f=d(e),g=c(2),h=d(g),i=c(3),j=d(i),k=c(4),l=d(k),m=c(5),n=d(m),o=c(6),p=d(o),q=c(7),r=d(q),s=c(8),t=d(s),u=c(9),v=d(u),w=c(10),x=d(w),y=c(11),z=d(y),A=c(12),B=d(A);angular.module(f.default.name,[]).value("fileUploaderOptions",h.default).factory("FileUploader",j.default).factory("FileLikeObject",l.default).factory("FileItem",n.default).factory("FileDirective",p.default).factory("FileSelect",r.default).factory("FileDrop",t.default).factory("FileOver",v.default).directive("nvFileSelect",x.default).directive("nvFileDrop",z.default).directive("nvFileOver",B.default).run(["FileUploader","FileLikeObject","FileItem","FileDirective","FileSelect","FileDrop","FileOver",function(a,b,c,d,e,f,g){a.FileLikeObject=b,a.FileItem=c,a.FileDirective=d,a.FileSelect=e,a.FileDrop=f,a.FileOver=g}])},function(a,b){a.exports={name:"angularFileUpload"}},function(a,b){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default={url:"/",alias:"file",headers:{},queue:[],progress:0,autoUpload:!1,removeAfterUpload:!1,method:"POST",filters:[],formData:[],queueLimit:Number.MAX_VALUE,withCredentials:!1,disableMultipart:!1}},function(a,b,c){"use strict";functiond(a){returna&&a.__esModule?a:{default:a}}functione(a,b){if(!(ainstanceofb))thrownewTypeError("Cannot call a class as a function")}functionf(a,b,c,d,f,g,h){varq=d.File,r=d.FormData,s=function(){functiond(b){e(this,d);varc=i(a);j(this,c,b,{isUploading:!1,_nextIndex:0,_failFilterIndex:-1,_directives:{select:[],drop:[],over:[]}}),this.filters.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.filters.unshift({name:"folder",fn:this._folderFilter})}returnd.prototype.addToQueue=function(a,b,c){vard=this,e=this.isArrayLikeObject(a)?a:[a],f=this._getFilters(c),i=this.queue.length,j=[];k(e,function(a){varc=newg(a);if(d._isValidFile(c,f,b)){vare=newh(d,a,b);j.push(e),d.queue.push(e),d._onAfterAddingFile(e)}else{vari=f[d._failFilterIndex];d._onWhenAddingFileFailed(c,i,b)}}),this.queue.length!==i&&(this._onAfterAddingAll(j),this.progress=this._getTotalProgress()),this._render(),this.autoUpload&&this.uploadAll()},d.prototype.removeFromQueue=function(a){varb=this.getIndexOfItem(a),c=this.queue[b];c.isUploading&&c.cancel(),this.queue.splice(b,1),c._destroy(),this.progress=this._getTotalProgress()},d.prototype.clearQueue=function(){for(;this.queue.length;)this.queue[0].remove();this.progress=0},d.prototype.uploadItem=function(a){varb=this.getIndexOfItem(a),c=this.queue[b],d=this.isHTML5?"_xhrTransport":"_iframeTransport";c._prepareToUploading(),this.isUploading||(this._onBeforeUploadItem(c),c.isCancel||(c.isUploading=!0,this.isUploading=!0,this[d](c),this._render()))},d.prototype.cancelItem=function(a){varb=this,c=this.getIndexOfItem(a),d=this.queue[c],e=this.isHTML5?"_xhr":"_form";d&&(d.isCancel=!0,d.isUploading?d[e].abort():!function(){vara=[void0,0,{}],c=function(){b._onCancelItem.apply(b,[d].concat(a)),b._onCompleteItem.apply(b,[d].concat(a))};f(c)}())},d.prototype.uploadAll=function(){vara=this.getNotUploadedItems().filter(function(a){return!a.isUploading});a.length&&(k(a,function(a){returna._prepareToUploading()}),a[0].upload())},d.prototype.cancelAll=function(){vara=this.getNotUploadedItems();k(a,function(a){returna.cancel()})},d.prototype.isFile=function(a){returnthis.constructor.isFile(a)},d.prototype.isFileLikeObject=function(a){returnthis.constructor.isFileLikeObject(a)},d.prototype.isArrayLikeObject=function(a){returnthis.constructor.isArrayLikeObject(a)},d.prototype.getIndexOfItem=function(a){returnm(a)?a:this.queue.indexOf(