@xysfe/actui
Version:
A fantastic mobile ui lib implement by Vue
1 lines • 132 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.GoldCost=e():t.GoldCost=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},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="../lib",e(e.s=1704)}({0:function(t,e){var i=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=i)},1:function(t,e,i){"use strict";function n(t,e,i,n,o,r,s,a){t=t||{};var c=typeof t.default;"object"!==c&&"function"!==c||(t=t.default);var l="function"==typeof t?t.options:t;e&&(l.render=e,l.staticRenderFns=i,l._compiled=!0),n&&(l.functional=!0),r&&(l._scopeId=r);var h;if(s?(h=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=h):o&&(h=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),h)if(l.functional){l._injectStyles=h;var u=l.render;l.render=function(t,e){return h.call(e),u(t,e)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,h):[h]}return{exports:t,options:l}}e.a=n},10:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},100:function(t,e,i){i(56),t.exports=i(0).Object.getOwnPropertySymbols},101:function(t,e,i){"use strict";function n(t){var e={},i={},n={};for(var c in t)if(t.hasOwnProperty(c))if(-1!==a.indexOf(c))e[c]=t[c];else if(s.test(c)){var l=s.exec(c)[1];l=Object(r.a)(l),n[l]=t[c]}else i[c]=t[c];return e.on=Object(o.a)(n,e.on),e.props=Object(o.a)(i,e.props),e}e.a=n;var o=i(62),r=i(102),s=new RegExp(/^on(.+)/),a=["class","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"]},102:function(t,e,i){"use strict";function n(t,e){var i=c(t,e);return i.charAt(0).toLowerCase()+i.slice(1)}e.a=n;var o=i(28),r=i.n(o),s=i(4),a=function(t){for(var e=!1,i=!1,n=!1,o=0;o<t.length;o++){var r=t[o];e&&/[a-zA-Z]/.test(r)&&r.toUpperCase()===r?(t=t.slice(0,o)+"-"+t.slice(o),e=!1,n=i,i=!0,o++):i&&n&&/[a-zA-Z]/.test(r)&&r.toLowerCase()===r?(t=t.slice(0,o-1)+"-"+t.slice(o-1),n=i,i=!1,e=!0):(e=r.toLowerCase()===r&&r.toUpperCase()!==r,n=i,i=r.toUpperCase()===r&&r.toLowerCase()!==r)}return t},c=function(t,e){if("string"!=typeof t&&!Object(s.o)(t))throw new TypeError("Expected the input to be `string | string[]`");e=r()({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=a(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))}},103:function(t,e,i){"use strict";function n(t,e,i,n){var r=void 0,s=void 0,a=new t({render:function(t){var i=s&&s(t);return i&&!Object(o.o)(i)&&(i=[i]),t(e,r,i||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return a.updateRenderData=function(t,e){r=t,s=e},a.updateRenderData(i,n),a.$mount(),a.init(),a.$children[0]}e.a=n;var o=i(4)},1034:function(t,e,i){"use strict";var n=i(120),o=i(108),r=i(65),s=i(116),a=i(303),c=i(302),l=i(19),h=i(156);e.a={name:"ActPicker",mixins:[r.a,l.a,a.a,c.a,s.a],props:{pending:{type:Boolean,default:!1}},data:function(){return{finalData:this.data.slice()}},created:function(){this._values=[],this._indexes=this.selectedIndex},methods:{confirm:function(){if(this._canConfirm()){this.hide();var t=!1,e=[],i=this.finalData.length,n=this._values.length;n!==i&&(t=!0,n>i&&(this._values.length=this._indexes.length=i));for(var o=0;o<i;o++){var r=this._getSelectIndex(this.wheels[o]);this._indexes[o]=r;var s=null,a="";this.finalData[o].length&&(s=this.finalData[o][r][this.valueKey],a=this.finalData[o][r][this.textKey]),this._values[o]!==s&&(t=!0),this._values[o]=s,e[o]=a}this.$emit("select",this._values,this._indexes,e),t&&this.$emit("value-change",this._values,this._indexes,e)}},maskClick:function(){this.maskClosable&&this.cancel()},cancel:function(){this.hide(),this.$emit("cancel")},show:function(){var t=this;if(!this.isVisible)if(this.isVisible=!0,!this.wheels||this.dirty)this.$nextTick(function(){t.wheels=t.wheels||[];for(var e=t.$refs.wheelWrapper,i=0;i<t.finalData.length;i++)t._createWheel(e,i).enable(),t.wheels[i].wheelTo(t._indexes[i]);t.dirty&&t._destroyExtraWheels(),t.dirty=!1});else for(var e=0;e<this.finalData.length;e++)this.wheels[e].enable(),this.wheels[e].wheelTo(this._indexes[e])},hide:function(){if(this.isVisible){this.isVisible=!1;for(var t=0;t<this.finalData.length;t++)this.wheels[t].disable()}},setData:function(t,e){var i=this;this._indexes=e?[].concat(e):[],this.finalData=t.slice(),this.isVisible?this.$nextTick(function(){var t=i.$refs.wheelWrapper;i.finalData.forEach(function(e,n){i._createWheel(t,n),i.wheels[n].wheelTo(i._indexes[n])}),i._destroyExtraWheels()}):this.dirty=!0},refill:function(t){var e=this,i=[];return t.length?(t.forEach(function(t,n){i[n]=e.refillColumn(n,t)}),i):i},refillColumn:function(t,e){var i=this,n=this.$refs.wheelWrapper,o=n.children[t].querySelector(".act-picker-wheel-scroll"),r=!!this.wheels&&this.wheels[t],s=0;if(o&&r){var a=this.finalData[t];this.$set(this.finalData,t,e);var c=r.getSelectedIndex();if(a.length)for(var l=a[c][this.valueKey],h=0;h<e.length;h++)if(e[h][this.valueKey]===l){s=h;break}this._indexes[t]=s,this.$nextTick(function(){r=i._createWheel(n,t),r.wheelTo(s)})}return s},scrollTo:function(t,e){var i=this.wheels[t];this._indexes[t]=e,i.wheelTo(e)},refresh:function(){var t=this;this.$nextTick(function(){t.wheels.forEach(function(t){t.refresh()})})},_createWheel:function(t,e){var i=this;if(this.wheels[e])this.wheels[e].refresh();else{var o=this.wheels[e]=new n.default(t.children[e],{wheel:{selectedIndex:this._indexes[e]||0,wheelWrapperClass:"act-picker-wheel-scroll",wheelItemClass:"act-picker-wheel-item"},swipeTime:this.swipeTime,observeDOM:!1,useTransition:h.a});o.on("scrollStart",function(){o.inScroll=!0}),o.on("scrollEnd",function(){i.$emit("change",e,i._getSelectIndex(o)),o.inScroll=!1})}return this.wheels[e]},_destroyExtraWheels:function(){var t=this.finalData.length;if(this.wheels.length>t){this.wheels.splice(t).forEach(function(t){t.destroy()})}},_canConfirm:function(){return!this.pending&&this.wheels.every(function(t){return h.a?!t.isInTransition:!(t.inScroll||t.isInTransition)})},_getFlexOrder:function(t){return t[0]?t[0][this.orderKey]:0},_getSelectIndex:function(t){var e=t.y;return h.a?t.getSelectedIndex():e>t.minScrollY?0:e<t.maxScrollY?t.items.length-1:Math.round(Math.abs(e/t.itemHeight))}},beforeDestroy:function(){this.wheels&&this.wheels.forEach(function(t){t.destroy()}),this.wheels=null},components:{ActPopup:o.a}}},104:function(t,e,i){"use strict";var n=i(19),o=i(65);e.a={name:"ActPopup",mixins:[n.a,o.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)}}}},105:function(t,e,i){"use strict";e.__esModule=!0;var n=i(28),o=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}},106:function(t,e,i){var n=i(26),o=i(3)("toStringTag"),r="Arguments"==n(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),o))?i:r?n(e):"Object"==(a=n(e))&&"function"==typeof e.callee?"Arguments":a}},108:function(t,e,i){"use strict";function n(t){a||i(122)}var o=i(104),r=i(123),s=i(1),a=!1,c=n,l=Object(s.a)(o.a,r.a,r.b,!1,c,null,null);l.options.__file="src\\components\\common\\popup.vue",e.a=l.exports},11:function(t,e,i){var n=i(46),o=i(29);t.exports=function(t){return n(o(t))}},110:function(t,e,i){var n=i(9),o=i(39),r=i(3)("species");t.exports=function(t,e){var i,s=n(t).constructor;return void 0===s||void 0==(i=n(s)[r])?e:o(i)}},111:function(t,e,i){var n,o,r,s=i(38),a=i(146),c=i(60),l=i(40),h=i(2),u=h.process,p=h.setImmediate,f=h.clearImmediate,d=h.MessageChannel,v=h.Dispatch,m=0,g={},y=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){y.call(t.data)};p&&f||(p=function(t){for(var e=[],i=1;arguments.length>i;)e.push(arguments[i++]);return g[++m]=function(){a("function"==typeof t?t:Function(t),e)},n(m),m},f=function(t){delete g[t]},"process"==i(26)(u)?n=function(t){u.nextTick(s(y,t,1))}:v&&v.now?n=function(t){v.now(s(y,t,1))}:d?(o=new d,r=o.port2,o.port1.onmessage=b,n=s(r.postMessage,r,1)):h.addEventListener&&"function"==typeof postMessage&&!h.importScripts?(n=function(t){h.postMessage(t+"","*")},h.addEventListener("message",b,!1)):n="onreadystatechange"in l("script")?function(t){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(s(y,t,1),0)}),t.exports={set:p,clear:f}},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,i){var n=i(9),o=i(10),r=i(68);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var i=r.f(t);return(0,i.resolve)(e),i.promise}},115:function(t,e,i){var n=i(106),o=i(3)("iterator"),r=i(18);t.exports=i(0).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||r[n(t)]}},116:function(t,e,i){"use strict";function n(t){t.preventDefault()}var o={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=o},1194:function(t,e,i){"use strict";var n=i(1199),o=i(65),r=i(303),s=i(302),a=i(19);e.a={name:"ActCascadePicker",mixins:[a.a,o.a,r.a,s.a],props:{async:{type:Boolean,default:!1}},data:function(){return{cascadeData:this.data.slice(),pickerSelectedIndex:this.selectedIndex.slice(),pickerData:[],pending:!1}},created:function(){this._updatePickerData()},methods:{setData:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.pending=!1,this.cascadeData=t.slice(),this.pickerSelectedIndex=e.slice(),this._updatePickerData()},_pickerSelect:function(t,e,i){this.$emit("select",t,e,i)},_pickerCancel:function(){this.$emit("cancel")},_pickerChange:function(t,e){e!==this.pickerSelectedIndex[t]&&(this.pickerSelectedIndex.splice(t,1,e),this.async?this.pending=t!==this.pickerData.length-1:this._updatePickerData(t+1)),this.$emit("change",t,e)},_updatePickerData:function(){for(var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=this.cascadeData,n=0;i;)n>=e&&function(){var o=[];i.forEach(function(e){o.push({value:e[t.valueKey],text:e[t.textKey],order:e[t.orderKey]})}),t.pickerData[n]=o,t.pickerSelectedIndex[n]=0===e?t.pickerSelectedIndex[n]<i.length?t.pickerSelectedIndex[n]||0:0:t.$refs.picker.refillColumn(n,o)}(),i=i.length&&i[this.pickerSelectedIndex[n]]?i[this.pickerSelectedIndex[n]][this.childrenKey]:null,n++;n<this.pickerData.length&&this.pickerData.splice(n,this.pickerData.length-n),this.pickerData=this.pickerData.slice()}},components:{ActPicker:n.default}}},1199:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(14),o=i(1200);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createPicker=Object(n.a)(o.a,t)},e.default=o.a},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},120:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(157);e.default=n.a},1200:function(t,e,i){"use strict";function n(t){a||i(1201)}var o=i(1034),r=i(1202),s=i(1),a=!1,c=n,l=Object(s.a)(o.a,r.a,r.b,!1,c,"data-v-65cf9f1c",null);l.options.__file="src\\components\\Picker\\src\\index.vue",e.a=l.exports},1201:function(t,e){},1202:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("transition",{attrs:{name:"act-picker-fade"}},[i("act-popup",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],attrs:{type:"picker",mask:!0,center:!1,topBorderRadius:!0,zIndex:t.zIndex},on:{touchmove:function(t){t.preventDefault()},"mask-click":t.maskClick}},[i("transition",{attrs:{name:"act-picker-move"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-picker-panel",on:{click:function(t){t.stopPropagation()}}},[i("div",{staticClass:"act-picker-choose"},[i("span",{staticClass:"act-picker-cancel",style:{color:t.cancelColor},on:{click:t.cancel}},[t._v(t._s(t._cancelTxt))]),t._v(" "),i("span",{staticClass:"act-picker-confirm",style:{color:t.confirmColor},on:{click:t.confirm}},[t._v(t._s(t._confirmTxt))]),t._v(" "),i("div",{staticClass:"act-picker-title-group"},[i("h1",{staticClass:"act-picker-title",domProps:{innerHTML:t._s(t.title)}}),t._v(" "),t.subtitle?i("h2",{staticClass:"act-picker-subtitle",domProps:{innerHTML:t._s(t.subtitle)}}):t._e()])]),t._v(" "),i("div",{staticClass:"act-picker-content"},[i("i",{staticClass:"border-bottom-1px"}),t._v(" "),i("i",{staticClass:"border-top-1px"}),t._v(" "),i("div",{ref:"wheelWrapper",staticClass:"act-picker-wheel-wrapper"},t._l(t.finalData,function(e,n){return i("div",{key:n,style:{order:t._getFlexOrder(e)}},[i("ul",{staticClass:"act-picker-wheel-scroll"},t._l(e,function(e,n){return i("li",{key:n,staticClass:"act-picker-wheel-item",domProps:{innerHTML:t._s(e[t.textKey])}})}),0)])}),0)]),t._v(" "),i("div",{staticClass:"act-picker-footer"})])])],1)],1)},o=[];n._withStripped=!0},1212:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(14),o=i(1223);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createCascadePicker=Object(n.a)(o.a,t)},e.default=o.a},122:function(t,e){},1223:function(t,e,i){"use strict";var n=i(1194),o=i(1224),r=i(1),s=Object(r.a)(n.a,o.a,o.b,!1,null,null,null);s.options.__file="src\\components\\CascadePicker\\src\\index.vue",e.a=s.exports},1224:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)("act-picker",{ref:"picker",attrs:{data:t.pickerData,selectedIndex:t.pickerSelectedIndex,pending:t.pending,title:t.title,subtitle:t.subtitle,zIndex:t.zIndex,cancelTxt:t._cancelTxt,confirmTxt:t._confirmTxt,swipeTime:t.swipeTime,maskClosable:t.maskClosable,confirmColor:t.confirmColor,cancelColor:t.cancelColor},on:{select:t._pickerSelect,cancel:t._pickerCancel,change:t._pickerChange},model:{value:t.isVisible,callback:function(e){t.isVisible=e},expression:"isVisible"}})},o=[];n._withStripped=!0},123:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("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}},[i("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(" "),i("div",{staticClass:"act-popup-container",class:{"act-popup-center":t.center}},[t.$slots.default?i("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius}},[t._t("default")],2):i("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius},domProps:{innerHTML:t._s(t.content)}})])])},o=[];n._withStripped=!0},125:function(t,e,i){"use strict";function n(t){a||i(203)}var o=i(154),r=i(204),s=i(1),a=!1,c=n,l=Object(s.a)(o.a,r.a,r.b,!1,c,"data-v-3349a91e",null);l.options.__file="src\\components\\common\\scroll.vue",e.a=l.exports},1281:function(t,e,i){"use strict";var n=i(125);e.a={name:"ActCostTable",data:function(){return{moreToggle:!1}},components:{ActScroll:n.a},props:{tableData:{type:Object,default:function(){return null}},fakerTableData:{type:Object,default:function(){return null}},togglable:{type:Boolean,default:!0},scrollable:{type:Boolean,default:!1},brandColor:{type:String,default:""}},computed:{renderData:function(){return this.togglable?this.moreToggle?this.tableData:this.fakerTableData:this.tableData},showToggle:function(){return!!this.togglable&&(this.renderData&&this.renderData.rows&&this.renderData.rows.length&&this.fakerTableData.rows.length<this.tableData.rows.length)}},methods:{toggleMore:function(){this.moreToggle=!this.moreToggle},scrollSuc:function(t){this.scroll=t},refreshScroll:function(){var t=this;this.$nextTick(function(){t.scroll&&t.scroll.refresh()})}},watch:{tableData:function(t){t&&this.refreshScroll()}}}},13:function(t,e,i){var n=i(2),o=i(0),r=i(38),s=i(8),a=i(6),c=function(t,e,i){var l,h,u,p=t&c.F,f=t&c.G,d=t&c.S,v=t&c.P,m=t&c.B,g=t&c.W,y=f?o:o[e]||(o[e]={}),b=y.prototype,_=f?n:d?n[e]:(n[e]||{}).prototype;f&&(i=e);for(l in i)(h=!p&&_&&void 0!==_[l])&&a(y,l)||(u=h?_[l]:i[l],y[l]=f&&"function"!=typeof _[l]?i[l]:m&&h?r(u,n):g&&_[l]==u?function(t){var e=function(e,i,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,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(u):v&&"function"==typeof u?r(Function.call,u):u,v&&((y.virtual||(y.virtual={}))[l]=u,t&c.R&&b&&!b[l]&&s(b,l,u)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},134:function(t,e,i){!function(i,n){t.exports=e=n()}(0,function(){var t=t||function(t,e){var i=Object.create||function(){function t(){}return function(e){var i;return t.prototype=e,i=new t,t.prototype=null,i}}(),n={},o=n.lib={},r=o.Base=function(){return{extend:function(t){var e=i(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),s=o.WordArray=r.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=void 0!=e?e:4*t.length},toString:function(t){return(t||c).stringify(this)},concat:function(t){var e=this.words,i=t.words,n=this.sigBytes,o=t.sigBytes;if(this.clamp(),n%4)for(var r=0;r<o;r++){var s=i[r>>>2]>>>24-r%4*8&255;e[n+r>>>2]|=s<<24-(n+r)%4*8}else for(var r=0;r<o;r+=4)e[n+r>>>2]=i[r>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,i=this.sigBytes;e[i>>>2]&=4294967295<<32-i%4*8,e.length=t.ceil(i/4)},clone:function(){var t=r.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var i,n=[],o=0;o<e;o+=4){var r=function(e){var e=e,i=987654321,n=4294967295;return function(){i=36969*(65535&i)+(i>>16)&n,e=18e3*(65535&e)+(e>>16)&n;var o=(i<<16)+e&n;return o/=4294967296,(o+=.5)*(t.random()>.5?1:-1)}}(4294967296*(i||t.random()));i=987654071*r(),n.push(4294967296*r()|0)}return new s.init(n,e)}}),a=n.enc={},c=a.Hex={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],o=0;o<i;o++){var r=e[o>>>2]>>>24-o%4*8&255;n.push((r>>>4).toString(16)),n.push((15&r).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n<e;n+=2)i[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new s.init(i,e/2)}},l=a.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],o=0;o<i;o++){var r=e[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(r))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n<e;n++)i[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new s.init(i,e)}},h=a.Utf8={stringify:function(t){try{return decodeURIComponent(escape(l.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return l.parse(unescape(encodeURIComponent(t)))}},u=o.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=h.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var i=this._data,n=i.words,o=i.sigBytes,r=this.blockSize,a=4*r,c=o/a;c=e?t.ceil(c):t.max((0|c)-this._minBufferSize,0);var l=c*r,h=t.min(4*l,o);if(l){for(var u=0;u<l;u+=r)this._doProcessBlock(n,u);var p=n.splice(0,l);i.sigBytes-=h}return new s.init(p,h)},clone:function(){var t=r.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),p=(o.Hasher=u.extend({cfg:r.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){u.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,i){return new t.init(i).finalize(e)}},_createHmacHelper:function(t){return function(e,i){return new p.HMAC.init(t,i).finalize(e)}}}),n.algo={});return n}(Math);return t})},1343:function(t,e,i){"use strict";function n(t){a||i(1344)}var o=i(1281),r=i(1345),s=i(1),a=!1,c=n,l=Object(s.a)(o.a,r.a,r.b,!1,c,"data-v-530770d2",null);l.options.__file="src\\components\\GoldCost\\src\\table.vue",e.a=l.exports},1344:function(t,e){},1345:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"act-cost-table"},[t.renderData&&t.renderData.rows&&t.renderData.rows.length>0?[t.scrollable?i("act-scroll",{ref:t.scroll,staticClass:"act-cost-table-scrollable",attrs:{listenScrollInit:!0},on:{scrollSuc:t.scrollSuc}},[i("table",{staticClass:"act-cost-table-body"},[i("thead",[i("tr",t._l(t.renderData.head,function(e,n){return i("td",{key:"head-"+n,style:{"background-color":t.brandColor||"#8c7fee"}},[t._v("\n "+t._s(e)+"\n ")])}),0)]),t._v(" "),i("tbody",t._l(t.renderData.rows,function(e,n){return i("tr",{key:"tr-"+n},t._l(e,function(e,o){return i("td",{key:"td-"+n+"-"+o,class:{sw:e.type}},[t._v("\n "+t._s(e.value)+"\n ")])}),0)}),0)])]):i("table",{staticClass:"act-cost-table-body"},[i("thead",[i("tr",t._l(t.renderData.head,function(e,n){return i("td",{key:"head-"+n,style:{"background-color":t.brandColor||"#8c7fee"}},[t._v("\n "+t._s(e)+"\n ")])}),0)]),t._v(" "),i("tbody",t._l(t.renderData.rows,function(e,n){return i("tr",{key:"tr-"+n},t._l(e,function(e,o){return i("td",{key:"td-"+n+"-"+o,class:{sw:e.type}},[t._v("\n "+t._s(e.value)+"\n ")])}),0)}),0)])]:i("div",{staticClass:"act-cost-empty",class:{"act-cost-table-scrollable-empty":t.scrollable}},[t._v("\n 暂无相关数据\n ")]),t._v(" "),t.showToggle?i("a",{staticClass:"act-cost-toggle",class:{"act-cost-toggle-hide":t.moreToggle},style:{color:t.brandColor},attrs:{href:"javascript:;"},on:{click:function(e){return e.stopPropagation(),t.toggleMore.apply(null,arguments)}}},[t._v(t._s(t.moreToggle?"收起":"查看全部")),i("span",{style:{"border-color":t.brandColor}})]):t._e()],2)},o=[];n._withStripped=!0},135:function(t,e,i){var n=i(38),o=i(136),r=i(137),s=i(9),a=i(59),c=i(115),l={},h={},e=t.exports=function(t,e,i,u,p){var f,d,v,m,g=p?function(){return t}:c(t),y=n(i,u,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(r(g)){for(f=a(t.length);f>b;b++)if((m=e?y(s(d=t[b])[0],d[1]):y(t[b]))===l||m===h)return m}else for(v=g.call(t);!(d=v.next()).done;)if((m=o(v,y,d.value,e))===l||m===h)return m};e.BREAK=l,e.RETURN=h},136:function(t,e,i){var n=i(9);t.exports=function(t,e,i,o){try{return o?e(n(i)[0],i[1]):e(i)}catch(e){var r=t.return;throw void 0!==r&&n(r.call(t)),e}}},137:function(t,e,i){var n=i(18),o=i(3)("iterator"),r=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||r[o]===t)}},139:function(t,e,i){var n=i(3)("iterator"),o=!1;try{var r=[7][n]();r.return=function(){o=!0},Array.from(r,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var i=!1;try{var r=[7],s=r[n]();s.next=function(){return{done:i=!0}},r[n]=function(){return s},t(r)}catch(t){}return i}},14:function(t,e,i){"use strict";function n(t,e){return function(i,n){var s=this,a=Object(o.a)(i),c=Object(r.a)(e,t,a,n),l=c.$parent,h=c.remove,u=c.show,p=c.hide;return c.remove=function(){c.$removed=!0,h&&h.call(this),l.destroy()},c.show=function(){return u&&u.call.apply(u,[this].concat(Array.prototype.slice.call(arguments))),this},c.hide=function(){return p&&p.call.apply(p,[this].concat(Array.prototype.slice.call(arguments))),this},s&&s._isVue&&s.$once("hook:beforeDestroy",function(){c.$removed||c.remove()}),c}}e.a=n;var o=i(101),r=i(103)},140:function(t,e){t.exports=function(t,e,i,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(i+": incorrect invocation!");return t}},141:function(t,e,i){var n=i(8);t.exports=function(t,e,i){for(var o in e)i&&t[o]?t[o]=e[o]:n(t,o,e[o]);return t}},142:function(t,e,i){t.exports={default:i(189),__esModule:!0}},143:function(t,e,i){"use strict";var n=i(2),o=i(0),r=i(7),s=i(5),a=i(3)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:n[t];s&&e&&!e[a]&&r.f(e,a,{configurable:!0,get:function(){return this}})}},144:function(t,e,i){i(61),i(53),i(55),i(145),i(149),i(150),t.exports=i(0).Promise},145:function(t,e,i){"use strict";var n,o,r,s,a=i(16),c=i(2),l=i(38),h=i(106),u=i(13),p=i(10),f=i(39),d=i(140),v=i(135),m=i(110),g=i(111).set,y=i(147)(),b=i(68),_=i(112),x=i(148),w=i(113),S=c.TypeError,T=c.process,k=T&&T.versions,P=k&&k.v8||"",M=c.Promise,C="process"==h(T),D=function(){},E=o=b.f,O=!!function(){try{var t=M.resolve(1),e=(t.constructor={})[i(3)("species")]=function(t){t(D,D)};return(C||"function"==typeof PromiseRejectionEvent)&&t.then(D)instanceof e&&0!==P.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),I=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},Y=function(t,e){if(!t._n){t._n=!0;var i=t._c;y(function(){for(var n=t._v,o=1==t._s,r=0;i.length>r;)!function(e){var i,r,s,a=o?e.ok:e.fail,c=e.resolve,l=e.reject,h=e.domain;try{a?(o||(2==t._h&&j(t),t._h=1),!0===a?i=n:(h&&h.enter(),i=a(n),h&&(h.exit(),s=!0)),i===e.promise?l(S("Promise-chain cycle")):(r=I(i))?r.call(i,c,l):c(i)):l(n)}catch(t){h&&!s&&h.exit(),l(t)}}(i[r++]);t._c=[],t._n=!1,e&&!t._h&&X(t)})}},X=function(t){g.call(c,function(){var e,i,n,o=t._v,r=A(t);if(r&&(e=_(function(){C?T.emit("unhandledRejection",o,t):(i=c.onunhandledrejection)?i({promise:t,reason:o}):(n=c.console)&&n.error&&n.error("Unhandled promise rejection",o)}),t._h=C||A(t)?2:1),t._a=void 0,r&&e.e)throw e.v})},A=function(t){return 1!==t._h&&0===(t._a||t._c).length},j=function(t){g.call(c,function(){var e;C?T.emit("rejectionHandled",t):(e=c.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()),Y(e,!0))},z=function(t){var e,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===t)throw S("Promise can't be resolved itself");(e=I(t))?y(function(){var n={_w:i,_d:!1};try{e.call(t,l(z,n,1),l(B,n,1))}catch(t){B.call(n,t)}}):(i._v=t,i._s=1,Y(i,!1))}catch(t){B.call({_w:i,_d:!1},t)}}};O||(M=function(t){d(this,M,"Promise","_h"),f(t),n.call(this);try{t(l(z,this,1),l(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=i(141)(M.prototype,{then:function(t,e){var i=E(m(this,M));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=C?T.domain:void 0,this._c.push(i),this._a&&this._a.push(i),this._s&&Y(this,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),r=function(){var t=new n;this.promise=t,this.resolve=l(z,t,1),this.reject=l(B,t,1)},b.f=E=function(t){return t===M||t===s?new r(t):o(t)}),u(u.G+u.W+u.F*!O,{Promise:M}),i(27)(M,"Promise"),i(143)("Promise"),s=i(0).Promise,u(u.S+u.F*!O,"Promise",{reject:function(t){var e=E(this);return(0,e.reject)(t),e.promise}}),u(u.S+u.F*(a||!O),"Promise",{resolve:function(t){return w(a&&this===s?M:this,t)}}),u(u.S+u.F*!(O&&i(139)(function(t){M.all(t).catch(D)})),"Promise",{all:function(t){var e=this,i=E(e),n=i.resolve,o=i.reject,r=_(function(){var i=[],r=0,s=1;v(t,!1,function(t){var a=r++,c=!1;i.push(void 0),s++,e.resolve(t).then(function(t){c||(c=!0,i[a]=t,--s||n(i))},o)}),--s||n(i)});return r.e&&o(r.v),i.promise},race:function(t){var e=this,i=E(e),n=i.reject,o=_(function(){v(t,!1,function(t){e.resolve(t).then(i.resolve,n)})});return o.e&&n(o.v),i.promise}})},146:function(t,e){t.exports=function(t,e,i){var n=void 0===i;switch(e.length){case 0:return n?t():t.call(i);case 1:return n?t(e[0]):t.call(i,e[0]);case 2:return n?t(e[0],e[1]):t.call(i,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(i,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(i,e[0],e[1],e[2],e[3])}return t.apply(i,e)}},1469:function(t,e,i){"use strict";var n=i(142),o=i.n(n),r=i(58),s=i.n(r),a=i(105),c=i.n(a),l=i(51),h=i.n(l),u=i(41),p=i(1343),f=i(1212),d=i(532),v=i(4);e.a={name:"ActGoldCost",mixins:[u.a],data:function(){return{pickerType:0,costCount:0,title:"",subTitle:"",tableData:null,fakerTableData:null,costInsured:0,costTableId:0}},props:{costTables:{type:Array,default:function(){return[]}},applicant:{type:Object,default:function(){return{}}},insureds:{type:Array,default:function(){return[]}},paramExt:{type:Object,default:function(){return{}}},brandColor:{type:String,default:""},btnColor:{type:String,default:""}},components:{ActCascadePicker:f.default,ActCostTable:p.a},methods:{calculate:function(){var t=this;this.$nextTick(function(){t.genTableList()})},showPicker:function(){1===this.pickerType||2===this.pickerType?this.$refs.singlePicker.show():this.$refs.multiPicker.show()},select:function(t,e,i){if(1===t.length){if(1===this.pickerType&&t[0]===this.costInsured)return;if(2===this.pickerType&&t[0]===this.costTableId)return;1===this.pickerType&&(this.costInsured=t[0]),2===this.pickerType&&(this.costTableId=t[0])}else if(2===t.length){if(t[0]===this.costTableId&&t[1]===this.costInsured)return;this.costTableId=t[0],this.costInsured=t[1]}this.getCost()},genTableList:function(){if(this.costTables&&this.costTables.length){var t=[],e=0,i=[];this.setCostTableIdType();var n=this.isAllCalcType();if(0===this.costTableId&&(this.costTableId=this.costTables[0].id),1===this.costTables.length){if(this.pickerType=1,this.costTableId!==this.costTables[0].id&&(this.costTableId=this.costTables[0].id),1===Number(this.costTables[0].calc_type))t.push({value:0,text:"全部被保险人"}),e++;else for(var o=0,r=this.insureds.length;o<r;o++)t.push({value:o,text:"被保险人"+(o+1)}),e++;this.costInsured>0&&this.costInsured>=this.insureds.length?(this.costInsured=0,i=[0]):i=[this.costInsured],this.$refs.singlePicker.setData(t,i)}else if(1===this.insureds.length||n){this.pickerType=2,this.costInsured>0&&(this.costInsured=0);for(var s=0,a=this.costTables.length;s<a;s++)t.push({value:this.costTables[s].id,text:this.costTables[s].name}),e++;i=[0];for(var c=0,l=t.length;c<l;c++)if(t[c].value===this.costTableId){i=[c];break}this.$refs.singlePicker.setData(t,i)}else if(this.costTables.length>1&&this.insureds.length>1){this.pickerType=3;var h=void 0;i[0]=0;for(var u=0,p=this.costTables.length;u<p;u++){if(this.costTables[u].id===this.costTableId&&(i[0]=u),h={value:this.costTables[u].id,text:this.costTables[u].name,children:[]},"1"===this.costTables[u].calc_type)h.children.push({value:0,text:"全部被保险人"}),e++;else for(var f=0,d=this.insureds.length;f<d;f++)h.children.push({value:f,text:"被保险人"+(f+1)}),e++;t.push(h)}this.costInsured>0&&this.costInsured>=this.insureds.length?(this.updateState({key:"costInsured",value:0}),i[1]=0):i[1]=this.costInsured,this.$refs.multiPicker.setData(t,i)}this.costCount=e,this.getCost()}},getCost:function(){var t=this;new h.a(function(e,i){var n=void 0,o=c()({},t.paramExt),r={genes:o};if(t.applicant&&(o.applicant=t.applicant),t.insureds.length<=t.costInsured)return i({errmsg:"表格不存在"});if(1===t.costTablesCalcType[t.costTableId])n="/buy/getCostTableComplex",o.tableId=t.costTableId,o.insureds=t.insureds;else{n="/buy/getCostTable",r.tableId=t.costTableId;var a=t.insureds[t.costInsured];o.plan=a.plan,o.insured=a.insured}var l=Object(d.d)(s()(r));t.costTableCache=t.costTableCache||{},t.costTableCache[l]?e(t.costTableCache[l]):t.$fetch(n,r).then(function(i){t.costTableCache[l]=i,e(i)})}).then(function(e){0===e.ret&&e.data?t.genTableData(e.data):t.genTableData(null)}).catch(function(e){t.genTableData(null)})},setCostTableIdType:function(){for(var t={},e=0,i=this.costTables.length;e<i;e++){t[this.costTables[e].id]=~~this.costTables[e].calc_type}this.costTablesCalcType=t},isAllCalcType:function(){for(var t=0,e=this.costTables.length;t<e;t++){if(1!==~~this.costTables[t].calc_type)return!1}return!0},genTableData:function(t){if(!t)return this.title="",this.subTitle="",this.tableData=null,void(this.fakerTableData=null);for(var e=[],i=[],n=void 0,r=void 0,s=void 0,a=void 0,c=this.costTables,l=Array.isArray(c),h=0,c=l?c:o()(c);;){var u;if(l){if(h>=c.length)break;u=c[h++]}else{if(h=c.next(),h.done)break;u=h.value}var p=u;if(p.id===this.costTableId){a=p.type;break}}for(var f=0,d=t.rows.length;f<d;f++){r=t.rows[f],s=(1===a||2===a)&&+r[3]>+r[2],n=[];for(var m=0,g=t.cols.length;m<g;m++)n.push({value:m===t.cols.length-1?parseFloat(Math.round(100*r[m])/100).toFixed(2):r[m]||0,type:!s||1!==a&&2!==a||3!==m?0:1});e.push(n),f<5||(f+1)%10==0||f===d-1?i.push(n):(1===a||2===a)&&s&&+t.rows[f-1][3]<=+t.rows[f-1][2]?i.push(n):(1===a||2===a)&&s&&+t.rows[f+1][3]<=+t.rows[f+1][2]&&i.push(n)}this.title=t.name,this.subTitle=t.planText;var y=function(e,i){if(!Object(v.o)(e))return[];e=Object(v.c)(e);var n=t.display||[],o={head:function(){return e.filter(function(t,e){return"1"===String(n[e])})||[]},rows:function(){return e.map(function(t){return t&&t.filter(function(t,e){return"1"===String(n[e])})||[]})||[]}};return o[i]?o[i]():[]};this.tableData={head:y(t.cols,"head"),rows:y(e,"rows")},this.fakerTableData={head:y(t.cols,"head"),rows:y(i,"rows")}}}}},147:function(t,e,i){var n=i(2),o=i(111).set,r=n.MutationObserver||n.WebKitMutationObserver,s=n.process,a=n.Promise,c="process"==i(26)(s);t.exports=function(){var t,e,i,l=function(){var n,o;for(c&&(n=s.domain)&&n.exit();t;){o=t.fn,t=t.next;try{o()}catch(n){throw t?i():e=void 0,n}}e=void 0,n&&n.enter()};if(c)i=function(){s.nextTick(l)};else if(!r||n.navigator&&n.navigator.standalone)if(a&&a.resolve){var h=a.resolve(void 0);i=function(){h.then(l)}}else i=function(){o.call(n,l)};else{var u=!0,p=document.createTextNode("");new r(l).observe(p,{characterData:!0}),i=function(){p.data=u=!u}}return function(n){var o={fn:n,next:void 0};e&&(e.next=o),t||(t=o,i()),e=o}}},148:function(t,e,i){var n=i(2),o=n.navigator;t.exports=o&&o.userAgent||""},149:function(t,e,i){"use strict";var n=i(13),o=i(0),r=i(2),s=i(110),a=i(113);n(n.P+n.R,"Promise",{finally:function(t){var e=s(this,o.Promise||r.Promise),i="function"==typeof t;return this.then(i?function(i){return a(e,t()).then(function(){return i})}:t,i?function(i){return a(e,t()).then(function(){throw i})}:t)}})},15:function(t,e,i){var n=i(50),o=i(33);t.exports=Object.keys||function(t){return n(t,o)}},150:function(t,e,i){"use strict";var n=i(13),o=i(68),r=i(112);n(n.S,"Promise",{try:function(t){var e=o.f(this),i=r(t);return(i.e?e.reject:e.resolve)(i.v),e.promise}})},154:function(t,e,i){"use strict";var n=i(120),o=i(156);e.a={name:"ActScroll",props:{probeType:{type:Number,default:2},click:{type:Boolean,default:!0},listenScrollInit:{type:Boolean,default:!1},listenScroll:{type:Boolean,default:!1},listenBeforeScroll:{type:Boolean,default:!1},listenScrollEnd:{type:Boolean,default:!1},listenZoomEnd:{type:Boolean,default:!1},listenPullingUp:{type:Boolean,default:!1},direction:{type:String,default:"vertical"},scrollbar:{type:null,default:!1},startY:{type:Number,default:0},refreshDelay:{type:Number,default:20},freeScroll:{type:Boolean,default:!1},mouseWheel:{type:Boolean,default:!1},bounce:{type:[Boolean,Object],default:!0},zoom:{type:Boolean,default:!1},useTransition:{type:Boolean,default:!0}},data:function(){return{beforePullDown:!0,isRebounding:!1,pullUpDirty:!0,pullDownStyle:"",bubbleY:0,lastTouchStart:null,fingers:0,tapTarget:null,isDouble:!1,startXd:0,startYd:0,endXd:0,endYd:0}},mounted:function(){var t=this;this.$nextTick(function(){t.initScroll()})},destroyed:function(){this.scroll&&this.scroll.destroy(),this.$emit("destroyed",this.scroll)},methods:{initScroll:function(){var t=this;if(this.$refs.wrapper){var e={probeType:this.probeType,click:this.click,scrollY:this.freeScroll||"vertical"===this.direction,scrollX:this.freeScroll||"horizontal"===this.direction,scrollbar:this.scrollbar,startY:this.startY,freeScroll:this.freeScroll,mouseWheel:this.mouseWheel,bounce:this.bounce,zoom:this.zoom,bounceTime:300,useTransition:o.a&&this.useTransition,pullUpLoad:{threshold:50}};this.scroll=new n.default(this.$refs.wrapper,e),this.listenScroll&&this.scroll.on("scroll",function(e){t.$emit("scroll",e)}),this.listenScrollEnd&&this.scroll.on("scrollEnd",function(e){t.$emit("scroll-end",e)}),this.listenBeforeScroll&&(this.scroll.on("beforeScrollStart",function(){t.$emit("beforeScrollStart")}),this.scroll.on("scrollStart",function(){t.$emit("scroll-start")})),this.listenZoomEnd&&this.scroll.on("zoomEnd",function(){t.$emit("zoomEnd",t.scroll)}),this.zoom&&(this.isDouble=!0),this.listenScrollInit&&this.$emit("scrollSuc",this.scroll),this.listenPullingUp&&this.scroll.on("pullingUp",function(){t.$emit("pullingUp")})}},disable:function(){this.scroll&&this.scroll.disable()},enable:function(){this.scroll&&this.scroll.enable()},refresh:function(){this.scroll&&this.scroll.refresh()},scrollTo:function(){this.scroll&&this.scroll.scrollTo.apply(this.scroll,arguments)},scrollToElement:function(){this.scroll&&this.scroll.scrollToElement.apply(this.scroll,arguments)},clickItem:function(t,e){this.$emit("click",e)},destroy:function(){this.scroll.destroy()},forceUpdate:function(t){this.refresh()}}}},156:function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=i(4),o=function(){var t=!0;if(n.H.isIOS){var e=Object(n.k)(navigator.userAgent.toLowerCase());if(!e)return t;Number(""+e.major+e.minor)>=133&&(t=!1)}return t}()},157:function(t,e,i){"use strict";function n(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function o(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];for(var o=0;o<i.length;o++){var r=i[o];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!==j&&("standard"===j?"transitionEnd"===t?"transitionend":t:j+t.charAt(0).toUpperCase()+t.substr(1))}function c(t,e,i,n){t.addEventListener(e,i,{passive:!1,capture:!!n})}function l(t,e,i,n){t.removeEventListener(e,i,{passive:!1,capture:!!n})}function h(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 v(t){function e(){s=document.createEvent("Event"),s.initEvent(i,a,c),o(s,r)}var i=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 r={};n&&(r.screenX=n.screenX||0,r.screenY=n.screenY||0,r.clientX=n.clientX||0,r.clientY=n.clientY||0);var s=void 0,a=!0,c=!0;if("undefined"!=typeof MouseEvent)try{s=new MouseEvent(i,o({bubbles:a,cancelable:c},r))}catch(t){e()}else e();s.forwardedTouchEvent=!0,s._constructed=!0,t.target.dispatchEvent(s)}function m(t){v(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 b(t,e){t.removeChild(e)}function _(t,e,i,n,o,r,s){var a=t-e,c=Math.abs(a)/i,l=s.deceleration,h=s.itemHeight,u=s.swipeBounceTime,p=s.wheel,f=s.swipeTime,d=f,v=p?4:15,m=t+c/l*(a<0?-1:1);return p&&h&&(m=Math.round(m/h)*h),m<n?(m=r?Math.max(n-r/4,n-r/v*c):n,d=u):m>o&&(m=r?Math.min(o+r/4,o+r/v*c):o,d=u),{destination:Math.round(m),duration:d}}function x(){}function w(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 k(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 P(t){if(t&&t.classList)return t.classList.contains("tombstone")}function M(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 C(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 D=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){o=!0,r=t}finally{try{!n&&a.return&&a.return()}finally{if(o)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")}}(),E=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)},O="undefined"!=typeof window,I=O&&navigator.userAgent.toLowerCase(),Y=I&&/wechatdevtools/.test(I),X=I&&I.indexOf("android")>0,A=O&&document.createElement("div").style,j=function(){if(!O)return!1;var t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(var e in t)if(void 0!==A[t[e]])return e;return!1}(),B=a("transform"),z=O&&a("perspective")in A,H=O&&("ontouchstart"in window||Y),W=!1!==B,L=O&&a("transition")in A,F={transform:B,transitionTimingFunction:a("transitionTimingFunction"),transitionDuration:a("transitionDuration"),transitionDelay:a("transitionDelay"),transformOrigin:a("transformOrigin"),transitionEnd:a("transitionEnd")},R=1,$={touchstart:R,touchmove:R,touchend:R,mousedown:2,mousemove:2,mouseup:2},N={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},U={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 O?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||100/60)/2)}:x}(),K=function(){return O?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:x}(),q=1,G=-1,Z=1,J=-1,Q=1,tt=3;k.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)}},k.prototype.refresh=function(){this._shouldShow()&&(this.transitionTime(),this._calculate(),this.updatePosition())},k.prototype.fade=function(t,e){var i=this;if(!e||this.visible){var n=t?250:500;t=t?"1":"0",this.wrapperStyle[F.transitionDuration]=n+"ms",clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout(function(){i.wrapperStyle.opacity=t,i.visible=+t},0)}},k.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[F.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 o=Math.max(this.indicatorWidth+3*n,8);this.indicatorStyle.width=o+"px",n=0}else if(n>this.maxPosX){this.transitionTime(500);var r=Math.max(this.indicatorWidth-3*(n-this.maxPosX),8);this.indicatorStyle.width=r+"px",n=this.maxPosX+this.indicatorWidth-r}else this.indicatorStyle.width=this.indicatorWidth+"px";this.x=n,this.scroller.options.useTransform?this.indicatorStyle[F.transform]="translateX("+n+"px)"+this.scroller.translateZ:this.indicatorStyle.left=n+"px"}},k.prototype.transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorStyle[F.transitionDuration]=t+"ms"},k.prototype.transitionTimingFunction=function(t){this.indicatorStyle[F.transitionTimingFunction]=t},k.prototype.destroy=function(){this._removeDOMEvents(),this.wrapper.parentNode.removeChild(this.wrapper)},k.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(c),this.scroller.trigger("beforeScrollStart")},k.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 n=e.pageY-this.lastPointY;this.lastPointY=e.pageY;var o=this.x+i,r=this.y+n;this._pos(o,r)},k.prototype._end=function(t){if(this.initiated){this.initiated=!1,t.preventDefault(),t.stopPropagation(),this._handleMoveEvents(l);var e=this.scroller.options.snap;if(e){var i=e.speed,n=e.easing,o=void 0===n?U.bounce:n,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.