/*! dropzone v5.4.0 | Copyright (c) 2012 Matias Meno */"use strict";function_possibleConstructorReturn(e,t){if(!e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeoft&&"function"!=typeoft?e:t}function_inherits(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function, not "+typeoft);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_classCallCheck(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}function__guard__(e,t){return"undefined"!=typeofe&&null!==e?t(e):void0}function__guardMethod__(e,t,i){return"undefined"!=typeofe&&null!==e&&"function"==typeofe[t]?i(e,t):void0}var_createClass=function(){functione(e,t){for(vari=0;i<t.length;i++){varn=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}returnfunction(t,i,n){returni&&e(t.prototype,i),n&&e(t,n),t}}(),Emitter=function(){functione(){_classCallCheck(this,e)}return_createClass(e,[{key:"on",value:function(e,t){returnthis._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this}},{key:"emit",value:function(e){this._callbacks=this._callbacks||{};vart=this._callbacks[e];if(t){for(vari=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];for(varo=t,a=!0,l=0,o=a?o:o[Symbol.iterator]();;){vars;if(a){if(l>=o.length)break;s=o[l++]}else{if(l=o.next(),l.done)break;s=l.value}varu=s;u.apply(this,n)}}returnthis}},{key:"off",value:function(e,t){if(!this._callbacks||0===arguments.length)returnthis._callbacks={},this;vari=this._callbacks[e];if(!i)returnthis;if(1===arguments.length)returndeletethis._callbacks[e],this;for(varn=0;n<i.length;n++){varr=i[n];if(r===t){i.splice(n,1);break}}returnthis}}]),e}(),Dropzone=function(e){functiont(e,i){_classCallCheck(this,t);varn=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),r=void0,o=void0;if(n.element=e,n.version=t.version,n.defaultOptions.previewTemplate=n.defaultOptions.previewTemplate.replace(/\n*/g,""),n.clickableElements=[],n.listeners=[],n.files=[],"string"==typeofn.element&&(n.element=document.querySelector(n.element)),!n.element||null==n.element.nodeType)thrownewError("Invalid dropzone element.");if(n.element.dropzone)thrownewError("Dropzone already attached.");t.instances.push(n),n.element.dropzone=n;vara=null!=(o=t.optionsForElement(n.element))?o:{};if(n.options=t.extend({},n.defaultOptions,a,null!=i?i:{}),n.options.forceFallback||!t.isBrowserSupported()){varl;returnl=n.options.fallback.call(n),_possibleConstructorReturn(n,l)}if(null==n.options.url&&(n.options.url=n.element.getAttribute("action")),!n.options.url)thrownewError("No URL provided.");if(n.options.acceptedFiles&&n.options.acceptedMimeTypes)thrownewError("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(n.options.uploadMultiple&&n.options.chunking)thrownewError("You cannot set both: uploadMultiple and chunking.");returnn.options.acceptedMimeTypes&&(n.options.acceptedFiles=n.options.acceptedMimeTypes,deleten.options.acceptedMimeTypes),null!=n.options.renameFilename&&(n.options.renameFile=function(e){returnn.options.renameFilename.call(n,e.name,e)}),n.options.method=n.options.method.toUpperCase(),(r=n.getExistingFallback())&&r.parentNode&&r.parentNode.removeChild(r),n.options.previewsContainer!==!1&&(n.options.previewsContainer?n.previewsContainer=t.getElement(n.options.previewsContainer,"previewsContainer"):n.previewsContainer=n.element),n.options.clickable&&(n.options.clickable===!0?n.clickableElements=[n.element]:n.clickableElements=t.getElements(n.options.clickable,"clickable")),n.init(),n}return_inherits(t,e),_createClass(t,null,[{key:"initClass",value:function(){this.prototype.Emitter=Emitter,this.prototype.events=["drop","