Saber/public/cdn/avue/2.0.0/avue.min.js

8 lines
308 KiB
JavaScript
Raw Normal View History

/*!
2019-06-01 13:02:30 +08:00
* Avue.js v2.0.0
* (c) 2017-2019 Smallwei
* Released under the MIT License.
*
*/
2019-06-01 13:02:30 +08:00
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("Vue")):"function"==typeof define&&define.amd?define("AVUE",["Vue"],e):"object"==typeof exports?exports.AVUE=e(require("Vue")):t.AVUE=e(t.Vue)}(this,function(t){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},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=146)}([function(t,e){t.exports=function(t,e,n,i,r,a){var o,l=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(o=t,l=t.default);var u="function"==typeof l?l.options:l;e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),r&&(u._scopeId=r);var c;if(a?(c=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__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=i),c){var d=u.functional,f=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(t,e){return c.call(e),f(t,e)}):u.beforeCreate=f?[].concat(f,c):[c]}return{esModule:o,exports:l,options:u}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.name=a.KEY_COMPONENT_NAME+t.name,t.mixins=t.mixins||[],t.mixins.push(r.default),t};var i=n(150),r=function(t){return t&&t.__esModule?t:{default:t}}(i),a=n(32)},function(t,e,n){"use strict";(function(t){function i(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=1,r=e[0],a=e.length;if("function"==typeof r)return r.apply(null,e.slice(1));if("string"==typeof r){for(var o=String(r).replace(v,function(t){if("%%"===t)return"%";if(i>=a)return t;switch(t){case"%s":return String(e[i++]);case"%d":return Number(e[i++]);case"%j":try{return JSON.stringify(e[i++])}catch(t){return"[Circular]"}break;default:return t}}),l=e[i];i<a;l=e[++i])o+=" "+l;return o}return r}function r(t){return"string"===t||"url"===t||"hex"===t||"email"===t||"pattern"===t}function a(t,e){return void 0===t||null===t||(!("array"!==e||!Array.isArray(t)||t.length)||!(!r(e)||"string"!=typeof t||t))}function o(t,e,n){function i(t){r.push.apply(r,t),++a===o&&n(r)}var r=[],a=0,o=t.length;t.forEach(function(t){e(t,i)})}function l(t,e,n){function i(o){if(o&&o.length)return void n(o);var l=r;r+=1,l<a?e(t[l],i):n([])}var r=0,a=t.length;i([])}function s(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n])}),e}function u(t,e,n,i){if(e.first){return l(s(t),n,i)}var r=e.firstFields||[];!0===r&&(r=Object.keys(t));var a=Object.keys(t),u=a.length,c=0,d=[],f=function(t){d.push.apply(d,t),++c===u&&i(d)};a.forEach(function(e){var i=t[e];-1!==r.indexOf(e)?l(i,n,f):o(i,n,f)})}function c(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:e,field:e.field||t.fullField}}}function d(t,e){if(e)for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];"object"===(void 0===i?"undefined":m()(i))&&"object"===m()(t[n])?t[n]=p()({},t[n],i):t[n]=i}return t}n.d(e,"f",function(){return y}),e.d=i,e.e=a,e.a=u,e.b=c,e.c=d;var f=n(54),p=n.n(f),h=n(31),m=n.n(h),v=/%[sdj%]/g,y=function(){};"production"!==t.env.NODE_ENV&&"undefined"!=typeof window&&"undefined"!=typeof document&&(y=function(t,e){"undefined"!=typeof console&&console.warn&&e.every(function(t){return"string"==typeof t})&&console.warn(t,e)})}).call(e,n(195))},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.name=s.KEY_ECHART_NAME+t.name,t.mixins=t.mixins||[],t.mixins.push(l.default),(0,a.default)(t)};var r=n(1),a=i(r),o=n(351),l=i(o),s=n(32)},function(t,e,n){"use strict";Objec
!function(t){if(t.URL=t.URL||t.webkitURL,t.Blob&&t.URL)try{return void new Blob}catch(t){}var e=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||function(t){var e=function(t){return Object.prototype.toString.call(t).match(/^\[object\s(.*)\]$/)[1]},n=function(){this.data=[]},i=function(t,e,n){this.data=t,this.size=t.length,this.type=e,this.encoding=n},r=n.prototype,a=i.prototype,o=t.FileReaderSync,l=function(t){this.code=this[this.name=t]},s="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),u=s.length,c=t.URL||t.webkitURL||t,d=c.createObjectURL,f=c.revokeObjectURL,p=c,h=t.btoa,m=t.atob,v=t.ArrayBuffer,y=t.Uint8Array;for(i.fake=a.fake=!0;u--;)l.prototype[s[u]]=u+1;return c.createObjectURL||(p=t.URL={}),p.createObjectURL=function(t){var e,n=t.type;return null===n&&(n="application/octet-stream"),t instanceof i?(e="data:"+n,"base64"===t.encoding?e+";base64,"+t.data:"URI"===t.encoding?e+","+decodeURIComponent(t.data):h?e+";base64,"+h(t.data):e+","+encodeURIComponent(t.data)):d?d.call(c,t):void 0},p.revokeObjectURL=function(t){"data:"!==t.substring(0,5)&&f&&f.call(c,t)},r.append=function(t){var n=this.data;if(y&&(t instanceof v||t instanceof y)){for(var r="",a=new y(t),s=0,u=a.length;s<u;s++)r+=String.fromCharCode(a[s]);n.push(r)}else if("Blob"===e(t)||"File"===e(t)){if(!o)throw new l("NOT_READABLE_ERR");var c=new o;n.push(c.readAsBinaryString(t))}else t instanceof i?"base64"===t.encoding&&m?n.push(m(t.data)):"URI"===t.encoding?n.push(decodeURIComponent(t.data)):"raw"===t.encoding&&n.push(t.data):("string"!=typeof t&&(t+=""),n.push(unescape(encodeURIComponent(t))))},r.getBlob=function(t){return arguments.length||(t=null),new i(this.data.join(""),t,"raw")},r.toString=function(){return"[object BlobBuilder]"},a.slice=function(t,e,n){var r=arguments.length;return r<3&&(n=null),new i(this.data.slice(t,r>1?e:this.data.length),n,this.encoding)},a.toString=function(){return"[object Blob]"},a.close=function(){this.size=this.data.length=0},n}(t);t.Blob=function(t,n){var i=n?n.type||"":"",r=new e;if(t)for(var a=0,o=t.length;a<o;a++)r.append(t[a]);return r.getBlob(i)}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||(void 0).content||void 0)},function(t,e,n){"use strict";Array.prototype.includes||(Array.prototype.includes=function(t,e){if(null===this)throw new TypeError('"this" is null or not defined');var n=Object(this),i=n.length>>>0,r=arguments,a=0|e;if(0===i)return!1;for(startIndex=Math.max(a>=0?a:i-Math.abs(a),0);startIndex<i;){if(String(n[startIndex])===String(r[0]))return!0;startIndex++}return!1})},function(t,e,n){"use strict";function i(t){var e=void 0;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var i=window.getSelection(),r=document.createRange();r.selectNodeContents(t),i.removeAllRanges(),i.addRange(r),e=i.toString()}return e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.text;return new Promise(function(t,n){var r=document.body,a="rtl"==document.documentElement.getAttribute("dir"),o=document.createElement("textarea");o.style.fontSize="12pt",o.style.border="0",o.style.padding="0",o.style.margin="0",o.style.position="absolute",o.style[a?"right":"left"]="-9999px";var l=window.pageYOffset||document.documentElement.scrollTop;o.style.top=l+"px",o.setAttribute("readonly",""),o.value=e,r.appendChild(o),i(o);try{document.execCommand("copy"),t()}catch(t){!1,n()}})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(395),r=function(t){return t&&t.__esModule?t:{default:t}}(i),a=n(33),o=void 0,l=[],s=1,u=function(t){var e=t.extend(r.default),n=function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r="imagePreview_"+s++,u={dat