!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),C=c(13),D=d(C);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",v.default).factory("FileOver",x.default).factory("Pipeline",t.default).directive("nvFileSelect",z.default).directive("nvFileDrop",B.default).directive("nvFileOver",D.default).run(["FileUploader","FileLikeObject","FileItem","FileDirective","FileSelect","FileDrop","FileOver","Pipeline",function(a,b,c,d,e,f,g,h){a.FileLikeObject=b,a.FileItem=c,a.FileDirective=d,a.FileSelect=e,a.FileDrop=f,a.FileOver=g,a.Pipeline=h}])},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,b){if(!(ainstanceofb))thrownewTypeError("Cannot call a class as a function")}functione(a,b,c,e,g,h,s,t){varu=e.File,v=e.FormData,w=function(){functione(b){d(this,e);varc=j(a);k(this,c,b,{isUploading:!1,_nextIndex:0,_directives:{select:[],drop:[],over:[]}}),this.filters.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.filters.unshift({name:"folder",fn:this._folderFilter})}returne.prototype.addToQueue=function(a,b,c){vard=this,e=this.isArrayLikeObject(a)?Array.prototype.slice.call(a):[a],g=this._getFilters(c),i=this.queue.length,j=[],k=function(){d.queue.length!==i&&(d._onAfterAddingAll(j),d.progress=d._getTotalProgress()),d._render(),d.autoUpload&&d.uploadAll()};!functiona(){varc=e.shift();if(q(c))returnk();vari=d.isFile(c)?c:newh(c),l=d._convertFiltersToPipes(g),m=newt(l),n=function(b){varc=b.pipe.originalFilter,e=f(b.args,2),g=e[0],h=e[1];d._onWhenAddingFileFailed(g,c,h),a()},o=function(b,c){vare=news(d,b,c);j.push(e),d.queue.push(e),d._onAfterAddingFile(e),a()};m.onThrown=n,m.onSuccessful=o,m.exec(i,b)}()},e.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()},e.prototype.clearQueue=function(){for(;this.queue.length;)this.queue[0].remove();this.progress=0},e.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()))},e.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,{}];g(function(){b._onCancelItem.apply(b,[d].concat(a)),b._onCompleteItem.apply(b,[d].concat(a))})}())},e.prototype.uploadAll=function(){vara=this.getNotUploadedItems().filter(function(a){return!a.isUploading});a.length&&(l(a,function(a){returna._prepareToUploading()}),a[0].upload())},e.prototype.cancelAll=function(){vara=this.getNotUploadedItems();l(a,function(a){returna.cancel()})},e.prototype.isFile=function(a){returnthis.constructor.isFile(a)},e.prototype.isFileLikeObject=function(a){returnthis.construc