Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@calibur/sakura

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@calibur/sakura - npm Package Compare versions

Comparing version 1.0.18 to 1.1.0

lib/theme-sakura/v-scrollToY.css

2

lib/v-affix/index.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=26)}({0:function(t,e,n){"use strict";function i(t,e,n,i,o,r,s,c){var a,f="function"==typeof t?t.options:t;if(e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),i&&(f.functional=!0),r&&(f._scopeId="data-v-"+r),s?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},f._ssrRegister=a):o&&(a=c?function(){o.call(this,this.$root.$options.shadowRoot)}:o),a)if(f.functional){f._injectStyles=a;var u=f.render;f.render=function(t,e){return a.call(e),u(t,e)}}else{var l=f.beforeCreate;f.beforeCreate=l?[].concat(l,a):[a]}return{exports:t,options:f}}n.d(e,"a",(function(){return i}))},14:function(t,e,n){"use strict";var i=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"v-affix"},[e("div",{directives:[{name:"show",rawName:"v-show",value:this.showFixedShim,expression:"showFixedShim"}],style:this.fixedShimStyle}),this._v(" "),e("div",{ref:"wrap",class:{"v-affix--fixed":!this.disabled&&this.isFixed},style:this.fixedSlotStyle},[this._t("default")],2)])};i._withStripped=!0;n(21);var o=n(5),r=n(2),s={name:"VAffix",props:{fixedTop:{type:Number},disabled:{type:Boolean,default:!1}},data:function(){return{isFixed:!1,showFixedShim:!1,fixedShimStyle:{},fixedSlotStyle:{}}},mounted:function(){var t=this;if(void 0!==this.fixedTop){var e=Object(r.e)(this.$el);Object(o.b)(e,"scroll",this.handleScroll),Object(o.b)(e,"resize",this.handleScroll),this.$nextTick((function(){t.handleScroll()}))}},beforeDestroy:function(){if(void 0!==this.fixedTop){var t=Object(r.e)(this.$el);Object(o.a)(t,"scroll",this.handleScroll),Object(o.a)(t,"resize",this.handleScroll)}},methods:{handleScroll:function(){var t=this.isFixed,e=Object(r.d)(window,!0),n=Object(r.c)(this.$el);if(n.top-this.fixedTop<=e&&!t){this.isFixed=!0;var i=this.$refs.wrap;this.fixedShimStyle={width:"".concat(i.clientWidth,"px"),height:"".concat(i.clientHeight,"px")},this.showFixedShim=!0,this.fixedSlotStyle={top:"".concat(this.fixedTop,"px"),left:"".concat(n.left,"px"),width:"".concat(this.$el.offsetWidth,"px")},this.$emit("on-fixed",!0)}else n.top-this.fixedTop>e&&t&&(this.showFixedShim=!1,this.fixedShimStyle={},this.isFixed=!1,this.fixedSlotStyle=null,this.$emit("on-fixed",!1))}}},c=n(0),a=Object(c.a)(s,i,[],!1,null,null,null);a.options.__file="src/components/affix/affix.vue";e.a=a.exports},2:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"f",(function(){return o})),n.d(e,"b",(function(){return c})),n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return f})),n.d(e,"e",(function(){return u}));var i=function(t,e){if(t){for(var n=t.className,i=(e||"").split(" "),o=0,r=i.length;o<r;o++){var c=i[o];c&&(t.classList?t.classList.add(c):s(t,c)||(n+=" "+c))}t.classList||(t.className=n)}},o=function(t,e){if(t&&e){for(var n=e.split(" "),i=" "+t.className+" ",o=0,c=n.length;o<c;o++){var a=n[o];a&&(t.classList?t.classList.remove(a):s(t,a)&&(i=i.replace(" "+a+" "," ")))}t.classList||(t.className=r(i))}},r=function(t){return(t||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},s=function(t,e){if(!t||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):(" "+t.className+" ").includes(" "+e+" ")},c=function(t,e){var n=-1;return t.map((function(t){return t.route})).forEach((function(t,i){e.startsWith(t)&&(n=i)})),n},a=function(t,e){var n=e?"scrollTop":"scrollLeft",i=t[e?"pageYOffset":"pageXOffset"];return"number"!=typeof i&&(i=window.document.documentElement[n]),i},f=function(t){var e=t.getBoundingClientRect(),n=a(window,!0),i=a(window),o=window.document.body,r=o.clientTop||0,s=o.clientLeft||0;return{top:e.top+n-r,left:e.left+i-s}},u=function(t){var e=t;if(!e)return null;for(;e&&"HTML"!==e.tagName&&"BOYD"!==e.tagName&&1===e.nodeType;){var n=window.getComputedStyle(e).overflowY;if("scroll"===n||"auto"===n)return"HTML"===e.tagName||"BODY"===e.tagName?document:e;e=e.parentNode}return document}},21:function(t,e,n){},26:function(t,e,n){"use strict";n.r(e);var i=n(14);e.default=i.a},5:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return r}));var i=function(){if("undefined"!=typeof window)return document.addEventListener?function(t,e,n){t&&e&&n&&t.addEventListener(e,n,!1)}:function(t,e,n){t&&e&&n&&t.attachEvent("on"+e,n)}}(),o=function(){if("undefined"!=typeof window)return document.removeEventListener?function(t,e,n){t&&e&&t.removeEventListener(e,n,!1)}:function(t,e,n){t&&e&&t.detachEvent("on"+e,n)}}(),r=function(){var t="",e=/^(Webkit|Khtml|Moz|ms|O)(?=[A-Z])/,n=document.getElementsByTagName("script")[0].style;for(var i in n)e.test(i)&&(t="-"+i.match(e)[0].toLowerCase()+"-");return!t&&"WebkitOpacity"in n&&(t="-webkit-"),!t&&"KhtmlOpacity"in n&&(t="-khtml-"),t}}})}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=27)}({0:function(t,e,n){"use strict";function i(t,e,n,i,o,r,s,c){var a,f="function"==typeof t?t.options:t;if(e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),i&&(f.functional=!0),r&&(f._scopeId="data-v-"+r),s?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},f._ssrRegister=a):o&&(a=c?function(){o.call(this,this.$root.$options.shadowRoot)}:o),a)if(f.functional){f._injectStyles=a;var u=f.render;f.render=function(t,e){return a.call(e),u(t,e)}}else{var l=f.beforeCreate;f.beforeCreate=l?[].concat(l,a):[a]}return{exports:t,options:f}}n.d(e,"a",(function(){return i}))},14:function(t,e,n){"use strict";var i=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"v-affix"},[e("div",{directives:[{name:"show",rawName:"v-show",value:this.showFixedShim,expression:"showFixedShim"}],style:this.fixedShimStyle}),this._v(" "),e("div",{ref:"wrap",class:{"v-affix--fixed":!this.disabled&&this.isFixed},style:this.fixedSlotStyle},[this._t("default")],2)])};i._withStripped=!0;n(22);var o=n(5),r=n(2),s={name:"VAffix",props:{fixedTop:{type:Number},disabled:{type:Boolean,default:!1}},data:function(){return{isFixed:!1,showFixedShim:!1,fixedShimStyle:{},fixedSlotStyle:{}}},mounted:function(){var t=this;if(void 0!==this.fixedTop){var e=Object(r.e)(this.$el);Object(o.b)(e,"scroll",this.handleScroll),Object(o.b)(e,"resize",this.handleScroll),this.$nextTick((function(){t.handleScroll()}))}},beforeDestroy:function(){if(void 0!==this.fixedTop){var t=Object(r.e)(this.$el);Object(o.a)(t,"scroll",this.handleScroll),Object(o.a)(t,"resize",this.handleScroll)}},methods:{handleScroll:function(){var t=this.isFixed,e=Object(r.d)(window,!0),n=Object(r.c)(this.$el);if(n.top-this.fixedTop<=e&&!t){this.isFixed=!0;var i=this.$refs.wrap;this.fixedShimStyle={width:"".concat(i.clientWidth,"px"),height:"".concat(i.clientHeight,"px")},this.showFixedShim=!0,this.fixedSlotStyle={top:"".concat(this.fixedTop,"px"),left:"".concat(n.left,"px"),width:"".concat(this.$el.offsetWidth,"px")},this.$emit("on-fixed",!0)}else n.top-this.fixedTop>e&&t&&(this.showFixedShim=!1,this.fixedShimStyle={},this.isFixed=!1,this.fixedSlotStyle=null,this.$emit("on-fixed",!1))}}},c=n(0),a=Object(c.a)(s,i,[],!1,null,null,null);a.options.__file="src/components/affix/affix.vue";e.a=a.exports},2:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"f",(function(){return o})),n.d(e,"b",(function(){return c})),n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return f})),n.d(e,"e",(function(){return u}));var i=function(t,e){if(t){for(var n=t.className,i=(e||"").split(" "),o=0,r=i.length;o<r;o++){var c=i[o];c&&(t.classList?t.classList.add(c):s(t,c)||(n+=" "+c))}t.classList||(t.className=n)}},o=function(t,e){if(t&&e){for(var n=e.split(" "),i=" "+t.className+" ",o=0,c=n.length;o<c;o++){var a=n[o];a&&(t.classList?t.classList.remove(a):s(t,a)&&(i=i.replace(" "+a+" "," ")))}t.classList||(t.className=r(i))}},r=function(t){return(t||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},s=function(t,e){if(!t||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):(" "+t.className+" ").includes(" "+e+" ")},c=function(t,e){var n=-1;return t.map((function(t){return t.route})).forEach((function(t,i){e.startsWith(t)&&(n=i)})),n},a=function(t,e){var n=e?"scrollTop":"scrollLeft",i=t[e?"pageYOffset":"pageXOffset"];return"number"!=typeof i&&(i=window.document.documentElement[n]),i},f=function(t){var e=t.getBoundingClientRect(),n=a(window,!0),i=a(window),o=window.document.body,r=o.clientTop||0,s=o.clientLeft||0;return{top:e.top+n-r,left:e.left+i-s}},u=function(t){var e=t;if(!e)return null;for(;e&&"HTML"!==e.tagName&&"BOYD"!==e.tagName&&1===e.nodeType;){var n=window.getComputedStyle(e).overflowY;if("scroll"===n||"auto"===n)return"HTML"===e.tagName||"BODY"===e.tagName?document:e;e=e.parentNode}return document}},22:function(t,e,n){},27:function(t,e,n){"use strict";n.r(e);var i=n(14);e.default=i.a},5:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return r}));var i=function(){if("undefined"!=typeof window)return document.addEventListener?function(t,e,n){t&&e&&n&&t.addEventListener(e,n,!1)}:function(t,e,n){t&&e&&n&&t.attachEvent("on"+e,n)}}(),o=function(){if("undefined"!=typeof window)return document.removeEventListener?function(t,e,n){t&&e&&t.removeEventListener(e,n,!1)}:function(t,e,n){t&&e&&t.detachEvent("on"+e,n)}}(),r=function(){var t="",e=/^(Webkit|Khtml|Moz|ms|O)(?=[A-Z])/,n=document.getElementsByTagName("script")[0].style;for(var i in n)e.test(i)&&(t="-"+i.match(e)[0].toLowerCase()+"-");return!t&&"WebkitOpacity"in n&&(t="-webkit-"),!t&&"KhtmlOpacity"in n&&(t="-khtml-"),t}}})}));
/*! For license information please see index.js.LICENSE.txt */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define(["vue"],e):"object"==typeof exports?exports["@calibur/sakura"]=e(require("vue")):t["@calibur/sakura"]=e(t.Vue)}(this,(function(t){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=32)}({0:function(t,e,n){"use strict";function o(t,e,n,o,i,r,s,l){var a,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),s?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=a):i&&(a=l?function(){i.call(this,this.$root.$options.shadowRoot)}:i),a)if(c.functional){c._injectStyles=a;var u=c.render;c.render=function(t,e){return a.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,a):[a]}return{exports:t,options:c}}n.d(e,"a",(function(){return o}))},11:function(e,n){e.exports=t},32:function(t,e,n){"use strict";n.r(e);var o=n(11),i=n.n(o),r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"v-alert"},[n("div",{ref:"wrap",staticClass:"v-alert__wrap",class:[t.md?"v-alert--md":"v-alert--ios"]},[n("transition",{attrs:{name:t.md?"v-transition--md":"v-transition--ios"}},[t.visible?n("div",{staticClass:"v-alert__box",class:{"v-alert--vertical":t.vertical}},[n("div",{staticClass:"v-alert__title"},[n("p",{domProps:{textContent:t._s(t.title)}})]),t._v(" "),n("div",{staticClass:"v-alert__message",domProps:{textContent:t._s(t.message)}}),t._v(" "),t.input?n("div",{staticClass:"v-alert__input"},[n("input",t._b({ref:"input",attrs:{spellcheck:"false"}},"input",t.input,!1))]):t._e(),t._v(" "),n("div",{staticClass:"v-alert__buttons"},t._l(t.buttons,(function(e,o){return n("div",{key:o,style:{width:100/t.buttons.length+"%"},domProps:{textContent:t._s(e)},on:{click:function(e){return t.clickButton(o)}}})})),0)]):t._e()])],1)])};r._withStripped=!0;n(46);var s=n(4);function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c={name:"VAlert",props:{md:{type:Boolean,default:!1}},data:function(){return{title:"",message:"",buttons:[],input:null,callback:null,vertical:!1,visible:!1,overlayId:""}},methods:{show:function(t){this.visible||(this.title=t.title||"提示",this.message=t.message||"",this.buttons=void 0===t.buttons?["确定"]:("string"==typeof t.buttons?[t.buttons]:t.buttons)||[],this.input=t.input?function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t.input,{placeholder:t.input.placeholder||"请输入",type:t.input.type||"text"}):null,this.vertical=t.vertical||!1,this.callback=t.callback||null,this.overlayId=s.default.show({el:this.$refs.wrap,md:this.md,click:t.maskClose?this.hide:null}),this.visible=!0)},hide:function(){this.visible&&(this.visible=!1,s.default.hide(this.overlayId))},clickButton:function(t){if(this.callback){var e=this.input?this.$refs.input.value:void 0;this.callback(t,e)}this.hide()}}},u=n(0),d=Object(u.a)(c,r,[],!1,null,null,null);d.options.__file="src/components/alert/alert.vue";var f=d.exports;e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=document.createElement("div");document.body.appendChild(e),f.propsData={md:void 0!==t.md?t.md:/android/.test(window.navigator.userAgent.toLocaleLowerCase())};var n=new i.a(f).$mount(e);return n.show}},4:function(t,e,n){"use strict";n.r(e);n(9);var o=function(){return"undefined"==typeof window},i=function(t){return document.querySelector(t)},r=function(t){t=t||navigator.userAgent;var e=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!e&&/(iPhone\sOS)\s([\d_]+)/.test(t)||e,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}};var s=0,l=0,a=0,c=null,u=!1,d=[],f=function(t){if(o())return!1;if(!t)throw new Error("options must be provided");var e=!1,n={get passive(){e=!0}},i=function(){};window.addEventListener("__TUA_BSL_TEST_PASSIVE__",i,n),window.removeEventListener("__TUA_BSL_TEST_PASSIVE__",i,n);var r=t.capture;return e?t:void 0!==r&&r}({passive:!1}),v=function(t){t.cancelable&&t.preventDefault()},p=function(t){var e,n,p,h,b;o()||(r().ios?(t&&-1===d.indexOf(t)&&(t.ontouchstart=function(t){l=t.targetTouches[0].clientY,a=t.targetTouches[0].clientX},t.ontouchmove=function(e){1===e.targetTouches.length&&function(t,e){if(e){var n=e.scrollTop,o=e.scrollLeft,i=e.scrollWidth,r=e.scrollHeight,s=e.clientWidth,c=e.clientHeight,u=t.targetTouches[0].clientX-a,d=t.targetTouches[0].clientY-l,f=Math.abs(d)>Math.abs(u);if(f&&(d>0&&0===n||d<0&&n+c+1>=r)||!f&&(u>0&&0===o||u<0&&o+s+1>=i))return v(t)}t.stopPropagation()}(e,t)},d.push(t)),u||(document.addEventListener("touchmove",v,f),u=!0)):s<=0&&(c=r().android?(e=i("html"),n=i("body"),p=e.scrollTop||n.scrollTop,h=Object.assign({},e.style),b=Object.assign({},n.style),e.style.height="100%",e.style.overflow="hidden",n.style.top="-".concat(p,"px"),n.style.width="100%",n.style.height="auto",n.style.position="fixed",n.style.overflow="hidden",function(){e.style.height=h.height||"",e.style.overflow=h.overflow||"",["top","width","height","overflow","position"].forEach((function(t){n.style[t]=b[t]||""})),window.scrollTo(0,p)}):function(){var t=i("body"),e=Object.assign({},t.style),n=window.innerWidth-document.body.clientWidth;return t.style.overflow="hidden",t.style.boxSizing="border-box",t.style.paddingRight="".concat(n,"px"),function(){["overflow","boxSizing","paddingRight"].forEach((function(n){t.style[n]=e[n]||""}))}}()),s+=1)};e.default={show:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e="v-overlay-".concat(Math.random().toString(36).substring(3,6)),n=document.createElement("div"),o=void 0===t.md?/android/.test(window.navigator.userAgent.toLocaleLowerCase()):t.md;if(n.id=e,n.classList.add("v-overlay",o?"v-overlay--md":"v-overlay--ios"),t.click&&n.addEventListener("click",(function(){t.click()})),t.zIndex&&(n.style.zIndex=t.zIndex),!1!==t.lock&&(t.unlock?p(t.unlock):p()),t.style){var i="";Object.keys(t.style).forEach((function(e){i+="".concat(e,":").concat(t.style[e],";")})),n.setAttribute("style",i)}return t.el?t.el.parentNode.insertBefore(n,t.el):document.body.appendChild(n),!1===t.show?e:(setTimeout((function(){n.classList.add("v-overlay--show")}),0),e)},hide:function(t){var e=t?document.getElementById(t):document.querySelector(".v-overlay");e&&(e.classList.remove("v-overlay--show"),function(t){if(!(o()||(s-=1)>0))if(r().ios||"function"!=typeof c){if(t){var e=d.indexOf(t);-1!==e&&(t.ontouchmove=null,t.ontouchstart=null,d.splice(e,1))}u&&(document.removeEventListener("touchmove",v,f),u=!1)}else c()}(),setTimeout((function(){e&&e.parentNode&&e.parentNode.removeChild(e)}),200))}}},46:function(t,e,n){},9:function(t,e,n){}})}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define(["vue"],e):"object"==typeof exports?exports["@calibur/sakura"]=e(require("vue")):t["@calibur/sakura"]=e(t.Vue)}(this,(function(t){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=33)}({0:function(t,e,n){"use strict";function o(t,e,n,o,i,r,s,l){var a,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),s?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=a):i&&(a=l?function(){i.call(this,this.$root.$options.shadowRoot)}:i),a)if(c.functional){c._injectStyles=a;var u=c.render;c.render=function(t,e){return a.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,a):[a]}return{exports:t,options:c}}n.d(e,"a",(function(){return o}))},11:function(e,n){e.exports=t},33:function(t,e,n){"use strict";n.r(e);var o=n(11),i=n.n(o),r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"v-alert"},[n("div",{ref:"wrap",staticClass:"v-alert__wrap",class:[t.md?"v-alert--md":"v-alert--ios"]},[n("transition",{attrs:{name:t.md?"v-transition--md":"v-transition--ios"}},[t.visible?n("div",{staticClass:"v-alert__box",class:{"v-alert--vertical":t.vertical}},[n("div",{staticClass:"v-alert__title"},[n("p",{domProps:{textContent:t._s(t.title)}})]),t._v(" "),n("div",{staticClass:"v-alert__message",domProps:{textContent:t._s(t.message)}}),t._v(" "),t.input?n("div",{staticClass:"v-alert__input"},[n("input",t._b({ref:"input",attrs:{spellcheck:"false"}},"input",t.input,!1))]):t._e(),t._v(" "),n("div",{staticClass:"v-alert__buttons"},t._l(t.buttons,(function(e,o){return n("div",{key:o,style:{width:100/t.buttons.length+"%"},domProps:{textContent:t._s(e)},on:{click:function(e){return t.clickButton(o)}}})})),0)]):t._e()])],1)])};r._withStripped=!0;n(47);var s=n(4);function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c={name:"VAlert",props:{md:{type:Boolean,default:!1}},data:function(){return{title:"",message:"",buttons:[],input:null,callback:null,vertical:!1,visible:!1,overlayId:""}},methods:{show:function(t){this.visible||(this.title=t.title||"提示",this.message=t.message||"",this.buttons=void 0===t.buttons?["确定"]:("string"==typeof t.buttons?[t.buttons]:t.buttons)||[],this.input=t.input?function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t.input,{placeholder:t.input.placeholder||"请输入",type:t.input.type||"text"}):null,this.vertical=t.vertical||!1,this.callback=t.callback||null,this.overlayId=s.default.show({el:this.$refs.wrap,md:this.md,click:t.maskClose?this.hide:null}),this.visible=!0)},hide:function(){this.visible&&(this.visible=!1,s.default.hide(this.overlayId))},clickButton:function(t){if(this.callback){var e=this.input?this.$refs.input.value:void 0;this.callback(t,e)}this.hide()}}},u=n(0),d=Object(u.a)(c,r,[],!1,null,null,null);d.options.__file="src/components/alert/alert.vue";var f=d.exports;e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=document.createElement("div");document.body.appendChild(e),f.propsData={md:void 0!==t.md?t.md:/android/.test(window.navigator.userAgent.toLocaleLowerCase())};var n=new i.a(f).$mount(e);return n.show}},4:function(t,e,n){"use strict";n.r(e);n(9);var o=function(){return"undefined"==typeof window},i=function(t){return document.querySelector(t)},r=function(t){t=t||navigator.userAgent;var e=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!e&&/(iPhone\sOS)\s([\d_]+)/.test(t)||e,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}};var s=0,l=0,a=0,c=null,u=!1,d=[],f=function(t){if(o())return!1;if(!t)throw new Error("options must be provided");var e=!1,n={get passive(){e=!0}},i=function(){};window.addEventListener("__TUA_BSL_TEST_PASSIVE__",i,n),window.removeEventListener("__TUA_BSL_TEST_PASSIVE__",i,n);var r=t.capture;return e?t:void 0!==r&&r}({passive:!1}),v=function(t){t.cancelable&&t.preventDefault()},p=function(t){var e,n,p,h,b;o()||(r().ios?(t&&-1===d.indexOf(t)&&(t.ontouchstart=function(t){l=t.targetTouches[0].clientY,a=t.targetTouches[0].clientX},t.ontouchmove=function(e){1===e.targetTouches.length&&function(t,e){if(e){var n=e.scrollTop,o=e.scrollLeft,i=e.scrollWidth,r=e.scrollHeight,s=e.clientWidth,c=e.clientHeight,u=t.targetTouches[0].clientX-a,d=t.targetTouches[0].clientY-l,f=Math.abs(d)>Math.abs(u);if(f&&(d>0&&0===n||d<0&&n+c+1>=r)||!f&&(u>0&&0===o||u<0&&o+s+1>=i))return v(t)}t.stopPropagation()}(e,t)},d.push(t)),u||(document.addEventListener("touchmove",v,f),u=!0)):s<=0&&(c=r().android?(e=i("html"),n=i("body"),p=e.scrollTop||n.scrollTop,h=Object.assign({},e.style),b=Object.assign({},n.style),e.style.height="100%",e.style.overflow="hidden",n.style.top="-".concat(p,"px"),n.style.width="100%",n.style.height="auto",n.style.position="fixed",n.style.overflow="hidden",function(){e.style.height=h.height||"",e.style.overflow=h.overflow||"",["top","width","height","overflow","position"].forEach((function(t){n.style[t]=b[t]||""})),window.scrollTo(0,p)}):function(){var t=i("body"),e=Object.assign({},t.style),n=window.innerWidth-document.body.clientWidth;return t.style.overflow="hidden",t.style.boxSizing="border-box",t.style.paddingRight="".concat(n,"px"),function(){["overflow","boxSizing","paddingRight"].forEach((function(n){t.style[n]=e[n]||""}))}}()),s+=1)};e.default={show:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e="v-overlay-".concat(Math.random().toString(36).substring(3,6)),n=document.createElement("div"),o=void 0===t.md?/android/.test(window.navigator.userAgent.toLocaleLowerCase()):t.md;if(n.id=e,n.classList.add("v-overlay",o?"v-overlay--md":"v-overlay--ios"),t.click&&n.addEventListener("click",(function(){t.click()})),t.zIndex&&(n.style.zIndex=t.zIndex),!1!==t.lock&&(t.unlock?p(t.unlock):p()),t.style){var i="";Object.keys(t.style).forEach((function(e){i+="".concat(e,":").concat(t.style[e],";")})),n.setAttribute("style",i)}return t.el?t.el.parentNode.insertBefore(n,t.el):document.body.appendChild(n),!1===t.show?e:(setTimeout((function(){n.classList.add("v-overlay--show")}),0),e)},hide:function(t){var e=t?document.getElementById(t):document.querySelector(".v-overlay");e&&(e.classList.remove("v-overlay--show"),function(t){if(!(o()||(s-=1)>0))if(r().ios||"function"!=typeof c){if(t){var e=d.indexOf(t);-1!==e&&(t.ontouchmove=null,t.ontouchstart=null,d.splice(e,1))}u&&(document.removeEventListener("touchmove",v,f),u=!1)}else c()}(),setTimeout((function(){e&&e.parentNode&&e.parentNode.removeChild(e)}),200))}}},47:function(t,e,n){},9:function(t,e,n){}})}));

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@calibur/sakura"]=t():e["@calibur/sakura"]=t()}(this,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=65)}({65:function(e,t,r){}})}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@calibur/sakura"]=t():e["@calibur/sakura"]=t()}(this,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=66)}({66:function(e,t,r){}})}));

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=34)}({0:function(t,e,n){"use strict";function o(t,e,n,o,r,i,a,c){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),o&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=c?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var s=u.render;u.render=function(t,e){return l.call(e),s(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:u}}n.d(e,"a",(function(){return o}))},34:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{class:t.classList,attrs:{disabled:t.disabled||t.loading},on:{click:t.handle}},[t.loading?n("em",{staticClass:"loading"}):t._e(),t._v(" "),t._t("default")],2)};o._withStripped=!0;n(49);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i={name:"VButton",props:{text:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},block:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},theme:{type:String,default:"primary",validator:function(t){return~["primary","success","info","warning","danger"].indexOf(t)}},size:{type:String,default:"medium",validator:function(t){return~["small","medium","large"].indexOf(t)}}},computed:{classList:function(){var t,e="v-button";return r(t={},e,!0),r(t,"".concat(e,"--text"),!!this.text),r(t,"".concat(e,"--icon"),!!this.icon),r(t,"".concat(e,"--plain"),!!this.plain),r(t,"".concat(e,"--block"),!!this.block),r(t,"".concat(e,"--loading"),!!this.loading),r(t,"".concat(e,"--disabled"),!!this.disabled),r(t,"".concat(e,"--").concat(this.theme),!!this.theme),r(t,"".concat(e,"--").concat(this.size),!!this.size),t}},methods:{handle:function(){this.loading||this.disabled||this.$emit("click")}}},a=n(0),c=Object(a.a)(i,o,[],!1,null,null,null);c.options.__file="src/components/button/button.vue";var l=c.exports;e.default=l},49:function(t,e,n){}})}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=35)}({0:function(t,e,n){"use strict";function o(t,e,n,o,r,i,a,c){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),o&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=c?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var s=u.render;u.render=function(t,e){return l.call(e),s(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:u}}n.d(e,"a",(function(){return o}))},35:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{class:t.classList,attrs:{disabled:t.disabled||t.loading},on:{click:t.handle}},[t.loading?n("em",{staticClass:"loading"}):t._e(),t._v(" "),t._t("default")],2)};o._withStripped=!0;n(50);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i={name:"VButton",props:{text:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},block:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},theme:{type:String,default:"primary",validator:function(t){return~["primary","success","info","warning","danger"].indexOf(t)}},size:{type:String,default:"medium",validator:function(t){return~["small","medium","large"].indexOf(t)}}},computed:{classList:function(){var t,e="v-button";return r(t={},e,!0),r(t,"".concat(e,"--text"),!!this.text),r(t,"".concat(e,"--icon"),!!this.icon),r(t,"".concat(e,"--plain"),!!this.plain),r(t,"".concat(e,"--block"),!!this.block),r(t,"".concat(e,"--loading"),!!this.loading),r(t,"".concat(e,"--disabled"),!!this.disabled),r(t,"".concat(e,"--").concat(this.theme),!!this.theme),r(t,"".concat(e,"--").concat(this.size),!!this.size),t}},methods:{handle:function(){this.loading||this.disabled||this.$emit("click")}}},a=n(0),c=Object(a.a)(i,o,[],!1,null,null,null);c.options.__file="src/components/button/button.vue";var l=c.exports;e.default=l},50:function(t,e,n){}})}));

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@calibur/sakura"]=t():e["@calibur/sakura"]=t()}(this,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=23)}({23:function(e,t,r){"use strict";r.r(t);r(48);t.default={set:function(e,t,r){if("undefined"!=typeof window)try{localStorage.setItem(e,JSON.stringify(t)),r&&localStorage.setItem("".concat(e,"-timeout"),Date.now()+1e3*r)}catch(n){}},get:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("undefined"==typeof window)return t;try{var r=localStorage.getItem(e);if(!r)return t;var n=localStorage.getItem("".concat(e,"-timeout"));return n&&parseInt(n)<Date.now()?(localStorage.removeItem(e),localStorage.removeItem("".concat(e,"-timeout")),t):JSON.parse(r)}catch(o){return t}},del:function(e){if("undefined"!=typeof window)try{localStorage.removeItem(e)}catch(t){}},has:function(e){if("undefined"==typeof window)return!1;try{return!!localStorage.getItem(e)}catch(t){return!1}}}},48:function(e,t,r){}})}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@calibur/sakura"]=t():e["@calibur/sakura"]=t()}(this,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=24)}({24:function(e,t,r){"use strict";r.r(t);r(49);t.default={set:function(e,t,r){if("undefined"!=typeof window)try{localStorage.setItem(e,JSON.stringify(t)),r&&localStorage.setItem("".concat(e,"-timeout"),Date.now()+1e3*r)}catch(n){}},get:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("undefined"==typeof window)return t;try{var r=localStorage.getItem(e);if(!r)return t;var n=localStorage.getItem("".concat(e,"-timeout"));return n&&parseInt(n)<Date.now()?(localStorage.removeItem(e),localStorage.removeItem("".concat(e,"-timeout")),t):JSON.parse(r)}catch(o){return t}},del:function(e){if("undefined"!=typeof window)try{localStorage.removeItem(e)}catch(t){}},has:function(e){if("undefined"==typeof window)return!1;try{return!!localStorage.getItem(e)}catch(t){return!1}}}},49:function(e,t,r){}})}));

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var a=e[o]={i:o,l:!1,exports:{}};return t[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(o,a,function(e){return t[e]}.bind(null,a));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=35)}({0:function(t,e,n){"use strict";function o(t,e,n,o,a,r,i,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),i?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},c._ssrRegister=l):a&&(l=s?function(){a.call(this,this.$root.$options.shadowRoot)}:a),l)if(c.functional){c._injectStyles=l;var d=c.render;c.render=function(t,e){return l.call(e),d(t,e)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,l):[l]}return{exports:t,options:c}}n.d(e,"a",(function(){return o}))},18:function(t,e,n){"use strict";var o=n(2);e.a={name:"CollapseTransition",functional:!0,render:function(t,e){var n=e.props,a=e.children,r={};return n.use&&(r.on={beforeEnter:function(t){Object(o.a)(t,"v-transition--collapse"),t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.height="0",t.style.paddingTop=0,t.style.paddingBottom=0},enter:function(t){t.dataset.oldOverflow=t.style.overflow,0!==t.scrollHeight?(t.style.height=t.scrollHeight+"px",t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom):(t.style.height="",t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom),t.style.overflow="hidden"},afterEnter:function(t){Object(o.f)(t,"v-collapse-transition"),t.style.height="",t.style.overflow=t.dataset.oldOverflow},beforeLeave:function(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.height=t.scrollHeight+"px",t.style.overflow="hidden"},leave:function(t){0!==t.scrollHeight&&(Object(o.a)(t,"v-collapse-transition"),t.style.height=0,t.style.paddingTop=0,t.style.paddingBottom=0)},afterLeave:function(t){Object(o.f)(t,"v-collapse-transition"),t.style.height="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom}}),t("transition",r,a)}}},2:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"c",(function(){return c})),n.d(e,"e",(function(){return d}));var o=function(t,e){if(t){for(var n=t.className,o=(e||"").split(" "),a=0,r=o.length;a<r;a++){var s=o[a];s&&(t.classList?t.classList.add(s):i(t,s)||(n+=" "+s))}t.classList||(t.className=n)}},a=function(t,e){if(t&&e){for(var n=e.split(" "),o=" "+t.className+" ",a=0,s=n.length;a<s;a++){var l=n[a];l&&(t.classList?t.classList.remove(l):i(t,l)&&(o=o.replace(" "+l+" "," ")))}t.classList||(t.className=r(o))}},r=function(t){return(t||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},i=function(t,e){if(!t||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):(" "+t.className+" ").includes(" "+e+" ")},s=function(t,e){var n=-1;return t.map((function(t){return t.route})).forEach((function(t,o){e.startsWith(t)&&(n=o)})),n},l=function(t,e){var n=e?"scrollTop":"scrollLeft",o=t[e?"pageYOffset":"pageXOffset"];return"number"!=typeof o&&(o=window.document.documentElement[n]),o},c=function(t){var e=t.getBoundingClientRect(),n=l(window,!0),o=l(window),a=window.document.body,r=a.clientTop||0,i=a.clientLeft||0;return{top:e.top+n-r,left:e.left+o-i}},d=function(t){var e=t;if(!e)return null;for(;e&&"HTML"!==e.tagName&&"BOYD"!==e.tagName&&1===e.nodeType;){var n=window.getComputedStyle(e).overflowY;if("scroll"===n||"auto"===n)return"HTML"===e.tagName||"BODY"===e.tagName?document:e;e=e.parentNode}return document}},3:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var o=function(t){return"[object Array]"===Object.prototype.toString.call(t)}},35:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"v-collapse"},t._l(t.count,(function(e,o){return n("div",{key:o,staticClass:"v-collapse__item",class:{"v-collapse__item--active":t.selected[o]}},[n("div",{staticClass:"v-collapse__header",class:{"v-collapse__header--disabled":t.blocked[o]},on:{click:function(e){return t.toggle(o)}}},[t.arrow?t._t("arrow-"+o,[n("i",{staticClass:"bili-font ic_into v-collapse__arrow",class:{"v-collapse__arrow--expanded":t.selected[o]}})]):t._e(),t._v(" "),n("div",{staticClass:"v-collapse__title"},[t._t("title-"+o)],2)],2),t._v(" "),n("collapse-transition",{attrs:{use:t.animate}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.selected[o],expression:"selected[index]"}],staticClass:"v-collapse__panel"},[t._t("panel-"+o)],2)])],1)})),0)};o._withStripped=!0;n(50);var a=n(3),r=n(18),i=function(t,e,n){var o=new Array(t).fill(!1);return void 0!==e||n?(Object(a.a)(e)?e.forEach((function(e){e<t&&(o[e]=!0)})):o[parseInt(e)]=!0,n&&n.forEach((function(e,n){n<t&&(o[n]=e)})),o):o},s={name:"VCollapse",components:{CollapseTransition:r.a},props:{active:{type:[Array,Number,String]},disabled:{type:[Array,Number,String]},count:{type:Number,required:!0,validator:function(t){return t>1}},arrow:{type:Boolean,default:!0},animate:{type:Boolean,default:!0},only:{type:Boolean,default:!1}},data:function(){return{selected:i(this.count,this.active),blocked:i(this.count,this.disabled)}},watch:{count:function(t){this.selected=i(t,this.active,this.selected)}},methods:{toggle:function(t){var e=this.disabled;if(void 0!==e){if(Object(a.a)(e)&&e.some((function(e){return+e===t})))return;if(+e===t)return}if(this.only&&!this.selected[t]){var n=new Array(this.count).fill(!1);n[t]=!0,this.selected=n,this.$emit("open",t)}else{var o=!this.selected[t];this.$set(this.selected,t,o),o&&this.$emit("open",t)}}}},l=n(0),c=Object(l.a)(s,o,[],!1,null,null,null);c.options.__file="src/components/collapse/collapse.vue";var d=c.exports;e.default=d},50:function(t,e,n){}})}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var a=e[o]={i:o,l:!1,exports:{}};return t[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(o,a,function(e){return t[e]}.bind(null,a));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=36)}({0:function(t,e,n){"use strict";function o(t,e,n,o,a,r,i,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),i?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},c._ssrRegister=l):a&&(l=s?function(){a.call(this,this.$root.$options.shadowRoot)}:a),l)if(c.functional){c._injectStyles=l;var d=c.render;c.render=function(t,e){return l.call(e),d(t,e)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,l):[l]}return{exports:t,options:c}}n.d(e,"a",(function(){return o}))},19:function(t,e,n){"use strict";var o=n(2);e.a={name:"CollapseTransition",functional:!0,render:function(t,e){var n=e.props,a=e.children,r={};return n.use&&(r.on={beforeEnter:function(t){Object(o.a)(t,"v-transition--collapse"),t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.height="0",t.style.paddingTop=0,t.style.paddingBottom=0},enter:function(t){t.dataset.oldOverflow=t.style.overflow,0!==t.scrollHeight?(t.style.height=t.scrollHeight+"px",t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom):(t.style.height="",t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom),t.style.overflow="hidden"},afterEnter:function(t){Object(o.f)(t,"v-collapse-transition"),t.style.height="",t.style.overflow=t.dataset.oldOverflow},beforeLeave:function(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.height=t.scrollHeight+"px",t.style.overflow="hidden"},leave:function(t){0!==t.scrollHeight&&(Object(o.a)(t,"v-collapse-transition"),t.style.height=0,t.style.paddingTop=0,t.style.paddingBottom=0)},afterLeave:function(t){Object(o.f)(t,"v-collapse-transition"),t.style.height="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom}}),t("transition",r,a)}}},2:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"c",(function(){return c})),n.d(e,"e",(function(){return d}));var o=function(t,e){if(t){for(var n=t.className,o=(e||"").split(" "),a=0,r=o.length;a<r;a++){var s=o[a];s&&(t.classList?t.classList.add(s):i(t,s)||(n+=" "+s))}t.classList||(t.className=n)}},a=function(t,e){if(t&&e){for(var n=e.split(" "),o=" "+t.className+" ",a=0,s=n.length;a<s;a++){var l=n[a];l&&(t.classList?t.classList.remove(l):i(t,l)&&(o=o.replace(" "+l+" "," ")))}t.classList||(t.className=r(o))}},r=function(t){return(t||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},i=function(t,e){if(!t||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):(" "+t.className+" ").includes(" "+e+" ")},s=function(t,e){var n=-1;return t.map((function(t){return t.route})).forEach((function(t,o){e.startsWith(t)&&(n=o)})),n},l=function(t,e){var n=e?"scrollTop":"scrollLeft",o=t[e?"pageYOffset":"pageXOffset"];return"number"!=typeof o&&(o=window.document.documentElement[n]),o},c=function(t){var e=t.getBoundingClientRect(),n=l(window,!0),o=l(window),a=window.document.body,r=a.clientTop||0,i=a.clientLeft||0;return{top:e.top+n-r,left:e.left+o-i}},d=function(t){var e=t;if(!e)return null;for(;e&&"HTML"!==e.tagName&&"BOYD"!==e.tagName&&1===e.nodeType;){var n=window.getComputedStyle(e).overflowY;if("scroll"===n||"auto"===n)return"HTML"===e.tagName||"BODY"===e.tagName?document:e;e=e.parentNode}return document}},3:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var o=function(t){return"[object Array]"===Object.prototype.toString.call(t)}},36:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"v-collapse"},t._l(t.count,(function(e,o){return n("div",{key:o,staticClass:"v-collapse__item",class:{"v-collapse__item--active":t.selected[o]}},[n("div",{staticClass:"v-collapse__header",class:{"v-collapse__header--disabled":t.blocked[o]},on:{click:function(e){return t.toggle(o)}}},[t.arrow?t._t("arrow-"+o,[n("i",{staticClass:"bili-font ic_into v-collapse__arrow",class:{"v-collapse__arrow--expanded":t.selected[o]}})]):t._e(),t._v(" "),n("div",{staticClass:"v-collapse__title"},[t._t("title-"+o)],2)],2),t._v(" "),n("collapse-transition",{attrs:{use:t.animate}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.selected[o],expression:"selected[index]"}],staticClass:"v-collapse__panel"},[t._t("panel-"+o)],2)])],1)})),0)};o._withStripped=!0;n(51);var a=n(3),r=n(19),i=function(t,e,n){var o=new Array(t).fill(!1);return void 0!==e||n?(Object(a.a)(e)?e.forEach((function(e){e<t&&(o[e]=!0)})):o[parseInt(e)]=!0,n&&n.forEach((function(e,n){n<t&&(o[n]=e)})),o):o},s={name:"VCollapse",components:{CollapseTransition:r.a},props:{active:{type:[Array,Number,String]},disabled:{type:[Array,Number,String]},count:{type:Number,required:!0,validator:function(t){return t>1}},arrow:{type:Boolean,default:!0},animate:{type:Boolean,default:!0},only:{type:Boolean,default:!1}},data:function(){return{selected:i(this.count,this.active),blocked:i(this.count,this.disabled)}},watch:{count:function(t){this.selected=i(t,this.active,this.selected)}},methods:{toggle:function(t){var e=this.disabled;if(void 0!==e){if(Object(a.a)(e)&&e.some((function(e){return+e===t})))return;if(+e===t)return}if(this.only&&!this.selected[t]){var n=new Array(this.count).fill(!1);n[t]=!0,this.selected=n,this.$emit("open",t)}else{var o=!this.selected[t];this.$set(this.selected,t,o),o&&this.$emit("open",t)}}}},l=n(0),c=Object(l.a)(s,o,[],!1,null,null,null);c.options.__file="src/components/collapse/collapse.vue";var d=c.exports;e.default=d},51:function(t,e,n){}})}));
/*! For license information please see index.js.LICENSE.txt */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function o(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=27)}({0:function(t,e,o){"use strict";function n(t,e,o,n,i,r,s,a){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=o,u._compiled=!0),n&&(u.functional=!0),r&&(u._scopeId="data-v-"+r),s?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=l):i&&(l=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:u}}o.d(e,"a",(function(){return n}))},15:function(t,e,o){"use strict";var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("transition",{attrs:{name:"v-transition--"+t.transition}},[t.show?o("div",{staticClass:"v-dialog__wrap"},[o("div",{ref:"dialog",staticClass:"v-dialog",style:{width:t.width,height:t.height}},[t._t("default")],2),t._v(" "),o("span",{staticClass:"v-dialog__outer"},[t._t("outer")],2)]):t._e()])};n._withStripped=!0;o(22);var i=o(4),r={name:"VDialog",props:{value:{type:Boolean,default:!1,required:!0},width:{type:String,default:"280px"},height:{type:String,default:"300px"},transition:{type:String,default:"none",validator:function(t){return~["none","ios","md","popup"].indexOf(t)}},mask:{type:Boolean,default:!0},lock:{type:Boolean,default:!0},maskClose:{type:Boolean,default:!0}},data:function(){return{show:!1,overlayId:""}},watch:{show:function(t){this.$emit("input",t),this.toggle(t)},value:function(t){this.show=t}},mounted:function(){this.value&&(this.show=!0)},methods:{toggle:function(t){var e=this;this.$emit(t?"open":"close"),t?this.$nextTick((function(){e.overlayId=i.default.show({el:e.$el,show:e.mask,lock:e.lock,unlock:e.$refs.dialog,md:"md"===e.transition,click:e.maskClose?function(){e.show=!1,i.default.hide(e.overlayId)}:null})})):i.default.hide(this.overlayId)}}},s=o(0),a=Object(s.a)(r,n,[],!1,null,null,null);a.options.__file="src/components/dialog/dialog.vue";e.a=a.exports},22:function(t,e,o){},27:function(t,e,o){"use strict";o.r(e);var n=o(15);e.default=n.a},4:function(t,e,o){"use strict";o.r(e);o(9);var n=function(){return"undefined"==typeof window},i=function(t){return document.querySelector(t)},r=function(t){t=t||navigator.userAgent;var e=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!e&&/(iPhone\sOS)\s([\d_]+)/.test(t)||e,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}};var s=0,a=0,l=0,u=null,c=!1,d=[],f=function(t){if(n())return!1;if(!t)throw new Error("options must be provided");var e=!1,o={get passive(){e=!0}},i=function(){};window.addEventListener("__TUA_BSL_TEST_PASSIVE__",i,o),window.removeEventListener("__TUA_BSL_TEST_PASSIVE__",i,o);var r=t.capture;return e?t:void 0!==r&&r}({passive:!1}),h=function(t){t.cancelable&&t.preventDefault()},v=function(t){var e,o,v,p,y;n()||(r().ios?(t&&-1===d.indexOf(t)&&(t.ontouchstart=function(t){a=t.targetTouches[0].clientY,l=t.targetTouches[0].clientX},t.ontouchmove=function(e){1===e.targetTouches.length&&function(t,e){if(e){var o=e.scrollTop,n=e.scrollLeft,i=e.scrollWidth,r=e.scrollHeight,s=e.clientWidth,u=e.clientHeight,c=t.targetTouches[0].clientX-l,d=t.targetTouches[0].clientY-a,f=Math.abs(d)>Math.abs(c);if(f&&(d>0&&0===o||d<0&&o+u+1>=r)||!f&&(c>0&&0===n||c<0&&n+s+1>=i))return h(t)}t.stopPropagation()}(e,t)},d.push(t)),c||(document.addEventListener("touchmove",h,f),c=!0)):s<=0&&(u=r().android?(e=i("html"),o=i("body"),v=e.scrollTop||o.scrollTop,p=Object.assign({},e.style),y=Object.assign({},o.style),e.style.height="100%",e.style.overflow="hidden",o.style.top="-".concat(v,"px"),o.style.width="100%",o.style.height="auto",o.style.position="fixed",o.style.overflow="hidden",function(){e.style.height=p.height||"",e.style.overflow=p.overflow||"",["top","width","height","overflow","position"].forEach((function(t){o.style[t]=y[t]||""})),window.scrollTo(0,v)}):function(){var t=i("body"),e=Object.assign({},t.style),o=window.innerWidth-document.body.clientWidth;return t.style.overflow="hidden",t.style.boxSizing="border-box",t.style.paddingRight="".concat(o,"px"),function(){["overflow","boxSizing","paddingRight"].forEach((function(o){t.style[o]=e[o]||""}))}}()),s+=1)};e.default={show:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e="v-overlay-".concat(Math.random().toString(36).substring(3,6)),o=document.createElement("div"),n=void 0===t.md?/android/.test(window.navigator.userAgent.toLocaleLowerCase()):t.md;if(o.id=e,o.classList.add("v-overlay",n?"v-overlay--md":"v-overlay--ios"),t.click&&o.addEventListener("click",(function(){t.click()})),t.zIndex&&(o.style.zIndex=t.zIndex),!1!==t.lock&&(t.unlock?v(t.unlock):v()),t.style){var i="";Object.keys(t.style).forEach((function(e){i+="".concat(e,":").concat(t.style[e],";")})),o.setAttribute("style",i)}return t.el?t.el.parentNode.insertBefore(o,t.el):document.body.appendChild(o),!1===t.show?e:(setTimeout((function(){o.classList.add("v-overlay--show")}),0),e)},hide:function(t){var e=t?document.getElementById(t):document.querySelector(".v-overlay");e&&(e.classList.remove("v-overlay--show"),function(t){if(!(n()||(s-=1)>0))if(r().ios||"function"!=typeof u){if(t){var e=d.indexOf(t);-1!==e&&(t.ontouchmove=null,t.ontouchstart=null,d.splice(e,1))}c&&(document.removeEventListener("touchmove",h,f),c=!1)}else u()}(),setTimeout((function(){e&&e.parentNode&&e.parentNode.removeChild(e)}),200))}}},9:function(t,e,o){}})}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function o(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=28)}({0:function(t,e,o){"use strict";function n(t,e,o,n,i,r,s,a){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=o,u._compiled=!0),n&&(u.functional=!0),r&&(u._scopeId="data-v-"+r),s?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=l):i&&(l=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:u}}o.d(e,"a",(function(){return n}))},15:function(t,e,o){"use strict";var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("transition",{attrs:{name:"v-transition--"+t.transition}},[t.show?o("div",{staticClass:"v-dialog__wrap"},[o("div",{ref:"dialog",staticClass:"v-dialog",style:{width:t.width,height:t.height}},[t._t("default")],2),t._v(" "),o("span",{staticClass:"v-dialog__outer"},[t._t("outer")],2)]):t._e()])};n._withStripped=!0;o(23);var i=o(4),r={name:"VDialog",props:{value:{type:Boolean,default:!1,required:!0},width:{type:String,default:"280px"},height:{type:String,default:"300px"},transition:{type:String,default:"none",validator:function(t){return~["none","ios","md","popup"].indexOf(t)}},mask:{type:Boolean,default:!0},lock:{type:Boolean,default:!0},maskClose:{type:Boolean,default:!0}},data:function(){return{show:!1,overlayId:""}},watch:{show:function(t){this.$emit("input",t),this.toggle(t)},value:function(t){this.show=t}},mounted:function(){this.value&&(this.show=!0)},methods:{toggle:function(t){var e=this;this.$emit(t?"open":"close"),t?this.$nextTick((function(){e.overlayId=i.default.show({el:e.$el,show:e.mask,lock:e.lock,unlock:e.$refs.dialog,md:"md"===e.transition,click:e.maskClose?function(){e.show=!1,i.default.hide(e.overlayId)}:null})})):i.default.hide(this.overlayId)}}},s=o(0),a=Object(s.a)(r,n,[],!1,null,null,null);a.options.__file="src/components/dialog/dialog.vue";e.a=a.exports},23:function(t,e,o){},28:function(t,e,o){"use strict";o.r(e);var n=o(15);e.default=n.a},4:function(t,e,o){"use strict";o.r(e);o(9);var n=function(){return"undefined"==typeof window},i=function(t){return document.querySelector(t)},r=function(t){t=t||navigator.userAgent;var e=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!e&&/(iPhone\sOS)\s([\d_]+)/.test(t)||e,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}};var s=0,a=0,l=0,u=null,c=!1,d=[],f=function(t){if(n())return!1;if(!t)throw new Error("options must be provided");var e=!1,o={get passive(){e=!0}},i=function(){};window.addEventListener("__TUA_BSL_TEST_PASSIVE__",i,o),window.removeEventListener("__TUA_BSL_TEST_PASSIVE__",i,o);var r=t.capture;return e?t:void 0!==r&&r}({passive:!1}),h=function(t){t.cancelable&&t.preventDefault()},v=function(t){var e,o,v,p,y;n()||(r().ios?(t&&-1===d.indexOf(t)&&(t.ontouchstart=function(t){a=t.targetTouches[0].clientY,l=t.targetTouches[0].clientX},t.ontouchmove=function(e){1===e.targetTouches.length&&function(t,e){if(e){var o=e.scrollTop,n=e.scrollLeft,i=e.scrollWidth,r=e.scrollHeight,s=e.clientWidth,u=e.clientHeight,c=t.targetTouches[0].clientX-l,d=t.targetTouches[0].clientY-a,f=Math.abs(d)>Math.abs(c);if(f&&(d>0&&0===o||d<0&&o+u+1>=r)||!f&&(c>0&&0===n||c<0&&n+s+1>=i))return h(t)}t.stopPropagation()}(e,t)},d.push(t)),c||(document.addEventListener("touchmove",h,f),c=!0)):s<=0&&(u=r().android?(e=i("html"),o=i("body"),v=e.scrollTop||o.scrollTop,p=Object.assign({},e.style),y=Object.assign({},o.style),e.style.height="100%",e.style.overflow="hidden",o.style.top="-".concat(v,"px"),o.style.width="100%",o.style.height="auto",o.style.position="fixed",o.style.overflow="hidden",function(){e.style.height=p.height||"",e.style.overflow=p.overflow||"",["top","width","height","overflow","position"].forEach((function(t){o.style[t]=y[t]||""})),window.scrollTo(0,v)}):function(){var t=i("body"),e=Object.assign({},t.style),o=window.innerWidth-document.body.clientWidth;return t.style.overflow="hidden",t.style.boxSizing="border-box",t.style.paddingRight="".concat(o,"px"),function(){["overflow","boxSizing","paddingRight"].forEach((function(o){t.style[o]=e[o]||""}))}}()),s+=1)};e.default={show:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e="v-overlay-".concat(Math.random().toString(36).substring(3,6)),o=document.createElement("div"),n=void 0===t.md?/android/.test(window.navigator.userAgent.toLocaleLowerCase()):t.md;if(o.id=e,o.classList.add("v-overlay",n?"v-overlay--md":"v-overlay--ios"),t.click&&o.addEventListener("click",(function(){t.click()})),t.zIndex&&(o.style.zIndex=t.zIndex),!1!==t.lock&&(t.unlock?v(t.unlock):v()),t.style){var i="";Object.keys(t.style).forEach((function(e){i+="".concat(e,":").concat(t.style[e],";")})),o.setAttribute("style",i)}return t.el?t.el.parentNode.insertBefore(o,t.el):document.body.appendChild(o),!1===t.show?e:(setTimeout((function(){o.classList.add("v-overlay--show")}),0),e)},hide:function(t){var e=t?document.getElementById(t):document.querySelector(".v-overlay");e&&(e.classList.remove("v-overlay--show"),function(t){if(!(n()||(s-=1)>0))if(r().ios||"function"!=typeof u){if(t){var e=d.indexOf(t);-1!==e&&(t.ontouchmove=null,t.ontouchstart=null,d.splice(e,1))}c&&(document.removeEventListener("touchmove",h,f),c=!1)}else u()}(),setTimeout((function(){e&&e.parentNode&&e.parentNode.removeChild(e)}),200))}}},9:function(t,e,o){}})}));
/*! For license information please see index.js.LICENSE.txt */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function o(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=24)}({0:function(t,e,o){"use strict";function n(t,e,o,n,r,i,s,a){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=o,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=c):r&&(c=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:t,options:l}}o.d(e,"a",(function(){return n}))},13:function(t,e,o){"use strict";var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"v-drawer",class:["v-drawer--"+t.from,{"v-drawer--offset":!t.offset&&!t.offsetVal}],style:t.drawerStyle},[o("transition",{attrs:{name:"v-drawer--transition"}},[t.show?o("div",{ref:"wrap",staticClass:"v-drawer__wrap",style:t.wrapStyle,on:{touchstart:function(t){t.stopPropagation()},touchmove:function(t){t.stopPropagation()},touchend:function(t){t.stopPropagation()}}},[t.count?t._l(t.count,(function(e,n){return o("div",{key:e,staticClass:"v-drawer__item",class:{strict:t.strict}},[t._t(""+n)],2)})):t._t("default"),t._v(" "),t.cancel?[o("div",{staticClass:"v-drawer__line"}),t._v(" "),o("div",{staticClass:"v-drawer__footer",domProps:{textContent:t._s(t.cancel)},on:{click:function(e){t.show=!1}}})]:t._e()],2):t._e()])],1)};n._withStripped=!0;o(19);var r=o(4),i={name:"VDrawer",props:{value:{type:Boolean,required:!0},count:{type:Number,default:0,validator:function(t){return t>=0}},strict:{type:Boolean,default:!1},cancel:{type:String,default:""},from:{type:String,default:"bottom",validator:function(t){return~["left","right","top","bottom"].indexOf(t)}},size:{type:String,default:"60%"},mask:{type:Boolean,default:!0},lock:{type:Boolean,default:!0},dropdown:{type:Boolean,default:!1},offset:{type:Number,default:0}},data:function(){return{show:!1,offsetVal:0,overlayId:""}},computed:{drawerStyle:function(){var t={},e=this.offsetVal,o=this.from,n=this.offset||e;switch(o){case"top":t.top="".concat(n,"px");break;case"bottom":t.bottom="".concat(n,"px");break;case"left":t.left="".concat(n,"px");break;case"right":t.right="".concat(n,"px")}return t},wrapStyle:function(){var t={},e=this.from,o=this.strict;if(~["top","bottom"].indexOf(e)){if(t.width="100%",t.left=0,"top"===e?t.top=0:t.bottom=0,o)return t;t.height=this.size}else{if(t.height="100%",t.bottom=0,"left"===e?t.left=0:t.right=0,o)return t;t.width=this.size}return t}},watch:{value:function(t){this.dropdown&&t?this.calcParentRect():(this.toggle(t),this.show=t)},show:function(t){this.toggle(t),this.$emit("input",t)}},mounted:function(){this.show=this.value},methods:{calcParentRect:function(){if(this.offset)return this.toggle(!0),void(this.show=!0);var t=this.$el.parentNode.getBoundingClientRect();switch(this.from){case"top":this.offsetVal=t.top+t.height;break;case"bottom":this.offsetVal=document.documentElement.clientHeight-t.top;break;case"left":this.offsetVal=t.left+t.width;break;case"right":this.offsetVal=document.documentElement.clientWidth-t.left}this.toggle(!0),this.show=!0},toggle:function(t){var e=this;this.$nextTick((function(){if(t){if(e.overlayId)return;e.overlayId=r.default.show({el:e.$refs.wrap,show:e.mask,lock:e.lock,style:e.drawerStyle,unlock:e.$refs.wrap,click:function(){e.show=!1}})}else r.default.hide(e.overlayId),e.overlayId=""}))}}},s=o(0),a=Object(s.a)(i,n,[],!1,null,null,null);a.options.__file="src/components/drawer/drawer.vue";e.a=a.exports},19:function(t,e,o){},24:function(t,e,o){"use strict";o.r(e);var n=o(13);e.default=n.a},4:function(t,e,o){"use strict";o.r(e);o(9);var n=function(){return"undefined"==typeof window},r=function(t){return document.querySelector(t)},i=function(t){t=t||navigator.userAgent;var e=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!e&&/(iPhone\sOS)\s([\d_]+)/.test(t)||e,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}};var s=0,a=0,c=0,l=null,u=!1,d=[],f=function(t){if(n())return!1;if(!t)throw new Error("options must be provided");var e=!1,o={get passive(){e=!0}},r=function(){};window.addEventListener("__TUA_BSL_TEST_PASSIVE__",r,o),window.removeEventListener("__TUA_BSL_TEST_PASSIVE__",r,o);var i=t.capture;return e?t:void 0!==i&&i}({passive:!1}),h=function(t){t.cancelable&&t.preventDefault()},p=function(t){var e,o,p,v,y;n()||(i().ios?(t&&-1===d.indexOf(t)&&(t.ontouchstart=function(t){a=t.targetTouches[0].clientY,c=t.targetTouches[0].clientX},t.ontouchmove=function(e){1===e.targetTouches.length&&function(t,e){if(e){var o=e.scrollTop,n=e.scrollLeft,r=e.scrollWidth,i=e.scrollHeight,s=e.clientWidth,l=e.clientHeight,u=t.targetTouches[0].clientX-c,d=t.targetTouches[0].clientY-a,f=Math.abs(d)>Math.abs(u);if(f&&(d>0&&0===o||d<0&&o+l+1>=i)||!f&&(u>0&&0===n||u<0&&n+s+1>=r))return h(t)}t.stopPropagation()}(e,t)},d.push(t)),u||(document.addEventListener("touchmove",h,f),u=!0)):s<=0&&(l=i().android?(e=r("html"),o=r("body"),p=e.scrollTop||o.scrollTop,v=Object.assign({},e.style),y=Object.assign({},o.style),e.style.height="100%",e.style.overflow="hidden",o.style.top="-".concat(p,"px"),o.style.width="100%",o.style.height="auto",o.style.position="fixed",o.style.overflow="hidden",function(){e.style.height=v.height||"",e.style.overflow=v.overflow||"",["top","width","height","overflow","position"].forEach((function(t){o.style[t]=y[t]||""})),window.scrollTo(0,p)}):function(){var t=r("body"),e=Object.assign({},t.style),o=window.innerWidth-document.body.clientWidth;return t.style.overflow="hidden",t.style.boxSizing="border-box",t.style.paddingRight="".concat(o,"px"),function(){["overflow","boxSizing","paddingRight"].forEach((function(o){t.style[o]=e[o]||""}))}}()),s+=1)};e.default={show:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e="v-overlay-".concat(Math.random().toString(36).substring(3,6)),o=document.createElement("div"),n=void 0===t.md?/android/.test(window.navigator.userAgent.toLocaleLowerCase()):t.md;if(o.id=e,o.classList.add("v-overlay",n?"v-overlay--md":"v-overlay--ios"),t.click&&o.addEventListener("click",(function(){t.click()})),t.zIndex&&(o.style.zIndex=t.zIndex),!1!==t.lock&&(t.unlock?p(t.unlock):p()),t.style){var r="";Object.keys(t.style).forEach((function(e){r+="".concat(e,":").concat(t.style[e],";")})),o.setAttribute("style",r)}return t.el?t.el.parentNode.insertBefore(o,t.el):document.body.appendChild(o),!1===t.show?e:(setTimeout((function(){o.classList.add("v-overlay--show")}),0),e)},hide:function(t){var e=t?document.getElementById(t):document.querySelector(".v-overlay");e&&(e.classList.remove("v-overlay--show"),function(t){if(!(n()||(s-=1)>0))if(i().ios||"function"!=typeof l){if(t){var e=d.indexOf(t);-1!==e&&(t.ontouchmove=null,t.ontouchstart=null,d.splice(e,1))}u&&(document.removeEventListener("touchmove",h,f),u=!1)}else l()}(),setTimeout((function(){e&&e.parentNode&&e.parentNode.removeChild(e)}),200))}}},9:function(t,e,o){}})}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function o(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=25)}({0:function(t,e,o){"use strict";function n(t,e,o,n,r,i,s,a){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=o,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=c):r&&(c=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:t,options:l}}o.d(e,"a",(function(){return n}))},13:function(t,e,o){"use strict";var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"v-drawer",class:["v-drawer--"+t.from,{"v-drawer--offset":!t.offset&&!t.offsetVal}],style:t.drawerStyle},[o("transition",{attrs:{name:"v-drawer--transition"}},[t.show?o("div",{ref:"wrap",staticClass:"v-drawer__wrap",style:t.wrapStyle,on:{touchstart:function(t){t.stopPropagation()},touchmove:function(t){t.stopPropagation()},touchend:function(t){t.stopPropagation()}}},[t.count?t._l(t.count,(function(e,n){return o("div",{key:e,staticClass:"v-drawer__item",class:{strict:t.strict}},[t._t(""+n)],2)})):t._t("default"),t._v(" "),t.cancel?[o("div",{staticClass:"v-drawer__line"}),t._v(" "),o("div",{staticClass:"v-drawer__footer",domProps:{textContent:t._s(t.cancel)},on:{click:function(e){t.show=!1}}})]:t._e()],2):t._e()])],1)};n._withStripped=!0;o(20);var r=o(4),i={name:"VDrawer",props:{value:{type:Boolean,required:!0},count:{type:Number,default:0,validator:function(t){return t>=0}},strict:{type:Boolean,default:!1},cancel:{type:String,default:""},from:{type:String,default:"bottom",validator:function(t){return~["left","right","top","bottom"].indexOf(t)}},size:{type:String,default:"60%"},mask:{type:Boolean,default:!0},lock:{type:Boolean,default:!0},dropdown:{type:Boolean,default:!1},offset:{type:Number,default:0}},data:function(){return{show:!1,offsetVal:0,overlayId:""}},computed:{drawerStyle:function(){var t={},e=this.offsetVal,o=this.from,n=this.offset||e;switch(o){case"top":t.top="".concat(n,"px");break;case"bottom":t.bottom="".concat(n,"px");break;case"left":t.left="".concat(n,"px");break;case"right":t.right="".concat(n,"px")}return t},wrapStyle:function(){var t={},e=this.from,o=this.strict;if(~["top","bottom"].indexOf(e)){if(t.width="100%",t.left=0,"top"===e?t.top=0:t.bottom=0,o)return t;t.height=this.size}else{if(t.height="100%",t.bottom=0,"left"===e?t.left=0:t.right=0,o)return t;t.width=this.size}return t}},watch:{value:function(t){this.dropdown&&t?this.calcParentRect():(this.toggle(t),this.show=t)},show:function(t){this.toggle(t),this.$emit("input",t)}},mounted:function(){this.show=this.value},methods:{calcParentRect:function(){if(this.offset)return this.toggle(!0),void(this.show=!0);var t=this.$el.parentNode.getBoundingClientRect();switch(this.from){case"top":this.offsetVal=t.top+t.height;break;case"bottom":this.offsetVal=document.documentElement.clientHeight-t.top;break;case"left":this.offsetVal=t.left+t.width;break;case"right":this.offsetVal=document.documentElement.clientWidth-t.left}this.toggle(!0),this.show=!0},toggle:function(t){var e=this;this.$nextTick((function(){if(t){if(e.overlayId)return;e.overlayId=r.default.show({el:e.$refs.wrap,show:e.mask,lock:e.lock,style:e.drawerStyle,unlock:e.$refs.wrap,click:function(){e.show=!1}})}else r.default.hide(e.overlayId),e.overlayId=""}))}}},s=o(0),a=Object(s.a)(i,n,[],!1,null,null,null);a.options.__file="src/components/drawer/drawer.vue";e.a=a.exports},20:function(t,e,o){},25:function(t,e,o){"use strict";o.r(e);var n=o(13);e.default=n.a},4:function(t,e,o){"use strict";o.r(e);o(9);var n=function(){return"undefined"==typeof window},r=function(t){return document.querySelector(t)},i=function(t){t=t||navigator.userAgent;var e=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!e&&/(iPhone\sOS)\s([\d_]+)/.test(t)||e,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}};var s=0,a=0,c=0,l=null,u=!1,d=[],f=function(t){if(n())return!1;if(!t)throw new Error("options must be provided");var e=!1,o={get passive(){e=!0}},r=function(){};window.addEventListener("__TUA_BSL_TEST_PASSIVE__",r,o),window.removeEventListener("__TUA_BSL_TEST_PASSIVE__",r,o);var i=t.capture;return e?t:void 0!==i&&i}({passive:!1}),h=function(t){t.cancelable&&t.preventDefault()},p=function(t){var e,o,p,v,y;n()||(i().ios?(t&&-1===d.indexOf(t)&&(t.ontouchstart=function(t){a=t.targetTouches[0].clientY,c=t.targetTouches[0].clientX},t.ontouchmove=function(e){1===e.targetTouches.length&&function(t,e){if(e){var o=e.scrollTop,n=e.scrollLeft,r=e.scrollWidth,i=e.scrollHeight,s=e.clientWidth,l=e.clientHeight,u=t.targetTouches[0].clientX-c,d=t.targetTouches[0].clientY-a,f=Math.abs(d)>Math.abs(u);if(f&&(d>0&&0===o||d<0&&o+l+1>=i)||!f&&(u>0&&0===n||u<0&&n+s+1>=r))return h(t)}t.stopPropagation()}(e,t)},d.push(t)),u||(document.addEventListener("touchmove",h,f),u=!0)):s<=0&&(l=i().android?(e=r("html"),o=r("body"),p=e.scrollTop||o.scrollTop,v=Object.assign({},e.style),y=Object.assign({},o.style),e.style.height="100%",e.style.overflow="hidden",o.style.top="-".concat(p,"px"),o.style.width="100%",o.style.height="auto",o.style.position="fixed",o.style.overflow="hidden",function(){e.style.height=v.height||"",e.style.overflow=v.overflow||"",["top","width","height","overflow","position"].forEach((function(t){o.style[t]=y[t]||""})),window.scrollTo(0,p)}):function(){var t=r("body"),e=Object.assign({},t.style),o=window.innerWidth-document.body.clientWidth;return t.style.overflow="hidden",t.style.boxSizing="border-box",t.style.paddingRight="".concat(o,"px"),function(){["overflow","boxSizing","paddingRight"].forEach((function(o){t.style[o]=e[o]||""}))}}()),s+=1)};e.default={show:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e="v-overlay-".concat(Math.random().toString(36).substring(3,6)),o=document.createElement("div"),n=void 0===t.md?/android/.test(window.navigator.userAgent.toLocaleLowerCase()):t.md;if(o.id=e,o.classList.add("v-overlay",n?"v-overlay--md":"v-overlay--ios"),t.click&&o.addEventListener("click",(function(){t.click()})),t.zIndex&&(o.style.zIndex=t.zIndex),!1!==t.lock&&(t.unlock?p(t.unlock):p()),t.style){var r="";Object.keys(t.style).forEach((function(e){r+="".concat(e,":").concat(t.style[e],";")})),o.setAttribute("style",r)}return t.el?t.el.parentNode.insertBefore(o,t.el):document.body.appendChild(o),!1===t.show?e:(setTimeout((function(){o.classList.add("v-overlay--show")}),0),e)},hide:function(t){var e=t?document.getElementById(t):document.querySelector(".v-overlay");e&&(e.classList.remove("v-overlay--show"),function(t){if(!(n()||(s-=1)>0))if(i().ios||"function"!=typeof l){if(t){var e=d.indexOf(t);-1!==e&&(t.ontouchmove=null,t.ontouchstart=null,d.splice(e,1))}u&&(document.removeEventListener("touchmove",h,f),u=!1)}else l()}(),setTimeout((function(){e&&e.parentNode&&e.parentNode.removeChild(e)}),200))}}},9:function(t,e,o){}})}));

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@calibur/sakura"]=t():e["@calibur/sakura"]=t()}(this,(function(){return function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=36)}({0:function(e,t,r){"use strict";function o(e,t,r,o,n,i,s,a){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=r,u._compiled=!0),o&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),s?(c=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__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=c):n&&(c=a?function(){n.call(this,this.$root.$options.shadowRoot)}:n),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:u}}r.d(t,"a",(function(){return o}))},36:function(e,t,r){"use strict";r.r(t);var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"v-field"},[r("div",{staticClass:"v-field__before",class:{"v-field__before--line":e.beforeLine,"v-field__before--has":e.hasBefore}},[e._t("before")],2),e._v(" "),r("div",{staticClass:"v-field__main"},[e.showClose&&e.score?r("div",{staticClass:"v-field__cancel",on:{click:e.clear}},[r("i",{staticClass:"bili-font ic_input_close"})]):e._e(),e._v(" "),r("div",{staticClass:"v-field__input",class:{"v-field__input--error":e.showError,"v-field__input--close":e.showClose}},["checkbox"===e.inputAttr.type&&e.isInput?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.score,expression:"score"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.score)?e._i(e.score,null)>-1:e.score},on:{change:function(t){var r=e.score,o=t.target,n=!!o.checked;if(Array.isArray(r)){var i=e._i(r,null);o.checked?i<0&&(e.score=r.concat([null])):i>-1&&(e.score=r.slice(0,i).concat(r.slice(i+1)))}else e.score=n}}},"input",e.inputAttr,!1)):"radio"===e.inputAttr.type&&e.isInput?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.score,expression:"score"}],attrs:{type:"radio"},domProps:{checked:e._q(e.score,null)},on:{change:function(t){e.score=null}}},"input",e.inputAttr,!1)):e.isInput?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.score,expression:"score"}],attrs:{type:e.inputAttr.type},domProps:{value:e.score},on:{input:function(t){t.target.composing||(e.score=t.target.value)}}},"input",e.inputAttr,!1)):r("div",{staticClass:"v-field__textarea"},[e.isAutoSize?r("div",{class:{"v-field__textarea--auto":e.isAutoSize}},[e.isAutoSize?r("pre",{style:e.preShimStyle,domProps:{textContent:e._s(e.score)}}):e._e(),e._v(" "),r("textarea",e._b({directives:[{name:"model",rawName:"v-model",value:e.score,expression:"score"}],domProps:{value:e.score},on:{input:function(t){t.target.composing||(e.score=t.target.value)}}},"textarea",e.inputAttr,!1))]):r("textarea",e._b({directives:[{name:"model",rawName:"v-model",value:e.score,expression:"score"}],attrs:{rows:e.minRow},domProps:{value:e.score},on:{input:function(t){t.target.composing||(e.score=t.target.value)}}},"textarea",e.inputAttr,!1)),e._v(" "),e.counter?r("div",{staticClass:"v-field__counter",domProps:{textContent:e._s(e.maxLen?e.score.length+"/"+e.maxLen:e.score.length)}}):e._e()])])]),e._v(" "),r("div",{staticClass:"v-field__after",class:{"v-field__after--line":e.afterLine,"v-field__after--has":e.hasAfter}},[e._t("after")],2)])};o._withStripped=!0;r(51);function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s={name:"VField",props:{value:{type:String,required:!0},attr:{type:Object,default:function(){return{type:"text"}}},minRow:{type:Number,default:1},maxRow:{type:Number,default:1},maxLen:{type:Number,default:0},placeholder:{type:String,default:"请输入"},close:{type:Boolean,default:!0},counter:{type:Boolean,default:!1},beforeLine:{type:Boolean,default:!1},afterLine:{type:Boolean,default:!1},error:{type:Number,default:0}},data:function(){return{score:this.value,showError:!!this.error}},computed:{hasBefore:function(){return!!this.$slots.before},hasAfter:function(){return!!this.$slots.after},showClose:function(){return this.close&&this.isInput},inputAttr:function(){var e=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({placeholder:this.placeholder},this.attr);return this.maxLen&&(e.maxLength=this.maxLen),e},isInput:function(){return 1===this.minRow&&1===this.maxRow},isAutoSize:function(){return this.maxRow>this.minRow||0===this.maxRow},preShimStyle:function(){var e={};return this.maxRow&&(e["-webkit-line-clamp"]=this.maxRow),this.minRow>1&&(e["min-height"]="".concat(20*this.minRow,"px")),e}},watch:{value:function(e){this.showError=!1,this.score=e},score:function(e){this.showError=!1,this.$emit("input",e.trim())},error:function(e){this.showError=!!e}},methods:{clear:function(){this.score=""}}},a=r(0),c=Object(a.a)(s,o,[],!1,null,null,null);c.options.__file="src/components/field/field.vue";var u=c.exports;t.default=u},51:function(e,t,r){}})}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@calibur/sakura"]=t():e["@calibur/sakura"]=t()}(this,(function(){return function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=37)}({0:function(e,t,r){"use strict";function o(e,t,r,o,n,i,s,a){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=r,u._compiled=!0),o&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),s?(c=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__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=c):n&&(c=a?function(){n.call(this,this.$root.$options.shadowRoot)}:n),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:u}}r.d(t,"a",(function(){return o}))},37:function(e,t,r){"use strict";r.r(t);var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"v-field"},[r("div",{staticClass:"v-field__before",class:{"v-field__before--line":e.beforeLine,"v-field__before--has":e.hasBefore}},[e._t("before")],2),e._v(" "),r("div",{staticClass:"v-field__main"},[e.showClose&&e.score?r("div",{staticClass:"v-field__cancel",on:{click:e.clear}},[r("i",{staticClass:"bili-font ic_input_close"})]):e._e(),e._v(" "),r("div",{staticClass:"v-field__input",class:{"v-field__input--error":e.showError,"v-field__input--close":e.showClose}},["checkbox"===e.inputAttr.type&&e.isInput?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.score,expression:"score"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.score)?e._i(e.score,null)>-1:e.score},on:{change:function(t){var r=e.score,o=t.target,n=!!o.checked;if(Array.isArray(r)){var i=e._i(r,null);o.checked?i<0&&(e.score=r.concat([null])):i>-1&&(e.score=r.slice(0,i).concat(r.slice(i+1)))}else e.score=n}}},"input",e.inputAttr,!1)):"radio"===e.inputAttr.type&&e.isInput?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.score,expression:"score"}],attrs:{type:"radio"},domProps:{checked:e._q(e.score,null)},on:{change:function(t){e.score=null}}},"input",e.inputAttr,!1)):e.isInput?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.score,expression:"score"}],attrs:{type:e.inputAttr.type},domProps:{value:e.score},on:{input:function(t){t.target.composing||(e.score=t.target.value)}}},"input",e.inputAttr,!1)):r("div",{staticClass:"v-field__textarea"},[e.isAutoSize?r("div",{class:{"v-field__textarea--auto":e.isAutoSize}},[e.isAutoSize?r("pre",{style:e.preShimStyle,domProps:{textContent:e._s(e.score)}}):e._e(),e._v(" "),r("textarea",e._b({directives:[{name:"model",rawName:"v-model",value:e.score,expression:"score"}],domProps:{value:e.score},on:{input:function(t){t.target.composing||(e.score=t.target.value)}}},"textarea",e.inputAttr,!1))]):r("textarea",e._b({directives:[{name:"model",rawName:"v-model",value:e.score,expression:"score"}],attrs:{rows:e.minRow},domProps:{value:e.score},on:{input:function(t){t.target.composing||(e.score=t.target.value)}}},"textarea",e.inputAttr,!1)),e._v(" "),e.counter?r("div",{staticClass:"v-field__counter",domProps:{textContent:e._s(e.maxLen?e.score.length+"/"+e.maxLen:e.score.length)}}):e._e()])])]),e._v(" "),r("div",{staticClass:"v-field__after",class:{"v-field__after--line":e.afterLine,"v-field__after--has":e.hasAfter}},[e._t("after")],2)])};o._withStripped=!0;r(52);function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s={name:"VField",props:{value:{type:String,required:!0},attr:{type:Object,default:function(){return{type:"text"}}},minRow:{type:Number,default:1},maxRow:{type:Number,default:1},maxLen:{type:Number,default:0},placeholder:{type:String,default:"请输入"},close:{type:Boolean,default:!0},counter:{type:Boolean,default:!1},beforeLine:{type:Boolean,default:!1},afterLine:{type:Boolean,default:!1},error:{type:Number,default:0}},data:function(){return{score:this.value,showError:!!this.error}},computed:{hasBefore:function(){return!!this.$slots.before},hasAfter:function(){return!!this.$slots.after},showClose:function(){return this.close&&this.isInput},inputAttr:function(){var e=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({placeholder:this.placeholder},this.attr);return this.maxLen&&(e.maxLength=this.maxLen),e},isInput:function(){return 1===this.minRow&&1===this.maxRow},isAutoSize:function(){return this.maxRow>this.minRow||0===this.maxRow},preShimStyle:function(){var e={};return this.maxRow&&(e["-webkit-line-clamp"]=this.maxRow),this.minRow>1&&(e["min-height"]="".concat(20*this.minRow,"px")),e}},watch:{value:function(e){this.showError=!1,this.score=e},score:function(e){this.showError=!1,this.$emit("input",e.trim())},error:function(e){this.showError=!!e}},methods:{clear:function(){this.score=""}}},a=r(0),c=Object(a.a)(s,o,[],!1,null,null,null);c.options.__file="src/components/field/field.vue";var u=c.exports;t.default=u},52:function(e,t,r){}})}));

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@calibur/sakura"]=t():e["@calibur/sakura"]=t()}(this,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=45)}({45:function(e,t,r){}})}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@calibur/sakura"]=t():e["@calibur/sakura"]=t()}(this,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=46)}({46:function(e,t,r){}})}));

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=38)}({0:function(t,e,n){"use strict";function r(t,e,n,r,o,a,i,c){var s,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),i?(s=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=s):o&&(s=c?function(){o.call(this,this.$root.$options.shadowRoot)}:o),s)if(u.functional){u._injectStyles=s;var l=u.render;u.render=function(t,e){return s.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,s):[s]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},2:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"f",(function(){return o})),n.d(e,"b",(function(){return c})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return u})),n.d(e,"e",(function(){return l}));var r=function(t,e){if(t){for(var n=t.className,r=(e||"").split(" "),o=0,a=r.length;o<a;o++){var c=r[o];c&&(t.classList?t.classList.add(c):i(t,c)||(n+=" "+c))}t.classList||(t.className=n)}},o=function(t,e){if(t&&e){for(var n=e.split(" "),r=" "+t.className+" ",o=0,c=n.length;o<c;o++){var s=n[o];s&&(t.classList?t.classList.remove(s):i(t,s)&&(r=r.replace(" "+s+" "," ")))}t.classList||(t.className=a(r))}},a=function(t){return(t||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},i=function(t,e){if(!t||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):(" "+t.className+" ").includes(" "+e+" ")},c=function(t,e){var n=-1;return t.map((function(t){return t.route})).forEach((function(t,r){e.startsWith(t)&&(n=r)})),n},s=function(t,e){var n=e?"scrollTop":"scrollLeft",r=t[e?"pageYOffset":"pageXOffset"];return"number"!=typeof r&&(r=window.document.documentElement[n]),r},u=function(t){var e=t.getBoundingClientRect(),n=s(window,!0),r=s(window),o=window.document.body,a=o.clientTop||0,i=o.clientLeft||0;return{top:e.top+n-a,left:e.left+r-i}},l=function(t){var e=t;if(!e)return null;for(;e&&"HTML"!==e.tagName&&"BOYD"!==e.tagName&&1===e.nodeType;){var n=window.getComputedStyle(e).overflowY;if("scroll"===n||"auto"===n)return"HTML"===e.tagName||"BODY"===e.tagName?document:e;e=e.parentNode}return document}},38:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"v-navbar__outer"},[n("div",{staticClass:"v-navbar",class:{"v-navbar--fixed":t.isFixed,"v-navbar--border":t.showBorder,"v-navbar--bg":t.backgroundHeight}},[n("div",{staticClass:"v-navbar__shim"}),t._v(" "),n("div",{staticClass:"v-navbar__body",style:t.bodyStyle},[n("div",{staticClass:"v-navbar__wrap"},[n("div",{staticClass:"v-navbar__wrap__title",domProps:{textContent:t._s(t.title)}}),t._v(" "),n("div",{staticClass:"v-navbar__wrap__before"},[t.showBack?n("i",{staticClass:"bili-font ic_into v-navbar__wrap__before__back",on:{click:t.back}}):t._e(),t._v(" "),t._t("before")],2),t._v(" "),n("div",{staticClass:"v-navbar__wrap__after"},[t._t("after")],2)])])]),t._v(" "),t.backgroundHeight?n("div",{staticClass:"v-navbar__background",style:{backgroundColor:t.backgroundColor}},[n("div",{staticClass:"v-navbar__background__wrap",style:t.backgroundStyle},[t._t("background")],2)]):t._e()])};r._withStripped=!0;var o=n(6),a=n(2),i=(n(57),{name:"VNavbar",props:{color:{type:String,default:"#fff"},backgroundColor:{type:String,default:"#FB7299"},backgroundHeight:{type:Number,default:0,validator:function(t){return t>=0}},title:{type:String,default:""},showBack:{type:Boolean,default:!0},showBorder:{type:Boolean,default:!1}},data:function(){return{scrollHgt:0}},computed:{bodyStyle:function(){var t={backgroundColor:this.backgroundColor,color:this.color};return this.backgroundHeight?this.isFixed?t:{backgroundColor:"transparent",color:"#fff"}:t},backgroundStyle:function(){var t=this.scrollHgt,e=this.backgroundHeight,n=1;return t>100?n=.2:t>20&&(n=(120-t)/100),{opacity:n,height:"".concat(e,"px")}},isFixed:function(){return!this.backgroundHeight||this.scrollHgt+90>=this.backgroundHeight}},mounted:function(){this.initScroll()},methods:{back:function(){this.$emit("back")},initScroll:function(){var t=this;this.backgroundHeight&&Object(a.e)(this.$el).addEventListener("scroll",Object(o.b)(100,(function(e){t.scrollHgt=e.target.scrollTop})))}}}),c=n(0),s=Object(c.a)(i,r,[],!1,null,null,null);s.options.__file="src/components/navbar/navbar.vue";var u=s.exports;e.default=u},57:function(t,e,n){},6:function(t,e,n){"use strict";function r(t,e,n,r){var o,a=!1,i=0;function c(){o&&clearTimeout(o)}function s(){var s=this,u=Date.now()-i,l=arguments;function f(){i=Date.now(),n.apply(s,l)}a||(r&&!o&&f(),c(),void 0===r&&u>t?f():!0!==e&&(o=setTimeout(r?function(){o=void 0}:f,void 0===r?t-u:t)))}return"boolean"!=typeof e&&(r=n,n=e,e=void 0),s.cancel=function(){c(),a=!0},s}function o(t,e,n){return void 0===n?r(t,e,!1):r(t,n,!1!==e)}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}))}})}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=39)}({0:function(t,e,n){"use strict";function r(t,e,n,r,o,a,i,c){var s,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),i?(s=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=s):o&&(s=c?function(){o.call(this,this.$root.$options.shadowRoot)}:o),s)if(u.functional){u._injectStyles=s;var l=u.render;u.render=function(t,e){return s.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,s):[s]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},2:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"f",(function(){return o})),n.d(e,"b",(function(){return c})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return u})),n.d(e,"e",(function(){return l}));var r=function(t,e){if(t){for(var n=t.className,r=(e||"").split(" "),o=0,a=r.length;o<a;o++){var c=r[o];c&&(t.classList?t.classList.add(c):i(t,c)||(n+=" "+c))}t.classList||(t.className=n)}},o=function(t,e){if(t&&e){for(var n=e.split(" "),r=" "+t.className+" ",o=0,c=n.length;o<c;o++){var s=n[o];s&&(t.classList?t.classList.remove(s):i(t,s)&&(r=r.replace(" "+s+" "," ")))}t.classList||(t.className=a(r))}},a=function(t){return(t||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},i=function(t,e){if(!t||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):(" "+t.className+" ").includes(" "+e+" ")},c=function(t,e){var n=-1;return t.map((function(t){return t.route})).forEach((function(t,r){e.startsWith(t)&&(n=r)})),n},s=function(t,e){var n=e?"scrollTop":"scrollLeft",r=t[e?"pageYOffset":"pageXOffset"];return"number"!=typeof r&&(r=window.document.documentElement[n]),r},u=function(t){var e=t.getBoundingClientRect(),n=s(window,!0),r=s(window),o=window.document.body,a=o.clientTop||0,i=o.clientLeft||0;return{top:e.top+n-a,left:e.left+r-i}},l=function(t){var e=t;if(!e)return null;for(;e&&"HTML"!==e.tagName&&"BOYD"!==e.tagName&&1===e.nodeType;){var n=window.getComputedStyle(e).overflowY;if("scroll"===n||"auto"===n)return"HTML"===e.tagName||"BODY"===e.tagName?document:e;e=e.parentNode}return document}},39:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"v-navbar__outer"},[n("div",{staticClass:"v-navbar",class:{"v-navbar--fixed":t.isFixed,"v-navbar--border":t.showBorder,"v-navbar--bg":t.backgroundHeight}},[n("div",{staticClass:"v-navbar__shim"}),t._v(" "),n("div",{staticClass:"v-navbar__body",style:t.bodyStyle},[n("div",{staticClass:"v-navbar__wrap"},[n("div",{staticClass:"v-navbar__wrap__title",domProps:{textContent:t._s(t.title)}}),t._v(" "),n("div",{staticClass:"v-navbar__wrap__before"},[t.showBack?n("i",{staticClass:"bili-font ic_into v-navbar__wrap__before__back",on:{click:t.back}}):t._e(),t._v(" "),t._t("before")],2),t._v(" "),n("div",{staticClass:"v-navbar__wrap__after"},[t._t("after")],2)])])]),t._v(" "),t.backgroundHeight?n("div",{staticClass:"v-navbar__background",style:{backgroundColor:t.backgroundColor}},[n("div",{staticClass:"v-navbar__background__wrap",style:t.backgroundStyle},[t._t("background")],2)]):t._e()])};r._withStripped=!0;var o=n(6),a=n(2),i=(n(58),{name:"VNavbar",props:{color:{type:String,default:"#fff"},backgroundColor:{type:String,default:"#FB7299"},backgroundHeight:{type:Number,default:0,validator:function(t){return t>=0}},title:{type:String,default:""},showBack:{type:Boolean,default:!0},showBorder:{type:Boolean,default:!1}},data:function(){return{scrollHgt:0}},computed:{bodyStyle:function(){var t={backgroundColor:this.backgroundColor,color:this.color};return this.backgroundHeight?this.isFixed?t:{backgroundColor:"transparent",color:"#fff"}:t},backgroundStyle:function(){var t=this.scrollHgt,e=this.backgroundHeight,n=1;return t>100?n=.2:t>20&&(n=(120-t)/100),{opacity:n,height:"".concat(e,"px")}},isFixed:function(){return!this.backgroundHeight||this.scrollHgt+90>=this.backgroundHeight}},mounted:function(){this.initScroll()},methods:{back:function(){this.$emit("back")},initScroll:function(){var t=this;this.backgroundHeight&&Object(a.e)(this.$el).addEventListener("scroll",Object(o.b)(100,(function(e){t.scrollHgt=e.target.scrollTop})))}}}),c=n(0),s=Object(c.a)(i,r,[],!1,null,null,null);s.options.__file="src/components/navbar/navbar.vue";var u=s.exports;e.default=u},58:function(t,e,n){},6:function(t,e,n){"use strict";function r(t,e,n,r){var o,a=!1,i=0;function c(){o&&clearTimeout(o)}function s(){var s=this,u=Date.now()-i,l=arguments;function f(){i=Date.now(),n.apply(s,l)}a||(r&&!o&&f(),c(),void 0===r&&u>t?f():!0!==e&&(o=setTimeout(r?function(){o=void 0}:f,void 0===r?t-u:t)))}return"boolean"!=typeof e&&(r=n,n=e,e=void 0),s.cancel=function(){c(),a=!0},s}function o(t,e,n){return void 0===n?r(t,e,!1):r(t,n,!1!==e)}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}))}})}));
/*! For license information please see index.js.LICENSE.txt */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=43)}([function(t,e,n){"use strict";function o(t,e,n,o,i,r,a,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}n.d(e,"a",(function(){return o}))},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var o=function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,n){"use strict";n.r(e);n(9);var o=function(){return"undefined"==typeof window},i=function(t){return document.querySelector(t)},r=function(t){t=t||navigator.userAgent;var e=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!e&&/(iPhone\sOS)\s([\d_]+)/.test(t)||e,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}};var a=0,s=0,l=0,c=null,u=!1,h=[],d=function(t){if(o())return!1;if(!t)throw new Error("options must be provided");var e=!1,n={get passive(){e=!0}},i=function(){};window.addEventListener("__TUA_BSL_TEST_PASSIVE__",i,n),window.removeEventListener("__TUA_BSL_TEST_PASSIVE__",i,n);var r=t.capture;return e?t:void 0!==r&&r}({passive:!1}),f=function(t){t.cancelable&&t.preventDefault()},v=function(t){var e,n,v,p,m;o()||(r().ios?(t&&-1===h.indexOf(t)&&(t.ontouchstart=function(t){s=t.targetTouches[0].clientY,l=t.targetTouches[0].clientX},t.ontouchmove=function(e){1===e.targetTouches.length&&function(t,e){if(e){var n=e.scrollTop,o=e.scrollLeft,i=e.scrollWidth,r=e.scrollHeight,a=e.clientWidth,c=e.clientHeight,u=t.targetTouches[0].clientX-l,h=t.targetTouches[0].clientY-s,d=Math.abs(h)>Math.abs(u);if(d&&(h>0&&0===n||h<0&&n+c+1>=r)||!d&&(u>0&&0===o||u<0&&o+a+1>=i))return f(t)}t.stopPropagation()}(e,t)},h.push(t)),u||(document.addEventListener("touchmove",f,d),u=!0)):a<=0&&(c=r().android?(e=i("html"),n=i("body"),v=e.scrollTop||n.scrollTop,p=Object.assign({},e.style),m=Object.assign({},n.style),e.style.height="100%",e.style.overflow="hidden",n.style.top="-".concat(v,"px"),n.style.width="100%",n.style.height="auto",n.style.position="fixed",n.style.overflow="hidden",function(){e.style.height=p.height||"",e.style.overflow=p.overflow||"",["top","width","height","overflow","position"].forEach((function(t){n.style[t]=m[t]||""})),window.scrollTo(0,v)}):function(){var t=i("body"),e=Object.assign({},t.style),n=window.innerWidth-document.body.clientWidth;return t.style.overflow="hidden",t.style.boxSizing="border-box",t.style.paddingRight="".concat(n,"px"),function(){["overflow","boxSizing","paddingRight"].forEach((function(n){t.style[n]=e[n]||""}))}}()),a+=1)};e.default={show:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e="v-overlay-".concat(Math.random().toString(36).substring(3,6)),n=document.createElement("div"),o=void 0===t.md?/android/.test(window.navigator.userAgent.toLocaleLowerCase()):t.md;if(n.id=e,n.classList.add("v-overlay",o?"v-overlay--md":"v-overlay--ios"),t.click&&n.addEventListener("click",(function(){t.click()})),t.zIndex&&(n.style.zIndex=t.zIndex),!1!==t.lock&&(t.unlock?v(t.unlock):v()),t.style){var i="";Object.keys(t.style).forEach((function(e){i+="".concat(e,":").concat(t.style[e],";")})),n.setAttribute("style",i)}return t.el?t.el.parentNode.insertBefore(n,t.el):document.body.appendChild(n),!1===t.show?e:(setTimeout((function(){n.classList.add("v-overlay--show")}),0),e)},hide:function(t){var e=t?document.getElementById(t):document.querySelector(".v-overlay");e&&(e.classList.remove("v-overlay--show"),function(t){if(!(o()||(a-=1)>0))if(r().ios||"function"!=typeof c){if(t){var e=h.indexOf(t);-1!==e&&(t.ontouchmove=null,t.ontouchstart=null,h.splice(e,1))}u&&(document.removeEventListener("touchmove",f,d),u=!1)}else c()}(),setTimeout((function(){e&&e.parentNode&&e.parentNode.removeChild(e)}),200))}}},,function(t,e,n){"use strict";function o(t,e,n,o){var i,r=!1,a=0;function s(){i&&clearTimeout(i)}function l(){var l=this,c=Date.now()-a,u=arguments;function h(){a=Date.now(),n.apply(l,u)}r||(o&&!i&&h(),s(),void 0===o&&c>t?h():!0!==e&&(i=setTimeout(o?function(){i=void 0}:h,void 0===o?t-c:t)))}return"boolean"!=typeof e&&(o=n,n=e,e=void 0),l.cancel=function(){s(),r=!0},l}function i(t,e,n){return void 0===n?o(t,e,!1):o(t,n,!1!==e)}n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"v-picker",style:{height:t.pickerHeight+"px"}},t._l(t.columnData,(function(e,o){return n("div",{key:o,ref:"column",refInFor:!0,staticClass:"v-picker__column",on:{scroll:function(e){return t.handleScroll(e,o)}}},[n("div",{staticClass:"v-picker__list",style:{height:e.length*t.itemHeight+"px"}},t._l(e,(function(e,i){return n("div",{key:e[t.valueName],staticClass:"v-picker__item",class:[{"is-active":t.columnCount>1?e[t.valueName]===t.selected[o]:e[t.valueName]===t.selected},{"is-disabled":!!e.disabled}],domProps:{textContent:t._s(e[t.labelName])},on:{click:function(n){return t.handleClick(e,o,i)}}})})),0)])})),0)};o._withStripped=!0;n(17);var i=n(6),r=n(3),a=n(8),s=n(10);function l(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var c=function(t,e,n){var o=0;if(!n)return o;for(var i=0;i<t.length;i++)if(t[i][e]===n){o=i;break}return o},u={name:"PickerCore",mixins:[s.a],props:{valueData:{required:!0,type:[String,Number,Array]}},data:function(){var t,e=function t(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=e.map((function(e){return e&&e[n]&&Object(r.a)(e[n])&&e[n].length?t(e[n],n,o+1):o}));return Math.max.apply(Math,l(i))}(this.list,this.childName),n=e>1?new Array(e).fill([]):[this.list],o=this.valueData;return e>1?(t=Object(r.a)(o)&&o.length?o:function t(e,n,o,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return i[a]=e[0][n],e[0][o]&&Object(r.a)(e[0][o])&&e[0][o].length&&t(e[0][o],n,o,i,a+1),i}(this.list,this.valueName,this.childName,new Array(e).fill(""))).length<e&&(t=t.concat(new Array(e-t.length).fill(""))):t=o||this.list[0][this.valueName],{columnCount:e,columnData:n,selected:t,changeIndex:0,initCount:0}},computed:{pickerHeight:function(){return this.itemHeight*this.itemCount},condition:function(){return this.itemCount%2?this.itemHeight:this.itemHeight/2},jumpCount:function(){return(this.itemCount-1)/2|0}},watch:{selected:{handler:function(t){this.refreshColumnData(t),this.$emit("update:valueData",t)},immediate:!0,deep:!0},valueData:function(t){this.selected=t}},mounted:function(){var t=this;this.$nextTick((function(){t.initValue()}))},methods:{initValue:function(){var t=this;if(Object(r.a)(this.selected))this.columnData.forEach((function(e,n){var o=c(t.columnData[n],t.valueName,t.selected[n]);setTimeout((function(){t.autoScrollColumn(t.columnData[n][o],n,o,0)}),20*n)}));else{var e=c(this.columnData[0],this.valueName,this.selected);this.autoScrollColumn(this.columnData[0][e],0,e,0)}},handleScroll:Object(i.b)(100,(function(t,e){var n,o=this,i=this.itemHeight,r=this.jumpCount,a=this.condition,s=t.target.scrollTop,l=this.columnData[e].length,c=l*i-this.pickerHeight;n=s<=0?0:s<=a?Math.ceil(s/(a/(r+1))):s>=c?l-1:s>=c-a?l-1-Math.ceil(r*((c-s)/a)):Math.ceil((s-a)/i+(s-a)/(c-2*a))+r+1;var u=this.columnData[e][n];u&&!u.disabled&&(this.changeIndex=e,this.columnCount>1?this.$set(this.selected,e,u[this.valueName]):this.selected=u[this.valueName],this.$nextTick((function(){o.updateDefSelected()})))})),handleClick:function(t,e,n){t&&t.disabled||(this.updateCurSelected(t,e),this.autoScrollColumn(t,e,n))},autoScrollColumn:function(t,e,n){var o,i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e3,s=this.itemHeight,l=this.condition,c=this.jumpCount,u=this.columnData[e].length,h=u*s-this.pickerHeight;o=n<=0?0:n<=c+1?l/(c+1)*n:n>=u-1?h:n>=u-1-c?h-l/c*(u-1-n)+1:l+(n-(c+1))*(1-1/(u-2-2*c))*s,Object(a.a)(o,this.$refs.column[e],r),this.$nextTick((function(){i.initCount++}))},updateCurSelected:function(t,e){var n=t?t[this.valueName]:"";this.columnCount>1?this.$set(this.selected,e,n):this.selected=n,this.changeIndex=e},updateDefSelected:function(){var t=this.changeIndex,e=this.columnCount,n=this.valueName;if(!(t>=e-1||this.initCount<e)){var o=this.selected[t];-1===this.columnData[t+1].findIndex((function(t){return t[n]===o}))&&this.updateCurSelected(this.columnData[t+1][0],t+1)}},refreshColumnData:function(t){var e=this;if(Object(r.a)(t)){var n=[];t.forEach((function(o,i){i?n.push(function(t,e,n,o){for(var i=[],r=0;r<t.length;r++)if(t[r][n]===e){i=t[r][o]||[];break}return i}(n[i-1],t[i-1],e.valueName,e.childName)):n.push(e.list)})),this.columnData=n}}}},h=n(0),d=Object(h.a)(u,o,[],!1,null,null,null);d.options.__file="src/components/picker/pickerCore.vue";e.a=d.exports},function(t,e,n){"use strict";e.a=function(t,e,n,o){var i=0,r=e||window,a=e?e.scrollTop:window.scrollY,s=t||0,l=n||2e3,c=o||"easeOutSine",u=Math.max(.1,Math.min(Math.abs(a-s)/l,.8)),h={easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInOutQuint:function(t){return(t/=.5)<1?.5*Math.pow(t,5):.5*(Math.pow(t-2,5)+2)}};r.requestAnimFrame||(r.requestAnimFrame=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}).bind(window)),n?function t(){var e=(i+=1/60)/u,n=h[c](e);e<1?(r.requestAnimFrame(t),r.scrollTo(0,a+(s-a)*n)):r.scrollTo(0,s)}():r.scrollTo(0,s)}},function(t,e,n){},function(t,e,n){"use strict";e.a={props:{value:{type:[String,Number,Array],default:function(){return[]}},list:{required:!0,type:Array,default:function(){return[]}},labelName:{type:String,default:"text"},valueName:{type:String,default:"value"},childName:{type:String,default:"children"},itemHeight:{type:Number,default:44},itemCount:{type:Number,default:5}}}},,,function(t,e,n){"use strict";var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"v-drawer",class:["v-drawer--"+t.from,{"v-drawer--offset":!t.offset&&!t.offsetVal}],style:t.drawerStyle},[n("transition",{attrs:{name:"v-drawer--transition"}},[t.show?n("div",{ref:"wrap",staticClass:"v-drawer__wrap",style:t.wrapStyle,on:{touchstart:function(t){t.stopPropagation()},touchmove:function(t){t.stopPropagation()},touchend:function(t){t.stopPropagation()}}},[t.count?t._l(t.count,(function(e,o){return n("div",{key:e,staticClass:"v-drawer__item",class:{strict:t.strict}},[t._t(""+o)],2)})):t._t("default"),t._v(" "),t.cancel?[n("div",{staticClass:"v-drawer__line"}),t._v(" "),n("div",{staticClass:"v-drawer__footer",domProps:{textContent:t._s(t.cancel)},on:{click:function(e){t.show=!1}}})]:t._e()],2):t._e()])],1)};o._withStripped=!0;n(19);var i=n(4),r={name:"VDrawer",props:{value:{type:Boolean,required:!0},count:{type:Number,default:0,validator:function(t){return t>=0}},strict:{type:Boolean,default:!1},cancel:{type:String,default:""},from:{type:String,default:"bottom",validator:function(t){return~["left","right","top","bottom"].indexOf(t)}},size:{type:String,default:"60%"},mask:{type:Boolean,default:!0},lock:{type:Boolean,default:!0},dropdown:{type:Boolean,default:!1},offset:{type:Number,default:0}},data:function(){return{show:!1,offsetVal:0,overlayId:""}},computed:{drawerStyle:function(){var t={},e=this.offsetVal,n=this.from,o=this.offset||e;switch(n){case"top":t.top="".concat(o,"px");break;case"bottom":t.bottom="".concat(o,"px");break;case"left":t.left="".concat(o,"px");break;case"right":t.right="".concat(o,"px")}return t},wrapStyle:function(){var t={},e=this.from,n=this.strict;if(~["top","bottom"].indexOf(e)){if(t.width="100%",t.left=0,"top"===e?t.top=0:t.bottom=0,n)return t;t.height=this.size}else{if(t.height="100%",t.bottom=0,"left"===e?t.left=0:t.right=0,n)return t;t.width=this.size}return t}},watch:{value:function(t){this.dropdown&&t?this.calcParentRect():(this.toggle(t),this.show=t)},show:function(t){this.toggle(t),this.$emit("input",t)}},mounted:function(){this.show=this.value},methods:{calcParentRect:function(){if(this.offset)return this.toggle(!0),void(this.show=!0);var t=this.$el.parentNode.getBoundingClientRect();switch(this.from){case"top":this.offsetVal=t.top+t.height;break;case"bottom":this.offsetVal=document.documentElement.clientHeight-t.top;break;case"left":this.offsetVal=t.left+t.width;break;case"right":this.offsetVal=document.documentElement.clientWidth-t.left}this.toggle(!0),this.show=!0},toggle:function(t){var e=this;this.$nextTick((function(){if(t){if(e.overlayId)return;e.overlayId=i.default.show({el:e.$refs.wrap,show:e.mask,lock:e.lock,style:e.drawerStyle,unlock:e.$refs.wrap,click:function(){e.show=!1}})}else i.default.hide(e.overlayId),e.overlayId=""}))}}},a=n(0),s=Object(a.a)(r,o,[],!1,null,null,null);s.options.__file="src/components/drawer/drawer.vue";e.a=s.exports},,,function(t,e,n){"use strict";n(20);var o=n(6),i=n(8),r=function(){var t={open:function(){},close:function(){}};if("undefined"==typeof window)return t;var e=document.createElement("div");document.documentElement.appendChild(e),e.style.WebkitOverflowScrolling="touch";var n="getComputedStyle"in window&&"touch"===window.getComputedStyle(e)["-webkit-overflow-scrolling"];if(document.documentElement.removeChild(e),!n)return t;var o=0,i=!1;try{var r=Object.defineProperty({},"passive",{get:function(){return i=!0,null}});window.addEventListener("test",null,r)}catch(c){}var a=window.innerWidth/window.document.documentElement.clientWidth,s=function(t){if(1===a&&!(t.touches.length>1)){for(var e=t.target;e!==document.body&&e!==document;){var n=window.getComputedStyle(e);if(!n)break;if("INPUT"===e.nodeName&&"range"===e.getAttribute("type"))return;var i=n.getPropertyValue("overflow-y"),r=n.getPropertyValue("overflow-x");if(("auto"===r||"scroll"===r)&&"hidden"===i)return;var s=n.getPropertyValue("-webkit-overflow-scrolling"),l=parseInt(n.getPropertyValue("height"),10),c="touch"===s&&("auto"===i||"scroll"===i),u=e.scrollHeight>e.offsetHeight;if(c&&u){var h=t.touches?t.touches[0].screenY:t.screenY,d=o<=h&&0===e.scrollTop,f=o>=h&&e.scrollHeight-e.scrollTop===l;return void((d||f)&&t.preventDefault())}e=e.parentNode}t.preventDefault()}},l=function(t){o=t.touches?t.touches[0].screenY:t.screenY};return{open:function(){window.__ios_scroll_fixed__||(window.addEventListener("touchstart",l,!!i&&{passive:!1}),window.addEventListener("touchmove",s,!!i&&{passive:!1}),window.__ios_scroll_fixed__=!0)},close:function(){window.removeEventListener("touchstart",l,!1),window.removeEventListener("touchmove",s,!1),window.__ios_scroll_fixed__=!1}}}(),a={name:"VScroller",props:{preloadTop:{type:Number,default:50},preloadBottom:{type:Number,default:50},eventStep:{type:Number,default:1},throttle:{type:Number,default:-1},tag:{type:String,default:"div"},height:{type:String,default:"100%"}},data:function(){return{lastScrollTop:0,lastTouchY:0,refreshing:!1}},beforeMount:function(){r.open()},beforeDestroy:function(){r.close()},methods:{scrollY:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3;this.$el&&Object(i.a)(t,this.$el,e)},_handleStart:function(t){this.lastTouchY=t.touches[0].clientY},_handleMove:function(t){var e=t.touches[0].clientY-this.lastTouchY;if(e>0&&this.lastScrollTop<=0){if(!this.refreshing&&e<this.eventStep)return;this.refreshing=!0,this.$emit("refresh",{event:t,offset:e})}},_handleEnd:function(){this.refreshing&&(this.$emit("refresh-end"),this.refreshing=!1)},_handleScroll:function(t){var e=t.target.scrollTop,n=this.lastScrollTop-e,o=n>0;if(o)e>=0&&e<=this.preloadTop&&n>=this.eventStep&&this.$emit("top");else{var i=this.$el;i.scrollHeight-i.clientHeight-e<=this.preloadBottom&&this.$emit("bottom")}this.lastScrollTop=e,this.$emit("scroll",{offsetTop:e,isUp:o})}},render:function(t){var e={},n=this.throttle;return n>=0&&(e["&scroll"]=n>0?Object(o.b)(n,this._handleScroll):this._handleScroll,e["&touchstart"]=this._handleStart,e["&touchmove"]=this._handleMove,e["&touchend"]=this._handleEnd),t(this.tag,{style:{height:this.height,"overflow-y":"auto","-webkit-overflow-scrolling":"touch"},class:"v-scroller",on:e},this.$slots.default)}},s=n(0),l=Object(s.a)(a,void 0,void 0,!1,null,null,null);l.options.__file="src/components/scroller/scroller.vue";e.a=l.exports},function(t,e,n){},,function(t,e,n){},function(t,e,n){},,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("VDrawer",{attrs:{from:"bottom",size:t.itemHeight*t.itemCount+(t.hasHeader?t.headerHeight:0)+"px",lock:!1},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[n("VScroller",[n("div",{directives:[{name:"show",rawName:"v-show",value:t.hasHeader,expression:"hasHeader"}],staticClass:"v-picker__header",style:{height:t.headerHeight+"px"}},[t._t("header")],2),t._v(" "),n("PickerCore",{attrs:{list:t.list,"value-data":t.valueData,"label-name":t.labelName,"value-name":t.valueName,"child-name":t.childName,"item-height":t.itemHeight,"item-count":t.itemCount},on:{"update:valueData":function(e){t.valueData=e},"update:value-data":function(e){t.valueData=e}}})],1)],1)};o._withStripped=!0;n(17);var i=n(13),r=n(16),a=n(7),s=n(10),l={name:"VPicker",components:{VDrawer:i.a,VScroller:r.a,PickerCore:a.a},mixins:[s.a],props:{show:{type:Boolean,default:!1},headerHeight:{type:Number,default:44}},data:function(){return{visible:this.show,valueData:this.value}},computed:{hasHeader:function(){return this.$slots.header}},watch:{show:function(t){this.visible=t},value:function(t){this.valueData=t},visible:function(t){this.$emit("update:show",t)},valueData:function(t){this.$emit("input",t)}}},c=n(0),u=Object(c.a)(l,o,[],!1,null,null,null);u.options.__file="src/components/picker/picker.vue";var h=u.exports;e.default=h}])}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=44)}([function(t,e,n){"use strict";function o(t,e,n,o,i,r,a,l){var s,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),a?(s=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=s):i&&(s=l?function(){i.call(this,this.$root.$options.shadowRoot)}:i),s)if(c.functional){c._injectStyles=s;var u=c.render;c.render=function(t,e){return s.call(e),u(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,s):[s]}return{exports:t,options:c}}n.d(e,"a",(function(){return o}))},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var o=function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,n){"use strict";n.r(e);n(9);var o=function(){return"undefined"==typeof window},i=function(t){return document.querySelector(t)},r=function(t){t=t||navigator.userAgent;var e=/(iPad).*OS\s([\d_]+)/.test(t);return{ios:!e&&/(iPhone\sOS)\s([\d_]+)/.test(t)||e,android:/(Android);?[\s/]+([\d.]+)?/.test(t)}};var a=0,l=0,s=0,c=null,u=!1,h=[],d=function(t){if(o())return!1;if(!t)throw new Error("options must be provided");var e=!1,n={get passive(){e=!0}},i=function(){};window.addEventListener("__TUA_BSL_TEST_PASSIVE__",i,n),window.removeEventListener("__TUA_BSL_TEST_PASSIVE__",i,n);var r=t.capture;return e?t:void 0!==r&&r}({passive:!1}),f=function(t){t.cancelable&&t.preventDefault()},v=function(t){var e,n,v,p,m;o()||(r().ios?(t&&-1===h.indexOf(t)&&(t.ontouchstart=function(t){l=t.targetTouches[0].clientY,s=t.targetTouches[0].clientX},t.ontouchmove=function(e){1===e.targetTouches.length&&function(t,e){if(e){var n=e.scrollTop,o=e.scrollLeft,i=e.scrollWidth,r=e.scrollHeight,a=e.clientWidth,c=e.clientHeight,u=t.targetTouches[0].clientX-s,h=t.targetTouches[0].clientY-l,d=Math.abs(h)>Math.abs(u);if(d&&(h>0&&0===n||h<0&&n+c+1>=r)||!d&&(u>0&&0===o||u<0&&o+a+1>=i))return f(t)}t.stopPropagation()}(e,t)},h.push(t)),u||(document.addEventListener("touchmove",f,d),u=!0)):a<=0&&(c=r().android?(e=i("html"),n=i("body"),v=e.scrollTop||n.scrollTop,p=Object.assign({},e.style),m=Object.assign({},n.style),e.style.height="100%",e.style.overflow="hidden",n.style.top="-".concat(v,"px"),n.style.width="100%",n.style.height="auto",n.style.position="fixed",n.style.overflow="hidden",function(){e.style.height=p.height||"",e.style.overflow=p.overflow||"",["top","width","height","overflow","position"].forEach((function(t){n.style[t]=m[t]||""})),window.scrollTo(0,v)}):function(){var t=i("body"),e=Object.assign({},t.style),n=window.innerWidth-document.body.clientWidth;return t.style.overflow="hidden",t.style.boxSizing="border-box",t.style.paddingRight="".concat(n,"px"),function(){["overflow","boxSizing","paddingRight"].forEach((function(n){t.style[n]=e[n]||""}))}}()),a+=1)};e.default={show:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e="v-overlay-".concat(Math.random().toString(36).substring(3,6)),n=document.createElement("div"),o=void 0===t.md?/android/.test(window.navigator.userAgent.toLocaleLowerCase()):t.md;if(n.id=e,n.classList.add("v-overlay",o?"v-overlay--md":"v-overlay--ios"),t.click&&n.addEventListener("click",(function(){t.click()})),t.zIndex&&(n.style.zIndex=t.zIndex),!1!==t.lock&&(t.unlock?v(t.unlock):v()),t.style){var i="";Object.keys(t.style).forEach((function(e){i+="".concat(e,":").concat(t.style[e],";")})),n.setAttribute("style",i)}return t.el?t.el.parentNode.insertBefore(n,t.el):document.body.appendChild(n),!1===t.show?e:(setTimeout((function(){n.classList.add("v-overlay--show")}),0),e)},hide:function(t){var e=t?document.getElementById(t):document.querySelector(".v-overlay");e&&(e.classList.remove("v-overlay--show"),function(t){if(!(o()||(a-=1)>0))if(r().ios||"function"!=typeof c){if(t){var e=h.indexOf(t);-1!==e&&(t.ontouchmove=null,t.ontouchstart=null,h.splice(e,1))}u&&(document.removeEventListener("touchmove",f,d),u=!1)}else c()}(),setTimeout((function(){e&&e.parentNode&&e.parentNode.removeChild(e)}),200))}}},,function(t,e,n){"use strict";function o(t,e,n,o){var i,r=!1,a=0;function l(){i&&clearTimeout(i)}function s(){var s=this,c=Date.now()-a,u=arguments;function h(){a=Date.now(),n.apply(s,u)}r||(o&&!i&&h(),l(),void 0===o&&c>t?h():!0!==e&&(i=setTimeout(o?function(){i=void 0}:h,void 0===o?t-c:t)))}return"boolean"!=typeof e&&(o=n,n=e,e=void 0),s.cancel=function(){l(),r=!0},s}function i(t,e,n){return void 0===n?o(t,e,!1):o(t,n,!1!==e)}n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.r(e);n(17);e.default=function(t,e,n,o){var i=0,r=e||window,a=e?e.scrollTop:window.scrollY,l=t||0,s=n||2e3,c=o||"easeOutSine",u=Math.max(.1,Math.min(Math.abs(a-l)/s,.8)),h={easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInOutQuint:function(t){return(t/=.5)<1?.5*Math.pow(t,5):.5*(Math.pow(t-2,5)+2)}};r.requestAnimFrame||(r.requestAnimFrame=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}).bind(window)),n?function t(){var e=(i+=1/60)/u,n=h[c](e);e<1?(r.requestAnimFrame(t),r.scrollTo(0,a+(l-a)*n)):r.scrollTo(0,l)}():r.scrollTo(0,l)}},function(t,e,n){"use strict";var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"v-picker",style:{height:t.pickerHeight+"px"}},t._l(t.columnData,(function(e,o){return n("div",{key:o,ref:"column",refInFor:!0,staticClass:"v-picker__column",on:{scroll:function(e){return t.handleScroll(e,o)}}},[n("div",{staticClass:"v-picker__list",style:{height:e.length*t.itemHeight+"px"}},t._l(e,(function(e,i){return n("div",{key:e[t.valueName],staticClass:"v-picker__item",class:[{"is-active":t.columnCount>1?e[t.valueName]===t.selected[o]:e[t.valueName]===t.selected},{"is-disabled":!!e.disabled}],domProps:{textContent:t._s(e[t.labelName])},on:{click:function(n){return t.handleClick(e,o,i)}}})})),0)])})),0)};o._withStripped=!0;n(18);var i=n(6),r=n(3),a=n(7),l=n(10);function s(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var c=function(t,e,n){var o=0;if(!n)return o;for(var i=0;i<t.length;i++)if(t[i][e]===n){o=i;break}return o},u={name:"PickerCore",mixins:[l.a],props:{valueData:{required:!0,type:[String,Number,Array]}},data:function(){var t,e=function t(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=e.map((function(e){return e&&e[n]&&Object(r.a)(e[n])&&e[n].length?t(e[n],n,o+1):o}));return Math.max.apply(Math,s(i))}(this.list,this.childName),n=e>1?new Array(e).fill([]):[this.list],o=this.valueData;return e>1?(t=Object(r.a)(o)&&o.length?o:function t(e,n,o,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return i[a]=e[0][n],e[0][o]&&Object(r.a)(e[0][o])&&e[0][o].length&&t(e[0][o],n,o,i,a+1),i}(this.list,this.valueName,this.childName,new Array(e).fill(""))).length<e&&(t=t.concat(new Array(e-t.length).fill(""))):t=o||this.list[0][this.valueName],{columnCount:e,columnData:n,selected:t,changeIndex:0,initCount:0}},computed:{pickerHeight:function(){return this.itemHeight*this.itemCount},condition:function(){return this.itemCount%2?this.itemHeight:this.itemHeight/2},jumpCount:function(){return(this.itemCount-1)/2|0}},watch:{selected:{handler:function(t){this.refreshColumnData(t),this.$emit("update:valueData",t)},immediate:!0,deep:!0},valueData:function(t){this.selected=t}},mounted:function(){var t=this;this.$nextTick((function(){t.initValue()}))},methods:{initValue:function(){var t=this;if(Object(r.a)(this.selected))this.columnData.forEach((function(e,n){var o=c(t.columnData[n],t.valueName,t.selected[n]);setTimeout((function(){t.autoScrollColumn(t.columnData[n][o],n,o,0)}),20*n)}));else{var e=c(this.columnData[0],this.valueName,this.selected);this.autoScrollColumn(this.columnData[0][e],0,e,0)}},handleScroll:Object(i.b)(100,(function(t,e){var n,o=this,i=this.itemHeight,r=this.jumpCount,a=this.condition,l=t.target.scrollTop,s=this.columnData[e].length,c=s*i-this.pickerHeight;n=l<=0?0:l<=a?Math.ceil(l/(a/(r+1))):l>=c?s-1:l>=c-a?s-1-Math.ceil(r*((c-l)/a)):Math.ceil((l-a)/i+(l-a)/(c-2*a))+r+1;var u=this.columnData[e][n];u&&!u.disabled&&(this.changeIndex=e,this.columnCount>1?this.$set(this.selected,e,u[this.valueName]):this.selected=u[this.valueName],this.$nextTick((function(){o.updateDefSelected()})))})),handleClick:function(t,e,n){t&&t.disabled||(this.updateCurSelected(t,e),this.autoScrollColumn(t,e,n))},autoScrollColumn:function(t,e,n){var o,i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e3,l=this.itemHeight,s=this.condition,c=this.jumpCount,u=this.columnData[e].length,h=u*l-this.pickerHeight;o=n<=0?0:n<=c+1?s/(c+1)*n:n>=u-1?h:n>=u-1-c?h-s/c*(u-1-n)+1:s+(n-(c+1))*(1-1/(u-2-2*c))*l,Object(a.default)(o,this.$refs.column[e],r),this.$nextTick((function(){i.initCount++}))},updateCurSelected:function(t,e){var n=t?t[this.valueName]:"";this.columnCount>1?this.$set(this.selected,e,n):this.selected=n,this.changeIndex=e},updateDefSelected:function(){var t=this.changeIndex,e=this.columnCount,n=this.valueName;if(!(t>=e-1||this.initCount<e)){var o=this.selected[t];-1===this.columnData[t+1].findIndex((function(t){return t[n]===o}))&&this.updateCurSelected(this.columnData[t+1][0],t+1)}},refreshColumnData:function(t){var e=this;if(Object(r.a)(t)){var n=[];t.forEach((function(o,i){i?n.push(function(t,e,n,o){for(var i=[],r=0;r<t.length;r++)if(t[r][n]===e){i=t[r][o]||[];break}return i}(n[i-1],t[i-1],e.valueName,e.childName)):n.push(e.list)})),this.columnData=n}}}},h=n(0),d=Object(h.a)(u,o,[],!1,null,null,null);d.options.__file="src/components/picker/pickerCore.vue";e.a=d.exports},function(t,e,n){},function(t,e,n){"use strict";e.a={props:{value:{type:[String,Number,Array],default:function(){return[]}},list:{required:!0,type:Array,default:function(){return[]}},labelName:{type:String,default:"text"},valueName:{type:String,default:"value"},childName:{type:String,default:"children"},itemHeight:{type:Number,default:44},itemCount:{type:Number,default:5}}}},,,function(t,e,n){"use strict";var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"v-drawer",class:["v-drawer--"+t.from,{"v-drawer--offset":!t.offset&&!t.offsetVal}],style:t.drawerStyle},[n("transition",{attrs:{name:"v-drawer--transition"}},[t.show?n("div",{ref:"wrap",staticClass:"v-drawer__wrap",style:t.wrapStyle,on:{touchstart:function(t){t.stopPropagation()},touchmove:function(t){t.stopPropagation()},touchend:function(t){t.stopPropagation()}}},[t.count?t._l(t.count,(function(e,o){return n("div",{key:e,staticClass:"v-drawer__item",class:{strict:t.strict}},[t._t(""+o)],2)})):t._t("default"),t._v(" "),t.cancel?[n("div",{staticClass:"v-drawer__line"}),t._v(" "),n("div",{staticClass:"v-drawer__footer",domProps:{textContent:t._s(t.cancel)},on:{click:function(e){t.show=!1}}})]:t._e()],2):t._e()])],1)};o._withStripped=!0;n(20);var i=n(4),r={name:"VDrawer",props:{value:{type:Boolean,required:!0},count:{type:Number,default:0,validator:function(t){return t>=0}},strict:{type:Boolean,default:!1},cancel:{type:String,default:""},from:{type:String,default:"bottom",validator:function(t){return~["left","right","top","bottom"].indexOf(t)}},size:{type:String,default:"60%"},mask:{type:Boolean,default:!0},lock:{type:Boolean,default:!0},dropdown:{type:Boolean,default:!1},offset:{type:Number,default:0}},data:function(){return{show:!1,offsetVal:0,overlayId:""}},computed:{drawerStyle:function(){var t={},e=this.offsetVal,n=this.from,o=this.offset||e;switch(n){case"top":t.top="".concat(o,"px");break;case"bottom":t.bottom="".concat(o,"px");break;case"left":t.left="".concat(o,"px");break;case"right":t.right="".concat(o,"px")}return t},wrapStyle:function(){var t={},e=this.from,n=this.strict;if(~["top","bottom"].indexOf(e)){if(t.width="100%",t.left=0,"top"===e?t.top=0:t.bottom=0,n)return t;t.height=this.size}else{if(t.height="100%",t.bottom=0,"left"===e?t.left=0:t.right=0,n)return t;t.width=this.size}return t}},watch:{value:function(t){this.dropdown&&t?this.calcParentRect():(this.toggle(t),this.show=t)},show:function(t){this.toggle(t),this.$emit("input",t)}},mounted:function(){this.show=this.value},methods:{calcParentRect:function(){if(this.offset)return this.toggle(!0),void(this.show=!0);var t=this.$el.parentNode.getBoundingClientRect();switch(this.from){case"top":this.offsetVal=t.top+t.height;break;case"bottom":this.offsetVal=document.documentElement.clientHeight-t.top;break;case"left":this.offsetVal=t.left+t.width;break;case"right":this.offsetVal=document.documentElement.clientWidth-t.left}this.toggle(!0),this.show=!0},toggle:function(t){var e=this;this.$nextTick((function(){if(t){if(e.overlayId)return;e.overlayId=i.default.show({el:e.$refs.wrap,show:e.mask,lock:e.lock,style:e.drawerStyle,unlock:e.$refs.wrap,click:function(){e.show=!1}})}else i.default.hide(e.overlayId),e.overlayId=""}))}}},a=n(0),l=Object(a.a)(r,o,[],!1,null,null,null);l.options.__file="src/components/drawer/drawer.vue";e.a=l.exports},,,function(t,e,n){"use strict";n(21);var o=n(6),i=n(7),r=function(){var t={open:function(){},close:function(){}};if("undefined"==typeof window)return t;var e=document.createElement("div");document.documentElement.appendChild(e),e.style.WebkitOverflowScrolling="touch";var n="getComputedStyle"in window&&"touch"===window.getComputedStyle(e)["-webkit-overflow-scrolling"];if(document.documentElement.removeChild(e),!n)return t;var o=0,i=!1;try{var r=Object.defineProperty({},"passive",{get:function(){return i=!0,null}});window.addEventListener("test",null,r)}catch(c){}var a=window.innerWidth/window.document.documentElement.clientWidth,l=function(t){if(1===a&&!(t.touches.length>1)){for(var e=t.target;e!==document.body&&e!==document;){var n=window.getComputedStyle(e);if(!n)break;if("INPUT"===e.nodeName&&"range"===e.getAttribute("type"))return;var i=n.getPropertyValue("overflow-y"),r=n.getPropertyValue("overflow-x");if(("auto"===r||"scroll"===r)&&"hidden"===i)return;var l=n.getPropertyValue("-webkit-overflow-scrolling"),s=parseInt(n.getPropertyValue("height"),10),c="touch"===l&&("auto"===i||"scroll"===i),u=e.scrollHeight>e.offsetHeight;if(c&&u){var h=t.touches?t.touches[0].screenY:t.screenY,d=o<=h&&0===e.scrollTop,f=o>=h&&e.scrollHeight-e.scrollTop===s;return void((d||f)&&t.preventDefault())}e=e.parentNode}t.preventDefault()}},s=function(t){o=t.touches?t.touches[0].screenY:t.screenY};return{open:function(){window.__ios_scroll_fixed__||(window.addEventListener("touchstart",s,!!i&&{passive:!1}),window.addEventListener("touchmove",l,!!i&&{passive:!1}),window.__ios_scroll_fixed__=!0)},close:function(){window.removeEventListener("touchstart",s,!1),window.removeEventListener("touchmove",l,!1),window.__ios_scroll_fixed__=!1}}}(),a={name:"VScroller",props:{preloadTop:{type:Number,default:50},preloadBottom:{type:Number,default:50},eventStep:{type:Number,default:1},throttle:{type:Number,default:-1},tag:{type:String,default:"div"},height:{type:String,default:"100%"}},data:function(){return{lastScrollTop:0,lastTouchY:0,refreshing:!1}},beforeMount:function(){r.open()},beforeDestroy:function(){r.close()},methods:{scrollY:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3;this.$el&&Object(i.default)(t,this.$el,e)},_handleStart:function(t){this.lastTouchY=t.touches[0].clientY},_handleMove:function(t){var e=t.touches[0].clientY-this.lastTouchY;if(e>0&&this.lastScrollTop<=0){if(!this.refreshing&&e<this.eventStep)return;this.refreshing=!0,this.$emit("refresh",{event:t,offset:e})}},_handleEnd:function(){this.refreshing&&(this.$emit("refresh-end"),this.refreshing=!1)},_handleScroll:function(t){var e=t.target.scrollTop,n=this.lastScrollTop-e,o=n>0;if(o)e>=0&&e<=this.preloadTop&&n>=this.eventStep&&this.$emit("top");else{var i=this.$el;i.scrollHeight-i.clientHeight-e<=this.preloadBottom&&this.$emit("bottom")}this.lastScrollTop=e,this.$emit("scroll",{offsetTop:e,isUp:o})}},render:function(t){var e={},n=this.throttle;return n>=0&&(e["&scroll"]=n>0?Object(o.b)(n,this._handleScroll):this._handleScroll,e["&touchstart"]=this._handleStart,e["&touchmove"]=this._handleMove,e["&touchend"]=this._handleEnd),t(this.tag,{style:{height:this.height,"overflow-y":"auto","-webkit-overflow-scrolling":"touch"},class:"v-scroller",on:e},this.$slots.default)}},l=n(0),s=Object(l.a)(a,void 0,void 0,!1,null,null,null);s.options.__file="src/components/scroller/scroller.vue";e.a=s.exports},function(t,e,n){},function(t,e,n){},,function(t,e,n){},function(t,e,n){},,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("VDrawer",{attrs:{from:"bottom",size:t.itemHeight*t.itemCount+(t.hasHeader?t.headerHeight:0)+"px",lock:!1},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[n("VScroller",[n("div",{directives:[{name:"show",rawName:"v-show",value:t.hasHeader,expression:"hasHeader"}],staticClass:"v-picker__header",style:{height:t.headerHeight+"px"}},[t._t("header")],2),t._v(" "),n("PickerCore",{attrs:{list:t.list,"value-data":t.valueData,"label-name":t.labelName,"value-name":t.valueName,"child-name":t.childName,"item-height":t.itemHeight,"item-count":t.itemCount},on:{"update:valueData":function(e){t.valueData=e},"update:value-data":function(e){t.valueData=e}}})],1)],1)};o._withStripped=!0;n(18);var i=n(13),r=n(16),a=n(8),l=n(10),s={name:"VPicker",components:{VDrawer:i.a,VScroller:r.a,PickerCore:a.a},mixins:[l.a],props:{show:{type:Boolean,default:!1},headerHeight:{type:Number,default:44}},data:function(){return{visible:this.show,valueData:this.value}},computed:{hasHeader:function(){return this.$slots.header}},watch:{show:function(t){this.visible=t},value:function(t){this.valueData=t},visible:function(t){this.$emit("update:show",t)},valueData:function(t){this.$emit("input",t)}}},c=n(0),u=Object(c.a)(s,o,[],!1,null,null,null);u.options.__file="src/components/picker/picker.vue";var h=u.exports;e.default=h}])}));

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@calibur/sakura"]=t():e["@calibur/sakura"]=t()}(this,(function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(n,s,function(t){return e[t]}.bind(null,s));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=41)}({0:function(e,t,i){"use strict";function n(e,t,i,n,s,r,o,l){var a,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=i,d._compiled=!0),n&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),o?(a=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__),s&&s.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},d._ssrRegister=a):s&&(a=l?function(){s.call(this,this.$root.$options.shadowRoot)}:s),a)if(d.functional){d._injectStyles=a;var c=d.render;d.render=function(e,t){return a.call(t),c(e,t)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,a):[a]}return{exports:e,options:d}}i.d(t,"a",(function(){return n}))},41:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"v-radio",class:["v-radio--"+e.size,{"v-radio--circle":e.circle},e.inline?"v-radio--hoz":"v-radio--ver"]},[e.isSingle?i("div",{staticClass:"v-radio__item",class:{"is-disabled":e.disabled,"is-selected":e.selected},on:{click:e._singleToggle}},[i("div",{staticClass:"v-radio__label"}),e._v(" "),e.text?i("div",{staticClass:"v-radio__text",domProps:{textContent:e._s(e.text)}}):e._e()]):i("div",{staticClass:"v-radio__list"},e._l(e.text,(function(t){return i("div",{key:e.pureText?t:t.value,staticClass:"v-radio__item",class:[{"is-disabled":e.disabled||!e.pureText&&t.disabled||e.max&&e.selected.length>=e.max&&-1===e.selected.indexOf(e.pureText?t:t.value)},{"is-selected":-1!==e.selected.indexOf(e.pureText?t:t.value)}],on:{click:function(i){return e._multiToggle(t)}}},[i("div",{staticClass:"v-radio__label"}),e._v(" "),i("div",{staticClass:"v-radio__text",domProps:{textContent:e._s(e.pureText?t:t.label)}})])})),0)])};n._withStripped=!0;i(61);var s={name:"VRadio",props:{value:{type:[Boolean,Array],required:!0},text:{type:[String,Array],required:!0},size:{type:String,default:"normal",validator:function(e){return~["normal","small"].indexOf(e)}},max:{type:Number,default:0},min:{type:Number,default:0},disabled:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},data:function(){var e="[object Boolean]"===Object.prototype.toString.call(this.value);return{selected:this.value,pureText:!!e||"string"==typeof this.text[0],isSingle:e}},watch:{value:function(e){this.selected=e},selected:function(e){this.$emit("input",e)}},methods:{_singleToggle:function(){this.disabled||this.readonly||(this.selected=!this.selected)},_multiToggle:function(e){if(!(this.disabled||this.readonly||!this.pureText&&e.disabled)){var t=this.selected.indexOf(this.pureText?e:e.value);if(-1===t)this.max&&this.selected.length>=this.max||this.selected.push(this.pureText?e:e.value);else{if(this.min&&this.selected.length<=this.min)return;this.selected.splice(t,1)}}},checkAll:function(e){var t=this;this.isSingle?this.selected=e:e?(this.selected=[],this.text.forEach((function(e){t.selected.push(t.pureText?e:e.value)}))):this.selected=[]},toggleAll:function(){this.isSingle?this.selected=!this.selected:this.checkAll(!this.selected.length)}}},r=i(0),o=Object(r.a)(s,n,[],!1,null,null,null);o.options.__file="src/components/radio/radio.vue";var l=o.exports;t.default=l},61:function(e,t,i){}})}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@calibur/sakura"]=t():e["@calibur/sakura"]=t()}(this,(function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(n,s,function(t){return e[t]}.bind(null,s));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=42)}({0:function(e,t,i){"use strict";function n(e,t,i,n,s,r,o,l){var a,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=i,d._compiled=!0),n&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),o?(a=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__),s&&s.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},d._ssrRegister=a):s&&(a=l?function(){s.call(this,this.$root.$options.shadowRoot)}:s),a)if(d.functional){d._injectStyles=a;var c=d.render;d.render=function(e,t){return a.call(t),c(e,t)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,a):[a]}return{exports:e,options:d}}i.d(t,"a",(function(){return n}))},42:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"v-radio",class:["v-radio--"+e.size,{"v-radio--circle":e.circle},e.inline?"v-radio--hoz":"v-radio--ver"]},[e.isSingle?i("div",{staticClass:"v-radio__item",class:{"is-disabled":e.disabled,"is-selected":e.selected},on:{click:e._singleToggle}},[i("div",{staticClass:"v-radio__label"}),e._v(" "),e.text?i("div",{staticClass:"v-radio__text",domProps:{textContent:e._s(e.text)}}):e._e()]):i("div",{staticClass:"v-radio__list"},e._l(e.text,(function(t){return i("div",{key:e.pureText?t:t.value,staticClass:"v-radio__item",class:[{"is-disabled":e.disabled||!e.pureText&&t.disabled||e.max&&e.selected.length>=e.max&&-1===e.selected.indexOf(e.pureText?t:t.value)},{"is-selected":-1!==e.selected.indexOf(e.pureText?t:t.value)}],on:{click:function(i){return e._multiToggle(t)}}},[i("div",{staticClass:"v-radio__label"}),e._v(" "),i("div",{staticClass:"v-radio__text",domProps:{textContent:e._s(e.pureText?t:t.label)}})])})),0)])};n._withStripped=!0;i(62);var s={name:"VRadio",props:{value:{type:[Boolean,Array],required:!0},text:{type:[String,Array],required:!0},size:{type:String,default:"normal",validator:function(e){return~["normal","small"].indexOf(e)}},max:{type:Number,default:0},min:{type:Number,default:0},disabled:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},data:function(){var e="[object Boolean]"===Object.prototype.toString.call(this.value);return{selected:this.value,pureText:!!e||"string"==typeof this.text[0],isSingle:e}},watch:{value:function(e){this.selected=e},selected:function(e){this.$emit("input",e)}},methods:{_singleToggle:function(){this.disabled||this.readonly||(this.selected=!this.selected)},_multiToggle:function(e){if(!(this.disabled||this.readonly||!this.pureText&&e.disabled)){var t=this.selected.indexOf(this.pureText?e:e.value);if(-1===t)this.max&&this.selected.length>=this.max||this.selected.push(this.pureText?e:e.value);else{if(this.min&&this.selected.length<=this.min)return;this.selected.splice(t,1)}}},checkAll:function(e){var t=this;this.isSingle?this.selected=e:e?(this.selected=[],this.text.forEach((function(e){t.selected.push(t.pureText?e:e.value)}))):this.selected=[]},toggleAll:function(){this.isSingle?this.selected=!this.selected:this.checkAll(!this.selected.length)}}},r=i(0),o=Object(r.a)(s,n,[],!1,null,null,null);o.options.__file="src/components/radio/radio.vue";var l=o.exports;t.default=l},62:function(e,t,i){}})}));

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@calibur/sakura"]=t():e["@calibur/sakura"]=t()}(this,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=31)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,s,f){var a,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),s?(a=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=a):r&&(a=f?function(){r.call(this,this.$root.$options.shadowRoot)}:r),a)if(u.functional){u._injectStyles=a;var c=u.render;u.render=function(e,t){return a.call(t),c(e,t)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,a):[a]}return{exports:e,options:u}}n.d(t,"a",(function(){return i}))},31:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v-refresher",class:{"is-default":this.isDefault,"is-loading":this.loading,"is-closing":this.closing},style:this.style},[t("div",{staticClass:"v-refresher__image",style:{height:this.height+"px",backgroundImage:"url("+this.renderImage+")"}})])};i._withStripped=!0;var r=n.p+"64ba0248017221a4309b7da81e2bef08.png",o=(n(60),{name:"VRefresher",props:{image:{type:String,default:""},height:{type:Number,default:60}},data:function(){return{offset:0,renderImage:this.image||r,isDefault:!this.image,loading:!1,closing:!1}},computed:{style:function(){var e=2*this.height;return this.offset?this.closing?{height:"".concat(this.offset,"px")}:{height:"".concat(e*(1+Math.log10(this.offset/e)),"px")}:{height:"0px"}}},methods:{pull:function(e){this.closing=!1,this.offset=e,e>this.height&&(this.loading=!0)},fire:function(){this.closing=!0,this.offset<this.height?this.offset=0:(this.offset=this.height,this.$emit("refresh"))},close:function(){this.loading=!1,this.offset=0}}}),s=n(0),f=Object(s.a)(o,i,[],!1,null,null,null);f.options.__file="src/components/refresher/refresher.vue";var a=f.exports;t.default=a},60:function(e,t,n){}})}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@calibur/sakura"]=t():e["@calibur/sakura"]=t()}(this,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=32)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,s,f){var a,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),s?(a=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=a):r&&(a=f?function(){r.call(this,this.$root.$options.shadowRoot)}:r),a)if(u.functional){u._injectStyles=a;var c=u.render;u.render=function(e,t){return a.call(t),c(e,t)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,a):[a]}return{exports:e,options:u}}n.d(t,"a",(function(){return i}))},32:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v-refresher",class:{"is-default":this.isDefault,"is-loading":this.loading,"is-closing":this.closing},style:this.style},[t("div",{staticClass:"v-refresher__image",style:{height:this.height+"px",backgroundImage:"url("+this.renderImage+")"}})])};i._withStripped=!0;var r=n.p+"64ba0248017221a4309b7da81e2bef08.png",o=(n(61),{name:"VRefresher",props:{image:{type:String,default:""},height:{type:Number,default:60}},data:function(){return{offset:0,renderImage:this.image||r,isDefault:!this.image,loading:!1,closing:!1}},computed:{style:function(){var e=2*this.height;return this.offset?this.closing?{height:"".concat(this.offset,"px")}:{height:"".concat(e*(1+Math.log10(this.offset/e)),"px")}:{height:"0px"}}},methods:{pull:function(e){this.closing=!1,this.offset=e,e>this.height&&(this.loading=!0)},fire:function(){this.closing=!0,this.offset<this.height?this.offset=0:(this.offset=this.height,this.$emit("refresh"))},close:function(){this.loading=!1,this.offset=0}}}),s=n(0),f=Object(s.a)(o,i,[],!1,null,null,null);f.options.__file="src/components/refresher/refresher.vue";var a=f.exports;t.default=a},61:function(e,t,n){}})}));

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function i(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(o,r,function(e){return t[e]}.bind(null,r));return o},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=44)}({0:function(t,e,i){"use strict";function o(t,e,i,o,r,n,a,s){var f,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=i,l._compiled=!0),o&&(l.functional=!0),n&&(l._scopeId="data-v-"+n),a?(f=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=f):r&&(f=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),f)if(l.functional){l._injectStyles=f;var h=l.render;l.render=function(t,e){return f.call(e),h(t,e)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,f):[f]}return{exports:t,options:l}}i.d(e,"a",(function(){return o}))},44:function(t,e,i){"use strict";i.r(e);i(52);function o(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var r={name:"VRender",props:{column:{type:Number,default:1,validator:function(t){return t>=1}},height:{type:Number,default:0,validator:function(t){return t>=0}},remain:{type:Number,required:!0},total:{type:Number,required:!0,default:0},item:{type:Object,default:null},getter:{type:Function,default:function(){}}},data:function(){return{wrapHeight:0,offsetTop:0,lastScrollTop:0,start:0,flowHeight:0,paddingTop:0,cache:{}}},computed:{isSameHeight:function(){return 0!==this.height},isSingleColumn:function(){return 1===this.column}},watch:{total:function(t,e){t?t<e?(this.clear(),this._computeRenderHeight(this.$slots.default,0)):this._computeRenderHeight(this.isSameHeight?void 0:this.$slots.default.slice(e,t),e):this.clear(),this.scroll(this.lastScrollTop,!1)}},mounted:function(){this.setOffset(),this.setWrap(),this._computeRenderHeight(this.$slots.default,0)},methods:{setOffset:function(){this.offsetTop=this.$el.offsetTop},setWrap:function(t){this.wrapHeight=(t||function(t){for(var e=t;e&&"HTML"!==e.tagName&&1===e.nodeType;){var i=window.getComputedStyle(e);if("hidden"===i.overflowY||"hidden"===i.overflow)return e;e=e.parentNode}return t.parentNode}(this.$el)).clientHeight},getRect:function(t){return this.cache[t]},scroll:function(t,e){var i=this,o=void 0===e?t<this.lastScrollTop:e;this.lastScrollTop=t;var r=this.cache,n=this.start,a=this.remain,s=this.total;if(!(a>=s)){var f=t-this.offsetTop;if(f<=0)return this.paddingTop=0,void(this.start=0);var l=f+this.wrapHeight;if(l>=r[s-1].bottom)return this.start=s-a,void(this.paddingTop=r[s-a].top);var h=this.isSameHeight,u=this.column,c=this.height;o?function(){var t=r[n].top-f;if(!(t<=0))if(h){var e=Math.abs(Math.ceil(t/c/u)),o=Math.max(n-e-a/2|0,0);i.start=o,i.paddingTop=r[o].top}else for(var s=n-1;s>=0;s--)if(r[s].top<=f){var l=Math.max(s-a/2|0,0);i.paddingTop=r[l].top,i.start=l;break}}():function(){var t=r[n+a-1].bottom-l;if(!(t>=0))if(h){var e=Math.abs(Math.floor(t/c/u)),o=Math.min(n+e+a/2|0,s-a);i.start=o,i.paddingTop=r[o].top}else for(var f=n+a;f<s;f++)if(r[f].bottom>=l){var p=Math.min(f+1-a/2|0,s-a);i.paddingTop=r[p].top,i.start=p;break}}()}},clear:function(){this.flowHeight=0,this.paddingTop=0,this.start=0,this.cache={}},_computeRenderHeight:function(t,e){var i=this.total,r=this.column,n=this.cache;if(i)if(this.isSameHeight){var a=this.height,s=t?t.length+e:i;if(this.isSingleColumn){for(var f=e;f<s;f++){var l=a*Math.floor(f/r);n[f]={top:l,height:a,bottom:a+l}}this.flowHeight=a*Math.ceil(i/r)}else{for(var h=e;h<s;h++){var u=a*h;n[h]={top:u,height:a,bottom:a+u}}this.flowHeight=a*i}}else if(this.isSingleColumn){var c=e?n[e-1].bottom:0;t.forEach((function(t,i){var o=parseInt(t.data.style.height,10);n[i+e]={top:c,bottom:o+c,height:o},c+=o})),this.flowHeight=c}else{var p;if(e){p=[];for(var d=e-r,g=e-1;d<=g;d++)p.push(n[d].bottom)}else p=new Array(r).fill(0);t.forEach((function(t,i){var r=Math.min.apply(Math,o(p)),a=parseInt(t.data.style.height,10);n[i+e]={top:r,bottom:a+r,height:a},p[p.indexOf(r)]+=a})),this.flowHeight=Math.max.apply(Math,o(p))}},_filter:function(t){var e=this.remain,i=this.total,o=this.start,r=this.item,n=e>=i?i:o+e;if(r){for(var a=[],s=o;s<n;s++)a.push(t(r,this.getter(s)));return a}return this.$slots.default?this.$slots.default.slice(o,n):[]}},render:function(t){return t("div",{style:{position:"relative",boxSizing:"border-box",willChange:"padding-top",paddingTop:"".concat(this.paddingTop,"px"),height:"".concat(this.flowHeight,"px")},class:"v-render"},this._filter(t))}},n=i(0),a=Object(n.a)(r,void 0,void 0,!1,null,null,null);a.options.__file="src/components/render/render.vue";var s=a.exports;e.default=s},52:function(t,e,i){}})}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function i(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(o,r,function(e){return t[e]}.bind(null,r));return o},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=45)}({0:function(t,e,i){"use strict";function o(t,e,i,o,r,n,a,s){var f,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=i,l._compiled=!0),o&&(l.functional=!0),n&&(l._scopeId="data-v-"+n),a?(f=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=f):r&&(f=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),f)if(l.functional){l._injectStyles=f;var h=l.render;l.render=function(t,e){return f.call(e),h(t,e)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,f):[f]}return{exports:t,options:l}}i.d(e,"a",(function(){return o}))},45:function(t,e,i){"use strict";i.r(e);i(53);function o(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var r={name:"VRender",props:{column:{type:Number,default:1,validator:function(t){return t>=1}},height:{type:Number,default:0,validator:function(t){return t>=0}},remain:{type:Number,required:!0},total:{type:Number,required:!0,default:0},item:{type:Object,default:null},getter:{type:Function,default:function(){}}},data:function(){return{wrapHeight:0,offsetTop:0,lastScrollTop:0,start:0,flowHeight:0,paddingTop:0,cache:{}}},computed:{isSameHeight:function(){return 0!==this.height},isSingleColumn:function(){return 1===this.column}},watch:{total:function(t,e){t?t<e?(this.clear(),this._computeRenderHeight(this.$slots.default,0)):this._computeRenderHeight(this.isSameHeight?void 0:this.$slots.default.slice(e,t),e):this.clear(),this.scroll(this.lastScrollTop,!1)}},mounted:function(){this.setOffset(),this.setWrap(),this._computeRenderHeight(this.$slots.default,0)},methods:{setOffset:function(){this.offsetTop=this.$el.offsetTop},setWrap:function(t){this.wrapHeight=(t||function(t){for(var e=t;e&&"HTML"!==e.tagName&&1===e.nodeType;){var i=window.getComputedStyle(e);if("hidden"===i.overflowY||"hidden"===i.overflow)return e;e=e.parentNode}return t.parentNode}(this.$el)).clientHeight},getRect:function(t){return this.cache[t]},scroll:function(t,e){var i=this,o=void 0===e?t<this.lastScrollTop:e;this.lastScrollTop=t;var r=this.cache,n=this.start,a=this.remain,s=this.total;if(!(a>=s)){var f=t-this.offsetTop;if(f<=0)return this.paddingTop=0,void(this.start=0);var l=f+this.wrapHeight;if(l>=r[s-1].bottom)return this.start=s-a,void(this.paddingTop=r[s-a].top);var h=this.isSameHeight,u=this.column,c=this.height;o?function(){var t=r[n].top-f;if(!(t<=0))if(h){var e=Math.abs(Math.ceil(t/c/u)),o=Math.max(n-e-a/2|0,0);i.start=o,i.paddingTop=r[o].top}else for(var s=n-1;s>=0;s--)if(r[s].top<=f){var l=Math.max(s-a/2|0,0);i.paddingTop=r[l].top,i.start=l;break}}():function(){var t=r[n+a-1].bottom-l;if(!(t>=0))if(h){var e=Math.abs(Math.floor(t/c/u)),o=Math.min(n+e+a/2|0,s-a);i.start=o,i.paddingTop=r[o].top}else for(var f=n+a;f<s;f++)if(r[f].bottom>=l){var p=Math.min(f+1-a/2|0,s-a);i.paddingTop=r[p].top,i.start=p;break}}()}},clear:function(){this.flowHeight=0,this.paddingTop=0,this.start=0,this.cache={}},_computeRenderHeight:function(t,e){var i=this.total,r=this.column,n=this.cache;if(i)if(this.isSameHeight){var a=this.height,s=t?t.length+e:i;if(this.isSingleColumn){for(var f=e;f<s;f++){var l=a*Math.floor(f/r);n[f]={top:l,height:a,bottom:a+l}}this.flowHeight=a*Math.ceil(i/r)}else{for(var h=e;h<s;h++){var u=a*h;n[h]={top:u,height:a,bottom:a+u}}this.flowHeight=a*i}}else if(this.isSingleColumn){var c=e?n[e-1].bottom:0;t.forEach((function(t,i){var o=parseInt(t.data.style.height,10);n[i+e]={top:c,bottom:o+c,height:o},c+=o})),this.flowHeight=c}else{var p;if(e){p=[];for(var d=e-r,g=e-1;d<=g;d++)p.push(n[d].bottom)}else p=new Array(r).fill(0);t.forEach((function(t,i){var r=Math.min.apply(Math,o(p)),a=parseInt(t.data.style.height,10);n[i+e]={top:r,bottom:a+r,height:a},p[p.indexOf(r)]+=a})),this.flowHeight=Math.max.apply(Math,o(p))}},_filter:function(t){var e=this.remain,i=this.total,o=this.start,r=this.item,n=e>=i?i:o+e;if(r){for(var a=[],s=o;s<n;s++)a.push(t(r,this.getter(s)));return a}return this.$slots.default?this.$slots.default.slice(o,n):[]}},render:function(t){return t("div",{style:{position:"relative",boxSizing:"border-box",willChange:"padding-top",paddingTop:"".concat(this.paddingTop,"px"),height:"".concat(this.flowHeight,"px")},class:"v-render"},this._filter(t))}},n=i(0),a=Object(n.a)(r,void 0,void 0,!1,null,null,null);a.options.__file="src/components/render/render.vue";var s=a.exports;e.default=s},53:function(t,e,i){}})}));

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@calibur/sakura"]=t():e["@calibur/sakura"]=t()}(this,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=25)}({0:function(e,t,n){"use strict";function o(e,t,n,o,r,i,u,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),u?(l=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(u)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var a=c.render;c.render=function(e,t){return l.call(t),a(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return o}))},16:function(e,t,n){"use strict";n(20);var o=n(6),r=n(8),i=function(){var e={open:function(){},close:function(){}};if("undefined"==typeof window)return e;var t=document.createElement("div");document.documentElement.appendChild(t),t.style.WebkitOverflowScrolling="touch";var n="getComputedStyle"in window&&"touch"===window.getComputedStyle(t)["-webkit-overflow-scrolling"];if(document.documentElement.removeChild(t),!n)return e;var o=0,r=!1;try{var i=Object.defineProperty({},"passive",{get:function(){return r=!0,null}});window.addEventListener("test",null,i)}catch(c){}var u=window.innerWidth/window.document.documentElement.clientWidth,s=function(e){if(1===u&&!(e.touches.length>1)){for(var t=e.target;t!==document.body&&t!==document;){var n=window.getComputedStyle(t);if(!n)break;if("INPUT"===t.nodeName&&"range"===t.getAttribute("type"))return;var r=n.getPropertyValue("overflow-y"),i=n.getPropertyValue("overflow-x");if(("auto"===i||"scroll"===i)&&"hidden"===r)return;var s=n.getPropertyValue("-webkit-overflow-scrolling"),l=parseInt(n.getPropertyValue("height"),10),c="touch"===s&&("auto"===r||"scroll"===r),a=t.scrollHeight>t.offsetHeight;if(c&&a){var d=e.touches?e.touches[0].screenY:e.screenY,f=o<=d&&0===t.scrollTop,h=o>=d&&t.scrollHeight-t.scrollTop===l;return void((f||h)&&e.preventDefault())}t=t.parentNode}e.preventDefault()}},l=function(e){o=e.touches?e.touches[0].screenY:e.screenY};return{open:function(){window.__ios_scroll_fixed__||(window.addEventListener("touchstart",l,!!r&&{passive:!1}),window.addEventListener("touchmove",s,!!r&&{passive:!1}),window.__ios_scroll_fixed__=!0)},close:function(){window.removeEventListener("touchstart",l,!1),window.removeEventListener("touchmove",s,!1),window.__ios_scroll_fixed__=!1}}}(),u={name:"VScroller",props:{preloadTop:{type:Number,default:50},preloadBottom:{type:Number,default:50},eventStep:{type:Number,default:1},throttle:{type:Number,default:-1},tag:{type:String,default:"div"},height:{type:String,default:"100%"}},data:function(){return{lastScrollTop:0,lastTouchY:0,refreshing:!1}},beforeMount:function(){i.open()},beforeDestroy:function(){i.close()},methods:{scrollY:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3;this.$el&&Object(r.a)(e,this.$el,t)},_handleStart:function(e){this.lastTouchY=e.touches[0].clientY},_handleMove:function(e){var t=e.touches[0].clientY-this.lastTouchY;if(t>0&&this.lastScrollTop<=0){if(!this.refreshing&&t<this.eventStep)return;this.refreshing=!0,this.$emit("refresh",{event:e,offset:t})}},_handleEnd:function(){this.refreshing&&(this.$emit("refresh-end"),this.refreshing=!1)},_handleScroll:function(e){var t=e.target.scrollTop,n=this.lastScrollTop-t,o=n>0;if(o)t>=0&&t<=this.preloadTop&&n>=this.eventStep&&this.$emit("top");else{var r=this.$el;r.scrollHeight-r.clientHeight-t<=this.preloadBottom&&this.$emit("bottom")}this.lastScrollTop=t,this.$emit("scroll",{offsetTop:t,isUp:o})}},render:function(e){var t={},n=this.throttle;return n>=0&&(t["&scroll"]=n>0?Object(o.b)(n,this._handleScroll):this._handleScroll,t["&touchstart"]=this._handleStart,t["&touchmove"]=this._handleMove,t["&touchend"]=this._handleEnd),e(this.tag,{style:{height:this.height,"overflow-y":"auto","-webkit-overflow-scrolling":"touch"},class:"v-scroller",on:t},this.$slots.default)}},s=n(0),l=Object(s.a)(u,void 0,void 0,!1,null,null,null);l.options.__file="src/components/scroller/scroller.vue";t.a=l.exports},20:function(e,t,n){},25:function(e,t,n){"use strict";n.r(t);var o=n(16);t.default=o.a},6:function(e,t,n){"use strict";function o(e,t,n,o){var r,i=!1,u=0;function s(){r&&clearTimeout(r)}function l(){var l=this,c=Date.now()-u,a=arguments;function d(){u=Date.now(),n.apply(l,a)}i||(o&&!r&&d(),s(),void 0===o&&c>e?d():!0!==t&&(r=setTimeout(o?function(){r=void 0}:d,void 0===o?e-c:e)))}return"boolean"!=typeof t&&(o=n,n=t,t=void 0),l.cancel=function(){s(),i=!0},l}function r(e,t,n){return void 0===n?o(e,t,!1):o(e,n,!1!==t)}n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r}))},8:function(e,t,n){"use strict";t.a=function(e,t,n,o){var r=0,i=t||window,u=t?t.scrollTop:window.scrollY,s=e||0,l=n||2e3,c=o||"easeOutSine",a=Math.max(.1,Math.min(Math.abs(u-s)/l,.8)),d={easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInOutQuint:function(e){return(e/=.5)<1?.5*Math.pow(e,5):.5*(Math.pow(e-2,5)+2)}};i.requestAnimFrame||(i.requestAnimFrame=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}).bind(window)),n?function e(){var t=(r+=1/60)/a,n=d[c](t);t<1?(i.requestAnimFrame(e),i.scrollTo(0,u+(s-u)*n)):i.scrollTo(0,s)}():i.scrollTo(0,s)}}})}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@calibur/sakura"]=t():e["@calibur/sakura"]=t()}(this,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=26)}({0:function(e,t,n){"use strict";function o(e,t,n,o,r,i,u,l){var s,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),u?(s=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(u)},c._ssrRegister=s):r&&(s=l?function(){r.call(this,this.$root.$options.shadowRoot)}:r),s)if(c.functional){c._injectStyles=s;var a=c.render;c.render=function(e,t){return s.call(t),a(e,t)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,s):[s]}return{exports:e,options:c}}n.d(t,"a",(function(){return o}))},16:function(e,t,n){"use strict";n(21);var o=n(6),r=n(7),i=function(){var e={open:function(){},close:function(){}};if("undefined"==typeof window)return e;var t=document.createElement("div");document.documentElement.appendChild(t),t.style.WebkitOverflowScrolling="touch";var n="getComputedStyle"in window&&"touch"===window.getComputedStyle(t)["-webkit-overflow-scrolling"];if(document.documentElement.removeChild(t),!n)return e;var o=0,r=!1;try{var i=Object.defineProperty({},"passive",{get:function(){return r=!0,null}});window.addEventListener("test",null,i)}catch(c){}var u=window.innerWidth/window.document.documentElement.clientWidth,l=function(e){if(1===u&&!(e.touches.length>1)){for(var t=e.target;t!==document.body&&t!==document;){var n=window.getComputedStyle(t);if(!n)break;if("INPUT"===t.nodeName&&"range"===t.getAttribute("type"))return;var r=n.getPropertyValue("overflow-y"),i=n.getPropertyValue("overflow-x");if(("auto"===i||"scroll"===i)&&"hidden"===r)return;var l=n.getPropertyValue("-webkit-overflow-scrolling"),s=parseInt(n.getPropertyValue("height"),10),c="touch"===l&&("auto"===r||"scroll"===r),a=t.scrollHeight>t.offsetHeight;if(c&&a){var f=e.touches?e.touches[0].screenY:e.screenY,d=o<=f&&0===t.scrollTop,h=o>=f&&t.scrollHeight-t.scrollTop===s;return void((d||h)&&e.preventDefault())}t=t.parentNode}e.preventDefault()}},s=function(e){o=e.touches?e.touches[0].screenY:e.screenY};return{open:function(){window.__ios_scroll_fixed__||(window.addEventListener("touchstart",s,!!r&&{passive:!1}),window.addEventListener("touchmove",l,!!r&&{passive:!1}),window.__ios_scroll_fixed__=!0)},close:function(){window.removeEventListener("touchstart",s,!1),window.removeEventListener("touchmove",l,!1),window.__ios_scroll_fixed__=!1}}}(),u={name:"VScroller",props:{preloadTop:{type:Number,default:50},preloadBottom:{type:Number,default:50},eventStep:{type:Number,default:1},throttle:{type:Number,default:-1},tag:{type:String,default:"div"},height:{type:String,default:"100%"}},data:function(){return{lastScrollTop:0,lastTouchY:0,refreshing:!1}},beforeMount:function(){i.open()},beforeDestroy:function(){i.close()},methods:{scrollY:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3;this.$el&&Object(r.default)(e,this.$el,t)},_handleStart:function(e){this.lastTouchY=e.touches[0].clientY},_handleMove:function(e){var t=e.touches[0].clientY-this.lastTouchY;if(t>0&&this.lastScrollTop<=0){if(!this.refreshing&&t<this.eventStep)return;this.refreshing=!0,this.$emit("refresh",{event:e,offset:t})}},_handleEnd:function(){this.refreshing&&(this.$emit("refresh-end"),this.refreshing=!1)},_handleScroll:function(e){var t=e.target.scrollTop,n=this.lastScrollTop-t,o=n>0;if(o)t>=0&&t<=this.preloadTop&&n>=this.eventStep&&this.$emit("top");else{var r=this.$el;r.scrollHeight-r.clientHeight-t<=this.preloadBottom&&this.$emit("bottom")}this.lastScrollTop=t,this.$emit("scroll",{offsetTop:t,isUp:o})}},render:function(e){var t={},n=this.throttle;return n>=0&&(t["&scroll"]=n>0?Object(o.b)(n,this._handleScroll):this._handleScroll,t["&touchstart"]=this._handleStart,t["&touchmove"]=this._handleMove,t["&touchend"]=this._handleEnd),e(this.tag,{style:{height:this.height,"overflow-y":"auto","-webkit-overflow-scrolling":"touch"},class:"v-scroller",on:t},this.$slots.default)}},l=n(0),s=Object(l.a)(u,void 0,void 0,!1,null,null,null);s.options.__file="src/components/scroller/scroller.vue";t.a=s.exports},17:function(e,t,n){},21:function(e,t,n){},26:function(e,t,n){"use strict";n.r(t);var o=n(16);t.default=o.a},6:function(e,t,n){"use strict";function o(e,t,n,o){var r,i=!1,u=0;function l(){r&&clearTimeout(r)}function s(){var s=this,c=Date.now()-u,a=arguments;function f(){u=Date.now(),n.apply(s,a)}i||(o&&!r&&f(),l(),void 0===o&&c>e?f():!0!==t&&(r=setTimeout(o?function(){r=void 0}:f,void 0===o?e-c:e)))}return"boolean"!=typeof t&&(o=n,n=t,t=void 0),s.cancel=function(){l(),i=!0},s}function r(e,t,n){return void 0===n?o(e,t,!1):o(e,n,!1!==t)}n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r}))},7:function(e,t,n){"use strict";n.r(t);n(17);t.default=function(e,t,n,o){var r=0,i=t||window,u=t?t.scrollTop:window.scrollY,l=e||0,s=n||2e3,c=o||"easeOutSine",a=Math.max(.1,Math.min(Math.abs(u-l)/s,.8)),f={easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInOutQuint:function(e){return(e/=.5)<1?.5*Math.pow(e,5):.5*(Math.pow(e-2,5)+2)}};i.requestAnimFrame||(i.requestAnimFrame=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}).bind(window)),n?function e(){var t=(r+=1/60)/a,n=f[c](t);t<1?(i.requestAnimFrame(e),i.scrollTo(0,u+(l-u)*n)):i.scrollTo(0,l)}():i.scrollTo(0,l)}}})}));

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=40)}({0:function(t,e,n){"use strict";function o(t,e,n,o,i,r,s,a){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),o&&(u.functional=!0),r&&(u._scopeId="data-v-"+r),s?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=c):i&&(c=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:u}}n.d(e,"a",(function(){return o}))},40:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"v-search",class:{"v-search--fixed":t.fixed,"v-search--border":t.showBorder,"v-search--nav":t.isNav}},[n("div",{staticClass:"v-search__shim"}),t._v(" "),n("div",{staticClass:"v-search__body"},[n("div",{staticClass:"v-search__wrap"},[t.showCancel?n("div",{staticClass:"v-search__cancel",on:{click:t.handleCancel}},[t._v("取消")]):t._e(),t._v(" "),n("div",{staticClass:"v-search__box"},[t._m(0),t._v(" "),t.text?n("div",{staticClass:"v-search__icon v-search__icon--close",on:{click:t.handleRemove}},[n("i",{staticClass:"bili-font ic_input_close"})]):t._e(),t._v(" "),n("form",{staticClass:"v-search__form",attrs:{method:"get",action:"#"},on:{submit:function(e){return e.preventDefault(),t.submit(!1)}}},[n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.text,expression:"text"}],attrs:{placeholder:t.placeholder,type:"search"},domProps:{value:t.text},on:{focus:t.handleFocus,blur:t.handleBlur,input:function(e){e.target.composing||(t.text=e.target.value)}}},"input",t.attr,!1))])])])])])};o._withStripped=!0;n(59);var i=n(6),r={name:"VSearch",props:{value:{type:String,required:!0},placeholder:{type:String,default:"搜索词"},attr:{type:Object,default:function(){}},fixed:{type:Boolean,default:!1},realtime:{type:Boolean,default:!1},stayCancel:{type:Boolean,default:!1},showBorder:{type:Boolean,default:!1},isNav:{type:Boolean,default:!0}},data:function(){return{text:this.value,isFocus:!1}},computed:{showCancel:function(){return!!this.stayCancel||(this.isFocus||this.text)}},watch:{text:function(t){this.$emit("input",t),this.realtime&&this.submit(!0)},value:function(t){this.text=t}},methods:{handleCancel:function(){this.$emit("cancel")},handleRemove:function(){this.text=""},handleFocus:function(){this.isFocus=!0,this.$emit("focus")},handleBlur:function(){var t=this;this.$emit("blur"),setTimeout((function(){t.isFocus=!1}),20)},submit:Object(i.a)(150,(function(t){this.$emit(t?"change":"submit")}))}},s=n(0),a=Object(s.a)(r,o,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"v-search__icon v-search__icon--query"},[e("i",{staticClass:"bili-font ic_search"})])}],!1,null,null,null);a.options.__file="src/components/search/search.vue";var c=a.exports;e.default=c},59:function(t,e,n){},6:function(t,e,n){"use strict";function o(t,e,n,o){var i,r=!1,s=0;function a(){i&&clearTimeout(i)}function c(){var c=this,u=Date.now()-s,l=arguments;function f(){s=Date.now(),n.apply(c,l)}r||(o&&!i&&f(),a(),void 0===o&&u>t?f():!0!==e&&(i=setTimeout(o?function(){i=void 0}:f,void 0===o?t-u:t)))}return"boolean"!=typeof e&&(o=n,n=e,e=void 0),c.cancel=function(){a(),r=!0},c}function i(t,e,n){return void 0===n?o(t,e,!1):o(t,n,!1!==e)}n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return i}))}})}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=41)}({0:function(t,e,n){"use strict";function o(t,e,n,o,i,r,s,a){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),o&&(u.functional=!0),r&&(u._scopeId="data-v-"+r),s?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=c):i&&(c=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:u}}n.d(e,"a",(function(){return o}))},41:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"v-search",class:{"v-search--fixed":t.fixed,"v-search--border":t.showBorder,"v-search--nav":t.isNav}},[n("div",{staticClass:"v-search__shim"}),t._v(" "),n("div",{staticClass:"v-search__body"},[n("div",{staticClass:"v-search__wrap"},[t.showCancel?n("div",{staticClass:"v-search__cancel",on:{click:t.handleCancel}},[t._v("取消")]):t._e(),t._v(" "),n("div",{staticClass:"v-search__box"},[t._m(0),t._v(" "),t.text?n("div",{staticClass:"v-search__icon v-search__icon--close",on:{click:t.handleRemove}},[n("i",{staticClass:"bili-font ic_input_close"})]):t._e(),t._v(" "),n("form",{staticClass:"v-search__form",attrs:{method:"get",action:"#"},on:{submit:function(e){return e.preventDefault(),t.submit(!1)}}},[n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.text,expression:"text"}],attrs:{placeholder:t.placeholder,type:"search"},domProps:{value:t.text},on:{focus:t.handleFocus,blur:t.handleBlur,input:function(e){e.target.composing||(t.text=e.target.value)}}},"input",t.attr,!1))])])])])])};o._withStripped=!0;n(60);var i=n(6),r={name:"VSearch",props:{value:{type:String,required:!0},placeholder:{type:String,default:"搜索词"},attr:{type:Object,default:function(){}},fixed:{type:Boolean,default:!1},realtime:{type:Boolean,default:!1},stayCancel:{type:Boolean,default:!1},showBorder:{type:Boolean,default:!1},isNav:{type:Boolean,default:!0}},data:function(){return{text:this.value,isFocus:!1}},computed:{showCancel:function(){return!!this.stayCancel||(this.isFocus||this.text)}},watch:{text:function(t){this.$emit("input",t),this.realtime&&this.submit(!0)},value:function(t){this.text=t}},methods:{handleCancel:function(){this.$emit("cancel")},handleRemove:function(){this.text=""},handleFocus:function(){this.isFocus=!0,this.$emit("focus")},handleBlur:function(){var t=this;this.$emit("blur"),setTimeout((function(){t.isFocus=!1}),20)},submit:Object(i.a)(150,(function(t){this.$emit(t?"change":"submit")}))}},s=n(0),a=Object(s.a)(r,o,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"v-search__icon v-search__icon--query"},[e("i",{staticClass:"bili-font ic_search"})])}],!1,null,null,null);a.options.__file="src/components/search/search.vue";var c=a.exports;e.default=c},6:function(t,e,n){"use strict";function o(t,e,n,o){var i,r=!1,s=0;function a(){i&&clearTimeout(i)}function c(){var c=this,u=Date.now()-s,l=arguments;function f(){s=Date.now(),n.apply(c,l)}r||(o&&!i&&f(),a(),void 0===o&&u>t?f():!0!==e&&(i=setTimeout(o?function(){i=void 0}:f,void 0===o?t-u:t)))}return"boolean"!=typeof e&&(o=n,n=e,e=void 0),c.cancel=function(){a(),r=!0},c}function i(t,e,n){return void 0===n?o(t,e,!1):o(t,n,!1!==e)}n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return i}))},60:function(t,e,n){}})}));

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@calibur/sakura"]=t():e["@calibur/sakura"]=t()}(this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=42)}({0:function(e,t,n){"use strict";function r(e,t,n,r,o,i,s,c){var u,a="function"==typeof e?e.options:e;if(t&&(a.render=t,a.staticRenderFns=n,a._compiled=!0),r&&(a.functional=!0),i&&(a._scopeId="data-v-"+i),s?(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__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},a._ssrRegister=u):o&&(u=c?function(){o.call(this,this.$root.$options.shadowRoot)}:o),u)if(a.functional){a._injectStyles=u;var l=a.render;a.render=function(e,t){return u.call(t),l(e,t)}}else{var f=a.beforeCreate;a.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:a}}n.d(t,"a",(function(){return r}))},42:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"v-step",class:[[e.vertical?"v-step--vertical":"v-step--horizontal"],[e.desc?"v-step--desc":"v-step--asc"]]},e._l(e.list,(function(t,r){return n("div",{key:r,staticClass:"v-step__item",class:"v-step__item--"+(e.current===r?"active":e.current>r?"before":"after"),on:{click:function(t){return e.handleClick(r)}}},[e._t("icon-"+r,[n("div",{staticClass:"v-step__item__icon"},[n("span",{domProps:{textContent:e._s(r+1)}})])]),e._v(" "),e._t("text-"+r,[n("div",{staticClass:"v-step__item__text",domProps:{textContent:e._s(t)}})])],2)})),0)};r._withStripped=!0;n(62);var o={name:"VStep",props:{vertical:{type:Boolean,default:!1},desc:{type:Boolean,default:!1},current:{type:Number,default:0},list:{type:Array,default:function(){return[]}}},methods:{handleClick:function(e){this.$emit("click",e)}}},i=n(0),s=Object(i.a)(o,r,[],!1,null,null,null);s.options.__file="src/components/step/step.vue";var c=s.exports;t.default=c},62:function(e,t,n){}})}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@calibur/sakura"]=t():e["@calibur/sakura"]=t()}(this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=43)}({0:function(e,t,n){"use strict";function r(e,t,n,r,o,i,s,c){var u,a="function"==typeof e?e.options:e;if(t&&(a.render=t,a.staticRenderFns=n,a._compiled=!0),r&&(a.functional=!0),i&&(a._scopeId="data-v-"+i),s?(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__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},a._ssrRegister=u):o&&(u=c?function(){o.call(this,this.$root.$options.shadowRoot)}:o),u)if(a.functional){a._injectStyles=u;var l=a.render;a.render=function(e,t){return u.call(t),l(e,t)}}else{var f=a.beforeCreate;a.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:a}}n.d(t,"a",(function(){return r}))},43:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"v-step",class:[[e.vertical?"v-step--vertical":"v-step--horizontal"],[e.desc?"v-step--desc":"v-step--asc"]]},e._l(e.list,(function(t,r){return n("div",{key:r,staticClass:"v-step__item",class:"v-step__item--"+(e.current===r?"active":e.current>r?"before":"after"),on:{click:function(t){return e.handleClick(r)}}},[e._t("icon-"+r,[n("div",{staticClass:"v-step__item__icon"},[n("span",{domProps:{textContent:e._s(r+1)}})])]),e._v(" "),e._t("text-"+r,[n("div",{staticClass:"v-step__item__text",domProps:{textContent:e._s(t)}})])],2)})),0)};r._withStripped=!0;n(63);var o={name:"VStep",props:{vertical:{type:Boolean,default:!1},desc:{type:Boolean,default:!1},current:{type:Number,default:0},list:{type:Array,default:function(){return[]}}},methods:{handleClick:function(e){this.$emit("click",e)}}},i=n(0),s=Object(i.a)(o,r,[],!1,null,null,null);s.options.__file="src/components/step/step.vue";var c=s.exports;t.default=c},63:function(e,t,n){}})}));

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,function(e){return t[e]}.bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=39)}({0:function(t,e,i){"use strict";function n(t,e,i,n,s,a,o,r){var h,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=i,l._compiled=!0),n&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),o?(h=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},l._ssrRegister=h):s&&(h=r?function(){s.call(this,this.$root.$options.shadowRoot)}:s),h)if(l.functional){l._injectStyles=h;var u=l.render;l.render=function(t,e){return h.call(e),u(t,e)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,h):[h]}return{exports:t,options:l}}i.d(e,"a",(function(){return n}))},12:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i(5);function s(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var o=function(){function t(e){var i=this;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.wrap=e.wrap,this.loop=e.loop,this.index=e.index,this.animated=e.animated,this.duration=e.duration,this.callback=e.callback,this._calcCssPrefix(),this._setupConst(),this.loop?setTimeout((function(){i._useAnimate(),i._cloneShadow(),i._bindEvents()}),0):(this._useAnimate(),this._cloneShadow(),this._bindEvents()),this}var e,i,o;return e=t,(i=[{key:"slide",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t===this.index||this.move||(this._lockEvent(1.2),this._animateSlide(t,this.index,e))}},{key:"next",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=this.slides.length;1===e||this.touching||this.move||this.index===e-1&&!this.loop||t&&Date.now()-this.lastNextAt<t||this.slide(this.index+1,!0)}},{key:"destroy",value:function(){var t=this.el,e=this.events;t&&(t.removeEventListener("touchstart",e.touchstart,{passive:!0}),t.removeEventListener("touchmove",e.touchmove,{passive:!0}),t.removeEventListener("touchend",e.touchend,{passive:!0}))}},{key:"_updateEvents",value:function(t){this.destroy(),this.el=this.slides[t],this.index=t,this.events={},this._bindEvents()}},{key:"_setupConst",value:function(){this.slides=s(this.wrap.children),this.startAt=0,this.lastNextAt=0,this.move=!1,this.touching=!1,this.isMoveSlide=!1,this.maxDeltaPoint={x:0,y:0},this.deltaPoint={x:0,y:0},this.el=this.slides[this.index],this.events={}}},{key:"_cloneShadow",value:function(){var t=this.slides,e=this.index,i=this.offsetWidth;if(this.loop&&1!==t.length){var n=t[t.length-1].cloneNode(!0),s=t[0].cloneNode(!0);this.wrap.appendChild(n),this.wrap.appendChild(s),n.style.transform="translateX(".concat((-1-e)*i,"px)"),s.style.transform="translateX(".concat((t.length-e)*i,"px)"),this.beforeShadow=n,this.afterShadow=s}}},{key:"_useAnimate",value:function(){var t=this,e=this.wrap,i=e.offsetWidth;if(i||setTimeout((function(){t._useAnimate()}),200),this.offsetWidth=i,this.animated){var n=this.slides,s=this.index,a=n.length;if(a<=1)return e.style.visibility="visible",void[].forEach.call(n,(function(t){t.style.transform="translateX(0px)"}));e.style.width="".concat(100*a,"%");var o="".concat(100/a,"%");[].forEach.call(n,(function(t,e){t.style.width=o,t.style.transform="translateX(".concat((e-s)*i,"px)")})),e.style.visibility="visible"}else e.style.visibility="visible"}},{key:"_bindEvents",value:function(){var t=this.el,e=this.events;t&&(e.touchstart=this._start.bind(this),e.touchmove=this._move.bind(this),e.touchend=this._end.bind(this),t.addEventListener("touchstart",e.touchstart,{passive:!0}),t.addEventListener("touchmove",e.touchmove,{passive:!0}),t.addEventListener("touchend",e.touchend,{passive:!0}))}},{key:"_start",value:function(t){this.touching=!0;var e=t.touches[0];this.startPoint={x:e.pageX,y:e.pageY},this.startAt=+new Date}},{key:"_move",value:function(t){var e=t.touches[0],i=this.startPoint,n=this.maxDeltaPoint,s={x:e.pageX-i.x,y:e.pageY-i.y};if(this.maxDeltaPoint={x:Math.max(n.x,Math.abs(s.x)),y:Math.max(n.y,Math.abs(s.y))},this.deltaPoint=s,this.isMoveSlide=!0,this._lockedSwipeEvents(),!this._isVerticalScroll(this.maxDeltaPoint)&&this.animated&&!this._isEnded(s)){var a=s.x,o=a>0,r=this.slides,h=this.index,l=this.offsetWidth;this._translate(r[h],a),o?this._translate(r[h-1],a-l):this._translate(r[h+1],l+a),this._loopAdjust(o,h,a)}}},{key:"_end",value:function(){if(this.touching=!1,this.startAt&&this.isMoveSlide){this.isMoveSlide=!1,this._unlockSwipeEvents();var t=this.maxDeltaPoint,e=this.deltaPoint,i=this.offsetWidth,n=e.x>0;if(this.maxDeltaPoint={x:0,y:0},this._isVerticalScroll(t)||this._isEnded(e)||!this._isValidSlide(e)){if(!this.animated)return;var s=this.slides,a=this.index,o=this.duration;return this._translate(s[a],0,o),n?(this._translate(s[a-1],-i,o),this._translate(s[a+1],i)):(this._translate(s[a+1],i,o),this._translate(s[a-1],-i)),this.loop&&(n&&0===a?this._translate(this.beforeShadow,-i,o):n||a!==s.length-1||this._translate(this.afterShadow,i,o)),void this._lockEvent()}var r=n?this.index-1:this.index+1;if(this.animated){var h=this.slides,l=this.index,u=this.duration;this._translate(h[l],n?i:-i,u),this._translate(h[l-1],n?0:-i,n?u:0),this._translate(h[l+1],n?i:0,n?0:u),this.loop&&(r=this._loopJump(n,l,r))}this.callback&&this.callback(r),this._updateEvents(r),this._lockEvent()}}},{key:"_animateSlide",value:function(t,e,i){var n=this;if(this.animated){var s=this.offsetWidth,a=this.slides,o=this.duration,r=t<e;this._loopAdjust(r,t),this._translate(a[t],r?-s:s);var h=t;setTimeout((function(){n._translate(a[t],0,o),n._translate(a[e],r?s:-s,o),e!==t+1&&n._translate(a[t+1],s),e!==t-1&&n._translate(a[t-1],-s),n.loop&&(h=n._loopJump(r,e,t)),n._updateEvents(h),i&&setTimeout((function(){n.callback&&n.callback(h)}),n.duration)}),0)}}},{key:"_loopJump",value:function(t,e,i){var n,s=this.slides,a=this.duration,o=this.offsetWidth;return t&&0===e?(n=s.length-1,this._translate(this.beforeShadow,0,a),this._translate(this.afterShadow,o),this._loopReset(!0)):t||e!==s.length-1?n=i:(n=0,this._translate(this.afterShadow,0,a),this._translate(this.beforeShadow,-o),this._loopReset(!1)),n}},{key:"_loopAdjust",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.loop){var n=this.offsetWidth,s=this.slides;t&&0===e?this._translate(this.beforeShadow,i-n):t||e!==s.length-1||this._translate(this.afterShadow,n+i)}}},{key:"_loopReset",value:function(t){var e=this,i=this.offsetWidth,n=this.slides;setTimeout((function(){t?(e._translate(n[n.length-1],0,0),e._translate(n[n.length-2],-i,0),e._translate(e.beforeShadow,i,0)):(e._translate(n[0],0,0),e._translate(n[1],i,0),e._translate(e.afterShadow,-i,0))}),this.duration)}},{key:"_lockEvent",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.lastNextAt=Date.now(),this.move=!0,setTimeout((function(){t.move=!1}),this.duration*e)}},{key:"_lockedSwipeEvents",value:function(){this.animated&&(this.el.style["touch-action"]="none")}},{key:"_unlockSwipeEvents",value:function(){this.animated&&(this.el.style["touch-action"]="auto")}},{key:"_isVerticalScroll",value:function(t){return Math.abs(t.x)<1.5*Math.abs(t.y)}},{key:"_isValidSlide",value:function(t){var e=Math.abs(t.x),i=Number(+new Date-this.startAt)<250&&e>20||e>this.offsetWidth/2;return this.startAt=0,i}},{key:"_translate",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t&&(t.style["".concat(this.cssPrefix,"transition-duration")]=n?"".concat(n,"ms"):"",requestAnimationFrame((function(){t.style["".concat(i.cssPrefix,"transform")]="translateX(".concat(e,"px)")})))}},{key:"_isEnded",value:function(t){if(this.loop)return!1;var e=t.x>0;return e&&0===this.index||!e&&this.index===this.slides.length-1}},{key:"_calcCssPrefix",value:function(){this.animated&&(this.cssPrefix=Object(n.c)())}}])&&a(e.prototype,i),o&&a(e,o),t}()},39:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.length?i("div",{staticClass:"v-swipe",on:{touchstart:function(t){t.stopPropagation()},touchmove:function(t){t.stopPropagation()},touchend:function(t){t.stopPropagation()}}},[i("div",{ref:"wrap",staticClass:"v-swipe__wrap"},t._l(t.length,(function(e,n){return i("div",{key:e,staticClass:"v-swipe__item"},[t._t(""+n)],2)})),0),t._v(" "),t.length>1&&t.indicator?i("div",{staticClass:"v-swipe__indicator"},t._l(t.length,(function(e,n){return i("div",{key:e,staticClass:"v-swipe__indicator__item",class:{"is-active":n===t.active}})})),0):t._e()]):t._e()};n._withStripped=!0;i(58);var s=i(12),a={name:"VSwipe",props:{duration:{type:Number,default:500},autoplay:{type:Number,default:2e3},index:{type:Number,default:0},length:{type:Number,default:0},indicator:{type:Boolean,default:!0}},data:function(){return{active:this.index,timer:0,slider:null,stats:[this.index]}},mounted:function(){this.init(),this.play(),this.$emit("change",this.active),this.$emit("report",this.active)},beforeDestroy:function(){clearInterval(this.timer)},methods:{init:function(){var t=this;this.slider=new s.a({wrap:this.$refs.wrap,loop:!0,index:this.active,animated:!0,duration:this.duration,callback:function(e){t.active=e,t.$emit("change",e),~t.stats.indexOf(e)||(t.stats.push(e),t.$emit("report",e))}})},play:function(){var t=this;this.autoplay&&(this.timer=setInterval((function(){t.slider.offsetWidth&&t.slider.next(t.autoplay)}),this.autoplay))}}},o=i(0),r=Object(o.a)(a,n,[],!1,null,null,null);r.options.__file="src/components/swipe/swipe.vue";var h=r.exports;e.default=h},5:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"a",(function(){return s})),i.d(e,"c",(function(){return a}));var n=function(){if("undefined"!=typeof window)return document.addEventListener?function(t,e,i){t&&e&&i&&t.addEventListener(e,i,!1)}:function(t,e,i){t&&e&&i&&t.attachEvent("on"+e,i)}}(),s=function(){if("undefined"!=typeof window)return document.removeEventListener?function(t,e,i){t&&e&&t.removeEventListener(e,i,!1)}:function(t,e,i){t&&e&&t.detachEvent("on"+e,i)}}(),a=function(){var t="",e=/^(Webkit|Khtml|Moz|ms|O)(?=[A-Z])/,i=document.getElementsByTagName("script")[0].style;for(var n in i)e.test(n)&&(t="-"+n.match(e)[0].toLowerCase()+"-");return!t&&"WebkitOpacity"in i&&(t="-webkit-"),!t&&"KhtmlOpacity"in i&&(t="-khtml-"),t}},58:function(t,e,i){}})}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,function(e){return t[e]}.bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=40)}({0:function(t,e,i){"use strict";function n(t,e,i,n,s,a,o,r){var h,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=i,l._compiled=!0),n&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),o?(h=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},l._ssrRegister=h):s&&(h=r?function(){s.call(this,this.$root.$options.shadowRoot)}:s),h)if(l.functional){l._injectStyles=h;var u=l.render;l.render=function(t,e){return h.call(e),u(t,e)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,h):[h]}return{exports:t,options:l}}i.d(e,"a",(function(){return n}))},12:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i(5);function s(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var o=function(){function t(e){var i=this;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.wrap=e.wrap,this.loop=e.loop,this.index=e.index,this.animated=e.animated,this.duration=e.duration,this.callback=e.callback,this._calcCssPrefix(),this._setupConst(),this.loop?setTimeout((function(){i._useAnimate(),i._cloneShadow(),i._bindEvents()}),0):(this._useAnimate(),this._cloneShadow(),this._bindEvents()),this}var e,i,o;return e=t,(i=[{key:"slide",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t===this.index||this.move||(this._lockEvent(1.2),this._animateSlide(t,this.index,e))}},{key:"next",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=this.slides.length;1===e||this.touching||this.move||this.index===e-1&&!this.loop||t&&Date.now()-this.lastNextAt<t||this.slide(this.index+1,!0)}},{key:"destroy",value:function(){var t=this.el,e=this.events;t&&(t.removeEventListener("touchstart",e.touchstart,{passive:!0}),t.removeEventListener("touchmove",e.touchmove,{passive:!0}),t.removeEventListener("touchend",e.touchend,{passive:!0}))}},{key:"_updateEvents",value:function(t){this.destroy(),this.el=this.slides[t],this.index=t,this.events={},this._bindEvents()}},{key:"_setupConst",value:function(){this.slides=s(this.wrap.children),this.startAt=0,this.lastNextAt=0,this.move=!1,this.touching=!1,this.isMoveSlide=!1,this.maxDeltaPoint={x:0,y:0},this.deltaPoint={x:0,y:0},this.el=this.slides[this.index],this.events={}}},{key:"_cloneShadow",value:function(){var t=this.slides,e=this.index,i=this.offsetWidth;if(this.loop&&1!==t.length){var n=t[t.length-1].cloneNode(!0),s=t[0].cloneNode(!0);this.wrap.appendChild(n),this.wrap.appendChild(s),n.style.transform="translateX(".concat((-1-e)*i,"px)"),s.style.transform="translateX(".concat((t.length-e)*i,"px)"),this.beforeShadow=n,this.afterShadow=s}}},{key:"_useAnimate",value:function(){var t=this,e=this.wrap,i=e.offsetWidth;if(i||setTimeout((function(){t._useAnimate()}),200),this.offsetWidth=i,this.animated){var n=this.slides,s=this.index,a=n.length;if(a<=1)return e.style.visibility="visible",void[].forEach.call(n,(function(t){t.style.transform="translateX(0px)"}));e.style.width="".concat(100*a,"%");var o="".concat(100/a,"%");[].forEach.call(n,(function(t,e){t.style.width=o,t.style.transform="translateX(".concat((e-s)*i,"px)")})),e.style.visibility="visible"}else e.style.visibility="visible"}},{key:"_bindEvents",value:function(){var t=this.el,e=this.events;t&&(e.touchstart=this._start.bind(this),e.touchmove=this._move.bind(this),e.touchend=this._end.bind(this),t.addEventListener("touchstart",e.touchstart,{passive:!0}),t.addEventListener("touchmove",e.touchmove,{passive:!0}),t.addEventListener("touchend",e.touchend,{passive:!0}))}},{key:"_start",value:function(t){this.touching=!0;var e=t.touches[0];this.startPoint={x:e.pageX,y:e.pageY},this.startAt=+new Date}},{key:"_move",value:function(t){var e=t.touches[0],i=this.startPoint,n=this.maxDeltaPoint,s={x:e.pageX-i.x,y:e.pageY-i.y};if(this.maxDeltaPoint={x:Math.max(n.x,Math.abs(s.x)),y:Math.max(n.y,Math.abs(s.y))},this.deltaPoint=s,this.isMoveSlide=!0,this._lockedSwipeEvents(),!this._isVerticalScroll(this.maxDeltaPoint)&&this.animated&&!this._isEnded(s)){var a=s.x,o=a>0,r=this.slides,h=this.index,l=this.offsetWidth;this._translate(r[h],a),o?this._translate(r[h-1],a-l):this._translate(r[h+1],l+a),this._loopAdjust(o,h,a)}}},{key:"_end",value:function(){if(this.touching=!1,this.startAt&&this.isMoveSlide){this.isMoveSlide=!1,this._unlockSwipeEvents();var t=this.maxDeltaPoint,e=this.deltaPoint,i=this.offsetWidth,n=e.x>0;if(this.maxDeltaPoint={x:0,y:0},this._isVerticalScroll(t)||this._isEnded(e)||!this._isValidSlide(e)){if(!this.animated)return;var s=this.slides,a=this.index,o=this.duration;return this._translate(s[a],0,o),n?(this._translate(s[a-1],-i,o),this._translate(s[a+1],i)):(this._translate(s[a+1],i,o),this._translate(s[a-1],-i)),this.loop&&(n&&0===a?this._translate(this.beforeShadow,-i,o):n||a!==s.length-1||this._translate(this.afterShadow,i,o)),void this._lockEvent()}var r=n?this.index-1:this.index+1;if(this.animated){var h=this.slides,l=this.index,u=this.duration;this._translate(h[l],n?i:-i,u),this._translate(h[l-1],n?0:-i,n?u:0),this._translate(h[l+1],n?i:0,n?0:u),this.loop&&(r=this._loopJump(n,l,r))}this.callback&&this.callback(r),this._updateEvents(r),this._lockEvent()}}},{key:"_animateSlide",value:function(t,e,i){var n=this;if(this.animated){var s=this.offsetWidth,a=this.slides,o=this.duration,r=t<e;this._loopAdjust(r,t),this._translate(a[t],r?-s:s);var h=t;setTimeout((function(){n._translate(a[t],0,o),n._translate(a[e],r?s:-s,o),e!==t+1&&n._translate(a[t+1],s),e!==t-1&&n._translate(a[t-1],-s),n.loop&&(h=n._loopJump(r,e,t)),n._updateEvents(h),i&&setTimeout((function(){n.callback&&n.callback(h)}),n.duration)}),0)}}},{key:"_loopJump",value:function(t,e,i){var n,s=this.slides,a=this.duration,o=this.offsetWidth;return t&&0===e?(n=s.length-1,this._translate(this.beforeShadow,0,a),this._translate(this.afterShadow,o),this._loopReset(!0)):t||e!==s.length-1?n=i:(n=0,this._translate(this.afterShadow,0,a),this._translate(this.beforeShadow,-o),this._loopReset(!1)),n}},{key:"_loopAdjust",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.loop){var n=this.offsetWidth,s=this.slides;t&&0===e?this._translate(this.beforeShadow,i-n):t||e!==s.length-1||this._translate(this.afterShadow,n+i)}}},{key:"_loopReset",value:function(t){var e=this,i=this.offsetWidth,n=this.slides;setTimeout((function(){t?(e._translate(n[n.length-1],0,0),e._translate(n[n.length-2],-i,0),e._translate(e.beforeShadow,i,0)):(e._translate(n[0],0,0),e._translate(n[1],i,0),e._translate(e.afterShadow,-i,0))}),this.duration)}},{key:"_lockEvent",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.lastNextAt=Date.now(),this.move=!0,setTimeout((function(){t.move=!1}),this.duration*e)}},{key:"_lockedSwipeEvents",value:function(){this.animated&&(this.el.style["touch-action"]="none")}},{key:"_unlockSwipeEvents",value:function(){this.animated&&(this.el.style["touch-action"]="auto")}},{key:"_isVerticalScroll",value:function(t){return Math.abs(t.x)<1.5*Math.abs(t.y)}},{key:"_isValidSlide",value:function(t){var e=Math.abs(t.x),i=Number(+new Date-this.startAt)<250&&e>20||e>this.offsetWidth/2;return this.startAt=0,i}},{key:"_translate",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t&&(t.style["".concat(this.cssPrefix,"transition-duration")]=n?"".concat(n,"ms"):"",requestAnimationFrame((function(){t.style["".concat(i.cssPrefix,"transform")]="translateX(".concat(e,"px)")})))}},{key:"_isEnded",value:function(t){if(this.loop)return!1;var e=t.x>0;return e&&0===this.index||!e&&this.index===this.slides.length-1}},{key:"_calcCssPrefix",value:function(){this.animated&&(this.cssPrefix=Object(n.c)())}}])&&a(e.prototype,i),o&&a(e,o),t}()},40:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.length?i("div",{staticClass:"v-swipe",on:{touchstart:function(t){t.stopPropagation()},touchmove:function(t){t.stopPropagation()},touchend:function(t){t.stopPropagation()}}},[i("div",{ref:"wrap",staticClass:"v-swipe__wrap"},t._l(t.length,(function(e,n){return i("div",{key:e,staticClass:"v-swipe__item"},[t._t(""+n)],2)})),0),t._v(" "),t.length>1&&t.indicator?i("div",{staticClass:"v-swipe__indicator"},t._l(t.length,(function(e,n){return i("div",{key:e,staticClass:"v-swipe__indicator__item",class:{"is-active":n===t.active}})})),0):t._e()]):t._e()};n._withStripped=!0;i(59);var s=i(12),a={name:"VSwipe",props:{duration:{type:Number,default:500},autoplay:{type:Number,default:2e3},index:{type:Number,default:0},length:{type:Number,default:0},indicator:{type:Boolean,default:!0}},data:function(){return{active:this.index,timer:0,slider:null,stats:[this.index]}},mounted:function(){this.init(),this.play(),this.$emit("change",this.active),this.$emit("report",this.active)},beforeDestroy:function(){clearInterval(this.timer)},methods:{init:function(){var t=this;this.slider=new s.a({wrap:this.$refs.wrap,loop:!0,index:this.active,animated:!0,duration:this.duration,callback:function(e){t.active=e,t.$emit("change",e),~t.stats.indexOf(e)||(t.stats.push(e),t.$emit("report",e))}})},play:function(){var t=this;this.autoplay&&(this.timer=setInterval((function(){t.slider.offsetWidth&&t.slider.next(t.autoplay)}),this.autoplay))}}},o=i(0),r=Object(o.a)(a,n,[],!1,null,null,null);r.options.__file="src/components/swipe/swipe.vue";var h=r.exports;e.default=h},5:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"a",(function(){return s})),i.d(e,"c",(function(){return a}));var n=function(){if("undefined"!=typeof window)return document.addEventListener?function(t,e,i){t&&e&&i&&t.addEventListener(e,i,!1)}:function(t,e,i){t&&e&&i&&t.attachEvent("on"+e,i)}}(),s=function(){if("undefined"!=typeof window)return document.removeEventListener?function(t,e,i){t&&e&&t.removeEventListener(e,i,!1)}:function(t,e,i){t&&e&&t.detachEvent("on"+e,i)}}(),a=function(){var t="",e=/^(Webkit|Khtml|Moz|ms|O)(?=[A-Z])/,i=document.getElementsByTagName("script")[0].style;for(var n in i)e.test(n)&&(t="-"+n.match(e)[0].toLowerCase()+"-");return!t&&"WebkitOpacity"in i&&(t="-webkit-"),!t&&"KhtmlOpacity"in i&&(t="-khtml-"),t}},59:function(t,e,i){}})}));

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,function(e){return t[e]}.bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=30)}({0:function(t,e,i){"use strict";function n(t,e,i,n,s,a,o,r){var h,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=i,c._compiled=!0),n&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(h=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=h):s&&(h=r?function(){s.call(this,this.$root.$options.shadowRoot)}:s),h)if(c.functional){c._injectStyles=h;var l=c.render;c.render=function(t,e){return h.call(e),l(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,h):[h]}return{exports:t,options:c}}i.d(e,"a",(function(){return n}))},12:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i(5);function s(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var o=function(){function t(e){var i=this;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.wrap=e.wrap,this.loop=e.loop,this.index=e.index,this.animated=e.animated,this.duration=e.duration,this.callback=e.callback,this._calcCssPrefix(),this._setupConst(),this.loop?setTimeout((function(){i._useAnimate(),i._cloneShadow(),i._bindEvents()}),0):(this._useAnimate(),this._cloneShadow(),this._bindEvents()),this}var e,i,o;return e=t,(i=[{key:"slide",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t===this.index||this.move||(this._lockEvent(1.2),this._animateSlide(t,this.index,e))}},{key:"next",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=this.slides.length;1===e||this.touching||this.move||this.index===e-1&&!this.loop||t&&Date.now()-this.lastNextAt<t||this.slide(this.index+1,!0)}},{key:"destroy",value:function(){var t=this.el,e=this.events;t&&(t.removeEventListener("touchstart",e.touchstart,{passive:!0}),t.removeEventListener("touchmove",e.touchmove,{passive:!0}),t.removeEventListener("touchend",e.touchend,{passive:!0}))}},{key:"_updateEvents",value:function(t){this.destroy(),this.el=this.slides[t],this.index=t,this.events={},this._bindEvents()}},{key:"_setupConst",value:function(){this.slides=s(this.wrap.children),this.startAt=0,this.lastNextAt=0,this.move=!1,this.touching=!1,this.isMoveSlide=!1,this.maxDeltaPoint={x:0,y:0},this.deltaPoint={x:0,y:0},this.el=this.slides[this.index],this.events={}}},{key:"_cloneShadow",value:function(){var t=this.slides,e=this.index,i=this.offsetWidth;if(this.loop&&1!==t.length){var n=t[t.length-1].cloneNode(!0),s=t[0].cloneNode(!0);this.wrap.appendChild(n),this.wrap.appendChild(s),n.style.transform="translateX(".concat((-1-e)*i,"px)"),s.style.transform="translateX(".concat((t.length-e)*i,"px)"),this.beforeShadow=n,this.afterShadow=s}}},{key:"_useAnimate",value:function(){var t=this,e=this.wrap,i=e.offsetWidth;if(i||setTimeout((function(){t._useAnimate()}),200),this.offsetWidth=i,this.animated){var n=this.slides,s=this.index,a=n.length;if(a<=1)return e.style.visibility="visible",void[].forEach.call(n,(function(t){t.style.transform="translateX(0px)"}));e.style.width="".concat(100*a,"%");var o="".concat(100/a,"%");[].forEach.call(n,(function(t,e){t.style.width=o,t.style.transform="translateX(".concat((e-s)*i,"px)")})),e.style.visibility="visible"}else e.style.visibility="visible"}},{key:"_bindEvents",value:function(){var t=this.el,e=this.events;t&&(e.touchstart=this._start.bind(this),e.touchmove=this._move.bind(this),e.touchend=this._end.bind(this),t.addEventListener("touchstart",e.touchstart,{passive:!0}),t.addEventListener("touchmove",e.touchmove,{passive:!0}),t.addEventListener("touchend",e.touchend,{passive:!0}))}},{key:"_start",value:function(t){this.touching=!0;var e=t.touches[0];this.startPoint={x:e.pageX,y:e.pageY},this.startAt=+new Date}},{key:"_move",value:function(t){var e=t.touches[0],i=this.startPoint,n=this.maxDeltaPoint,s={x:e.pageX-i.x,y:e.pageY-i.y};if(this.maxDeltaPoint={x:Math.max(n.x,Math.abs(s.x)),y:Math.max(n.y,Math.abs(s.y))},this.deltaPoint=s,this.isMoveSlide=!0,this._lockedSwipeEvents(),!this._isVerticalScroll(this.maxDeltaPoint)&&this.animated&&!this._isEnded(s)){var a=s.x,o=a>0,r=this.slides,h=this.index,c=this.offsetWidth;this._translate(r[h],a),o?this._translate(r[h-1],a-c):this._translate(r[h+1],c+a),this._loopAdjust(o,h,a)}}},{key:"_end",value:function(){if(this.touching=!1,this.startAt&&this.isMoveSlide){this.isMoveSlide=!1,this._unlockSwipeEvents();var t=this.maxDeltaPoint,e=this.deltaPoint,i=this.offsetWidth,n=e.x>0;if(this.maxDeltaPoint={x:0,y:0},this._isVerticalScroll(t)||this._isEnded(e)||!this._isValidSlide(e)){if(!this.animated)return;var s=this.slides,a=this.index,o=this.duration;return this._translate(s[a],0,o),n?(this._translate(s[a-1],-i,o),this._translate(s[a+1],i)):(this._translate(s[a+1],i,o),this._translate(s[a-1],-i)),this.loop&&(n&&0===a?this._translate(this.beforeShadow,-i,o):n||a!==s.length-1||this._translate(this.afterShadow,i,o)),void this._lockEvent()}var r=n?this.index-1:this.index+1;if(this.animated){var h=this.slides,c=this.index,l=this.duration;this._translate(h[c],n?i:-i,l),this._translate(h[c-1],n?0:-i,n?l:0),this._translate(h[c+1],n?i:0,n?0:l),this.loop&&(r=this._loopJump(n,c,r))}this.callback&&this.callback(r),this._updateEvents(r),this._lockEvent()}}},{key:"_animateSlide",value:function(t,e,i){var n=this;if(this.animated){var s=this.offsetWidth,a=this.slides,o=this.duration,r=t<e;this._loopAdjust(r,t),this._translate(a[t],r?-s:s);var h=t;setTimeout((function(){n._translate(a[t],0,o),n._translate(a[e],r?s:-s,o),e!==t+1&&n._translate(a[t+1],s),e!==t-1&&n._translate(a[t-1],-s),n.loop&&(h=n._loopJump(r,e,t)),n._updateEvents(h),i&&setTimeout((function(){n.callback&&n.callback(h)}),n.duration)}),0)}}},{key:"_loopJump",value:function(t,e,i){var n,s=this.slides,a=this.duration,o=this.offsetWidth;return t&&0===e?(n=s.length-1,this._translate(this.beforeShadow,0,a),this._translate(this.afterShadow,o),this._loopReset(!0)):t||e!==s.length-1?n=i:(n=0,this._translate(this.afterShadow,0,a),this._translate(this.beforeShadow,-o),this._loopReset(!1)),n}},{key:"_loopAdjust",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.loop){var n=this.offsetWidth,s=this.slides;t&&0===e?this._translate(this.beforeShadow,i-n):t||e!==s.length-1||this._translate(this.afterShadow,n+i)}}},{key:"_loopReset",value:function(t){var e=this,i=this.offsetWidth,n=this.slides;setTimeout((function(){t?(e._translate(n[n.length-1],0,0),e._translate(n[n.length-2],-i,0),e._translate(e.beforeShadow,i,0)):(e._translate(n[0],0,0),e._translate(n[1],i,0),e._translate(e.afterShadow,-i,0))}),this.duration)}},{key:"_lockEvent",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.lastNextAt=Date.now(),this.move=!0,setTimeout((function(){t.move=!1}),this.duration*e)}},{key:"_lockedSwipeEvents",value:function(){this.animated&&(this.el.style["touch-action"]="none")}},{key:"_unlockSwipeEvents",value:function(){this.animated&&(this.el.style["touch-action"]="auto")}},{key:"_isVerticalScroll",value:function(t){return Math.abs(t.x)<1.5*Math.abs(t.y)}},{key:"_isValidSlide",value:function(t){var e=Math.abs(t.x),i=Number(+new Date-this.startAt)<250&&e>20||e>this.offsetWidth/2;return this.startAt=0,i}},{key:"_translate",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t&&(t.style["".concat(this.cssPrefix,"transition-duration")]=n?"".concat(n,"ms"):"",requestAnimationFrame((function(){t.style["".concat(i.cssPrefix,"transform")]="translateX(".concat(e,"px)")})))}},{key:"_isEnded",value:function(t){if(this.loop)return!1;var e=t.x>0;return e&&0===this.index||!e&&this.index===this.slides.length-1}},{key:"_calcCssPrefix",value:function(){this.animated&&(this.cssPrefix=Object(n.c)())}}])&&a(e.prototype,i),o&&a(e,o),t}()},14:function(t,e,i){"use strict";var n=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"v-affix"},[e("div",{directives:[{name:"show",rawName:"v-show",value:this.showFixedShim,expression:"showFixedShim"}],style:this.fixedShimStyle}),this._v(" "),e("div",{ref:"wrap",class:{"v-affix--fixed":!this.disabled&&this.isFixed},style:this.fixedSlotStyle},[this._t("default")],2)])};n._withStripped=!0;i(21);var s=i(5),a=i(2),o={name:"VAffix",props:{fixedTop:{type:Number},disabled:{type:Boolean,default:!1}},data:function(){return{isFixed:!1,showFixedShim:!1,fixedShimStyle:{},fixedSlotStyle:{}}},mounted:function(){var t=this;if(void 0!==this.fixedTop){var e=Object(a.e)(this.$el);Object(s.b)(e,"scroll",this.handleScroll),Object(s.b)(e,"resize",this.handleScroll),this.$nextTick((function(){t.handleScroll()}))}},beforeDestroy:function(){if(void 0!==this.fixedTop){var t=Object(a.e)(this.$el);Object(s.a)(t,"scroll",this.handleScroll),Object(s.a)(t,"resize",this.handleScroll)}},methods:{handleScroll:function(){var t=this.isFixed,e=Object(a.d)(window,!0),i=Object(a.c)(this.$el);if(i.top-this.fixedTop<=e&&!t){this.isFixed=!0;var n=this.$refs.wrap;this.fixedShimStyle={width:"".concat(n.clientWidth,"px"),height:"".concat(n.clientHeight,"px")},this.showFixedShim=!0,this.fixedSlotStyle={top:"".concat(this.fixedTop,"px"),left:"".concat(i.left,"px"),width:"".concat(this.$el.offsetWidth,"px")},this.$emit("on-fixed",!0)}else i.top-this.fixedTop>e&&t&&(this.showFixedShim=!1,this.fixedShimStyle={},this.isFixed=!1,this.fixedSlotStyle=null,this.$emit("on-fixed",!1))}}},r=i(0),h=Object(r.a)(o,n,[],!1,null,null,null);h.options.__file="src/components/affix/affix.vue";e.a=h.exports},2:function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),i.d(e,"f",(function(){return s})),i.d(e,"b",(function(){return r})),i.d(e,"d",(function(){return h})),i.d(e,"c",(function(){return c})),i.d(e,"e",(function(){return l}));var n=function(t,e){if(t){for(var i=t.className,n=(e||"").split(" "),s=0,a=n.length;s<a;s++){var r=n[s];r&&(t.classList?t.classList.add(r):o(t,r)||(i+=" "+r))}t.classList||(t.className=i)}},s=function(t,e){if(t&&e){for(var i=e.split(" "),n=" "+t.className+" ",s=0,r=i.length;s<r;s++){var h=i[s];h&&(t.classList?t.classList.remove(h):o(t,h)&&(n=n.replace(" "+h+" "," ")))}t.classList||(t.className=a(n))}},a=function(t){return(t||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},o=function(t,e){if(!t||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):(" "+t.className+" ").includes(" "+e+" ")},r=function(t,e){var i=-1;return t.map((function(t){return t.route})).forEach((function(t,n){e.startsWith(t)&&(i=n)})),i},h=function(t,e){var i=e?"scrollTop":"scrollLeft",n=t[e?"pageYOffset":"pageXOffset"];return"number"!=typeof n&&(n=window.document.documentElement[i]),n},c=function(t){var e=t.getBoundingClientRect(),i=h(window,!0),n=h(window),s=window.document.body,a=s.clientTop||0,o=s.clientLeft||0;return{top:e.top+i-a,left:e.left+n-o}},l=function(t){var e=t;if(!e)return null;for(;e&&"HTML"!==e.tagName&&"BOYD"!==e.tagName&&1===e.nodeType;){var i=window.getComputedStyle(e).overflowY;if("scroll"===i||"auto"===i)return"HTML"===e.tagName||"BODY"===e.tagName?document:e;e=e.parentNode}return document}},21:function(t,e,i){},30:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"v-switcher"},[i("v-affix",{directives:[{name:"show",rawName:"v-show",value:t.headerCount>1,expression:"headerCount > 1"}],attrs:{"fixed-top":t.fixedTop,disabled:void 0===t.fixedTop||t.headerCount<=1}},[i("div",{ref:"headerWrap",staticClass:"v-switcher__header",style:{height:t.headerHeight+"px"}},[i("div",{staticClass:"v-switcher__header__before"},[t._t("header-before")],2),t._v(" "),i("div",{staticClass:"v-switcher__header__after"},[t._t("header-after")],2),t._v(" "),i("div",{ref:"tabWrap",staticClass:"v-switcher__header__tabs__wrap"},[i("ul",{ref:"header",staticClass:"v-switcher__header__tabs__list",class:"v-switcher__header--"+t.align},[t._l(t.formatHeaders,(function(e,n){return i("li",{key:n,ref:"tab",refInFor:!0,staticClass:"v-switcher__header__tabs__item",class:{"is-active":n===t.focusIndex},style:t.headerItemStyle,on:{click:function(e){return t._handleTabSwitch(n)}}},[t._t("tab-"+n,[e.icon?i("i",{class:e.icon}):t._e(),t._v(" "),i("span",{domProps:{textContent:t._s(e.text)}})])],2)})),t._v(" "),i("div",{staticClass:"v-switcher__header__anchor",style:t.anchorStyle},[t._t("anchor")],2)],2)])])]),t._v(" "),t.routable?t._e():i("div",{ref:"content",staticClass:"v-switcher__content",class:"v-switcher__content--"+t.contentMode,style:t.contentWrapStyle},[i("div",{ref:"contentWrap",staticClass:"v-switcher__content__wrap"},t._l(t.headers,(function(e,n){return i("div",{key:n,staticClass:"v-switcher__content__item",class:{"is-active":~t.displayContent.indexOf(n)}},[t._t(n)],2)})),0)])],1)};n._withStripped=!0;i(53);var s=i(5),a=i(2),o=i(14),r=i(12);function h(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var c=function(){function t(e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=e.el,this.vertical=e.vertical||!1,this.maxOffset=e.maxOffset||0,this.lastOffset=0,this.offset=0,this.delta=0,this.prefix=Object(s.c)(),this.events={},this.scroll(),this._bind(),this}var e,i,n;return e=t,(i=[{key:"scroll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.maxOffset){var i=t;t<this.maxOffset?i=this.maxOffset:t>0&&(i=0),this.el.style["".concat(this.prefix,"transition-duration")]=e?"".concat(e,"ms"):"",this.el.style["".concat(this.prefix,"transform")]=this.vertical?"translateY(".concat(i,"px)"):"translateX(".concat(i,"px)"),this.offset=i}}},{key:"reset",value:function(t,e){this.maxOffset=e,this.scroll(t)}},{key:"destroy",value:function(){var t=this.el,e=this.events;t&&(t.removeEventListener("touchstart",e.touchstart),t.removeEventListener("touchmove",e.touchmove),t.removeEventListener("touchend",e.touchend))}},{key:"_bind",value:function(){var t=this.el,e=this.events;t&&(e.touchstart=this._start.bind(this),e.touchmove=this._move.bind(this),e.touchend=this._end.bind(this),t.addEventListener("touchstart",e.touchstart),t.addEventListener("touchmove",e.touchmove),t.addEventListener("touchend",e.touchend))}},{key:"_start",value:function(t){t.stopPropagation();var e=t.touches[0];this.delta=this.vertical?e.pageY:e.pageX}},{key:"_move",value:function(t){t.stopPropagation();var e=t.touches[0],i=(this.vertical?e.pageY:e.pageX)-this.delta,n=this.lastOffset+i;this.scroll(n)}},{key:"_end",value:function(t){t.stopPropagation(),this.lastOffset=this.offset}}])&&h(e.prototype,i),n&&h(e,n),t}(),l={name:"VSwitcher",components:{VAffix:o.a},props:{headers:{type:Array,required:!0},defaultIndex:{type:Number,default:0},routable:{type:Boolean,default:!1},align:{type:String,default:"start",validator:function(t){return~["around","start","center","end"].indexOf(t)}},anchorPadding:{type:Number,default:16,validator:function(t){return t>=0}},headerHeight:{type:Number,default:40,validator:function(t){return t>=0}},fixedTop:{type:Number},swipe:{type:Boolean,default:!0},sticky:{type:Boolean,default:!0},duration:{type:Number,default:300,validator:function(t){return t>=0}}},data:function(){return{focusIndex:this.routable?Object(a.b)(this.headers,this.$route.path):this.defaultIndex,oldFocusIndex:-1,anchorStyle:{},slider:null,scroller:null,sizeCache:{tabs:[],header:null,tabsWrapWidth:0,headerWrapWidth:0,headerScrollMaxSize:0}}},computed:{displayContent:function(){var t=this.focusIndex;return"swipe"===this.contentMode?[this.oldFocusIndex,t-1,t,t+1]:[t]},formatHeaders:function(){var t=this,e=[];return this.headers.forEach((function(i,n){e.push({text:t._computeItemText(i,n),icon:t._computeItemIcon(i,n)})})),e},headerCount:function(){return this.headers.length},headerItemStyle:function(){return{height:"".concat(this.headerHeight,"px"),lineHeight:"".concat(this.headerHeight,"px")}},contentWrapStyle:function(){return this.headerCount<=1?{}:{paddingTop:"".concat(this.headerHeight,"px"),marginTop:"-".concat(this.headerHeight,"px")}},contentMode:function(){return this.sticky&&this.duration&&this.swipe?"swipe":!this.swipe||this.sticky&&this.duration?"click":"slide"}},mounted:function(){var t=this;this.$nextTick((function(){t._setComponentSize(),t._initSwipe(),t._initScroller(),t._computeAnchorStyle(t.focusIndex),t._computeHeaderStyle(0),t.$watch("headers",(function(e){t.$nextTick((function(){var i=t.focusIndex;t._setComponentSize(),t.routable&&t._handleTabSwitch(Object(a.b)(e,t.$route.path)),i!==t.focusIndex&&(t._computeAnchorStyle(t.focusIndex),t._computeHeaderStyle(i))}))})),t.$watch("focusIndex",(function(e,i){t._computeAnchorStyle(e),t._computeHeaderStyle(i),t.$emit("change",e)})),t.routable&&t.$watch("$route",(function(e){t._handleTabSwitch(Object(a.b)(t.headers,e.path))})),t.$emit("change",t.focusIndex),Object(s.b)(window,"resize",t._setComponentSize)}))},beforeDestroy:function(){Object(s.a)(window,"resize",this._setComponentSize),this.slider&&this.slider.destroy(),this.scroller&&this.scroller.destroy()},methods:{slide:function(t){t<0||t>this.headerCount-1||this._handleTabSwitch(t)},_initSwipe:function(){var t=this;"click"!==this.contentMode&&(this.slider=new r.a({wrap:this.$refs.contentWrap,loop:!1,index:this.focusIndex,animated:"swipe"===this.contentMode,duration:this.duration,callback:function(e){t.focusIndex=e}}))},_initScroller:function(){"start"===this.align&&(this.scroller=new c({el:this.$refs.header,maxOffset:this.sizeCache.headerScrollMaxSize}))},_handleTabSwitch:function(t){if(this.slider){if(this.slider.move)return;this.oldFocusIndex=this.focusIndex,this.slider.slide(t)}this.focusIndex=t,t<0&&(this.anchorStyle.transform="translateX(-100%)")},_computeHeaderStyle:function(t){var e=this;if(0!==this.sizeCache.headerScrollMaxSize){var i=this.focusIndex;if(!(i<0)){var n=this.scroller?this.scroller.offset:0,s=this.sizeCache.headerScrollMaxSize;if(i)if(i===this.headerCount-1)n=s;else{var a=this._getComponentSize("tabs",0).left,o=this._getComponentSize("tabs",i),r=function(){var t=e._getComponentSize("tabs",i+1).right-a-e.sizeCache.tabsWrapWidth;t>0&&(n=-t);var s=o.left-a;n+s<0&&(n=-s)};if(t>i){var h=this._getComponentSize("tabs",i-1);if(h.left+n<a){n=a-h.left;var c=o.right-a-this.sizeCache.tabsWrapWidth;c>n>0&&(n=-c)}else r()}else r()}else n=0;n<s?n=s:n>0&&(n=0),this.scroller&&this.scroller.scroll(n,this.duration)}}},_computeAnchorStyle:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!(t<0)){var n=this._getComponentSize("tabs",t);if(n){var s=+this.anchorPadding,a=this._getComponentSize("header"),o="around"===this.align;this.anchorStyle={width:"".concat(o?n.width:n.width-2*s,"px"),transform:"translateX(".concat(o?n.left-a.left:n.left-a.left+s,"px)"),transitionDuration:"".concat(this.duration,"ms")}}else i<5&&setTimeout((function(){e._computeAnchorStyle(e.focusIndex,i+1)}),200)}},_computeItemText:function(t,e){var i;if("string"==typeof t)i=t;else if(i=t.label||t.name||t.text,this.focusIndex===e){var n=t["label-active"]||t["name-active"]||t["text-active"];n&&(i=n)}return i},_computeItemIcon:function(t,e){var i;return"string"!=typeof t&&t.icon?(i=t.icon,this.focusIndex===e&&t["icon-active"]&&(i=t["icon-active"])):i="",i},_setComponentSize:function(){var t=this.$refs.tab;if(t){var e=[];t.forEach((function(t){var i=t.getBoundingClientRect();e.push({top:i.top,left:i.left,right:i.right,bottom:i.bottom,width:i.width,height:i.height})})),this.sizeCache.tabs=e}var i=this.$refs.headerWrap;i&&(this.sizeCache.headerWrapWidth=i.clientWidth);var n=this.$refs.tabWrap;n&&(this.sizeCache.tabsWrapWidth=n.clientWidth);var s=this.$refs.header;if(s){var a=s.getBoundingClientRect();this.sizeCache.header={top:a.top,left:a.left,right:a.right,bottom:a.bottom}}var o=this.sizeCache.tabs[this.headerCount-1].right-this.sizeCache.tabs[0].left;this.sizeCache.headerScrollMaxSize=o<this.sizeCache.tabsWrapWidth?0:this.sizeCache.tabsWrapWidth-o},_getComponentSize:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,i=this.sizeCache[t];return i?e>=0?i[e]?i[e]:null:i:null}}},d=i(0),u=Object(d.a)(l,n,[],!1,null,null,null);u.options.__file="src/components/switcher/switcher.vue";var f=u.exports;e.default=f},5:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"a",(function(){return s})),i.d(e,"c",(function(){return a}));var n=function(){if("undefined"!=typeof window)return document.addEventListener?function(t,e,i){t&&e&&i&&t.addEventListener(e,i,!1)}:function(t,e,i){t&&e&&i&&t.attachEvent("on"+e,i)}}(),s=function(){if("undefined"!=typeof window)return document.removeEventListener?function(t,e,i){t&&e&&t.removeEventListener(e,i,!1)}:function(t,e,i){t&&e&&t.detachEvent("on"+e,i)}}(),a=function(){var t="",e=/^(Webkit|Khtml|Moz|ms|O)(?=[A-Z])/,i=document.getElementsByTagName("script")[0].style;for(var n in i)e.test(n)&&(t="-"+n.match(e)[0].toLowerCase()+"-");return!t&&"WebkitOpacity"in i&&(t="-webkit-"),!t&&"KhtmlOpacity"in i&&(t="-khtml-"),t}},53:function(t,e,i){}})}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,function(e){return t[e]}.bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=31)}({0:function(t,e,i){"use strict";function n(t,e,i,n,s,a,o,r){var h,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=i,c._compiled=!0),n&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(h=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=h):s&&(h=r?function(){s.call(this,this.$root.$options.shadowRoot)}:s),h)if(c.functional){c._injectStyles=h;var l=c.render;c.render=function(t,e){return h.call(e),l(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,h):[h]}return{exports:t,options:c}}i.d(e,"a",(function(){return n}))},12:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i(5);function s(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var o=function(){function t(e){var i=this;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.wrap=e.wrap,this.loop=e.loop,this.index=e.index,this.animated=e.animated,this.duration=e.duration,this.callback=e.callback,this._calcCssPrefix(),this._setupConst(),this.loop?setTimeout((function(){i._useAnimate(),i._cloneShadow(),i._bindEvents()}),0):(this._useAnimate(),this._cloneShadow(),this._bindEvents()),this}var e,i,o;return e=t,(i=[{key:"slide",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t===this.index||this.move||(this._lockEvent(1.2),this._animateSlide(t,this.index,e))}},{key:"next",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=this.slides.length;1===e||this.touching||this.move||this.index===e-1&&!this.loop||t&&Date.now()-this.lastNextAt<t||this.slide(this.index+1,!0)}},{key:"destroy",value:function(){var t=this.el,e=this.events;t&&(t.removeEventListener("touchstart",e.touchstart,{passive:!0}),t.removeEventListener("touchmove",e.touchmove,{passive:!0}),t.removeEventListener("touchend",e.touchend,{passive:!0}))}},{key:"_updateEvents",value:function(t){this.destroy(),this.el=this.slides[t],this.index=t,this.events={},this._bindEvents()}},{key:"_setupConst",value:function(){this.slides=s(this.wrap.children),this.startAt=0,this.lastNextAt=0,this.move=!1,this.touching=!1,this.isMoveSlide=!1,this.maxDeltaPoint={x:0,y:0},this.deltaPoint={x:0,y:0},this.el=this.slides[this.index],this.events={}}},{key:"_cloneShadow",value:function(){var t=this.slides,e=this.index,i=this.offsetWidth;if(this.loop&&1!==t.length){var n=t[t.length-1].cloneNode(!0),s=t[0].cloneNode(!0);this.wrap.appendChild(n),this.wrap.appendChild(s),n.style.transform="translateX(".concat((-1-e)*i,"px)"),s.style.transform="translateX(".concat((t.length-e)*i,"px)"),this.beforeShadow=n,this.afterShadow=s}}},{key:"_useAnimate",value:function(){var t=this,e=this.wrap,i=e.offsetWidth;if(i||setTimeout((function(){t._useAnimate()}),200),this.offsetWidth=i,this.animated){var n=this.slides,s=this.index,a=n.length;if(a<=1)return e.style.visibility="visible",void[].forEach.call(n,(function(t){t.style.transform="translateX(0px)"}));e.style.width="".concat(100*a,"%");var o="".concat(100/a,"%");[].forEach.call(n,(function(t,e){t.style.width=o,t.style.transform="translateX(".concat((e-s)*i,"px)")})),e.style.visibility="visible"}else e.style.visibility="visible"}},{key:"_bindEvents",value:function(){var t=this.el,e=this.events;t&&(e.touchstart=this._start.bind(this),e.touchmove=this._move.bind(this),e.touchend=this._end.bind(this),t.addEventListener("touchstart",e.touchstart,{passive:!0}),t.addEventListener("touchmove",e.touchmove,{passive:!0}),t.addEventListener("touchend",e.touchend,{passive:!0}))}},{key:"_start",value:function(t){this.touching=!0;var e=t.touches[0];this.startPoint={x:e.pageX,y:e.pageY},this.startAt=+new Date}},{key:"_move",value:function(t){var e=t.touches[0],i=this.startPoint,n=this.maxDeltaPoint,s={x:e.pageX-i.x,y:e.pageY-i.y};if(this.maxDeltaPoint={x:Math.max(n.x,Math.abs(s.x)),y:Math.max(n.y,Math.abs(s.y))},this.deltaPoint=s,this.isMoveSlide=!0,this._lockedSwipeEvents(),!this._isVerticalScroll(this.maxDeltaPoint)&&this.animated&&!this._isEnded(s)){var a=s.x,o=a>0,r=this.slides,h=this.index,c=this.offsetWidth;this._translate(r[h],a),o?this._translate(r[h-1],a-c):this._translate(r[h+1],c+a),this._loopAdjust(o,h,a)}}},{key:"_end",value:function(){if(this.touching=!1,this.startAt&&this.isMoveSlide){this.isMoveSlide=!1,this._unlockSwipeEvents();var t=this.maxDeltaPoint,e=this.deltaPoint,i=this.offsetWidth,n=e.x>0;if(this.maxDeltaPoint={x:0,y:0},this._isVerticalScroll(t)||this._isEnded(e)||!this._isValidSlide(e)){if(!this.animated)return;var s=this.slides,a=this.index,o=this.duration;return this._translate(s[a],0,o),n?(this._translate(s[a-1],-i,o),this._translate(s[a+1],i)):(this._translate(s[a+1],i,o),this._translate(s[a-1],-i)),this.loop&&(n&&0===a?this._translate(this.beforeShadow,-i,o):n||a!==s.length-1||this._translate(this.afterShadow,i,o)),void this._lockEvent()}var r=n?this.index-1:this.index+1;if(this.animated){var h=this.slides,c=this.index,l=this.duration;this._translate(h[c],n?i:-i,l),this._translate(h[c-1],n?0:-i,n?l:0),this._translate(h[c+1],n?i:0,n?0:l),this.loop&&(r=this._loopJump(n,c,r))}this.callback&&this.callback(r),this._updateEvents(r),this._lockEvent()}}},{key:"_animateSlide",value:function(t,e,i){var n=this;if(this.animated){var s=this.offsetWidth,a=this.slides,o=this.duration,r=t<e;this._loopAdjust(r,t),this._translate(a[t],r?-s:s);var h=t;setTimeout((function(){n._translate(a[t],0,o),n._translate(a[e],r?s:-s,o),e!==t+1&&n._translate(a[t+1],s),e!==t-1&&n._translate(a[t-1],-s),n.loop&&(h=n._loopJump(r,e,t)),n._updateEvents(h),i&&setTimeout((function(){n.callback&&n.callback(h)}),n.duration)}),0)}}},{key:"_loopJump",value:function(t,e,i){var n,s=this.slides,a=this.duration,o=this.offsetWidth;return t&&0===e?(n=s.length-1,this._translate(this.beforeShadow,0,a),this._translate(this.afterShadow,o),this._loopReset(!0)):t||e!==s.length-1?n=i:(n=0,this._translate(this.afterShadow,0,a),this._translate(this.beforeShadow,-o),this._loopReset(!1)),n}},{key:"_loopAdjust",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.loop){var n=this.offsetWidth,s=this.slides;t&&0===e?this._translate(this.beforeShadow,i-n):t||e!==s.length-1||this._translate(this.afterShadow,n+i)}}},{key:"_loopReset",value:function(t){var e=this,i=this.offsetWidth,n=this.slides;setTimeout((function(){t?(e._translate(n[n.length-1],0,0),e._translate(n[n.length-2],-i,0),e._translate(e.beforeShadow,i,0)):(e._translate(n[0],0,0),e._translate(n[1],i,0),e._translate(e.afterShadow,-i,0))}),this.duration)}},{key:"_lockEvent",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.lastNextAt=Date.now(),this.move=!0,setTimeout((function(){t.move=!1}),this.duration*e)}},{key:"_lockedSwipeEvents",value:function(){this.animated&&(this.el.style["touch-action"]="none")}},{key:"_unlockSwipeEvents",value:function(){this.animated&&(this.el.style["touch-action"]="auto")}},{key:"_isVerticalScroll",value:function(t){return Math.abs(t.x)<1.5*Math.abs(t.y)}},{key:"_isValidSlide",value:function(t){var e=Math.abs(t.x),i=Number(+new Date-this.startAt)<250&&e>20||e>this.offsetWidth/2;return this.startAt=0,i}},{key:"_translate",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t&&(t.style["".concat(this.cssPrefix,"transition-duration")]=n?"".concat(n,"ms"):"",requestAnimationFrame((function(){t.style["".concat(i.cssPrefix,"transform")]="translateX(".concat(e,"px)")})))}},{key:"_isEnded",value:function(t){if(this.loop)return!1;var e=t.x>0;return e&&0===this.index||!e&&this.index===this.slides.length-1}},{key:"_calcCssPrefix",value:function(){this.animated&&(this.cssPrefix=Object(n.c)())}}])&&a(e.prototype,i),o&&a(e,o),t}()},14:function(t,e,i){"use strict";var n=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"v-affix"},[e("div",{directives:[{name:"show",rawName:"v-show",value:this.showFixedShim,expression:"showFixedShim"}],style:this.fixedShimStyle}),this._v(" "),e("div",{ref:"wrap",class:{"v-affix--fixed":!this.disabled&&this.isFixed},style:this.fixedSlotStyle},[this._t("default")],2)])};n._withStripped=!0;i(22);var s=i(5),a=i(2),o={name:"VAffix",props:{fixedTop:{type:Number},disabled:{type:Boolean,default:!1}},data:function(){return{isFixed:!1,showFixedShim:!1,fixedShimStyle:{},fixedSlotStyle:{}}},mounted:function(){var t=this;if(void 0!==this.fixedTop){var e=Object(a.e)(this.$el);Object(s.b)(e,"scroll",this.handleScroll),Object(s.b)(e,"resize",this.handleScroll),this.$nextTick((function(){t.handleScroll()}))}},beforeDestroy:function(){if(void 0!==this.fixedTop){var t=Object(a.e)(this.$el);Object(s.a)(t,"scroll",this.handleScroll),Object(s.a)(t,"resize",this.handleScroll)}},methods:{handleScroll:function(){var t=this.isFixed,e=Object(a.d)(window,!0),i=Object(a.c)(this.$el);if(i.top-this.fixedTop<=e&&!t){this.isFixed=!0;var n=this.$refs.wrap;this.fixedShimStyle={width:"".concat(n.clientWidth,"px"),height:"".concat(n.clientHeight,"px")},this.showFixedShim=!0,this.fixedSlotStyle={top:"".concat(this.fixedTop,"px"),left:"".concat(i.left,"px"),width:"".concat(this.$el.offsetWidth,"px")},this.$emit("on-fixed",!0)}else i.top-this.fixedTop>e&&t&&(this.showFixedShim=!1,this.fixedShimStyle={},this.isFixed=!1,this.fixedSlotStyle=null,this.$emit("on-fixed",!1))}}},r=i(0),h=Object(r.a)(o,n,[],!1,null,null,null);h.options.__file="src/components/affix/affix.vue";e.a=h.exports},2:function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),i.d(e,"f",(function(){return s})),i.d(e,"b",(function(){return r})),i.d(e,"d",(function(){return h})),i.d(e,"c",(function(){return c})),i.d(e,"e",(function(){return l}));var n=function(t,e){if(t){for(var i=t.className,n=(e||"").split(" "),s=0,a=n.length;s<a;s++){var r=n[s];r&&(t.classList?t.classList.add(r):o(t,r)||(i+=" "+r))}t.classList||(t.className=i)}},s=function(t,e){if(t&&e){for(var i=e.split(" "),n=" "+t.className+" ",s=0,r=i.length;s<r;s++){var h=i[s];h&&(t.classList?t.classList.remove(h):o(t,h)&&(n=n.replace(" "+h+" "," ")))}t.classList||(t.className=a(n))}},a=function(t){return(t||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},o=function(t,e){if(!t||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):(" "+t.className+" ").includes(" "+e+" ")},r=function(t,e){var i=-1;return t.map((function(t){return t.route})).forEach((function(t,n){e.startsWith(t)&&(i=n)})),i},h=function(t,e){var i=e?"scrollTop":"scrollLeft",n=t[e?"pageYOffset":"pageXOffset"];return"number"!=typeof n&&(n=window.document.documentElement[i]),n},c=function(t){var e=t.getBoundingClientRect(),i=h(window,!0),n=h(window),s=window.document.body,a=s.clientTop||0,o=s.clientLeft||0;return{top:e.top+i-a,left:e.left+n-o}},l=function(t){var e=t;if(!e)return null;for(;e&&"HTML"!==e.tagName&&"BOYD"!==e.tagName&&1===e.nodeType;){var i=window.getComputedStyle(e).overflowY;if("scroll"===i||"auto"===i)return"HTML"===e.tagName||"BODY"===e.tagName?document:e;e=e.parentNode}return document}},22:function(t,e,i){},31:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"v-switcher"},[i("v-affix",{directives:[{name:"show",rawName:"v-show",value:t.headerCount>1,expression:"headerCount > 1"}],attrs:{"fixed-top":t.fixedTop,disabled:void 0===t.fixedTop||t.headerCount<=1}},[i("div",{ref:"headerWrap",staticClass:"v-switcher__header",style:{height:t.headerHeight+"px"}},[i("div",{staticClass:"v-switcher__header__before"},[t._t("header-before")],2),t._v(" "),i("div",{staticClass:"v-switcher__header__after"},[t._t("header-after")],2),t._v(" "),i("div",{ref:"tabWrap",staticClass:"v-switcher__header__tabs__wrap"},[i("ul",{ref:"header",staticClass:"v-switcher__header__tabs__list",class:"v-switcher__header--"+t.align},[t._l(t.formatHeaders,(function(e,n){return i("li",{key:n,ref:"tab",refInFor:!0,staticClass:"v-switcher__header__tabs__item",class:{"is-active":n===t.focusIndex},style:t.headerItemStyle,on:{click:function(e){return t._handleTabSwitch(n)}}},[t._t("tab-"+n,[e.icon?i("i",{class:e.icon}):t._e(),t._v(" "),i("span",{domProps:{textContent:t._s(e.text)}})])],2)})),t._v(" "),i("div",{staticClass:"v-switcher__header__anchor",style:t.anchorStyle},[t._t("anchor")],2)],2)])])]),t._v(" "),t.routable?t._e():i("div",{ref:"content",staticClass:"v-switcher__content",class:"v-switcher__content--"+t.contentMode,style:t.contentWrapStyle},[i("div",{ref:"contentWrap",staticClass:"v-switcher__content__wrap"},t._l(t.headers,(function(e,n){return i("div",{key:n,staticClass:"v-switcher__content__item",class:{"is-active":~t.displayContent.indexOf(n)}},[t._t(n)],2)})),0)])],1)};n._withStripped=!0;i(54);var s=i(5),a=i(2),o=i(14),r=i(12);function h(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var c=function(){function t(e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=e.el,this.vertical=e.vertical||!1,this.maxOffset=e.maxOffset||0,this.lastOffset=0,this.offset=0,this.delta=0,this.prefix=Object(s.c)(),this.events={},this.scroll(),this._bind(),this}var e,i,n;return e=t,(i=[{key:"scroll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.maxOffset){var i=t;t<this.maxOffset?i=this.maxOffset:t>0&&(i=0),this.el.style["".concat(this.prefix,"transition-duration")]=e?"".concat(e,"ms"):"",this.el.style["".concat(this.prefix,"transform")]=this.vertical?"translateY(".concat(i,"px)"):"translateX(".concat(i,"px)"),this.offset=i}}},{key:"reset",value:function(t,e){this.maxOffset=e,this.scroll(t)}},{key:"destroy",value:function(){var t=this.el,e=this.events;t&&(t.removeEventListener("touchstart",e.touchstart),t.removeEventListener("touchmove",e.touchmove),t.removeEventListener("touchend",e.touchend))}},{key:"_bind",value:function(){var t=this.el,e=this.events;t&&(e.touchstart=this._start.bind(this),e.touchmove=this._move.bind(this),e.touchend=this._end.bind(this),t.addEventListener("touchstart",e.touchstart),t.addEventListener("touchmove",e.touchmove),t.addEventListener("touchend",e.touchend))}},{key:"_start",value:function(t){t.stopPropagation();var e=t.touches[0];this.delta=this.vertical?e.pageY:e.pageX}},{key:"_move",value:function(t){t.stopPropagation();var e=t.touches[0],i=(this.vertical?e.pageY:e.pageX)-this.delta,n=this.lastOffset+i;this.scroll(n)}},{key:"_end",value:function(t){t.stopPropagation(),this.lastOffset=this.offset}}])&&h(e.prototype,i),n&&h(e,n),t}(),l={name:"VSwitcher",components:{VAffix:o.a},props:{headers:{type:Array,required:!0},defaultIndex:{type:Number,default:0},routable:{type:Boolean,default:!1},align:{type:String,default:"start",validator:function(t){return~["around","start","center","end"].indexOf(t)}},anchorPadding:{type:Number,default:16,validator:function(t){return t>=0}},headerHeight:{type:Number,default:40,validator:function(t){return t>=0}},fixedTop:{type:Number},swipe:{type:Boolean,default:!0},sticky:{type:Boolean,default:!0},duration:{type:Number,default:300,validator:function(t){return t>=0}}},data:function(){return{focusIndex:this.routable?Object(a.b)(this.headers,this.$route.path):this.defaultIndex,oldFocusIndex:-1,anchorStyle:{},slider:null,scroller:null,sizeCache:{tabs:[],header:null,tabsWrapWidth:0,headerWrapWidth:0,headerScrollMaxSize:0}}},computed:{displayContent:function(){var t=this.focusIndex;return"swipe"===this.contentMode?[this.oldFocusIndex,t-1,t,t+1]:[t]},formatHeaders:function(){var t=this,e=[];return this.headers.forEach((function(i,n){e.push({text:t._computeItemText(i,n),icon:t._computeItemIcon(i,n)})})),e},headerCount:function(){return this.headers.length},headerItemStyle:function(){return{height:"".concat(this.headerHeight,"px"),lineHeight:"".concat(this.headerHeight,"px")}},contentWrapStyle:function(){return this.headerCount<=1?{}:{paddingTop:"".concat(this.headerHeight,"px"),marginTop:"-".concat(this.headerHeight,"px")}},contentMode:function(){return this.sticky&&this.duration&&this.swipe?"swipe":!this.swipe||this.sticky&&this.duration?"click":"slide"}},mounted:function(){var t=this;this.$nextTick((function(){t._setComponentSize(),t._initSwipe(),t._initScroller(),t._computeAnchorStyle(t.focusIndex),t._computeHeaderStyle(0),t.$watch("headers",(function(e){t.$nextTick((function(){var i=t.focusIndex;t._setComponentSize(),t.routable&&t._handleTabSwitch(Object(a.b)(e,t.$route.path)),i!==t.focusIndex&&(t._computeAnchorStyle(t.focusIndex),t._computeHeaderStyle(i))}))})),t.$watch("focusIndex",(function(e,i){t._computeAnchorStyle(e),t._computeHeaderStyle(i),t.$emit("change",e)})),t.routable&&t.$watch("$route",(function(e){t._handleTabSwitch(Object(a.b)(t.headers,e.path))})),t.$emit("change",t.focusIndex),Object(s.b)(window,"resize",t._setComponentSize)}))},beforeDestroy:function(){Object(s.a)(window,"resize",this._setComponentSize),this.slider&&this.slider.destroy(),this.scroller&&this.scroller.destroy()},methods:{slide:function(t){t<0||t>this.headerCount-1||this._handleTabSwitch(t)},_initSwipe:function(){var t=this;"click"!==this.contentMode&&(this.slider=new r.a({wrap:this.$refs.contentWrap,loop:!1,index:this.focusIndex,animated:"swipe"===this.contentMode,duration:this.duration,callback:function(e){t.focusIndex=e}}))},_initScroller:function(){"start"===this.align&&(this.scroller=new c({el:this.$refs.header,maxOffset:this.sizeCache.headerScrollMaxSize}))},_handleTabSwitch:function(t){if(this.slider){if(this.slider.move)return;this.oldFocusIndex=this.focusIndex,this.slider.slide(t)}this.focusIndex=t,t<0&&(this.anchorStyle.transform="translateX(-100%)")},_computeHeaderStyle:function(t){var e=this;if(0!==this.sizeCache.headerScrollMaxSize){var i=this.focusIndex;if(!(i<0)){var n=this.scroller?this.scroller.offset:0,s=this.sizeCache.headerScrollMaxSize;if(i)if(i===this.headerCount-1)n=s;else{var a=this._getComponentSize("tabs",0).left,o=this._getComponentSize("tabs",i),r=function(){var t=e._getComponentSize("tabs",i+1).right-a-e.sizeCache.tabsWrapWidth;t>0&&(n=-t);var s=o.left-a;n+s<0&&(n=-s)};if(t>i){var h=this._getComponentSize("tabs",i-1);if(h.left+n<a){n=a-h.left;var c=o.right-a-this.sizeCache.tabsWrapWidth;c>n>0&&(n=-c)}else r()}else r()}else n=0;n<s?n=s:n>0&&(n=0),this.scroller&&this.scroller.scroll(n,this.duration)}}},_computeAnchorStyle:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!(t<0)){var n=this._getComponentSize("tabs",t);if(n){var s=+this.anchorPadding,a=this._getComponentSize("header"),o="around"===this.align;this.anchorStyle={width:"".concat(o?n.width:n.width-2*s,"px"),transform:"translateX(".concat(o?n.left-a.left:n.left-a.left+s,"px)"),transitionDuration:"".concat(this.duration,"ms")}}else i<5&&setTimeout((function(){e._computeAnchorStyle(e.focusIndex,i+1)}),200)}},_computeItemText:function(t,e){var i;if("string"==typeof t)i=t;else if(i=t.label||t.name||t.text,this.focusIndex===e){var n=t["label-active"]||t["name-active"]||t["text-active"];n&&(i=n)}return i},_computeItemIcon:function(t,e){var i;return"string"!=typeof t&&t.icon?(i=t.icon,this.focusIndex===e&&t["icon-active"]&&(i=t["icon-active"])):i="",i},_setComponentSize:function(){var t=this.$refs.tab;if(t){var e=[];t.forEach((function(t){var i=t.getBoundingClientRect();e.push({top:i.top,left:i.left,right:i.right,bottom:i.bottom,width:i.width,height:i.height})})),this.sizeCache.tabs=e}var i=this.$refs.headerWrap;i&&(this.sizeCache.headerWrapWidth=i.clientWidth);var n=this.$refs.tabWrap;n&&(this.sizeCache.tabsWrapWidth=n.clientWidth);var s=this.$refs.header;if(s){var a=s.getBoundingClientRect();this.sizeCache.header={top:a.top,left:a.left,right:a.right,bottom:a.bottom}}var o=this.sizeCache.tabs[this.headerCount-1].right-this.sizeCache.tabs[0].left;this.sizeCache.headerScrollMaxSize=o<this.sizeCache.tabsWrapWidth?0:this.sizeCache.tabsWrapWidth-o},_getComponentSize:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,i=this.sizeCache[t];return i?e>=0?i[e]?i[e]:null:i:null}}},d=i(0),u=Object(d.a)(l,n,[],!1,null,null,null);u.options.__file="src/components/switcher/switcher.vue";var f=u.exports;e.default=f},5:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"a",(function(){return s})),i.d(e,"c",(function(){return a}));var n=function(){if("undefined"!=typeof window)return document.addEventListener?function(t,e,i){t&&e&&i&&t.addEventListener(e,i,!1)}:function(t,e,i){t&&e&&i&&t.attachEvent("on"+e,i)}}(),s=function(){if("undefined"!=typeof window)return document.removeEventListener?function(t,e,i){t&&e&&t.removeEventListener(e,i,!1)}:function(t,e,i){t&&e&&t.detachEvent("on"+e,i)}}(),a=function(){var t="",e=/^(Webkit|Khtml|Moz|ms|O)(?=[A-Z])/,i=document.getElementsByTagName("script")[0].style;for(var n in i)e.test(n)&&(t="-"+n.match(e)[0].toLowerCase()+"-");return!t&&"WebkitOpacity"in i&&(t="-webkit-"),!t&&"KhtmlOpacity"in i&&(t="-khtml-"),t}},54:function(t,e,i){}})}));

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define(["vue"],e):"object"==typeof exports?exports["@calibur/sakura"]=e(require("vue")):t["@calibur/sakura"]=e(t.Vue)}(this,(function(t){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=33)}({0:function(t,e,n){"use strict";function o(t,e,n,o,r,i,s,u){var a,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),s?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=a):r&&(a=u?function(){r.call(this,this.$root.$options.shadowRoot)}:r),a)if(c.functional){c._injectStyles=a;var f=c.render;c.render=function(t,e){return a.call(e),f(t,e)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,a):[a]}return{exports:t,options:c}}n.d(e,"a",(function(){return o}))},11:function(e,n){e.exports=t},33:function(t,e,n){"use strict";n.r(e);var o=n(11),r=n.n(o),i=function(){var t=this.$createElement,e=this._self._c||t;return e("transition",{attrs:{name:"v-toast__transition"}},[this.visible?e("div",{staticClass:"v-toast__wrap",class:{"v-toast__mask":"loading"!==this.type}},[e("div",{staticClass:"v-toast",class:"v-toast--"+this.type},[e("i",{staticClass:"v-toast__font bili-font"}),this._v(" "),e("span",{staticClass:"v-toast__text",domProps:{textContent:this._s(this.message)}})])]):this._e()])};i._withStripped=!0;n(47);var s={name:"VToast",data:function(){return{id:"",type:"",message:"",visible:!1}},methods:{show:function(t){var e=this;this.message=t.message,this.type=t.type;var n=Math.random().toString(36).substring(3,6);this.id=n,this.visible=!0,"loading"!==t.type&&setTimeout((function(){e.hide(n)}),t.duration)},hide:function(t){t&&t!==this.id||(this.visible=!1)}}},u=n(0),a=Object(u.a)(s,i,[],!1,null,null,null);a.options.__file="src/components/toast/toast.vue";var c=a.exports;function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){var t=document.createElement("div");return document.body.appendChild(t),new r.a(c).$mount(t)}e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.duration,n=t.timeout,o=l(),r=e||1500,i=n||1500,s=function(t){return new Promise((function(e){setTimeout(e,t)}))};return{info:function(t){var e,n;return"object"===f(t)?(e=t.tip,n=t.time||r):(e=t,n=r),o.show({duration:n,message:e,type:"info"}),s(i)},error:function(t){var e,n;return"object"===f(t)?(e=t.tip,n=t.time||r):(e=t,n=r),o.show({duration:n,message:e||"操作失败",type:"error"}),s(i)},success:function(t){var e,n;return"object"===f(t)?(e=t.tip,n=t.time||r):(e=t,n=r),o.show({duration:n,message:e||"操作成功",type:"success"}),s(i)},loading:function(t){o.show({message:t||"加载中…",type:"loading"})},stop:function(){o.hide()}}}},47:function(t,e,n){}})}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define(["vue"],e):"object"==typeof exports?exports["@calibur/sakura"]=e(require("vue")):t["@calibur/sakura"]=e(t.Vue)}(this,(function(t){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=34)}({0:function(t,e,n){"use strict";function o(t,e,n,o,r,i,s,u){var a,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),s?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=a):r&&(a=u?function(){r.call(this,this.$root.$options.shadowRoot)}:r),a)if(c.functional){c._injectStyles=a;var f=c.render;c.render=function(t,e){return a.call(e),f(t,e)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,a):[a]}return{exports:t,options:c}}n.d(e,"a",(function(){return o}))},11:function(e,n){e.exports=t},34:function(t,e,n){"use strict";n.r(e);var o=n(11),r=n.n(o),i=function(){var t=this.$createElement,e=this._self._c||t;return e("transition",{attrs:{name:"v-toast__transition"}},[this.visible?e("div",{staticClass:"v-toast__wrap",class:{"v-toast__mask":"loading"!==this.type}},[e("div",{staticClass:"v-toast",class:"v-toast--"+this.type},[e("i",{staticClass:"v-toast__font bili-font"}),this._v(" "),e("span",{staticClass:"v-toast__text",domProps:{textContent:this._s(this.message)}})])]):this._e()])};i._withStripped=!0;n(48);var s={name:"VToast",data:function(){return{id:"",type:"",message:"",visible:!1}},methods:{show:function(t){var e=this;this.message=t.message,this.type=t.type;var n=Math.random().toString(36).substring(3,6);this.id=n,this.visible=!0,"loading"!==t.type&&setTimeout((function(){e.hide(n)}),t.duration)},hide:function(t){t&&t!==this.id||(this.visible=!1)}}},u=n(0),a=Object(u.a)(s,i,[],!1,null,null,null);a.options.__file="src/components/toast/toast.vue";var c=a.exports;function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){var t=document.createElement("div");return document.body.appendChild(t),new r.a(c).$mount(t)}e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.duration,n=t.timeout,o=l(),r=e||1500,i=n||1500,s=function(t){return new Promise((function(e){setTimeout(e,t)}))};return{info:function(t){var e,n;return"object"===f(t)?(e=t.tip,n=t.time||r):(e=t,n=r),o.show({duration:n,message:e,type:"info"}),s(i)},error:function(t){var e,n;return"object"===f(t)?(e=t.tip,n=t.time||r):(e=t,n=r),o.show({duration:n,message:e||"操作失败",type:"error"}),s(i)},success:function(t){var e,n;return"object"===f(t)?(e=t.tip,n=t.time||r):(e=t,n=r),o.show({duration:n,message:e||"操作成功",type:"success"}),s(i)},loading:function(t){o.show({message:t||"加载中…",type:"loading"})},stop:function(){o.hide()}}}},48:function(t,e,n){}})}));

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@calibur/sakura"]=t():e["@calibur/sakura"]=t()}(this,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=37)}({0:function(e,t,n){"use strict";function o(e,t,n,o,i,r,s,l){var a,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),s?(a=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=a):i&&(a=l?function(){i.call(this,this.$root.$options.shadowRoot)}:i),a)if(c.functional){c._injectStyles=a;var u=c.render;c.render=function(e,t){return a.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,a):[a]}return{exports:e,options:c}}n.d(t,"a",(function(){return o}))},37:function(e,t,n){"use strict";n.r(t);var o=function(){var e=this.$createElement,t=this._self._c||e;return t("button",{staticClass:"v-toggle",class:[{"v-toggle--disabled":this.disabled,"v-toggle--loading":this.loading},[this.isAndroid?"v-toggle--md":"v-toggle--ios"],[this.selected?"v-toggle--on":"v-toggle--off"]],on:{click:this.handle}},[t("span",{staticClass:"v-toggle__core"},[this.loading?t("svg",{attrs:{viewBox:"25 25 50 50"}},[t("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]):this._e()])])};o._withStripped=!0;n(54);var i={name:"VToggle",props:{value:{type:Boolean,required:!0},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},confirm:{type:Function,default:null}},data:function(){return{selected:this.value}},computed:{isAndroid:function(){return!!this.$sakura&&this.$sakura.md}},watch:{value:function(e){this.selected=e},selected:function(e){this.$emit("input",e)}},methods:{handle:function(){var e=this;if(!this.disabled&&!this.loading)if(this.confirm){var t=this.confirm();t?t.then((function(){e.change()})):this.change()}else this.change()},change:function(){this.selected=!this.selected,this.$emit("change",this.selected)}}},r=n(0),s=Object(r.a)(i,o,[],!1,null,null,null);s.options.__file="src/components/toggle/toggle.vue";var l=s.exports;t.default=l},54:function(e,t,n){}})}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@calibur/sakura"]=t():e["@calibur/sakura"]=t()}(this,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=38)}({0:function(e,t,n){"use strict";function o(e,t,n,o,i,r,s,l){var a,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),s?(a=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=a):i&&(a=l?function(){i.call(this,this.$root.$options.shadowRoot)}:i),a)if(c.functional){c._injectStyles=a;var u=c.render;c.render=function(e,t){return a.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,a):[a]}return{exports:e,options:c}}n.d(t,"a",(function(){return o}))},38:function(e,t,n){"use strict";n.r(t);var o=function(){var e=this.$createElement,t=this._self._c||e;return t("button",{staticClass:"v-toggle",class:[{"v-toggle--disabled":this.disabled,"v-toggle--loading":this.loading},[this.isAndroid?"v-toggle--md":"v-toggle--ios"],[this.selected?"v-toggle--on":"v-toggle--off"]],on:{click:this.handle}},[t("span",{staticClass:"v-toggle__core"},[this.loading?t("svg",{attrs:{viewBox:"25 25 50 50"}},[t("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]):this._e()])])};o._withStripped=!0;n(55);var i={name:"VToggle",props:{value:{type:Boolean,required:!0},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},confirm:{type:Function,default:null}},data:function(){return{selected:this.value}},computed:{isAndroid:function(){return!!this.$sakura&&this.$sakura.md}},watch:{value:function(e){this.selected=e},selected:function(e){this.$emit("input",e)}},methods:{handle:function(){var e=this;if(!this.disabled&&!this.loading)if(this.confirm){var t=this.confirm();t?t.then((function(){e.change()})):this.change()}else this.change()},change:function(){this.selected=!this.selected,this.$emit("change",this.selected)}}},r=n(0),s=Object(r.a)(i,o,[],!1,null,null,null);s.options.__file="src/components/toggle/toggle.vue";var l=s.exports;t.default=l},55:function(e,t,n){}})}));

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=29)}({0:function(t,e,r){"use strict";function n(t,e,r,n,i,s,o,a){var u,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=r,c._compiled=!0),n&&(c.functional=!0),s&&(c._scopeId="data-v-"+s),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=u):i&&(u=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}r.d(e,"a",(function(){return n}))},29:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"v-uploader",class:{"v-uploader--custom":t.hasSlot}},[t._t("list",[t.fileList.length?r("span",{staticClass:"v-uploader__files"},t._l(t.fileList,(function(e,n){return r("div",{key:n+e.id,staticClass:"v-uploader__item"},[e.url?r("img",{staticClass:"v-uploader__item__poster",attrs:{src:e.url}}):t._e(),t._v(" "),"loading"!==e.status?r("i",{staticClass:"bili-font ic_input_close v-uploader__item__cancel",on:{click:function(e){return t.remove(n)}}}):t._e(),t._v(" "),"loading"===e.status?r("div",{staticClass:"v-uploader__item__loading v-uploader__item__mask"},[r("div")]):t._e(),t._v(" "),"success"===e.status?r("div",{staticClass:"v-uploader__item__status is-success"},[r("i",{staticClass:"bili-font ic_success"})]):t._e(),t._v(" "),"error"===e.status?r("div",{staticClass:"v-uploader__item__mask"},[r("span",{domProps:{textContent:t._s(e.message)}}),t._v(" "),t._m(0,!0)]):t._e()])})),0):t._e()],{list:t.fileList}),t._v(" "),r("div",{staticClass:"v-uploader__action",on:{click:t._emitActionClick}},[r("input",{ref:"input",attrs:{multiple:1!==t.limit,disabled:t.isDisabled,accept:t.fileAccept,type:"file",name:"file"},on:{change:t._handleInputSelect}}),t._v(" "),r("div",{staticClass:"v-uploader__action__wrap"},[t._t("action",[t._m(1)])],2)])],2)};n._withStripped=!0;var i=r(3);function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u=function(t){var e=new RegExp("(^| )"+t+"=([^;]*)(;|$)"),r=document.cookie.match(e);return r?unescape(r[2]):null};function c(t){if(!t)return[];var e=function(t){var e={};return"string"==typeof t?(e.url=t,e.status="success"):(t.id&&(e.id=t.id),t.url&&(e.url=t.url),t.url&&t.url.startsWith("http")?(e.status="success",e.data=t):e=o({},e,{},t)),o({},{id:Math.random().toString(36).substring(3,6),url:"",status:"",message:"",data:null,file:null},{},e)};return Object(i.a)(t)?t.map(e):e(t)}r(56);function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var p={name:"VUploader",props:{value:{type:[Array,Object,String],default:""},url:{type:String,default:"//api.bilibili.com/x/upload/web/image"},bucket:{type:String,default:""},disabled:{type:Boolean,default:!1},accept:{type:[String,Array],default:"image/*"},limit:{type:Number,default:1,validator:function(t){return t>=1}},oversize:{type:[String,Number],default:0,validator:function(t){return t>=0}},cookie:{type:Boolean,default:!0},auto:{type:Boolean,default:!0},http:{type:Function,default:function(t){if("undefined"!=typeof XMLHttpRequest){var e=new XMLHttpRequest,r=t.action;e.onerror=function(e){t.onError(e)},e.onload=function(){if(e.status<200||e.status>=400)return t.onError(function(t,e,r){var n;n=r.response?"".concat(r.response.error||r.response):r.responseText?"".concat(r.responseText):"fail to post ".concat(t," ").concat(r.status);var i=new Error(n);return i.status=r.status,i.method="post",i.url=t,i}(r,0,e));t.onSuccess(function(t){var e=t.responseText||t.response;if(!e)return e;try{return JSON.parse(e)}catch(r){return e}}(e))},e.open("POST",r,!0),t.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);var n={Accept:"application/json, text/plain, */*"};return"setRequestHeader"in e&&Object.keys(n).forEach((function(t){e.setRequestHeader(t,n[t])})),e.send(t.data),e}}},transformRequest:{type:Function,default:function(t){return t.csrf=u("bili_jct"),t}},transformResponse:{type:Function,default:function(t){return t&&0===t.code?{url:t.data.location,data:t.data}:t}}},data:function(){return{fileList:Object(i.a)(this.value)?c(this.value.slice(0,this.limit)):c(this.value)}},computed:{hasSlot:function(){return this.$slots.action||this.$slots.list},isDisabled:function(){return this.disabled||this.fileList.length>this.limit},fileAccept:function(){return"string"==typeof this.accept?this.accept:this.accept.map((function(t){return t.startsWith("image/")?t:"image/".concat(t)})).join(", ")}},watch:{value:function(t){this.fileList=t},fileList:function(t){this.$emit("input",t)}},methods:{upload:function(){this._updateToServer(this.fileList)},images:function(){return this.fileList.filter((function(t){return"success"===t.status}))},remove:function(t){this.fileList.splice(t,1),this.$refs.input.value="",this.$emit("change")},_readImage:function(t){var e=this;Promise.all(t.map((function(t){return function(t){return new Promise((function(e){var r=new FileReader;r.onload=function(t){e(t.target.result)},r.readAsDataURL(t)}))}(t)}))).then((function(r){!function(t){1===e.limit?e.fileList=t.filter((function(t){return t})):e.fileList=e.fileList.concat(t.filter((function(t){return t}))),e.auto&&e._updateToServer(t)}(t.map((function(t,n){var i={file:t};return r[n]?(i.url=r[n],e.oversize&&e.oversize<t.size?(i.status="error",i.message="图片体积过大"):i.status="preview"):(i.status="error",i.message="图片读取失败"),c(i)})))}))},_emitActionClick:function(){this.$emit("click")},_updateImage:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.fileList.forEach((function(n){n.id===t&&(n.status=e,r&&Object.keys(r).forEach((function(t){n[t]=r[t]})))}))},_updateToServer:function(t){var e=this,r=t.filter((function(t){return"preview"===t.status}));r.length&&r.map((function(t){var r={file:t.file};return e.bucket&&(r.bucket=e.bucket),{id:t.id,form:e.transformRequest?e.transformRequest(r):r}})).map((function(t){var e=new FormData;return Object.keys(t.form).forEach((function(r){e.append(r,t.form[r])})),function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){f(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t,{form:e})})).forEach((function(t){e._updateImage(t.id,"loading");var r={withCredentials:e.cookie,data:t.form,action:e.url,onSuccess:function(r){e._handleUploadSuccess(t,r)},onError:function(){e._handleUploadError(t)}};e.http(r)}))},_handleInputSelect:function(t){var e=t.target.files,r=this.limit-this.fileList.length;if(!(this.disabled||!e.length||r<=0)){var n=[].slice.call(e);n=n.slice(0,r),this._readImage(n)}},_handleUploadError:function(t){this._updateImage(t.id,"error",{message:"上传失败"}),this.$emit("change")},_handleUploadSuccess:function(t,e){var r=this.transformResponse?this.transformResponse(e):e,n=t.id;r.url?this._updateImage(n,"success",r):this._updateImage(n,"error",{message:r.message}),this.$emit("change")}}},d=r(0),_=Object(d.a)(p,n,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"v-uploader__item__status is-error"},[e("i",{staticClass:"bili-font ic_error"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"v-uploader__btn"},[e("i",{staticClass:"bili-font ic_add"})])}],!1,null,null,null);_.options.__file="src/components/uploader/uploader.vue";var m=_.exports;e.default=m},3:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var n=function(t){return"[object Array]"===Object.prototype.toString.call(t)}},56:function(t,e,r){}})}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=30)}({0:function(t,e,r){"use strict";function n(t,e,r,n,i,s,o,a){var u,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=r,c._compiled=!0),n&&(c.functional=!0),s&&(c._scopeId="data-v-"+s),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=u):i&&(u=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}r.d(e,"a",(function(){return n}))},3:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var n=function(t){return"[object Array]"===Object.prototype.toString.call(t)}},30:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"v-uploader",class:{"v-uploader--custom":t.hasSlot}},[t._t("list",[t.fileList.length?r("span",{staticClass:"v-uploader__files"},t._l(t.fileList,(function(e,n){return r("div",{key:n+e.id,staticClass:"v-uploader__item"},[e.url?r("img",{staticClass:"v-uploader__item__poster",attrs:{src:e.url}}):t._e(),t._v(" "),"loading"!==e.status?r("i",{staticClass:"bili-font ic_input_close v-uploader__item__cancel",on:{click:function(e){return t.remove(n)}}}):t._e(),t._v(" "),"loading"===e.status?r("div",{staticClass:"v-uploader__item__loading v-uploader__item__mask"},[r("div")]):t._e(),t._v(" "),"success"===e.status?r("div",{staticClass:"v-uploader__item__status is-success"},[r("i",{staticClass:"bili-font ic_success"})]):t._e(),t._v(" "),"error"===e.status?r("div",{staticClass:"v-uploader__item__mask"},[r("span",{domProps:{textContent:t._s(e.message)}}),t._v(" "),t._m(0,!0)]):t._e()])})),0):t._e()],{list:t.fileList}),t._v(" "),r("div",{staticClass:"v-uploader__action",on:{click:t._emitActionClick}},[r("input",{ref:"input",attrs:{multiple:1!==t.limit,disabled:t.isDisabled,accept:t.fileAccept,type:"file",name:"file"},on:{change:t._handleInputSelect}}),t._v(" "),r("div",{staticClass:"v-uploader__action__wrap"},[t._t("action",[t._m(1)])],2)])],2)};n._withStripped=!0;var i=r(3);function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u=function(t){var e=new RegExp("(^| )"+t+"=([^;]*)(;|$)"),r=document.cookie.match(e);return r?unescape(r[2]):null};function c(t){if(!t)return[];var e=function(t){var e={};return"string"==typeof t?(e.url=t,e.status="success"):(t.id&&(e.id=t.id),t.url&&(e.url=t.url),t.url&&t.url.startsWith("http")?(e.status="success",e.data=t):e=o({},e,{},t)),o({},{id:Math.random().toString(36).substring(3,6),url:"",status:"",message:"",data:null,file:null},{},e)};return Object(i.a)(t)?t.map(e):e(t)}r(57);function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var p={name:"VUploader",props:{value:{type:[Array,Object,String],default:""},url:{type:String,default:"//api.bilibili.com/x/upload/web/image"},bucket:{type:String,default:""},disabled:{type:Boolean,default:!1},accept:{type:[String,Array],default:"image/*"},limit:{type:Number,default:1,validator:function(t){return t>=1}},oversize:{type:[String,Number],default:0,validator:function(t){return t>=0}},cookie:{type:Boolean,default:!0},auto:{type:Boolean,default:!0},http:{type:Function,default:function(t){if("undefined"!=typeof XMLHttpRequest){var e=new XMLHttpRequest,r=t.action;e.onerror=function(e){t.onError(e)},e.onload=function(){if(e.status<200||e.status>=400)return t.onError(function(t,e,r){var n;n=r.response?"".concat(r.response.error||r.response):r.responseText?"".concat(r.responseText):"fail to post ".concat(t," ").concat(r.status);var i=new Error(n);return i.status=r.status,i.method="post",i.url=t,i}(r,0,e));t.onSuccess(function(t){var e=t.responseText||t.response;if(!e)return e;try{return JSON.parse(e)}catch(r){return e}}(e))},e.open("POST",r,!0),t.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);var n={Accept:"application/json, text/plain, */*"};return"setRequestHeader"in e&&Object.keys(n).forEach((function(t){e.setRequestHeader(t,n[t])})),e.send(t.data),e}}},transformRequest:{type:Function,default:function(t){return t.csrf=u("bili_jct"),t}},transformResponse:{type:Function,default:function(t){return t&&0===t.code?{url:t.data.location,data:t.data}:t}}},data:function(){return{fileList:Object(i.a)(this.value)?c(this.value.slice(0,this.limit)):c(this.value)}},computed:{hasSlot:function(){return this.$slots.action||this.$slots.list},isDisabled:function(){return this.disabled||this.fileList.length>this.limit},fileAccept:function(){return"string"==typeof this.accept?this.accept:this.accept.map((function(t){return t.startsWith("image/")?t:"image/".concat(t)})).join(", ")}},watch:{value:function(t){this.fileList=t},fileList:function(t){this.$emit("input",t)}},methods:{upload:function(){this._updateToServer(this.fileList)},images:function(){return this.fileList.filter((function(t){return"success"===t.status}))},remove:function(t){this.fileList.splice(t,1),this.$refs.input.value="",this.$emit("change")},_readImage:function(t){var e=this;Promise.all(t.map((function(t){return function(t){return new Promise((function(e){var r=new FileReader;r.onload=function(t){e(t.target.result)},r.readAsDataURL(t)}))}(t)}))).then((function(r){!function(t){1===e.limit?e.fileList=t.filter((function(t){return t})):e.fileList=e.fileList.concat(t.filter((function(t){return t}))),e.auto&&e._updateToServer(t)}(t.map((function(t,n){var i={file:t};return r[n]?(i.url=r[n],e.oversize&&e.oversize<t.size?(i.status="error",i.message="图片体积过大"):i.status="preview"):(i.status="error",i.message="图片读取失败"),c(i)})))}))},_emitActionClick:function(){this.$emit("click")},_updateImage:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.fileList.forEach((function(n){n.id===t&&(n.status=e,r&&Object.keys(r).forEach((function(t){n[t]=r[t]})))}))},_updateToServer:function(t){var e=this,r=t.filter((function(t){return"preview"===t.status}));r.length&&r.map((function(t){var r={file:t.file};return e.bucket&&(r.bucket=e.bucket),{id:t.id,form:e.transformRequest?e.transformRequest(r):r}})).map((function(t){var e=new FormData;return Object.keys(t.form).forEach((function(r){e.append(r,t.form[r])})),function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){f(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t,{form:e})})).forEach((function(t){e._updateImage(t.id,"loading");var r={withCredentials:e.cookie,data:t.form,action:e.url,onSuccess:function(r){e._handleUploadSuccess(t,r)},onError:function(){e._handleUploadError(t)}};e.http(r)}))},_handleInputSelect:function(t){var e=t.target.files,r=this.limit-this.fileList.length;if(!(this.disabled||!e.length||r<=0)){var n=[].slice.call(e);n=n.slice(0,r),this._readImage(n)}},_handleUploadError:function(t){this._updateImage(t.id,"error",{message:"上传失败"}),this.$emit("change")},_handleUploadSuccess:function(t,e){var r=this.transformResponse?this.transformResponse(e):e,n=t.id;r.url?this._updateImage(n,"success",r):this._updateImage(n,"error",{message:r.message}),this.$emit("change")}}},d=r(0),_=Object(d.a)(p,n,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"v-uploader__item__status is-error"},[e("i",{staticClass:"bili-font ic_error"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"v-uploader__btn"},[e("i",{staticClass:"bili-font ic_add"})])}],!1,null,null,null);_.options.__file="src/components/uploader/uploader.vue";var m=_.exports;e.default=m},57:function(t,e,r){}})}));
{
"name": "@calibur/sakura",
"version": "1.0.18",
"version": "1.1.0",
"description": "bilibili h5 vue components",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc