You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
zhishifufei_php/public/static/plug/vuescroll/vuescroll.min.js

1 lines
63 KiB

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):e.vuescroll=t(e.Vue)}(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},o=function(){function i(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,o){return t&&i(e.prototype,t),o&&i(e,o),e}}(),g=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},d=function(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return Array.from(e)};function s(){if(a())return!1;var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")||-1!==e.indexOf("trident")||-1!==e.indexOf(" edge/")}var l=function(){return!a()&&!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)},a=function(){return e.prototype.$isServer},m=function(){function e(){t(this,e)}return o(e,[{key:"getEventObject",value:function(e){return this.touchObject?this.isTouch?e.touches:[e]:null}},{key:"getTouchObject",value:function(){if(a())return null;this.isTouch=!1;var e=navigator.userAgent,t=navigator.platform,o={};switch(o.touch=!!("ontouchstart"in window&&!window.opera||"msmaxtouchpoints"in window.navigator||"maxtouchpoints"in window.navigator||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints),o.nonDeskTouch=o.touch&&!/win32/i.test(t)||o.touch&&/win32/i.test(t)&&/mobile/i.test(e),o.eventType="onmousedown"in window&&!o.nonDeskTouch?"mouse":"ontouchstart"in window?"touch":"msmaxtouchpoints"in window.navigator||0<navigator.msMaxTouchPoints?"mstouchpoints":"maxtouchpoints"in window.navigator||0<navigator.maxTouchPoints?"touchpoints":"mouse",o.eventType){case"mouse":o.touchstart="mousedown",o.touchend="mouseup",o.touchmove="mousemove",o.touchenter="mouseenter",o.touchmove="mousemove",o.touchleave="mouseleave";break;case"touch":o.touchstart="touchstart",o.touchend="touchend",o.touchmove="touchmove",o.touchcancel="touchcancel",o.touchenter="touchstart",o.touchmove="touchmove",o.touchleave="touchend",this.isTouch=!0;break;case"mstouchpoints":o.touchstart="MSPointerDown",o.touchend="MSPointerUp",o.touchmove="MSPointerMove",o.touchcancel="MSPointerCancel",o.touchenter="MSPointerDown",o.touchmove="MSPointerMove",o.touchleave="MSPointerUp";break;case"touchpoints":o.touchstart="pointerdown",o.touchend="pointerup",o.touchmove="pointermove",o.touchcancel="pointercancel",o.touchenter="pointerdown",o.touchmove="pointermove",o.touchleave="pointerup"}return this.touchObject=o}}]),e}();function c(e,o,t){if(t&&L(o))return e;if(D(e))o=[],e.forEach(function(e,t){o[t]=c(e,o[t])});else if(e){if(!x(e))return e;for(var i in o={},e)o[i]="object"===n(e[i])?c(e[i],o[i]):e[i]}return o}function f(e,o,i,r){if(r&&L(o))return e;if(o=o||{},D(e))!D(o)&&i&&(o=[]),D(o)&&e.forEach(function(e,t){o[t]=f(e,o[t],i,r)});else if(e)if(x(e))for(var t in e)"object"===n(e[t])?L(o[t])?o[t]=c(e[t],o[t],r):f(e[t],o[t],i,r):(L(o[t])||i)&&(o[t]=e[t]);else i&&(o=e);return o}var h=void 0;function b(e,t,o){var i=3<arguments.length&&void 0!==arguments[3]&&arguments[3];"on"==(4<arguments.length&&void 0!==arguments[4]?arguments[4]:"on")?e.addEventListener(t,o,i):e.removeEventListener(t,o,i)}var i=function(e){console.error("[vuescroll] "+e)},S=function(e){console.warn("[vuescroll] "+e)};function _(e,t){var o=!1;if(!e||!t)return o;for(;e.parentNode!==t&&9!==e.parentNode.nodeType&&!e.parentNode._isVuescroll;)e=e.parentNode;return e.parentNode==t&&(o=!0),o}function w(e){var t,o=document.documentElement.style;return e.opera&&"[object Opera]"===Object.prototype.toString.call(opera)?t="presto":"MozAppearance"in o?t="gecko":"WebkitAppearance"in o?t="webkit":"string"==typeof navigator.cpuClass&&(t="trident"),{trident:"ms",gecko:"moz",webkit:"webkit",presto:"O"}[t]}function u(e,t){if(a())return!1;var o="-"+w(window)+"-"+t,i=document.createElement("div");return i.style[e]=o,i.style[e]==o&&o}function p(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},r=arguments[4];if(t&&1<t.length)return r?[].concat(d(o),d(t)):[].concat(d(t),d(o));var n=v(t=t[0]),s=n.ch,l=n.tag;return n.isComponent&&(t.data=f({attrs:t.componentOptions.propsData},t.data,!1,!0)),s=r?[].concat(d(o),d(s)):[].concat(d(s),d(o)),delete t.data.slot,e(l,f(i,t.data,!1,!0),s)}function v(e){if(!e||1<e.length)return{};var t=!!(e=e[0]?e[0]:e).componentOptions,o=void 0,i=void 0;return t?(o=e.componentOptions.children||[],i=e.componentOptions.tag):(o=e.children||[],i=e.tag),{isComponent:t,ch:o,tag:i}}function y(e){var t=e.$parent;return!t._isVuescrollRoot&&t&&(t=t.$parent),t}var D=function(e){return Array.isArray(e)},x=function(e){return"[object Object]"==Object.prototype.toString.call(e)},L=function(e){return void 0===e};function B(e,t){var o=void 0;return o=(o=/(-?\d+(?:\.\d+?)?)%$/.exec(e))?t*(o=o[1]-0)/100:e-0}function O(e,t){if(!a()&&!document.getElementById(e)){var o=document.head||doc.getElementsByTagName("head")[0],i=document.createElement("style");i.id=e,i.type="text/css",i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t)),o.appendChild(i)}}var r={mounted:function(){z[this._uid]=this},beforeDestroy:function(){delete z[this._uid]},methods:{scrollTo:function(e,t,o){var i=e.x,r=e.y;!0!==t&&void 0!==t||(t=this.mergedOptions.scrollPanel.speed),this.internalScrollTo(i,r,t,o)},scrollBy:function(e,t,o){var i=e.dx,r=void 0===i?0:i,n=e.dy,s=void 0===n?0:n,l=this.getPosition(),a=l.scrollLeft,c=void 0===a?0:a,h=l.scrollTop,u=void 0===h?0:h;r&&(c+=B(r,this.scrollPanelElm.scrollWidth-this.$el.clientWidth)),s&&(u+=B(s,this.scrollPanelElm.scrollHeight-this.$el.clientHeight)),this.internalScrollTo(c,u,t,o)},scrollIntoView:function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],o=this.$el;if("string"==typeof e&&(e=o.querySelector(e)),_(e,o)){var i=this.$el.getBoundingClientRect(),r=i.left,n=i.top,s=e.getBoundingClientRect(),l=r-s.left,a=n-s.top;this.scrollBy({dx:-l,dy:-a},t)}else S("The element or selector you passed is not the element of Vuescroll, please pass the element that is in Vuescroll to scrollIntoView API. ")},refresh:function(){this.refreshInternalStatus(),this.$nextTick(this.refreshInternalStatus)}}},z={};var k={vuescroll:{sizeStrategy:"percent",detectResize:!0},scrollPanel:{initialScrollY:!1,initialScrollX:!1,scrollingX:!0,scrollingY:!0,speed:300,easing:void 0,verticalNativeBarPos:"right",maxHeight:void 0,maxWidth:void 0},rail:{background:"#01a99a",opacity:0,border:"none",size:"6px",specifyBorderRadius:!1,gutterOfEnds:null,gutterOfSide:"2px",keepShow:!1},bar:{showDelay:500,specifyBorderRadius:!1,onlyShowBarOnScroll:!0,keepShow:!1,background:"rgb(3, 185, 118)",opacity:1,size:"6px",minSize:0,disable:!1},scrollButton:{enable:!1,background:"rgb(3, 185, 118)",opacity:1,step:180,mousedownStep:30}};var E=null,P=["slide","native"],M=function(){},C=["mergedOptions.vuescroll.pullRefresh.tips","mergedOptions.vuescroll.pushLoad.tips","mergedOptions.vuescroll.scroller.disable","mergedOptions.rail","mergedOptions.bar"],A="refreshDom",R="loadDom",H={vertical:{size:"height",opsSize:"width",posName:"top",opposName:"bottom",sidePosName:"right",page:"pageY",scroll:"scrollTop",scrollSize:"scrollHeight",offset:"offsetHeight",client:"clientY",axis:"Y",scrollButton:{start:"top",end:"bottom"}},horizontal:{size:"width",opsSize:"height",posName:"left",opposName:"right",sidePosName:"bottom",page:"pageX",scroll:"scrollLeft",scrollSize:"scrollWidth",offset:"offsetWidth",client:"clientX",axis:"X",scrollButton:{start:"left",end:"right"}}};function $(e){var o=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame,t=!!o;if(o&&!/requestAnimationFrame\(\)\s*\{\s*\[native code\]\s*\}/i.test(o.toString())&&(t=!1),t)return function(e,t){o(e,t)};var i={},r=1,n=null,s=+new Date;return function(e){var t=r++;return i[t]=e,null===n&&(n=setInterval(function(){var e=+new Date,t=i;for(var o in i={},t)t.hasOwnProperty(o)&&(t[o](e),s=e);2500<e-s&&(clearInterval(n),n=null)},1e3/60)),t}}var V={},X=/rgb\(/,Y=/rgb\((.*)\)/;function W(e,t){var o=e+"&"+t;if(V[o])return V[o];var i=document.createElement("div");i.style.background=e,document.body.appendChild(i);var r=window.getComputedStyle(i).backgroundColor;return document.body.removeChild(i),X.test(r)?V[o]="rgba("+Y.exec(r)[1]+", "+t+")":e}var N={name:"bar",props:{ops:Object,state:Object,hideBar:Boolean,otherBarHide:Boolean,type:String},computed:{bar:function(){return H[this.type]},barSize:function(){return Math.max(this.state.size,this.ops.bar.minSize)},barRatio:function(){return(1-this.barSize)/(1-this.state.size)}},render:function(e){var t,o,i,r=this,n=W(r.ops.rail.background,r.ops.rail.opacity);this.touchManager||(this.touchManager=new m);var s,l=r.ops.rail.size,a=r.otherBarHide?0:l,c=r.touchManager.getTouchObject(),h={class:"__rail-is-"+r.type,style:(t={position:"absolute","z-index":"1",borderRadius:r.ops.rail.specifyBorderRadius||l,background:n,border:r.ops.rail.border},g(t,r.bar.opsSize,l),g(t,r.bar.posName,r.ops.rail.gutterOfEnds||0),g(t,r.bar.opposName,r.ops.rail.gutterOfEnds||a),g(t,r.bar.sidePosName,r.ops.rail.gutterOfSide),t)};c&&(h.on=(g(s={},c.touchenter,function(){r.setRailHover()}),g(s,c.touchleave,function(){r.setRailLeave()}),s));var u=r.ops.scrollButton.enable?l:0,d={class:"__bar-wrap-is-"+r.type,style:(o={position:"absolute",borderRadius:r.ops.rail.specifyBorderRadius||l},g(o,r.bar.posName,u),g(o,r.bar.opposName,u),o),on:{}},_=r.state.posValue*r.state.size*r.barRatio/r.barSize,f=r.state.opacity;y(this).setClassHook("vertical"==this.type?"vBarVisible":"hBarVisible",!!f);var p={style:(g(i={cursor:"pointer",position:"absolute",margin:"auto",transition:"opacity 0.5s","user-select":"none","border-radius":"inherit"},r.bar.size,100*r.barSize+"%"),g(i,"background",r.ops.bar.background),g(i,r.bar.opsSize,r.ops.bar.size),g(i,"opacity",f),g(i,"transform","translate"+H[r.type].axis+"("+_+"%)"),i),class:"__bar-is-"+r.type,ref:"thumb",on:{}};"vertical"==r.type?(d.style.width="100%",p.style.left=0,p.style.right=0):(d.style.height="100%",p.style.top=0,p.style.bottom=0);var v=this.touchManager.getTouchObject();return p.on[v.touchstart]=this.createBarEvent(),d.on[v.touchstart]=this.createTrackEvent(),e("div",h,[this.createScrollbarButton(e,"start"),this.hideBar?null:e("div",d,[e("div",p)]),this.createScrollbarButton(e,"end")])},data:function(){return{isBarDragging:!1}},methods:{setRailHover:function(){var e=y(this),t=e.vuescroll.state;t.isRailHover||(t.isRailHover=!0,e.showBar())},setRailLeave:function(){var e=y(this);e.vuescroll.state.isRailHover=!1,e.hideBar()},setBarDrag:function(e){this.$emit("setBarDrag",this.isBarDragging=e),y(this).setClassHook("vertical"==this.type?"vBarDragging":"hBarDragging",!!e)},createBarEvent:function(){var n=this,s=y(n),o=n.touchManager.getTouchObject();function i(e){if(n.axisStartPos){var t=n.touchManager.getEventObject(e);if(t){t=t[0];var o=n.$refs.thumb.parentNode,i=t[n.bar.client]-o.getBoundingClientRect()[n.bar.posName],r=((i/=n.barRatio)-n.axisStartPos)/o[n.bar.offset];s.scrollTo(g({},n.bar.axis.toLowerCase(),s.scrollPanelElm[n.bar.scrollSize]*r),!1)}}}function r(){n.setBarDrag(!1),s.hideBar(),document.onselectstart=null,n.axisStartPos=0,b(document,o.touchmove,i,!1,"off"),b(document,o.touchend,r,!1,"off")}return function(e){var t=n.touchManager.getEventObject(e);t&&(e.stopImmediatePropagation(),e.preventDefault(),t=t[0],document.onselectstart=function(){return!1},n.axisStartPos=t[n.bar.client]-n.$refs.thumb.getBoundingClientRect()[n.bar.posName],n.setBarDrag(!0),b(document,o.touchmove,i),b(document,o.touchend,r))}},createTrackEvent:function(){var h=this;return function(e){var t=y(h),o=h.bar,i=o.client,r=o.offset,n=o.posName,s=o.axis,l=h.$refs.thumb;if(e.preventDefault(),e.stopImmediatePropagation(),l){var a=l[r],c=(h.touchManager.getEventObject(e)[0][i]-e.currentTarget.getBoundingClientRect()[n]-a/2)/(e.currentTarget[r]-a);t.scrollTo(g({},s.toLowerCase(),100*c+"%"))}}},createScrollbarButton:function(e,t){var o,i=this;if(!i.ops.scrollButton.enable)return null;var r=i.ops.rail.size,n=i.ops.scrollButton,s=n.opacity,l=W(n.background,s),a={class:["__bar-button","__bar-button-is-"+i.type+"-"+t],style:(o={},g(o,i.bar.scrollButton[t],0),g(o,"width",r),g(o,"height",r),g(o,"position","absolute"),g(o,"cursor","pointer"),g(o,"display","table"),o),ref:t},c={class:"__bar-button-inner",style:{border:"calc("+r+" / 2.5) solid transparent",width:"0",height:"0",margin:"auto",position:"absolute",top:"0",bottom:"0",right:"0",left:"0"},on:{}};"vertical"==i.type?"start"==t?(c.style["border-bottom-color"]=l,c.style.transform="translateY(-25%)"):(c.style["border-top-color"]=l,c.style.transform="translateY(25%)"):"start"==t?(c.style["border-right-color"]=l,c.style.transform="translateX(-25%)"):(c.style["border-left-color"]=l,c.style.transform="translateX(25%)");var h=this.touchManager.getTouchObject();return c.on[h.touchstart]=this.createScrollButtonEvent(t,h),e("div",a,[e("div",c)])},createScrollButtonEvent:function(o,i){var r=this,n=y(r),e=r.ops.scrollButton,t=e.step,s=e.mousedownStep,l="start"==o?-t:t,a="start"==o?-s:s,c=$(window),h=r.type,u=!1,d=!0,_=void 0;function f(){u&&!d&&(n.scrollBy(g({},"d"+r.bar.axis.toLowerCase(),a),!1),c(f,window))}function p(){if(clearTimeout(_),u=!1,b(document,i.touchend,p,!1,"off"),"mousedown"==i.touchstart){var e=r.$refs[o];b(e,"mouseenter",v,!1,"off"),b(e,"mouseleave",m,!1,"off")}n.setClassHook("cliking"+h+o+"Button",!1)}function v(){d=!1,f()}function m(){d=!0}return function(e){if(3!=e.which){if(n.setClassHook("cliking"+h+o+"Button",!0),e.stopImmediatePropagation(),e.preventDefault(),d=!1,n.scrollBy(g({},"d"+r.bar.axis.toLowerCase(),l)),b(document,i.touchend,p,!1),"mousedown"==i.touchstart){var t=r.$refs[o];b(t,"mouseenter",v,!1),b(t,"mouseleave",m,!1)}clearTimeout(_),_=setTimeout(function(){u=!0,c(f,window)},500)}}}}};function I(e,t){var o=H[t].axis,i=t.charAt(0)+"Bar",r=!e.bar[i].state.size||!e.mergedOptions.scrollPanel["scrolling"+o]||e.refreshLoad&&"vertical"!==t||e.mergedOptions.bar.disable,n=e.mergedOptions.rail.keepShow;return r&&!n?null:{hideBar:r,props:{type:t,ops:{bar:e.mergedOptions.bar,rail:e.mergedOptions.rail,scrollButton:e.mergedOptions.scrollButton},state:e.bar[i].state,hideBar:r},on:{setBarDrag:e.setBarDrag},ref:t+"Bar",key:t}}var j=function(e){var u=e.render,t=e.components,o=e.mixins;return{name:"vueScroll",props:{ops:{type:Object}},components:t,mixins:[r].concat(d([].concat(o))),created:function(){var t,o,e,i,r,n,s,l,a,c,h,u=this,d=f(this.$vuescrollConfig||{},{}),_=f(k,d);this.$options.propsData.ops=this.$options.propsData.ops||{},Object.keys(this.$options.propsData.ops).forEach(function(e){var t,o,i,r;t=u.mergedOptions,o=e,((i=u.$options.propsData.ops)[o]||"function"==typeof i)&&(r=r||o,Object.defineProperty(t,o,{get:function(){return i[r]},configurable:!0}))}),f(_,this.mergedOptions),this._isVuescrollRoot=!0,this.renderError=(t=this.mergedOptions,o=!1,e=t.scrollPanel,i=t.bar,r=i.vBar,n=i.hBar,s=t.rail,l=s.vRail,a=s.hRail,c=e.initialScrollY,h=e.initialScrollX,c&&!String(c).match(/^\d+(\.\d+)?(%)?$/)&&S("The prop `initialScrollY` or `initialScrollX` should be a percent number like `10%` or an exact number that greater than or equal to 0 like `100`."),h&&!String(h).match(/^\d+(\.\d+)?(%)?$/)&&S("The prop `initialScrollY` or `initialScrollX` should be a percent number like `10%` or an exact number that greater than or equal to 0 like `100`."),(r||n||l||a)&&S("The options: vRail, hRail, vBar, hBar have been deprecated since v4.7.0,please use corresponing rail/bar instead!"),E&&(E=[].concat(E)).forEach(function(e){e(t)&&(o=!0)}),o)},render:function(e){var t=this;if(t.renderError)return e("div",[[t.$slots.default]]);t.touchManager||(t.touchManager=new m);var o,i={style:{height:t.vuescroll.state.height,width:t.vuescroll.state.width,padding:0,position:"relative",overflow:"hidden"},class:T({__vuescroll:!0},t.classHooks)},r=t.touchManager.getTouchObject();r&&(i.on=(g(o={},r.touchenter,function(){t.vuescroll.state.pointerLeave=!1,t.updateBarStateAndEmitEvent(),t.setClassHook("mouseEnter",!0)}),g(o,r.touchleave,function(){t.vuescroll.state.pointerLeave=!0,t.hideBar(),t.setClassHook("mouseEnter",!1)}),g(o,r.touchmove,function(){t.vuescroll.state.pointerLeave=!1,t.updateBarStateAndEmitEvent()}),o));var n,s,l,a,c=[u(e,t)].concat(d((n=e,l=I(s=t,"vertical"),a=I(s,"horizontal"),s.setClassHook("hasVBar",!(!l||l.hideBar)),s.setClassHook("hasHBar",!(!a||a.hideBar)),[l?n("bar",T({},l,{props:T({otherBarHide:!a},l.props)})):null,a?n("bar",T({},a,{props:T({otherBarHide:!l},a.props)})):null]))),h=this.$slots["scroll-container"];return h?p(e,h,c,i):e("div",i,[c])},mounted:function(){var e=this;this.renderError||(this.initVariables(),this.initWatchOpsChange(),this.refreshInternalStatus(),this.updatedCbs.push(function(){e.scrollToAnchor(),e.updateBarStateAndEmitEvent()}))},updated:function(){var t=this;this.updatedCbs.forEach(function(e){e.call(t)}),this.updatedCbs=[]},beforeDestroy:function(){this.destroy&&this.destroy()},computed:{scrollPanelElm:function(){return this.$refs.scrollPanel._isVue?this.$refs.scrollPanel.$el:this.$refs.scrollPanel}},data:function(){return{vuescroll:{state:{isDragging:!1,pointerLeave:!0,isRailHover:!1,height:"100%",width:"100%",currentSizeStrategy:"percent",currentScrollState:null,currentScrollInfo:null}},bar:{vBar:{state:{posValue:0,size:0,opacity:0}},hBar:{state:{posValue:0,size:0,opacity:0}}},mergedOptions:{vuescroll:{},scrollPanel:{},scrollContent:{},rail:{},bar:{}},updatedCbs:[],renderError:!1,classHooks:{hasVBar:!1,hasHBar:!1,vBarVisible:!1,hBarVisible:!1,vBarDragging:!1,hBarDragging:!1,clikingVerticalStartButton:!1,clikingVerticalEndButton:!1,clikingHorizontalStartButton:!1,clikingHorizontalEndButton:!1,mouseEnter:!1}}},methods:{scrollingComplete:function(){this.updateBarStateAndEmitEvent("handle-scroll-complete")},setBarDrag:function(e){this.vuescroll.state.isDragging=e},setClassHook:function(e,t){this.classHooks[e]=t},showAndDefferedHideBar:function(e){var t=this;this.showBar(),this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0),this.timeoutId=setTimeout(function(){t.timeoutId=0,t.hideBar(e)},this.mergedOptions.bar.showDelay)},showBar:function(){var e=this.mergedOptions.bar.opacity;this.bar.vBar.state.opacity=e,this.bar.hBar.state.opacity=e},hideBar:function(e){var t=this.vuescroll.state,o=t.isDragging,i=t.isRailHover;o||i||(e&&!this.mergedOptions.bar.keepShow&&(this.bar.hBar.state.opacity=0,this.bar.vBar.state.opacity=0),this.mergedOptions.bar.keepShow||this.vuescroll.state.isDragging||(this.bar.vBar.state.opacity=0,this.bar.hBar.state.opacity=0))},useNumbericSize:function(){this.vuescroll.state.currentSizeStrategy="number";var e=this.mergedOptions.scrollPanel,t=e.maxHeight,o=e.maxWidth,i=this.$el.parentNode,r=i.clientHeight,n=i.clientWidth,s=this.scrollPanelElm,l=s.scrollHeight,a=s.scrollWidth,c=void 0,h=void 0;t||o?(h=l<=t?void 0:t,c=a<=o?void 0:o):(h=r,c=n),this.vuescroll.state.height=h?h+"px":void 0,this.vuescroll.state.width=c?c+"px":void 0},usePercentSize:function(){this.vuescroll.state.currentSizeStrategy="percent",this.vuescroll.state.height="100%",this.vuescroll.state.width="100%"},setVsSize:function(){var e=this.mergedOptions.vuescroll.sizeStrategy,t=this.mergedOptions.scrollPanel,o=t.maxHeight,i=t.maxWidth,r=this.scrollPanelElm,n=r.clientHeight,s=r.clientWidth;"number"==e||o&&o<n||i&&i<s?this.useNumbericSize():"percent"==e&&n!=o&&s!=i&&this.usePercentSize()},initWatchOpsChange:function(){var t=this,o={deep:!0,sync:!0};this.$watch("mergedOptions",function(){setTimeout(function(){if(t.isSmallChangeThisTick)return t.isSmallChangeThisTick=!1,void t.updateBarStateAndEmitEvent("options-change");t.refreshInternalStatus()},0)},o),C.forEach(function(e){t.$watch(e,function(){t.isSmallChangeThisTick=!0},o)})},scrollToAnchor:function(){var e=window.location.hash;if(e&&(!(e=e.slice(e.lastIndexOf("#")))||/^#[a-zA-Z_]\d*$/.test(e))){var t=document.querySelector(e);!_(t,this.$el)||this.mergedOptions.scrollPanel.initialScrollY||this.mergedOptions.scrollPanel.initialScrollX||this.scrollIntoView(t)}}}}},Z={name:"scrollPanel",props:{ops:{type:Object,required:!0}},methods:{updateInitialScroll:function(){var e=0,t=0,o=y(this);this.ops.initialScrollX&&(e=this.ops.initialScrollX),this.ops.initialScrollY&&(t=this.ops.initialScrollY),(e||t)&&o.scrollTo({x:e,y:t})}},mounted:function(){var e=this;setTimeout(function(){e._isDestroyed||e.updateInitialScroll()},0)},render:function(e){var t={class:["__panel"],style:{position:"relative",boxSizing:"border-box"}},o=y(this).$slots["scroll-panel"];return o?p(e,o,this.$slots.default,t):e("div",t,[[this.$slots.default]])}};function q(e,t){for(var o,i,r,n,s,l,a,c,h,u,d=e.children,_=[],f=0;f<d.length;f++){var p=d.item(f);void 0,o=p.getBoundingClientRect(),i=o.left,r=o.top,n=o.width,s=o.height,l=t.getBoundingClientRect(),a=l.left,c=l.top,h=l.height,u=l.width,0<i-a+n&&i-a<u&&0<r-c+s&&r-c<h&&!p.isResizeElm&&_.push(p)}return _}function F(t,o){return function(e){return o(t,e)}}function Q(e,t){var o=null;return"easeInQuad"===e&&(o=t*t),"easeOutQuad"===e&&(o=t*(2-t)),"easeInOutQuad"===e&&(o=t<.5?2*t*t:(4-2*t)*t-1),"easeInCubic"===e&&(o=t*t*t),"easeOutCubic"===e&&(o=--t*t*t+1),"easeInOutCubic"===e&&(o=t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1),"easeInQuart"===e&&(o=t*t*t*t),"easeOutQuart"===e&&(o=1- --t*t*t*t),"easeInOutQuart"===e&&(o=t<.5?8*t*t*t*t:1-8*--t*t*t*t),"easeInQuint"===e&&(o=t*t*t*t*t),"easeOutQuint"===e&&(o=1+--t*t*t*t*t),"easeInOutQuint"===e&&(o=t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t),o||t}function U(){return!0}var G=Date.now||function(){return(new Date).getTime()},K=function(){function e(){t(this,e),this.init(),this.isRunning=!1}return o(e,[{key:"pause",value:function(){this.isRunning&&(this.isPaused=!0)}},{key:"stop",value:function(){this.isStopped=!0}},{key:"continue",value:function(){this.isPaused&&(this.isPaused=!1,this.ts=G()-this.percent*this.spd,this.execScroll())}},{key:"startScroll",value:function(e,t,o){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:U,r=4<arguments.length&&void 0!==arguments[4]?arguments[4]:U,n=5<arguments.length&&void 0!==arguments[5]?arguments[5]:U,s=6<arguments.length&&void 0!==arguments[6]?arguments[6]:U,l=t-e,a=0<l?-1:1,c=G();this.isRunning||this.init(),a!=this.dir||200<c-this.ts?(this.ts=c,this.dir=a,this.st=e,this.ed=t,this.df=l):this.df+=l,this.spd=o,this.completeCb=r,this.vertifyCb=n,this.stepCb=i,this.easingMethod=s,this.isRunning||this.execScroll()}},{key:"execScroll",value:function(){var o=this;if(this.df){var i=this.percent||0;this.percent=0,this.isRunning=!0;this.ref(function e(){if(o.isRunning&&o.vertifyCb(i)&&!o.isStopped){if(i=(G()-o.ts)/o.spd,o.isPaused)return o.percent=i,void(o.isRunning=!1);if(i<1){var t=o.st+o.df*o.easingMethod(i);o.stepCb(t),o.ref(e)}else o.stepCb(o.st+o.df),o.completeCb(),o.isRunning=!1}else o.isRunning=!1})}}},{key:"init",value:function(){this.st=0,this.ed=0,this.df=0,this.spd=0,this.ts=0,this.dir=0,this.ref=$(window),this.isPaused=!1,this.isStopped=!1}}]),e}();function J(e){var t={ref:"scrollPanel",style:{height:"100%",overflowY:"scroll",overflowX:"scroll"},class:[],nativeOn:{"&scroll":e.handleScroll},props:{ops:e.mergedOptions.scrollPanel}};e.scrollYEnable=!0,e.scrollXEnable=!0,t.nativeOn.DOMMouseScroll=t.nativeOn.mousewheel=e.onMouseWheel;var o=e.mergedOptions.scrollPanel,i=o.scrollingY,r=o.scrollingX;e.bar.hBar.state.size&&r||(e.scrollXEnable=!1,t.style.overflowX="hidden"),e.bar.vBar.state.size&&i||(e.scrollYEnable=!1,t.style.overflowY="hidden");var n=function(){if(a())return 0;if(void 0!==h)return h;var e=document.createElement("div");e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var o=document.createElement("div");o.style.width="100%",e.appendChild(o);var i=o.offsetWidth;return e.parentNode.removeChild(e),h=t-i}();return n?(e.bar.vBar.state.size&&e.mergedOptions.scrollPanel.scrollingY&&("right"==e.mergedOptions.scrollPanel.verticalNativeBarPos?t.style.marginRight="-"+n+"px":t.style.marginLeft="-"+n+"px"),e.bar.hBar.state.size&&e.mergedOptions.scrollPanel.scrollingX&&(t.style.height="calc(100% + "+n+"px)")):(O("vuescroll-hide-ios-bar",".__hidebar::-webkit-scrollbar {\n width: 0;\n height: 0;\n }"),t.class.push("__hidebar"),l()&&(t.style["-webkit-overflow-scrolling"]="touch")),t.style.transformOrigin="",t.style.transform="",t}function ee(e,t){return e("scrollPanel",J(t),[function(e,t){var o={position:"relative","box-sizing":"border-box","min-width":"100%","min-height":"100%"},i={style:o,ref:"scrollContent",class:"__view"},r=t.$slots["scroll-content"];t.mergedOptions.scrollPanel.scrollingX?o.width=u("width","fit-content"):i.style.width="100%";t.mergedOptions.scrollPanel.padding&&(i.style.paddingRight=t.mergedOptions.rail.size);if(r)return p(e,r,t.$slots.default,i);return e("div",i,[t.$slots.default])}(e,t)])}function te(e,t,o,i){var r=t.vuescroll.state[o+"Stage"],n=null;if(n=t.$slots[o+"-"+r])return n;switch(r){case"deactive":case"active":var s="active";"deactive"==r&&(s+=" deactive"),n=e("svg",{class:s,attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 1000 1000","enable-background":"new 0 0 1000 1000",xmlSpace:"preserve"}},[e("metadata",[" Svg Vector Icons : http://www.sfont.cn "]),e("g",[e("g",{attrs:{transform:"matrix(1 0 0 -1 0 1008)"}},[e("path",{attrs:{d:"M10,543l490,455l490-455L885,438L570,735.5V18H430v717.5L115,438L10,543z"}})])])]);break;case"start":n=e("svg",{attrs:{viewBox:"0 0 50 50"},class:"start"},[e("circle",{attrs:{stroke:"true",cx:"25",cy:"25",r:"20"},class:"bg-path"}),e("circle",{attrs:{cx:"25",cy:"25",r:"20"},class:"active-path"})]);break;case"beforeDeactive":n=e("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3562"}},[e("path",{attrs:{d:"M512 0C229.706831 0 0 229.667446 0 512s229.667446 512 512 512c282.293169 0 512-229.667446 512-512S794.332554 0 512 0z m282.994215 353.406031L433.2544 715.145846a31.484062 31.484062 0 0 1-22.275938 9.231754h-0.4096a31.586462 31.586462 0 0 1-22.449231-9.814646L228.430769 546.327631a31.507692 31.507692 0 0 1 45.701908-43.386093l137.4208 144.785724L750.442338 308.854154a31.507692 31.507692 0 1 1 44.551877 44.551877z",fill:"","p-id":"3563"}})])}return[n,i]}function oe(e,t){var o,i,r,n;return e("scrollPanel",function(e){var t={ref:"scrollPanel",style:{"user-select":"none","-webkit-user-select":"none","min-width":"100%","min-height":"100%"},class:[],props:{ops:e.mergedOptions.scrollPanel}};t.class.push("__slide"),l()&&(t.style=g({},"-webkit-overflow-scrolling","touch")),"transform"==e.mergedOptions.vuescroll.renderMethod&&(t.style["transform-origin"]="left top 0px");var o=e.mergedOptions.scrollPanel,i=o.scrollingX,r=o.scrollingY,n=o.padding;if(i&&!e.refreshLoad){var s=u("width","fit-content");s?t.style.width=s:t.display="inline-block"}return i||t.class.push("x-hidden"),r||t.class.push("y-hidden"),n&&(t.style.paddingRight=e.mergedOptions.rail.size),t}(t),[(o=e,i=t,r=v(i.$slots["scroll-panel"]).ch||i.$slots.default,n=[],r||(i.$slots.default=r=[]),i.mergedOptions.vuescroll.pullRefresh.enable&&n.push(o("div",{class:"__refresh",style:{visibility:i.refrehDomVisiable?"":"hidden"},ref:A,key:A},[te(o,i,"refresh",i.pullRefreshTip)])),n.push(r),i.mergedOptions.vuescroll.pushLoad.enable&&n.push(o("div",{ref:R,key:R,class:"__load",style:{visibility:i.loadDomVisiable?"":"hidden"}},[te(o,i,"load",i.pushLoadTip)])),n)])}function ie(e,t){return function(e,t){if(e.hasResized)return;var o="display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; padding: 0; margin: 0; opacity: 0; z-index: -1000; pointer-events: none;",i=document.createElement("div");i.style.cssText=o;var r=document.createElement("object");r.style.cssText=o,r.type="text/html",r.tabIndex=-1,r.onload=function(){b(r.contentDocument.defaultView,"resize",t)},s()||(r.data="about:blank");i.isResizeElm=!0,i.appendChild(r),e.appendChild(i),s()&&(r.data="about:blank");return function(){r.contentDocument&&b(r.contentDocument.defaultView,"resize",t,"off"),e.removeChild(i),e.hasResized=!1}}(e,t)}var re={mixins:[{methods:{slideScrollTo:function(e,t,o,i){var r=this.getPosition(),n=r.scrollLeft,s=r.scrollTop;e=B(e||n,this.scroller.__maxScrollLeft),t=B(t||s,this.scroller.__maxScrollTop),this.scroller.scrollTo(e,t,0<o,void 0,!1,o,i)},zoomBy:function(e,t,o,i,r){this.scroller?this.scroller.zoomBy(e,t,o,i,r):S("zoomBy and zoomTo are only for slide mode!")},zoomTo:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=arguments[2],i=arguments[3],r=arguments[4];this.scroller?this.scroller.zoomTo(e,t,o,i,r):S("zoomBy and zoomTo are only for slide mode!")},getCurrentPage:function(){if(this.scroller&&this.mergedOptions.vuescroll.paging)return this.scroller.getCurrentPage();S("getCurrentPage and goToPage are only for slide mode and paging is enble!")},goToPage:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];this.scroller&&this.mergedOptions.vuescroll.paging?this.scroller.goToPage(e,t):S("getCurrentPage and goToPage are only for slide mode and paging is enble!")},triggerRefreshOrLoad:function(e){if(this.scroller){var t=this.mergedOptions.vuescroll.pullRefresh.enable,o=this.mergedOptions.vuescroll.pushLoad.enable;if("refresh"!=e||t)if("load"!=e||o)if("refresh"===e||"load"===e){if("start"!=this.vuescroll.state[e+"Stage"])return this.scroller.triggerRefreshOrLoad(e),!0}else S("param must be one of load and refresh!");else S("load must be enabled and content's height > container's height!");else S("refresh must be enabled!")}else S("You can only use triggerRefreshOrLoad in slide mode!")},getCurrentviewDomSlide:function(){return q(this.scrollPanelElm,this.$el)}}},{mounted:function(){this.scrollX=new K,this.scrollY=new K},methods:{nativeStop:function(){this.scrollX.stop(),this.scrollY.stop()},nativePause:function(){this.scrollX.pause(),this.scrollY.pause()},nativeContinue:function(){this.scrollX.continue(),this.scrollY.continue()},nativeScrollTo:function(e,t,o,i){!1===o||void 0===o&&(o=this.mergedOptions.scrollPanel.speed);var r=this.scrollPanelElm,n=r.scrollTop,s=r.scrollLeft,l=r.scrollWidth,a=r.clientWidth,c=r.scrollHeight,h=r.clientHeight;if(e=void 0===e?s:B(e,l-a),t=void 0===t?n:B(t,c-h),o){var u=F(i=i||this.mergedOptions.scrollPanel.easing,Q);e!=s&&this.scrollX.startScroll(s,e,o,function(e){r.scrollLeft=e},this.scrollingComplete.bind(this),void 0,u),t!=n&&this.scrollY.startScroll(n,t,o,function(e){r.scrollTop=e},this.scrollingComplete.bind(this),void 0,u)}else r.scrollTop=t,r.scrollLeft=e},getCurrentviewDomNative:function(){return q(this.scrollContentElm,this.$el)}}}],methods:{internalScrollTo:function(e,t,o,i){"native"==this.mode?this.nativeScrollTo(e,t,o,i):"slide"==this.mode&&this.slideScrollTo(e,t,o,i)},stop:function(){this.nativeStop()},pause:function(){this.nativePause()},continue:function(){this.nativeContinue()},getCurrentviewDom:function(){return"slide"==this.mode?this.getCurrentviewDomSlide():this.getCurrentviewDomNative()}}},ne=Date.now||function(){return+new Date},se={},le=1,ae={effect:{}},ce=null;ce="undefined"!=typeof window?window:{},ae.effect.Animate={requestAnimationFrame:$(ce),stop:function(e){var t=null!=se[e];return t&&(se[e]=null),t},isRunning:function(e){return null!=se[e]},start:function(l,a,c,h,u,d){var _=ne(),f=_,p=0,v=0,m=le++;if(d||(d=document.body),m%20==0){var e={};for(var t in se)e[t]=!0;se=e}return se[m]=!0,ae.effect.Animate.requestAnimationFrame(function e(t){var o=!0!==t,i=ne();if(!se[m]||a&&!a(m))return se[m]=null,void(c&&c(60-v/((i-_)/1e3),m,!1));if(o)for(var r=Math.round((i-f)/(1e3/60))-1,n=0;n<Math.min(r,4);n++)e(!0),v++;if(se[m]){h&&1<(p=(i-_)/h)&&(p=1);var s=u?u(p):p;!1!==l(s,i,o)&&1!==p||!o?o&&(f=i,ae.effect.Animate.requestAnimationFrame(e,d)):(se[m]=null,c&&c(60-v/((i-_)/1e3),m,1===p||null==h))}},d),m}};var he=null,ue=null;function de(e,t){for(var o in this.__callback=e,this.options={scrollingX:!0,scrollingY:!0,animating:!0,animationDuration:250,bouncing:{top:100,bottom:100,left:100,right:100},locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,scrollingComplete:M,animatingEasing:"easeOutCubic",noAnimatingEasing:"easeInOutCubic",penetrationDeceleration:.03,penetrationAcceleration:.08},t)this.options[o]=t[o];he=F(this.options.animatingEasing,Q),ue=F(this.options.noAnimatingEasing,Q)}var _e={__isSingleTouch:!1,__isTracking:!1,__didDecelerationComplete:!1,__isGesturing:!1,__isDragging:!1,__isDecelerating:!1,__isAnimating:!1,__clientLeft:0,__clientTop:0,__clientWidth:0,__clientHeight:0,__contentWidth:0,__contentHeight:0,__snapWidth:100,__snapHeight:100,__refreshHeight:null,__loadHeight:null,__refreshActive:!1,__refreshActivate:null,__refreshBeforeDeactivate:null,__refreshDeactivate:null,__refreshStart:null,__loadActive:null,__loadActivate:null,__loadBeforeDeactivate:null,__loadDeactivate:null,__loadStart:null,__zoomLevel:1,__scrollLeft:0,__scrollTop:0,__maxScrollLeft:0,__maxScrollTop:0,__scheduledLeft:0,__scheduledTop:0,__scheduledZoom:0,__currentPageX:null,__currentPageY:null,__totalXPage:null,__totalYPage:null,__disable:!1,__lastTouchLeft:null,__lastTouchTop:null,__lastTouchMove:null,__positions:null,__minDecelerationScrollLeft:null,__minDecelerationScrollTop:null,__maxDecelerationScrollLeft:null,__maxDecelerationScrollTop:null,__decelerationVelocityX:null,__decelerationVelocityY:null,setDimensions:function(e,t,o,i,r){var n=5<arguments.length&&void 0!==arguments[5]&&arguments[5],s=this;e===+e&&(s.__clientWidth=e),t===+t&&(s.__clientHeight=t),o===+o&&(s.__contentWidth=o),i===+i&&(s.__contentHeight=i),s.__computeScrollMax(),n||s.scrollTo(s.__scrollLeft,s.__scrollTop,r)},setPosition:function(e,t){this.__clientLeft=e||0,this.__clientTop=t||0},setSnapSize:function(e,t){this.__snapWidth=e,this.__snapHeight=t},activatePullToRefresh:function(e,t){var o=t.activateCallback,i=t.deactivateCallback,r=t.startCallback,n=t.beforeDeactivateCallback,s=t.beforeDeactiveEnd,l=this;l.__refreshHeight=e,l.__refreshActivate=o,l.__refreshBeforeDeactivate=n,l.__refreshBeforeDeactiveEnd=s,l.__refreshDeactivate=i,l.__refreshStart=r},activatePushToLoad:function(e,t){var o=t.activateCallback,i=t.deactivateCallback,r=t.startCallback,n=t.beforeDeactivateCallback,s=t.beforeDeactiveEnd,l=this;l.__loadHeight=e,l.__loadActivate=o,l.__loadBeforeDeactivate=n,l.__loadBeforeDeactiveEnd=s,l.__loadDeactivate=i,l.__loadStart=r},triggerRefreshOrLoad:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"refresh",t=this.__isDecelerating;if(t&&(ae.effect.Animate.stop(t),this.__isDecelerating=!1),"refresh"==e){if(this.__refreshActive||this.__refreshBeforeDeactiveStarted)return;this.__publish(this.__scrollLeft,-this.__refreshHeight,this.__zoomLevel,!0),this.__refreshStart&&(this.__refreshStart(),this.__refreshActive=!0)}else if("load"==e){if(this.__loadActive||this.__loadBeforeDeactiveStarted)return;this.__publish(this.__scrollLeft,this.__maxScrollTop+this.__loadHeight,this.__zoomLevel,!0),this.__loadStart&&(this.__loadStart(),this.__loadActive=!0)}},finishRefreshOrLoad:function(){var e=this;if(e.__refreshActive){e.__refreshActive=!1;var t=function(){e.__refreshBeforeDeactiveEnd&&e.__refreshBeforeDeactiveEnd(),e.__refreshBeforeDeactiveStarted=!0,e.scrollTo(e.__scrollLeft,e.__scrollTop,!0)};e.__refreshBeforeDeactivate?e.__refreshBeforeDeactivate(t):t()}if(e.__loadActive){e.__loadActive=!1;var o=function(){e.__loadBeforeDeactiveEnd&&e.__loadBeforeDeactiveEnd(),e.__loadBeforeDeactiveStarted=!0,e.scrollTo(e.__scrollLeft,e.__scrollTop,!0)};e.__loadBeforeDeactivate?e.__loadBeforeDeactivate(o):o()}},getValues:function(){return{left:this.__scrollLeft,top:this.__scrollTop,zoom:this.__zoomLevel}},getScrollMax:function(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}},zoomTo:function(e,t,o,i,r){var n=this;if(!n.options.zooming)throw new Error("Zooming is not enabled!");r&&(n.__zoomComplete=r),n.__isDecelerating&&(ae.effect.Animate.stop(n.__isDecelerating),n.__isDecelerating=!1);var s=n.__zoomLevel;null==o&&(o=n.__clientWidth/2),null==i&&(i=n.__clientHeight/2),e=Math.max(Math.min(e,n.options.maxZoom),n.options.minZoom),n.__computeScrollMax(e);var l=(o+n.__scrollLeft)*e/s-o,a=(i+n.__scrollTop)*e/s-i;l>n.__maxScrollLeft?l=n.__maxScrollLeft:l<0&&(l=0),a>n.__maxScrollTop?a=n.__maxScrollTop:a<0&&(a=0),n.__publish(l,a,e,t)},zoomBy:function(e,t,o,i,r){this.zoomTo(this.__zoomLevel*e,t,o,i,r)},scrollTo:function(e,t,o,i,r,n,s){var l=this;if(l.__isDecelerating&&(ae.effect.Animate.stop(l.__isDecelerating),l.__isDecelerating=!1),null!=i&&i!==l.__zoomLevel){if(!l.options.zooming)throw new Error("Zooming is not enabled!");e*=i,t*=i,l.__computeScrollMax(i)}else i=l.__zoomLevel;l.options.scrollingX||r?l.options.paging?e=Math.round(e/l.__clientWidth)*l.__clientWidth:l.options.snapping&&(e=Math.round(e/l.__snapWidth)*l.__snapWidth):e=l.__scrollLeft,l.options.scrollingY||r?l.options.paging?t=Math.round(t/l.__clientHeight)*l.__clientHeight:l.options.snapping&&(t=Math.round(t/l.__snapHeight)*l.__snapHeight):t=l.__scrollTop,r||(e=Math.max(Math.min(l.__maxScrollLeft,e),0),t=Math.max(Math.min(l.__maxScrollTop,t),0)),e===l.__scrollLeft&&t===l.__scrollTop&&(o=!1),l.__isTracking||l.__publish(e,t,i,o,n,s)},scrollBy:function(e,t,o){var i=this,r=i.__isAnimating?i.__scheduledLeft:i.__scrollLeft,n=i.__isAnimating?i.__scheduledTop:i.__scrollTop;i.scrollTo(r+(e||0),n+(t||0),o)},getCurrentPage:function(){return this.__computePage(),{x:this.__currentPageX,y:this.__currentPageY}},goToPage:function(e,t){var o=e.x,i=e.y;isNaN(o)&&(o=1),isNaN(i)&&(i=1),this.scrollTo((o-1)*this.__clientWidth,(i-1)*this.__clientHeight,t)},doMouseZoom:function(e,t,o,i){var r=0<e?.97:1.03;return this.zoomTo(this.__zoomLevel*r,!1,o-this.__clientLeft,i-this.__clientTop)},doTouchStart:function(e,t){if(null==e.length)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),"number"!=typeof t)throw new Error("Invalid timestamp value: "+t);var o,i,r=this;r.__interruptedAnimation=!0,r.__isDecelerating&&(ae.effect.Animate.stop(r.__isDecelerating),r.__isDecelerating=!1,r.__interruptedAnimation=!0),r.__isAnimating&&(ae.effect.Animate.stop(r.__isAnimating),r.__isAnimating=!1,r.__interruptedAnimation=!0);var n=1===e.length;n?(o=e[0].pageX,i=e[0].pageY):(o=Math.abs(e[0].pageX+e[1].pageX)/2,i=Math.abs(e[0].pageY+e[1].pageY)/2),r.__initialTouchLeft=o,r.__initialTouchTop=i,r.__zoomLevelStart=r.__zoomLevel,r.__lastTouchLeft=o,r.__lastTouchTop=i,r.__lastTouchMove=t,r.__lastScale=1,r.__enableScrollX=!n&&r.options.scrollingX,r.__enableScrollY=!n&&r.options.scrollingY,r.__isTracking=!0,r.__didDecelerationComplete=!1,r.__isDragging=!n,r.__isSingleTouch=n,r.__positions=[]},doTouchMove:function(e,t,o){if(null==e.length)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),"number"!=typeof t)throw new Error("Invalid timestamp value: "+t);var i=this;if(i.__isTracking){var r,n;2===e.length?(r=Math.abs(e[0].pageX+e[1].pageX)/2,n=Math.abs(e[0].pageY+e[1].pageY)/2):(r=e[0].pageX,n=e[0].pageY);var s=i.__positions;if(i.__isDragging){var l=r-i.__lastTouchLeft,a=n-i.__lastTouchTop,c=i.__scrollLeft,h=i.__scrollTop,u=i.__zoomLevel;if(null!=o&&i.options.zooming){var d=u;if(u=u/i.__lastScale*o,d!==(u=Math.max(Math.min(u,i.options.maxZoom),i.options.minZoom))){var _=r-i.__clientLeft,f=n-i.__clientTop;c=(_+c)*u/d-_,h=(f+h)*u/d-f,i.__computeScrollMax(u)}}var p=i.options.bouncing;if(i.__enableScrollX){c-=l*this.options.speedMultiplier;var v=i.__maxScrollLeft;(v<c||c<0)&&(c+=l/2*this.options.speedMultiplier,c=Math.min(Math.max(-p.left,c),v+p.right))}if(i.__enableScrollY){h-=a*this.options.speedMultiplier;var m=i.__maxScrollTop;(m<h||h<0)&&(h+=a/2*this.options.speedMultiplier,h=Math.min(Math.max(-p.top,h),m+p.bottom),i.__enableScrollX||null==i.__refreshHeight&&null==i.__loadHeight||(!i.__refreshActive&&h<=-i.__refreshHeight?(i.__refreshActive=!0,i.__refreshActivate&&i.__refreshActivate()):i.__refreshActive&&h>-i.__refreshHeight?(i.__refreshActive=!1,i.__refreshDeactivate&&i.__refreshDeactivate()):!i.__loadActive&&h>=i.__maxScrollTop+i.__loadHeight&&0<i.__loadHeight?(i.__loadActive=!0,i.__loadActivate&&i.__loadActivate()):i.__loadActive&&h<i.__maxScrollTop+i.__loadHeight&&(i.__loadActive=!1,i.__loadDeactivate&&i.__loadDeactivate())))}60<s.length&&s.splice(0,30),s.push(c,h,t),i.__publish(c,h,u)}else{var g=i.options.locking?3:0,b=Math.abs(r-i.__initialTouchLeft),S=Math.abs(n-i.__initialTouchTop);i.__enableScrollX=i.options.scrollingX&&g<=b,i.__enableScrollY=i.options.scrollingY&&g<=S,s.push(i.__scrollLeft,i.__scrollTop,t),i.__isDragging=(i.__enableScrollX||i.__enableScrollY)&&(5<=b||5<=S),i.__isDragging&&(i.__interruptedAnimation=!1)}i.__lastTouchLeft=r,i.__lastTouchTop=n,i.__lastTouchMove=t,i.__lastScale=o}},doTouchEnd:function(e){if(e instanceof Date&&(e=e.valueOf()),"number"!=typeof e)throw new Error("Invalid timestamp value: "+e);var t=this;if(t.__isTracking){if(t.__isTracking=!1,t.__isDragging)if(t.__isDragging=!1,t.__isSingleTouch&&t.options.animating&&e-t.__lastTouchMove<=100){for(var o=t.__positions,i=o.length-1,r=i,n=i;0<n&&o[n]>t.__lastTouchMove-100;n-=3)r=n;if(r!==i){var s=o[i]-o[r],l=t.__scrollLeft-o[r-2],a=t.__scrollTop-o[r-1];t.__decelerationVelocityX=l/s*(1e3/60),t.__decelerationVelocityY=a/s*(1e3/60);var c=t.options.paging||t.options.snapping?4:1;Math.abs(t.__decelerationVelocityX)>c||Math.abs(t.__decelerationVelocityY)>c?t.__refreshActive||t.__loadActive||t.__startDeceleration(e):t.__scrollComplete()}else t.__scrollComplete()}else 100<e-t.__lastTouchMove&&t.__scrollComplete();t.__isDecelerating||(t.__refreshActive&&t.__refreshStart?(t.__publish(t.__scrollLeft,-t.__refreshHeight,t.__zoomLevel,!0),t.__refreshStart&&t.__refreshStart()):t.__loadActive&&t.__loadStart?(t.__publish(t.__scrollLeft,t.__maxScrollTop+t.__loadHeight,t.__zoomLevel,!0),t.__loadStart&&t.__loadStart()):((t.__interruptedAnimation||t.__isDragging)&&t.__scrollComplete(),t.scrollTo(t.__scrollLeft,t.__scrollTop,!0,t.__zoomLevel),t.__refreshActive?(t.__refreshActive=!1,t.__refreshDeactivate&&t.__refreshDeactivate()):t.__loadActive&&(t.__loadActive=!1,t.__loadDeactivate&&t.__loadDeactivate()))),t.__positions.length=0}},onScroll:M,stop:function(){this.__disable=!0},start:function(){this.__disable=!0},__publish:function(e,t,o,i,r,n){var s=this;if(!s.__disable){isNaN(e)&&(e=this.__scrollLeft),isNaN(t)&&(t=this.__scrollTop);var l=s.__isAnimating;if(l&&(ae.effect.Animate.stop(l),s.__isAnimating=!1),i&&(s.options.animating||r)){s.__scheduledLeft=e,s.__scheduledTop=t,s.__scheduledZoom=o;var a=s.__scrollLeft,c=s.__scrollTop,h=s.__zoomLevel,u=e-a,d=t-c,_=o-h,f=he;n&&(f=F(n,Q)),s.__isAnimating=ae.effect.Animate.start(function(e,t,o){o&&(s.__scrollLeft=a+u*e,s.__scrollTop=c+d*e,s.__zoomLevel=h+_*e,s.__callback&&(s.__callback(s.__scrollLeft,s.__scrollTop,s.__zoomLevel),s.onScroll()))},function(e){return s.__isAnimating===e},function(e,t,o){t===s.__isAnimating&&(s.__isAnimating=!1),(s.__didDecelerationComplete||o)&&s.__scrollComplete(),s.options.zooming&&(s.__computeScrollMax(),s.__zoomComplete&&(s.__zoomComplete(),s.__zoomComplete=null)),s.__refreshBeforeDeactiveStarted&&(s.__refreshBeforeDeactiveStarted=!1,s.__refreshDeactivate&&s.__refreshDeactivate()),s.__loadBeforeDeactiveStarted&&(s.__loadBeforeDeactiveStarted=!1,s.__loadDeactivate&&s.__loadDeactivate())},r||s.options.animationDuration,l?f:ue)}else s.__scheduledLeft=s.__scrollLeft=e,s.__scheduledTop=s.__scrollTop=t,s.__scheduledZoom=s.__zoomLevel=o,s.__callback&&(s.__callback(e,t,o),s.onScroll()),s.options.zooming&&(s.__computeScrollMax(),s.__zoomComplete&&(s.__zoomComplete(),s.__zoomComplete=null)),s.__refreshBeforeDeactiveStarted&&(s.__refreshBeforeDeactiveStarted=!1,s.__refreshDeactivate&&s.__refreshDeactivate()),s.__loadBeforeDeactiveStarted&&(s.__loadBeforeDeactiveStarted=!1,s.__loadDeactivate&&s.__loadDeactivate())}},__computeScrollMax:function(e){var t=this;null==e&&(e=t.__zoomLevel),t.__maxScrollLeft=Math.max(t.__contentWidth*e-t.__clientWidth,0),t.__maxScrollTop=Math.max(t.__contentHeight*e-t.__clientHeight,0)},__computePage:function(){var e=this,t=e.__clientWidth,o=e.__clientHeight,i=e.__scrollLeft,r=e.__scrollTop;e.__totalXPage=Math.ceil(e.__contentWidth/t),e.__currentPageX=Math.ceil(i/t+1),e.__totalYPage=Math.ceil(e.__contentHeight/o),e.__currentPageY=Math.ceil(r/o+1)},__scrollComplete:function(){this.options.scrollingComplete()},__startDeceleration:function(){var i=this;if(i.options.paging){var e=Math.max(Math.min(i.__scrollLeft,i.__maxScrollLeft),0),t=Math.max(Math.min(i.__scrollTop,i.__maxScrollTop),0),o=i.__clientWidth,r=i.__clientHeight;i.__minDecelerationScrollLeft=Math.floor(e/o)*o,i.__minDecelerationScrollTop=Math.floor(t/r)*r,i.__maxDecelerationScrollLeft=Math.ceil(e/o)*o,i.__maxDecelerationScrollTop=Math.ceil(t/r)*r}else i.__minDecelerationScrollLeft=0,i.__minDecelerationScrollTop=0,i.__maxDecelerationScrollLeft=i.__maxScrollLeft,i.__maxDecelerationScrollTop=i.__maxScrollTop;var n=i.options.snapping?4:.001;i.__isDecelerating=ae.effect.Animate.start(function(e,t,o){i.__stepThroughDeceleration(o)},function(){var e=Math.abs(i.__decelerationVelocityX)>=n||Math.abs(i.__decelerationVelocityY)>=n;return e||(i.__didDecelerationComplete=!0),e},function(){i.__isDecelerating&&(i.__isDecelerating=!1,i.__didDecelerationComplete&&i.__scrollComplete(),i.scrollTo(i.__scrollLeft,i.__scrollTop,i.options.snapping))})},__stepThroughDeceleration:function(e){var t=this,o=t.options.bouncing,i=t.__minDecelerationScrollLeft,r=t.__maxDecelerationScrollLeft,n=t.__minDecelerationScrollTop,s=t.__maxDecelerationScrollTop,l=t.__scrollLeft+t.__decelerationVelocityX,a=t.__scrollTop+t.__decelerationVelocityY,c=l<i||r<l,h=a<n||s<a,u=Math.min(Math.max(i-o.left,l),r+o.right),d=Math.min(Math.max(n-o.top,a),s+o.bottom);if(e?t.__publish(u,d,t.__zoomLevel):(t.__scrollLeft=l,t.__scrollTop=a),!t.options.paging){t.__decelerationVelocityX*=.95,t.__decelerationVelocityY*=.95}var _=0,f=0,p=t.options.penetrationDeceleration,v=t.options.penetrationAcceleration;c&&(l<t.__minDecelerationScrollLeft?_=t.__minDecelerationScrollLeft-l:l>t.__maxDecelerationScrollLeft&&(_=t.__maxDecelerationScrollLeft-l)),h&&(a<t.__minDecelerationScrollTop?f=t.__minDecelerationScrollTop-a:a>t.__maxDecelerationScrollTop&&(f=t.__maxDecelerationScrollTop-a)),0!==_&&(_*t.__decelerationVelocityX<=0?(t.__decelerationVelocityX+=_*p,_<0&&-_>=o.right&&0<t.__decelerationVelocityX&&(t.__decelerationVelocityX=-o.right/2),0<_&&_>=o.left&&t.__decelerationVelocityX<0&&(t.__decelerationVelocityX=o.left/2)):t.__decelerationVelocityX=_*v),0!==f&&(f*t.__decelerationVelocityY<=0?(t.__decelerationVelocityY+=f*p,f<0&&-f>=o.bottom&&0<t.__decelerationVelocityY&&(t.__decelerationVelocityY=-o.bottom/2),0<f&&f>=o.top&&t.__decelerationVelocityY<0&&(t.__decelerationVelocityY=o.top/2)):t.__decelerationVelocityY=f*v/2)}};for(var fe in _e)de.prototype[fe]=_e[fe];var pe=new m;O("vuescroll-silde-mode-style","\n @-webkit-keyframes loading-rotate {\n to {\n -webkit-transform: rotate(1turn);\n transform: rotate(1turn);\n }\n }\n\n @keyframes loading-rotate {\n to {\n -webkit-transform: rotate(1turn);\n transform: rotate(1turn);\n }\n }\n\n @-webkit-keyframes loading-wipe {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -40px;\n }\n to {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -120px;\n }\n }\n\n @keyframes loading-wipe {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -40px;\n }\n to {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -120px;\n }\n }\n\n .__vuescroll .__refresh,\n .__vuescroll .__load {\n position: absolute;\n width: 100%;\n color: black;\n height: 50px;\n line-height: 50px;\n text-align: center;\n font-size: 16px;\n }\n .__vuescroll .__refresh svg,\n .__vuescroll .__load svg {\n margin-right: 10px;\n width: 25px;\n height: 25px;\n vertical-align: sub;\n }\n .__vuescroll .__refresh svg.active,\n .__vuescroll .__load svg.active {\n transition: all 0.2s;\n }\n .__vuescroll .__refresh svg.active.deactive,\n .__vuescroll .__load svg.active.deactive {\n transform: rotateZ(180deg);\n }\n .__vuescroll .__refresh svg path,\n .__vuescroll .__refresh svg rect,\n .__vuescroll .__load svg path,\n .__vuescroll .__load svg rect {\n fill: #20a0ff;\n }\n .__vuescroll .__refresh svg.start,\n .__vuescroll .__load svg.start {\n stroke: #343640;\n stroke-width: 4;\n stroke-linecap: round;\n -webkit-animation: loading-rotate 2s linear infinite;\n animation: loading-rotate 2s linear infinite;\n }\n .__vuescroll .__refresh svg.start .bg-path,\n .__vuescroll .__load svg.start .bg-path {\n stroke: #f2f2f2;\n fill: none;\n }\n .__vuescroll .__refresh svg.start .active-path,\n .__vuescroll .__load svg.start .active-path {\n stroke: #20a0ff;\n fill: none;\n stroke-dasharray: 90, 150;\n stroke-dashoffset: 0;\n -webkit-animation: loading-wipe 1.5s ease-in-out infinite;\n animation: loading-wipe 1.5s ease-in-out infinite;\n }\n ");var ve=function(e,t){var o,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:[],n=(g(o={},Z.name,Z),g(o,N.name,N),o),s={};s.components=n,s.render=t,s.mixins=e;var l,a=j(s);return l=r,[].concat(i).forEach(function(e){f(e,k)}),E=l,a}({mixins:[re].concat(d([{mounted:function(){this.vsMounted=!0},computed:{pullRefreshTip:function(){return this.mergedOptions.vuescroll.pullRefresh.tips[this.vuescroll.state.refreshStage]},pushLoadTip:function(){return this.mergedOptions.vuescroll.pushLoad.tips[this.vuescroll.state.loadStage]},refreshLoad:function(){return this.mergedOptions.vuescroll.pullRefresh.enable||this.mergedOptions.vuescroll.pushLoad.enable},refrehDomVisiable:function(){return this.vsMounted&&this.outTheTopBoundary},loadDomVisiable:function(){return this.vsMounted&&this.outTheBottomBoundary}},data:function(){return{vuescroll:{state:{refreshStage:"deactive",loadStage:"deactive"}},vsMounted:!1,outTheTopBoundary:!1,outTheBottomBoundary:!1}},methods:{updateScroller:function(){this.updateDimesion(),this.registryRefreshLoad()},updateDimesion:function(){var e=this.$el.clientWidth,t=this.$el.clientHeight,o=this.scrollPanelElm.scrollWidth,i=this.scrollPanelElm.scrollHeight,r=0,n=0;if(this.mergedOptions.vuescroll.pullRefresh.enable&&this.vsMounted){var s=this.$refs[A].elm||this.$refs[A];r=s.offsetHeight,s.style.marginTop=-r+"px"}if(this.mergedOptions.vuescroll.pushLoad.enable&&this.vsMounted){var l=this.$refs[R].elm||this.$refs[R];i-=n=l.offsetHeight,l.style.bottom="-"+n+"px"}this.scroller&&this.scroller.setDimensions(e,t,o,i,!1)},registryRefreshLoad:function(){this.mergedOptions.vuescroll.pullRefresh.enable&&this.registryEvent("refresh"),this.mergedOptions.vuescroll.pushLoad.enable&&this.registryEvent("load")},registryScroller:function(){var c=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.left,o=void 0===t?0:t,i=e.top,r=void 0===i?0:i,n=e.zoom,s=void 0===n?1:n,l=this.mergedOptions.vuescroll.scroller,a=l.preventDefault,h=l.preventDefaultOnMove,u=this.mergedOptions.vuescroll,d=u.paging,_=u.snapping.enable,f=u.renderMethod,p=u.zooming;p=!this.refreshLoad&&!d&&!_&&p;var v=this.mergedOptions.scrollPanel,m=v.scrollingY,g=v.scrollingX,b=this.scrollingComplete.bind(this);this.scroller=new de(function(i,e,r,t){if("position"==t)return function(e,t){i.style.left=-e+"px",i.style.top=-t+"px"};var o=w(e),n=document.createElement("div"),s=o+"Perspective",l="transform";return void 0!==n.style[s]?function(e,t,o){i.style[l]="translate3d("+-e+r+","+-t+r+",0) scale("+o+")"}:void 0!==n.style[l]?function(e,t,o){i.style[l]="translate("+-e+r+","+-t+r+") scale("+o+")"}:void 0}(this.scrollPanelElm,window,"px",f),T({},this.mergedOptions.vuescroll.scroller,{zooming:p,scrollingY:m,scrollingX:g&&!this.refreshLoad,animationDuration:this.mergedOptions.scrollPanel.speed,paging:d,snapping:_,scrollingComplete:b})),this.scroller.__disable=this.mergedOptions.vuescroll.scroller.disable,this.scroller.__scrollLeft=o,this.scroller.__scrollTop=r,this.scroller.__zoomLevel=s,_&&this.scroller.setSnapSize(this.mergedOptions.vuescroll.snapping.width,this.mergedOptions.vuescroll.snapping.height);var S=this.$el.getBoundingClientRect();this.scroller.setPosition(S.left+this.$el.clientLeft,S.top+this.$el.clientTop);var y=function(e,o,i,t,r,n){var s,l=!1,a=pe.getTouchObject();function c(e){var t=pe.getEventObject(e);t[0]&&t[0].target&&t[0].target.tagName.match(/input|textarea|select/i)||o.__disable||(i("mousedown"),l=!0,o.doTouchStart(t,e.timeStamp),r&&e.preventDefault(),e.stopPropagation(),document.addEventListener(a.touchmove,h,{passive:!1}))}function h(e){if(!o.__disable&&l){var t=pe.getEventObject(e);i("mousemove"),o.doTouchMove(t,e.timeStamp,e.scale),n&&e.preventDefault()}}function u(e){i("mouseup"),l=!1,o.doTouchEnd(e.timeStamp),document.removeEventListener(a.touchmove,h)}function d(e){o.doTouchEnd(e.timeStamp)}function _(e){o.doMouseZoom(e.detail?-120*e.detail:e.wheelDelta,e.timeStamp,e.pageX,e.pageY)}return e.addEventListener(a.touchstart,c,!1),document.addEventListener(a.touchend,u,!1),document.addEventListener(a.touchcancel,d,!1),t&&!pe.isTouch&&e.addEventListener(-1<navigator.userAgent.indexOf("Firefox")?"DOMMouseScroll":"mousewheel",_,!1),s=function(){e.removeEventListener(a.touchstart,c,!1),document.removeEventListener(a.touchend,u,!1),document.removeEventListener(a.touchcancel,d,!1),e.removeEventListener(-1<navigator.userAgent.indexOf("Firefox")?"DOMMouseScroll":"mousewheel",_,!1)},o.onScroll=function(){i("onscroll")},s}(this.$el,this.scroller,function(e){switch(e){case"mousedown":c.vuescroll.state.isDragging=!0;break;case"onscroll":var t=c.vuescroll.state.loadStage,o=c.mergedOptions.vuescroll.pushLoad,i=o.enable,r=o.auto,n=o.autoLoadDistance,s=c.scroller,l=s.__scrollTop,a=s.__maxScrollTop;"start"!=t&&i&&r&&!c.lockAutoLoad&&a-l<=n&&0<l&&(c.lockAutoLoad=!0,c.triggerRefreshOrLoad("load")),n<a-l&&(c.lockAutoLoad=!1),c.handleScroll(!1);break;case"mouseup":c.vuescroll.state.isDragging=!1}},p,a,h);return this.updateScroller(),y},updateSlideModeBarState:function(){var e,t,o=this.$el,i=this.scroller,r=0,n=0,s=this.$el,l=s.clientWidth,a=s.clientHeight,c=l+this.scroller.__maxScrollLeft,h=a+this.scroller.__maxScrollTop;i.__scrollLeft<0?r=-i.__scrollLeft:i.__scrollLeft>i.__maxScrollLeft&&(r=i.__scrollLeft-i.__maxScrollLeft),i.__scrollTop<0?(n=-i.__scrollTop,this.outTheBottomBoundary=!1,this.outTheTopBoundary=!0):i.__scrollTop>i.__maxScrollTop?(n=i.__scrollTop-i.__maxScrollTop,this.outTheTopBoundary=!1,this.outTheBottomBoundary=!0):this.outTheTopBoundary=this.outTheBottomBoundary=!1,e=a/(h+n),t=l/(c+r);var u=Math.min(Math.max(0,i.__scrollTop),i.__maxScrollTop),d=Math.min(Math.max(0,i.__scrollLeft),i.__maxScrollLeft);this.bar.vBar.state.posValue=100*(u+n)/o.clientHeight,this.bar.hBar.state.posValue=100*(d+r)/o.clientWidth,i.__scrollLeft<0&&(this.bar.hBar.state.posValue=0),i.__scrollTop<0&&(this.bar.vBar.state.posValue=0),this.bar.vBar.state.size=e<1?e:0,this.bar.hBar.state.size=t<1?t:0},registryEvent:function(e){var t,o,i,r,n,s,l,a="refresh"==e?A:R,c="refresh"==e?this.scroller.activatePullToRefresh:this.scroller.activatePushToLoad,h="refresh"==e?"refreshStage":"loadStage",u=this.$refs[a].elm||this.$refs[a],d=(t=e,o=h,r=u,n=(i=this).$listeners,s=function(){i.vuescroll.state[o]="start",setTimeout(function(){i.scroller.finishRefreshOrLoad()},2e3)},l=void 0,n[t+"-before-deactivate"]&&(l=function(e){i.vuescroll.state[o]="beforeDeactive",i.$emit(t+"-before-deactivate",i,r,e.bind(i.scroller))}),n[t+"-start"]&&(s=function(){i.vuescroll.state[o]="start",i.$emit(t+"-start",i,r,i.scroller.finishRefreshOrLoad.bind(i.scroller))}),{activateCallback:function(){i.vuescroll.state[o]="active",i.$emit(t+"-activate",i,r)},deactivateCallback:function(){i.vuescroll.state[o]="deactive",i.$emit(t+"-deactivate",i,r)},startCallback:s,beforeDeactivateCallback:l,beforeDeactiveEnd:function(){i.vuescroll.state[o]="beforeDeactiveEnd",i.$emit(t+"-before-deactivate-end",i,r)}}),_=u.offsetHeight;c.bind(this.scroller)(_,d)},getSlidePosition:function(){return{scrollLeft:this.scroller.__scrollLeft,scrollTop:this.scroller.__scrollTop}}}},{methods:{updateNativeModeBarState:function(){var e=this.scrollPanelElm,t="percent"==this.vuescroll.state.currentSizeStrategy,o=this.vuescroll.state,i=o.width,r=o.height,n=t||!i?e.clientWidth:i.slice(0,-2),s=t||!r?e.clientHeight:r.slice(0,-2),l=s/e.scrollHeight,a=n/e.scrollWidth;this.bar.vBar.state.posValue=100*e.scrollTop/s,this.bar.hBar.state.posValue=100*e.scrollLeft/n,this.bar.vBar.state.size=l<1?l:0,this.bar.hBar.state.size=a<1?a:0},getNativePosition:function(){return{scrollTop:this.scrollPanelElm.scrollTop,scrollLeft:this.scrollPanelElm.scrollLeft}},css:function(e,t){return window.getComputedStyle(e)[t]},checkScrollable:function(e,t,o){for(var i=!1,r=e.target?e.target:e;r&&1==r.nodeType&&r!==this.scrollPanelElm.parentNode&&!/^BODY|HTML/.test(r.nodeName);){var n=("dy"==t?this.css(r,"overflowY"):this.css(r,"overflowX"))||this.css(r,"overflow")||"";if(/scroll|auto/.test(n)){var s=this.getScrollProcess(r),l=s.v,a=s.h;if("dx"==t&&(o<0&&0<a||0<o&&a<1)||"dy"==t&&(o<0&&0<l||0<o&&l<1)){i=r==this.scrollPanelElm;break}}r=!!r.parentNode&&r.parentNode}return i},onMouseWheel:function(e){var t=this.mergedOptions.vuescroll.wheelScrollDuration,o=this.mergedOptions.vuescroll.wheelDirectionReverse,i=0,r=void 0;e.wheelDelta?e.deltaY?(r="dy",i=e.deltaY):e.deltaX?(i=e.deltaX,r="dx"):i=-1*e.wheelDelta/2:e.detail&&(1==e.axis?r="dx":2==e.axis&&(r="dy"),i=16*e.detail),r=e.shiftKey?"dx":"dy",o&&(r="dx"==r?"dy":"dx"),this.checkScrollable(e,r,i)&&(e.stopPropagation(),e.preventDefault(),this.scrollBy(g({},r,i),t))}},computed:{scrollContentElm:function(){return this.$refs.scrollContent._isVue?this.$refs.scrollContent.$el:this.$refs.scrollContent}}}])),mounted:function(){this._isDestroyed||this.renderError||("slide"==this.mode&&this.updatedCbs.push(this.updateScroller),this.$watch("mergedOptions.vuescroll.scroller.disable",{sync:!0,handler:function(e){this.scroller&&(this.scroller.__disable=e)}}))},computed:{mode:function(){return this.mergedOptions.vuescroll.mode}},methods:{destroy:function(){this.destroyScroller&&(this.scroller.stop(),this.destroyScroller(),this.destroyScroller=null),this.destroyResize&&this.destroyResize()},handleScroll:function(e){this.updateBarStateAndEmitEvent("handle-scroll",e)},updateBarStateAndEmitEvent:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;if("native"==this.mode)this.updateNativeModeBarState();else if("slide"==this.mode){if(!this.scroller)return;this.updateSlideModeBarState()}e&&this.emitEvent(e,t),this.mergedOptions.bar.onlyShowBarOnScroll?"handle-scroll"!=e&&"handle-resize"!=e&&"refresh-status"!=e&&"window-resize"!=e&&"options-change"!=e||this.showAndDefferedHideBar(!0):this.showAndDefferedHideBar()},getScrollProcess:function(){var e=this.scrollPanelElm,t=e.scrollHeight,o=e.scrollWidth,i=e.clientHeight,r=e.clientWidth,n=e.scrollTop,s=e.scrollLeft;return"slide"==this.mode&&(t=this.scroller.__contentHeight,o=this.scroller.__contentWidth,n=this.scroller.__scrollTop,s=this.scroller.__scrollLeft,i=this.$el.clientHeight,r=this.$el.clientWidth),{v:Math.min(n/(t-i||1),1),h:Math.min(s/(o-r||1),1)}},emitEvent:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,o=this.scrollPanelElm,i=o.scrollTop,r=o.scrollLeft,n={type:"vertical"},s={type:"horizontal"},l=this.getScrollProcess(),a=l.v,c=l.h;n.process=a,s.process=c,n.barSize=this.bar.vBar.state.size,s.barSize=this.bar.hBar.state.size,n.scrollTop=i,s.scrollLeft=r,this.$emit(e,n,s,t)},initVariables:function(){this.lastMode=this.mode,this.$el._isVuescroll=!0},refreshMode:function(){var e=void 0;this.scroller&&(e=this.scroller.getValues()),this.destroyScroller&&(this.scroller.stop(),this.destroyScroller(),this.destroyScroller=null),"slide"==this.mode?this.destroyScroller=this.registryScroller(e):"native"==this.mode&&(this.scrollPanelElm.style.transform="",this.scrollPanelElm.style.transformOrigin="")},refreshInternalStatus:function(){this.setVsSize(),this.registryResize(),this.refreshMode(),this.updateBarStateAndEmitEvent("refresh-status")},registryResize:function(){var t=this,e=this.mergedOptions.vuescroll.detectResize,o=!1;if(this.lastMode!=this.mode&&(o=!0,this.lastMode=this.mode),(!this.destroyResize||!e||o)&&(this.destroyResize&&this.destroyResize(),e)){var i=null;"slide"==this.mode?i=this.scrollPanelElm:"native"==this.mode&&(i=this.scrollContentElm);var r=this,n=function(){r.updateBarStateAndEmitEvent("window-resize"),"slide"==r.mode&&(r.updatedCbs.push(r.updateScroller),r.$forceUpdate())};window.addEventListener("resize",n,!1);var s=ie(i,function(){var e={};"slide"==t.mode?(e.width=t.scroller.__contentWidth,e.height=t.scroller.__contentHeight,t.updateBarStateAndEmitEvent("handle-resize",e),t.updatedCbs.push(t.updateScroller),t.$forceUpdate()):"native"==t.mode&&(e.width=t.scrollPanelElm.scrollWidth,e.height=t.scrollPanelElm.scrollHeight,t.updateBarStateAndEmitEvent("handle-resize",e)),t.setVsSize()});this.destroyResize=function(){window.removeEventListener("resize",n,!1),s(),t.destroyResize=null}}},getPosition:function(){return"slide"==this.mode?this.getSlidePosition():"native"==this.mode?this.getNativePosition():void 0}}},function(e,t){return"native"==t.mode?ee(e,t):"slide"==t.mode?oe(e,t):void 0},[{vuescroll:{mode:"native"}},{vuescroll:{renderMethod:"transform",pullRefresh:{enable:!1,tips:{deactive:"Pull to Refresh",active:"Release to Refresh",start:"Refreshing...",beforeDeactive:"Refresh Successfully!"}},pushLoad:{enable:!1,tips:{deactive:"Push to Load",active:"Release to Load",start:"Loading...",beforeDeactive:"Load Successfully!"},auto:!1,autoLoadDistance:0},paging:!1,zooming:!0,snapping:{enable:!1,width:100,height:100},scroller:{bouncing:{top:100,bottom:100,left:100,right:100},locking:!0,minZoom:.5,maxZoom:3,speedMultiplier:1,penetrationDeceleration:.03,penetrationAcceleration:.08,preventDefault:!1,preventDefaultOnMove:!0,disable:!1}}},{vuescroll:{wheelScrollDuration:0,wheelDirectionReverse:!1}}],[function(e){var t=!1,o=e.vuescroll;return~P.indexOf(o.mode)||(i("Unknown mode: "+o.mode+',the vuescroll\'s option "mode" should be one of the '+P),t=!0),t},function(e){var t=e.vuescroll;return t.paging==t.snapping.enable&&t.paging&&(t.pullRefresh||t.pushLoad)&&i("paging, snapping, (pullRefresh with pushLoad) can only one of them to be true."),!1}]);var me=T({install:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};e.component(t.name||ve.name,ve),e.prototype.$vuescrollConfig=t.ops||{}},version:"4.16.1",refreshAll:function(){for(var e in z)z[e].refresh()},scrollTo:function(t,e,o){var i,r,n,s,l,a,c=3<arguments.length&&void 0!==arguments[3]?arguments[3]:300,h=arguments[4],u=arguments[5],d=t.nodeType,_=new K,f=new K;if(d){9==d&&(t=t.scrollingElement);var p=t;i=p.scrollLeft,r=p.scrollTop,n=p.scrollHeight,s=p.scrollWidth,l=p.clientWidth,a=p.clientHeight,e=void 0===e?i:B(e,s-l),o=void 0===o?r:B(o,n-a);var v=F(h,Q);_.startScroll(i,e,c,function(e){t.scrollLeft=e},u,void 0,v),f.startScroll(r,o,c,function(e){t.scrollTop=e},u,void 0,v)}else S("You must pass a dom for the first param, for window scrolling, you can pass document as the first param.")}},ve);return"undefined"!=typeof window&&window.Vue&&window.Vue.use(me),me});