text: /*! For license information please see docs.js.LICENSE.txt */
  (()=>{var e={635:(e,n,t)=>{var o={"./en.md":512,"./zh-cn.md":819};function r(e){var n=a(e);return t(n)}function a(e){if(!t.o(o,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=a,e.exports=r,r.id=635},500:function(e,n,t){var o,r,a,i;function l(e){return(l="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)}i=function(e){"use strict";function n(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t<n;t++)o[t]=e[t];return o}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function r(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?o(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}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 l(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var s=function(e){var n=new XMLHttpRequest;return n.open(e.method||"GET",e.url),n.responseType="json",e.headers&&Object.keys(e.headers).forEach((function(t){n.setRequestHeader(t,e.headers[t])})),n};function c(e){return n=s(e),t=e.body,new Promise((function(e,o){n.onload=function(){if(n.status>=200&&n.status<300){var t;try{t=JSON.parse(n.response)}catch(e){t=n.response}e(t)}else o(n.response)},n.onerror=function(){return o(n.response)},n.send(JSON.stringify(t))}));var n,t}var u={headers:{},action:"",minSize:1048576,maxActive:3,maxRetries:5,handler:function(){function e(n,t){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.file=n,this.options=t,this.chunks=[],this.sessionId=null,this.chunkSize=null,this.speedInterval=null}var n,t;return n=e,(t=[{key:"createChunks",value:function(){this.chunks=[];for(var e=0,n=this.chunkSize;e<this.fileSize;)this.chunks.push({blob:this.file.file.slice(e,n),startOffset:e,active:!1,retries:this.maxRetries}),n=(e=n)+this.chunkSize}},{key:"updateFileProgress",value:function(){this.file.progress=this.progress}},{key:"pause",value:function(){this.file.active=!1,this.stopChunks()}},{key:"stopChunks",value:function(){this.chunksUploading.forEach((function(e){e.xhr.abort(),e.active=!1})),this.stopSpeedCalc()}},{key:"resume",value:function(){this.file.active=!0,this.startChunking()}},{key:"upload",value:function(){var e=this;return this.promise=new Promise((function(n,t){e.resolve=n,e.reject=t})),this.start(),this.promise}},{key:"start",value:function(){var e=this;c({method:"POST",headers:Object.assign({},this.headers,{"Content-Type":"application/json"}),url:this.action,body:Object.assign(this.startBody,{phase:"start",mime_type:this.fileType,size:this.fileSize,name:this.fileName})}).then((function(n){if("success"!==n.status)return e.file.response=n,e.reject("server");e.sessionId=n.data.session_id,e.chunkSize=n.data.end_offset,e.createChunks(),e.startChunking()})).catch((function(n){e.file.response=n,e.reject("server")}))}},{key:"startChunking",value:function(){for(var e=0;e<this.maxActiveChunks;e++)this.uploadNextChunk();this.startSpeedCalc()}},{key:"uploadNextChunk",value:function(){if(this.file.active){if(this.hasChunksToUpload)return this.uploadChunk(this.chunksToUpload[0]);if(0===this.chunksUploading.length)return this.finish()}}},{key:"uploadChunk",value:function(e){var n=this;e.progress=0,e.active=!0,this.updateFileProgress(),e.xhr=s({method:"POST",headers:this.headers,url:this.action}),e.xhr.upload.addEventListener("progress",(function(n){n.lengthComputable&&(e.progress=Math.round(n.loaded/n.total*100))}),!1),function(e,n){var t=new FormData;for(var o in n)t.append(o,n[o]);return new Promise((function(n,o){e.onload=function(){if(e.status>=200&&e.status<300){var t;try{t=JSON.parse(e.response)}catch(n){t=e.response}n(t)}else o(e.response)},e.onerror=function(){return o(e.response)},e.send(t)}))}(e.xhr,Object.assign(this.uploadBody,{phase:"upload",session_id:this.sessionId,start_offset:e.startOffset,chunk:e.blob})).then((function(t){if(e.active=!1,"success"===t.status)e.uploaded=!0;else if(e.retries--<=0)return n.stopChunks(),n.reject("upload");n.uploadNextChunk()})).catch((function(){if(e.active=!1,e.retries--<=0)return n.stopChunks(),n.reject("upload");n.uploadNextChunk()}))}},{key:"finish",value:function(){var e=this;this.updateFileProgress(),this.stopSpeedCalc(),c({method:"POST",headers:Object.assign({},this.headers,{"Content-Type":"application/json"}),url:this.action,body:Object.assign(this.finishBody,{phase:"finish",session_id:this.sessionId})}).then((function(n){if(e.file.response=n,"success"!==n.status)return e.reject("server");e.resolve(n)})).catch((function(n){e.file.response=n,e.reject("server")}))}},{key:"startSpeedCalc",value:function(){var e=this;this.file.speed=0;var n=0;this.speedInterval||(this.speedInterval=window.setInterval((function(){var t=e.progress/100*e.fileSize;e.file.speed=t-n,n=t}),1e3))}},{key:"stopSpeedCalc",value:function(){this.speedInterval&&window.clearInterval(this.speedInterval),this.speedInterval=null,this.file.speed=0}},{key:"maxRetries",get:function(){return parseInt(this.options.maxRetries,10)}},{key:"maxActiveChunks",get:function(){return parseInt(this.options.maxActive,10)}},{key:"fileType",get:function(){return this.file.type}},{key:"fileSize",get:function(){return this.file.size}},{key:"fileName",get:function(){return this.file.name}},{key:"action",get:function(){return this.options.action||null}},{key:"startBody",get:function(){return this.options.startBody||{}}},{key:"uploadBody",get:function(){return this.options.uploadBody||{}}},{key:"finishBody",get:function(){return this.options.finishBody||{}}},{key:"headers",get:function(){return this.options.headers||{}}},{key:"readyToUpload",get:function(){return!!this.chunks}},{key:"progress",get:function(){var e=this,n=this.chunksUploaded.length/this.chunks.length*100,t=this.chunksUploading.reduce((function(n,t){return n+(0|t.progress)/e.chunks.length}),0);return Math.min(n+t,100)}},{key:"chunksToUpload",get:function(){return this.chunks.filter((function(e){return!e.active&&!e.uploaded}))}},{key:"hasChunksToUpload",get:function(){return this.chunksToUpload.length>0}},{key:"chunksUploading",get:function(){return this.chunks.filter((function(e){return!!e.xhr&&!!e.active}))}},{key:"chunksUploaded",get:function(){return this.chunks.filter((function(e){return!!e.uploaded}))}}])&&l(n.prototype,t),e}()},d=e.defineComponent({props:{inputId:{type:String},name:{type:String,default:"file"},accept:{type:String},capture:{},disabled:{default:!1},multiple:{type:Boolean,default:!1},maximum:{type:Number},addIndex:{type:[Boolean,Number]},directory:{type:Boolean},createDirectory:{type:Boolean,default:!1},postAction:{type:String},putAction:{type:String},customAction:{type:Function},headers:{type:Object,default:function(){return{}}},data:{type:Object,default:function(){return{}}},timeout:{type:Number,default:0},drop:{default:!1},dropDirectory:{type:Boolean,default:!0},size:{type:Number,default:0},extensions:{type:[RegExp,String,Array],default:function(){return[]}},modelValue:{type:Array,default:function(){return[]}},thread:{type:Number,default:1},chunkEnabled:{type:Boolean,default:!1},chunk:{type:Object,default:function(){return u}}},emits:["update:modelValue","input-filter","input-file"],data:function(){return{files:this.modelValue,features:{html5:!0,directory:!1,drop:!1},active:!1,dropActive:!1,uploading:0,destroy:!1,maps:{},dropElement:null}},mounted:function(){var e=this,n=document.createElement("input");if(n.type="file",n.multiple=!0,window.FormData&&n.files?("boolean"!=typeof n.webkitdirectory&&"boolean"!=typeof n.directory||(this.features.directory=!0),this.features.html5&&void 0!==n.ondrop&&(this.features.drop=!0)):this.features.html5=!1,this.maps={},this.files)for(var t=0;t<this.files.length;t++){var o=this.files[t];this.maps[o.id]=o}this.$nextTick((function(){e.$parent?(e.$parent.$forceUpdate(),e.$parent.$nextTick((function(){e.watchDrop(e.drop)}))):e.watchDrop(e.drop)}))},beforeUnmount:function(){this.destroy=!0,this.active=!1,this.watchDrop(!1)},computed:{uploaded:function(){for(var e,n=0;n<this.files.length;n++)if((e=this.files[n]).fileObject&&!e.error&&!e.success)return!1;return!0},chunkOptions:function(){return Object.assign(u,this.chunk)},className:function(){return["file-uploads",this.features.html5?"file-uploads-html5":"file-uploads-html4",this.features.directory&&this.directory?"file-uploads-directory":void 0,this.features.drop&&this.drop?"file-uploads-drop":void 0,this.disabled?"file-uploads-disabled":void 0]},forId:function(){return this.inputId||this.name},iMaximum:function(){return void 0===this.maximum?this.multiple?0:1:this.maximum},iExtensions:function(){if(this.extensions){if(this.extensions instanceof RegExp)return this.extensions;if(this.extensions.length){var e=[];return e=(e="string"==typeof this.extensions?this.extensions.split(","):this.extensions).map((function(e){return e.trim()})).filter((function(e){return e})),new RegExp("\\.("+e.join("|").replace(/\./g,"\\.")+")$","i")}}}},watch:{active:function(e){this.watchActive(e)},dropActive:function(){this.$parent&&this.$parent.$forceUpdate()},drop:function(e){this.watchDrop(e)},modelValue:function(e){if(this.files!==e){this.files=e;var n=this.maps;this.maps={};for(var t=0;t<this.files.length;t++){var o=this.files[t];this.maps[o.id]=o}for(var r in this.maps){var a=this.maps[r],i=n[r];a!==i&&this.emitFile(a,i)}for(var l in n)this.maps[l]||this.emitFile(void 0,n[l])}}},methods:{newId:function(){return Math.random().toString(36).substr(2)},clear:function(){if(this.files.length){var e=this.files;this.files=[],this.maps={},this.emitInput();for(var n=0;n<e.length;n++)this.emitFile(void 0,e[n])}return!0},get:function(e){return!!e&&("object"===i(e)?this.maps[e.id||""]||!1:this.maps[e]||!1)},add:function(e,n){var t;t=e instanceof Array?e:[e],void 0===n&&(n=this.addIndex);for(var o=[],a=0;a<t.length;a++){var i=t[a];this.features.html5&&i instanceof Blob&&(i={id:"",file:i,size:i.size,name:i.webkitRelativePath||i.relativePath||i.name||"unknown",type:i.type});var l=!1;if(!1===(i=i).fileObject||(i.fileObject||"undefined"!=typeof Element&&i.el instanceof HTMLInputElement||"undefined"!=typeof Blob&&i.file instanceof Blob)&&(l=!0),l&&((i=r(r({fileObject:!0,size:-1,name:"Filename",type:"",active:!1,error:"",success:!1,putAction:this.putAction,postAction:this.postAction,timeout:this.timeout},i),{},{response:{},progress:"0.00",speed:0})).data=r(r({},this.data),i.data?i.data:{}),i.headers=r(r({},this.headers),i.headers?i.headers:{})),i.id||(i.id=this.newId()),!this.emitFilter(i,void 0)){if(this.iMaximum>1&&o.length+this.files.length>=this.iMaximum)break;if(o.push(i),1===this.iMaximum)break}}if(o.length){var s;if(1===this.iMaximum&&this.clear(),!0===n||0===n)s=o.concat(this.files);else if(n){var c;(c=s=this.files.concat([])).splice.apply(c,[n,0].concat(o))}else s=this.files.concat(o);this.files=s;for(var u=0;u<o.length;u++){var d=o[u];this.maps[d.id]=d}this.emitInput();for(var p=0;p<o.length;p++)this.emitFile(o[p],void 0);return e instanceof Array?o:o[0]}},addInputFile:function(e){var n=this,t=[],o=(this.iMaximum,e.webkitEntries||e.entries||void 0);if(null!=o&&o.length)return this.getFileSystemEntry(o).then((function(e){return n.add(e)}));if(e.files)for(var r=0;r<e.files.length;r++){var a=e.files[r];t.push({id:"",size:a.size,name:a.webkitRelativePath||a.relativePath||a.name,type:a.type,file:a})}else{var i=e.value.replace(/\\/g,"/").split("/");i&&i.length||(i=[e.value]),delete e.__vuex__,t.push({id:"",name:i[i.length-1],el:e})}return Promise.resolve(this.add(t))},addDataTransfer:function(e){var n,t=this;if(null!=e&&null!==(n=e.items)&&void 0!==n&&n.length){for(var o=[],r=0;r<e.items.length;r++){var a,i=e.items[r];(a=i.getAsEntry?i.getAsEntry()||i.getAsFile():i.webkitGetAsEntry&&i.webkitGetAsEntry()||i.getAsFile())&&o.push(a)}return this.getFileSystemEntry(o).then((function(e){return t.add(e)}))}var l=this.iMaximum,s=[];if(e.files.length){for(var c=0;c<e.files.length&&(s.push(e.files[c]),!(l>0&&s.length>=l));c++);return Promise.resolve(this.add(s))}return Promise.resolve([])},getFileSystemEntry:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Promise((function(r){var a=t.iMaximum;if(e)if(e instanceof Array){var i=[];!function l(s){var c=e[s];if(!c||a>0&&i.length>=a)return r(i);t.getFileSystemEntry(c,o).then((function(e){i.push.apply(i,n(e)),l(s+1)}))}(0)}else if(e instanceof Blob)r([{id:"",size:e.size,name:o+e.name,type:e.type,file:e}]);else if(e.isFile)e.file((function(e){r([{id:"",size:e.size,name:o+e.name,type:e.type,file:e}])}));else if(e.isDirectory&&t.dropDirectory){var l=[];t.createDirectory&&l.push({id:"",name:o+e.name,size:0,type:"text/directory",file:new File([],o+e.name,{type:"text/directory"})});var s=e.createReader();!function i(){s.readEntries((function(s){!function c(u){return!s[u]&&0===u||a>0&&l.length>=a?r(l):s[u]?void t.getFileSystemEntry(s[u],o+e.name+"/").then((function(e){l.push.apply(l,n(e)),c(u+1)})):i()}(0)}))}()}else r([]);else r([])}))},replace:function(e,n){var t=this.get(e),o=this.get(n);if(!t||!o||t===o)return!1;var r=this.files.concat([]),a=r.indexOf(t),i=r.indexOf(o);return-1!==a&&-1!==i&&(r[a]=o,r[i]=t,this.files=r,this.emitInput(),!0)},remove:function(e){var n=this.get(e);if(n){if(this.emitFilter(void 0,n))return!1;var t=this.files.concat([]),o=t.indexOf(n);if(-1===o)return console.error("remove",n),!1;t.splice(o,1),this.files=t,delete this.maps[n.id],this.emitInput(),this.emitFile(void 0,n)}return n},update:function(e,n){var t=this.get(e);if(t){var o=r(r({},t),n);if(!t.fileObject||!t.active||o.active||o.error||o.success||(o.error="abort"),this.emitFilter(o,t))return!1;var a=this.files.concat([]),i=a.indexOf(t);return-1===i?(console.error("update",t),!1):(a.splice(i,1,o),this.files=a,delete this.maps[t.id],this.maps[o.id]=o,this.emitInput(),this.emitFile(o,t),o)}return!1},emitFilter:function(e,n){var t=!1;return this.$emit("input-filter",e,n,(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t=e})),t},emitFile:function(e,n){var t,o=this;this.$emit("input-file",e,n),null===(t=e)||void 0===t||!t.fileObject||!e.active||n&&n.active?e&&e.fileObject&&e.active||!n||!n.fileObject||!n.active||this.uploading--:(this.uploading++,this.$nextTick((function(){setTimeout((function(){e&&o.upload(e).then((function(){var n;e&&(e=o.get(e)||void 0),null!==(n=e)&&void 0!==n&&n.fileObject&&o.update(e,{active:!1,success:!e.error})})).catch((function(n){e&&o.update(e,{active:!1,success:!1,error:n.code||n.error||n.message||n})}))}),Math.ceil(50*Math.random()+50))}))),!this.active||Boolean(e)===Boolean(n)&&e.active===n.active||this.watchActive(!0)},emitInput:function(){this.$emit("update:modelValue",this.files)},upload:function(e){var n=this.get(e);if(!n)return Promise.reject(new Error("not_exists"));if(!n.fileObject)return Promise.reject(new Error("file_object"));if(n.error)return n.error instanceof Error?Promise.reject(n.error):Promise.reject(new Error(n.error));if(n.success)return Promise.resolve(n);if(n.name&&this.iExtensions&&-1===n.name.search(this.iExtensions))return Promise.reject(new Error("extension"));if(this.size>0&&void 0!==n.size&&n.size>=0&&n.size>this.size)return Promise.reject(new Error("size"));if(this.customAction)return this.customAction(n,this);if(this.features.html5){if(this.shouldUseChunkUpload(n))return this.uploadChunk(n);if(n.putAction)return this.uploadPut(n);if(n.postAction)return this.uploadHtml5(n)}return n.postAction?this.uploadHtml4(n):Promise.reject(new Error("No action configured"))},shouldUseChunkUpload:function(e){return this.chunkEnabled&&!!this.chunkOptions.handler&&e.size&&e.size>this.chunkOptions.minSize},uploadChunk:function(e){var n=this.chunkOptions.handler;return e.chunk=new n(e,this.chunkOptions),e.chunk.upload().then((function(n){return e}))},uploadPut:function(e){var n,t=[];for(var o in e.data)null!=(n=e.data[o])&&t.push(encodeURIComponent(o)+"="+encodeURIComponent(n));var r=e.putAction||"",a=t.length?(-1===r.indexOf("?")?"?":"&")+t.join("&"):"",i=new XMLHttpRequest;return i.open("PUT",r+a),this.uploadXhr(i,e,e.file)},uploadHtml5:function(e){var n,t=new window.FormData;for(var o in e.data)(n=e.data[o])&&"object"===i(n)&&"function"!=typeof n.toString?n instanceof File?t.append(o,n,n.name):t.append(o,JSON.stringify(n)):null!=n&&t.append(o,n);t.append(this.name,e.file,e.file.name||e.file.filename||e.name);var r=new XMLHttpRequest;return r.open("POST",e.postAction||""),this.uploadXhr(r,e,t)},uploadXhr:function(e,n,t){var o=this,r=n,a=0,i=0;e.upload.onprogress=function(e){if(r&&(r=o.get(r),e.lengthComputable&&r&&r.fileObject&&r.active)){var n=Math.round(Date.now()/1e3);n!==a&&(a=n,r=o.update(r,{progress:(e.loaded/e.total*100).toFixed(2),speed:e.loaded-i}),i=e.loaded)}};var l=window.setInterval((function(){var n;if(!(r&&(r=o.get(r))&&null!==(n=r)&&void 0!==n&&n.fileObject)||r.success||r.error||!r.active){l&&(clearInterval(l),l=void 0);try{e.abort(),e.timeout=1}catch(e){}}}),100);return new Promise((function(n,a){if(r){var i,s=function(t){if(!i){if(i=!0,l&&(clearInterval(l),l=void 0),!r)return a(new Error("not_exists"));if(!(r=o.get(r)))return a(new Error("not_exists"));if(!r.fileObject)return a(new Error("file_object"));if(r.error)return r.error instanceof Error?a(r.error):a(new Error(r.error));if(!r.active)return a(new Error("abort"));if(r.success)return n(r);var s={};switch(t.type){case"timeout":case"abort":s.error=t.type;break;case"error":e.status?e.status>=500?s.error="server":e.status>=400&&(s.error="denied"):s.error="network";break;default:e.status>=500?s.error="server":e.status>=400?s.error="denied":s.progress="100.00"}if(e.responseText){var c=e.getResponseHeader("Content-Type");c&&-1!==c.indexOf("/json")?s.response=JSON.parse(e.responseText):s.response=e.responseText}return(r=o.update(r,s))?r.error?r.error instanceof Error?a(r.error):a(new Error(r.error)):n(r):a(new Error("abort"))}};for(var c in e.onload=s,e.onerror=s,e.onabort=s,e.ontimeout=s,r.timeout&&(e.timeout=r.timeout),r.headers)e.setRequestHeader(c,r.headers[c]);(r=o.update(r,{xhr:e}))&&e.send(t)}else a(new Error("not_exists"))}))},uploadHtml4:function(e){var n=this,t=e;if(!t)return Promise.reject(new Error("not_exists"));var o=function(e){27===e.keyCode&&e.preventDefault()},r=document.createElement("iframe");r.id="upload-iframe-"+t.id,r.name="upload-iframe-"+t.id,r.src="about:blank",r.setAttribute("style","width:1px;height:1px;top:-999em;position:absolute; margin-top:-999em;");var a=document.createElement("form");for(var l in a.setAttribute("action",t.postAction||""),a.name="upload-form-"+t.id,a.setAttribute("method","POST"),a.setAttribute("target","upload-iframe-"+t.id),a.setAttribute("enctype","multipart/form-data"),t.data){var s=t.data[l];if(s&&"object"===i(s)&&"function"!=typeof s.toString&&(s=JSON.stringify(s)),null!=s){var c=document.createElement("input");c.type="hidden",c.name=l,c.value=s,a.appendChild(c)}}return a.appendChild(t.el),document.body.appendChild(r).appendChild(a),new Promise((function(e,i){setTimeout((function(){if(t){if(!(t=n.update(t,{iframe:r})))return i(new Error("not_exists"));var l,s=window.setInterval((function(){t&&(t=n.get(t))&&t.fileObject&&!t.success&&!t.error&&t.active||(s&&(clearInterval(s),s=void 0),r.onabort({type:t?"abort":"not_exists"}))}),100),c=function(a){var c;if(!l){if(l=!0,s&&(clearInterval(s),s=void 0),document.body.removeEventListener("keydown",o),!t)return i(new Error("not_exists"));if(!(t=n.get(t)))return i(new Error("not_exists"));if(!t.fileObject)return i(new Error("file_object"));if(t.error)return t.error instanceof Error?i(t.error):i(new Error(t.error));if(!t.active)return i(new Error("abort"));if(t.success)return e(t);var u=function(){var e,n;try{r.contentWindow&&(n=r.contentWindow.document)}catch(e){}if(!n)try{n=r.contentDocument?r.contentDocument:r.document}catch(e){n=r.document}return null!==(e=n)&&void 0!==e&&e.body?n.body.innerHTML:null}(),d={};if("string"==typeof a)return i(new Error(a));switch(a.type){case"abort":d.error="abort";break;case"error":t.error?d.error=t.error:d.error=null===u?"network":"denied";break;default:t.error?d.error=t.error:null===u?d.error="network":d.progress="100.00"}if(null!==u){if(u&&"{"===u.substr(0,1)&&"}"===u.substr(u.length-1,1))try{u=JSON.parse(u)}catch(e){}d.response=u}return(t=n.update(t,d))?null!==(c=t)&&void 0!==c&&c.error?t.error instanceof Error?i(t.error):i(new Error(t.error)):e(t):i(new Error("not_exists"))}};r.onload=c,r.onerror=c,r.onabort=c,document.body.addEventListener("keydown",o),a.submit()}else i(new Error("not_exists"))}),50)})).then((function(e){var n;return null==r||null===(n=r.parentNode)||void 0===n||n.removeChild(r),e})).catch((function(e){var n;return null==r||null===(n=r.parentNode)||void 0===n||n.removeChild(r),e}))},watchActive:function(e){for(var n,t=0;n=this.files[t];)if(t++,n.fileObject)if(e&&!this.destroy){if(this.uploading>=this.thread||this.uploading&&!this.features.html5)break;n.active||n.error||n.success||this.update(n,{active:!0})}else n.active&&this.update(n,{active:!1});0===this.uploading&&(this.active=!1)},watchDrop:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(this.features.drop&&e!==n){if(this.dropElement)try{document.removeEventListener("dragenter",this.onDragenter,!1),document.removeEventListener("dragleave",this.onDragleave,!1),document.removeEventListener("drop",this.onDocumentDrop,!1),this.dropElement.removeEventListener("dragover",this.onDragover,!1),this.dropElement.removeEventListener("drop",this.onDrop,!1)}catch(e){}var t=null;e&&(t="string"==typeof e?document.querySelector(e)||this.$root.$el.querySelector(e):!0===e?this.$parent.$el:e),this.dropElement=t,this.dropElement&&(document.addEventListener("dragenter",this.onDragenter,!1),document.addEventListener("dragleave",this.onDragleave,!1),document.addEventListener("drop",this.onDocumentDrop,!1),this.dropElement.addEventListener("dragover",this.onDragover,!1),this.dropElement.addEventListener("drop",this.onDrop,!1))}},onDragenter:function(e){var n,t;if(e.preventDefault(),!this.dropActive&&e.dataTransfer){var o=e.dataTransfer;null!=o&&null!==(n=o.files)&&void 0!==n&&n.length?this.dropActive=!0:o.types?(o.types.indexOf&&-1!==o.types.indexOf("Files")||null!==(t=o.types)&&void 0!==t&&t.contains&&o.types.contains("Files"))&&(this.dropActive=!0):this.dropActive=!0}},onDragleave:function(e){e.preventDefault(),this.dropActive&&("HTML"===e.target.nodeName||e.target===e.explicitOriginalTarget||!e.fromElement&&(e.clientX<=0||e.clientY<=0||e.clientX>=window.innerWidth||e.clientY>=window.innerHeight))&&(this.dropActive=!1)},onDragover:function(e){e.preventDefault()},onDocumentDrop:function(){this.dropActive=!1},onDrop:function(e){e.preventDefault(),e.dataTransfer&&this.addDataTransfer(e.dataTransfer)},inputOnChange:async function(e){var n=this;if(!(e.target instanceof HTMLInputElement))return Promise.reject(new Error("not HTMLInputElement"));var t=e.target,o=function(e){if(t.files)t.value="",t.files.length&&!/safari/i.test(navigator.userAgent)&&(t.type="",t.type="file");else{var o,r=document.getElementById(n.forId),a=r.cloneNode(!0);a.value="",a.type="file",a.onChange=n.inputOnChange,null===(o=r.parentNode)||void 0===o||o.replaceChild(a,r),n.$refs.input=a}return e};return this.addInputFile(e.target).then(o).catch(o)}}});return function(e,n){void 0===n&&(n={});var t=n.insertAt;if("undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===t&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}("\n.file-uploads {\n  overflow: hidden;\n  position: relative;\n  text-align: center;\n  display: inline-block;\n}\n.file-uploads.file-uploads-html4 input, .file-uploads.file-uploads-html5 label {\n  /* background fix ie  click */\n  background: #fff;\n  opacity: 0;\n  font-size: 20em;\n  z-index: 1;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  position: absolute;\n  width: 100%;\n  height: 100%;\n}\n.file-uploads.file-uploads-html5 input, .file-uploads.file-uploads-html4 label {\n  /* background fix ie  click */\n  background: rgba(255, 255, 255, 0);\n  overflow: hidden;\n  position: fixed;\n  width: 1px;\n  height: 1px;\n  z-index: -1;\n  opacity: 0;\n}\n"),d.render=function(n,t,o,r,a,i){return e.openBlock(),e.createBlock("span",{class:n.className},[e.renderSlot(n.$slots,"default"),e.createVNode("label",{for:n.forId},null,8,["for"]),e.createVNode("input",{ref:"input",type:"file",name:n.name,id:n.forId,accept:n.accept,capture:n.capture,disabled:n.disabled,webkitdirectory:n.directory&&n.features.directory,allowdirs:n.directory&&n.features.directory,directory:n.directory&&n.features.directory,multiple:n.multiple&&n.features.html5,onChange:t[1]||(t[1]=function(){return n.inputOnChange&&n.inputOnChange.apply(n,arguments)})},null,40,["name","id","accept","capture","disabled","webkitdirectory","allowdirs","directory","multiple"])],2)},d},"object"===l(n)?e.exports=i(t(537)):(r=[t(537)],void 0===(a="function"==typeof(o=i)?o.apply(n,r):o)||(e.exports=a))},187:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0})},869:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0})},482:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0})},799:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0})},312:(e,n)=>{"use strict";var t;Object.defineProperty(n,"__esModule",{value:!0}),n.Hooks=void 0,(t=n.Hooks||(n.Hooks={})).TRANSFORM_CALL="transformCall",t.GET_APP_RECORD_NAME="getAppRecordName",t.GET_APP_ROOT_INSTANCE="getAppRootInstance",t.REGISTER_APPLICATION="registerApplication",t.WALK_COMPONENT_TREE="walkComponentTree",t.WALK_COMPONENT_PARENTS="walkComponentParents",t.INSPECT_COMPONENT="inspectComponent",t.GET_COMPONENT_BOUNDS="getComponentBounds",t.GET_COMPONENT_NAME="getComponentName",t.GET_ELEMENT_COMPONENT="getElementComponent",t.GET_INSPECTOR_TREE="getInspectorTree",t.GET_INSPECTOR_STATE="getInspectorState"},786:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t),Object.defineProperty(e,o,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||n.hasOwnProperty(t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),r(t(187),n),r(t(869),n),r(t(482),n),r(t(799),n),r(t(312),n)},368:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ApiHookEvents=void 0,(n.ApiHookEvents||(n.ApiHookEvents={})).SETUP_DEVTOOLS_PLUGIN="devtools-plugin:setup"},340:(e,n,t)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.hook=n.target=n.isBrowser=void 0,n.isBrowser="undefined"!=typeof navigator,n.target=n.isBrowser?window:void 0!==t.g?t.g:{},n.hook=n.target.__VUE_DEVTOOLS_GLOBAL_HOOK__},588:function(e,n,t){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t),Object.defineProperty(e,o,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),r=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||n.hasOwnProperty(t)||o(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),n.setupDevtoolsPlugin=void 0;const a=t(340),i=t(368);r(t(786),n),n.setupDevtoolsPlugin=function(e,n){a.hook?a.hook.emit(i.ApiHookEvents.SETUP_DEVTOOLS_PLUGIN,e,n):(a.target.__VUE_DEVTOOLS_PLUGINS__=a.target.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:e,setupFn:n})}},419:e=>{"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t=e(n);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t})).join("")},n.i=function(e,t,o){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(o)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(r[i]=!0)}for(var l=0;l<e.length;l++){var s=[].concat(e[l]);o&&r[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),n.push(s))}},n}},346:e=>{"use strict";function n(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t<n;t++)o[t]=e[t];return o}e.exports=function(e){var t,o,r=(o=4,function(e){if(Array.isArray(e))return e}(t=e)||function(e,n){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],o=!0,r=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(o=(i=l.next()).done)&&(t.push(i.value),!n||t.length!==n);o=!0);}catch(e){r=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw a}}return t}}(t,o)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(e,t):void 0}}(t,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=r[1],i=r[3];if("function"==typeof btoa){var l=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),c="/*# ".concat(s," */"),u=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[a].concat(u).concat([c]).join("\n")}return[a].join("\n")}},537:(e,n,t)=>{"use strict";function o(e,n){const t=Object.create(null),o=e.split(",");for(let e=0;e<o.length;e++)t[o[e]]=!0;return n?e=>!!t[e.toLowerCase()]:e=>!!t[e]}t.r(n),t.d(n,{BaseTransition:()=>Qt,Comment:()=>nr,Fragment:()=>Jo,KeepAlive:()=>io,Static:()=>tr,Suspense:()=>dt,Teleport:()=>Ho,Text:()=>er,Transition:()=>La,TransitionGroup:()=>Xa,callWithAsyncErrorHandling:()=>Cn,callWithErrorHandling:()=>_n,camelize:()=>I,capitalize:()=>H,cloneVNode:()=>br,compile:()=>Vi,computed:()=>na,createApp:()=>Ni,createBlock:()=>ur,createCommentVNode:()=>wr,createHydrationRenderer:()=>Do,createRenderer:()=>Lo,createSSRApp:()=>Si,createSlots:()=>da,createStaticVNode:()=>kr,createTextVNode:()=>yr,createVNode:()=>gr,customRef:()=>hn,defineAsyncComponent:()=>Vo,defineComponent:()=>Bo,defineEmit:()=>oa,defineProps:()=>ta,devtools:()=>Kn,getCurrentInstance:()=>Wr,getTransitionRawChildren:()=>ro,h:()=>aa,handleError:()=>Fn,hydrate:()=>Ei,initCustomFormatter:()=>sa,inject:()=>Er,isProxy:()=>en,isReactive:()=>Qe,isReadonly:()=>Je,isRef:()=>rn,isVNode:()=>dr,markRaw:()=>tn,mergeProps:()=>Cr,nextTick:()=>Pn,onActivated:()=>co,onBeforeMount:()=>jt,onBeforeUnmount:()=>Rt,onBeforeUpdate:()=>Dt,onDeactivated:()=>uo,onErrorCaptured:()=>zt,onMounted:()=>Lt,onRenderTracked:()=>It,onRenderTriggered:()=>Mt,onUnmounted:()=>Pt,onUpdated:()=>Ut,openBlock:()=>ar,popScopeId:()=>_t,provide:()=>Fr,proxyRefs:()=>fn,pushScopeId:()=>At,queuePostFlushCb:()=>Wn,reactive:()=>Ge,readonly:()=>Ke,ref:()=>an,registerRuntimeCompiler:()=>Kr,render:()=>Fi,renderList:()=>ca,renderSlot:()=>bt,resolveComponent:()=>Go,resolveDirective:()=>Zo,resolveDynamicComponent:()=>Ko,resolveTransitionHooks:()=>eo,setBlockTracking:()=>cr,setDevtoolsHook:()=>Zn,setTransitionHooks:()=>oo,shallowReactive:()=>Ye,shallowReadonly:()=>Ze,shallowRef:()=>ln,ssrContextKey:()=>ia,ssrUtils:()=>fa,toDisplayString:()=>f,toHandlerKey:()=>q,toHandlers:()=>ua,toRaw:()=>nn,toRef:()=>bn,toRefs:()=>vn,transformVNodeArgs:()=>fr,triggerRef:()=>un,unref:()=>dn,useContext:()=>ra,useCssModule:()=>Va,useCssVars:()=>Ta,useSSRContext:()=>la,useTransitionState:()=>Zt,vModelCheckbox:()=>ai,vModelDynamic:()=>pi,vModelRadio:()=>li,vModelSelect:()=>si,vModelText:()=>ri,vShow:()=>yi,version:()=>pa,warn:()=>wn,watch:()=>qt,watchEffect:()=>Wt,withCtx:()=>kt,withDirectives:()=>wo,withKeys:()=>bi,withModifiers:()=>vi,withScopeId:()=>Ct});const r=o("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl"),a=o("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function i(e){if(F(e)){const n={};for(let t=0;t<e.length;t++){const o=e[t],r=i(V(o)?c(o):o);if(r)for(const e in r)n[e]=r[e]}return n}if(O(e))return e}const l=/;(?![^(]*\))/g,s=/:(.+)/;function c(e){const n={};return e.split(l).forEach((e=>{if(e){const t=e.split(s);t.length>1&&(n[t[0].trim()]=t[1].trim())}})),n}function u(e){let n="";if(V(e))n=e;else if(F(e))for(let t=0;t<e.length;t++)n+=u(e[t])+" ";else if(O(e))for(const t in e)e[t]&&(n+=t+" ");return n.trim()}function d(e,n){if(e===n)return!0;let t=S(e),o=S(n);if(t||o)return!(!t||!o)&&e.getTime()===n.getTime();if(t=F(e),o=F(n),t||o)return!(!t||!o)&&function(e,n){if(e.length!==n.length)return!1;let t=!0;for(let o=0;t&&o<e.length;o++)t=d(e[o],n[o]);return t}(e,n);if(t=O(e),o=O(n),t||o){if(!t||!o)return!1;if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const t in e){const o=e.hasOwnProperty(t),r=n.hasOwnProperty(t);if(o&&!r||!o&&r||!d(e[t],n[t]))return!1}}return String(e)===String(n)}function p(e,n){return e.findIndex((e=>d(e,n)))}const f=e=>null==e?"":O(e)?JSON.stringify(e,m,2):String(e),m=(e,n)=>E(n)?{[`Map(${n.size})`]:[...n.entries()].reduce(((e,[n,t])=>(e[`${n} =>`]=t,e)),{})}:N(n)?{[`Set(${n.size})`]:[...n.values()]}:!O(n)||F(n)||D(n)?n:String(n),h={},v=[],g=()=>{},b=()=>!1,y=/^on[^a-z]/,k=e=>y.test(e),w=e=>e.startsWith("onUpdate:"),x=Object.assign,A=(e,n)=>{const t=e.indexOf(n);t>-1&&e.splice(t,1)},_=Object.prototype.hasOwnProperty,C=(e,n)=>_.call(e,n),F=Array.isArray,E=e=>"[object Map]"===L(e),N=e=>"[object Set]"===L(e),S=e=>e instanceof Date,B=e=>"function"==typeof e,V=e=>"string"==typeof e,T=e=>"symbol"==typeof e,O=e=>null!==e&&"object"==typeof e,$=e=>O(e)&&B(e.then)&&B(e.catch),j=Object.prototype.toString,L=e=>j.call(e),D=e=>"[object Object]"===L(e),U=e=>V(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,R=o(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),P=e=>{const n=Object.create(null);return t=>n[t]||(n[t]=e(t))},M=/-(\w)/g,I=P((e=>e.replace(M,((e,n)=>n?n.toUpperCase():"")))),z=/\B([A-Z])/g,W=P((e=>e.replace(z,"-$1").toLowerCase())),H=P((e=>e.charAt(0).toUpperCase()+e.slice(1))),q=P((e=>e?`on${H(e)}`:"")),G=(e,n)=>e!==n&&(e==e||n==n),Y=(e,n)=>{for(let t=0;t<e.length;t++)e[t](n)},K=(e,n,t)=>{Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value:t})},Z=e=>{const n=parseFloat(e);return isNaN(n)?e:n},X=new WeakMap,Q=[];let J;const ee=Symbol(""),ne=Symbol("");function te(e,n=h){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const t=function(e,n){const t=function(){if(!t.active)return n.scheduler?void 0:e();if(!Q.includes(t)){ae(t);try{return le.push(ie),ie=!0,Q.push(t),J=t,e()}finally{Q.pop(),ce(),J=Q[Q.length-1]}}};return t.id=re++,t.allowRecurse=!!n.allowRecurse,t._isEffect=!0,t.active=!0,t.raw=e,t.deps=[],t.options=n,t}(e,n);return n.lazy||t(),t}function oe(e){e.active&&(ae(e),e.options.onStop&&e.options.onStop(),e.active=!1)}let re=0;function ae(e){const{deps:n}=e;if(n.length){for(let t=0;t<n.length;t++)n[t].delete(e);n.length=0}}let ie=!0;const le=[];function se(){le.push(ie),ie=!1}function ce(){const e=le.pop();ie=void 0===e||e}function ue(e,n,t){if(!ie||void 0===J)return;let o=X.get(e);o||X.set(e,o=new Map);let r=o.get(t);r||o.set(t,r=new Set),r.has(J)||(r.add(J),J.deps.push(r))}function de(e,n,t,o,r,a){const i=X.get(e);if(!i)return;const l=new Set,s=e=>{e&&e.forEach((e=>{(e!==J||e.allowRecurse)&&l.add(e)}))};if("clear"===n)i.forEach(s);else if("length"===t&&F(e))i.forEach(((e,n)=>{("length"===n||n>=o)&&s(e)}));else switch(void 0!==t&&s(i.get(t)),n){case"add":F(e)?U(t)&&s(i.get("length")):(s(i.get(ee)),E(e)&&s(i.get(ne)));break;case"delete":F(e)||(s(i.get(ee)),E(e)&&s(i.get(ne)));break;case"set":E(e)&&s(i.get(ee))}l.forEach((e=>{e.options.scheduler?e.options.scheduler(e):e()}))}const pe=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(T)),fe=be(),me=be(!1,!0),he=be(!0),ve=be(!0,!0),ge={};function be(e=!1,n=!1){return function(t,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_raw"===o&&r===(e?qe:He).get(t))return t;const a=F(t);if(!e&&a&&C(ge,o))return Reflect.get(ge,o,r);const i=Reflect.get(t,o,r);return(T(o)?pe.has(o):"__proto__"===o||"__v_isRef"===o)?i:(e||ue(t,0,o),n?i:rn(i)?a&&U(o)?i:i.value:O(i)?e?Ke(i):Ge(i):i)}}function ye(e=!1){return function(n,t,o,r){const a=n[t];if(!e&&(o=nn(o),!F(n)&&rn(a)&&!rn(o)))return a.value=o,!0;const i=F(n)&&U(t)?Number(t)<n.length:C(n,t),l=Reflect.set(n,t,o,r);return n===nn(r)&&(i?G(o,a)&&de(n,"set",t,o):de(n,"add",t,o)),l}}["includes","indexOf","lastIndexOf"].forEach((e=>{const n=Array.prototype[e];ge[e]=function(...e){const t=nn(this);for(let e=0,n=this.length;e<n;e++)ue(t,0,e+"");const o=n.apply(t,e);return-1===o||!1===o?n.apply(t,e.map(nn)):o}})),["push","pop","shift","unshift","splice"].forEach((e=>{const n=Array.prototype[e];ge[e]=function(...e){se();const t=n.apply(this,e);return ce(),t}}));const ke={get:fe,set:ye(),deleteProperty:function(e,n){const t=C(e,n),o=(e[n],Reflect.deleteProperty(e,n));return o&&t&&de(e,"delete",n,void 0),o},has:function(e,n){const t=Reflect.has(e,n);return T(n)&&pe.has(n)||ue(e,0,n),t},ownKeys:function(e){return ue(e,0,F(e)?"length":ee),Reflect.ownKeys(e)}},we={get:he,set:(e,n)=>!0,deleteProperty:(e,n)=>!0},xe=x({},ke,{get:me,set:ye(!0)}),Ae=x({},we,{get:ve}),_e=e=>O(e)?Ge(e):e,Ce=e=>O(e)?Ke(e):e,Fe=e=>e,Ee=e=>Reflect.getPrototypeOf(e);function Ne(e,n,t=!1,o=!1){const r=nn(e=e.__v_raw),a=nn(n);n!==a&&!t&&ue(r,0,n),!t&&ue(r,0,a);const{has:i}=Ee(r),l=t?Ce:o?Fe:_e;return i.call(r,n)?l(e.get(n)):i.call(r,a)?l(e.get(a)):void 0}function Se(e,n=!1){const t=this.__v_raw,o=nn(t),r=nn(e);return e!==r&&!n&&ue(o,0,e),!n&&ue(o,0,r),e===r?t.has(e):t.has(e)||t.has(r)}function Be(e,n=!1){return e=e.__v_raw,!n&&ue(nn(e),0,ee),Reflect.get(e,"size",e)}function Ve(e){e=nn(e);const n=nn(this),t=Ee(n).has.call(n,e);return n.add(e),t||de(n,"add",e,e),this}function Te(e,n){n=nn(n);const t=nn(this),{has:o,get:r}=Ee(t);let a=o.call(t,e);a||(e=nn(e),a=o.call(t,e));const i=r.call(t,e);return t.set(e,n),a?G(n,i)&&de(t,"set",e,n):de(t,"add",e,n),this}function Oe(e){const n=nn(this),{has:t,get:o}=Ee(n);let r=t.call(n,e);r||(e=nn(e),r=t.call(n,e)),o&&o.call(n,e);const a=n.delete(e);return r&&de(n,"delete",e,void 0),a}function $e(){const e=nn(this),n=0!==e.size,t=e.clear();return n&&de(e,"clear",void 0,void 0),t}function je(e,n){return function(t,o){const r=this,a=r.__v_raw,i=nn(a),l=e?Ce:n?Fe:_e;return!e&&ue(i,0,ee),a.forEach(((e,n)=>t.call(o,l(e),l(n),r)))}}function Le(e,n,t){return function(...o){const r=this.__v_raw,a=nn(r),i=E(a),l="entries"===e||e===Symbol.iterator&&i,s="keys"===e&&i,c=r[e](...o),u=n?Ce:t?Fe:_e;return!n&&ue(a,0,s?ne:ee),{next(){const{value:e,done:n}=c.next();return n?{value:e,done:n}:{value:l?[u(e[0]),u(e[1])]:u(e),done:n}},[Symbol.iterator](){return this}}}}function De(e){return function(...n){return"delete"!==e&&this}}const Ue={get(e){return Ne(this,e)},get size(){return Be(this)},has:Se,add:Ve,set:Te,delete:Oe,clear:$e,forEach:je(!1,!1)},Re={get(e){return Ne(this,e,!1,!0)},get size(){return Be(this)},has:Se,add:Ve,set:Te,delete:Oe,clear:$e,forEach:je(!1,!0)},Pe={get(e){return Ne(this,e,!0)},get size(){return Be(this,!0)},has(e){return Se.call(this,e,!0)},add:De("add"),set:De("set"),delete:De("delete"),clear:De("clear"),forEach:je(!0,!1)};function Me(e,n){const t=n?Re:e?Pe:Ue;return(n,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?n:Reflect.get(C(t,o)&&o in n?t:n,o,r)}["keys","values","entries",Symbol.iterator].forEach((e=>{Ue[e]=Le(e,!1,!1),Pe[e]=Le(e,!0,!1),Re[e]=Le(e,!1,!0)}));const Ie={get:Me(!1,!1)},ze={get:Me(!1,!0)},We={get:Me(!0,!1)},He=new WeakMap,qe=new WeakMap;function Ge(e){return e&&e.__v_isReadonly?e:Xe(e,!1,ke,Ie)}function Ye(e){return Xe(e,!1,xe,ze)}function Ke(e){return Xe(e,!0,we,We)}function Ze(e){return Xe(e,!0,Ae,We)}function Xe(e,n,t,o){if(!O(e))return e;if(e.__v_raw&&(!n||!e.__v_isReactive))return e;const r=n?qe:He,a=r.get(e);if(a)return a;const i=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>L(e).slice(8,-1))(l));var l;if(0===i)return e;const s=new Proxy(e,2===i?o:t);return r.set(e,s),s}function Qe(e){return Je(e)?Qe(e.__v_raw):!(!e||!e.__v_isReactive)}function Je(e){return!(!e||!e.__v_isReadonly)}function en(e){return Qe(e)||Je(e)}function nn(e){return e&&nn(e.__v_raw)||e}function tn(e){return K(e,"__v_skip",!0),e}const on=e=>O(e)?Ge(e):e;function rn(e){return Boolean(e&&!0===e.__v_isRef)}function an(e){return cn(e)}function ln(e){return cn(e,!0)}class sn{constructor(e,n=!1){this._rawValue=e,this._shallow=n,this.__v_isRef=!0,this._value=n?e:on(e)}get value(){return ue(nn(this),0,"value"),this._value}set value(e){G(nn(e),this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:on(e),de(nn(this),"set","value",e))}}function cn(e,n=!1){return rn(e)?e:new sn(e,n)}function un(e){de(nn(e),"set","value",void 0)}function dn(e){return rn(e)?e.value:e}const pn={get:(e,n,t)=>dn(Reflect.get(e,n,t)),set:(e,n,t,o)=>{const r=e[n];return rn(r)&&!rn(t)?(r.value=t,!0):Reflect.set(e,n,t,o)}};function fn(e){return Qe(e)?e:new Proxy(e,pn)}class mn{constructor(e){this.__v_isRef=!0;const{get:n,set:t}=e((()=>ue(this,0,"value")),(()=>de(this,"set","value")));this._get=n,this._set=t}get value(){return this._get()}set value(e){this._set(e)}}function hn(e){return new mn(e)}function vn(e){const n=F(e)?new Array(e.length):{};for(const t in e)n[t]=bn(e,t);return n}class gn{constructor(e,n){this._object=e,this._key=n,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(e){this._object[this._key]=e}}function bn(e,n){return rn(e[n])?e[n]:new gn(e,n)}class yn{constructor(e,n,t){this._setter=n,this._dirty=!0,this.__v_isRef=!0,this.effect=te(e,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,de(nn(this),"set","value"))}}),this.__v_isReadonly=t}get value(){return this._dirty&&(this._value=this.effect(),this._dirty=!1),ue(nn(this),0,"value"),this._value}set value(e){this._setter(e)}}const kn=[];function wn(e,...n){se();const t=kn.length?kn[kn.length-1].component:null,o=t&&t.appContext.config.warnHandler,r=function(){let e=kn[kn.length-1];if(!e)return[];const n=[];for(;e;){const t=n[0];t&&t.vnode===e?t.recurseCount++:n.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return n}();if(o)_n(o,t,11,[e+n.join(""),t&&t.proxy,r.map((({vnode:e})=>`at <${ea(t,e.type)}>`)).join("\n"),r]);else{const t=[`[Vue warn]: ${e}`,...n];r.length&&t.push("\n",...function(e){const n=[];return e.forEach(((e,t)=>{n.push(...0===t?[]:["\n"],...function({vnode:e,recurseCount:n}){const t=n>0?`... (${n} recursive calls)`:"",o=!!e.component&&null==e.component.parent,r=` at <${ea(e.component,e.type,o)}`,a=">"+t;return e.props?[r,...xn(e.props),a]:[r+a]}(e))})),n}(r)),console.warn(...t)}ce()}function xn(e){const n=[],t=Object.keys(e);return t.slice(0,3).forEach((t=>{n.push(...An(t,e[t]))})),t.length>3&&n.push(" ..."),n}function An(e,n,t){return V(n)?(n=JSON.stringify(n),t?n:[`${e}=${n}`]):"number"==typeof n||"boolean"==typeof n||null==n?t?n:[`${e}=${n}`]:rn(n)?(n=An(e,nn(n.value),!0),t?n:[`${e}=Ref<`,n,">"]):B(n)?[`${e}=fn${n.name?`<${n.name}>`:""}`]:(n=nn(n),t?n:[`${e}=`,n])}function _n(e,n,t,o){let r;try{r=o?e(...o):e()}catch(e){Fn(e,n,t)}return r}function Cn(e,n,t,o){if(B(e)){const r=_n(e,n,t,o);return r&&$(r)&&r.catch((e=>{Fn(e,n,t)})),r}const r=[];for(let a=0;a<e.length;a++)r.push(Cn(e[a],n,t,o));return r}function Fn(e,n,t,o=!0){if(n&&n.vnode,n){let o=n.parent;const r=n.proxy,a=t;for(;o;){const n=o.ec;if(n)for(let t=0;t<n.length;t++)if(!1===n[t](e,r,a))return;o=o.parent}const i=n.appContext.config.errorHandler;if(i)return void _n(i,null,10,[e,r,a])}!function(e,n,t,o=!0){console.error(e)}(e,0,0,o)}let En=!1,Nn=!1;const Sn=[];let Bn=0;const Vn=[];let Tn=null,On=0;const $n=[];let jn=null,Ln=0;const Dn=Promise.resolve();let Un=null,Rn=null;function Pn(e){const n=Un||Dn;return e?n.then(this?e.bind(this):e):n}function Mn(e){Sn.length&&Sn.includes(e,En&&e.allowRecurse?Bn+1:Bn)||e===Rn||(Sn.push(e),In())}function In(){En||Nn||(Nn=!0,Un=Dn.then(Yn))}function zn(e,n,t,o){F(e)?t.push(...e):n&&n.includes(e,e.allowRecurse?o+1:o)||t.push(e),In()}function Wn(e){zn(e,jn,$n,Ln)}function Hn(e,n=null){if(Vn.length){for(Rn=n,Tn=[...new Set(Vn)],Vn.length=0,On=0;On<Tn.length;On++)Tn[On]();Tn=null,On=0,Rn=null,Hn(e,n)}}function qn(e){if($n.length){const e=[...new Set($n)];if($n.length=0,jn)return void jn.push(...e);for(jn=e,jn.sort(((e,n)=>Gn(e)-Gn(n))),Ln=0;Ln<jn.length;Ln++)jn[Ln]();jn=null,Ln=0}}const Gn=e=>null==e.id?1/0:e.id;function Yn(e){Nn=!1,En=!0,Hn(e),Sn.sort(((e,n)=>Gn(e)-Gn(n)));try{for(Bn=0;Bn<Sn.length;Bn++){const e=Sn[Bn];e&&_n(e,null,14)}}finally{Bn=0,Sn.length=0,qn(),En=!1,Un=null,(Sn.length||$n.length)&&Yn(e)}}let Kn;function Zn(e){Kn=e}new Set,new Map;const Xn=et("component:added"),Qn=et("component:updated"),Jn=et("component:removed");function et(e){return n=>{Kn&&Kn.emit(e,n.appContext.app,n.uid,n.parent?n.parent.uid:void 0)}}function nt(e,n,...t){const o=e.vnode.props||h;let r=t;const a=n.startsWith("update:"),i=a&&n.slice(7);if(i&&i in o){const e=`${"modelValue"===i?"model":i}Modifiers`,{number:n,trim:a}=o[e]||h;a?r=t.map((e=>e.trim())):n&&(r=t.map(Z))}!function(e,n,t){Kn&&Kn.emit("component:emit",e.appContext.app,e,n,t)}(e,n,r);let l=q(I(n)),s=o[l];!s&&a&&(l=q(W(n)),s=o[l]),s&&Cn(s,e,6,r);const c=o[l+"Once"];if(c){if(e.emitted){if(e.emitted[l])return}else(e.emitted={})[l]=!0;Cn(c,e,6,r)}}function tt(e,n,t=!1){if(!n.deopt&&void 0!==e.__emits)return e.__emits;const o=e.emits;let r={},a=!1;if(!B(e)){const o=e=>{a=!0,x(r,tt(e,n,!0))};!t&&n.mixins.length&&n.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return o||a?(F(o)?o.forEach((e=>r[e]=null)):x(r,o),e.__emits=r):e.__emits=null}function ot(e,n){return!(!e||!k(n))&&(n=n.slice(2).replace(/Once$/,""),C(e,n[0].toLowerCase()+n.slice(1))||C(e,W(n))||C(e,n))}let rt=null;function at(e){rt=e}function it(e){const{type:n,vnode:t,proxy:o,withProxy:r,props:a,propsOptions:[i],slots:l,attrs:s,emit:c,render:u,renderCache:d,data:p,setupState:f,ctx:m}=e;let h;rt=e;try{let e;if(4&t.shapeFlag){const n=r||o;h=xr(u.call(n,n,d,a,f,p,m)),e=s}else{const t=n;h=xr(t.length>1?t(a,{attrs:s,slots:l,emit:c}):t(a,null)),e=n.props?s:lt(s)}let v=h;if(!1!==n.inheritAttrs&&e){const n=Object.keys(e),{shapeFlag:t}=v;n.length&&(1&t||6&t)&&(i&&n.some(w)&&(e=st(e,i)),v=br(v,e))}t.dirs&&(v.dirs=v.dirs?v.dirs.concat(t.dirs):t.dirs),t.transition&&(v.transition=t.transition),h=v}catch(n){Fn(n,e,1),h=gr(nr)}return rt=null,h}const lt=e=>{let n;for(const t in e)("class"===t||"style"===t||k(t))&&((n||(n={}))[t]=e[t]);return n},st=(e,n)=>{const t={};for(const o in e)w(o)&&o.slice(9)in n||(t[o]=e[o]);return t};function ct(e,n,t){const o=Object.keys(n);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const a=o[r];if(n[a]!==e[a]&&!ot(t,a))return!0}return!1}function ut({vnode:e,parent:n},t){for(;n&&n.subTree===e;)(e=n.vnode).el=t,n=n.parent}const dt={__isSuspense:!0,process(e,n,t,o,r,a,i,l,s){null==e?function(e,n,t,o,r,a,i,l){const{p:s,o:{createElement:c}}=l,u=c("div"),d=e.suspense=pt(e,r,o,n,u,t,a,i,l);s(null,d.pendingBranch=e.ssContent,u,null,o,d,a),d.deps>0?(s(null,e.ssFallback,n,t,o,null,a),ht(d,e.ssFallback)):d.resolve()}(n,t,o,r,a,i,l,s):function(e,n,t,o,r,a,{p:i,um:l,o:{createElement:s}}){const c=n.suspense=e.suspense;c.vnode=n,n.el=e.el;const u=n.ssContent,d=n.ssFallback,{activeBranch:p,pendingBranch:f,isInFallback:m,isHydrating:h}=c;if(f)c.pendingBranch=u,pr(u,f)?(i(f,u,c.hiddenContainer,null,r,c,a),c.deps<=0?c.resolve():m&&(i(p,d,t,o,r,null,a),ht(c,d))):(c.pendingId++,h?(c.isHydrating=!1,c.activeBranch=f):l(f,r,c),c.deps=0,c.effects.length=0,c.hiddenContainer=s("div"),m?(i(null,u,c.hiddenContainer,null,r,c,a),c.deps<=0?c.resolve():(i(p,d,t,o,r,null,a),ht(c,d))):p&&pr(u,p)?(i(p,u,t,o,r,c,a),c.resolve(!0)):(i(null,u,c.hiddenContainer,null,r,c,a),c.deps<=0&&c.resolve()));else if(p&&pr(u,p))i(p,u,t,o,r,c,a),ht(c,u);else{const e=n.props&&n.props.onPending;if(B(e)&&e(),c.pendingBranch=u,c.pendingId++,i(null,u,c.hiddenContainer,null,r,c,a),c.deps<=0)c.resolve();else{const{timeout:e,pendingId:n}=c;e>0?setTimeout((()=>{c.pendingId===n&&c.fallback(d)}),e):0===e&&c.fallback(d)}}}(e,n,t,o,r,i,s)},hydrate:function(e,n,t,o,r,a,i,l){const s=n.suspense=pt(n,o,t,e.parentNode,document.createElement("div"),null,r,a,i,!0),c=l(e,s.pendingBranch=n.ssContent,t,s,a);return 0===s.deps&&s.resolve(),c},create:pt};function pt(e,n,t,o,r,a,i,l,s,c=!1){const{p:u,m:d,um:p,n:f,o:{parentNode:m,remove:h}}=s,v=Z(e.props&&e.props.timeout),g={vnode:e,parent:n,parentComponent:t,isSVG:i,container:o,hiddenContainer:r,anchor:a,deps:0,pendingId:0,timeout:"number"==typeof v?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:c,isUnmounted:!1,effects:[],resolve(e=!1){const{vnode:n,activeBranch:t,pendingBranch:o,pendingId:r,effects:a,parentComponent:i,container:l}=g;if(g.isHydrating)g.isHydrating=!1;else if(!e){const e=t&&o.transition&&"out-in"===o.transition.mode;e&&(t.transition.afterLeave=()=>{r===g.pendingId&&d(o,l,n,0)});let{anchor:n}=g;t&&(n=f(t),p(t,i,g,!0)),e||d(o,l,n,0)}ht(g,o),g.pendingBranch=null,g.isInFallback=!1;let s=g.parent,c=!1;for(;s;){if(s.pendingBranch){s.effects.push(...a),c=!0;break}s=s.parent}c||Wn(a),g.effects=[];const u=n.props&&n.props.onResolve;B(u)&&u()},fallback(e){if(!g.pendingBranch)return;const{vnode:n,activeBranch:t,parentComponent:o,container:r,isSVG:a}=g,i=n.props&&n.props.onFallback;B(i)&&i();const l=f(t),s=()=>{g.isInFallback&&(u(null,e,r,l,o,null,a),ht(g,e))},c=e.transition&&"out-in"===e.transition.mode;c&&(t.transition.afterLeave=s),p(t,o,null,!0),g.isInFallback=!0,c||s()},move(e,n,t){g.activeBranch&&d(g.activeBranch,e,n,t),g.container=e},next:()=>g.activeBranch&&f(g.activeBranch),registerDep(e,n){const t=!!g.pendingBranch;t&&g.deps++;const o=e.vnode.el;e.asyncDep.catch((n=>{Fn(n,e,0)})).then((r=>{if(e.isUnmounted||g.isUnmounted||g.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:a}=e;Yr(e,r),o&&(a.el=o);const s=!o&&e.subTree.el;n(e,a,m(o||e.subTree.el),o?null:f(e.subTree),g,i,l),s&&h(s),ut(e,a.el),t&&0==--g.deps&&g.resolve()}))},unmount(e,n){g.isUnmounted=!0,g.activeBranch&&p(g.activeBranch,t,e,n),g.pendingBranch&&p(g.pendingBranch,t,e,n)}};return g}function ft(e){return B(e)&&(e=e()),F(e)&&(e=function(e){let n;for(let t=0;t<e.length;t++){const o=e[t];if(!dr(o))return;if(o.type!==nr||"v-if"===o.children){if(n)return;n=o}}return n}(e)),xr(e)}function mt(e,n){n&&n.pendingBranch?F(e)?n.effects.push(...e):n.effects.push(e):Wn(e)}function ht(e,n){e.activeBranch=n;const{vnode:t,parentComponent:o}=e,r=t.el=n.el;o&&o.subTree===t&&(o.vnode.el=r,ut(o,r))}let vt=0;const gt=e=>vt+=e;function bt(e,n,t={},o){let r=e[n];vt++,ar();const a=r&&yt(r(t)),i=ur(Jo,{key:t.key||`_${n}`},a||(o?o():[]),a&&1===e._?64:-2);return vt--,i}function yt(e){return e.some((e=>!dr(e)||e.type!==nr&&!(e.type===Jo&&!yt(e.children))))?e:null}function kt(e,n=rt){if(!n)return e;const t=(...t)=>{vt||ar(!0);const o=rt;at(n);const r=e(...t);return at(o),vt||ir(),r};return t._c=!0,t}let wt=null;const xt=[];function At(e){xt.push(wt=e)}function _t(){xt.pop(),wt=xt[xt.length-1]||null}function Ct(e){return n=>kt((function(){At(e);const t=n.apply(this,arguments);return _t(),t}))}function Ft(e,n,t,o){const[r,a]=e.propsOptions;if(n)for(const a in n){const i=n[a];if(R(a))continue;let l;r&&C(r,l=I(a))?t[l]=i:ot(e.emitsOptions,a)||(o[a]=i)}if(a){const n=nn(t);for(let o=0;o<a.length;o++){const i=a[o];t[i]=Et(r,n,i,n[i],e)}}}function Et(e,n,t,o,r){const a=e[t];if(null!=a){const e=C(a,"default");if(e&&void 0===o){const e=a.default;a.type!==Function&&B(e)?(Hr(r),o=e(n),Hr(null)):o=e}a[0]&&(C(n,t)||e?!a[1]||""!==o&&o!==W(t)||(o=!0):o=!1)}return o}function Nt(e,n,t=!1){if(!n.deopt&&e.__props)return e.__props;const o=e.props,r={},a=[];let i=!1;if(!B(e)){const o=e=>{i=!0;const[t,o]=Nt(e,n,!0);x(r,t),o&&a.push(...o)};!t&&n.mixins.length&&n.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!o&&!i)return e.__props=v;if(F(o))for(let e=0;e<o.length;e++){const n=I(o[e]);St(n)&&(r[n]=h)}else if(o)for(const e in o){const n=I(e);if(St(n)){const t=o[e],i=r[n]=F(t)||B(t)?{type:t}:t;if(i){const e=Tt(Boolean,i.type),t=Tt(String,i.type);i[0]=e>-1,i[1]=t<0||e<t,(e>-1||C(i,"default"))&&a.push(n)}}}return e.__props=[r,a]}function St(e){return"$"!==e[0]}function Bt(e){const n=e&&e.toString().match(/^\s*function (\w+)/);return n?n[1]:""}function Vt(e,n){return Bt(e)===Bt(n)}function Tt(e,n){if(F(n)){for(let t=0,o=n.length;t<o;t++)if(Vt(n[t],e))return t}else if(B(n))return Vt(n,e)?0:-1;return-1}function Ot(e,n,t=zr,o=!1){if(t){const r=t[e]||(t[e]=[]),a=n.__weh||(n.__weh=(...o)=>{if(t.isUnmounted)return;se(),Hr(t);const r=Cn(n,t,e,o);return Hr(null),ce(),r});return o?r.unshift(a):r.push(a),a}}const $t=e=>(n,t=zr)=>!Gr&&Ot(e,n,t),jt=$t("bm"),Lt=$t("m"),Dt=$t("bu"),Ut=$t("u"),Rt=$t("bum"),Pt=$t("um"),Mt=$t("rtg"),It=$t("rtc"),zt=(e,n=zr)=>{Ot("ec",e,n)};function Wt(e,n){return Gt(e,null,n)}const Ht={};function qt(e,n,t){return Gt(e,n,t)}function Gt(e,n,{immediate:t,deep:o,flush:r,onTrack:a,onTrigger:i}=h,l=zr){let s,c,u=!1;if(rn(e)?(s=()=>e.value,u=!!e._shallow):Qe(e)?(s=()=>e,o=!0):s=F(e)?()=>e.map((e=>rn(e)?e.value:Qe(e)?Kt(e):B(e)?_n(e,l,2):void 0)):B(e)?n?()=>_n(e,l,2):()=>{if(!l||!l.isUnmounted)return c&&c(),_n(e,l,3,[d])}:g,n&&o){const e=s;s=()=>Kt(e())}const d=e=>{c=v.options.onStop=()=>{_n(e,l,4)}};let p=F(e)?[]:Ht;const f=()=>{if(v.active)if(n){const e=v();(o||u||G(e,p))&&(c&&c(),Cn(n,l,3,[e,p===Ht?void 0:p,d]),p=e)}else v()};let m;f.allowRecurse=!!n,m="sync"===r?f:"post"===r?()=>$o(f,l&&l.suspense):()=>{!l||l.isMounted?function(e){zn(e,Tn,Vn,On)}(f):f()};const v=te(s,{lazy:!0,onTrack:a,onTrigger:i,scheduler:m});return Qr(v,l),n?t?f():p=v():"post"===r?$o(v,l&&l.suspense):v(),()=>{oe(v),l&&A(l.effects,v)}}function Yt(e,n,t){const o=this.proxy;return Gt(V(e)?()=>o[e]:e.bind(o),n.bind(o),t,this)}function Kt(e,n=new Set){if(!O(e)||n.has(e))return e;if(n.add(e),rn(e))Kt(e.value,n);else if(F(e))for(let t=0;t<e.length;t++)Kt(e[t],n);else if(N(e)||E(e))e.forEach((e=>{Kt(e,n)}));else for(const t in e)Kt(e[t],n);return e}function Zt(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Lt((()=>{e.isMounted=!0})),Rt((()=>{e.isUnmounting=!0})),e}const Xt=[Function,Array],Qt={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Xt,onEnter:Xt,onAfterEnter:Xt,onEnterCancelled:Xt,onBeforeLeave:Xt,onLeave:Xt,onAfterLeave:Xt,onLeaveCancelled:Xt,onBeforeAppear:Xt,onAppear:Xt,onAfterAppear:Xt,onAppearCancelled:Xt},setup(e,{slots:n}){const t=Wr(),o=Zt();let r;return()=>{const a=n.default&&ro(n.default(),!0);if(!a||!a.length)return;const i=nn(e),{mode:l}=i,s=a[0];if(o.isLeaving)return no(s);const c=to(s);if(!c)return no(s);const u=eo(c,i,o,t);oo(c,u);const d=t.subTree,p=d&&to(d);let f=!1;const{getTransitionKey:m}=c.type;if(m){const e=m();void 0===r?r=e:e!==r&&(r=e,f=!0)}if(p&&p.type!==nr&&(!pr(c,p)||f)){const e=eo(p,i,o,t);if(oo(p,e),"out-in"===l)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,t.update()},no(s);"in-out"===l&&(e.delayLeave=(e,n,t)=>{Jt(o,p)[String(p.key)]=p,e._leaveCb=()=>{n(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=t})}return s}}};function Jt(e,n){const{leavingVNodes:t}=e;let o=t.get(n.type);return o||(o=Object.create(null),t.set(n.type,o)),o}function eo(e,n,t,o){const{appear:r,mode:a,persisted:i=!1,onBeforeEnter:l,onEnter:s,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:p,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:h,onAppear:v,onAfterAppear:g,onAppearCancelled:b}=n,y=String(e.key),k=Jt(t,e),w=(e,n)=>{e&&Cn(e,o,9,n)},x={mode:a,persisted:i,beforeEnter(n){let o=l;if(!t.isMounted){if(!r)return;o=h||l}n._leaveCb&&n._leaveCb(!0);const a=k[y];a&&pr(e,a)&&a.el._leaveCb&&a.el._leaveCb(),w(o,[n])},enter(e){let n=s,o=c,a=u;if(!t.isMounted){if(!r)return;n=v||s,o=g||c,a=b||u}let i=!1;const l=e._enterCb=n=>{i||(i=!0,w(n?a:o,[e]),x.delayedLeave&&x.delayedLeave(),e._enterCb=void 0)};n?(n(e,l),n.length<=1&&l()):l()},leave(n,o){const r=String(e.key);if(n._enterCb&&n._enterCb(!0),t.isUnmounting)return o();w(d,[n]);let a=!1;const i=n._leaveCb=t=>{a||(a=!0,o(),w(t?m:f,[n]),n._leaveCb=void 0,k[r]===e&&delete k[r])};k[r]=e,p?(p(n,i),p.length<=1&&i()):i()},clone:e=>eo(e,n,t,o)};return x}function no(e){if(ao(e))return(e=br(e)).children=null,e}function to(e){return ao(e)?e.children?e.children[0]:void 0:e}function oo(e,n){6&e.shapeFlag&&e.component?oo(e.component.subTree,n):128&e.shapeFlag?(e.ssContent.transition=n.clone(e.ssContent),e.ssFallback.transition=n.clone(e.ssFallback)):e.transition=n}function ro(e,n=!1){let t=[],o=0;for(let r=0;r<e.length;r++){const a=e[r];a.type===Jo?(128&a.patchFlag&&o++,t=t.concat(ro(a.children,n))):(n||a.type!==nr)&&t.push(a)}if(o>1)for(let e=0;e<t.length;e++)t[e].patchFlag=-2;return t}const ao=e=>e.type.__isKeepAlive,io={name:"KeepAlive",__isKeepAlive:!0,inheritRef:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:n}){const t=new Map,o=new Set;let r=null;const a=Wr(),i=a.suspense,l=a.ctx,{renderer:{p:s,m:c,um:u,o:{createElement:d}}}=l,p=d("div");function f(e){mo(e),u(e,a,i)}function m(e){t.forEach(((n,t)=>{const o=lo(n.type);!o||e&&e(o)||h(t)}))}function h(e){const n=t.get(e);r&&n.type===r.type?r&&mo(r):f(n),t.delete(e),o.delete(e)}l.activate=(e,n,t,o,r)=>{const a=e.component;c(e,n,t,0,i),s(a.vnode,e,n,t,a,i,o,r),$o((()=>{a.isDeactivated=!1,a.a&&Y(a.a);const n=e.props&&e.props.onVnodeMounted;n&&Ro(n,a.parent,e)}),i)},l.deactivate=e=>{const n=e.component;c(e,p,null,1,i),$o((()=>{n.da&&Y(n.da);const t=e.props&&e.props.onVnodeUnmounted;t&&Ro(t,n.parent,e),n.isDeactivated=!0}),i)},qt((()=>[e.include,e.exclude]),(([e,n])=>{e&&m((n=>so(e,n))),n&&m((e=>!so(n,e)))}),{flush:"post",deep:!0});let v=null;const g=()=>{null!=v&&t.set(v,ho(a.subTree))};return Lt(g),Ut(g),Rt((()=>{t.forEach((e=>{const{subTree:n,suspense:t}=a,o=ho(n);if(e.type!==o.type)f(e);else{mo(o);const e=o.component.da;e&&$o(e,t)}}))})),()=>{if(v=null,!n.default)return null;const a=n.default(),i=a[0];if(a.length>1)return r=null,a;if(!dr(i)||!(4&i.shapeFlag||128&i.shapeFlag))return r=null,i;let l=ho(i);const s=l.type,c=lo(s),{include:u,exclude:d,max:p}=e;if(u&&(!c||!so(u,c))||d&&c&&so(d,c))return r=l,i;const f=null==l.key?s:l.key,m=t.get(f);return l.el&&(l=br(l),128&i.shapeFlag&&(i.ssContent=l)),v=f,m?(l.el=m.el,l.component=m.component,l.transition&&oo(l,l.transition),l.shapeFlag|=512,o.delete(f),o.add(f)):(o.add(f),p&&o.size>parseInt(p,10)&&h(o.values().next().value)),l.shapeFlag|=256,r=l,i}}};function lo(e){return e.displayName||e.name}function so(e,n){return F(e)?e.some((e=>so(e,n))):V(e)?e.split(",").indexOf(n)>-1:!!e.test&&e.test(n)}function co(e,n){po(e,"a",n)}function uo(e,n){po(e,"da",n)}function po(e,n,t=zr){const o=e.__wdc||(e.__wdc=()=>{let n=t;for(;n;){if(n.isDeactivated)return;n=n.parent}e()});if(Ot(n,o,t),t){let e=t.parent;for(;e&&e.parent;)ao(e.parent.vnode)&&fo(o,n,t,e),e=e.parent}}function fo(e,n,t,o){const r=Ot(n,e,o,!0);Pt((()=>{A(o[n],r)}),t)}function mo(e){let n=e.shapeFlag;256&n&&(n-=256),512&n&&(n-=512),e.shapeFlag=n}function ho(e){return 128&e.shapeFlag?e.ssContent:e}const vo=e=>"_"===e[0]||"$stable"===e,go=e=>F(e)?e.map(xr):[xr(e)],bo=(e,n,t)=>kt((e=>go(n(e))),t),yo=(e,n)=>{const t=e._ctx;for(const o in e){if(vo(o))continue;const r=e[o];if(B(r))n[o]=bo(0,r,t);else if(null!=r){const e=go(r);n[o]=()=>e}}},ko=(e,n)=>{const t=go(n);e.slots.default=()=>t};function wo(e,n){if(null===rt)return e;const t=rt.proxy,o=e.dirs||(e.dirs=[]);for(let e=0;e<n.length;e++){let[r,a,i,l=h]=n[e];B(r)&&(r={mounted:r,updated:r}),o.push({dir:r,instance:t,value:a,oldValue:void 0,arg:i,modifiers:l})}return e}function xo(e,n,t,o){const r=e.dirs,a=n&&n.dirs;for(let i=0;i<r.length;i++){const l=r[i];a&&(l.oldValue=a[i].value);const s=l.dir[o];s&&Cn(s,t,8,[e.el,l,e,n])}}function Ao(){return{app:null,config:{isNativeTag:b,performance:!1,globalProperties:{},optionMergeStrategies:{},isCustomElement:b,errorHandler:void 0,warnHandler:void 0},mixins:[],components:{},directives:{},provides:Object.create(null)}}let _o=0;function Co(e,n){return function(t,o=null){null==o||O(o)||(o=null);const r=Ao(),a=new Set;let i=!1;const l=r.app={_uid:_o++,_component:t,_props:o,_container:null,_context:r,version:pa,get config(){return r.config},set config(e){},use:(e,...n)=>(a.has(e)||(e&&B(e.install)?(a.add(e),e.install(l,...n)):B(e)&&(a.add(e),e(l,...n))),l),mixin:e=>(r.mixins.includes(e)||(r.mixins.push(e),(e.props||e.emits)&&(r.deopt=!0)),l),component:(e,n)=>n?(r.components[e]=n,l):r.components[e],directive:(e,n)=>n?(r.directives[e]=n,l):r.directives[e],mount(a,s){if(!i){const c=gr(t,o);return c.appContext=r,s&&n?n(c,a):e(c,a),i=!0,l._container=a,a.__vue_app__=l,function(e,n){Kn&&Kn.emit("app:init",e,n,{Fragment:Jo,Text:er,Comment:nr,Static:tr})}(l,pa),c.component.proxy}},unmount(){i&&(e(null,l._container),function(e){Kn&&Kn.emit("app:unmount",e)}(l))},provide:(e,n)=>(r.provides[e]=n,l)};return l}}let Fo=!1;const Eo=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,No=e=>8===e.nodeType;function So(e){const{mt:n,p:t,o:{patchProp:o,nextSibling:r,parentNode:a,remove:i,insert:l,createComment:s}}=e,c=(t,o,i,l,s=!1)=>{const h=No(t)&&"["===t.data,v=()=>f(t,o,i,l,h),{type:g,ref:b,shapeFlag:y}=o,k=t.nodeType;o.el=t;let w=null;switch(g){case er:3!==k?w=v():(t.data!==o.children&&(Fo=!0,t.data=o.children),w=r(t));break;case nr:w=8!==k||h?v():r(t);break;case tr:if(1===k){w=t;const e=!o.children.length;for(let n=0;n<o.staticCount;n++)e&&(o.children+=w.outerHTML),n===o.staticCount-1&&(o.anchor=w),w=r(w);return w}w=v();break;case Jo:w=h?p(t,o,i,l,s):v();break;default:if(1&y)w=1!==k||o.type!==t.tagName.toLowerCase()?v():u(t,o,i,l,s);else if(6&y){const e=a(t),c=()=>{n(o,e,null,i,l,Eo(e),s)},u=o.type.__asyncLoader;u?u().then(c):c(),w=h?m(t):r(t)}else 64&y?w=8!==k?v():o.type.hydrate(t,o,i,l,s,e,d):128&y&&(w=o.type.hydrate(t,o,i,l,Eo(a(t)),s,e,c))}return null!=b&&jo(b,null,l,o),w},u=(e,n,t,r,a)=>{a=a||!!n.dynamicChildren;const{props:l,patchFlag:s,shapeFlag:c,dirs:u}=n;if(-1!==s){if(u&&xo(n,null,t,"created"),l)if(!a||16&s||32&s)for(const n in l)!R(n)&&k(n)&&o(e,n,null,l[n]);else l.onClick&&o(e,"onClick",null,l.onClick);let p;if((p=l&&l.onVnodeBeforeMount)&&Ro(p,t,n),u&&xo(n,null,t,"beforeMount"),((p=l&&l.onVnodeMounted)||u)&&mt((()=>{p&&Ro(p,t,n),u&&xo(n,null,t,"mounted")}),r),16&c&&(!l||!l.innerHTML&&!l.textContent)){let o=d(e.firstChild,n,e,t,r,a);for(;o;){Fo=!0;const e=o;o=o.nextSibling,i(e)}}else 8&c&&e.textContent!==n.children&&(Fo=!0,e.textContent=n.children)}return e.nextSibling},d=(e,n,o,r,a,i)=>{i=i||!!n.dynamicChildren;const l=n.children,s=l.length;for(let n=0;n<s;n++){const s=i?l[n]:l[n]=xr(l[n]);e?e=c(e,s,r,a,i):(Fo=!0,t(null,s,o,null,r,a,Eo(o)))}return e},p=(e,n,t,o,i)=>{const c=a(e),u=d(r(e),n,c,t,o,i);return u&&No(u)&&"]"===u.data?r(n.anchor=u):(Fo=!0,l(n.anchor=s("]"),c,u),u)},f=(e,n,o,l,s)=>{if(Fo=!0,n.el=null,s){const n=m(e);for(;;){const t=r(e);if(!t||t===n)break;i(t)}}const c=r(e),u=a(e);return i(e),t(null,n,u,c,o,l,Eo(u)),c},m=e=>{let n=0;for(;e;)if((e=r(e))&&No(e)&&("["===e.data&&n++,"]"===e.data)){if(0===n)return r(e);n--}return e};return[(e,n)=>{Fo=!1,c(n.firstChild,e,null,null),qn(),Fo&&console.error("Hydration completed but contains mismatches.")},c]}function Bo(e){return B(e)?{setup:e,name:e.name}:e}function Vo(e){B(e)&&(e={loader:e});const{loader:n,loadingComponent:t,errorComponent:o,delay:r=200,timeout:a,suspensible:i=!0,onError:l}=e;let s,c=null,u=0;const d=()=>{let e;return c||(e=c=n().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise(((n,t)=>{l(e,(()=>n((u++,c=null,d()))),(()=>t(e)),u+1)}));throw e})).then((n=>e!==c&&c?c:(n&&(n.__esModule||"Module"===n[Symbol.toStringTag])&&(n=n.default),s=n,n))))};return Bo({__asyncLoader:d,name:"AsyncComponentWrapper",setup(){const e=zr;if(s)return()=>To(s,e);const n=n=>{c=null,Fn(n,e,13,!o)};if(i&&e.suspense)return d().then((n=>()=>To(n,e))).catch((e=>(n(e),()=>o?gr(o,{error:e}):null)));const l=an(!1),u=an(),p=an(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=a&&setTimeout((()=>{if(!l.value&&!u.value){const e=new Error(`Async component timed out after ${a}ms.`);n(e),u.value=e}}),a),d().then((()=>{l.value=!0})).catch((e=>{n(e),u.value=e})),()=>l.value&&s?To(s,e):u.value&&o?gr(o,{error:u.value}):t&&!p.value?gr(t):void 0}})}function To(e,{vnode:{ref:n,props:t,children:o}}){const r=gr(e,t,o);return r.ref=n,r}const Oo={scheduler:Mn,allowRecurse:!0},$o=mt,jo=(e,n,t,o)=>{if(F(e))return void e.forEach(((e,r)=>jo(e,n&&(F(n)?n[r]:n),t,o)));let r;r=!o||o.type.__asyncLoader?null:4&o.shapeFlag?o.component.exposed||o.component.proxy:o.el;const{i:a,r:i}=e,l=n&&n.r,s=a.refs===h?a.refs={}:a.refs,c=a.setupState;if(null!=l&&l!==i&&(V(l)?(s[l]=null,C(c,l)&&(c[l]=null)):rn(l)&&(l.value=null)),V(i)){const e=()=>{s[i]=r,C(c,i)&&(c[i]=r)};r?(e.id=-1,$o(e,t)):e()}else if(rn(i)){const e=()=>{i.value=r};r?(e.id=-1,$o(e,t)):e()}else B(i)&&_n(i,a,12,[r,s])};function Lo(e){return Uo(e)}function Do(e){return Uo(e,So)}function Uo(e,n){const{insert:t,remove:o,patchProp:r,forcePatchProp:a,createElement:i,createText:l,createComment:s,setText:c,setElementText:u,parentNode:d,nextSibling:p,setScopeId:f=g,cloneNode:m,insertStaticContent:b}=e,y=(e,n,t,o=null,r=null,a=null,i=!1,l=!1)=>{e&&!pr(e,n)&&(o=J(e),q(e,r,a,!0),e=null),-2===n.patchFlag&&(l=!1,n.dynamicChildren=null);const{type:s,ref:c,shapeFlag:u}=n;switch(s){case er:k(e,n,t,o);break;case nr:w(e,n,t,o);break;case tr:null==e&&A(n,t,o,i);break;case Jo:T(e,n,t,o,r,a,i,l);break;default:1&u?_(e,n,t,o,r,a,i,l):6&u?O(e,n,t,o,r,a,i,l):(64&u||128&u)&&s.process(e,n,t,o,r,a,i,l,ne)}null!=c&&r&&jo(c,e&&e.ref,a,n)},k=(e,n,o,r)=>{if(null==e)t(n.el=l(n.children),o,r);else{const t=n.el=e.el;n.children!==e.children&&c(t,n.children)}},w=(e,n,o,r)=>{null==e?t(n.el=s(n.children||""),o,r):n.el=e.el},A=(e,n,t,o)=>{[e.el,e.anchor]=b(e.children,n,t,o)},_=(e,n,t,o,r,a,i,l)=>{i=i||"svg"===n.type,null==e?F(n,t,o,r,a,i,l):S(e,n,r,a,i,l)},F=(e,n,o,a,l,s,c)=>{let d,p;const{type:f,props:h,shapeFlag:v,transition:g,scopeId:b,patchFlag:y,dirs:k}=e;if(e.el&&void 0!==m&&-1===y)d=e.el=m(e.el);else{if(d=e.el=i(e.type,s,h&&h.is),8&v?u(d,e.children):16&v&&N(e.children,d,null,a,l,s&&"foreignObject"!==f,c||!!e.dynamicChildren),k&&xo(e,null,a,"created"),h){for(const n in h)R(n)||r(d,n,null,h[n],s,e.children,a,l,Q);(p=h.onVnodeBeforeMount)&&Ro(p,a,e)}E(d,b,e,a)}Object.defineProperty(d,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(d,"__vueParentComponent",{value:a,enumerable:!1}),k&&xo(e,null,a,"beforeMount");const w=(!l||l&&!l.pendingBranch)&&g&&!g.persisted;w&&g.beforeEnter(d),t(d,n,o),((p=h&&h.onVnodeMounted)||w||k)&&$o((()=>{p&&Ro(p,a,e),w&&g.enter(d),k&&xo(e,null,a,"mounted")}),l)},E=(e,n,t,o)=>{if(n&&f(e,n),o){const r=o.type.__scopeId;r&&r!==n&&f(e,r+"-s"),t===o.subTree&&E(e,o.vnode.scopeId,o.vnode,o.parent)}},N=(e,n,t,o,r,a,i,l=0)=>{for(let s=l;s<e.length;s++){const l=e[s]=i?Ar(e[s]):xr(e[s]);y(null,l,n,t,o,r,a,i)}},S=(e,n,t,o,i,l)=>{const s=n.el=e.el;let{patchFlag:c,dynamicChildren:d,dirs:p}=n;c|=16&e.patchFlag;const f=e.props||h,m=n.props||h;let v;if((v=m.onVnodeBeforeUpdate)&&Ro(v,t,n,e),p&&xo(n,e,t,"beforeUpdate"),c>0){if(16&c)V(s,n,f,m,t,o,i);else if(2&c&&f.class!==m.class&&r(s,"class",null,m.class,i),4&c&&r(s,"style",f.style,m.style,i),8&c){const l=n.dynamicProps;for(let n=0;n<l.length;n++){const c=l[n],u=f[c],d=m[c];(d!==u||a&&a(s,c))&&r(s,c,u,d,i,e.children,t,o,Q)}}1&c&&e.children!==n.children&&u(s,n.children)}else l||null!=d||V(s,n,f,m,t,o,i);const g=i&&"foreignObject"!==n.type;d?B(e.dynamicChildren,d,s,t,o,g):l||P(e,n,s,null,t,o,g),((v=m.onVnodeUpdated)||p)&&$o((()=>{v&&Ro(v,t,n,e),p&&xo(n,e,t,"updated")}),o)},B=(e,n,t,o,r,a)=>{for(let i=0;i<n.length;i++){const l=e[i],s=n[i],c=l.type===Jo||!pr(l,s)||6&l.shapeFlag||64&l.shapeFlag?d(l.el):t;y(l,s,c,null,o,r,a,!0)}},V=(e,n,t,o,i,l,s)=>{if(t!==o){for(const c in o){if(R(c))continue;const u=o[c],d=t[c];(u!==d||a&&a(e,c))&&r(e,c,d,u,s,n.children,i,l,Q)}if(t!==h)for(const a in t)R(a)||a in o||r(e,a,t[a],null,s,n.children,i,l,Q)}},T=(e,n,o,r,a,i,s,c)=>{const u=n.el=e?e.el:l(""),d=n.anchor=e?e.anchor:l("");let{patchFlag:p,dynamicChildren:f}=n;p>0&&(c=!0),null==e?(t(u,o,r),t(d,o,r),N(n.children,o,d,a,i,s,c)):p>0&&64&p&&f?(B(e.dynamicChildren,f,o,a,i,s),(null!=n.key||a&&n===a.subTree)&&Po(e,n,!0)):P(e,n,o,d,a,i,s,c)},O=(e,n,t,o,r,a,i,l)=>{null==e?512&n.shapeFlag?r.ctx.activate(n,t,o,i,l):j(n,t,o,r,a,i,l):L(e,n,l)},j=(e,n,t,o,r,a,i)=>{const l=e.component=function(e,n,t){const o=e.type,r=(n?n.appContext:e.appContext)||Mr,a={uid:Ir++,vnode:e,type:o,parent:n,appContext:r,root:null,next:null,subTree:null,update:null,render:null,proxy:null,exposed:null,withProxy:null,effects:null,provides:n?n.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Nt(o,r),emitsOptions:tt(o,r),emit:null,emitted:null,ctx:h,data:h,props:h,attrs:h,slots:h,refs:h,setupState:h,setupContext:null,suspense:t,suspenseId:t?t.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null};return a.ctx={_:a},a.root=n?n.root:a,a.emit=nt.bind(null,a),Xn(a),a}(e,o,r);if(ao(e)&&(l.ctx.renderer=ne),function(e,n=!1){Gr=n;const{props:t,children:o,shapeFlag:r}=e.vnode,a=4&r;(function(e,n,t,o=!1){const r={},a={};K(a,mr,1),Ft(e,n,r,a),t?e.props=o?r:Ye(r):e.type.props?e.props=r:e.props=a,e.attrs=a})(e,t,a,n),((e,n)=>{if(32&e.vnode.shapeFlag){const t=n._;t?(e.slots=n,K(n,"_",t)):yo(n,e.slots={})}else e.slots={},n&&ko(e,n);K(e.slots,mr,1)})(e,o);a&&function(e,n){const t=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Rr);const{setup:o}=t;if(o){const t=e.setupContext=o.length>1?Xr(e):null;zr=e,se();const r=_n(o,e,0,[e.props,t]);if(ce(),zr=null,$(r)){if(n)return r.then((n=>{Yr(e,n)}));e.asyncDep=r}else Yr(e,r)}else Zr(e)}(e,n);Gr=!1}(l),l.asyncDep){if(r&&r.registerDep(l,D),!e.el){const e=l.subTree=gr(nr);w(null,e,n,t)}}else D(l,e,n,t,r,a,i)},L=(e,n,t)=>{const o=n.component=e.component;if(function(e,n,t){const{props:o,children:r,component:a}=e,{props:i,children:l,patchFlag:s}=n,c=a.emitsOptions;if(n.dirs||n.transition)return!0;if(!(t&&s>=0))return!(!r&&!l||l&&l.$stable)||o!==i&&(o?!i||ct(o,i,c):!!i);if(1024&s)return!0;if(16&s)return o?ct(o,i,c):!!i;if(8&s){const e=n.dynamicProps;for(let n=0;n<e.length;n++){const t=e[n];if(i[t]!==o[t]&&!ot(c,t))return!0}}return!1}(e,n,t)){if(o.asyncDep&&!o.asyncResolved)return void U(o,n,t);o.next=n,function(e){const n=Sn.indexOf(e);n>-1&&Sn.splice(n,1)}(o.update),o.update()}else n.component=e.component,n.el=e.el,o.vnode=n},D=(e,n,t,o,r,a,i)=>{e.update=te((function(){if(e.isMounted){let n,{next:t,bu:o,u:l,parent:s,vnode:c}=e,u=t;t?(t.el=c.el,U(e,t,i)):t=c,o&&Y(o),(n=t.props&&t.props.onVnodeBeforeUpdate)&&Ro(n,s,t,c);const p=it(e),f=e.subTree;e.subTree=p,y(f,p,d(f.el),J(f),e,r,a),t.el=p.el,null===u&&ut(e,p.el),l&&$o(l,r),(n=t.props&&t.props.onVnodeUpdated)&&$o((()=>{Ro(n,s,t,c)}),r),Qn(e)}else{let i;const{el:l,props:s}=n,{bm:c,m:u,parent:d}=e;c&&Y(c),(i=s&&s.onVnodeBeforeMount)&&Ro(i,d,n);const p=e.subTree=it(e);l&&ae?ae(n.el,p,e,r):(y(null,p,t,o,e,r,a),n.el=p.el),u&&$o(u,r),(i=s&&s.onVnodeMounted)&&$o((()=>{Ro(i,d,n)}),r);const{a:f}=e;f&&256&n.shapeFlag&&$o(f,r),e.isMounted=!0}}),Oo)},U=(e,n,t)=>{n.component=e;const o=e.vnode.props;e.vnode=n,e.next=null,function(e,n,t,o){const{props:r,attrs:a,vnode:{patchFlag:i}}=e,l=nn(r),[s]=e.propsOptions;if(!(o||i>0)||16&i){let o;Ft(e,n,r,a);for(const a in l)n&&(C(n,a)||(o=W(a))!==a&&C(n,o))||(s?!t||void 0===t[a]&&void 0===t[o]||(r[a]=Et(s,n||h,a,void 0,e)):delete r[a]);if(a!==l)for(const e in a)n&&C(n,e)||delete a[e]}else if(8&i){const t=e.vnode.dynamicProps;for(let o=0;o<t.length;o++){const i=t[o],c=n[i];if(s)if(C(a,i))a[i]=c;else{const n=I(i);r[n]=Et(s,l,n,c,e)}else a[i]=c}}de(e,"set","$attrs")}(e,n.props,o,t),((e,n)=>{const{vnode:t,slots:o}=e;let r=!0,a=h;if(32&t.shapeFlag){const e=n._;e?1===e?r=!1:x(o,n):(r=!n.$stable,yo(n,o)),a=n}else n&&(ko(e,n),a={default:1});if(r)for(const e in o)vo(e)||e in a||delete o[e]})(e,n.children),Hn(void 0,e.update)},P=(e,n,t,o,r,a,i,l=!1)=>{const s=e&&e.children,c=e?e.shapeFlag:0,d=n.children,{patchFlag:p,shapeFlag:f}=n;if(p>0){if(128&p)return void z(s,d,t,o,r,a,i,l);if(256&p)return void M(s,d,t,o,r,a,i,l)}8&f?(16&c&&Q(s,r,a),d!==s&&u(t,d)):16&c?16&f?z(s,d,t,o,r,a,i,l):Q(s,r,a,!0):(8&c&&u(t,""),16&f&&N(d,t,o,r,a,i,l))},M=(e,n,t,o,r,a,i,l)=>{n=n||v;const s=(e=e||v).length,c=n.length,u=Math.min(s,c);let d;for(d=0;d<u;d++){const o=n[d]=l?Ar(n[d]):xr(n[d]);y(e[d],o,t,null,r,a,i,l)}s>c?Q(e,r,a,!0,!1,u):N(n,t,o,r,a,i,l,u)},z=(e,n,t,o,r,a,i,l)=>{let s=0;const c=n.length;let u=e.length-1,d=c-1;for(;s<=u&&s<=d;){const o=e[s],c=n[s]=l?Ar(n[s]):xr(n[s]);if(!pr(o,c))break;y(o,c,t,null,r,a,i,l),s++}for(;s<=u&&s<=d;){const o=e[u],s=n[d]=l?Ar(n[d]):xr(n[d]);if(!pr(o,s))break;y(o,s,t,null,r,a,i,l),u--,d--}if(s>u){if(s<=d){const e=d+1,u=e<c?n[e].el:o;for(;s<=d;)y(null,n[s]=l?Ar(n[s]):xr(n[s]),t,u,r,a,i),s++}}else if(s>d)for(;s<=u;)q(e[s],r,a,!0),s++;else{const p=s,f=s,m=new Map;for(s=f;s<=d;s++){const e=n[s]=l?Ar(n[s]):xr(n[s]);null!=e.key&&m.set(e.key,s)}let h,g=0;const b=d-f+1;let k=!1,w=0;const x=new Array(b);for(s=0;s<b;s++)x[s]=0;for(s=p;s<=u;s++){const o=e[s];if(g>=b){q(o,r,a,!0);continue}let c;if(null!=o.key)c=m.get(o.key);else for(h=f;h<=d;h++)if(0===x[h-f]&&pr(o,n[h])){c=h;break}void 0===c?q(o,r,a,!0):(x[c-f]=s+1,c>=w?w=c:k=!0,y(o,n[c],t,null,r,a,i,l),g++)}const A=k?function(e){const n=e.slice(),t=[0];let o,r,a,i,l;const s=e.length;for(o=0;o<s;o++){const s=e[o];if(0!==s){if(r=t[t.length-1],e[r]<s){n[o]=r,t.push(o);continue}for(a=0,i=t.length-1;a<i;)l=(a+i)/2|0,e[t[l]]<s?a=l+1:i=l;s<e[t[a]]&&(a>0&&(n[o]=t[a-1]),t[a]=o)}}for(a=t.length,i=t[a-1];a-- >0;)t[a]=i,i=n[i];return t}(x):v;for(h=A.length-1,s=b-1;s>=0;s--){const e=f+s,l=n[e],u=e+1<c?n[e+1].el:o;0===x[s]?y(null,l,t,u,r,a,i):k&&(h<0||s!==A[h]?H(l,t,u,2):h--)}}},H=(e,n,o,r,a=null)=>{const{el:i,type:l,transition:s,children:c,shapeFlag:u}=e;if(6&u)H(e.component.subTree,n,o,r);else if(128&u)e.suspense.move(n,o,r);else if(64&u)l.move(e,n,o,ne);else if(l!==Jo)if(l!==tr)if(2!==r&&1&u&&s)if(0===r)s.beforeEnter(i),t(i,n,o),$o((()=>s.enter(i)),a);else{const{leave:e,delayLeave:r,afterLeave:a}=s,l=()=>t(i,n,o),c=()=>{e(i,(()=>{l(),a&&a()}))};r?r(i,l,c):c()}else t(i,n,o);else(({el:e,anchor:n},o,r)=>{let a;for(;e&&e!==n;)a=p(e),t(e,o,r),e=a;t(n,o,r)})(e,n,o);else{t(i,n,o);for(let e=0;e<c.length;e++)H(c[e],n,o,r);t(e.anchor,n,o)}},q=(e,n,t,o=!1,r=!1)=>{const{type:a,props:i,ref:l,children:s,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p}=e;if(null!=l&&jo(l,null,t,null),256&u)return void n.ctx.deactivate(e);const f=1&u&&p;let m;if((m=i&&i.onVnodeBeforeUnmount)&&Ro(m,n,e),6&u)X(e.component,t,o);else{if(128&u)return void e.suspense.unmount(t,o);f&&xo(e,null,n,"beforeUnmount"),c&&(a!==Jo||d>0&&64&d)?Q(c,n,t,!1,!0):(a===Jo&&(128&d||256&d)||!r&&16&u)&&Q(s,n,t),64&u&&(o||!Mo(e.props))&&e.type.remove(e,ne),o&&G(e)}((m=i&&i.onVnodeUnmounted)||f)&&$o((()=>{m&&Ro(m,n,e),f&&xo(e,null,n,"unmounted")}),t)},G=e=>{const{type:n,el:t,anchor:r,transition:a}=e;if(n===Jo)return void Z(t,r);if(n===tr)return void(({el:e,anchor:n})=>{let t;for(;e&&e!==n;)t=p(e),o(e),e=t;o(n)})(e);const i=()=>{o(t),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(1&e.shapeFlag&&a&&!a.persisted){const{leave:n,delayLeave:o}=a,r=()=>n(t,i);o?o(e.el,i,r):r()}else i()},Z=(e,n)=>{let t;for(;e!==n;)t=p(e),o(e),e=t;o(n)},X=(e,n,t)=>{const{bum:o,effects:r,update:a,subTree:i,um:l}=e;if(o&&Y(o),r)for(let e=0;e<r.length;e++)oe(r[e]);a&&(oe(a),q(i,e,n,t)),l&&$o(l,n),$o((()=>{e.isUnmounted=!0}),n),n&&n.pendingBranch&&!n.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===n.pendingId&&(n.deps--,0===n.deps&&n.resolve()),Jn(e)},Q=(e,n,t,o=!1,r=!1,a=0)=>{for(let i=a;i<e.length;i++)q(e[i],n,t,o,r)},J=e=>6&e.shapeFlag?J(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),ee=(e,n)=>{null==e?n._vnode&&q(n._vnode,null,null,!0):y(n._vnode||null,e,n),qn(),n._vnode=e},ne={p:y,um:q,m:H,r:G,mt:j,mc:N,pc:P,pbc:B,n:J,o:e};let re,ae;return n&&([re,ae]=n(ne)),{render:ee,hydrate:re,createApp:Co(ee,re)}}function Ro(e,n,t,o=null){Cn(e,n,7,[t,o])}function Po(e,n,t=!1){const o=e.children,r=n.children;if(F(o)&&F(r))for(let e=0;e<o.length;e++){const n=o[e];let a=r[e];1&a.shapeFlag&&!a.dynamicChildren&&((a.patchFlag<=0||32===a.patchFlag)&&(a=r[e]=Ar(r[e]),a.el=n.el),t||Po(n,a))}}const Mo=e=>e&&(e.disabled||""===e.disabled),Io=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,zo=(e,n)=>{const t=e&&e.to;if(V(t)){if(n){return n(t)}return null}return t};function Wo(e,n,t,{o:{insert:o},m:r},a=2){0===a&&o(e.targetAnchor,n,t);const{el:i,anchor:l,shapeFlag:s,children:c,props:u}=e,d=2===a;if(d&&o(i,n,t),(!d||Mo(u))&&16&s)for(let e=0;e<c.length;e++)r(c[e],n,t,2);d&&o(l,n,t)}const Ho={__isTeleport:!0,process(e,n,t,o,r,a,i,l,s){const{mc:c,pc:u,pbc:d,o:{insert:p,querySelector:f,createText:m,createComment:h}}=s,v=Mo(n.props),{shapeFlag:g,children:b}=n;if(null==e){const e=n.el=m(""),s=n.anchor=m("");p(e,t,o),p(s,t,o);const u=n.target=zo(n.props,f),d=n.targetAnchor=m("");u&&(p(d,u),i=i||Io(u));const h=(e,n)=>{16&g&&c(b,e,n,r,a,i,l)};v?h(t,s):u&&h(u,d)}else{n.el=e.el;const o=n.anchor=e.anchor,c=n.target=e.target,p=n.targetAnchor=e.targetAnchor,m=Mo(e.props),h=m?t:c,g=m?o:p;if(i=i||Io(c),n.dynamicChildren?(d(e.dynamicChildren,n.dynamicChildren,h,r,a,i),Po(e,n,!0)):l||u(e,n,h,g,r,a,i),v)m||Wo(n,t,o,s,1);else if((n.props&&n.props.to)!==(e.props&&e.props.to)){const e=n.target=zo(n.props,f);e&&Wo(n,e,null,s,0)}else m&&Wo(n,c,p,s,1)}},remove(e,{r:n,o:{remove:t}}){const{shapeFlag:o,children:r,anchor:a}=e;if(t(a),16&o)for(let e=0;e<r.length;e++)n(r[e])},move:Wo,hydrate:function(e,n,t,o,r,{o:{nextSibling:a,parentNode:i,querySelector:l}},s){const c=n.target=zo(n.props,l);if(c){const l=c._lpa||c.firstChild;16&n.shapeFlag&&(Mo(n.props)?(n.anchor=s(a(e),n,i(e),t,o,r),n.targetAnchor=l):(n.anchor=a(e),n.targetAnchor=s(l,n,c,t,o,r)),c._lpa=n.targetAnchor&&a(n.targetAnchor))}return n.anchor&&a(n.anchor)}},qo="components";function Go(e){return Xo(qo,e)||e}const Yo=Symbol();function Ko(e){return V(e)?Xo(qo,e,!1)||e:e||Yo}function Zo(e){return Xo("directives",e)}function Xo(e,n,t=!0){const o=rt||zr;if(o){const t=o.type;if(e===qo){if("_self"===n)return t;const e=t.displayName||t.name;if(e&&(e===n||e===I(n)||e===H(I(n))))return t}return Qo(o[e]||t[e],n)||Qo(o.appContext[e],n)}}function Qo(e,n){return e&&(e[n]||e[I(n)]||e[H(I(n))])}const Jo=Symbol(void 0),er=Symbol(void 0),nr=Symbol(void 0),tr=Symbol(void 0),or=[];let rr=null;function ar(e=!1){or.push(rr=e?null:[])}function ir(){or.pop(),rr=or[or.length-1]||null}let lr,sr=1;function cr(e){sr+=e}function ur(e,n,t,o,r){const a=gr(e,n,t,o,r,!0);return a.dynamicChildren=rr||v,ir(),sr>0&&rr&&rr.push(a),a}function dr(e){return!!e&&!0===e.__v_isVNode}function pr(e,n){return e.type===n.type&&e.key===n.key}function fr(e){lr=e}const mr="__vInternal",hr=({key:e})=>null!=e?e:null,vr=({ref:e})=>null!=e?V(e)||rn(e)||B(e)?{i:rt,r:e}:e:null,gr=function(e,n=null,t=null,o=0,r=null,a=!1){if(e&&e!==Yo||(e=nr),dr(e)){const o=br(e,n,!0);return t&&_r(o,t),o}if(l=e,B(l)&&"__vccOpts"in l&&(e=e.__vccOpts),n){(en(n)||mr in n)&&(n=x({},n));let{class:e,style:t}=n;e&&!V(e)&&(n.class=u(e)),O(t)&&(en(t)&&!F(t)&&(t=x({},t)),n.style=i(t))}var l;const s=V(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:O(e)?4:B(e)?2:0,c={__v_isVNode:!0,__v_skip:!0,type:e,props:n,key:n&&hr(n),ref:n&&vr(n),scopeId:wt,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};if(_r(c,t),128&s){const{content:e,fallback:n}=function(e){const{shapeFlag:n,children:t}=e;let o,r;return 32&n?(o=ft(t.default),r=ft(t.fallback)):(o=ft(t),r=xr(null)),{content:o,fallback:r}}(c);c.ssContent=e,c.ssFallback=n}return sr>0&&!a&&rr&&(o>0||6&s)&&32!==o&&rr.push(c),c};function br(e,n,t=!1){const{props:o,ref:r,patchFlag:a}=e,i=n?Cr(o||{},n):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:i,key:i&&hr(i),ref:n&&n.ref?t&&r?F(r)?r.concat(vr(n)):[r,vr(n)]:vr(n):r,scopeId:e.scopeId,children:e.children,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:n&&e.type!==Jo?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&br(e.ssContent),ssFallback:e.ssFallback&&br(e.ssFallback),el:e.el,anchor:e.anchor}}function yr(e=" ",n=0){return gr(er,null,e,n)}function kr(e,n){const t=gr(tr,null,e);return t.staticCount=n,t}function wr(e="",n=!1){return n?(ar(),ur(nr,null,e)):gr(nr,null,e)}function xr(e){return null==e||"boolean"==typeof e?gr(nr):F(e)?gr(Jo,null,e):"object"==typeof e?null===e.el?e:br(e):gr(er,null,String(e))}function Ar(e){return null===e.el?e:br(e)}function _r(e,n){let t=0;const{shapeFlag:o}=e;if(null==n)n=null;else if(F(n))t=16;else if("object"==typeof n){if(1&o||64&o){const t=n.default;return void(t&&(t._c&&gt(1),_r(e,t()),t._c&&gt(-1)))}{t=32;const o=n._;o||mr in n?3===o&&rt&&(1024&rt.vnode.patchFlag?(n._=2,e.patchFlag|=1024):n._=1):n._ctx=rt}}else B(n)?(n={default:n,_ctx:rt},t=32):(n=String(n),64&o?(t=16,n=[yr(n)]):t=8);e.children=n,e.shapeFlag|=t}function Cr(...e){const n=x({},e[0]);for(let t=1;t<e.length;t++){const o=e[t];for(const e in o)if("class"===e)n.class!==o.class&&(n.class=u([n.class,o.class]));else if("style"===e)n.style=i([n.style,o.style]);else if(k(e)){const t=n[e],r=o[e];t!==r&&(n[e]=t?[].concat(t,o[e]):r)}else""!==e&&(n[e]=o[e])}return n}function Fr(e,n){if(zr){let t=zr.provides;const o=zr.parent&&zr.parent.provides;o===t&&(t=zr.provides=Object.create(o)),t[e]=n}}function Er(e,n,t=!1){const o=zr||rt;if(o){const r=null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return t&&B(n)?n():n}}let Nr=!1;function Sr(e,n,t=[],o=[],r=[],a=!1){const{mixins:i,extends:l,data:s,computed:c,methods:u,watch:d,provide:p,inject:f,components:m,directives:v,beforeMount:b,mounted:y,beforeUpdate:k,updated:w,activated:A,deactivated:_,beforeDestroy:C,beforeUnmount:E,destroyed:N,unmounted:S,render:V,renderTracked:T,renderTriggered:$,errorCaptured:j,expose:L}=n,D=e.proxy,U=e.ctx,R=e.appContext.mixins;if(a&&V&&e.render===g&&(e.render=V),a||(Nr=!0,Br("beforeCreate","bc",n,e,R),Nr=!1,Or(e,R,t,o,r)),l&&Sr(e,l,t,o,r,!0),i&&Or(e,i,t,o,r),f)if(F(f))for(let e=0;e<f.length;e++){const n=f[e];U[n]=Er(n)}else for(const e in f){const n=f[e];O(n)?U[e]=Er(n.from||e,n.default,!0):U[e]=Er(n)}if(u)for(const e in u){const n=u[e];B(n)&&(U[e]=n.bind(D))}if(a?s&&t.push(s):(t.length&&t.forEach((n=>$r(e,n,D))),s&&$r(e,s,D)),c)for(const e in c){const n=c[e],t=na({get:B(n)?n.bind(D,D):B(n.get)?n.get.bind(D,D):g,set:!B(n)&&B(n.set)?n.set.bind(D):g});Object.defineProperty(U,e,{enumerable:!0,configurable:!0,get:()=>t.value,set:e=>t.value=e})}if(d&&o.push(d),!a&&o.length&&o.forEach((e=>{for(const n in e)jr(e[n],U,D,n)})),p&&r.push(p),!a&&r.length&&r.forEach((e=>{const n=B(e)?e.call(D):e;Reflect.ownKeys(n).forEach((e=>{Fr(e,n[e])}))})),a&&(m&&x(e.components||(e.components=x({},e.type.components)),m),v&&x(e.directives||(e.directives=x({},e.type.directives)),v)),a||Br("created","c",n,e,R),b&&jt(b.bind(D)),y&&Lt(y.bind(D)),k&&Dt(k.bind(D)),w&&Ut(w.bind(D)),A&&co(A.bind(D)),_&&uo(_.bind(D)),j&&zt(j.bind(D)),T&&It(T.bind(D)),$&&Mt($.bind(D)),E&&Rt(E.bind(D)),S&&Pt(S.bind(D)),F(L))if(a);else if(L.length){const n=e.exposed||(e.exposed=fn({}));L.forEach((e=>{n[e]=bn(D,e)}))}else e.exposed||(e.exposed=h)}function Br(e,n,t,o,r){Tr(e,n,r,o);const{extends:a,mixins:i}=t;a&&Vr(e,n,a,o),i&&Tr(e,n,i,o);const l=t[e];l&&Cn(l.bind(o.proxy),o,n)}function Vr(e,n,t,o){t.extends&&Vr(e,n,t.extends,o);const r=t[e];r&&Cn(r.bind(o.proxy),o,n)}function Tr(e,n,t,o){for(let r=0;r<t.length;r++){const a=t[r].mixins;a&&Tr(e,n,a,o);const i=t[r][e];i&&Cn(i.bind(o.proxy),o,n)}}function Or(e,n,t,o,r){for(let a=0;a<n.length;a++)Sr(e,n[a],t,o,r,!0)}function $r(e,n,t){const o=n.call(t,t);O(o)&&(e.data===h?e.data=Ge(o):x(e.data,o))}function jr(e,n,t,o){const r=o.includes(".")?function(e,n){const t=n.split(".");return()=>{let n=e;for(let e=0;e<t.length&&n;e++)n=n[t[e]];return n}}(t,o):()=>t[o];if(V(e)){const t=n[e];B(t)&&qt(r,t)}else if(B(e))qt(r,e.bind(t));else if(O(e))if(F(e))e.forEach((e=>jr(e,n,t,o)));else{const o=B(e.handler)?e.handler.bind(t):n[e.handler];B(o)&&qt(r,o,e)}}function Lr(e,n,t){const o=t.appContext.config.optionMergeStrategies,{mixins:r,extends:a}=n;a&&Lr(e,a,t),r&&r.forEach((n=>Lr(e,n,t)));for(const r in n)o&&C(o,r)?e[r]=o[r](e[r],n[r],t.proxy,r):e[r]=n[r]}const Dr=e=>e&&(e.proxy?e.proxy:Dr(e.parent)),Ur=x(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Dr(e.parent),$root:e=>e.root&&e.root.proxy,$emit:e=>e.emit,$options:e=>function(e){const n=e.type,{__merged:t,mixins:o,extends:r}=n;if(t)return t;const a=e.appContext.mixins;if(!a.length&&!o&&!r)return n;const i={};return a.forEach((n=>Lr(i,n,e))),Lr(i,n,e),n.__merged=i}(e),$forceUpdate:e=>()=>Mn(e.update),$nextTick:e=>Pn.bind(e.proxy),$watch:e=>Yt.bind(e)}),Rr={get({_:e},n){const{ctx:t,setupState:o,data:r,props:a,accessCache:i,type:l,appContext:s}=e;if("__v_skip"===n)return!0;let c;if("$"!==n[0]){const l=i[n];if(void 0!==l)switch(l){case 0:return o[n];case 1:return r[n];case 3:return t[n];case 2:return a[n]}else{if(o!==h&&C(o,n))return i[n]=0,o[n];if(r!==h&&C(r,n))return i[n]=1,r[n];if((c=e.propsOptions[0])&&C(c,n))return i[n]=2,a[n];if(t!==h&&C(t,n))return i[n]=3,t[n];Nr||(i[n]=4)}}const u=Ur[n];let d,p;return u?("$attrs"===n&&ue(e,0,n),u(e)):(d=l.__cssModules)&&(d=d[n])?d:t!==h&&C(t,n)?(i[n]=3,t[n]):(p=s.config.globalProperties,C(p,n)?p[n]:void 0)},set({_:e},n,t){const{data:o,setupState:r,ctx:a}=e;if(r!==h&&C(r,n))r[n]=t;else if(o!==h&&C(o,n))o[n]=t;else if(n in e.props)return!1;return!("$"===n[0]&&n.slice(1)in e||(a[n]=t,0))},has({_:{data:e,setupState:n,accessCache:t,ctx:o,appContext:r,propsOptions:a}},i){let l;return void 0!==t[i]||e!==h&&C(e,i)||n!==h&&C(n,i)||(l=a[0])&&C(l,i)||C(o,i)||C(Ur,i)||C(r.config.globalProperties,i)}},Pr=x({},Rr,{get(e,n){if(n!==Symbol.unscopables)return Rr.get(e,n,e)},has:(e,n)=>"_"!==n[0]&&!r(n)}),Mr=Ao();let Ir=0,zr=null;const Wr=()=>zr||rt,Hr=e=>{zr=e};let qr,Gr=!1;function Yr(e,n,t){B(n)?e.render=n:O(n)&&(e.devtoolsRawSetupState=n,e.setupState=fn(n)),Zr(e)}function Kr(e){qr=e}function Zr(e,n){const t=e.type;e.render||(qr&&t.template&&!t.render&&(t.render=qr(t.template,{isCustomElement:e.appContext.config.isCustomElement,delimiters:t.delimiters})),e.render=t.render||g,e.render._rc&&(e.withProxy=new Proxy(e.ctx,Pr))),zr=e,se(),Sr(e,t),ce(),zr=null}function Xr(e){return{attrs:e.attrs,slots:e.slots,emit:e.emit,expose:n=>{e.exposed=fn(n)}}}function Qr(e,n=zr){n&&(n.effects||(n.effects=[])).push(e)}const Jr=/(?:^|[-_])(\w)/g;function ea(e,n,t=!1){let o=B(n)&&n.displayName||n.name;if(!o&&n.__file){const e=n.__file.match(/([^/\\]+)\.\w+$/);e&&(o=e[1])}if(!o&&e&&e.parent){const t=e=>{for(const t in e)if(e[t]===n)return t};o=t(e.components||e.parent.type.components)||t(e.appContext.components)}return o?o.replace(Jr,(e=>e.toUpperCase())).replace(/[-_]/g,""):t?"App":"Anonymous"}function na(e){const n=function(e){let n,t;return B(e)?(n=e,t=g):(n=e.get,t=e.set),new yn(n,t,B(e)||!e.set)}(e);return Qr(n.effect),n}function ta(){return null}function oa(){return null}function ra(){const e=Wr();return e.setupContext||(e.setupContext=Xr(e))}function aa(e,n,t){const o=arguments.length;return 2===o?O(n)&&!F(n)?dr(n)?gr(e,null,[n]):gr(e,n):gr(e,null,n):(o>3?t=Array.prototype.slice.call(arguments,2):3===o&&dr(t)&&(t=[t]),gr(e,n,t))}const ia=Symbol(""),la=()=>{{const e=Er(ia);return e||wn("Server rendering context not provided. Make sure to only call useSsrContext() conditionally in the server build."),e}};function sa(){}function ca(e,n){let t;if(F(e)||V(e)){t=new Array(e.length);for(let o=0,r=e.length;o<r;o++)t[o]=n(e[o],o)}else if("number"==typeof e){t=new Array(e);for(let o=0;o<e;o++)t[o]=n(o+1,o)}else if(O(e))if(e[Symbol.iterator])t=Array.from(e,n);else{const o=Object.keys(e);t=new Array(o.length);for(let r=0,a=o.length;r<a;r++){const a=o[r];t[r]=n(e[a],a,r)}}else t=[];return t}function ua(e){const n={};for(const t in e)n[q(t)]=e[t];return n}function da(e,n){for(let t=0;t<n.length;t++){const o=n[t];if(F(o))for(let n=0;n<o.length;n++)e[o[n].name]=o[n].fn;else o&&(e[o.name]=o.fn)}return e}const pa="3.0.4",fa=null,ma="http://www.w3.org/2000/svg",ha="undefined"!=typeof document?document:null;let va,ga;const ba={insert:(e,n,t)=>{n.insertBefore(e,t||null)},remove:e=>{const n=e.parentNode;n&&n.removeChild(e)},createElement:(e,n,t)=>n?ha.createElementNS(ma,e):ha.createElement(e,t?{is:t}:void 0),createText:e=>ha.createTextNode(e),createComment:e=>ha.createComment(e),setText:(e,n)=>{e.nodeValue=n},setElementText:(e,n)=>{e.textContent=n},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ha.querySelector(e),setScopeId(e,n){e.setAttribute(n,"")},cloneNode:e=>e.cloneNode(!0),insertStaticContent(e,n,t,o){const r=o?ga||(ga=ha.createElementNS(ma,"svg")):va||(va=ha.createElement("div"));r.innerHTML=e;const a=r.firstChild;let i=a,l=i;for(;i;)l=i,ba.insert(i,n,t),i=r.firstChild;return[a,l]}},ya=/\s*!important$/;function ka(e,n,t){if(F(t))t.forEach((t=>ka(e,n,t)));else if(n.startsWith("--"))e.setProperty(n,t);else{const o=function(e,n){const t=xa[n];if(t)return t;let o=I(n);if("filter"!==o&&o in e)return xa[n]=o;o=H(o);for(let t=0;t<wa.length;t++){const r=wa[t]+o;if(r in e)return xa[n]=r}return n}(e,n);ya.test(t)?e.setProperty(W(o),t.replace(ya,""),"important"):e[o]=t}}const wa=["Webkit","Moz","ms"],xa={},Aa="http://www.w3.org/1999/xlink";let _a=Date.now;"undefined"!=typeof document&&_a()>document.createEvent("Event").timeStamp&&(_a=()=>performance.now());let Ca=0;const Fa=Promise.resolve(),Ea=()=>{Ca=0};function Na(e,n,t,o){e.addEventListener(n,t,o)}const Sa=/(?:Once|Passive|Capture)$/,Ba=/^on[a-z]/;function Va(e="$style"){{const n=Wr();if(!n)return h;const t=n.type.__cssModules;if(!t)return h;return t[e]||h}}function Ta(e){const n=Wr();if(!n)return;const t=()=>Oa(n.subTree,e(n.proxy));Lt((()=>Wt(t,{flush:"post"}))),Ut(t)}function Oa(e,n){if(128&e.shapeFlag){const t=e.suspense;e=t.activeBranch,t.pendingBranch&&!t.isHydrating&&t.effects.push((()=>{Oa(t.activeBranch,n)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el){const t=e.el.style;for(const e in n)t.setProperty(`--${e}`,n[e])}else e.type===Jo&&e.children.forEach((e=>Oa(e,n)))}const $a="transition",ja="animation",La=(e,{slots:n})=>aa(Qt,Ra(e),n);La.displayName="Transition";const Da={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ua=La.props=x({},Qt.props,Da);function Ra(e){let{name:n="v",type:t,css:o=!0,duration:r,enterFromClass:a=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:s=a,appearActiveClass:c=i,appearToClass:u=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e;const m={};for(const n in e)n in Da||(m[n]=e[n]);if(!o)return m;const h=function(e){if(null==e)return null;if(O(e))return[Pa(e.enter),Pa(e.leave)];{const n=Pa(e);return[n,n]}}(r),v=h&&h[0],g=h&&h[1],{onBeforeEnter:b,onEnter:y,onEnterCancelled:k,onLeave:w,onLeaveCancelled:A,onBeforeAppear:_=b,onAppear:C=y,onAppearCancelled:F=k}=m,E=(e,n,t)=>{Ia(e,n?u:l),Ia(e,n?c:i),t&&t()},N=(e,n)=>{Ia(e,f),Ia(e,p),n&&n()},S=e=>(n,o)=>{const r=e?C:y,i=()=>E(n,e,o);r&&r(n,i),za((()=>{Ia(n,e?s:a),Ma(n,e?u:l),r&&r.length>1||Ha(n,t,v,i)}))};return x(m,{onBeforeEnter(e){b&&b(e),Ma(e,i),Ma(e,a)},onBeforeAppear(e){_&&_(e),Ma(e,c),Ma(e,s)},onEnter:S(!1),onAppear:S(!0),onLeave(e,n){const o=()=>N(e,n);Ma(e,p),Ma(e,d);const r=e.style.transitionProperty;e.style.transitionProperty="none",za((()=>{e.style.transitionProperty=r,Ia(e,d),Ma(e,f),w&&w.length>1||Ha(e,t,g,o)})),w&&w(e,o)},onEnterCancelled(e){E(e,!1),k&&k(e)},onAppearCancelled(e){E(e,!0),F&&F(e)},onLeaveCancelled(e){N(e),A&&A(e)}})}function Pa(e){return Z(e)}function Ma(e,n){n.split(/\s+/).forEach((n=>n&&e.classList.add(n))),(e._vtc||(e._vtc=new Set)).add(n)}function Ia(e,n){n.split(/\s+/).forEach((n=>n&&e.classList.remove(n)));const{_vtc:t}=e;t&&(t.delete(n),t.size||(e._vtc=void 0))}function za(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Wa=0;function Ha(e,n,t,o){const r=e._endId=++Wa,a=()=>{r===e._endId&&o()};if(t)return setTimeout(a,t);const{type:i,timeout:l,propCount:s}=qa(e,n);if(!i)return o();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,p),a()},p=n=>{n.target===e&&++u>=s&&d()};setTimeout((()=>{u<s&&d()}),l+1),e.addEventListener(c,p)}function qa(e,n){const t=window.getComputedStyle(e),o=e=>(t[e]||"").split(", "),r=o("transitionDelay"),a=o("transitionDuration"),i=Ga(r,a),l=o("animationDelay"),s=o("animationDuration"),c=Ga(l,s);let u=null,d=0,p=0;return n===$a?i>0&&(u=$a,d=i,p=a.length):n===ja?c>0&&(u=ja,d=c,p=s.length):(d=Math.max(i,c),u=d>0?i>c?$a:ja:null,p=u?u===$a?a.length:s.length:0),{type:u,timeout:d,propCount:p,hasTransform:u===$a&&/\b(transform|all)(,|$)/.test(t.transitionProperty)}}function Ga(e,n){for(;e.length<n.length;)e=e.concat(e);return Math.max(...n.map(((n,t)=>Ya(n)+Ya(e[t]))))}function Ya(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}const Ka=new WeakMap,Za=new WeakMap,Xa={name:"TransitionGroup",props:x({},Ua,{tag:String,moveClass:String}),setup(e,{slots:n}){const t=Wr(),o=Zt();let r,a;return Ut((()=>{if(!r.length)return;const n=e.moveClass||`${e.name||"v"}-move`;if(!function(e,n,t){const o=e.cloneNode();e._vtc&&e._vtc.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))})),t.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const r=1===n.nodeType?n:n.parentNode;r.appendChild(o);const{hasTransform:a}=qa(o);return r.removeChild(o),a}(r[0].el,t.vnode.el,n))return;r.forEach(Qa),r.forEach(Ja);const o=r.filter(ei);document.body.offsetHeight,o.forEach((e=>{const t=e.el,o=t.style;Ma(t,n),o.transform=o.webkitTransform=o.transitionDuration="";const r=t._moveCb=e=>{e&&e.target!==t||e&&!/transform$/.test(e.propertyName)||(t.removeEventListener("transitionend",r),t._moveCb=null,Ia(t,n))};t.addEventListener("transitionend",r)}))})),()=>{const i=nn(e),l=Ra(i),s=i.tag||Jo;r=a,a=n.default?ro(n.default()):[];for(let e=0;e<a.length;e++){const n=a[e];null!=n.key&&oo(n,eo(n,l,o,t))}if(r)for(let e=0;e<r.length;e++){const n=r[e];oo(n,eo(n,l,o,t)),Ka.set(n,n.el.getBoundingClientRect())}return gr(s,null,a)}}};function Qa(e){const n=e.el;n._moveCb&&n._moveCb(),n._enterCb&&n._enterCb()}function Ja(e){Za.set(e,e.el.getBoundingClientRect())}function ei(e){const n=Ka.get(e),t=Za.get(e),o=n.left-t.left,r=n.top-t.top;if(o||r){const n=e.el.style;return n.transform=n.webkitTransform=`translate(${o}px,${r}px)`,n.transitionDuration="0s",e}}const ni=e=>{const n=e.props["onUpdate:modelValue"];return F(n)?e=>Y(n,e):n};function ti(e){e.target.composing=!0}function oi(e){const n=e.target;n.composing&&(n.composing=!1,function(e,n){const t=document.createEvent("HTMLEvents");t.initEvent("input",!0,!0),e.dispatchEvent(t)}(n))}const ri={created(e,{modifiers:{lazy:n,trim:t,number:o}},r){e._assign=ni(r);const a=o||"number"===e.type;Na(e,n?"change":"input",(n=>{if(n.target.composing)return;let o=e.value;t?o=o.trim():a&&(o=Z(o)),e._assign(o)})),t&&Na(e,"change",(()=>{e.value=e.value.trim()})),n||(Na(e,"compositionstart",ti),Na(e,"compositionend",oi),Na(e,"change",oi))},mounted(e,{value:n}){e.value=null==n?"":n},beforeUpdate(e,{value:n,modifiers:{trim:t,number:o}},r){if(e._assign=ni(r),e.composing)return;if(document.activeElement===e){if(t&&e.value.trim()===n)return;if((o||"number"===e.type)&&Z(e.value)===n)return}const a=null==n?"":n;e.value!==a&&(e.value=a)}},ai={created(e,n,t){e._assign=ni(t),Na(e,"change",(()=>{const n=e._modelValue,t=ui(e),o=e.checked,r=e._assign;if(F(n)){const e=p(n,t),a=-1!==e;if(o&&!a)r(n.concat(t));else if(!o&&a){const t=[...n];t.splice(e,1),r(t)}}else if(N(n)){const e=new Set(n);o?e.add(t):e.delete(t),r(e)}else r(di(e,o))}))},mounted:ii,beforeUpdate(e,n,t){e._assign=ni(t),ii(e,n,t)}};function ii(e,{value:n,oldValue:t},o){e._modelValue=n,F(n)?e.checked=p(n,o.props.value)>-1:N(n)?e.checked=n.has(o.props.value):n!==t&&(e.checked=d(n,di(e,!0)))}const li={created(e,{value:n},t){e.checked=d(n,t.props.value),e._assign=ni(t),Na(e,"change",(()=>{e._assign(ui(e))}))},beforeUpdate(e,{value:n,oldValue:t},o){e._assign=ni(o),n!==t&&(e.checked=d(n,o.props.value))}},si={created(e,{value:n,modifiers:{number:t}},o){const r=N(n);Na(e,"change",(()=>{const n=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>t?Z(ui(e)):ui(e)));e._assign(e.multiple?r?new Set(n):n:n[0])})),e._assign=ni(o)},mounted(e,{value:n}){ci(e,n)},beforeUpdate(e,n,t){e._assign=ni(t)},updated(e,{value:n}){ci(e,n)}};function ci(e,n){const t=e.multiple;if(!t||F(n)||N(n)){for(let o=0,r=e.options.length;o<r;o++){const r=e.options[o],a=ui(r);if(t)F(n)?r.selected=p(n,a)>-1:r.selected=n.has(a);else if(d(ui(r),n))return void(e.selectedIndex=o)}t||(e.selectedIndex=-1)}}function ui(e){return"_value"in e?e._value:e.value}function di(e,n){const t=n?"_trueValue":"_falseValue";return t in e?e[t]:n}const pi={created(e,n,t){fi(e,n,t,null,"created")},mounted(e,n,t){fi(e,n,t,null,"mounted")},beforeUpdate(e,n,t,o){fi(e,n,t,o,"beforeUpdate")},updated(e,n,t,o){fi(e,n,t,o,"updated")}};function fi(e,n,t,o,r){let a;switch(e.tagName){case"SELECT":a=si;break;case"TEXTAREA":a=ri;break;default:switch(t.props&&t.props.type){case"checkbox":a=ai;break;case"radio":a=li;break;default:a=ri}}const i=a[r];i&&i(e,n,t,o)}const mi=["ctrl","shift","alt","meta"],hi={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,n)=>mi.some((t=>e[`${t}Key`]&&!n.includes(t)))},vi=(e,n)=>(t,...o)=>{for(let e=0;e<n.length;e++){const o=hi[n[e]];if(o&&o(t,n))return}return e(t,...o)},gi={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},bi=(e,n)=>t=>{if(!("key"in t))return;const o=W(t.key);return n.some((e=>e===o||gi[e]===o))?e(t):void 0},yi={beforeMount(e,{value:n},{transition:t}){e._vod="none"===e.style.display?"":e.style.display,t&&n?t.beforeEnter(e):ki(e,n)},mounted(e,{value:n},{transition:t}){t&&n&&t.enter(e)},updated(e,{value:n,oldValue:t},{transition:o}){o&&n!==t?n?(o.beforeEnter(e),ki(e,!0),o.enter(e)):o.leave(e,(()=>{ki(e,!1)})):ki(e,n)},beforeUnmount(e,{value:n}){ki(e,n)}};function ki(e,n){e.style.display=n?e._vod:"none"}const wi=x({patchProp:(e,n,t,o,r=!1,i,l,s,c)=>{switch(n){case"class":!function(e,n,t){if(null==n&&(n=""),t)e.setAttribute("class",n);else{const t=e._vtc;t&&(n=(n?[n,...t]:[...t]).join(" ")),e.className=n}}(e,o,r);break;case"style":!function(e,n,t){const o=e.style;if(t)if(V(t))n!==t&&(o.cssText=t);else{for(const e in t)ka(o,e,t[e]);if(n&&!V(n))for(const e in n)null==t[e]&&ka(o,e,"")}else e.removeAttribute("style")}(e,t,o);break;default:k(n)?w(n)||function(e,n,t,o,r=null){const a=e._vei||(e._vei={}),i=a[n];if(o&&i)i.value=o;else{const[t,l]=function(e){let n;if(Sa.test(e)){let t;for(n={};t=e.match(Sa);)e=e.slice(0,e.length-t[0].length),n[t[0].toLowerCase()]=!0}return[e.slice(2).toLowerCase(),n]}(n);o?Na(e,t,a[n]=function(e,n){const t=e=>{(e.timeStamp||_a())>=t.attached-1&&Cn(function(e,n){if(F(n)){const t=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{t.call(e),e._stopped=!0},n.map((e=>n=>!n._stopped&&e(n)))}return n}(e,t.value),n,5,[e])};return t.value=e,t.attached=Ca||(Fa.then(Ea),Ca=_a()),t}(o,r),l):i&&(function(e,n,t,o){e.removeEventListener(n,t,o)}(e,t,i,l),a[n]=void 0)}}(e,n,0,o,l):function(e,n,t,o){return o?"innerHTML"===n||!!(n in e&&Ba.test(n)&&B(t)):"spellcheck"!==n&&"draggable"!==n&&(("form"!==n||"string"!=typeof t)&&(("list"!==n||"INPUT"!==e.tagName)&&((!Ba.test(n)||!V(t))&&n in e)))}(e,n,o,r)?function(e,n,t,o,r,a,i){if("innerHTML"===n||"textContent"===n)return o&&i(o,r,a),void(e[n]=null==t?"":t);if("value"!==n||"PROGRESS"===e.tagName){if(""===t||null==t){const o=typeof e[n];if(""===t&&"boolean"===o)return void(e[n]=!0);if(null==t&&"string"===o)return e[n]="",void e.removeAttribute(n);if("number"===o)return e[n]=0,void e.removeAttribute(n)}try{e[n]=t}catch(e){}}else{e._value=t;const n=null==t?"":t;e.value!==n&&(e.value=n)}}(e,n,o,i,l,s,c):("true-value"===n?e._trueValue=o:"false-value"===n&&(e._falseValue=o),function(e,n,t,o){if(o&&n.startsWith("xlink:"))null==t?e.removeAttributeNS(Aa,n.slice(6,n.length)):e.setAttributeNS(Aa,n,t);else{const o=a(n);null==t||o&&!1===t?e.removeAttribute(n):e.setAttribute(n,o?"":t)}}(e,n,o,r))}},forcePatchProp:(e,n)=>"value"===n},ba);let xi,Ai=!1;function _i(){return xi||(xi=Lo(wi))}function Ci(){return xi=Ai?xi:Do(wi),Ai=!0,xi}const Fi=(...e)=>{_i().render(...e)},Ei=(...e)=>{Ci().hydrate(...e)},Ni=(...e)=>{const n=_i().createApp(...e),{mount:t}=n;return n.mount=e=>{const o=Bi(e);if(!o)return;const r=n._component;B(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const a=t(o);return o.removeAttribute("v-cloak"),o.setAttribute("data-v-app",""),a},n},Si=(...e)=>{const n=Ci().createApp(...e),{mount:t}=n;return n.mount=e=>{const n=Bi(e);if(n)return t(n,!0)},n};function Bi(e){return V(e)?document.querySelector(e):e}const Vi=()=>{}},317:(e,n,t)=>{"use strict";var o=t(537),r="store",a=("undefined"!=typeof window?window:void 0!==t.g?t.g:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(e,n){if(void 0===n&&(n=[]),null===e||"object"!=typeof e)return e;var t,o=(t=function(n){return n.original===e},n.filter(t)[0]);if(o)return o.copy;var r=Array.isArray(e)?[]:{};return n.push({original:e,copy:r}),Object.keys(e).forEach((function(t){r[t]=i(e[t],n)})),r}function l(e,n){Object.keys(e).forEach((function(t){return n(e[t],t)}))}function s(e){return null!==e&&"object"==typeof e}var c=function(e,n){this.runtime=n,this._children=Object.create(null),this._rawModule=e;var t=e.state;this.state=("function"==typeof t?t():t)||{}},u={namespaced:{configurable:!0}};u.namespaced.get=function(){return!!this._rawModule.namespaced},c.prototype.addChild=function(e,n){this._children[e]=n},c.prototype.removeChild=function(e){delete this._children[e]},c.prototype.getChild=function(e){return this._children[e]},c.prototype.hasChild=function(e){return e in this._children},c.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},c.prototype.forEachChild=function(e){l(this._children,e)},c.prototype.forEachGetter=function(e){this._rawModule.getters&&l(this._rawModule.getters,e)},c.prototype.forEachAction=function(e){this._rawModule.actions&&l(this._rawModule.actions,e)},c.prototype.forEachMutation=function(e){this._rawModule.mutations&&l(this._rawModule.mutations,e)},Object.defineProperties(c.prototype,u);var d=function(e){this.register([],e,!1)};function p(e,n,t){if(n.update(t),t.modules)for(var o in t.modules){if(!n.getChild(o))return;p(e.concat(o),n.getChild(o),t.modules[o])}}d.prototype.get=function(e){return e.reduce((function(e,n){return e.getChild(n)}),this.root)},d.prototype.getNamespace=function(e){var n=this.root;return e.reduce((function(e,t){return e+((n=n.getChild(t)).namespaced?t+"/":"")}),"")},d.prototype.update=function(e){p([],this.root,e)},d.prototype.register=function(e,n,t){var o=this;void 0===t&&(t=!0);var r=new c(n,t);0===e.length?this.root=r:this.get(e.slice(0,-1)).addChild(e[e.length-1],r),n.modules&&l(n.modules,(function(n,r){o.register(e.concat(r),n,t)}))},d.prototype.unregister=function(e){var n=this.get(e.slice(0,-1)),t=e[e.length-1],o=n.getChild(t);o&&o.runtime&&n.removeChild(t)},d.prototype.isRegistered=function(e){var n=this.get(e.slice(0,-1)),t=e[e.length-1];return!!n&&n.hasChild(t)};var f=function(e){var n=this;void 0===e&&(e={});var t=e.plugins;void 0===t&&(t=[]);var o=e.strict;void 0===o&&(o=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new d(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null);var r=this,i=this.dispatch,l=this.commit;this.dispatch=function(e,n){return i.call(r,e,n)},this.commit=function(e,n,t){return l.call(r,e,n,t)},this.strict=o;var s=this._modules.root.state;b(this,s,[],this._modules.root),g(this,s),t.forEach((function(e){return e(n)})),(void 0===e.devtools||e.devtools)&&function(e){a&&(e._devtoolHook=a,a.emit("vuex:init",e),a.on("vuex:travel-to-state",(function(n){e.replaceState(n)})),e.subscribe((function(e,n){a.emit("vuex:mutation",e,n)}),{prepend:!0}),e.subscribeAction((function(e,n){a.emit("vuex:action",e,n)}),{prepend:!0}))}(this)},m={state:{configurable:!0}};function h(e,n,t){return n.indexOf(e)<0&&(t&&t.prepend?n.unshift(e):n.push(e)),function(){var t=n.indexOf(e);t>-1&&n.splice(t,1)}}function v(e,n){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var t=e.state;b(e,t,[],e._modules.root,!0),g(e,t,n)}function g(e,n,t){var r=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,i={};l(a,(function(n,t){i[t]=function(e,n){return function(){return e(n)}}(n,e),Object.defineProperty(e.getters,t,{get:function(){return i[t]()},enumerable:!0})})),e._state=o.reactive({data:n}),e.strict&&function(e){o.watch((function(){return e._state.data}),(function(){}),{deep:!0,flush:"sync"})}(e),r&&t&&e._withCommit((function(){r.data=null}))}function b(e,n,t,o,r){var a=!t.length,i=e._modules.getNamespace(t);if(o.namespaced&&(e._modulesNamespaceMap[i],e._modulesNamespaceMap[i]=o),!a&&!r){var l=y(n,t.slice(0,-1)),s=t[t.length-1];e._withCommit((function(){l[s]=o.state}))}var c=o.context=function(e,n,t){var o=""===n,r={dispatch:o?e.dispatch:function(t,o,r){var a=k(t,o,r),i=a.payload,l=a.options,s=a.type;return l&&l.root||(s=n+s),e.dispatch(s,i)},commit:o?e.commit:function(t,o,r){var a=k(t,o,r),i=a.payload,l=a.options,s=a.type;l&&l.root||(s=n+s),e.commit(s,i,l)}};return Object.defineProperties(r,{getters:{get:o?function(){return e.getters}:function(){return function(e,n){if(!e._makeLocalGettersCache[n]){var t={},o=n.length;Object.keys(e.getters).forEach((function(r){if(r.slice(0,o)===n){var a=r.slice(o);Object.defineProperty(t,a,{get:function(){return e.getters[r]},enumerable:!0})}})),e._makeLocalGettersCache[n]=t}return e._makeLocalGettersCache[n]}(e,n)}},state:{get:function(){return y(e.state,t)}}}),r}(e,i,t);o.forEachMutation((function(n,t){!function(e,n,t,o){(e._mutations[n]||(e._mutations[n]=[])).push((function(n){t.call(e,o.state,n)}))}(e,i+t,n,c)})),o.forEachAction((function(n,t){var o=n.root?t:i+t,r=n.handler||n;!function(e,n,t,o){(e._actions[n]||(e._actions[n]=[])).push((function(n){var r,a=t.call(e,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:e.getters,rootState:e.state},n);return(r=a)&&"function"==typeof r.then||(a=Promise.resolve(a)),e._devtoolHook?a.catch((function(n){throw e._devtoolHook.emit("vuex:error",n),n})):a}))}(e,o,r,c)})),o.forEachGetter((function(n,t){!function(e,n,t,o){e._wrappedGetters[n]||(e._wrappedGetters[n]=function(e){return t(o.state,o.getters,e.state,e.getters)})}(e,i+t,n,c)})),o.forEachChild((function(o,a){b(e,n,t.concat(a),o,r)}))}function y(e,n){return n.reduce((function(e,n){return e[n]}),e)}function k(e,n,t){return s(e)&&e.type&&(t=n,n=e,e=e.type),{type:e,payload:n,options:t}}f.prototype.install=function(e,n){e.provide(n||r,this),e.config.globalProperties.$store=this},m.state.get=function(){return this._state.data},m.state.set=function(e){},f.prototype.commit=function(e,n,t){var o=this,r=k(e,n,t),a=r.type,i=r.payload,l=(r.options,{type:a,payload:i}),s=this._mutations[a];s&&(this._withCommit((function(){s.forEach((function(e){e(i)}))})),this._subscribers.slice().forEach((function(e){return e(l,o.state)})))},f.prototype.dispatch=function(e,n){var t=this,o=k(e,n),r=o.type,a=o.payload,i={type:r,payload:a},l=this._actions[r];if(l){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(i,t.state)}))}catch(e){}var s=l.length>1?Promise.all(l.map((function(e){return e(a)}))):l[0](a);return new Promise((function(e,n){s.then((function(n){try{t._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(i,t.state)}))}catch(e){}e(n)}),(function(e){try{t._actionSubscribers.filter((function(e){return e.error})).forEach((function(n){return n.error(i,t.state,e)}))}catch(e){}n(e)}))}))}},f.prototype.subscribe=function(e,n){return h(e,this._subscribers,n)},f.prototype.subscribeAction=function(e,n){return h("function"==typeof e?{before:e}:e,this._actionSubscribers,n)},f.prototype.watch=function(e,n,t){var r=this;return o.watch((function(){return e(r.state,r.getters)}),n,Object.assign({},t))},f.prototype.replaceState=function(e){var n=this;this._withCommit((function(){n._state.data=e}))},f.prototype.registerModule=function(e,n,t){void 0===t&&(t={}),"string"==typeof e&&(e=[e]),this._modules.register(e,n),b(this,this.state,e,this._modules.get(e),t.preserveState),g(this,this.state)},f.prototype.unregisterModule=function(e){var n=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){delete y(n.state,e.slice(0,-1))[e[e.length-1]]})),v(this)},f.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},f.prototype.hotUpdate=function(e){this._modules.update(e),v(this,!0)},f.prototype._withCommit=function(e){var n=this._committing;this._committing=!0,e(),this._committing=n},Object.defineProperties(f.prototype,m);var w=F((function(e,n){var t={};return C(n).forEach((function(n){var o=n.key,r=n.val;t[o]=function(){var n=this.$store.state,t=this.$store.getters;if(e){var o=E(this.$store,0,e);if(!o)return;n=o.context.state,t=o.context.getters}return"function"==typeof r?r.call(this,n,t):n[r]},t[o].vuex=!0})),t})),x=F((function(e,n){var t={};return C(n).forEach((function(n){var o=n.key,r=n.val;t[o]=function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];var o=this.$store.commit;if(e){var a=E(this.$store,0,e);if(!a)return;o=a.context.commit}return"function"==typeof r?r.apply(this,[o].concat(n)):o.apply(this.$store,[r].concat(n))}})),t})),A=F((function(e,n){var t={};return C(n).forEach((function(n){var o=n.key,r=n.val;r=e+r,t[o]=function(){if(!e||E(this.$store,0,e))return this.$store.getters[r]},t[o].vuex=!0})),t})),_=F((function(e,n){var t={};return C(n).forEach((function(n){var o=n.key,r=n.val;t[o]=function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];var o=this.$store.dispatch;if(e){var a=E(this.$store,0,e);if(!a)return;o=a.context.dispatch}return"function"==typeof r?r.apply(this,[o].concat(n)):o.apply(this.$store,[r].concat(n))}})),t}));function C(e){return function(e){return Array.isArray(e)||s(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(n){return{key:n,val:e[n]}})):[]}function F(e){return function(n,t){return"string"!=typeof n?(t=n,n=""):"/"!==n.charAt(n.length-1)&&(n+="/"),e(n,t)}}function E(e,n,t){return e._modulesNamespaceMap[t]}function N(e,n,t){var o=t?e.groupCollapsed:e.group;try{o.call(e,n)}catch(t){e.log(n)}}function S(e){try{e.groupEnd()}catch(n){e.log("—— log end ——")}}function B(){var e=new Date;return" @ "+V(e.getHours(),2)+":"+V(e.getMinutes(),2)+":"+V(e.getSeconds(),2)+"."+V(e.getMilliseconds(),3)}function V(e,n){return"0",t=n-e.toString().length,new Array(t+1).join("0")+e;var t}var T={version:"4.0.0-rc.2",createStore:function(e){return new f(e)},Store:f,useStore:function(e){return void 0===e&&(e=null),o.inject(null!==e?e:r)},mapState:w,mapMutations:x,mapGetters:A,mapActions:_,createNamespacedHelpers:function(e){return{mapState:w.bind(null,e),mapGetters:A.bind(null,e),mapMutations:x.bind(null,e),mapActions:_.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var n=e.collapsed;void 0===n&&(n=!0);var t=e.filter;void 0===t&&(t=function(e,n,t){return!0});var o=e.transformer;void 0===o&&(o=function(e){return e});var r=e.mutationTransformer;void 0===r&&(r=function(e){return e});var a=e.actionFilter;void 0===a&&(a=function(e,n){return!0});var l=e.actionTransformer;void 0===l&&(l=function(e){return e});var s=e.logMutations;void 0===s&&(s=!0);var c=e.logActions;void 0===c&&(c=!0);var u=e.logger;return void 0===u&&(u=console),function(e){var d=i(e.state);void 0!==u&&(s&&e.subscribe((function(e,a){var l=i(a);if(t(e,d,l)){var s=B(),c=r(e),p="mutation "+e.type+s;N(u,p,n),u.log("%c prev state","color: #9E9E9E; font-weight: bold",o(d)),u.log("%c mutation","color: #03A9F4; font-weight: bold",c),u.log("%c next state","color: #4CAF50; font-weight: bold",o(l)),S(u)}d=l})),c&&e.subscribeAction((function(e,t){if(a(e,t)){var o=B(),r=l(e),i="action "+e.type+o;N(u,i,n),u.log("%c action","color: #03A9F4; font-weight: bold",r),S(u)}})))}}};e.exports=T},3:(e,n,t)=>{"use strict";t.d(n,{Z:()=>l});var o=t(346),r=t.n(o),a=t(419),i=t.n(a)()(r());i.push([e.id,"\n#header {\n  position: -webkit-sticky;\n  position: sticky;\n  top: 0;\n  z-index: 1071;\n}\n#sidebar {\n  background: #fff;\n  border-right: 1px solid #e5e5e5;\n  border-bottom: 1px solid #e5e5e5;\n}\n@media (min-width: 768px) {\n#sidebar {\n    position: -webkit-sticky;\n    position: sticky;\n    top: 3.5rem;\n    z-index: 1000;\n    max-height: calc(100vh - 3.5rem);\n    border-right: 1px solid #e5e5e5;\n    border-bottom: 1px solid #e5e5e5;\n}\n}\n#sidebar-nav {\n  padding-top: 1rem;\n  padding-bottom: 1rem;\n  margin-right: -15px;\n  margin-left: -15px;\n  max-height: 100%;\n  overflow-y: auto;\n}\n#sidebar-nav .nav {\n  display: block;\n}\n#sidebar-nav .nav .nav-item .nav {\n  display: none;\n  margin-bottom: 1rem;\n}\n#sidebar-nav .nav .nav-item .nav {\n  display: none;\n  margin-bottom: 1rem;\n}\n#sidebar-nav .nav .nav-item.active .nav, #sidebar-nav .nav .active + .nav {\n  display: block;\n}\n@media (min-width: 768px) {\n#sidebar-nav .nav .nav-item .nav {\n    display: block;\n}\n}\n#sidebar-nav .nav .nav-link.active, #sidebar-nav .nav .active > .nav-link{\n  color: #262626;\n  font-weight: 500;\n}\n#sidebar-nav .nav-item .nav-link {\n  padding: .25rem 1rem;\n  font-weight: 500;\n  color: #666\n}\n#sidebar-nav .nav-item .nav-item .nav-link {\n  font-weight: 400;\n  font-size: 85%;\n  margin-left: 1rem\n}\n#main {\n  padding-top: 1rem;\n  margin-bottom: 2rem\n}\nblockquote {\n  margin-bottom: 1rem;\n  font-size: 1.25rem;\n  padding: 0 1em;\n  color: #6a737d;\n  border-left: 0.25em solid #dfe2e5;\n}\npre {\n  padding: 16px;\n  overflow: auto;\n  font-size: 85%;\n  line-height: 1.45;\n  background-color: #f6f8fa;\n  border-radius: 3px;\n}\n.modal-backdrop.fade {\n  visibility: hidden;\n}\n.modal-backdrop.fade.show {\n  visibility: visible;\n}\n.fade.show {\n  display: block;\n  z-index: 1072;\n}\n","",{version:3,sources:["webpack://./docs/views/App.vue"],names:[],mappings:";AAgDA;EACE,wBAAwB;EACxB,gBAAgB;EAChB,MAAM;EACN,aAAa;AACf;AACA;EACE,gBAAgB;EAChB,+BAA+B;EAC/B,gCAAgC;AAClC;AAEA;AACE;IACE,wBAAwB;IACxB,gBAAgB;IAChB,WAAW;IACX,aAAa;IACb,gCAAgC;IAChC,+BAA+B;IAC/B,gCAAgC;AAClC;AACF;AAEA;EACE,iBAAiB;EACjB,oBAAoB;EACpB,mBAAmB;EACnB,kBAAkB;EAClB,gBAAgB;EAChB,gBAAgB;AAClB;AACA;EACE,cAAc;AAChB;AAEA;EACE,aAAa;EACb,mBAAmB;AACrB;AACA;EACE,aAAa;EACb,mBAAmB;AACrB;AAEA;EACE,cAAc;AAChB;AAEA;AACE;IACE,cAAc;AAChB;AACF;AAEA;EACE,cAAc;EACd,gBAAgB;AAClB;AAEA;EACE,oBAAoB;EACpB,gBAAgB;EAChB;AACF;AAEA;EACE,gBAAgB;EAChB,cAAc;EACd;AACF;AAEA;EACE,iBAAiB;EACjB;AACF;AAGA;EACE,mBAAmB;EACnB,kBAAkB;EAClB,cAAc;EACd,cAAc;EACd,iCAAiC;AACnC;AAEA;EACE,aAAa;EACb,cAAc;EACd,cAAc;EACd,iBAAiB;EACjB,yBAAyB;EACzB,kBAAkB;AACpB;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AAEA;EACE,cAAc;EACd,aAAa;AACf",sourcesContent:['<template>\n  <div>\n    <header id="header" class="navbar navbar-expand-lg navbar-dark bg-dark">\n      <router-link :exact="true" class="navbar-brand"  :to="$toLocale(\'/\')">{{$t(\'header.logo\')}}</router-link>\n      <button class="navbar-toggler" type="button" @click.prevent="showNav = !showNav">\n        <span class="navbar-toggler-icon"></span>\n      </button>\n      <nav :class="{collapse: true, \'navbar-collapse\': true, show: showNav}" id="navbar">\n        <ul class="navbar-nav">\n          <li class="nav-item">\n            <router-link active-class="active" :exact="true" :class="\'nav-link\' + ($route.path === \'/\' ? \' active\' : \'\')"  :to="$toLocale(\'/\')">{{$t(\'header.home\')}}</router-link>\n          </li>\n          <li class="nav-item">\n            <router-link active-class="active" class="nav-link" :to="$toLocale(\'/documents\')">{{$t(\'header.documents\')}}</router-link>\n          </li>\n          <li class="nav-item">\n            <router-link active-class="active" class="nav-link" :to="$toLocale(\'/examples\')">{{$t(\'header.examples\')}}</router-link>\n          </li>\n          <li class="nav-item">\n            <a rel="license noopener" class="nav-link" href="https://www.lianyue.org" target="_blank">{{$t(\'header.blog\')}}</a>\n          </li>\n        </ul>\n        <ul class="navbar-nav ml-md-auto">\n          <li class="nav-item dropdown">\n            <a class="nav-link dropdown-toggle" href="#" @click.prevent="onLocale(true)" @focus="onLocale(true)" @blur="onLocale(false)">\n              {{$t(\'header.locale\')}}\n            </a>\n            <div :class="{\'dropdown-menu\': true, show: showLocale}" @blur="onLocale(false)">\n              <router-link class="dropdown-item" :to="\'/\' + name + ($route.params.locale ? $route.fullPath.substr($route.params.locale.length + 1) : $route.fullPath)" v-for="(value, name) in locale" :key="name">{{value}}</router-link>\n            </div>\n          </li>\n          <li class="nav-item">\n            <a class="nav-link" href="https://github.com/lian-yue/vue-upload-component/issues">\n              {{$t(\'header.issues\')}}\n            </a>\n          </li>\n          <li class="nav-item">\n            <a class="nav-link" href="https://github.com/lian-yue/vue-upload-component">\n              {{$t(\'header.github\')}}\n            </a>\n          </li>\n        </ul>\n      </nav>\n    </header>\n    <router-view></router-view>\n  </div>\n</template>\n<style>\n#header {\n  position: -webkit-sticky;\n  position: sticky;\n  top: 0;\n  z-index: 1071;\n}\n#sidebar {\n  background: #fff;\n  border-right: 1px solid #e5e5e5;\n  border-bottom: 1px solid #e5e5e5;\n}\n\n@media (min-width: 768px) {\n  #sidebar {\n    position: -webkit-sticky;\n    position: sticky;\n    top: 3.5rem;\n    z-index: 1000;\n    max-height: calc(100vh - 3.5rem);\n    border-right: 1px solid #e5e5e5;\n    border-bottom: 1px solid #e5e5e5;\n  }\n}\n\n#sidebar-nav {\n  padding-top: 1rem;\n  padding-bottom: 1rem;\n  margin-right: -15px;\n  margin-left: -15px;\n  max-height: 100%;\n  overflow-y: auto;\n}\n#sidebar-nav .nav {\n  display: block;\n}\n\n#sidebar-nav .nav .nav-item .nav {\n  display: none;\n  margin-bottom: 1rem;\n}\n#sidebar-nav .nav .nav-item .nav {\n  display: none;\n  margin-bottom: 1rem;\n}\n\n#sidebar-nav .nav .nav-item.active .nav, #sidebar-nav .nav .active + .nav {\n  display: block;\n}\n\n@media (min-width: 768px) {\n  #sidebar-nav .nav .nav-item .nav {\n    display: block;\n  }\n}\n\n#sidebar-nav .nav .nav-link.active, #sidebar-nav .nav .active > .nav-link{\n  color: #262626;\n  font-weight: 500;\n}\n\n#sidebar-nav .nav-item .nav-link {\n  padding: .25rem 1rem;\n  font-weight: 500;\n  color: #666\n}\n\n#sidebar-nav .nav-item .nav-item .nav-link {\n  font-weight: 400;\n  font-size: 85%;\n  margin-left: 1rem\n}\n\n#main {\n  padding-top: 1rem;\n  margin-bottom: 2rem\n}\n\n\nblockquote {\n  margin-bottom: 1rem;\n  font-size: 1.25rem;\n  padding: 0 1em;\n  color: #6a737d;\n  border-left: 0.25em solid #dfe2e5;\n}\n\npre {\n  padding: 16px;\n  overflow: auto;\n  font-size: 85%;\n  line-height: 1.45;\n  background-color: #f6f8fa;\n  border-radius: 3px;\n}\n\n.modal-backdrop.fade {\n  visibility: hidden;\n}\n.modal-backdrop.fade.show {\n  visibility: visible;\n}\n\n.fade.show {\n  display: block;\n  z-index: 1072;\n}\n</style>\n<script>\nexport default {\n  data() {\n    return {\n      showLocale: false,\n      showNav: false,\n    }\n  },\n  beforeCreate() {\n    if (this.$route.params.locale && this.$route.params.locale !== this.$i18n.locale) {\n      this.$i18n.locale = this.$route.params.locale\n    }\n  },\n  beforeUpdate() {\n    if (this.$route.params.locale && this.$route.params.locale !== this.$i18n.locale) {\n      this.$i18n.locale = this.$route.params.locale\n    }\n  },\n  computed: {\n    locale() {\n      let i18n = this.$i18n\n      return i18n.messages[i18n.locale].locale\n    },\n  },\n  methods: {\n    onLocale(show) {\n      if (show) {\n        this.showLocale = show\n      } else {\n        setTimeout(() => {\n          this.showLocale = show\n        }, 128)\n      }\n    }\n  }\n}\n<\/script>\n'],sourceRoot:""}]);const l=i},367:(e,n,t)=>{"use strict";t.d(n,{Z:()=>l});var o=t(346),r=t.n(o),a=t(419),i=t.n(a)()(r());i.push([e.id,"\n.document-title {\n  margin-bottom: 2rem;\n  padding-bottom: 1rem;\n  border-bottom: 1px solid #ddd;\n}\n.document-content h2 {\n  padding-top: 1rem;\n  padding-bottom: 1rem;\n  margin-top: 4rem;\n  border-bottom: 1px solid #eaecef;\n}\n.document-content h2:first-child {\n  margin-top: 0;\n}\n.document-content h2 + h3 {\n  margin-top: 0rem;\n}\n.document-content h3 {\n  margin-top: 1.5rem;\n  padding-top: 1rem;\n  margin-bottom: 1rem;\n}\n\n","",{version:3,sources:["webpack://./docs/views/Document.vue"],names:[],mappings:";AA0BA;EACE,mBAAmB;EACnB,oBAAoB;EACpB,6BAA6B;AAC/B;AACA;EACE,iBAAiB;EACjB,oBAAoB;EACpB,gBAAgB;EAChB,gCAAgC;AAClC;AAEA;EACE,aAAa;AACf;AAGA;EACE,gBAAgB;AAClB;AAEA;EACE,kBAAkB;EAClB,iBAAiB;EACjB,mBAAmB;AACrB",sourcesContent:['<template>\n<div class="container-fluid">\n  <div class="row flex-xl-nowrap">\n    <div class="col-12 col-md-3 col-xl-2" id="sidebar">\n      <nav id="sidebar-nav" class="collapse show">\n        <ul class="nav">\n          <li :class="{\'nav-item\': true, active: (!$route.hash && !index) || $route.hash.indexOf(group.hash) === 1}" v-for="(group, index) in navs" :key="index">\n            <router-link active-class="active" :class="{\'nav-link\': true, active: $route.hash.indexOf(group.hash) === 1}" :to="\'#\' + group.hash">{{group.name}}</router-link>\n            <ul class="nav" v-if="group.children.length">\n              <li class="nav-item" v-for="(child,index2) in group.children" :key="index + \'-\'+ index2">\n                <router-link active-class="active" class="nav-link" :to="\'#\' + group.hash + \'-\' + child.hash">{{child.name}}</router-link>\n              </li>\n            </ul>\n          </li>\n        </ul>\n      </nav>\n    </div>\n    <main class="col-12 col-md-9 col-xl-10 py-md-3 pr-md-5 pl-md-5" id="main" role="main">\n      <h1 class="document-title" id="document-title">{{$t(\'document.title\')}}</h1>\n    <div class="document-content" v-markdown>{{document}}</div>\n    </main>\n  </div>\n</div>\n</template>\n\n<style>\n.document-title {\n  margin-bottom: 2rem;\n  padding-bottom: 1rem;\n  border-bottom: 1px solid #ddd;\n}\n.document-content h2 {\n  padding-top: 1rem;\n  padding-bottom: 1rem;\n  margin-top: 4rem;\n  border-bottom: 1px solid #eaecef;\n}\n\n.document-content h2:first-child {\n  margin-top: 0;\n}\n\n\n.document-content h2 + h3 {\n  margin-top: 0rem;\n}\n\n.document-content h3 {\n  margin-top: 1.5rem;\n  padding-top: 1rem;\n  margin-bottom: 1rem;\n}\n\n</style>\n<script>\nimport marked from \'marked\'\nexport default {\n\n  mounted() {\n    // auto scrollTo hash\n    if (this.$route.hash) {\n      let el = document.querySelector(decodeURIComponent(this.$route.hash))\n      if (el) {\n        window.scrollTo(0, el.offsetTop)\n      }\n    }\n  },\n\n  computed: {\n    document() {\n      return require(\'../docs/\' + this.$i18n.locale + \'.md\').default\n    },\n\n    navs() {\n      let tokens = marked.lexer(this.document)\n      let rootNode = {\n        name: \'\',\n        children: [],\n        level: 1,\n      }\n      let parent = rootNode\n      let navPrev\n      for (let i = 0; i < tokens.length; i++) {\n        let token = tokens[i]\n        if (token.type !== \'heading\') {\n          continue\n        }\n\n        let nav = {\n          name: token.text,\n          hash: token.text.toLowerCase().replace(/([\\u0000-\\u002F\\u003A-\\u0060\\u007B-\\u007F]+)/g, \'-\').replace(/^\\-+|\\-+$/, \'\'),\n          level: token.depth,\n          children: [],\n        }\n        if (!navPrev || nav.level === navPrev.level) {\n          // empty\n        } else if (nav.level > navPrev.level) {\n          // next\n          parent = navPrev\n        } else {\n          while (nav.level < navPrev.level && navPrev.parent) {\n            navPrev = navPrev.parent\n            parent = navPrev.parent\n          }\n        }\n\n        nav.parent = parent\n        parent.children.push(nav)\n        navPrev = nav\n      }\n      return rootNode.children\n    },\n  },\n}\n<\/script>\n'],sourceRoot:""}]);const l=i},96:(e,n,t)=>{"use strict";t.d(n,{Z:()=>l});var o=t(346),r=t.n(o),a=t(419),i=t.n(a)()(r());i.push([e.id,"\n.example-avatar .avatar-upload .rounded-circle {\n  width: 200px;\n  height: 200px;\n}\n.example-avatar .text-center .btn {\n  margin: 0 .5rem\n}\n.example-avatar .avatar-edit-image {\n  max-width: 100%\n}\n.example-avatar .drop-active {\n  top: 0;\n  bottom: 0;\n  right: 0;\n  left: 0;\n  position: fixed;\n  z-index: 9999;\n  opacity: .6;\n  text-align: center;\n  background: #000;\n}\n.example-avatar .drop-active h3 {\n  margin: -.5em 0 0;\n  position: absolute;\n  top: 50%;\n  left: 0;\n  right: 0;\n  -webkit-transform: translateY(-50%);\n  -ms-transform: translateY(-50%);\n  transform: translateY(-50%);\n  font-size: 40px;\n  color: #fff;\n  padding: 0;\n}\n","",{version:3,sources:["webpack://./docs/views/examples/Avatar.vue"],names:[],mappings:";AA4CA;EACE,YAAY;EACZ,aAAa;AACf;AACA;EACE;AAEF;AACA;EACE;AACF;AAGA;EACE,MAAM;EACN,SAAS;EACT,QAAQ;EACR,OAAO;EACP,eAAe;EACf,aAAa;EACb,WAAW;EACX,kBAAkB;EAClB,gBAAgB;AAClB;AAEA;EACE,iBAAiB;EACjB,kBAAkB;EAClB,QAAQ;EACR,OAAO;EACP,QAAQ;EACR,mCAAmC;EACnC,+BAA+B;EAC/B,2BAA2B;EAC3B,eAAe;EACf,WAAW;EACX,UAAU;AACZ",sourcesContent:['<template>\n  <div class="example-avatar">\n    <div v-show="$refs.upload && $refs.upload.dropActive" class="drop-active">\n      <h3>Drop files to upload</h3>\n    </div>\n    <div class="avatar-upload"  v-show="!edit">\n      <div class="text-center p-2">\n        <label for="avatar">\n          <img :src="files.length ? files[0].url : \'https://www.gravatar.com/avatar/default?s=200&r=pg&d=mm\'"  class="rounded-circle" />\n          <h4 class="pt-2">or<br/>Drop files anywhere to upload</h4>\n        </label>\n      </div>\n      <div class="text-center p-2">\n        <file-upload\n          extensions="gif,jpg,jpeg,png,webp"\n          accept="image/png,image/gif,image/jpeg,image/webp"\n          name="avatar"\n          class="btn btn-primary"\n          post-action="/upload/post"\n          :drop="!edit"\n          v-model="files"\n          @input-filter="inputFilter"\n          @input-file="inputFile"\n          ref="upload">\n          Upload avatar\n        </file-upload>\n      </div>\n    </div>\n\n    <div class="avatar-edit" v-show="files.length && edit">\n      <div class="avatar-edit-image" v-if="files.length">\n        <img ref="editImage" :src="files[0].url" />\n      </div>\n      <div class="text-center p-4">\n        <button type="button" class="btn btn-secondary" @click.prevent="$refs.upload.clear">Cancel</button>\n        <button type="submit" class="btn btn-primary" @click.prevent="editSave">Save</button>\n      </div>\n    </div>\n    <div class="pt-5">\n      Source code: <a href="https://github.com/lian-yue/vue-upload-component/blob/master/docs/views/examples/Avatar.vue">/docs/views/examples/Avatar.vue</a>\n    </div>\n  </div>\n</template>\n<style>\n.example-avatar .avatar-upload .rounded-circle {\n  width: 200px;\n  height: 200px;\n}\n.example-avatar .text-center .btn {\n  margin: 0 .5rem\n\n}\n.example-avatar .avatar-edit-image {\n  max-width: 100%\n}\n\n\n.example-avatar .drop-active {\n  top: 0;\n  bottom: 0;\n  right: 0;\n  left: 0;\n  position: fixed;\n  z-index: 9999;\n  opacity: .6;\n  text-align: center;\n  background: #000;\n}\n\n.example-avatar .drop-active h3 {\n  margin: -.5em 0 0;\n  position: absolute;\n  top: 50%;\n  left: 0;\n  right: 0;\n  -webkit-transform: translateY(-50%);\n  -ms-transform: translateY(-50%);\n  transform: translateY(-50%);\n  font-size: 40px;\n  color: #fff;\n  padding: 0;\n}\n</style>\n\n\n<script>\nimport Cropper from \'cropperjs\'\nimport FileUpload from \'vue-upload-component\'\nexport default {\n  components: {\n    FileUpload,\n  },\n\n  data() {\n    return {\n      files: [],\n      edit: false,\n      cropper: false,\n    }\n  },\n\n  watch: {\n    edit(value) {\n      if (value) {\n        this.$nextTick(function () {\n          if (!this.$refs.editImage) {\n            return\n          }\n          let cropper = new Cropper(this.$refs.editImage, {\n            aspectRatio: 1 / 1,\n            viewMode: 1,\n          })\n          this.cropper = cropper\n        })\n      } else {\n        if (this.cropper) {\n          this.cropper.destroy()\n          this.cropper = false\n        }\n      }\n    }\n  },\n\n  methods: {\n    editSave() {\n      this.edit = false\n\n      let oldFile = this.files[0]\n\n      let binStr = atob(this.cropper.getCroppedCanvas().toDataURL(oldFile.type).split(\',\')[1])\n      let arr = new Uint8Array(binStr.length)\n      for (let i = 0; i < binStr.length; i++) {\n        arr[i] = binStr.charCodeAt(i)\n      }\n\n      let file = new File([arr], oldFile.name, { type: oldFile.type })\n\n      this.$refs.upload.update(oldFile.id, {\n        file,\n        type: file.type,\n        size: file.size,\n        active: true,\n      })\n    },\n\n    alert(message) {\n      alert(message)\n    },\n\n    inputFile(newFile, oldFile, prevent) {\n      if (newFile && !oldFile) {\n        this.$nextTick(function () {\n          this.edit = true\n        })\n      }\n      if (!newFile && oldFile) {\n        this.edit = false\n      }\n    },\n\n    inputFilter(newFile, oldFile, prevent) {\n      if (newFile && !oldFile) {\n        if (!/\\.(gif|jpg|jpeg|png|webp)$/i.test(newFile.name)) {\n          this.alert(\'Your choice is not a picture\')\n          return prevent()\n        }\n      }\n\n      if (newFile && (!oldFile || newFile.file !== oldFile.file)) {\n        newFile.url = \'\'\n        let URL = window.URL || window.webkitURL\n        if (URL && URL.createObjectURL) {\n          newFile.url = URL.createObjectURL(newFile.file)\n        }\n      }\n    }\n  }\n}\n<\/script>\n'],sourceRoot:""}]);const l=i},220:(e,n,t)=>{"use strict";t.d(n,{Z:()=>l});var o=t(346),r=t.n(o),a=t(419),i=t.n(a)()(r());i.push([e.id,"\n.example-simple label.btn {\n  margin-bottom: 0;\n  margin-right: 1rem;\n}\n","",{version:3,sources:["webpack://./docs/views/examples/Chunk.vue"],names:[],mappings:";AA6JA;EACE,gBAAgB;EAChB,kBAAkB;AACpB",sourcesContent:['<template>\n  <div class="example-simple">\n    <h1 id="example-title" class="example-title">Chunk Upload Example</h1>\n\n    <p>When using chunk uploads, the file will be uploaded in different parts (or chunks). All the files with a size higher than the set in the input will be uploaded using this method.</p>\n    <p>You will be able to see the different parts being uploaded individually. Some parts might fail, and the package is prepared to <em>retry</em> up to a certain amount of times.</p>\n    <p>You can also pause / resume the upload process.</p>\n\n    <div class="upload">\n      <div class="form-horizontal">\n        <div class="form-group">\n          <div class="col-sm-offset-2 col-sm-10">\n            <div class="checkbox">\n              <label>\n                <input v-model="chunkEnabled" type="checkbox"> Use chunk upload\n              </label>\n            </div>\n          </div>\n        </div>\n\n        <div class="form-group">\n          <label for="inputMinSize" class="col-sm-2 control-label">Min Size</label>\n          <div class="col-sm-10">\n            <div class="input-group">\n              <input id="inputMinSize" v-model="chunkMinSize" type="number" class="form-control">\n              <span class="input-group-addon">MB</span>\n            </div>\n          </div>\n        </div>\n\n        <div class="form-group">\n          <label for="inputMaxActive" class="col-sm-2 control-label">Max Active Chunks</label>\n          <div class="col-sm-10">\n            <input id="inputMaxActive" v-model="chunkMaxActive" type="number" class="form-control">\n          </div>\n        </div>\n\n        <div class="form-group">\n          <label for="inputMaxRetries" class="col-sm-2 control-label">Max Chunk Retries</label>\n          <div class="col-sm-10">\n            <input id="inputMaxRetries" v-model="chunkMaxRetries" type="number" class="form-control">\n          </div>\n        </div>\n      </div>\n\n      <table class="table table-striped table-condensed">\n        <thead class="thead-dark">\n          <tr>\n            <th>Name</th>\n            <th class="text-right">Size</th>\n            <th class="text-right">Progress</th>\n            <th>Status</th>\n            <th>Pause</th>\n            <th colspan="3" class="text-center">Chunks</th>\n          </tr>\n          <tr>\n            <th colspan="5"></th>\n            <th class="text-right">Total</th>\n            <th class="text-right">Active</th>\n            <th class="text-right">Completed</th>\n          </tr>\n        </thead>\n        <tbody>\n          <template v-for="file in files" :key="file.id">\n            <tr>\n              <td>{{ file.name }}</td>\n              <td class="text-right">{{ $formatSize(file.size) }}</td>\n              <td class="text-right">{{ file.progress }}%</td>\n\n              <td v-if="file.error">{{ file.error }}</td>\n              <td v-else-if="file.success">Success</td>\n              <td v-else-if="file.active">Active</td>\n              <td v-else> - </td>\n\n              <td>\n                <template v-if="file.chunk">\n                  <button\n                    class="btn btn-sm btn-danger"\n                    v-if="file.active"\n                    @click="file.chunk.pause()"\n                  >\n                    <i class="fa fa-pause"/>\n                  </button>\n                  <button\n                    class="btn btn-sm btn-primary"\n                    v-if="!file.active && file.chunk.hasChunksToUpload"\n                    @click="file.chunk.resume()"\n                  >\n                    <i class="fa fa-play"/>\n                  </button>\n                </template>\n              </td>\n\n              <template v-if="file.chunk">\n                <td class="text-right">{{ file.chunk.chunks.length }}</td>\n                <td class="text-right">{{ file.chunk.chunksUploading.length }}</td>\n                <td class="text-right">{{ file.chunk.chunksUploaded.length }}</td>\n              </template>\n              <template v-else>\n                <td class="text-right"> - </td>\n                <td class="text-right"> - </td>\n                <td class="text-right"> - </td>\n              </template>\n            </tr>\n\n            <tr>\n              <td colspan="8">\n                <div class="chunk-loading" v-if="file.chunk">\n                  <span\n                    v-for="(chunk, index) in file.chunk.chunks"\n                    :key="index"\n                    class="chunk-loading-part"\n                    :class="{\'chunk-loading-part__uploaded\': chunk.uploaded}"\n                  >\n                    <template v-if="chunk.retries != file.chunk.maxRetries">\n                      {{ file.chunk.maxRetries - chunk.retries }} error(s)\n                    </template>\n                  </span>\n                </div>\n              </td>\n            </tr>\n          </template>\n        </tbody>\n      </table>\n\n      <div class="example-btn">\n        <file-upload\n          class="btn btn-primary"\n          post-action="/upload/post"\n\n          :chunk-enabled="chunkEnabled"\n          :chunk="{\n            action: \'/upload/chunk\',\n            minSize: chunkMinSize * 1048576,\n            maxActive: chunkMaxActive,\n            maxRetries: chunkMaxRetries\n          }"\n\n          extensions="gif,jpg,jpeg,png,webp"\n          accept="image/png,image/gif,image/jpeg,image/webp"\n          :multiple="true"\n          :size="1024 * 1024 * 10"\n          v-model="files"\n          @input-filter="inputFilter"\n          @input-file="inputFile"\n          ref="upload">\n          <i class="fa fa-plus"></i>\n          Select files\n        </file-upload>\n      </div>\n    </div>\n    <div class="pt-5">\n      Source code: <a href="https://github.com/lian-yue/vue-upload-component/blob/master/docs/views/examples/Chunk.vue">/docs/views/examples/Chunk.vue</a>\n    </div>\n  </div>\n</template>\n<style>\n.example-simple label.btn {\n  margin-bottom: 0;\n  margin-right: 1rem;\n}\n</style>\n\n<script>\nimport FileUpload from \'vue-upload-component\'\nexport default {\n  components: {\n    FileUpload,\n  },\n\n  data() {\n    return {\n      files: [],\n\n      chunkEnabled: true,\n\n      // 1MB by default\n      chunkMinSize: 1,\n      chunkMaxActive: 3,\n      chunkMaxRetries: 5\n    }\n  },\n\n  methods: {\n    inputFilter(newFile, oldFile, prevent) {\n      if (newFile && !oldFile) {\n        // Before adding a file\n        // 添加文件前\n\n        // Filter system files or hide files\n        // 过滤系统文件 和隐藏文件\n        if (/(\\/|^)(Thumbs\\.db|desktop\\.ini|\\..+)$/.test(newFile.name)) {\n          return prevent()\n        }\n\n        // Filter php html js file\n        // 过滤 php html js 文件\n        if (/\\.(php5?|html?|jsx?)$/i.test(newFile.name)) {\n          return prevent()\n        }\n      }\n    },\n\n    inputFile(newFile, oldFile) {\n      if (newFile && !oldFile) {\n        // add\n        console.log(\'add\', newFile)\n        this.$refs.upload.active = true\n      }\n      if (newFile && oldFile) {\n        // update\n        console.log(\'update\', newFile)\n      }\n\n      if (!newFile && oldFile) {\n        // remove\n        console.log(\'remove\', oldFile)\n      }\n    }\n  }\n}\n<\/script>\n\n<style scoped>\n  .chunk-loading {\n    margin: -12px;\n    display: flex;\n    width: calc(100% + 24px);\n  }\n\n  .chunk-loading .chunk-loading-part {\n    height: 25px;\n    line-height: 25px;\n    flex: 1;\n    background: #ccc;\n    font-size: 14px;\n    color: white;\n    text-align: center;\n  }\n\n  .chunk-loading .chunk-loading-part.chunk-loading-part__uploaded {\n    background: #28A745;\n  }\n</style>\n\n'],sourceRoot:""}]);const l=i},179:(e,n,t)=>{"use strict";t.d(n,{Z:()=>l});var o=t(346),r=t.n(o),a=t(419),i=t.n(a)()(r());i.push([e.id,"\n.chunk-loading[data-v-dcc3e1b2] {\n    margin: -12px;\n    display: flex;\n    width: calc(100% + 24px);\n}\n.chunk-loading .chunk-loading-part[data-v-dcc3e1b2] {\n    height: 25px;\n    line-height: 25px;\n    flex: 1;\n    background: #ccc;\n    font-size: 14px;\n    color: white;\n    text-align: center;\n}\n.chunk-loading .chunk-loading-part.chunk-loading-part__uploaded[data-v-dcc3e1b2] {\n    background: #28A745;\n}\n","",{version:3,sources:["webpack://./docs/views/examples/Chunk.vue"],names:[],mappings:";AAgOE;IACE,aAAa;IACb,aAAa;IACb,wBAAwB;AAC1B;AAEA;IACE,YAAY;IACZ,iBAAiB;IACjB,OAAO;IACP,gBAAgB;IAChB,eAAe;IACf,YAAY;IACZ,kBAAkB;AACpB;AAEA;IACE,mBAAmB;AACrB",sourcesContent:['<template>\n  <div class="example-simple">\n    <h1 id="example-title" class="example-title">Chunk Upload Example</h1>\n\n    <p>When using chunk uploads, the file will be uploaded in different parts (or chunks). All the files with a size higher than the set in the input will be uploaded using this method.</p>\n    <p>You will be able to see the different parts being uploaded individually. Some parts might fail, and the package is prepared to <em>retry</em> up to a certain amount of times.</p>\n    <p>You can also pause / resume the upload process.</p>\n\n    <div class="upload">\n      <div class="form-horizontal">\n        <div class="form-group">\n          <div class="col-sm-offset-2 col-sm-10">\n            <div class="checkbox">\n              <label>\n                <input v-model="chunkEnabled" type="checkbox"> Use chunk upload\n              </label>\n            </div>\n          </div>\n        </div>\n\n        <div class="form-group">\n          <label for="inputMinSize" class="col-sm-2 control-label">Min Size</label>\n          <div class="col-sm-10">\n            <div class="input-group">\n              <input id="inputMinSize" v-model="chunkMinSize" type="number" class="form-control">\n              <span class="input-group-addon">MB</span>\n            </div>\n          </div>\n        </div>\n\n        <div class="form-group">\n          <label for="inputMaxActive" class="col-sm-2 control-label">Max Active Chunks</label>\n          <div class="col-sm-10">\n            <input id="inputMaxActive" v-model="chunkMaxActive" type="number" class="form-control">\n          </div>\n        </div>\n\n        <div class="form-group">\n          <label for="inputMaxRetries" class="col-sm-2 control-label">Max Chunk Retries</label>\n          <div class="col-sm-10">\n            <input id="inputMaxRetries" v-model="chunkMaxRetries" type="number" class="form-control">\n          </div>\n        </div>\n      </div>\n\n      <table class="table table-striped table-condensed">\n        <thead class="thead-dark">\n          <tr>\n            <th>Name</th>\n            <th class="text-right">Size</th>\n            <th class="text-right">Progress</th>\n            <th>Status</th>\n            <th>Pause</th>\n            <th colspan="3" class="text-center">Chunks</th>\n          </tr>\n          <tr>\n            <th colspan="5"></th>\n            <th class="text-right">Total</th>\n            <th class="text-right">Active</th>\n            <th class="text-right">Completed</th>\n          </tr>\n        </thead>\n        <tbody>\n          <template v-for="file in files" :key="file.id">\n            <tr>\n              <td>{{ file.name }}</td>\n              <td class="text-right">{{ $formatSize(file.size) }}</td>\n              <td class="text-right">{{ file.progress }}%</td>\n\n              <td v-if="file.error">{{ file.error }}</td>\n              <td v-else-if="file.success">Success</td>\n              <td v-else-if="file.active">Active</td>\n              <td v-else> - </td>\n\n              <td>\n                <template v-if="file.chunk">\n                  <button\n                    class="btn btn-sm btn-danger"\n                    v-if="file.active"\n                    @click="file.chunk.pause()"\n                  >\n                    <i class="fa fa-pause"/>\n                  </button>\n                  <button\n                    class="btn btn-sm btn-primary"\n                    v-if="!file.active && file.chunk.hasChunksToUpload"\n                    @click="file.chunk.resume()"\n                  >\n                    <i class="fa fa-play"/>\n                  </button>\n                </template>\n              </td>\n\n              <template v-if="file.chunk">\n                <td class="text-right">{{ file.chunk.chunks.length }}</td>\n                <td class="text-right">{{ file.chunk.chunksUploading.length }}</td>\n                <td class="text-right">{{ file.chunk.chunksUploaded.length }}</td>\n              </template>\n              <template v-else>\n                <td class="text-right"> - </td>\n                <td class="text-right"> - </td>\n                <td class="text-right"> - </td>\n              </template>\n            </tr>\n\n            <tr>\n              <td colspan="8">\n                <div class="chunk-loading" v-if="file.chunk">\n                  <span\n                    v-for="(chunk, index) in file.chunk.chunks"\n                    :key="index"\n                    class="chunk-loading-part"\n                    :class="{\'chunk-loading-part__uploaded\': chunk.uploaded}"\n                  >\n                    <template v-if="chunk.retries != file.chunk.maxRetries">\n                      {{ file.chunk.maxRetries - chunk.retries }} error(s)\n                    </template>\n                  </span>\n                </div>\n              </td>\n            </tr>\n          </template>\n        </tbody>\n      </table>\n\n      <div class="example-btn">\n        <file-upload\n          class="btn btn-primary"\n          post-action="/upload/post"\n\n          :chunk-enabled="chunkEnabled"\n          :chunk="{\n            action: \'/upload/chunk\',\n            minSize: chunkMinSize * 1048576,\n            maxActive: chunkMaxActive,\n            maxRetries: chunkMaxRetries\n          }"\n\n          extensions="gif,jpg,jpeg,png,webp"\n          accept="image/png,image/gif,image/jpeg,image/webp"\n          :multiple="true"\n          :size="1024 * 1024 * 10"\n          v-model="files"\n          @input-filter="inputFilter"\n          @input-file="inputFile"\n          ref="upload">\n          <i class="fa fa-plus"></i>\n          Select files\n        </file-upload>\n      </div>\n    </div>\n    <div class="pt-5">\n      Source code: <a href="https://github.com/lian-yue/vue-upload-component/blob/master/docs/views/examples/Chunk.vue">/docs/views/examples/Chunk.vue</a>\n    </div>\n  </div>\n</template>\n<style>\n.example-simple label.btn {\n  margin-bottom: 0;\n  margin-right: 1rem;\n}\n</style>\n\n<script>\nimport FileUpload from \'vue-upload-component\'\nexport default {\n  components: {\n    FileUpload,\n  },\n\n  data() {\n    return {\n      files: [],\n\n      chunkEnabled: true,\n\n      // 1MB by default\n      chunkMinSize: 1,\n      chunkMaxActive: 3,\n      chunkMaxRetries: 5\n    }\n  },\n\n  methods: {\n    inputFilter(newFile, oldFile, prevent) {\n      if (newFile && !oldFile) {\n        // Before adding a file\n        // 添加文件前\n\n        // Filter system files or hide files\n        // 过滤系统文件 和隐藏文件\n        if (/(\\/|^)(Thumbs\\.db|desktop\\.ini|\\..+)$/.test(newFile.name)) {\n          return prevent()\n        }\n\n        // Filter php html js file\n        // 过滤 php html js 文件\n        if (/\\.(php5?|html?|jsx?)$/i.test(newFile.name)) {\n          return prevent()\n        }\n      }\n    },\n\n    inputFile(newFile, oldFile) {\n      if (newFile && !oldFile) {\n        // add\n        console.log(\'add\', newFile)\n        this.$refs.upload.active = true\n      }\n      if (newFile && oldFile) {\n        // update\n        console.log(\'update\', newFile)\n      }\n\n      if (!newFile && oldFile) {\n        // remove\n        console.log(\'remove\', oldFile)\n      }\n    }\n  }\n}\n<\/script>\n\n<style scoped>\n  .chunk-loading {\n    margin: -12px;\n    display: flex;\n    width: calc(100% + 24px);\n  }\n\n  .chunk-loading .chunk-loading-part {\n    height: 25px;\n    line-height: 25px;\n    flex: 1;\n    background: #ccc;\n    font-size: 14px;\n    color: white;\n    text-align: center;\n  }\n\n  .chunk-loading .chunk-loading-part.chunk-loading-part__uploaded {\n    background: #28A745;\n  }\n</style>\n\n'],sourceRoot:""}]);const l=i},438:(e,n,t)=>{"use strict";t.d(n,{Z:()=>l});var o=t(346),r=t.n(o),a=t(419),i=t.n(a)()(r());i.push([e.id,"\n.example-drag label.btn {\n  margin-bottom: 0;\n  margin-right: 1rem;\n}\n.example-drag .drop-active {\n  top: 0;\n  bottom: 0;\n  right: 0;\n  left: 0;\n  position: fixed;\n  z-index: 9999;\n  opacity: .6;\n  text-align: center;\n  background: #000;\n}\n.example-drag .drop-active h3 {\n  margin: -.5em 0 0;\n  position: absolute;\n  top: 50%;\n  left: 0;\n  right: 0;\n  -webkit-transform: translateY(-50%);\n  -ms-transform: translateY(-50%);\n  transform: translateY(-50%);\n  font-size: 40px;\n  color: #fff;\n  padding: 0;\n}\n","",{version:3,sources:["webpack://./docs/views/examples/Drag.vue"],names:[],mappings:";AAuDA;EACE,gBAAgB;EAChB,kBAAkB;AACpB;AAGA;EACE,MAAM;EACN,SAAS;EACT,QAAQ;EACR,OAAO;EACP,eAAe;EACf,aAAa;EACb,WAAW;EACX,kBAAkB;EAClB,gBAAgB;AAClB;AAEA;EACE,iBAAiB;EACjB,kBAAkB;EAClB,QAAQ;EACR,OAAO;EACP,QAAQ;EACR,mCAAmC;EACnC,+BAA+B;EAC/B,2BAA2B;EAC3B,eAAe;EACf,WAAW;EACX,UAAU;AACZ",sourcesContent:['<template>\n  <div class="example-drag">\n    <div class="upload">\n      <ul v-if="files.length">\n        <li v-for="file in files" :key="file.id">\n          <span>{{file.name}}</span> -\n          <span>{{$formatSize(file.size)}}</span> -\n          <span v-if="file.error">{{file.error}}</span>\n          <span v-else-if="file.success">success</span>\n          <span v-else-if="file.active">active</span>\n          <span v-else></span>\n        </li>\n      </ul>\n      <ul v-else>\n        <td colspan="7">\n          <div class="text-center p-5">\n            <h4>Drop files anywhere to upload<br/>or</h4>\n            <label for="file" class="btn btn-lg btn-primary">Select Files</label>\n          </div>\n        </td>\n      </ul>\n\n      <div v-show="$refs.upload && $refs.upload.dropActive" class="drop-active">\n    \t\t<h3>Drop files to upload</h3>\n      </div>\n\n      <div class="example-btn">\n        <file-upload\n          class="btn btn-primary"\n          post-action="/upload/post"\n          :multiple="true"\n          :drop="true"\n          :drop-directory="true"\n          v-model="files"\n          ref="upload">\n          <i class="fa fa-plus"></i>\n          Select files\n        </file-upload>\n        <button type="button" class="btn btn-success" v-if="!$refs.upload || !$refs.upload.active" @click.prevent="$refs.upload.active = true">\n          <i class="fa fa-arrow-up" aria-hidden="true"></i>\n          Start Upload\n        </button>\n        <button type="button" class="btn btn-danger"  v-else @click.prevent="$refs.upload.active = false">\n          <i class="fa fa-stop" aria-hidden="true"></i>\n          Stop Upload\n        </button>\n      </div>\n    </div>\n\n    <div class="pt-5">\n      Source code: <a href="https://github.com/lian-yue/vue-upload-component/blob/master/docs/views/examples/Drag.vue">/docs/views/examples/Drag.vue</a>\n    </div>\n  </div>\n</template>\n<style>\n.example-drag label.btn {\n  margin-bottom: 0;\n  margin-right: 1rem;\n}\n\n\n.example-drag .drop-active {\n  top: 0;\n  bottom: 0;\n  right: 0;\n  left: 0;\n  position: fixed;\n  z-index: 9999;\n  opacity: .6;\n  text-align: center;\n  background: #000;\n}\n\n.example-drag .drop-active h3 {\n  margin: -.5em 0 0;\n  position: absolute;\n  top: 50%;\n  left: 0;\n  right: 0;\n  -webkit-transform: translateY(-50%);\n  -ms-transform: translateY(-50%);\n  transform: translateY(-50%);\n  font-size: 40px;\n  color: #fff;\n  padding: 0;\n}\n</style>\n\n<script>\nimport FileUpload from \'vue-upload-component\'\nexport default {\n  components: {\n    FileUpload,\n  },\n\n  data() {\n    return {\n      files: [],\n    }\n  }\n}\n<\/script>\n'],sourceRoot:""}]);const l=i},800:(e,n,t)=>{"use strict";t.d(n,{Z:()=>l});var o=t(346),r=t.n(o),a=t(419),i=t.n(a)()(r());i.push([e.id,"\n.example-full .btn-group .dropdown-menu {\n  display: block;\n  visibility: hidden;\n  transition: all .2s\n}\n.example-full .btn-group:hover > .dropdown-menu {\n  visibility: visible;\n}\n.example-full label.dropdown-item {\n  margin-bottom: 0;\n}\n.example-full .btn-group .dropdown-toggle {\n  margin-right: .6rem\n}\n.td-image-thumb {\n  max-width: 4em;\n  max-height: 4em;\n}\n.example-full .filename {\n  margin-bottom: .3rem\n}\n.example-full .btn-is-option {\n  margin-top: 0.25rem;\n}\n.example-full .example-foorer {\n  padding: .5rem 0;\n  border-top: 1px solid #e9ecef;\n  border-bottom: 1px solid #e9ecef;\n}\n.example-full .edit-image img {\n  max-width: 100%;\n}\n.example-full .edit-image-tool {\n  margin-top: .6rem;\n}\n.example-full .edit-image-tool .btn-group{\n  margin-right: .6rem;\n}\n.example-full .footer-status {\n  padding-top: .4rem;\n}\n.example-full .drop-active {\n  top: 0;\n  bottom: 0;\n  right: 0;\n  left: 0;\n  position: fixed;\n  z-index: 9999;\n  opacity: .6;\n  text-align: center;\n  background: #000;\n}\n.example-full .drop-active h3 {\n  margin: -.5em 0 0;\n  position: absolute;\n  top: 50%;\n  left: 0;\n  right: 0;\n  -webkit-transform: translateY(-50%);\n  -ms-transform: translateY(-50%);\n  transform: translateY(-50%);\n  font-size: 40px;\n  color: #fff;\n  padding: 0;\n}\n","",{version:3,sources:["webpack://./docs/views/examples/Full.vue"],names:[],mappings:";AA2TA;EACE,cAAc;EACd,kBAAkB;EAClB;AACF;AACA;EACE,mBAAmB;AACrB;AAEA;EACE,gBAAgB;AAClB;AAEA;EACE;AACF;AAEA;EACE,cAAc;EACd,eAAe;AACjB;AAEA;EACE;AACF;AAEA;EACE,mBAAmB;AACrB;AACA;EACE,gBAAgB;EAChB,6BAA6B;EAC7B,gCAAgC;AAClC;AAGA;EACE,eAAe;AACjB;AAEA;EACE,iBAAiB;AACnB;AAEA;EACE,mBAAmB;AACrB;AAEA;EACE,kBAAkB;AACpB;AAEA;EACE,MAAM;EACN,SAAS;EACT,QAAQ;EACR,OAAO;EACP,eAAe;EACf,aAAa;EACb,WAAW;EACX,kBAAkB;EAClB,gBAAgB;AAClB;AAEA;EACE,iBAAiB;EACjB,kBAAkB;EAClB,QAAQ;EACR,OAAO;EACP,QAAQ;EACR,mCAAmC;EACnC,+BAA+B;EAC/B,2BAA2B;EAC3B,eAAe;EACf,WAAW;EACX,UAAU;AACZ",sourcesContent:['<template>\n<div class="example-full">\n  <button type="button" class="btn btn-danger float-right btn-is-option" @click.prevent="isOption = !isOption">\n    <i class="fa fa-cog" aria-hidden="true"></i>\n    Options\n  </button>\n  <h1 id="example-title" class="example-title">Full Example</h1>\n\n  <div v-show="$refs.upload && $refs.upload.dropActive" class="drop-active">\n\t\t<h3>Drop files to upload</h3>\n  </div>\n  <div class="upload" v-show="!isOption">\n    <div class="table-responsive">\n      <table class="table table-hover">\n        <thead>\n          <tr>\n            <th>#</th>\n            <th>Thumb</th>\n            <th>Name</th>\n            <th>Size</th>\n            <th>Speed</th>\n            <th>Status</th>\n            <th>Action</th>\n          </tr>\n        </thead>\n        <tbody>\n          <tr v-if="!files.length">\n            <td colspan="7">\n              <div class="text-center p-5">\n                <h4>Drop files anywhere to upload<br/>or</h4>\n                <label :for="name" class="btn btn-lg btn-primary">Select Files</label>\n              </div>\n            </td>\n          </tr>\n          <tr v-for="(file, index) in files" :key="file.id">\n            <td>{{index}}</td>\n            <td>\n              <img class="td-image-thumb" v-if="file.thumb" :src="file.thumb" />\n              <span v-else>No Image</span>\n            </td>\n            <td>\n              <div class="filename">\n                {{file.name}}\n              </div>\n              <div class="progress" v-if="file.active || file.progress !== \'0.00\'">\n                <div :class="{\'progress-bar\': true, \'progress-bar-striped\': true, \'bg-danger\': file.error, \'progress-bar-animated\': file.active}" role="progressbar" :style="{width: file.progress + \'%\'}">{{file.progress}}%</div>\n              </div>\n            </td>\n            <td>{{$formatSize(file.size)}}</td>\n            <td>{{$formatSize(file.speed)}}</td>\n\n            <td v-if="file.error">{{file.error}}</td>\n            <td v-else-if="file.success">success</td>\n            <td v-else-if="file.active">active</td>\n            <td v-else></td>\n            <td>\n              <div class="btn-group">\n                <button class="btn btn-secondary btn-sm dropdown-toggle" type="button">\n                  Action\n                </button>\n                <div class="dropdown-menu">\n                  <a :class="{\'dropdown-item\': true, disabled: file.active || file.success || file.error === \'compressing\'}" href="#" @click.prevent="file.active || file.success || file.error === \'compressing\' ? false :  onEditFileShow(file)">Edit</a>\n                  <a :class="{\'dropdown-item\': true, disabled: !file.active}" href="#" @click.prevent="file.active ? $refs.upload.update(file, {error: \'cancel\'}) : false">Cancel</a>\n\n                  <a class="dropdown-item" href="#" v-if="file.active" @click.prevent="$refs.upload.update(file, {active: false})">Abort</a>\n                  <a class="dropdown-item" href="#" v-else-if="file.error && file.error !== \'compressing\' && $refs.upload.features.html5" @click.prevent="$refs.upload.update(file, {active: true, error: \'\', progress: \'0.00\'})">Retry upload</a>\n                  <a :class="{\'dropdown-item\': true, disabled: file.success || file.error === \'compressing\'}" href="#" v-else @click.prevent="file.success || file.error === \'compressing\' ? false : $refs.upload.update(file, {active: true})">Upload</a>\n\n                  <div class="dropdown-divider"></div>\n                  <a class="dropdown-item" href="#" @click.prevent="$refs.upload.remove(file)">Remove</a>\n                </div>\n              </div>\n            </td>\n          </tr>\n        </tbody>\n      </table>\n    </div>\n    <div class="example-foorer">\n      <div class="footer-status float-right">\n        Drop: {{$refs.upload ? $refs.upload.drop : false}},\n        Active: {{$refs.upload ? $refs.upload.active : false}},\n        Uploaded: {{$refs.upload ? $refs.upload.uploaded : true}},\n        Drop active: {{$refs.upload ? $refs.upload.dropActive : false}}\n      </div>\n      <div class="btn-group">\n        <file-upload\n          class="btn btn-primary dropdown-toggle"\n          :post-action="postAction"\n          :put-action="putAction"\n          :extensions="extensions"\n          :accept="accept"\n          :multiple="multiple"\n          :directory="directory"\n          :create-directory="createDirectory"\n          :size="size || 0"\n          :thread="thread < 1 ? 1 : (thread > 5 ? 5 : thread)"\n          :headers="headers"\n          :data="data"\n          :drop="drop"\n          :drop-directory="dropDirectory"\n          :add-index="addIndex"\n          v-model="files"\n          @input-filter="inputFilter"\n          @input-file="inputFile"\n          ref="upload">\n          <i class="fa fa-plus"></i>\n          Select\n        </file-upload>\n        <div class="dropdown-menu">\n          <label class="dropdown-item" :for="name">Add files</label>\n          <a class="dropdown-item" href="#" @click="onAddFolder">Add folder</a>\n          <a class="dropdown-item" href="#" @click.prevent="addData.show = true">Add data</a>\n        </div>\n      </div>\n      <button type="button" class="btn btn-success" v-if="!$refs.upload || !$refs.upload.active" @click.prevent="$refs.upload.active = true">\n        <i class="fa fa-arrow-up" aria-hidden="true"></i>\n        Start Upload\n      </button>\n      <button type="button" class="btn btn-danger"  v-else @click.prevent="$refs.upload.active = false">\n        <i class="fa fa-stop" aria-hidden="true"></i>\n        Stop Upload\n      </button>\n    </div>\n  </div>\n\n\n\n\n\n  <div class="option" v-show="isOption">\n    <div class="form-group">\n      <label for="accept">Accept:</label>\n      <input type="text" id="accept" class="form-control" v-model="accept">\n      <small class="form-text text-muted">Allow upload mime type</small>\n    </div>\n    <div class="form-group">\n      <label for="extensions">Extensions:</label>\n      <input type="text" id="extensions" class="form-control" v-model="extensions">\n      <small class="form-text text-muted">Allow upload file extension</small>\n    </div>\n    <div class="form-group">\n      <label>PUT Upload:</label>\n      <div class="form-check">\n        <label class="form-check-label">\n          <input class="form-check-input" type="radio" name="put-action" id="put-action" value="" v-model="putAction"> Off\n        </label>\n      </div>\n      <div class="form-check">\n        <label class="form-check-label">\n          <input class="form-check-input" type="radio" name="put-action" id="put-action" value="/upload/put" v-model="putAction"> On\n        </label>\n      </div>\n      <small class="form-text text-muted">After the shutdown, use the POST method to upload</small>\n    </div>\n    <div class="form-group">\n      <label for="thread">Thread:</label>\n      <input type="number" max="5" min="1" id="thread" class="form-control" v-model.number="thread">\n      <small class="form-text text-muted">Also upload the number of files at the same time (number of threads)</small>\n    </div>\n    <div class="form-group">\n      <label for="size">Max size:</label>\n      <input type="number" min="0" id="size" class="form-control" v-model.number="size">\n    </div>\n    <div class="form-group">\n      <label for="minSize">Min size:</label>\n      <input type="number" min="0" id="minSize" class="form-control" v-model.number="minSize">\n    </div>\n    <div class="form-group">\n      <label for="autoCompress">Automatically compress:</label>\n      <input type="number" min="0" id="autoCompress" class="form-control" v-model.number="autoCompress">\n      <small class="form-text text-muted" v-if="autoCompress > 0">More than {{$formatSize(autoCompress)}} files are automatically compressed</small>\n      <small class="form-text text-muted" v-else>Set up automatic compression</small>\n    </div>\n\n    <div class="form-group">\n      <div class="form-check">\n        <label class="form-check-label">\n          <input type="checkbox" id="add-index" class="form-check-input" v-model="addIndex"> Start position to add\n        </label>\n      </div>\n      <small class="form-text text-muted">Add a file list to start the location to add</small>\n    </div>\n\n    <div class="form-group">\n      <div class="form-check">\n        <label class="form-check-label">\n          <input type="checkbox" id="drop" class="form-check-input" v-model="drop"> Drop\n        </label>\n      </div>\n      <small class="form-text text-muted">Drag and drop upload</small>\n    </div>\n    <div class="form-group">\n      <div class="form-check">\n        <label class="form-check-label">\n          <input type="checkbox" id="drop-directory" class="form-check-input" v-model="dropDirectory"> Drop directory\n        </label>\n      </div>\n      <small class="form-text text-muted">Not checked, filter the dragged folder</small>\n    </div>\n    <div class="form-group">\n      <div class="form-check">\n        <label class="form-check-label">\n          <input type="checkbox" id="create-directory" class="form-check-input" v-model="createDirectory"> Create Directory\n        </label>\n      </div>\n      <small class="form-text text-muted">The directory file will send an upload request. The mime type is <code>text/directory</code></small>\n    </div>\n    <div class="form-group">\n      <div class="form-check">\n        <label class="form-check-label">\n          <input type="checkbox" id="upload-auto" class="form-check-input" v-model="uploadAuto"> Auto start\n        </label>\n      </div>\n      <small class="form-text text-muted">Automatically activate upload</small>\n    </div>\n    <div class="form-group">\n      <button type="button" class="btn btn-primary btn-lg btn-block" @click.prevent="isOption = !isOption">Confirm</button>\n    </div>\n  </div>\n\n\n\n\n\n  <div :class="{\'modal-backdrop\': true, \'fade\': true, show: addData.show}"></div>\n  <div :class="{modal: true, fade: true, show: addData.show}" id="modal-add-data" tabindex="-1" role="dialog">\n    <div class="modal-dialog" role="document">\n      <div class="modal-content">\n        <div class="modal-header">\n          <h5 class="modal-title">Add data</h5>\n          <button type="button" class="close"  @click.prevent="addData.show = false">\n            <span>&times;</span>\n          </button>\n        </div>\n        <form @submit.prevent="onAddData">\n          <div class="modal-body">\n            <div class="form-group">\n              <label for="data-name">Name:</label>\n              <input type="text" class="form-control" required id="data-name"  placeholder="Please enter a file name" v-model="addData.name">\n              <small class="form-text text-muted">Such as <code>filename.txt</code></small>\n            </div>\n            <div class="form-group">\n              <label for="data-type">Type:</label>\n              <input type="text" class="form-control" required id="data-type"  placeholder="Please enter the MIME type" v-model="addData.type">\n              <small class="form-text text-muted">Such as <code>text/plain</code></small>\n            </div>\n            <div class="form-group">\n              <label for="content">Content:</label>\n              <textarea class="form-control" required id="content" rows="3" placeholder="Please enter the file contents" v-model="addData.content"></textarea>\n            </div>\n          </div>\n          <div class="modal-footer">\n            <button type="button" class="btn btn-secondary" @click.prevent="addData.show = false">Close</button>\n            <button type="submit" class="btn btn-primary">Save</button>\n          </div>\n        </form>\n      </div>\n    </div>\n  </div>\n\n\n\n\n\n\n  <div :class="{\'modal-backdrop\': true, \'fade\': true, show: editFile.show}"></div>\n  <div :class="{modal: true, fade: true, show: editFile.show}" id="modal-edit-file" tabindex="-1" role="dialog">\n    <div class="modal-dialog modal-lg" role="document">\n      <div class="modal-content">\n        <div class="modal-header">\n          <h5 class="modal-title">Edit file</h5>\n          <button type="button" class="close"  @click.prevent="editFile.show = false">\n            <span>&times;</span>\n          </button>\n        </div>\n        <form @submit.prevent="onEditorFile">\n          <div class="modal-body">\n            <div class="form-group">\n              <label for="name">Name:</label>\n              <input type="text" class="form-control" required id="name"  placeholder="Please enter a file name" v-model="editFile.name">\n            </div>\n            <div class="form-group" v-if="editFile.show && editFile.blob && editFile.type && editFile.type.substr(0, 6) === \'image/\'">\n              <label>Image: </label>\n              <div class="edit-image">\n                <img :src="editFile.blob" ref="editImage" />\n              </div>\n\n              <div class="edit-image-tool">\n                <div class="btn-group" role="group">\n                  <button type="button" class="btn btn-primary" @click="editFile.cropper.rotate(-90)" title="cropper.rotate(-90)"><i class="fa fa-undo" aria-hidden="true"></i></button>\n                  <button type="button" class="btn btn-primary" @click="editFile.cropper.rotate(90)"  title="cropper.rotate(90)"><i class="fa fa-repeat" aria-hidden="true"></i></button>\n                </div>\n                <div class="btn-group" role="group">\n                  <button type="button" class="btn btn-primary" @click="editFile.cropper.crop()" title="cropper.crop()"><i class="fa fa-check" aria-hidden="true"></i></button>\n                  <button type="button" class="btn btn-primary" @click="editFile.cropper.clear()" title="cropper.clear()"><i class="fa fa-remove" aria-hidden="true"></i></button>\n                </div>\n              </div>\n            </div>\n          </div>\n          <div class="modal-footer">\n            <button type="button" class="btn btn-secondary" @click.prevent="editFile.show = false">Close</button>\n            <button type="submit" class="btn btn-primary">Save</button>\n          </div>\n        </form>\n      </div>\n    </div>\n  </div>\n\n  <div class="pt-5">\n    Source code: <a href="https://github.com/lian-yue/vue-upload-component/blob/master/docs/views/examples/Full.vue">/docs/views/examples/Full.vue</a>\n  </div>\n\n</div>\n</template>\n<style>\n.example-full .btn-group .dropdown-menu {\n  display: block;\n  visibility: hidden;\n  transition: all .2s\n}\n.example-full .btn-group:hover > .dropdown-menu {\n  visibility: visible;\n}\n\n.example-full label.dropdown-item {\n  margin-bottom: 0;\n}\n\n.example-full .btn-group .dropdown-toggle {\n  margin-right: .6rem\n}\n\n.td-image-thumb {\n  max-width: 4em;\n  max-height: 4em;\n}\n\n.example-full .filename {\n  margin-bottom: .3rem\n}\n\n.example-full .btn-is-option {\n  margin-top: 0.25rem;\n}\n.example-full .example-foorer {\n  padding: .5rem 0;\n  border-top: 1px solid #e9ecef;\n  border-bottom: 1px solid #e9ecef;\n}\n\n\n.example-full .edit-image img {\n  max-width: 100%;\n}\n\n.example-full .edit-image-tool {\n  margin-top: .6rem;\n}\n\n.example-full .edit-image-tool .btn-group{\n  margin-right: .6rem;\n}\n\n.example-full .footer-status {\n  padding-top: .4rem;\n}\n\n.example-full .drop-active {\n  top: 0;\n  bottom: 0;\n  right: 0;\n  left: 0;\n  position: fixed;\n  z-index: 9999;\n  opacity: .6;\n  text-align: center;\n  background: #000;\n}\n\n.example-full .drop-active h3 {\n  margin: -.5em 0 0;\n  position: absolute;\n  top: 50%;\n  left: 0;\n  right: 0;\n  -webkit-transform: translateY(-50%);\n  -ms-transform: translateY(-50%);\n  transform: translateY(-50%);\n  font-size: 40px;\n  color: #fff;\n  padding: 0;\n}\n</style>\n\n<script>\nimport Cropper from \'cropperjs\'\nimport ImageCompressor from \'@xkeshi/image-compressor\'\nimport FileUpload from \'vue-upload-component\'\nexport default {\n  components: {\n    FileUpload,\n  },\n\n  data() {\n    return {\n      files: [],\n      accept: \'image/png,image/gif,image/jpeg,image/webp\',\n      extensions: \'gif,jpg,jpeg,png,webp\',\n      // extensions: [\'gif\', \'jpg\', \'jpeg\',\'png\', \'webp\'],\n      // extensions: /\\.(gif|jpe?g|png|webp)$/i,\n      minSize: 1024,\n      size: 1024 * 1024 * 10,\n      multiple: true,\n      directory: false,\n      drop: true,\n      dropDirectory: true,\n      createDirectory: false,\n      addIndex: false,\n      thread: 3,\n      name: \'file\',\n      postAction: \'/upload/post\',\n      putAction: \'/upload/put\',\n      headers: {\n        \'X-Csrf-Token\': \'xxxx\',\n      },\n      data: {\n        \'_csrf_token\': \'xxxxxx\',\n      },\n\n      autoCompress: 1024 * 1024,\n      uploadAuto: false,\n      isOption: false,\n\n      addData: {\n        show: false,\n        name: \'\',\n        type: \'\',\n        content: \'\',\n      },\n\n\n      editFile: {\n        show: false,\n        name: \'\',\n      }\n    }\n  },\n\n  watch: {\n    \'editFile.show\'(newValue, oldValue) {\n      // 关闭了 自动删除 error\n      if (!newValue && oldValue) {\n        this.$refs.upload.update(this.editFile.id, { error: this.editFile.error || \'\' })\n      }\n\n      if (newValue) {\n        this.$nextTick(function () {\n          if (!this.$refs.editImage) {\n            return\n          }\n          let cropper = new Cropper(this.$refs.editImage, {\n            autoCrop: false,\n          })\n          this.editFile = {\n            ...this.editFile,\n            cropper\n          }\n        })\n      }\n    },\n\n    \'addData.show\'(show) {\n      if (show) {\n        this.addData.name = \'\'\n        this.addData.type = \'\'\n        this.addData.content = \'\'\n      }\n    },\n  },\n\n  methods: {\n    inputFilter(newFile, oldFile, prevent) {\n      if (newFile && !oldFile) {\n        // Before adding a file\n        // 添加文件前\n\n        // Filter system files or hide files\n        // 过滤系统文件 和隐藏文件\n        if (/(\\/|^)(Thumbs\\.db|desktop\\.ini|\\..+)$/.test(newFile.name)) {\n          return prevent()\n        }\n\n        // Filter php html js file\n        // 过滤 php html js 文件\n        if (/\\.(php5?|html?|jsx?)$/i.test(newFile.name)) {\n          return prevent()\n        }\n\n        // Automatic compression\n        // 自动压缩\n        if (newFile.file && newFile.type.substr(0, 6) === \'image/\' && this.autoCompress > 0 && this.autoCompress < newFile.size) {\n          newFile.error = \'compressing\'\n          const imageCompressor = new ImageCompressor(null, {\n            convertSize: Infinity,\n            maxWidth: 512,\n            maxHeight: 512,\n          })\n          imageCompressor.compress(newFile.file)\n            .then((file) => {\n              this.$refs.upload.update(newFile, { error: \'\', file, size: file.size, type: file.type })\n            })\n            .catch((err) => {\n              this.$refs.upload.update(newFile, { error: err.message || \'compress\' })\n            })\n        }\n      }\n\n\n      if (newFile && (!oldFile || newFile.file !== oldFile.file)) {\n\n        // Create a blob field\n        // 创建 blob 字段\n        newFile.blob = \'\'\n        let URL = window.URL || window.webkitURL\n        if (URL && URL.createObjectURL) {\n          newFile.blob = URL.createObjectURL(newFile.file)\n        }\n\n        // Thumbnails\n        // 缩略图\n        newFile.thumb = \'\'\n        if (newFile.blob && newFile.type.substr(0, 6) === \'image/\') {\n          newFile.thumb = newFile.blob\n        }\n      }\n    },\n\n    // add, update, remove File Event\n    inputFile(newFile, oldFile) {\n      if (newFile && oldFile) {\n        // update\n\n        if (newFile.active && !oldFile.active) {\n          // beforeSend\n\n          // min size\n          if (newFile.size >= 0 && this.minSize > 0 && newFile.size < this.minSize) {\n            this.$refs.upload.update(newFile, { error: \'size\' })\n          }\n        }\n\n        if (newFile.progress !== oldFile.progress) {\n          // progress\n        }\n\n        if (newFile.error && !oldFile.error) {\n          // error\n        }\n\n        if (newFile.success && !oldFile.success) {\n          // success\n        }\n      }\n\n\n      if (!newFile && oldFile) {\n        // remove\n        if (oldFile.success && oldFile.response.id) {\n          // $.ajax({\n          //   type: \'DELETE\',\n          //   url: \'/upload/delete?id=\' + oldFile.response.id,\n          // })\n        }\n      }\n\n\n      // Automatically activate upload\n      if (Boolean(newFile) !== Boolean(oldFile) || oldFile.error !== newFile.error) {\n        if (this.uploadAuto && !this.$refs.upload.active) {\n          this.$refs.upload.active = true\n        }\n      }\n    },\n\n\n    alert(message) {\n      alert(message)\n    },\n\n\n    onEditFileShow(file) {\n      this.editFile = { ...file, show: true }\n      this.$refs.upload.update(file, { error: \'edit\' })\n    },\n\n    onEditorFile() {\n      if (!this.$refs.upload.features.html5) {\n        this.alert(\'Your browser does not support\')\n        this.editFile.show = false\n        return\n      }\n\n      let data = {\n        name: this.editFile.name,\n      }\n      if (this.editFile.cropper) {\n        let binStr = atob(this.editFile.cropper.getCroppedCanvas().toDataURL(this.editFile.type).split(\',\')[1])\n        let arr = new Uint8Array(binStr.length)\n        for (let i = 0; i < binStr.length; i++) {\n          arr[i] = binStr.charCodeAt(i)\n        }\n        data.file = new File([arr], data.name, { type: this.editFile.type })\n        data.size = data.file.size\n      }\n      this.$refs.upload.update(this.editFile.id, data)\n      this.editFile.error = \'\'\n      this.editFile.show = false\n    },\n\n    // add folder\n    onAddFolder() {\n      if (!this.$refs.upload.features.directory) {\n        this.alert(\'Your browser does not support\')\n        return\n      }\n      let input = document.createElement(\'input\')\n      input.style = "background: rgba(255, 255, 255, 0);overflow: hidden;position: fixed;width: 1px;height: 1px;z-index: -1;opacity: 0;"\n      input.type = \'file\'\n      input.setAttribute(\'allowdirs\', true)\n      input.setAttribute(\'directory\', true)\n      input.setAttribute(\'webkitdirectory\', true)\n      input.multiple = true\n      document.querySelector("body").appendChild(input)\n      input.click()\n      input.onchange = (e) => {\n        this.$refs.upload.addInputFile(input).then(function() {\n          document.querySelector("body").removeChild(input)\n        })\n      }\n    },\n\n    onAddData() {\n      this.addData.show = false\n      if (!this.$refs.upload.features.html5) {\n        this.alert(\'Your browser does not support\')\n        return\n      }\n\n      let file = new window.File([this.addData.content], this.addData.name, {\n        type: this.addData.type,\n      })\n      this.$refs.upload.add(file)\n    }\n  }\n}\n<\/script>\n'],sourceRoot:""}]);const l=i},8:(e,n,t)=>{"use strict";t.d(n,{Z:()=>l});var o=t(346),r=t.n(o),a=t(419),i=t.n(a)()(r());i.push([e.id,"\n.example-multiple label.btn {\n  margin-bottom: 0;\n  margin-right: 1rem;\n}\n.example-multiple .upload {\n  margin-bottom: 1rem;\n}\n","",{version:3,sources:["webpack://./docs/views/examples/Multiple.vue"],names:[],mappings:";AA2EA;EACE,gBAAgB;EAChB,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB",sourcesContent:['<template>\n  <div class="example-multiple">\n    <h1 id="example-title" class="example-title">Multiple instances</h1>\n    <div class="upload">\n      <ul>\n        <li v-for="(file) in files1" :key="file.id">\n          <span>{{file.name}}</span> -\n          <span>{{$formatSize(file.size)}}</span> -\n          <span v-if="file.error">{{file.error}}</span>\n          <span v-else-if="file.success">success</span>\n          <span v-else-if="file.active">active</span>\n          <span v-else></span>\n        </li>\n      </ul>\n      <div class="example-btn">\n        <file-upload\n        class="btn btn-primary"\n          input-id="file1"\n          post-action="/upload/post"\n          v-model="files1"\n          ref="upload1">\n          <i class="fa fa-plus"></i>\n          Select files\n        </file-upload>\n        <label for="file1" class="btn btn-primary">Label Select files</label>\n        <button type="button" class="btn btn-success" v-if="!$refs.upload1 || !$refs.upload1.active" @click.prevent="$refs.upload1.active = true">\n          <i class="fa fa-arrow-up" aria-hidden="true"></i>\n          Start Upload\n        </button>\n        <button type="button" class="btn btn-danger"  v-else @click.prevent="$refs.upload1.active = false">\n          <i class="fa fa-stop" aria-hidden="true"></i>\n          Stop Upload\n        </button>\n      </div>\n    </div>\n\n\n    <div class="upload">\n      <ul>\n        <li v-for="(file) in files2" :key="file.id">\n          <span>{{file.name}}</span> -\n          <span>{{$formatSize(file.size)}}</span> -\n          <span v-if="file.error">{{file.error}}</span>\n          <span v-else-if="file.success">success</span>\n          <span v-else-if="file.active">active</span>\n          <span v-else></span>\n        </li>\n      </ul>\n      <div class="example-btn">\n        <file-upload\n          class="btn btn-primary"\n          input-id="file2"\n          post-action="/upload/post"\n          v-model="files2"\n          ref="upload2">\n          <i class="fa fa-plus"></i>\n          Select files\n        </file-upload>\n        <label for="file2" class="btn btn-primary">Label Select files</label>\n        <button type="button" class="btn btn-success" v-if="!$refs.upload2 || !$refs.upload2.active" @click.prevent="$refs.upload2.active = true">\n          <i class="fa fa-arrow-up" aria-hidden="true"></i>\n          Start Upload\n        </button>\n        <button type="button" class="btn btn-danger"  v-else @click.prevent="$refs.upload2.active = false">\n          <i class="fa fa-stop" aria-hidden="true"></i>\n          Stop Upload\n        </button>\n      </div>\n    </div>\n    <div class="pt-5">\n      Source code: <a href="https://github.com/lian-yue/vue-upload-component/blob/master/docs/views/examples/Multiple.vue">/docs/views/examples/Multiple.vue</a>\n    </div>\n  </div>\n</template>\n<style>\n.example-multiple label.btn {\n  margin-bottom: 0;\n  margin-right: 1rem;\n}\n.example-multiple .upload {\n  margin-bottom: 1rem;\n}\n</style>\n\n<script>\nimport FileUpload from \'vue-upload-component\'\nexport default {\n  components: {\n    FileUpload,\n  },\n\n  data() {\n    return {\n      files1: [],\n      files2: [],\n    }\n  },\n}\n<\/script>\n'],sourceRoot:""}]);const l=i},424:(e,n,t)=>{"use strict";t.d(n,{Z:()=>l});var o=t(346),r=t.n(o),a=t(419),i=t.n(a)()(r());i.push([e.id,"\n.example-simple label.btn {\n  margin-bottom: 0;\n  margin-right: 1rem;\n}\n","",{version:3,sources:["webpack://./docs/views/examples/Simple.vue"],names:[],mappings:";AA8CA;EACE,gBAAgB;EAChB,kBAAkB;AACpB",sourcesContent:['<template>\n  <div class="example-simple">\n    <h1 id="example-title" class="example-title">Simple Example</h1>\n    <div class="upload">\n      <ul>\n        <li v-for="file in files" :key="file.id">\n          <span>{{file.name}}</span> -\n          <span>{{$formatSize(file.size)}}</span> -\n          <span v-if="file.error">{{file.error}}</span>\n          <span v-else-if="file.success">success</span>\n          <span v-else-if="file.active">active</span>\n          <span v-else-if="!!file.error">{{file.error}}</span>\n          <span v-else></span>\n        </li>\n      </ul>\n      <div class="example-btn">\n        <file-upload\n          class="btn btn-primary"\n          post-action="/upload/post"\n          extensions="gif,jpg,jpeg,png,webp"\n          accept="image/png,image/gif,image/jpeg,image/webp"\n          :multiple="true"\n          :size="1024 * 1024 * 10"\n          v-model="files"\n          @input-filter="inputFilter"\n          @input-file="inputFile"\n          ref="upload">\n          <i class="fa fa-plus"></i>\n          Select files\n        </file-upload>\n        <button type="button" class="btn btn-success" v-if="!upload || !upload.active" @click.prevent="upload.active = true">\n          <i class="fa fa-arrow-up" aria-hidden="true"></i>\n          Start Upload\n        </button>\n        <button type="button" class="btn btn-danger"  v-else @click.prevent="upload.active = false">\n          <i class="fa fa-stop" aria-hidden="true"></i>\n          Stop Upload\n        </button>\n      </div>\n    </div>\n    <div class="pt-5">\n      Source code: <a href="https://github.com/lian-yue/vue-upload-component/blob/master/docs/views/examples/Simple.vue">/docs/views/examples/Simple.vue</a>\n    </div>\n  </div>\n</template>\n<style>\n.example-simple label.btn {\n  margin-bottom: 0;\n  margin-right: 1rem;\n}\n</style>\n\n<script>\nimport {ref} from \'vue\'\nimport FileUpload from \'vue-upload-component\'\nexport default {\n  components: {\n    FileUpload,\n  },\n\n  setup(props, context) {\n    const upload = ref(null)\n    \n    const files = ref([])\n\n    function inputFilter(newFile, oldFile, prevent) {\n      if (newFile && !oldFile) {\n        // Before adding a file\n        // 添加文件前\n\n        // Filter system files or hide files\n        // 过滤系统文件 和隐藏文件\n        if (/(\\/|^)(Thumbs\\.db|desktop\\.ini|\\..+)$/.test(newFile.name)) {\n          return prevent()\n        }\n        \n        // Filter php html js file\n        // 过滤 php html js 文件\n        if (/\\.(php5?|html?|jsx?)$/i.test(newFile.name)) {\n          return prevent()\n        }\n      }\n    }\n\n    function inputFile(newFile, oldFile) {\n      if (newFile && !oldFile) {\n        // add\n        console.log(\'add\', newFile)\n      }\n      if (newFile && oldFile) {\n        // update\n        console.log(\'update\', newFile)\n      }\n\n      if (!newFile && oldFile) {\n        // remove\n        console.log(\'remove\', oldFile)\n      }\n    }\n\n    return {\n      files,\n      upload,\n      inputFilter,\n      inputFile,\n    }\n  }\n}\n<\/script>\n'],sourceRoot:""}]);const l=i},479:(e,n,t)=>{"use strict";t.d(n,{Z:()=>l});var o=t(346),r=t.n(o),a=t(419),i=t.n(a)()(r());i.push([e.id,"\n.example-vuex label.btn {\n  margin-bottom: 0;\n  margin-right: 1rem;\n}\n","",{version:3,sources:["webpack://./docs/views/examples/Vuex.vue"],names:[],mappings:";AA4CA;EACE,gBAAgB;EAChB,kBAAkB;AACpB",sourcesContent:['<template>\n  <div class="example-vuex">\n    <h1 id="example-title" class="example-title">Vuex Example</h1>\n    <div class="upload">\n      <ul>\n        <li v-for="file in files" :key="file.id">\n          <span>{{file.name}}</span> -\n          <span>{{$formatSize(file.size)}}</span> -\n          <span v-if="file.error">{{file.error}}</span>\n          <span v-else-if="file.success">success</span>\n          <span v-else-if="file.active">active</span>\n          <span v-else></span>\n        </li>\n      </ul>\n      <div class="example-btn">\n        <file-upload\n          class="btn btn-primary"\n          post-action="/upload/post"\n          extensions="gif,jpg,jpeg,png,webp"\n          accept="image/png,image/gif,image/jpeg,image/webp"\n          :multiple="true"\n          :size="1024 * 1024 * 10"\n          :value="files"\n          @update:modelValue="inputUpdate"\n          ref="upload">\n          <i class="fa fa-plus"></i>\n          Select files\n        </file-upload>\n        <button type="button" class="btn btn-success" v-if="!$refs.upload || !$refs.upload.active" @click.prevent="$refs.upload.active = true">\n          <i class="fa fa-arrow-up" aria-hidden="true"></i>\n          Start Upload\n        </button>\n        <button type="button" class="btn btn-danger"  v-else @click.prevent="$refs.upload.active = false">\n          <i class="fa fa-stop" aria-hidden="true"></i>\n          Stop Upload\n        </button>\n      </div>\n    </div>\n    <div class="pt-5">\n      Source code: <a href="https://github.com/lian-yue/vue-upload-component/blob/master/docs/views/examples/Vuex.vue">/docs/views/examples/Vuex.vue</a>, <a href="https://github.com/lian-yue/vue-upload-component/blob/master/docs/store.js">/docs/store.js</a>\n    </div>\n  </div>\n</template>\n<style>\n.example-vuex label.btn {\n  margin-bottom: 0;\n  margin-right: 1rem;\n}\n</style>\n\n<script>\nimport { mapState } from \'vuex\'\nimport FileUpload from \'vue-upload-component\'\nexport default {\n  components: {\n    FileUpload,\n  },\n\n  computed: {\n    ...mapState([\n      \'files\',\n    ])\n  },\n\n  methods: {\n    inputUpdate(files) {\n      this.$store.commit(\'updateFiles\', files)\n    },\n  }\n}\n<\/script>\n'],sourceRoot:""}]);const l=i},512:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>o});const o='\n> **The document uses Google Translate**\n\n## Getting Started\n\n### NPM\n\n``` bash\nnpm install vue-upload-component --save\n```\n\n``` js\nconst VueUploadComponent = require(\'vue-upload-component\')\nVue.component(\'file-upload\', VueUploadComponent)\n```\n\n\n\n#### Vue3\n``` bash\nnpm install vue-upload-component@next --save\n```\n\n``` js\nconst VueUploadComponent = require(\'vue-upload-component\')\napp.component(\'file-upload\', VueUploadComponent)\n// or \nimport VueUploadComponent from \'vue-upload-component\'\napp.component(\'file-upload\', VueUploadComponent)\n```\n\n### Typescript\n``` js\nimport VueUploadComponent from \'vue-upload-component/src/FileUpload.vue\'\n\n// or\nimport VueUploadComponent from \'vue-upload-component\'\n// vue-upload-component/dist/vue-upload-component.d.ts\n\napp.component(\'file-upload\', VueUploadComponent)\n```\n\n### Curated\n\n**No data**\n\n\n### Script\n\n\nunpkg\n\n``` html\n<script src="https://unpkg.com/vue"><\/script>\n<script src="https://unpkg.com/vue-upload-component"><\/script>\n<script>\nVue.component(\'file-upload\', VueUploadComponent)\n<\/script>\n```\n\njsDelivr\n\n``` html\n<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"><\/script>\n<script src="https://cdn.jsdelivr.net/npm/vue-upload-component"><\/script>\n<script>\nVue.component(\'file-upload\', VueUploadComponent)\n<\/script>\n```\n\n\n### Simple example\n\n\n\n```html\n<!DOCTYPE html>\n<html>\n<head>\n  <meta charset="utf-8">\n  <title>Vue-upload-component Test</title>\n  <script src="https://unpkg.com/vue"><\/script>\n  <script src="https://unpkg.com/vue-upload-component"><\/script>\n</head>\n<body>\n<div id="app">\n  <ul>\n    <li v-for="file in files">{{file.name}} - Error: {{file.error}}, Success: {{file.success}}</li>\n  </ul>\n  <file-upload\n    ref="upload"\n    v-model="files"\n    post-action="/post.method"\n    put-action="/put.method"\n    @input-file="inputFile"\n    @input-filter="inputFilter"\n  >\n  Upload file\n  </file-upload>\n  <button v-show="!$refs.upload || !$refs.upload.active" @click.prevent="$refs.upload.active = true" type="button">Start upload</button>\n  <button v-show="$refs.upload && $refs.upload.active" @click.prevent="$refs.upload.active = false" type="button">Stop upload</button>\n</div>\n<script>\nnew Vue({\n  el: \'#app\',\n  data: function () {\n    return {\n      files: []\n    }\n  },\n  components: {\n    FileUpload: VueUploadComponent\n  },\n  methods: {\n    /**\n     * Has changed\n     * @param  Object|undefined   newFile   Read only\n     * @param  Object|undefined   oldFile   Read only\n     * @return undefined\n     */\n    inputFile: function (newFile, oldFile) {\n      if (newFile && oldFile && !newFile.active && oldFile.active) {\n        // Get response data\n        console.log(\'response\', newFile.response)\n        if (newFile.xhr) {\n          //  Get the response status code\n          console.log(\'status\', newFile.xhr.status)\n        }\n      }\n    },\n    /**\n     * Pretreatment\n     * @param  Object|undefined   newFile   Read and write\n     * @param  Object|undefined   oldFile   Read only\n     * @param  Function           prevent   Prevent changing\n     * @return undefined\n     */\n    inputFilter: function (newFile, oldFile, prevent) {\n      if (newFile && !oldFile) {\n        // Filter non-image file\n        if (!/\\.(jpeg|jpe|jpg|gif|png|webp)$/i.test(newFile.name)) {\n          return prevent()\n        }\n      }\n\n      // Create a blob field\n      newFile.blob = \'\'\n      let URL = window.URL || window.webkitURL\n      if (URL && URL.createObjectURL) {\n        newFile.blob = URL.createObjectURL(newFile.file)\n      }\n    }\n  }\n});\n<\/script>\n</body>\n</html>\n```\n\n### Chunk Upload\n\nThis package allows chunk uploads, which means you can upload a file in different parts.\n\nThis process is divided in three phases: <strong>start</strong>, <strong>upload</strong>,<strong>finish</strong></p>\n\n#### start\n\nThis is the first phase of the process. We\'ll tell the backend that we are going to upload a file, with certain `size`, `name` and `mime_type`.\n\nUse the option `startBody` to add more parameters to the body of this request.\n\nThe backend should provide a `session_id` (to identify the upload) and a `end_offset` which is the size of every chunk\n\n##### HTTP start phase example\n\nRequest body example:\n```\n{\n  "phase": "start",\n  "mime_type": "image/png",\n  "size": 12669430,\n  "name":"hubbleimage1stscihp1809af6400x4800.png"\n}\n```\n\nResponse body example:\n```\n{\n  "data": {\n    "end_offset": 6291456,\n    "session_id": "61db8102-fca6-44ae-81e2-a499d438e7a5"\n  },\n  "status": "success"\n}\n\n```\n\n#### upload\n\nIn this phase we\'ll upload every chunk until all of them are uploaded. This step allows some failures in the backend, and will retry up to `maxRetries` times.\n\nWe\'ll send the `session_id`, `start_offset` and `chunk` (the sliced blob - part of file we are uploading). We expect the backend to return `{ status: \'success\' }`, we\'ll retry otherwise.\n\nUse the option `uploadBody` to add more parameters to the body of this request.\n\n##### HTTP upload phase example with 3 chunks\n\nRequest body example - chunk 1 from 3:\n```\n------WebKitFormBoundaryuI0uiY8h7MCbcysx\nContent-Disposition: form-data; name="phase"\n\nupload\n------WebKitFormBoundaryuI0uiY8h7MCbcysx\nContent-Disposition: form-data; name="session_id"\n\n61db8102-fca6-44ae-81e2-a499d438e7a5\n------WebKitFormBoundaryuI0uiY8h7MCbcysx\nContent-Disposition: form-data; name="start_offset"\n\n0\n------WebKitFormBoundaryuI0uiY8h7MCbcysx\nContent-Disposition: form-data; name="chunk"; filename="blob"\nContent-Type: application/octet-stream\n\n\n------WebKitFormBoundaryuI0uiY8h7MCbcysx--\n```\n\nResponse body example - chunk 1 from 3:\n```\n{\n  "status": "success"\n}\n```\n\nRequest body example - chunk 2 from 3:\n```\n------WebKitFormBoundary4cjBupFqrx1SrHoR\nContent-Disposition: form-data; name="phase"\n\nupload\n------WebKitFormBoundary4cjBupFqrx1SrHoR\nContent-Disposition: form-data; name="session_id"\n\n61db8102-fca6-44ae-81e2-a499d438e7a5\n------WebKitFormBoundary4cjBupFqrx1SrHoR\nContent-Disposition: form-data; name="start_offset"\n\n6291456\n------WebKitFormBoundary4cjBupFqrx1SrHoR\nContent-Disposition: form-data; name="chunk"; filename="blob"\nContent-Type: application/octet-stream\n\n\n------WebKitFormBoundary4cjBupFqrx1SrHoR-\n```\n\nResponse body example - chunk 2 from 3:\n```\n{\n  "status": "success"\n}\n```\n\nRequest body example - chunk 3 from 3:\n```\n------WebKitFormBoundarypWxg4xnB5QBDoFys\nContent-Disposition: form-data; name="phase"\n\nupload\n------WebKitFormBoundarypWxg4xnB5QBDoFys\nContent-Disposition: form-data; name="session_id"\n\n61db8102-fca6-44ae-81e2-a499d438e7a5\n------WebKitFormBoundarypWxg4xnB5QBDoFys\nContent-Disposition: form-data; name="start_offset"\n\n12582912\n------WebKitFormBoundarypWxg4xnB5QBDoFys\nContent-Disposition: form-data; name="chunk"; filename="blob"\nContent-Type: application/octet-stream\n\n\n------WebKitFormBoundarypWxg4xnB5QBDoFys--\n```\n\nResponse body example - chunk 1 from 3:\n```\n{\n  "status": "success"\n}\n```\n\n#### finish\n\nIn this phase we tell the backend that there are no more chunks to upload, so it can wrap everything. We send the `session_id` in this phase.\n\nUse the option `finishBody` to add more parameters to the body of this request.\n\n##### HTTP finish phase example\n\nRequest body example:\n```\n{\n  "phase": "finish",\n  "session_id": "61db8102-fca6-44ae-81e2-a499d438e7a5"\n}\n```\n\nResponse body example:\n```\n{\n  "status": "success"\n}\n```\n\n#### Example\n\nIn the following example we are going to add `Chunk Upload Functionality`. This component will use `Chunk Upload` when the size of the file is > `1MB`, it will behave as the `Simple example` when the size of the file is lower.\n\n```html\n  <file-upload\n    ref="upload"\n    v-model="files"\n    post-action="/post.method"\n    put-action="/put.method"\n\n    chunk-enabled\n    :chunk="{\n      action: \'/upload/chunk\',\n      minSize: 1048576,\n      maxActive: 3,\n      maxRetries: 5,\n\n      // Example in the case your backend also needs the user id to operate\n      startBody: {\n        user_id: user.id\n      }\n    }"\n\n    @input-file="inputFile"\n    @input-filter="inputFilter"\n  >\n  Upload file\n  </file-upload>\n```\n\n#### Extending the handler\n\nWe are using the class `src/chunk/ChunkUploadHandler` class to implement this protocol. You can extend this class (or even create a different one from scratch) to implement your own way to communicat with the backend.\n\nThis class must implement a method called `upload` which **must** return a promise. This promise will be used by the `FileUpload` component to determinate whether the file was uploaded or failed.\n\nUse the `handler` parameter to use a different Handler\n\n```html\n :chunk="{\n   action: \'/upload/chunk\',\n   minSize: 1048576,\n   maxActive: 3,\n   maxRetries: 5,\n\n   handler: MyHandlerClass\n }\n```\n\n### SSR (Server isomorphism)\n\n\n```html\n<template>\n  <file-upload v-model="files" post-action="/">Upload file</file-upload>\n</template>\n<style>\n/*\nimport \'~vue-upload-component/dist/vue-upload-component.part.css\'\n@import "~vue-upload-component/dist/vue-upload-component.part.css";\n\n\nor\n\n\n */\n.file-uploads {\n  overflow: hidden;\n  position: relative;\n  text-align: center;\n  display: inline-block;\n}\n.file-uploads.file-uploads-html4 input[type="file"] {\n  opacity: 0;\n  font-size: 20em;\n  z-index: 1;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  position: absolute;\n  width: 100%;\n  height: 100%;\n}\n.file-uploads.file-uploads-html5 input[type="file"] {\n  overflow: hidden;\n  position: fixed;\n  width: 1px;\n  height: 1px;\n  z-index: -1;\n  opacity: 0;\n}\n</style>\n<script>\nimport FileUpload from \'vue-upload-component/dist/vue-upload-component.part.js\'\nexport default {\n  components: {\n    FileUpload,\n  },\n  data() {\n    return {\n      files: []\n    }\n  },\n}\n<\/script>\n```\n\n\n** OR **\n\n\n```js\nimport FileUpload from \'vue-upload-component/src\'\n```\n\n\nwebpack.config.js\n\n```js\nconst nodeExternals = require(\'webpack-node-externals\');\n{\n  //.....\n  externals: [\n    nodeExternals({whitelist:[/^vue-upload-component\\/src/]})\n  ]\n  //.....\n}\n```\n\n* [https://github.com/liady/webpack-node-externals](https://github.com/liady/webpack-node-externals)\n\n* [**`vue-hackernews` demo**](https://github.com/lian-yue/vue-hackernews-2.0/)\n\n* [**View changes**](https://github.com/lian-yue/vue-hackernews-2.0/commit/bd6c58a30cc6b8ba6c0148e737b3ce9336b99cf8)\n\n\n\n\n## Options / Props\n\n\n### input-id\n\nThe `id` attribute of the input tag\n\n* **Type:** `String`\n\n* **Default:** `this.name`\n\n* **Usage:**\n  ```html\n  <file-upload input-id="file2"></file-upload>\n  \x3c!--Output--\x3e\n  <input id="file2" />\n  ```\n\n\n\n\n\n### name\n\nThe `name` attribute of the input tag\n\n* **Type:** `String`\n\n* **Default:** `file`\n\n* **Usage:**\n  ```html\n  <file-upload name="file"></file-upload>\n  \x3c!--Output--\x3e\n  <input name="file" />\n  ```\n\n\n\n\n\n### post-action\n\n`POST` Request upload URL\n\n* **Type:** `String`\n\n* **Default:** `undefined`\n\n* **Usage:**\n  ```html\n  <file-upload post-action="/upload/post.php"></file-upload>\n  ```\n\n\n\n\n\n### put-action\n\n`PUT` Request upload URL\n\n* **Type:** `String`\n\n* **Default:** `undefined`\n\n* **Browser:** `> IE9`\n\n* **Details:**\n\n  `put-action` is not empty Please give priority to` PUT` request\n\n* **Usage:**\n  ```html\n  <file-upload put-action="/upload/put.php"></file-upload>\n  ```\n\n\n\n### custom-action\n\nCustom upload method\n\n* **Type:** `async Function`\n\n* **Default:** `undefined`\n\n* **Details:**  \n\n  `custom-action` priority than `put-action, post-action`\n\n* **Usage:**\n  ```html\n  <file-upload :custom-action="customAction"></file-upload>\n  ```\n  ```js\n  async function customAction(file, component) {\n    // return await component.uploadPut(file)\n    return await component.uploadHtml4(file)\n  }\n  ```\n\n\n\n\n\n### headers\n\nAttach `header` data\n\n* **Type:** `Object`\n\n* **Default:** `{}`\n\n* **Browser:** `> IE9`\n\n* **Usage:**\n  ```html\n  <file-upload :headers="{\'X-Token-CSRF\': \'code\'}"></file-upload>\n  ```\n\n\n\n\n\n### data\n\n`POST request`:  Append request `body`\n`PUT request`:  Append request `query`\n\n* **Type:** `Object`\n\n* **Default:** `{}`\n\n* **Usage:**\n  ```html\n  <file-upload :data="{access_token: \'access_token\'}"></file-upload>\n  ```\n\n\n\n\n### value, v-model\n\nFile List\n\n* **Type:** `Array<File | Object>`\n\n* **Default:** `[]`\n\n* **Details:**\n\n  View **[`File`](#file)** details\n  > In order to prevent unpredictable errors, can not directly modify the `files`, please use [`add`](#instance-methods-add), [`update`](#instance-methods-update), [`remove`](#instance-methods-remove) method to modify\n\n* **Usage:**\n  ```html\n  <file-upload :value="files" @input="updatetValue"></file-upload>\n  \x3c!--or--\x3e\n  <file-upload v-model="files"></file-upload>\n  ```\n\n\n\n\n\n### accept\n\nThe `accept` attribute of the input tag, MIME type\n\n* **Type:** `String`\n\n* **Default:** `undefined`\n\n* **Browser:** `> IE9`\n\n* **Usage:**\n  ```html\n  <file-upload accept="image/png,image/gif,image/jpeg,image/webp"></file-upload>\n  \x3c!--or--\x3e\n  <file-upload accept="image/*"></file-upload>\n  ```\n\n\n\n\n\n### multiple\n\nThe `multiple` attribute of the input tag\nWhether to allow multiple files to be selected\n\n* **Type:** `Boolean`\n\n* **Default:** `false`\n\n* **Details:**\n\n  If it is `false` file inside only one file will be automatically deleted\n\n* **Usage:**\n  ```html\n  <file-upload :multiple="true"></file-upload>\n  ```\n\n\n\n### directory\n\nThe `directory` attribute of the input tag\nWhether it is a upload folder\n\n* **Type:** `Boolean`\n\n* **Default:** `false`\n\n* **Browser:** [http://caniuse.com/#feat=input-file-directory](http://caniuse.com/#feat=input-file-directory)\n\n* **Usage:**\n  ```html\n  <file-upload :directory="true" :multiple="true"></file-upload>\n  ```\n\n\n\n\n\n### extensions\n\nAllow upload file extensions\n\n* **Type:** `Array | String | RegExp`\n\n* **Default:** `undefined`\n\n* **Usage:**\n  ```html\n  <file-upload extensions="jpg,gif,png,webp"></file-upload>\n  \x3c!--or--\x3e\n  <file-upload :extensions="[\'jpg\', \'gif\', \'png\', \'webp\']"></file-upload>\n  \x3c!--or--\x3e\n  <file-upload :extensions="/\\.(gif|jpe?g|png|webp)$/i"></file-upload>\n  ```\n\n\n\n\n### size\n\nAllow the maximum byte to upload\n\n* **Type:** `Number`\n\n* **Default:** `0`\n\n* **Browser:** `> IE9`\n\n* **Details:**\n\n  `0` is equal to not limit\n\n* **Usage:**\n  ```html\n  <file-upload :size="1024 * 1024"></file-upload>\n  ```\n\n\n\n\n### timeout\n\nUpload timeout time in milliseconds\n\n* **Type:** `Number`\n\n* **Default:** `0`\n\n* **Browser:** `> IE9`\n\n* **Usage:**\n  ```html\n  <file-upload :timeout="600 * 1000"></file-upload>\n  ```\n\n### maximum\n\nList the maximum number of files\n\n* **Type:** `Number`\n\n* **Default:** `props.multiple ? 0 : 1`\n\n* **Usage:**\n  ```html\n  <file-upload :maximum="10"></file-upload>\n  ```\n\n\n\n### thread\n\nAlso upload the number of files at the same time (number of threads)\n\n* **Type:** `Number`\n\n* **Default:** `1`\n\n* **Browser:** `> IE9`\n\n* **Usage:**\n  ```html\n  <file-upload :thread="3"></file-upload>\n  ```\n\n### chunk-enabled\n\nWhether chunk uploads is enabled or not\n\n* **Type:** `Boolean`\n\n* **Default:** `false`\n\n* **Usage:**\n  ```html\n  <file-upload :chunk-enabled="true"></file-upload>\n  <file-upload chunk-enabled></file-upload>\n  ```\n\n### chunk\n\nAll the options to handle chunk uploads\n\n* **Type:** `Object`\n\n* **Default:**\n```js\n{\n    headers: {\n      \'Content-Type\': \'application/json\'\n    },\n    action: \'\',\n    minSize: 1048576,\n    maxActive: 3,\n    maxRetries: 5,\n\n    // This is the default Handler implemented in this package\n    // you can use your own handler if your protocol is different\n    handler: ChunkUploadDefaultHandler\n}\n```\n\n### drop\n\nDrag and drop upload\n\n* **Type:** `Boolean | Element | CSS selector`\n\n* **Default:** `false`\n\n* **Browser:** [http://caniuse.com/#feat=dragndrop](http://caniuse.com/#feat=dragndrop)\n\n* **Details:**\n\n  If set to `true`, read the parent component as a container\n\n* **Usage:**\n  ```html\n  <file-upload :drop="true"></file-upload>\n  ```\n\n\n\n\n\n### drop-directory\n\nWhether to open the drag directory\n\n* **Type:** `Boolean`\n\n* **Default:** `true`\n\n* **Details:**\n\n  If set to `false` filter out the directory\n\n* **Usage:**\n  ```html\n  <file-upload :drop-directory="false"></file-upload>\n  ```\n\n\n\n### add-index\n\n* **Type:** `Boolean, Number`\n\n* **Default:** `undefined`\n\n* **Version:** : `>=2.6.1`\n\n* **Details:**\n\n  The default value of the `index` parameter for the [`add()`](#instance-methods-add) method\n\n* **Usage:**\n  ```html\n  <file-upload :add-index="true"></file-upload>\n  ```\n\n\n\n\n## Options / Events\n\nThe files is changed to trigger the method\nDefault for `v-model` binding\n\n### @input\n* **Arguments:**\n\n  * `files: Array<File | Object>`\n\n\n* **Usage:**\n  ```html\n  <template>\n    <file-upload :value="files" @input="updatetValue"></file-upload>\n    \x3c!--or--\x3e\n    <file-upload v-model="files"></file-upload>\n  </template>\n  <script>\n  export default {\n    data() {\n      return {\n        files: []\n      }\n    },\n    methods: {\n      updatetValue(value) {\n        this.files = value\n      }\n    }\n  }\n  <\/script>\n  ```\n\n\n\n### @input-filter\n\nAdd, update, remove pre-filter\n\n* **Arguments:**\n\n  * `newFile: File | Object | undefined`  `Read and write`\n  * `oldFile: File | Object | undefined`  `Read only`\n  * `prevent: Function`   Call this function to prevent modification\n\n\n* **Details:**\n\n  If the `newFile` value is `undefined` \'is deleted\n  If the `oldFile` value is `undefined` \'is added\n  If `newFile`, `oldFile` is exist, it is updated\n\n  > Synchronization modify `newFile`\n  > Asynchronous Please use `update`,` add`, `remove`,` clear` method\n  > Asynchronous Please set an error first to prevent being uploaded\n\n  > Synchronization can not use `update`,` add`, `remove`,` clear` methods\n  > Asynchronous can not modify `newFile`\n\n* **Usage:**\n  ```html\n  <template>\n    <ul>\n      <li v-for="file in files">\n        <img :src="file.blob" width="50" height="50" />\n      </li>\n    </ul>\n    <file-upload :value="files" @input-filter="inputFilter"></file-upload>\n  </template>\n  <script>\n  export default {\n    data() {\n      return {\n        files: []\n      }\n    },\n    methods: {\n      inputFilter(newFile, oldFile, prevent) {\n        if (newFile && !oldFile) {\n          // Add file\n\n          // Filter non-image file\n          // Will not be added to files\n          if (!/\\.(jpeg|jpe|jpg|gif|png|webp)$/i.test(newFile.name)) {\n            return prevent()\n          }\n\n          // Create the \'blob\' field for thumbnail preview\n          newFile.blob = \'\'\n          let URL = window.URL || window.webkitURL\n          if (URL && URL.createObjectURL) {\n            newFile.blob = URL.createObjectURL(newFile.file)\n          }\n        }\n\n        if (newFile && oldFile) {\n          // Update file\n\n          // Increase the version number\n          if (!newFile.version) {\n            newFile.version = 0\n          }\n          newFile.version++\n        }\n\n        if (!newFile && oldFile) {\n          // Remove file\n\n          // Refused to remove the file\n          // return prevent()\n        }\n      }\n    }\n  }\n  <\/script>\n  ```\n\n### @input-file\n\nAdd, update, remove after\n\n* **Arguments:**\n\n  * `newFile: File | Object | undefined` `Read only`\n  * `oldFile: File | Object | undefined` `Read only`\n\n\n* **Details:**\n\n  If the `newFile` value is `undefined` \'is deleted\n  If the `oldFile` value is `undefined` \'is added\n  If `newFile`, `oldFile` is exist, it is updated\n\n\n  >You can use `update`,` add`, `remove`,` clear` methods in the event\n  >You can not modify the `newFile` object in the event\n  >You can not modify the `oldFile` object in the event\n\n* **Usage:**\n  ```html\n  <template>\n    <file-upload ref="upload" v-model="files" @input-file="inputFile"></file-upload>\n  </template>\n  <script>\n  export default {\n    data() {\n      return {\n        files: []\n      }\n    },\n    methods: {\n      inputFile(newFile, oldFile) {\n        if (newFile && !oldFile) {\n          // Add file\n        }\n\n        if (newFile && oldFile) {\n          // Update file\n\n          // Start upload\n          if (newFile.active !== oldFile.active) {\n            console.log(\'Start upload\', newFile.active, newFile)\n\n            // min size\n            if (newFile.size >= 0 && newFile.size < 100 * 1024) {\n              newFile = this.$refs.upload.update(newFile, {error: \'size\'})\n            }\n          }\n\n          // Upload progress\n          if (newFile.progress !== oldFile.progress) {\n            console.log(\'progress\', newFile.progress, newFile)\n          }\n\n          // Upload error\n          if (newFile.error !== oldFile.error) {\n            console.log(\'error\', newFile.error, newFile)\n          }\n\n          // Uploaded successfully\n          if (newFile.success !== oldFile.success) {\n            console.log(\'success\', newFile.success, newFile)\n          }\n        }\n\n        if (!newFile && oldFile) {\n          // Remove file\n\n          // Automatically delete files on the server\n          if (oldFile.success && oldFile.response.id) {\n            // $.ajax({\n            //   type: \'DELETE\',\n            //   url: \'/file/delete?id=\' + oldFile.response.id,\n            // });\n          }\n        }\n\n        // Automatic upload\n        if (Boolean(newFile) !== Boolean(oldFile) || oldFile.error !== newFile.error) {\n          if (!this.$refs.upload.active) {\n            this.$refs.upload.active = true\n          }\n        }\n      }\n    }\n  }\n  <\/script>\n  ```\n\n\n\n## Instance / Data\n\n### features\n\nUsed to determine the browser support features\n\n* **Type:** `Object`\n\n* **Read only:** `true`\n\n* **Default:** `{ html5: true, directory: false, drop: false }`\n\n* **Usage:**\n  ```html\n  <app>\n    <file-upload ref="upload"></file-upload>\n    <span v-show="$refs.upload && $refs.upload.features.drop">Support drag and drop upload</span>\n    <span v-show="$refs.upload && $refs.upload.features.directory">Support folder upload</span>\n    <span v-show="$refs.upload && $refs.upload.features.html5">Support for HTML5</span>\n  </app>\n  ```\n\n\n\n### active\n\nActivation or abort upload\n\n* **Type:** `Boolean`\n\n* **Read only:** `false`\n\n* **Default:** `false`\n\n* **Usage:**\n  ```html\n  <app>\n    <file-upload ref="upload"></file-upload>\n    <span v-if="!$refs.upload || !$refs.upload.active" @click="$refs.upload.active = true">Start upload</span>\n    <span v-else @click="$refs.upload.active = false">Stop upload</span>\n  </app>\n  ```\n\n\n\n### dropActive\n\nIs dragging\n\n* **Type:** `Boolean`\n\n* **Read only:** `true`\n\n* **Default:** `false`\n\n* **Usage:**\n  ```html\n  <app>\n    <file-upload ref="upload" :drop="true"></file-upload>\n    <span v-show="$refs.upload && $refs.upload.dropActive">Drag and drop here for upload</span>\n  </app>\n  ```\n\n\n\n\n\n### uploaded\n\nAll uploaded\n\n* **Type:** `Boolean`\n\n* **Read only:** `true`\n\n* **Default:** `true`\n\n* **Usage:**\n  ```html\n  <app>\n    <file-upload ref="upload"></file-upload>\n    <span v-show="$refs.upload && $refs.upload.uploaded">All files have been uploaded</span>\n  </app>\n  ```\n\n\n\n\n\n## Instance / Methods\n\n\n\n### get()\n\nUse `id` to get a file object\n\n* **Arguments:**\n\n  * `id: File | Object | String`\n\n\n* **Result:** `File | Object | Boolean` There is a return file, object that otherwise returns `false`\n\n\n\n### add()\n\nAdd one or more files\n\n* **Arguments:**\n\n  * `files: Array<File | window.File | Object> | File | window.File | Object`     If it is an array of responses will be an array\n  * `index: Number | Boolean` = [`props.add-index`](#options-props-add-index)   `true = ` Start, `false = ` End, `Number = ` Index\n\n\n* **Result:** `Object | Array<File | Object> | Boolean`     The incoming array is returned to the array otherwise the object or `false`\n\n* **Usage:**\n  ```html\n  <template>\n    <ul>\n      <li v-for="file in files">\n        <span>{{file.name}}</span>\n      </li>\n    </ul>\n    <file-upload v-model="files"></file-upload>\n    <button type="button" @click.prevent="addText">Add a file</button>\n  </template>\n  <script>\n  export default {\n    data() {\n      return {\n        files: []\n      }\n    },\n    methods: {\n      addText() {\n        let file = new window.File([\'foo\'], \'foo.txt\', {\n          type: "text/plain",\n        })\n        this.$refs.upload.add(file)\n      }\n    }\n  }\n  <\/script>\n  ```\n\n\n###  addInputFile()\n\nAdd the file selected by `<input type = "file">` to the upload list\n\n* **Arguments:**\n\n  * `el: HTMLInputElement`     File element\n\n\n* **Result:** `Promise<Array<File>>`  Added list of files\n\n* **Version:** : `>=3.0.0`\n\nThe results of Vue 2. X\n\n* **Result:** `Array<File>`  Added list of files\n\n* **Version:** : `<3.0.0`\n\n\n\n###  addDataTransfer()\n\nAdd files that are dragged or pasted into the upload list\n\n* **Arguments:**\n\n  * `dataTransfer: DataTransfer`  Drag or paste data\n\n\n* **Result:** `Promise<Array<File>>`   Added list of files\n\n\n* **Version:** : `>=2.5.1`\n\n\n\n### update()\n\nUpdate a file object\n\n* **Arguments:**\n\n  * `id: File | Object | String`\n  * `data: Object`                    Updated data object\n\n\n* **Result:**  `Object | Boolean`  Successfully returned `newFile` failed to return` false`\n\n\n* **Usage:**\n  ```html\n  <template>\n    <ul>\n      <li v-for="file in files">\n        <span>{{file.name}}</span>\n        <button v-show="file.active" type="button" @click.prevent="abort(file)">Abort</button>\n      </li>\n    </ul>\n    <file-upload v-model="files"></file-upload>\n  </template>\n  <script>\n  export default {\n    data() {\n      return {\n        files: []\n      }\n    },\n    methods: {\n      abort(file) {\n        this.$refs.upload.update(file, {active: false})\n        // or\n        // this.$refs.upload.update(file, {error: \'abort\'})\n      }\n    }\n  }\n  <\/script>\n  ```\n\n### remove()\n\nRemove a file object\n\n* **Arguments:**\n\n  * `id: File | Object | String`\n\n\n* **Result:**  `Object | Boolean`  Successfully returned `oldFile` failed to return` false`\n\n* **Usage:**\n  ```html\n  <template>\n    <ul>\n      <li v-for="file in files">\n        <span>{{file.name}}</span>\n        <button type="button" @click.prevent="remove(file)">Remove</button>\n      </li>\n    </ul>\n    <file-upload v-model="files"></file-upload>\n  </template>\n  <script>\n  export default {\n    data() {\n      return {\n        files: []\n      }\n    },\n    methods: {\n      remove(file) {\n        this.$refs.upload.remove(file)\n      }\n    }\n  }\n  <\/script>\n  ```\n\n### replace()\n  Replace the location of the two files\n\n* **Arguments:**\n\n  * `id1: File | Object | String`\n  * `id2: File | Object | String`\n\n\n* **Result:**  `Boolean`\n\n\n### clear()\n\nEmpty the file list\n\n* **Result:**  `Boolean`  Always return `true`\n\n\n\n## Instance / File\n\n\n\n> **File object in the `@input-filter` event outside the use of [`update`](#instance-methods-update) method**\n\n\n\n\n### fileObject\n\n* **Type:** `Boolean`\n\n* **Read only:** `true`\n\n* **Required:** `true`\n\n* **Default:** `true`\n\n* **Version:** : `>=2.6.0`\n\n* **Details:**\n\n  If the attribute does not exist, the object will not be processed internally\n  If the attribute does not exist, it is not `File` but `Object`\n\n\n\n\n### id\n\nFile ID\n\n* **Type:** `String | Number`\n\n* **Read only:** `false`\n\n* **Default:** `Math.random().toString(36).substr(2)`\n\n* **Details:**\n\n  >`id` can not be repeated\n  >Upload can not modify `id`\n\n\n### size\n\nFile size\n\n* **Type:** `Number`\n\n* **Read only:** `false`\n\n* **Default:** `-1`\n\n* **Browser:** `> IE9`\n\n\n### name\n\nFilename\n\n* **Type:** `String`\n\n* **Read only:** `false`\n\n* **Default:** ` `\n\n* **Details:**\n\n  Format:  `directory/filename.gif`  `filename.gif`\n\n\n\n### type\n\nMIME type\n\n* **Type:** `String`\n\n* **Read only:** `false`\n\n* **Default:** ` `\n\n* **Browser:** `> IE9`\n\n* **Details:**\n\n  Format:  `image/gif`   `image/png`  `text/html`\n\n\n\n\n### active\n\nActivation or abort upload\n\n* **Type:** `Boolean`\n\n* **Read only:** `false`\n\n* **Default:** `false`\n\n* **Details:**\n\n  `true` = Upload\n  `false` = Abort\n\n\n\n\n\n\n### error\n\nUpload failed error code\n\n* **Type:** `String`\n\n* **Read only:** `false`\n\n* **Default:** ` `\n\n* **Details:**\n\n  Built-in\n  `size`, `extension`, `timeout`, `abort`, `network`, `server`, `denied`\n\n\n\n\n### success\n\nWhether the upload was successful\n\n* **Type:** `Boolean`\n\n* **Read only:** `false`\n\n* **Default:** `false`\n\n\n### putAction\n\nCustomize the current file `PUT` URL\n\n* **Type:** `String`\n\n* **Read only:** `false`\n\n* **Default:** `this.putAction`\n\n\n\n### postAction\n\nCustomize the current file `POST` URL\n\n* **Type:** `String`\n\n* **Read only:** `false`\n\n* **Default:** `this.postAction`\n\n\n\n\n### headers\n\nCustomize the current file `HTTP` Header\n\n* **Type:** `Object`\n\n* **Read only:** `false`\n\n* **Default:** `this.headers`\n\n\n### data\n\nCustomize the current file `body` or` query` to attach content\n\n* **Type:** `Object`\n\n* **Read only:** `false`\n\n* **Default:** `this.data`\n\n\n### timeout\n\nCustomize the upload timeout for a current single file\n\n* **Type:** `Number`\n\n* **Read only:** `false`\n\n* **Default:** `this.timeout`\n\n\n### response\n\nResponse data\n\n* **Type:** `Object | String`\n\n* **Read only:** `false`\n\n* **Default:** `{}`\n\n\n\n\n### progress\n\nUpload progress\n\n* **Type:** `String`\n\n* **Read only:** `false`\n\n* **Default:** `0.00`\n\n* **Browser:** `> IE9`\n\n\n\n### speed\n\nPer second upload speed\n\n* **Type:** `Number`\n\n* **Read only:** `true`\n\n* **Default:** `0`\n\n* **Browser:** `> IE9`\n\n\n\n\n### xhr\n\n`HTML5` upload` XMLHttpRequest` object\n\n* **Type:** `XMLHttpRequest`\n\n* **Read only:** `true`\n\n* **Default:** `undefined`\n\n* **Browser:** `> IE9`\n\n\n\n\n### iframe\n\n`HTML4` upload` iframe` element\n\n* **Type:** `Element`\n\n* **Read only:** `true`\n\n* **Default:** `undefined`\n\n* **Browser:** `= IE9`\n'},819:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>o});const o='## 入门开始\n\n### NPM\n\n``` bash\nnpm install vue-upload-component --save\n```\n\n#### Vue3\n``` bash\nnpm install vue-upload-component@next --save\n```\n\n``` js\nconst VueUploadComponent = require(\'vue-upload-component\')\napp.component(\'file-upload\', VueUploadComponent)\n// or \nimport VueUploadComponent from \'vue-upload-component\'\napp.component(\'file-upload\', VueUploadComponent)\n```\n\n### Typescript\n``` js\nimport VueUploadComponent from \'vue-upload-component/src/FileUpload.vue\'\n\n// or\nimport VueUploadComponent from \'vue-upload-component\'\n// vue-upload-component/dist/vue-upload-component.d.ts\n```\n\n\n### Curated\n\n**No data**\n\n\n### 直接使用\n\n\nunpkg\n\n``` html\n<script src="https://unpkg.com/vue"><\/script>\n<script src="https://unpkg.com/vue-upload-component"><\/script>\n<script>\nVue.component(\'file-upload\', VueUploadComponent)\n<\/script>\n```\n\njsDelivr\n\n``` html\n<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"><\/script>\n<script src="https://cdn.jsdelivr.net/npm/vue-upload-component"><\/script>\n<script>\nVue.component(\'file-upload\', VueUploadComponent)\n<\/script>\n```\n\n\n### 简单的例子\n\n\n\n```html\n<!DOCTYPE html>\n<html>\n<head>\n  <meta charset="utf-8">\n  <title>Vue-upload-component Test</title>\n  <script src="https://unpkg.com/vue"><\/script>\n  <script src="https://unpkg.com/vue-upload-component"><\/script>\n</head>\n<body>\n<div id="app">\n  <ul>\n    <li v-for="file in files">{{file.name}} - Error: {{file.error}}, Success: {{file.success}}</li>\n  </ul>\n  <file-upload\n    ref="upload"\n    v-model="files"\n    post-action="/post.method"\n    put-action="/put.method"\n    @input-file="inputFile"\n    @input-filter="inputFilter"\n  >\n  上传文件\n  </file-upload>\n  <button v-show="!$refs.upload || !$refs.upload.active" @click.prevent="$refs.upload.active = true" type="button">开始上传</button>\n  <button v-show="$refs.upload && $refs.upload.active" @click.prevent="$refs.upload.active = false" type="button">停止上传</button>\n</div>\n<script>\nnew Vue({\n  el: \'#app\',\n  data: function () {\n    return {\n      files: []\n    }\n  },\n  components: {\n    FileUpload: VueUploadComponent\n  },\n  methods: {\n    /**\n     * Has changed\n     * @param  Object|undefined   newFile   只读\n     * @param  Object|undefined   oldFile   只读\n     * @return undefined\n     */\n    inputFile: function (newFile, oldFile) {\n      if (newFile && oldFile && !newFile.active && oldFile.active) {\n        // 获得相应数据\n        console.log(\'response\', newFile.response)\n        if (newFile.xhr) {\n          //  获得响应状态码\n          console.log(\'status\', newFile.xhr.status)\n        }\n      }\n    },\n    /**\n     * Pretreatment\n     * @param  Object|undefined   newFile   读写\n     * @param  Object|undefined   oldFile   只读\n     * @param  Function           prevent   阻止回调\n     * @return undefined\n     */\n    inputFilter: function (newFile, oldFile, prevent) {\n      if (newFile && !oldFile) {\n        // 过滤不是图片后缀的文件\n        if (!/\\.(jpeg|jpe|jpg|gif|png|webp)$/i.test(newFile.name)) {\n          return prevent()\n        }\n      }\n\n      // 创建 blob 字段 用于图片预览\n      newFile.blob = \'\'\n      let URL = window.URL || window.webkitURL\n      if (URL && URL.createObjectURL) {\n        newFile.blob = URL.createObjectURL(newFile.file)\n      }\n    }\n  }\n});\n<\/script>\n</body>\n</html>\n```\n\n\n\n### SSR (服务器同构)\n\n\n```html\n<template>\n  <file-upload v-model="files" post-action="/">Upload file</file-upload>\n</template>\n<style>\n/*\nimport \'~vue-upload-component/dist/vue-upload-component.part.css\'\n@import "~vue-upload-component/dist/vue-upload-component.part.css";\n\n或\n\n\n */\n.file-uploads {\n  overflow: hidden;\n  position: relative;\n  text-align: center;\n  display: inline-block;\n}\n.file-uploads.file-uploads-html4 input[type="file"] {\n  opacity: 0;\n  font-size: 20em;\n  z-index: 1;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  position: absolute;\n  width: 100%;\n  height: 100%;\n}\n.file-uploads.file-uploads-html5 input[type="file"] {\n  overflow: hidden;\n  position: fixed;\n  width: 1px;\n  height: 1px;\n  z-index: -1;\n  opacity: 0;\n}\n</style>\n<script>\nimport FileUpload from \'vue-upload-component/dist/vue-upload-component.part.js\'\nexport default {\n  components: {\n    FileUpload,\n  },\n  data() {\n    return {\n      files: []\n    }\n  },\n}\n<\/script>\n```\n\n\n** 或者 **\n\n\n```js\nimport FileUpload from \'vue-upload-component/src\'\n```\n\nwebpack.config.js\n\n```js\nconst nodeExternals = require(\'webpack-node-externals\');\n{\n  //...\n  externals: [\n    nodeExternals({whitelist:[/^vue-upload-component\\/src/]})\n  ]\n  //...\n}\n```\n\n* [https://github.com/liady/webpack-node-externals](https://github.com/liady/webpack-node-externals)  \n\n* [**`vue-hackernews` 演示**](https://github.com/lian-yue/vue-hackernews-2.0/)  \n\n* [**浏览修改文件**](https://github.com/lian-yue/vue-hackernews-2.0/commit/bd6c58a30cc6b8ba6c0148e737b3ce9336b99cf8)\n\n\n\n### 扩展分片上传\n  **CustomUpload.js**\n  ```js\n//   import axios from \'axios\'\n//   import VueUploadComponent from \'vue-upload-component\'\n//   import { STORAGE_CREATE, STORAGE_UPDATE, STORAGE_UPLOAD } from \'src/urls\'\n//\n//   VueUploadComponent.props.partThread = {\n//     type: Number,\n//     default: 2,\n//   }\n//   VueUploadComponent.props.partTimeout = {\n//     type: String,\n//     default: \'\',\n//   }\n//\n//   VueUploadComponent.Methods.partInit = async functuon (file) {\n//     let data = await axios({\n//       method: \'post\',\n//       size: file.size,\n//       name: file.name,\n//     })\n//     return data\n//   }\n//   VueUploadComponent.props.customAction.default = async function (_file, component) {\n//     let file = _file\n//     let fileObject = file.file\n//\n//     // 创建 文件\n//     let data = await axios({\n//       method: \'post\',\n//     })\n// component.partMethod, component.partAction, { user: \'me\' }, {}, { size: fileObject.size, name: file.name }, {}, 2)\n//     file = component.update(file, { storage })\n//     if (!file || !file.fileObject || !file.active) {\n//       throw new Error(\'abort\')\n//     }\n//     if (file.error) {\n//       throw new Error(file.error)\n//     }\n//\n//   }\n  ```\n\n\n## 选项 / 属性\n\n\n### input-id\n\ninput 标签的 `id` 属性\n\n* **类型:** `String`\n\n* **默认值:** `this.name`\n\n* **示例:**\n  ```html\n  <file-upload input-id="file2"></file-upload>\n  \x3c!--输出--\x3e\n  <input id="file2" />\n  ```\n\n\n\n\n\n### name\n\ninput标签的 `name` 属性\n\n* **类型:** `String`\n\n* **默认值:** `file`\n\n* **示例:**\n  ```html\n  <file-upload name="file"></file-upload>\n  \x3c!--输出--\x3e\n  <input name="file" />\n  ```\n\n\n\n\n\n### post-action\n\n`POST` 请求的上传URL\n\n* **类型:** `String`\n\n* **默认值:** `undefined`\n\n* **示例:**\n  ```html\n  <file-upload post-action="/upload/post.php"></file-upload>\n  ```\n\n\n\n\n\n### put-action\n\n`PUT` 请求的上传URL\n\n* **类型:** `String`\n\n* **默认值:** `undefined`\n\n* **浏览器:** `> IE9`\n\n* **详细:**  \n\n  `put-action` 不为空请优先 `PUT` 请求  \n\n* **示例:**\n  ```html\n  <file-upload put-action="/upload/put.php"></file-upload>\n  ```\n\n\n\n### custom-action\n\n自定义上传方法\n\n* **类型:** `async Function`\n\n* **默认值:** `undefined`\n\n* **详细:**  \n\n  `custom-action` 优先级高于 `put-action, post-action`\n\n* **示例:**\n  ```html\n  <file-upload :custom-action="customAction"></file-upload>\n  ```\n  ```js\n  async function customAction(file, component) {\n    // return await component.uploadPut(file)\n    return await component.uploadHtml4(file)\n  }\n  ```\n\n\n\n### headers\n\n自定义上传请求 `header` 数据\n\n* **类型:** `Object`\n\n* **默认值:** `{}`\n\n* **浏览器:** `> IE9`\n\n* **示例:**\n  ```html\n  <file-upload :headers="{\'X-Token-CSRF\': \'code\'}"></file-upload>\n  ```\n\n\n\n\n\n### data\n\n`POST 请求`: 附加请求的 body  \n`PUT 请求`: 附加请求的 query  \n\n* **类型:** `Object`\n\n* **默认值:** `{}`\n\n* **示例:**\n  ```html\n  <file-upload :data="{access_token: \'access_token\'}"></file-upload>\n  ```\n\n\n\n\n### value, v-model\n\n文件列表\n\n* **类型:** `Array<File | Object>`\n\n* **默认值:** `[]`\n\n* **详细:**  \n\n  浏览 **[`File`](#file)** 详细信息  \n  > 为了防止不可预知的错误，不可直接修改 `files`，请使用 [`add`](#实例-方法-add), [`update`](#实例-方法-update), [`remove`](#实例-方法-remove) 方法修改\n\n* **示例:**\n  ```html\n  <file-upload :value="files" @input="updatetValue"></file-upload>\n  \x3c!--或--\x3e\n  <file-upload v-model="files"></file-upload>\n  ```\n\n\n\n\n\n### accept\n\n表单的`accept`属性, MIME type  \n\n* **类型:** `String`\n\n* **默认值:** `undefined`\n\n* **浏览器:** `> IE9`\n\n* **示例:**\n  ```html\n  <file-upload accept="image/png,image/gif,image/jpeg,image/webp"></file-upload>\n  \x3c!--或--\x3e\n  <file-upload accept="image/*"></file-upload>\n  ```\n\n\n\n\n\n### multiple\n\n文件表单的 `multiple` 属性  \n是否允许选择多个文件  \n\n* **类型:** `Boolean`\n\n* **默认值:** `false`\n\n* **详细:**  \n\n  如果是 `false` `files` 里面最多只有一个文件 多的会自动删除  \n\n* **示例:**\n  ```html\n  <file-upload :multiple="true"></file-upload>\n  ```\n\n\n\n### directory\n\n文件表单的 `directory` 属性  \n是否是上传文件夹  \n\n* **类型:** `Boolean`\n\n* **默认值:** `false`\n\n* **浏览器:** [http://caniuse.com/#feat=input-file-directory](http://caniuse.com/#feat=input-file-directory)\n\n* **示例:**\n  ```html\n  <file-upload :directory="true" :multiple="true"></file-upload>\n  ```\n\n\n\n\n\n### extensions\n\n允许上传的文件后缀\n\n* **类型:** `Array | String | RegExp`\n\n* **默认值:** `undefined`\n\n* **示例:**\n  ```html\n  <file-upload extensions="jpg,gif,png,webp"></file-upload>\n  \x3c!--或--\x3e\n  <file-upload :extensions="[\'jpg\', \'gif\', \'png\', \'webp\']"></file-upload>\n  \x3c!--或--\x3e\n  <file-upload :extensions="/\\.(gif|jpe?g|png|webp)$/i"></file-upload>\n  ```\n\n\n\n\n### size\n\n允许上传的最大字节\n\n* **类型:** `Number`\n\n* **默认值:** `0`\n\n* **浏览器:** `> IE9`\n\n* **详细:**\n\n  `0` 等于不限制\n\n* **示例:**\n  ```html\n  <file-upload :size="1024 * 1024"></file-upload>\n  ```\n\n\n\n\n### timeout\n\n上传超时时间毫秒\n\n* **类型:** `Number`\n\n* **默认值:** `0`\n\n* **浏览器:** `> IE9`\n\n* **示例:**\n  ```html\n  <file-upload :timeout="600 * 1000"></file-upload>\n  ```\n\n\n### maximum\n\n列表最大文件数\n\n* **类型:** `Number`\n\n* **默认值:** `props.multiple ? 0 : 1`\n\n* **示例:**\n  ```html\n  <file-upload :maximum="10"></file-upload>\n  ```\n\n\n\n\n### thread\n\n同时并发上传的文件数量 线程数  \n\n* **类型:** `Number`\n\n* **默认值:** `1`\n\n* **浏览器:** `> IE9`\n\n* **示例:**\n  ```html\n  <file-upload :thread="3"></file-upload>\n  ```\n\n\n\n\n\n### drop\n\n拖拽上传  \n\n* **类型:** `Boolean | Element | CSS selector`\n\n* **默认值:** `false`\n\n* **浏览器:** [http://caniuse.com/#feat=dragndrop](http://caniuse.com/#feat=dragndrop)\n\n* **详细:**\n\n  如果设置成 `true` 则读取父组件作为容器  \n\n* **示例:**\n  ```html\n  <file-upload :drop="true"></file-upload>\n  ```\n\n\n\n\n\n### drop-directory\n\n是否开启拖拽目录  \n\n* **类型:** `Boolean`\n\n* **默认值:** `true`\n\n* **详细:**\n\n  如果设置成 `false` 则过滤掉目录\n\n* **示例:**\n  ```html\n  <file-upload :drop-directory="false"></file-upload>\n  ```\n\n\n### add-index\n\n* **类型:** `Boolean, Number`\n\n* **默认值:** `undefined`\n\n* **版本:** `>= 2.6.1`\n\n* **详细:**\n\n  [`add()`](#实例-方法-add) 方法 `index` 参数的默认值\n\n* **示例:**\n  ```html\n  <file-upload :add-index="true"></file-upload>\n  ```\n\n\n\n## 选项 / 事件\n\n文件被改变触发的方法  \n默认用于`v-model`绑定\n\n### @input\n* **参数:**\n\n  * `files: Array<File | Object>`\n\n\n* **示例:**\n  ```html\n  <template>\n    <file-upload :value="files" @input="updatetValue"></file-upload>\n    \x3c!--或者--\x3e\n    <file-upload v-model="files"></file-upload>\n  </template>\n  <script>\n  export default {\n    data() {\n      return {\n        files: []\n      }\n    },\n    methods: {\n      updatetValue(value) {\n        this.files = value\n      }\n    }\n  }\n  <\/script>\n  ```\n\n\n\n### @input-filter\n\nAdd, update, remove pre-filter  \n\n* **参数:**\n\n  * `newFile: File | Object | undefined`  `读写`\n  * `oldFile: File | Object | undefined`  `只读`\n  * `prevent: Function`   调用该方法 阻止修改\n\n\n* **详细:**\n\n  如果 `newFile` 值为 `undefined` 则是删除  \n  如果 `oldFile` 值为 `undefined` 则是添加  \n  如果 `newFile`, `oldFile` 都存在则是更新\n\n  > 事件内同步处理请直接修改 `newFile`  \n  > 事件内异步处理请使用 `update`, `add`, `remove`, `clear` 方法  \n  > 异步请先设置一个错误以防止被上传\n\n  > 同步不能使用 `update`, `add`, `remove`, `clear` 方法  \n  > 异步不能修改 `newFile`\n\n\n* **示例:**  \n  ```html\n  <template>\n    <ul>\n      <li v-for="file in files">\n        <img :src="file.blob" width="50" height="50" />\n      </li>\n    </ul>\n    <file-upload :value="files" @input-filter="inputFilter"></file-upload>\n  </template>\n  <script>\n  export default {\n    data() {\n      return {\n        files: []\n      }\n    },\n    methods: {\n      inputFilter(newFile, oldFile, prevent) {\n        if (newFile && !oldFile) {\n          // 添加文件\n\n          // 过滤非图片文件\n          // 不会添加到 files 去\n          if (!/\\.(jpeg|jpe|jpg|gif|png|webp)$/i.test(newFile.name)) {\n            return prevent()\n          }\n\n          // 创建 `blob` 字段 用于缩略图预览\n          newFile.blob = \'\'\n          let URL = window.URL || window.webkitURL\n          if (URL && URL.createObjectURL) {\n            newFile.blob = URL.createObjectURL(newFile.file)\n          }\n        }\n\n        if (newFile && oldFile) {\n          // 更新文件\n\n          // 增加版本号\n          if (!newFile.version) {\n            newFile.version = 0\n          }\n          newFile.version++\n        }\n\n        if (!newFile && oldFile) {\n          // 移除文件\n\n          // 拒绝删除文件\n          // return prevent()\n        }\n      }\n    }\n  }\n  <\/script>\n  ```\n\n### @input-file\n\n添加，更新，移除 后\n\n* **参数:**\n\n  * `newFile: File | Object | undefined` `只读`\n  * `oldFile: File | Object | undefined` `只读`\n\n\n* **详细:**\n\n  如果 `newFile` 值为 `undefined` 则是删除  \n  如果 `oldFile` 值为 `undefined` 则是添加  \n  如果 `newFile`, `oldFile` 都存在则是更新\n\n  >事件内可使用 `update`, `add`, `remove`, `clear` 方法  \n  >事件内不可修改 `newFile` 对象  \n  >事件内不可修改 `oldFile` 对象\n\n* **示例:**\n  ```html\n  <template>\n    <file-upload ref="upload" v-model="files" @input-file="inputFile"></file-upload>\n  </template>\n  <script>\n  export default {\n    data() {\n      return {\n        files: []\n      }\n    },\n    methods: {\n      inputFile(newFile, oldFile) {\n        if (newFile && !oldFile) {\n          // 添加文件\n        }\n\n        if (newFile && oldFile) {\n          // 更新文件\n\n          // 开始上传\n          if (newFile.active !== oldFile.active) {\n            console.log(\'Start upload\', newFile.active, newFile)\n\n            // 限定最小字节\n            if (newFile.size >= 0 && newFile.size < 100 * 1024) {\n              newFile = this.$refs.upload.update(newFile, {error: \'size\'})\n            }\n          }\n\n          // 上传进度\n          if (newFile.progress !== oldFile.progress) {\n            console.log(\'progress\', newFile.progress, newFile)\n          }\n\n          // 上传错误\n          if (newFile.error !== oldFile.error) {\n            console.log(\'error\', newFile.error, newFile)\n          }\n\n          // 上传成功\n          if (newFile.success !== oldFile.success) {\n            console.log(\'success\', newFile.success, newFile)\n          }\n        }\n\n        if (!newFile && oldFile) {\n          // 删除文件\n\n          // 自动删除 服务器上的文件\n          if (oldFile.success && oldFile.response.id) {\n            // $.ajax({\n            //   type: \'DELETE\',\n            //   url: \'/file/delete?id=\' + oldFile.response.id,\n            // });\n          }\n        }\n\n        // 自动上传\n        if (Boolean(newFile) !== Boolean(oldFile) || oldFile.error !== newFile.error) {\n          if (!this.$refs.upload.active) {\n            this.$refs.upload.active = true\n          }\n        }\n      }\n    }\n  }\n  <\/script>\n  ```\n\n\n\n## 实例 / 数据\n\n### features\n\n用于判断浏览器支持的特性\n\n* **类型:** `Object`\n\n* **只读:** `true`\n\n* **默认值:** `{ html5: true, directory: false, drop: false }`\n\n* **示例:**\n  ```html\n  <app>\n    <file-upload ref="upload"></file-upload>\n    <span v-show="$refs.upload && $refs.upload.features.drop">支持拖拽上传</span>\n    <span v-show="$refs.upload && $refs.upload.features.directory">支持文件夹上传</span>\n    <span v-show="$refs.upload && $refs.upload.features.html5">支持HTML5</span>\n  </app>\n  ```\n\n\n\n### active\n\n激活或停止上传\n\n* **类型:** `Boolean`\n\n* **只读:** `false`\n\n* **默认值:** `false`\n\n* **示例:**\n  ```html\n  <app>\n    <file-upload ref="upload"></file-upload>\n    <span v-if="!$refs.upload || !$refs.upload.active" @click="$refs.upload.active = true">开始上传</span>\n    <span v-else @click="$refs.upload.active = false">停止上传</span>\n  </app>\n  ```\n\n\n\n### dropActive\n\n是否正在拖拽\n\n* **类型:** `Boolean`\n\n* **只读:** `true`\n\n* **默认值:** `false`\n\n* **示例:**\n  ```html\n  <app>\n    <file-upload ref="upload" :drop="true"></file-upload>\n    <span v-show="$refs.upload && $refs.upload.dropActive">拖拽到这里上传</span>\n  </app>\n  ```\n\n\n\n\n\n### uploaded\n\n是否全部已上传\n\n* **类型:** `Boolean`\n\n* **只读:** `true`\n\n* **默认值:** `true`\n\n* **示例:**\n  ```html\n  <app>\n    <file-upload ref="upload"></file-upload>\n    <span v-show="$refs.upload && $refs.upload.uploaded">全部文件已上传完毕</span>\n  </app>\n  ```\n\n\n\n\n\n## 实例 / 方法\n\n\n\n### get()\n\n使用`id`获得某个对象\n\n* **参数:**\n\n  * `id: File | Object | String`\n\n\n* **结果:** `File | Object | Boolean` 存在返回文件对象否则返回 `false`\n\n\n\n### add()\n\n添加一个或多个文件\n\n* **参数:**\n\n  * `files: Array<File | window.File | Object> | File | window.File | Object`     如果它是一个数组的响应将是一个数组\n  * `index: Number | Boolean` = [`props.add-index`](#选项-属性-add-index)   `true = ` 开始位置, `false = ` 结束位置, `Number = ` 下标位置\n\n\n* **结果:** `Object | Array<File | Object> | Boolean`     传入的是数组返回数组否则对象或`false`\n\n* **示例:**\n  ```html\n  <template>\n    <ul>\n      <li v-for="file in files">\n        <span>{{file.name}}</span>\n      </li>\n    </ul>\n    <file-upload v-model="files"></file-upload>\n    <button type="button" @click.prevent="addText">添加文件</button>\n  </template>\n  <script>\n  export default {\n    data() {\n      return {\n        files: []\n      }\n    },\n    methods: {\n      addText() {\n        let file = new window.File([\'foo\'], \'foo.txt\', {\n          type: "text/plain",\n        })\n        this.$refs.upload.add(file)\n      }\n    }\n  }\n  <\/script>\n  ```\n\n\n###  addInputFile()\n\n把`<input type="file">`选择的文件添加进上传列表  \n\n* **参数:**\n\n  * `el: HTMLInputElement`     文件元素\n\n\n* **结果:** `Promise<Array<File>>`  返回已添加的文件列表\n\n* **版本:** : `>=3.0.0`\n\n* **结果:** `Promise<Array<File>>`  返回已添加的文件列表\n\nvue 2.x 的结果\n\n* **结果:** `Array<File>`  返回已添加的文件列表\n\n* **版本:** : `<=3.0.0`\n\n\n\n###  addDataTransfer()\n\n把拖拽或者粘贴的数据的文件添加进上传列表  \n\n* **参数:**\n\n  * `dataTransfer: DataTransfer`  拖拽或者粘贴的数据\n\n\n* **结果:** `Promise<Array<File>>`   返回已添加的文件列表\n\n\n* **版本:** : `>=2.5.1`\n\n\n\n### update()\n\n更新某个对象\n\n* **参数:**\n\n  * `id: File | Object | String`\n  * `data: Object`                    更新的数据对象\n\n\n* **结果:**  `Object | Boolean`  成功返回 `newFile` 失败返回 `false`\n\n\n* **示例:**\n  ```html\n  <template>\n    <ul>\n      <li v-for="file in files">\n        <span>{{file.name}}</span>\n        <button v-show="file.active" type="button" @click.prevent="abort(file)">停止</button>\n      </li>\n    </ul>\n    <file-upload v-model="files"></file-upload>\n  </template>\n  <script>\n  export default {\n    data() {\n      return {\n        files: []\n      }\n    },\n    methods: {\n      abort(file) {\n        this.$refs.upload.update(file, {active: false})\n        // 或\n        // this.$refs.upload.update(file, {error: \'abort\'})\n      }\n    }\n  }\n  <\/script>\n  ```\n\n### remove()\n\n移除某个文件对象\n\n* **参数:**\n\n  * `id: File | Object | String`\n\n\n* **结果:**  `Object | Boolean`  成功返回 `oldFile` 失败返回 `false`\n\n* **示例:**\n  ```html\n  <template>\n    <ul>\n      <li v-for="file in files">\n        <span>{{file.name}}</span>\n        <button type="button" @click.prevent="remove(file)">移除</button>\n      </li>\n    </ul>\n    <file-upload v-model="files"></file-upload>\n  </template>\n  <script>\n  export default {\n    data() {\n      return {\n        files: []\n      }\n    },\n    methods: {\n      remove(file) {\n        this.$refs.upload.remove(file)\n      }\n    }\n  }\n  <\/script>\n  ```\n\n\n### replace()\n  替换两个文件的位置\n\n* **参数:**\n\n  * `id1: File | Object | String`\n  * `id2: File | Object | String`\n\n\n* **结果:**  `Boolean`\n\n\n\n### clear()\n\n清空文件列表\n\n* **结果:**  `Boolean`  总是返回 `true`\n\n\n\n## 实例 / File\n\n\n> **文件对象在`input-filter`事件外修改请使用 [`update`](#实例-方法-update) 方法**\n\n\n### fileObject\n\n* **类型:** `Boolean`\n\n* **只读:** `true`\n\n* **Required:** `true`\n\n* **默认值:** `true`\n\n* **版本:** : `>=2.6.0`\n\n* **详细:**\n\n  如果属性不存在，则不会在内部处理该对象  \n  如果属性不存在，它不是 `File` 而是 `Object`\n\n\n\n### id\n\n文件id\n\n* **类型:** `String | Number`\n\n* **只读:** `false`\n\n* **默认值:** `Math.random().toString(36).substr(2)`\n\n* **详细:**\n\n  >`id` can not be repeated  \n  >Upload can not modify `id`\n\n\n### size\n\n文件大小\n\n* **类型:** `Number`\n\n* **只读:** `false`\n\n* **默认值:** `-1`\n\n* **浏览器:** `> IE9`\n\n\n### name\n\n文件名  \n\n* **类型:** `String`\n\n* **只读:** `false`\n\n* **默认值:** ` `\n\n* **详细:**\n\n  格式:  `directory/filename.gif`  `filename.gif`  \n\n\n\n### type\n\nMIME类型\n\n* **类型:** `String`\n\n* **只读:** `false`\n\n* **默认值:** ` `\n\n* **浏览器:** `> IE9`\n\n* **详细:**\n\n  格式:  `image/gif`   `image/png`  `text/html`\n\n\n\n\n### active\n\n激活或终止上传\n\n* **类型:** `Boolean`\n\n* **只读:** `false`\n\n* **默认值:** `false`\n\n* **详细:**\n\n  `true` = 上传  \n  `false` = 停止  \n\n\n\n\n\n\n### error\n\n上传失败错误代码\n\n* **类型:** `String`\n\n* **只读:** `false`\n\n* **默认值:** ` `\n\n* **详细:**\n\n  内置\n  `size`, `extension`, `timeout`, `abort`, `network`, `server`, `denied`\n\n\n\n\n### success\n\n是否上传成功\n\n* **类型:** `Boolean`\n\n* **只读:** `false`\n\n* **默认值:** `false`\n\n\n### putAction\n\n自定义当前文件 `PUT` 地址\n\n* **类型:** `String`\n\n* **只读:** `false`\n\n* **默认值:** `this.putAction`\n\n\n\n### postAction\n\n自定义当前文件 `POST` 地址\n\n* **类型:** `String`\n\n* **只读:** `false`\n\n* **默认值:** `this.postAction`\n\n\n\n\n### headers\n\n自定义当前文件 `HTTP` Header\n\n* **类型:** `Object`\n\n* **只读:** `false`\n\n* **默认值:** `this.headers`\n\n\n### data\n\n自定义当前文件 `body` 或 `query` 附加内容\n\n* **类型:** `Object`\n\n* **只读:** `false`\n\n* **默认值:** `this.data`\n\n\n### timeout\n\n自定义当前单个文件的上传超时时间\n\n* **类型:** `Number`\n\n* **只读:** `false`\n\n* **默认值:** `this.timeout`\n\n\n### response\n\n响应的数据\n\n* **类型:** `Object | String`\n\n* **只读:** `false`\n\n* **默认值:** `{}`\n\n\n\n\n### progress\n\n上传进度\n\n* **类型:** `String`\n\n* **只读:** `false`\n\n* **默认值:** `0.00`\n\n* **浏览器:** `> IE9`\n\n\n\n### speed\n\n每秒的上传速度\n\n* **类型:** `Number`\n\n* **只读:** `true`\n\n* **默认值:** `0`\n\n* **浏览器:** `> IE9`\n\n\n\n\n### xhr\n\n`HTML5` 上传 `XMLHttpRequest` 对象\n\n* **类型:** `XMLHttpRequest`\n\n* **只读:** `true`\n\n* **默认值:** `undefined`\n\n* **浏览器:** `> IE9`\n\n\n\n\n### iframe\n\n`HTML4` 上传 `iframe` 元素\n\n* **类型:** `Element`\n\n* **只读:** `true`\n\n* **默认值:** `undefined`\n\n* **浏览器:** `= IE9`\n'},379:(e,n,t)=>{"use strict";var o,r=function(){var e={};return function(n){if(void 0===e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[n]=t}return e[n]}}(),a=[];function i(e){for(var n=-1,t=0;t<a.length;t++)if(a[t].identifier===e){n=t;break}return n}function l(e,n){for(var t={},o=[],r=0;r<e.length;r++){var l=e[r],s=n.base?l[0]+n.base:l[0],c=t[s]||0,u="".concat(s," ").concat(c);t[s]=c+1;var d=i(u),p={css:l[1],media:l[2],sourceMap:l[3]};-1!==d?(a[d].references++,a[d].updater(p)):a.push({identifier:u,updater:h(p,n),references:1}),o.push(u)}return o}function s(e){var n=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var a=t.nc;a&&(o.nonce=a)}if(Object.keys(o).forEach((function(e){n.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(n);else{var i=r(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}return n}var c,u=(c=[],function(e,n){return c[e]=n,c.filter(Boolean).join("\n")});function d(e,n,t,o){var r=t?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=u(n,r);else{var a=document.createTextNode(r),i=e.childNodes;i[n]&&e.removeChild(i[n]),i.length?e.insertBefore(a,i[n]):e.appendChild(a)}}function p(e,n,t){var o=t.css,r=t.media,a=t.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var f=null,m=0;function h(e,n){var t,o,r;if(n.singleton){var a=m++;t=f||(f=s(n)),o=d.bind(null,t,a,!1),r=d.bind(null,t,a,!0)}else t=s(n),o=p.bind(null,t,n),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return o(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;o(e=n)}else r()}}e.exports=function(e,n){(n=n||{}).singleton||"boolean"==typeof n.singleton||(n.singleton=(void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o));var t=l(e=e||[],n);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<t.length;o++){var r=i(t[o]);a[r].references--}for(var s=l(e,n),c=0;c<t.length;c++){var u=i(t[c]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}t=s}}}}},n={};function t(o){if(n[o])return n[o].exports;var r=n[o]={id:o,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.exports}t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=t(537);const n=marked;var o=t.n(n);const r=hljs;var a=t.n(r),i=t(317);const{version:l,createStore:s,Store:c,install:u,useStore:d,mapState:p,mapMutations:f,mapGetters:m,mapActions:h,createNamespacedHelpers:v,createLogger:g}=i,b=s({strict:!0,state:{files:[]},mutations:{updateFiles:function(e,n){e.files=n}}}),y="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,k=e=>y?Symbol(e):"_vr_"+e,w=k("rvlm"),x=k("rvd"),A=k("r"),_=k("rl"),C=k("rvl"),F="undefined"!=typeof window,E=Object.assign;function N(e,n){const t={};for(const o in n){const r=n[o];t[o]=Array.isArray(r)?r.map(e):e(r)}return t}let S=()=>{};const B=/\/$/;function V(e,n,t="/"){let o,r={},a="",i="";const l=n.indexOf("?"),s=n.indexOf("#",l>-1?l:0);return l>-1&&(o=n.slice(0,l),a=n.slice(l+1,s>-1?s:n.length),r=e(a)),s>-1&&(o=o||n.slice(0,s),i=n.slice(s,n.length)),o=function(e,n){if(e.startsWith("/"))return e;if(!e)return n;const t=n.split("/"),o=e.split("/");let r,a,i=t.length-1;for(r=0;r<o.length;r++)if(a=o[r],1!==i&&"."!==a){if(".."!==a)break;i--}return t.slice(0,i).join("/")+"/"+o.slice(r-(r===o.length?1:0)).join("/")}(null!=o?o:n,t),{fullPath:o+(a&&"?")+a+i,path:o,query:r,hash:i}}function T(e,n){return!n||e.toLowerCase().indexOf(n.toLowerCase())?e:e.slice(n.length)||"/"}function O(e,n){return(e.aliasOf||e)===(n.aliasOf||n)}function $(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(let t in e)if(!j(e[t],n[t]))return!1;return!0}function j(e,n){return Array.isArray(e)?L(e,n):Array.isArray(n)?L(n,e):e===n}function L(e,n){return Array.isArray(n)?e.length===n.length&&e.every(((e,t)=>e===n[t])):1===e.length&&e[0]===n}var D,U;!function(e){e.pop="pop",e.push="push"}(D||(D={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(U||(U={}));const R=/^[^#]+#/;function P(e,n){return e.replace(R,"#")+n}const M=()=>({left:window.pageXOffset,top:window.pageYOffset});function I(e,n){return(history.state?history.state.position-n:-1)+e}const z=new Map;let W=()=>location.protocol+"//"+location.host;function H(e,n){const{pathname:t,search:o,hash:r}=n;if(e.indexOf("#")>-1){let e=r.slice(1);return"/"!==e[0]&&(e="/"+e),T(e,"")}return T(t,e)+o+r}function q(e,n,t,o=!1,r=!1){return{back:e,current:n,forward:t,replaced:o,position:window.history.length,scroll:r?M():null}}function G(e){return"string"==typeof e||"symbol"==typeof e}const Y={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},K=k("nf");var Z;function X(e,n){return E(new Error,{type:e,[K]:!0},n)}function Q(e,n){return e instanceof Error&&K in e&&(null==n||!!(e.type&n))}!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(Z||(Z={}));const J="[^/]+?",ee={sensitive:!1,strict:!1,start:!0,end:!0},ne=/[.+*?^${}()[\]/\\]/g;function te(e,n){let t=0;for(;t<e.length&&t<n.length;){const o=n[t]-e[t];if(o)return o;t++}return e.length<n.length?1===e.length&&80===e[0]?-1:1:e.length>n.length?1===n.length&&80===n[0]?1:-1:0}function oe(e,n){let t=0;const o=e.score,r=n.score;for(;t<o.length&&t<r.length;){const e=te(o[t],r[t]);if(e)return e;t++}return r.length-o.length}const re={type:0,value:""},ae=/[a-zA-Z0-9_]/;function ie(e,n,t){const o=function(e,n){const t=E({},ee,n);let o=[],r=t.start?"^":"";const a=[];for(const n of e){const e=n.length?[]:[90];t.strict&&!n.length&&(r+="/");for(let o=0;o<n.length;o++){const i=n[o];let l=40+(t.sensitive?.25:0);if(0===i.type)o||(r+="/"),r+=i.value.replace(ne,"\\$&"),l+=40;else if(1===i.type){const{value:e,repeatable:n,optional:t,regexp:s}=i;a.push({name:e,repeatable:n,optional:t});const c=s||J;if(c!==J){l+=10;try{new RegExp(`(${c})`)}catch(n){throw new Error(`Invalid custom RegExp for param "${e}" (${c}): `+n.message)}}let u=n?`((?:${c})(?:/(?:${c}))*)`:`(${c})`;o||(u=t?`(?:/${u})`:"/"+u),t&&(u+="?"),r+=u,l+=20,t&&(l+=-8),n&&(l+=-20),".*"===c&&(l+=-50)}e.push(l)}o.push(e)}if(t.strict&&t.end){const e=o.length-1;o[e][o[e].length-1]+=.7000000000000001}t.strict||(r+="/?"),t.end?r+="$":t.strict&&(r+="(?:/|$)");const i=new RegExp(r,t.sensitive?"":"i");return{re:i,score:o,keys:a,parse:function(e){const n=e.match(i),t={};if(!n)return null;for(let e=1;e<n.length;e++){const o=n[e]||"",r=a[e-1];t[r.name]=o&&r.repeatable?o.split("/"):o}return t},stringify:function(n){let t="",o=!1;for(const r of e){o&&t.endsWith("/")||(t+="/"),o=!1;for(const e of r)if(0===e.type)t+=e.value;else if(1===e.type){const{value:r,repeatable:a,optional:i}=e,l=r in n?n[r]:"";if(Array.isArray(l)&&!a)throw new Error(`Provided param "${r}" is an array but it is not repeatable (* or + modifiers)`);const s=Array.isArray(l)?l.join("/"):l;if(!s){if(!i)throw new Error(`Missing required param "${r}"`);t.endsWith("/")?t=t.slice(0,-1):o=!0}t+=s}}return t}}}(function(e){if(!e)return[[]];if("/"===e)return[[re]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function n(e){throw new Error(`ERR (${t})/"${c}": ${e}`)}let t=0,o=t;const r=[];let a;function i(){a&&r.push(a),a=[]}let l,s=0,c="",u="";function d(){c&&(0===t?a.push({type:0,value:c}):1===t||2===t||3===t?(a.length>1&&("*"===l||"+"===l)&&n(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:c,regexp:u,repeatable:"*"===l||"+"===l,optional:"*"===l||"?"===l})):n("Invalid state to consume buffer"),c="")}function p(){c+=l}for(;s<e.length;)if(l=e[s++],"\\"!==l||2===t)switch(t){case 0:"/"===l?(c&&d(),i()):":"===l?(d(),t=1):p();break;case 4:p(),t=o;break;case 1:"("===l?(t=2,u=""):ae.test(l)?p():(d(),t=0,"*"!==l&&"?"!==l&&"+"!==l&&s--);break;case 2:")"===l?"\\"==u[u.length-1]?u=u.slice(0,-1)+l:t=3:u+=l;break;case 3:d(),t=0,"*"!==l&&"?"!==l&&"+"!==l&&s--;break;default:n("Unknown state")}else o=t,t=4;return 2===t&&n(`Unfinished custom RegExp for param "${c}"`),d(),i(),r}(e.path),t),r=E(o,{record:e,parent:n,children:[],alias:[]});return n&&!r.record.aliasOf==!n.record.aliasOf&&n.children.push(r),r}function le(e){const n={},t=e.props||!1;if("component"in e)n.default=t;else for(let o in e.components)n[o]="boolean"==typeof t?t:t[o];return n}function se(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ce(e){return e.reduce(((e,n)=>E(e,n.meta)),{})}function ue(e,n){let t={};for(let o in e)t[o]=o in n?n[o]:e[o];return t}const de=/#/g,pe=/&/g,fe=/\//g,me=/=/g,he=/\?/g,ve=/\+/g,ge=/%5B/g,be=/%5D/g,ye=/%5E/g,ke=/%60/g,we=/%7B/g,xe=/%7C/g,Ae=/%7D/g,_e=/%20/g;function Ce(e){return encodeURI(""+e).replace(xe,"|").replace(ge,"[").replace(be,"]")}function Fe(e){return Ce(e).replace(ve,"%2B").replace(_e,"+").replace(de,"%23").replace(pe,"%26").replace(ke,"`").replace(we,"{").replace(Ae,"}").replace(ye,"^")}function Ee(e){return function(e){return Ce(e).replace(de,"%23").replace(he,"%3F")}(e).replace(fe,"%2F")}function Ne(e){try{return decodeURIComponent(""+e)}catch(e){}return""+e}function Se(e){const n={};if(""===e||"?"===e)return n;const t=("?"===e[0]?e.slice(1):e).split("&");for(let e=0;e<t.length;++e){const o=t[e].replace(ve," ");let r=o.indexOf("="),a=Ne(r<0?o:o.slice(0,r)),i=r<0?null:Ne(o.slice(r+1));if(a in n){let e=n[a];Array.isArray(e)||(e=n[a]=[e]),e.push(i)}else n[a]=i}return n}function Be(e){let n="";for(let t in e){n.length&&(n+="&");const o=e[t];if(t=Fe(t).replace(me,"%3D"),null==o){void 0!==o&&(n+=t);continue}let r=Array.isArray(o)?o.map((e=>e&&Fe(e))):[o&&Fe(o)];for(let e=0;e<r.length;e++)n+=(e?"&":"")+t,null!=r[e]&&(n+="="+r[e])}return n}function Ve(e){const n={};for(let t in e){let o=e[t];void 0!==o&&(n[t]=Array.isArray(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return n}function Te(){let e=[];return{add:function(n){return e.push(n),()=>{const t=e.indexOf(n);t>-1&&e.splice(t,1)}},list:()=>e,reset:function(){e=[]}}}function Oe(e,n,t,o,r){const a=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((i,l)=>{const s=e=>{var s;!1===e?l(X(4,{from:t,to:n})):e instanceof Error?l(e):"string"==typeof(s=e)||s&&"object"==typeof s?l(X(2,{from:n,to:e})):(a&&o.enterCallbacks[r]===a&&"function"==typeof e&&a.push(e),i())},c=e.call(o&&o.instances[r],n,t,s);let u=Promise.resolve(c);e.length<3&&(u=u.then(s)),u.catch((e=>l(e)))}))}function $e(e,n,t,o){const r=[];for(const a of e)for(const e in a.components){let i=a.components[e];if("beforeRouteEnter"===n||a.instances[e])if(je(i)){const l=(i.__vccOpts||i)[n];l&&r.push(Oe(l,t,o,a,e))}else{let l=i();l=l.catch(console.error),r.push((()=>l.then((r=>{if(!r)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${a.path}"`));const i=(l=r).__esModule||y&&"Module"===l[Symbol.toStringTag]?r.default:r;var l;a.components[e]=i;const s=i[n];return s&&Oe(s,t,o,a,e)()}))))}}return r}function je(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}const Le=(0,e.defineComponent)({name:"RouterLink",props:{to:{type:[String,Object],required:!0},activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},setup(n,{slots:t,attrs:o}){const r=(0,e.reactive)(function(n){const t=(0,e.inject)(A),o=(0,e.inject)(_),r=(0,e.computed)((()=>t.resolve((0,e.unref)(n.to)))),a=(0,e.computed)((()=>{let{matched:e}=r.value,{length:n}=e;const t=e[n-1];let a=o.matched;if(!t||!a.length)return-1;let i=a.findIndex(O.bind(null,t));if(i>-1)return i;let l=De(e[n-2]);return n>1&&De(t)===l&&a[a.length-1].path!==l?a.findIndex(O.bind(null,e[n-2])):i})),i=(0,e.computed)((()=>a.value>-1&&function(e,n){for(let t in n){let o=n[t],r=e[t];if("string"==typeof o){if(o!==r)return!1}else if(!Array.isArray(r)||r.length!==o.length||o.some(((e,n)=>e!==r[n])))return!1}return!0}(o.params,r.value.params))),l=(0,e.computed)((()=>a.value>-1&&a.value===o.matched.length-1&&$(o.params,r.value.params)));return{route:r,href:(0,e.computed)((()=>r.value.href)),isActive:i,isExactActive:l,navigate:function(o={}){return function(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const n=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(n))return}return e.preventDefault&&e.preventDefault(),!0}}(o)?t[(0,e.unref)(n.replace)?"replace":"push"]((0,e.unref)(n.to)):Promise.resolve()}}}(n)),{options:a}=(0,e.inject)(A),i=(0,e.computed)((()=>({[Ue(n.activeClass,a.linkActiveClass,"router-link-active")]:r.isActive,[Ue(n.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive})));return()=>{const a=t.default&&t.default(r);return n.custom?a:(0,e.h)("a",E({"aria-current":r.isExactActive?n.ariaCurrentValue:null,onClick:r.navigate,href:r.href},o,{class:i.value}),a)}}});function De(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ue=(e,n,t)=>null!=e?e:null!=n?n:t;function Re(e,n){if(!e)return null;const t=e(n);return 1===t.length?t[0]:t}const Pe=(0,e.defineComponent)({name:"RouterView",props:{name:{type:String,default:"default"},route:Object},setup(n,{attrs:t,slots:o}){const r=(0,e.inject)(C),a=(0,e.computed)((()=>n.route||r.value)),i=(0,e.inject)(x,0),l=(0,e.computed)((()=>a.value.matched[i]));(0,e.provide)(x,i+1),(0,e.provide)(w,l),(0,e.provide)(C,a);const s=(0,e.ref)();return(0,e.watch)((()=>[s.value,l.value,n.name]),(([e,n,t],[o,r,a])=>{n&&(n.instances[t]=e,r&&r!==n&&e&&e===o&&(n.leaveGuards=r.leaveGuards,n.updateGuards=r.updateGuards)),!e||!n||r&&O(n,r)&&o||(n.enterCallbacks[t]||[]).forEach((n=>n(e)))}),{flush:"post"}),()=>{const r=a.value,i=l.value,c=i&&i.components[n.name],u=n.name;if(!c)return Re(o.default,{Component:c,route:r});const d=i.props[n.name],p=d?!0===d?r.params:"function"==typeof d?d(r):d:null,f=(0,e.h)(c,E({},p,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(i.instances[u]=null)},ref:s}));return Re(o.default,{Component:f,route:r})||f}}});var Me="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t.g?t.g:"undefined"!=typeof self?self:{};function Ie(e,n,t){return e(t={path:n,exports:{},require:function(e,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&t.path)}},t.exports),t.exports}var ze=Ie((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.hook=n.target=n.isBrowser=void 0,n.isBrowser="undefined"!=typeof navigator,n.target=n.isBrowser?window:void 0!==Me?Me:{},n.hook=n.target.__VUE_DEVTOOLS_GLOBAL_HOOK__})),We=Ie((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ApiHookEvents=void 0,(n.ApiHookEvents||(n.ApiHookEvents={})).SETUP_DEVTOOLS_PLUGIN="devtools-plugin:setup"})),He=Ie((function(e,n){Object.defineProperty(n,"__esModule",{value:!0})})),qe=Ie((function(e,n){Object.defineProperty(n,"__esModule",{value:!0})})),Ge=Ie((function(e,n){Object.defineProperty(n,"__esModule",{value:!0})})),Ye=Ie((function(e,n){Object.defineProperty(n,"__esModule",{value:!0})})),Ke=Ie((function(e,n){var t;Object.defineProperty(n,"__esModule",{value:!0}),n.Hooks=void 0,(t=n.Hooks||(n.Hooks={})).TRANSFORM_CALL="transformCall",t.GET_APP_RECORD_NAME="getAppRecordName",t.GET_APP_ROOT_INSTANCE="getAppRootInstance",t.REGISTER_APPLICATION="registerApplication",t.WALK_COMPONENT_TREE="walkComponentTree",t.WALK_COMPONENT_PARENTS="walkComponentParents",t.INSPECT_COMPONENT="inspectComponent",t.GET_COMPONENT_BOUNDS="getComponentBounds",t.GET_COMPONENT_NAME="getComponentName",t.GET_ELEMENT_COMPONENT="getElementComponent",t.GET_INSPECTOR_TREE="getInspectorTree",t.GET_INSPECTOR_STATE="getInspectorState"})),Ze=Ie((function(e,n){var t=Me&&Me.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t),Object.defineProperty(e,o,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),o=Me&&Me.__exportStar||function(e,n){for(var o in e)"default"===o||n.hasOwnProperty(o)||t(n,e,o)};Object.defineProperty(n,"__esModule",{value:!0}),o(He,n),o(qe,n),o(Ge,n),o(Ye,n),o(Ke,n)})),Xe=Ie((function(e,n){var t=Me&&Me.__createBinding||(Object.create?function(e,n,t,o){void 0===o&&(o=t),Object.defineProperty(e,o,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,o){void 0===o&&(o=t),e[o]=n[t]}),o=Me&&Me.__exportStar||function(e,n){for(var o in e)"default"===o||n.hasOwnProperty(o)||t(n,e,o)};Object.defineProperty(n,"__esModule",{value:!0}),n.setupDevtoolsPlugin=void 0,o(Ze,n),n.setupDevtoolsPlugin=function(e,n){ze.hook?ze.hook.emit(We.ApiHookEvents.SETUP_DEVTOOLS_PLUGIN,e,n):(ze.target.__VUE_DEVTOOLS_PLUGINS__=ze.target.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:e,setupFn:n})}}));function Qe(e,n){const t={...e,matched:e.matched.map((({instances:e,children:n,aliasOf:t,...o})=>o))};return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:n,value:t}}}function Je(e){return{_custom:{display:e}}}let en=0;function nn(n,t,o){const r=en++;Xe.setupDevtoolsPlugin({id:" "+r,label:"Router devtools",app:n},(a=>{a.on.inspectComponent(((e,n)=>{e.instanceData&&e.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Qe(t.currentRoute.value,"Current Route")})})),(0,e.watch)(t.currentRoute,(()=>{s(),a.notifyComponentUpdate(),a.sendInspectorTree(l)}));const i="router:navigations:"+r;a.addTimelineLayer({id:i,label:`Router${r?" "+r:""} Navigations`,color:4237508}),t.onError((e=>{a.addTimelineEvent({layerId:i,event:{logType:"error",time:Date.now(),data:{error:e}}})})),t.beforeEach(((e,n)=>{const t={guard:Je("beforeEach"),from:Qe(n,"Current Location during this navigation"),to:Qe(e,"Target location")};a.addTimelineEvent({layerId:i,event:{time:Date.now(),meta:{},data:t}})})),t.afterEach(((e,n,t)=>{const o={guard:Je("afterEach")};t?(o.failure={_custom:{type:Error,readOnly:!0,display:t?t.message:"",tooltip:"Navigation Failure",value:t}},o.status=Je("❌")):o.status=Je("✅"),o.from=Qe(n,"Current Location during this navigation"),o.to=Qe(e,"Target location"),a.addTimelineEvent({layerId:i,event:{time:Date.now(),data:o,logType:t?"warning":"default",meta:{}}})}));const l="router-inspector:"+r;function s(){if(!c)return;const e=c;let n=o.getRoutes().filter((e=>!e.parent));n.forEach(sn),e.filter&&(n=n.filter((n=>cn(n,e.filter.toLowerCase())))),n.forEach((e=>ln(e,t.currentRoute.value))),e.rootNodes=n.map(on)}let c;a.addInspector({id:l,label:"Routes"+(r?" "+r:""),icon:"book",treeFilterPlaceholder:"Search routes"}),a.on.getInspectorTree((e=>{c=e,e.app===n&&e.inspectorId===l&&s()})),a.on.getInspectorState((e=>{if(e.app===n&&e.inspectorId===l){const n=o.getRoutes().find((n=>n.record.__vd_id===e.nodeId));n&&(e.state={options:tn(n)})}})),a.sendInspectorTree(l),a.sendInspectorState(l)}))}function tn(e){const{record:n}=e,t=[{editable:!1,key:"path",value:n.path}];return null!=n.name&&t.push({editable:!1,key:"name",value:n.name}),t.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&t.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map((e=>`${e.name}${function(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}(e)}`)).join(" "),tooltip:"Param keys",value:e.keys}}}),null!=n.redirect&&t.push({editable:!1,key:"redirect",value:n.redirect}),e.alias.length&&t.push({editable:!1,key:"aliases",value:e.alias.map((e=>e.record.path))}),t.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map((e=>e.join(", "))).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),t}function on(e){const n=[],{record:t}=e;null!=t.name&&n.push({label:String(t.name),textColor:0,backgroundColor:2282478}),t.aliasOf&&n.push({label:"alias",textColor:0,backgroundColor:16486972}),e.__vd_match&&n.push({label:"matches",textColor:0,backgroundColor:15485081}),e.__vd_exactActive&&n.push({label:"exact",textColor:0,backgroundColor:8702998}),e.__vd_active&&n.push({label:"active",textColor:0,backgroundColor:2450411}),t.redirect&&n.push({label:"redirect: "+("string"==typeof t.redirect?t.redirect:"Object"),textColor:16777215,backgroundColor:6710886});let o=String(rn++);return t.__vd_id=o,{id:o,label:t.path,tags:n,children:e.children.map(on)}}let rn=0;const an=/^\/(.*)\/([a-z]*)$/;function ln(e,n){const t=n.matched.length&&O(n.matched[n.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=t,t||(e.__vd_active=n.matched.some((n=>O(n,e.record)))),e.children.forEach((e=>ln(e,n)))}function sn(e){e.__vd_match=!1,e.children.forEach(sn)}function cn(e,n){const t=String(e.re).match(an);if(e.__vd_match=!1,!t||t.length<3)return!1;if(new RegExp(t[1].replace(/\$$/,""),t[2]).test(n))return e.children.forEach((e=>cn(e,n))),("/"!==e.record.path||"/"===n)&&(e.__vd_match=e.re.test(n),!0);const o=e.record.path.toLowerCase(),r=Ne(o);return!(n.startsWith("/")||!r.includes(n)&&!o.includes(n))||!(!r.startsWith(n)&&!o.startsWith(n))||!(!e.record.name||!String(e.record.name).includes(n))||e.children.some((e=>cn(e,n)))}function un(e){return e.reduce(((e,n)=>e.then((()=>n()))),Promise.resolve())}const dn="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,pn=e=>dn?Symbol(e):e,fn=e=>"number"==typeof e&&isFinite(e),mn=e=>"[object RegExp]"===Fn(e),hn=e=>En(e)&&0===Object.keys(e).length;function vn(e,n){if("undefined"!=typeof console){const t="intlify";console.warn(`[${t}] `+e),n&&console.warn(n.stack)}}let gn;const bn=()=>gn||(gn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t.g?t.g:{});function yn(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const kn=Array.isArray,wn=e=>"function"==typeof e,xn=e=>"string"==typeof e,An=e=>"boolean"==typeof e,_n=e=>null!==e&&"object"==typeof e,Cn=Object.prototype.toString,Fn=e=>Cn.call(e),En=e=>"[object Object]"===Fn(e);var Nn=t(588);function Sn(e,n,t={}){const{domain:o,messages:r,args:a}=t,i=new SyntaxError(String(e));return i.code=e,n&&(i.location=n),i.domain=o,i}function Bn(e){throw e}function Vn(e,n,t){const o={start:e,end:n};return null!=t&&(o.source=t),o}const Tn=" ",On="\n",$n=String.fromCharCode(8232),jn=String.fromCharCode(8233);function Ln(e){const n=e;let t=0,o=1,r=1,a=0;const i=e=>"\r"===n[e]&&n[e+1]===On,l=e=>n[e]===jn,s=e=>n[e]===$n,c=e=>i(e)||l(e)||s(e)?On:n[e];function u(){return a=0,(i(e=t)||(e=>n[e]===On)(e)||l(e)||s(e))&&(o++,r=0),i(t)&&t++,t++,r++,n[t];var e}return{index:()=>t,line:()=>o,column:()=>r,peekOffset:()=>a,charAt:c,currentChar:()=>c(t),currentPeek:()=>c(t+a),next:u,peek:function(){return i(t+a)&&a++,a++,n[t+a]},reset:function(){t=0,o=1,r=1,a=0},resetPeek:function(e=0){a=e},skipToPeek:function(){const e=t+a;for(;e!==t;)u();a=0}}}const Dn=void 0;function Un(e,n={}){const t=!n.location,o=Ln(e),r=()=>o.index(),a=()=>({line:o.line(),column:o.column(),offset:o.index()}),i=a(),l=r(),s={currentType:14,offset:l,startLoc:i,endLoc:i,lastType:14,lastOffset:l,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},c=()=>s,{onError:u}=n;function d(e,n,t,...o){const r=c();if(n.column+=t,n.offset+=t,u){const t=Sn(e,Vn(r.startLoc,n),{domain:"tokenizer",args:o});u(t)}}function p(e,n,o){e.endLoc=a(),e.currentType=n;const r={type:n};return t&&(r.loc=Vn(e.startLoc,e.endLoc)),null!=o&&(r.value=o),r}const f=e=>p(e,14);function m(e,n){return e.currentChar()===n?(e.next(),n):(d(0,a(),0,n),"")}function h(e){let n="";for(;e.currentPeek()===Tn||e.currentPeek()===On;)n+=e.currentPeek(),e.peek();return n}function v(e){const n=h(e);return e.skipToPeek(),n}function g(e){if(e===Dn)return!1;const n=e.charCodeAt(0);return n>=97&&n<=122||n>=65&&n<=90}function b(e){h(e);const n="|"===e.currentPeek();return e.resetPeek(),n}function y(e,n=!0){const t=(n=!1,o="",r=!1)=>{const a=e.currentPeek();return"{"===a?"%"!==o&&n:"@"!==a&&a?"%"===a?(e.peek(),t(n,"%",!0)):"|"===a?!("%"!==o&&!r&&(o===Tn||o===On)):a===Tn?(e.peek(),t(!0,Tn,r)):a!==On||(e.peek(),t(!0,On,r)):"%"===o||n},o=t();return n&&e.resetPeek(),o}function k(e,n){const t=e.currentChar();return t===Dn?Dn:n(t)?(e.next(),t):null}function w(e){return k(e,(e=>{const n=e.charCodeAt(0);return n>=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57||95===n||36===n}))}function x(e){return k(e,(e=>{const n=e.charCodeAt(0);return n>=48&&n<=57}))}function A(e){return k(e,(e=>{const n=e.charCodeAt(0);return n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102}))}function _(e){let n="",t="";for(;n=x(e);)t+=n;return t}function C(e){const n=e.currentChar();switch(n){case"\\":case"'":return e.next(),`\\${n}`;case"u":return F(e,n,4);case"U":return F(e,n,6);default:return d(3,a(),0,n),""}}function F(e,n,t){m(e,n);let o="";for(let r=0;r<t;r++){const t=A(e);if(!t){d(4,a(),0,`\\${n}${o}${e.currentChar()}`);break}o+=t}return`\\${n}${o}`}function E(e){v(e);const n=m(e,"|");return v(e),n}function N(e,n){let t=null;switch(e.currentChar()){case"{":return n.braceNest>=1&&d(8,a(),0),e.next(),t=p(n,2,"{"),v(e),n.braceNest++,t;case"}":return n.braceNest>0&&2===n.currentType&&d(7,a(),0),e.next(),t=p(n,3,"}"),n.braceNest--,n.braceNest>0&&v(e),n.inLinked&&0===n.braceNest&&(n.inLinked=!1),t;case"@":return n.braceNest>0&&d(6,a(),0),t=S(e,n)||f(n),n.braceNest=0,t;default:let o=!0,r=!0,i=!0;if(b(e))return n.braceNest>0&&d(6,a(),0),t=p(n,1,E(e)),n.braceNest=0,n.inLinked=!1,t;if(n.braceNest>0&&(5===n.currentType||6===n.currentType||7===n.currentType))return d(6,a(),0),n.braceNest=0,B(e,n);if(o=function(e,n){const{currentType:t}=n;if(2!==t)return!1;h(e);const o=g(e.currentPeek());return e.resetPeek(),o}(e,n))return t=p(n,5,function(e){v(e);let n="",t="";for(;n=w(e);)t+=n;return e.currentChar()===Dn&&d(6,a(),0),t}(e)),v(e),t;if(r=function(e,n){const{currentType:t}=n;if(2!==t)return!1;h(e);const o=function(e){if(e===Dn)return!1;const n=e.charCodeAt(0);return n>=48&&n<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),o}(e,n))return t=p(n,6,function(e){v(e);let n="";return"-"===e.currentChar()?(e.next(),n+=`-${_(e)}`):n+=_(e),e.currentChar()===Dn&&d(6,a(),0),n}(e)),v(e),t;if(i=function(e,n){const{currentType:t}=n;if(2!==t)return!1;h(e);const o="'"===e.currentPeek();return e.resetPeek(),o}(e,n))return t=p(n,7,function(e){v(e),m(e,"'");let n="",t="";const o=e=>"'"!==e&&e!==On;for(;n=k(e,o);)t+="\\"===n?C(e):n;const r=e.currentChar();return r===On||r===Dn?(d(2,a(),0),r===On&&(e.next(),m(e,"'")),t):(m(e,"'"),t)}(e)),v(e),t;if(!o&&!r&&!i)return t=p(n,13,function(e){v(e);let n="",t="";const o=e=>"{"!==e&&"}"!==e&&e!==Tn&&e!==On;for(;n=k(e,o);)t+=n;return t}(e)),d(1,a(),0,t.value),v(e),t}return t}function S(e,n){const{currentType:t}=n;let o=null;const r=e.currentChar();switch(8!==t&&9!==t&&12!==t&&10!==t||r!==On&&r!==Tn||d(9,a(),0),r){case"@":return e.next(),o=p(n,8,"@"),n.inLinked=!0,o;case".":return v(e),e.next(),p(n,9,".");case":":return v(e),e.next(),p(n,10,":");default:return b(e)?(o=p(n,1,E(e)),n.braceNest=0,n.inLinked=!1,o):function(e,n){const{currentType:t}=n;if(8!==t)return!1;h(e);const o="."===e.currentPeek();return e.resetPeek(),o}(e,n)||function(e,n){const{currentType:t}=n;if(8!==t&&12!==t)return!1;h(e);const o=":"===e.currentPeek();return e.resetPeek(),o}(e,n)?(v(e),S(e,n)):function(e,n){const{currentType:t}=n;if(9!==t)return!1;h(e);const o=g(e.currentPeek());return e.resetPeek(),o}(e,n)?(v(e),p(n,12,function(e){let n="",t="";for(;n=w(e);)t+=n;return t}(e))):function(e,n){const{currentType:t}=n;if(10!==t)return!1;const o=()=>{const n=e.currentPeek();return"{"===n?g(e.peek()):!("@"===n||"%"===n||"|"===n||":"===n||"."===n||n===Tn||!n)&&(n===On?(e.peek(),o()):g(n))},r=o();return e.resetPeek(),r}(e,n)?(v(e),"{"===r?N(e,n)||o:p(n,11,function(e){const n=(t=!1,o)=>{const r=e.currentChar();return"{"!==r&&"%"!==r&&"@"!==r&&"|"!==r&&r?r===Tn?o:r===On?(o+=r,e.next(),n(t,o)):(o+=r,e.next(),n(!0,o)):o};return n(!1,"")}(e))):(8===t&&d(9,a(),0),n.braceNest=0,n.inLinked=!1,B(e,n))}}function B(e,n){let t={type:14};if(n.braceNest>0)return N(e,n)||f(n);if(n.inLinked)return S(e,n)||f(n);const o=e.currentChar();switch(o){case"{":return N(e,n)||f(n);case"}":return d(5,a(),0),e.next(),p(n,3,"}");case"@":return S(e,n)||f(n);default:if(b(e))return t=p(n,1,E(e)),n.braceNest=0,n.inLinked=!1,t;if(y(e))return p(n,0,function(e){const n=t=>{const o=e.currentChar();return"{"!==o&&"}"!==o&&"@"!==o&&o?"%"===o?y(e)?(t+=o,e.next(),n(t)):t:"|"===o?t:o===Tn||o===On?y(e)?(t+=o,e.next(),n(t)):b(e)?t:(t+=o,e.next(),n(t)):(t+=o,e.next(),n(t)):t};return n("")}(e));if("%"===o)return e.next(),p(n,4,"%")}return t}return{nextToken:function(){const{currentType:e,offset:n,startLoc:t,endLoc:i}=s;return s.lastType=e,s.lastOffset=n,s.lastStartLoc=t,s.lastEndLoc=i,s.offset=r(),s.startLoc=a(),o.currentChar()===Dn?p(s,14):B(o,s)},currentOffset:r,currentPosition:a,context:c}}const Rn=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Pn(e,n,t){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(n||t,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function Mn(e={}){const n=!e.location,{onError:t}=e;function o(e,n,o,r,...a){const i=e.currentPosition();if(i.offset+=r,i.column+=r,t){const e=Sn(n,Vn(o,i),{domain:"parser",args:a});t(e)}}function r(e,t,o){const r={type:e,start:t,end:t};return n&&(r.loc={start:o,end:o}),r}function a(e,t,o,r){e.end=t,r&&(e.type=r),n&&e.loc&&(e.loc.end=o)}function i(e,n){const t=e.context(),o=r(3,t.offset,t.startLoc);return o.value=n,a(o,e.currentOffset(),e.currentPosition()),o}function l(e,n){const t=e.context(),{lastOffset:o,lastStartLoc:i}=t,l=r(5,o,i);return l.index=parseInt(n,10),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function s(e,n){const t=e.context(),{lastOffset:o,lastStartLoc:i}=t,l=r(4,o,i);return l.key=n,e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function c(e,n){const t=e.context(),{lastOffset:o,lastStartLoc:i}=t,l=r(9,o,i);return l.value=n.replace(Rn,Pn),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function u(e){const n=e.context(),t=r(6,n.offset,n.startLoc);let i=e.nextToken();switch(9===i.type&&(t.modifier=function(e){const n=e.nextToken(),t=e.context();null==n.value&&o(e,11,t.lastStartLoc,0,n.type);const{lastOffset:i,lastStartLoc:l}=t,s=r(8,i,l);return s.value=n.value||"",a(s,e.currentOffset(),e.currentPosition()),s}(e),i=e.nextToken()),10!==i.type&&o(e,11,n.lastStartLoc,0,i.type),i=e.nextToken(),2===i.type&&(i=e.nextToken()),i.type){case 11:null==i.value&&o(e,11,n.lastStartLoc,0,i.type),t.key=function(e,n){const t=e.context(),o=r(7,t.offset,t.startLoc);return o.value=n,a(o,e.currentOffset(),e.currentPosition()),o}(e,i.value||"");break;case 5:null==i.value&&o(e,11,n.lastStartLoc,0,i.type),t.key=s(e,i.value||"");break;case 6:null==i.value&&o(e,11,n.lastStartLoc,0,i.type),t.key=l(e,i.value||"");break;case 7:null==i.value&&o(e,11,n.lastStartLoc,0,i.type),t.key=c(e,i.value||"")}return a(t,e.currentOffset(),e.currentPosition()),t}function d(e){const n=e.context(),t=r(2,1===n.currentType?e.currentOffset():n.offset,1===n.currentType?n.endLoc:n.startLoc);t.items=[];do{const r=e.nextToken();switch(r.type){case 0:null==r.value&&o(e,11,n.lastStartLoc,0,r.type),t.items.push(i(e,r.value||""));break;case 6:null==r.value&&o(e,11,n.lastStartLoc,0,r.type),t.items.push(l(e,r.value||""));break;case 5:null==r.value&&o(e,11,n.lastStartLoc,0,r.type),t.items.push(s(e,r.value||""));break;case 7:null==r.value&&o(e,11,n.lastStartLoc,0,r.type),t.items.push(c(e,r.value||""));break;case 8:t.items.push(u(e))}}while(14!==n.currentType&&1!==n.currentType);return a(t,1===n.currentType?n.lastOffset:e.currentOffset(),1===n.currentType?n.lastEndLoc:e.currentPosition()),t}return{parse:function(t){const i=Un(t,{...e}),l=i.context(),s=r(0,l.offset,l.startLoc);return n&&s.loc&&(s.loc.source=t),s.body=function(e){const n=e.context(),{offset:t,startLoc:i}=n,l=d(e);return 14===n.currentType?l:function(e,n,t,i){const l=e.context();let s=0===i.items.length;const c=r(1,n,t);c.cases=[],c.cases.push(i);do{const n=d(e);s||(s=0===n.items.length),c.cases.push(n)}while(14!==l.currentType);return s&&o(e,10,t,0),a(c,e.currentOffset(),e.currentPosition()),c}(e,t,i,l)}(i),14!==l.currentType&&o(i,11,l.lastStartLoc,0,l.currentType),a(s,i.currentOffset(),i.currentPosition()),s}}}function In(e,n){for(let t=0;t<e.length;t++)zn(e[t],n)}function zn(e,n){switch(e.type){case 1:In(e.cases,n),n.helper("plural");break;case 2:In(e.items,n);break;case 6:zn(e.key,n),n.helper("linked");break;case 5:n.helper("interpolate"),n.helper("list");break;case 4:n.helper("interpolate"),n.helper("named")}}function Wn(e,n){const{helper:t}=e;switch(n.type){case 0:!function(e,n){n.body?Wn(e,n.body):e.push("null")}(e,n);break;case 1:!function(e,n){const{helper:t}=e;if(n.cases.length>1){e.push(`${t("plural")}([`),e.indent();const o=n.cases.length;for(let t=0;t<o&&(Wn(e,n.cases[t]),t!==o-1);t++)e.push(", ");e.deindent(),e.push("])")}}(e,n);break;case 2:!function(e,n){const{helper:t}=e;e.push(`${t("normalize")}([`),e.indent();const o=n.items.length;for(let t=0;t<o&&(Wn(e,n.items[t]),t!==o-1);t++)e.push(", ");e.deindent(),e.push("])")}(e,n);break;case 6:!function(e,n){const{helper:t}=e;e.push(`${t("linked")}(`),Wn(e,n.key),n.modifier&&(e.push(", "),Wn(e,n.modifier)),e.push(")")}(e,n);break;case 8:case 7:e.push(JSON.stringify(n.value),n);break;case 5:e.push(`${t("interpolate")}(${t("list")}(${n.index}))`,n);break;case 4:e.push(`${t("interpolate")}(${t("named")}(${JSON.stringify(n.key)}))`,n);break;case 9:case 3:e.push(JSON.stringify(n.value),n)}}function Hn(e,n={}){const t=Mn({...n}).parse(e);return function(e,n={}){const t=function(e,n={}){const t={ast:e,helpers:new Set};return{context:()=>t,helper:e=>(t.helpers.add(e),e)}}(e);t.helper("normalize"),e.body&&zn(e.body,t);const o=t.context();e.helpers=[...o.helpers]}(t,{...n}),((e,n={})=>{const t=xn(n.mode)?n.mode:"normal",o=xn(n.filename)?n.filename:"message.intl",r=!!An(n.sourceMap)&&n.sourceMap,a=e.helpers||[],i=function(e,n){const{sourceMap:t,filename:o}=n,r={source:e.loc.source,filename:o,code:"",column:1,line:1,offset:0,map:void 0,indentLevel:0};function a(e,n){r.code+=e}function i(e){a("\n"+"  ".repeat(e))}return{context:()=>r,push:a,indent:function(){i(++r.indentLevel)},deindent:function(e){e?--r.indentLevel:i(--r.indentLevel)},newline:function(){i(r.indentLevel)},helper:e=>`_${e}`}}(e,{mode:t,filename:o,sourceMap:r});i.push("normal"===t?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(),a.length>0&&(i.push(`const { ${a.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),i.newline()),i.push("return "),Wn(i,e),i.deindent(),i.push("}");const{code:l,map:s}=i.context();return{ast:e,code:l,map:s?s.toJSON():void 0}})(t,{...n})}const qn=[];qn[0]={w:[0],i:[3,0],"[":[4],o:[7]},qn[1]={w:[1],".":[2],"[":[4],o:[7]},qn[2]={w:[2],i:[3,0],0:[3,0]},qn[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},qn[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},qn[5]={"'":[4,0],o:8,l:[5,0]},qn[6]={'"':[4,0],o:8,l:[6,0]};const Gn=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Yn(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Kn(e){const n=[];let t,o,r,a,i,l,s,c=-1,u=0,d=0;const p=[];function f(){const n=e[c+1];if(5===u&&"'"===n||6===u&&'"'===n)return c++,r="\\"+n,p[0](),!0}for(p[0]=()=>{void 0===o?o=r:o+=r},p[1]=()=>{void 0!==o&&(n.push(o),o=void 0)},p[2]=()=>{p[0](),d++},p[3]=()=>{if(d>0)d--,u=4,p[0]();else{if(d=0,void 0===o)return!1;if(o=function(e){const n=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(t=n,Gn.test(t)?function(e){const n=e.charCodeAt(0);return n!==e.charCodeAt(e.length-1)||34!==n&&39!==n?e:e.slice(1,-1)}(n):"*"+n);var t}(o),!1===o)return!1;p[1]()}};null!==u;)if(c++,t=e[c],"\\"!==t||!f()){if(a=Yn(t),s=qn[u],i=s[a]||s.l||8,8===i)return;if(u=i[0],void 0!==i[1]&&(l=p[i[1]],l&&(r=t,!1===l())))return;if(7===u)return n}}const Zn=new Map;function Xn(e,n){if(null===(t=e)||"object"!=typeof t)return null;var t;let o=Zn.get(n);if(o||(o=Kn(n),o&&Zn.set(n,o)),!o)return null;const r=o.length;let a=e,i=0;for(;i<r;){const e=a[o[i]];if(void 0===e)return null;a=e,i++}return a}const Qn=e=>e,Jn=e=>"",et=e=>0===e.length?"":e.join(""),nt=e=>null==e?"":kn(e)||En(e)&&e.toString===Cn?JSON.stringify(e,null,2):String(e);function tt(e,n){return e=Math.abs(e),2===n?e?e>1?1:0:1:e?Math.min(e,2):0}let ot;function rt(e,n,t,o,r){const{missing:a,onWarn:i}=e;if(null!==a){const o=a(e,t,n,r);return xn(o)?o:n}return n}function at(e,n,t=""){const o=e;if(""===t)return[];o.__localeChainCache||(o.__localeChainCache=new Map);let r=o.__localeChainCache.get(t);if(!r){r=[];let e=[t];for(;kn(e);)e=it(r,e,n);const a=kn(n)?n:En(n)?n.default?n.default:null:n;e=xn(a)?[a]:a,kn(e)&&it(r,e,!1),o.__localeChainCache.set(t,r)}return r}function it(e,n,t){let o=!0;for(let r=0;r<n.length&&An(o);r++){const a=n[r];xn(a)&&(o=lt(e,n[r],t))}return o}function lt(e,n,t){let o;const r=n.split("-");do{o=st(e,r.join("-"),t),r.splice(-1,1)}while(r.length&&!0===o);return o}function st(e,n,t){let o=!1;if(!e.includes(n)&&(o=!0,n)){o="!"!==n[n.length-1];const r=n.replace(/!/g,"");e.push(r),(kn(t)||En(t))&&t[r]&&(o=t[r])}return o}function ct(e,n,t){e.__localeChainCache=new Map,at(e,t,n)}const ut=e=>e;let dt=Object.create(null);function pt(e){return Sn(e,null,void 0)}const ft=()=>"",mt=e=>wn(e);function ht(e,...n){const{fallbackFormat:t,postTranslation:o,unresolving:r,fallbackLocale:a}=e,[i,l]=gt(...n),s=(An(l.missingWarn)?l.missingWarn:e.missingWarn,An(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,An(l.escapeParameter)?l.escapeParameter:e.escapeParameter),c=xn(l.default)||An(l.default)?An(l.default)?i:l.default:t?i:"",u=t||""!==c,d=xn(l.locale)?l.locale:e.locale;s&&function(e){kn(e.list)?e.list=e.list.map((e=>xn(e)?yn(e):e)):_n(e.named)&&Object.keys(e.named).forEach((n=>{xn(e.named[n])&&(e.named[n]=yn(e.named[n]))}))}(l);let[p,f,m]=function(e,n,t,o,r,a){const{messages:i,onWarn:l}=e,s=at(e,o,t);let c,u={},d=null,p=t,f=null;for(let t=0;t<s.length&&(c=f=s[t],u=i[c]||{},null===(d=Xn(u,n))&&(d=u[n]),!xn(d)&&!wn(d));t++){const t=rt(e,n,c,0,"translate");t!==n&&(d=t),p=f}return[d,c,u]}(e,i,d,a),h=i;if(xn(p)||mt(p)||u&&(p=c,h=p),!xn(p)&&!mt(p)||!xn(f))return r?-1:i;let v=!1;const g=vt(e,i,f,p,h,(()=>{v=!0}));if(v)return p;const b=function(e,n,t){return n(t)}(0,g,function(e={}){const n=e.locale,t=function(e){const n=fn(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(fn(e.named.count)||fn(e.named.n))?fn(e.named.count)?e.named.count:fn(e.named.n)?e.named.n:n:n}(e),o=_n(e.pluralRules)&&xn(n)&&wn(e.pluralRules[n])?e.pluralRules[n]:tt,r=_n(e.pluralRules)&&xn(n)&&wn(e.pluralRules[n])?tt:void 0,a=e.list||[],i=e.named||{};function l(n){return(wn(e.messages)?e.messages(n):!!_n(e.messages)&&e.messages[n])||(e.parent?e.parent.message(n):Jn)}fn(e.pluralIndex)&&function(e,n){n.count||(n.count=e),n.n||(n.n=e)}(t,i);const s=En(e.processor)&&wn(e.processor.normalize)?e.processor.normalize:et,c=En(e.processor)&&wn(e.processor.interpolate)?e.processor.interpolate:nt,u={list:e=>a[e],named:e=>i[e],plural:e=>e[o(t,e.length,r)],linked:(n,t)=>{const o=l(n)(u);return xn(t)?(r=t,e.modifiers?e.modifiers[r]:Qn)(o):o;var r},message:l,type:En(e.processor)&&xn(e.processor.type)?e.processor.type:"text",interpolate:c,normalize:s};return u}(function(e,n,t,o){const{modifiers:r,pluralRules:a}=e,i={locale:n,modifiers:r,pluralRules:a,messages:o=>{const r=Xn(t,o);if(xn(r)){let t=!1;const a=vt(e,o,n,r,o,(()=>{t=!0}));return t?ft:a}return mt(r)?r:ft}};return e.processor&&(i.processor=e.processor),o.list&&(i.list=o.list),o.named&&(i.named=o.named),fn(o.plural)&&(i.pluralIndex=o.plural),i}(e,f,m,l)));return o?o(b):b}function vt(e,n,t,o,r,a){const{messageCompiler:i,warnHtmlMessage:l}=e;if(mt(o)){const e=o;return e.locale=e.locale||t,e.key=e.key||n,e}const s=i(o,function(e,n,t,o,r,a){return{warnHtmlMessage:r,onError:e=>{throw a&&a(e),e},onCacheKey:e=>((e,n,t)=>{return o={l:e,k:n,s:t},JSON.stringify(o).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027");var o})(n,t,e)}}(0,t,r,0,l,a));return s.locale=t,s.key=n,s.source=o,s}function gt(...e){const[n,t,o]=e,r={};if(!xn(n))throw pt(12);const a=n;return fn(t)?r.plural=t:xn(t)?r.default=t:En(t)&&!hn(t)?r.named=t:kn(t)&&(r.list=t),fn(o)?r.plural=o:xn(o)?r.default=o:En(o)&&Object.assign(r,o),[a,r]}const bt="undefined"!=typeof Intl;function yt(e,...n){const{datetimeFormats:t,unresolving:o,fallbackLocale:r,onWarn:a}=e,{__datetimeFormatters:i}=e,[l,s,c,u]=kt(...n),d=(An(c.missingWarn)?c.missingWarn:e.missingWarn,An(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,!!c.part),p=xn(c.locale)?c.locale:e.locale,f=at(e,r,p);if(!xn(l)||""===l)return new Intl.DateTimeFormat(p).format(s);let m,h={},v=null,g=p,b=null;for(let n=0;n<f.length&&(m=b=f[n],h=t[m]||{},v=h[l],!En(v));n++)rt(e,l,m,0,"datetime format"),g=b;if(!En(v)||!xn(m))return o?-1:l;let y=`${m}__${l}`;hn(u)||(y=`${y}__${JSON.stringify(u)}`);let k=i.get(y);return k||(k=new Intl.DateTimeFormat(m,Object.assign({},v,u)),i.set(y,k)),d?k.formatToParts(s):k.format(s)}function kt(...e){const[n,t,o,r]=e;let a,i={},l={};if(xn(n)){if(!/\d{4}-\d{2}-\d{2}(T.*)?/.test(n))throw pt(14);a=new Date(n);try{a.toISOString()}catch(e){throw pt(14)}}else if("[object Date]"===Fn(n)){if(isNaN(n.getTime()))throw pt(13);a=n}else{if(!fn(n))throw pt(12);a=n}return xn(t)?i.key=t:En(t)&&(i=t),xn(o)?i.locale=o:En(o)&&(l=o),En(r)&&(l=r),[i.key||"",a,i,l]}function wt(e,n,t){const o=e;for(const e in t){const t=`${n}__${e}`;o.__datetimeFormatters.has(t)&&o.__datetimeFormatters.delete(t)}}function xt(e,...n){const{numberFormats:t,unresolving:o,fallbackLocale:r,onWarn:a}=e,{__numberFormatters:i}=e,[l,s,c,u]=At(...n),d=(An(c.missingWarn)?c.missingWarn:e.missingWarn,An(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,!!c.part),p=xn(c.locale)?c.locale:e.locale,f=at(e,r,p);if(!xn(l)||""===l)return new Intl.NumberFormat(p).format(s);let m,h={},v=null,g=p,b=null;for(let n=0;n<f.length&&(m=b=f[n],h=t[m]||{},v=h[l],!En(v));n++)rt(e,l,m,0,"number format"),g=b;if(!En(v)||!xn(m))return o?-1:l;let y=`${m}__${l}`;hn(u)||(y=`${y}__${JSON.stringify(u)}`);let k=i.get(y);return k||(k=new Intl.NumberFormat(m,Object.assign({},v,u)),i.set(y,k)),d?k.formatToParts(s):k.format(s)}function At(...e){const[n,t,o,r]=e;let a={},i={};if(!fn(n))throw pt(12);const l=n;return xn(t)?a.key=t:En(t)&&(a=t),xn(o)?a.locale=o:En(o)&&(i=o),En(r)&&(i=r),[a.key||"",l,a,i]}function _t(e,n,t){const o=e;for(const e in t){const t=`${n}__${e}`;o.__numberFormatters.has(t)&&o.__numberFormatters.delete(t)}}bt&&Intl.DateTimeFormat,bt&&Intl.NumberFormat;const Ct="Vue I18n devtools",Ft="I18n Resources",Et="Vue I18n: Compile Errors",Nt="Vue I18n: Missing",St="Vue I18n: Fallback",Bt="Vue I18n: Performance",Vt="Search for scopes ...",Tt=16711680,Ot=16764185,$t=16764185,jt=16764185,Lt={"compile-error":"vue-i18n-compile-error",missing:"vue-i18n-missing",fallback:"vue-i18n-fallback","message-resolve":"vue-i18n-performance","message-compilation":"vue-i18n-performance","message-evaluation":"vue-i18n-performance"};function Dt(){const e=new Map;return{events:e,on(n,t){const o=e.get(n);o&&o.push(t)||e.set(n,[t])},off(n,t){const o=e.get(n);o&&o.splice(o.indexOf(t)>>>0,1)},emit(n,t){(e.get(n)||[]).slice().map((e=>e(t))),(e.get("*")||[]).slice().map((e=>e(n,t)))}}}let Ut;function Rt(e){const n={},t="Locale related info",o=[{type:t,key:"locale",editable:!1,value:e.locale.value},{type:t,key:"fallbackLocale",editable:!1,value:e.fallbackLocale.value},{type:t,key:"availableLocales",editable:!1,value:e.availableLocales},{type:t,key:"inheritLocale",editable:!1,value:e.inheritLocale}];n[t]=o;const r="Locale messages info",a=[{type:r,key:"messages",editable:!1,value:e.messages.value}];n[r]=a;const i="Datetime formats info",l=[{type:i,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];n[i]=l;const s="Datetime formats info",c=[{type:s,key:"numberFormats",editable:!1,value:e.numberFormats.value}];return n[s]=c,n}function Pt(e,n){Ut&&Ut.addTimelineEvent({layerId:Lt[e],event:{time:Date.now(),meta:{},data:n||{}}})}function Mt(e,...n){return Sn(e,null,void 0)}const It=pn("__transrateVNode"),zt=pn("__datetimeParts"),Wt=pn("__numberParts"),Ht=pn("__enableEmitter"),qt=pn("__disableEmitter");let Gt=0;function Yt(n){return(t,o,r,a)=>n(o,r,(0,e.getCurrentInstance)()||void 0,a)}function Kt(e,n){const{messages:t,__i18n:o}=n,r=En(t)?t:kn(o)?{}:{[e]:{}};if(kn(o))return o.forEach((e=>{Qt(xn(e)?JSON.parse(e):e,r)})),r;if(wn(o)){const{functions:e}=o();!function(e,n){Object.keys(n).forEach((t=>{const o=n[t],{l:r,k:a}=JSON.parse(t);e[r]||(e[r]={});const i=e[r],l=Kn(a);if(null!=l){const e=l.length;let n=i,t=0;for(;t<e;){const r=l[t];if(t===e-1){n[r]=o;break}{let e=n[r];e||(n[r]=e={}),n=e,t++}}}}))}(r,e)}return r}const Zt=Object.prototype.hasOwnProperty;function Xt(e,n){return Zt.call(e,n)}function Qt(e,n){for(const t in e)Xt(e,t)&&(_n(e[t])?(n[t]=null!=n[t]?n[t]:{},Qt(e[t],n[t])):(n[t]=null!=n[t]?n[t]:{},n[t]=e[t]))}function Jt(n={}){const{__root:t}=n,o=void 0===t;let r=!An(n.inheritLocale)||n.inheritLocale;const a=(0,e.ref)(t&&r?t.locale.value:xn(n.locale)?n.locale:"en-US"),i=(0,e.ref)(t&&r?t.fallbackLocale.value:xn(n.fallbackLocale)||kn(n.fallbackLocale)||En(n.fallbackLocale)||!1===n.fallbackLocale?n.fallbackLocale:a.value),l=(0,e.ref)(Kt(a.value,n)),s=(0,e.ref)(En(n.datetimeFormats)?n.datetimeFormats:{[a.value]:{}}),c=(0,e.ref)(En(n.numberFormats)?n.numberFormats:{[a.value]:{}});let u=t?t.missingWarn:!An(n.missingWarn)&&!mn(n.missingWarn)||n.missingWarn,d=t?t.fallbackWarn:!An(n.fallbackWarn)&&!mn(n.fallbackWarn)||n.fallbackWarn,p=!An(n.fallbackRoot)||n.fallbackRoot,f=!!n.fallbackFormat,m=wn(n.missing)?n.missing:null,h=wn(n.missing)?Yt(n.missing):null,v=wn(n.postTranslation)?n.postTranslation:null,g=!An(n.warnHtmlMessage)||n.warnHtmlMessage,b=!!n.escapeParameter;const y=t?t.modifiers:En(n.modifiers)?n.modifiers:{},k=n.pluralRules;let w;function x(){return function(e={}){const n=xn(e.locale)?e.locale:"en-US",t=e;return{locale:n,fallbackLocale:kn(e.fallbackLocale)||En(e.fallbackLocale)||xn(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,messages:En(e.messages)?e.messages:{[n]:{}},datetimeFormats:En(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},numberFormats:En(e.numberFormats)?e.numberFormats:{[n]:{}},modifiers:Object.assign({},e.modifiers||{},{upper:e=>xn(e)?e.toUpperCase():e,lower:e=>xn(e)?e.toLowerCase():e,capitalize:e=>xn(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),pluralRules:e.pluralRules||{},missing:wn(e.missing)?e.missing:null,missingWarn:!An(e.missingWarn)&&!mn(e.missingWarn)||e.missingWarn,fallbackWarn:!An(e.fallbackWarn)&&!mn(e.fallbackWarn)||e.fallbackWarn,fallbackFormat:!!e.fallbackFormat,unresolving:!!e.unresolving,postTranslation:wn(e.postTranslation)?e.postTranslation:null,processor:En(e.processor)?e.processor:null,warnHtmlMessage:!An(e.warnHtmlMessage)||e.warnHtmlMessage,escapeParameter:!!e.escapeParameter,messageCompiler:wn(e.messageCompiler)?e.messageCompiler:ot,onWarn:wn(e.onWarn)?e.onWarn:vn,__datetimeFormatters:_n(t.__datetimeFormatters)?t.__datetimeFormatters:new Map,__numberFormatters:_n(t.__numberFormatters)?t.__numberFormatters:new Map}}({locale:a.value,fallbackLocale:i.value,messages:l.value,datetimeFormats:s.value,numberFormats:c.value,modifiers:y,pluralRules:k,missing:null===h?void 0:h,missingWarn:u,fallbackWarn:d,fallbackFormat:f,unresolving:!0,postTranslation:null===v?void 0:v,warnHtmlMessage:g,escapeParameter:b,__datetimeFormatters:En(w)?w.__datetimeFormatters:void 0,__numberFormatters:En(w)?w.__numberFormatters:void 0,__emitter:En(w)?w.__emitter:void 0})}w=x(),ct(w,a.value,i.value);const A=(0,e.computed)({get:()=>a.value,set:e=>{a.value=e,w.locale=a.value}}),_=(0,e.computed)({get:()=>i.value,set:e=>{i.value=e,w.fallbackLocale=i.value,ct(w,a.value,e)}}),C=(0,e.computed)((()=>l.value)),F=(0,e.computed)((()=>s.value)),E=(0,e.computed)((()=>c.value));function N(e,n,o,r,a,i){const l=e(x());if(fn(l)&&-1===l){const e=n();return p&&t?r(t):a(e)}if(i(l))return l;throw Mt(12)}const S={normalize:function(n){return n.map((n=>xn(n)?(0,e.createVNode)(e.Text,null,n,0):n))},interpolate:e=>e,type:"vnode"};function B(e){return l.value[e]||{}}return Gt++,t&&((0,e.watch)(t.locale,(e=>{r&&(a.value=e,w.locale=e,ct(w,a.value,i.value))})),(0,e.watch)(t.fallbackLocale,(e=>{r&&(i.value=e,w.fallbackLocale=e,ct(w,a.value,i.value))}))),{id:Gt,locale:A,fallbackLocale:_,get inheritLocale(){return r},set inheritLocale(e){r=e,e&&t&&(a.value=t.locale.value,i.value=t.fallbackLocale.value,ct(w,a.value,i.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:C,datetimeFormats:F,numberFormats:E,get modifiers(){return y},get pluralRules(){return k||{}},get isGlobal(){return o},get missingWarn(){return u},set missingWarn(e){u=e,w.missingWarn=u},get fallbackWarn(){return d},set fallbackWarn(e){d=e,w.fallbackWarn=d},get fallbackRoot(){return p},set fallbackRoot(e){p=e},get fallbackFormat(){return f},set fallbackFormat(e){f=e,w.fallbackFormat=f},get warnHtmlMessage(){return g},set warnHtmlMessage(e){g=e,w.warnHtmlMessage=e},get escapeParameter(){return b},set escapeParameter(e){b=e,w.escapeParameter=e},t:function(...e){return N((n=>ht(n,...e)),(()=>gt(...e)[0]),0,(n=>n.t(...e)),(e=>e),(e=>xn(e)))},d:function(...e){return N((n=>yt(n,...e)),(()=>kt(...e)[0]),0,(n=>n.d(...e)),(()=>""),(e=>xn(e)))},n:function(...e){return N((n=>xt(n,...e)),(()=>At(...e)[0]),0,(n=>n.n(...e)),(()=>""),(e=>xn(e)))},te:function(e,n){return null!==Xn(B(xn(n)?n:a.value),e)},tm:function(e){const n=Xn(l.value[a.value]||{},e);return null!=n?n:t&&t.tm(e)||{}},getLocaleMessage:B,setLocaleMessage:function(e,n){l.value[e]=n,w.messages=l.value},mergeLocaleMessage:function(e,n){l.value[e]=Object.assign(l.value[e]||{},n),w.messages=l.value},getDateTimeFormat:function(e){return s.value[e]||{}},setDateTimeFormat:function(e,n){s.value[e]=n,w.datetimeFormats=s.value,wt(w,e,n)},mergeDateTimeFormat:function(e,n){s.value[e]=Object.assign(s.value[e]||{},n),w.datetimeFormats=s.value,wt(w,e,n)},getNumberFormat:function(e){return c.value[e]||{}},setNumberFormat:function(e,n){c.value[e]=n,w.numberFormats=c.value,_t(w,e,n)},mergeNumberFormat:function(e,n){c.value[e]=Object.assign(c.value[e]||{},n),w.numberFormats=c.value,_t(w,e,n)},getPostTranslationHandler:function(){return wn(v)?v:null},setPostTranslationHandler:function(e){v=e,w.postTranslation=e},getMissingHandler:function(){return m},setMissingHandler:function(e){null!==e&&(h=Yt(e)),m=e,w.missing=h},[It]:function(...n){return N((e=>{let t;const o=e;try{o.processor=S,t=ht(o,...n)}finally{o.processor=null}return t}),(()=>gt(...n)[0]),0,(e=>e[It](...n)),(n=>[(0,e.createVNode)(e.Text,null,n,0)]),(e=>kn(e)))},[Wt]:function(...e){return N((n=>xt(n,...e)),(()=>At(...e)[0]),0,(n=>n[Wt](...e)),(()=>[]),(e=>xn(e)||kn(e)))},[zt]:function(...e){return N((n=>yt(n,...e)),(()=>kt(...e)[0]),0,(n=>n[zt](...e)),(()=>[]),(e=>xn(e)||kn(e)))}}}function eo(e={}){const n=Jt(function(e){const n=xn(e.locale)?e.locale:"en-US",t=xn(e.fallbackLocale)||kn(e.fallbackLocale)||En(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,o=wn(e.missing)?e.missing:void 0,r=!An(e.silentTranslationWarn)&&!mn(e.silentTranslationWarn)||!e.silentTranslationWarn,a=!An(e.silentFallbackWarn)&&!mn(e.silentFallbackWarn)||!e.silentFallbackWarn,i=!An(e.fallbackRoot)||e.fallbackRoot,l=!!e.formatFallbackMessages,s=En(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=wn(e.postTranslation)?e.postTranslation:void 0,d=!xn(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,p=!!e.escapeParameterHtml,f=!An(e.sync)||e.sync;let m=e.messages;if(En(e.sharedMessages)){const n=e.sharedMessages;m=Object.keys(n).reduce(((e,t)=>{const o=e[t]||(e[t]={});return Object.assign(o,n[t]),e}),m||{})}const{__i18n:h,__root:v}=e;return{locale:n,fallbackLocale:t,messages:m,datetimeFormats:e.datetimeFormats,numberFormats:e.numberFormats,missing:o,missingWarn:r,fallbackWarn:a,fallbackRoot:i,fallbackFormat:l,modifiers:s,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:p,inheritLocale:f,__i18n:h,__root:v}}(e)),t={id:n.id,get locale(){return n.locale.value},set locale(e){n.locale.value=e},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(e){n.fallbackLocale.value=e},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return n.getMissingHandler()},set missing(e){n.setMissingHandler(e)},get silentTranslationWarn(){return An(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(e){n.missingWarn=An(e)?!e:e},get silentFallbackWarn(){return An(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(e){n.fallbackWarn=An(e)?!e:e},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(e){n.fallbackFormat=e},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(e){n.setPostTranslationHandler(e)},get sync(){return n.inheritLocale},set sync(e){n.inheritLocale=e},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){n.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(e){n.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...e){const[t,o,r]=e,a={};let i=null,l=null;if(!xn(t))throw Mt(13);const s=t;return xn(o)?a.locale=o:kn(o)?i=o:En(o)&&(l=o),kn(r)?i=r:En(r)&&(l=r),n.t(s,i||l||{},a)},tc(...e){const[t,o,r]=e,a={plural:1};let i=null,l=null;if(!xn(t))throw Mt(13);const s=t;return xn(o)?a.locale=o:fn(o)?a.plural=o:kn(o)?i=o:En(o)&&(l=o),xn(r)?a.locale=r:kn(r)?i=r:En(r)&&(l=r),n.t(s,i||l||{},a)},te:(e,t)=>n.te(e,t),tm:e=>n.tm(e),getLocaleMessage:e=>n.getLocaleMessage(e),setLocaleMessage(e,t){n.setLocaleMessage(e,t)},mergeLocaleMessage(e,t){n.mergeLocaleMessage(e,t)},d:(...e)=>n.d(...e),getDateTimeFormat:e=>n.getDateTimeFormat(e),setDateTimeFormat(e,t){n.setDateTimeFormat(e,t)},mergeDateTimeFormat(e,t){n.mergeDateTimeFormat(e,t)},n:(...e)=>n.n(...e),getNumberFormat:e=>n.getNumberFormat(e),setNumberFormat(e,t){n.setNumberFormat(e,t)},mergeNumberFormat(e,t){n.mergeNumberFormat(e,t)},getChoiceIndex:(e,n)=>-1,__onComponentInstanceCreated(n){const{componentInstanceCreatedListener:o}=e;o&&o(n,t)}};return t}const no={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"}},to={name:"i18n-t",props:{...no,keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>fn(e)||!isNaN(e)}},setup(n,t){const{slots:o,attrs:r}=t,a=co({useScope:n.scope}),i=Object.keys(o).filter((e=>"_"!==e));return()=>{const o={};n.locale&&(o.locale=n.locale),void 0!==n.plural&&(o.plural=xn(n.plural)?+n.plural:n.plural);const l=function({slots:e},n){return 1===n.length&&"default"===n[0]?e.default?e.default():[]:n.reduce(((n,t)=>{const o=e[t];return o&&(n[t]=o()),n}),{})}(t,i),s=a[It](n.keypath,l,o);return xn(n.tag)||_n(n.tag)?(0,e.h)(n.tag,{...r},s):(0,e.h)(e.Fragment,{...r},s)}}};function oo(n,t,o,r){const{slots:a,attrs:i}=t;return()=>{const t={part:!0};let l={};n.locale&&(t.locale=n.locale),xn(n.format)?t.key=n.format:_n(n.format)&&(xn(n.format.key)&&(t.key=n.format.key),l=Object.keys(n.format).reduce(((e,t)=>o.includes(t)?Object.assign({},e,{[t]:n.format[t]}):e),{}));const s=r(n.value,t,l);let c=[t.key];return kn(s)?c=s.map(((e,n)=>{const t=a[e.type];return t?t({[e.type]:e.value,index:n,parts:s}):[e.value]})):xn(s)&&(c=[s]),xn(n.tag)||_n(n.tag)?(0,e.h)(n.tag,{...i},c):(0,e.h)(e.Fragment,{...i},c)}}const ro=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],ao={name:"i18n-n",props:{...no,value:{type:Number,required:!0},format:{type:[String,Object]}},setup(e,n){const t=co({useScope:"parent"});return oo(e,n,ro,((...e)=>t[Wt](...e)))}},io=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],lo={name:"i18n-d",props:{...no,value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},setup(e,n){const t=co({useScope:"parent"});return oo(e,n,io,((...e)=>t[zt](...e)))}};function so(e,n){e.locale=n.locale||e.locale,e.fallbackLocale=n.fallbackLocale||e.fallbackLocale,e.missing=n.missing||e.missing,e.silentTranslationWarn=n.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=n.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=n.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=n.postTranslation||e.postTranslation,e.warnHtmlInMessage=n.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=n.escapeParameterHtml||e.escapeParameterHtml,e.sync=n.sync||e.sync;const t=Kt(e.locale,{messages:n.messages,__i18n:n.__i18n});return Object.keys(t).forEach((n=>e.mergeLocaleMessage(n,t[n]))),n.datetimeFormats&&Object.keys(n.datetimeFormats).forEach((t=>e.mergeDateTimeFormat(t,n.datetimeFormats[t]))),n.numberFormats&&Object.keys(n.numberFormats).forEach((t=>e.mergeNumberFormat(t,n.numberFormats[t]))),e}function co(n={}){const t=(0,e.getCurrentInstance)();if(null==t)throw Mt(14);if(!t.appContext.app.__VUE_I18N_SYMBOL__)throw Mt(15);const o=(0,e.inject)(t.appContext.app.__VUE_I18N_SYMBOL__);if(!o)throw Mt(20);const r="composition"===o.mode?o.global:o.global.__composer,a=hn(n)?"__i18n"in t.type?"local":"global":n.useScope?n.useScope:"local";if("global"===a){let e=_n(n.messages)?n.messages:{};"__i18nGlobal"in t.type&&(e=Kt(r.locale.value,{messages:e,__i18n:t.type.__i18nGlobal}));const o=Object.keys(e);if(o.length&&o.forEach((n=>{r.mergeLocaleMessage(n,e[n])})),_n(n.datetimeFormats)){const e=Object.keys(n.datetimeFormats);e.length&&e.forEach((e=>{r.mergeDateTimeFormat(e,n.datetimeFormats[e])}))}if(_n(n.numberFormats)){const e=Object.keys(n.numberFormats);e.length&&e.forEach((e=>{r.mergeNumberFormat(e,n.numberFormats[e])}))}return r}if("parent"===a){let e=function(e,n){let t=null;const o=n.root;let r=n.parent;for(;null!=r;){const n=e;if("composition"===e.mode)t=n.__getInstance(r);else{const e=n.__getInstance(r);null!=e&&(t=e.__composer)}if(null!=t)break;if(o===r)break;r=r.parent}return t}(o,t);return null==e&&(e=r),e}if("legacy"===o.mode)throw Mt(16);const i=o;let l=i.__getInstance(t);if(null==l){const o=t.type,a={...n};o.__i18n&&(a.__i18n=o.__i18n),r&&(a.__root=r),l=Jt(a),function(n,t,o){let r=null;(0,e.onMounted)((()=>{if(__INTLIFY_PROD_DEVTOOLS__&&t.vnode.el){t.vnode.el.__INTLIFY__=o,r=Dt();const e=o;e[Ht]&&e[Ht](r),r.on("*",Pt)}}),t),(0,e.onUnmounted)((()=>{if(__INTLIFY_PROD_DEVTOOLS__&&t.vnode.el&&t.vnode.el.__INTLIFY__){r&&r.off("*",Pt);const e=o;e[qt]&&e[qt](),delete t.vnode.el.__INTLIFY__}n.__deleteInstance(t)}),t)}(i,t,l),i.__setInstance(t,l)}return l}const uo=["locale","fallbackLocale","availableLocales"],po=["t","d","n","tm"];ot=function(e,n={}){{const t=(n.onCacheKey||ut)(e),o=dt[t];if(o)return o;let r=!1;const a=n.onError||Bn;n.onError=e=>{r=!0,a(e)};const{code:i}=Hn(e,n),l=new Function(`return ${i}`)();return r?l:dt[t]=l}},function(){let e=!1;"boolean"!=typeof __VUE_I18N_FULL_INSTALL__&&(e=!0,bn().__VUE_I18N_FULL_INSTALL__=!0),"boolean"!=typeof __VUE_I18N_LEGACY_API__&&(e=!0,bn().__VUE_I18N_LEGACY_API__=!0),"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(e=!0,bn().__INTLIFY_PROD_DEVTOOLS__=!1)}();const fo=function(n={}){const t=!__VUE_I18N_LEGACY_API__||!An(n.legacy)||n.legacy,o=__VUE_I18N_LEGACY_API__&&!!n.globalInjection,r=new Map,a=__VUE_I18N_LEGACY_API__&&t?eo(n):Jt(n),i=pn(""),l={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(n,...r){if(__INTLIFY_PROD_DEVTOOLS__&&(n.__VUE_I18N__=l),n.__VUE_I18N_SYMBOL__=i,n.provide(n.__VUE_I18N_SYMBOL__,l),!t&&o&&function(n,t){const o=Object.create(null);uo.forEach((n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r)throw Mt(20);const a=(0,e.isRef)(r.value)?{get:()=>r.value.value,set(e){r.value.value=e}}:{get:()=>r.get&&r.get()};Object.defineProperty(o,n,a)})),n.config.globalProperties.$i18n=o,po.forEach((e=>{const o=Object.getOwnPropertyDescriptor(t,e);if(!o)throw Mt(20);Object.defineProperty(n.config.globalProperties,`$${e}`,o)}))}(n,l.global),__VUE_I18N_FULL_INSTALL__&&function(e,n,...t){const o=En(t[0])?t[0]:{},r=!!o.useI18nComponentName;(!An(o.globalInstall)||o.globalInstall)&&(e.component(r?"i18n":to.name,to),e.component(ao.name,ao),e.component(lo.name,lo)),e.directive("t",function(e){const n=(n,{instance:t,value:o,modifiers:r})=>{if(!t||!t.$)throw Mt(20);const a=function(e,n){const t=e;if("composition"===e.mode)return t.__getInstance(n)||e.global;{const o=t.__getInstance(n);return null!=o?o.__composer:e.global.__composer}}(e,t.$),i=function(e){if(xn(e))return{path:e};if(En(e)){if(!("path"in e))throw Mt(17);return e}throw Mt(18)}(o);n.textContent=a.t(...function(e){const{path:n,locale:t,args:o,choice:r,plural:a}=e,i={},l=o||{};return xn(t)&&(i.locale=t),fn(r)&&(i.plural=r),fn(a)&&(i.plural=a),[n,l,i]}(i))};return{beforeMount:n,beforeUpdate:n}}(n))}(n,l,...r),__VUE_I18N_LEGACY_API__&&t&&n.mixin(function(n,t,o){return{beforeCreate(){const r=(0,e.getCurrentInstance)();if(!r)throw Mt(20);const a=this.$options;if(a.i18n){const e=a.i18n;a.__i18n&&(e.__i18n=a.__i18n),e.__root=t,this===this.$root?this.$i18n=so(n,e):this.$i18n=eo(e)}else a.__i18n?this===this.$root?this.$i18n=so(n,a):this.$i18n=eo({__i18n:a.__i18n,__root:t}):this.$i18n=n;n.__onComponentInstanceCreated(this.$i18n),o.__setInstance(r,this.$i18n),this.$t=(...e)=>this.$i18n.t(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,n)=>this.$i18n.te(e,n),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e)},mounted(){if(__INTLIFY_PROD_DEVTOOLS__){this.$el.__INTLIFY__=this.$i18n.__composer;const e=this.__emitter=Dt(),n=this.$i18n;n.__enableEmitter&&n.__enableEmitter(e),e.on("*",Pt)}},beforeUnmount(){const n=(0,e.getCurrentInstance)();if(!n)throw Mt(20);if(__INTLIFY_PROD_DEVTOOLS__){this.__emitter&&(this.__emitter.off("*",Pt),delete this.__emitter);const e=this.$i18n;e.__disableEmitter&&e.__disableEmitter(),delete this.$el.__INTLIFY__}delete this.$t,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__deleteInstance(n),delete this.$i18n}}}(a,a.__composer,l)),__INTLIFY_PROD_DEVTOOLS__){if(!await async function(e,n){return new Promise(((t,o)=>{try{(0,Nn.setupDevtoolsPlugin)({id:"vue-devtools-plugin-vue-i18n",label:Ct,app:e},(o=>{Ut=o,o.on.inspectComponent((e=>{const n=e.componentInstance;n.vnode.el.__INTLIFY__&&e.instanceData&&function(e,n){const t="vue-i18n: composer properties";e.state.push({type:t,key:"locale",editable:!1,value:n.locale.value}),e.state.push({type:t,key:"availableLocales",editable:!1,value:n.availableLocales}),e.state.push({type:t,key:"fallbackLocale",editable:!1,value:n.fallbackLocale.value}),e.state.push({type:t,key:"inheritLocale",editable:!1,value:n.inheritLocale}),e.state.push({type:t,key:"messages",editable:!1,value:n.messages.value}),e.state.push({type:t,key:"datetimeFormats",editable:!1,value:n.datetimeFormats.value}),e.state.push({type:t,key:"numberFormats",editable:!1,value:n.numberFormats.value})}(e.instanceData,n.vnode.el.__INTLIFY__)})),o.addInspector({id:"vue-i18n-resource-inspector",label:Ft,icon:"language",treeFilterPlaceholder:Vt}),o.on.getInspectorTree((t=>{t.app===e&&"vue-i18n-resource-inspector"===t.inspectorId&&function(e,n){const t=[];for(const[e,o]of n.__instances){const r="composition"===n.mode?o:o.__composer,a=e.type.name||e.type.displayName||e.type.__file;t.push({id:r.id.toString(),label:`${a} Scope`})}e.rootNodes.push({id:"global",label:"Global Scope",children:t})}(t,n)})),o.on.getInspectorState((t=>{t.app===e&&"vue-i18n-resource-inspector"===t.inspectorId&&function(e,n){if("global"===e.nodeId)e.state=Rt("composition"===n.mode?n.global:n.global.__composer);else{const t=Array.from(n.__instances.values()).find((n=>n.id.toString()===e.nodeId));if(t){const o="composition"===n.mode?t:t.__composer;e.state=Rt(o)}}}(t,n)})),o.addTimelineLayer({id:"vue-i18n-compile-error",label:Et,color:Tt}),o.addTimelineLayer({id:"vue-i18n-performance",label:Bt,color:jt}),o.addTimelineLayer({id:"vue-i18n-missing",label:Nt,color:Ot}),o.addTimelineLayer({id:"vue-i18n-fallback",label:St,color:$t}),t(!0)}))}catch(e){console.error(e),o(!1)}}))}(n,l))throw Mt(19);const e=Dt();if(t){const n=a;n.__enableEmitter&&n.__enableEmitter(e)}else{const n=a;n[Ht]&&n[Ht](e)}e.on("*",Pt)}},get global(){return a},__instances:r,__getInstance:e=>r.get(e)||null,__setInstance(e,n){r.set(e,n)},__deleteInstance(e){r.delete(e)}};return __INTLIFY_PROD_DEVTOOLS__,l}({locale:"en",fallbackLocale:"en",messages:{"zh-cn":{header:{logo:"Vuejs",home:"首页",examples:"演示",documents:"文档",blog:"Blog",locale:"Language(语言)",issues:"Issues",github:"Github"},locale:{en:"English","zh-cn":"中文(简体)"},document:{title:"文档"},example:{full:"完整例子",simple:"简单例子",avatar:"上传头像",drag:"拖拽上传",multiple:"多个实例",vuex:"Vuex"}},en:{header:{logo:"Vuejs",home:"Home",examples:"Examples",documents:"Documentation",blog:"Blog",locale:"Language(语言)",issues:"Issues",github:"Github"},locale:{en:"English","zh-cn":"中文(简体)"},document:{title:"Documentation"},example:{full:"Full Example",simple:"Simple",avatar:"Upload avatar",drag:"Drag and drop",multiple:"Multiple instances",chunk:"Chunk upload",vuex:"Vuex"}}}}),mo={render:function(n,t){var o=(0,e.resolveComponent)("router-view");return(0,e.openBlock)(),(0,e.createBlock)(o)}};var ho={class:"container-fluid"},vo={class:"row flex-xl-nowrap"},go={class:"col-12 col-md-3 col-xl-2",id:"sidebar"},bo={id:"sidebar-nav",class:"collapse show"},yo={class:"nav"},ko={key:0,class:"nav"},wo={class:"col-12 col-md-9 col-xl-10 py-md-3 pr-md-5 pl-md-5",id:"main",role:"main"},xo={class:"document-title",id:"document-title"};const Ao={mounted:function(){if(this.$route.hash){var e=document.querySelector(decodeURIComponent(this.$route.hash));e&&window.scrollTo(0,e.offsetTop)}},computed:{document:function(){return t(635)("./"+this.$i18n.locale+".md").default},navs:function(){for(var e,n=o().lexer(this.document),t={name:"",children:[],level:1},r=t,a=0;a<n.length;a++){var i=n[a];if("heading"===i.type){var l={name:i.text,hash:i.text.toLowerCase().replace(/([\u0000-\u002F\u003A-\u0060\u007B-\u007F]+)/g,"-").replace(/^\-+|\-+$/,""),level:i.depth,children:[]};if(e&&l.level!==e.level)if(l.level>e.level)r=e;else for(;l.level<e.level&&e.parent;)r=(e=e.parent).parent;l.parent=r,r.children.push(l),e=l}}return t.children}}};var _o=t(379),Co=t.n(_o),Fo=t(367);Co()(Fo.Z,{insert:"head",singleton:!1}),Fo.Z.locals,Ao.render=function(n,t,o,r,a,i){var l=(0,e.resolveComponent)("router-link"),s=(0,e.resolveDirective)("markdown");return(0,e.openBlock)(),(0,e.createBlock)("div",ho,[(0,e.createVNode)("div",vo,[(0,e.createVNode)("div",go,[(0,e.createVNode)("nav",bo,[(0,e.createVNode)("ul",yo,[((0,e.openBlock)(!0),(0,e.createBlock)(e.Fragment,null,(0,e.renderList)(i.navs,(function(t,o){return(0,e.openBlock)(),(0,e.createBlock)("li",{class:{"nav-item":!0,active:!n.$route.hash&&!o||1===n.$route.hash.indexOf(t.hash)},key:o},[(0,e.createVNode)(l,{"active-class":"active",class:{"nav-link":!0,active:1===n.$route.hash.indexOf(t.hash)},to:"#"+t.hash},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.name),1)]})),_:2},1032,["class","to"]),t.children.length?((0,e.openBlock)(),(0,e.createBlock)("ul",ko,[((0,e.openBlock)(!0),(0,e.createBlock)(e.Fragment,null,(0,e.renderList)(t.children,(function(n,r){return(0,e.openBlock)(),(0,e.createBlock)("li",{class:"nav-item",key:o+"-"+r},[(0,e.createVNode)(l,{"active-class":"active",class:"nav-link",to:"#"+t.hash+"-"+n.hash},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(n.name),1)]})),_:2},1032,["to"])])})),128))])):(0,e.createCommentVNode)("",!0)],2)})),128))])])]),(0,e.createVNode)("main",wo,[(0,e.createVNode)("h1",xo,(0,e.toDisplayString)(n.$t("document.title")),1),(0,e.withDirectives)((0,e.createVNode)("div",{class:"document-content"},(0,e.toDisplayString)(i.document),513),[[s]])])])])};const Eo=Ao;var No={class:"container-fluid"},So={class:"row flex-xl-nowrap"},Bo={class:"col-12 col-md-3 col-xl-2",id:"sidebar"},Vo={id:"sidebar-nav",class:"collapse show"},To={class:"nav"},Oo={class:"nav-item"},$o={class:"nav-item"},jo={class:"nav-item"},Lo={class:"nav-item"},Do={class:"nav-item"},Uo={class:"nav-item"},Ro={class:"nav-item"},Po={class:"col-12 col-md-9 col-xl-10 py-md-3 pr-md-5 pl-md-5",id:"main",role:"main"};const Mo={render:function(n,t){var o=(0,e.resolveComponent)("router-link"),r=(0,e.resolveComponent)("router-view");return(0,e.openBlock)(),(0,e.createBlock)("div",No,[(0,e.createVNode)("div",So,[(0,e.createVNode)("div",Bo,[(0,e.createVNode)("nav",Vo,[(0,e.createVNode)("ul",To,[(0,e.createVNode)("li",Oo,[(0,e.createVNode)(o,{"active-class":"active",class:"nav-link",to:n.$toLocale("/examples/full")},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(n.$t("example.full")),1)]})),_:1},8,["to"])]),(0,e.createVNode)("li",$o,[(0,e.createVNode)(o,{"active-class":"active",class:"nav-link",to:n.$toLocale("/examples/simple")},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(n.$t("example.simple")),1)]})),_:1},8,["to"])]),(0,e.createVNode)("li",jo,[(0,e.createVNode)(o,{"active-class":"active",class:"nav-link",to:n.$toLocale("/examples/avatar")},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(n.$t("example.avatar")),1)]})),_:1},8,["to"])]),(0,e.createVNode)("li",Lo,[(0,e.createVNode)(o,{"active-class":"active",class:"nav-link",to:n.$toLocale("/examples/drag")},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(n.$t("example.drag")),1)]})),_:1},8,["to"])]),(0,e.createVNode)("li",Do,[(0,e.createVNode)(o,{"active-class":"active",class:"nav-link",to:n.$toLocale("/examples/multiple")},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(n.$t("example.multiple")),1)]})),_:1},8,["to"])]),(0,e.createVNode)("li",Uo,[(0,e.createVNode)(o,{"active-class":"active",class:"nav-link",to:n.$toLocale("/examples/chunk")},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(n.$t("example.chunk")),1)]})),_:1},8,["to"])]),(0,e.createVNode)("li",Ro,[(0,e.createVNode)(o,{"active-class":"active",class:"nav-link",to:n.$toLocale("/examples/vuex")},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(n.$t("example.vuex")),1)]})),_:1},8,["to"])])])])]),(0,e.createVNode)("main",Po,[(0,e.createVNode)(r)])])])}};var Io={class:"example-full"},zo=(0,e.createVNode)("i",{class:"fa fa-cog","aria-hidden":"true"},null,-1),Wo=(0,e.createTextVNode)(" Options "),Ho=(0,e.createVNode)("h1",{id:"example-title",class:"example-title"},"Full Example",-1),qo={class:"drop-active"},Go=(0,e.createVNode)("h3",null,"Drop files to upload",-1),Yo={class:"upload"},Ko={class:"table-responsive"},Zo={class:"table table-hover"},Xo=(0,e.createVNode)("thead",null,[(0,e.createVNode)("tr",null,[(0,e.createVNode)("th",null,"#"),(0,e.createVNode)("th",null,"Thumb"),(0,e.createVNode)("th",null,"Name"),(0,e.createVNode)("th",null,"Size"),(0,e.createVNode)("th",null,"Speed"),(0,e.createVNode)("th",null,"Status"),(0,e.createVNode)("th",null,"Action")])],-1),Qo={key:0},Jo={colspan:"7"},er={class:"text-center p-5"},nr=(0,e.createVNode)("h4",null,[(0,e.createTextVNode)("Drop files anywhere to upload"),(0,e.createVNode)("br"),(0,e.createTextVNode)("or")],-1),tr={key:1},or={class:"filename"},rr={key:0,class:"progress"},ar={key:0},ir={key:1},lr={key:2},sr={key:3},cr={class:"btn-group"},ur=(0,e.createVNode)("button",{class:"btn btn-secondary btn-sm dropdown-toggle",type:"button"}," Action ",-1),dr={class:"dropdown-menu"},pr=(0,e.createVNode)("div",{class:"dropdown-divider"},null,-1),fr={class:"example-foorer"},mr={class:"footer-status float-right"},hr={class:"btn-group"},vr=(0,e.createVNode)("i",{class:"fa fa-plus"},null,-1),gr=(0,e.createTextVNode)(" Select "),br={class:"dropdown-menu"},yr=(0,e.createVNode)("i",{class:"fa fa-arrow-up","aria-hidden":"true"},null,-1),kr=(0,e.createTextVNode)(" Start Upload "),wr=(0,e.createVNode)("i",{class:"fa fa-stop","aria-hidden":"true"},null,-1),xr=(0,e.createTextVNode)(" Stop Upload "),Ar={class:"option"},_r={class:"form-group"},Cr=(0,e.createVNode)("label",{for:"accept"},"Accept:",-1),Fr=(0,e.createVNode)("small",{class:"form-text text-muted"},"Allow upload mime type",-1),Er={class:"form-group"},Nr=(0,e.createVNode)("label",{for:"extensions"},"Extensions:",-1),Sr=(0,e.createVNode)("small",{class:"form-text text-muted"},"Allow upload file extension",-1),Br={class:"form-group"},Vr=(0,e.createVNode)("label",null,"PUT Upload:",-1),Tr={class:"form-check"},Or={class:"form-check-label"},$r=(0,e.createTextVNode)(" Off "),jr={class:"form-check"},Lr={class:"form-check-label"},Dr=(0,e.createTextVNode)(" On "),Ur=(0,e.createVNode)("small",{class:"form-text text-muted"},"After the shutdown, use the POST method to upload",-1),Rr={class:"form-group"},Pr=(0,e.createVNode)("label",{for:"thread"},"Thread:",-1),Mr=(0,e.createVNode)("small",{class:"form-text text-muted"},"Also upload the number of files at the same time (number of threads)",-1),Ir={class:"form-group"},zr=(0,e.createVNode)("label",{for:"size"},"Max size:",-1),Wr={class:"form-group"},Hr=(0,e.createVNode)("label",{for:"minSize"},"Min size:",-1),qr={class:"form-group"},Gr=(0,e.createVNode)("label",{for:"autoCompress"},"Automatically compress:",-1),Yr={key:0,class:"form-text text-muted"},Kr={key:1,class:"form-text text-muted"},Zr={class:"form-group"},Xr={class:"form-check"},Qr={class:"form-check-label"},Jr=(0,e.createTextVNode)(" Start position to add "),ea=(0,e.createVNode)("small",{class:"form-text text-muted"},"Add a file list to start the location to add",-1),na={class:"form-group"},ta={class:"form-check"},oa={class:"form-check-label"},ra=(0,e.createTextVNode)(" Drop "),aa=(0,e.createVNode)("small",{class:"form-text text-muted"},"Drag and drop upload",-1),ia={class:"form-group"},la={class:"form-check"},sa={class:"form-check-label"},ca=(0,e.createTextVNode)(" Drop directory "),ua=(0,e.createVNode)("small",{class:"form-text text-muted"},"Not checked, filter the dragged folder",-1),da={class:"form-group"},pa={class:"form-check"},fa={class:"form-check-label"},ma=(0,e.createTextVNode)(" Create Directory "),ha=(0,e.createVNode)("small",{class:"form-text text-muted"},[(0,e.createTextVNode)("The directory file will send an upload request. The mime type is "),(0,e.createVNode)("code",null,"text/directory")],-1),va={class:"form-group"},ga={class:"form-check"},ba={class:"form-check-label"},ya=(0,e.createTextVNode)(" Auto start "),ka=(0,e.createVNode)("small",{class:"form-text text-muted"},"Automatically activate upload",-1),wa={class:"form-group"},xa={class:"modal-dialog",role:"document"},Aa={class:"modal-content"},_a={class:"modal-header"},Ca=(0,e.createVNode)("h5",{class:"modal-title"},"Add data",-1),Fa=(0,e.createVNode)("span",null,"×",-1),Ea={class:"modal-body"},Na={class:"form-group"},Sa=(0,e.createVNode)("label",{for:"data-name"},"Name:",-1),Ba=(0,e.createVNode)("small",{class:"form-text text-muted"},[(0,e.createTextVNode)("Such as "),(0,e.createVNode)("code",null,"filename.txt")],-1),Va={class:"form-group"},Ta=(0,e.createVNode)("label",{for:"data-type"},"Type:",-1),Oa=(0,e.createVNode)("small",{class:"form-text text-muted"},[(0,e.createTextVNode)("Such as "),(0,e.createVNode)("code",null,"text/plain")],-1),$a={class:"form-group"},ja=(0,e.createVNode)("label",{for:"content"},"Content:",-1),La={class:"modal-footer"},Da=(0,e.createVNode)("button",{type:"submit",class:"btn btn-primary"},"Save",-1),Ua={class:"modal-dialog modal-lg",role:"document"},Ra={class:"modal-content"},Pa={class:"modal-header"},Ma=(0,e.createVNode)("h5",{class:"modal-title"},"Edit file",-1),Ia=(0,e.createVNode)("span",null,"×",-1),za={class:"modal-body"},Wa={class:"form-group"},Ha=(0,e.createVNode)("label",{for:"name"},"Name:",-1),qa={key:0,class:"form-group"},Ga=(0,e.createVNode)("label",null,"Image: ",-1),Ya={class:"edit-image"},Ka={class:"edit-image-tool"},Za={class:"btn-group",role:"group"},Xa=(0,e.createVNode)("i",{class:"fa fa-undo","aria-hidden":"true"},null,-1),Qa=(0,e.createVNode)("i",{class:"fa fa-repeat","aria-hidden":"true"},null,-1),Ja={class:"btn-group",role:"group"},ei=(0,e.createVNode)("i",{class:"fa fa-check","aria-hidden":"true"},null,-1),ni=(0,e.createVNode)("i",{class:"fa fa-remove","aria-hidden":"true"},null,-1),ti={class:"modal-footer"},oi=(0,e.createVNode)("button",{type:"submit",class:"btn btn-primary"},"Save",-1),ri=(0,e.createVNode)("div",{class:"pt-5"},[(0,e.createTextVNode)(" Source code: "),(0,e.createVNode)("a",{href:"https://github.com/lian-yue/vue-upload-component/blob/master/docs/views/examples/Full.vue"},"/docs/views/examples/Full.vue")],-1);const ai=Cropper;var ii=t.n(ai);const li=ImageCompressor;var si=t.n(li),ci=t(500),ui=t.n(ci);function di(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function pi(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?di(Object(t),!0).forEach((function(n){fi(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):di(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function fi(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}const mi={components:{FileUpload:ui()},data:function(){return{files:[],accept:"image/png,image/gif,image/jpeg,image/webp",extensions:"gif,jpg,jpeg,png,webp",minSize:1024,size:10485760,multiple:!0,directory:!1,drop:!0,dropDirectory:!0,createDirectory:!1,addIndex:!1,thread:3,name:"file",postAction:"/upload/post",putAction:"/upload/put",headers:{"X-Csrf-Token":"xxxx"},data:{_csrf_token:"xxxxxx"},autoCompress:1048576,uploadAuto:!1,isOption:!1,addData:{show:!1,name:"",type:"",content:""},editFile:{show:!1,name:""}}},watch:{"editFile.show":function(e,n){!e&&n&&this.$refs.upload.update(this.editFile.id,{error:this.editFile.error||""}),e&&this.$nextTick((function(){if(this.$refs.editImage){var e=new(ii())(this.$refs.editImage,{autoCrop:!1});this.editFile=pi(pi({},this.editFile),{},{cropper:e})}}))},"addData.show":function(e){e&&(this.addData.name="",this.addData.type="",this.addData.content="")}},methods:{inputFilter:function(e,n,t){var o=this;if(e&&!n){if(/(\/|^)(Thumbs\.db|desktop\.ini|\..+)$/.test(e.name))return t();if(/\.(php5?|html?|jsx?)$/i.test(e.name))return t();e.file&&"image/"===e.type.substr(0,6)&&this.autoCompress>0&&this.autoCompress<e.size&&(e.error="compressing",new(si())(null,{convertSize:1/0,maxWidth:512,maxHeight:512}).compress(e.file).then((function(n){o.$refs.upload.update(e,{error:"",file:n,size:n.size,type:n.type})})).catch((function(n){o.$refs.upload.update(e,{error:n.message||"compress"})})))}if(e&&(!n||e.file!==n.file)){e.blob="";var r=window.URL||window.webkitURL;r&&r.createObjectURL&&(e.blob=r.createObjectURL(e.file)),e.thumb="",e.blob&&"image/"===e.type.substr(0,6)&&(e.thumb=e.blob)}},inputFile:function(e,n){e&&n&&(e.active&&!n.active&&e.size>=0&&this.minSize>0&&e.size<this.minSize&&this.$refs.upload.update(e,{error:"size"}),e.progress,n.progress,e.error&&n.error,e.success&&n.success),!e&&n&&n.success&&n.response.id,Boolean(e)===Boolean(n)&&n.error===e.error||this.uploadAuto&&!this.$refs.upload.active&&(this.$refs.upload.active=!0)},alert:function(e){function n(n){return e.apply(this,arguments)}return n.toString=function(){return e.toString()},n}((function(e){alert(e)})),onEditFileShow:function(e){this.editFile=pi(pi({},e),{},{show:!0}),this.$refs.upload.update(e,{error:"edit"})},onEditorFile:function(){if(!this.$refs.upload.features.html5)return this.alert("Your browser does not support"),void(this.editFile.show=!1);var e={name:this.editFile.name};if(this.editFile.cropper){for(var n=atob(this.editFile.cropper.getCroppedCanvas().toDataURL(this.editFile.type).split(",")[1]),t=new Uint8Array(n.length),o=0;o<n.length;o++)t[o]=n.charCodeAt(o);e.file=new File([t],e.name,{type:this.editFile.type}),e.size=e.file.size}this.$refs.upload.update(this.editFile.id,e),this.editFile.error="",this.editFile.show=!1},onAddFolder:function(){var e=this;if(this.$refs.upload.features.directory){var n=document.createElement("input");n.style="background: rgba(255, 255, 255, 0);overflow: hidden;position: fixed;width: 1px;height: 1px;z-index: -1;opacity: 0;",n.type="file",n.setAttribute("allowdirs",!0),n.setAttribute("directory",!0),n.setAttribute("webkitdirectory",!0),n.multiple=!0,document.querySelector("body").appendChild(n),n.click(),n.onchange=function(t){e.$refs.upload.addInputFile(n).then((function(){document.querySelector("body").removeChild(n)}))}}else this.alert("Your browser does not support")},onAddData:function(){if(this.addData.show=!1,this.$refs.upload.features.html5){var e=new window.File([this.addData.content],this.addData.name,{type:this.addData.type});this.$refs.upload.add(e)}else this.alert("Your browser does not support")}}};var hi=t(800);Co()(hi.Z,{insert:"head",singleton:!1}),hi.Z.locals,mi.render=function(n,t,o,r,a,i){var l=(0,e.resolveComponent)("file-upload");return(0,e.openBlock)(),(0,e.createBlock)("div",Io,[(0,e.createVNode)("button",{type:"button",class:"btn btn-danger float-right btn-is-option",onClick:t[1]||(t[1]=(0,e.withModifiers)((function(e){return a.isOption=!a.isOption}),["prevent"]))},[zo,Wo]),Ho,(0,e.withDirectives)((0,e.createVNode)("div",qo,[Go],512),[[e.vShow,n.$refs.upload&&n.$refs.upload.dropActive]]),(0,e.withDirectives)((0,e.createVNode)("div",Yo,[(0,e.createVNode)("div",Ko,[(0,e.createVNode)("table",Zo,[Xo,(0,e.createVNode)("tbody",null,[a.files.length?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createBlock)("tr",Qo,[(0,e.createVNode)("td",Jo,[(0,e.createVNode)("div",er,[nr,(0,e.createVNode)("label",{for:a.name,class:"btn btn-lg btn-primary"},"Select Files",8,["for"])])])])),((0,e.openBlock)(!0),(0,e.createBlock)(e.Fragment,null,(0,e.renderList)(a.files,(function(t,o){return(0,e.openBlock)(),(0,e.createBlock)("tr",{key:t.id},[(0,e.createVNode)("td",null,(0,e.toDisplayString)(o),1),(0,e.createVNode)("td",null,[t.thumb?((0,e.openBlock)(),(0,e.createBlock)("img",{key:0,class:"td-image-thumb",src:t.thumb},null,8,["src"])):((0,e.openBlock)(),(0,e.createBlock)("span",tr,"No Image"))]),(0,e.createVNode)("td",null,[(0,e.createVNode)("div",or,(0,e.toDisplayString)(t.name),1),t.active||"0.00"!==t.progress?((0,e.openBlock)(),(0,e.createBlock)("div",rr,[(0,e.createVNode)("div",{class:{"progress-bar":!0,"progress-bar-striped":!0,"bg-danger":t.error,"progress-bar-animated":t.active},role:"progressbar",style:{width:t.progress+"%"}},(0,e.toDisplayString)(t.progress)+"%",7)])):(0,e.createCommentVNode)("",!0)]),(0,e.createVNode)("td",null,(0,e.toDisplayString)(n.$formatSize(t.size)),1),(0,e.createVNode)("td",null,(0,e.toDisplayString)(n.$formatSize(t.speed)),1),t.error?((0,e.openBlock)(),(0,e.createBlock)("td",ar,(0,e.toDisplayString)(t.error),1)):t.success?((0,e.openBlock)(),(0,e.createBlock)("td",ir,"success")):t.active?((0,e.openBlock)(),(0,e.createBlock)("td",lr,"active")):((0,e.openBlock)(),(0,e.createBlock)("td",sr)),(0,e.createVNode)("td",null,[(0,e.createVNode)("div",cr,[ur,(0,e.createVNode)("div",dr,[(0,e.createVNode)("a",{class:{"dropdown-item":!0,disabled:t.active||t.success||"compressing"===t.error},href:"#",onClick:(0,e.withModifiers)((function(e){return!t.active&&!t.success&&"compressing"!==t.error&&i.onEditFileShow(t)}),["prevent"])},"Edit",10,["onClick"]),(0,e.createVNode)("a",{class:{"dropdown-item":!0,disabled:!t.active},href:"#",onClick:(0,e.withModifiers)((function(e){return!!t.active&&n.$refs.upload.update(t,{error:"cancel"})}),["prevent"])},"Cancel",10,["onClick"]),t.active?((0,e.openBlock)(),(0,e.createBlock)("a",{key:0,class:"dropdown-item",href:"#",onClick:(0,e.withModifiers)((function(e){return n.$refs.upload.update(t,{active:!1})}),["prevent"])},"Abort",8,["onClick"])):t.error&&"compressing"!==t.error&&n.$refs.upload.features.html5?((0,e.openBlock)(),(0,e.createBlock)("a",{key:1,class:"dropdown-item",href:"#",onClick:(0,e.withModifiers)((function(e){return n.$refs.upload.update(t,{active:!0,error:"",progress:"0.00"})}),["prevent"])},"Retry upload",8,["onClick"])):((0,e.openBlock)(),(0,e.createBlock)("a",{key:2,class:{"dropdown-item":!0,disabled:t.success||"compressing"===t.error},href:"#",onClick:(0,e.withModifiers)((function(e){return!t.success&&"compressing"!==t.error&&n.$refs.upload.update(t,{active:!0})}),["prevent"])},"Upload",10,["onClick"])),pr,(0,e.createVNode)("a",{class:"dropdown-item",href:"#",onClick:(0,e.withModifiers)((function(e){return n.$refs.upload.remove(t)}),["prevent"])},"Remove",8,["onClick"])])])])])})),128))])])]),(0,e.createVNode)("div",fr,[(0,e.createVNode)("div",mr," Drop: "+(0,e.toDisplayString)(!!n.$refs.upload&&n.$refs.upload.drop)+", Active: "+(0,e.toDisplayString)(!!n.$refs.upload&&n.$refs.upload.active)+", Uploaded: "+(0,e.toDisplayString)(!n.$refs.upload||n.$refs.upload.uploaded)+", Drop active: "+(0,e.toDisplayString)(!!n.$refs.upload&&n.$refs.upload.dropActive),1),(0,e.createVNode)("div",hr,[(0,e.createVNode)(l,{class:"btn btn-primary dropdown-toggle","post-action":a.postAction,"put-action":a.putAction,extensions:a.extensions,accept:a.accept,multiple:a.multiple,directory:a.directory,"create-directory":a.createDirectory,size:a.size||0,thread:a.thread<1?1:a.thread>5?5:a.thread,headers:a.headers,data:a.data,drop:a.drop,"drop-directory":a.dropDirectory,"add-index":a.addIndex,modelValue:a.files,"onUpdate:modelValue":t[2]||(t[2]=function(e){return a.files=e}),onInputFilter:i.inputFilter,onInputFile:i.inputFile,ref:"upload"},{default:(0,e.withCtx)((function(){return[vr,gr]})),_:1},8,["post-action","put-action","extensions","accept","multiple","directory","create-directory","size","thread","headers","data","drop","drop-directory","add-index","modelValue","onInputFilter","onInputFile"]),(0,e.createVNode)("div",br,[(0,e.createVNode)("label",{class:"dropdown-item",for:a.name},"Add files",8,["for"]),(0,e.createVNode)("a",{class:"dropdown-item",href:"#",onClick:t[3]||(t[3]=function(){return i.onAddFolder&&i.onAddFolder.apply(i,arguments)})},"Add folder"),(0,e.createVNode)("a",{class:"dropdown-item",href:"#",onClick:t[4]||(t[4]=(0,e.withModifiers)((function(e){return a.addData.show=!0}),["prevent"]))},"Add data")])]),n.$refs.upload&&n.$refs.upload.active?((0,e.openBlock)(),(0,e.createBlock)("button",{key:1,type:"button",class:"btn btn-danger",onClick:t[6]||(t[6]=(0,e.withModifiers)((function(e){return n.$refs.upload.active=!1}),["prevent"]))},[wr,xr])):((0,e.openBlock)(),(0,e.createBlock)("button",{key:0,type:"button",class:"btn btn-success",onClick:t[5]||(t[5]=(0,e.withModifiers)((function(e){return n.$refs.upload.active=!0}),["prevent"]))},[yr,kr]))])],512),[[e.vShow,!a.isOption]]),(0,e.withDirectives)((0,e.createVNode)("div",Ar,[(0,e.createVNode)("div",_r,[Cr,(0,e.withDirectives)((0,e.createVNode)("input",{type:"text",id:"accept",class:"form-control","onUpdate:modelValue":t[7]||(t[7]=function(e){return a.accept=e})},null,512),[[e.vModelText,a.accept]]),Fr]),(0,e.createVNode)("div",Er,[Nr,(0,e.withDirectives)((0,e.createVNode)("input",{type:"text",id:"extensions",class:"form-control","onUpdate:modelValue":t[8]||(t[8]=function(e){return a.extensions=e})},null,512),[[e.vModelText,a.extensions]]),Sr]),(0,e.createVNode)("div",Br,[Vr,(0,e.createVNode)("div",Tr,[(0,e.createVNode)("label",Or,[(0,e.withDirectives)((0,e.createVNode)("input",{class:"form-check-input",type:"radio",name:"put-action",id:"put-action",value:"","onUpdate:modelValue":t[9]||(t[9]=function(e){return a.putAction=e})},null,512),[[e.vModelRadio,a.putAction]]),$r])]),(0,e.createVNode)("div",jr,[(0,e.createVNode)("label",Lr,[(0,e.withDirectives)((0,e.createVNode)("input",{class:"form-check-input",type:"radio",name:"put-action",id:"put-action",value:"/upload/put","onUpdate:modelValue":t[10]||(t[10]=function(e){return a.putAction=e})},null,512),[[e.vModelRadio,a.putAction]]),Dr])]),Ur]),(0,e.createVNode)("div",Rr,[Pr,(0,e.withDirectives)((0,e.createVNode)("input",{type:"number",max:"5",min:"1",id:"thread",class:"form-control","onUpdate:modelValue":t[11]||(t[11]=function(e){return a.thread=e})},null,512),[[e.vModelText,a.thread,void 0,{number:!0}]]),Mr]),(0,e.createVNode)("div",Ir,[zr,(0,e.withDirectives)((0,e.createVNode)("input",{type:"number",min:"0",id:"size",class:"form-control","onUpdate:modelValue":t[12]||(t[12]=function(e){return a.size=e})},null,512),[[e.vModelText,a.size,void 0,{number:!0}]])]),(0,e.createVNode)("div",Wr,[Hr,(0,e.withDirectives)((0,e.createVNode)("input",{type:"number",min:"0",id:"minSize",class:"form-control","onUpdate:modelValue":t[13]||(t[13]=function(e){return a.minSize=e})},null,512),[[e.vModelText,a.minSize,void 0,{number:!0}]])]),(0,e.createVNode)("div",qr,[Gr,(0,e.withDirectives)((0,e.createVNode)("input",{type:"number",min:"0",id:"autoCompress",class:"form-control","onUpdate:modelValue":t[14]||(t[14]=function(e){return a.autoCompress=e})},null,512),[[e.vModelText,a.autoCompress,void 0,{number:!0}]]),a.autoCompress>0?((0,e.openBlock)(),(0,e.createBlock)("small",Yr,"More than "+(0,e.toDisplayString)(n.$formatSize(a.autoCompress))+" files are automatically compressed",1)):((0,e.openBlock)(),(0,e.createBlock)("small",Kr,"Set up automatic compression"))]),(0,e.createVNode)("div",Zr,[(0,e.createVNode)("div",Xr,[(0,e.createVNode)("label",Qr,[(0,e.withDirectives)((0,e.createVNode)("input",{type:"checkbox",id:"add-index",class:"form-check-input","onUpdate:modelValue":t[15]||(t[15]=function(e){return a.addIndex=e})},null,512),[[e.vModelCheckbox,a.addIndex]]),Jr])]),ea]),(0,e.createVNode)("div",na,[(0,e.createVNode)("div",ta,[(0,e.createVNode)("label",oa,[(0,e.withDirectives)((0,e.createVNode)("input",{type:"checkbox",id:"drop",class:"form-check-input","onUpdate:modelValue":t[16]||(t[16]=function(e){return a.drop=e})},null,512),[[e.vModelCheckbox,a.drop]]),ra])]),aa]),(0,e.createVNode)("div",ia,[(0,e.createVNode)("div",la,[(0,e.createVNode)("label",sa,[(0,e.withDirectives)((0,e.createVNode)("input",{type:"checkbox",id:"drop-directory",class:"form-check-input","onUpdate:modelValue":t[17]||(t[17]=function(e){return a.dropDirectory=e})},null,512),[[e.vModelCheckbox,a.dropDirectory]]),ca])]),ua]),(0,e.createVNode)("div",da,[(0,e.createVNode)("div",pa,[(0,e.createVNode)("label",fa,[(0,e.withDirectives)((0,e.createVNode)("input",{type:"checkbox",id:"create-directory",class:"form-check-input","onUpdate:modelValue":t[18]||(t[18]=function(e){return a.createDirectory=e})},null,512),[[e.vModelCheckbox,a.createDirectory]]),ma])]),ha]),(0,e.createVNode)("div",va,[(0,e.createVNode)("div",ga,[(0,e.createVNode)("label",ba,[(0,e.withDirectives)((0,e.createVNode)("input",{type:"checkbox",id:"upload-auto",class:"form-check-input","onUpdate:modelValue":t[19]||(t[19]=function(e){return a.uploadAuto=e})},null,512),[[e.vModelCheckbox,a.uploadAuto]]),ya])]),ka]),(0,e.createVNode)("div",wa,[(0,e.createVNode)("button",{type:"button",class:"btn btn-primary btn-lg btn-block",onClick:t[20]||(t[20]=(0,e.withModifiers)((function(e){return a.isOption=!a.isOption}),["prevent"]))},"Confirm")])],512),[[e.vShow,a.isOption]]),(0,e.createVNode)("div",{class:{"modal-backdrop":!0,fade:!0,show:a.addData.show}},null,2),(0,e.createVNode)("div",{class:{modal:!0,fade:!0,show:a.addData.show},id:"modal-add-data",tabindex:"-1",role:"dialog"},[(0,e.createVNode)("div",xa,[(0,e.createVNode)("div",Aa,[(0,e.createVNode)("div",_a,[Ca,(0,e.createVNode)("button",{type:"button",class:"close",onClick:t[21]||(t[21]=(0,e.withModifiers)((function(e){return a.addData.show=!1}),["prevent"]))},[Fa])]),(0,e.createVNode)("form",{onSubmit:t[26]||(t[26]=(0,e.withModifiers)((function(){return i.onAddData&&i.onAddData.apply(i,arguments)}),["prevent"]))},[(0,e.createVNode)("div",Ea,[(0,e.createVNode)("div",Na,[Sa,(0,e.withDirectives)((0,e.createVNode)("input",{type:"text",class:"form-control",required:"",id:"data-name",placeholder:"Please enter a file name","onUpdate:modelValue":t[22]||(t[22]=function(e){return a.addData.name=e})},null,512),[[e.vModelText,a.addData.name]]),Ba]),(0,e.createVNode)("div",Va,[Ta,(0,e.withDirectives)((0,e.createVNode)("input",{type:"text",class:"form-control",required:"",id:"data-type",placeholder:"Please enter the MIME type","onUpdate:modelValue":t[23]||(t[23]=function(e){return a.addData.type=e})},null,512),[[e.vModelText,a.addData.type]]),Oa]),(0,e.createVNode)("div",$a,[ja,(0,e.withDirectives)((0,e.createVNode)("textarea",{class:"form-control",required:"",id:"content",rows:"3",placeholder:"Please enter the file contents","onUpdate:modelValue":t[24]||(t[24]=function(e){return a.addData.content=e})},null,512),[[e.vModelText,a.addData.content]])])]),(0,e.createVNode)("div",La,[(0,e.createVNode)("button",{type:"button",class:"btn btn-secondary",onClick:t[25]||(t[25]=(0,e.withModifiers)((function(e){return a.addData.show=!1}),["prevent"]))},"Close"),Da])],32)])])],2),(0,e.createVNode)("div",{class:{"modal-backdrop":!0,fade:!0,show:a.editFile.show}},null,2),(0,e.createVNode)("div",{class:{modal:!0,fade:!0,show:a.editFile.show},id:"modal-edit-file",tabindex:"-1",role:"dialog"},[(0,e.createVNode)("div",Ua,[(0,e.createVNode)("div",Ra,[(0,e.createVNode)("div",Pa,[Ma,(0,e.createVNode)("button",{type:"button",class:"close",onClick:t[27]||(t[27]=(0,e.withModifiers)((function(e){return a.editFile.show=!1}),["prevent"]))},[Ia])]),(0,e.createVNode)("form",{onSubmit:t[34]||(t[34]=(0,e.withModifiers)((function(){return i.onEditorFile&&i.onEditorFile.apply(i,arguments)}),["prevent"]))},[(0,e.createVNode)("div",za,[(0,e.createVNode)("div",Wa,[Ha,(0,e.withDirectives)((0,e.createVNode)("input",{type:"text",class:"form-control",required:"",id:"name",placeholder:"Please enter a file name","onUpdate:modelValue":t[28]||(t[28]=function(e){return a.editFile.name=e})},null,512),[[e.vModelText,a.editFile.name]])]),a.editFile.show&&a.editFile.blob&&a.editFile.type&&"image/"===a.editFile.type.substr(0,6)?((0,e.openBlock)(),(0,e.createBlock)("div",qa,[Ga,(0,e.createVNode)("div",Ya,[(0,e.createVNode)("img",{src:a.editFile.blob,ref:"editImage"},null,8,["src"])]),(0,e.createVNode)("div",Ka,[(0,e.createVNode)("div",Za,[(0,e.createVNode)("button",{type:"button",class:"btn btn-primary",onClick:t[29]||(t[29]=function(e){return a.editFile.cropper.rotate(-90)}),title:"cropper.rotate(-90)"},[Xa]),(0,e.createVNode)("button",{type:"button",class:"btn btn-primary",onClick:t[30]||(t[30]=function(e){return a.editFile.cropper.rotate(90)}),title:"cropper.rotate(90)"},[Qa])]),(0,e.createVNode)("div",Ja,[(0,e.createVNode)("button",{type:"button",class:"btn btn-primary",onClick:t[31]||(t[31]=function(e){return a.editFile.cropper.crop()}),title:"cropper.crop()"},[ei]),(0,e.createVNode)("button",{type:"button",class:"btn btn-primary",onClick:t[32]||(t[32]=function(e){return a.editFile.cropper.clear()}),title:"cropper.clear()"},[ni])])])])):(0,e.createCommentVNode)("",!0)]),(0,e.createVNode)("div",ti,[(0,e.createVNode)("button",{type:"button",class:"btn btn-secondary",onClick:t[33]||(t[33]=(0,e.withModifiers)((function(e){return a.editFile.show=!1}),["prevent"]))},"Close"),oi])],32)])])],2),ri])};const vi=mi;var gi={class:"example-simple"},bi=(0,e.createVNode)("h1",{id:"example-title",class:"example-title"},"Simple Example",-1),yi={class:"upload"},ki=(0,e.createTextVNode)(" - "),wi=(0,e.createTextVNode)(" - "),xi={key:0},Ai={key:1},_i={key:2},Ci={key:3},Fi={key:4},Ei={class:"example-btn"},Ni=(0,e.createVNode)("i",{class:"fa fa-plus"},null,-1),Si=(0,e.createTextVNode)(" Select files "),Bi=(0,e.createVNode)("i",{class:"fa fa-arrow-up","aria-hidden":"true"},null,-1),Vi=(0,e.createTextVNode)(" Start Upload "),Ti=(0,e.createVNode)("i",{class:"fa fa-stop","aria-hidden":"true"},null,-1),Oi=(0,e.createTextVNode)(" Stop Upload "),$i=(0,e.createVNode)("div",{class:"pt-5"},[(0,e.createTextVNode)(" Source code: "),(0,e.createVNode)("a",{href:"https://github.com/lian-yue/vue-upload-component/blob/master/docs/views/examples/Simple.vue"},"/docs/views/examples/Simple.vue")],-1);const ji={components:{FileUpload:ui()},setup:function(n,t){var o=(0,e.ref)(null);return{files:(0,e.ref)([]),upload:o,inputFilter:function(e,n,t){if(e&&!n){if(/(\/|^)(Thumbs\.db|desktop\.ini|\..+)$/.test(e.name))return t();if(/\.(php5?|html?|jsx?)$/i.test(e.name))return t()}},inputFile:function(e,n){e&&!n&&console.log("add",e),e&&n&&console.log("update",e),!e&&n&&console.log("remove",n)}}}};var Li=t(424);Co()(Li.Z,{insert:"head",singleton:!1}),Li.Z.locals,ji.render=function(n,t,o,r,a,i){var l=(0,e.resolveComponent)("file-upload");return(0,e.openBlock)(),(0,e.createBlock)("div",gi,[bi,(0,e.createVNode)("div",yi,[(0,e.createVNode)("ul",null,[((0,e.openBlock)(!0),(0,e.createBlock)(e.Fragment,null,(0,e.renderList)(r.files,(function(t){return(0,e.openBlock)(),(0,e.createBlock)("li",{key:t.id},[(0,e.createVNode)("span",null,(0,e.toDisplayString)(t.name),1),ki,(0,e.createVNode)("span",null,(0,e.toDisplayString)(n.$formatSize(t.size)),1),wi,t.error?((0,e.openBlock)(),(0,e.createBlock)("span",xi,(0,e.toDisplayString)(t.error),1)):t.success?((0,e.openBlock)(),(0,e.createBlock)("span",Ai,"success")):t.active?((0,e.openBlock)(),(0,e.createBlock)("span",_i,"active")):t.error?((0,e.openBlock)(),(0,e.createBlock)("span",Ci,(0,e.toDisplayString)(t.error),1)):((0,e.openBlock)(),(0,e.createBlock)("span",Fi))])})),128))]),(0,e.createVNode)("div",Ei,[(0,e.createVNode)(l,{class:"btn btn-primary","post-action":"/upload/post",extensions:"gif,jpg,jpeg,png,webp",accept:"image/png,image/gif,image/jpeg,image/webp",multiple:!0,size:10485760,modelValue:r.files,"onUpdate:modelValue":t[1]||(t[1]=function(e){return r.files=e}),onInputFilter:r.inputFilter,onInputFile:r.inputFile,ref:"upload"},{default:(0,e.withCtx)((function(){return[Ni,Si]})),_:1},8,["modelValue","onInputFilter","onInputFile"]),r.upload&&r.upload.active?((0,e.openBlock)(),(0,e.createBlock)("button",{key:1,type:"button",class:"btn btn-danger",onClick:t[3]||(t[3]=(0,e.withModifiers)((function(e){return r.upload.active=!1}),["prevent"]))},[Ti,Oi])):((0,e.openBlock)(),(0,e.createBlock)("button",{key:0,type:"button",class:"btn btn-success",onClick:t[2]||(t[2]=(0,e.withModifiers)((function(e){return r.upload.active=!0}),["prevent"]))},[Bi,Vi]))])]),$i])};const Di=ji;var Ui={class:"example-avatar"},Ri={class:"drop-active"},Pi=(0,e.createVNode)("h3",null,"Drop files to upload",-1),Mi={class:"avatar-upload"},Ii={class:"text-center p-2"},zi={for:"avatar"},Wi=(0,e.createVNode)("h4",{class:"pt-2"},[(0,e.createTextVNode)("or"),(0,e.createVNode)("br"),(0,e.createTextVNode)("Drop files anywhere to upload")],-1),Hi={class:"text-center p-2"},qi=(0,e.createTextVNode)(" Upload avatar "),Gi={class:"avatar-edit"},Yi={key:0,class:"avatar-edit-image"},Ki={class:"text-center p-4"},Zi=(0,e.createVNode)("div",{class:"pt-5"},[(0,e.createTextVNode)(" Source code: "),(0,e.createVNode)("a",{href:"https://github.com/lian-yue/vue-upload-component/blob/master/docs/views/examples/Avatar.vue"},"/docs/views/examples/Avatar.vue")],-1);const Xi={components:{FileUpload:ui()},data:function(){return{files:[],edit:!1,cropper:!1}},watch:{edit:function(e){e?this.$nextTick((function(){if(this.$refs.editImage){var e=new(ii())(this.$refs.editImage,{aspectRatio:1,viewMode:1});this.cropper=e}})):this.cropper&&(this.cropper.destroy(),this.cropper=!1)}},methods:{editSave:function(){this.edit=!1;for(var e=this.files[0],n=atob(this.cropper.getCroppedCanvas().toDataURL(e.type).split(",")[1]),t=new Uint8Array(n.length),o=0;o<n.length;o++)t[o]=n.charCodeAt(o);var r=new File([t],e.name,{type:e.type});this.$refs.upload.update(e.id,{file:r,type:r.type,size:r.size,active:!0})},alert:function(e){function n(n){return e.apply(this,arguments)}return n.toString=function(){return e.toString()},n}((function(e){alert(e)})),inputFile:function(e,n,t){e&&!n&&this.$nextTick((function(){this.edit=!0})),!e&&n&&(this.edit=!1)},inputFilter:function(e,n,t){if(e&&!n&&!/\.(gif|jpg|jpeg|png|webp)$/i.test(e.name))return this.alert("Your choice is not a picture"),t();if(e&&(!n||e.file!==n.file)){e.url="";var o=window.URL||window.webkitURL;o&&o.createObjectURL&&(e.url=o.createObjectURL(e.file))}}}};var Qi=t(96);Co()(Qi.Z,{insert:"head",singleton:!1}),Qi.Z.locals,Xi.render=function(n,t,o,r,a,i){var l=(0,e.resolveComponent)("file-upload");return(0,e.openBlock)(),(0,e.createBlock)("div",Ui,[(0,e.withDirectives)((0,e.createVNode)("div",Ri,[Pi],512),[[e.vShow,n.$refs.upload&&n.$refs.upload.dropActive]]),(0,e.withDirectives)((0,e.createVNode)("div",Mi,[(0,e.createVNode)("div",Ii,[(0,e.createVNode)("label",zi,[(0,e.createVNode)("img",{src:a.files.length?a.files[0].url:"https://www.gravatar.com/avatar/default?s=200&r=pg&d=mm",class:"rounded-circle"},null,8,["src"]),Wi])]),(0,e.createVNode)("div",Hi,[(0,e.createVNode)(l,{extensions:"gif,jpg,jpeg,png,webp",accept:"image/png,image/gif,image/jpeg,image/webp",name:"avatar",class:"btn btn-primary","post-action":"/upload/post",drop:!a.edit,modelValue:a.files,"onUpdate:modelValue":t[1]||(t[1]=function(e){return a.files=e}),onInputFilter:i.inputFilter,onInputFile:i.inputFile,ref:"upload"},{default:(0,e.withCtx)((function(){return[qi]})),_:1},8,["drop","modelValue","onInputFilter","onInputFile"])])],512),[[e.vShow,!a.edit]]),(0,e.withDirectives)((0,e.createVNode)("div",Gi,[a.files.length?((0,e.openBlock)(),(0,e.createBlock)("div",Yi,[(0,e.createVNode)("img",{ref:"editImage",src:a.files[0].url},null,8,["src"])])):(0,e.createCommentVNode)("",!0),(0,e.createVNode)("div",Ki,[(0,e.createVNode)("button",{type:"button",class:"btn btn-secondary",onClick:t[2]||(t[2]=(0,e.withModifiers)((function(){var e;return n.$refs.upload.clear&&(e=n.$refs.upload).clear.apply(e,arguments)}),["prevent"]))},"Cancel"),(0,e.createVNode)("button",{type:"submit",class:"btn btn-primary",onClick:t[3]||(t[3]=(0,e.withModifiers)((function(){return i.editSave&&i.editSave.apply(i,arguments)}),["prevent"]))},"Save")])],512),[[e.vShow,a.files.length&&a.edit]]),Zi])};const Ji=Xi;var el={class:"example-drag"},nl={class:"upload"},tl={key:0},ol=(0,e.createTextVNode)(" - "),rl=(0,e.createTextVNode)(" - "),al={key:0},il={key:1},ll={key:2},sl={key:3},cl={key:1},ul=(0,e.createVNode)("td",{colspan:"7"},[(0,e.createVNode)("div",{class:"text-center p-5"},[(0,e.createVNode)("h4",null,[(0,e.createTextVNode)("Drop files anywhere to upload"),(0,e.createVNode)("br"),(0,e.createTextVNode)("or")]),(0,e.createVNode)("label",{for:"file",class:"btn btn-lg btn-primary"},"Select Files")])],-1),dl={class:"drop-active"},pl=(0,e.createVNode)("h3",null,"Drop files to upload",-1),fl={class:"example-btn"},ml=(0,e.createVNode)("i",{class:"fa fa-plus"},null,-1),hl=(0,e.createTextVNode)(" Select files "),vl=(0,e.createVNode)("i",{class:"fa fa-arrow-up","aria-hidden":"true"},null,-1),gl=(0,e.createTextVNode)(" Start Upload "),bl=(0,e.createVNode)("i",{class:"fa fa-stop","aria-hidden":"true"},null,-1),yl=(0,e.createTextVNode)(" Stop Upload "),kl=(0,e.createVNode)("div",{class:"pt-5"},[(0,e.createTextVNode)(" Source code: "),(0,e.createVNode)("a",{href:"https://github.com/lian-yue/vue-upload-component/blob/master/docs/views/examples/Drag.vue"},"/docs/views/examples/Drag.vue")],-1);const wl={components:{FileUpload:ui()},data:function(){return{files:[]}}};var xl=t(438);Co()(xl.Z,{insert:"head",singleton:!1}),xl.Z.locals,wl.render=function(n,t,o,r,a,i){var l=(0,e.resolveComponent)("file-upload");return(0,e.openBlock)(),(0,e.createBlock)("div",el,[(0,e.createVNode)("div",nl,[a.files.length?((0,e.openBlock)(),(0,e.createBlock)("ul",tl,[((0,e.openBlock)(!0),(0,e.createBlock)(e.Fragment,null,(0,e.renderList)(a.files,(function(t){return(0,e.openBlock)(),(0,e.createBlock)("li",{key:t.id},[(0,e.createVNode)("span",null,(0,e.toDisplayString)(t.name),1),ol,(0,e.createVNode)("span",null,(0,e.toDisplayString)(n.$formatSize(t.size)),1),rl,t.error?((0,e.openBlock)(),(0,e.createBlock)("span",al,(0,e.toDisplayString)(t.error),1)):t.success?((0,e.openBlock)(),(0,e.createBlock)("span",il,"success")):t.active?((0,e.openBlock)(),(0,e.createBlock)("span",ll,"active")):((0,e.openBlock)(),(0,e.createBlock)("span",sl))])})),128))])):((0,e.openBlock)(),(0,e.createBlock)("ul",cl,[ul])),(0,e.withDirectives)((0,e.createVNode)("div",dl,[pl],512),[[e.vShow,n.$refs.upload&&n.$refs.upload.dropActive]]),(0,e.createVNode)("div",fl,[(0,e.createVNode)(l,{class:"btn btn-primary","post-action":"/upload/post",multiple:!0,drop:!0,"drop-directory":!0,modelValue:a.files,"onUpdate:modelValue":t[1]||(t[1]=function(e){return a.files=e}),ref:"upload"},{default:(0,e.withCtx)((function(){return[ml,hl]})),_:1},8,["modelValue"]),n.$refs.upload&&n.$refs.upload.active?((0,e.openBlock)(),(0,e.createBlock)("button",{key:1,type:"button",class:"btn btn-danger",onClick:t[3]||(t[3]=(0,e.withModifiers)((function(e){return n.$refs.upload.active=!1}),["prevent"]))},[bl,yl])):((0,e.openBlock)(),(0,e.createBlock)("button",{key:0,type:"button",class:"btn btn-success",onClick:t[2]||(t[2]=(0,e.withModifiers)((function(e){return n.$refs.upload.active=!0}),["prevent"]))},[vl,gl]))])]),kl])};const Al=wl;var _l={class:"example-multiple"},Cl=(0,e.createVNode)("h1",{id:"example-title",class:"example-title"},"Multiple instances",-1),Fl={class:"upload"},El=(0,e.createTextVNode)(" - "),Nl=(0,e.createTextVNode)(" - "),Sl={key:0},Bl={key:1},Vl={key:2},Tl={key:3},Ol={class:"example-btn"},$l=(0,e.createVNode)("i",{class:"fa fa-plus"},null,-1),jl=(0,e.createTextVNode)(" Select files "),Ll=(0,e.createVNode)("label",{for:"file1",class:"btn btn-primary"},"Label Select files",-1),Dl=(0,e.createVNode)("i",{class:"fa fa-arrow-up","aria-hidden":"true"},null,-1),Ul=(0,e.createTextVNode)(" Start Upload "),Rl=(0,e.createVNode)("i",{class:"fa fa-stop","aria-hidden":"true"},null,-1),Pl=(0,e.createTextVNode)(" Stop Upload "),Ml={class:"upload"},Il=(0,e.createTextVNode)(" - "),zl=(0,e.createTextVNode)(" - "),Wl={key:0},Hl={key:1},ql={key:2},Gl={key:3},Yl={class:"example-btn"},Kl=(0,e.createVNode)("i",{class:"fa fa-plus"},null,-1),Zl=(0,e.createTextVNode)(" Select files "),Xl=(0,e.createVNode)("label",{for:"file2",class:"btn btn-primary"},"Label Select files",-1),Ql=(0,e.createVNode)("i",{class:"fa fa-arrow-up","aria-hidden":"true"},null,-1),Jl=(0,e.createTextVNode)(" Start Upload "),es=(0,e.createVNode)("i",{class:"fa fa-stop","aria-hidden":"true"},null,-1),ns=(0,e.createTextVNode)(" Stop Upload "),ts=(0,e.createVNode)("div",{class:"pt-5"},[(0,e.createTextVNode)(" Source code: "),(0,e.createVNode)("a",{href:"https://github.com/lian-yue/vue-upload-component/blob/master/docs/views/examples/Multiple.vue"},"/docs/views/examples/Multiple.vue")],-1);const os={components:{FileUpload:ui()},data:function(){return{files1:[],files2:[]}}};var rs=t(8);Co()(rs.Z,{insert:"head",singleton:!1}),rs.Z.locals,os.render=function(n,t,o,r,a,i){var l=(0,e.resolveComponent)("file-upload");return(0,e.openBlock)(),(0,e.createBlock)("div",_l,[Cl,(0,e.createVNode)("div",Fl,[(0,e.createVNode)("ul",null,[((0,e.openBlock)(!0),(0,e.createBlock)(e.Fragment,null,(0,e.renderList)(a.files1,(function(t){return(0,e.openBlock)(),(0,e.createBlock)("li",{key:t.id},[(0,e.createVNode)("span",null,(0,e.toDisplayString)(t.name),1),El,(0,e.createVNode)("span",null,(0,e.toDisplayString)(n.$formatSize(t.size)),1),Nl,t.error?((0,e.openBlock)(),(0,e.createBlock)("span",Sl,(0,e.toDisplayString)(t.error),1)):t.success?((0,e.openBlock)(),(0,e.createBlock)("span",Bl,"success")):t.active?((0,e.openBlock)(),(0,e.createBlock)("span",Vl,"active")):((0,e.openBlock)(),(0,e.createBlock)("span",Tl))])})),128))]),(0,e.createVNode)("div",Ol,[(0,e.createVNode)(l,{class:"btn btn-primary","input-id":"file1","post-action":"/upload/post",modelValue:a.files1,"onUpdate:modelValue":t[1]||(t[1]=function(e){return a.files1=e}),ref:"upload1"},{default:(0,e.withCtx)((function(){return[$l,jl]})),_:1},8,["modelValue"]),Ll,n.$refs.upload1&&n.$refs.upload1.active?((0,e.openBlock)(),(0,e.createBlock)("button",{key:1,type:"button",class:"btn btn-danger",onClick:t[3]||(t[3]=(0,e.withModifiers)((function(e){return n.$refs.upload1.active=!1}),["prevent"]))},[Rl,Pl])):((0,e.openBlock)(),(0,e.createBlock)("button",{key:0,type:"button",class:"btn btn-success",onClick:t[2]||(t[2]=(0,e.withModifiers)((function(e){return n.$refs.upload1.active=!0}),["prevent"]))},[Dl,Ul]))])]),(0,e.createVNode)("div",Ml,[(0,e.createVNode)("ul",null,[((0,e.openBlock)(!0),(0,e.createBlock)(e.Fragment,null,(0,e.renderList)(a.files2,(function(t){return(0,e.openBlock)(),(0,e.createBlock)("li",{key:t.id},[(0,e.createVNode)("span",null,(0,e.toDisplayString)(t.name),1),Il,(0,e.createVNode)("span",null,(0,e.toDisplayString)(n.$formatSize(t.size)),1),zl,t.error?((0,e.openBlock)(),(0,e.createBlock)("span",Wl,(0,e.toDisplayString)(t.error),1)):t.success?((0,e.openBlock)(),(0,e.createBlock)("span",Hl,"success")):t.active?((0,e.openBlock)(),(0,e.createBlock)("span",ql,"active")):((0,e.openBlock)(),(0,e.createBlock)("span",Gl))])})),128))]),(0,e.createVNode)("div",Yl,[(0,e.createVNode)(l,{class:"btn btn-primary","input-id":"file2","post-action":"/upload/post",modelValue:a.files2,"onUpdate:modelValue":t[4]||(t[4]=function(e){return a.files2=e}),ref:"upload2"},{default:(0,e.withCtx)((function(){return[Kl,Zl]})),_:1},8,["modelValue"]),Xl,n.$refs.upload2&&n.$refs.upload2.active?((0,e.openBlock)(),(0,e.createBlock)("button",{key:1,type:"button",class:"btn btn-danger",onClick:t[6]||(t[6]=(0,e.withModifiers)((function(e){return n.$refs.upload2.active=!1}),["prevent"]))},[es,ns])):((0,e.openBlock)(),(0,e.createBlock)("button",{key:0,type:"button",class:"btn btn-success",onClick:t[5]||(t[5]=(0,e.withModifiers)((function(e){return n.$refs.upload2.active=!0}),["prevent"]))},[Ql,Jl]))])]),ts])};const as=os;var is=(0,e.withScopeId)("data-v-dcc3e1b2");(0,e.pushScopeId)("data-v-dcc3e1b2");var ls={class:"example-simple"},ss=(0,e.createVNode)("h1",{id:"example-title",class:"example-title"},"Chunk Upload Example",-1),cs=(0,e.createVNode)("p",null,"When using chunk uploads, the file will be uploaded in different parts (or chunks). All the files with a size higher than the set in the input will be uploaded using this method.",-1),us=(0,e.createVNode)("p",null,[(0,e.createTextVNode)("You will be able to see the different parts being uploaded individually. Some parts might fail, and the package is prepared to "),(0,e.createVNode)("em",null,"retry"),(0,e.createTextVNode)(" up to a certain amount of times.")],-1),ds=(0,e.createVNode)("p",null,"You can also pause / resume the upload process.",-1),ps={class:"upload"},fs={class:"form-horizontal"},ms={class:"form-group"},hs={class:"col-sm-offset-2 col-sm-10"},vs={class:"checkbox"},gs=(0,e.createTextVNode)(" Use chunk upload "),bs={class:"form-group"},ys=(0,e.createVNode)("label",{for:"inputMinSize",class:"col-sm-2 control-label"},"Min Size",-1),ks={class:"col-sm-10"},ws={class:"input-group"},xs=(0,e.createVNode)("span",{class:"input-group-addon"},"MB",-1),As={class:"form-group"},_s=(0,e.createVNode)("label",{for:"inputMaxActive",class:"col-sm-2 control-label"},"Max Active Chunks",-1),Cs={class:"col-sm-10"},Fs={class:"form-group"},Es=(0,e.createVNode)("label",{for:"inputMaxRetries",class:"col-sm-2 control-label"},"Max Chunk Retries",-1),Ns={class:"col-sm-10"},Ss={class:"table table-striped table-condensed"},Bs=(0,e.createVNode)("thead",{class:"thead-dark"},[(0,e.createVNode)("tr",null,[(0,e.createVNode)("th",null,"Name"),(0,e.createVNode)("th",{class:"text-right"},"Size"),(0,e.createVNode)("th",{class:"text-right"},"Progress"),(0,e.createVNode)("th",null,"Status"),(0,e.createVNode)("th",null,"Pause"),(0,e.createVNode)("th",{colspan:"3",class:"text-center"},"Chunks")]),(0,e.createVNode)("tr",null,[(0,e.createVNode)("th",{colspan:"5"}),(0,e.createVNode)("th",{class:"text-right"},"Total"),(0,e.createVNode)("th",{class:"text-right"},"Active"),(0,e.createVNode)("th",{class:"text-right"},"Completed")])],-1),Vs={class:"text-right"},Ts={class:"text-right"},Os={key:0},$s={key:1},js={key:2},Ls={key:3},Ds=(0,e.createVNode)("i",{class:"fa fa-pause"},null,-1),Us=(0,e.createVNode)("i",{class:"fa fa-play"},null,-1),Rs={class:"text-right"},Ps={class:"text-right"},Ms={class:"text-right"},Is=(0,e.createVNode)("td",{class:"text-right"}," - ",-1),zs=(0,e.createVNode)("td",{class:"text-right"}," - ",-1),Ws=(0,e.createVNode)("td",{class:"text-right"}," - ",-1),Hs={colspan:"8"},qs={key:0,class:"chunk-loading"},Gs={class:"example-btn"},Ys=(0,e.createVNode)("i",{class:"fa fa-plus"},null,-1),Ks=(0,e.createTextVNode)(" Select files "),Zs=(0,e.createVNode)("div",{class:"pt-5"},[(0,e.createTextVNode)(" Source code: "),(0,e.createVNode)("a",{href:"https://github.com/lian-yue/vue-upload-component/blob/master/docs/views/examples/Chunk.vue"},"/docs/views/examples/Chunk.vue")],-1);(0,e.popScopeId)();var Xs=is((function(n,t,o,r,a,i){var l=(0,e.resolveComponent)("file-upload");return(0,e.openBlock)(),(0,e.createBlock)("div",ls,[ss,cs,us,ds,(0,e.createVNode)("div",ps,[(0,e.createVNode)("div",fs,[(0,e.createVNode)("div",ms,[(0,e.createVNode)("div",hs,[(0,e.createVNode)("div",vs,[(0,e.createVNode)("label",null,[(0,e.withDirectives)((0,e.createVNode)("input",{"onUpdate:modelValue":t[1]||(t[1]=function(e){return a.chunkEnabled=e}),type:"checkbox"},null,512),[[e.vModelCheckbox,a.chunkEnabled]]),gs])])])]),(0,e.createVNode)("div",bs,[ys,(0,e.createVNode)("div",ks,[(0,e.createVNode)("div",ws,[(0,e.withDirectives)((0,e.createVNode)("input",{id:"inputMinSize","onUpdate:modelValue":t[2]||(t[2]=function(e){return a.chunkMinSize=e}),type:"number",class:"form-control"},null,512),[[e.vModelText,a.chunkMinSize]]),xs])])]),(0,e.createVNode)("div",As,[_s,(0,e.createVNode)("div",Cs,[(0,e.withDirectives)((0,e.createVNode)("input",{id:"inputMaxActive","onUpdate:modelValue":t[3]||(t[3]=function(e){return a.chunkMaxActive=e}),type:"number",class:"form-control"},null,512),[[e.vModelText,a.chunkMaxActive]])])]),(0,e.createVNode)("div",Fs,[Es,(0,e.createVNode)("div",Ns,[(0,e.withDirectives)((0,e.createVNode)("input",{id:"inputMaxRetries","onUpdate:modelValue":t[4]||(t[4]=function(e){return a.chunkMaxRetries=e}),type:"number",class:"form-control"},null,512),[[e.vModelText,a.chunkMaxRetries]])])])]),(0,e.createVNode)("table",Ss,[Bs,(0,e.createVNode)("tbody",null,[((0,e.openBlock)(!0),(0,e.createBlock)(e.Fragment,null,(0,e.renderList)(a.files,(function(t){return(0,e.openBlock)(),(0,e.createBlock)(e.Fragment,{key:t.id},[(0,e.createVNode)("tr",null,[(0,e.createVNode)("td",null,(0,e.toDisplayString)(t.name),1),(0,e.createVNode)("td",Vs,(0,e.toDisplayString)(n.$formatSize(t.size)),1),(0,e.createVNode)("td",Ts,(0,e.toDisplayString)(t.progress)+"%",1),t.error?((0,e.openBlock)(),(0,e.createBlock)("td",Os,(0,e.toDisplayString)(t.error),1)):t.success?((0,e.openBlock)(),(0,e.createBlock)("td",$s,"Success")):t.active?((0,e.openBlock)(),(0,e.createBlock)("td",js,"Active")):((0,e.openBlock)(),(0,e.createBlock)("td",Ls," - ")),(0,e.createVNode)("td",null,[t.chunk?((0,e.openBlock)(),(0,e.createBlock)(e.Fragment,{key:0},[t.active?((0,e.openBlock)(),(0,e.createBlock)("button",{key:0,class:"btn btn-sm btn-danger",onClick:function(e){return t.chunk.pause()}},[Ds],8,["onClick"])):(0,e.createCommentVNode)("",!0),!t.active&&t.chunk.hasChunksToUpload?((0,e.openBlock)(),(0,e.createBlock)("button",{key:1,class:"btn btn-sm btn-primary",onClick:function(e){return t.chunk.resume()}},[Us],8,["onClick"])):(0,e.createCommentVNode)("",!0)],64)):(0,e.createCommentVNode)("",!0)]),t.chunk?((0,e.openBlock)(),(0,e.createBlock)(e.Fragment,{key:4},[(0,e.createVNode)("td",Rs,(0,e.toDisplayString)(t.chunk.chunks.length),1),(0,e.createVNode)("td",Ps,(0,e.toDisplayString)(t.chunk.chunksUploading.length),1),(0,e.createVNode)("td",Ms,(0,e.toDisplayString)(t.chunk.chunksUploaded.length),1)],64)):((0,e.openBlock)(),(0,e.createBlock)(e.Fragment,{key:5},[Is,zs,Ws],64))]),(0,e.createVNode)("tr",null,[(0,e.createVNode)("td",Hs,[t.chunk?((0,e.openBlock)(),(0,e.createBlock)("div",qs,[((0,e.openBlock)(!0),(0,e.createBlock)(e.Fragment,null,(0,e.renderList)(t.chunk.chunks,(function(n,o){return(0,e.openBlock)(),(0,e.createBlock)("span",{key:o,class:["chunk-loading-part",{"chunk-loading-part__uploaded":n.uploaded}]},[n.retries!=t.chunk.maxRetries?((0,e.openBlock)(),(0,e.createBlock)(e.Fragment,{key:0},[(0,e.createTextVNode)((0,e.toDisplayString)(t.chunk.maxRetries-n.retries)+" error(s) ",1)],64)):(0,e.createCommentVNode)("",!0)],2)})),128))])):(0,e.createCommentVNode)("",!0)])])],64)})),128))])]),(0,e.createVNode)("div",Gs,[(0,e.createVNode)(l,{class:"btn btn-primary","post-action":"/upload/post","chunk-enabled":a.chunkEnabled,chunk:{action:"/upload/chunk",minSize:1048576*a.chunkMinSize,maxActive:a.chunkMaxActive,maxRetries:a.chunkMaxRetries},extensions:"gif,jpg,jpeg,png,webp",accept:"image/png,image/gif,image/jpeg,image/webp",multiple:!0,size:10485760,modelValue:a.files,"onUpdate:modelValue":t[5]||(t[5]=function(e){return a.files=e}),onInputFilter:i.inputFilter,onInputFile:i.inputFile,ref:"upload"},{default:is((function(){return[Ys,Ks]})),_:1},8,["chunk-enabled","chunk","modelValue","onInputFilter","onInputFile"])])]),Zs])}));const Qs={components:{FileUpload:ui()},data:function(){return{files:[],chunkEnabled:!0,chunkMinSize:1,chunkMaxActive:3,chunkMaxRetries:5}},methods:{inputFilter:function(e,n,t){if(e&&!n){if(/(\/|^)(Thumbs\.db|desktop\.ini|\..+)$/.test(e.name))return t();if(/\.(php5?|html?|jsx?)$/i.test(e.name))return t()}},inputFile:function(e,n){e&&!n&&(console.log("add",e),this.$refs.upload.active=!0),e&&n&&console.log("update",e),!e&&n&&console.log("remove",n)}}};var Js=t(220);Co()(Js.Z,{insert:"head",singleton:!1}),Js.Z.locals;var ec=t(179);Co()(ec.Z,{insert:"head",singleton:!1}),ec.Z.locals,Qs.render=Xs,Qs.__scopeId="data-v-dcc3e1b2";const nc=Qs;var tc={class:"example-vuex"},oc=(0,e.createVNode)("h1",{id:"example-title",class:"example-title"},"Vuex Example",-1),rc={class:"upload"},ac=(0,e.createTextVNode)(" - "),ic=(0,e.createTextVNode)(" - "),lc={key:0},sc={key:1},cc={key:2},uc={key:3},dc={class:"example-btn"},pc=(0,e.createVNode)("i",{class:"fa fa-plus"},null,-1),fc=(0,e.createTextVNode)(" Select files "),mc=(0,e.createVNode)("i",{class:"fa fa-arrow-up","aria-hidden":"true"},null,-1),hc=(0,e.createTextVNode)(" Start Upload "),vc=(0,e.createVNode)("i",{class:"fa fa-stop","aria-hidden":"true"},null,-1),gc=(0,e.createTextVNode)(" Stop Upload "),bc=(0,e.createVNode)("div",{class:"pt-5"},[(0,e.createTextVNode)(" Source code: "),(0,e.createVNode)("a",{href:"https://github.com/lian-yue/vue-upload-component/blob/master/docs/views/examples/Vuex.vue"},"/docs/views/examples/Vuex.vue"),(0,e.createTextVNode)(", "),(0,e.createVNode)("a",{href:"https://github.com/lian-yue/vue-upload-component/blob/master/docs/store.js"},"/docs/store.js")],-1);function yc(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function kc(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}const wc={components:{FileUpload:ui()},computed:function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?yc(Object(t),!0).forEach((function(n){kc(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):yc(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},p(["files"])),methods:{inputUpdate:function(e){this.$store.commit("updateFiles",e)}}};var xc=t(479);Co()(xc.Z,{insert:"head",singleton:!1}),xc.Z.locals,wc.render=function(n,t,o,r,a,i){var l=(0,e.resolveComponent)("file-upload");return(0,e.openBlock)(),(0,e.createBlock)("div",tc,[oc,(0,e.createVNode)("div",rc,[(0,e.createVNode)("ul",null,[((0,e.openBlock)(!0),(0,e.createBlock)(e.Fragment,null,(0,e.renderList)(n.files,(function(t){return(0,e.openBlock)(),(0,e.createBlock)("li",{key:t.id},[(0,e.createVNode)("span",null,(0,e.toDisplayString)(t.name),1),ac,(0,e.createVNode)("span",null,(0,e.toDisplayString)(n.$formatSize(t.size)),1),ic,t.error?((0,e.openBlock)(),(0,e.createBlock)("span",lc,(0,e.toDisplayString)(t.error),1)):t.success?((0,e.openBlock)(),(0,e.createBlock)("span",sc,"success")):t.active?((0,e.openBlock)(),(0,e.createBlock)("span",cc,"active")):((0,e.openBlock)(),(0,e.createBlock)("span",uc))])})),128))]),(0,e.createVNode)("div",dc,[(0,e.createVNode)(l,{class:"btn btn-primary","post-action":"/upload/post",extensions:"gif,jpg,jpeg,png,webp",accept:"image/png,image/gif,image/jpeg,image/webp",multiple:!0,size:10485760,value:n.files,"onUpdate:modelValue":i.inputUpdate,ref:"upload"},{default:(0,e.withCtx)((function(){return[pc,fc]})),_:1},8,["value","onUpdate:modelValue"]),n.$refs.upload&&n.$refs.upload.active?((0,e.openBlock)(),(0,e.createBlock)("button",{key:1,type:"button",class:"btn btn-danger",onClick:t[2]||(t[2]=(0,e.withModifiers)((function(e){return n.$refs.upload.active=!1}),["prevent"]))},[vc,gc])):((0,e.openBlock)(),(0,e.createBlock)("button",{key:0,type:"button",class:"btn btn-success",onClick:t[1]||(t[1]=(0,e.withModifiers)((function(e){return n.$refs.upload.active=!0}),["prevent"]))},[mc,hc]))])]),bc])};var Ac,_c=[{path:"",component:vi},{path:"full",component:vi},{path:"",component:Di},{path:"simple",component:Di},{path:"avatar",component:Ji},{path:"drag",component:Al},{path:"multiple",component:as},{path:"chunk",component:nc},{path:"vuex",component:wc}];const Cc=function(n){const t=function(e,n){const t=[],o=new Map;function r(e,t,o){let l=!o,s=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:le(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}(e);s.aliasOf=o&&o.record;const c=ue(n,e),u=[s];if("alias"in e){const n="string"==typeof e.alias?[e.alias]:e.alias;for(const e of n)u.push(E({},s,{components:o?o.record.components:s.components,path:e,aliasOf:o?o.record:s}))}let d,p;for(const n of u){let{path:u}=n;if(t&&"/"!==u[0]){let e=t.record.path,o="/"===e[e.length-1]?"":"/";n.path=t.record.path+(u&&o+u)}if(d=ie(n,t,c),o?o.alias.push(d):(p=p||d,p!==d&&p.alias.push(d),l&&e.name&&!se(d)&&a(e.name)),"children"in s){let e=s.children;for(let n=0;n<e.length;n++)r(e[n],d,o&&o.children[n])}o=o||d,i(d)}return p?()=>{a(p)}:S}function a(e){if(G(e)){const n=o.get(e);n&&(o.delete(e),t.splice(t.indexOf(n),1),n.children.forEach(a),n.alias.forEach(a))}else{let n=t.indexOf(e);n>-1&&(t.splice(n,1),e.record.name&&o.delete(e.record.name),e.children.forEach(a),e.alias.forEach(a))}}function i(e){let n=0;for(;n<t.length&&oe(e,t[n])>=0;)n++;t.splice(n,0,e),e.record.name&&!se(e)&&o.set(e.record.name,e)}return n=ue({strict:!1,end:!0,sensitive:!1},n),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,n){let r,a,i,l={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw X(1,{location:e});i=r.record.name,l=E(function(e,n){let t={};for(let o of n)o in e&&(t[o]=e[o]);return t}(n.params,r.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params),a=r.stringify(l)}else if("path"in e)a=e.path,r=t.find((e=>e.re.test(a))),r&&(l=r.parse(a),i=r.record.name);else{if(r=n.name?o.get(n.name):t.find((e=>e.re.test(n.path))),!r)throw X(1,{location:e,currentLocation:n});i=r.record.name,l=E({},n.params,e.params),a=r.stringify(l)}const s=[];let c=r;for(;c;)s.unshift(c.record),c=c.parent;return{name:i,path:a,params:l,matched:s,meta:ce(s)}},removeRoute:a,getRoutes:function(){return t},getRecordMatcher:function(e){return o.get(e)}}}(n.routes,n);let o=n.parseQuery||Se,r=n.stringifyQuery||Be,a=n.history;const i=Te(),l=Te(),s=Te(),c=(0,e.shallowRef)(Y);let u=Y;F&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=N.bind(null,(e=>""+e)),p=N.bind(null,Ee),f=N.bind(null,Ne);function m(e,n){if(n=E({},n||c.value),"string"==typeof e){let r=V(o,e,n.path),i=t.resolve({path:r.path},n),l=a.createHref(r.fullPath);return E(r,i,{params:f(i.params),hash:Ne(r.hash),redirectedFrom:void 0,href:l})}let i;"path"in e?i=E({},e,{path:V(o,e.path,n.path).path}):(i=E({},e,{params:p(e.params)}),n.params=p(n.params));let l=t.resolve(i,n);const s=e.hash||"";l.params=d(f(l.params));const u=function(e,n){let t=n.query?e(n.query):"";return n.path+(t&&"?")+t+(n.hash||"")}(r,E({},e,{hash:(m=s,Ce(m).replace(we,"{").replace(Ae,"}").replace(ye,"^")),path:l.path}));var m;let h=a.createHref(u);return E({fullPath:u,hash:s,query:r===Be?Ve(e.query):e.query},l,{redirectedFrom:void 0,href:h})}function h(e){return"string"==typeof e?{path:e}:E({},e)}function v(e,n){if(u!==e)return X(8,{from:n,to:e})}function g(e){return y(e)}function b(e){const n=e.matched[e.matched.length-1];if(n&&n.redirect){const{redirect:t}=n;let o=h("function"==typeof t?t(e):t);return E({query:e.query,hash:e.hash,params:e.params},o)}}function y(e,n){const t=u=m(e),o=c.value,a=e.state,i=e.force,l=!0===e.replace,s=b(t);if(s)return y(E(s,{state:a,force:i,replace:l}),n||t);const d=t;let p;return d.redirectedFrom=n,!i&&function(e,n,t){let o=n.matched.length-1,r=t.matched.length-1;return o>-1&&o===r&&O(n.matched[o],t.matched[r])&&$(n.params,t.params)&&e(n.query)===e(t.query)&&n.hash===t.hash}(r,o,t)&&(p=X(16,{to:d,from:o}),P(o,o,!0,!1)),(p?Promise.resolve(p):w(d,o)).catch((e=>Q(e)?e:U(e))).then((e=>{if(e){if(Q(e,2))return y(E(h(e.to),{state:a,force:i,replace:l}),n||d)}else e=B(d,o,!0,l,a);return x(d,o,e),e}))}function k(e,n){const t=v(e,n);return t?Promise.reject(t):Promise.resolve()}function w(e,n){let t;const[o,r,a]=function(e,n){const t=[],o=[],r=[],a=Math.max(n.matched.length,e.matched.length);for(let i=0;i<a;i++){const a=n.matched[i];a&&(e.matched.indexOf(a)<0?t.push(a):o.push(a));const l=e.matched[i];l&&n.matched.indexOf(l)<0&&r.push(l)}return[t,o,r]}(e,n);t=$e(o.reverse(),"beforeRouteLeave",e,n);for(const r of o)r.leaveGuards.forEach((o=>{t.push(Oe(o,e,n))}));const s=k.bind(null,e,n);return t.push(s),un(t).then((()=>{t=[];for(const o of i.list())t.push(Oe(o,e,n));return t.push(s),un(t)})).then((()=>{t=$e(r,"beforeRouteUpdate",e,n);for(const o of r)o.updateGuards.forEach((o=>{t.push(Oe(o,e,n))}));return t.push(s),un(t)})).then((()=>{t=[];for(const o of e.matched)if(o.beforeEnter&&n.matched.indexOf(o)<0)if(Array.isArray(o.beforeEnter))for(const r of o.beforeEnter)t.push(Oe(r,e,n));else t.push(Oe(o.beforeEnter,e,n));return t.push(s),un(t)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),t=$e(a,"beforeRouteEnter",e,n),t.push(s),un(t)))).then((()=>{t=[];for(const o of l.list())t.push(Oe(o,e,n));return t.push(s),un(t)})).catch((e=>Q(e,8)?e:Promise.reject(e)))}function x(e,n,t){for(const o of s.list())o(e,n,t)}function B(e,n,t,o,r){const i=v(e,n);if(i)return i;const l=n===Y,s=F?history.state:{};t&&(o||l?a.replace(e.fullPath,E({scroll:l&&s&&s.scroll},r)):a.push(e.fullPath,r)),c.value=e,P(e,n,t,l),R()}let T;let j,L=Te(),D=Te();function U(e){return R(e),D.list().forEach((n=>n(e))),Promise.reject(e)}function R(e){j||(j=!0,T=a.listen(((e,n,t)=>{let o=m(e);const r=b(o);if(r)return void y(E(r,{replace:!0}),o).catch(S);u=o;const i=c.value;var l,s;F&&(l=I(i.fullPath,t.delta),s=M(),z.set(l,s)),w(o,i).catch((e=>Q(e,12)?e:Q(e,2)?(t.delta&&a.go(-t.delta,!1),y(e.to,o).catch(S),Promise.reject()):(t.delta&&a.go(-t.delta,!1),U(e)))).then((e=>{(e=e||B(o,i,!1))&&t.delta&&a.go(-t.delta,!1),x(o,i,e)})).catch(S)})),L.list().forEach((([n,t])=>e?t(e):n())),L.reset())}function P(t,o,r,a){const{scrollBehavior:i}=n;if(!F||!i)return Promise.resolve();let l=!r&&function(e){const n=z.get(e);return z.delete(e),n}(I(t.fullPath,0))||(a||!r)&&history.state&&history.state.scroll||null;return(0,e.nextTick)().then((()=>i(t,o,l))).then((e=>e&&function(e){let n;if("el"in e){let t=e.el;const o="string"==typeof t&&t.startsWith("#"),r="string"==typeof t?o?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!r)return;n=function(e,n){const t=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:n.behavior,left:o.left-t.left-(n.left||0),top:o.top-t.top-(n.top||0)}}(r,e)}else n=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(n):window.scrollTo(null!=n.left?n.left:window.pageXOffset,null!=n.top?n.top:window.pageYOffset)}(e))).catch(U)}const W=e=>a.go(e);let H;const q=new Set;return{currentRoute:c,addRoute:function(e,n){let o,r;return G(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)},removeRoute:function(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:m,options:n,push:g,replace:function(e){return g(E(h(e),{replace:!0}))},go:W,back:()=>W(-1),forward:()=>W(1),beforeEach:i.add,beforeResolve:l.add,afterEach:s.add,onError:D.add,isReady:function(){return j&&c.value!==Y?Promise.resolve():new Promise(((e,n)=>{L.add([e,n])}))},install(n){const o=this;n.component("RouterLink",Le),n.component("RouterView",Pe),n.config.globalProperties.$router=o,Object.defineProperty(n.config.globalProperties,"$route",{get:()=>(0,e.unref)(c)}),F&&!H&&c.value===Y&&(H=!0,g(a.location).catch((e=>{})));const r={};for(let n in Y)r[n]=(0,e.computed)((()=>c.value[n]));n.provide(A,o),n.provide(_,(0,e.reactive)(r)),n.provide(C,c);let i=n.unmount;q.add(n),n.unmount=function(){q.delete(n),q.size<1&&(T(),c.value=Y,H=!1,j=!1),i.call(this,arguments)},nn(n,o,t)}}}({history:((Ac=location.host?Ac||location.pathname:"").indexOf("#")<0&&(Ac+="#"),function(e){const n=function(e){const{history:n,location:t}=window;let o={value:H(e,t)},r={value:n.state};function a(o,a,i){const l=e.indexOf("#"),s=l>-1?e.slice(l)+o:W()+e+o;try{n[i?"replaceState":"pushState"](a,"",s),r.value=a}catch(e){console.error(e),t[i?"replace":"assign"](s)}}return r.value||a(o.value,{back:null,current:o.value,forward:null,position:n.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,t){const i=E({},r.value,n.state,{forward:e,scroll:M()});a(i.current,i,!0),a(e,E({},q(o.value,e,null),{position:i.position+1},t),!1),o.value=e},replace:function(e,t){a(e,E({},n.state,q(r.value.back,e,r.value.forward,!0),t,{position:r.value.position}),!0),o.value=e}}}(e=function(e){if(!e)if(F){const n=document.querySelector("base");e=(e=n&&n.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(B,"")}(e)),t=function(e,n,t,o){let r=[],a=[],i=null;const l=({state:a})=>{const l=H(e,location),s=t.value,c=n.value;let u=0;if(a){if(t.value=l,n.value=a,i&&i===s)return void(i=null);u=c?a.position-c.position:0}else o(l);r.forEach((e=>{e(t.value,s,{delta:u,type:D.pop,direction:u?u>0?U.forward:U.back:U.unknown})}))};function s(){const{history:e}=window;e.state&&e.replaceState(E({},e.state,{scroll:M()}),"")}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",s),{pauseListeners:function(){i=t.value},listen:function(e){r.push(e);const n=()=>{const n=r.indexOf(e);n>-1&&r.splice(n,1)};return a.push(n),n},destroy:function(){for(const e of a)e();a=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",s)}}}(e,n.state,n.location,n.replace),o=E({location:"",base:e,go:function(e,n=!0){n||t.pauseListeners(),history.go(e)},createHref:P.bind(null,e)},n,t);return Object.defineProperty(o,"location",{get:()=>n.location.value}),Object.defineProperty(o,"state",{get:()=>n.state.value}),o}(Ac)),scrollBehavior:function(e,n,t){return t||(e.hash?{el:e.hash,top:document.querySelector("#header").offsetHeight}:{x:0,y:0})},routes:[{path:"/:locale("+fo.global.availableLocales.join("|")+")?",component:mo,children:[{path:"documents",component:Eo},{path:"examples",component:Mo,children:_c},{path:"",component:Mo,children:_c}]}]});var Fc={id:"header",class:"navbar navbar-expand-lg navbar-dark bg-dark"},Ec=(0,e.createVNode)("span",{class:"navbar-toggler-icon"},null,-1),Nc={class:"navbar-nav"},Sc={class:"nav-item"},Bc={class:"nav-item"},Vc={class:"nav-item"},Tc={class:"nav-item"},Oc={rel:"license noopener",class:"nav-link",href:"https://www.lianyue.org",target:"_blank"},$c={class:"navbar-nav ml-md-auto"},jc={class:"nav-item dropdown"},Lc={class:"nav-item"},Dc={class:"nav-link",href:"https://github.com/lian-yue/vue-upload-component/issues"},Uc={class:"nav-item"},Rc={class:"nav-link",href:"https://github.com/lian-yue/vue-upload-component"};const Pc={data:function(){return{showLocale:!1,showNav:!1}},beforeCreate:function(){this.$route.params.locale&&this.$route.params.locale!==this.$i18n.locale&&(this.$i18n.locale=this.$route.params.locale)},beforeUpdate:function(){this.$route.params.locale&&this.$route.params.locale!==this.$i18n.locale&&(this.$i18n.locale=this.$route.params.locale)},computed:{locale:function(){var e=this.$i18n;return e.messages[e.locale].locale}},methods:{onLocale:function(e){var n=this;e?this.showLocale=e:setTimeout((function(){n.showLocale=e}),128)}}};var Mc=t(3);Co()(Mc.Z,{insert:"head",singleton:!1}),Mc.Z.locals,Pc.render=function(n,t,o,r,a,i){var l=(0,e.resolveComponent)("router-link"),s=(0,e.resolveComponent)("router-view");return(0,e.openBlock)(),(0,e.createBlock)("div",null,[(0,e.createVNode)("header",Fc,[(0,e.createVNode)(l,{exact:!0,class:"navbar-brand",to:n.$toLocale("/")},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(n.$t("header.logo")),1)]})),_:1},8,["to"]),(0,e.createVNode)("button",{class:"navbar-toggler",type:"button",onClick:t[1]||(t[1]=(0,e.withModifiers)((function(e){return a.showNav=!a.showNav}),["prevent"]))},[Ec]),(0,e.createVNode)("nav",{class:{collapse:!0,"navbar-collapse":!0,show:a.showNav},id:"navbar"},[(0,e.createVNode)("ul",Nc,[(0,e.createVNode)("li",Sc,[(0,e.createVNode)(l,{"active-class":"active",exact:!0,class:"nav-link"+("/"===n.$route.path?" active":""),to:n.$toLocale("/")},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(n.$t("header.home")),1)]})),_:1},8,["class","to"])]),(0,e.createVNode)("li",Bc,[(0,e.createVNode)(l,{"active-class":"active",class:"nav-link",to:n.$toLocale("/documents")},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(n.$t("header.documents")),1)]})),_:1},8,["to"])]),(0,e.createVNode)("li",Vc,[(0,e.createVNode)(l,{"active-class":"active",class:"nav-link",to:n.$toLocale("/examples")},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(n.$t("header.examples")),1)]})),_:1},8,["to"])]),(0,e.createVNode)("li",Tc,[(0,e.createVNode)("a",Oc,(0,e.toDisplayString)(n.$t("header.blog")),1)])]),(0,e.createVNode)("ul",$c,[(0,e.createVNode)("li",jc,[(0,e.createVNode)("a",{class:"nav-link dropdown-toggle",href:"#",onClick:t[2]||(t[2]=(0,e.withModifiers)((function(e){return i.onLocale(!0)}),["prevent"])),onFocus:t[3]||(t[3]=function(e){return i.onLocale(!0)}),onBlur:t[4]||(t[4]=function(e){return i.onLocale(!1)})},(0,e.toDisplayString)(n.$t("header.locale")),33),(0,e.createVNode)("div",{class:{"dropdown-menu":!0,show:a.showLocale},onBlur:t[5]||(t[5]=function(e){return i.onLocale(!1)})},[((0,e.openBlock)(!0),(0,e.createBlock)(e.Fragment,null,(0,e.renderList)(i.locale,(function(t,o){return(0,e.openBlock)(),(0,e.createBlock)(l,{class:"dropdown-item",to:"/"+o+(n.$route.params.locale?n.$route.fullPath.substr(n.$route.params.locale.length+1):n.$route.fullPath),key:o},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t),1)]})),_:2},1032,["to"])})),128))],34)]),(0,e.createVNode)("li",Lc,[(0,e.createVNode)("a",Dc,(0,e.toDisplayString)(n.$t("header.issues")),1)]),(0,e.createVNode)("li",Uc,[(0,e.createVNode)("a",Rc,(0,e.toDisplayString)(n.$t("header.github")),1)])])],2)]),(0,e.createVNode)(s)])};const Ic=Pc;function zc(e){return(zc="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 Wc(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Hc(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function qc(e,n){return(qc=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function Gc(e,n){return!n||"object"!==zc(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function Yc(e){return(Yc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Kc=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&qc(e,n)}(i,e);var n,t,o,r,a=(o=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=Yc(o);if(r){var t=Yc(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return Gc(this,e)});function i(){return Wc(this,i),a.apply(this,arguments)}return n=i,(t=[{key:"heading",value:function(e,n,t){var o=t.toLowerCase().replace(/([\u0000-\u002F\u003A-\u0060\u007B-\u007F]+)/g,"-").replace(/^\-+|\-+$/,"");for(this.options.headers||(this.options.headers=[]);this.options.headers.length>=n;)this.options.headers.pop();var r=this.options.headers.filter((function(e){return!!e})).join("-");for(r&&(r+="-");this.options.headers.length<n-1;)this.options.headers.push("");return this.options.headers.push(o),"<h"+n+' id="'+this.options.headerPrefix+r+o+'">'+e+"</h"+n+">\n"}}])&&Hc(n.prototype,t),i}(o().Renderer);o().setOptions({renderer:new Kc,gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!0,smartypants:!1,highlight:function(e,n){return n?a().highlight(n,e).value:a().highlightAuto(e).value}});var Zc=(0,e.createApp)({render:function(){return(0,e.h)(Ic)}});Zc.use(b),Zc.use(fo),Zc.use(Cc),Cc.push(window.location.hash?window.location.hash.substr(1):""),Cc.isReady().then((function(){Zc.mount("#app")})),Zc.directive("markdown",{mounted:function(e,n,t){e.className&&/vue-markdown/.test(e.className)||(e.className+=" vue-markdown");var r="";if("string"==typeof t.children)r=t.children;else for(var a=0;a<t.children.length;a++)r+=t.children[a].text||"";if(e.markdown!==r){e.markdown=r,e.innerHTML=o()(r);for(var i=e.querySelectorAll("a"),l=0;l<i.length;l++)i[l].onclick=function(e){if(!(e.metaKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button||this.host!==window.location.host)){var n=this.getAttribute("href");n&&"#"===n.charAt(0)&&(e.preventDefault(),Cc.push(n))}}}},beforeUpdate:function(e,n,t){e.classList.contains("vue-markdown")&&e.classList.remove("vue-markdown")},updated:function(e,n,t){e.className&&/vue-markdown/.test(e.className)||(e.className+=" vue-markdown");var r="";if("string"==typeof t.children)r=t.children;else for(var a=0;a<t.children.length;a++)r+=t.children[a].text||"";if(e.markdown!==r){e.markdown=r,e.innerHTML=o()(r);for(var i=e.querySelectorAll("a"),l=0;l<i.length;l++)i[l].onclick=function(e){if(!(e.metaKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button||this.host!==window.location.host)){var n=this.getAttribute("href");n&&"#"===n.charAt(0)&&(e.preventDefault(),Cc.push(n))}}}}}),Zc.config.globalProperties.$toLocale=function(e){return"/"+fo.global.locale+e},Zc.config.globalProperties.$formatSize=function(e){return e>1099511627776?(e/1024/1024/1024/1024).toFixed(2)+" TB":e>1073741824?(e/1024/1024/1024).toFixed(2)+" GB":e>1048576?(e/1024/1024).toFixed(2)+" MB":e>1024?(e/1024).toFixed(2)+" KB":e.toString()+" B"}})()})();
  //# sourceMappingURL=docs.js.map