text: webpackJsonp([0],[function(e,t){e.exports=function(e,t,n,r,i,o){var s,a=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(s=e,a=e.default);var u="function"==typeof a?a.options:a;t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId=i);var d;if(o?(d=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=d):r&&(d=r),d){var c=u.functional,p=c?u.render:u.beforeCreate;c?(u._injectStyles=d,u.render=function(e,t){return d.call(t),p(e,t)}):u.beforeCreate=p?[].concat(p,d):[d]}return{esModule:s,exports:a,options:u}}},function(e,t,n){"use strict";var r=n(11),i=n(45),o=n(0),s=o(r.a,i.a,!1,null,null,null);t.a=s.exports},function(e,t){function n(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=r(i);return[n].concat(i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"})).concat([o]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var s=e[i];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=d[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(o(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{for(var s=[],i=0;i<n.parts.length;i++)s.push(o(n.parts[i]));d[n.id]={id:n.id,refs:1,parts:s}}}}function i(){var e=document.createElement("style");return e.type="text/css",c.appendChild(e),e}function o(e){var t,n,r=document.querySelector("style["+g+'~="'+e.id+'"]');if(r){if(f)return v;r.parentNode.removeChild(r)}if(b){var o=h++;r=p||(p=i()),t=s.bind(null,r,o,!1),n=s.bind(null,r,o,!0)}else r=i(),t=a.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function s(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var o=document.createTextNode(i),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}function a(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),m.ssrId&&e.setAttribute(g,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var u=n(31),d={},c=l&&(document.head||document.getElementsByTagName("head")[0]),p=null,h=0,f=!1,v=function(){},m=null,g="data-vue-ssr-id",b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n,i){f=n,m=i||{};var o=u(e,t);return r(o),function(t){for(var n=[],i=0;i<o.length;i++){var s=o[i],a=d[s.id];a.refs--,n.push(a)}t?(o=u(e,t),r(o)):o=[];for(var i=0;i<n.length;i++){var a=n[i];if(0===a.refs){for(var l=0;l<a.parts.length;l++)a.parts[l]();delete d[a.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){"use strict";var r=n(53);t.a=r.a},,function(e,t,n){"use strict";var r=n(13),i=n(48),o=n(0),s=o(r.a,i.a,!1,null,null,null);t.a=s.exports},,function(e,t,n){"use strict";var r=n(32),i=n(37);t.a={components:{"app-sidebar":r.a,"app-footer":i.a}}},function(e,t,n){"use strict";t.a={data:function(){return{sections:[{title:"Getting started",pages:[{to:"installation",title:"Installation & Usage"}]},{title:"Documentation",pages:[{to:"/props",title:"Props"},{to:"/events",title:"Events"},{to:"/methods",title:"Methods"}]},{title:"Demos",pages:[{to:"/demo",title:"Basic Demo"},{to:"/iconDemo",title:"Adding Icons"},{to:"/manual",title:"Manually Load Files"},{to:"/additionalParams",title:"Sending Additional Params"},{to:"/custom-preview",title:"Custom Styling"},{to:"/aws-s3-upload",title:"AWS S3 Upload"}]}]}}}},function(e,t,n){"use strict";var r=n(1);t.a={data:function(){return{ok:!0,example:'````\n<vue-dropzone ref="myVueDropzone" id="dropzone" :options="dropzoneOptions">\n....\nimport vue2Dropzone from \'vue2-dropzone\'\nimport \'vue2-dropzone/dist/vue2Dropzone.css\'\n\nexport default {\n  name: \'app\',\n  components: {\n    vueDropzone: vue2Dropzone\n  },\n  data: function () {\n    return {\n      dropzoneOptions: {\n          url: \'https://httpbin.org/post\',\n          thumbnailWidth: 150,\n          maxFilesize: 0.5,\n          headers: { "My-Awesome-Header": "header value" }\n      }\n    }\n  }````'}},components:{"edit-doc":r.a}}},function(e,t,n){"use strict";var r=n(44);t.a={props:{link:{type:String,required:!1,defaut:"#"}},computed:{url:function(){return r.a.repository+"/edit/"+r.a.branch+"/"+r.a.docSource+"/"+this.link}}}},function(e,t,n){"use strict";var r=n(6),i=n(1);t.a={data:function(){return{props:[["id","String","A string by which to identify the component, can be anything","True"],["options","Object","A dropzone [configuration object](http://www.dropzonejs.com/#configuration-options), accepts all valid dropzone configuration","True"],["includeStyling","Boolean","Whether to include the dropzone and component styling, defaults to true","False"],["awss3","Object","Object consisting of 3 values signingURL, headers, and params. You can use the headers and params keys to send additional headers or parameters with the signing request (e.g. CSRF tokens). See [Demo and config](#/aws-s3-upload)","False"],["destroyDropzone","Boolean","Destroy the dropzone object when the component is destroyed. Defaults to true.","False"]]}},components:{"simple-table":r.a,"edit-doc":i.a}}},function(e,t,n){"use strict";t.a={props:{headers:{type:Array,required:!1},rows:{type:Array,required:!0}}}},function(e,t,n){"use strict";var r=n(4),i=n(1);t.a={data:function(){return{ok:!0,example:'````\n<vue-dropzone ref="myVueDropzone" id="dropzone" :options="dropzoneOptions">\n....\ndropzoneOptions: {\n    url: \'https://httpbin.org/post\',\n    thumbnailWidth: 150,\n    maxFilesize: 0.5,\n    headers: { "My-Awesome-Header": "header value" }\n}````',dropzoneOptions:{url:"https://httpbin.org/post",thumbnailWidth:150,maxFilesize:.5,headers:{"My-Awesome-Header":"header value"},addRemoveLinks:!0,autoProcessQueue:!0,accept:function(e,t){console.log(e),t()}},fileAdded:!1,filesAdded:!1,success:!1,error:!1,removedFile:!1,sending:!1,successMultiple:!1,sendingMultiple:!1,queueComplete:!1,uploadProgress:!1,progress:!1,myProgress:0,isMounted:!1,dDrop:!1,dStarted:!1,dEnded:!1,dEntered:!1,dOver:!1,dLeave:!1}},components:{vueDropzone:r.a,"edit-doc":i.a},methods:{vfileAdded:function(e){this.fileAdded=!0},vfilesAdded:function(e){this.filesAdded=!0},vsuccess:function(e,t){this.success=!0},verror:function(e){this.error=!0},vremoved:function(e,t,n){this.removedFile=!0},vsending:function(e,t,n){this.sending=!0},vsuccessMuliple:function(e,t){this.successMultiple=!0},vsendingMuliple:function(e,t,n){this.sendingMultiple=!0},vqueueComplete:function(e,t,n){this.queueComplete=!0},vprogress:function(e,t,n){this.progress=!0,this.myProgress=Math.floor(e)},vmounted:function(){this.isMounted=!0},vddrop:function(){this.dDrop=!0},vdstart:function(){this.dStarted=!0},vdend:function(){this.dEnded=!0},vdenter:function(){this.dEntered=!0},vdover:function(){this.dOver=!0},vdleave:function(){this.dLeave=!0}},watch:{fileAdded:function(){var e=this;setTimeout(function(){e.fileAdded=!1},2e3)},filesAdded:function(){var e=this;setTimeout(function(){e.filesAdded=!1},2e3)},success:function(){var e=this;setTimeout(function(){e.success=!1},2e3)},error:function(){var e=this;setTimeout(function(){e.error=!1},2e3)},removedFile:function(){var e=this;setTimeout(function(){e.removedFile=!1},2e3)},sending:function(){var e=this;setTimeout(function(){e.sending=!1},2e3)},successMultiple:function(){var e=this;setTimeout(function(){e.successMultiple=!1},2e3)},sendingMultiple:function(){var e=this;setTimeout(function(){e.sendingMultiple=!1},2e3)},queueComplete:function(){var e=this;setTimeout(function(){e.queueComplete=!1},2e3)},progress:function(){var e=this;setTimeout(function(){e.progress=!1},2e3)},isMounted:function(){var e=this;setTimeout(function(){e.isMounted=!1},2e3)},dDrop:function(){var e=this;setTimeout(function(){e.dDrop=!1},2e3)},dStarted:function(){var e=this;setTimeout(function(){e.dStarted=!1},2e3)},dEnded:function(){var e=this;setTimeout(function(){e.dEnded=!1},2e3)},dEntered:function(){var e=this;setTimeout(function(){e.dEntered=!1},2e3)},dOver:function(){var e=this;setTimeout(function(){e.dOver=!1},2e3)},dLeave:function(){var e=this;setTimeout(function(){e.dLeave=!1},2e3)}}}},function(e,t,n){"use strict";var r=n(56);t.a={props:{id:{type:String,required:!0},options:{type:Object,required:!0},includeStyling:{type:Boolean,default:!0,required:!1},awss3:{type:Object,required:!1,default:null},destroyDropzone:{type:Boolean,default:!0,required:!1}},data:function(){return{isS3:!1,wasQueueAutoProcess:!0}},computed:{dropzoneSettings:function(){var e={thumbnailWidth:200,thumbnailHeight:200};return Object.keys(this.options).forEach(function(t){e[t]=this.options[t]},this),null!==this.awss3&&(e.autoProcessQueue=!1,this.isS3=!0,void 0!==this.options.autoProcessQueue&&(this.wasQueueAutoProcess=this.options.autoProcessQueue)),e}},methods:{manuallyAddFile:function(e,t){e.manuallyAdded=!0,this.dropzone.emit("addedfile",e),t&&this.dropzone.emit("thumbnail",e,t);for(var n=e.previewElement.querySelectorAll("[data-dz-thumbnail]"),r=0;r<n.length;r++)n[r].style.width=this.dropzoneSettings.thumbnailWidth+"px",n[r].style.height=this.dropzoneSettings.thumbnailHeight+"px",n[r].style["object-fit"]="contain";this.dropzone.emit("complete",e),this.dropzone.options.maxFiles&&this.dropzone.options.maxFiles--,this.dropzone.files.push(e),this.$emit("vdropzone-file-added-manually",e)},setOption:function(e,t){this.dropzone.options[e]=t},removeAllFiles:function(e){this.dropzone.removeAllFiles(e)},processQueue:function(){var e=this,t=this.dropzone;this.isS3&&!this.wasQueueAutoProcess?this.getQueuedFiles().forEach(function(t){e.getSignedAndUploadToS3(t)}):this.dropzone.processQueue(),this.dropzone.on("success",function(){t.options.autoProcessQueue=!0}),this.dropzone.on("queuecomplete",function(){t.options.autoProcessQueue=!1})},init:function(){return this.dropzone.init()},destroy:function(){return this.dropzone.destroy()},updateTotalUploadProgress:function(){return this.dropzone.updateTotalUploadProgress()},getFallbackForm:function(){return this.dropzone.getFallbackForm()},getExistingFallback:function(){return this.dropzone.getExistingFallback()},setupEventListeners:function(){return this.dropzone.setupEventListeners()},removeEventListeners:function(){return this.dropzone.removeEventListeners()},disable:function(){return this.dropzone.disable()},enable:function(){return this.dropzone.enable()},filesize:function(e){return this.dropzone.filesize(e)},accept:function(e,t){return this.dropzone.accept(e,t)},addFile:function(e){return this.dropzone.addFile(e)},removeFile:function(e){this.dropzone.removeFile(e)},getAcceptedFiles:function(){return this.dropzone.getAcceptedFiles()},getRejectedFiles:function(){return this.dropzone.getRejectedFiles()},getFilesWithStatus:function(){return this.dropzone.getFilesWithStatus()},getQueuedFiles:function(){return this.dropzone.getQueuedFiles()},getUploadingFiles:function(){return this.dropzone.getUploadingFiles()},getAddedFiles:function(){return this.dropzone.getAddedFiles()},getActiveFiles:function(){return this.dropzone.getActiveFiles()},getSignedAndUploadToS3:function(e){var t=this;r.a.sendFile(e,this.awss3).then(function(n){n.success?(e.s3ObjectLocation=n.message,setTimeout(function(){return t.dropzone.processFile(e)}),t.$emit("vdropzone-s3-upload-success",n.message)):"undefined"!=typeof message?t.$emit("vdropzone-s3-upload-error",n.message):t.$emit("vdropzone-s3-upload-error","Network Error : Could not send request to AWS. (Maybe CORS error)")}).catch(function(e){alert(e)})},setAWSSigningURL:function(e){this.isS3&&(this.awss3.signingURL=e)}},mounted:function(){if(!this.$isServer||!this.hasBeenMounted){this.hasBeenMounted=!0;var e=n(57);e.autoDiscover=!1,this.dropzone=new e(this.$refs.dropzoneElement,this.dropzoneSettings);var t=this;this.dropzone.on("thumbnail",function(e,n){t.$emit("vdropzone-thumbnail",e,n)}),this.dropzone.on("addedfile",function(e){t.duplicateCheck&&this.files.length&&this.files.forEach(function(n){n.name===e.name&&(this.removeFile(e),t.$emit("duplicate-file",e))},this),t.$emit("vdropzone-file-added",e),t.isS3&&t.wasQueueAutoProcess&&t.getSignedAndUploadToS3(e)}),this.dropzone.on("addedfiles",function(e){t.$emit("vdropzone-files-added",e)}),this.dropzone.on("removedfile",function(e){t.$emit("vdropzone-removed-file",e),e.manuallyAdded&&t.dropzone.options.maxFiles++}),this.dropzone.on("success",function(e,n){t.$emit("vdropzone-success",e,n),t.isS3&&t.wasQueueAutoProcess&&t.setOption("autoProcessQueue",!1)}),this.dropzone.on("successmultiple",function(e,n){t.$emit("vdropzone-success-multiple",e,n)}),this.dropzone.on("error",function(e,n,r){t.$emit("vdropzone-error",e,n,r)}),this.dropzone.on("errormultiple",function(e,n,r){t.$emit("vdropzone-error-multiple",e,n,r)}),this.dropzone.on("sending",function(e,n,r){t.isS3&&r.append("s3ObjectLocation",e.s3ObjectLocation),t.$emit("vdropzone-sending",e,n,r)}),this.dropzone.on("sendingmultiple",function(e,n,r){t.$emit("vdropzone-sending-multiple",e,n,r)}),this.dropzone.on("complete",function(e){t.$emit("vdropzone-complete",e)}),this.dropzone.on("completemultiple",function(e){t.$emit("vdropzone-complete-multiple",e)}),this.dropzone.on("canceled",function(e){t.$emit("vdropzone-canceled",e)}),this.dropzone.on("canceledmultiple",function(e){t.$emit("vdropzone-canceled-multiple",e)}),this.dropzone.on("maxfilesreached",function(e){t.$emit("vdropzone-max-files-reached",e)}),this.dropzone.on("maxfilesexceeded",function(e){t.$emit("vdropzone-max-files-exceeded",e)}),this.dropzone.on("processing",function(e){t.$emit("vdropzone-processing",e)}),this.dropzone.on("processing",function(e){t.$emit("vdropzone-processing",e)}),this.dropzone.on("processingmultiple",function(e){t.$emit("vdropzone-processing-multiple",e)}),this.dropzone.on("uploadprogress",function(e,n,r){t.$emit("vdropzone-upload-progress",e,n,r)}),this.dropzone.on("totaluploadprogress",function(e,n,r){t.$emit("vdropzone-total-upload-progress",e,n,r)}),this.dropzone.on("reset",function(){t.$emit("vdropzone-reset")}),this.dropzone.on("queuecomplete",function(){t.$emit("vdropzone-queue-complete")}),this.dropzone.on("drop",function(e){t.$emit("vdropzone-drop",e)}),this.dropzone.on("dragstart",function(e){t.$emit("vdropzone-drag-start",e)}),this.dropzone.on("dragend",function(e){t.$emit("vdropzone-drag-end",e)}),this.dropzone.on("dragenter",function(e){t.$emit("vdropzone-drag-enter",e)}),this.dropzone.on("dragover",function(e){t.$emit("vdropzone-drag-over",e)}),this.dropzone.on("dragleave",function(e){t.$emit("vdropzone-drag-leave",e)}),t.$emit("vdropzone-mounted")}},beforeDestroy:function(){this.destroyDropzone&&this.dropzone.destroy()}}},function(e,t,n){"use strict";var r=n(4),i=n(1);t.a={data:function(){return{fileCount:0,description:"Using the `manuallyAddFile` method allows you to programatically add files to your dropzone area. For example if you already have files on your server that you'd like to pre-populate your dropzone area with then simply use the function when the `vdropzone-mounted` event is fired.",html:'````\n    <vue-dropzone ref="myVueDropzone">\n    </vue-dropzone>\n    ````',js:'````\n    ....\n    mounted: () {\n      var file = { size: 123, name: "Icon" };\n      var url = "https://myvizo.com/img/logo_sm.png";\n      this.$refs.myVueDropzone.manuallyAddFile(file, url);\n    }\n    ....\n    ````',dropzoneOptions:{url:"https://httpbin.org/post",thumbnailWidth:200,addRemoveLinks:!0}}},methods:{getFileCount:function(){void 0!==this.$refs.myVueDropzone.dropzone?this.fileCount=this.$refs.myVueDropzone.dropzone.files.length:this.fileCount=0},addFile:function(){var e={size:123,name:"Icon"};this.$refs.myVueDropzone.manuallyAddFile(e,"http://via.placeholder.com/200x200")}},components:{vueDropzone:r.a,"edit-doc":i.a}}},function(e,t,n){"use strict";var r=n(4),i=n(1);t.a={data:function(){return{description:"Using the `dictDefaultMessage` property you to pass in icons to your dropzone to make it look a bit nicer.",html:'````    \n    <vue-dropzone :options="dropzoneOptions">\n    </vue-dropzone>\n    ````',css:'````\n  @import url("https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css");\n````',js:"````\n  data () {\n    return {\n      ....\n      dropzoneOptions: {\n        url: 'https://httpbin.org/post',\n        thumbnailWidth: 200,\n        addRemoveLinks: true,\n        dictDefaultMessage: \"<i class='fa fa-cloud-upload'></i>UPLOAD ME\"\n      },\n      ....\n    }\n  }\n    ````",dropzoneOptions:{url:"https://httpbin.org/post",thumbnailWidth:200,addRemoveLinks:!0,dictDefaultMessage:"<i class='fa fa-cloud-upload'></i>UPLOAD ME"}}},components:{vueDropzone:r.a,"edit-doc":i.a}}},function(e,t,n){"use strict";var r=n(4),i=n(1);t.a={data:function(){return{description:"Additional parameters can be added to upload events to send additional information to the server by hijacking the `vdropzone-sending` event.",html:'````\n    <vue-dropzone v-on:vdropzone-sending="sendingEvent">\n    </vue-dropzone>\n    ````',js:"````\n    ....\n    methods: {\n      sendingEvent (file, xhr, formData) {\n        formData.append('paramName', 'some value or other');\n      }\n    }\n    ....\n  ````",dropzoneOptions:{url:"https://httpbin.org/post",thumbnailWidth:200,addRemoveLinks:!0}}},methods:{sendingEvent:function(e,t,n){n.append("paramName","some value or other")}},components:{vueDropzone:r.a,"edit-doc":i.a}}},function(e,t,n){"use strict";var r=n(6),i=n(1);t.a={data:function(){return{events:[["vdropzone-file-added(file)","File added to the dropzone."],["vdropzone-files-added(file)","Files added to the dropzone."],["vdropzone-file-added-manually(file)","Manually added file to the dropzone"],["vdropzone-thumbnail(file, dataUrl)","When the thumbnail has been generated. Receives the `dataUrl` as second parameter."],["vdropzone-success(file, response)","The file has been uploaded successfully. Gets the server response as second argument."],["vdropzone-complete(file)","Called when the upload was either successful or erroneous."],["vdropzone-canceled(file)","Called when a file upload gets canceled."],["vdropzone-error(file, message, xhr)","An error occured. Receives the error `message` as second parameter and if the error was due to the XMLHttpRequest the xhr object as third."],["vdropzone-error-multiple(files, message, xhr)","See `vdropzone-error` for description."],["vdropzone-removed-file(file, error, xhr)","A file was removed from the dropzone."],["vdropzone-sending(file, xhr, formData)","Modify the request and add addtional parameters to request before sending."],["vdropzone-complete-multiple(files)","Called when all files are uploaded."],["vdropzone-canceled(file)","Called when a file upload gets canceled."],["vdropzone-max-files-reached(file)","Called when the number of files accepted reaches the `maxFiles` limit. "],["vdropzone-max-files-exceeded(file)","Called for each file that has been rejected because the number of files exceeds the `maxFiles` limit. "],["vdropzone-success-multiple(files, response)","Fired if the uploadMultiple option is true. See `success` for description."],["vdropzone-sending-multiple(files, xhr, formData)","Fired if the uploadMultiple option is true. See `sending` for description."],["vdropzone-queue-complete(file, xhr, formData)","Fired when queue has been completely processed/ uploaded."],["vdropzone-processing(file)","When a file gets processed (since there is a queue not all files are processed immediately). This event was called processingfile previously."],["vdropzone-processing-multiple(files)","See `vdropzone-processing` for description."],["vdropzone-upload-progress(file, progress, bytesSent)","Gets called periodically whenever the file upload progress changes.<br />Gets the `progress` parameter as second parameter which is a percentage (0-100) and the `bytesSent` parameter as third which is the number of the bytes that have been sent to the server.<br />When an upload finishes dropzone ensures that uploadprogress will be called with a percentage of `100` at least once.<br /><br />**Warning:** This function can potentially be called with the same progress multiple times."],["vdropzone-total-upload-progress(totaluploadprogress, totalBytes, totalBytesSent)","This event can be used to show the overall upload progress of all files. Note : `totaluploadprogress (0-100)`"],["vdropzone-mounted()","Fired when dropzone component is mounted."],["duplicate-file(file)","Fired when duplicateCheck is enabled."],["vdropzone-drop(event)","The user dropped something onto the dropzone."],["vdropzone-drag-start(event)","The user started to drag anywhere."],["vdropzone-drag-end(event)","Dragging has ended."],["vdropzone-drag-enter(event)","The user dragged a file onto the Dropzone."],["vdropzone-drag-over(event)","The user is dragging a file over the Dropzone."],["vdropzone-drag-leave(event)","The user dragged a file out of the Dropzone."],["vdropzone-s3-upload-success(s3ObjectLocation)","When file is uploaded to AWS S3 successfully."],["vdropzone-s3-upload-error(errorMessage)","If error occures in AWS S3 upload."]]}},components:{"simple-table":r.a,"edit-doc":i.a}}},function(e,t,n){"use strict";var r=n(6),i=n(1);t.a={data:function(){return{example:'````\n      <vue-dropzone ref="myVueDropzone">\n      ....\n      methods: {\n        someMethod: {\n          this.$refs.myVueDropzone.processQueue()\n        }\n      }\n      ````',methods:[[".removeAllFiles()","Removes all files. Files that are in the process of being uploaded won’t be removed. If you want files that are currently uploading to be canceled, call `.removeAllFiles(true)` which will cancel the uploads."],[".setOption(optionName, value)","Sets the value of one of the dropzone options after initialisation. Handy if you need to pass through a token after the component has initialised."],[".manuallyAddFile(file, fileUrl, callback)","Manually adds a file to the dropzone area. See the dropzone doco for more information."],[".removeFile(file)","Removes a file from the dropzone area."],[".processQueue()","If you have `autoProcessQueue` disabled, you’ll need to call .processQueue() yourself."],[".getAcceptedFiles()","Gets all accepted files"],[".getRejectedFiles()","Gets all rejected files"],[".getQueuedFiles()","Gets all queued files"],[".getUploadingFiles()","Gets all uploading files"],[".disable()","Disable the dropzone component. If you want to enable it again use `.enable()`"],[".enable()","Enables a disabled dropzone component"],[".setAWSSigningURL(url)","Change your Aws S3 singing URL on the fly"]]}},components:{"simple-table":r.a,"edit-doc":i.a}}},function(e,t,n){"use strict";var r=n(4),i=n(1);t.a={data:function(){return{description:"Send file directly to AWS S3 from browser using AWS Pre-Signed URL.",awsNote:"> Firstly, your file is uploaded to S3 then request is sent to your server with file as expected behaviour. But extra field to your request will be added as `s3ObjectLocation` containing location of your S3 object/file, which you may require to store in database.",signerAsFunc:"You may also provide a function to generate the URL. This would allow your server to generate a signature based on properties of your file",urlsignnote:"> You may need external libraries to create below response. Here is example for [php aws url signer](https://github.com/vrajroham/aws-s3-url-signer-php)",html:'````\n    <vue-dropzone \n      :awss3="awss3"\n      v-on:vdropzone-s3-upload-error="s3UploadError"\n      v-on:vdropzone-s3-upload-success="s3UploadSuccess"\n      >\n    </vue-dropzone>\n    ````',js:"````\n    ....\n    data () {\n      return {\n        ....\n        awss3: {\n          signingURL: 'http://aws-direct-s3.dev/',\n          headers: {},\n          params : {}\n        },\n        ....\n      }\n    }\n    methods: {\n      ....\n      s3UploadError(errorMessage){\n        ....\n      },\n      s3UploadSuccess(s3ObjectLocation){\n        ....\n      }\n    }\n    ....\n      ````",jsSignerAsFunc:"````\n    signingURL: (f) => {return 'http://aws-direct-s3.dev/' + f.name }\n````",signurl:"",dropzoneOptions:{url:"https://httpbin.org/post",thumbnailWidth:200,addRemoveLinks:!0,autoProcessQueue:!1},awss3:{signingURL:"",headers:{},params:{}}}},methods:{sendingEvent:function(e,t,n){n.append("paramName","some value or other")},s3UploadError:function(e){console.log(e)},s3UploadSuccess:function(e){console.log(e)},uploadFiles:function(){this.signurl?(this.$refs.myVueDropzone.setAWSSigningURL(this.signurl),this.$refs.myVueDropzone.processQueue()):(this.$refs.urlsigner.focus(),alert("Enter your signing URL"))}},components:{vueDropzone:r.a,"edit-doc":i.a}}},function(e,t,n){"use strict";var r=n(4),i=n(1);t.a={data:function(){return{ok:!0,html:'````\n    <vue-dropzone \n      :options="dropzoneOptions"\n      :include-styling="false"\n      v-on:vdropzone-thumbnail="thumbnail"\n      id="customdropzone">\n    </vue-dropzone>\n    ````',javascript:'````\n    ....\n    data () {\n      return {\n        ....\n        dropzoneOptions: {\n          ...\n          previewTemplate: this.template(),\n          ...\n        }\n      }\n    }\n    ....\n    methods: {\n      template: function () {\n        return `<div class="dz-preview dz-file-preview">\n                <div class="dz-image">\n                    <div data-dz-thumbnail-bg></div>\n                </div>\n                <div class="dz-details">\n                    <div class="dz-size"><span data-dz-size></span></div>\n                    <div class="dz-filename"><span data-dz-name></span></div>\n                </div>\n                <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n                <div class="dz-error-message"><span data-dz-errormessage></span></div>\n                <div class="dz-success-mark"><i class="fa fa-check"></i></div>\n                <div class="dz-error-mark"><i class="fa fa-close"></i></div>\n            </div>\n        `;\n      }\n  ````',style:"````\n<style>\n  #customdropzone {\n    background-color: orange;\n    font-family: 'Arial', sans-serif;\n    letter-spacing: 0.2px;\n    color: #777;\n    transition: background-color .2s linear;\n    height: 200px;\n    padding: 40px;\n  }\n\n  #customdropzone .dz-preview {\n    width: 160px;\n    display: inline-block\n  }\n #customdropzone .dz-preview .dz-image {\n    width: 80px;\n    height: 80px;\n    margin-left: 40px;\n    margin-bottom: 10px;\n  }\n  #customdropzone .dz-preview .dz-image > div {\n    width: inherit;\n    height: inherit;\n    border-radius: 50%;\n    background-size: contain;\n  }\n  #customdropzone .dz-preview .dz-image > img {\n    width: 100%;\n  }\n\n   #customdropzone .dz-preview .dz-details {\n    color: white;\n    transition: opacity .2s linear;\n    text-align: center;\n  }\n  #customdropzone .dz-success-mark, .dz-error-mark, .dz-remove {\n    display: none;\n  }\n</style>\n      ````",description:"It is possible to entirely customise the look of your vue-dropzone component by setting the `include-styling` prop to `false`.",dropzoneOptions:{url:"https://httpbin.org/post",addRemoveLinks:!0,previewTemplate:this.template(),maxFilesize:1.5}}},components:{vueDropzone:r.a,editDoc:i.a},methods:{template:function(){return'<div class="dz-preview dz-file-preview">\n              <div class="dz-image">\n                  <div data-dz-thumbnail-bg></div>\n              </div>\n              <div class="dz-details">\n                  <div class="dz-size"><span data-dz-size></span></div>\n                  <div class="dz-filename"><span data-dz-name></span></div>\n              </div>\n              <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n              <div class="dz-error-message"><span data-dz-errormessage></span></div>\n              <div class="dz-success-mark"><i class="fa fa-check"></i></div>\n              <div class="dz-error-mark"><i class="fa fa-close"></i></div>\n          </div>\n      '},thumbnail:function(e,t){var n,r,i,o;if(e.previewElement){for(e.previewElement.classList.remove("dz-file-preview"),i=e.previewElement.querySelectorAll("[data-dz-thumbnail-bg]"),n=0,r=i.length;n<r;n++)o=i[n],o.alt=e.name,o.style.backgroundImage='url("'+t+'")';return setTimeout(function(t){return function(){return e.previewElement.classList.add("dz-image-preview")}}(),1)}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),i=n(27),o=n(28),s=n(40),a=n(83);r.default.mixin({methods:{marked:function(e){return a(e)}}}),r.default.use(i.a);var l=new i.a({routes:s.a});new r.default({el:"#app",router:l,render:function(e){return e(o.a)}})},,,,function(e,t,n){"use strict";function r(e,t){}function i(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function o(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0}}function s(e,t){for(var n in t)e[n]=t[n];return e}function a(e,t,n){void 0===t&&(t={});var r,i=n||l;try{r=i(e||"")}catch(e){r={}}for(var o in t)r[o]=t[o];return r}function l(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(function(e){var n=e.replace(/\+/g," ").split("="),r=qe(n.shift()),i=n.length>0?qe(n.join("=")):null;void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}),t):t}function u(e){var t=e?Object.keys(e).map(function(t){var n=e[t];if(void 0===n)return"";if(null===n)return je(t);if(Array.isArray(n)){var r=[];return n.forEach(function(e){void 0!==e&&(null===e?r.push(je(t)):r.push(je(t)+"="+je(e)))}),r.join("&")}return je(t)+"="+je(n)}).filter(function(e){return e.length>0}).join("&"):null;return t?"?"+t:""}function d(e,t,n,r){var i=r&&r.options.stringifyQuery,o=t.query||{};try{o=c(o)}catch(e){}var s={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:h(t,i),matched:e?p(e):[]};return n&&(s.redirectedFrom=h(n,i)),Object.freeze(s)}function c(e){if(Array.isArray(e))return e.map(c);if(e&&"object"==typeof e){var t={};for(var n in e)t[n]=c(e[n]);return t}return e}function p(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function h(e,t){var n=e.path,r=e.query;void 0===r&&(r={});var i=e.hash;void 0===i&&(i="");var o=t||u;return(n||"/")+o(r)+i}function f(e,t){return t===Ye?e===t:!!t&&(e.path&&t.path?e.path.replace(Ie,"")===t.path.replace(Ie,"")&&e.hash===t.hash&&v(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&v(e.query,t.query)&&v(e.params,t.params)))}function v(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(function(n){var r=e[n],i=t[n];return"object"==typeof r&&"object"==typeof i?v(r,i):String(r)===String(i)})}function m(e,t){return 0===e.path.replace(Ie,"/").indexOf(t.path.replace(Ie,"/"))&&(!t.hash||e.hash===t.hash)&&g(e.query,t.query)}function g(e,t){for(var n in t)if(!(n in e))return!1;return!0}function b(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){if(/\b_blank\b/i.test(e.currentTarget.getAttribute("target")))return}return e.preventDefault&&e.preventDefault(),!0}}function y(e){if(e)for(var t,n=0;n<e.length;n++){if(t=e[n],"a"===t.tag)return t;if(t.children&&(t=y(t.children)))return t}}function z(e){if(!z.installed||Oe!==e){z.installed=!0,Oe=e;var t=function(e){return void 0!==e},n=function(e,n){var r=e.$options._parentVnode;t(r)&&t(r=r.data)&&t(r=r.registerRouteInstance)&&r(e,n)};e.mixin({beforeCreate:function(){t(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("router-view",Ue),e.component("router-link",Be);var r=e.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}function k(e,t,n){var r=e.charAt(0);if("/"===r)return e;if("?"===r||"#"===r)return t+e;var i=t.split("/");n&&i[i.length-1]||i.pop();for(var o=e.replace(/^\//,"").split("/"),s=0;s<o.length;s++){var a=o[s];".."===a?i.pop():"."!==a&&i.push(a)}return""!==i[0]&&i.unshift(""),i.join("/")}function w(e){var t="",n="",r=e.indexOf("#");r>=0&&(t=e.slice(r),e=e.slice(0,r));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}function _(e){return e.replace(/\/\//g,"/")}function x(e,t){for(var n,r=[],i=0,o=0,s="",a=t&&t.delimiter||"/";null!=(n=Ze.exec(e));){var l=n[0],u=n[1],d=n.index;if(s+=e.slice(o,d),o=d+l.length,u)s+=u[1];else{var c=e[o],p=n[2],h=n[3],f=n[4],v=n[5],m=n[6],g=n[7];s&&(r.push(s),s="");var b=null!=p&&null!=c&&c!==p,y="+"===m||"*"===m,z="?"===m||"*"===m,k=n[2]||a,w=f||v;r.push({name:h||i++,prefix:p||"",delimiter:k,optional:z,repeat:y,partial:b,asterisk:!!g,pattern:w?L(w):g?".*":"[^"+A(k)+"]+?"})}}return o<e.length&&(s+=e.substr(o)),s&&r.push(s),r}function E(e,t){return S(x(e,t))}function F(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function C(e){return encodeURI(e).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function S(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"==typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function(n,r){for(var i="",o=n||{},s=r||{},a=s.pretty?F:encodeURIComponent,l=0;l<e.length;l++){var u=e[l];if("string"!=typeof u){var d,c=o[u.name];if(null==c){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(Qe(c)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(c)+"`");if(0===c.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var p=0;p<c.length;p++){if(d=a(c[p]),!t[l].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");i+=(0===p?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?C(c):a(c),!t[l].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');i+=u.prefix+d}}else i+=u}return i}}function A(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function L(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function T(e,t){return e.keys=t,e}function R(e){return e.sensitive?"":"i"}function M(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return T(e,t)}function O(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(D(e[i],t,n).source);return T(new RegExp("(?:"+r.join("|")+")",R(n)),t)}function U(e,t,n){return $(x(e,n),t,n)}function $(e,t,n){Qe(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,i=!1!==n.end,o="",s=0;s<e.length;s++){var a=e[s];if("string"==typeof a)o+=A(a);else{var l=A(a.prefix),u="(?:"+a.pattern+")";t.push(a),a.repeat&&(u+="(?:"+l+u+")*"),u=a.optional?a.partial?l+"("+u+")?":"(?:"+l+"("+u+"))?":l+"("+u+")",o+=u}}var d=A(n.delimiter||"/"),c=o.slice(-d.length)===d;return r||(o=(c?o.slice(0,-d.length):o)+"(?:"+d+"(?=$))?"),o+=i?"$":r&&c?"":"(?="+d+"|$)",T(new RegExp("^"+o,R(n)),t)}function D(e,t,n){return Qe(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?M(e,t):Qe(e)?O(e,t,n):U(e,t,n)}function P(e,t,n){try{return(et[e]||(et[e]=Ve.compile(e)))(t||{},{pretty:!0})}catch(e){return""}}function j(e,t,n,r){var i=t||[],o=n||Object.create(null),s=r||Object.create(null);e.forEach(function(e){q(i,o,s,e)});for(var a=0,l=i.length;a<l;a++)"*"===i[a]&&(i.push(i.splice(a,1)[0]),l--,a--);return{pathList:i,pathMap:o,nameMap:s}}function q(e,t,n,r,i,o){var s=r.path,a=r.name,l=r.pathToRegexpOptions||{},u=Y(s,i,l.strict);"boolean"==typeof r.caseSensitive&&(l.sensitive=r.caseSensitive);var d={path:u,regex:I(u,l),components:r.components||{default:r.component},instances:{},name:a,parent:i,matchAs:o,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};if(r.children&&r.children.forEach(function(r){var i=o?_(o+"/"+r.path):void 0;q(e,t,n,r,d,i)}),void 0!==r.alias){(Array.isArray(r.alias)?r.alias:[r.alias]).forEach(function(o){var s={path:o,children:r.children};q(e,t,n,s,i,d.path||"/")})}t[d.path]||(e.push(d.path),t[d.path]=d),a&&(n[a]||(n[a]=d))}function I(e,t){var n=Ve(e,[],t);return n}function Y(e,t,n){return n||(e=e.replace(/\/$/,"")),"/"===e[0]?e:null==t?e:_(t.path+"/"+e)}function H(e,t,n,r){var i="string"==typeof e?{path:e}:e;if(i.name||i._normalized)return i;if(!i.path&&i.params&&t){i=N({},i),i._normalized=!0;var o=N(N({},t.params),i.params);if(t.name)i.name=t.name,i.params=o;else if(t.matched.length){var s=t.matched[t.matched.length-1].path;i.path=P(s,o,"path "+t.path)}return i}var l=w(i.path||""),u=t&&t.path||"/",d=l.path?k(l.path,u,n||i.append):u,c=a(l.query,i.query,r&&r.options.parseQuery),p=i.hash||l.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:d,query:c,hash:p}}function N(e,t){for(var n in t)e[n]=t[n];return e}function B(e,t){function n(e){j(e,l,u,c)}function r(e,n,r){var i=H(e,n,!1,t),o=i.name;if(o){var a=c[o];if(!a)return s(null,i);var d=a.regex.keys.filter(function(e){return!e.optional}).map(function(e){return e.name});if("object"!=typeof i.params&&(i.params={}),n&&"object"==typeof n.params)for(var p in n.params)!(p in i.params)&&d.indexOf(p)>-1&&(i.params[p]=n.params[p]);if(a)return i.path=P(a.path,i.params,'named route "'+o+'"'),s(a,i,r)}else if(i.path){i.params={};for(var h=0;h<l.length;h++){var f=l[h],v=u[f];if(W(v.regex,i.path,i.params))return s(v,i,r)}}return s(null,i)}function i(e,n){var i=e.redirect,o="function"==typeof i?i(d(e,n,null,t)):i;if("string"==typeof o&&(o={path:o}),!o||"object"!=typeof o)return s(null,n);var a=o,l=a.name,u=a.path,p=n.query,h=n.hash,f=n.params;if(p=a.hasOwnProperty("query")?a.query:p,h=a.hasOwnProperty("hash")?a.hash:h,f=a.hasOwnProperty("params")?a.params:f,l){c[l];return r({_normalized:!0,name:l,query:p,hash:h,params:f},void 0,n)}if(u){var v=Q(u,e);return r({_normalized:!0,path:P(v,f,'redirect route with path "'+v+'"'),query:p,hash:h},void 0,n)}return s(null,n)}function o(e,t,n){var i=P(n,t.params,'aliased route with path "'+n+'"'),o=r({_normalized:!0,path:i});if(o){var a=o.matched,l=a[a.length-1];return t.params=o.params,s(l,t)}return s(null,t)}function s(e,n,r){return e&&e.redirect?i(e,r||n):e&&e.matchAs?o(e,n,e.matchAs):d(e,n,r,t)}var a=j(e),l=a.pathList,u=a.pathMap,c=a.nameMap;return{match:r,addRoutes:n}}function W(e,t,n){var r=t.match(e);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var s=e.keys[i-1],a="string"==typeof r[i]?decodeURIComponent(r[i]):r[i];s&&(n[s.name]=a)}return!0}function Q(e,t){return k(e,t.parent?t.parent.path:"/",!0)}function V(){window.history.replaceState({key:oe()},""),window.addEventListener("popstate",function(e){X(),e.state&&e.state.key&&se(e.state.key)})}function G(e,t,n,r){if(e.app){var i=e.options.scrollBehavior;i&&e.app.$nextTick(function(){var e=K(),o=i(t,n,r?e:null);o&&("function"==typeof o.then?o.then(function(t){re(t,e)}).catch(function(e){}):re(o,e))})}}function X(){var e=oe();e&&(tt[e]={x:window.pageXOffset,y:window.pageYOffset})}function K(){var e=oe();if(e)return tt[e]}function J(e,t){var n=document.documentElement,r=n.getBoundingClientRect(),i=e.getBoundingClientRect();return{x:i.left-r.left-t.x,y:i.top-r.top-t.y}}function Z(e){return ne(e.x)||ne(e.y)}function ee(e){return{x:ne(e.x)?e.x:window.pageXOffset,y:ne(e.y)?e.y:window.pageYOffset}}function te(e){return{x:ne(e.x)?e.x:0,y:ne(e.y)?e.y:0}}function ne(e){return"number"==typeof e}function re(e,t){var n="object"==typeof e;if(n&&"string"==typeof e.selector){var r=document.querySelector(e.selector);if(r){var i=e.offset&&"object"==typeof e.offset?e.offset:{};i=te(i),t=J(r,i)}else Z(e)&&(t=ee(e))}else n&&Z(e)&&(t=ee(e));t&&window.scrollTo(t.x,t.y)}function ie(){return rt.now().toFixed(3)}function oe(){return it}function se(e){it=e}function ae(e,t){X();var n=window.history;try{t?n.replaceState({key:it},"",e):(it=ie(),n.pushState({key:it},"",e))}catch(n){window.location[t?"replace":"assign"](e)}}function le(e){ae(e,!0)}function ue(e,t,n){var r=function(i){i>=e.length?n():e[i]?t(e[i],function(){r(i+1)}):r(i+1)};r(0)}function de(e){return function(t,n,r){var o=!1,s=0,a=null;ce(e,function(e,t,n,l){if("function"==typeof e&&void 0===e.cid){o=!0,s++;var u,d=fe(function(t){he(t)&&(t=t.default),e.resolved="function"==typeof t?t:Oe.extend(t),n.components[l]=t,--s<=0&&r()}),c=fe(function(e){var t="Failed to resolve async component "+l+": "+e;a||(a=i(e)?e:new Error(t),r(a))});try{u=e(d,c)}catch(e){c(e)}if(u)if("function"==typeof u.then)u.then(d,c);else{var p=u.component;p&&"function"==typeof p.then&&p.then(d,c)}}}),o||r()}}function ce(e,t){return pe(e.map(function(e){return Object.keys(e.components).map(function(n){return t(e.components[n],e.instances[n],e,n)})}))}function pe(e){return Array.prototype.concat.apply([],e)}function he(e){return e.__esModule||ot&&"Module"===e[Symbol.toStringTag]}function fe(e){var t=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}function ve(e){if(!e)if(We){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function me(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n<r&&e[n]===t[n];n++);return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}function ge(e,t,n,r){var i=ce(e,function(e,r,i,o){var s=be(e,t);if(s)return Array.isArray(s)?s.map(function(e){return n(e,r,i,o)}):n(s,r,i,o)});return pe(r?i.reverse():i)}function be(e,t){return"function"!=typeof e&&(e=Oe.extend(e)),e.options[t]}function ye(e){return ge(e,"beforeRouteLeave",ke,!0)}function ze(e){return ge(e,"beforeRouteUpdate",ke)}function ke(e,t){if(t)return function(){return e.apply(t,arguments)}}function we(e,t,n){return ge(e,"beforeRouteEnter",function(e,r,i,o){return _e(e,i,o,t,n)})}function _e(e,t,n,r,i){return function(o,s,a){return e(o,s,function(e){a(e),"function"==typeof e&&r.push(function(){xe(e,t.instances,n,i)})})}}function xe(e,t,n,r){t[n]?e(t[n]):r()&&setTimeout(function(){xe(e,t,n,r)},16)}function Ee(e){var t=window.location.pathname;return e&&0===t.indexOf(e)&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}function Fe(e){var t=Ee(e);if(!/^\/#/.test(t))return window.location.replace(_(e+"/#"+t)),!0}function Ce(){var e=Se();return"/"===e.charAt(0)||(Te("/"+e),!1)}function Se(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.slice(t+1)}function Ae(e){var t=window.location.href,n=t.indexOf("#");return(n>=0?t.slice(0,n):t)+"#"+e}function Le(e){nt?ae(Ae(e)):window.location.hash=e}function Te(e){nt?le(Ae(e)):window.location.replace(Ae(e))}function Re(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function Me(e,t,n){var r="hash"===n?"#"+t:t;return e?_(e+"/"+r):r}var Oe,Ue={name:"router-view",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,r=t.children,i=t.parent,a=t.data;a.routerView=!0;for(var l=i.$createElement,u=n.name,d=i.$route,c=i._routerViewCache||(i._routerViewCache={}),p=0,h=!1;i&&i._routerRoot!==i;)i.$vnode&&i.$vnode.data.routerView&&p++,i._inactive&&(h=!0),i=i.$parent;if(a.routerViewDepth=p,h)return l(c[u],a,r);var f=d.matched[p];if(!f)return c[u]=null,l();var v=c[u]=f.components[u];a.registerRouteInstance=function(e,t){var n=f.instances[u];(t&&n!==e||!t&&n===e)&&(f.instances[u]=t)},(a.hook||(a.hook={})).prepatch=function(e,t){f.instances[u]=t.componentInstance};var m=a.props=o(d,f.props&&f.props[u]);if(m){m=a.props=s({},m);var g=a.attrs=a.attrs||{};for(var b in m)v.props&&b in v.props||(g[b]=m[b],delete m[b])}return l(v,a,r)}},$e=/[!'()*]/g,De=function(e){return"%"+e.charCodeAt(0).toString(16)},Pe=/%2C/g,je=function(e){return encodeURIComponent(e).replace($e,De).replace(Pe,",")},qe=decodeURIComponent,Ie=/\/?$/,Ye=d(null,{path:"/"}),He=[String,Object],Ne=[String,Array],Be={name:"router-link",props:{to:{type:He,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:Ne,default:"click"}},render:function(e){var t=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),o=i.location,s=i.route,a=i.href,l={},u=n.options.linkActiveClass,c=n.options.linkExactActiveClass,p=null==u?"router-link-active":u,h=null==c?"router-link-exact-active":c,v=null==this.activeClass?p:this.activeClass,g=null==this.exactActiveClass?h:this.exactActiveClass,z=o.path?d(null,o,null,n):s;l[g]=f(r,z),l[v]=this.exact?l[g]:m(r,z);var k=function(e){b(e)&&(t.replace?n.replace(o):n.push(o))},w={click:b};Array.isArray(this.event)?this.event.forEach(function(e){w[e]=k}):w[this.event]=k;var _={class:l};if("a"===this.tag)_.on=w,_.attrs={href:a};else{var x=y(this.$slots.default);if(x){x.isStatic=!1;var E=Oe.util.extend;(x.data=E({},x.data)).on=w;(x.data.attrs=E({},x.data.attrs)).href=a}else _.on=w}return e(this.tag,_,this.$slots.default)}},We="undefined"!=typeof window,Qe=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},Ve=D,Ge=x,Xe=E,Ke=S,Je=$,Ze=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");Ve.parse=Ge,Ve.compile=Xe,Ve.tokensToFunction=Ke,Ve.tokensToRegExp=Je;var et=Object.create(null),tt=Object.create(null),nt=We&&function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),rt=We&&window.performance&&window.performance.now?window.performance:Date,it=ie(),ot="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,st=function(e,t){this.router=e,this.base=ve(t),this.current=Ye,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};st.prototype.listen=function(e){this.cb=e},st.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},st.prototype.onError=function(e){this.errorCbs.push(e)},st.prototype.transitionTo=function(e,t,n){var r=this,i=this.router.match(e,this.current);this.confirmTransition(i,function(){r.updateRoute(i),t&&t(i),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach(function(e){e(i)}))},function(e){n&&n(e),e&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach(function(t){t(e)}))})},st.prototype.confirmTransition=function(e,t,n){var o=this,s=this.current,a=function(e){i(e)&&(o.errorCbs.length?o.errorCbs.forEach(function(t){t(e)}):(r(!1,"uncaught error during route navigation:"),console.error(e))),n&&n(e)};if(f(e,s)&&e.matched.length===s.matched.length)return this.ensureURL(),a();var l=me(this.current.matched,e.matched),u=l.updated,d=l.deactivated,c=l.activated,p=[].concat(ye(d),this.router.beforeHooks,ze(u),c.map(function(e){return e.beforeEnter}),de(c));this.pending=e;var h=function(t,n){if(o.pending!==e)return a();try{t(e,s,function(e){!1===e||i(e)?(o.ensureURL(!0),a(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(a(),"object"==typeof e&&e.replace?o.replace(e):o.push(e)):n(e)})}catch(e){a(e)}};ue(p,h,function(){var n=[];ue(we(c,n,function(){return o.current===e}).concat(o.router.resolveHooks),h,function(){if(o.pending!==e)return a();o.pending=null,t(e),o.router.app&&o.router.app.$nextTick(function(){n.forEach(function(e){e()})})})})},st.prototype.updateRoute=function(e){var t=this.current;this.current=e,this.cb&&this.cb(e),this.router.afterHooks.forEach(function(n){n&&n(e,t)})};var at=function(e){function t(t,n){var r=this;e.call(this,t,n);var i=t.options.scrollBehavior;i&&V();var o=Ee(this.base);window.addEventListener("popstate",function(e){var n=r.current,s=Ee(r.base);r.current===Ye&&s===o||r.transitionTo(s,function(e){i&&G(t,e,n,!0)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,function(e){ae(_(r.base+e.fullPath)),G(r.router,e,o,!1),t&&t(e)},n)},t.prototype.replace=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,function(e){le(_(r.base+e.fullPath)),G(r.router,e,o,!1),t&&t(e)},n)},t.prototype.ensureURL=function(e){if(Ee(this.base)!==this.current.fullPath){var t=_(this.base+this.current.fullPath);e?ae(t):le(t)}},t.prototype.getCurrentLocation=function(){return Ee(this.base)},t}(st),lt=function(e){function t(t,n,r){e.call(this,t,n),r&&Fe(this.base)||Ce()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this,t=this.router,n=t.options.scrollBehavior,r=nt&&n;r&&V(),window.addEventListener(nt?"popstate":"hashchange",function(){var t=e.current;Ce()&&e.transitionTo(Se(),function(n){r&&G(e.router,n,t,!0),nt||Te(n.fullPath)})})},t.prototype.push=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,function(e){Le(e.fullPath),G(r.router,e,o,!1),t&&t(e)},n)},t.prototype.replace=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,function(e){Te(e.fullPath),G(r.router,e,o,!1),t&&t(e)},n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;Se()!==t&&(e?Le(t):Te(t))},t.prototype.getCurrentLocation=function(){return Se()},t}(st),ut=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)},n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)},n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){t.index=n,t.updateRoute(r)})}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(st),dt=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=B(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!nt&&!1!==e.fallback,this.fallback&&(t="hash"),We||(t="abstract"),this.mode=t,t){case"history":this.history=new at(this,e.base);break;case"hash":this.history=new lt(this,e.base,this.fallback);break;case"abstract":this.history=new ut(this,e.base)}},ct={currentRoute:{configurable:!0}};dt.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},ct.currentRoute.get=function(){return this.history&&this.history.current},dt.prototype.init=function(e){var t=this;if(this.apps.push(e),!this.app){this.app=e;var n=this.history;if(n instanceof at)n.transitionTo(n.getCurrentLocation());else if(n instanceof lt){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(e){t.apps.forEach(function(t){t._route=e})})}},dt.prototype.beforeEach=function(e){return Re(this.beforeHooks,e)},dt.prototype.beforeResolve=function(e){return Re(this.resolveHooks,e)},dt.prototype.afterEach=function(e){return Re(this.afterHooks,e)},dt.prototype.onReady=function(e,t){this.history.onReady(e,t)},dt.prototype.onError=function(e){this.history.onError(e)},dt.prototype.push=function(e,t,n){this.history.push(e,t,n)},dt.prototype.replace=function(e,t,n){this.history.replace(e,t,n)},dt.prototype.go=function(e){this.history.go(e)},dt.prototype.back=function(){this.go(-1)},dt.prototype.forward=function(){this.go(1)},dt.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map(function(e){return Object.keys(e.components).map(function(t){return e.components[t]})})):[]},dt.prototype.resolve=function(e,t,n){var r=H(e,t||this.history.current,n,this),i=this.match(r,t),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:Me(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},dt.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==Ye&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(dt.prototype,ct),dt.install=z,dt.version="2.8.1",We&&window.Vue&&window.Vue.use(dt),t.a=dt},function(e,t,n){"use strict";function r(e){n(29)}var i=n(8),o=n(39),s=n(0),a=r,l=s(i.a,o.a,!1,a,null,null);t.a=l.exports},function(e,t,n){var r=n(30);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("3672d65c",r,!0,{})},function(e,t,n){t=e.exports=n(2)(!1),t.push([e.i,".markdown-section{max-width:950px}.markdown-section strong{color:#fff}.markdown-section table{display:table}button{padding:10px 20px;background:#314b5f;color:#fff;font-weight:700;border:none;border-radius:4px;margin-top:20px}.markdown-section td p{line-height:1.3rem;margin:.5em 0}.float{position:fixed;width:auto;height:30px;top:90px;right:64px;padding:5px 20px;border-radius:4px}a.float.doc-link{color:#aaa;border:1px dashed #aaa;text-decoration:none;text-transform:uppercase}a.float:hover{color:#42b983;border:1px dashed #42b983}",""])},function(e,t){e.exports=function(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],s=o[0],a=o[1],l=o[2],u=o[3],d={id:e+":"+i,css:a,media:l,sourceMap:u};r[s]?r[s].parts.push(d):n.push(r[s]={id:s,parts:[d]})}return n}},function(e,t,n){"use strict";function r(e){n(33)}var i=n(9),o=n(35),s=n(0),a=r,l=s(i.a,o.a,!1,a,null,null);t.a=l.exports},function(e,t,n){var r=n(34);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("403769be",r,!0,{})},function(e,t,n){t=e.exports=n(2)(!1),t.push([e.i,".border{border:none;border-bottom:1px solid rgba(0,0,0,.07)}.sidebar li{margin:2px 0 2px 15px}.sideBtn{cursor:pointer;transition:.3s;padding:10px;margin:20px 0}.github{background:#747b8b;padding:10px 48px;margin:40px 0}.github:hover{background:#00b782}.sidebar .sideBtn a{color:#fff;letter-spacing:.1rem}.cause .sideBtn a{font-weight:500}.sidebar .github a{font-weight:700}.sidebar .sideBtn a:hover{text-decoration:none}.fa{vertical-align:middle;margin-right:10px}.center-c{display:flex;align-items:center;justify-content:center}",""])},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("aside",{staticClass:"sidebar"},[e._m(0),e._v(" "),n("hr",{staticClass:"border"}),e._v(" "),n("div",{staticClass:"sidebar-nav"},[n("ul",[e._l(e.sections,function(t){return n("li",{key:t.title},[n("p",[e._v(e._s(t.title))]),e._v(" "),n("ul",e._l(t.pages,function(t){return n("router-link",{key:t.title,attrs:{tag:"li","active-class":"active",to:t.to}},[n("a",[e._v(e._s(t.title))])])}))])}),e._v(" "),e._m(1),e._v(" "),e._m(2)],2)])])},i=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("h1",[r("a",{staticClass:"app-name-link",attrs:{"data-nosearch":"",href:"/"}},[r("img",{attrs:{src:n(36)}})])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",[n("a",{attrs:{href:"https://github.com/rowanwins/vue-dropzone"}},[n("button",{staticClass:"sideBtn github"},[n("i",{staticClass:"fa fa-github fa-2x",attrs:{"aria-hidden":"true"}}),e._v(" "),n("span",[e._v("GITHUB")])])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",[n("a",{attrs:{href:"https://www.worldvision.com.au/give/donate/make-a-general-donation"}},[n("img",{attrs:{src:"https://www.dropbox.com/s/f6086lensozvp9i/cause.jpg?dl=1"}})])])}],o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){e.exports=n.p+"vue2-dropzone1.png?93d2bf4221b4c9873561d5644497b414"},function(e,t,n){"use strict";var r=n(38),i=n(0),o=i(null,r.a,!1,null,null,null);t.a=o.exports},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("footer",[n("hr"),e._v(" "),n("span",[e._v("©2017 Rowan Winsemius & Vaibhavraj Roham")])])}],o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("main",[n("app-sidebar"),e._v(" "),n("section",{staticClass:"content",staticStyle:{overflow:"auto"}},[n("article",{staticClass:"markdown-section"},[n("router-view"),e._v(" "),n("app-footer")],1)])],1)},i=[],o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";var r=n(41),i=n(47),o=n(50),s=n(61),a=n(65),l=n(69),u=n(71),d=n(73),c=n(75),p=n(79);t.a=[{path:"/installation",component:r.a},{path:"/props",component:i.a},{path:"/events",component:u.a},{path:"/methods",component:d.a},{path:"/custom-preview",component:p.a},{path:"/demo",component:o.a},{path:"/iconDemo",component:a.a},{path:"/manual",component:s.a},{path:"/additionalParams",component:l.a},{path:"/aws-s3-upload",component:c.a},{path:"*",redirect:"/installation"}]},function(e,t,n){"use strict";function r(e){n(42)}var i=n(10),o=n(46),s=n(0),a=r,l=s(i.a,o.a,!1,a,null,null);t.a=l.exports},function(e,t,n){var r=n(43);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("b5988398",r,!0,{})},function(e,t,n){t=e.exports=n(2)(!1),t.push([e.i,".center-c{display:flex;align-items:center;justify-content:center;margin-bottom:10px}",""])},function(e,t,n){"use strict";t.a={repository:"https://github.com/rowanwins/vue-dropzone",branch:"master",docSource:"docs/src/pages"}},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.link?n("a",{staticClass:"float doc-link",attrs:{href:"#",href:e.url,target:"_blank"}},[e._v("\n\t\tEdit on Github\n\t")]):e._e()])},i=[],o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._m(0),n("br"),e._v(" "),n("hr"),e._v(" "),n("h1",[e._v("Installation & Usage")]),e._v(" "),e._m(1),e._v(" "),n("p",{domProps:{innerHTML:e._s(e.marked(e.example))}}),e._v(" "),n("h2",[e._v("Alternate installation")]),e._v(" "),n("p",[e._v("If required you clone the Git repository of this library and build it.")]),e._v(" "),e._m(2),e._v(" "),n("edit-doc",{attrs:{link:"Installation.vue"}})],1)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"center-c"},[n("a",{attrs:{href:"https://nodei.co/npm/vue2-dropzone/"}},[n("img",{attrs:{src:"https://nodei.co/npm/vue2-dropzone.png?downloads=true&downloadRank=true&stars=true"}})])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("pre",{pre:!0,attrs:{"data-lang":"bash"}},[n("code",{attrs:{class:"lang-bash"}},[e._v("npm install vue2-dropzone")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("pre",{pre:!0,attrs:{"data-lang":"bash"}},[n("code",{attrs:{class:"lang-bash"}},[e._v("git clone https://github.com/rowanwins/vue-dropzone.git\ncd vue-dropzone\nnpm install\nnpm run build")])])}],o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";var r=n(12),i=n(49),o=n(0),s=o(r.a,i.a,!1,null,null,null);t.a=s.exports},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",[n("thead",[n("tr",e._l(e.headers,function(t){return n("th",{key:t},[e._v(e._s(t))])}))]),e._v(" "),n("tbody",e._l(e.rows,function(t,r){return n("tr",{key:r},e._l(t,function(t,r){return n("td",{key:r,domProps:{innerHTML:e._s(e.marked(t))}})}))}))])},i=[],o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h1",[e._v("Props")]),e._v(" "),n("p",[e._v("The following props are available for the Vue2-Dropzone component.")]),e._v(" "),n("simple-table",{attrs:{headers:["Prop Name","Type","Description","Required"],rows:e.props}}),e._v(" "),n("edit-doc",{attrs:{link:"Props.vue"}})],1)},i=[],o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";function r(e){n(51)}var i=n(14),o=n(60),s=n(0),a=r,l=s(i.a,o.a,!1,a,"data-v-408562a6",null);t.a=l.exports},function(e,t,n){var r=n(52);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("babdd7c0",r,!0,{})},function(e,t,n){t=e.exports=n(2)(!1),t.push([e.i,'.active[data-v-408562a6]{color:#78cb5b}.inactive[data-v-408562a6]{color:#fff000}.fa.fa-circle[data-v-408562a6]:before{content:"\\25C9"}td[data-v-408562a6]:first-child,td[data-v-408562a6]:nth-child(3),th[data-v-408562a6]{text-align:center}td[data-v-408562a6]:nth-child(2){padding-left:40px}.event-active[data-v-408562a6]{font-weight:700;color:#78cb5b;text-transform:uppercase;letter-spacing:1.2px}',""])},function(e,t,n){"use strict";function r(e){n(54)}var i=n(15),o=n(59),s=n(0),a=r,l=s(i.a,o.a,!1,a,null,null);t.a=l.exports},function(e,t,n){var r=n(55);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("b88b36f6",r,!0,{})},function(e,t,n){t=e.exports=n(2)(!1),t.push([e.i,'@-webkit-keyframes passing-through{0%{opacity:0;-webkit-transform:translateY(40px);-moz-transform:translateY(40px);-ms-transform:translateY(40px);-o-transform:translateY(40px);transform:translateY(40px)}30%,70%{opacity:1;-webkit-transform:translateY(0);-moz-transform:translateY(0);-ms-transform:translateY(0);-o-transform:translateY(0);transform:translateY(0)}to{opacity:0;-webkit-transform:translateY(-40px);-moz-transform:translateY(-40px);-ms-transform:translateY(-40px);-o-transform:translateY(-40px);transform:translateY(-40px)}}@-moz-keyframes passing-through{0%{opacity:0;-webkit-transform:translateY(40px);-moz-transform:translateY(40px);-ms-transform:translateY(40px);-o-transform:translateY(40px);transform:translateY(40px)}30%,70%{opacity:1;-webkit-transform:translateY(0);-moz-transform:translateY(0);-ms-transform:translateY(0);-o-transform:translateY(0);transform:translateY(0)}to{opacity:0;-webkit-transform:translateY(-40px);-moz-transform:translateY(-40px);-ms-transform:translateY(-40px);-o-transform:translateY(-40px);transform:translateY(-40px)}}@keyframes passing-through{0%{opacity:0;-webkit-transform:translateY(40px);-moz-transform:translateY(40px);-ms-transform:translateY(40px);-o-transform:translateY(40px);transform:translateY(40px)}30%,70%{opacity:1;-webkit-transform:translateY(0);-moz-transform:translateY(0);-ms-transform:translateY(0);-o-transform:translateY(0);transform:translateY(0)}to{opacity:0;-webkit-transform:translateY(-40px);-moz-transform:translateY(-40px);-ms-transform:translateY(-40px);-o-transform:translateY(-40px);transform:translateY(-40px)}}@-webkit-keyframes slide-in{0%{opacity:0;-webkit-transform:translateY(40px);-moz-transform:translateY(40px);-ms-transform:translateY(40px);-o-transform:translateY(40px);transform:translateY(40px)}30%{opacity:1;-webkit-transform:translateY(0);-moz-transform:translateY(0);-ms-transform:translateY(0);-o-transform:translateY(0);transform:translateY(0)}}@-moz-keyframes slide-in{0%{opacity:0;-webkit-transform:translateY(40px);-moz-transform:translateY(40px);-ms-transform:translateY(40px);-o-transform:translateY(40px);transform:translateY(40px)}30%{opacity:1;-webkit-transform:translateY(0);-moz-transform:translateY(0);-ms-transform:translateY(0);-o-transform:translateY(0);transform:translateY(0)}}@keyframes slide-in{0%{opacity:0;-webkit-transform:translateY(40px);-moz-transform:translateY(40px);-ms-transform:translateY(40px);-o-transform:translateY(40px);transform:translateY(40px)}30%{opacity:1;-webkit-transform:translateY(0);-moz-transform:translateY(0);-ms-transform:translateY(0);-o-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes pulse{0%{-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}10%{-webkit-transform:scale(1.1);-moz-transform:scale(1.1);-ms-transform:scale(1.1);-o-transform:scale(1.1);transform:scale(1.1)}20%{-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}}@-moz-keyframes pulse{0%{-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}10%{-webkit-transform:scale(1.1);-moz-transform:scale(1.1);-ms-transform:scale(1.1);-o-transform:scale(1.1);transform:scale(1.1)}20%{-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}}@keyframes pulse{0%{-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}10%{-webkit-transform:scale(1.1);-moz-transform:scale(1.1);-ms-transform:scale(1.1);-o-transform:scale(1.1);transform:scale(1.1)}20%{-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);-o-transform:scale(1);transform:scale(1)}}.dropzone,.dropzone *{box-sizing:border-box}.dropzone{min-height:150px;border:2px solid rgba(0,0,0,.3);background:#fff;padding:20px}.dropzone.dz-clickable{cursor:pointer}.dropzone.dz-clickable *{cursor:default}.dropzone.dz-clickable .dz-message,.dropzone.dz-clickable .dz-message *{cursor:pointer}.dropzone.dz-started .dz-message{display:none}.dropzone.dz-drag-hover{border-style:solid}.dropzone.dz-drag-hover .dz-message{opacity:.5}.dropzone .dz-message{text-align:center;margin:2em 0}.dropzone .dz-preview{position:relative;display:inline-block;vertical-align:top;margin:16px;min-height:100px}.dropzone .dz-preview:hover{z-index:1000}.dropzone .dz-preview.dz-file-preview .dz-image{border-radius:20px;background:#999;background:linear-gradient(180deg,#eee,#ddd)}.dropzone .dz-preview.dz-file-preview .dz-details{opacity:1}.dropzone .dz-preview.dz-image-preview{background:#fff}.dropzone .dz-preview.dz-image-preview .dz-details{-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;-ms-transition:opacity .2s linear;-o-transition:opacity .2s linear;transition:opacity .2s linear}.dropzone .dz-preview .dz-remove{font-size:14px;text-align:center;display:block;cursor:pointer;border:none}.dropzone .dz-preview .dz-remove:hover{text-decoration:underline}.dropzone .dz-preview:hover .dz-details{opacity:1}.dropzone .dz-preview .dz-details{z-index:20;position:absolute;top:0;left:0;opacity:0;font-size:13px;min-width:100%;max-width:100%;padding:2em 1em;text-align:center;color:rgba(0,0,0,.9);line-height:150%}.dropzone .dz-preview .dz-details .dz-size{margin-bottom:1em;font-size:16px}.dropzone .dz-preview .dz-details .dz-filename{white-space:nowrap}.dropzone .dz-preview .dz-details .dz-filename:hover span{border:1px solid hsla(0,0%,78%,.8);background-color:hsla(0,0%,100%,.8)}.dropzone .dz-preview .dz-details .dz-filename:not(:hover){overflow:hidden;text-overflow:ellipsis}.dropzone .dz-preview .dz-details .dz-filename:not(:hover) span{border:1px solid transparent}.dropzone .dz-preview .dz-details .dz-filename span,.dropzone .dz-preview .dz-details .dz-size span{background-color:hsla(0,0%,100%,.4);padding:0 .4em;border-radius:3px}.dropzone .dz-preview:hover .dz-image img{-webkit-transform:scale(1.05);-moz-transform:scale(1.05);-ms-transform:scale(1.05);-o-transform:scale(1.05);transform:scale(1.05);-webkit-filter:blur(8px);filter:blur(8px)}.dropzone .dz-preview .dz-image{border-radius:20px;overflow:hidden;width:120px;height:120px;position:relative;display:block;z-index:10}.dropzone .dz-preview .dz-image img{display:block}.dropzone .dz-preview.dz-success .dz-success-mark{-webkit-animation:passing-through 3s cubic-bezier(.77,0,.175,1);-moz-animation:passing-through 3s cubic-bezier(.77,0,.175,1);-ms-animation:passing-through 3s cubic-bezier(.77,0,.175,1);-o-animation:passing-through 3s cubic-bezier(.77,0,.175,1);animation:passing-through 3s cubic-bezier(.77,0,.175,1)}.dropzone .dz-preview.dz-error .dz-error-mark{opacity:1;-webkit-animation:slide-in 3s cubic-bezier(.77,0,.175,1);-moz-animation:slide-in 3s cubic-bezier(.77,0,.175,1);-ms-animation:slide-in 3s cubic-bezier(.77,0,.175,1);-o-animation:slide-in 3s cubic-bezier(.77,0,.175,1);animation:slide-in 3s cubic-bezier(.77,0,.175,1)}.dropzone .dz-preview .dz-error-mark,.dropzone .dz-preview .dz-success-mark{pointer-events:none;opacity:0;z-index:500;position:absolute;display:block;top:50%;left:50%;margin-left:-27px;margin-top:-27px}.dropzone .dz-preview .dz-error-mark svg,.dropzone .dz-preview .dz-success-mark svg{display:block;width:54px;height:54px}.dropzone .dz-preview.dz-processing .dz-progress{opacity:1;-webkit-transition:all .2s linear;-moz-transition:all .2s linear;-ms-transition:all .2s linear;-o-transition:all .2s linear;transition:all .2s linear}.dropzone .dz-preview.dz-complete .dz-progress{opacity:0;-webkit-transition:opacity .4s ease-in;-moz-transition:opacity .4s ease-in;-ms-transition:opacity .4s ease-in;-o-transition:opacity .4s ease-in;transition:opacity .4s ease-in}.dropzone .dz-preview:not(.dz-processing) .dz-progress{-webkit-animation:pulse 6s ease infinite;-moz-animation:pulse 6s ease infinite;-ms-animation:pulse 6s ease infinite;-o-animation:pulse 6s ease infinite;animation:pulse 6s ease infinite}.dropzone .dz-preview .dz-progress{opacity:1;z-index:1000;pointer-events:none;position:absolute;height:16px;left:50%;top:50%;margin-top:-8px;width:80px;margin-left:-40px;background:hsla(0,0%,100%,.9);-webkit-transform:scale(1);border-radius:8px;overflow:hidden}.dropzone .dz-preview .dz-progress .dz-upload{background:#333;background:linear-gradient(180deg,#666,#444);position:absolute;top:0;left:0;bottom:0;width:0;-webkit-transition:width .3s ease-in-out;-moz-transition:width .3s ease-in-out;-ms-transition:width .3s ease-in-out;-o-transition:width .3s ease-in-out;transition:width .3s ease-in-out}.dropzone .dz-preview.dz-error .dz-error-message{display:block}.dropzone .dz-preview.dz-error:hover .dz-error-message{opacity:1;pointer-events:auto}.dropzone .dz-preview .dz-error-message{pointer-events:none;z-index:1000;position:absolute;display:block;display:none;opacity:0;-webkit-transition:opacity .3s ease;-moz-transition:opacity .3s ease;-ms-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease;border-radius:8px;font-size:13px;top:130px;left:-10px;width:140px;background:#be2626;background:linear-gradient(180deg,#be2626,#a92222);padding:.5em 1.2em;color:#fff}.dropzone .dz-preview .dz-error-message:after{content:"";position:absolute;top:-6px;left:64px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #be2626}.vue-dropzone{border:2px solid #e5e5e5;font-family:Arial,sans-serif;letter-spacing:.2px;color:#777;transition:background-color .2s linear}.vue-dropzone:hover{background-color:#f6f6f6}.vue-dropzone i{color:#ccc}.vue-dropzone .dz-preview .dz-image{border-radius:0;width:100%;height:100%}.vue-dropzone .dz-preview .dz-image img:not([src]){width:200px;height:200px}.vue-dropzone .dz-preview .dz-image:hover img{transform:none;-webkit-filter:none}.vue-dropzone .dz-preview .dz-details{bottom:0;top:0;color:#fff;background-color:rgba(33,150,243,.8);transition:opacity .2s linear;text-align:left}.vue-dropzone .dz-preview .dz-details .dz-filename{overflow:hidden}.vue-dropzone .dz-preview .dz-details .dz-filename span,.vue-dropzone .dz-preview .dz-details .dz-size span{background-color:transparent}.vue-dropzone .dz-preview .dz-details .dz-filename:not(:hover) span{border:none}.vue-dropzone .dz-preview .dz-details .dz-filename:hover span{background-color:transparent;border:none}.vue-dropzone .dz-preview .dz-progress .dz-upload{background:#ccc}.vue-dropzone .dz-preview .dz-remove{position:absolute;z-index:30;color:#fff;margin-left:15px;padding:10px;top:inherit;bottom:15px;border:2px solid #fff;text-decoration:none;text-transform:uppercase;font-size:.8rem;font-weight:800;letter-spacing:1.1px;opacity:0}.vue-dropzone .dz-preview:hover .dz-remove{opacity:1}.vue-dropzone .dz-preview .dz-error-mark,.vue-dropzone .dz-preview .dz-success-mark{margin-left:auto;margin-top:auto;width:100%;top:35%;left:0}.vue-dropzone .dz-preview .dz-error-mark svg,.vue-dropzone .dz-preview .dz-success-mark svg{margin-left:auto;margin-right:auto}.vue-dropzone .dz-preview .dz-error-message{top:15%;margin-left:auto;margin-right:auto;left:0;width:100%}.vue-dropzone .dz-preview .dz-error-message:after{bottom:-6px;top:auto;border-top:6px solid #a92222;border-bottom:none}',""])},function(e,t,n){"use strict";var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.a={getSignedURL:function(e,t){var n={filePath:e.name,contentType:e.type};return new Promise(function(i,o){var s=new FormData,a=new XMLHttpRequest,l="function"==typeof t.signingURL?t.signingURL(e):t.signingURL;a.open("POST",l),a.onload=function(){200==a.status?i(JSON.parse(a.response)):o(a.statusText)},a.onerror=function(e){console.error("Network Error : Could not send request to AWS (Maybe CORS errors)"),o(e)},Object.entries(t.headers||{}).forEach(function(e){var t=r(e,2),n=t[0],i=t[1];a.setRequestHeader(n,i)}),n=Object.assign(n,t.params||{}),Object.entries(n).forEach(function(e){var t=r(e,2),n=t[0],i=t[1];s.append(n,i)}),a.send(s)})},sendFile:function(e,t){var n=new FormData;return this.getSignedURL(e,t).then(function(t){var r=t.signature;return Object.keys(r).forEach(function(e){n.append(e,r[e])}),n.append("file",e),new Promise(function(e,r){var i=new XMLHttpRequest;i.open("POST",t.postEndpoint),i.onload=function(){if(201==i.status){var t=(new window.DOMParser).parseFromString(i.response,"text/xml"),n=t.firstChild.children[0].innerHTML;e({success:!0,message:n})}else{var t=(new window.DOMParser).parseFromString(i.response,"text/xml"),o=t.firstChild.children[0].innerHTML;r({success:!1,message:o+". Request is marked as resolved when returns as status 201"})}},i.onerror=function(e){var t=(new window.DOMParser).parseFromString(i.response,"text/xml"),n=t.firstChild.children[1].innerHTML;r({success:!1,message:n})},i.send(n)})}).catch(function(e){return e})}}},function(e,t,n){"use strict";(function(e){function t(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return void 0!==e&&null!==e?t(e):void 0}function o(e,t,n){return void 0!==e&&null!==e&&"function"==typeof e[t]?n(e,t):void 0}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(){function e(){r(this,e)}return s(e,[{key:"on",value:function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this}},{key:"emit",value:function(e){this._callbacks=this._callbacks||{};var t=this._callbacks[e];if(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(var o=t,s=0,o=o;;){var a;if(s>=o.length)break;a=o[s++];a.apply(this,r)}}return this}},{key:"off",value:function(e,t){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(1===arguments.length)return delete this._callbacks[e],this;for(var r=0;r<n.length;r++){if(n[r]===t){n.splice(r,1);break}}return this}}]),e}(),l=function(e){function l(e,n){r(this,l);var i=t(this,(l.__proto__||Object.getPrototypeOf(l)).call(this)),o=void 0,s=void 0;if(i.element=e,i.version=l.version,i.defaultOptions.previewTemplate=i.defaultOptions.previewTemplate.replace(/\n*/g,""),i.clickableElements=[],i.listeners=[],i.files=[],"string"==typeof i.element&&(i.element=document.querySelector(i.element)),!i.element||null==i.element.nodeType)throw new Error("Invalid dropzone element.");if(i.element.dropzone)throw new Error("Dropzone already attached.");l.instances.push(i),i.element.dropzone=i;var a=null!=(s=l.optionsForElement(i.element))?s:{};if(i.options=l.extend({},i.defaultOptions,a,null!=n?n:{}),i.options.forceFallback||!l.isBrowserSupported()){var u;return u=i.options.fallback.call(i),t(i,u)}if(null==i.options.url&&(i.options.url=i.element.getAttribute("action")),!i.options.url)throw new Error("No URL provided.");if(i.options.acceptedFiles&&i.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(i.options.uploadMultiple&&i.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return i.options.acceptedMimeTypes&&(i.options.acceptedFiles=i.options.acceptedMimeTypes,delete i.options.acceptedMimeTypes),null!=i.options.renameFilename&&(i.options.renameFile=function(e){return i.options.renameFilename.call(i,e.name,e)}),i.options.method=i.options.method.toUpperCase(),(o=i.getExistingFallback())&&o.parentNode&&o.parentNode.removeChild(o),!1!==i.options.previewsContainer&&(i.options.previewsContainer?i.previewsContainer=l.getElement(i.options.previewsContainer,"previewsContainer"):i.previewsContainer=i.element),i.options.clickable&&(!0===i.options.clickable?i.clickableElements=[i.element]:i.clickableElements=l.getElements(i.options.clickable,"clickable")),i.init(),i}return n(l,e),s(l,null,[{key:"initClass",value:function(){this.prototype.Emitter=a,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,timeout:3e4,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(e,t,n){if(n)return{dzuuid:n.file.upload.uuid,dzchunkindex:n.index,dztotalfilesize:n.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:n.file.upload.totalChunkCount,dzchunkbyteoffset:n.index*this.options.chunkSize}},accept:function(e,t){return t()},chunksUploaded:function(e,t){t()},fallback:function(){var e=void 0;this.element.className=this.element.className+" dz-browser-not-supported";for(var t=this.element.getElementsByTagName("div"),n=0,t=t;;){var r;if(n>=t.length)break;r=t[n++];var i=r;if(/(^| )dz-message($| )/.test(i.className)){e=i,i.className="dz-message";break}}e||(e=l.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(e));var o=e.getElementsByTagName("span")[0];return o&&(null!=o.textContent?o.textContent=this.options.dictFallbackMessage:null!=o.innerText&&(o.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e,t,n,r){var i={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},o=e.width/e.height;null==t&&null==n?(t=i.srcWidth,n=i.srcHeight):null==t?t=n*o:null==n&&(n=t/o),t=Math.min(t,i.srcWidth),n=Math.min(n,i.srcHeight);var s=t/n;if(i.srcWidth>t||i.srcHeight>n)if("crop"===r)o>s?(i.srcHeight=e.height,i.srcWidth=i.srcHeight*s):(i.srcWidth=e.width,i.srcHeight=i.srcWidth/s);else{if("contain"!==r)throw new Error("Unknown resizeMethod '"+r+"'");o>s?n=t/o:t=n*o}return i.srcX=(e.width-i.srcWidth)/2,i.srcY=(e.height-i.srcHeight)/2,i.trgWidth=t,i.trgHeight=n,i},transformFile:function(e,t){return(this.options.resizeWidth||this.options.resizeHeight)&&e.type.match(/image.*/)?this.resizeImage(e,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,t):t(e)},previewTemplate:'<div class="dz-preview dz-file-preview">\n  <div class="dz-image"><img data-dz-thumbnail /></div>\n  <div class="dz-details">\n    <div class="dz-size"><span data-dz-size></span></div>\n    <div class="dz-filename"><span data-dz-name></span></div>\n  </div>\n  <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n  <div class="dz-error-message"><span data-dz-errormessage></span></div>\n  <div class="dz-success-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n      <title>Check</title>\n      <defs></defs>\n      <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n        <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>\n      </g>\n    </svg>\n  </div>\n  <div class="dz-error-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n      <title>Error</title>\n      <defs></defs>\n      <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n        <g id="Check-+-Oval-2" sketch:type="MSLayerGroup" stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n          <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" sketch:type="MSShapeGroup"></path>\n        </g>\n      </g>\n    </svg>\n  </div>\n</div>',drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:function(e){},dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:function(e){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var t=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){e.previewElement=l.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement);for(var n=e.previewElement.querySelectorAll("[data-dz-name]"),r=0,n=n;;){var i;if(r>=n.length)break;i=n[r++];var o=i;o.textContent=e.name}for(var s=e.previewElement.querySelectorAll("[data-dz-size]"),a=0,s=s;!(a>=s.length);)o=s[a++],o.innerHTML=this.filesize(e.size);this.options.addRemoveLinks&&(e._removeLink=l.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'+this.options.dictRemoveFile+"</a>"),e.previewElement.appendChild(e._removeLink));for(var u=function(n){return n.preventDefault(),n.stopPropagation(),e.status===l.UPLOADING?l.confirm(t.options.dictCancelUploadConfirmation,function(){return t.removeFile(e)}):t.options.dictRemoveFileConfirmation?l.confirm(t.options.dictRemoveFileConfirmation,function(){return t.removeFile(e)}):t.removeFile(e)},d=e.previewElement.querySelectorAll("[data-dz-remove]"),c=0,d=d;;){var p;if(c>=d.length)break;p=d[c++];p.addEventListener("click",u)}}},removedfile:function(e){return null!=e.previewElement&&null!=e.previewElement.parentNode&&e.previewElement.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){if(e.previewElement){e.previewElement.classList.remove("dz-file-preview");for(var n=e.previewElement.querySelectorAll("[data-dz-thumbnail]"),r=0,n=n;;){var i;if(r>=n.length)break;i=n[r++];var o=i;o.alt=e.name,o.src=t}return setTimeout(function(){return e.previewElement.classList.add("dz-image-preview")},1)}},error:function(e,t){if(e.previewElement){e.previewElement.classList.add("dz-error"),"String"!=typeof t&&t.error&&(t=t.error);for(var n=e.previewElement.querySelectorAll("[data-dz-errormessage]"),r=0,n=n;;){var i;if(r>=n.length)break;i=n[r++];i.textContent=t}}},errormultiple:function(){},processing:function(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.textContent=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(e,t,n){if(e.previewElement)for(var r=e.previewElement.querySelectorAll("[data-dz-uploadprogress]"),i=0,r=r;;){var o;if(i>=r.length)break;o=r[i++];var s=o;"PROGRESS"===s.nodeName?s.value=t:s.style.width=t+"%"}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(e){if(e.previewElement)return e.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(e){return this.emit("error",e,"Upload canceled.")},canceledmultiple:function(){},complete:function(e){if(e._removeLink&&(e._removeLink.textContent=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=n,o=0,i=i;;){var s;if(o>=i.length)break;s=i[o++];var a=s;for(var l in a){var u=a[l];e[l]=u}}return e}}]),s(l,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(e){return e.accepted}).map(function(e){return e})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(e){return!e.accepted}).map(function(e){return e})}},{key:"getFilesWithStatus",value:function(e){return this.files.filter(function(t){return t.status===e}).map(function(e){return e})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(l.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(l.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(l.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(e){return e.status===l.UPLOADING||e.status===l.QUEUED}).map(function(e){return e})}},{key:"init",value:function(){var e=this;if("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(l.createElement('<div class="dz-default dz-message"><span>'+this.options.dictDefaultMessage+"</span></div>")),this.clickableElements.length){!function t(){return e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null===e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!==e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!==e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",document.querySelector(e.options.hiddenInputContainer).appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",function(){var n=e.hiddenFileInput.files;if(n.length)for(var r=n,i=0,r=r;;){var o;if(i>=r.length)break;o=r[i++];var s=o;e.addFile(s)}return e.emit("addedfiles",n),t()})}()}this.URL=null!==window.URL?window.URL:window.webkitURL;for(var t=this.events,n=0,t=t;;){var r;if(n>=t.length)break;r=t[n++];var i=r;this.on(i,this.options[i])}this.on("uploadprogress",function(){return e.updateTotalUploadProgress()}),this.on("removedfile",function(){return e.updateTotalUploadProgress()}),this.on("canceled",function(t){return e.emit("complete",t)}),this.on("complete",function(t){if(0===e.getAddedFiles().length&&0===e.getUploadingFiles().length&&0===e.getQueuedFiles().length)return setTimeout(function(){return e.emit("queuecomplete")},0)});var o=function(e){return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(t){return e.emit("dragstart",t)},dragenter:function(t){return o(t),e.emit("dragenter",t)},dragover:function(t){var n=void 0;try{n=t.dataTransfer.effectAllowed}catch(e){}return t.dataTransfer.dropEffect="move"===n||"linkMove"===n?"move":"copy",o(t),e.emit("dragover",t)},dragleave:function(t){return e.emit("dragleave",t)},drop:function(t){return o(t),e.drop(t)},dragend:function(t){return e.emit("dragend",t)}}}],this.clickableElements.forEach(function(t){return e.listeners.push({element:t,events:{click:function(n){return(t!==e.element||n.target===e.element||l.elementInside(n.target,e.element.querySelector(".dz-message")))&&e.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,l.instances.splice(l.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var e=void 0,t=0,n=0;if(this.getActiveFiles().length){for(var r=this.getActiveFiles(),i=0,r=r;;){var o;if(i>=r.length)break;o=r[i++];var s=o;t+=s.upload.bytesSent,n+=s.upload.total}e=100*t/n}else e=100;return this.emit("totaluploadprogress",e,n,t)}},{key:"_getParamName",value:function(e){return"function"==typeof this.options.paramName?this.options.paramName(e):this.options.paramName+(this.options.uploadMultiple?"["+e+"]":"")}},{key:"_renameFile",value:function(e){return"function"!=typeof this.options.renameFile?e.name:this.options.renameFile(e)}},{key:"getFallbackForm",value:function(){var e=void 0,t=void 0;if(e=this.getExistingFallback())return e;var n='<div class="dz-fallback">';this.options.dictFallbackText&&(n+="<p>"+this.options.dictFallbackText+"</p>"),n+='<input type="file" name="'+this._getParamName(0)+'" '+(this.options.uploadMultiple?'multiple="multiple"':void 0)+' /><input type="submit" value="Upload!"></div>';var r=l.createElement(n);return"FORM"!==this.element.tagName?(t=l.createElement('<form action="'+this.options.url+'" enctype="multipart/form-data" method="'+this.options.method+'"></form>'),t.appendChild(r)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=t?t:r}},{key:"getExistingFallback",value:function(){for(var e=["div","form"],t=0;t<e.length;t++){var n,r=e[t];if(n=function(e){for(var t=e,n=0,t=t;;){var r;if(n>=t.length)break;r=t[n++];var i=r;if(/(^| )fallback($| )/.test(i.className))return i}}(this.element.getElementsByTagName(r)))return n}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(e){return function(){var t=[];for(var n in e.events){var r=e.events[n];t.push(e.element.addEventListener(n,r,!1))}return t}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(e){return function(){var t=[];for(var n in e.events){var r=e.events[n];t.push(e.element.removeEventListener(n,r,!1))}return t}()})}},{key:"disable",value:function(){var e=this;return this.clickableElements.forEach(function(e){return e.classList.remove("dz-clickable")}),this.removeEventListeners(),this.files.map(function(t){return e.cancelUpload(t)})}},{key:"enable",value:function(){return this.clickableElements.forEach(function(e){return e.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(e){var t=0,n="b";if(e>0){for(var r=["tb","gb","mb","kb","b"],i=0;i<r.length;i++){var o=r[i];if(e>=Math.pow(this.options.filesizeBase,4-i)/10){t=e/Math.pow(this.options.filesizeBase,4-i),n=o;break}}t=Math.round(10*t)/10}return"<strong>"+t+"</strong> "+this.options.dictFileSizeUnits[n]}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(e){if(e.dataTransfer){this.emit("drop",e);var t=e.dataTransfer.files;if(this.emit("addedfiles",t),t.length){var n=e.dataTransfer.items;n&&n.length&&null!=n[0].webkitGetAsEntry?this._addFilesFromItems(n):this.handleFiles(t)}}}},{key:"paste",value:function(e){if(null!=i(null!=e?e.clipboardData:void 0,function(e){return e.items})){this.emit("paste",e);var t=e.clipboardData.items;return t.length?this._addFilesFromItems(t):void 0}}},{key:"handleFiles",value:function(e){var t=this;return e.map(function(e){return t.addFile(e)})}},{key:"_addFilesFromItems",value:function(e){var t=this;return function(){for(var n=[],r=e,i=0,r=r;;){var o;if(i>=r.length)break;o=r[i++];var s,a=o;null!=a.webkitGetAsEntry&&(s=a.webkitGetAsEntry())?s.isFile?n.push(t.addFile(a.getAsFile())):s.isDirectory?n.push(t._addFilesFromDirectory(s,s.name)):n.push(void 0):null!=a.getAsFile&&(null==a.kind||"file"===a.kind)?n.push(t.addFile(a.getAsFile())):n.push(void 0)}return n}()}},{key:"_addFilesFromDirectory",value:function(e,t){var n=this,r=e.createReader(),i=function(e){return o(console,"log",function(t){return t.log(e)})};return function e(){return r.readEntries(function(r){if(r.length>0){for(var i=r,o=0,i=i;;){var s;if(o>=i.length)break;s=i[o++];var a=s;a.isFile?a.file(function(e){if(!n.options.ignoreHiddenFiles||"."!==e.name.substring(0,1))return e.fullPath=t+"/"+e.name,n.addFile(e)}):a.isDirectory&&n._addFilesFromDirectory(a,t+"/"+a.name)}e()}return null},i)}()}},{key:"accept",value:function(e,t){return e.size>1024*this.options.maxFilesize*1024?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):l.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)}},{key:"addFile",value:function(e){var t=this;return e.upload={uuid:l.uuidv4(),progress:0,total:e.size,bytesSent:0,filename:this._renameFile(e),chunked:this.options.chunking&&(this.options.forceChunking||e.size>this.options.chunkSize),totalChunkCount:Math.ceil(e.size/this.options.chunkSize)},this.files.push(e),e.status=l.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,function(n){return n?(e.accepted=!1,t._errorProcessing([e],n)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(e){for(var t=e,n=0,t=t;;){var r;if(n>=t.length)break;r=t[n++];var i=r;this.enqueueFile(i)}return null}},{key:"enqueueFile",value:function(e){var t=this;if(e.status!==l.ADDED||!0!==e.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(e.status=l.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return t.processQueue()},0)}},{key:"_enqueueThumbnail",value:function(e){var t=this;if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(e),setTimeout(function(){return t._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var e=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var t=this._thumbnailQueue.shift();return this.createThumbnail(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(n){return e.emit("thumbnail",t,n),e._processingThumbnail=!1,e._processThumbnailQueue()})}}},{key:"removeFile",value:function(e){if(e.status===l.UPLOADING&&this.cancelUpload(e),this.files=u(this.files,e),this.emit("removedfile",e),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(e){null==e&&(e=!1);for(var t=this.files.slice(),n=0,t=t;;){var r;if(n>=t.length)break;r=t[n++];var i=r;(i.status!==l.UPLOADING||e)&&this.removeFile(i)}return null}},{key:"resizeImage",value:function(e,t,n,r,i){var o=this;return this.createThumbnail(e,t,n,r,!1,function(t,n){if(null===n)return i(e);var r=o.options.resizeMimeType;null==r&&(r=e.type);var s=n.toDataURL(r,o.options.resizeQuality);return"image/jpeg"!==r&&"image/jpg"!==r||(s=h.restore(e.dataURL,s)),i(l.dataURItoBlob(s))})}},{key:"createThumbnail",value:function(e,t,n,r,i,o){var s=this,a=new FileReader;return a.onload=function(){return e.dataURL=a.result,"image/svg+xml"===e.type?void(null!=o&&o(a.result)):s.createThumbnailFromUrl(e,t,n,r,i,o)},a.readAsDataURL(e)}},{key:"createThumbnailFromUrl",value:function(e,t,n,r,i,o,s){var a=this,l=document.createElement("img");return s&&(l.crossOrigin=s),l.onload=function(){var s=function(e){return e(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&i&&(s=function(e){return EXIF.getData(l,function(){return e(EXIF.getTag(this,"Orientation"))})}),s(function(i){e.width=l.width,e.height=l.height;var s=a.options.resize.call(a,e,t,n,r),u=document.createElement("canvas"),d=u.getContext("2d");switch(u.width=s.trgWidth,u.height=s.trgHeight,i>4&&(u.width=s.trgHeight,u.height=s.trgWidth),i){case 2:d.translate(u.width,0),d.scale(-1,1);break;case 3:d.translate(u.width,u.height),d.rotate(Math.PI);break;case 4:d.translate(0,u.height),d.scale(1,-1);break;case 5:d.rotate(.5*Math.PI),d.scale(1,-1);break;case 6:d.rotate(.5*Math.PI),d.translate(0,-u.height);break;case 7:d.rotate(.5*Math.PI),d.translate(u.width,-u.height),d.scale(-1,1);break;case 8:d.rotate(-.5*Math.PI),d.translate(-u.width,0)}p(d,l,null!=s.srcX?s.srcX:0,null!=s.srcY?s.srcY:0,s.srcWidth,s.srcHeight,null!=s.trgX?s.trgX:0,null!=s.trgY?s.trgY:0,s.trgWidth,s.trgHeight);var c=u.toDataURL("image/png");if(null!=o)return o(c,u)})},null!=o&&(l.onerror=o),l.src=e.dataURL}},{key:"processQueue",value:function(){var e=this.options.parallelUploads,t=this.getUploadingFiles().length,n=t;if(!(t>=e)){var r=this.getQueuedFiles();if(r.length>0){if(this.options.uploadMultiple)return this.processFiles(r.slice(0,e-t));for(;n<e;){if(!r.length)return;this.processFile(r.shift()),n++}}}}},{key:"processFile",value:function(e){return this.processFiles([e])}},{key:"processFiles",value:function(e){for(var t=e,n=0,t=t;;){var r;if(n>=t.length)break;r=t[n++];var i=r;i.processing=!0,i.status=l.UPLOADING,this.emit("processing",i)}return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)}},{key:"_getFilesWithXhr",value:function(e){return this.files.filter(function(t){return t.xhr===e}).map(function(e){return e})}},{key:"cancelUpload",value:function(e){if(e.status===l.UPLOADING){for(var t=this._getFilesWithXhr(e.xhr),n=t,r=0,n=n;;){var i;if(r>=n.length)break;i=n[r++];i.status=l.CANCELED}void 0!==e.xhr&&e.xhr.abort();for(var o=t,s=0,o=o;;){var a;if(s>=o.length)break;a=o[s++];var u=a;this.emit("canceled",u)}this.options.uploadMultiple&&this.emit("canceledmultiple",t)}else e.status!==l.ADDED&&e.status!==l.QUEUED||(e.status=l.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(e){if("function"==typeof e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(this,n)}return e}},{key:"uploadFile",value:function(e){return this.uploadFiles([e])}},{key:"uploadFiles",value:function(e){var t=this;this._transformFiles(e,function(n){if(e[0].upload.chunked){var r=e[0],i=n[0],o=0;r.upload.chunks=[];var s=function(){for(var n=0;void 0!==r.upload.chunks[n];)n++;if(!(n>=r.upload.totalChunkCount)){o++;var s=n*t.options.chunkSize,a=Math.min(s+t.options.chunkSize,r.size),u={name:t._getParamName(0),data:i.webkitSlice?i.webkitSlice(s,a):i.slice(s,a),filename:r.upload.filename,chunkIndex:n};r.upload.chunks[n]={file:r,index:n,dataBlock:u,status:l.UPLOADING,progress:0,retries:0},t._uploadData(e,[u])}};if(r.upload.finishedChunkUpload=function(n){var i=!0;n.status=l.SUCCESS,n.dataBlock=null;for(var o=0;o<r.upload.totalChunkCount;o++){if(void 0===r.upload.chunks[o])return s();r.upload.chunks[o].status!==l.SUCCESS&&(i=!1)}i&&t.options.chunksUploaded(r,function(){t._finished(e,"",null)})},t.options.parallelChunkUploads)for(var a=0;a<r.upload.totalChunkCount;a++)s();else s()}else{for(var u=[],d=0;d<e.length;d++)u[d]={name:t._getParamName(d),data:n[d],filename:e[d].upload.filename};t._uploadData(e,u)}})}},{key:"_getChunk",value:function(e,t){for(var n=0;n<e.upload.totalChunkCount;n++)if(void 0!==e.upload.chunks[n]&&e.upload.chunks[n].xhr===t)return e.upload.chunks[n]}},{key:"_uploadData",value:function(e,t){for(var n=this,r=new XMLHttpRequest,i=e,o=0,i=i;;){var s;if(o>=i.length)break;s=i[o++];s.xhr=r}e[0].upload.chunked&&(e[0].upload.chunks[t[0].chunkIndex].xhr=r);var a=this.resolveOption(this.options.method,e),u=this.resolveOption(this.options.url,e);r.open(a,u,!0),r.timeout=this.resolveOption(this.options.timeout,e),r.withCredentials=!!this.options.withCredentials,r.onload=function(t){n._finishedUploading(e,r,t)},r.onerror=function(){n._handleUploadError(e,r)},(null!=r.upload?r.upload:r).onprogress=function(t){return n._updateFilesUploadProgress(e,r,t)};var d={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&l.extend(d,this.options.headers);for(var c in d){var p=d[c];p&&r.setRequestHeader(c,p)}var h=new FormData;if(this.options.params){var f=this.options.params;"function"==typeof f&&(f=f.call(this,e,r,e[0].upload.chunked?this._getChunk(e[0],r):null));for(var v in f){var m=f[v];h.append(v,m)}}for(var g=e,b=0,g=g;;){var y;if(b>=g.length)break;y=g[b++];var z=y;this.emit("sending",z,r,h)}this.options.uploadMultiple&&this.emit("sendingmultiple",e,r,h),this._addFormElementData(h);for(var k=0;k<t.length;k++){var w=t[k];h.append(w.name,w.data,w.filename)}this.submitRequest(r,h,e)}},{key:"_transformFiles",value:function(e,t){for(var n=this,r=[],i=0,o=0;o<e.length;o++)!function(o){n.options.transformFile.call(n,e[o],function(n){r[o]=n,++i===e.length&&t(r)})}(o)}},{key:"_addFormElementData",value:function(e){if("FORM"===this.element.tagName)for(var t=this.element.querySelectorAll("input, textarea, select, button"),n=0,t=t;;){var r;if(n>=t.length)break;r=t[n++];var i=r,o=i.getAttribute("name"),s=i.getAttribute("type");if(s&&(s=s.toLowerCase()),void 0!==o&&null!==o)if("SELECT"===i.tagName&&i.hasAttribute("multiple"))for(var a=i.options,l=0,a=a;;){var u;if(l>=a.length)break;u=a[l++];var d=u;d.selected&&e.append(o,d.value)}else(!s||"checkbox"!==s&&"radio"!==s||i.checked)&&e.append(o,i.value)}}},{key:"_updateFilesUploadProgress",value:function(e,t,n){var r=void 0;if(void 0!==n){if(r=100*n.loaded/n.total,e[0].upload.chunked){var i=e[0],o=this._getChunk(i,t);o.progress=r,o.total=n.total,o.bytesSent=n.loaded;i.upload.progress=0,i.upload.total=0,i.upload.bytesSent=0;for(var s=0;s<i.upload.totalChunkCount;s++)void 0!==i.upload.chunks[s]&&void 0!==i.upload.chunks[s].progress&&(i.upload.progress+=i.upload.chunks[s].progress,i.upload.total+=i.upload.chunks[s].total,i.upload.bytesSent+=i.upload.chunks[s].bytesSent);i.upload.progress=i.upload.progress/i.upload.totalChunkCount}else for(var a=e,l=0,a=a;;){var u;if(l>=a.length)break;u=a[l++];var d=u;d.upload.progress=r,d.upload.total=n.total,d.upload.bytesSent=n.loaded}for(var c=e,p=0,c=c;;){var h;if(p>=c.length)break;h=c[p++];var f=h;this.emit("uploadprogress",f,f.upload.progress,f.upload.bytesSent)}}else{var v=!0;r=100;for(var m=e,g=0,m=m;;){var b;if(g>=m.length)break;b=m[g++];var y=b;100===y.upload.progress&&y.upload.bytesSent===y.upload.total||(v=!1),y.upload.progress=r,y.upload.bytesSent=y.upload.total}if(v)return;for(var z=e,k=0,z=z;;){var w;if(k>=z.length)break;w=z[k++];var _=w;this.emit("uploadprogress",_,r,_.upload.bytesSent)}}}},{key:"_finishedUploading",value:function(e,t,n){var r=void 0;if(e[0].status!==l.CANCELED&&4===t.readyState){if("arraybuffer"!==t.responseType&&"blob"!==t.responseType&&(r=t.responseText,t.getResponseHeader("content-type")&&~t.getResponseHeader("content-type").indexOf("application/json")))try{r=JSON.parse(r)}catch(e){n=e,r="Invalid JSON response from server."}this._updateFilesUploadProgress(e),200<=t.status&&t.status<300?e[0].upload.chunked?e[0].upload.finishedChunkUpload(this._getChunk(e[0],t)):this._finished(e,r,n):this._handleUploadError(e,t,r)}}},{key:"_handleUploadError",value:function(e,t,n){if(e[0].status!==l.CANCELED){if(e[0].upload.chunked&&this.options.retryChunks){var r=this._getChunk(e[0],t);if(r.retries++<this.options.retryChunksLimit)return void this._uploadData(e,[r.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}for(var i=e,o=0,i=i;;){if(o>=i.length)break;i[o++];this._errorProcessing(e,n||this.options.dictResponseError.replace("{{statusCode}}",t.status),t)}}}},{key:"submitRequest",value:function(e,t,n){e.send(t)}},{key:"_finished",value:function(e,t,n){for(var r=e,i=0,r=r;;){var o;if(i>=r.length)break;o=r[i++];var s=o;s.status=l.SUCCESS,this.emit("success",s,t,n),this.emit("complete",s)}if(this.options.uploadMultiple&&(this.emit("successmultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(e,t,n){for(var r=e,i=0,r=r;;){var o;if(i>=r.length)break;o=r[i++];var s=o;s.status=l.ERROR,this.emit("error",s,t,n),this.emit("complete",s)}if(this.options.uploadMultiple&&(this.emit("errormultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}}]),l}(a);l.initClass(),l.version="5.3.0",l.options={},l.optionsForElement=function(e){return e.getAttribute("id")?l.options[d(e.getAttribute("id"))]:void 0},l.instances=[],l.forElement=function(e){if("string"==typeof e&&(e=document.querySelector(e)),null==(null!=e?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},l.autoDiscover=!0,l.discover=function(){var e=void 0;if(document.querySelectorAll)e=document.querySelectorAll(".dropzone");else{e=[];var t=function(t){return function(){for(var n=[],r=t,i=0,r=r;;){var o;if(i>=r.length)break;o=r[i++];var s=o;/(^| )dropzone($| )/.test(s.className)?n.push(e.push(s)):n.push(void 0)}return n}()};t(document.getElementsByTagName("div")),t(document.getElementsByTagName("form"))}return function(){for(var t=[],n=e,r=0,n=n;;){var i;if(r>=n.length)break;i=n[r++];var o=i;!1!==l.optionsForElement(o)?t.push(new l(o)):t.push(void 0)}return t}()},l.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],l.isBrowserSupported=function(){var e=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(var t=l.blacklistedBrowsers,n=0,t=t;;){var r;if(n>=t.length)break;r=t[n++];var i=r;i.test(navigator.userAgent)&&(e=!1)}else e=!1;else e=!1;return e},l.dataURItoBlob=function(e){for(var t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),i=new Uint8Array(r),o=0,s=t.length,a=0<=s;a?o<=s:o>=s;a?o++:o--)i[o]=t.charCodeAt(o);return new Blob([r],{type:n})};var u=function(e,t){return e.filter(function(e){return e!==t}).map(function(e){return e})},d=function(e){return e.replace(/[\-_](\w)/g,function(e){return e.charAt(1).toUpperCase()})};l.createElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},l.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},l.getElement=function(e,t){var n=void 0;if("string"==typeof e?n=document.querySelector(e):null!=e.nodeType&&(n=e),null==n)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector or a plain HTML element.");return n},l.getElements=function(e,t){var n=void 0,r=void 0;if(e instanceof Array){r=[];try{for(var i=e,o=0,i=i;!(o>=i.length);)n=i[o++],r.push(this.getElement(n,t))}catch(e){r=null}}else if("string"==typeof e){r=[];for(var s=document.querySelectorAll(e),a=0,s=s;!(a>=s.length);)n=s[a++],r.push(n)}else null!=e.nodeType&&(r=[e]);if(null==r||!r.length)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return r},l.confirm=function(e,t,n){return window.confirm(e)?t():null!=n?n():void 0},l.isValidFile=function(e,t){if(!t)return!0;t=t.split(",");for(var n=e.type,r=n.replace(/\/.*$/,""),i=t,o=0,i=i;;){var s;if(o>=i.length)break;s=i[o++];var a=s;if(a=a.trim(),"."===a.charAt(0)){if(-1!==e.name.toLowerCase().indexOf(a.toLowerCase(),e.name.length-a.length))return!0}else if(/\/\*$/.test(a)){if(r===a.replace(/\/.*$/,""))return!0}else if(n===a)return!0}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(e){return this.each(function(){return new l(this,e)})}),void 0!==e&&null!==e?e.exports=l:window.Dropzone=l,l.ADDED="added",l.QUEUED="queued",l.ACCEPTED=l.QUEUED,l.UPLOADING="uploading",l.PROCESSING=l.UPLOADING,l.CANCELED="canceled",l.ERROR="error",l.SUCCESS="success";var c=function(e){var t=(e.naturalWidth,e.naturalHeight),n=document.createElement("canvas");n.width=1,n.height=t;var r=n.getContext("2d");r.drawImage(e,0,0);for(var i=r.getImageData(1,0,1,t),o=i.data,s=0,a=t,l=t;l>s;){0===o[4*(l-1)+3]?a=l:s=l,l=a+s>>1}var u=l/t;return 0===u?1:u},p=function(e,t,n,r,i,o,s,a,l,u){var d=c(t);return e.drawImage(t,n,r,i,o,s,a,l,u/d)},h=function(){function e(){r(this,e)}return s(e,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(e){for(var t="",n=void 0,r=void 0,i="",o=void 0,s=void 0,a=void 0,l="",u=0;;)if(n=e[u++],r=e[u++],i=e[u++],o=n>>2,s=(3&n)<<4|r>>4,a=(15&r)<<2|i>>6,l=63&i,isNaN(r)?a=l=64:isNaN(i)&&(l=64),t=t+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(l),n=r=i="",o=s=a=l="",!(u<e.length))break;return t}},{key:"restore",value:function(e,t){if(!e.match("data:image/jpeg;base64,"))return t;var n=this.decode64(e.replace("data:image/jpeg;base64,","")),r=this.slice2Segments(n),i=this.exifManipulation(t,r);return"data:image/jpeg;base64,"+this.encode64(i)}},{key:"exifManipulation",value:function(e,t){var n=this.getExifArray(t),r=this.insertExif(e,n);return new Uint8Array(r)}},{key:"getExifArray",value:function(e){for(var t=void 0,n=0;n<e.length;){if(t=e[n],255===t[0]&225===t[1])return t;n++}return[]}},{key:"insertExif",value:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),r=this.decode64(n),i=r.indexOf(255,3),o=r.slice(0,i),s=r.slice(i),a=o;return a=a.concat(t),a=a.concat(s)}},{key:"slice2Segments",value:function(e){for(var t=0,n=[];;){var r;if(255===e[t]&218===e[t+1])break;if(255===e[t]&216===e[t+1])t+=2;else{r=256*e[t+2]+e[t+3];var i=t+r+2,o=e.slice(t,i);n.push(o),t=i}if(t>e.length)break}return n}},{key:"decode64",value:function(e){var t=void 0,n=void 0,r="",i=void 0,o=void 0,s=void 0,a="",l=0,u=[],d=/[^A-Za-z0-9\+\/\=]/g;for(d.exec(e)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");;)if(i=this.KEY_STR.indexOf(e.charAt(l++)),o=this.KEY_STR.indexOf(e.charAt(l++)),s=this.KEY_STR.indexOf(e.charAt(l++)),a=this.KEY_STR.indexOf(e.charAt(l++)),t=i<<2|o>>4,n=(15&o)<<4|s>>2,r=(3&s)<<6|a,u.push(t),64!==s&&u.push(n),64!==a&&u.push(r),t=n=r="",i=o=s=a="",!(l<e.length))break;return u}}]),e}();h.initClass();l._autoDiscoverFunction=function(){if(l.autoDiscover)return l.discover()},function(e,t){var n=!1,r=!0,i=e.document,o=i.documentElement,s=i.addEventListener?"addEventListener":"attachEvent",a=i.addEventListener?"removeEventListener":"detachEvent",l=i.addEventListener?"":"on",u=function r(o){if("readystatechange"!==o.type||"complete"===i.readyState)return("load"===o.type?e:i)[a](l+o.type,r,!1),!n&&(n=!0)?t.call(e,o.type||o):void 0};if("complete"!==i.readyState){if(i.createEventObject&&o.doScroll){try{r=!e.frameElement}catch(e){}r&&function e(){try{o.doScroll("left")}catch(t){return void setTimeout(e,50)}return u("poll")}()}i[s](l+"DOMContentLoaded",u,!1),i[s](l+"readystatechange",u,!1),e[s](l+"load",u,!1)}}(window,l._autoDiscoverFunction)}).call(t,n(58)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{ref:"dropzoneElement",class:{"vue-dropzone dropzone":e.includeStyling},attrs:{id:e.id}})},i=[],o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h1",[e._v("Demo")]),e._v(" "),n("p",[e._v("Below you can see Vue2-Dropzone in action.")]),e._v(" "),n("vue-dropzone",{ref:"myVueDropzone",attrs:{id:"dropzone",options:e.dropzoneOptions},on:{"vdropzone-file-added":e.vfileAdded,"vdropzone-success":e.vsuccess,"vdropzone-error":e.verror,"vdropzone-removed-file":e.vremoved,"vdropzone-sending":e.vsending,"vdropzone-success-multiple":e.vsuccessMuliple,"vdropzone-sending-multiple":e.vsendingMuliple,"vdropzone-queue-complete":e.vqueueComplete,"vdropzone-total-upload-progress":e.vprogress,"vdropzone-mounted":e.vmounted,"vdropzone-drop":e.vddrop,"vdropzone-drag-start":e.vdstart,"vdropzone-drag-end":e.vdend,"vdropzone-drag-enter":e.vdenter,"vdropzone-drag-over":e.vdover,"vdropzone-drag-leave":e.vdleave}}),e._v(" "),n("h3",[e._v("Events")]),e._v(" "),n("table",[e._m(0),e._v(" "),n("tbody",[n("tr",{class:{"event-active":e.isMounted}},[n("td",[e._v("1")]),e._v(" "),n("td",[e._v("vdropzone-mounted()")]),e._v(" "),n("td",[n("i",{staticClass:"fa fa-circle",class:{active:e.isMounted}})])]),e._v(" "),n("tr",{class:{"event-active":e.fileAdded}},[n("td",[e._v("2")]),e._v(" "),e._m(1),e._v(" "),n("td",[n("i",{staticClass:"fa fa-circle",class:{active:e.fileAdded}})])]),e._v(" "),n("tr",{class:{"event-active":e.filesAdded}},[n("td",[e._v("3")]),e._v(" "),e._m(2),e._v(" "),n("td",[n("i",{staticClass:"fa fa-circle",class:{active:e.filesAdded}})])]),e._v(" "),n("tr",{class:{"event-active":e.success}},[n("td",[e._v("4")]),e._v(" "),e._m(3),e._v(" "),n("td",[n("i",{staticClass:"fa fa-circle",class:{active:e.success}})])]),e._v(" "),n("tr",{class:{"event-active":e.error}},[n("td",[e._v("5")]),e._v(" "),e._m(4),e._v(" "),n("td",[n("i",{staticClass:"fa fa-circle",class:{active:e.error}})])]),e._v(" "),n("tr",{class:{"event-active":e.removedFile}},[n("td",[e._v("6")]),e._v(" "),e._m(5),e._v(" "),n("td",[n("i",{staticClass:"fa fa-circle",class:{active:e.removedFile}})])]),e._v(" "),n("tr",{class:{"event-active":e.sending}},[n("td",[e._v("7")]),e._v(" "),e._m(6),e._v(" "),n("td",[n("i",{staticClass:"fa fa-circle",class:{active:e.sending}})])]),e._v(" "),n("tr",{class:{"event-active":e.successMultiple}},[n("td",[e._v("8")]),e._v(" "),e._m(7),e._v(" "),n("td",[n("i",{staticClass:"fa fa-circle",class:{active:e.successMultiple}})])]),e._v(" "),n("tr",{class:{"event-active":e.sendingMultiple}},[n("td",[e._v("9")]),e._v(" "),e._m(8),e._v(" "),n("td",[n("i",{staticClass:"fa fa-circle",class:{active:e.sendingMultiple}})])]),e._v(" "),n("tr",{class:{"event-active":e.queueComplete}},[n("td",[e._v("10")]),e._v(" "),e._m(9),e._v(" "),n("td",[n("i",{staticClass:"fa fa-circle",class:{active:e.queueComplete}})])]),e._v(" "),n("tr",{class:{"event-active":e.progress}},[n("td",[e._v("11")]),e._v(" "),e._m(10),e._v(" "),n("td",[n("i",{staticClass:"fa fa-circle",class:{active:e.progress}})])]),e._v(" "),n("tr",{class:{"event-active":e.dDrop}},[n("td",[e._v("12")]),e._v(" "),e._m(11),e._v(" "),n("td",[n("i",{staticClass:"fa fa-circle",class:{active:e.dDrop}})])]),e._v(" "),n("tr",{class:{"event-active":e.dStarted}},[n("td",[e._v("13")]),e._v(" "),e._m(12),e._v(" "),n("td",[n("i",{staticClass:"fa fa-circle",class:{active:e.dStarted}})])]),e._v(" "),n("tr",{class:{"event-active":e.dEnded}},[n("td",[e._v("14")]),e._v(" "),e._m(13),e._v(" "),n("td",[n("i",{staticClass:"fa fa-circle",class:{active:e.dEnded}})])]),e._v(" "),n("tr",{class:{"event-active":e.dEntered}},[n("td",[e._v("15")]),e._v(" "),e._m(14),e._v(" "),n("td",[n("i",{staticClass:"fa fa-circle",class:{active:e.dEntered}})])]),e._v(" "),n("tr",{class:{"event-active":e.dOver}},[n("td",[e._v("16")]),e._v(" "),e._m(15),e._v(" "),n("td",[n("i",{staticClass:"fa fa-circle",class:{active:e.dOver}})])]),e._v(" "),n("tr",{class:{"event-active":e.dLeave}},[n("td",[e._v("17")]),e._v(" "),e._m(16),e._v(" "),n("td",[n("i",{staticClass:"fa fa-circle",class:{active:e.dLeave}})])])])]),e._v(" "),n("edit-doc",{attrs:{link:"demo.vue"}})],1)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("thead",[n("tr",[n("th",[e._v("#")]),e._v(" "),n("th",[e._v("Event")]),e._v(" "),n("th",[e._v("Status")])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",[e._v("vdropzone-file-added(\n          "),n("code",[e._v("file")]),e._v(")")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",[e._v("vdropzone-files-added(\n          "),n("code",[e._v("file")]),e._v(")")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",[e._v("vdropzone-success(\n          "),n("code",[e._v("file, response")]),e._v(")")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",[e._v("vdropzone-error(\n          "),n("code",[e._v("file")]),e._v(")")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",[e._v("vdropzone-removed-file(\n          "),n("code",[e._v("file, error, xhr")]),e._v(")")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",[e._v("vdropzone-sending(\n          "),n("code",[e._v("file, xhr, formData")]),e._v(")")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",[e._v("vdropzone-success-multiple(\n          "),n("code",[e._v("files, response")]),e._v(")")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",[e._v("vdropzone-sending-multiple(\n          "),n("code",[e._v("files, xhr, formData")]),e._v(")")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",[e._v("vdropzone-queue-complete(\n          "),n("code",[e._v("file, xhr, formData")]),e._v(")")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",[e._v("vdropzone-total-upload-progress(\n          "),n("code",[e._v("totaluploadprogress, totalBytes, totalBytesSent")]),e._v(")")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",[e._v("vdropzone-drag-drop(\n          "),n("code",[e._v("event")]),e._v(")")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",[e._v("vdropzone-drag-start(\n          "),n("code",[e._v("event")]),e._v(")")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",[e._v("vdropzone-drag-end(\n          "),n("code",[e._v("event")]),e._v(")")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",[e._v("vdropzone-drag-enter(\n          "),n("code",[e._v("event")]),e._v(")")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",[e._v("vdropzone-drag-over(\n          "),n("code",[e._v("event")]),e._v(")")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",[e._v("vdropzone-drag-leave(\n          "),n("code",[e._v("event")]),e._v(")")])}],o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";function r(e){n(62)}var i=n(16),o=n(64),s=n(0),a=r,l=s(i.a,o.a,!1,a,null,null);t.a=l.exports},function(e,t,n){var r=n(63);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("7347ddc5",r,!0,{})},function(e,t,n){t=e.exports=n(2)(!1),t.push([e.i,".manual{cursor:pointer}",""])},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h1",[e._v("Manually adding files")]),e._v(" "),n("p",{domProps:{innerHTML:e._s(e.marked(e.description))}}),e._v(" "),n("vue-dropzone",{ref:"myVueDropzone",attrs:{id:"dropzone",options:e.dropzoneOptions},on:{"vdropzone-file-added":e.getFileCount,"vdropzone-removed-file":e.getFileCount,"vdropzone-file-added-manually":e.getFileCount}}),e._v(" "),n("p",[e._v("Filecount: "+e._s(e.fileCount))]),e._v(" "),n("button",{staticClass:"manual",on:{click:e.addFile}},[e._v("Manually add file")]),e._v(" "),n("h3",[e._v("HTML")]),e._v(" "),n("p",{domProps:{innerHTML:e._s(e.marked(e.html))}}),e._v(" "),n("h3",[e._v("Javascript")]),e._v(" "),n("p",{domProps:{innerHTML:e._s(e.marked(e.js))}}),e._v(" "),n("edit-doc",{attrs:{link:"ManuallyAddDemo.vue"}})],1)},i=[],o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";function r(e){n(66)}var i=n(17),o=n(68),s=n(0),a=r,l=s(i.a,o.a,!1,a,"data-v-6b8146ac",null);t.a=l.exports},function(e,t,n){var r=n(67);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("cf8542d6",r,!0,{})},function(e,t,n){t=e.exports=n(2)(!1),t.push([e.i,"@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css);",""]),t.push([e.i,"#dropzone[data-v-6b8146ac] .dz-message{font-weight:700;color:#acacac}#dropzone[data-v-6b8146ac] .fa-cloud-upload{margin-right:10px}",""])},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h1",[e._v("Adding an icon to your dropzone")]),e._v(" "),n("p",{domProps:{innerHTML:e._s(e.marked(e.description))}}),e._v(" "),n("vue-dropzone",{ref:"myVueDropzone",attrs:{id:"dropzone",options:e.dropzoneOptions}}),e._v(" "),n("h3",[e._v("HTML")]),e._v(" "),n("p",{domProps:{innerHTML:e._s(e.marked(e.html))}}),e._v(" "),n("h3",[e._v("Javascript")]),e._v(" "),n("p",{domProps:{innerHTML:e._s(e.marked(e.js))}}),e._v(" "),n("h3",[e._v("Style")]),e._v(" "),n("p",{domProps:{innerHTML:e._s(e.marked(e.css))}}),e._v(" "),n("edit-doc",{attrs:{link:"AddingIconDemo.vue"}})],1)},i=[],o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";var r=n(18),i=n(70),o=n(0),s=o(r.a,i.a,!1,null,null,null);t.a=s.exports},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h1",[e._v("Sending additional params with uploads")]),e._v(" "),n("p",{domProps:{innerHTML:e._s(e.marked(e.description))}}),e._v(" "),n("vue-dropzone",{ref:"myVueDropzone",attrs:{id:"dropzone",options:e.dropzoneOptions},on:{"vdropzone-sending":e.sendingEvent}}),e._v(" "),n("h3",[e._v("HTML")]),e._v(" "),n("p",{domProps:{innerHTML:e._s(e.marked(e.html))}}),e._v(" "),n("h3",[e._v("Javascript")]),e._v(" "),n("p",{domProps:{innerHTML:e._s(e.marked(e.js))}}),e._v(" "),n("edit-doc",{attrs:{link:"SendAdditionalParamsDemo.vue"}})],1)},i=[],o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";var r=n(19),i=n(72),o=n(0),s=o(r.a,i.a,!1,null,null,null);t.a=s.exports},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h1",[e._v("Events")]),e._v(" "),e._m(0),e._v(" "),n("simple-table",{attrs:{headers:["Event Name","Description"],rows:e.events}}),e._v(" "),n("edit-doc",{attrs:{link:"Events.vue"}})],1)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[e._v("The Vue2-Dropzone component will emit the following\n    "),n("a",{attrs:{href:"https://vuejs.org/v2/guide/components.html#Using-v-on-with-Custom-Events"}},[e._v("events")]),e._v(".")])}],o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";var r=n(20),i=n(74),o=n(0),s=o(r.a,i.a,!1,null,null,null);t.a=s.exports},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h1",[e._v("Methods")]),e._v(" "),n("p",[e._v("The following methods are able to called from the parent component using the ref tag.")]),e._v(" "),n("simple-table",{attrs:{headers:["Method Name","Description"],rows:e.methods}}),e._v(" "),n("h3",[e._v("Snippet")]),e._v(" "),n("p",{domProps:{innerHTML:e._s(e.marked(e.example))}}),e._v(" "),n("edit-doc",{attrs:{link:"Methods.vue"}})],1)},i=[],o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";function r(e){n(76)}var i=n(21),o=n(78),s=n(0),a=r,l=s(i.a,o.a,!1,a,null,null);t.a=l.exports},function(e,t,n){var r=n(77);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("58d3ea69",r,!0,{})},function(e,t,n){t=e.exports=n(2)(!1),t.push([e.i,"input[type=text]{width:100%;padding:12px 20px;margin:8px 0;box-sizing:border-box}label{font-weight:700}.note{color:red}",""])},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h1",[e._v("Upload directly to AWS S3")]),e._v(" "),n("p",{domProps:{innerHTML:e._s(e.marked(e.description))}}),e._v(" "),n("vue-dropzone",{ref:"myVueDropzone",attrs:{id:"dropzone",awss3:e.awss3,options:e.dropzoneOptions},on:{"vdropzone-sending":e.sendingEvent,"vdropzone-s3-upload-error":e.s3UploadError,"vdropzone-s3-upload-success":e.s3UploadSuccess}}),e._v(" "),n("hr"),e._v(" "),n("label",[e._v("Enter your URL Signer Endpoint")]),e._v(" "),n("span",{staticClass:"note"},[e._v("(POST request will be sent to endpoint)")]),n("br"),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.signurl,expression:"signurl"}],ref:"urlsigner",attrs:{type:"text",placeholder:"http://mydomain.com/",required:""},domProps:{value:e.signurl},on:{input:function(t){t.target.composing||(e.signurl=t.target.value)}}}),e._v(" "),n("button",{on:{click:e.uploadFiles}},[e._v("Upload Files")]),e._v(" "),n("h3",[e._v("Response of your URL Signer should be as below")]),e._v(" "),n("div",{domProps:{innerHTML:e._s(e.marked(e.urlsignnote))}}),e._v(" "),e._m(0),e._v(" "),n("h3",[e._v("Note")]),e._v(" "),n("div",{domProps:{innerHTML:e._s(e.marked(e.awsNote))}}),e._v(" "),n("h3",[e._v("HTML")]),e._v(" "),n("p",{domProps:{innerHTML:e._s(e.marked(e.html))}}),e._v(" "),n("h3",[e._v("Javascript")]),e._v(" "),n("p",{domProps:{innerHTML:e._s(e.marked(e.js))}}),e._v(" "),n("p",{domProps:{innerHTML:e._s(e.marked(e.signerAsFunc))}}),e._v(" "),n("p",{domProps:{innerHTML:e._s(e.marked(e.jsSignerAsFunc))}}),e._v(" "),n("edit-doc",{attrs:{link:"UploadToAWSS3.vue"}})],1)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("pre",[n("code",{attrs:{lang:"json"}},[e._v('{\n   "signature":{\n      "Content-Type":"",\n      "acl":"public-read-write",\n      "success_action_status":"201",\n      "policy":"abc123",\n      "X-amz-credential":"AKIAIM3WELV3PLALOYDQ\\/20171012\\/us-west-2\\/s3\\/aws4_request",\n      "X-amz-algorithm":"AWS4-HMAC-SHA256",\n      "X-amz-date":"20171012T054729Z",\n      "X-amz-signature":"5227d84360d92ef8al45549805b3746f2f1d6641df8986aamcr939c35513cd7c",\n      "key":""\n   },\n   "postEndpoint":"\\/\\/s3-us-west-2.amazonaws.com\\/my-bucket"\n}')])])}],o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){"use strict";function r(e){n(80)}var i=n(22),o=n(82),s=n(0),a=r,l=s(i.a,o.a,!1,a,null,null);t.a=l.exports},function(e,t,n){var r=n(81);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("02f11c26",r,!0,{})},function(e,t,n){t=e.exports=n(2)(!1),t.push([e.i,"#customdropzone{background-color:orange;font-family:Arial,sans-serif;letter-spacing:.2px;color:#777;transition:background-color .2s linear;height:200px;padding:40px}#customdropzone .dz-preview{width:160px;display:inline-block}#customdropzone .dz-preview .dz-image{width:80px;height:80px;margin-left:40px;margin-bottom:10px}#customdropzone .dz-preview .dz-image>div{width:inherit;height:inherit;border-radius:50%;background-size:contain}#customdropzone .dz-preview .dz-image>img{width:100%}#customdropzone .dz-preview .dz-details{color:#fff;transition:opacity .2s linear;text-align:center}#customdropzone .dz-success-mark,.dz-error-mark,.dz-remove{display:none}",""])},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h1",[e._v("Custom Styling")]),e._v(" "),n("p",{domProps:{innerHTML:e._s(e.marked(e.description))}}),e._v(" "),n("vue-dropzone",{ref:"myVueDropzone",attrs:{id:"customdropzone",options:e.dropzoneOptions,"include-styling":!1},on:{"vdropzone-thumbnail":e.thumbnail}}),e._v(" "),n("hr"),e._v(" "),n("h3",[e._v("HTML")]),e._v(" "),n("p",{domProps:{innerHTML:e._s(e.marked(e.html))}}),e._v(" "),n("hr"),e._v(" "),n("h3",[e._v("Javascript")]),e._v(" "),n("p",{domProps:{innerHTML:e._s(e.marked(e.javascript))}}),e._v(" "),n("hr"),e._v(" "),n("h3",[e._v("Style")]),e._v(" "),n("p",{domProps:{innerHTML:e._s(e.marked(e.style))}}),e._v(" "),n("edit-doc",{attrs:{link:"customPreviewDemo.vue"}})],1)},i=[],o={render:r,staticRenderFns:i};t.a=o},function(e,t,n){(function(t){(function(){"use strict";function t(e){this.tokens=[],this.tokens.links={},this.options=e||c.defaults,this.rules=p.normal,this.options.gfm&&(this.options.tables?this.rules=p.tables:this.rules=p.gfm)}function n(e,t){if(this.options=t||c.defaults,this.links=e,this.rules=h.normal,this.renderer=this.options.renderer||new r,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=h.breaks:this.rules=h.gfm:this.options.pedantic&&(this.rules=h.pedantic)}function r(e){this.options=e||{}}function i(e){this.tokens=[],this.token=null,this.options=e||c.defaults,this.options.renderer=this.options.renderer||new r,this.renderer=this.options.renderer,this.renderer.options=this.options}function o(e,t){return e.replace(t?/&/g:/&(?!#?\w+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function s(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function a(e,t){return e=e.source,t=t||"",function n(r,i){return r?(i=i.source||i,i=i.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,i),n):new RegExp(e,t)}}function l(e,t){return f[" "+e]||(/^[^:]+:\/*[^\/]*$/.test(e)?f[" "+e]=e+"/":f[" "+e]=e.replace(/[^\/]*$/,"")),e=f[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^\/]*)[\s\S]*/,"$1")+t:e+t}function u(){}function d(e){for(var t,n,r=1;r<arguments.length;r++){t=arguments[r];for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}function c(e,n,r){if(r||"function"==typeof n){r||(r=n,n=null),n=d({},c.defaults,n||{});var s,a,l=n.highlight,u=0;try{s=t.lex(e,n)}catch(e){return r(e)}a=s.length;var p=function(e){if(e)return n.highlight=l,r(e);var t;try{t=i.parse(s,n)}catch(t){e=t}return n.highlight=l,e?r(e):r(null,t)};if(!l||l.length<3)return p();if(delete n.highlight,!a)return p();for(;u<s.length;u++)!function(e){"code"!==e.type?--a||p():l(e.text,e.lang,function(t,n){return t?p(t):null==n||n===e.text?--a||p():(e.text=n,e.escaped=!0,void(--a||p()))})}(s[u])}else try{return n&&(n=d({},c.defaults,n)),i.parse(t.lex(e,n),n)}catch(e){if(e.message+="\nPlease report this to https://github.com/chjj/marked.",(n||c.defaults).silent)return"<p>An error occurred:</p><pre>"+o(e.message+"",!0)+"</pre>";throw e}}var p={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:u,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:u,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:u,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};p.bullet=/(?:[*+-]|\d+\.)/,p.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,p.item=a(p.item,"gm")(/bull/g,p.bullet)(),p.list=a(p.list)(/bull/g,p.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+p.def.source+")")(),p.blockquote=a(p.blockquote)("def",p.def)(),p._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",p.html=a(p.html)("comment",/<!--[\s\S]*?-->/)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/<tag(?:"[^"]*"|'[^']*'|[^'">])*?>/)(/tag/g,p._tag)(),p.paragraph=a(p.paragraph)("hr",p.hr)("heading",p.heading)("lheading",p.lheading)("blockquote",p.blockquote)("tag","<"+p._tag)("def",p.def)(),p.normal=d({},p),p.gfm=d({},p.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),p.gfm.paragraph=a(p.paragraph)("(?!","(?!"+p.gfm.fences.source.replace("\\1","\\2")+"|"+p.list.source.replace("\\1","\\3")+"|")(),p.tables=d({},p.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),t.rules=p,t.lex=function(e,n){return new t(n).lex(e)},t.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g,"    ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},t.prototype.token=function(e,t,n){for(var r,i,o,s,a,l,u,d,c,e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.substring(o[0].length),o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?o:o.replace(/\n+$/,"")});else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(t&&(o=this.rules.nptable.exec(e))){for(e=e.substring(o[0].length),l={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/\n$/,"").split("\n")},d=0;d<l.align.length;d++)/^ *-+: *$/.test(l.align[d])?l.align[d]="right":/^ *:-+: *$/.test(l.align[d])?l.align[d]="center":/^ *:-+ *$/.test(l.align[d])?l.align[d]="left":l.align[d]=null;for(d=0;d<l.cells.length;d++)l.cells[d]=l.cells[d].split(/ *\| */);this.tokens.push(l)}else if(o=this.rules.lheading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2]?1:2,text:o[1]});else if(o=this.rules.hr.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,t,!0),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),s=o[2],this.tokens.push({type:"list_start",ordered:s.length>1}),o=o[0].match(this.rules.item),r=!1,c=o.length,d=0;d<c;d++)l=o[d],u=l.length,l=l.replace(/^ *([*+-]|\d+\.) +/,""),~l.indexOf("\n ")&&(u-=l.length,l=this.options.pedantic?l.replace(/^ {1,4}/gm,""):l.replace(new RegExp("^ {1,"+u+"}","gm"),"")),this.options.smartLists&&d!==c-1&&(a=p.bullet.exec(o[d+1])[0],s===a||s.length>1&&a.length>1||(e=o.slice(d+1).join("\n")+e,d=c-1)),i=r||/\n\n(?!\s*$)/.test(l),d!==c-1&&(r="\n"===l.charAt(l.length-1),i||(i=r)),this.tokens.push({type:i?"loose_item_start":"list_item_start"}),this.token(l,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:o[0]});else if(!n&&t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),this.tokens.links[o[1].toLowerCase()]={href:o[2],title:o[3]};else if(t&&(o=this.rules.table.exec(e))){for(e=e.substring(o[0].length),l={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/(?: *\| *)?\n$/,"").split("\n")},d=0;d<l.align.length;d++)/^ *-+: *$/.test(l.align[d])?l.align[d]="right":/^ *:-+: *$/.test(l.align[d])?l.align[d]="center":/^ *:-+ *$/.test(l.align[d])?l.align[d]="left":l.align[d]=null;for(d=0;d<l.cells.length;d++)l.cells[d]=l.cells[d].replace(/^ *\| *| *\| *$/g,"").split(/ *\| */);this.tokens.push(l)}else if(t&&(o=this.rules.paragraph.exec(e)))e=e.substring(o[0].length),this.tokens.push({type:"paragraph",text:"\n"===o[1].charAt(o[1].length-1)?o[1].slice(0,-1):o[1]});else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var h={escape:/^\\([\\`*{}\[\]()#+\-.!_>])/,autolink:/^<([^ <>]+(@|:\/)[^ <>]+)>/,url:u,tag:/^<!--[\s\S]*?-->|^<\/?\w+(?:"[^"]*"|'[^']*'|[^<'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)([\s\S]*?[^`])\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:u,text:/^[\s\S]+?(?=[\\<!\[_*`]| {2,}\n|$)/};h._inside=/(?:\[[^\]]*\]|\\[\[\]]|[^\[\]]|\](?=[^\[]*\]))*/,h._href=/\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/,h.link=a(h.link)("inside",h._inside)("href",h._href)(),h.reflink=a(h.reflink)("inside",h._inside)(),h.normal=d({},h),h.pedantic=d({},h.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),h.gfm=d({},h.normal,{escape:a(h.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:a(h.text)("]|","~]|")("|","|https?://|")()}),h.breaks=d({},h.gfm,{br:a(h.br)("{2,}","*")(),text:a(h.gfm.text)("{2,}","*")()}),n.rules=h,n.output=function(e,t,r){return new n(t,r).output(e)},n.prototype.output=function(e){for(var t,n,r,i,s="";e;)if(i=this.rules.escape.exec(e))e=e.substring(i[0].length),s+=i[1];else if(i=this.rules.autolink.exec(e))e=e.substring(i[0].length),"@"===i[2]?(n=o(":"===i[1].charAt(6)?this.mangle(i[1].substring(7)):this.mangle(i[1])),r=this.mangle("mailto:")+n):(n=o(i[1]),r=n),s+=this.renderer.link(r,null,n);else if(this.inLink||!(i=this.rules.url.exec(e))){if(i=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(i[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(i[0])&&(this.inLink=!1),e=e.substring(i[0].length),s+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):o(i[0]):i[0];else if(i=this.rules.link.exec(e))e=e.substring(i[0].length),this.inLink=!0,s+=this.outputLink(i,{href:i[2],title:i[3]}),this.inLink=!1;else if((i=this.rules.reflink.exec(e))||(i=this.rules.nolink.exec(e))){if(e=e.substring(i[0].length),t=(i[2]||i[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){s+=i[0].charAt(0),e=i[0].substring(1)+e;continue}this.inLink=!0,s+=this.outputLink(i,t),this.inLink=!1}else if(i=this.rules.strong.exec(e))e=e.substring(i[0].length),s+=this.renderer.strong(this.output(i[2]||i[1]));else if(i=this.rules.em.exec(e))e=e.substring(i[0].length),s+=this.renderer.em(this.output(i[2]||i[1]));else if(i=this.rules.code.exec(e))e=e.substring(i[0].length),s+=this.renderer.codespan(o(i[2].trim(),!0));else if(i=this.rules.br.exec(e))e=e.substring(i[0].length),s+=this.renderer.br();else if(i=this.rules.del.exec(e))e=e.substring(i[0].length),s+=this.renderer.del(this.output(i[1]));else if(i=this.rules.text.exec(e))e=e.substring(i[0].length),s+=this.renderer.text(o(this.smartypants(i[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else e=e.substring(i[0].length),n=o(i[1]),r=n,s+=this.renderer.link(r,null,n);return s},n.prototype.outputLink=function(e,t){var n=o(t.href),r=t.title?o(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,o(e[1]))},n.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},n.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;i<r;i++)t=e.charCodeAt(i),Math.random()>.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},r.prototype.code=function(e,t,n){if(this.options.highlight){var r=this.options.highlight(e,t);null!=r&&r!==e&&(n=!0,e=r)}return t?'<pre><code class="'+this.options.langPrefix+o(t,!0)+'">'+(n?e:o(e,!0))+"\n</code></pre>\n":"<pre><code>"+(n?e:o(e,!0))+"\n</code></pre>"},r.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},r.prototype.html=function(e){return e},r.prototype.heading=function(e,t,n){return"<h"+t+' id="'+this.options.headerPrefix+n.toLowerCase().replace(/[^\w]+/g,"-")+'">'+e+"</h"+t+">\n"},r.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},r.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"</"+n+">\n"},r.prototype.listitem=function(e){return"<li>"+e+"</li>\n"},r.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},r.prototype.table=function(e,t){return"<table>\n<thead>\n"+e+"</thead>\n<tbody>\n"+t+"</tbody>\n</table>\n"},r.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},r.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},r.prototype.strong=function(e){return"<strong>"+e+"</strong>"},r.prototype.em=function(e){return"<em>"+e+"</em>"},r.prototype.codespan=function(e){return"<code>"+e+"</code>"},r.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},r.prototype.del=function(e){return"<del>"+e+"</del>"},r.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(s(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return n}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return n}this.options.baseUrl&&!v.test(e)&&(e=l(this.options.baseUrl,e));var i='<a href="'+e+'"';return t&&(i+=' title="'+t+'"'),i+=">"+n+"</a>"},r.prototype.image=function(e,t,n){this.options.baseUrl&&!v.test(e)&&(e=l(this.options.baseUrl,e));var r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">"},r.prototype.text=function(e){return e},i.parse=function(e,t,n){return new i(t,n).parse(e)},i.prototype.parse=function(e){this.inline=new n(e.links,this.options,this.renderer),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},i.prototype.next=function(){return this.token=this.tokens.pop()},i.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},i.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},i.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i="",o="";for(n="",e=0;e<this.token.header.length;e++)({header:!0,align:this.token.align[e]}),n+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,align:this.token.align[e]});for(i+=this.renderer.tablerow(n),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],n="",r=0;r<t.length;r++)n+=this.renderer.tablecell(this.inline.output(t[r]),{header:!1,align:this.token.align[r]});o+=this.renderer.tablerow(n)}return this.renderer.table(i,o);case"blockquote_start":for(var o="";"blockquote_end"!==this.next().type;)o+=this.tok();return this.renderer.blockquote(o);case"list_start":for(var o="",s=this.token.ordered;"list_end"!==this.next().type;)o+=this.tok();return this.renderer.list(o,s);case"list_item_start":for(var o="";"list_item_end"!==this.next().type;)o+="text"===this.token.type?this.parseText():this.tok();return this.renderer.listitem(o);case"loose_item_start":for(var o="";"list_item_end"!==this.next().type;)o+=this.tok();return this.renderer.listitem(o);case"html":var a=this.token.pre||this.options.pedantic?this.token.text:this.inline.output(this.token.text);return this.renderer.html(a);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText())}};var f={},v=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;u.exec=u,c.options=c.setOptions=function(e){return d(c.defaults,e),c},c.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new r,xhtml:!1,baseUrl:null},c.Parser=i,c.parser=i.parse,c.Renderer=r,c.Lexer=t,c.lexer=t.lex,c.InlineLexer=n,c.inlineLexer=n.output,c.parse=c,e.exports=c}).call(function(){return this||("undefined"!=typeof window?window:t)}())}).call(t,n(5))}],[23]);
  //# sourceMappingURL=bundle.25614d02050ad026f419.js.map