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

8 lines
379 KiB
JavaScript
Raw Normal View History

/*!
* Avue.js v2.5.3
* (c) 2017-2020 Smallwei
* Released under the MIT License.
*
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("AVUE",[],e):"object"==typeof exports?exports.AVUE=e():t.AVUE=e()}(this,function(){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=118)}([function(t,e){t.exports=function(t,e,n,i,r,o){var a,s=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(a=t,s=t.default);var u="function"==typeof s?s.options:s;e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),r&&(u._scopeId=r);var c;if(o?(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(o)},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:a,exports:s,options:u}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.name=o.KEY_COMPONENT_NAME+t.name,t.mixins=t.mixins||[],t.mixins.push(r.default),t};var i=n(122),r=function(t){return t&&t.__esModule?t:{default:t}}(i),o=n(10)},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=l.KEY_ECHART_NAME+t.name,t.mixins=t.mixins||[],t.mixins.push(s.default),(0,o.default)(t)};var r=n(1),o=i(r),a=n(301),s=i(a),l=n(10)},function(t,e,n){"use strict";(function(t){function n(t){if(!t||!t.length)return null;var e={};return t.forEach(function(t){var n=t.field;e[n]=e[n]||[],e[n].push(t)}),e}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],o=e.length;if("function"==typeof r)return r.apply(null,e.slice(1));if("string"==typeof r){for(var a=String(r).replace(m,function(t){if("%%"===t)return"%";if(i>=o)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}}),s=e[i];i<o;s=e[++i])a+=" "+s;return a}return r}function r(t){return"string"===t||"url"===t||"hex"===t||"email"===t||"pattern"===t}function o(t,e){return void 0===t||null===t||(!("array"!==e||!Array.isArray(t)||t.length)||!(!r(e)||"string"!=typeof t||t))}function a(t){return 0===Object.keys(t).length}function s(t,e,n){function i(t){r.push.apply(r,t),++o===a&&n(r)}var r=[],o=0,a=t.length;t.forEach(function(t){e(t,i)})}function l(t,e,n){function i(a){if(a&&a.length)return void n(a);var s=r;r+=1,s<o?e(t[s],i):n([])}var r=0,o=t.length;i([])}function u(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n])}),e}function c(t,e,i,r){if(e.first){return l(u(t),i,r)}var o=e.firstFields||[];!0===o&&(o=Object.keys(t));var a=Object.keys(t),c=a.length,d=0,f=[],p=new Promise(function(e,u){var p=function(t){if(f.push.apply(f,t),++d===c)return r(f),f.length?u({errors:f,fields:n(f)}):e()};a.forEach(function(e){var n=t[e];-1!==o.indexOf(e)?l(n,i,p):s(n,i,p)})});return p.catch(function(t){return t}),p}function d(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:"function"==typeof e?e():e,field:e.field||t.fullField}}}function f(t,e){if(e)for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];"object"===(void 0===i?"undefined":h(i))&&"object"===h(t[n])?t[n]=p({},t[n],i):t[n]=i}return t}Object.defineProperty(e,"__esModule",{value:!0});var p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var
!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,o=i.prototype,a=t.FileReaderSync,s=function(t){this.code=this[this.name=t]},l="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),u=l.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=o.fake=!0;u--;)s.prototype[l[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="",o=new y(t),l=0,u=o.length;l<u;l++)r+=String.fromCharCode(o[l]);n.push(r)}else if("Blob"===e(t)||"File"===e(t)){if(!a)throw new s("NOT_READABLE_ERR");var c=new a;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]"},o.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)},o.toString=function(){return"[object Blob]"},o.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 o=0,a=t.length;o<a;o++)r.append(t[o]);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,o=0|e,a=0;if(0===i)return!1;for(a=Math.max(o>=0?o:i-Math.abs(o),0);a<i;){if(String(n[a])===String(r[0]))return!0;a++}return!1})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return window.html2canvas?window.html2canvas(t,e):void r.default.logs("Screenshot")};var i=n(8),r=function(t){return t&&t.__esModule?t:{default:t}}(i)},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,o="rtl"==document.documentElement.getAttribute("dir"),a=document.createElement("textarea");a.style.fontSize="12pt",a.style.border="0",a.style.padding="0",a.style.margin="0",a.style.position="absolute",a.style[o?"right":"left"]="-9999px";var s=window.pageYOffset||document.documentElement.scrollTop;a.style.top=s+"px",a.setAttribute("readonly",""),a.value=e,r.appendChild(a),i(a);try{document.execCommand("copy"),t()}catch(t){!1,n()}})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=functi