-
Notifications
You must be signed in to change notification settings - Fork 105
/
Copy pathvuefileupload.min.js
2 lines (2 loc) · 29.1 KB
/
vuefileupload.min.js
1
2
/*! created by marchFantasy */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.vuefileupload=e():t.vuefileupload=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=44)}([function(t,e){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){t.exports=!n(8)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(11),o=n(32),i=n(17),u=Object.defineProperty;e.f=n(2)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(35),o=n(18);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(1),o=n(0),i=n(51),u=n(7),s=function(t,e,n){var a,f,l,c=t&s.F,p=t&s.G,d=t&s.S,h=t&s.P,v=t&s.B,y=t&s.W,m=p?o:o[e]||(o[e]={}),b=m.prototype,g=p?r:d?r[e]:(r[e]||{}).prototype;p&&(n=e);for(a in n)(f=!c&&g&&void 0!==g[a])&&a in m||(l=f?g[a]:n[a],m[a]=p&&"function"!=typeof g[a]?n[a]:v&&f?i(l,r):y&&g[a]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):h&&"function"==typeof l?i(Function.call,l):l,h&&((m.virtual||(m.virtual={}))[a]=l,t&s.R&&b&&!b[a]&&u(b,a,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){var r=n(3),o=n(13);t.exports=n(2)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(21)("wks"),o=n(14),i=n(1).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(34),o=n(22);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(12);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";var r=n(57),o=n.n(r),i=n(79),u=n.n(i),s=n(82),a=n.n(s),f=n(85),l=n.n(f),c={isHTML5:function(){return!(!window.FormData||!File)},extend:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.forEach(function(e){l()(t,a()(e).reduce(function(t,n){return t[n]=u()(e,n),t},{}))}),t},isEmptyObject:function(t){if(this.isObject(t)){var e=null;for(e in t)if(e)return!1}return!0},isFile:function(t){return null!==t&&!!(window.File&&t instanceof window.File&&t.size>=0)},on:function(t,e,n,r){t.addEventListener(e,n,r)},off:function(t,e,n){t.removeEventListener(e,n)},isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"object"===(void 0===t?"undefined":o()(t))},toArray:function(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}};e.a=c},function(t,e,n){var r=n(12);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(21)("keys"),o=n(14);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(1),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(18);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports=!0},function(t,e){t.exports={}},function(t,e,n){var r=n(3).f,o=n(4),i=n(9)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){e.f=n(9)},function(t,e,n){var r=n(1),o=n(0),i=n(25),u=n(28),s=n(3).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:u.f(t)})}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(90),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){t.exports=!n(2)&&!n(8)(function(){return 7!=Object.defineProperty(n(33)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(12),o=n(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(4),o=n(5),i=n(54)(!1),u=n(20)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),a=0,f=[];for(n in s)n!=u&&r(s,n)&&f.push(n);for(;e.length>a;)r(s,n=e[a++])&&(~i(f,n)||f.push(n));return f}},function(t,e,n){var r=n(36);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){"use strict";var r=n(25),o=n(6),i=n(38),u=n(7),s=n(4),a=n(26),f=n(62),l=n(27),c=n(64),p=n(9)("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,v,y,m,b){f(n,e,v);var g,_,x,O=function(t){if(!d&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",U="values"==y,w=!1,j=t.prototype,k=j[p]||j["@@iterator"]||y&&j[y],E=k||O(y),F=y?U?O("entries"):E:void 0,I="Array"==e?j.entries||k:k;if(I&&(x=c(I.call(new t)))!==Object.prototype&&x.next&&(l(x,S,!0),r||s(x,p)||u(x,p,h)),U&&k&&"values"!==k.name&&(w=!0,E=function(){return k.call(this)}),r&&!b||!d&&!w&&j[p]||u(j,p,E),a[e]=E,a[S]=h,y)if(g={values:U?E:O("values"),keys:m?E:O("keys"),entries:F},b)for(_ in g)_ in j||i(j,_,g[_]);else o(o.P+o.F*(d||w),e,g);return g}},function(t,e,n){t.exports=n(7)},function(t,e,n){var r=n(11),o=n(40),i=n(22),u=n(20)("IE_PROTO"),s=function(){},a=function(){var t,e=n(33)("iframe"),r=i.length;for(e.style.display="none",n(63).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;r--;)delete a.prototype[i[r]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[u]=t):n=a(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(3),o=n(11),i=n(10);t.exports=n(2)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),s=u.length,a=0;s>a;)r.f(t,n=u[a++],e[n]);return t}},function(t,e,n){var r=n(34),o=n(22).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(15),o=n(13),i=n(5),u=n(17),s=n(4),a=n(32),f=Object.getOwnPropertyDescriptor;e.f=n(2)?f:function(t,e){if(t=i(t),e=u(e,!0),a)try{return f(t,e)}catch(t){}if(s(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(6),o=n(0),i=n(8);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],u={};u[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",u)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(46),o=n(96),i=n(45),u=i(r.a,o.a,null,null,null);e.default=u.exports},function(t,e){t.exports=function(t,e,n,r,o){var i,u=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(i=t,u=t.default);var a="function"==typeof u?u.options:u;e&&(a.render=e.render,a.staticRenderFns=e.staticRenderFns),r&&(a._scopeId=r);var f;if(o?(f=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},a._ssrRegister=f):n&&(f=n),f){var l=a.functional,c=l?a.render:a.beforeCreate;l?a.render=function(t,e){return f.call(e),c(t,e)}:a.beforeCreate=c?[].concat(c,f):[f]}return{esModule:i,exports:u,options:a}}},function(t,e,n){"use strict";var r=n(47),o=n.n(r),i=n(16),u=(n(88),n(89)),s=function(){};e.a={props:{url:{type:String,required:!0},max:{type:Number,default:Number.MAX_VALUE},name:{type:String,default:"file"},autoUpload:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},onAdd:{type:Function,default:s},filters:{type:Array,default:function(){return new Array}},requestOptions:{type:Object,default:function(){return{formData:{},headers:{},responseType:"json",withCredentials:!1}}},events:{type:Object,default:function(){return{onProgressUpload:s,onCompleteUpload:s,onErrorUpload:s,onSuccessUpload:s,onAbortUpload:s,onAddFileFail:s,onAddFileSuccess:s}}}},data:function(){return{fileUploader:null}},computed:{bFiles:{get:function(){return this.files},set:function(t){this.files=t}}},created:function(){this.fileUploader=new u.a(o()({vm:this,url:this.url,name:this.name,maxItems:this.max,filters:this.filters,multiple:this.multiple,autoUpload:this.autoUpload},this.requestOptions,this.events))},mounted:function(){this.$refs.fileInput&&this.multiple&&this.$refs.fileInput.setAttribute("multiple",this.multiple),i.a.on(this.$refs.fileInput,"change",this._onChange)},beforeDestroy:function(){i.a.off(this.$refs.fileInput,"change"),this.fileUploader.clearQueue()},methods:{uploadAll:function(){this.fileUploader.uploadAll()},clearAll:function(){this.fileUploader.clearQueue()},setFormDataItem:function(t,e){this.fileUploader.setFormDataItem(t,e)},_abortUpload:function(t){this.fileUploader.abortItem(t)},_onChange:function(){var t=i.a.isHTML5()?this.$refs.fileInput.files:this.$refs.fileInput;this.fileUploader.addToQueue(t),this.$emit("onAdd",this.fileUploader.getAll()),this._resetInput()},_resetInput:function(){this.$refs.fileInput.value=""}}}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(48),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){t.exports={default:n(49),__esModule:!0}},function(t,e,n){n(50),t.exports=n(0).Object.assign},function(t,e,n){var r=n(6);r(r.S+r.F,"Object",{assign:n(53)})},function(t,e,n){var r=n(52);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var r=n(10),o=n(23),i=n(15),u=n(24),s=n(35),a=Object.assign;t.exports=!a||n(8)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=a({},t)[n]||Object.keys(a({},e)).join("")!=r})?function(t,e){for(var n=u(t),a=arguments.length,f=1,l=o.f,c=i.f;a>f;)for(var p,d=s(arguments[f++]),h=l?r(d).concat(l(d)):r(d),v=h.length,y=0;v>y;)c.call(d,p=h[y++])&&(n[p]=d[p]);return n}:a},function(t,e,n){var r=n(5),o=n(55),i=n(56);t.exports=function(t){return function(e,n,u){var s,a=r(e),f=o(a.length),l=i(u,f);if(t&&n!=n){for(;f>l;)if((s=a[l++])!=s)return!0}else for(;f>l;l++)if((t||l in a)&&a[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var r=n(19),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(19),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(58),i=r(o),u=n(69),s=r(u),a="function"==typeof s.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===a(i.default)?function(t){return void 0===t?"undefined":a(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":a(t)}},function(t,e,n){t.exports={default:n(59),__esModule:!0}},function(t,e,n){n(60),n(65),t.exports=n(28).f("iterator")},function(t,e,n){"use strict";var r=n(61)(!0);n(37)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(19),o=n(18);t.exports=function(t){return function(e,n){var i,u,s=String(o(e)),a=r(n),f=s.length;return a<0||a>=f?t?"":void 0:(i=s.charCodeAt(a),i<55296||i>56319||a+1===f||(u=s.charCodeAt(a+1))<56320||u>57343?t?s.charAt(a):i:t?s.slice(a,a+2):u-56320+(i-55296<<10)+65536)}}},function(t,e,n){"use strict";var r=n(39),o=n(13),i=n(27),u={};n(7)(u,n(9)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(1).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(4),o=n(24),i=n(20)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){n(66);for(var r=n(1),o=n(7),i=n(26),u=n(9)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),a=0;a<s.length;a++){var f=s[a],l=r[f],c=l&&l.prototype;c&&!c[u]&&o(c,u,f),i[f]=i.Array}},function(t,e,n){"use strict";var r=n(67),o=n(68),i=n(26),u=n(5);t.exports=n(37)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(70),__esModule:!0}},function(t,e,n){n(71),n(76),n(77),n(78),t.exports=n(0).Symbol},function(t,e,n){"use strict";var r=n(1),o=n(4),i=n(2),u=n(6),s=n(38),a=n(72).KEY,f=n(8),l=n(21),c=n(27),p=n(14),d=n(9),h=n(28),v=n(29),y=n(73),m=n(74),b=n(11),g=n(5),_=n(17),x=n(13),O=n(39),S=n(75),U=n(42),w=n(3),j=n(10),k=U.f,E=w.f,F=S.f,I=r.Symbol,P=r.JSON,A=P&&P.stringify,C=d("_hidden"),M=d("toPrimitive"),L={}.propertyIsEnumerable,T=l("symbol-registry"),N=l("symbols"),D=l("op-symbols"),R=Object.prototype,$="function"==typeof I,q=r.QObject,H=!q||!q.prototype||!q.prototype.findChild,B=i&&f(function(){return 7!=O(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=k(R,e);r&&delete R[e],E(t,e,n),r&&t!==R&&E(R,e,r)}:E,V=function(t){var e=N[t]=O(I.prototype);return e._k=t,e},G=$&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},Q=function(t,e,n){return t===R&&Q(D,e,n),b(t),e=_(e,!0),b(n),o(N,e)?(n.enumerable?(o(t,C)&&t[C][e]&&(t[C][e]=!1),n=O(n,{enumerable:x(0,!1)})):(o(t,C)||E(t,C,x(1,{})),t[C][e]=!0),B(t,e,n)):E(t,e,n)},z=function(t,e){b(t);for(var n,r=y(e=g(e)),o=0,i=r.length;i>o;)Q(t,n=r[o++],e[n]);return t},W=function(t,e){return void 0===e?O(t):z(O(t),e)},X=function(t){var e=L.call(this,t=_(t,!0));return!(this===R&&o(N,t)&&!o(D,t))&&(!(e||!o(this,t)||!o(N,t)||o(this,C)&&this[C][t])||e)},J=function(t,e){if(t=g(t),e=_(e,!0),t!==R||!o(N,e)||o(D,e)){var n=k(t,e);return!n||!o(N,e)||o(t,C)&&t[C][e]||(n.enumerable=!0),n}},K=function(t){for(var e,n=F(g(t)),r=[],i=0;n.length>i;)o(N,e=n[i++])||e==C||e==a||r.push(e);return r},Y=function(t){for(var e,n=t===R,r=F(n?D:g(t)),i=[],u=0;r.length>u;)!o(N,e=r[u++])||n&&!o(R,e)||i.push(N[e]);return i};$||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===R&&e.call(D,n),o(this,C)&&o(this[C],t)&&(this[C][t]=!1),B(this,t,x(1,n))};return i&&H&&B(R,t,{configurable:!0,set:e}),V(t)},s(I.prototype,"toString",function(){return this._k}),U.f=J,w.f=Q,n(41).f=S.f=K,n(15).f=X,n(23).f=Y,i&&!n(25)&&s(R,"propertyIsEnumerable",X,!0),h.f=function(t){return V(d(t))}),u(u.G+u.W+u.F*!$,{Symbol:I});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)d(Z[tt++]);for(var et=j(d.store),nt=0;et.length>nt;)v(et[nt++]);u(u.S+u.F*!$,"Symbol",{for:function(t){return o(T,t+="")?T[t]:T[t]=I(t)},keyFor:function(t){if(!G(t))throw TypeError(t+" is not a symbol!");for(var e in T)if(T[e]===t)return e},useSetter:function(){H=!0},useSimple:function(){H=!1}}),u(u.S+u.F*!$,"Object",{create:W,defineProperty:Q,defineProperties:z,getOwnPropertyDescriptor:J,getOwnPropertyNames:K,getOwnPropertySymbols:Y}),P&&u(u.S+u.F*(!$||f(function(){var t=I();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!G(t)){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return e=r[1],"function"==typeof e&&(n=e),!n&&m(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!G(e))return e}),r[1]=e,A.apply(P,r)}}}),I.prototype[M]||n(7)(I.prototype,M,I.prototype.valueOf),c(I,"Symbol"),c(Math,"Math",!0),c(r.JSON,"JSON",!0)},function(t,e,n){var r=n(14)("meta"),o=n(12),i=n(4),u=n(3).f,s=0,a=Object.isExtensible||function(){return!0},f=!n(8)(function(){return a(Object.preventExtensions({}))}),l=function(t){u(t,r,{value:{i:"O"+ ++s,w:{}}})},c=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!a(t))return"F";if(!e)return"E";l(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!a(t))return!0;if(!e)return!1;l(t)}return t[r].w},d=function(t){return f&&h.NEED&&a(t)&&!i(t,r)&&l(t),t},h=t.exports={KEY:r,NEED:!1,fastKey:c,getWeak:p,onFreeze:d}},function(t,e,n){var r=n(10),o=n(23),i=n(15);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var u,s=n(t),a=i.f,f=0;s.length>f;)a.call(t,u=s[f++])&&e.push(u);return e}},function(t,e,n){var r=n(36);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(5),o=n(41).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?s(t):o(r(t))}},function(t,e){},function(t,e,n){n(29)("asyncIterator")},function(t,e,n){n(29)("observable")},function(t,e,n){t.exports={default:n(80),__esModule:!0}},function(t,e,n){n(81);var r=n(0).Object;t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)}},function(t,e,n){var r=n(5),o=n(42).f;n(43)("getOwnPropertyDescriptor",function(){return function(t,e){return o(r(t),e)}})},function(t,e,n){t.exports={default:n(83),__esModule:!0}},function(t,e,n){n(84),t.exports=n(0).Object.keys},function(t,e,n){var r=n(24),o=n(10);n(43)("keys",function(){return function(t){return o(r(t))}})},function(t,e,n){t.exports={default:n(86),__esModule:!0}},function(t,e,n){n(87);var r=n(0).Object;t.exports=function(t,e){return r.defineProperties(t,e)}},function(t,e,n){var r=n(6);r(r.S+r.F*!n(2),"Object",{defineProperties:n(40)})},function(t,e,n){"use strict"},function(t,e,n){"use strict";var r=n(30),o=n.n(r),i=n(31),u=n.n(i),s=n(16),a=n(93),f=n(94),l=n(95),c=function(){function t(e){o()(this,t),s.a.extend(this,Object(a.a)(),e,{fileIndex:0,isUploading:!1,failFilterIndex:-1}),this.filters.push({name:"maxLimit",fn:function(){return this.getAll().length<this.maxItems}})}return u()(t,[{key:"getAll",value:function(){return this.queue}},{key:"addToQueue",value:function(t){var e=this,n=this,t=n._isFileList(t)?s.a.toArray(t):[t];t.forEach(function(t){var r=new l.a(t);if(n._isValidFile(r,n.filters)){var o=new f.a(e,t,r);n.queue.push(o),n.onAddFileSuccess(o)}else n.onAddFileFail(t,n.filters[n.failFilterIndex])}),n.autoUpload&&n.uploadAll()}},{key:"uploadAll",value:function(){if(this.queue.length){var t=this.getNotUploadedItems();t.forEach(function(t){t.onPrepareUpload()}),t.length&&t[0].upload()}}},{key:"uploadItem",value:function(t){if(!this.isUploading){var e=s.a.isHTML5()?"_xhrPost":"_iframePost",t=t||this.getNotUploadedItems()[0];t&&(this.isUploading=!0,t.onPrepareUpload(),this[e](t))}}},{key:"abortItem",value:function(t){var e=s.a.isHTML5()?"_xhr":"_form";t&&t.isUploading&&t[e].abort()}},{key:"clearQueue",value:function(){for(;this.queue.length;)this.queue[0].remove()}},{key:"removeFromQueue",value:function(t){var e=this.queue.indexOf(t);t.isUploading&&t.cancel(),this.queue.splice(e,1),t.destroy()}},{key:"setFormDataItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.formData[t]=e}},{key:"getNotUploadedItems",value:function(){return this.queue.filter(function(t){return!t.isUploaded})}},{key:"getNextReadyItems",value:function(){return this.queue.filter(function(t){return t.isReady&&!t.isUploading})}},{key:"onAddFileSuccess",value:function(t){}},{key:"onAddFileFail",value:function(t,e){}},{key:"_onProgressUpload",value:function(t,e){t.onProgress(e),this.onProgressUpload(t,e)}},{key:"onProgressUpload",value:function(t,e){}},{key:"_onSuccessUpload",value:function(t,e,n,r){t.onSuccess(),this.onSuccessUpload(t,e,n,r)}},{key:"onSuccessUpload",value:function(t,e,n,r){}},{key:"_onCompleteUpload",value:function(t,e,n,r){this.onCompleteUpload(t,e,n,r);var o=this.getNextReadyItems()[0];this.isUploading=!1,s.a.isObject(o)&&o.upload()}},{key:"onCompleteUpload",value:function(t,e,n,r){}},{key:"_onErrorUpload",value:function(t,e,n,r){t.onError(),this.onErrorUpload(t,e,n,r)}},{key:"onErrorUpload",value:function(t,e,n,r){}},{key:"_onAbortUpload",value:function(t,e,n,r){t.onAbort(),this.onAbortUpload(t,e,n,r)}},{key:"onAbortUpload",value:function(t,e,n,r){}},{key:"_onBeforeUpload",value:function(t){t.onBeforeUpload(),this.onBeforeUpload(t)}},{key:"onBeforeUpload",value:function(t){}},{key:"_getQueueItem",value:function(){return this.queue.shift()}},{key:"_isFileList",value:function(t){return"FileList"in window?t instanceof FileList:s.a.isObject(t)&&"length"in t}},{key:"_isValidFile",value:function(t,e){var n=this;return this.failFilterIndex=-1,!e.length||e.every(function(e){return n.failFilterIndex++,e.fn.call(n,t)})}},{key:"_parseHeaders",value:function(t){var e={};if(!s.a.isObject(t))return t.split("\n").forEach(function(t){var n=t.indexOf(":");if(n>-1){var r=t.slice(0,n).trim(),o=t.slice(n+1).trim();e[r]=e[r]?e[r]+","+o:o}}),e}},{key:"_xhrPost",value:function(t){var e=this,n=t._xhr=new XMLHttpRequest,r=new FormData;if(this._onBeforeUpload(t),!s.a.isEmptyObject(e.formData))for(var o in e.formData)r.append(o,e.formData[o]);if(r.append(t.alias,t.file,t.name),n.open(t.method,t.url,!0),!s.a.isEmptyObject(e.headers))for(var i in e.headers)n.setRequestHeader(i,e.headers[i]);n.upload.onprogress=function(n){var r=Math.round(n.lengthComputable?100*n.loaded/n.total:0);e._onProgressUpload(t,r)},n.onload=function(){var r=e._parseHeaders(n.getAllResponseHeaders()),o=n.response,i=200==n.status?"Success":"Error";e["_on"+i+"Upload"](t,o,n.status,r),e._onCompleteUpload(t,o,n.status,r)},n.onerror=function(){var r=e._parseHeaders(n.getAllResponseHeaders()),o=n.response;e._onErrorUpload(t,o,n.status,r),e._onCompleteUpload(t,o,n.status,r)},n.onabort=function(){var r=e._parseHeaders(n.getAllResponseHeaders()),o=n.response;e._onAbortUpload(t,o,n.status,r),e._onCompleteUpload(t,o,n.status,r)},n.responseType=e.responseType,n.withCredentials=e.withCredentials,n.send(r)}},{key:"_iframePost",value:function(t){var e=this,n=document.createElement("form"),r=document.createElement("iframe"),o=t.input;if(t._form&&(t._form=null),t._form=n,this._onBeforeUpload(t),o.name=t.alias,n.style.display="none",r.name="vueUploadFile"+Date.now(),!s.a.isEmptyObject(e.formData))for(var i in e.formData){var u=document.createElement("input");u.type="hidden",u.name=i,u.value=e.formData[i],n.appendChild(u)}n.action=t.url,n.method=t.method,n.target=r.name,n.enctype="multipart/form-data",n.encoding="multipart/form-data",n.abort=function(){var i={status:0,response:null},u={};s.a.off(r,"load"),r.src="javascript:false;",e._onAbortUpload(t,i.response,i.status,u),e._onCompleteUpload(t,i.response,i.status,u),e.vm.$refs.fileInput.parentNode.parentNode.appendChild(o),e.vm.$refs.fileInput.parentNode.removeChild(n)},e.vm.$refs.fileInput.parentNode.insertBefore(n,e.vm.$refs.fileInput),n.appendChild(o),n.appendChild(r),s.a.on(r,"load",function(){var i="",u=200,a={};try{i=r.contentDocument.body.innerHTML}catch(t){throw u=500,t}var f={response:i,status:u};e._onSuccessUpload(t,f.response,f.status,a),e._onCompleteUpload(t,f.response,f.status,a),s.a.off(r,"load"),e.vm.$refs.fileInput.parentNode.parentNode.appendChild(o),e.vm.$refs.fileInput.parentNode.removeChild(n),o=null,n=null,r=null}),n.submit()}}]),t}();e.a=c},function(t,e,n){t.exports={default:n(91),__esModule:!0}},function(t,e,n){n(92);var r=n(0).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(6);r(r.S+r.F*!n(2),"Object",{defineProperty:n(3).f})},function(t,e,n){"use strict";var r=function(){return{method:"POST",queue:[],alias:"file",autoUpload:!0,filters:[],formData:{},headers:{},maxItems:Number.MAX_VALUE,withCredentials:!1,responseType:"json"}};e.a=r},function(t,e,n){"use strict";var r=n(30),o=n.n(r),i=n(31),u=n.n(i),s=n(16),a=function(){function t(e,n,r){o()(this,t);var i=s.a.isFile(n)?n:null,u=i?null:n;s.a.extend(this,{uploader:e,file:i,input:u,index:null,url:e.url,alias:e.name,method:e.method,isReady:!1,isUploading:!1,isUploaded:!1,isSuccess:!1,isCancel:!1,isError:!1,progress:0},{name:r.name,size:r.size,type:r.type})}return u()(t,[{key:"upload",value:function(){try{this.uploader.uploadItem(this)}catch(t){throw this.uploader._onErrorUpload(this,t.message,t.number,[]),this.uploader._onErrorUpload(this,t.message,t.number,[]),t}}},{key:"cancel",value:function(){this.uploader.abortItem(this)}},{key:"remove",value:function(){this.uploader.removeFromQueue(this)}},{key:"destroy",value:function(){this.uploader={}}},{key:"onPrepareUpload",value:function(){this.isReady||(this.isReady=!0,this.index=++this.uploader.fileIndex)}},{key:"onBeforeUpload",value:function(){this.isReady=!0,this.isUploading=!0,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0}},{key:"onProgress",value:function(t){this.isUploading&&(this.progress=t)}},{key:"onSuccess",value:function(){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!0,this.isCancel=!1,this.isError=!1,this.progress=100}},{key:"onError",value:function(){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!1,this.isCancel=!1,this.isError=!0,this.progress=0}},{key:"onAbort",value:function(){this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!0,this.isError=!1,this.progress=0}}]),t}();e.a=a},function(t,e,n){"use strict";var r=n(30),o=n.n(r),i=n(31),u=n.n(i),s=n(16),a=function(){function t(e){o()(this,t),s.a.isFile(e)?this.createFile(e):this.createFileFromInput(e.value)}return u()(t,[{key:"createFileFromInput",value:function(t){this.lastModifiedDate=null,this.size=null,this.type="file/"+t.slice(t.lastIndexOf(".")+1).toLowerCase(),this.name=t.slice(t.lastIndexOf("/")+t.lastIndexOf("\\")+2)}},{key:"createFile",value:function(t){this.lastModifiedDate=t.lastModifiedDate,this.size=t.size,this.type=t.type,this.name=t.name}}]),t}();e.a=a},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"vue-file-upload"},[t._t("label",[t._v("上传文件")]),t._v(" "),n("input",{ref:"fileInput",attrs:{type:"file",name:"file"}})],2)},o=[],i={render:r,staticRenderFns:o};e.a=i}])});