text: !function(t,i){"object"==typeof exports&&"object"==typeof module?module.exports=i():"function"==typeof define&&define.amd?define([],i):"object"==typeof exports?exports.scroll=i():(t.cube=t.cube||{},t.cube.scroll=i())}("undefined"!=typeof self?self:this,function(){return function(t){function i(o){if(e[o])return e[o].exports;var s=e[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,i),s.l=!0,s.exports}var e={};return i.m=t,i.c=e,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get: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,i){return Object.prototype.hasOwnProperty.call(t,i)},i.p="./",i(i.s=333)}([function(t,i){var e=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=e)},function(t,i){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,i,e){var o=e(21)("wks"),s=e(17),n=e(1).Symbol,r="function"==typeof n;(t.exports=function(t){return o[t]||(o[t]=r&&n[t]||(r?n:s)("Symbol."+t))}).store=o},function(t,i,e){t.exports=!e(9)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,i,e){var o=e(11),s=e(29),n=e(24),r=Object.defineProperty;i.f=e(3)?Object.defineProperty:function(t,i,e){if(o(t),i=n(i,!0),o(e),s)try{return r(t,i,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[i]=e.value),t}},function(t,i){var e={}.hasOwnProperty;t.exports=function(t,i){return e.call(t,i)}},function(t,i){t.exports=function(t,i,e,o,s){var n,r=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(n=t,r=t.default);var a="function"==typeof r?r.options:r;i&&(a.render=i.render,a.staticRenderFns=i.staticRenderFns),o&&(a._scopeId=o);var h;if(s?(h=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},a._ssrRegister=h):e&&(h=e),h){var c=a.functional,u=c?a.render:a.beforeCreate;c?a.render=function(t,i){return h.call(i),u(t,i)}:a.beforeCreate=u?[].concat(u,h):[h]}return{esModule:n,exports:r,options:a}}},function(t,i,e){var o=e(4),s=e(14);t.exports=e(3)?function(t,i,e){return o.f(t,i,s(1,e))}:function(t,i,e){return t[i]=e,t}},function(t,i,e){var o=e(33),s=e(18);t.exports=function(t){return o(s(t))}},function(t,i){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,i){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,i,e){var o=e(10);t.exports=function(t){if(!o(t))throw TypeError(t+" is not an object!");return t}},function(t,i,e){var o=e(1),s=e(0),n=e(35),r=e(7),l=e(5),a=function(t,i,e){var h,c,u,p=t&a.F,f=t&a.G,d=t&a.S,m=t&a.P,v=t&a.B,g=t&a.W,y=f?s:s[i]||(s[i]={}),w=y.prototype,x=f?o:d?o[i]:(o[i]||{}).prototype;f&&(e=i);for(h in e)(c=!p&&x&&void 0!==x[h])&&l(y,h)||(u=c?x[h]:e[h],y[h]=f&&"function"!=typeof x[h]?e[h]:v&&c?n(u,o):g&&x[h]==u?function(t){var i=function(i,e,o){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(i);case 2:return new t(i,e)}return new t(i,e,o)}return t.apply(this,arguments)};return i.prototype=t.prototype,i}(u):m&&"function"==typeof u?n(Function.call,u):u,m&&((y.virtual||(y.virtual={}))[h]=u,t&a.R&&w&&!w[h]&&r(w,h,u)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,i){t.exports={}},function(t,i){t.exports=function(t,i){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:i}}},function(t,i,e){var o=e(30),s=e(22);t.exports=Object.keys||function(t){return o(t,s)}},function(t,i){t.exports=!0},function(t,i){var e=0,o=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+o).toString(36))}},function(t,i){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,i){var e=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:e)(t)}},function(t,i,e){var o=e(21)("keys"),s=e(17);t.exports=function(t){return o[t]||(o[t]=s(t))}},function(t,i,e){var o=e(0),s=e(1),n=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(t.exports=function(t,i){return n[t]||(n[t]=void 0!==i?i:{})})("versions",[]).push({version:o.version,mode:e(16)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,i){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,i){i.f={}.propertyIsEnumerable},function(t,i,e){var o=e(10);t.exports=function(t,i){if(!o(t))return t;var e,s;if(i&&"function"==typeof(e=t.toString)&&!o(s=e.call(t)))return s;if("function"==typeof(e=t.valueOf)&&!o(s=e.call(t)))return s;if(!i&&"function"==typeof(e=t.toString)&&!o(s=e.call(t)))return s;throw TypeError("Can't convert object to primitive value")}},function(t,i,e){var o=e(18);t.exports=function(t){return Object(o(t))}},function(t,i){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,i,e){var o=e(4).f,s=e(5),n=e(2)("toStringTag");t.exports=function(t,i,e){t&&!s(t=e?t:t.prototype,n)&&o(t,n,{configurable:!0,value:i})}},function(t,i,e){var o=e(10),s=e(1).document,n=o(s)&&o(s.createElement);t.exports=function(t){return n?s.createElement(t):{}}},function(t,i,e){t.exports=!e(3)&&!e(9)(function(){return 7!=Object.defineProperty(e(28)("div"),"a",{get:function(){return 7}}).a})},function(t,i,e){var o=e(5),s=e(8),n=e(45)(!1),r=e(20)("IE_PROTO");t.exports=function(t,i){var e,l=s(t),a=0,h=[];for(e in l)e!=r&&o(l,e)&&h.push(e);for(;i.length>a;)o(l,e=i[a++])&&(~n(h,e)||h.push(e));return h}},function(t,i){i.f=Object.getOwnPropertySymbols},function(t,i,e){var o,s,n;!function(e,r){s=[i],o=r,void 0!==(n="function"==typeof o?o.apply(i,s):o)&&(t.exports=n)}(0,function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.warn=function(t,i){},t.tip=function(t,i){}})},function(t,i,e){var o=e(26);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)}},function(t,i,e){"use strict";var o=e(16),s=e(12),n=e(39),r=e(7),l=e(13),a=e(51),h=e(27),c=e(54),u=e(2)("iterator"),p=!([].keys&&"next"in[].keys()),f=function(){return this};t.exports=function(t,i,e,d,m,v,g){a(e,i,d);var y,w,x,b=function(t){if(!p&&t in P)return P[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},_=i+" Iterator",S="values"==m,T=!1,P=t.prototype,M=P[u]||P["@@iterator"]||m&&P[m],D=M||b(m),Y=m?S?b("entries"):D:void 0,X="Array"==i?P.entries||M:M;if(X&&(x=c(X.call(new t)))!==Object.prototype&&x.next&&(h(x,_,!0),o||"function"==typeof x[u]||r(x,u,f)),S&&M&&"values"!==M.name&&(T=!0,D=function(){return M.call(this)}),o&&!g||!p&&!T&&P[u]||r(P,u,D),l[i]=D,l[_]=f,m)if(y={values:S?D:b("values"),keys:v?D:b("keys"),entries:Y},g)for(w in y)w in P||n(P,w,y[w]);else s(s.P+s.F*(p||T),i,y);return y}},function(t,i,e){var o=e(43);t.exports=function(t,i,e){if(o(t),void 0===i)return t;switch(e){case 1:return function(e){return t.call(i,e)};case 2:return function(e,o){return t.call(i,e,o)};case 3:return function(e,o,s){return t.call(i,e,o,s)}}return function(){return t.apply(i,arguments)}}},,function(t,i,e){var o=e(19),s=Math.min;t.exports=function(t){return t>0?s(o(t),9007199254740991):0}},function(t,i,e){"use strict";var o=e(50)(!0);e(34)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,i=this._t,e=this._i;return e>=i.length?{value:void 0,done:!0}:(t=o(i,e),this._i+=t.length,{value:t,done:!1})})},function(t,i,e){t.exports=e(7)},function(t,i,e){var o=e(11),s=e(52),n=e(22),r=e(20)("IE_PROTO"),l=function(){},a=function(){var t,i=e(28)("iframe"),o=n.length;for(i.style.display="none",e(53).appendChild(i),i.src="javascript:",t=i.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;o--;)delete a.prototype[n[o]];return a()};t.exports=Object.create||function(t,i){var e;return null!==t?(l.prototype=o(t),e=new l,l.prototype=null,e[r]=t):e=a(),void 0===i?e:s(e,i)}},,,function(t,i){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},,function(t,i,e){var o=e(8),s=e(37),n=e(46);t.exports=function(t){return function(i,e,r){var l,a=o(i),h=s(a.length),c=n(r,h);if(t&&e!=e){for(;h>c;)if((l=a[c++])!=l)return!0}else for(;h>c;c++)if((t||c in a)&&a[c]===e)return t||c||0;return!t&&-1}}},function(t,i,e){var o=e(19),s=Math.max,n=Math.min;t.exports=function(t,i){return t=o(t),t<0?s(t+i,0):n(t,i)}},function(t,i,e){e(55);for(var o=e(1),s=e(7),n=e(13),r=e(2)("toStringTag"),l="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),a=0;a<l.length;a++){var h=l[a],c=o[h],u=c&&c.prototype;u&&!u[r]&&s(u,r,h),n[h]=n.Array}},function(t,i,e){var o,s,n;!function(e,r){s=[i],o=r,void 0!==(n="function"==typeof o?o.apply(i,s):o)&&(t.exports=n)}(0,function(t){"use strict";function i(t){return t=String(t),t.replace(o,function(t,i){return i?i.toUpperCase():""})}function e(t){return t=String(t),t.replace(/([A-Z])/g,"-$1").toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0}),t.camelize=i,t.kebab=e;var o=/-(\w)/g})},,function(t,i,e){var o=e(19),s=e(18);t.exports=function(t){return function(i,e){var n,r,l=String(s(i)),a=o(e),h=l.length;return a<0||a>=h?t?"":void 0:(n=l.charCodeAt(a),n<55296||n>56319||a+1===h||(r=l.charCodeAt(a+1))<56320||r>57343?t?l.charAt(a):n:t?l.slice(a,a+2):r-56320+(n-55296<<10)+65536)}}},function(t,i,e){"use strict";var o=e(40),s=e(14),n=e(27),r={};e(7)(r,e(2)("iterator"),function(){return this}),t.exports=function(t,i,e){t.prototype=o(r,{next:s(1,e)}),n(t,i+" Iterator")}},function(t,i,e){var o=e(4),s=e(11),n=e(15);t.exports=e(3)?Object.defineProperties:function(t,i){s(t);for(var e,r=n(i),l=r.length,a=0;l>a;)o.f(t,e=r[a++],i[e]);return t}},function(t,i,e){var o=e(1).document;t.exports=o&&o.documentElement},function(t,i,e){var o=e(5),s=e(25),n=e(20)("IE_PROTO"),r=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=s(t),o(t,n)?t[n]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?r:null}},function(t,i,e){"use strict";var o=e(56),s=e(57),n=e(13),r=e(8);t.exports=e(34)(Array,"Array",function(t,i){this._t=r(t),this._i=0,this._k=i},function(){var t=this._t,i=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,s(1)):"keys"==i?s(0,e):"values"==i?s(0,t[e]):s(0,[e,t[e]])},"values"),n.Arguments=n.Array,o("keys"),o("values"),o("entries")},function(t,i){t.exports=function(){}},function(t,i){t.exports=function(t,i){return{value:i,done:!!t}}},,,,,,,,,function(t,i,e){var o=e(26),s=e(2)("toStringTag"),n="Arguments"==o(function(){return arguments}()),r=function(t,i){try{return t[i]}catch(t){}};t.exports=function(t){var i,e,l;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=r(i=Object(t),s))?e:n?o(i):"Object"==(l=o(i))&&"function"==typeof i.callee?"Arguments":l}},function(t,i,e){t.exports={default:e(90),__esModule:!0}},,,,,,function(t,i,e){"use strict";function o(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function s(t){for(var i=arguments.length,e=Array(i>1?i-1:0),o=1;o<i;o++)e[o-1]=arguments[o];for(var s=0;s<e.length;s++){var n=e[s];for(var r in n)t[r]=n[r]}return t}function n(t){return void 0===t||null===t}function r(t,i){return Math.sqrt(t*t+i*i)}function l(t){return!1!==I&&("standard"===I?"transitionEnd"===t?"transitionend":t:I+t.charAt(0).toUpperCase()+t.substr(1))}function a(t,i,e,o){t.addEventListener(i,e,{passive:!1,capture:!!o})}function h(t,i,e,o){t.removeEventListener(i,e,{passive:!1,capture:!!o})}function c(t){for(var i=0,e=0;t;)i-=t.offsetLeft,e-=t.offsetTop,t=t.offsetParent;return{left:i,top:e}}function u(t){var i=t.getBoundingClientRect();return{left:-(i.left+window.pageXOffset),top:-(i.top+window.pageYOffset)}}function p(t){if(t instanceof window.SVGElement){var i=t.getBoundingClientRect();return{top:i.top,left:i.left,width:i.width,height:i.height}}return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}function f(t,i){for(var e in i)if(i[e].test(t[e]))return!0;return!1}function d(t,i){var e=document.createEvent("Event");e.initEvent(i,!0,!0),e.pageX=t.pageX,e.pageY=t.pageY,t.target.dispatchEvent(e)}function m(t){function i(){r=document.createEvent("Event"),r.initEvent(e,l,a),s(r,n)}var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"click",o=void 0;"mouseup"===t.type||"mousecancel"===t.type?o=t:"touchend"!==t.type&&"touchcancel"!==t.type||(o=t.changedTouches[0]);var n={};o&&(n.screenX=o.screenX||0,n.screenY=o.screenY||0,n.clientX=o.clientX||0,n.clientY=o.clientY||0);var r=void 0,l=!0,a=!0;if("undefined"!=typeof MouseEvent)try{r=new MouseEvent(e,s({bubbles:l,cancelable:a},n))}catch(t){i()}else i();r.forwardedTouchEvent=!0,r._constructed=!0,t.target.dispatchEvent(r)}function v(t){m(t,"dblclick")}function g(t,i){i.firstChild?y(t,i.firstChild):i.appendChild(t)}function y(t,i){i.parentNode.insertBefore(t,i)}function w(t,i){t.removeChild(i)}function x(t,i,e,o,s,n,r){var l=t-i,a=Math.abs(l)/e,h=r.deceleration,c=r.itemHeight,u=r.swipeBounceTime,p=r.wheel,f=r.swipeTime,d=f,m=p?4:15,v=t+a/h*(l<0?-1:1);return p&&c&&(v=Math.round(v/c)*c),v<o?(v=n?Math.max(o-n/4,o-n/m*a):o,d=u):v>s&&(v=n?Math.min(s+n/4,s+n/m*a):s,d=u),{destination:Math.round(v),duration:d}}function b(){}function _(t){console.error("[BScroll warn]: "+t)}function S(t,i){if(!t)throw new Error("[BScroll] "+i)}function T(t){var i=document.createElement("div"),e=document.createElement("div");return i.style.cssText="position:absolute;z-index:9999;pointerEvents:none",e.style.cssText="box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;",e.className="bscroll-indicator","horizontal"===t?(i.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",e.style.height="100%",i.className="bscroll-horizontal-scrollbar"):(i.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",e.style.width="100%",i.className="bscroll-vertical-scrollbar"),i.style.cssText+=";overflow:hidden",i.appendChild(e),i}function P(t,i){this.wrapper=i.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=t,this.direction=i.direction,i.fade?(this.visible=0,this.wrapperStyle.opacity="0"):this.visible=1,this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.x=0,this.y=0,i.interactive&&this._addDOMEvents()}function M(t){if(t&&t.classList)return t.classList.contains("tombstone")}function D(t,i){var e=this;this.options=i,S("function"==typeof this.options.createTombstone,"Infinite scroll need createTombstone Function to create tombstone"),S("function"==typeof this.options.fetch,"Infinite scroll need fetch Function to fetch new data."),S("function"==typeof this.options.render,"Infinite scroll need render Function to render each item."),this.firstAttachedItem=0,this.lastAttachedItem=0,this.anchorScrollTop=0,this.anchorItem={index:0,offset:0},this.tombstoneHeight=0,this.tombstoneWidth=0,this.tombstones=[],this.items=[],this.loadedItems=0,this.requestInProgress=!1,this.hasMore=!0,this.scroller=t,this.wrapperEl=this.scroller.wrapper,this.scrollerEl=this.scroller.scroller,this.scroller.on("scroll",function(){e.onScroll()}),this.scroller.on("resize",function(){e.onResize()}),this.onResize()}function Y(t,i){this.wrapper="string"==typeof t?document.querySelector(t):t,this.wrapper||_("Can not resolve the wrapper DOM."),this.scroller=this.wrapper.children[0],this.scroller||_("The wrapper need at least one child element to be scroller."),this.scrollerStyle=this.scroller.style,this._init(t,i)}Object.defineProperty(i,"__esModule",{value:!0});/*!
   * better-normal-scroll v1.12.6
   * (c) 2016-2018 ustbhuangyi
   * Released under the MIT License.
   */
  var X=function(){function t(t,i){var e=[],o=!0,s=!1,n=void 0;try{for(var r,l=t[Symbol.iterator]();!(o=(r=l.next()).done)&&(e.push(r.value),!i||e.length!==i);o=!0);}catch(t){s=!0,n=t}finally{try{!o&&l.return&&l.return()}finally{if(s)throw n}}return e}return function(i,e){if(Array.isArray(i))return i;if(Symbol.iterator in Object(i))return t(i,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),E=function(t){if(Array.isArray(t)){for(var i=0,e=Array(t.length);i<t.length;i++)e[i]=t[i];return e}return Array.from(t)},C="undefined"!=typeof window,O=C&&navigator.userAgent.toLowerCase(),k=O&&/wechatdevtools/.test(O),L=O&&O.indexOf("android")>0,H=C&&document.createElement("div").style,I=function(){if(!C)return!1;var t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(var i in t)if(void 0!==H[t[i]])return i;return!1}(),R=l("transform"),A=C&&l("perspective")in H,W=C&&("ontouchstart"in window||k),z=!1!==R,U=C&&l("transition")in H,j={transform:R,transitionTimingFunction:l("transitionTimingFunction"),transitionDuration:l("transitionDuration"),transitionDelay:l("transitionDelay"),transformOrigin:l("transformOrigin"),transitionEnd:l("transitionEnd")},N=1,F={touchstart:N,touchmove:N,touchend:N,mousedown:2,mousemove:2,mouseup:2},B={startX:0,startY:0,scrollX:!1,scrollY:!0,freeScroll:!1,directionLockThreshold:5,eventPassthrough:"",click:!1,tap:!1,bounce:!0,bounceTime:800,momentum:!0,momentumLimitTime:300,momentumLimitDistance:15,swipeTime:2500,swipeBounceTime:500,deceleration:.0015,flickLimitTime:200,flickLimitDistance:100,resizePolling:60,probeType:0,preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:!1,disableMouse:W,disableTouch:!W,observeDOM:!0,autoBlur:!0,wheel:!1,snap:!1,scrollbar:!1,pullDownRefresh:!1,pullUpLoad:!1,mouseWheel:!1,stopPropagation:!1,zoom:!1,infinity:!1,dblclick:!1},$={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(t){return 1+--t*t*t*t*t}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(t){return 1- --t*t*t*t}}},V=function(){return C?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||100/60)/2)}:b}(),q=function(){return C?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:b}(),G=1,Z=-1,J=1,K=-1,Q=1,tt=3;P.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t);break;case"touchmove":case"mousemove":this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this._end(t)}},P.prototype.refresh=function(){this._shouldShow()&&(this.transitionTime(),this._calculate(),this.updatePosition())},P.prototype.fade=function(t,i){var e=this;if(!i||this.visible){var o=t?250:500;t=t?"1":"0",this.wrapperStyle[j.transitionDuration]=o+"ms",clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout(function(){e.wrapperStyle.opacity=t,e.visible=+t},0)}},P.prototype.updatePosition=function(){if("vertical"===this.direction){var t=Math.round(this.sizeRatioY*this.scroller.y);if(t<0){this.transitionTime(500);var i=Math.max(this.indicatorHeight+3*t,8);this.indicatorStyle.height=i+"px",t=0}else if(t>this.maxPosY){this.transitionTime(500);var e=Math.max(this.indicatorHeight-3*(t-this.maxPosY),8);this.indicatorStyle.height=e+"px",t=this.maxPosY+this.indicatorHeight-e}else this.indicatorStyle.height=this.indicatorHeight+"px";this.y=t,this.scroller.options.useTransform?this.indicatorStyle[j.transform]="translateY("+t+"px)"+this.scroller.translateZ:this.indicatorStyle.top=t+"px"}else{var o=Math.round(this.sizeRatioX*this.scroller.x);if(o<0){this.transitionTime(500);var s=Math.max(this.indicatorWidth+3*o,8);this.indicatorStyle.width=s+"px",o=0}else if(o>this.maxPosX){this.transitionTime(500);var n=Math.max(this.indicatorWidth-3*(o-this.maxPosX),8);this.indicatorStyle.width=n+"px",o=this.maxPosX+this.indicatorWidth-n}else this.indicatorStyle.width=this.indicatorWidth+"px";this.x=o,this.scroller.options.useTransform?this.indicatorStyle[j.transform]="translateX("+o+"px)"+this.scroller.translateZ:this.indicatorStyle.left=o+"px"}},P.prototype.transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorStyle[j.transitionDuration]=t+"ms"},P.prototype.transitionTimingFunction=function(t){this.indicatorStyle[j.transitionTimingFunction]=t},P.prototype.destroy=function(){this._removeDOMEvents(),this.wrapper.parentNode.removeChild(this.wrapper)},P.prototype._start=function(t){var i=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=i.pageX,this.lastPointY=i.pageY,this.startTime=o(),this._handleMoveEvents(a),this.scroller.trigger("beforeScrollStart")},P.prototype._move=function(t){var i=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.moved||this.scroller.trigger("scrollStart"),this.moved=!0;var e=i.pageX-this.lastPointX;this.lastPointX=i.pageX;var o=i.pageY-this.lastPointY;this.lastPointY=i.pageY;var s=this.x+e,n=this.y+o;this._pos(s,n)},P.prototype._end=function(t){if(this.initiated){this.initiated=!1,t.preventDefault(),t.stopPropagation(),this._handleMoveEvents(h);var i=this.scroller.options.snap;if(i){var e=i.speed,o=i.easing,s=void 0===o?$.bounce:o,n=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),r=e||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-n.x),1e3),Math.min(Math.abs(this.scroller.y-n.y),1e3)),300);this.scroller.x===n.x&&this.scroller.y===n.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=n,this.scroller.scrollTo(n.x,n.y,r,s))}this.moved&&this.scroller.trigger("scrollEnd",{x:this.scroller.x,y:this.scroller.y})}},P.prototype._pos=function(t,i){t<0?t=0:t>this.maxPosX&&(t=this.maxPosX),i<0?i=0:i>this.maxPosY&&(i=this.maxPosY),t=Math.round(t/this.sizeRatioX),i=Math.round(i/this.sizeRatioY),this.scroller.scrollTo(t,i),this.scroller.trigger("scroll",{x:this.scroller.x,y:this.scroller.y})},P.prototype._shouldShow=function(){return"vertical"===this.direction&&this.scroller.hasVerticalScroll||"horizontal"===this.direction&&this.scroller.hasHorizontalScroll?(this.wrapper.style.display="",!0):(this.wrapper.style.display="none",!1)},P.prototype._calculate=function(){if("vertical"===this.direction){var t=this.wrapper.clientHeight;this.indicatorHeight=Math.max(Math.round(t*t/(this.scroller.scrollerHeight||t||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px",this.maxPosY=t-this.indicatorHeight,this.sizeRatioY=this.maxPosY/this.scroller.maxScrollY}else{var i=this.wrapper.clientWidth;this.indicatorWidth=Math.max(Math.round(i*i/(this.scroller.scrollerWidth||i||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px",this.maxPosX=i-this.indicatorWidth,this.sizeRatioX=this.maxPosX/this.scroller.maxScrollX}},P.prototype._addDOMEvents=function(){var t=a;this._handleDOMEvents(t)},P.prototype._removeDOMEvents=function(){var t=h;this._handleDOMEvents(t),this._handleMoveEvents(t)},P.prototype._handleMoveEvents=function(t){this.scroller.options.disableTouch||t(window,"touchmove",this),this.scroller.options.disableMouse||t(window,"mousemove",this)},P.prototype._handleDOMEvents=function(t){this.scroller.options.disableTouch||(t(this.indicator,"touchstart",this),t(window,"touchend",this)),this.scroller.options.disableMouse||(t(this.indicator,"mousedown",this),t(window,"mouseup",this))};var it=2e3;D.prototype.onScroll=function(){var t=-this.scroller.y,i=t-this.anchorScrollTop;this.anchorItem=0===t?{index:0,offset:0}:this._calculateAnchoredItem(this.anchorItem,i),this.anchorScrollTop=t;var e=this._calculateAnchoredItem(this.anchorItem,this.wrapperEl.offsetHeight),o=this.anchorItem.index,s=e.index;i<0?(o-=30,s+=10):(o-=10,s+=30),this.fill(o,s),this.maybeRequestContent()},D.prototype.onResize=function(){var t=this.options.createTombstone();t.style.position="absolute",this.scrollerEl.appendChild(t),t.style.display="",this.tombstoneHeight=t.offsetHeight,this.tombstoneWidth=t.offsetWidth,this.scrollerEl.removeChild(t);for(var i=0;i<this.items.length;i++)this.items[i].height=this.items[i].width=0;this.onScroll()},D.prototype.fill=function(t,i){this.firstAttachedItem=Math.max(0,t),this.hasMore||(i=Math.min(i,this.items.length)),this.lastAttachedItem=i,this.attachContent()},D.prototype.maybeRequestContent=function(){var t=this;if(!this.requestInProgress&&this.hasMore){var i=this.lastAttachedItem-this.loadedItems;i<=0||(this.requestInProgress=!0,this.options.fetch(i).then(function(i){if(t.requestInProgress=!1,i)t.addContent(i);else{t.hasMore=!1;var e=t._removeTombstones(),o=0;t.anchorItem.index<=t.items.length?(o=t._fixScrollPosition(),t._setupAnimations({},o),t.scroller.resetPosition(t.scroller.options.bounceTime)):(t.anchorItem.index-=e,o=t._fixScrollPosition(),t._setupAnimations({},o),t.scroller.stop(),t.scroller.resetPosition(),t.onScroll())}}))}},D.prototype.addContent=function(t){for(var i=0;i<t.length;i++)this.items.length<=this.loadedItems&&this._addItem(),this.items[this.loadedItems++].data=t[i];this.attachContent(),this.maybeRequestContent()},D.prototype.attachContent=function(){var t=this._collectUnusedNodes(),i=this._createDOMNodes(t);this._cleanupUnusedNodes(t),this._cacheNodeSize();var e=this._fixScrollPosition();this._setupAnimations(i,e)},D.prototype.resetMore=function(){this.hasMore=!0},D.prototype._removeTombstones=function(){for(var t=void 0,i=0,e=this.items.length,o=0;o<e;o++){var s=this.items[o].node,n=this.items[o].data;s&&!M(s)||n||(t||(t=o),s&&this.scrollerEl.removeChild(s))}return i=e-t,this.items.splice(t),this.lastAttachedItem=Math.min(this.lastAttachedItem,this.items.length),i},D.prototype._collectUnusedNodes=function(){for(var t=[],i=0;i<this.items.length;i++)if(i!==this.firstAttachedItem){var e=this.items[i].node;e&&(M(e)?(this.tombstones.push(e),this.tombstones[this.tombstones.length-1].style.display="none"):t.push(e)),this.items[i].node=null}else i=this.lastAttachedItem-1;return t},D.prototype._createDOMNodes=function(t){for(var i={},e=this.firstAttachedItem;e<this.lastAttachedItem;e++){for(;this.items.length<=e;)this._addItem();var o=this.items[e].node,s=this.items[e].data;if(o){if(!M(o)||!s)continue;o.style.zIndex=1,i[e]=[o,this.items[e].top-this.anchorScrollTop],this.items[e].node=null}var n=s?this.options.render(s,t.pop()):this._getTombStone();n.style.position="absolute",this.items[e].top=-1,this.scrollerEl.appendChild(n),this.items[e].node=n}return i},D.prototype._cleanupUnusedNodes=function(t){for(;t.length;)this.scrollerEl.removeChild(t.pop())},D.prototype._cacheNodeSize=function(){for(var t=this.firstAttachedItem;t<this.lastAttachedItem;t++)this.items[t].data&&!this.items[t].height&&(this.items[t].height=this.items[t].node.offsetHeight,this.items[t].width=this.items[t].node.offsetWidth)},D.prototype._fixScrollPosition=function(){this.anchorScrollTop=0;for(var t=0;t<this.anchorItem.index;t++)this.anchorScrollTop+=this.items[t].height||this.tombstoneHeight;this.anchorScrollTop+=this.anchorItem.offset;for(var i=this.anchorScrollTop-this.anchorItem.offset,e=this.anchorItem.index;e>this.firstAttachedItem;)i-=this.items[e-1].height||this.tombstoneHeight,e--;return i},D.prototype._setupAnimations=function(t,i){var e=this;for(var o in t){var s=t[o];this.items[o].node.style.transform="translateY("+(this.anchorScrollTop+s[1])+"px) scale("+this.tombstoneWidth/this.items[o].width+", "+this.tombstoneHeight/this.items[o].height+")",this.items[o].node.offsetTop,s[0].offsetTop,this.items[o].node.style.transition="transform 200ms"}for(var n=this.firstAttachedItem;n<this.lastAttachedItem;n++){var r=t[n];if(r){var l=r[0];l.style.transition="transform 200ms, opacity 200ms",l.style.transform="translateY("+i+"px) scale("+this.items[n].width/this.tombstoneWidth+", "+this.items[n].height/this.tombstoneHeight+")",l.style.opacity=0}i!==this.items[n].top&&(r||(this.items[n].node.style.transition=""),this.items[n].node.style.transform="translateY("+i+"px)"),this.items[n].top=i,i+=this.items[n].height||this.tombstoneHeight}this.scroller.maxScrollY=-(i-this.wrapperEl.offsetHeight+(this.hasMore?it:0)),setTimeout(function(){for(var i in t){var o=t[i];o[0].style.display="none",e.tombstones.push(o[0])}},200)},D.prototype._getTombStone=function(){var t=this.tombstones.pop();return t?(t.style.display="",t.style.opacity=1,t.style.transform="",t.style.transition="",t):this.options.createTombstone()},D.prototype._addItem=function(){this.items.push({data:null,node:null,height:0,width:0,top:0})},D.prototype._calculateAnchoredItem=function(t,i){if(0===i)return t;var e=t.index,o=0;if((i+=t.offset)<0){for(;i<0&&e>0&&this.items[e-1].height;)i+=this.items[e-1].height,e--;o=Math.max(-e,Math.ceil(Math.min(i,0)/this.tombstoneHeight))}else{for(;i>0&&e<this.items.length&&this.items[e].height&&this.items[e].height<i;)i-=this.items[e].height,e++;(e>=this.items.length||!this.items[e].height)&&(o=Math.floor(Math.max(i,0)/this.tombstoneHeight))}return e+=o,i-=o*this.tombstoneHeight,{index:e,offset:i}},function(t){t.prototype._init=function(t,i){this._handleOptions(i),this._events={},this.x=0,this.y=0,this.directionX=0,this.directionY=0,this.setScale(1),this._addDOMEvents(),this._initExtFeatures(),this._watchTransition(),this.options.observeDOM&&this._initDOMObserver(),this.options.autoBlur&&this._handleAutoBlur(),this.refresh(),this.options.snap||this.scrollTo(this.options.startX,this.options.startY),this.enable()},t.prototype.setScale=function(t){this.lastScale=n(this.scale)?t:this.scale,this.scale=t},t.prototype._handleOptions=function(t){this.options=s({},B,t),this.translateZ=this.options.HWCompositing&&A?" translateZ(0)":"",this.options.useTransition=this.options.useTransition&&U,this.options.useTransform=this.options.useTransform&&z,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollX="horizontal"!==this.options.eventPassthrough&&this.options.scrollX,this.options.scrollY="vertical"!==this.options.eventPassthrough&&this.options.scrollY,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,!0===this.options.tap&&(this.options.tap="tap")},t.prototype._addDOMEvents=function(){var t=a;this._handleDOMEvents(t)},t.prototype._removeDOMEvents=function(){var t=h;this._handleDOMEvents(t)},t.prototype._handleDOMEvents=function(t){var i=this.options.bindToWrapper?this.wrapper:window;t(window,"orientationchange",this),t(window,"resize",this),this.options.click&&t(this.wrapper,"click",this,!0),this.options.disableMouse||(t(this.wrapper,"mousedown",this),t(i,"mousemove",this),t(i,"mousecancel",this),t(i,"mouseup",this)),W&&!this.options.disableTouch&&(t(this.wrapper,"touchstart",this),t(i,"touchmove",this),t(i,"touchcancel",this),t(i,"touchend",this)),t(this.scroller,j.transitionEnd,this)},t.prototype._initExtFeatures=function(){this.options.snap&&this._initSnap(),this.options.scrollbar&&this._initScrollbar(),this.options.pullUpLoad&&this._initPullUp(),this.options.pullDownRefresh&&this._initPullDown(),this.options.wheel&&this._initWheel(),this.options.mouseWheel&&this._initMouseWheel(),this.options.zoom&&this._initZoom(),this.options.infinity&&this._initInfinite()},t.prototype._watchTransition=function(){if("function"==typeof Object.defineProperty){var t=this,i=!1,e=this.useTransition?"isInTransition":"isAnimating";Object.defineProperty(this,e,{get:function(){return i},set:function(e){i=e;for(var o=t.scroller.children.length?t.scroller.children:[t.scroller],s=i&&!t.pulling?"none":"auto",n=0;n<o.length;n++)o[n].style.pointerEvents=s}})}},t.prototype._handleAutoBlur=function(){this.on("scrollStart",function(){var t=document.activeElement;!t||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName||t.blur()})},t.prototype._initDOMObserver=function(){var t=this;if("undefined"!=typeof MutationObserver){var i=void 0,e=new MutationObserver(function(e){if(!t._shouldNotRefresh()){for(var o=!1,s=!1,n=0;n<e.length;n++){var r=e[n];if("attributes"!==r.type){o=!0;break}if(r.target!==t.scroller){s=!0;break}}o?t.refresh():s&&(clearTimeout(i),i=setTimeout(function(){t._shouldNotRefresh()||t.refresh()},60))}}),o={attributes:!0,childList:!0,subtree:!0};e.observe(this.scroller,o),this.on("destroy",function(){e.disconnect()})}else this._checkDOMUpdate()},t.prototype._shouldNotRefresh=function(){var t=this.x>this.minScrollX||this.x<this.maxScrollX||this.y>this.minScrollY||this.y<this.maxScrollY;return this.isInTransition||this.stopFromTransition||t},t.prototype._checkDOMUpdate=function(){function t(){if(!this.destroyed){e=p(this.scroller);var t=e.width,n=e.height;o===t&&s===n||this.refresh(),o=t,s=n,i.call(this)}}function i(){var i=this;setTimeout(function(){t.call(i)},1e3)}var e=p(this.scroller),o=e.width,s=e.height;i.call(this)},t.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t),this.options.zoom&&t.touches&&t.touches.length>1&&this._zoomStart(t);break;case"touchmove":case"mousemove":this.options.zoom&&t.touches&&t.touches.length>1?this._zoom(t):this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this.scaled?this._zoomEnd(t):this._end(t);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(t);break;case"click":this.enabled&&!t._constructed&&(f(t.target,this.options.preventDefaultException)||(t.preventDefault(),t.stopPropagation()));break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._onMouseWheel(t)}},t.prototype.refresh=function(){var t="static"===window.getComputedStyle(this.wrapper,null).position,i=p(this.wrapper);this.wrapperWidth=i.width,this.wrapperHeight=i.height;var e=p(this.scroller);this.scrollerWidth=Math.round(e.width*this.scale),this.scrollerHeight=Math.round(e.height*this.scale),this.relativeX=e.left,this.relativeY=e.top,t&&(this.relativeX-=i.left,this.relativeY-=i.top),this.minScrollX=0,this.minScrollY=0;var o=this.options.wheel;o?(this.items=this.scroller.children,this.options.itemHeight=this.itemHeight=this.items.length?this.scrollerHeight/this.items.length:0,void 0===this.selectedIndex&&(this.selectedIndex=o.selectedIndex||0),this.options.startY=-this.selectedIndex*this.itemHeight,this.maxScrollX=0,this.maxScrollY=-this.itemHeight*(this.items.length-1)):(this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.options.infinity||(this.maxScrollY=this.wrapperHeight-this.scrollerHeight),this.maxScrollX<0?(this.maxScrollX-=this.relativeX,this.minScrollX=-this.relativeX):this.scale>1&&(this.maxScrollX=this.maxScrollX/2-this.relativeX,this.minScrollX=this.maxScrollX),this.maxScrollY<0?(this.maxScrollY-=this.relativeY,this.minScrollY=-this.relativeY):this.scale>1&&(this.maxScrollY=this.maxScrollY/2-this.relativeY,this.minScrollY=this.maxScrollY)),this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<this.minScrollX,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<this.minScrollY,this.hasHorizontalScroll||(this.maxScrollX=this.minScrollX,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=this.minScrollY,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,this.wrapperOffset=c(this.wrapper),this.trigger("refresh"),!this.scaled&&this.resetPosition()},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1}}(Y),function(t){t.prototype._start=function(t){var i=F[t.type];if((i===N||0===t.button)&&!(!this.enabled||this.destroyed||this.initiated&&this.initiated!==i)){this.initiated=i,this.options.preventDefault&&!f(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.movingDirectionX=0,this.movingDirectionY=0,this.directionLocked=0,this._transitionTime(),this.startTime=o(),this.options.wheel&&(this.target=t.target),this.stop();var e=t.touches?t.touches[0]:t;this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=e.pageX,this.pointY=e.pageY,this.trigger("beforeScrollStart")}},t.prototype._move=function(t){if(this.enabled&&!this.destroyed&&F[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var i=t.touches?t.touches[0]:t,e=i.pageX-this.pointX,s=i.pageY-this.pointY;this.pointX=i.pageX,this.pointY=i.pageY,this.distX+=e,this.distY+=s;var n=Math.abs(this.distX),r=Math.abs(this.distY),l=o();if(!(l-this.endTime>this.options.momentumLimitTime&&r<this.options.momentumLimitDistance&&n<this.options.momentumLimitDistance)){if(this.directionLocked||this.options.freeScroll||(n>r+this.options.directionLockThreshold?this.directionLocked="h":r>=n+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"===this.directionLocked){if("vertical"===this.options.eventPassthrough)t.preventDefault();else if("horizontal"===this.options.eventPassthrough)return void(this.initiated=!1);s=0}else if("v"===this.directionLocked){if("horizontal"===this.options.eventPassthrough)t.preventDefault();else if("vertical"===this.options.eventPassthrough)return void(this.initiated=!1);e=0}e=this.hasHorizontalScroll?e:0,s=this.hasVerticalScroll?s:0,this.movingDirectionX=e>0?K:e<0?J:0,this.movingDirectionY=s>0?Z:s<0?G:0;var a=this.x+e,h=this.y+s,c=!1,u=!1,p=!1,f=!1,d=this.options.bounce;!1!==d&&(c=void 0===d.top||d.top,u=void 0===d.bottom||d.bottom,p=void 0===d.left||d.left,f=void 0===d.right||d.right),(a>this.minScrollX||a<this.maxScrollX)&&(a=a>this.minScrollX&&p||a<this.maxScrollX&&f?this.x+e/3:a>this.minScrollX?this.minScrollX:this.maxScrollX),(h>this.minScrollY||h<this.maxScrollY)&&(h=h>this.minScrollY&&c||h<this.maxScrollY&&u?this.y+s/3:h>this.minScrollY?this.minScrollY:this.maxScrollY),this.moved||(this.moved=!0,this.trigger("scrollStart")),this._translate(a,h),l-this.startTime>this.options.momentumLimitTime&&(this.startTime=l,this.startX=this.x,this.startY=this.y,this.options.probeType===Q&&this.trigger("scroll",{x:this.x,y:this.y})),this.options.probeType>Q&&this.trigger("scroll",{x:this.x,y:this.y});var m=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,v=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,g=this.pointX-m,y=this.pointY-v;(g>document.documentElement.clientWidth-this.options.momentumLimitDistance||g<this.options.momentumLimitDistance||y<this.options.momentumLimitDistance||y>document.documentElement.clientHeight-this.options.momentumLimitDistance)&&this._end(t)}}},t.prototype._end=function(t){if(this.enabled&&!this.destroyed&&F[t.type]===this.initiated){this.initiated=!1,this.options.preventDefault&&!f(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.trigger("touchEnd",{x:this.x,y:this.y}),this.isInTransition=!1;var i=Math.round(this.x),e=Math.round(this.y),s=i-this.absStartX,n=e-this.absStartY;if(this.directionX=s>0?K:s<0?J:0,this.directionY=n>0?Z:n<0?G:0,!this.options.pullDownRefresh||!this._checkPullDown()){if(this._checkClick(t))return void this.trigger("scrollCancel");if(!this.resetPosition(this.options.bounceTime,$.bounce)){this._translate(i,e),this.endTime=o();var r=this.endTime-this.startTime,l=Math.abs(i-this.startX),a=Math.abs(e-this.startY);if(this._events.flick&&r<this.options.flickLimitTime&&l<this.options.flickLimitDistance&&a<this.options.flickLimitDistance)return void this.trigger("flick");var h=0;if(this.options.momentum&&r<this.options.momentumLimitTime&&(a>this.options.momentumLimitDistance||l>this.options.momentumLimitDistance)){var c=!1,u=!1,p=!1,d=!1,m=this.options.bounce;!1!==m&&(c=void 0===m.top||m.top,u=void 0===m.bottom||m.bottom,p=void 0===m.left||m.left,d=void 0===m.right||m.right);var v=this.directionX===K&&p||this.directionX===J&&d?this.wrapperWidth:0,g=this.directionY===Z&&c||this.directionY===G&&u?this.wrapperHeight:0,y=this.hasHorizontalScroll?x(this.x,this.startX,r,this.maxScrollX,this.minScrollX,v,this.options):{destination:i,duration:0},w=this.hasVerticalScroll?x(this.y,this.startY,r,this.maxScrollY,this.minScrollY,g,this.options):{destination:e,duration:0};i=y.destination,e=w.destination,h=Math.max(y.duration,w.duration),this.isInTransition=!0}else this.options.wheel&&(e=Math.round(e/this.itemHeight)*this.itemHeight,h=this.options.wheel.adjustTime||400);var b=$.swipe;if(this.options.snap){var _=this._nearestSnap(i,e);this.currentPage=_,h=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(i-_.x),1e3),Math.min(Math.abs(e-_.y),1e3)),300),i=_.x,e=_.y,this.directionX=0,this.directionY=0,b=this.options.snap.easing||$.bounce}if(i!==this.x||e!==this.y)return(i>this.minScrollX||i<this.maxScrollX||e>this.minScrollY||e<this.maxScrollY)&&(b=$.swipeBounce),void this.scrollTo(i,e,h,b);this.options.wheel&&(this.selectedIndex=Math.round(Math.abs(this.y/this.itemHeight))),this.trigger("scrollEnd",{x:this.x,y:this.y})}}}},t.prototype._checkClick=function(t){var i=this.stopFromTransition&&!this.pulling;if(this.stopFromTransition=!1,!this.moved){if(this.options.wheel){if(this.target&&this.target.classList.contains(this.options.wheel.wheelWrapperClass)){var e=Math.abs(Math.round(this.y/this.itemHeight)),s=Math.round((this.pointY+u(this.wrapper).top-this.wrapperHeight/2)/this.itemHeight);this.target=this.items[e+s]}return this.scrollToElement(this.target,this.options.wheel.adjustTime||400,!0,!0,$.swipe),!0}if(!i){var n=this.options.dblclick,r=!1;if(n&&this.lastClickTime){var l=n.delay,a=void 0===l?300:l;o()-this.lastClickTime<a&&(r=!0,v(t))}return this.options.tap&&d(t,this.options.tap),this.options.click&&!f(t.target,this.options.preventDefaultException)&&m(t),this.lastClickTime=r?null:o(),!0}return!1}return!1},t.prototype._resize=function(){var t=this;this.enabled&&(L&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){t.refresh()},this.options.resizePolling))},t.prototype._startProbe=function(){function t(){var e=i.getComputedPosition();if(i.trigger("scroll",e),!i.isInTransition)return void i.trigger("scrollEnd",e);i.probeTimer=V(t)}q(this.probeTimer),this.probeTimer=V(t);var i=this},t.prototype._transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.scrollerStyle[j.transitionDuration]=t+"ms",this.options.wheel)for(var i=0;i<this.items.length;i++)this.items[i].style[j.transitionDuration]=t+"ms";if(this.indicators)for(var e=0;e<this.indicators.length;e++)this.indicators[e].transitionTime(t)},t.prototype._transitionTimingFunction=function(t){if(this.scrollerStyle[j.transitionTimingFunction]=t,this.options.wheel)for(var i=0;i<this.items.length;i++)this.items[i].style[j.transitionTimingFunction]=t;if(this.indicators)for(var e=0;e<this.indicators.length;e++)this.indicators[e].transitionTimingFunction(t)},t.prototype._transitionEnd=function(t){t.target===this.scroller&&this.isInTransition&&(this._transitionTime(),(!this.pulling||this.movingDirectionY===G)&&!this.resetPosition(this.options.bounceTime,$.bounce)&&(this.isInTransition=!1,this.options.probeType!==tt&&this.trigger("scrollEnd",{x:this.x,y:this.y})))},t.prototype._translate=function(t,i,e){if(S(!n(t)&&!n(i),"Translate x or y is null or undefined."),n(e)&&(e=this.scale),this.options.useTransform?this.scrollerStyle[j.transform]="translate("+t+"px,"+i+"px) scale("+e+")"+this.translateZ:(t=Math.round(t),i=Math.round(i),this.scrollerStyle.left=t+"px",this.scrollerStyle.top=i+"px"),this.options.wheel)for(var o=this.options.wheel.rotate,s=void 0===o?25:o,r=0;r<this.items.length;r++){var l=s*(i/this.itemHeight+r);this.items[r].style[j.transform]="rotateX("+l+"deg)"}if(this.x=t,this.y=i,this.setScale(e),this.indicators)for(var a=0;a<this.indicators.length;a++)this.indicators[a].updatePosition()},t.prototype._animate=function(t,i,e,s){function n(){var f=o();if(f>=p)return r.isAnimating=!1,r._translate(t,i,c),r.trigger("scroll",{x:r.x,y:r.y}),void(r.pulling||r.resetPosition(r.options.bounceTime)||r.trigger("scrollEnd",{x:r.x,y:r.y}));f=(f-u)/e;var d=s(f),m=(t-l)*d+l,v=(i-a)*d+a,g=(c-h)*d+h;r._translate(m,v,g),r.isAnimating&&(r.animateTimer=V(n)),r.options.probeType===tt&&r.trigger("scroll",{x:r.x,y:r.y})}var r=this,l=this.x,a=this.y,h=this.lastScale,c=this.scale,u=o(),p=u+e;this.isAnimating=!0,q(this.animateTimer),n()},t.prototype.scrollBy=function(t,i){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:$.bounce;t=this.x+t,i=this.y+i,this.scrollTo(t,i,e,o)},t.prototype.scrollTo=function(t,i){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:$.bounce;this.isInTransition=this.options.useTransition&&e>0&&(t!==this.x||i!==this.y),!e||this.options.useTransition?(this._transitionTime(e),this._translate(t,i),e&&this.options.probeType===tt&&this._startProbe(),e||t===this.x&&i===this.y||(this.trigger("scroll",{x:t,y:i}),this._reflow=document.body.offsetHeight,this.resetPosition(this.options.bounceTime,$.bounce)||this.trigger("scrollEnd",{x:t,y:i})),this.options.wheel&&(i>this.minScrollY?this.selectedIndex=0:i<this.maxScrollY?this.selectedIndex=this.items.length-1:this.selectedIndex=Math.round(Math.abs(i/this.itemHeight)))):this._animate(t,i,e,o.fn)},t.prototype.scrollToElement=function(t,i,e,o,s){if(t&&(t=t.nodeType?t:this.scroller.querySelector(t),!this.options.wheel||t.classList.contains(this.options.wheel.wheelItemClass))){var n=c(t);n.left-=this.wrapperOffset.left,n.top-=this.wrapperOffset.top,!0===e&&(e=Math.round(t.offsetWidth/2-this.wrapper.offsetWidth/2)),!0===o&&(o=Math.round(t.offsetHeight/2-this.wrapper.offsetHeight/2)),n.left-=e||0,n.top-=o||0,n.left=n.left>this.minScrollX?this.minScrollX:n.left<this.maxScrollX?this.maxScrollX:n.left,n.top=n.top>this.minScrollY?this.minScrollY:n.top<this.maxScrollY?this.maxScrollY:n.top,this.options.wheel&&(n.top=Math.round(n.top/this.itemHeight)*this.itemHeight),this.scrollTo(n.left,n.top,i,s)}},t.prototype.resetPosition=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$.bounce,e=this.x,o=Math.round(e);!this.hasHorizontalScroll||o>this.minScrollX?e=this.minScrollX:o<this.maxScrollX&&(e=this.maxScrollX);var s=this.y,n=Math.round(s);return!this.hasVerticalScroll||n>this.minScrollY?s=this.minScrollY:n<this.maxScrollY&&(s=this.maxScrollY),(e!==this.x||s!==this.y)&&(this.scrollTo(e,s,t,i),!0)},t.prototype.getComputedPosition=function(){var t=window.getComputedStyle(this.scroller,null),i=void 0,e=void 0;return this.options.useTransform?(t=t[j.transform].split(")")[0].split(", "),i=+(t[12]||t[4]),e=+(t[13]||t[5])):(i=+t.left.replace(/[^-\d.]/g,""),e=+t.top.replace(/[^-\d.]/g,"")),{x:i,y:e}},t.prototype.stop=function(){if(this.options.useTransition&&this.isInTransition){this.isInTransition=!1,q(this.probeTimer);var t=this.getComputedPosition();this._translate(t.x,t.y),this.options.wheel?this.target=this.items[Math.round(-t.y/this.itemHeight)]:this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0}else!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,q(this.animateTimer),this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0)},t.prototype.destroy=function(){this.destroyed=!0,this.trigger("destroy"),q(this.options.useTransition?this.probeTimer:this.animateTimer),this._removeDOMEvents(),this._events={}}}(Y),function(t){t.prototype.on=function(t,i){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;this._events[t]||(this._events[t]=[]),this._events[t].push([i,e])},t.prototype.once=function(t,i){function e(){this.off(t,e),i.apply(o,arguments)}var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;e.fn=i,this.on(t,e)},t.prototype.off=function(t,i){var e=this._events[t];if(e)for(var o=e.length;o--;)(e[o][0]===i||e[o][0]&&e[o][0].fn===i)&&(e[o][0]=void 0)},t.prototype.trigger=function(t){var i=this._events[t];if(i)for(var e=i.length,o=[].concat(E(i)),s=0;s<e;s++){var n=o[s],r=X(n,2),l=r[0],a=r[1];l&&l.apply(a,[].slice.call(arguments,1))}}}(Y),function(t){t.prototype._initSnap=function(){var t=this;this.currentPage={};var i=this.options.snap;if(i.loop){var e=this.scroller.children;e.length>1?(g(e[e.length-1].cloneNode(!0),this.scroller),this.scroller.appendChild(e[1].cloneNode(!0))):i.loop=!1}var o=i.el;"string"==typeof o&&(o=this.scroller.querySelectorAll(o)),this.on("refresh",function(){if(t.pages=[],t.wrapperWidth&&t.wrapperHeight&&t.scrollerWidth&&t.scrollerHeight){var e=i.stepX||t.wrapperWidth,s=i.stepY||t.wrapperHeight,n=0,r=void 0,l=void 0,a=void 0,h=0,c=void 0,u=0,f=void 0,d=void 0;if(o)for(c=o.length,f=-1;h<c;h++)d=p(o[h]),(0===h||d.left<=p(o[h-1]).left)&&(u=0,f++),t.pages[u]||(t.pages[u]=[]),n=Math.max(-d.left,t.maxScrollX),r=Math.max(-d.top,t.maxScrollY),l=n-Math.round(d.width/2),a=r-Math.round(d.height/2),t.pages[u][f]={x:n,y:r,width:d.width,height:d.height,cx:l,cy:a},n>t.maxScrollX&&u++;else for(l=Math.round(e/2),a=Math.round(s/2);n>-t.scrollerWidth;){for(t.pages[h]=[],c=0,r=0;r>-t.scrollerHeight;)t.pages[h][c]={x:Math.max(n,t.maxScrollX),y:Math.max(r,t.maxScrollY),width:e,height:s,cx:n-l,cy:r-a},r-=s,c++;n-=e,h++}t._checkSnapLoop();var m=i._loopX?1:0,v=i._loopY?1:0;t._goToPage(t.currentPage.pageX||m,t.currentPage.pageY||v,0);var g=i.threshold;g%1==0?(t.snapThresholdX=g,t.snapThresholdY=g):(t.snapThresholdX=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].width*g),t.snapThresholdY=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].height*g))}}),this.on("scrollEnd",function(){i.loop&&(i._loopX?(0===t.currentPage.pageX&&t._goToPage(t.pages.length-2,t.currentPage.pageY,0),t.currentPage.pageX===t.pages.length-1&&t._goToPage(1,t.currentPage.pageY,0)):(0===t.currentPage.pageY&&t._goToPage(t.currentPage.pageX,t.pages[0].length-2,0),t.currentPage.pageY===t.pages[0].length-1&&t._goToPage(t.currentPage.pageX,1,0)))}),!1!==i.listenFlick&&this.on("flick",function(){var e=i.speed||Math.max(Math.max(Math.min(Math.abs(t.x-t.startX),1e3),Math.min(Math.abs(t.y-t.startY),1e3)),300);t._goToPage(t.currentPage.pageX+t.directionX,t.currentPage.pageY+t.directionY,e)}),this.on("destroy",function(){if(i.loop){var e=t.scroller.children;e.length>2&&(w(t.scroller,e[e.length-1]),w(t.scroller,e[0]))}})},t.prototype._checkSnapLoop=function(){var t=this.options.snap;t.loop&&this.pages&&this.pages.length&&(this.pages.length>1&&(t._loopX=!0),this.pages[0]&&this.pages[0].length>1&&(t._loopY=!0),t._loopX&&t._loopY&&_("Loop does not support two direction at the same time."))},t.prototype._nearestSnap=function(t,i){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var e=0;if(Math.abs(t-this.absStartX)<=this.snapThresholdX&&Math.abs(i-this.absStartY)<=this.snapThresholdY)return this.currentPage;t>this.minScrollX?t=this.minScrollX:t<this.maxScrollX&&(t=this.maxScrollX),i>this.minScrollY?i=this.minScrollY:i<this.maxScrollY&&(i=this.maxScrollY);for(var o=this.pages.length;e<o;e++)if(t>=this.pages[e][0].cx){t=this.pages[e][0].x;break}o=this.pages[e].length;for(var s=0;s<o;s++)if(i>=this.pages[0][s].cy){i=this.pages[0][s].y;break}return e===this.currentPage.pageX&&(e+=this.directionX,e<0?e=0:e>=this.pages.length&&(e=this.pages.length-1),t=this.pages[e][0].x),s===this.currentPage.pageY&&(s+=this.directionY,s<0?s=0:s>=this.pages[0].length&&(s=this.pages[0].length-1),i=this.pages[0][s].y),{x:t,y:i,pageX:e,pageY:s}},t.prototype._goToPage=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments[2],o=arguments[3],s=this.options.snap;if(s&&this.pages&&this.pages.length&&(o=o||s.easing||$.bounce,t>=this.pages.length?t=this.pages.length-1:t<0&&(t=0),this.pages[t])){i>=this.pages[t].length?i=this.pages[t].length-1:i<0&&(i=0);var n=this.pages[t][i].x,r=this.pages[t][i].y;e=void 0===e?s.speed||Math.max(Math.max(Math.min(Math.abs(n-this.x),1e3),Math.min(Math.abs(r-this.y),1e3)),300):e,this.currentPage={x:n,y:r,pageX:t,pageY:i},this.scrollTo(n,r,e,o)}},t.prototype.goToPage=function(t,i,e,o){var s=this.options.snap;if(s&&this.pages&&this.pages.length){if(s.loop){var n=void 0;s._loopX?(n=this.pages.length-2,t>=n?t=n-1:t<0&&(t=0),t+=1):(n=this.pages[0].length-2,i>=n?i=n-1:i<0&&(i=0),i+=1)}this._goToPage(t,i,e,o)}},t.prototype.next=function(t,i){if(this.options.snap){var e=this.currentPage.pageX,o=this.currentPage.pageY;e++,e>=this.pages.length&&this.hasVerticalScroll&&(e=0,o++),this._goToPage(e,o,t,i)}},t.prototype.prev=function(t,i){if(this.options.snap){var e=this.currentPage.pageX,o=this.currentPage.pageY;e--,e<0&&this.hasVerticalScroll&&(e=0,o--),this._goToPage(e,o,t,i)}},t.prototype.getCurrentPage=function(){var t=this.options.snap;return t?t.loop?t._loopX?s({},this.currentPage,{pageX:this.currentPage.pageX-1}):s({},this.currentPage,{pageY:this.currentPage.pageY-1}):this.currentPage:null}}(Y),function(t){t.prototype.wheelTo=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.options.wheel&&(this.y=-t*this.itemHeight,this.scrollTo(0,this.y))},t.prototype.getSelectedIndex=function(){return this.options.wheel&&this.selectedIndex},t.prototype._initWheel=function(){var t=this.options.wheel;t.wheelWrapperClass||(t.wheelWrapperClass="wheel-scroll"),t.wheelItemClass||(t.wheelItemClass="wheel-item"),void 0===t.selectedIndex&&(t.selectedIndex=0,_("wheel option selectedIndex is required!"))}}(Y),function(t){t.prototype._initScrollbar=function(){var t=this,i=this.options.scrollbar,e=i.fade,o=void 0===e||e,s=i.interactive,n=void 0!==s&&s;this.indicators=[];var r=void 0;this.options.scrollX&&(r={el:T("horizontal"),direction:"horizontal",fade:o,interactive:n},this._insertScrollBar(r.el),this.indicators.push(new P(this,r))),this.options.scrollY&&(r={el:T("vertical"),direction:"vertical",fade:o,interactive:n},this._insertScrollBar(r.el),this.indicators.push(new P(this,r))),this.on("refresh",function(){for(var i=0;i<t.indicators.length;i++)t.indicators[i].refresh()}),o&&(this.on("scrollEnd",function(){for(var i=0;i<t.indicators.length;i++)t.indicators[i].fade()}),this.on("scrollCancel",function(){for(var i=0;i<t.indicators.length;i++)t.indicators[i].fade()}),this.on("scrollStart",function(){for(var i=0;i<t.indicators.length;i++)t.indicators[i].fade(!0)}),this.on("beforeScrollStart",function(){for(var i=0;i<t.indicators.length;i++)t.indicators[i].fade(!0,!0)})),this.on("destroy",function(){t._removeScrollBars()})},t.prototype._insertScrollBar=function(t){this.wrapper.appendChild(t)},t.prototype._removeScrollBars=function(){for(var t=0;t<this.indicators.length;t++)this.indicators[t].destroy()}}(Y),function(t){t.prototype._initPullDown=function(){this.options.probeType=tt},t.prototype._checkPullDown=function(){var t=this.options.pullDownRefresh,i=t.threshold,e=void 0===i?90:i,o=t.stop,s=void 0===o?40:o;return!(this.directionY!==Z||this.y<e)&&(this.pulling||(this.pulling=!0,this.trigger("pullingDown")),this.scrollTo(this.x,s,this.options.bounceTime,$.bounce),this.pulling)},t.prototype.finishPullDown=function(){this.pulling=!1,this.resetPosition(this.options.bounceTime,$.bounce)},t.prototype.openPullDown=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.pullDownRefresh=t,this._initPullDown()},t.prototype.closePullDown=function(){this.options.pullDownRefresh=!1}}(Y),function(t){t.prototype._initPullUp=function(){this.options.probeType=tt,this.pullupWatching=!1,this._watchPullUp()},t.prototype._watchPullUp=function(){this.pullupWatching||(this.pullupWatching=!0,this.on("scroll",this._checkToEnd))},t.prototype._checkToEnd=function(t){var i=this,e=this.options.pullUpLoad.threshold,o=void 0===e?0:e;this.movingDirectionY===G&&t.y<=this.maxScrollY+o&&(this.once("scrollEnd",function(){i.pullupWatching=!1}),this.trigger("pullingUp"),this.off("scroll",this._checkToEnd))},t.prototype.finishPullUp=function(){var t=this;this.pullupWatching?this.once("scrollEnd",function(){t._watchPullUp()}):this._watchPullUp()},t.prototype.openPullUp=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.pullUpLoad=t,this._initPullUp()},t.prototype.closePullUp=function(){this.options.pullUpLoad=!1,this.pullupWatching&&(this.pullupWatching=!1,this.off("scroll",this._checkToEnd))}}(Y),function(t){t.prototype._initMouseWheel=function(){var t=this;this._handleMouseWheelEvent(a),this.on("destroy",function(){clearTimeout(t.mouseWheelTimer),clearTimeout(t.mouseWheelEndTimer),t._handleMouseWheelEvent(h)}),this.firstWheelOpreation=!0},t.prototype._handleMouseWheelEvent=function(t){t(this.wrapper,"wheel",this),t(this.wrapper,"mousewheel",this),t(this.wrapper,"DOMMouseScroll",this)},t.prototype._onMouseWheel=function(t){var i=this;if(this.enabled){t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.firstWheelOpreation&&this.trigger("scrollStart"),this.firstWheelOpreation=!1;var e=this.options.mouseWheel,o=e.speed,s=void 0===o?20:o,n=e.invert,r=void 0!==n&&n,l=e.easeTime,a=void 0===l?300:l;clearTimeout(this.mouseWheelTimer),this.mouseWheelTimer=setTimeout(function(){i.options.snap||a||i.trigger("scrollEnd",{x:i.x,y:i.y}),i.firstWheelOpreation=!0},400);var h=void 0,c=void 0;switch(!0){case"deltaX"in t:1===t.deltaMode?(h=-t.deltaX*s,c=-t.deltaY*s):(h=-t.deltaX,c=-t.deltaY);break;case"wheelDeltaX"in t:h=t.wheelDeltaX/120*s,c=t.wheelDeltaY/120*s;break;case"wheelDelta"in t:h=c=t.wheelDelta/120*s;break;case"detail"in t:h=c=-t.detail/3*s;break;default:return}var u=r?-1:1;h*=u,c*=u,this.hasVerticalScroll||(h=c,c=0);var p=void 0,f=void 0;if(this.options.snap)return p=this.currentPage.pageX,f=this.currentPage.pageY,h>0?p--:h<0&&p++,c>0?f--:c<0&&f++,void this._goToPage(p,f);p=this.x+Math.round(this.hasHorizontalScroll?h:0),f=this.y+Math.round(this.hasVerticalScroll?c:0),this.movingDirectionX=this.directionX=h>0?-1:h<0?1:0,this.movingDirectionY=this.directionY=c>0?-1:c<0?1:0,p>this.minScrollX?p=this.minScrollX:p<this.maxScrollX&&(p=this.maxScrollX),f>this.minScrollY?f=this.minScrollY:f<this.maxScrollY&&(f=this.maxScrollY);var d=this.y===f;this.scrollTo(p,f,a,$.swipe),this.trigger("scroll",{x:this.x,y:this.y}),clearTimeout(this.mouseWheelEndTimer),d&&(this.mouseWheelEndTimer=setTimeout(function(){i.trigger("scrollEnd",{x:i.x,y:i.y})},a))}}}(Y),function(t){t.prototype._initZoom=function(){var t=this.options.zoom,i=t.start,e=void 0===i?1:i,o=t.min,s=void 0===o?1:o,n=t.max,r=void 0===n?4:n;this.scale=Math.min(Math.max(e,s),r),this.setScale(this.scale),this.scrollerStyle[j.transformOrigin]="0 0"},t.prototype._zoomTo=function(t,i,e,o){this.scaled=!0;var s=t/(o||this.scale);this.setScale(t),this.refresh();var n=Math.round(this.startX-(i-this.relativeX)*(s-1)),r=Math.round(this.startY-(e-this.relativeY)*(s-1));n>this.minScrollX?n=this.minScrollX:n<this.maxScrollX&&(n=this.maxScrollX),r>this.minScrollY?r=this.minScrollY:r<this.maxScrollY&&(r=this.maxScrollY),this.x===n&&this.y===r||this.scrollTo(n,r,this.options.bounceTime),this.scaled=!1},t.prototype.zoomTo=function(t,i,e){var o=u(this.wrapper),s=o.left,n=o.top,r=i+s-this.x,l=e+n-this.y;this._zoomTo(t,r,l)},t.prototype._zoomStart=function(t){var i=t.touches[0],e=t.touches[1],o=Math.abs(i.pageX-e.pageX),s=Math.abs(i.pageY-e.pageY);this.startDistance=r(o,s),this.startScale=this.scale;var n=u(this.wrapper),l=n.left,a=n.top;this.originX=Math.abs(i.pageX+e.pageX)/2+l-this.x,this.originY=Math.abs(i.pageY+e.pageY)/2+a-this.y,this.trigger("zoomStart")},t.prototype._zoom=function(t){if(this.enabled&&!this.destroyed&&F[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var i=t.touches[0],e=t.touches[1],o=Math.abs(i.pageX-e.pageX),s=Math.abs(i.pageY-e.pageY),n=r(o,s),l=n/this.startDistance*this.startScale;this.scaled=!0;var a=this.options.zoom,h=a.min,c=void 0===h?1:h,u=a.max,p=void 0===u?4:u;l<c?l=.5*c*Math.pow(2,l/c):l>p&&(l=2*p*Math.pow(.5,p/l));var f=l/this.startScale,d=this.startX-(this.originX-this.relativeX)*(f-1),m=this.startY-(this.originY-this.relativeY)*(f-1);this.setScale(l),this.scrollTo(d,m,0)}},t.prototype._zoomEnd=function(t){if(this.enabled&&!this.destroyed&&F[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.isInTransition=!1,this.isAnimating=!1,this.initiated=0;var i=this.options.zoom,e=i.min,o=void 0===e?1:e,s=i.max,n=void 0===s?4:s,r=this.scale>n?n:this.scale<o?o:this.scale;this._zoomTo(r,this.originX,this.originY,this.startScale),this.trigger("zoomEnd")}}}(Y),function(t){t.prototype._initInfinite=function(){this.options.probeType=3,this.maxScrollY=-it,this.infiniteScroller=new D(this,this.options.infinity)}}(Y),Y.Version="1.12.6",i.default=Y},,,,,,,,,,,,,,function(t,i,e){var o=e(66),s=e(2)("iterator"),n=e(13);t.exports=e(0).getIteratorMethod=function(t){if(void 0!=t)return t[s]||t["@@iterator"]||n[o(t)]}},function(t,i,e){var o,s,n;!function(e,r){s=[i],o=r,void 0!==(n="function"==typeof o?o.apply(i,s):o)&&(t.exports=n)}(0,function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=t.inBrowser="undefined"!=typeof window,e=t.ua=i&&navigator.userAgent.toLowerCase();t.isAndroid=e&&e.indexOf("android")>0})},,function(t,i,e){e(91),t.exports=e(0).Object.assign},function(t,i,e){var o=e(12);o(o.S+o.F,"Object",{assign:e(92)})},function(t,i,e){"use strict";var o=e(15),s=e(31),n=e(23),r=e(25),l=e(33),a=Object.assign;t.exports=!a||e(9)(function(){var t={},i={},e=Symbol(),o="abcdefghijklmnopqrst";return t[e]=7,o.split("").forEach(function(t){i[t]=t}),7!=a({},t)[e]||Object.keys(a({},i)).join("")!=o})?function(t,i){for(var e=r(t),a=arguments.length,h=1,c=s.f,u=n.f;a>h;)for(var p,f=l(arguments[h++]),d=c?o(f).concat(c(f)):o(f),m=d.length,v=0;m>v;)u.call(f,p=d[v++])&&(e[p]=f[p]);return e}:a},function(t,i,e){var o,s,n;!function(r,l){s=[i,e(88)],o=l,void 0!==(n="function"==typeof o?o.apply(i,s):o)&&(t.exports=n)}(0,function(t,i){"use strict";function e(t,i){return new RegExp("(^|\\s)"+i+"(\\s|$)").test(t.className)}function o(t,i){if(!e(t,i)){var o=t.className.split(" ");o.push(i),t.className=o.join(" ")}}function s(t,i){if(e(t,i)){var o=new RegExp("(^|\\s)"+i+"(\\s|$)","g");t.className=t.className.replace(o," ")}}function n(t,i){return t.getAttribute("data-"+i)}function r(t){return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}function l(t){return!1!==c&&("standard"===c?"transitionEnd"===t?"transitionend":t:c+t.charAt(0).toUpperCase()+t.substr(1))}function a(t,i){for(var o=t.target;o&&!e(o,i);){if(o===t.currentTarget)return null;o=o.parentNode}return o}function h(t,i){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e.type,s=void 0===o?"Event":o,n=e.bubbles,r=void 0===n||n,l=e.cancelable,a=void 0===l||l,h=document.createEvent(s);h.initEvent(i,r,a),t.dispatchEvent(h)}Object.defineProperty(t,"__esModule",{value:!0}),t.hasClass=e,t.addClass=o,t.removeClass=s,t.getData=n,t.getRect=r,t.prefixStyle=l,t.getMatchedTarget=a,t.dispatchEvent=h;var c=function(){if(!i.inBrowser)return!1;var t=document.createElement("div").style,e={standard:"transform",webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform"};for(var o in e)if(void 0!==t[e[o]])return o;return!1}()})},,,,,,,,function(t,i,e){function o(t){e(103)}var s=e(6)(e(104),e(105),o,null,null);t.exports=s.exports},function(t,i,e){var o,s,n;!function(e,r){s=[t,i],o=r,void 0!==(n="function"==typeof o?o.apply(i,s):o)&&(t.exports=n)}(0,function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default={props:{options:{type:Object,default:function(){return{}}}}},t.exports=i.default})},function(t,i){},function(t,i,e){var o,s,n;!function(e,r){s=[t,i],o=r,void 0!==(n="function"==typeof o?o.apply(i,s):o)&&(t.exports=n)}(0,function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});i.default={name:"cube-loading",data:function(){return{balde:12}},props:{size:{type:Number}},computed:{style:function(){if(this.size){var t=this.size+"px";return{width:t,height:t}}}}},t.exports=i.default})},function(t,i){t.exports={render:function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"cube-loading"},[e("span",{staticClass:"cube-loading-spinners",style:t.style},t._l(t.balde,function(t){return e("i",{staticClass:"cube-loading-spinner"})}))])},staticRenderFns:[]}},,,function(t,i,e){var o,s,n;!function(r,l){s=[t,i,e(117),e(124),e(32),e(48)],o=l,void 0!==(n="function"==typeof o?o.apply(i,s):o)&&(t.exports=n)}(0,function(t,i,e,o,s,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(i,"__esModule",{value:!0});var l=r(e),a=r(o);i.default={methods:{_checkDeprecated:function(){var t=this,i=this.$options.props,e=this.$options.name;(0,a.default)(i).forEach(function(i){var o=(0,l.default)(i,2),r=o[0],a=o[1],h=a.deprecated;h&&void 0!==t[r]&&(0,s.tip)('The property "'+(0,n.kebab)(r)+'" is deprecated, please use the recommended property "'+h.replacedBy+'" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/'+e.substr(5)+"#cube-Propsconfiguration-anchor",e)})}},mounted:function(){this._checkDeprecated()}},t.exports=i.default})},,,,,,,,,function(t,i,e){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}i.__esModule=!0;var s=e(118),n=o(s),r=e(121),l=o(r);i.default=function(){function t(t,i){var e=[],o=!0,s=!1,n=void 0;try{for(var r,a=(0,l.default)(t);!(o=(r=a.next()).done)&&(e.push(r.value),!i||e.length!==i);o=!0);}catch(t){s=!0,n=t}finally{try{!o&&a.return&&a.return()}finally{if(s)throw n}}return e}return function(i,e){if(Array.isArray(i))return i;if((0,n.default)(Object(i)))return t(i,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(t,i,e){t.exports={default:e(119),__esModule:!0}},function(t,i,e){e(47),e(38),t.exports=e(120)},function(t,i,e){var o=e(66),s=e(2)("iterator"),n=e(13);t.exports=e(0).isIterable=function(t){var i=Object(t);return void 0!==i[s]||"@@iterator"in i||n.hasOwnProperty(o(i))}},function(t,i,e){t.exports={default:e(122),__esModule:!0}},function(t,i,e){e(47),e(38),t.exports=e(123)},function(t,i,e){var o=e(11),s=e(87);t.exports=e(0).getIterator=function(t){var i=s(t);if("function"!=typeof i)throw TypeError(t+" is not iterable!");return o(i.call(t))}},function(t,i,e){t.exports={default:e(125),__esModule:!0}},function(t,i,e){e(126),t.exports=e(0).Object.entries},function(t,i,e){var o=e(12),s=e(127)(!0);o(o.S,"Object",{entries:function(t){return s(t)}})},function(t,i,e){var o=e(15),s=e(8),n=e(23).f;t.exports=function(t){return function(i){for(var e,r=s(i),l=o(r),a=l.length,h=0,c=[];a>h;)n.call(r,e=l[h++])&&c.push(t?[e,r[e]]:r[e]);return c}}},function(t,i,e){function o(t){e(133)}var s=e(6)(e(134),e(138),o,null,null);t.exports=s.exports},,,,,function(t,i){},function(t,i,e){var o,s,n;!function(r,l){s=[t,i,e(67),e(73),e(101),e(135),e(102),e(108),e(93),e(48)],o=l,void 0!==(n="function"==typeof o?o.apply(i,s):o)&&(t.exports=n)}(0,function(t,i,e,o,s,n,r,l,a,h){"use strict";function c(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(i,"__esModule",{value:!0});var u=c(e),p=c(o),f=c(s),d=c(n),m=c(r),v=c(l),g=["scroll","before-scroll-start","scroll-end"],y={observeDOM:!0,click:!0,probeType:1,scrollbar:!1,pullDownRefresh:!1,pullUpLoad:!1};i.default={name:"cube-scroll",mixins:[m.default,v.default],provide:function(){return{parentScroll:this}},inject:{parentScroll:{default:null}},props:{data:{type:Array,default:function(){return[]}},scrollEvents:{type:Array,default:function(){return[]},validator:function(t){return t.every(function(t){return-1!==g.indexOf(t)})}},listenScroll:{type:Boolean,default:void 0,deprecated:{replacedBy:"scroll-events"}},listenBeforeScroll:{type:Boolean,default:void 0,deprecated:{replacedBy:"scroll-events"}},direction:{type:String,default:"vertical"},refreshDelay:{type:Number,default:20},nestMode:{type:String,default:"none"}},data:function(){return{beforePullDown:!0,isPullingDown:!1,isPullUpLoad:!1,pullUpDirty:!0,bubbleY:0,pullDownStyle:"",pullDownStop:40,pullDownHeight:60}},computed:{pullDownRefresh:function(){var t=this.options.pullDownRefresh;return t?(!0===t&&(t={}),(0,u.default)({stop:this.pullDownStop},t)):t},pullUpLoad:function(){return this.options.pullUpLoad},pullUpTxt:function(){var t=this.pullUpLoad,i=t&&t.txt,e=i&&i.more||"",o=i&&i.noMore||"";return this.pullUpDirty?e:o},refreshTxt:function(){var t=this.pullDownRefresh;return t&&t.txt||"Refresh success"},finalScrollEvents:function(){var t=this.scrollEvents.slice();return t.length||(this.listenScroll&&t.push("scroll"),this.listenBeforeScroll&&t.push("before-scroll-start")),t},needListenScroll:function(){return-1!==this.finalScrollEvents.indexOf("scroll")||this.parentScroll}},watch:{data:function(){var t=this;setTimeout(function(){t.forceUpdate(!0)},this.refreshDelay)},pullDownRefresh:{handler:function(t,i){t&&(this.scroll.openPullDown(t),i||(this._onPullDownRefresh(),this._calculateMinHeight())),!t&&i&&(this.scroll.closePullDown(),this._offPullDownRefresh(),this._calculateMinHeight())},deep:!0},pullUpLoad:{handler:function(t,i){t&&(this.scroll.openPullUp(t),i||(this._onPullUpLoad(),this._calculateMinHeight())),!t&&i&&(this.scroll.closePullUp(),this._offPullUpLoad(),this._calculateMinHeight())},deep:!0}},activated:function(){this.enable()},deactivated:function(){this.disable()},mounted:function(){var t=this;this.$nextTick(function(){t.initScroll()})},beforeDestroy:function(){this.destroy()},methods:{initScroll:function(){if(this.$refs.wrapper){this._calculateMinHeight();var t=(0,u.default)({},y,{scrollY:"vertical"===this.direction,scrollX:"horizontal"===this.direction,probeType:this.needListenScroll?3:1},this.options);this.scroll=new p.default(this.$refs.wrapper,t),this.parentScroll&&"none"!==this.nestMode&&this._handleNestScroll(),this._listenScrollEvents(),this.pullDownRefresh&&(this._getPullDownEleHeight(),this._onPullDownRefresh()),this.pullUpLoad&&this._onPullUpLoad()}},disable:function(){this.scroll&&this.scroll.disable()},enable:function(){this.scroll&&this.scroll.enable()},refresh:function(){this._calculateMinHeight(),this.scroll&&this.scroll.refresh()},destroy:function(){this.scroll&&this.scroll.destroy(),this.scroll=null},scrollTo:function(){this.scroll&&this.scroll.scrollTo.apply(this.scroll,arguments)},scrollToElement:function(){this.scroll&&this.scroll.scrollToElement.apply(this.scroll,arguments)},clickItem:function(t){this.$emit("click",t)},forceUpdate:function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.pullDownRefresh&&this.isPullingDown?(this.isPullingDown=!1,this._reboundPullDown(function(){t._afterPullDown(i)})):this.pullUpLoad&&this.isPullUpLoad?(this.isPullUpLoad=!1,this.scroll.finishPullUp(),this.pullUpDirty=i,i&&this.refresh()):i&&this.refresh()},resetPullUpTxt:function(){this.pullUpDirty=!0},_listenScrollEvents:function(){var t=this;this.finalScrollEvents.forEach(function(i){t.scroll.on((0,h.camelize)(i),function(){for(var e=arguments.length,o=Array(e),s=0;s<e;s++)o[s]=arguments[s];t.$emit.apply(t,[i].concat(o))})})},_handleNestScroll:function(){var t=this;this.$nextTick(function(){var i=t.scroll,e=t.parentScroll.scroll;[i,e].forEach(function(o,s,n){o.on("touchEnd",function(){e.enable(),i.enable(),i.initiated=!1}),o.on("beforeScrollStart",function(){t.touchStartMoment=!0;var i=n[(s+1)%2];i.stop(),i.resetPosition()})}),i.on("scroll",function(o){!i.initiated||i.isInTransition||"native"===t.nestMode&&!t.touchStartMoment||(t._checkReachBoundary(o)?(i.resetPosition(),i.disable(),e.pointX=i.pointX,e.pointY=i.pointY,e.enable()):e.disable(),t.touchStartMoment=!1)})})},_checkReachBoundary:function(t){var i=this.scroll.distX,e=this.scroll.distY,o=i>0?t.x>=this.scroll.minScrollX:i<0&&t.x<=this.scroll.maxScrollX,s=e>0?t.y>=this.scroll.minScrollY:e<0&&t.y<=this.scroll.maxScrollY,n=this.scroll.freeScroll,r=this.scroll.hasHorizontalScroll,l=this.scroll.hasVerticalScroll;if(!r&&!l)return!0;if(n)return o||s;var a=void 0;return this.scroll.movingDirectionX?a=o:this.scroll.movingDirectionY&&(a=s),a},_calculateMinHeight:function(){this.$refs.listWrapper&&(this.$refs.listWrapper.style.minHeight=this.pullDownRefresh||this.pullUpLoad?(0,a.getRect)(this.$refs.wrapper).height+1+"px":0)},_onPullDownRefresh:function(){this.scroll.on("pullingDown",this._pullDownHandle),this.scroll.on("scroll",this._pullDownScrollHandle)},_offPullDownRefresh:function(){this.scroll.off("pullingDown",this._pullDownHandle),this.scroll.off("scroll",this._pullDownScrollHandle)},_pullDownHandle:function(){this.resetPullDownTimer&&clearTimeout(this.resetPullDownTimer),this.beforePullDown=!1,this.isPullingDown=!0,this.$emit("pulling-down")},_pullDownScrollHandle:function(t){this.beforePullDown?(this.bubbleY=Math.max(0,t.y-this.pullDownHeight),this.pullDownStyle="top:"+Math.min(t.y-this.pullDownHeight,0)+"px"):(this.bubbleY=0,this.pullDownStyle="top:"+Math.min(t.y-this.pullDownStop,0)+"px")},_onPullUpLoad:function(){this.scroll.on("pullingUp",this._pullUpHandle)},_offPullUpLoad:function(){this.scroll.off("pullingUp",this._pullUpHandle)},_pullUpHandle:function(){this.isPullUpLoad=!0,this.$emit("pulling-up")},_reboundPullDown:function(t){var i=this,e=this.pullDownRefresh.stopTime,o=void 0===e?600:e;setTimeout(function(){i.scroll.finishPullDown(),t()},o)},_afterPullDown:function(t){var i=this;this.resetPullDownTimer=setTimeout(function(){i.pullDownStyle="top: -"+i.pullDownHeight+"px",i.beforePullDown=!0,t&&i.refresh()},this.scroll.options.bounceTime)},_getPullDownEleHeight:function(){var t=this,i=this.$refs.pulldown.firstChild;this.pullDownHeight=(0,a.getRect)(i).height,this.beforePullDown=!1,this.isPullingDown=!0,this.$nextTick(function(){t.pullDownStop=(0,a.getRect)(i).height,t.beforePullDown=!0,t.isPullingDown=!1})}},components:{Loading:f.default,Bubble:d.default}},t.exports=i.default})},function(t,i,e){var o=e(6)(e(136),e(137),null,null,null);t.exports=o.exports},function(t,i,e){var o,s,n;!function(e,r){s=[t,i],o=r,void 0!==(n="function"==typeof o?o.apply(i,s):o)&&(t.exports=n)}(0,function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default={props:{y:{type:Number,default:0}},data:function(){return{width:50,height:80}},computed:{distance:function(){return Math.max(0,Math.min(this.y*this.ratio,this.maxDistance))},style:function(){return"width:"+this.width/this.ratio+"px;height:"+this.height/this.ratio+"px"}},mounted:function(){this.ratio=window.devicePixelRatio,this.width*=this.ratio,this.height*=this.ratio,this.initRadius=18*this.ratio,this.minHeadRadius=12*this.ratio,this.minTailRadius=5*this.ratio,this.initArrowRadius=10*this.ratio,this.minArrowRadius=6*this.ratio,this.arrowWidth=3*this.ratio,this.maxDistance=40*this.ratio,this.initCenterX=25*this.ratio,this.initCenterY=25*this.ratio,this.headCenter={x:this.initCenterX,y:this.initCenterY},this._draw()},methods:{_draw:function(){var t=this.$refs.bubble,i=t.getContext("2d");i.clearRect(0,0,t.width,t.height),this._drawBubble(i),this._drawArrow(i)},_drawBubble:function(t){t.save(),t.beginPath();var i=this.distance/this.maxDistance,e=this.initRadius-(this.initRadius-this.minHeadRadius)*i;this.headCenter.y=this.initCenterY-(this.initRadius-this.minHeadRadius)*i,t.arc(this.headCenter.x,this.headCenter.y,e,0,Math.PI,!0);var o=this.initRadius-(this.initRadius-this.minTailRadius)*i,s={x:this.headCenter.x,y:this.headCenter.y+this.distance},n={x:s.x-o,y:s.y},r={x:n.x,y:n.y-this.distance/2};t.quadraticCurveTo(r.x,r.y,n.x,n.y),t.arc(s.x,s.y,o,Math.PI,0,!0);var l={x:this.headCenter.x+e,y:this.headCenter.y},a={x:s.x+o,y:l.y+this.distance/2};t.quadraticCurveTo(a.x,a.y,l.x,l.y),t.fillStyle="rgb(170,170,170)",t.fill(),t.strokeStyle="rgb(153,153,153)",t.stroke(),t.restore()},_drawArrow:function(t){t.save(),t.beginPath();var i=this.distance/this.maxDistance,e=this.initArrowRadius-(this.initArrowRadius-this.minArrowRadius)*i;t.arc(this.headCenter.x,this.headCenter.y,e-(this.arrowWidth-i),-Math.PI/2,0,!0),t.arc(this.headCenter.x,this.headCenter.y,e,0,3*Math.PI/2,!1),t.lineTo(this.headCenter.x,this.headCenter.y-e-this.arrowWidth/2+i),t.lineTo(this.headCenter.x+2*this.arrowWidth-2*i,this.headCenter.y-e+this.arrowWidth/2),t.lineTo(this.headCenter.x,this.headCenter.y-e+3*this.arrowWidth/2-i),t.fillStyle="rgb(255,255,255)",t.fill(),t.strokeStyle="rgb(170,170,170)",t.stroke(),t.restore()}},watch:{y:function(){this._draw()}}},t.exports=i.default})},function(t,i){t.exports={render:function(){var t=this,i=t.$createElement;return(t._self._c||i)("canvas",{ref:"bubble",style:t.style,attrs:{width:t.width,height:t.height}})},staticRenderFns:[]}},function(t,i){t.exports={render:function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{ref:"wrapper",staticClass:"cube-scroll-wrapper"},[e("div",{staticClass:"cube-scroll-content"},[e("div",{ref:"listWrapper",staticClass:"cube-scroll-list-wrapper"},[t._t("default",[e("ul",{staticClass:"cube-scroll-list"},t._l(t.data,function(i,o){return e("li",{key:o,staticClass:"cube-scroll-item border-bottom-1px",on:{click:function(e){t.clickItem(i)}}},[t._v(t._s(i))])}))])],2),t._v(" "),t._t("pullup",[t.pullUpLoad?e("div",{staticClass:"cube-pullup-wrapper"},[t.isPullUpLoad?e("div",{staticClass:"after-trigger"},[e("loading")],1):e("div",{staticClass:"before-trigger"},[e("span",[t._v(t._s(t.pullUpTxt))])])]):t._e()],{pullUpLoad:t.pullUpLoad,isPullUpLoad:t.isPullUpLoad})],2),t._v(" "),t.pullDownRefresh?e("div",{ref:"pulldown",staticClass:"cube-pulldown"},[t._t("pulldown",[e("div",{staticClass:"cube-pulldown-wrapper",style:t.pullDownStyle},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.beforePullDown,expression:"beforePullDown"}],staticClass:"before-trigger"},[e("bubble",{staticClass:"bubble",attrs:{y:t.bubbleY}})],1),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.beforePullDown,expression:"!beforePullDown"}],staticClass:"after-trigger"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isPullingDown,expression:"isPullingDown"}],staticClass:"loading"},[e("loading")],1),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.isPullingDown,expression:"!isPullingDown"}],staticClass:"cube-pulldown-loaded"},[e("span",[t._v(t._s(t.refreshTxt))])])])])],{pullDownRefresh:t.pullDownRefresh,pullDownStyle:t.pullDownStyle,beforePullDown:t.beforePullDown,isPullingDown:t.isPullingDown,bubbleY:t.bubbleY})],2):t._e()])},staticRenderFns:[]}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,i,e){var o,s,n;!function(r,l){s=[t,i,e(128)],o=l,void 0!==(n="function"==typeof o?o.apply(i,s):o)&&(t.exports=n)}(0,function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var o=function(t){return t&&t.__esModule?t:{default:t}}(e);o.default.install=function(t){t.component(o.default.name,o.default)},i.default=o.default,t.exports=i.default})}])});