bk-magic-vue
Version:
基于蓝鲸 Magicbox 和 Vue 的前端组件库
1 lines • 1.09 MB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("path")):"function"==typeof define&&define.amd?define(["exports","vue","path"],t):t((e=e||self).bkMagicVue={},e.Vue,e.path)}(this,(function(e,t,i){"use strict";function n(){n=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,s=Object.defineProperty||function(e,t,i){e[t]=i.value},r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function c(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,i){return e[t]=i}}function u(e,t,i,n){var r=t&&t.prototype instanceof p?t:p,a=Object.create(r.prototype),o=new k(n||[]);return s(a,"_invoke",{value:I(e,i,o)}),a}function d(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var h={};function p(){}function f(){}function g(){}var m={};c(m,a,(function(){return this}));var M=Object.getPrototypeOf,b=M&&M(M(T([])));b&&b!==t&&i.call(b,a)&&(m=b);var y=g.prototype=p.prototype=Object.create(m);function v(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function N(e,t){var n;s(this,"_invoke",{value:function(s,r){function a(){return new t((function(n,a){!function n(s,r,a,o){var l=d(e[s],e,r);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,o)}),(function(e){n("throw",e,a,o)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,o)}))}o(l.arg)}(s,r,n,a)}))}return n=n?n.then(a,a):a()}})}function I(e,t,i){var n="suspendedStart";return function(s,r){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===s)throw r;return C()}for(i.method=s,i.arg=r;;){var a=i.delegate;if(a){var o=w(a,i);if(o){if(o===h)continue;return o}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===n)throw n="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n="executing";var l=d(e,t,i);if("normal"===l.type){if(n=i.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(n="completed",i.method="throw",i.arg=l.arg)}}}function w(e,t){var i=t.method,n=e.iterator[i];if(void 0===n)return t.delegate=null,"throw"===i&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==i&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+i+"' method")),h;var s=d(n,e.iterator,t.arg);if("throw"===s.type)return t.method="throw",t.arg=s.arg,t.delegate=null,h;var r=s.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,s=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return s.next=s}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=g,s(y,"constructor",{value:g,configurable:!0}),s(g,"constructor",{value:f,configurable:!0}),f.displayName=c(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,l,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},v(N.prototype),c(N.prototype,o,(function(){return this})),e.AsyncIterator=N,e.async=function(t,i,n,s,r){void 0===r&&(r=Promise);var a=new N(u(t,i,n,s),r);return e.isGeneratorFunction(i)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},v(y),c(y,l,"Generator"),c(y,a,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),i=[];for(var n in t)i.push(n);return i.reverse(),function e(){for(;i.length;){var n=i.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(i,n){return a.type="throw",a.arg=e,t.next=i,n&&(t.method="next",t.arg=void 0),!!n}for(var s=this.tryEntries.length-1;s>=0;--s){var r=this.tryEntries[s],a=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var o=i.call(r,"catchLoc"),l=i.call(r,"finallyLoc");if(o&&l){if(this.prev<r.catchLoc)return n(r.catchLoc,!0);if(this.prev<r.finallyLoc)return n(r.finallyLoc)}else if(o){if(this.prev<r.catchLoc)return n(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return n(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var s=this.tryEntries[n];if(s.tryLoc<=this.prev&&i.call(s,"finallyLoc")&&this.prev<s.finallyLoc){var r=s;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),x(i),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var s=n.arg;x(i)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:T(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),h}},e}function s(e){return(s="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 r(e,t,i,n,s,r,a){try{var o=e[r](a),l=o.value}catch(e){return void i(e)}o.done?t(l):Promise.resolve(l).then(n,s)}function a(e){return function(){var t=this,i=arguments;return new Promise((function(n,s){var a=e.apply(t,i);function o(e){r(a,n,s,o,l,"next",e)}function l(e){r(a,n,s,o,l,"throw",e)}o(void 0)}))}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,N(n.key),n)}}function c(e,t,i){return t&&l(e.prototype,t),i&&l(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t,i){return(t=N(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}function h(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(i).filter((function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach((function(t){u(e,t,i[t])}))}return e}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function g(e,t,i){return(g=f()?Reflect.construct.bind():function(e,t,i){var n=[null];n.push.apply(n,t);var s=new(Function.bind.apply(e,n));return i&&p(s,i.prototype),s}).apply(null,arguments)}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,s,r,a,o=[],l=!0,c=!1;try{if(r=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=r.call(i)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(e){c=!0,s=e}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw s}}return o}}(e,t)||b(e,t)||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.")}()}function M(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(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 b(e,t){if(e){if("string"==typeof e)return y(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function v(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=b(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,s=function(){};return{s:s,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,o=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){o=!0,r=e},f:function(){try{a||null==i.return||i.return()}finally{if(o)throw r}}}}function N(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}t=t&&t.hasOwnProperty("default")?t.default:t,i=i&&i.hasOwnProperty("default")?i.default:i;var I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function w(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function D(e,t){return e(t={exports:{}},t.exports),t.exports}var x=D((function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)})),k=D((function(e){var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)})),T=(k.version,function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}),C=function(e,t,i){if(T(e),void 0===t)return e;switch(i){case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,s){return e.call(t,i,n,s)}}return function(){return e.apply(t,arguments)}},z=function(e){return"object"==typeof e?null!==e:"function"==typeof e},j=function(e){if(!z(e))throw TypeError(e+" is not an object!");return e},S=function(e){try{return!!e()}catch(e){return!0}},E=!S((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),A=x.document,L=z(A)&&z(A.createElement),O=function(e){return L?A.createElement(e):{}},_=!E&&!S((function(){return 7!=Object.defineProperty(O("div"),"a",{get:function(){return 7}}).a})),Y=function(e,t){if(!z(e))return e;var i,n;if(t&&"function"==typeof(i=e.toString)&&!z(n=i.call(e)))return n;if("function"==typeof(i=e.valueOf)&&!z(n=i.call(e)))return n;if(!t&&"function"==typeof(i=e.toString)&&!z(n=i.call(e)))return n;throw TypeError("Can't convert object to primitive value")},P=Object.defineProperty,U={f:E?Object.defineProperty:function(e,t,i){if(j(e),t=Y(t,!0),j(i),_)try{return P(e,t,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(e[t]=i.value),e}},B=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Q=E?function(e,t,i){return U.f(e,t,B(1,i))}:function(e,t,i){return e[t]=i,e},R={}.hasOwnProperty,H=function(e,t){return R.call(e,t)},F=function(e,t,i){var n,s,r,a=e&F.F,o=e&F.G,l=e&F.S,c=e&F.P,u=e&F.B,d=e&F.W,h=o?k:k[t]||(k[t]={}),p=h.prototype,f=o?x:l?x[t]:(x[t]||{}).prototype;for(n in o&&(i=t),i)(s=!a&&f&&void 0!==f[n])&&H(h,n)||(r=s?f[n]:i[n],h[n]=o&&"function"!=typeof f[n]?i[n]:u&&s?C(r,x):d&&f[n]==r?function(e){var t=function(t,i,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,i)}return new e(t,i,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(r):c&&"function"==typeof r?C(Function.call,r):r,c&&((h.virtual||(h.virtual={}))[n]=r,e&F.R&&p&&!p[n]&&Q(p,n,r)))};F.F=1,F.G=2,F.S=4,F.P=8,F.B=16,F.W=32,F.U=64,F.R=128;var $,W=F,Z={}.toString,G=function(e){return Z.call(e).slice(8,-1)},V=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==G(e)?e.split(""):Object(e)},J=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},K=function(e){return V(J(e))},X=Math.ceil,q=Math.floor,ee=function(e){return isNaN(e=+e)?0:(e>0?q:X)(e)},te=Math.min,ie=function(e){return e>0?te(ee(e),9007199254740991):0},ne=Math.max,se=Math.min,re=D((function(e){var t=x["__core-js_shared__"]||(x["__core-js_shared__"]={});(e.exports=function(e,i){return t[e]||(t[e]=void 0!==i?i:{})})("versions",[]).push({version:k.version,mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),ae=0,oe=Math.random(),le=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++ae+oe).toString(36))},ce=re("keys"),ue=function(e){return ce[e]||(ce[e]=le(e))},de=($=!1,function(e,t,i){var n,s=K(e),r=ie(s.length),a=function(e,t){return(e=ee(e))<0?ne(e+t,0):se(e,t)}(i,r);if($&&t!=t){for(;r>a;)if((n=s[a++])!=n)return!0}else for(;r>a;a++)if(($||a in s)&&s[a]===t)return $||a||0;return!$&&-1}),he=ue("IE_PROTO"),pe=function(e,t){var i,n=K(e),s=0,r=[];for(i in n)i!=he&&H(n,i)&&r.push(i);for(;t.length>s;)H(n,i=t[s++])&&(~de(r,i)||r.push(i));return r},fe="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),ge=Object.keys||function(e){return pe(e,fe)},me={f:{}.propertyIsEnumerable},Me=me.f,be=function(e){return function(t){for(var i,n=K(t),s=ge(n),r=s.length,a=0,o=[];r>a;)i=s[a++],E&&!Me.call(n,i)||o.push(e?[i,n[i]]:n[i]);return o}},ye=be(!1);W(W.S,"Object",{values:function(e){return ye(e)}});var ve=k.Object.values;W(W.S+W.F*!E,"Object",{defineProperty:U.f});var Ne,Ie=k.Object,we=function(e,t,i){return Ie.defineProperty(e,t,i)},De=!1;!function(){if(!window.__bk_zIndex_manager){var e={nextZIndex:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return"default"===t?e.zIndex++:t},nextTickIndex:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";return"default"===i?(e.zIndex+=t,e.zIndex):i}};we(e,"zIndex",{configurable:!0,get:function(){return De||(Ne=Ne||(t.prototype.$BK_EL||{}).zIndex||2e3,De=!0),Ne},set:function(e){Ne=e}}),window.__bk_zIndex_manager=e}}();var xe=window.__bk_zIndex_manager;function ke(e,t,i,n){var s,r=!1,a=0;function o(){s&&clearTimeout(s)}function l(){var l=this,c=Date.now()-a,u=arguments;function d(){a=Date.now(),i.apply(l,u)}function h(){s=void 0}r||(n&&!s&&d(),o(),void 0===n&&c>e?d():!0!==t&&(s=setTimeout(n?h:d,void 0===n?e-c:e)))}return"boolean"!=typeof t&&(n=i,i=t,t=void 0),l.cancel=function(){o(),r=!0},l}function Te(e,t,i){return void 0===i?ke(e,t,!1):ke(e,i,!1!==t)}var Ce=function(e,t,i,n,s,r,a,o,l,c){"boolean"!=typeof a&&(l=o,o=a,a=!1);var u,d="function"==typeof i?i.options:i;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,s&&(d.functional=!0)),n&&(d._scopeId=n),r?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(r)},d._ssrRegister=u):t&&(u=a?function(){t.call(this,c(this.$root.$options.shadowRoot))}:function(e){t.call(this,o(e))}),u)if(d.functional){var h=d.render;d.render=function(e,t){return u.call(t),h(e,t)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,u):[u]}return i},ze=Ce({render:function(){var e=this.$createElement,t=this._self._c||e;return t("transition",{attrs:{name:"bk-fade-in-linear"}},[this.visible?t("div",{staticClass:"bk-back-to-top",style:this.positionStyle,on:{click:this.scrollTop}},[this._t("default",(function(){return[t("i",{staticClass:"bk-icon icon-angle-up-line"})]}))],2):this._e()])},staticRenderFns:[]},void 0,{name:"bk-back-top",props:{bottom:{type:Number,default:40},right:{type:Number,default:40},target:{type:String,default:""},visibilityHeight:{type:Number,default:200}},data:function(){return{visible:!1,zIndex:0,container:document,el:document.documentElement}},computed:{positionStyle:function(){return"right: ".concat(this.right,"px; bottom: ").concat(this.bottom,"px; z-index: ").concat(this.zIndex)}},watch:{visible:function(e){e&&(this.zIndex=xe.nextTickIndex(2))}},mounted:function(){if(this._lazyScrollHandler=ke(30,this.scrollHandler),this.target){if(this.el=document.querySelector(this.target),!this.el)throw new Error("target does not exist");this.container=this.el}this.container.addEventListener("scroll",this._lazyScrollHandler)},methods:{clickHandler:function(){this.$emit("click")},scrollTop:function(){this.el.scrollTo({top:0,behavior:"smooth"})},scrollHandler:function(){this.visible=this.el.scrollTop>=this.visibilityHeight}}},void 0,!1,void 0,!1,void 0,void 0,void 0),je=function(e){return Object(J(e))},Se=function(e,t){var i=(k.Object||{})[e]||Object[e],n={};n[e]=t(i),W(W.S+W.F*S((function(){i(1)})),"Object",n)};Se("keys",(function(){return function(e){return ge(je(e))}}));var Ee=k.Object.keys;function Ae(e,t){e.install=function(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=e.props||{};Ee(n).forEach((function(e){s.hasOwnProperty(e)&&("function"==typeof s[e]||s[e]instanceof Array?s[e]={type:s[e],default:n[e]}:s[e].default=n[e])})),e.name=n.namespace?e.name.replace("bk",n.namespace):e.name,i.component(e.name,e),"function"==typeof t&&t(i,n)}}Ae(ze);var Le=document.addEventListener?function(e,t,i){e&&t&&i&&e.addEventListener(t,i,!0)}:function(e,t,i){e&&t&&i&&e.attachEvent("on"+t,i)},Oe=document.removeEventListener?function(e,t,i){e&&t&&e.removeEventListener(t,i,!0)}:function(e,t,i){e&&t&&e.detachEvent("on"+t,i)},_e=Ce({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{ref:"root"},[t("div",{ref:"point",class:{"bk-affix":this.affix},style:this.styles},[this._t("default")],2)])},staticRenderFns:[]},void 0,{name:"bk-affix",props:{offsetTop:{type:Number,default:0},offsetBottom:{type:Number},target:{type:String,default:""},zIndex:{type:Number,default:1e3}},data:function(){return{affix:!1,styles:{}}},computed:{offsetType:function(){var e="top";return this.offsetBottom>=0&&(e="bottom"),e}},mounted:function(){var e=this;this.targetEl=this.target?document.querySelector(this.target):window,this.$refs.point.style.zIndex=this.zIndex,Le(this.targetEl,"scroll",this.listenScroll),Le(this.targetEl,"resize",this.listenScroll),this.$nextTick((function(){e.handleScroll()}))},beforeDestroy:function(){Oe(this.targetEl,"scroll",this.listenScroll),Oe(this.targetEl,"resize",this.listenScroll),Oe(window,"scroll",this.setTargetLoop)},methods:{setTargetLoop:function(){var e=this.targetEl.getBoundingClientRect();"top"===this.offsetType?this.styles={top:"".concat(e.top+this.offsetTop,"px"),width:"".concat(e.width,"px")}:this.styles={bottom:"".concat(window.innerHeight-e.bottom+this.offsetBottom,"px"),width:"".concat(e.width,"px")}},listenScroll:function(){this.throttle(this.handleScroll,100)},throttle:function(e,t){var i=0,n=null,s=new Date,r=this,a=t-(s-i),o=arguments;a<=0?(e.apply.apply(e,[r].concat(M(o))),i=new Date):n||(n=setTimeout((function(){clearTimeout(n),n=null,e.apply.apply(e,[r].concat(M(o))),i=new Date}),a))},getOffset:function(e){var t=e.getBoundingClientRect(),i=this.targetEl===window?{top:0,left:0}:this.targetEl.getBoundingClientRect(),n=this.targetEl.clientTop||0,s=this.targetEl.clientLeft||0;return{top:t.top-i.top-n,left:t.left-i.left-s}},handleScroll:function(){var e=this.targetEl===window?{top:0,left:0,bottom:window.innerHeight}:this.targetEl.getBoundingClientRect(),t=this.getOffset(this.$refs.root),i=this.targetEl===window?this.targetEl.innerHeight:this.targetEl.clientHeight,n=this.$refs.point.offsetHeight;t.top<this.offsetTop&&"top"===this.offsetType&&!this.affix?(this.affix=!0,this.styles={position:"fixed",top:"".concat(e.top+this.offsetTop,"px"),left:"".concat(e.left+t.left,"px"),width:"".concat(this.$el.offsetWidth,"px")},this.targetEl!==window&&Le(window,"scroll",this.setTargetLoop),this.$emit("change",!0)):t.top>this.offsetTop&&"top"===this.offsetType&&this.affix&&(this.affix=!1,this.styles=null,this.$emit("change",!1)),t.top+this.offsetBottom+n>i&&"bottom"===this.offsetType&&!this.affix?(this.affix=!0,this.styles={bottom:"".concat(window.innerHeight-e.bottom+this.offsetBottom,"px"),left:"".concat(e.left+t.left,"px"),width:"".concat(this.$el.offsetWidth,"px")},this.targetEl!==window&&Le(window,"scroll",this.setTargetLoop),this.$emit("change",!0)):t.top+this.offsetBottom+n<i&&"bottom"===this.offsetType&&this.affix&&(this.affix=!1,this.styles=null,this.$emit("change",!1))}}},void 0,!1,void 0,!1,void 0,void 0,void 0);Ae(_e);var Ye,Pe=Ce({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"bk-fixed-navbar-wrapper",class:[e.extCls,e.position],style:{zIndex:e.localZIndex}},e._l(e.navConfig,(function(t,n){return i("div",{directives:[{name:"bk-tooltips",rawName:"v-bk-tooltips",value:t.tooltip,expression:"item.tooltip"}],key:n,staticClass:"fixed-navbar-item",on:{click:t.action}},[i("i",{class:["bk-icon",t.icon]}),i("span",{staticClass:"text"},[e._v(e._s(t.text))])])})),0)},staticRenderFns:[]},void 0,{name:"bk-fixed-navbar",props:{navItems:{type:Array,default:function(){return[]}},extCls:{type:String,default:""},position:{type:String,default:"middle"}},data:function(){return{localZIndex:xe.nextTickIndex(2)}},computed:{navConfig:function(){return this.navItems.map((function(e){return d({tooltip:{disabled:!0},action:function(){}},e)}))}}},void 0,!1,void 0,!1,void 0,void 0,void 0);function Ue(e){return e&&"object"===s(e)&&e.hasOwnProperty("componentOptions")}function Be(e,t,i){e&&(e.addEventListener?e.addEventListener(t,i,!1):e.attachEvent?e.attachEvent("on"+t,i):e["on"+t]=i)}function Qe(e,t,i){e&&(e.removeEventListener?e.removeEventListener(t,i,!1):e.detachEvent?e.detachEvent("on"+t,i):e["on"+t]=null)}Ae(Pe);window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame,window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame;function Re(e,t){return e.$children.reduce((function(e,i){i.$options.name===t&&e.push(i);var n=Re(i,t);return e.concat(n)}),[])}var He=/([\:\-\_]+(.))/g,Fe=/^moz([A-Z])/,$e=function(e){return e.replace(He,(function(e,t,i,n){return n?i.toUpperCase():i})).replace(Fe,"Moz$1")};function We(e,t){if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}function Ze(e,t){if(e){for(var i=e.className,n=(t||"").split(" "),s=0,r=n.length;s<r;s++){var a=n[s];a&&(e.classList?e.classList.add(a):We(e,a)||(i+=" "+a))}e.classList||(e.className=i)}}function Ge(e,t){if(e&&t){for(var i=t.split(" "),n=" "+e.className+" ",s=0,r=i.length;s<r;s++){var a=i[s];a&&(e.classList?e.classList.remove(a):We(e,a)&&(n=n.replace(" "+a+" "," ")))}e.classList||(e.className=(n||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,""))}}var Ve=Number(document.documentMode)<9?function(e,t){if(!e||!t)return null;"float"===(t=$e(t))&&(t="styleFloat");try{switch(t){case"opacity":try{return e.filters.item("alpha").opacity/100}catch(e){return 1}default:return e.style[t]||e.currentStyle?e.currentStyle[t]:null}}catch(i){return e.style[t]}}:function(e,t){if(!e||!t)return null;"float"===(t=$e(t))&&(t="cssFloat");try{var i=document.defaultView.getComputedStyle(e,"");return e.style[t]||i?i[t]:null}catch(i){return e.style[t]}};var Je={beforeEnter:function(e){Ze(e,"collapse-transition"),e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height="0",e.style.paddingTop=0,e.style.paddingBottom=0},enter:function(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.height=e.scrollHeight+"px",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.height="",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},afterEnter:function(e){Ge(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow},beforeLeave:function(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.height=e.scrollHeight+"px",e.style.overflow="hidden"},leave:function(e){0!==e.scrollHeight&&(Ze(e,"collapse-transition"),e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave:function(e){Ge(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom}},Ke={name:"CollapseTransition",functional:!0,render:function(e,t){var i=t.children;return e("transition",{on:Je},i)}},Xe=Ce({render:function(){var e=this.$createElement,t=this._self._c||e;return t("transition",{staticClass:"bk-transition",attrs:{name:this.transitionName}},["collapse"===this.name?t("CollapseTransition",[this._t("default")],2):this._t("default")],2)},staticRenderFns:[]},void 0,{name:"bk-transition",components:{CollapseTransition:Ke},props:{name:{type:String,default:""},durationTime:{type:String,default:".3s"},durationType:{type:String,default:"linear"}},computed:{transitionName:function(){return this.isCollapse?"":this.name},isCollapse:function(){return"collapse"===this.name}},mounted:function(){var e=this.getSlot();e.elm.style.transitionDuration=this.durationTime,e.elm.style.transitionTimingFunction=this.durationType},methods:{getSlot:function(){return this.$slots.default[0]}}},void 0,!1,void 0,!1,void 0,void 0,void 0);Ae(Xe);var qe=Ce({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("transition",{attrs:{name:"bk-alert-leave"},on:{"before-leave":e.beforeLeave,leave:e.leave,"after-leave":e.afterLeave}},[e.visible?i("div",{staticClass:"bk-alert",class:e.typeClass},[i("div",{staticClass:"bk-alert-wraper"},[e.showIcon?i("i",{staticClass:"bk-icon icon-info"}):e._e(),i("div",{staticClass:"bk-alert-content"},[i("div",{staticClass:"bk-alert-title"},[e._t("title",(function(){return[e._v("\n "+e._s(e.title)+"\n ")]}))],2),i("div",{staticClass:"bk-alert-description"})]),e.closable?i("span",{staticClass:"bk-alert-close",class:e.closeClasses,on:{click:e.handleClose}},[e._v(e._s(e.closeText))]):e._e()])]):e._e()])},staticRenderFns:[]},void 0,{name:"bk-alert",props:{type:{type:String,default:"info"},title:{type:String,default:""},closable:{type:Boolean,default:!1},closeText:{type:String},showIcon:{type:Boolean,default:!0}},data:function(){return{visible:!0}},computed:{typeClass:function(){return"bk-alert-".concat(this.type)},closeClasses:function(){var e={};return this.closeText?e["close-text"]=!0:(e["bk-icon"]=!0,e["icon-close"]=!0),e}},methods:{beforeLeave:function(e){var t=e.getBoundingClientRect().height;e.style.height="".concat(t,"px")},leave:function(e){setTimeout((function(){e.style.height=0}))},afterLeave:function(e){e.style.height=""},handleClose:function(){this.visible=!1,this.$emit("close")}}},void 0,!1,void 0,!1,void 0,void 0,void 0);Ae(qe),W(W.S,"Number",{isNaN:function(e){return e!=e}});var et=k.Number.isNaN,tt=Ce({render:function(){var e=this.$createElement;return(this._self._c||e)("span",{class:this.extCls},[this._v(this._s(this.formatValue))])},staticRenderFns:[]},void 0,{name:"bk-animate-number",props:{value:{type:Number,required:!0},digits:{type:Number,default:0},extCls:{type:String,default:""}},data:function(){return{tweeningValue:0,rafId:""}},computed:{formatValue:function(){return Number(this.tweeningValue).toFixed(this.digits)}},watch:{value:function(e,t){this.tween(t,e)}},mounted:function(){this.tween(0,this.value)},beforeDestroy:function(){cancelAnimationFrame(this.rafId)},methods:{tween:function(e,t){var i=this;if(et(+t))return 0;var n=Math.abs(t-e),s=t-e>0?1:-1,r=Math.ceil(n/30*Math.pow(10,this.digits))/Math.pow(10,this.digits),a=25/Math.ceil(n/r),o=1;!function e(){if(o<a)return i.rafId=requestAnimationFrame(e),void o++;i.tweeningValue+=r*s,(1===s?i.tweeningValue<t:i.tweeningValue>t)?(i.rafId=requestAnimationFrame(e),o=1):i.tweeningValue=t}()}}},void 0,!1,void 0,!1,void 0,void 0,void 0);Ae(tt);var it=Ce({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"bk-badge-wrapper",class:e.extCls,style:{"vertical-align":e.$slots.default?"middle":"",cursor:e.icon?"pointer":""}},[e._t("default"),i("transition",{attrs:{name:"fade-center"}},[i("span",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"bk-badge",class:e.badgeClass,style:e.badgeStyle,on:{mouseenter:e.handleHover,mouseleave:e.handleLeave}},[e.icon&&!e.dot?i("i",{staticClass:"bk-icon",class:"icon-"+e.icon}):e._e(),e.icon||e.dot?e._e():i("span",[e._v(e._s(e.text))])])])],2)},staticRenderFns:[]},void 0,{name:"bk-badge",props:{theme:{type:String,default:"",validator:function(e){return["","primary","info","warning","danger","success"].indexOf(e)>-1||0===e.indexOf("#")}},val:{type:[Number,String],default:1},valLength:{type:[Number,String],default:3},icon:{type:String,default:""},max:{type:Number,default:-1},dot:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},position:{type:String,default:"top-right"},radius:{type:[String,Number],default:void 0},extCls:{type:String,default:""}},computed:{text:function(){var e=this,t=s(this.val),i=this.max,n=this.val,r=this.icon,a="number"===t||/^\d+$/.test(this.val);if(r)return r;if(a&&i>-1&&Number(n)>i)return i+"+";var o=[],l=0;return(n+="").split("").forEach((function(t){l<Number(e.valLength)&&(l+=/[\u4e00-\u9fa5]/.test(t)?2:1,o.push(t))})),o.join("")},hexTheme:function(){return/^#[0-9a-fA-F]{3,6}$/.test(this.theme)},badgeStyle:function(){var e=void 0!==this.radius&&/^\d+(%|px|em|rem|vh|vw)?$/.test(this.radius),t=e&&/^\d+$/.test(this.radius)&&"".concat(this.radius,"px")||this.radius,i=this.icon&&{color:this.theme||"",borderColor:"transparent",backgroundColor:"#fff"}||{color:this.hexTheme?"#fff":"",backgroundColor:this.hexTheme?this.theme:"",borderColor:this.hexTheme?this.theme:"",borderWidth:this.dot?"1px":"2px"};return e&&d(i,{borderRadius:t}),i},badgeClass:function(){return[this.theme&&!this.hexTheme?"bk-"+this.theme:"",this.$slots.default?this.position:"",{pinned:this.$slots.default,dot:this.dot,"is-icon":!!this.icon}]}},methods:{handleHover:function(){this.$emit("hover")},handleLeave:function(){this.$emit("leave")}}},void 0,!1,void 0,!1,void 0,void 0,void 0);Ae(it);var nt=Ce({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("transition",{attrs:{name:"fade"}},[i("div",{class:["bk-spin",e.extCls]},[i("div",{style:{display:"right"===e.placement?"flex":""}},[e.icon?e._e():i("div",{class:[e.dotClass]},[i("div",{staticClass:"rotate1",class:e.slotTypeClass}),i("div",{staticClass:"rotate2",class:e.slotTypeClass}),i("div",{staticClass:"rotate3",class:e.slotTypeClass}),i("div",{staticClass:"rotate4",class:e.slotTypeClass}),i("div",{staticClass:"rotate5",class:e.slotTypeClass}),i("div",{staticClass:"rotate6",class:e.slotTypeClass}),i("div",{staticClass:"rotate7",class:e.slotTypeClass}),i("div",{staticClass:"rotate8",class:e.slotTypeClass})]),e.icon?i("div",{class:[e.iconClass]},[i("i",{class:["bk-icon","icon-"+e.icon]})]):e._e(),e.$slots.default?i("div",{class:[e.slotClass]},[e._t("default")],2):e._e()])])])},staticRenderFns:[]},void 0,{name:"bk-spin",props:{theme:{type:String,default:"primary",validator:function(e){return!!["default","primary","warning","success","danger","info"].includes(e)||(console.error("theme property is not valid: '".concat(e,"'")),!1)}},size:{type:String,default:"small",validator:function(e){return!!["large","normal","small","mini"].includes(e)||(console.error("size property is not valid: '".concat(e,"'")),!1)}},icon:{type:String,default:""},extCls:{type:String,default:""},placement:{type:String,default:"bottom",validator:function(e){return!!["bottom","right"].includes(e)||(console.error("placement property is not valid: '".concat(e,"'")),!1)}},spinning:{type:Boolean,default:!0}},data:function(){return{}},computed:{dotClass:function(){var e=["bk-spin-rotation","bk-spin-rotation-".concat(this.size),"bk-spin-rotation-".concat(this.theme)];return!this.spinning&&e.push("bk-spin-rotation-".concat(this.theme,"-wait")),"right"===this.placement&&e.push("bk-spin-rotation-flex"),"bottom"===this.placement&&e.push("bk-spin-rotation-margin"),e},slotTypeClass:function(){var e=["rotate"];return this.$slots.default&&"right"===this.placement&&e.push("slots-".concat(this.placement,"-rotate")),e},iconClass:function(){var e=["bk-spin-icon","bk-spin-icon-".concat(this.size),"bk-spin-icon-".concat(this.theme)];return!this.spinning&&e.push("bk-spin-icon-wait"),"right"===this.placement&&e.push("bk-display-flex"),e},slotClass:function(){var e=["bk-spin-title","bk-spin-title-".concat(this.placement)];return"right"===this.placement&&e.push("bk-spin-title-".concat(this.size),"bk-display-flex"),e}}},void 0,!1,void 0,!1,void 0,void 0,void 0);Ae(nt);var st=Ce({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("button",e._b({class:[e.buttonCls,e.extCls],attrs:{title:e.title,disabled:e.disabled,type:e.nativeType},on:{click:e.handleClick}},"button",e.$attrs,!1),[e.loading?i("div",{staticClass:"bk-button-loading"},[e.text?[i("bk-spin",{attrs:{size:"mini",theme:e.theme}})]:[i("div",{staticClass:"bounce bounce1"}),i("div",{staticClass:"bounce bounce2"}),i("div",{staticClass:"bounce bounce3"}),i("div",{staticClass:"bounce bounce4"})]],2):e._e(),i("div",{class:e.loading?"bk-loading-wrapper":""},[e.iconType?i("i",{staticClass:"bk-icon left-icon",class:["icon-"+e.iconType,"loading"===e.iconType?"bk-button-icon-loading":""]},["loading"===e.iconType?[i("span",{staticClass:"loading"})]:e._e()],2):e._e(),i("span",[e._t("default")],2),e.iconRightType?i("i",{staticClass:"bk-icon right-icon",class:["icon-"+e.iconRightType,"loading"===e.iconRightType?"bk-button-icon-loading":""]},["loading"===e.iconRightType?[i("span",{staticClass:"loading"})]:e._e()],2):e._e()])])},staticRenderFns:[]},void 0,{name:"bk-button",components:{BkSpin:nt},props:{theme:{type:String,default:"default",validator:function(e){return!(["default","primary","warning","success","danger"].indexOf(e)<0)||(console.error("theme property is not valid: '".concat(e,"'")),!1)}},hoverTheme:{type:String,default:"",validator:function(e){return!(["","primary","warning","success","danger"].indexOf(e)<0)||(console.error("hoverTheme property is not valid: '".concat(e,"'")),!1)}},size:{type:String,default:"normal",validator:function(e){return!(["small","normal","large"].indexOf(e)<0)||(console.error("size property is not valid: '".concat(e,"'")),!1)}},title:{type:String,default:""},icon:String,iconRight:String,disabled:Boolean,loading:Boolean,outline:Boolean,text:Boolean,nativeType:{type:String,default:"button"},extCls:{type:String,default:""}},data:function(){return{showSlot:!0}},computed:{iconType:function(){var e=this.icon||"";return e&&0===e.indexOf("icon")&&(e=e.replace(/^(icon-)/,"")),e},iconRightType:function(){var e=this.iconRight||"";return e&&0===e.indexOf("icon")&&(e=e.replace(/^(icon-)/,"")),e},themeType:function(){return this.text&&"default"===this.theme?"primary":this.theme},buttonCls:function(){return["bk-".concat(this.themeType),"bk-button-".concat(this.size),this.hoverTheme?"bk-button-hover bk-".concat(this.hoverTheme):this.text?"bk-button-text":"bk-button",this.disabled?"is-disabled":"",this.loading?"is-loading":"",this.outline?"is-outline":"",this.showSlot?"":"no-slot"]}},mounted:function(){this.showSlot=void 0!==this.$slots.default},methods:{handleClick:function(e){this.disabled||this.loading||(this.$emit("click",e),this.$el.blur())}}},void 0,!1,void 0,!1,void 0,void 0,void 0);Ae(st);var rt={methods:{dispatch:function(e,t,i){for(var n=this.$parent||this.$root,s=n.$options.name;n&&(!s||s!==e);)(n=n.$parent)&&(s=n.$options.name);n&&n.$emit.apply(n,[t].concat(i))}}},at=0,ot=0;var lt=Ce({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("label",{staticClass:"bk-form-checkbox",class:[{"is-disabled":e.disabled,"is-indeterminate":e.indeterminate,"is-checked":e.selected},e.extCls],on:{click:e.handleClick,keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.handleClick.apply(null,arguments))}}},[i("span",{staticClass:"bk-checkbox",attrs:{tabindex:!e.disabled&&0}}),i("input",{attrs:{type:"hidden",name:e.name},domProps:{value:void 0===e.label?e.localValue:e.label}}),e.$slots.default?i("span",{staticClass:"bk-checkbox-text"},[e._t("default")],2):e._e()])},staticRenderFns:[]},void 0,{name:"bk-checkbox",mixins:[rt],inject:{handleRemoveItem:{default:null},handleAddItem:{default:null}},props:{value:{type:[String,Number,Boolean],default:void 0},checked:{type:Boolean,default:void 0},trueValue:{type:[String,Number,Boolean],default:!0},falseValue:{type:[String,Number,Boolean],default:!1},label:{type:[String,Number]},name:{type:String,default:function(){return"bk-checkbox_".concat(at++)}},disabled:Boolean,indeterminate:Boolean,extCls:{type:String,default:""},beforeChange:Function},data:function(){return{parent:null,localValue:void 0}},computed:{selected:function(){return this.localValue===this.localTrueValue},parentValue:function(){return this.parent?this.parent.localValue:null},localTrueValue:function(){return this.parent?void 0===this.label&&void 0===this.value?this.trueValue:void 0!==this.value?this.value:this.label:void 0===this.label?this.trueValue:this.label}},watch:{value:function(e){this.setLocalValue(e)},checked:function(){this.setLocalValue()},parentValue:function(){this.setLocalValue()}},created:function(){this.handleAddItem&&"function"==typeof this.handleAddItem&&this.handleAddItem(this),this.init()},destroyed:function(){this.handleRemoveItem&&"function"==typeof this.handleRemoveItem&&this.handleRemoveItem(this)},methods:{getValue:function(){return this.selected?{isChecked:!0,value:this.localTrueValue}:{isChecked:!1,value:this.falseValue}},init:function(){for(var e=this.$parent;e&&!e.isCheckboxGroup&&"bk-checkbox-group"!==!e.$options.name;)e=e.$parent;this.parent=e,this.setLocalValue()},setLocalValue:function(e){if(void 0===e)if(this.parent){var t=this.localTrueValue,i=this.parent.localValue.includes(t);this.localValue=i?t:this.falseValue}else void 0!==this.checked?this.localValue=this.checked?this.localTrueValue:this.falseValue:void 0===this.value?this.localValue=this.falseValue:this.localValue=this.value;else this.localValue=e},handleClick:function(){var e=this;return a(n().mark((function t(){var i,s,r;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.disabled){t.next=2;break}return t.abrupt("return",!1);case 2:if("function"!=typeof e.beforeChange){t.next=8;break}return t.next=5,e.beforeChange();case 5:if(!1!==t.sent){t.next=8;break}return t.abrupt("return");case 8:i=e.localValue,s=e.indeterminate?e.localTrueValue:i===e.localTrueValue?e.falseValue:e.localTrueValue,e.localValue=s,e.$emit("input",s,e.localTrueValue),e.$emit("change",s,i,e.localTrueValue),e.dispatch("bk-form-item","form-change"),e.parent&&(r=void 0===e.localTrueValue?s:e.localTrueValue,e.parent.handleChange(e.selected,r));case 15:case"end":return t.stop()}}),t)})))()}}},void 0,!1,void 0,!1,void 0,void 0,void 0);Ae(lt);var ct=Ce({render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"bk-form-control",attrs:{name:this.name}},[this._t("default")],2)},staticRenderFns:[]},void 0,{name:"bk-checkbox-group",provide:function(){return{handleAddItem:this.handleAddItem,handleRemoveItem:this.handleRemoveItem}},props:{value:{type:Array,default:function(){return[]}},name:{type:[String,Number],default:function(){return"bk-checkbox-group_".concat(ot++)}}},data:function(){return{checkboxItems:[],isCheckboxGroup:!0,localValue:M(this.value)}},watch:{value:function(e){this.localValue=M(e)}},methods:{handleAddItem:function(e){e&&!this.checkboxItems.includes(e)&&this.checkboxItems.push(e)},handleRemoveItem:function(e){var t=this.checkboxItems.indexOf(e);t>-1&&this.checkboxItems.splice(t,1)},handleChange:function(e,t){var i=M(this.localValue),n=[];this.checkboxItems.forEach((function(e){var t=e.getValue();t.isChecked&&n.push(t.value)})),this.localValue=n,this.$emit("input",this.localValue),this.$emit("change",this.localValue,i)}}},void 0,!1,void 0,!1,void 0,void 0,void 0);Ae(ct);var ut=Array.isArray||function(e){return"Array"==G(e)};W(W.S,"Array",{isArray:ut});var dt=k.Array.isArray,ht=Ce({render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"bk-collapse",class:this.extCls},[this._t("default")],2)},staticRenderFns:[]},void 0,{name:"bk-collapse",provide:function(){return{collapse:this}},props:{accordion:{type:Boolean,default:!1},value:{type:[Array,String]},extCls:{type:String,default:""}},data:function(){return{currentActive:[]}},watch:{value:{handler:function(e){dt(e)?this.currentActive=e.map((function(e){return"".concat(e)})):this.currentActive=void 0!==e?["".concat(e)]:[]},immediate:!0}},created:function(){var e=this;this.itemList=[],this.$on("inject",(function(t){e.itemList.push(t)})),this.$on("item-toggle",this.itemToggle)},methods:{itemToggle:function(e){if(this.accordion)this.currentActive=this.currentActive.length&&this.currentActive[0]===e.name?[]:[e.name];else{var t=this.currentActive.indexOf(e.name);t>-1?this.currentActive.splice(t,1):this.currentActive.push(e.name)}this.$emit("input",this.currentActive),this.$emit("item-click",this.currentActive)}}},void 0,!1,void 0,!1,void 0,void 0,void 0);Ae(ht);var pt=Ce({render:function(){var e,t=this,i=t.$createElement,n=t._self._c||i;return n("div",{staticClass:"bk-collapse-item",class:(e={"bk-collapse-item-active":t.isActive,"is-disabled":t.disabled},e[t.extCls]=!0,e)},[t.customTriggerArea?n("div",{staticClass:"bk-collapse-item-header custom-trigger-layout"},[n("div",{staticClass:"trigger-area bk-collapse-item-hover cursor-pointer",on:{click:t.toggle}},[t._t("default")],2),n("div",{staticClass:"no-trigger-area"},[t._t("no-trigger")],2),n("span",{staticClass:"custom-trigger-angle",class:{"collapse-expand":t.isActive},on:{click:t.toggle}},[t.hideArrow?t._e():n("i",{staticClass:"bk-icon icon-angle-right"})])]):n("div",{staticClass:"bk-collapse-item-header bk-collapse-item-hover cursor-pointer",on:{click:t.toggle}},[n("span",{staticClass:"fr",class:{"collapse-expand":t.isActive}},[t.hideArrow?t._e():n("i",{staticClass:"bk-icon icon-angle-right"})]),t._t("icon"),t._t("default")],2),t.calcRender?[n("transition",{attrs:{name:"collapse"},on:{"before-enter":t.beforeEnter,enter:t.enter,"after-enter":t.afterEnter,"before-leave":t.beforeLeave,leave:t.leave,"after-leave":t.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive&&t.isShow,expression:"isActive && isShow"}],staticClass:"bk-collapse-item-content"},[n("div",{staticClass:"bk-collapse-item-detail"},[t._t("content")],2)])])]:t._e()],2)},staticRenderFns:[]},void 0,{name:"bk-collapse-item",inject:["collapse"],props:{customTriggerArea:{type:Boolean,default:!1},name:{type:String},hideArrow:{type:Boolean,default:!1},extCls:{type:String,default:""},contentHiddenType:{type:String,default:"none"},disabled:{type:Boolean,default:!1}},data:function(){return{index:0,isRender:!1,isShow:!1}},computed:{calcRender:function(){return"hidden"===this.contentHiddenType||this.isRender},isActive:function(){return this.collapse.currentActive.includes(this.name)}},watch:{isActive:{handler:function(e){var t=this;e&&(this.isRender||(this.isRender=!0,this.$nextTick((function(){t.isShow=!0}))))},immediate:!0}},created:function(){this.collapse.$emit("inject",this)},methods:{toggle:function(){this.disabled||this.collapse.$emit("item-toggle",this)},beforeEnter:function(e){this.$emit("before-enter"),Ze(e,"collapse-transition"),e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height="0",e.style.paddingTop=0,e.style.paddingBottom=0},enter:function(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.height=e.scrollHeight+"px",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.height="",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},afterEnter:function(e){Ge(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow},beforeLeave:function(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.height=e.scrollHeight+"px",e.style.overflow="hidden"},leave:function(e){0!==e.scrollHeight&&(Ze(e,"collapse-transition"),e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave:function(e){this.$emit("after-leave"),Ge(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom}}},void 0,!1,void 0,!1,void 0,void 0,void 0);Ae(pt);for(var ft="undefined"!=typeof window&&"undefined"!=typeof document,gt=["Edge","Trident","Firefox"],mt=0,Mt=0;Mt<gt.length;Mt+=1)if(ft&&navigator.userAgent.indexOf(gt[Mt])>=0){mt=1;break}var bt=ft&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),mt))}};function yt(e){return e&&"[object Function]"==={}.toString.call(e)}function vt(e,t){if(1!==e.nodeType)return[];var i=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?i[t]:i}function Nt(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function It(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=vt(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/(auto|scroll|overlay)/.test(i+s+n)?e:It(Nt(e))}var wt=ft&&!(!window.MSInputMethodContext||!document.documentMode),Dt=ft&&/MSIE 10/.test(navigator.userAgent);function xt(e){return 11===e?wt:10===e?Dt:wt||Dt}function kt(e){if(!e)return document.documentElement;for(var t=xt(10)?document.body:null,i=e.offsetParent||null;i===t&&e.nextElementSibling;)i=(e=e.nextElementSibling).offsetParent;var n=i&&i.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(i.nodeName)&&"static"===vt(i,"position")?kt(i):i:e?e.ownerDocument.documentElement:document.documentElement}function Tt(e){return null!==e.parentNode?Tt(e.parentNode):e}function Ct(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var i=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=i?e:t,s=i?t:e,r=document.createRange();r.setStart(n,0),r.setEnd(s,0);var a,o,l=r.commonAncestorContainer;if(e!==l&&t!==l||n.contains(s))return"BODY"===(o=(a=l).nodeName)||"HTML"!==o&&kt(a.firstElementChild)!==a?kt(l):l;var c=Tt(e);return c.host?Ct(c.host,t):Ct(e,Tt(t).host)}function zt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",i="top"===t?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var s=e.ownerDocument.documentElement,r=e.ow