UNPKG

@xysfe/actui

Version:

A fantastic mobile ui lib implement by Vue

1 lines 919 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ReplayLayer=e():t.ReplayLayer=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../lib",e(e.s=2129)}({0:function(t,e){var r=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},1:function(t,e,r){"use strict";function n(t,e,r,n,i,o,a,s){t=t||{};var u=typeof t.default;"object"!==u&&"function"!==u||(t=t.default);var c="function"==typeof t?t.options:t;e&&(c.render=e,c.staticRenderFns=r,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId=o);var l;if(a?(l=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(a)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var f=c.render;c.render=function(t,e){return l.call(e),f(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}e.a=n},10:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},100:function(t,e,r){t.exports={default:r(101),__esModule:!0}},101:function(t,e,r){r(55),t.exports=r(0).Object.getOwnPropertySymbols},102:function(t,e,r){"use strict";function n(t){var e={},r={},n={};for(var u in t)if(t.hasOwnProperty(u))if(-1!==s.indexOf(u))e[u]=t[u];else if(a.test(u)){var c=a.exec(u)[1];c=Object(o.a)(c),n[c]=t[u]}else r[u]=t[u];return e.on=Object(i.a)(n,e.on),e.props=Object(i.a)(r,e.props),e}e.a=n;var i=r(62),o=r(103),a=new RegExp(/^on(.+)/),s=["class","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"]},103:function(t,e,r){"use strict";function n(t,e){var r=u(t,e);return r.charAt(0).toLowerCase()+r.slice(1)}e.a=n;var i=r(28),o=r.n(i),a=r(4),s=function(t){for(var e=!1,r=!1,n=!1,i=0;i<t.length;i++){var o=t[i];e&&/[a-zA-Z]/.test(o)&&o.toUpperCase()===o?(t=t.slice(0,i)+"-"+t.slice(i),e=!1,n=r,r=!0,i++):r&&n&&/[a-zA-Z]/.test(o)&&o.toLowerCase()===o?(t=t.slice(0,i-1)+"-"+t.slice(i-1),n=r,r=!1,e=!0):(e=o.toLowerCase()===o&&o.toUpperCase()!==o,n=r,r=o.toUpperCase()===o&&o.toLowerCase()!==o)}return t},u=function(t,e){if("string"!=typeof t&&!Object(a.p)(t))throw new TypeError("Expected the input to be `string | string[]`");e=o()({pascalCase:!1},e);return t=Array.isArray(t)?t.map(function(t){return t.trim()}).filter(function(t){return t.length}).join("-"):t.trim(),0===t.length?"":1===t.length?e.pascalCase?t.toUpperCase():t.toLowerCase():(t!==t.toLowerCase()&&(t=s(t)),t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()}).replace(/\d+(\w|$)/g,function(t){return t.toUpperCase()}),function(t){return e.pascalCase?t.charAt(0).toUpperCase()+t.slice(1):t}(t))}},104:function(t,e,r){"use strict";function n(t,e,r,n){var o=void 0,a=void 0,s=new t({render:function(t){var r=a&&a(t);return r&&!Object(i.p)(r)&&(r=[r]),t(e,o,r||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return s.updateRenderData=function(t,e){o=t,a=e},s.updateRenderData(r,n),s.$mount(),s.init(),s.$children[0]}e.a=n;var i=r(4)},105:function(t,e,r){"use strict";var n=r(20),i=r(64);e.a={name:"ActPopup",mixins:[n.a,i.a],props:{type:{type:String,default:""},mask:{type:Boolean,default:!0},content:{type:String,default:""},center:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.7},pointerEvent:{type:String,default:""},zIndex:{type:[String,Number],default:"999"},topBorderRadius:{type:Boolean,default:!1}},computed:{typeClass:function(){return this.type?"act-"+this.type:""},maskBgColor:function(){return"rgba(0, 0, 0, "+this.opacity+")"}},methods:{maskClick:function(t){this.$emit("mask-click",t)}}}},107:function(t,e,r){var n=r(26),i=r(3)("toStringTag"),o="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,r,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=a(e=Object(t),i))?r:o?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},108:function(t,e,r){"use strict";function n(t){s||r(120)}var i=r(105),o=r(121),a=r(1),s=!1,u=n,c=Object(a.a)(i.a,o.a,o.b,!1,u,null,null);c.options.__file="src\\components\\common\\popup.vue",e.a=c.exports},11:function(t,e,r){var n=r(47),i=r(29);t.exports=function(t){return n(i(t))}},110:function(t,e,r){var n=r(9),i=r(40),o=r(3)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||void 0==(r=n(a)[o])?e:i(r)}},111:function(t,e,r){var n,i,o,a=r(38),s=r(146),u=r(60),c=r(41),l=r(2),f=l.process,h=l.setImmediate,d=l.clearImmediate,p=l.MessageChannel,v=l.Dispatch,g=0,m={},y=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},A=function(t){y.call(t.data)};h&&d||(h=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return m[++g]=function(){s("function"==typeof t?t:Function(t),e)},n(g),g},d=function(t){delete m[t]},"process"==r(26)(f)?n=function(t){f.nextTick(a(y,t,1))}:v&&v.now?n=function(t){v.now(a(y,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=A,n=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(t){l.postMessage(t+"","*")},l.addEventListener("message",A,!1)):n="onreadystatechange"in c("script")?function(t){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:h,clear:d}},112:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},113:function(t,e,r){var n=r(9),i=r(10),o=r(68);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},114:function(t,e,r){"use strict";function n(t){t.interceptors.response.use(function(t){return t},function(t){var e={403:"请求被拒绝,请联系客服处理",404:"您访问的资源不可用,请联系客服处理",502:"服务器网关出错,请稍后重试",503:"服务器维护中,请稍后重试",504:"服务器请求超时,请稍后重试"},r="";return r=t&&t.response&&t.response.status?e[t.response.status]?e[t.response.status]+"("+t.response.status+")":"请求失败,请稍后重试("+t.response.status+")":t&&t.message&&/timeout/i.test(t.message)?"请求超时,请稍后重试":"请求失败,请稍后重试",s.a.reject(new Error(r))})}function i(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4;return new s.a(function(i,o){var a=c.a.create();n(a),a.request({method:"post",url:t,data:e,timeout:r,withCredentials:!0,headers:{"X-Requested-With":"XMLHttpRequest"}}).then(function(t){i(t)}).catch(function(t){o(t)})})}function o(t){return c.a.get(t).then(function(t){return s.a.resolve(t.data)})}e.a=n,e.d=i,e.c=o;var a=r(52),s=r.n(a),u=r(164),c=r.n(u);e.b=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4;return new s.a(function(i,o){var a=c.a.create();n(a),a.request({method:"post",url:t,data:e,timeout:r,withCredentials:!0,headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/x-www-form-urlencoded"},transformRequest:[function(t){function e(t,e){var r=0,n=t.length;if(void 0===n||"[object Function]"===Object.prototype.toString.call(t)){for(var i in t)if(!1===e.call(t[i],i,t[i]))break}else for(var o=t[0];r<n&&!1!==e.call(o,r,o);o=t[++r]);return t}function r(t,n,i){var o=void 0,a="[object Array]"===Object.prototype.toString.call(n),s="[object Object]"===Object.prototype.toString.call(n);e(n,function(e,n){o=Object.prototype.toString.call(n),i&&(e=i+"["+(s||"[object Object]"===o||"[object Array]"===o?e:"")+"]"),!i&&a?t.add(n.name,n.value):"[object Array]"===o||"[object Object]"===o?r(t,n,e):t.add(e,n)})}if(t){return function(t){var e=[];return e.add=function(t,e){"[object Function]"===Object.prototype.toString.call(e)&&(e=e()),null==e&&(e=""),this.push(encodeURIComponent(t)+"="+encodeURIComponent(e))},r(e,t),e.join("&").replace(/%20/g,"+")}(t)}}]}).then(function(t){i(t)}).catch(function(t){o(t)})})}},115:function(t,e,r){var n=r(107),i=r(3)("iterator"),o=r(18);t.exports=r(0).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[n(t)]}},116:function(t,e,r){"use strict";function n(t){t.preventDefault()}var i={watch:{isVisible:function(t){t?document.body.addEventListener("touchmove",n,{passive:!1}):document.body.removeEventListener("touchmove",n,{passive:!1})}},beforeDestroy:function(){document.body.removeEventListener("touchmove",n,{passive:!1})}};e.a=i},117:function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},118:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(154);e.default=n.a},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},120:function(t,e){},121:function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-popup",class:t.typeClass,style:{pointerEvents:t.pointerEvent,zIndex:t.zIndex}},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.mask,expression:"mask"}],staticClass:"act-popup-mask act-row act-middle",style:{backgroundColor:t.maskBgColor},on:{click:t.maskClick}},[t._t("mask")],2),t._v(" "),r("div",{staticClass:"act-popup-container",class:{"act-popup-center":t.center}},[t.$slots.default?r("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius}},[t._t("default")],2):r("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius},domProps:{innerHTML:t._s(t.content)}})])])},i=[];n._withStripped=!0},123:function(t,e,r){var n=r(38),i=r(136),o=r(137),a=r(9),s=r(59),u=r(115),c={},l={},e=t.exports=function(t,e,r,f,h){var d,p,v,g,m=h?function(){return t}:u(t),y=n(r,f,e?2:1),A=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(d=s(t.length);d>A;A++)if((g=e?y(a(p=t[A])[0],p[1]):y(t[A]))===c||g===l)return g}else for(v=m.call(t);!(p=v.next()).done;)if((g=i(v,y,p.value,e))===c||g===l)return g};e.BREAK=c,e.RETURN=l},124:function(t,e,r){t.exports={default:r(186),__esModule:!0}},125:function(t,e,r){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},1258:function(t,e,r){"use strict";var n=r(1319),i=r.n(n),o=r(124),a=r.n(o),s=r(134),u=r(310),c=r(20),l=r(4);e.a={name:"ActGoldReadTerms",mixins:[c.a],components:{scrollZoom:u.a,ActGoldLayer:s.a},data:function(){return{curIndex:1,readState:[],termsInfo:[],readTimer:null,countdown:0,prevTime:void 0}},computed:{readTermsLength:function(){return this.readTerms.length},bookTitle:function(){var t=this.termsInfo[this.curIndex-1]&&this.termsInfo[this.curIndex-1].title;return t?"《"+t+"》":""},comfirmText:function(){var t=this.confirmButtonText||"已完整阅读并确认"+this.bookTitle,e=void 0;return this.readTimer&&(e=(this.confirmButtonText?this.confirmButtonText:"已完整阅读并确认")+"("+this.countdown+"s)"),e||t},curForceReadToPageEnd:function(){return this.termsInfo[this.curIndex-1].hasOwnProperty("forceReadToPageEnd")?this.termsInfo[this.curIndex-1].forceReadToPageEnd:this.forceRead||!1},curForceReadSeconds:function(){return this.termsInfo[this.curIndex-1].hasOwnProperty("forceReadSeconds")?this.termsInfo[this.curIndex-1].forceReadSeconds:this.forceReadTime||0},isWebTester:function(){return l.x}},props:{readTerms:{type:Array,default:function(){return[]}},forceRead:{type:Boolean,default:!0},forceReadTime:{type:Number,default:0},confirmButtonText:{type:String,default:""},cancelButtonText:{type:String,default:"暂不同意"},brandColor:{type:String,default:"#8c7fee"},beforeClose:{type:Function,default:null},beforePreOrNext:{type:Function,default:null}},methods:{getTerms:function(t){for(var e=[],r=t,n=Array.isArray(r),i=0,r=n?r:a()(r);;){var o;if(n){if(i>=r.length)break;o=r[i++]}else{if(i=r.next(),i.done)break;o=i.value}var s=o,u={type:Number(s.type),title:s.title,urls:s.urls,innerHTML:s.innerHTML||"",fixedTipHtml:s.fixedTipHtml||"",souceFile:s.src,init:!1,classObject:{"scroll-pdf":!1,"scroll-word":!1},myScroll:null,styleImg:{height:"auto"},freeScroll:!0,scrollbar:{fade:!0,interactive:!0},bounce:{bottom:!1,left:!1,right:!1,top:!1},zoom:!0,listenScrollInit:!0,listenScrollEnd:!0,listenZoomEnd:!1,listenScroll:!1,mouseWheel:!0,currentScale:1,scrollY:0,cWidth:0,cHeight:0,liTag:null,wordHtml:"",currentPage:0,isLoading:!1};s.hasOwnProperty("forceReadToPageEnd")&&(u.forceReadToPageEnd=!!+s.forceReadToPageEnd),s.hasOwnProperty("forceReadSeconds")&&(u.forceReadSeconds=+s.forceReadSeconds),e.push(u)}this.termsInfo=e},showDoc:function(t){var e=this;this.$nextTick(function(){e.$refs.scrollZoom.showDoc(t)})},changeHeaderBtnsColor:function(t){var e=this,r=this.$refs,n=r.prevbtn,i=r.nextbtn,o=function(){e.readTimer?i.style.color="":i.style.color=e.brandColor};1==~~t&&~~t<this.readTermsLength?(n&&(n.style.color=""),i&&o()):~~t>1&&~~t<this.readTermsLength?(n&&(n.style.color=this.brandColor),i&&o()):~~t>1&&~~t===this.readTermsLength&&(n&&(n.style.color=this.brandColor),i&&(i.style.color=""))},handleActionBeforePreOrNext:function(t,e){function r(t){i.curIndex>1&&(i.curIndex=o-1,2===i.termsInfo[i.curIndex-1].type&&i.showDoc(i.curIndex-1))}function n(t){i.curIndex<i.readTermsLength&&i.next(t)}var i=this,o=~~this.curIndex,a=this.termsInfo[o-1];this.beforePreOrNext?this.beforePreOrNext({action:t,next:function(i){!1!==i&&("prevClick"===t&&r(e),"nextClick"===t&&n(e))},curTermsInfo:a,curIndex:i.curIndex,readTermsLength:i.readTermsLength,isLast:i.curIndex===i.readTermsLength,curIsReadEnd:i.readState[i.curIndex-1].readEnd}):("prevClick"===t&&r(e),"nextClick"===t&&n(e))},handlePrev:function(t){1!==this.curIndex&&(this.readTimer&&this.resetReadTimer(),this.handleActionBeforePreOrNext("prevClick",t))},handleNext:function(t){this.readTimer||this.handleActionBeforePreOrNext("nextClick",t)},beforeShowDoc:function(t){+this.curForceReadSeconds>0&&!this.readState[t-1].readEnough&&this.setReadTimer(),this.changeHeaderBtnsColor(t),this.getCurTermInfo({curIndex:t,isReadEnd:this.readState[t-1].readEnd,totalLegth:this.readTermsLength,curTerm:this.termsInfo[t-1]}),!this.curForceReadToPageEnd&&!this.curForceReadSeconds&&1==~~this.readTermsLength&&this.canINext(!0)},timerFn:function(t){if(this.prevTime){if(t-this.prevTime>1e3){if(!(this.countdown>0))return this.countdown=0,this.readState[this.curIndex-1].readEnough=!0,this.changeHeaderBtnsColor(this.curIndex),void this.resetReadTimer();this.prevTime=t,this.countdown=--this.countdown}}else this.prevTime=t;this.readTimer=requestAnimationFrame(this.timerFn)},setReadTimer:function(){this.readTimer&&this.resetReadTimer(),this.countdown=i()(this.curForceReadSeconds),this.readTimer=requestAnimationFrame(this.timerFn),this.changeHeaderBtnsColor()},resetReadTimer:function(){cancelAnimationFrame(this.readTimer),this.readTimer=null},next:function(t){var e=~~this.curIndex;!this.curForceReadToPageEnd&&this.canINext(!0),this.curForceReadToPageEnd&&this.readState[e-1].readEnd||!this.curForceReadToPageEnd?e<this.readTermsLength&&(this.curIndex=e+1,this.showDoc(e)):this.curForceReadToPageEnd&&!this.readState[e-1].readEnd&&this.showToast("请观看至页面底部,完整阅读全部内容")},getCurTermInfo:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.$emit("getCurTermInfo",t)},canINext:function(t){this.readTermsLength&&(this.readState[this.curIndex-1].readEnd=t,this.getCurTermInfo({curIndex:this.curIndex,isReadEnd:this.readState[this.curIndex-1].readEnd,totalLegth:this.readTermsLength,curTerm:this.termsInfo.length&&this.termsInfo[this.curIndex-1]}))},confirm:function(t){if(!this.readTimer){this.curForceReadToPageEnd&&!this.readState[this.readTermsLength-1].readEnd&&this.curIndex<=this.readTermsLength||!this.curForceReadToPageEnd&&this.curIndex<this.readTermsLength?this.next(t):this.handleAction("confirm",t)}},cancel:function(t){this.handleAction("cancel",t)},handleAction:function(t,e){var r=this,n=this.termsInfo[this.curIndex-1];this.beforeClose?this.beforeClose(t,function(n){!1!==n&&(r.hide(),r.$emit(t,e))},n):(this.hide(),this.$emit(t,e))},showToast:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3;this.hideToast(),this.toast||(this.toast=this.$createToast()),this.toast.show(t,e)},hideToast:function(){this.toast&&this.toast.hide()},preventMove:function(t){t._prevent=!0},reset:function(){this.curIndex=1,this.readState=new Array(this.readTermsLength).fill(void 0).map(function(t){return{readEnd:!1,readEnough:!1}})},mucReadTerms:function(t){var e=this;if(this.isWebTester){if("step"===t._mucMethod){!function r(){if(e.isVisible){var n=~~e.curIndex;e.curForceReadToPageEnd&&!e.readState[n-1].readEnd&&e.canINext(!0),setTimeout(function(){e.confirm(t),n<e.readTermsLength&&e.$nextTick(function(){r()})},1e3*(e.countdown+1))}}()}else this.handleAction("confirm",t)}}},mounted:function(){this.changeHeaderBtnsColor(this.curIndex)},watch:{isVisible:function(t){t&&(this.reset(),this.getTerms(this.readTerms),this.beforeShowDoc(this.curIndex),this.showDoc(0)),!1==!!t&&this.resetReadTimer()},curIndex:function(t){this.beforeShowDoc(t)}}}},1259:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},126:function(t,e,r){"use strict";function n(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var i=r(17);t.exports=function(t,e,r){if(!e)return t;var o;if(r)o=r(e);else if(i.isURLSearchParams(e))o=e.toString();else{var a=[];i.forEach(e,function(t,e){null!==t&&void 0!==t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),a.push(n(e)+"="+n(t))}))}),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},127:function(t,e,r){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},128:function(t,e,r){"use strict";(function(e){function n(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var i=r(17),o=r(170),a={"Content-Type":"application/x-www-form-urlencoded"},s={adapter:function(){var t;return"undefined"!=typeof XMLHttpRequest?t=r(129):void 0!==e&&"[object process]"===Object.prototype.toString.call(e)&&(t=r(129)),t}(),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(n(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)?(n(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(t){s.headers[t]={}}),i.forEach(["post","put","patch"],function(t){s.headers[t]=i.merge(a)}),t.exports=s}).call(e,r(153))},129:function(t,e,r){"use strict";var n=r(17),i=r(171),o=r(126),a=r(173),s=r(176),u=r(177),c=r(130);t.exports=function(t){return new Promise(function(e,l){var f=t.data,h=t.headers;n.isFormData(f)&&delete h["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",v=t.auth.password||"";h.Authorization="Basic "+btoa(p+":"+v)}var g=a(t.baseURL,t.url);if(d.open(t.method.toUpperCase(),o(g,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?s(d.getAllResponseHeaders()):null,n=t.responseType&&"text"!==t.responseType?d.response:d.responseText,o={data:n,status:d.status,statusText:d.statusText,headers:r,config:t,request:d};i(e,l,o),d=null}},d.onabort=function(){d&&(l(c("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){l(c("Network Error",t,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),l(c(e,t,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var m=r(178),y=(t.withCredentials||u(g))&&t.xsrfCookieName?m.read(t.xsrfCookieName):void 0;y&&(h[t.xsrfHeaderName]=y)}if("setRequestHeader"in d&&n.forEach(h,function(t,e){void 0===f&&"content-type"===e.toLowerCase()?delete h[e]:d.setRequestHeader(e,t)}),n.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),t.responseType)try{d.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){d&&(d.abort(),l(t),d=null)}),void 0===f&&(f=null),d.send(f)})}},13:function(t,e,r){var n=r(2),i=r(0),o=r(38),a=r(7),s=r(6),u=function(t,e,r){var c,l,f,h=t&u.F,d=t&u.G,p=t&u.S,v=t&u.P,g=t&u.B,m=t&u.W,y=d?i:i[e]||(i[e]={}),A=y.prototype,b=d?n:p?n[e]:(n[e]||{}).prototype;d&&(r=e);for(c in r)(l=!h&&b&&void 0!==b[c])&&s(y,c)||(f=l?b[c]:r[c],y[c]=d&&"function"!=typeof b[c]?r[c]:g&&l?o(f,n):m&&b[c]==f?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):v&&"function"==typeof f?o(Function.call,f):f,v&&((y.virtual||(y.virtual={}))[c]=f,t&u.R&&A&&!A[c]&&a(A,c,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},130:function(t,e,r){"use strict";var n=r(172);t.exports=function(t,e,r,i,o){var a=new Error(t);return n(a,e,r,i,o)}},131:function(t,e,r){"use strict";var n=r(17);t.exports=function(t,e){e=e||{};var r={},i=["url","method","params","data"],o=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];n.forEach(i,function(t){void 0!==e[t]&&(r[t]=e[t])}),n.forEach(o,function(i){n.isObject(e[i])?r[i]=n.deepMerge(t[i],e[i]):void 0!==e[i]?r[i]=e[i]:n.isObject(t[i])?r[i]=n.deepMerge(t[i]):void 0!==t[i]&&(r[i]=t[i])}),n.forEach(a,function(n){void 0!==e[n]?r[n]=e[n]:void 0!==t[n]&&(r[n]=t[n])});var s=i.concat(o).concat(a),u=Object.keys(e).filter(function(t){return-1===s.indexOf(t)});return n.forEach(u,function(n){void 0!==e[n]?r[n]=e[n]:void 0!==t[n]&&(r[n]=t[n])}),r}},1317:function(t,e,r){"use strict";function n(t){s||r(1318)}var i=r(1258),o=r(1324),a=r(1),s=!1,u=n,c=Object(a.a)(i.a,o.a,o.b,!1,u,"data-v-21ba486f",null);c.options.__file="src\\components\\GoldReadTerms\\src\\index.vue",e.a=c.exports},1318:function(t,e){},1319:function(t,e,r){t.exports={default:r(1320),__esModule:!0}},132:function(t,e,r){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},1320:function(t,e,r){r(1321),t.exports=r(0).Number.parseInt},1321:function(t,e,r){var n=r(13),i=r(1322);n(n.S+n.F*(Number.parseInt!=i),"Number",{parseInt:i})},1322:function(t,e,r){var n=r(2).parseInt,i=r(1323).trim,o=r(1259),a=/^[-+]?0[xX]/;t.exports=8!==n(o+"08")||22!==n(o+"0x16")?function(t,e){var r=i(String(t),3);return n(r,e>>>0||(a.test(r)?16:10))}:n},1323:function(t,e,r){var n=r(13),i=r(29),o=r(12),a=r(1259),s="["+a+"]",u="​…",c=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),f=function(t,e,r){var i={},s=o(function(){return!!a[t]()||u[t]()!=u}),c=i[t]=s?e(h):a[t];r&&(i[r]=c),n(n.P+n.F*s,"String",i)},h=f.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(l,"")),t};t.exports=f},1324:function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("act-gold-layer",{attrs:{visible:t.isVisible,center:!1}},[r("div",{staticClass:"readterms-title",attrs:{slot:"header"},slot:"header"},[t.$slots.myheader?[t._t("myheader")]:[t.readTermsLength>1?r("span",{ref:"prevbtn",staticClass:"prev h-btn",on:{click:t.handlePrev}},[t._v("上一页")]):t._e(),t._v(" "),r("span",[t._v("请阅读以下内容"),t.readTermsLength>1?r("span",[t._v("("+t._s(t.curIndex)+"/"+t._s(t.readTermsLength)+")")]):t._e()]),t._v(" "),t.readTermsLength>1?r("span",{ref:"nextbtn",staticClass:"next h-btn",on:{click:t.handleNext}},[t._v("下一页")]):t._e()]],2),t._v(" "),t.isVisible?r("scroll-zoom",{ref:"scrollZoom",staticClass:"scroll-zoom",attrs:{termsInfo:t.termsInfo,forceRead:t.curForceReadToPageEnd,docIndex:t.curIndex-1,brandColor:t.brandColor},on:{canINext:t.canINext}}):t._e(),t._v(" "),t.$slots.footer?r("div",[t._t("footer")],2):[r("div",{staticClass:"bottom-btn-placeholder"}),t._v(" "),r("div",{staticClass:"readterms-btns"},[r("div",{staticClass:"f-btn left",on:{click:t.cancel}},[r("p",[t._v(t._s(t.cancelButtonText))])]),t._v(" "),r("div",{staticClass:"f-btn right",class:{disabled:t.readTimer},style:{background:t.readTimer?"#f2f2f2":t.brandColor},attrs:{"data-key":[t.isWebTester?"readTermsBtn":""]},on:{click:t.confirm,mucReadTerms:t.mucReadTerms}},[r("p",[t._v(t._s(t.comfirmText))]),t._v(" "),t.$slots.fIcon?t._t("fIcon"):t._e()],2)])]],2)},i=[];n._withStripped=!0},134:function(t,e,r){"use strict";function n(t){s||r(203)}var i=r(156),o=r(204),a=r(1),s=!1,u=n,c=Object(a.a)(i.a,o.a,o.b,!1,u,"data-v-f3b563a0",null);c.options.__file="src\\components\\common\\goldlayer.vue",e.a=c.exports},136:function(t,e,r){var n=r(9);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},137:function(t,e,r){var n=r(18),i=r(3)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[i]===t)}},139:function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},1390:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(14),i=r(1317);i.a.install=function(t){t.component(i.a.name,i.a),t.prototype.$createGoldReadTerms=Object(n.a)(i.a,t)},e.default=i.a},14:function(t,e,r){"use strict";function n(t,e){return function(r,n){var a=this,s=Object(i.a)(r),u=Object(o.a)(e,t,s,n),c=u.$parent,l=u.remove,f=u.show,h=u.hide;return u.remove=function(){u.$removed=!0,l&&l.call(this),c.destroy()},u.show=function(){return f&&f.call.apply(f,[this].concat(Array.prototype.slice.call(arguments))),this},u.hide=function(){return h&&h.call.apply(h,[this].concat(Array.prototype.slice.call(arguments))),this},a&&a._isVue&&a.$once("hook:beforeDestroy",function(){u.$removed||u.remove()}),u}}e.a=n;var i=r(102),o=r(104)},140:function(t,e,r){var n=r(7);t.exports=function(t,e,r){for(var i in e)r&&t[i]?t[i]=e[i]:n(t,i,e[i]);return t}},141:function(t,e,r){var n=r(3)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},t(o)}catch(t){}return r}},142:function(t,e,r){"use strict";var n=r(2),i=r(0),o=r(8),a=r(5),s=r(3)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:n[t];a&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},144:function(t,e,r){r(61),r(53),r(56),r(145),r(149),r(150),t.exports=r(0).Promise},145:function(t,e,r){"use strict";var n,i,o,a,s=r(16),u=r(2),c=r(38),l=r(107),f=r(13),h=r(10),d=r(40),p=r(139),v=r(123),g=r(110),m=r(111).set,y=r(147)(),A=r(68),b=r(112),P=r(148),w=r(113),x=u.TypeError,T=u.process,O=T&&T.versions,C=O&&O.v8||"",S=u.Promise,E="process"==l(T),j=function(){},k=i=A.f,D=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[r(3)("species")]=function(t){t(j,j)};return(E||"function"==typeof PromiseRejectionEvent)&&t.then(j)instanceof e&&0!==C.indexOf("6.6")&&-1===P.indexOf("Chrome/66")}catch(t){}}(),z=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},X=function(t,e){if(!t._n){t._n=!0;var r=t._c;y(function(){for(var n=t._v,i=1==t._s,o=0;r.length>o;)!function(e){var r,o,a,s=i?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(i||(2==t._h&&H(t),t._h=1),!0===s?r=n:(l&&l.enter(),r=s(n),l&&(l.exit(),a=!0)),r===e.promise?c(x("Promise-chain cycle")):(o=z(r))?o.call(r,u,c):u(r)):c(n)}catch(t){l&&!a&&l.exit(),c(t)}}(r[o++]);t._c=[],t._n=!1,e&&!t._h&&L(t)})}},L=function(t){m.call(u,function(){var e,r,n,i=t._v,o=R(t);if(o&&(e=b(function(){E?T.emit("unhandledRejection",i,t):(r=u.onunhandledrejection)?r({promise:t,reason:i}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",i)}),t._h=E||R(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},H=function(t){m.call(u,function(){var e;E?T.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},B=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),X(e,!0))},N=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw x("Promise can't be resolved itself");(e=z(t))?y(function(){var n={_w:r,_d:!1};try{e.call(t,c(N,n,1),c(B,n,1))}catch(t){B.call(n,t)}}):(r._v=t,r._s=1,X(r,!1))}catch(t){B.call({_w:r,_d:!1},t)}}};D||(S=function(t){p(this,S,"Promise","_h"),d(t),n.call(this);try{t(c(N,this,1),c(B,this,1))}catch(t){B.call(this,t)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r(140)(S.prototype,{then:function(t,e){var r=k(g(this,S));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=E?T.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&X(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=c(N,t,1),this.reject=c(B,t,1)},A.f=k=function(t){return t===S||t===a?new o(t):i(t)}),f(f.G+f.W+f.F*!D,{Promise:S}),r(27)(S,"Promise"),r(142)("Promise"),a=r(0).Promise,f(f.S+f.F*!D,"Promise",{reject:function(t){var e=k(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(s||!D),"Promise",{resolve:function(t){return w(s&&this===a?S:this,t)}}),f(f.S+f.F*!(D&&r(141)(function(t){S.all(t).catch(j)})),"Promise",{all:function(t){var e=this,r=k(e),n=r.resolve,i=r.reject,o=b(function(){var r=[],o=0,a=1;v(t,!1,function(t){var s=o++,u=!1;r.push(void 0),a++,e.resolve(t).then(function(t){u||(u=!0,r[s]=t,--a||n(r))},i)}),--a||n(r)});return o.e&&i(o.v),r.promise},race:function(t){var e=this,r=k(e),n=r.reject,i=b(function(){v(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},146:function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},147:function(t,e,r){var n=r(2),i=r(111).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,u="process"==r(26)(a);t.exports=function(){var t,e,r,c=function(){var n,i;for(u&&(n=a.domain)&&n.exit();t;){i=t.fn,t=t.next;try{i()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(u)r=function(){a.nextTick(c)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);r=function(){l.then(c)}}else r=function(){i.call(n,c)};else{var f=!0,h=document.createTextNode("");new o(c).observe(h,{characterData:!0}),r=function(){h.data=f=!f}}return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,r()),e=i}}},148:function(t,e,r){var n=r(2),i=n.navigator;t.exports=i&&i.userAgent||""},149:function(t,e,r){"use strict";var n=r(13),i=r(0),o=r(2),a=r(110),s=r(113);n(n.P+n.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return s(e,t()).then(function(){return r})}:t,r?function(r){return s(e,t()).then(function(){throw r})}:t)}})},15:function(t,e,r){var n=r(50),i=r(33);t.exports=Object.keys||function(t){return n(t,i)}},150:function(t,e,r){"use strict";var n=r(13),i=r(68),o=r(112);n(n.S,"Promise",{try:function(t){var e=i.f(this),r=o(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},152:function(t,e,r){"use strict";r.d(e,"a",function(){return i});var n=r(4),i=function(){var t=!0;if(n.K.isIOS){var e=Object(n.l)(navigator.userAgent.toLowerCase());if(!e)return t;Number(""+e.major+e.minor)>=133&&(t=!1)}return t}()},153:function(t,e){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===r||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function o(t){if(f===clearTimeout)return clearTimeout(t);if((f===n||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function a(){v&&d&&(v=!1,d.length?p=d.concat(p):g=-1,p.length&&s())}function s(){if(!v){var t=i(a);v=!0;for(var e=p.length;e;){for(d=p,p=[];++g<e;)d&&d[g].run();g=-1,e=p.length}d=null,v=!1,o(t)}}function u(t,e){this.fun=t,this.array=e}function c(){}var l,f,h=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:r}catch(t){l=r}try{f="function"==typeof clearTimeout?clearTimeout:n}catch(t){f=n}}();var d,p=[],v=!1,g=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];p.push(new u(t,e)),1!==p.length||v||i(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=c,h.addListener=c,h.once=c,h.off=c,h.removeListener=c,h.removeAllListeners=c,h.emit=c,h.prependListener=c,h.prependOnceListener=c,h.listeners=function(t){return[]},h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},154:function(t,e,r){"use strict";function n(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function i(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];for(var i=0;i<r.length;i++){var o=r[i];for(var a in o)t[a]=o[a]}return t}function o(t){return void 0===t||null===t}function a(t,e){return Math.sqrt(t*t+e*e)}function s(t){return!1!==H&&("standard"===H?"transitionEnd"===t?"transitionend":t:H+t.charAt(0).toUpperCase()+t.substr(1))}function u(t,e,r,n){t.addEventListener(e,r,{passive:!1,capture:!!n})}function c(t,e,r,n){t.removeEventListener(e,r,{passive:!1,capture:!!n})}function l(t){for(var e=0,r=0;t;)e-=t.offsetLeft,r-=t.offsetTop,t=t.offsetParent;return{left:e,top:r}}function f(t){var e=t.getBoundingClientRect();return{left:-(e.left+window.pageXOffset),top:-(e.top+window.pageYOffset)}}function h(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 d(t,e){for(var r in e)if(e[r].test(t[r]))return!0;return!1}function p(t,e){var r=document.createEvent("Event");r.initEvent(e,!0,!0),r.pageX=t.pageX,r.pageY=t.pageY,t.target.dispatchEvent(r)}function v(t){function e(){a=document.createEvent("Event"),a.initEvent(r,s,u),i(a,o)}var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"click",n=void 0;"mouseup"===t.type||"mousecancel"===t.type?n=t:"touchend"!==t.type&&"touchcancel"!==t.type||(n=t.changedTouches[0]);var o={};n&&(o.screenX=n.screenX||0,o.screenY=n.screenY||0,o.clientX=n.clientX||0,o.clientY=n.clientY||0);var a=void 0,s=!0,u=!0;if("undefined"!=typeof MouseEvent)try{a=new MouseEvent(r,i({bubbles:s,cancelable:u},o))}catch(t){e()}else e();a.forwardedTouchEvent=!0,a._constructed=!0,t.target.dispatchEvent(a)}function g(t){v(t,"dblclick")}function m(t,e){e.firstChild?y(t,e.firstChild):e.appendChild(t)}function y(t,e){e.parentNode.insertBefore(t,e)}function A(t,e){t.removeChild(e)}function b(t,e,r,n,i,o,a){var s=t-e,u=Math.abs(s)/r,c=a.deceleration,l=a.itemHeight,f=a.swipeBounceTime,h=a.wheel,d=a.swipeTime,p=d,v=h?4:15,g=t+u/c*(s<0?-1:1);return h&&l&&(g=Math.round(g/l)*l),g<n?(g=o?Math.max(n-o/4,n-o/v*u):n,p=f):g>i&&(g=o?Math.min(i+o/4,i+o/v*u):i,p=f),{destination:Math.round(g),duration:p}}function P(){}function w(t){console.error("[BScroll warn]: "+t)}function x(t,e){if(!t)throw new Error("[BScroll] "+e)}function T(t){var e=document.createElement("div"),r=document.createElement("div");return e.style.cssText="position:absolute;z-index:9999;pointerEvents:none",r.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;",r.className="bscroll-indicator","horizontal"===t?(e.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",r.style.height="100%",e.className="bscroll-horizontal-scrollbar"):(e.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",r.style.width="100%",e.className="bscroll-vertical-scrollbar"),e.style.cssText+=";overflow:hidden",e.appendChild(r),e}function O(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 C(t){if(t&&t.classList)return t.classList.contains("tombstone")}function S(t,e){var r=this;this.options=e,x("function"==typeof this.options.createTombstone,"Infinite scroll need createTombstone Function to create tombstone"),x("function"==typeof this.options.fetch,"Infinite scroll need fetch Function to fetch new data."),x("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(){r.onScroll()}),this.scroller.on("resize",function(){r.onResize()}),this.onResize()}function E(t,e){this.wrapper="string"==typeof t?document.querySelector(t):t,this.wrapper||w("Can not resolve the wrapper DOM."),this.scroller=this.wrapper.children[0],this.scroller||w("The wrapper need at least one child element to be scroller."),this.scrollerStyle=this.scroller.style,this._init(t,e)}var j=function(){function t(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)},D="undefined"!=typeof window,z=D&&navigator.userAgent.toLowerCase(),X=z&&/wechatdevtools/.test(z),L=z&&z.indexOf("android")>0,R=D&&document.createElement("div").style,H=function(){if(!D)return!1;var t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(var e in t)if(void 0!==R[t[e]])return e;return!1}(),B=s("transform"),N=D&&s("perspective")in R,I=D&&("ontouchstart"in window||X),M=!1!==B,G=D&&s("transition")in R,q={transform:B,transitionTimingFunction:s("transitionTimingFunction"),transitionDuration:s("transitionDuration"),transitionDelay:s("transitionDelay"),transformOrigin:s("transformOrigin"),transitionEnd:s("transitionEnd")},W=1,Z={touchstart:W,touchmove:W,touchend:W,mousedown:2,mousemove:2,mouseup:2},F={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:I,disableTouch:!I,observeDOM:!0,autoBlur:!0,wheel:!1,snap:!1,scrollbar:!1,pullDownRefresh:!1,pullUpLoad:!1,mouseWheel:!1,stopPropagation:!1,zoom:!1,infinity:!1,dblclick:!1},Y={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}}},J=function(){return D?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||100/60)/2)}:P}(),Q=function(){return D?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:P}(),V=1,U=-1,K=1,_=-1,$=1,tt=3;O.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)}},O.prototype.refresh=function(){this._shouldShow()&&(this.transitionTime(),this._calculate(),this.updatePosition())},O.prototype.fade=function(t,e){var r=this;if(!e||this.visible){var n=t?250:500;t=t?"1":"0",this.wrapperStyle[q.transitionDuration]=n+"ms",clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout(function(){r.wrapperStyle.opacity=t,r.visible=+t},0)}},O.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 r=Math.max(this.indicatorHeight-3*(t-this.maxPosY),8);this.indicatorStyle.height=r+"px",t=this.maxPosY+this.indicatorHeight-r}else this.indicatorStyle.height=this.indicatorHeight+"px";this.y=t,this.scroller.options.useTransform?this.indicatorStyle[q.transform]="translateY("+t+"px)"+this.scroller.translateZ:this.indicatorStyle.top=t+"px"}else{var n=Math.round(this.sizeRatioX*this.scroller.x);if(n<0){this.transitionTime(500);var i=Math.max(this.indicatorWidth+3*n,8);this.indicatorStyle.width=i+"px",n=0}else if(n>this.maxPosX){this.transitionTime(500);var o=Math.max(this.indicatorWidth-3*(n-this.maxPosX),8);this.indicatorStyle.width=o+"px",n=this.maxPosX+this.indicatorWidth-o}else this.indicatorStyle.width=this.indicatorWidth+"px";this.x=n,this.scroller.options.useTransform?this.indicatorStyle[q.transform]="translateX("+n+"px)"+this.scroller.translateZ:this.indicatorStyle.left=n+"px"}},O.prototype.transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorStyle[q.transitionDuration]=t+"ms"},O.prototype.transitionTimingFunction=function(t){this.indicatorStyle[q.transitionTimingFunction]=t},O.prototype.destroy=function(){this._removeDOMEvents(),this.wrapper.parentNode.removeChild(this.wrapper)},O.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=n(),this._handleMoveEvents(u),this.scroller.trigger("beforeScrollStart")},O.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 r=e.pageX-this.lastPointX;this.lastPointX=e.pageX;var n=e.pageY-this.lastPointY;this.lastPointY=e.pageY;var i=this.x+r,o=this.y+n;this._pos(i,o)},O.prototype._end=function(t){if(this.initiated){this.initiated=!1,t.preventDefault(),t.stopPropagation(),this._handleMoveEvents(c);var e=this.scroller.options.snap;if(e){var r=e.speed,n=e.easing,i=void 0===n?Y.bounce:n,o=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),a=r||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-o.x),1e3),Math.min(Math.abs(this.scroller.y-o.y),1e3)),300);this.scroller.x===o.x&&this.scroller.y===o.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=o,this.scroller.scrollTo(o.x,o.y,a,i))}this.moved&&this.scroller.trigger("scrollEnd",{x:this.scroller.x,y:this.scroller.y})}},O.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})},O.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)},O.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}},O.prototype._addDOMEvents=function(){var t=u;this._handleDOMEvents(t)},O.prototype._removeDOMEvents=function(){var t=c;this._handleDOMEvents(t),this._handleMoveEvents(t)},O.prototype._handleMoveEvents=function(t){this.scroller.options.disableTouch||t(window,"touchmove",this),this.scroller.options.disableMouse||t(window,"mousemove",this)},O.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;S.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 r=this._calculateAnchoredItem(this.anchorItem,this.wrapperEl.offsetHeight),n=this.anchorItem.index,i=r.index;e<0?(n-=30,i+=10):(n-=10,i+=30),this.fill(n,i),this.maybeRequestContent()},S.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()},S.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()},S.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 r=t._removeTombstones(),n=0;t.anchorItem.index<=t.items.length?(n=t._fixScrollPosition(),t._setupAnimations({},n),t.scroller.resetPosition(t.scroller.options.bounceTime)):(t.anchorItem.index-=r,n=t._fixScrollPosition(),t._setupAnimations({},n),t.scroller.stop(),t.scroller.resetPosition(),t.onScroll())}}))}},S.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()},S.prototype.attachContent=function(){var t=this._collectUnusedNodes(),e=this._createDOMNodes(t);this._cleanupUnusedNodes(t),this._cacheNodeSize();var r=this._fixScrollPosition();this._setupAnimations(e,r)},S.prototype.resetMore=function(){this.hasMore=!0},S.prototype._removeTombstones=function(){for(var t=void 0,e=0,r=this.items.length,n=0;n<r;n++){var i=this.items[n].node,o=this.items[n].data;i&&!C(i)||o||(t||(t=n),i&&this.scrollerEl.removeChild(i))}return e=r-t,this.items.splice(t),this.lastAttachedItem=Math.min(this.lastAttachedItem,this.items.length),e},S.prototype._c