UNPKG

cube-ui

Version:

A fantastic mobile ui lib implement by Vue

6 lines 106 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.scroll=e():(t.cube=t.cube||{},t.cube.scroll=e())}("undefined"!=typeof self?self:this,function(){return function(t){function e(o){if(i[o])return i[o].exports;var n=i[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,o){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="./",e(e.s=356)}([function(t,e){var i=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=i)},function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(t,e,i){var o=i(24)("wks"),n=i(17),r=i(1).Symbol,s="function"==typeof r;(t.exports=function(t){return o[t]||(o[t]=s&&r[t]||(s?r:n)("Symbol."+t))}).store=o},function(t,e,i){t.exports=!i(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,i){var o=i(12),n=i(33),r=i(22),s=Object.defineProperty;e.f=i(3)?Object.defineProperty:function(t,e,i){if(o(t),e=r(e,!0),o(i),n)try{return s(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e,i){var o=i(4),n=i(14);t.exports=i(3)?function(t,e,i){return o.f(t,e,n(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){var o=i(40),n=i(19);t.exports=function(t){return o(n(t))}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t,e,i,o,n){var r,s=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(r=t,s=t.default);var l="function"==typeof s?s.options:s;e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns),o&&(l._scopeId=o);var h;if(n?(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__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(n)},l._ssrRegister=h):i&&(h=i),h){var c=l.functional,u=c?l.render:l.beforeCreate;c?l.render=function(t,e){return h.call(e),u(t,e)}:l.beforeCreate=u?[].concat(u,h):[h]}return{esModule:r,exports:s,options:l}}},function(t,e,i){var o=i(1),n=i(0),r=i(31),s=i(6),a=i(5),l=function(t,e,i){var h,c,u,p=t&l.F,f=t&l.G,d=t&l.S,m=t&l.P,v=t&l.B,g=t&l.W,y=f?n:n[e]||(n[e]={}),w=y.prototype,x=f?o:d?o[e]:(o[e]||{}).prototype;f&&(i=e);for(h in i)(c=!p&&x&&void 0!==x[h])&&a(y,h)||(u=c?x[h]:i[h],y[h]=f&&"function"!=typeof x[h]?i[h]:v&&c?r(u,o):g&&x[h]==u?function(t){var e=function(e,i,o){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,o)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(u):m&&"function"==typeof u?r(Function.call,u):u,m&&((y.virtual||(y.virtual={}))[h]=u,t&l.R&&w&&!w[h]&&s(w,h,u)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,i){var o=i(8);t.exports=function(t){if(!o(t))throw TypeError(t+" is not an object!");return t}},function(t,e,i){var o=i(36),n=i(25);t.exports=Object.keys||function(t){return o(t,n)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=!0},function(t,e){t.exports={}},function(t,e){var i=0,o=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+o).toString(36))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var i=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:i)(t)}},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e,i){var o=i(8);t.exports=function(t,e){if(!o(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!o(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!o(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!o(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")}},function(t,e,i){var o=i(24)("keys"),n=i(17);t.exports=function(t){return o[t]||(o[t]=n(t))}},function(t,e,i){var o=i(0),n=i(1),r=n["__core-js_shared__"]||(n["__core-js_shared__"]={});(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:o.version,mode:i(15)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,i){var o=i(4).f,n=i(5),r=i(2)("toStringTag");t.exports=function(t,e,i){t&&!n(t=i?t:t.prototype,r)&&o(t,r,{configurable:!0,value:e})}},function(t,e,i){var o=i(19);t.exports=function(t){return Object(o(t))}},function(t,e,i){var o=i(8),n=i(1).document,r=o(n)&&o(n.createElement);t.exports=function(t){return r?n.createElement(t):{}}},function(t,e,i){e.f=i(2)},function(t,e,i){var o=i(1),n=i(0),r=i(15),s=i(29),a=i(4).f;t.exports=function(t){var e=n.Symbol||(n.Symbol=r?{}:o.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},function(t,e,i){var o=i(34);t.exports=function(t,e,i){if(o(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,o){return t.call(e,i,o)};case 3:return function(i,o,n){return t.call(e,i,o,n)}}return function(){return t.apply(e,arguments)}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,i){t.exports=!i(3)&&!i(11)(function(){return 7!=Object.defineProperty(i(28)("div"),"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,i){var o,n,r;!function(s,a){n=[e,i(48),i(37),i(53),i(47)],o=a,void 0!==(r="function"==typeof o?o.apply(e,n):o)&&(t.exports=r)}(0,function(t,e,i,o,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(t.findIndex)return t.findIndex(e);var i=-1;return t.some(function(t,o,n){var r=e.call(this,t,o,n);if(r)return i=o,r}),i}function a(t,e){for(var i in e)t[i]&&"object"===(0,w.default)(t[i])?a(t[i],e[i]):t[i]=e[i]}function l(t){return function(){for(var e=arguments.length,i=Array(e),o=0;o<e;o++)i[o]=arguments[o];"string"==typeof i[0]&&(i[0]=(0,y.default)({},i[0],i[1])),a(t,i[0])}}function h(t){var e=Object.prototype.toString;return function(i){return e.call(i)==="[object "+t+"]"}}function c(t,e,i){if(void 0!==i)return x._set(t,e,i);if(e){var o=t[e],n=x[void 0===o?"undefined":(0,w.default)(o)];n&&n(t,e,o)}else(0,g.default)(t).forEach(function(e){c(t,e)})}function u(t,e){var i=0,o=[],n=t.length;if(!n)return e(o);t.forEach(function(t,r){t(function(t){i+=1,o[r]=t,i===n&&e(o)})})}function p(t){var e=void 0;if(void 0!==window.Promise){var i=t;e=new window.Promise(function(e){t=function(t){i&&i(t),e(t)}}),e.resolve=t}return e}function f(t,e,i,o){var n=void 0,r=o,s=function(e,i){n=null,i&&(r=t.apply(e,i))},a=function(){for(var o=this,a=arguments.length,l=Array(a),h=0;h<a;h++)l[h]=arguments[h];if(n&&clearTimeout(n),i){var c=!n;n=setTimeout(s,e),c&&(r=t.apply(this,l))}else n=setTimeout(function(){s(o,l)},e);return r};return a.cancel=function(){clearTimeout(n),n=null},a}function d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.prefix,o=void 0===i?"":i,r=e.firstUpperCase,s=void 0!==r&&r,a=t.name,l=a.replace(/^cube-/i,""),h=""+(0,n.camelize)(""+o+l);return s&&(h=h.charAt(0).toUpperCase()+h.slice(1)),h}function m(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.split("."),o=t,n=0;n<i.length;n++){var r=i[n];if(_(o[r])){o="";break}o=o[r]}return o}function v(t){var e=/os (\d\d?_\d(_\d)?)/,i=e.exec(t);if(!i)return null;var o=i[1].split("_").map(function(t){return parseInt(t,10)});return{major:o[0],minor:o[1],patch:o[2]||0}}Object.defineProperty(t,"__esModule",{value:!0}),t.getIOSVersion=t.isNumber=t.isObject=t.isString=t.isArray=t.isFunc=t.isUndef=t.parsePath=t.processComponentName=t.debounce=t.cb2PromiseWithResolve=t.parallel=t.resetTypeValue=t.createAddAPI=t.deepAssign=t.findIndex=void 0;var g=r(e),y=r(i),w=r(o),x={_set:function(t,e,i){t[e]=i},string:function(t,e){x._set(t,e,"")},number:function(t,e){x._set(t,e,0)},boolean:function(t,e){x._set(t,e,!1)},object:function(t,e,i){Array.isArray(i)?x._set(t,e,[]):x._set(t,e,{})}},b=h("Function"),_=h("Undefined"),S=h("Array"),T=h("String"),P=h("Object"),M=h("Number");t.findIndex=s,t.deepAssign=a,t.createAddAPI=l,t.resetTypeValue=c,t.parallel=u,t.cb2PromiseWithResolve=p,t.debounce=f,t.processComponentName=d,t.parsePath=m,t.isUndef=_,t.isFunc=b,t.isArray=S,t.isString=T,t.isObject=P,t.isNumber=M,t.getIOSVersion=v})},function(t,e,i){var o=i(5),n=i(7),r=i(50)(!1),s=i(23)("IE_PROTO");t.exports=function(t,e){var i,a=n(t),l=0,h=[];for(i in a)i!=s&&o(a,i)&&h.push(i);for(;e.length>l;)o(a,i=e[l++])&&(~r(h,i)||h.push(i));return h}},function(t,e,i){"use strict";e.__esModule=!0;var o=i(55),n=function(t){return t&&t.__esModule?t:{default:t}}(o);e.default=function(t,e,i){return e in t?(0,n.default)(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}},function(t,e,i){"use strict";var o=i(62)(!0);i(42)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=o(e,i),this._i+=t.length,{value:t,done:!1})})},function(t,e,i){var o,n,r;!function(i,s){n=[e],o=s,void 0!==(r="function"==typeof o?o.apply(e,n):o)&&(t.exports=r)}(0,function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.warn=function(t,e){},t.tip=function(t,e){}})},function(t,e,i){var o=i(21);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)}},function(t,e,i){var o=i(20),n=Math.min;t.exports=function(t){return t>0?n(o(t),9007199254740991):0}},function(t,e,i){"use strict";var o=i(15),n=i(10),r=i(43),s=i(6),a=i(16),l=i(63),h=i(26),c=i(65),u=i(2)("iterator"),p=!([].keys&&"next"in[].keys()),f=function(){return this};t.exports=function(t,e,i,d,m,v,g){l(i,e,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 i(this,t)}}return function(){return new i(this,t)}},_=e+" Iterator",S="values"==m,T=!1,P=t.prototype,M=P[u]||P["@@iterator"]||m&&P[m],D=M||b(m),E=m?S?b("entries"):D:void 0,Y="Array"==e?P.entries||M:M;if(Y&&(x=c(Y.call(new t)))!==Object.prototype&&x.next&&(h(x,_,!0),o||"function"==typeof x[u]||s(x,u,f)),S&&M&&"values"!==M.name&&(T=!0,D=function(){return M.call(this)}),o&&!g||!p&&!T&&P[u]||s(P,u,D),a[e]=D,a[_]=f,m)if(y={values:S?D:b("values"),keys:v?D:b("keys"),entries:E},g)for(w in y)w in P||r(P,w,y[w]);else n(n.P+n.F*(p||T),e,y);return y}},function(t,e,i){t.exports=i(6)},function(t,e,i){var o=i(12),n=i(64),r=i(25),s=i(23)("IE_PROTO"),a=function(){},l=function(){var t,e=i(28)("iframe"),o=r.length;for(e.style.display="none",i(52).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;o--;)delete l.prototype[r[o]];return l()};t.exports=Object.create||function(t,e){var i;return null!==t?(a.prototype=o(t),i=new a,a.prototype=null,i[s]=t):i=l(),void 0===e?i:n(i,e)}},function(t,e,i){i(66);for(var o=i(1),n=i(6),r=i(16),s=i(2)("toStringTag"),a="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(","),l=0;l<a.length;l++){var h=a[l],c=o[h],u=c&&c.prototype;u&&!u[s]&&n(u,s,h),r[h]=r.Array}},function(t,e,i){var o=i(36),n=i(25).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,n)}},function(t,e,i){var o,n,r;!function(i,s){n=[e],o=s,void 0!==(r="function"==typeof o?o.apply(e,n):o)&&(t.exports=r)}(0,function(t){"use strict";function e(t){return t=String(t),t.replace(o,function(t,e){return e?e.toUpperCase():""})}function i(t){return t=String(t),t.replace(/([A-Z])/g,"-$1").toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0}),t.camelize=e,t.kebab=i;var o=/-(\w)/g})},function(t,e,i){t.exports={default:i(59),__esModule:!0}},function(t,e,i){var o,n,r;!function(i,s){n=[e],o=s,void 0!==(r="function"==typeof o?o.apply(e,n):o)&&(t.exports=r)}(0,function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=t.inBrowser="undefined"!=typeof window,i=t.ua=e&&navigator.userAgent.toLowerCase();t.isAndroid=i&&i.indexOf("android")>0,t.isIOS=i&&/iphone|ipad|ipod|ios/.test(i)})},function(t,e,i){var o=i(7),n=i(41),r=i(51);t.exports=function(t){return function(e,i,s){var a,l=o(e),h=n(l.length),c=r(s,h);if(t&&i!=i){for(;h>c;)if((a=l[c++])!=a)return!0}else for(;h>c;c++)if((t||c in l)&&l[c]===i)return t||c||0;return!t&&-1}}},function(t,e,i){var o=i(20),n=Math.max,r=Math.min;t.exports=function(t,e){return t=o(t),t<0?n(t+e,0):r(t,e)}},function(t,e,i){var o=i(1).document;t.exports=o&&o.documentElement},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var n=i(70),r=o(n),s=i(72),a=o(s),l="function"==typeof a.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":typeof t};e.default="function"==typeof a.default&&"symbol"===l(r.default)?function(t){return void 0===t?"undefined":l(t)}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":void 0===t?"undefined":l(t)}},function(t,e){},function(t,e,i){t.exports={default:i(56),__esModule:!0}},function(t,e,i){i(57);var o=i(0).Object;t.exports=function(t,e,i){return o.defineProperty(t,e,i)}},function(t,e,i){var o=i(10);o(o.S+o.F*!i(3),"Object",{defineProperty:i(4).f})},,function(t,e,i){i(60),t.exports=i(0).Object.keys},function(t,e,i){var o=i(27),n=i(13);i(61)("keys",function(){return function(t){return n(o(t))}})},function(t,e,i){var o=i(10),n=i(0),r=i(11);t.exports=function(t,e){var i=(n.Object||{})[t]||Object[t],s={};s[t]=e(i),o(o.S+o.F*r(function(){i(1)}),"Object",s)}},function(t,e,i){var o=i(20),n=i(19);t.exports=function(t){return function(e,i){var r,s,a=String(n(e)),l=o(i),h=a.length;return l<0||l>=h?t?"":void 0:(r=a.charCodeAt(l),r<55296||r>56319||l+1===h||(s=a.charCodeAt(l+1))<56320||s>57343?t?a.charAt(l):r:t?a.slice(l,l+2):s-56320+(r-55296<<10)+65536)}}},function(t,e,i){"use strict";var o=i(44),n=i(14),r=i(26),s={};i(6)(s,i(2)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=o(s,{next:n(1,i)}),r(t,e+" Iterator")}},function(t,e,i){var o=i(4),n=i(12),r=i(13);t.exports=i(3)?Object.defineProperties:function(t,e){n(t);for(var i,s=r(e),a=s.length,l=0;a>l;)o.f(t,i=s[l++],e[i]);return t}},function(t,e,i){var o=i(5),n=i(27),r=i(23)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=n(t),o(t,r)?t[r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,i){"use strict";var o=i(67),n=i(68),r=i(16),s=i(7);t.exports=i(42)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,n(1)):"keys"==e?n(0,i):"values"==e?n(0,t[i]):n(0,[i,t[i]])},"values"),r.Arguments=r.Array,o("keys"),o("values"),o("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},,function(t,e,i){t.exports={default:i(71),__esModule:!0}},function(t,e,i){i(38),i(45),t.exports=i(29).f("iterator")},function(t,e,i){t.exports={default:i(73),__esModule:!0}},function(t,e,i){i(74),i(54),i(80),i(81),t.exports=i(0).Symbol},function(t,e,i){"use strict";var o=i(1),n=i(5),r=i(3),s=i(10),a=i(43),l=i(75).KEY,h=i(11),c=i(24),u=i(26),p=i(17),f=i(2),d=i(29),m=i(30),v=i(76),g=i(77),y=i(12),w=i(8),x=i(7),b=i(22),_=i(14),S=i(44),T=i(78),P=i(79),M=i(4),D=i(13),E=P.f,Y=M.f,O=T.f,X=o.Symbol,L=o.JSON,C=L&&L.stringify,k=f("_hidden"),I=f("toPrimitive"),R={}.propertyIsEnumerable,j=c("symbol-registry"),A=c("symbols"),H=c("op-symbols"),U=Object.prototype,W="function"==typeof X,N=o.QObject,z=!N||!N.prototype||!N.prototype.findChild,F=r&&h(function(){return 7!=S(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a})?function(t,e,i){var o=E(U,e);o&&delete U[e],Y(t,e,i),o&&t!==U&&Y(U,e,o)}:Y,B=function(t){var e=A[t]=S(X.prototype);return e._k=t,e},$=W&&"symbol"==typeof X.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof X},V=function(t,e,i){return t===U&&V(H,e,i),y(t),e=b(e,!0),y(i),n(A,e)?(i.enumerable?(n(t,k)&&t[k][e]&&(t[k][e]=!1),i=S(i,{enumerable:_(0,!1)})):(n(t,k)||Y(t,k,_(1,{})),t[k][e]=!0),F(t,e,i)):Y(t,e,i)},q=function(t,e){y(t);for(var i,o=v(e=x(e)),n=0,r=o.length;r>n;)V(t,i=o[n++],e[i]);return t},G=function(t,e){return void 0===e?S(t):q(S(t),e)},Z=function(t){var e=R.call(this,t=b(t,!0));return!(this===U&&n(A,t)&&!n(H,t))&&(!(e||!n(this,t)||!n(A,t)||n(this,k)&&this[k][t])||e)},K=function(t,e){if(t=x(t),e=b(e,!0),t!==U||!n(A,e)||n(H,e)){var i=E(t,e);return!i||!n(A,e)||n(t,k)&&t[k][e]||(i.enumerable=!0),i}},J=function(t){for(var e,i=O(x(t)),o=[],r=0;i.length>r;)n(A,e=i[r++])||e==k||e==l||o.push(e);return o},Q=function(t){for(var e,i=t===U,o=O(i?H:x(t)),r=[],s=0;o.length>s;)!n(A,e=o[s++])||i&&!n(U,e)||r.push(A[e]);return r};W||(X=function(){if(this instanceof X)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(i){this===U&&e.call(H,i),n(this,k)&&n(this[k],t)&&(this[k][t]=!1),F(this,t,_(1,i))};return r&&z&&F(U,t,{configurable:!0,set:e}),B(t)},a(X.prototype,"toString",function(){return this._k}),P.f=K,M.f=V,i(46).f=T.f=J,i(18).f=Z,i(32).f=Q,r&&!i(15)&&a(U,"propertyIsEnumerable",Z,!0),d.f=function(t){return B(f(t))}),s(s.G+s.W+s.F*!W,{Symbol:X});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)f(tt[et++]);for(var it=D(f.store),ot=0;it.length>ot;)m(it[ot++]);s(s.S+s.F*!W,"Symbol",{for:function(t){return n(j,t+="")?j[t]:j[t]=X(t)},keyFor:function(t){if(!$(t))throw TypeError(t+" is not a symbol!");for(var e in j)if(j[e]===t)return e},useSetter:function(){z=!0},useSimple:function(){z=!1}}),s(s.S+s.F*!W,"Object",{create:G,defineProperty:V,defineProperties:q,getOwnPropertyDescriptor:K,getOwnPropertyNames:J,getOwnPropertySymbols:Q}),L&&s(s.S+s.F*(!W||h(function(){var t=X();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))})),"JSON",{stringify:function(t){for(var e,i,o=[t],n=1;arguments.length>n;)o.push(arguments[n++]);if(i=e=o[1],(w(e)||void 0!==t)&&!$(t))return g(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!$(e))return e}),o[1]=e,C.apply(L,o)}}),X.prototype[I]||i(6)(X.prototype,I,X.prototype.valueOf),u(X,"Symbol"),u(Math,"Math",!0),u(o.JSON,"JSON",!0)},function(t,e,i){var o=i(17)("meta"),n=i(8),r=i(5),s=i(4).f,a=0,l=Object.isExtensible||function(){return!0},h=!i(11)(function(){return l(Object.preventExtensions({}))}),c=function(t){s(t,o,{value:{i:"O"+ ++a,w:{}}})},u=function(t,e){if(!n(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!r(t,o)){if(!l(t))return"F";if(!e)return"E";c(t)}return t[o].i},p=function(t,e){if(!r(t,o)){if(!l(t))return!0;if(!e)return!1;c(t)}return t[o].w},f=function(t){return h&&d.NEED&&l(t)&&!r(t,o)&&c(t),t},d=t.exports={KEY:o,NEED:!1,fastKey:u,getWeak:p,onFreeze:f}},function(t,e,i){var o=i(13),n=i(32),r=i(18);t.exports=function(t){var e=o(t),i=n.f;if(i)for(var s,a=i(t),l=r.f,h=0;a.length>h;)l.call(t,s=a[h++])&&e.push(s);return e}},function(t,e,i){var o=i(21);t.exports=Array.isArray||function(t){return"Array"==o(t)}},function(t,e,i){var o=i(7),n=i(46).f,r={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return n(t)}catch(t){return s.slice()}};t.exports.f=function(t){return s&&"[object Window]"==r.call(t)?a(t):n(o(t))}},function(t,e,i){var o=i(18),n=i(14),r=i(7),s=i(22),a=i(5),l=i(33),h=Object.getOwnPropertyDescriptor;e.f=i(3)?h:function(t,e){if(t=r(t),e=s(e,!0),l)try{return h(t,e)}catch(t){}if(a(t,e))return n(!o.f.call(t,e),t[e])}},function(t,e,i){i(30)("asyncIterator")},function(t,e,i){i(30)("observable")},function(t,e,i){var o=i(21),n=i(2)("toStringTag"),r="Arguments"==o(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,i,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=s(e=Object(t),n))?i:r?o(e):"Object"==(a=o(e))&&"function"==typeof e.callee?"Arguments":a}},,,function(t,e,i){var o=i(82),n=i(2)("iterator"),r=i(16);t.exports=i(0).getIteratorMethod=function(t){if(void 0!=t)return t[n]||t["@@iterator"]||r[o(t)]}},function(t,e,i){var o,n,r;!function(s,a){n=[e,i(49)],o=a,void 0!==(r="function"==typeof o?o.apply(e,n):o)&&(t.exports=r)}(0,function(t,e){"use strict";function i(t,e){return new RegExp("(^|\\s)"+e+"(\\s|$)").test(t.className)}function o(t,e){if(!i(t,e)){var o=t.className.split(" ");o.push(e),t.className=o.join(" ")}}function n(t,e){if(i(t,e)){var o=new RegExp("(^|\\s)"+e+"(\\s|$)","g");t.className=t.className.replace(o," ")}}function r(t,e){return t.getAttribute("data-"+e)}function s(t){return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}function a(t){return!1!==c&&("standard"===c?"transitionEnd"===t?"transitionend":t:c+t.charAt(0).toUpperCase()+t.substr(1))}function l(t,e){for(var o=t.target;o&&!i(o,e);){if(o===t.currentTarget)return null;o=o.parentNode}return o}function h(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.type,n=void 0===o?"Event":o,r=i.bubbles,s=void 0===r||r,a=i.cancelable,l=void 0===a||a,h=document.createEvent(n);h.initEvent(e,s,l),t.dispatchEvent(h)}Object.defineProperty(t,"__esModule",{value:!0}),t.hasClass=i,t.addClass=o,t.removeClass=n,t.getData=r,t.getRect=s,t.prefixStyle=a,t.getMatchedTarget=l,t.dispatchEvent=h;var c=function(){if(!e.inBrowser)return!1;var t=document.createElement("div").style,i={standard:"transform",webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform"};for(var o in i)if(void 0!==t[i[o]])return o;return!1}()})},function(t,e,i){t.exports={default:i(91),__esModule:!0}},,function(t,e,i){"use strict";function o(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function n(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];for(var n=0;n<i.length;n++){var r=i[n];for(var s in r)t[s]=r[s]}return t}function r(t){return void 0===t||null===t}function s(t,e){return Math.sqrt(t*t+e*e)}function a(t){return!1!==R&&("standard"===R?"transitionEnd"===t?"transitionend":t:R+t.charAt(0).toUpperCase()+t.substr(1))}function l(t,e,i,o){t.addEventListener(e,i,{passive:!1,capture:!!o})}function h(t,e,i,o){t.removeEventListener(e,i,{passive:!1,capture:!!o})}function c(t){for(var e=0,i=0;t;)e-=t.offsetLeft,i-=t.offsetTop,t=t.offsetParent;return{left:e,top:i}}function u(t){var e=t.getBoundingClientRect();return{left:-(e.left+window.pageXOffset),top:-(e.top+window.pageYOffset)}}function p(t){if(t instanceof window.SVGElement){var e=t.getBoundingClientRect();return{top:e.top,left:e.left,width:e.width,height:e.height}}return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}function f(t,e){for(var i in e)if(e[i].test(t[i]))return!0;return!1}function d(t,e){var i=document.createEvent("Event");i.initEvent(e,!0,!0),i.pageX=t.pageX,i.pageY=t.pageY,t.target.dispatchEvent(i)}function m(t){function e(){s=document.createEvent("Event"),s.initEvent(i,a,l),n(s,r)}var i=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 r={};o&&(r.screenX=o.screenX||0,r.screenY=o.screenY||0,r.clientX=o.clientX||0,r.clientY=o.clientY||0);var s=void 0,a=!0,l=!0;if("undefined"!=typeof MouseEvent)try{s=new MouseEvent(i,n({bubbles:a,cancelable:l},r))}catch(t){e()}else e();s.forwardedTouchEvent=!0,s._constructed=!0,t.target.dispatchEvent(s)}function v(t){m(t,"dblclick")}function g(t,e){e.firstChild?y(t,e.firstChild):e.appendChild(t)}function y(t,e){e.parentNode.insertBefore(t,e)}function w(t,e){t.removeChild(e)}function x(t,e,i,o,n,r,s){var a=t-e,l=Math.abs(a)/i,h=s.deceleration,c=s.itemHeight,u=s.swipeBounceTime,p=s.wheel,f=s.swipeTime,d=f,m=p?4:15,v=t+l/h*(a<0?-1:1);return p&&c&&(v=Math.round(v/c)*c),v<o?(v=r?Math.max(o-r/4,o-r/m*l):o,d=u):v>n&&(v=r?Math.min(n+r/4,n+r/m*l):n,d=u),{destination:Math.round(v),duration:d}}function b(){}function _(t){console.error("[BScroll warn]: "+t)}function S(t,e){if(!t)throw new Error("[BScroll] "+e)}function T(t){var e=document.createElement("div"),i=document.createElement("div");return e.style.cssText="position:absolute;z-index:9999;pointerEvents:none",i.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;",i.className="bscroll-indicator","horizontal"===t?(e.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",i.style.height="100%",e.className="bscroll-horizontal-scrollbar"):(e.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",i.style.width="100%",e.className="bscroll-vertical-scrollbar"),e.style.cssText+=";overflow:hidden",e.appendChild(i),e}function P(t,e){this.wrapper=e.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=t,this.direction=e.direction,e.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,e.interactive&&this._addDOMEvents()}function M(t){if(t&&t.classList)return t.classList.contains("tombstone")}function D(t,e){var i=this;this.options=e,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(){i.onScroll()}),this.scroller.on("resize",function(){i.onResize()}),this.onResize()}function E(t,e){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,e)}Object.defineProperty(e,"__esModule",{value:!0});/*! * better-normal-scroll v1.12.6 * (c) 2016-2018 ustbhuangyi * Released under the MIT License. */ var Y=function(){function t(t,e){var i=[],o=!0,n=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(o=(s=a.next()).done)&&(i.push(s.value),!e||i.length!==e);o=!0);}catch(t){n=!0,r=t}finally{try{!o&&a.return&&a.return()}finally{if(n)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)},X="undefined"!=typeof window,L=X&&navigator.userAgent.toLowerCase(),C=L&&/wechatdevtools/.test(L),k=L&&L.indexOf("android")>0,I=X&&document.createElement("div").style,R=function(){if(!X)return!1;var t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(var e in t)if(void 0!==I[t[e]])return e;return!1}(),j=a("transform"),A=X&&a("perspective")in I,H=X&&("ontouchstart"in window||C),U=!1!==j,W=X&&a("transition")in I,N={transform:j,transitionTimingFunction:a("transitionTimingFunction"),transitionDuration:a("transitionDuration"),transitionDelay:a("transitionDelay"),transformOrigin:a("transformOrigin"),transitionEnd:a("transitionEnd")},z=1,F={touchstart:z,touchmove:z,touchend:z,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:H,disableTouch:!H,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 X?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||100/60)/2)}:b}(),q=function(){return X?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:b}(),G=1,Z=-1,K=1,J=-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,e){var i=this;if(!e||this.visible){var o=t?250:500;t=t?"1":"0",this.wrapperStyle[N.transitionDuration]=o+"ms",clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout(function(){i.wrapperStyle.opacity=t,i.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 e=Math.max(this.indicatorHeight+3*t,8);this.indicatorStyle.height=e+"px",t=0}else if(t>this.maxPosY){this.transitionTime(500);var i=Math.max(this.indicatorHeight-3*(t-this.maxPosY),8);this.indicatorStyle.height=i+"px",t=this.maxPosY+this.indicatorHeight-i}else this.indicatorStyle.height=this.indicatorHeight+"px";this.y=t,this.scroller.options.useTransform?this.indicatorStyle[N.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 n=Math.max(this.indicatorWidth+3*o,8);this.indicatorStyle.width=n+"px",o=0}else if(o>this.maxPosX){this.transitionTime(500);var r=Math.max(this.indicatorWidth-3*(o-this.maxPosX),8);this.indicatorStyle.width=r+"px",o=this.maxPosX+this.indicatorWidth-r}else this.indicatorStyle.width=this.indicatorWidth+"px";this.x=o,this.scroller.options.useTransform?this.indicatorStyle[N.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[N.transitionDuration]=t+"ms"},P.prototype.transitionTimingFunction=function(t){this.indicatorStyle[N.transitionTimingFunction]=t},P.prototype.destroy=function(){this._removeDOMEvents(),this.wrapper.parentNode.removeChild(this.wrapper)},P.prototype._start=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=e.pageX,this.lastPointY=e.pageY,this.startTime=o(),this._handleMoveEvents(l),this.scroller.trigger("beforeScrollStart")},P.prototype._move=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.moved||this.scroller.trigger("scrollStart"),this.moved=!0;var i=e.pageX-this.lastPointX;this.lastPointX=e.pageX;var o=e.pageY-this.lastPointY;this.lastPointY=e.pageY;var n=this.x+i,r=this.y+o;this._pos(n,r)},P.prototype._end=function(t){if(this.initiated){this.initiated=!1,t.preventDefault(),t.stopPropagation(),this._handleMoveEvents(h);var e=this.scroller.options.snap;if(e){var i=e.speed,o=e.easing,n=void 0===o?$.bounce:o,r=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),s=i||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-r.x),1e3),Math.min(Math.abs(this.scroller.y-r.y),1e3)),300);this.scroller.x===r.x&&this.scroller.y===r.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=r,this.scroller.scrollTo(r.x,r.y,s,n))}this.moved&&this.scroller.trigger("scrollEnd",{x:this.scroller.x,y:this.scroller.y})}},P.prototype._pos=function(t,e){t<0?t=0:t>this.maxPosX&&(t=this.maxPosX),e<0?e=0:e>this.maxPosY&&(e=this.maxPosY),t=Math.round(t/this.sizeRatioX),e=Math.round(e/this.sizeRatioY),this.scroller.scrollTo(t,e),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 e=this.wrapper.clientWidth;this.indicatorWidth=Math.max(Math.round(e*e/(this.scroller.scrollerWidth||e||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px",this.maxPosX=e-this.indicatorWidth,this.sizeRatioX=this.maxPosX/this.scroller.maxScrollX}},P.prototype._addDOMEvents=function(){var t=l;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 et=2e3;D.prototype.onScroll=function(){var t=-this.scroller.y,e=t-this.anchorScrollTop;this.anchorItem=0===t?{index:0,offset:0}:this._calculateAnchoredItem(this.anchorItem,e),this.anchorScrollTop=t;var i=this._calculateAnchoredItem(this.anchorItem,this.wrapperEl.offsetHeight),o=this.anchorItem.index,n=i.index;e<0?(o-=30,n+=10):(o-=10,n+=30),this.fill(o,n),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 e=0;e<this.items.length;e++)this.items[e].height=this.items[e].width=0;this.onScroll()},D.prototype.fill=function(t,e){this.firstAttachedItem=Math.max(0,t),this.hasMore||(e=Math.min(e,this.items.length)),this.lastAttachedItem=e,this.attachContent()},D.prototype.maybeRequestContent=function(){var t=this;if(!this.requestInProgress&&this.hasMore){var e=this.lastAttachedItem-this.loadedItems;e<=0||(this.requestInProgress=!0,this.options.fetch(e).then(function(e){if(t.requestInProgress=!1,e)t.addContent(e);else{t.hasMore=!1;var i=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-=i,o=t._fixScrollPosition(),t._setupAnimations({},o),t.scroller.stop(),t.scroller.resetPosition(),t.onScroll())}}))}},D.prototype.addContent=function(t){for(var e=0;e<t.length;e++)this.items.length<=this.loadedItems&&this._addItem(),this.items[this.loadedItems++].data=t[e];this.attachContent(),this.maybeRequestContent()},D.prototype.attachContent=function(){var t=this._collectUnusedNodes(),e=this._createDOMNodes(t);this._cleanupUnusedNodes(t),this._cacheNodeSize();var i=this._fixScrollPosition();this._setupAnimations(e,i)},D.prototype.resetMore=function(){this.hasMore=!0},D.prototype._removeTombstones=function(){for(var t=void 0,e=0,i=this.items.length,o=0;o<i;o++){var n=this.items[o].node,r=this.items[o].data;n&&!M(n)||r||(t||(t=o),n&&this.scrollerEl.removeChild(n))}return e=i-t,this.items.splice(t),this.lastAttachedItem=Math.min(this.lastAttachedItem,this.items.length),e},D.prototype._collectUnusedNodes=function(){for(var t=[],e=0;e<this.items.length;e++)if(e!==this.firstAttachedItem){var i=this.items[e].node;i&&(M(i)?(this.tombstones.push(i),this.tombstones[this.tombstones.length-1].style.display="none"):t.push(i)),this.items[e].node=null}else e=this.lastAttachedItem-1;return t},D.prototype._createDOMNodes=function(t){for(var e={},i=this.firstAttachedItem;i<this.lastAttachedItem;i++){for(;this.items.length<=i;)this._addItem();var o=this.items[i].node,n=this.items[i].data;if(o){if(!M(o)||!n)continue;o.style.zIndex=1,e[i]=[o,this.items[i].top-this.anchorScrollTop],this.items[i].node=null}var r=n?this.options.render(n,t.pop()):this._getTombStone();r.style.position="absolute",this.items[i].top=-1,this.scrollerEl.appendChild(r),this.items[i].node=r}return e},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 e=this.anchorScrollTop-this.anchorItem.offset,i=this.anchorItem.index;i>this.firstAttachedItem;)e-=this.items[i-1].height||this.tombstoneHeight,i--;return e},D.prototype._setupAnimations=function(t,e){var i=this;for(var o in t){var n=t[o];this.items[o].node.style.transform="translateY("+(this.anchorScrollTop+n[1])+"px) scale("+this.tombstoneWidth/this.items[o].width+", "+this.tombstoneHeight/this.items[o].height+")",this.items[o].node.offsetTop,n[0].offsetTop,this.items[o].node.style.transition="transform 200ms"}for(var r=this.firstAttachedItem;r<this.lastAttachedItem;r++){var s=t[r];if(s){var a=s[0];a.style.transition="transform 200ms, opacity 200ms",a.style.transform="translateY("+e+"px) scale("+this.items[r].width/this.tombstoneWidth+", "+this.items[r].height/this.tombstoneHeight+")",a.style.opacity=0}e!==this.items[r].top&&(s||(this.items[r].node.style.transition=""),this.items[r].node.style.transform="translateY("+e+"px)"),this.items[r].top=e,e+=this.items[r].height||this.tombstoneHeight}this.scroller.maxScrollY=-(e-this.wrapperEl.offsetHeight+(this.hasMore?et:0)),setTimeout(function(){for(var e in t){var o=t[e];o[0].style.display="none",i.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,e){if(0===e)return t;var i=t.index,o=0;if((e+=t.offset)<0){for(;e<0&&i>0&&this.items[i-1].height;)e+=this.items[i-1].height,i--;o=Math.max(-i,Math.ceil(Math.min(e,0)/this.tombstoneHeight))}else{for(;e>0&&i<this.items.length&&this.items[i].height&&this.items[i].height<e;)e-=this.items[i].height,i++;(i>=this.items.length||!this.items[i].height)&&(o=Math.floor(Math.max(e,0)/this.tombstoneHeight))}return i+=o,e-=o*this.tombstoneHeight,{index:i,offset:e}},function(t){t.prototype._init=function(t,e){this._handleOptions(e),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=r(this.scale)?t:this.scale,this.scale=t},t.prototype._handleOptions=function(t){this.options=n({},B,t),this.translateZ=this.options.HWCompositing&&A?" translateZ(0)":"",this.options.useTransition=this.options.useTransition&&W,this.options.useTransform=this.options.useTransform&&U,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=l;this._handleDOMEvents(t)},t.prototype._removeDOMEvents=function(){var t=h;this._handleDOMEvents(t)},t.prototype._handleDOMEvents=function(t){var e=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(e,"mousemove",this),t(e,"mousecancel",this),t(e,"mouseup",this)),H&&!this.options.disableTouch&&(t(this.wrapper,"touchstart",this),t(e,"touchmove",this),t(e,"touchcancel",this),t(e,"touchend",this)),t(this.scroller,N.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,e=!1,i=this.useTransition?"isInTransition":"isAnimating";Object.defineProperty(this,i,{get:function(){return e},set:function(i){e=i;for(var o=t.scroller.children.length?t.scroller.children:[t.scroller],n=e&&!t.pulling?"none":"auto",r=0;r<o.length;r++)o[r].style.pointerEvents=n}})}},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 e=void 0,i=new MutationObserver(function(i){if(!t._shouldNotRefresh()){for(var o=!1,n=!1,r=0;r<i.length;r++){var s=i[r];if("attributes"!==s.type){o=!0;break}if(s.target!==t.scroller){n=!0;break}}o?t.refresh():n&&(clearTimeout(e),e=setTimeout(function(){t._shouldNotRefresh()||t.refresh()},60))}}),o={attributes:!0,childList:!0,subtree:!0};i.observe(this.scroller,o),this.on("destroy",function(){i.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){i=p(this.scroller);var t=i.width,r=i.height;o===t&&n===r||this.refresh(),o=t,n=r,e.call(this)}}function e(){var e=this;setTimeout(function(){t.call(e)},1e3)}var i=p(this.scroller),o=i.width,n=i.height;e.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,e=p(this.wrapper);this.wrapperWidth=e.width,this.wrapperHeight=e.height;var i=p(this.scroller);this.scrollerWidth=Math.round(i.width*this.scale),this.scrollerHeight=Math.round(i.height*this.scale),this.relativeX=i.left,this.relativeY=i.top,t&&(this.relativeX-=e.left,this.relativeY-=e.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}}(E),function(t){t.prototype._start=function(t){var e=F[t.type];if((e===z||0===t.button)&&!(!this.enabled||this.destroyed||this.initiated&&this.initiated!==e)){this.initiated=e,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 i=t.touches?t.touches[0]:t;this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=i.pageX,this.pointY=i.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 e=t.touches?t.touches[0]:t,i=e.pageX-this.pointX,n=e.pageY-this.pointY;this.pointX=e.pageX,this.pointY=e.pageY,this.distX+=i,this.distY+=n;var r=Math.abs(this.distX),s=Math.abs(this.distY),a=o();if(!(a-this.endTime>this.options.momentumLimitTime&&s<this.options.momentumLimitDistance&&r<this.options.momentumLimitDistance)){if(this.directionLocked||this.options.freeScroll||(r>s+this.options.directionLockThreshold?this.directionLocked="h":s>=r+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);n=0}else if("v"===this.directionLocked){if("horizontal"===this.options.eventPassthrough)t.preventDefault();else if("vertical"===this.options.eventPassthrough)return void(this.initiated=!1);i=0}i=this.hasHorizontalScroll?i:0,n=this.hasVerticalScroll?n:0,this.movingDirectionX=i>0?J:i<0?K:0,this.movingDirectionY=n>0?Z:n<0?G:0;var l=this.x+i,h=this.y+n,c=!1,u=!1,p=!1,f=!1,d=this.options.bounce;!1!==d&&(c=void 0===d.top||d.top,u=