webseite-grav/plugins/form/assets/form.vendor.js

24 lines
89 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["vendor"],{"./node_modules/dropzone/dist/dropzone.js":
/*!************************************************!*\
!*** ./node_modules/dropzone/dist/dropzone.js ***!
\************************************************/
/*! no static exports found */function(e,t,n){"use strict";(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?s(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function t(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}var r=function(){function e(){u(this,e)}return t(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,i=new Array(1<n?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];var r=!0,a=!1,l=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){s.value.apply(this,i)}}catch(e){a=!0,l=e}finally{try{r||null==u.return||u.return()}finally{if(a)throw l}}}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 i=0;i<n.length;i++){if(n[i]===t){n.splice(i,1);break}}return this}}]),e}(),c=function(){function D(e,t){var n,i,o;if(u(this,D),(n=a(this,l(D).call(this))).element=e,n.version=D.version,n.defaultOptions.previewTemplate=n.defaultOptions.previewTemplate.replace(/\n*/g,""),n.clickableElements=[],n.listeners=[],n.files=[],"string"==typeof n.element&&(n.element=document.querySelector(n.element)),!n.element||null==n.element.nodeType)throw new Error("Invalid dropzone element.");if(n.element.dropzone)throw new Error("Dropzone already attached.");D.instances.push(s(n)),n.element.dropzone=s(n);var r=null!=(o=D.optionsForElement(n.element))?o:{};if(n.options=D.extend({},n.defaultOptions,r,null!=t?t:{}),n.options.forceFallback||!D.isBrowserSupported())return a(n,n.options.fallback.call(s(n)));if(null==n.options.url&&(n.options.url=n.element.getAttribute("action")),!n.options.url)throw new Error("No URL provided.");if(n.options.acceptedFiles&&n.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(n.options.uploadMultiple&&n.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return n.options.acceptedMimeTypes&&(n.options.acceptedFiles=n.options.acceptedMimeTypes,delete n.options.acceptedMimeTypes),null!=n.options.renameFilename&&(n.options.renameFile=function(e){return n.options.renameFilename.call(s(n),e.name,e)}),n.options.method=n.options.method.toUpperCase(),(i=n.getExistingFallback())&&i.parentNode&&i.parentNode.removeChild(i),!1!==n.options.previewsContainer&&(n.options.previewsContainer?n.previewsContainer=D.getElement(n.options.previewsContainer,"previewsContainer"):n.previewsContainer=n.element),n.options.clickable&&(!0===n.options.clickable?n.clickableElements=[n.element]:n.clickableElements=D.getElements(n.options.clickable,"clickable")),n.init(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(D,r),t(D,null,[{key:"initClass",value:function(){this.prototype.Emitter=r,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",dictUploadCanceled:"Upload canceled.",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;this.element.className="".concat(this.element.className," dz-browser-not-supported");var t=!0,n=!1,i=void 0;try{for(var o,r=this.element.getElementsByTagName("div")[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var a=o.value;if(/(^| )dz-message($| )/.test(a.className)){(e=a).className="dz-message";break}}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}e||(e=D.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(e));var l=e.getElementsByTagName("span")[0];return l&&(null!=l.textContent?l.textContent=this.options.dictFallbackMessage:null!=l.innerText&&(l.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e,t,n,i){var o={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},r=e.width/e.height;null==t&&null==n?(t=o.srcWidth,n=o.srcHeight):null==t?t=n*r:null==n&&(n=t/r);var a=(t=Math.min(t,o.srcWidth))/(n=Math.min(n,o.srcHeight));if(o.srcWidth>t||o.srcHeight>n)if("crop"===i)a<r?(o.srcHeight=e.height,o.srcWidth=o.srcHeight*a):(o.srcWidth=e.width,o.srcHeight=o.srcWidth/a);else{if("contain"!==i)throw new Error("Unknown resizeMethod '".concat(i,"'"));a<r?n=t/r:t=n*r}return o.srcX=(e.width-o.srcWidth)/2,o.srcY=(e.height-o.srcHeight)/2,o.trgWidth=t,o.trgHeight=n,o},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">\n <title>Check</title>\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\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" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></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">\n <title>Error</title>\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g 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"></path>\n </g>\n </g>\n </svg>\n </div>\n</div>',drop:function(){return this.element.classList.remove("dz-drag-hover")},dragstart:function(){},dragend:function(){return this.element.classList.remove("dz-drag-hover")},dragenter:function(){return this.element.classList.add("dz-drag-hover")},dragover:function(){return this.element.classList.add("dz-drag-hover")},dragleave:function(){return this.element.classList.remove("dz-drag-hover")},paste:function(){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(t){var n=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){t.previewElement=D.createElement(this.options.previewTemplate.trim()),t.previewTemplate=t.previewElement,this.previewsContainer.appendChild(t.previewElement);var e=!0,i=!1,o=void 0;try{for(var r,a=t.previewElement.querySelectorAll("[data-dz-name]")[Symbol.iterator]();!(e=(r=a.next()).done);e=!0){var l=r.value;l.textContent=t.name}}catch(e){i=!0,o=e}finally{try{e||null==a.return||a.return()}finally{if(i)throw o}}var s=!0,u=!1,c=void 0;try{for(var d,h=t.previewElement.querySelectorAll("[data-dz-size]")[Symbol.iterator]();!(s=(d=h.next()).done);s=!0)(l=d.value).innerHTML=this.filesize(t.size)}catch(e){u=!0,c=e}finally{try{s||null==h.return||h.return()}finally{if(u)throw c}}this.options.addRemoveLinks&&(t._removeLink=D.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),t.previewElement.appendChild(t._removeLink));var p=function(e){return e.preventDefault(),e.stopPropagation(),t.status===D.UPLOADING?D.confirm(n.options.dictCancelUploadConfirmation,function(){return n.removeFile(t)}):n.options.dictRemoveFileConfirmation?D.confirm(n.options.dictRemoveFileConfirmation,function(){return n.removeFile(t)}):n.removeFile(t)},f=!0,v=!1,m=void 0;try{for(var g,y=t.previewElement.querySelectorAll("[data-dz-remove]")[Symbol.iterator]();!(f=(g=y.next()).done);f=!0){g.value.addEventListener("click",p)}}catch(e){v=!0,m=e}finally{try{f||null==y.return||y.return()}finally{if(v)throw m}}}},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");var n=!0,i=!1,o=void 0;try{for(var r,a=e.previewElement.querySelectorAll("[data-dz-thumbnail]")[Symbol.iterator]();!(n=(r=a.next()).done);n=!0){var l=r.value;l.alt=e.name,l.src=t}}catch(e){i=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw o}}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);var n=!0,i=!1,o=void 0;try{for(var r,a=e.previewElement.querySelectorAll("[data-dz-errormessage]")[Symbol.iterator]();!(n=(r=a.next()).done);n=!0){r.value.textContent=t}}catch(e){i=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw o}}}},errormultiple:function(){},processing:function(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(e,t){if(e.previewElement){var n=!0,i=!1,o=void 0;try{for(var r,a=e.previewElement.querySelectorAll("[data-dz-uploadprogress]")[Symbol.iterator]();!(n=(r=a.next()).done);n=!0){var l=r.value;"PROGRESS"===l.nodeName?l.value=t:l.style.width="".concat(t,"%")}}catch(e){i=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw o}}}},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,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(e){if(e._removeLink&&(e._removeLink.innerHTML=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=new Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(var o=0,r=n;o<r.length;o++){var a=r[o];for(var l in a){var s=a[l];e[l]=s}}return e}}]),t(D,[{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(t){return this.files.filter(function(e){return e.status===t}).map(function(e){return e})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(D.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(D.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(D.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(e){return e.status===D.UPLOADING||e.status===D.QUEUED}).map(function(e){return e})}},{key:"init",value:function(){var s=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(D.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){!function l(){return s.hiddenFileInput&&s.hiddenFileInput.parentNode.removeChild(s.hiddenFileInput),s.hiddenFileInput=document.createElement("input"),s.hiddenFileInput.setAttribute("type","file"),(null===s.options.maxFiles||1<s.options.maxFiles)&&s.hiddenFileInput.setAttribute("multiple","multiple"),s.hiddenFileInput.className="dz-hidden-input",null!==s.options.acceptedFiles&&s.hiddenFileInput.setAttribute("accept",s.options.acceptedFiles),null!==s.options.capture&&s.hiddenFileInput.setAttribute("capture",s.options.capture),s.hiddenFileInput.style.visibility="hidden",s.hiddenFileInput.style.position="absolute",s.hiddenFileInput.style.top="0",s.hiddenFileInput.style.left="0",s.hiddenFileInput.style.height="0",s.hiddenFileInput.style.width="0",D.getElement(s.options.hiddenInputContainer,"hiddenInputContainer").appendChild(s.hiddenFileInput),s.hiddenFileInput.addEventListener("change",function(){var e=s.hiddenFileInput.files;if(e.length){var t=!0,n=!1,i=void 0;try{for(var o,r=e[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var a=o.value;s.addFile(a)}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}}return s.emit("addedfiles",e),l()})}()}this.URL=null!==window.URL?window.URL:window.webkitURL;var e=!0,t=!1,n=void 0;try{for(var i,o=this.events[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){var r=i.value;this.on(r,this.options[r])}}catch(e){t=!0,n=e}finally{try{e||null==o.return||o.return()}finally{if(t)throw n}}this.on("uploadprogress",function(){return s.updateTotalUploadProgress()}),this.on("removedfile",function(){return s.updateTotalUploadProgress()}),this.on("canceled",function(e){return s.emit("complete",e)}),this.on("complete",function(e){if(0===s.getAddedFiles().length&&0===s.getUploadingFiles().length&&0===s.getQueuedFiles().length)return setTimeout(function(){return s.emit("queuecomplete")},0)});function a(e){return function(e){if(e.dataTransfer.types)for(var t=0;t<e.dataTransfer.types.length;t++)if("Files"===e.dataTransfer.types[t])return!0;return!1}(e)&&(e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1)}return this.listeners=[{element:this.element,events:{dragstart:function(e){return s.emit("dragstart",e)},dragenter:function(e){return a(e),s.emit("dragenter",e)},dragover:function(e){var t;try{t=e.dataTransfer.effectAllowed}catch(e){}return e.dataTransfer.dropEffect="move"===t||"linkMove"===t?"move":"copy",a(e),s.emit("dragover",e)},dragleave:function(e){return s.emit("dragleave",e)},drop:function(e){return a(e),s.drop(e)},dragend:function(e){return s.emit("dragend",e)}}}],this.clickableElements.forEach(function(t){return s.listeners.push({element:t,events:{click:function(e){return t===s.element&&e.target!==s.element&&!D.elementInside(e.target,s.element.querySelector(".dz-message"))||s.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&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,D.instances.splice(D.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var e,t=0,n=0;if(this.getActiveFiles().length){var i=!0,o=!1,r=void 0;try{for(var a,l=this.getActiveFiles()[Symbol.iterator]();!(i=(a=l.next()).done);i=!0){var s=a.value;t+=s.upload.bytesSent,n+=s.upload.total}}catch(e){o=!0,r=e}finally{try{i||null==l.return||l.return()}finally{if(o)throw r}}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):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(e,"]"):"")}},{key:"_renameFile",value:function(e){return"function"!=typeof this.options.renameFile?e.name:this.options.renameFile(e)}},{key:"getFallbackForm",value:function(){var e,t;if(e=this.getExistingFallback())return e;var n='<div class="dz-fallback">';this.options.dictFallbackText&&(n+="<p>".concat(this.options.dictFallbackText,"</p>")),n+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var i=D.createElement(n);return"FORM"!==this.element.tagName?(t=D.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>'))).appendChild(i):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=t?t:i}},{key:"getExistingFallback",value:function(){for(var e=function(e){var t=!0,n=!1,i=void 0;try{for(var o,r=e[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var a=o.value;if(/(^| )fallback($| )/.test(a.className))return a}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}},t=0,n=["div","form"];t<n.length;t++){var i,o=n[t];if(i=e(this.element.getElementsByTagName(o)))return i}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(i){return function(){var e=[];for(var t in i.events){var n=i.events[t];e.push(i.element.addEventListener(t,n,!1))}return e}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(i){return function(){var e=[];for(var t in i.events){var n=i.events[t];e.push(i.element.removeEventListener(t,n,!1))}return e}()})}},{key:"disable",value:function(){var t=this;return this.clickableElements.forEach(function(e){return e.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(e){return t.cancelUpload(e)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(e){return e.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(e){var t=0,n="b";if(0<e){for(var i=["tb","gb","mb","kb","b"],o=0;o<i.length;o++){var r=i[o];if(Math.pow(this.options.filesizeBase,4-o)/10<=e){t=e/Math.pow(this.options.filesizeBase,4-o),n=r;break}}t=Math.round(10*t)/10}return"<strong>".concat(t,"</strong> ").concat(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);for(var t=[],n=0;n<e.dataTransfer.files.length;n++)t[n]=e.dataTransfer.files[n];if(t.length){var i=e.dataTransfer.items;i&&i.length&&null!=i[0].webkitGetAsEntry?this._addFilesFromItems(i):this.handleFiles(t)}this.emit("addedfiles",t)}}},{key:"paste",value:function(e){if(null!=(t=null!=e?e.clipboardData:void 0,n=function(e){return e.items},null!=t?n(t):void 0)){var t,n;this.emit("paste",e);var i=e.clipboardData.items;return i.length?this._addFilesFromItems(i):void 0}}},{key:"handleFiles",value:function(e){var t=!0,n=!1,i=void 0;try{for(var o,r=e[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var a=o.value;this.addFile(a)}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}}},{key:"_addFilesFromItems",value:function(s){var u=this;return function(){var e=[],t=!0,n=!1,i=void 0;try{for(var o,r=s[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var a,l=o.value;null!=l.webkitGetAsEntry&&(a=l.webkitGetAsEntry())?a.isFile?e.push(u.addFile(l.getAsFile())):a.isDirectory?e.push(u._addFilesFromDirectory(a,a.name)):e.push(void 0):null!=l.getAsFile&&(null==l.kind||"file"===l.kind)?e.push(u.addFile(l.getAsFile())):e.push(void 0)}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}return e}()}},{key:"_addFilesFromDirectory",value:function(e,s){function t(t){return e=console,n="log",i=function(e){return e.log(t)},null!=e&&"function"==typeof e[n]?i(e,n):void 0;var e,n,i}var u=this,n=e.createReader();return function l(){return n.readEntries(function(e){if(0<e.length){var t=!0,n=!1,i=void 0;try{for(var o,r=e[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var a=o.value;a.isFile?a.file(function(e){if(!u.options.ignoreHiddenFiles||"."!==e.name.substring(0,1))return e.fullPath="".concat(s,"/").concat(e.name),u.addFile(e)}):a.isDirectory&&u._addFilesFromDirectory(a,"".concat(s,"/").concat(a.name))}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}l()}return null},t)}()}},{key:"accept",value:function(e,t){this.options.maxFilesize&&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)):D.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(t){var n=this;t.upload={uuid:D.uuidv4(),progress:0,total:t.size,bytesSent:0,filename:this._renameFile(t)},this.files.push(t),t.status=D.ADDED,this.emit("addedfile",t),this._enqueueThumbnail(t),this.accept(t,function(e){e?(t.accepted=!1,n._errorProcessing([t],e)):(t.accepted=!0,n.options.autoQueue&&n.enqueueFile(t)),n._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(e){var t=!0,n=!1,i=void 0;try{for(var o,r=e[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var a=o.value;this.enqueueFile(a)}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}return null}},{key:"enqueueFile",value:function(e){var t=this;if(e.status!==D.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=D.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 t=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var n=this._thumbnailQueue.shift();return this.createThumbnail(n,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(e){return t.emit("thumbnail",n,e),t._processingThumbnail=!1,t._processThumbnailQueue()})}}},{key:"removeFile",value:function(e){if(e.status===D.UPLOADING&&this.cancelUpload(e),this.files=d(this.files,e),this.emit("removedfile",e),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(e){null==e&&(e=!1);var t=!0,n=!1,i=void 0;try{for(var o,r=this.files.slice()[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var a=o.value;a.status===D.UPLOADING&&!e||this.removeFile(a)}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}return null}},{key:"resizeImage",value:function(o,e,t,n,r){var a=this;return this.createThumbnail(o,e,t,n,!0,function(e,t){if(null==t)return r(o);var n=a.options.resizeMimeType;null==n&&(n=o.type);var i=t.toDataURL(n,a.options.resizeQuality);return r(D.dataURItoBlob(i))})}},{key:"createThumbnail",value:function(e,t,n,i,o,r){var a=this,l=new FileReader;l.onload=function(){e.dataURL=l.result,"image/svg+xml"!==e.type?a.createThumbnailFromUrl(e,t,n,i,o,r):null!=r&&r(l.result)},l.readAsDataURL(e)}},{key:"displayExistingFile",value:function(t,e,n,i,o){var r=this,a=!(4<arguments.length&&void 0!==o)||o;if(this.emit("addedfile",t),this.emit("complete",t),a){t.dataURL=e,this.createThumbnailFromUrl(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.resizeMethod,this.options.fixOrientation,function(e){r.emit("thumbnail",t,e),n&&n()},i)}else this.emit("thumbnail",t,e),n&&n()}},{key:"createThumbnailFromUrl",value:function(r,a,l,s,t,u,e){var c=this,d=document.createElement("img");return e&&(d.crossOrigin=e),d.onload=function(){var e=function(e){return e(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&t&&(e=function(e){return EXIF.getData(d,function(){return e(EXIF.getTag(this,"Orientation"))})}),e(function(e){r.width=d.width,r.height=d.height;var t=c.options.resize.call(c,r,a,l,s),n=document.createElement("canvas"),i=n.getContext("2d");switch(n.width=t.trgWidth,n.height=t.trgHeight,4<e&&(n.width=t.trgHeight,n.height=t.trgWidth),e){case 2:i.translate(n.width,0),i.scale(-1,1);break;case 3:i.translate(n.width,n.height),i.rotate(Math.PI);break;case 4:i.translate(0,n.height),i.scale(1,-1);break;case 5:i.rotate(.5*Math.PI),i.scale(1,-1);break;case 6:i.rotate(.5*Math.PI),i.translate(0,-n.width);break;case 7:i.rotate(.5*Math.PI),i.translate(n.height,-n.width),i.scale(-1,1);break;case 8:i.rotate(-.5*Math.PI),i.translate(-n.height,0)}p(i,d,null!=t.srcX?t.srcX:0,null!=t.srcY?t.srcY:0,t.srcWidth,t.srcHeight,null!=t.trgX?t.trgX:0,null!=t.trgY?t.trgY:0,t.trgWidth,t.trgHeight);var o=n.toDataURL("image/png");if(null!=u)return u(o,n)})},null!=u&&(d.onerror=u),d.src=r.dataURL}},{key:"processQueue",value:function(){var e=this.options.parallelUploads,t=this.getUploadingFiles().length,n=t;if(!(e<=t)){var i=this.getQueuedFiles();if(0<i.length){if(this.options.uploadMultiple)return this.processFiles(i.slice(0,e-t));for(;n<e;){if(!i.length)return;this.processFile(i.shift()),n++}}}}},{key:"processFile",value:function(e){return this.processFiles([e])}},{key:"processFiles",value:function(e){var t=!0,n=!1,i=void 0;try{for(var o,r=e[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var a=o.value;a.processing=!0,a.status=D.UPLOADING,this.emit("processing",a)}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)}},{key:"_getFilesWithXhr",value:function(t){return this.files.filter(function(e){return e.xhr===t}).map(function(e){return e})}},{key:"cancelUpload",value:function(e){if(e.status===D.UPLOADING){var t=this._getFilesWithXhr(e.xhr),n=!0,i=!1,o=void 0;try{for(var r,a=t[Symbol.iterator]();!(n=(r=a.next()).done);n=!0){r.value.status=D.CANCELED}}catch(e){i=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw o}}void 0!==e.xhr&&e.xhr.abort();var l=!0,s=!1,u=void 0;try{for(var c,d=t[Symbol.iterator]();!(l=(c=d.next()).done);l=!0){var h=c.value;this.emit("canceled",h)}}catch(e){s=!0,u=e}finally{try{l||null==d.return||d.return()}finally{if(s)throw u}}this.options.uploadMultiple&&this.emit("canceledmultiple",t)}else e.status!==D.ADDED&&e.status!==D.QUEUED||(e.status=D.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)return e;for(var t=arguments.length,n=new Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return e.apply(this,n)}},{key:"uploadFile",value:function(e){return this.uploadFiles([e])}},{key:"uploadFiles",value:function(s){var u=this;this._transformFiles(s,function(e){if(u.options.chunking){var t=e[0];s[0].upload.chunked=u.options.chunking&&(u.options.forceChunking||t.size>u.options.chunkSize),s[0].upload.totalChunkCount=Math.ceil(t.size/u.options.chunkSize)}if(s[0].upload.chunked){var o=s[0],r=e[0];o.upload.chunks=[];var i=function(){for(var e=0;void 0!==o.upload.chunks[e];)e++;if(!(e>=o.upload.totalChunkCount)){0;var t=e*u.options.chunkSize,n=Math.min(t+u.options.chunkSize,o.size),i={name:u._getParamName(0),data:r.webkitSlice?r.webkitSlice(t,n):r.slice(t,n),filename:o.upload.filename,chunkIndex:e};o.upload.chunks[e]={file:o,index:e,dataBlock:i,status:D.UPLOADING,progress:0,retries:0},u._uploadData(s,[i])}};if(o.upload.finishedChunkUpload=function(e){var t=!0;e.status=D.SUCCESS,e.dataBlock=null,e.xhr=null;for(var n=0;n<o.upload.totalChunkCount;n++){if(void 0===o.upload.chunks[n])return i();o.upload.chunks[n].status!==D.SUCCESS&&(t=!1)}t&&u.options.chunksUploaded(o,function(){u._finished(s,"",null)})},u.options.parallelChunkUploads)for(var n=0;n<o.upload.totalChunkCount;n++)i();else i()}else{for(var a=[],l=0;l<s.length;l++)a[l]={name:u._getParamName(l),data:e[l],filename:s[l].upload.filename};u._uploadData(s,a)}})}},{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(t,e){var n=this,i=new XMLHttpRequest,o=!0,r=!1,a=void 0;try{for(var l,s=t[Symbol.iterator]();!(o=(l=s.next()).done);o=!0){l.value.xhr=i}}catch(e){r=!0,a=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw a}}t[0].upload.chunked&&(t[0].upload.chunks[e[0].chunkIndex].xhr=i);var u=this.resolveOption(this.options.method,t),c=this.resolveOption(this.options.url,t);i.open(u,c,!0),i.timeout=this.resolveOption(this.options.timeout,t),i.withCredentials=!!this.options.withCredentials,i.onload=function(e){n._finishedUploading(t,i,e)},i.ontimeout=function(){n._handleUploadError(t,i,"Request timedout after ".concat(n.options.timeout," seconds"))},i.onerror=function(){n._handleUploadError(t,i)},(null!=i.upload?i.upload:i).onprogress=function(e){return n._updateFilesUploadProgress(t,i,e)};var d={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};for(var h in this.options.headers&&D.extend(d,this.options.headers),d){var p=d[h];p&&i.setRequestHeader(h,p)}var f=new FormData;if(this.options.params){var v=this.options.params;for(var m in"function"==typeof v&&(v=v.call(this,t,i,t[0].upload.chunked?this._getChunk(t[0],i):null)),v){var g=v[m];f.append(m,g)}}var y=!0,b=!1,w=void 0;try{for(var E,k=t[Symbol.iterator]();!(y=(E=k.next()).done);y=!0){var S=E.value;this.emit("sending",S,i,f)}}catch(e){b=!0,w=e}finally{try{y||null==k.return||k.return()}finally{if(b)throw w}}this.options.uploadMultiple&&this.emit("sendingmultiple",t,i,f),this._addFormElementData(f);for(var C=0;C<e.length;C++){var x=e[C];f.append(x.name,x.data,x.filename)}this.submitRequest(i,f,t)}},{key:"_transformFiles",value:function(n,i){for(var e=this,o=[],r=0,t=function(t){e.options.transformFile.call(e,n[t],function(e){o[t]=e,++r===n.length&&i(o)})},a=0;a<n.length;a++)t(a)}},{key:"_addFormElementData",value:function(e){if("FORM"===this.element.tagName){var t=!0,n=!1,i=void 0;try{for(var o,r=this.element.querySelectorAll("input, textarea, select, button")[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var a=o.value,l=a.getAttribute("name"),s=a.getAttribute("type");if(s=s&&s.toLowerCase(),null!=l)if("SELECT"===a.tagName&&a.hasAttribute("multiple")){var u=!0,c=!1,d=void 0;try{for(var h,p=a.options[Symbol.iterator]();!(u=(h=p.next()).done);u=!0){var f=h.value;f.selected&&e.append(l,f.value)}}catch(e){c=!0,d=e}finally{try{u||null==p.return||p.return()}finally{if(c)throw d}}}else(!s||"checkbox"!==s&&"radio"!==s||a.checked)&&e.append(l,a.value)}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}}}},{key:"_updateFilesUploadProgress",value:function(e,t,n){var i;if(void 0!==n){if(i=100*n.loaded/n.total,e[0].upload.chunked){var o=e[0],r=this._getChunk(o,t);r.progress=i,r.total=n.total,r.bytesSent=n.loaded;o.upload.progress=0,o.upload.total=0;for(var a=o.upload.bytesSent=0;a<o.upload.totalChunkCount;a++)void 0!==o.upload.chunks[a]&&void 0!==o.upload.chunks[a].progress&&(o.upload.progress+=o.upload.chunks[a].progress,o.upload.total+=o.upload.chunks[a].total,o.upload.bytesSent+=o.upload.chunks[a].bytesSent);o.upload.progress=o.upload.progress/o.upload.totalChunkCount}else{var l=!0,s=!1,u=void 0;try{for(var c,d=e[Symbol.iterator]();!(l=(c=d.next()).done);l=!0){var h=c.value;h.upload.progress=i,h.upload.total=n.total,h.upload.bytesSent=n.loaded}}catch(e){s=!0,u=e}finally{try{l||null==d.return||d.return()}finally{if(s)throw u}}}var p=!0,f=!1,v=void 0;try{for(var m,g=e[Symbol.iterator]();!(p=(m=g.next()).done);p=!0){var y=m.value;this.emit("uploadprogress",y,y.upload.progress,y.upload.bytesSent)}}catch(e){f=!0,v=e}finally{try{p||null==g.return||g.return()}finally{if(f)throw v}}}else{var b=!0,w=!0,E=!(i=100),k=void 0;try{for(var S,C=e[Symbol.iterator]();!(w=(S=C.next()).done);w=!0){var x=S.value;100===x.upload.progress&&x.upload.bytesSent===x.upload.total||(b=!1),x.upload.progress=i,x.upload.bytesSent=x.upload.total}}catch(e){E=!0,k=e}finally{try{w||null==C.return||C.return()}finally{if(E)throw k}}if(b)return;var D=!0,_=!1,F=void 0;try{for(var T,A=e[Symbol.iterator]();!(D=(T=A.next()).done);D=!0){var M=T.value;this.emit("uploadprogress",M,i,M.upload.bytesSent)}}catch(e){_=!0,F=e}finally{try{D||null==A.return||A.return()}finally{if(_)throw F}}}}},{key:"_finishedUploading",value:function(e,t,n){var i;if(e[0].status!==D.CANCELED&&4===t.readyState){if("arraybuffer"!==t.responseType&&"blob"!==t.responseType&&(i=t.responseText,t.getResponseHeader("content-type")&&~t.getResponseHeader("content-type").indexOf("application/json")))try{i=JSON.parse(i)}catch(e){n=e,i="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,i,n):this._handleUploadError(e,t,i)}}},{key:"_handleUploadError",value:function(e,t,n){if(e[0].status!==D.CANCELED){if(e[0].upload.chunked&&this.options.retryChunks){var i=this._getChunk(e[0],t);if(i.retries++<this.options.retryChunksLimit)return void this._uploadData(e,[i.dataBlock])}this._errorProcessing(e,n||this.options.dictResponseError.replace("{{statusCode}}",t.status),t)}}},{key:"submitRequest",value:function(e,t){e.send(t)}},{key:"_finished",value:function(e,t,n){var i=!0,o=!1,r=void 0;try{for(var a,l=e[Symbol.iterator]();!(i=(a=l.next()).done);i=!0){var s=a.value;s.status=D.SUCCESS,this.emit("success",s,t,n),this.emit("complete",s)}}catch(e){o=!0,r=e}finally{try{i||null==l.return||l.return()}finally{if(o)throw r}}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){var i=!0,o=!1,r=void 0;try{for(var a,l=e[Symbol.iterator]();!(i=(a=l.next()).done);i=!0){var s=a.value;s.status=D.ERROR,this.emit("error",s,t,n),this.emit("complete",s)}}catch(e){o=!0,r=e}finally{try{i||null==l.return||l.return()}finally{if(o)throw r}}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)})}}]),D}();c.initClass(),c.version="5.7.1",c.options={},c.optionsForElement=function(e){return e.getAttribute("id")?c.options[h(e.getAttribute("id"))]:void 0},c.instances=[],c.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},c.autoDiscover=!0,c.discover=function(){var s;if(document.querySelectorAll)s=document.querySelectorAll(".dropzone");else{s=[];var e=function(l){return function(){var e=[],t=!0,n=!1,i=void 0;try{for(var o,r=l[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var a=o.value;/(^| )dropzone($| )/.test(a.className)?e.push(s.push(a)):e.push(void 0)}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}return e}()};e(document.getElementsByTagName("div")),e(document.getElementsByTagName("form"))}return function(){var e=[],t=!0,n=!1,i=void 0;try{for(var o,r=s[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var a=o.value;!1!==c.optionsForElement(a)?e.push(new c(a)):e.push(void 0)}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}return e}()},c.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],c.isBrowserSupported=function(){var e=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a")){var t=!0,n=!1,i=void 0;try{for(var o,r=c.blacklistedBrowsers[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){o.value.test(navigator.userAgent)&&(e=!1)}}catch(e){n=!0,i=e}finally{try{t||null==r.return||r.return()}finally{if(n)throw i}}}else e=!1;else e=!1;return e},c.dataURItoBlob=function(e){for(var t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(t.length),o=new Uint8Array(i),r=0,a=t.length,l=0<=a;l?r<=a:a<=r;l?r++:r--)o[r]=t.charCodeAt(r);return new Blob([i],{type:n})};var d=function(e,t){return e.filter(function(e){return e!==t}).map(function(e){return e})},h=function(e){return e.replace(/[\-_](\w)/g,function(e){return e.charAt(1).toUpperCase()})};c.createElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},c.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},c.getElement=function(e,t){var n;if("string"==typeof e?n=document.querySelector(e):null!=e.nodeType&&(n=e),null==n)throw new Error("Invalid `".concat(t,"` option provided. Please provide a CSS selector or a plain HTML element."));return n},c.getElements=function(e,t){var n,i;if(e instanceof Array){i=[];try{var o=!0,r=!1,a=void 0;try{for(var l,s=e[Symbol.iterator]();!(o=(l=s.next()).done);o=!0)n=l.value,i.push(this.getElement(n,t))}catch(e){r=!0,a=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw a}}}catch(e){i=null}}else if("string"==typeof e){var u=!0,c=!(i=[]),d=void 0;try{for(var h,p=document.querySelectorAll(e)[Symbol.iterator]();!(u=(h=p.next()).done);u=!0)n=h.value,i.push(n)}catch(e){c=!0,d=e}finally{try{u||null==p.return||p.return()}finally{if(c)throw d}}}else null!=e.nodeType&&(i=[e]);if(null==i||!i.length)throw new Error("Invalid `".concat(t,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return i},c.confirm=function(e,t,n){return window.confirm(e)?t():null!=n?n():void 0},c.isValidFile=function(e,t){if(!t)return!0;t=t.split(",");var n=e.type,i=n.replace(/\/.*$/,""),o=!0,r=!1,a=void 0;try{for(var l,s=t[Symbol.iterator]();!(o=(l=s.next()).done);o=!0){var u=l.value;if("."===(u=u.trim()).charAt(0)){if(-1!==e.name.toLowerCase().indexOf(u.toLowerCase(),e.name.length-u.length))return!0}else if(/\/\*$/.test(u)){if(i===u.replace(/\/.*$/,""))return!0}else if(n===u)return!0}}catch(e){r=!0,a=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw a}}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(e){return this.each(function(){return new c(this,e)})}),null!==e?e.exports=c:window.Dropzone=c,c.ADDED="added",c.QUEUED="queued",c.ACCEPTED=c.QUEUED,c.UPLOADING="uploading",c.PROCESSING=c.UPLOADING,c.CANCELED="canceled",c.ERROR="error",c.SUCCESS="success";var p=function(e,t,n,i,o,r,a,l,s,u){var c=function(e){e.naturalWidth;var t=e.naturalHeight,n=document.createElement("canvas");n.width=1,n.height=t;var i=n.getContext("2d");i.drawImage(e,0,0);for(var o=i.getImageData(1,0,1,t).data,r=0,a=t,l=t;r<l;){0===o[4*(l-1)+3]?a=l:r=l,l=a+r>>1}var s=l/t;return 0==s?1:s}(t);return e.drawImage(t,n,i,o,r,a,l,s,u/c)};(function(){function e(){u(this,e)}return t(e,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(e){for(var t="",n=void 0,i=void 0,o="",r=void 0,a=void 0,l=void 0,s="",u=0;r=(n=e[u++])>>2,a=(3&n)<<4|(i=e[u++])>>4,l=(15&i)<<2|(o=e[u++])>>6,s=63&o,isNaN(i)?l=s=64:isNaN(o)&&(s=64),t=t+this.KEY_STR.charAt(r)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(l)+this.KEY_STR.charAt(s),n=i=o="",r=a=l=s="",u<e.length;);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,","")),i=this.slice2Segments(n),o=this.exifManipulation(t,i);return"data:image/jpeg;base64,".concat(this.encode64(o))}},{key:"exifManipulation",value:function(e,t){var n=this.getExifArray(t),i=this.insertExif(e,n);return new Uint8Array(i)}},{key:"getExifArray",value:function(e){for(var t=void 0,n=0;n<e.length;){if(255===(t=e[n])[0]&225===t[1])return t;n++}return[]}},{key:"insertExif",value:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),i=this.decode64(n),o=i.indexOf(255,3),r=i.slice(0,o),a=i.slice(o),l=r;return l=(l=l.concat(t)).concat(a)}},{key:"slice2Segments",value:function(e){for(var t=0,n=[];;){if(255===e[t]&218===e[t+1])break;if(255===e[t]&216===e[t+1])t+=2;else{var i=t+(256*e[t+2]+e[t+3])+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,i="",o=void 0,r=void 0,a="",l=0,s=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(e),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");t=this.KEY_STR.indexOf(e.charAt(l++))<<2|(o=this.KEY_STR.indexOf(e.charAt(l++)))>>4,n=(15&o)<<4|(r=this.KEY_STR.indexOf(e.charAt(l++)))>>2,i=(3&r)<<6|(a=this.KEY_STR.indexOf(e.charAt(l++))),s.push(t),64!==r&&s.push(n),64!==a&&s.push(i),t=n=i="",o=r=a="",l<e.length;);return s}}]),e})().initClass();c._autoDiscoverFunction=function(){if(c.autoDiscover)return c.discover()},function(t,n){function i(e){if("readystatechange"!==e.type||"complete"===r.readyState)return("load"===e.type?t:r)[s](u+e.type,i,!1),!o&&(o=!0)?n.call(t,e.type||e):void 0}var o=!1,e=!0,r=t.document,a=r.documentElement,l=r.addEventListener?"addEventListener":"attachEvent",s=r.addEventListener?"removeEventListener":"detachEvent",u=r.addEventListener?"":"on";if("complete"!==r.readyState){if(r.createEventObject&&a.doScroll){try{e=!t.frameElement}catch(e){}e&&!function t(){try{a.doScroll("left")}catch(e){return void setTimeout(t,50)}return i("poll")}()}r[l](u+"DOMContentLoaded",i,!1),r[l](u+"readystatechange",i,!1),t[l](u+"load",i,!1)}}(window,c._autoDiscoverFunction)}).call(this,n(/*! ./../../webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./node_modules/sortablejs/modular/sortable.esm.js":
/*!*********************************************************!*\
!*** ./node_modules/sortablejs/modular/sortable.esm.js ***!
\*********************************************************/
/*! exports provided: default, MultiDrag, Sortable, Swap */function(e,t,n){"use strict";
/**!
* Sortable 1.10.2
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/
function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function W(o){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},t=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.forEach(function(e){var t,n,i;t=o,i=r[n=e],n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i})}return o}function l(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.r(t),n.d(t,"MultiDrag",function(){return gt}),n.d(t,"Sortable",function(){return Re}),n.d(t,"Swap",function(){return at});function o(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var w=o(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),E=o(/Edge/i),u=o(/firefox/i),s=o(/safari/i)&&!o(/chrome/i)&&!o(/android/i),c=o(/iP(ad|od|hone)/i),d=o(/chrome/i)&&o(/android/i),h={capture:!1,passive:!1};function p(e,t,n){e.addEventListener(t,n,!w&&h)}function f(e,t,n){e.removeEventListener(t,n,!w&&h)}function v(e,t){if(t&&(">"===t[0]&&(t=t.substring(1)),e))try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return}}function q(e,t,n,i){if(e){n=n||document;do{if(null!=t&&(">"!==t[0]||e.parentNode===n)&&v(e,t)||i&&e===n)return e;if(e===n)break}while(e=(o=e).host&&o!==document&&o.host.nodeType?o.host:o.parentNode)}var o;return null}var m,g=/\s+/g;function Q(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(g," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(g," ")}}function G(e,t,n){var i=e&&e.style;if(i){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in i||-1!==t.indexOf("webkit")||(t="-webkit-"+t),i[t]=n+("string"==typeof n?"":"px")}}function y(e,t){var n="";if("string"==typeof e)n=e;else do{var i=G(e,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function b(e,t,n){if(e){var i=e.getElementsByTagName(t),o=0,r=i.length;if(n)for(;o<r;o++)n(i[o],o);return i}return[]}function M(){var e=document.scrollingElement;return e||document.documentElement}function K(e,t,n,i,o){if(e.getBoundingClientRect||e===window){var r,a,l,s,u,c,d;if(d=e!==window&&e!==M()?(a=(r=e.getBoundingClientRect()).top,l=r.left,s=r.bottom,u=r.right,c=r.height,r.width):(l=a=0,s=window.innerHeight,u=window.innerWidth,c=window.innerHeight,window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!w))do{if(o&&o.getBoundingClientRect&&("none"!==G(o,"transform")||n&&"static"!==G(o,"position"))){var h=o.getBoundingClientRect();a-=h.top+parseInt(G(o,"border-top-width")),l-=h.left+parseInt(G(o,"border-left-width")),s=a+r.height,u=l+r.width;break}}while(o=o.parentNode);if(i&&e!==window){var p=y(o||e),f=p&&p.a,v=p&&p.d;p&&(s=(a/=v)+(c/=v),u=(l/=f)+(d/=f))}return{top:a,left:l,bottom:s,right:u,width:d,height:c}}}function V(e,t,n){for(var i=z(e,!0),o=K(e)[t];i;){var r=K(i)[n];if(!("top"===n||"left"===n?r<=o:o<=r))return i;if(i===M())break;i=z(i,!1)}return!1}function k(e,t,n){for(var i=0,o=0,r=e.children;o<r.length;){if("none"!==r[o].style.display&&r[o]!==Re.ghost&&r[o]!==Re.dragged&&q(r[o],n.draggable,e,!1)){if(i===t)return r[o];i++}o++}return null}function Z(e,t){for(var n=e.lastElementChild;n&&(n===Re.ghost||"none"===G(n,"display")||t&&!v(n,t));)n=n.previousElementSibling;return n||null}function $(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Re.clone||t&&!v(e,t)||n++;return n}function S(e){var t=0,n=0,i=M();if(e)do{var o=y(e),r=o.a,a=o.d;t+=e.scrollLeft*r,n+=e.scrollTop*a}while(e!==i&&(e=e.parentNode));return[t,n]}function z(e,t){if(!e||!e.getBoundingClientRect)return M();var n=e,i=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=G(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return M();if(i||t)return n;i=!0}}}while(n=n.parentNode);return M()}function C(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function x(t,n){return function(){if(!m){var e=arguments;1===e.length?t.call(this,e[0]):t.apply(this,e),m=setTimeout(function(){m=void 0},n)}}}function J(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function D(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function _(e,t){G(e,"position","absolute"),G(e,"top",t.top),G(e,"left",t.left),G(e,"width",t.width),G(e,"height",t.height)}function F(e){G(e,"position",""),G(e,"top",""),G(e,"left",""),G(e,"width",""),G(e,"height","")}var ee="Sortable"+(new Date).getTime();function T(){var t,i=[];return{captureAnimationState:function(){i=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(e){if("none"!==G(e,"display")&&e!==Re.ghost){i.push({target:e,rect:K(e)});var t=W({},i[i.length-1].rect);if(e.thisAnimationDuration){var n=y(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}})},addAnimationState:function(e){i.push(e)},removeAnimationState:function(e){i.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[n][i])return Number(n);return-1}(i,{target:e}),1)},animateAll:function(e){var p=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof e&&e());var f=!1,v=0;i.forEach(function(e){var t,n,i,o,r=0,a=e.target,l=a.fromRect,s=K(a),u=a.prevFromRect,c=a.prevToRect,d=e.rect,h=y(a,!0);h&&(s.top-=h.f,s.left-=h.e),a.toRect=s,a.thisAnimationDuration&&C(u,s)&&!C(l,s)&&(d.top-s.top)/(d.left-s.left)==(l.top-s.top)/(l.left-s.left)&&(t=d,n=u,i=c,o=p.options,r=Math.sqrt(Math.pow(n.top-t.top,2)+Math.pow(n.left-t.left,2))/Math.sqrt(Math.pow(n.top-i.top,2)+Math.pow(n.left-i.left,2))*o.animation),C(s,l)||(a.prevFromRect=l,a.prevToRect=s,r=r||p.options.animation,p.animate(a,d,s,r)),r&&(f=!0,v=Math.max(v,r),clearTimeout(a.animationResetTimer),a.animationResetTimer=setTimeout(function(){a.animationTime=0,a.prevFromRect=null,a.fromRect=null,a.prevToRect=null,a.thisAnimationDuration=null},r),a.thisAnimationDuration=r)}),clearTimeout(t),f?t=setTimeout(function(){"function"==typeof e&&e()},v):"function"==typeof e&&e(),i=[]},animate:function(e,t,n,i){if(i){G(e,"transition",""),G(e,"transform","");var o=y(this.el),r=o&&o.a,a=o&&o.d,l=(t.left-n.left)/(r||1),s=(t.top-n.top)/(a||1);e.animatingX=!!l,e.animatingY=!!s,G(e,"transform","translate3d("+l+"px,"+s+"px,0)"),e.offsetWidth,G(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),G(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout(function(){G(e,"transition",""),G(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1},i)}}}}var A=[],I={initializeByDefault:!0},N={mount:function(e){for(var t in I)!I.hasOwnProperty(t)||t in e||(e[t]=I[t]);A.push(e)},pluginEvent:function(t,n,i){var e=this;this.eventCanceled=!1,i.cancel=function(){e.eventCanceled=!0};var o=t+"Global";A.forEach(function(e){n[e.pluginName]&&(n[e.pluginName][o]&&n[e.pluginName][o](W({sortable:n},i)),n.options[e.pluginName]&&n[e.pluginName][t]&&n[e.pluginName][t](W({sortable:n},i)))})},initializePlugins:function(i,o,r){for(var e in A.forEach(function(e){var t=e.pluginName;if(i.options[t]||e.initializeByDefault){var n=new e(i,o,i.options);n.sortable=i,n.options=i.options,i[t]=n,a(r,n.defaults)}}),i.options)if(i.options.hasOwnProperty(e)){var t=this.modifyOption(i,e,i.options[e]);void 0!==t&&(i.options[e]=t)}},getEventProperties:function(t,n){var i={};return A.forEach(function(e){"function"==typeof e.eventProperties&&a(i,e.eventProperties.call(n[e.pluginName],t))}),i},modifyOption:function(t,n,i){var o;return A.forEach(function(e){t[e.pluginName]&&e.optionListeners&&"function"==typeof e.optionListeners[n]&&(o=e.optionListeners[n].call(t[e.pluginName],i))}),o}};function O(e){var t=e.sortable,n=e.rootEl,i=e.name,o=e.targetEl,r=e.cloneEl,a=e.toEl,l=e.fromEl,s=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,h=e.originalEvent,p=e.putSortable,f=e.extraEventProperties;if(t=t||n&&n[ee]){var v,m=t.options,g="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||w||E?(v=document.createEvent("Event")).initEvent(i,!0,!0):v=new CustomEvent(i,{bubbles:!0,cancelable:!0}),v.to=a||n,v.from=l||n,v.item=o||n,v.clone=r,v.oldIndex=s,v.newIndex=u,v.oldDraggableIndex=c,v.newDraggableIndex=d,v.originalEvent=h,v.pullMode=p?p.lastPutMode:void 0;var y=W({},f,N.getEventProperties(i,t));for(var b in y)v[b]=y[b];n&&n.dispatchEvent(v),m[g]&&m[g].call(t,v)}}function te(e,t,n){var i=2<arguments.length&&void 0!==n?n:{},o=i.evt,r=l(i,["evt"]);N.pluginEvent.bind(Re)(e,t,W({dragEl:ie,parentEl:oe,ghostEl:re,rootEl:ae,nextEl:le,lastDownEl:L,cloneEl:P,cloneHidden:R,dragStarted:fe,putSortable:de,activeSortable:Re.active,originalEvent:o,oldIndex:U,oldDraggableIndex:B,newIndex:se,newDraggableIndex:ue,hideGhostForTarget:Ne,unhideGhostForTarget:Oe,cloneNowHidden:function(){R=!0},cloneNowShown:function(){R=!1},dispatchSortableEvent:function(e){ne({sortable:t,name:e,originalEvent:o})}},r))}function ne(e){O(W({putSortable:de,cloneEl:P,targetEl:ie,rootEl:ae,oldIndex:U,oldDraggableIndex:B,newIndex:se,newDraggableIndex:ue},e))}var ie,oe,re,ae,le,L,P,R,U,se,B,ue,ce,de,H,Y,X,j,he,pe,fe,ve,me,ge,ye,be=!1,we=!1,Ee=[],ke=!1,Se=!1,Ce=[],xe=!1,De=[],_e="undefined"!=typeof document,Fe=c,Te=E||w?"cssFloat":"float",Ae=_e&&!d&&!c&&"draggable"in document.createElement("div"),Me=function(){if(_e){if(w)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),ze=function(e,t){var n=G(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=k(e,0,t),r=k(e,1,t),a=o&&G(o),l=r&&G(r),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+K(o).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+K(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&"none"!==a.float){var c="left"===a.float?"left":"right";return!r||"both"!==l.clear&&l.clear!==c?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||i<=s&&"none"===n[Te]||r&&"none"===n[Te]&&i<s+u)?"vertical":"horizontal"},Ie=function(e){function s(a,l){return function(e,t,n,i){var o=e.options.group.name&&t.options.group.name&&e.options.group.name===t.options.group.name;if(null==a&&(l||o))return!0;if(null==a||!1===a)return!1;if(l&&"clone"===a)return a;if("function"==typeof a)return s(a(e,t,n,i),l)(e,t,n,i);var r=(l?e:t).options.group.name;return!0===a||"string"==typeof a&&a===r||a.join&&-1<a.indexOf(r)}}var t={},n=e.group;n&&"object"==i(n)||(n={name:n}),t.name=n.name,t.checkPull=s(n.pull,!0),t.checkPut=s(n.put),t.revertClone=n.revertClone,e.group=t},Ne=function(){!Me&&re&&G(re,"display","none")},Oe=function(){!Me&&re&&G(re,"display","")};_e&&document.addEventListener("click",function(e){if(we)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),we=!1},!0);function Le(e){if(ie){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,a=e.clientY,Ee.some(function(e){if(!Z(e)){var t=K(e),n=e[ee].options.emptyInsertThreshold,i=r>=t.left-n&&r<=t.right+n,o=a>=t.top-n&&a<=t.bottom+n;return n&&i&&o?l=e:void 0}}),l);if(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[ee]._onDragOver(n)}}var r,a,l}function Pe(e){ie&&ie.parentNode[ee]._isOutsideThisEl(e.target)}function Re(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=a({},t),e[ee]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return ze(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Re.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var i in N.initializePlugins(this,e,n),n)i in t||(t[i]=n[i]);for(var o in Ie(t),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&Ae,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?p(e,"pointerdown",this._onTapStart):(p(e,"mousedown",this._onTapStart),p(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(p(e,"dragover",this),p(e,"dragenter",this)),Ee.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),a(this,T())}function Ue(e,t,n,i,o,r,a,l){var s,u,c=e[ee],d=c.options.onMove;return!window.CustomEvent||w||E?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=i,s.related=o||t,s.relatedRect=r||K(t),s.willInsertAfter=l,s.originalEvent=a,e.dispatchEvent(s),d&&(u=d.call(c,s,a)),u}function Be(e){e.draggable=!1}function He(){xe=!1}function Ye(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function Xe(e){return setTimeout(e,0)}function je(e){return clearTimeout(e)}Re.prototype={constructor:Re,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(ve=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,ie):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,i=this.el,e=this.options,o=e.preventOnFilter,r=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,l=(a||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,u=e.filter;if(!function(e){De.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var i=t[n];i.checked&&De.push(i)}}(i),!ie&&!(/mousedown|pointerdown/.test(r)&&0!==t.button||e.disabled||s.isContentEditable||(l=q(l,e.draggable,i,!1))&&l.animated||L===l)){if(U=$(l),B=$(l,e.draggable),"function"==typeof u){if(u.call(this,t,l,this))return ne({sortable:n,rootEl:s,name:"filter",targetEl:l,toEl:i,fromEl:i}),te("filter",n,{evt:t}),void(o&&t.cancelable&&t.preventDefault())}else if(u=u&&u.split(",").some(function(e){if(e=q(s,e.trim(),i,!1))return ne({sortable:n,rootEl:e,name:"filter",targetEl:l,fromEl:i,toEl:i}),te("filter",n,{evt:t}),!0}))return void(o&&t.cancelable&&t.preventDefault());e.handle&&!q(s,e.handle,i,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(e,t,n){var i,o=this,r=o.el,a=o.options,l=r.ownerDocument;if(n&&!ie&&n.parentNode===r){var s=K(n);if(ae=r,oe=(ie=n).parentNode,le=ie.nextSibling,L=n,ce=a.group,H={target:Re.dragged=ie,clientX:(t||e).clientX,clientY:(t||e).clientY},he=H.clientX-s.left,pe=H.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ie.style["will-change"]="all",i=function(){te("delayEnded",o,{evt:e}),Re.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!u&&o.nativeDraggable&&(ie.draggable=!0),o._triggerDragStart(e,t),ne({sortable:o,name:"choose",originalEvent:e}),Q(ie,a.chosenClass,!0))},a.ignore.split(",").forEach(function(e){b(ie,e.trim(),Be)}),p(l,"dragover",Le),p(l,"mousemove",Le),p(l,"touchmove",Le),p(l,"mouseup",o._onDrop),p(l,"touchend",o._onDrop),p(l,"touchcancel",o._onDrop),u&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ie.draggable=!0),te("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(E||w))i();else{if(Re.eventCanceled)return void this._onDrop();p(l,"mouseup",o._disableDelayedDrag),p(l,"touchend",o._disableDelayedDrag),p(l,"touchcancel",o._disableDelayedDrag),p(l,"mousemove",o._delayedDragTouchMoveHandler),p(l,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&p(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(i,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ie&&Be(ie),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;f(e,"mouseup",this._disableDelayedDrag),f(e,"touchend",this._disableDelayedDrag),f(e,"touchcancel",this._disableDelayedDrag),f(e,"mousemove",this._delayedDragTouchMoveHandler),f(e,"touchmove",this._delayedDragTouchMoveHandler),f(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?p(document,"pointermove",this._onTouchMove):p(document,t?"touchmove":"mousemove",this._onTouchMove):(p(ie,"dragend",this),p(ae,"dragstart",this._onDragStart));try{document.selection?Xe(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(be=!1,ae&&ie){te("dragStarted",this,{evt:t}),this.nativeDraggable&&p(document,"dragover",Pe);var n=this.options;e||Q(ie,n.dragClass,!1),Q(ie,n.ghostClass,!0),Re.active=this,e&&this._appendGhost(),ne({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Y){this._lastX=Y.clientX,this._lastY=Y.clientY,Ne();for(var e=document.elementFromPoint(Y.clientX,Y.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Y.clientX,Y.clientY))!==t;)t=e;if(ie.parentNode[ee]._isOutsideThisEl(e),t)do{if(t[ee]){if(t[ee]._onDragOver({clientX:Y.clientX,clientY:Y.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Oe()}},_onTouchMove:function(e){if(H){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,o=e.touches?e.touches[0]:e,r=re&&y(re,!0),a=re&&r&&r.a,l=re&&r&&r.d,s=Fe&&ye&&S(ye),u=(o.clientX-H.clientX+i.x)/(a||1)+(s?s[0]-Ce[0]:0)/(a||1),c=(o.clientY-H.clientY+i.y)/(l||1)+(s?s[1]-Ce[1]:0)/(l||1);if(!Re.active&&!be){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(re){r?(r.e+=u-(X||0),r.f+=c-(j||0)):r={a:1,b:0,c:0,d:1,e:u,f:c};var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");G(re,"webkitTransform",d),G(re,"mozTransform",d),G(re,"msTransform",d),G(re,"transform",d),X=u,j=c,Y=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!re){var e=this.options.fallbackOnBody?document.body:ae,t=K(ie,!0,Fe,!0,e),n=this.options;if(Fe){for(ye=e;"static"===G(ye,"position")&&"none"===G(ye,"transform")&&ye!==document;)ye=ye.parentNode;ye!==document.body&&ye!==document.documentElement?(ye===document&&(ye=M()),t.top+=ye.scrollTop,t.left+=ye.scrollLeft):ye=M(),Ce=S(ye)}Q(re=ie.cloneNode(!0),n.ghostClass,!1),Q(re,n.fallbackClass,!0),Q(re,n.dragClass,!0),G(re,"transition",""),G(re,"transform",""),G(re,"box-sizing","border-box"),G(re,"margin",0),G(re,"top",t.top),G(re,"left",t.left),G(re,"width",t.width),G(re,"height",t.height),G(re,"opacity","0.8"),G(re,"position",Fe?"absolute":"fixed"),G(re,"zIndex","100000"),G(re,"pointerEvents","none"),Re.ghost=re,e.appendChild(re),G(re,"transform-origin",he/parseInt(re.style.width)*100+"% "+pe/parseInt(re.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,i=e.dataTransfer,o=n.options;te("dragStart",this,{evt:e}),Re.eventCanceled?this._onDrop():(te("setupClone",this),Re.eventCanceled||((P=D(ie)).draggable=!1,P.style["will-change"]="",this._hideClone(),Q(P,this.options.chosenClass,!1),Re.clone=P),n.cloneId=Xe(function(){te("clone",n),Re.eventCanceled||(n.options.removeCloneOnHide||ae.insertBefore(P,ie),n._hideClone(),ne({sortable:n,name:"clone"}))}),t||Q(ie,o.dragClass,!0),t?(we=!0,n._loopId=setInterval(n._emulateDragOver,50)):(f(document,"mouseup",n._onDrop),f(document,"touchend",n._onDrop),f(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(n,i,ie)),p(document,"drop",n),G(ie,"transform","translateZ(0)")),be=!0,n._dragStartId=Xe(n._dragStarted.bind(n,t,e)),p(document,"selectstart",n),fe=!0,s&&G(document.body,"user-select","none"))},_onDragOver:function(n){var i,o,r,a,l=this.el,s=n.target,t=this.options,e=t.group,u=Re.active,c=ce===e,d=t.sort,h=de||u,p=this,f=!1;if(!xe){if(void 0!==n.preventDefault&&n.cancelable&&n.preventDefault(),s=q(s,t.draggable,l,!0),H("dragOver"),Re.eventCanceled)return f;if(ie.contains(n.target)||s.animated&&s.animatingX&&s.animatingY||p._ignoreWhileAnimating===s)return X(!1);if(we=!1,u&&!t.disabled&&(c?d||(r=!ae.contains(ie)):de===this||(this.lastPutMode=ce.checkPull(this,u,ie,n))&&e.checkPut(this,u,ie,n))){if(a="vertical"===this._getDirection(n,s),i=K(ie),H("dragOverValid"),Re.eventCanceled)return f;if(r)return oe=ae,Y(),this._hideClone(),H("revert"),Re.eventCanceled||(le?ae.insertBefore(ie,le):ae.appendChild(ie)),X(!0);var v=Z(l,t.draggable);if(v&&(P=n,R=a,B=K(Z((U=this).el,U.options.draggable)),!(R?P.clientX>B.right+10||P.clientX<=B.right&&P.clientY>B.bottom&&P.clientX>=B.left:P.clientX>B.right&&P.clientY>B.top||P.clientX<=B.right&&P.clientY>B.bottom+10)||v.animated)){if(s.parentNode===l){o=K(s);var m,g,y,b=ie.parentNode!==l,w=(F=ie.animated&&ie.toRect||i,T=s.animated&&s.toRect||o,M=(A=a)?F.left:F.top,z=A?F.right:F.bottom,I=A?F.width:F.height,N=A?T.left:T.top,O=A?T.right:T.bottom,L=A?T.width:T.height,!(M===N||z===O||M+I/2===N+L/2)),E=a?"top":"left",k=V(s,"top","top")||V(ie,"top","top"),S=k?k.scrollTop:void 0;if(ve!==s&&(g=o[E],ke=!1,Se=!w&&t.invertSwap||b),0!==(m=function(e,t,n,i,o,r,a,l){var s=i?e.clientY:e.clientX,u=i?n.height:n.width,c=i?n.top:n.left,d=i?n.bottom:n.right,h=!1;if(!a)if(l&&ge<u*o){if(!ke&&(1===me?c+u*r/2<s:s<d-u*r/2)&&(ke=!0),ke)h=!0;else if(1===me?s<c+ge:d-ge<s)return-me}else if(c+u*(1-o)/2<s&&s<d-u*(1-o)/2)return function(e){return $(ie)<$(e)?1:-1}(t);if((h=h||a)&&(s<c+u*r/2||d-u*r/2<s))return c+u/2<s?1:-1;return 0}(n,s,o,a,w?1:t.swapThreshold,null==t.invertedSwapThreshold?t.swapThreshold:t.invertedSwapThreshold,Se,ve===s)))for(var C=$(ie);C-=m,(y=oe.children[C])&&("none"===G(y,"display")||y===re););if(0===m||y===s)return X(!1);me=m;var x=(ve=s).nextElementSibling,D=!1,_=Ue(ae,l,ie,i,s,o,n,D=1===m);if(!1!==_)return 1!==_&&-1!==_||(D=1===_),xe=!0,setTimeout(He,30),Y(),D&&!x?l.appendChild(ie):s.parentNode.insertBefore(ie,D?x:s),k&&J(k,0,S-k.scrollTop),oe=ie.parentNode,void 0===g||Se||(ge=Math.abs(g-K(s)[E])),j(),X(!0)}}else{if(v===ie)return X(!1);if(v&&l===n.target&&(s=v),s&&(o=K(s)),!1!==Ue(ae,l,ie,i,s,o,n,!!s))return Y(),l.appendChild(ie),oe=l,j(),X(!0)}if(l.contains(ie))return X(!1)}var F,T,A,M,z,I,N,O,L,P,R,U,B;return!1}function H(e,t){te(e,p,W({evt:n,isOwner:c,axis:a?"vertical":"horizontal",revert:r,dragRect:i,targetRect:o,canSort:d,fromSortable:h,target:s,completed:X,onMove:function(e,t){return Ue(ae,l,ie,i,e,K(e),n,t)},changed:j},t))}function Y(){H("dragOverAnimationCapture"),p.captureAnimationState(),p!==h&&h.captureAnimationState()}function X(e){return H("dragOverCompleted",{insertion:e}),e&&(c?u._hideClone():u._showClone(p),p!==h&&(Q(ie,de?de.options.ghostClass:u.options.ghostClass,!1),Q(ie,t.ghostClass,!0)),de!==p&&p!==Re.active?de=p:p===Re.active&&de&&(de=null),h===p&&(p._ignoreWhileAnimating=s),p.animateAll(function(){H("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(s===ie&&!ie.animated||s===l&&!s.animated)&&(ve=null),t.dragoverBubble||n.rootEl||s===document||(ie.parentNode[ee]._isOutsideThisEl(n.target),e||Le(n)),!t.dragoverBubble&&n.stopPropagation&&n.stopPropagation(),f=!0}function j(){se=$(ie),ue=$(ie,t.draggable),ne({sortable:p,name:"change",toEl:l,newIndex:se,newDraggableIndex:ue,originalEvent:n})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){f(document,"mousemove",this._onTouchMove),f(document,"touchmove",this._onTouchMove),f(document,"pointermove",this._onTouchMove),f(document,"dragover",Le),f(document,"mousemove",Le),f(document,"touchmove",Le)},_offUpEvents:function(){var e=this.el.ownerDocument;f(e,"mouseup",this._onDrop),f(e,"touchend",this._onDrop),f(e,"pointerup",this._onDrop),f(e,"touchcancel",this._onDrop),f(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;se=$(ie),ue=$(ie,n.draggable),te("drop",this,{evt:e}),oe=ie&&ie.parentNode,se=$(ie),ue=$(ie,n.draggable),Re.eventCanceled||(ke=Se=be=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),je(this.cloneId),je(this._dragStartId),this.nativeDraggable&&(f(document,"drop",this),f(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),s&&G(document.body,"user-select",""),G(ie,"transform",""),e&&(fe&&(e.cancelable&&e.preventDefault(),n.dropBubble||e.stopPropagation()),re&&re.parentNode&&re.parentNode.removeChild(re),(ae===oe||de&&"clone"!==de.lastPutMode)&&P&&P.parentNode&&P.parentNode.removeChild(P),ie&&(this.nativeDraggable&&f(ie,"dragend",this),Be(ie),ie.style["will-change"]="",fe&&!be&&Q(ie,de?de.options.ghostClass:this.options.ghostClass,!1),Q(ie,this.options.chosenClass,!1),ne({sortable:this,name:"unchoose",toEl:oe,newIndex:null,newDraggableIndex:null,originalEvent:e}),ae!==oe?(0<=se&&(ne({rootEl:oe,name:"add",toEl:oe,fromEl:ae,originalEvent:e}),ne({sortable:this,name:"remove",toEl:oe,originalEvent:e}),ne({rootEl:oe,name:"sort",toEl:oe,fromEl:ae,originalEvent:e}),ne({sortable:this,name:"sort",toEl:oe,originalEvent:e})),de&&de.save()):se!==U&&0<=se&&(ne({sortable:this,name:"update",toEl:oe,originalEvent:e}),ne({sortable:this,name:"sort",toEl:oe,originalEvent:e})),Re.active&&(null!=se&&-1!==se||(se=U,ue=B),ne({sortable:this,name:"end",toEl:oe,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){te("nulling",this),ae=ie=oe=re=le=P=L=R=H=Y=fe=se=ue=U=B=ve=me=de=ce=Re.dragged=Re.ghost=Re.clone=Re.active=null,De.forEach(function(e){e.checked=!0}),De.length=X=j=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ie&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,i=0,o=n.length,r=this.options;i<o;i++)q(e=n[i],r.draggable,this.el,!1)&&t.push(e.getAttribute(r.dataIdAttr)||Ye(e));return t},sort:function(e){var i={},o=this.el;this.toArray().forEach(function(e,t){var n=o.children[t];q(n,this.options.draggable,o,!1)&&(i[e]=n)},this),e.forEach(function(e){i[e]&&(o.removeChild(i[e]),o.appendChild(i[e]))})},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return q(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var i=N.modifyOption(this,e,t);n[e]=void 0!==i?i:t,"group"===e&&Ie(n)},destroy:function(){te("destroy",this);var e=this.el;e[ee]=null,f(e,"mousedown",this._onTapStart),f(e,"touchstart",this._onTapStart),f(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(f(e,"dragover",this),f(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ee.splice(Ee.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!R){if(te("hideClone",this),Re.eventCanceled)return;G(P,"display","none"),this.options.removeCloneOnHide&&P.parentNode&&P.parentNode.removeChild(P),R=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(R){if(te("showClone",this),Re.eventCanceled)return;ae.contains(ie)&&!this.options.group.revertClone?ae.insertBefore(P,ie):le?ae.insertBefore(P,le):ae.appendChild(P),this.options.group.revertClone&&this.animate(ie,P),G(P,"display",""),R=!1}}else this._hideClone()}},_e&&p(document,"touchmove",function(e){(Re.active||be)&&e.cancelable&&e.preventDefault()}),Re.utils={on:p,off:f,css:G,find:b,is:function(e,t){return!!q(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:x,closest:q,toggleClass:Q,clone:D,index:$,nextTick:Xe,cancelNextTick:je,detectDirection:ze,getChild:k},Re.get=function(e){return e[ee]},Re.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Re.utils=W({},Re.utils,e.utils)),N.mount(e)})},Re.create=function(e,t){return new Re(e,t)};var We,qe,Qe,Ge,Ke,Ve,Ze=[],$e=!(Re.version="1.10.2");function Je(){Ze.forEach(function(e){clearInterval(e.pid)}),Ze=[]}function et(){clearInterval(Ve)}function tt(e){var t=e.originalEvent,n=e.putSortable,i=e.dragEl,o=e.activeSortable,r=e.dispatchSortableEvent,a=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=n||o;a();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(u.clientX,u.clientY);l(),s&&!s.el.contains(c)&&(r("spill"),this.onSpill({dragEl:i,putSortable:n}))}}var nt,it=x(function(n,e,t,i){if(e.scroll){var o,r=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,l=e.scrollSensitivity,s=e.scrollSpeed,u=M(),c=!1;qe!==t&&(qe=t,Je(),We=e.scroll,o=e.scrollFn,!0===We&&(We=z(t,!0)));var d=0,h=We;do{var p=h,f=K(p),v=f.top,m=f.bottom,g=f.left,y=f.right,b=f.width,w=f.height,E=void 0,k=void 0,S=p.scrollWidth,C=p.scrollHeight,x=G(p),D=p.scrollLeft,_=p.scrollTop;k=p===u?(E=b<S&&("auto"===x.overflowX||"scroll"===x.overflowX||"visible"===x.overflowX),w<C&&("auto"===x.overflowY||"scroll"===x.overflowY||"visible"===x.overflowY)):(E=b<S&&("auto"===x.overflowX||"scroll"===x.overflowX),w<C&&("auto"===x.overflowY||"scroll"===x.overflowY));var F=E&&(Math.abs(y-r)<=l&&D+b<S)-(Math.abs(g-r)<=l&&!!D),T=k&&(Math.abs(m-a)<=l&&_+w<C)-(Math.abs(v-a)<=l&&!!_);if(!Ze[d])for(var A=0;A<=d;A++)Ze[A]||(Ze[A]={});Ze[d].vx==F&&Ze[d].vy==T&&Ze[d].el===p||(Ze[d].el=p,Ze[d].vx=F,Ze[d].vy=T,clearInterval(Ze[d].pid),0==F&&0==T||(c=!0,Ze[d].pid=setInterval(function(){i&&0===this.layer&&Re.active._onTouchMove(Ke);var e=Ze[this.layer].vy?Ze[this.layer].vy*s:0,t=Ze[this.layer].vx?Ze[this.layer].vx*s:0;"function"==typeof o&&"continue"!==o.call(Re.dragged.parentNode[ee],t,e,n,Ke,Ze[this.layer].el)||J(Ze[this.layer].el,t,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&h!==u&&(h=z(h,!1)));$e=c}},30);function ot(){}function rt(){}function at(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;nt=t},dragOverValid:function(e){var t=e.completed,n=e.target,i=e.onMove,o=e.activeSortable,r=e.changed,a=e.cancel;if(o.options.swap){var l=this.sortable.el,s=this.options;if(n&&n!==l){var u=nt;nt=!1!==i(n)?(Q(n,s.swapClass,!0),n):null,u&&u!==nt&&Q(u,s.swapClass,!1)}r(),t(!0),a()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,i=e.dragEl,o=n||this.sortable,r=this.options;nt&&Q(nt,r.swapClass,!1),nt&&(r.swap||n&&n.options.swap)&&i!==nt&&(o.captureAnimationState(),o!==t&&t.captureAnimationState(),function(e,t){var n,i,o=e.parentNode,r=t.parentNode;if(!o||!r||o.isEqualNode(t)||r.isEqualNode(e))return;n=$(e),i=$(t),o.isEqualNode(r)&&n<i&&i++;o.insertBefore(t,o.children[n]),r.insertBefore(e,r.children[i])}(i,nt),o.animateAll(),o!==t&&t.animateAll())},nulling:function(){nt=null}},a(e,{pluginName:"swap",eventProperties:function(){return{swapItem:nt}}})}ot.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=k(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:tt},a(ot,{pluginName:"revertOnSpill"}),rt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:tt},a(rt,{pluginName:"removeOnSpill"});var lt,st,ut,ct,dt,ht=[],pt=[],ft=!1,vt=!1,mt=!1;function gt(){function e(i){for(var e in this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this));i.options.supportPointer?p(document,"pointerup",this._deselectMultiDrag):(p(document,"mouseup",this._deselectMultiDrag),p(document,"touchend",this._deselectMultiDrag)),p(document,"keydown",this._checkKeyDown),p(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,t){var n="";ht.length&&st===i?ht.forEach(function(e,t){n+=(t?", ":"")+e.textContent}):n=t.textContent,e.setData("Text",n)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;ut=t},delayEnded:function(){this.isMultiDrag=~ht.indexOf(ut)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var i=0;i<ht.length;i++)pt.push(D(ht[i])),pt[i].sortableIndex=ht[i].sortableIndex,pt[i].draggable=!1,pt[i].style["will-change"]="",Q(pt[i],this.options.selectedClass,!1),ht[i]===ut&&Q(pt[i],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,i=e.dispatchSortableEvent,o=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||ht.length&&st===t&&(yt(!0,n),i("clone"),o()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,i=e.cancel;this.isMultiDrag&&(yt(!1,n),pt.forEach(function(e){G(e,"display","")}),t(),dt=!1,i())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),i=e.cancel;this.isMultiDrag&&(pt.forEach(function(e){G(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)}),n(),dt=!0,i())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&st&&st.multiDrag._deselectMultiDrag(),ht.forEach(function(e){e.sortableIndex=$(e)}),ht=ht.sort(function(e,t){return e.sortableIndex-t.sortableIndex}),mt=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){ht.forEach(function(e){e!==ut&&G(e,"position","absolute")});var i=K(ut,!1,!0,!0);ht.forEach(function(e){e!==ut&&_(e,i)}),ft=vt=!0}n.animateAll(function(){ft=vt=!1,t.options.animation&&ht.forEach(function(e){F(e)}),t.options.sort&&bt()})}},dragOver:function(e){var t=e.target,n=e.completed,i=e.cancel;vt&&~ht.indexOf(t)&&(n(!1),i())},revert:function(e){var i,o,t=e.fromSortable,n=e.rootEl,r=e.sortable,a=e.dragRect;1<ht.length&&(ht.forEach(function(e){r.addAnimationState({target:e,rect:vt?K(e):a}),F(e),e.fromRect=a,t.removeAnimationState(e)}),vt=!1,i=!this.options.removeCloneOnHide,o=n,ht.forEach(function(e,t){var n=o.children[e.sortableIndex+(i?Number(t):0)];n?o.insertBefore(e,n):o.appendChild(e)}))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,i=e.insertion,o=e.activeSortable,r=e.parentEl,a=e.putSortable,l=this.options;if(i){if(n&&o._hideClone(),ft=!1,l.animation&&1<ht.length&&(vt||!n&&!o.options.sort&&!a)){var s=K(ut,!1,!0,!0);ht.forEach(function(e){e!==ut&&(_(e,s),r.appendChild(e))}),vt=!0}if(!n)if(vt||bt(),1<ht.length){var u=dt;o._showClone(t),o.options.animation&&!dt&&u&&pt.forEach(function(e){o.addAnimationState({target:e,rect:ct}),e.fromRect=ct,e.thisAnimationDuration=null})}else o._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,i=e.activeSortable;if(ht.forEach(function(e){e.thisAnimationDuration=null}),i.options.animation&&!n&&i.multiDrag.isMultiDrag){ct=a({},t);var o=y(ut,!0);ct.top-=o.f,ct.left-=o.e}},dragOverAnimationComplete:function(){vt&&(vt=!1,bt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,i=e.parentEl,o=e.sortable,r=e.dispatchSortableEvent,a=e.oldIndex,l=e.putSortable,s=l||this.sortable;if(t){var u=this.options,c=i.children;if(!mt)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Q(ut,u.selectedClass,!~ht.indexOf(ut)),~ht.indexOf(ut))ht.splice(ht.indexOf(ut),1),lt=null,O({sortable:o,rootEl:n,name:"deselect",targetEl:ut,originalEvt:t});else{if(ht.push(ut),O({sortable:o,rootEl:n,name:"select",targetEl:ut,originalEvt:t}),t.shiftKey&&lt&&o.el.contains(lt)){var d,h,p=$(lt),f=$(ut);if(~p&&~f&&p!==f)for(d=p<f?(h=p,f):(h=f,p+1);h<d;h++)~ht.indexOf(c[h])||(Q(c[h],u.selectedClass,!0),ht.push(c[h]),O({sortable:o,rootEl:n,name:"select",targetEl:c[h],originalEvt:t}))}else lt=ut;st=s}if(mt&&this.isMultiDrag){if((i[ee].options.sort||i!==n)&&1<ht.length){var v=K(ut),m=$(ut,":not(."+this.options.selectedClass+")");if(!ft&&u.animation&&(ut.thisAnimationDuration=null),s.captureAnimationState(),!ft&&(u.animation&&(ut.fromRect=v,ht.forEach(function(e){if(e.thisAnimationDuration=null,e!==ut){var t=vt?K(e):v;e.fromRect=t,s.addAnimationState({target:e,rect:t})}})),bt(),ht.forEach(function(e){c[m]?i.insertBefore(e,c[m]):i.appendChild(e),m++}),a===$(ut))){var g=!1;ht.forEach(function(e){e.sortableIndex===$(e)||(g=!0)}),g&&r("update")}ht.forEach(function(e){F(e)}),s.animateAll()}st=s}(n===i||l&&"clone"!==l.lastPutMode)&&pt.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)})}},nullingGlobal:function(){this.isMultiDrag=mt=!1,pt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),f(document,"pointerup",this._deselectMultiDrag),f(document,"mouseup",this._deselectMultiDrag),f(document,"touchend",this._deselectMultiDrag),f(document,"keydown",this._checkKeyDown),f(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==mt&&mt||st!==this.sortable||e&&q(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;ht.length;){var t=ht[0];Q(t,this.options.selectedClass,!1),ht.shift(),O({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},a(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[ee];t&&t.options.multiDrag&&!~ht.indexOf(e)&&(st&&st!==t&&(st.multiDrag._deselectMultiDrag(),st=t),Q(e,t.options.selectedClass,!0),ht.push(e))},deselect:function(e){var t=e.parentNode[ee],n=ht.indexOf(e);t&&t.options.multiDrag&&~n&&(Q(e,t.options.selectedClass,!1),ht.splice(n,1))}},eventProperties:function(){var n=this,i=[],o=[];return ht.forEach(function(e){var t;i.push({multiDragElement:e,index:e.sortableIndex}),t=vt&&e!==ut?-1:vt?$(e,":not(."+n.options.selectedClass+")"):$(e),o.push({multiDragElement:e,index:t})}),{items:r(ht),clones:[].concat(pt),oldIndicies:i,newIndicies:o}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":1<e.length&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function yt(i,o){pt.forEach(function(e,t){var n=o.children[e.sortableIndex+(i?Number(t):0)];n?o.insertBefore(e,n):o.appendChild(e)})}function bt(){ht.forEach(function(e){e!==ut&&e.parentNode&&e.parentNode.removeChild(e)})}Re.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?p(document,"dragover",this._handleAutoScroll):this.options.supportPointer?p(document,"pointermove",this._handleFallbackAutoScroll):t.touches?p(document,"touchmove",this._handleFallbackAutoScroll):p(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?f(document,"dragover",this._handleAutoScroll):(f(document,"pointermove",this._handleFallbackAutoScroll),f(document,"touchmove",this._handleFallbackAutoScroll),f(document,"mousemove",this._handleFallbackAutoScroll)),et(),Je(),clearTimeout(m),m=void 0},nulling:function(){Ke=qe=We=$e=Ve=Qe=Ge=null,Ze.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(t,n){var i=this,o=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,e=document.elementFromPoint(o,r);if(Ke=t,n||E||w||s){it(t,this.options,e,n);var a=z(e,!0);!$e||Ve&&o===Qe&&r===Ge||(Ve&&et(),Ve=setInterval(function(){var e=z(document.elementFromPoint(o,r),!0);e!==a&&(a=e,Je()),it(t,i.options,e,n)},10),Qe=o,Ge=r)}else{if(!this.options.bubbleScroll||z(e,!0)===M())return void Je();it(t,this.options,z(e,!1),!1)}}},a(e,{pluginName:"scroll",initializeByDefault:!0})}),Re.mount(rt,ot),t.default=Re},"./node_modules/webpack/buildin/global.js":
/*!***********************************!*\
!*** (webpack)/buildin/global.js ***!
\***********************************/
/*! no static exports found */function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./node_modules/webpack/buildin/module.js":
/*!***********************************!*\
!*** (webpack)/buildin/module.js ***!
\***********************************/
/*! no static exports found */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}}}]);