pages-startPage-startPage.c23ed144.js 631 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-startPage-startPage","other-page-finance-settle_record~pages-statcenter-home","pages-statcenter-home~setting-businessDistStat-index"],{"027c":function(t,e,a){"use strict";var n=a("d0c5"),i=a.n(n);i.a},"033a":function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.AddMerchandise=d,e.Editcategory=x,e.RenderQueue=u,e.changeGoodsSort=S,e.default=void 0,e.delCategory=w,e.deleteGoods=h,e.displayorder=_,e.editCategorySub=y,e.editGoodsDisplayorder=v,e.editGoodsHot=b,e.editGoodsStuta=p,e.editGoodsSub=f,e.editGoodsTotal=g,e.editGoodsTruncate=m,e.getDefaultDisplaySelection=P,e.goodsList=o,e.goodsListNoLoginApi=O,e.importCloudGoods=T,e.onChangeStatus=c,e.searchCloudGoods=k,e.searchGoodsImageByName=C,e.turnNotify=l,e.updateDefaultDisplaySelection=A,e.waitingList=s;var i=n(a("9b1b")),r=n(a("5b42"));function o(t){return r.default.get("api/manage.goods.goods/list",{params:t})}function s(t,e){return util.request((0,i.default)({method:"get",url:"manage/tangshi/assign/index",data:t},e))}function l(t,e){return util.request((0,i.default)({method:"post",url:"manage/tangshi/assign/status",data:t},e))}function c(t,e){return util.request((0,i.default)({method:"post",url:"manage/tangshi/assign/status",data:t},e))}function u(t,e){return util.request((0,i.default)({method:"post",url:"manage/tangshi/assign/queue_post",data:t},e))}function d(t){return r.default.get("api/manage.goods.goods/editDetail",{params:t})}function f(t){return r.default.post("api/manage.goods.goods/edit",t)}function h(t){return r.default.get("api/manage.goods.goods/delete",{params:t})}function p(t){return r.default.post("api/manage.goods.goods/status",t)}function v(t){return r.default.post("api/manage.goods.goods/displayorder",t)}function g(t){return r.default.post("api/manage.goods.goods/total",t)}function b(t){return r.default.post("api/manage.goods.goods/hot",t)}function m(t){return r.default.post("api/manage.goods.goods/truncate",t)}function x(t){return r.default.get("api/manage.goods.category/editDetail",{params:t})}function y(t){return r.default.post("api/manage.goods.category/edit",t)}function w(t){return r.default.get("api/manage.goods.category/delete",{params:t})}function _(t){return r.default.post("api/manage.goods.category/displayorders",t)}function S(t){return r.default.post("api/manage.goods.goods/changeGoodsSort",t)}function C(t){return r.default.post("api/manage.goods.goods/searchGoodsImageByName",t)}function k(t){return r.default.post("api/manage.goods.goods/searchCloudGoods",t)}function T(t){return r.default.post("api/manage.goods.goods/importCloudGoods",t)}function A(t){return r.default.post("api/manage.shop.config/updateDefaultDisplaySelection",t)}function P(t){return r.default.get("api/manage.shop.config/getDefaultDisplaySelection",{params:t})}function O(t){return r.default.get("api/manage.goods.goods/listNoLogin",{params:t})}var D={delCategory:w,editCategorySub:y,deleteGoods:h,editGoodsTruncate:m,editGoodsStuta:p,editGoodsSub:f,goodsList:o,waitingList:s,turnNotify:l,onChangeStatus:c,RenderQueue:u,AddMerchandise:d,Editcategory:x,displayorder:_,changeGoodsSort:S,searchGoodsImageByName:C,searchCloudGoods:k,importCloudGoods:T,updateDefaultDisplaySelection:A,getDefaultDisplaySelection:P,editGoodsDisplayorder:v,editGoodsTotal:g,editGoodsHot:b,goodsListNoLoginApi:O};e.default=D},"064c":function(t,e,a){"use strict";var n=a("808c"),i=a.n(n);i.a},"0692":function(t,e,a){"use strict";var n=a("c4e7"),i=a.n(n);i.a},"06ea":function(t,e,a){var n=a("90b5");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("2be66931",n,!0,{sourceMap:!1,shadowMode:!1})},"0832":function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("8f71"),a("bf0f"),a("e966");var i=n(a("2634")),r=n(a("2fdc")),o=n(a("39d8")),s=n(a("390e")),l={data:function(){var t;return t={title:"提示信息",button:[{text:"取消",backgroundColor:"#dadada",fontColor:"#FFFFFF"},{text:"确定",backgroundColor:"tn-bg-indigo",fontColor:"#FFFFFF"}],popupShow:!1,sousuo:"",type:"select",zhangkai:!1,border:!0,filter:{items:{status:"1"}},tangshiList:[],showGoods:!1,msg:"",updateIndex:-1},(0,o.default)(t,"type",""),(0,o.default)(t,"isShowOptions",!1),(0,o.default)(t,"isShowCommission",!1),(0,o.default)(t,"isShowinfo",!1),t},methods:{diyOnShow:function(){this.getList()},diyOnPullDownRefresh:function(){this.getList()},getList:function(){var t=this;return(0,r.default)((0,i.default)().mark((function e(){var a,n,r;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t,n=t.util.getStorageSync("__sid"),e.next=4,s.default.tangshiList({sid:n,status:a.filter.items.status});case 4:r=e.sent,r&&(a.tangshiList=r.data.orders);case 6:case"end":return e.stop()}}),e)})))()},onUpdateOrderStatus:function(t,e){var a=this;return(0,r.default)((0,i.default)().mark((function n(){var r,o;return(0,i.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=a,a.popupShow=!1,"cancel"!==e){n.next=8;break}return n.next=5,s.default.tsOrderCancel({id:t});case 5:n.sent,n.next=17;break;case 8:if("pay_status"!==e){n.next=14;break}return n.next=11,s.default.tsOrderPay({sid:a._sid,id:t});case 11:n.sent,n.next=17;break;case 14:return n.next=16,s.default.tsOrderStatus({sid:a._sid,id:t,type:e});case 16:n.sent;case 17:return n.next=19,s.default.orderStatus({id:r.order.id,type:e});case 19:if(o=n.sent,!o){n.next=27;break}if("cancel"!=e){n.next=25;break}if(0!=o.code){n.next=25;break}return r.util.$toast(o.msg),n.abrupt("return");case 25:o.msg?r.util.$toast(o.msg):r.util.$toast("操作成功","",1e3),setTimeout((function(){uni.navigateBack()}),1e3);case 27:a.getList();case 28:case"end":return n.stop()}}),n)})))()},zhankai:function(t){this.showGoods;this.tangshiList[t].showGoods=!this.tangshiList[t].showGoods,this.tangshiList=Object.assign({},this.tangshiList)},clickUpdateStatus:function(t,e,a){this.updateIndex=t,this.type=e,this.msg=a,this.popupShow=!0},toggleOptions:function(t){var e=this.tangshiList[t];e.hasOwnProperty("isShowOptions")||this.$set(e,"isShowOptions",!1),e.isShowOptions=!e.isShowOptions},toggleCommission:function(t){var e=this.tangshiList[t];e.hasOwnProperty("isShowCommission")||this.$set(e,"isShowCommission",!1),e.isShowCommission=!e.isShowCommission},showInfo:function(t){var e=this.tangshiList[t];e.hasOwnProperty("isShowinfo")||this.$set(e,"isShowinfo",!1),e.isShowinfo=!e.isShowinfo},tn:function(t){uni.navigateTo({url:t})},onToggleStatus:function(t){t=parseInt(t),this.filter.items.status!=t&&(this.filter.items.status=t,this.getList())},diyOnReachBottom:function(t){this.loading||this.loadend||console.log("触底了")}}};e.default=l},"08d4":function(t,e,a){"use strict";a.r(e);var n=a("db0e"),i=a("fce8");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("0692");var o=a("828b"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"5ffa7a0a",null,!1,n["a"],void 0);e["default"]=s.exports},"08d9":function(t,e,a){"use strict";a.r(e);var n=a("63e0"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},"097f":function(t,e,a){"use strict";var n=a("bdbb").default;a("6a54"),a("7a76"),a("c9b5"),a("8a8d"),a("926e"),Object.defineProperty(e,"__esModule",{value:!0});var i=a("6373"),r=function(t){return t&&t.__esModule?t:{default:t}}(i),o=a("e24c");var s=function(t){function e(t,a){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t+=(0,o.mod11)(t),t+=(0,o.mod10)(t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==n(e)&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,a))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+n(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.default);e.default=s},"0993":function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,r=n(a("39d8")),o=n(a("05d8")),s=n(a("fe48")),l=n(a("26e1")),c=n(a("3acd")),u=n(a("1aa6")),d=n(a("c1c8")),f=(i={components:{order:s.default,business:l.default,setUp:c.default,statcenter:u.default,tangshi:d.default},data:function(){return{tabbarList:[{inactiveIcon:"order",activeIcon:"order-fill",out:!1,title:"订单"},{inactiveIcon:"empty-order",activeIcon:"empty-order",out:!1,title:"店内"},{inactiveIcon:"shop",activeIcon:"shop-fill",activeIconColor:"#fff",inactiveIconColor:"#fff",out:!0,title:"商家"},{inactiveIcon:"data",activeIcon:"data-fill",out:!1,title:"数据"},{inactiveIcon:"set",activeIcon:"set-fill",out:!1,title:"设置"}],currentIndex:0}},mounted:function(){},onShow:function(){var t=this;0==this.currentIndex&&this.$nextTick((function(){t.$refs.orderRef.diyOnShow()})),1==this.currentIndex&&this.$nextTick((function(){t.$refs.tangshiRef.diyOnShow()})),2==this.currentIndex&&this.$nextTick((function(){t.$refs.businessRef.diyOnShow()})),3==this.currentIndex&&this.$nextTick((function(){t.$refs.statRef.diyOnShow()})),4==this.currentIndex&&this.$nextTick((function(){t.$refs.setUpRef.diyOnShow()}))},onLoad:function(t){var e=this;0==this.currentIndex&&this.$nextTick((function(){e.$refs.orderRef.diyOnLoad(t)})),1==this.currentIndex&&this.$nextTick((function(){e.$refs.tangshiRef.diyOnShow()})),2==this.currentIndex&&this.$nextTick((function(){e.$refs.businessRef.diyOnShow()})),3==this.currentIndex&&this.$nextTick((function(){e.$refs.statRef.diyOnShow()})),4==this.currentIndex&&this.$nextTick((function(){e.$refs.setUpRef.diyOnShow()}))},onPullDownRefresh:function(){var t=this;0==this.currentIndex&&this.$nextTick((function(){t.$refs.orderRef.diyOnPullDownRefresh()})),1==this.currentIndex&&this.$nextTick((function(){t.$refs.tangshiRef.diyOnPullDownRefresh()})),2==this.currentIndex&&this.$nextTick((function(){t.$refs.businessRef.diyOnShow()})),3==this.currentIndex&&this.$nextTick((function(){t.$refs.statRef.diyOnShow()})),4==this.currentIndex&&this.$nextTick((function(){t.$refs.setUpRef.diyOnShow()})),uni.stopPullDownRefresh()},onReachBottom:function(){var t=this;0==this.currentIndex&&this.$nextTick((function(){t.$refs.orderRef.diyOnReachBottom()}))}},(0,r.default)(i,"mounted",(function(){var t=this;0==this.currentIndex&&this.$nextTick((function(){t.$refs.orderRef.diyMounted()})),1==this.currentIndex&&this.$nextTick((function(){t.$refs.tangshiRef.diyMounted()})),this.showUpdatePassword()})),(0,r.default)(i,"methods",{showUpdatePassword:function(){var t=o.default.getStorageSync("password"),e=o.default.getStorageSync("is_tip_password");"123456"!=t||e||(o.default.setStorageSync("is_tip_password",1),uni.showModal({title:"密码较弱,请尽快修改密码",content:"请尽快修改密码",success:function(t){t.confirm&&o.default.$toast("",o.default.getUrl({path:"/setting/functionList/accountPassword/password"}),1e3)}}))},updateIndex:function(t,e){this.currentIndex=t,this.changeTabbar(t)},changeTabbar:function(t){var e=this;this.currentIndex=t,0==this.currentIndex&&this.$nextTick((function(){e.$refs.orderRef.diyOnShow()})),1==this.currentIndex&&this.$nextTick((function(){e.$refs.tangshiRef.diyOnShow()})),3==this.currentIndex&&this.$nextTick((function(){e.$refs.statRef.diyOnShow()})),4==this.currentIndex&&this.$nextTick((function(){e.$refs.setUpRef.diyOnShow()}))}}),i);e.default=f},"0d41":function(t,e,a){"use strict";var n=a("bdbb").default;a("6a54"),a("7a76"),a("c9b5"),a("8a8d"),a("926e"),a("5c47"),a("af8f"),a("fd3c"),a("2c10"),Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,a,n){return a&&t(e.prototype,a),n&&t(e,n),e}}(),r=a("8c6c"),o=a("822a"),s=function(t){return t&&t.__esModule?t:{default:t}}(o);function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==n(e)&&"function"!==typeof e?t:e}var u=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+n(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"valid",value:function(){return-1!==this.data.search(/^([0-9]{2})+$/)}},{key:"encode",value:function(){var t=this,e=this.data.match(/.{2}/g).map((function(e){return t.encodePair(e)})).join("");return{data:r.START_BIN+e+r.END_BIN,text:this.text}}},{key:"encodePair",value:function(t){var e=r.BINARIES[t[1]];return r.BINARIES[t[0]].split("").map((function(t,a){return("1"===t?"111":"1")+("1"===e[a]?"000":"0")})).join("")}}]),e}(s.default);e.default=u},"0f6d":function(t,e,a){"use strict";var n=a("bdbb").default;a("6a54"),a("7a76"),a("c9b5"),a("8a8d"),a("926e"),a("fd3c"),a("5c47"),a("0506"),a("3efd"),a("a1c1"),a("bf0f"),a("ab80"),Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,a,n){return a&&t(e.prototype,a),n&&t(e,n),e}}(),r=a("822a"),o=function(t){return t&&t.__esModule?t:{default:t}}(r),s=a("b802");var l=function(t){function e(t,a){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==n(e)&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.substring(1),a));return i.bytes=t.split("").map((function(t){return t.charCodeAt(0)})),i}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+n(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var t=this.bytes,a=t.shift()-105,n=s.SET_BY_CODE[a];if(void 0===n)throw new RangeError("The encoding does not start with a start character.");!0===this.shouldEncodeAsEan128()&&t.unshift(s.FNC1);var i=e.next(t,1,n);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:e.getBar(a)+i.result+e.getBar((i.checksum+a)%s.MODULO)+e.getBar(s.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var t=this.options.ean128||!1;return"string"===typeof t&&(t="true"===t.toLowerCase()),t}}],[{key:"getBar",value:function(t){return s.BARS[t]?s.BARS[t].toString():""}},{key:"correctIndex",value:function(t,e){if(e===s.SET_A){var a=t.shift();return a<32?a+64:a-32}return e===s.SET_B?t.shift()-32:10*(t.shift()-48)+t.shift()-48}},{key:"next",value:function(t,a,n){if(!t.length)return{result:"",checksum:0};var i=void 0,r=void 0;if(t[0]>=200){r=t.shift()-105;var o=s.SWAP[r];void 0!==o?i=e.next(t,a+1,o):(n!==s.SET_A&&n!==s.SET_B||r!==s.SHIFT||(t[0]=n===s.SET_A?t[0]>95?t[0]-96:t[0]:t[0]<32?t[0]+96:t[0]),i=e.next(t,a+1,n))}else r=e.correctIndex(t,n),i=e.next(t,a+1,n);var l=e.getBar(r),c=r*a;return{result:l+i.result,checksum:c+i.checksum}}}]),e}(o.default);e.default=l},"0f78":function(t,e,a){"use strict";a.r(e);var n=a("4c82"),i=a("f8f5");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("7157");var o=a("828b"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"d1bd44b2",null,!1,n["a"],void 0);e["default"]=s.exports},"10dd":function(t,e,a){"use strict";var n=a("bdbb").default;a("6a54"),a("7a76"),a("c9b5"),a("8a8d"),a("926e"),Object.defineProperty(e,"__esModule",{value:!0}),e.GenericBarcode=void 0;var i=function(){function t(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,a,n){return a&&t(e.prototype,a),n&&t(e,n),e}}(),r=a("822a"),o=function(t){return t&&t.__esModule?t:{default:t}}(r);var s=function(t){function e(t,a){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==n(e)&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,a))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+n(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),e}(o.default);e.GenericBarcode=s},"13d2":function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.tn-badge[data-v-5ef10296]{width:auto;height:auto;box-sizing:border-box;display:flex;align-items:center;justify-content:center;z-index:10;font-size:%?20?%;background-color:#fff;border-radius:%?100?%;padding:%?4?% %?8?%;line-height:normal}.tn-badge--dot[data-v-5ef10296]{width:%?8?%;height:%?8?%;border-radius:50%;padding:0}.tn-badge--absolute[data-v-5ef10296]{position:absolute;top:0;right:0}.tn-badge--center-position[data-v-5ef10296]{-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}',""]),t.exports=e},"13fe":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n}));var n={tnNavBar:a("3703").default,tnBadge:a("8d2a").default,tnButton:a("29d7").default,tnModal:a("2235").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"index",attrs:{id:"order-list"}},[t.showLoading?a("v-uni-view",{staticClass:"loading"},[a("v-uni-view",{staticClass:"loading_body"}),a("v-uni-view",{staticStyle:{color:"#FFFFFF"}},[t._v("正在"+t._s(t.loadingData)+"...")])],1):t._e(),a("v-uni-view",{staticClass:"i_header"},[a("v-uni-view",{staticClass:"i_header_top"},[a("tn-nav-bar",{staticStyle:{color:"#FFFFFF"},attrs:{fixed:!0,alpha:!0,isBack:!1}},[a("v-uni-view",{attrs:{slot:"right"},slot:"right"},[a("v-uni-view",{staticClass:"tl-but",class:0!==t.refundStatu.num?"avatar-tips":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.details("/pages/order/refund/refundsList/refundsList")}}},[a("v-uni-view",{staticClass:"tn-flex"},[a("v-uni-text",{staticClass:"tn-icon-refund",staticStyle:{"font-size":"18px","margin-right":"5px"}}),a("v-uni-text",{staticClass:"text",staticStyle:{"font-size":"13px"}},[t._v("退款单")])],1),0!==t.refundStatu.num?a("tn-badge",{staticClass:"tips"},[t._v(t._s(t.refundStatu.num))]):t._e()],1)],1),a("v-uni-view",{attrs:{slot:"default"},slot:"default"},[t._v("订单管理")])],1),a("v-uni-view",{staticClass:"tabs"},t._l(t.orderFilter,(function(e){return a("v-uni-view",{key:e.key,staticClass:"tabs-item tn-flex",class:{active:t.filter.items.status==e.key},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.onToggleStatus(e.key)}}},[a("v-uni-view",{staticClass:"title"},[t._v(t._s(e.name))]),0==e.num||1!=e.key&&2!=e.key&&3!=e.key&&4!=e.key?t._e():a("tn-badge",{staticClass:"tabs-tips"},[a("v-uni-text",[t._v(t._s(e.num))])],1)],1)})),1)],1),a("v-uni-view",{staticClass:"i_body"},[a("v-uni-view",{staticClass:"i_body_top tn-flex",staticStyle:{"align-items":"center"}},[a("v-uni-view",{staticStyle:{"font-size":"13px","margin-right":"10rpx","flex-shrink":"0","white-space":"nowrap"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.noToggleHideNoYuyue.apply(void 0,arguments)}}},[t.hideNoYuyue?t._e():a("v-uni-view",[t._v("全部")]),t.hideNoYuyue?a("v-uni-view",{staticStyle:{color:"#989898"}},[t._v("全部")]):t._e()],1),a("v-uni-view",{staticStyle:{"font-size":"13px","margin-right":"10rpx","flex-shrink":"0","white-space":"nowrap"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleHideNoYuyue.apply(void 0,arguments)}}},[t.hideNoYuyue?t._e():a("v-uni-view",{staticStyle:{color:"#989898"}},[t._v("预约单("+t._s(t.yuyuedanNum)+")")]),t.hideNoYuyue?a("v-uni-view",[t._v("预约单("+t._s(t.yuyuedanNum)+")")]):t._e()],1),a("v-uni-view",{staticClass:"search__input tn-flex"},[a("i",{staticClass:"search__input--icon tn-icon-search"}),a("v-uni-input",{staticClass:"search__input--input",attrs:{type:"text",placeholder:"请输入相关信息进行搜索"},model:{value:t.keywords,callback:function(e){t.keywords=e},expression:"keywords"}}),a("v-uni-view",{staticClass:"search__input--btn",staticStyle:{"flex-shrink":"0","white-space":"nowrap"}},[a("tn-button",{attrs:{"background-color":"#33aafc","font-color":"#ffffff",shape:"round",size:"sm"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleFilterChange.apply(void 0,arguments)}}},[t._v("搜索")])],1)],1)],1),a("v-uni-view",{staticClass:"center"},[a("v-uni-view",{staticClass:"order_list"},[0===t.orderList.length?a("v-uni-view",{staticClass:"no-data"},[a("v-uni-image",{staticClass:"no-data_img",attrs:{src:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/spshop/order_no_con.png"}}),a("v-uni-view",{staticClass:"shuju"},[t._v("暂无数据")])],1):t._e(),t._l(t.orderList,(function(e,n){return a("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:!t.hideNoYuyue||!e.delivery_time.includes("立即送出")&&!e.delivery_time.includes("立即取餐"),expression:"!hideNoYuyue || (!item.delivery_time.includes('立即送出') && !item.delivery_time.includes('立即取餐'))"}],key:e.id,staticClass:"order_box",class:{no_yuyue:e.delivery_time.includes("立即送出")}||e.delivery_time.includes("立即取餐")},[a("v-uni-view",{staticClass:"order_box_header",staticStyle:{"border-bottom":"1rpx solid #EBEBEB"}},[e.is_reminder_count>0?a("v-uni-view",{staticStyle:{"font-size":"14px",color:"#ff0000","font-weight":"bold","text-align":"left","margin-bottom":"2px"}},[t._v("第"+t._s(e.is_reminder_count)+"次催单")]):t._e(),a("v-uni-view",{staticClass:"tn-flex",staticStyle:{"justify-content":"space-between","margin-bottom":"15rpx","align-items":"center"}},[a("v-uni-view",{staticClass:"tn-flex",staticStyle:{"align-items":"center"}},[a("v-uni-view",{staticStyle:{"margin-right":"20rpx","font-size":"24px","font-weight":"bold"}},[t._v("#"+t._s(e.serial_sn))]),a("v-uni-view",{staticStyle:{color:"#ffab19","font-size":"14px","margin-right":"20rpx"}},[e.is_reserve?a("v-uni-view",[t._v("预约订单\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.delivery_time)+"送达")]):t._e(),e.is_reserve?t._e():a("v-uni-view",[t._v(t._s(e.delivery_time))])],1),e.is_spellrice?a("v-uni-view",{staticStyle:{color:"#33AAFC","font-size":"10px"}},[a("span",{staticStyle:{border:"1rpx solid #33AAFC","border-radius":"4px",padding:"5rpx 15rpx"}},[t._v("拼饭单")])]):t._e()],1),a("v-uni-view",{staticStyle:{"font-size":"22rpx","font-weight":"bold","text-align":"right"}},[a("v-uni-view",{staticStyle:{"font-size":"14px",color:"#333333","font-weight":"bold","text-align":"right"}},[t._v(t._s(e.order_status_cn))]),t.checkTimeout(e,1)&&1==e.status?a("v-uni-view",{style:{color:t.checkTimeout(e,1).color}},[t._v(t._s(t.checkTimeout(e,1).message)+t._s(t.checkTimeout(e,1).type))]):t._e(),t.checkTimeout(e,2)&&2==e.status?a("v-uni-view",{style:{color:t.checkTimeout(e,2).color}},[t._v(t._s(t.checkTimeout(e,2).message)+t._s(t.checkTimeout(e,1).type))]):t._e()],1)],1),a("v-uni-view",{staticClass:"tn-flex",staticStyle:{"justify-content":"space-between","font-size":"10px",color:"#989898","margin-bottom":"20rpx"}},[a("v-uni-view",[t._v("单号:"+t._s(e.ordersn))]),a("v-uni-view",[t._v("时间:"+t._s(e.addtime_cn))])],1)],1),a("v-uni-view",{staticClass:"order_box_content",staticStyle:{"margin-top":"20rpx","border-bottom":"1rpx solid #EBEBEB"}},[a("v-uni-view",{staticClass:"tn-flex",staticStyle:{"justify-content":"space-between","align-items":"center","margin-bottom":"20rpx"}},[a("v-uni-view",{staticClass:"tn-flex",staticStyle:{"align-items":"center"}},[a("v-uni-view",{staticStyle:{"font-size":"18px","font-weight":"bold","margin-right":"20rpx"}},[t._v(t._s(e.username))]),a("v-uni-view",{staticStyle:{"font-size":"18px"}},[t._v(t._s(e.mobile))])],1),a("v-uni-view",{staticClass:"tn-flex",staticStyle:{"font-size":"25px"}},[a("v-uni-text",{staticClass:"tn-icon-tel",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.onCallCustomer(e)}}})],1)],1),a("v-uni-view",{staticStyle:{"font-size":"12px","margin-bottom":"20rpx"}},[t._v(t._s(e.address))]),a("v-uni-view",{staticClass:"order_goods",staticStyle:{"border-radius":"6px",background:"#F5F5F5",width:"100%",padding:"20rpx","margin-bottom":"20rpx",overflow:"auto"}},t._l(e.goods,(function(n,i){return a("v-uni-view",{key:i,staticClass:"order_good",staticStyle:{"border-bottom":"2rpx solid #DCDCDC","margin-bottom":"20rpx"}},[n.goods_number?a("v-uni-view",{staticClass:"qrcode"},[a("p",[t._v("商品编码:"+t._s(n.goods_number))]),a("v-uni-view",{staticClass:"eye",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bindEyeCode(n.goods_number)}}},[a("v-uni-text",{staticClass:"tn-icon-eye",staticStyle:{display:"inline-block","vertical-align":"middle"}}),a("p",{staticClass:"eye-code"},[t._v("查看条形码")])],1)],1):t._e(),a("v-uni-view",{staticClass:"tn-flex tn-flex-row-between tn-flex-col-center",staticStyle:{"font-size":"16px"}},[a("v-uni-image",{staticClass:"thumb",attrs:{src:n.thumb||"https://qny.wdsp666.com/福袋背景图/agent/20c11314d8c0dbd8e933d8d71acb77e.png",mode:"widthFix"}}),a("v-uni-view",{staticStyle:{"font-weight":"600",width:"80%"}},[t._v(t._s(n.goods_title.replace(n.goods_options_title,""))),e.tuangouquan&&e.tuangouquan["goods_id"]==n.goods_id?a("v-uni-text",{staticStyle:{color:"red","font-size":"24rpx"}},[t._v("(代金券抵扣:"+t._s(e.tuangouquan["discount"])+")")]):t._e(),n.goods_options_title?a("v-uni-view",{staticStyle:{"font-size":"14px",color:"#03AD00","margin-top":"10rpx"}},[t._v(t._s(n.goods_options_title.slice(1,-1)))]):t._e()],1)],1),a("v-uni-view",{staticStyle:{"font-weight":"bold",margin:"20rpx 0","text-align":"right"}},[a("v-uni-view",{staticStyle:{"margin-right":"12rpx","text-align":"right",display:"inline-block"}},[t._v("x"+t._s(n.goods_num))]),a("v-uni-view",{staticStyle:{display:"inline-block"}},[t._v(t._s(t.CurrencyUnit)+t._s(n.goods_price))])],1)],1)})),1),a("v-uni-view",{staticStyle:{"margin-bottom":"20rpx"}},[a("v-uni-view",{staticClass:"tn-flex",staticStyle:{"align-items":"center"}},[a("v-uni-view",{staticStyle:{"font-size":"13px"}},[t._v("备注:")]),a("v-uni-view",{staticStyle:{color:"#ffab19","font-size":"16px"}},[t._v(t._s(e.note?e.note:"顾客需要餐具"))])],1)],1),a("v-uni-view",{staticClass:"order_info",staticStyle:{"border-radius":"6px",background:"#F5F5F5",width:"100%",padding:"20rpx","margin-bottom":"20rpx"}},[t.orderList[n].isShowinfo?a("v-uni-view",[e.discount_fee>0?a("v-uni-view",{staticClass:"tn-flex tn-margin-bottom-sm",staticStyle:{color:"#666666","font-size":"12px"}},[a("v-uni-view",{staticClass:"tn-text-bold tn-flex-1"},[t._v("平台优惠活动")]),a("v-uni-view",{staticClass:"tn-text-bold"},[t._v("-"+t._s(t.CurrencyUnit)+t._s(e.discount_fee)+"\n\t\t\t\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t\t\t平台:"+t._s(e.plateform_discount_fee>0?-e.plateform_discount_fee:0)+";\n\t\t\t\t\t\t\t\t\t\t\t代理:"+t._s(e.agent_discount_fee>0?-e.agent_discount_fee:0)+";\n\t\t\t\t\t\t\t\t\t\t\t店铺:"+t._s(e.store_discount_fee>0?-e.store_discount_fee:0)+"\n\t\t\t\t\t\t\t\t\t\t\t)")])],1):t._e(),a("v-uni-view",{staticClass:"tn-flex tn-flex-row-between tn-flex-col-center",staticStyle:{"white-space":"nowrap"}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-row-between tn-flex-col-center"},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[t._v("配送费")]),a("v-uni-view",[t._v(t._s(t.CurrencyUnit)+t._s(e.delivery_fee))])],1),a("v-uni-view",[t._v("|")]),a("v-uni-view",{staticClass:"tn-flex tntn-flex-row-between tn-flex-col-center"},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[t._v("餐盒费")]),a("v-uni-view",[t._v(t._s(t.CurrencyUnit)+t._s(e.box_price))])],1),a("v-uni-view",[t._v("|")]),a("v-uni-view",{staticClass:"tn-flex tn-flex-row-between tn-flex-col-center"},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[t._v("包装费")]),a("v-uni-view",[t._v(t._s(t.CurrencyUnit)+t._s(e.pack_fee))])],1),a("v-uni-view",[t._v("|")]),a("v-uni-view",{staticClass:"tn-flex tn-flex-row-between tn-flex-col-center"},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[t._v("餐具")]),a("v-uni-view",[t._v(t._s(e.person_num)+"套")])],1)],1),a("v-uni-view",{staticClass:"tn-flex tn-margin-top-xs"},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[t._v("顾客实际支付")]),a("v-uni-view",[t._v(t._s(t.CurrencyUnit)+t._s(e.final_fee))])],1),a("v-uni-view",{staticClass:"tn-flex tn-margin-top-xs",staticStyle:{position:"relative"}},[t.orderList[n].isShowCommission?a("v-uni-view",{staticClass:"commission_details_body"},[a("v-uni-view",{staticClass:"commission_details_content",staticStyle:{"font-size":"12px",padding:"10rpx"}},[t._v(t._s(e.plateform_serve.note))]),a("v-uni-view",{staticClass:"commission_details"})],1):t._e(),a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-col-center",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleCommission(n)}}},[t._v("平台抽取佣金"),a("v-uni-text",{staticClass:"tn-icon-tip"}),t.extractShippingCost(e.plateform_serve.note)?a("v-uni-text",[t._v("(包含配送费"+t._s(t.extractShippingCost(e.plateform_serve.note))+")")]):t._e()],1)],1),a("v-uni-view",[t._v("-"+t._s(t.CurrencyUnit)+t._s(e.platform_income))])],1),1!=e.delivery_type?a("v-uni-view",{staticClass:"tn-flex tn-margin-top-xs",staticStyle:{position:"relative"}},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-col-center"},[t._v("配送费(归平台)")])],1),a("v-uni-view",[t._v("-"+t._s(t.CurrencyUnit)+t._s(e.delivery_fee))])],1):t._e(),e.data?a("v-uni-view",[e.data.extra_fee&&e.data.extra_fee.length>0?t._l(e.data.extra_fee,(function(e,n){return a("v-uni-view",{key:n,staticClass:"tn-flex tn-margin-top-xs"},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[t._v(t._s(e.name)+"(归平台)")]),a("v-uni-view",[t._v(t._s(t.CurrencyUnit)+t._s(e.fee))])],1)})):t._e(),e.data.store_extra_fee&&e.data.store_extra_fee.length>0?t._l(e.data.store_extra_fee,(function(e,n){return a("v-uni-view",{key:n,staticClass:"tn-flex tn-margin-top-xs"},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[t._v(t._s(e.name)+"(归商户)")]),a("v-uni-view",[t._v(t._s(t.CurrencyUnit)+t._s(e.fee))])],1)})):t._e()],2):t._e(),a("v-uni-view",{staticClass:"tn-flex tn-margin-top-xs"},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[t._v("平台补贴")]),a("v-uni-view",[t._v("+"+t._s(t.CurrencyUnit)+t._s(parseFloat(e.plateform_discount_fee)+parseFloat(e.agent_discount_fee)))])],1),e.spread_commission>0?a("v-uni-view",{staticClass:"tn-flex tn-margin-top-xs"},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[t._v("推广佣金")]),a("v-uni-view",[t._v("-"+t._s(t.CurrencyUnit)+t._s(e.spread_commission))])],1):t._e(),e.discount&&e.discount.length>0?a("v-uni-view",{staticClass:"tn-flex tn-margin-top-xs"},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[t._v("订单退款")]),a("v-uni-view",[t._v("-"+t._s(t.CurrencyUnit)+t._s(e.refund_fee))])],1):t._e()],1):t._e(),a("v-uni-view",{staticClass:"tn-flex tn-margin-top-xs",staticStyle:{"font-weight":"bold"}},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#FA434C","font-size":"16px"}},[t._v("商家预计收入")]),a("v-uni-view",{staticStyle:{color:"#FA434C","font-size":"20px"}},[t._v(t._s(t.CurrencyUnit)+t._s(e.store_final_fee))])],1),a("v-uni-view",{staticClass:"hx tn-margin-top-xs"}),t.orderList[n].isShowinfo?t._e():a("v-uni-view",{staticClass:"oppen tn-flex tn-flex-col-center tn-margin-top-xs",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showInfo(n)}}},[t._v("展开"),a("v-uni-text",{staticClass:"tn-icon-down-double"})],1),t.orderList[n].isShowinfo?a("v-uni-view",{staticClass:"close tn-flex tn-flex-col-center tn-margin-top-xs",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showInfo(n)}}},[t._v("收起"),a("v-uni-text",{staticClass:"tn-icon-up-double"})],1):t._e()],1)],1),a("v-uni-view",{staticClass:"order_box_footer tn-flex",staticStyle:{"margin-top":"20rpx","justify-content":"space-between","align-items":"center","font-size":"13px"}},[t.orderList[n].isShowOptions?a("v-uni-view",{staticClass:"bubble_body"},[a("v-uni-view",{staticClass:"bubble-content",on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.closePopupModal.apply(void 0,arguments)}}},[2!=e.status&&3!=e.status||1!=e.order_type?t._e():a("v-uni-view",{staticClass:"tn-strip-bottom-min",staticStyle:{padding:"10rpx"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.changeOrderStatus(e.id,"notify_deliveryer_collect","通知配送")}}},[t._v("通知配送")]),"已取消"!=e.order_status_cn?a("v-uni-view",{staticStyle:{padding:"10rpx"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.details("/pages/order/refund/op?id="+e.id+"&type=cancel")}}},[t._v("取消订单")]):t._e()],1),a("v-uni-view",{staticClass:"bubble"})],1):t._e()],1),a("v-uni-view",{staticClass:"tn-flex",staticStyle:{color:"#989898","margin-top":"20rpx"}},[a("v-uni-view",{staticClass:"tn-flex"},[a("v-uni-view",{staticStyle:{"font-size":"14px",color:"#FFFFFF","border-radius":"6px",padding:"10rpx 20rpx","margin-left":"10rpx","background-color":"#33AAFC"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.details("/pages/order/refund/detail?id="+e.id)}}},[t._v("订单详细")]),"待确认"==e.order_status_cn?a("v-uni-view",{staticStyle:{"font-size":"14px",color:"#FFFFFF","border-radius":"6px",padding:"10rpx 20rpx","margin-left":"10rpx","background-color":"#ffaa00"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.onUpdateOrderStatus(e.id,"handle","接受订单")}}},[t._v("接受订单")]):t._e(),1!=e.order_type||0!=e.is_meal_served||2!=e.status&&3!=e.status&&4!=e.status?t._e():a("v-uni-view",{staticStyle:{"font-size":"14px",color:"#FFFFFF","border-radius":"6px",padding:"10rpx 20rpx","background-color":"#FF791A","margin-left":"10rpx"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.toServed(e.id)}}},[t._v("出餐")]),2==e.order_type&&1==e.is_pay&&2==e.status?a("v-uni-view",{staticStyle:{"font-size":"14px",color:"#FFFFFF","border-radius":"6px",padding:"10rpx 20rpx","background-color":"#ffaa00","margin-left":"10rpx"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.changeOrderStatus(e.id,"notify_consumer_pickup","通知顾客")}}},[t._v("已备货")]):t._e(),2==e.order_type&&1==e.is_pay&&5!=e.status&&"待确认"!=e.order_status_cn?a("v-uni-view",{staticStyle:{"font-size":"14px",color:"#FFFFFF","border-radius":"6px",padding:"10rpx 20rpx","background-color":"#6bde00","margin-left":"10rpx"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.changeOrderStatus(e.id,"end","自提")}}},[t._v("已自提")]):t._e(),1==e.platform_delivery_store_is_can_finish_order&&"已完成"!=e.order_status_cn&&"已取消"!=e.order_status_cn&&"待确认"!=e.order_status_cn?a("v-uni-view",{staticStyle:{"font-size":"14px",color:"#FFFFFF","border-radius":"6px",padding:"10rpx 20rpx","background-color":"#6bde00","margin-left":"10rpx"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.onUpdateOrderStatus(e.id,"end","完成订单")}}},[t._v("完成订单")]):t._e()],1)],1),a("v-uni-view",{staticStyle:{"text-align":"center",color:"#989898","margin-top":"20rpx",display:"flex","justify-content":"flex-end"}},[a("v-uni-view",{staticStyle:{"text-align":"center",color:"#989898","margin-right":"20rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleOptions(n)}}},[a("v-uni-text",{staticClass:"tn-icon-menu-alone-fill",staticStyle:{"font-size":"20px"}}),a("v-uni-view",{staticStyle:{"font-size":"13px"}},[t._v("更多")])],1),a("v-uni-view",[a("v-uni-view",{staticStyle:{"text-align":"center",color:"#989898"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.toprint(e.id)}}},[a("v-uni-text",{staticClass:"tn-icon-receipt",staticStyle:{"font-size":"20px"}})],1),a("v-uni-view",{staticStyle:{"font-size":"13px"}},[t._v("打印("+t._s(e.print_nums)+")")])],1)],1)],1)}))],2)],1)],1)],1),a("tn-modal",{attrs:{title:"条形码",custom:!0},model:{value:t.modelShow,callback:function(e){t.modelShow=e},expression:"modelShow"}},[a("v-uni-view",{staticClass:"custom-modal-content",staticStyle:{"text-align":"center"}},[a("tkiBarcode",{ref:"itf14",attrs:{cid:"itf14",onval:!0,loadMake:!0,format:"itf14",val:t.barCodeVal},on:{result:function(e){arguments[0]=e=t.$handleEvent(e),t.itf14.apply(void 0,arguments)}}})],1)],1)],1)},r=[]},"14e8":function(t,e,a){var n=a("5d85");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("21dee80a",n,!0,{sourceMap:!1,shadowMode:!1})},"153d":function(t,e,a){var n=a("2e47");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("5c9c89a0",n,!0,{sourceMap:!1,shadowMode:!1})},1851:function(t,e,a){"use strict";var n=a("8bdb"),i=a("84d6"),r=a("1cb5");n({target:"Array",proto:!0},{fill:i}),r("fill")},1899:function(t,e,a){"use strict";a.r(e);var n=a("4b5e"),i=a("fafb");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("3f7f");var o=a("828b"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"4e1c1bfa",null,!1,n["a"],void 0);e["default"]=s.exports},1915:function(t,e,a){var n=a("3f18");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("6c81668c",n,!0,{sourceMap:!1,shadowMode:!1})},1939:function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.tn-input[data-v-22f87c42]{display:flex;flex-direction:row;position:relative;flex:1}.tn-input__input[data-v-22f87c42]{font-size:%?28?%;color:#080808;flex:1}.tn-input__textarea[data-v-22f87c42]{width:auto;font-size:%?28?%;color:#080808;padding:%?10?% 0;line-height:normal;flex:1}.tn-input--border[data-v-22f87c42]{border-radius:%?6?%;border:%?2?% solid rgba(0,0,0,.1)}.tn-input--error[data-v-22f87c42]{border-color:#e83a30!important}.tn-input__right-icon[data-v-22f87c42]{line-height:1}.tn-input__right-icon .icon[data-v-22f87c42]{color:#aaa}.tn-input__right-icon__item[data-v-22f87c42]{margin-left:%?10?%}.tn-input__right-icon__clear .icon[data-v-22f87c42]{font-size:%?32?%}.tn-input__right-icon__select[data-v-22f87c42]{transition:-webkit-transform .4s;transition:transform .4s;transition:transform .4s,-webkit-transform .4s}.tn-input__right-icon__select .icon[data-v-22f87c42]{font-size:%?26?%}.tn-input__right-icon__select--reverse[data-v-22f87c42]{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}',""]),t.exports=e},"1aa6":function(t,e,a){"use strict";a.r(e);var n=a("24a6"),i=a("9b37");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("56c9");var o=a("828b"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"e5b5b0bc",null,!1,n["a"],void 0);e["default"]=s.exports},"1c99":function(t,e,a){"use strict";a("6a54"),a("5c47"),a("2c10"),a("23f4"),a("7d2f"),a("9c4e"),a("ab80"),a("a1c1"),Object.defineProperty(e,"__esModule",{value:!0});var n=a("b802"),i=function(t){return t.match(new RegExp("^"+n.A_CHARS+"*"))[0].length},r=function(t){return t.match(new RegExp("^"+n.B_CHARS+"*"))[0].length},o=function(t){return t.match(new RegExp("^"+n.C_CHARS+"*"))[0]};function s(t,e){var a=e?n.A_CHARS:n.B_CHARS,i=t.match(new RegExp("^("+a+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(i)return i[1]+String.fromCharCode(204)+l(t.substring(i[1].length));var r=t.match(new RegExp("^"+a+"+"))[0];return r.length===t.length?t:r+String.fromCharCode(e?205:206)+s(t.substring(r.length),!e)}function l(t){var e=o(t),a=e.length;if(a===t.length)return t;t=t.substring(a);var n=i(t)>=r(t);return e+String.fromCharCode(n?206:205)+s(t,n)}e.default=function(t){var e=void 0,a=o(t).length;if(a>=2)e=n.C_START_CHAR+l(t);else{var c=i(t)>r(t);e=(c?n.A_START_CHAR:n.B_START_CHAR)+s(t,c)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,(function(t,e){return String.fromCharCode(203)+e}))}},"1cb6":function(t,e,a){var n=a("f003");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("784520bf",n,!0,{sourceMap:!1,shadowMode:!1})},"1dbd":function(t,e,a){"use strict";var n=a("ac5f"),i=a("1fc1"),r=a("41c7"),o=a("ae5c"),s=function(t,e,a,l,c,u,d,f){var h,p,v=c,g=0,b=!!d&&o(d,f);while(g<l)g in a&&(h=b?b(a[g],g,e):a[g],u>0&&n(h)?(p=i(h),v=s(t,e,h,p,v,u-1)-1):(r(v+1),t[v]=h),v++),g++;return v};t.exports=s},"1ee6":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"tn-badge-class tn-badge",class:[t.backgroundColorClass,t.fontColorClass,t.badgeClass],style:[t.badgeStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleClick.apply(void 0,arguments)}}},[t.dot?t._e():t._t("default")],2)},i=[]},"1fb9":function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,".chartsview[data-v-3dd6a45f]{width:100%;height:100%;display:flex;flex:1;justify-content:center;align-items:center}",""]),t.exports=e},"225d":function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.businessBox[data-v-2a1d6a03]{position:relative}.businessBox_topBg[data-v-2a1d6a03]{width:100%;height:auto;background:linear-gradient(117deg,#32baee,#3a91f8);background-color:rgba(50,186,238,.5);padding:%?0?% %?28?% %?90?% %?28?%}.businessBox_topBg_userInfo[data-v-2a1d6a03]{width:100%;height:%?72?%;display:flex;align-items:center;margin-bottom:%?11.9?%}.businessBox_topBg_userInfo_logo[data-v-2a1d6a03]{width:%?71.81?%;height:%?71.81?%;border-radius:%?24?%}.businessBox_topBg_userInfo_title[data-v-2a1d6a03]{padding-left:%?25?%;color:#fff;font-size:%?33?%}.businessBox_topBg_userInfo_icon[data-v-2a1d6a03]{padding-left:%?25?%;color:#fff;font-size:%?33?%}.businessBox_topBg_data[data-v-2a1d6a03]{width:100%;height:%?110?%;margin-top:%?30?%;display:flex;color:#fff}.businessBox_topBg_data_item[data-v-2a1d6a03]{width:33.3333333333%;height:%?110?%}.businessBox_topBg_data_item_top[data-v-2a1d6a03]{width:100%;height:%?67?%;display:flex;align-items:center;justify-content:center;font-size:%?38?%}.businessBox_topBg_data_item_bottom[data-v-2a1d6a03]{width:100%;height:%?43?%;display:flex;align-items:center;justify-content:center;font-size:%?28?%}.contentBox_content[data-v-2a1d6a03]{width:100%;height:auto;padding:%?0?% %?28?% %?250?% %?28?%;background:linear-gradient(180deg,hsla(0,0%,96.9%,0),#f7f7f7 7%,#f7f7f7);margin-top:%?-40?%}.contentBox_content_card1[data-v-2a1d6a03]{width:100%;height:auto;background-color:#fff;border-radius:%?13?%;padding:%?34?% %?29?% %?27?% %?29?%}.contentBox_content_card1_title[data-v-2a1d6a03]{width:100%;font-weight:700}.contentBox_content_card1_item[data-v-2a1d6a03]{width:100%;height:%?83?%;background-color:#fdf8f8;border-radius:%?13?%;margin-top:%?23?%;display:flex;align-items:center;justify-content:space-between;padding:%?0?% %?25?%}.contentBox_content_card1_item_left[data-v-2a1d6a03]{display:flex;align-items:center}.contentBox_content_card1_item_left_title[data-v-2a1d6a03]{color:#ec5050}.contentBox_content_card1_item_left_bg[data-v-2a1d6a03]{width:%?4?%;height:%?32?%;background-color:#c7c8c8;margin:%?0?% %?20?%}.contentBox_content_card1_item_right[data-v-2a1d6a03]{color:#c7c8c8;font-weight:700}.contentBox_content_card2[data-v-2a1d6a03]{width:100%;height:auto;background-color:#fff;border-radius:%?13?%;padding:%?34?% %?29?% %?27?% %?29?%;margin-top:%?20?%;display:flex;flex-wrap:wrap}.lanse[data-v-2a1d6a03]{background:linear-gradient(133deg,#57befd,#4980fe);border-radius:%?28?%!important}.lvse[data-v-2a1d6a03]{background:linear-gradient(133deg,#25dfa5,#00bc6b);border-radius:%?28?%!important}.huangse[data-v-2a1d6a03]{background:linear-gradient(138deg,#fed600,#ffae00);border-radius:%?28?%!important}.chengse[data-v-2a1d6a03]{background:linear-gradient(145deg,#ff8735,#fb4740);border-radius:%?28?%!important}\n/* 图标容器12 start */.badge[data-v-2a1d6a03]{position:absolute;top:%?-110?%;left:%?70?%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);min-width:16px;z-index:1;text-align:center;font-size:12px;background-color:#ff2d4b;color:#fff;padding:2px 3px;border-radius:10px 10px 10px 0;box-sizing:border-box}.tn-flex[data-v-2a1d6a03]{flex-wrap:wrap!important}.icon12__item[data-v-2a1d6a03]{width:30%;background-color:#fff;border-radius:%?10?%;padding:%?30?%;margin:%?20?% %?10?%;-webkit-transform:scale(1);transform:scale(1);transition:-webkit-transform .3s linear;transition:transform .3s linear;transition:transform .3s linear,-webkit-transform .3s linear;-webkit-transform-origin:center center;transform-origin:center center}.icon12__item--icon[data-v-2a1d6a03]{width:%?75.48?%;height:%?75.48?%;font-size:%?60?%;border-radius:50%;margin-bottom:%?18?%;position:relative;z-index:1}.icon12__item--icon[data-v-2a1d6a03]::after{content:" ";position:absolute;z-index:-1;width:100%;height:100%;left:0;bottom:0;border-radius:inherit;opacity:1;-webkit-transform:scale(1);transform:scale(1);background-size:100% 100%;background-image:url(https://tnuiimage.tnkjapp.com/cool_bg_image/icon_bg.png)}\n/* 页面 start*/.shangpu-shadow[data-v-2a1d6a03]{border-radius:%?15?%;box-shadow:%?0?% %?0?% %?50?% %?0?% rgba(0,0,0,.07)}',""]),t.exports=e},2309:function(t,e,a){var n=a("a9d1");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("78dd0f40",n,!0,{sourceMap:!1,shadowMode:!1})},"234c":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"tki-barcode"},[e("v-uni-canvas",{staticClass:"tki-barcode-canvas",style:{width:this.canvasWidth+"px",height:this.canvasHeight+"px"},attrs:{"canvas-id":this.cid}}),e("v-uni-image",{directives:[{name:"show",rawName:"v-show",value:this.show,expression:"show"}],style:{width:this.canvasWidth+"px",height:this.canvasHeight+"px"},attrs:{src:this.result}})],1)},i=[]},"236d":function(t,e,a){"use strict";a.r(e);var n=a("7f31"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},"23b1":function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={easycom:{"^tn-(.*)":"@/tuniao-ui/components/tn-$1/tn-$1.vue"},pages:[{path:"pages/startPage/startPage",style:{navigationBarTitleText:"",navigationStyle:"custom",navigationBarTextStyle:"black",enablePullDownRefresh:!0,onReachBottomDistance:50}},{path:"pages/auth/login",style:{navigationBarTitleText:"登录",enablePullDownRefresh:!1,"app-plus":{popGesture:"none",titleNView:{autoBackButton:!1}}}},{path:"pages/auth/register",style:{navigationBarTitleText:"注册",enablePullDownRefresh:!1}},{path:"pages/auth/merchant",style:{navigationBarTitleText:"入驻",enablePullDownRefresh:!1}},{path:"pages/auth/choose",style:{navigationBarTitleText:"经营类型",enablePullDownRefresh:!1,navigationBarBackgroundColor:"#fff"}},{path:"pages/auth/settle_success",style:{navigationBarTitleText:"入驻成功",enablePullDownRefresh:!1}},{path:"pages/auth/authorization",style:{navigationBarTitleText:"第三方授权",enablePullDownRefresh:!1}},{path:"pages/order/index",style:{navigationBarTitleText:"订单管理",navigationStyle:"custom",navigationBarTextStyle:"black",enablePullDownRefresh:!0,onReachBottomDistance:50}},{path:"pages/order/tangshi/index",style:{navigationBarTitleText:"店内订单管理",navigationStyle:"custom",navigationBarTextStyle:"black",enablePullDownRefresh:!0,onReachBottomDistance:50}},{path:"pages/statcenter/home",style:{navigationBarTitleText:"经营数据",navigationBarTextStyle:"black",navigationStyle:"custom",enablePullDownRefresh:!0,"app-plus":{pullToRefresh:{support:!0,color:"#eeeef3",style:"default",height:"20%"}}}},{path:"pages/statcenter/index",style:{navigationBarTitleText:"商户统计",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"pages/order/tangshi/table",style:{navigationBarTitleText:"店内桌台",navigationBarTextStyle:"black",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"pages/statcenter/order",style:{navigationBarTitleText:"营业统计",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"pages/statcenter/goods",style:{navigationBarTitleText:"热门商品",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"pages/statcenter/scan",style:{navigationBarTitleText:"客流分析",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"pages/statcenter/keep",style:{navigationBarTitleText:"顾客留存统计",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"pages/statcenter/datail",style:{navigationBarTitleText:"营业统计详情",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"pages/order/tangshi/assign",style:{navigationBarTitleText:"排队",navigationBarTextStyle:"black",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"pages/order/tangshi/assignQueue",style:{navigationBarTitleText:"添加队列",navigationBarTextStyle:"black",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"pages/order/refund/refund",style:{navigationBarTitleText:"",navigationBarTextStyle:"black",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"pages/order/refund/detail",style:{navigationBarTitleText:"",navigationBarTextStyle:"black",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"pages/order/tangshi/assignRecorcord",style:{navigationStyle:"custom",navigationBarTextStyle:"black",enablePullDownRefresh:!1}},{path:"pages/order/pintuan/pintuan",style:{navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"pages/order/pintuan/kanjia",style:{navigationBarTitleText:"砍价列表",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"pages/order/pintuan/index",style:{navigationBarTitleText:"订单列表",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"pages/order/pintuan/list",style:{navigationBarTitleText:"订单统计",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"pages/order/pintuan/seckill",style:{navigationBarTitleText:"抢购列表",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"pages/order/refund/op",style:{navigationBarTitleText:"",enablePullDownRefresh:!1,navigationStyle:"custom","app-plus":{titleNView:!1}}},{path:"pages/order/refund/refundsList/refundsList",style:{navigationBarTitleText:"",enablePullDownRefresh:!1,navigationStyle:"custom","app-plus":{titleNView:!1}}},{path:"pages/webview/webview",style:{navigationBarTitleText:""}},{path:"components/goods/sp-goods-group",style:{navigationBarTitleText:""}},{path:"components/newSpecifications/newSpecifications",style:{navigationBarTitleText:""}}],subPackages:[{root:"other-page",pages:[{path:"privacy_clause/agreement",style:{navigationBarTitleText:"服务协议与隐私政策提示",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"selectAddresss/selectAddresss",style:{navigationBarTitleText:"商家中心",navigationStyle:"custom",navigationBarTextStyle:"black",enablePullDownRefresh:!1}},{path:"rili/rili",style:{navigationBarTitleText:"日历",enablePullDownRefresh:!1}},{path:"finance/advertise_order",style:{navigationBarTitleText:"提交推广",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"finance/current",style:{navigationBarTitleText:"账户明细",navigationStyle:"custom",enablePullDownRefresh:!1,onReachBottomDistance:50}},{path:"finance/current2",style:{navigationBarTitleText:"账户2明细",navigationStyle:"custom",enablePullDownRefresh:!1,onReachBottomDistance:50}},{path:"finance/divideDetail",style:{navigationBarTitleText:"分账订单明细",navigationStyle:"custom",enablePullDownRefresh:!1,onReachBottomDistance:50}},{path:"finance/currentDetail",style:{navigationBarTextStyle:"black",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"finance/yucunjinDetail",style:{navigationBarTextStyle:"black",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"finance/getashRecord",style:{navigationBarTitleText:"提现申请",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"finance/getcashRecordDetail",style:{navigationBarTextStyle:"black",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"finance/yucunjin",style:{navigationBarTitleText:"预存金明细",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"finance/getCash",style:{navigationBarTitleText:"申请提现",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"finance/getCash2",style:{navigationBarTitleText:"申请提现",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"finance/settle_record",style:{navigationBarTitleText:"结算记录",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"finance/account",style:{navigationBarTitleText:"提现账户",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"finance/recharge",style:{navigationBarTitleText:"充值",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"finance/separate_bank",style:{navigationBarTitleText:"分账提现银行卡",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"supplier_list/supplier_list",style:{navigationBarTitleText:"进货",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"template-1/template-1",style:{"mp-alipay":{barButtonTheme:"default"},onReachBottomDistance:10}},{path:"ShowcaseGoodsList/ShowcaseGoodsList",style:{navigationBarTitleText:""}},{path:"ShowcaseShoppingCart/ShowcaseShoppingCart",style:{navigationBarTitleText:""}},{path:"CategoryList/CategoryList",style:{navigationBarTitleText:""}},{path:"ProductsListOnce/ProductsListOnce",style:{navigationBarTitleText:""}},{path:"CouponList/CouponList",style:{navigationBarTitleText:""}},{path:"components/VLineTitle",style:{navigationBarTitleText:""}},{path:"components/ProductSpecNumberBox",style:{navigationBarTitleText:""}},{path:"components/ShowcaseStoreNav",style:{navigationBarTitleText:""}},{path:"components/SearchBox",style:{navigationBarTitleText:""}},{path:"submit-order/submit-order",style:{navigationBarTitleText:""}},{path:"submit-order/submit-tangshi-order",style:{navigationBarTitleText:"",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"supplier-order/supplier-order-list/supplier-order-list",style:{navigationBarTitleText:""}},{path:"supplier-order/supplier-order-detail/supplier-order-detail",style:{navigationBarTitleText:""}},{path:"supplier-order/supplier-order-refund/supplier-order-refund",style:{navigationBarTitleText:""}},{path:"submit-supplier-order-refund/submit-supplier-order-refund",style:{navigationBarTitleText:""}},{path:"suplier-statcenter/suplier-statcenter",style:{navigationBarTitleText:""}},{path:"refund/index",style:{navigationBarTitleText:"退款",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"checkstand/index",style:{navigationBarTitleText:"桌台列表",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"checkstand/tableOrder",style:{navigationBarTitleText:"商品列表",navigationStyle:"custom",enablePullDownRefresh:!1}}]},{root:"operation",pages:[{path:"home",style:{navigationBarTitleText:"每日优鲜",navigationBarTextStyle:"black",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"billing_related/billingList/list",style:{navigationBarTitleText:"发单列表",navigationStyle:"custom",enablePullDownRefresh:!1,onReachBottomDistance:50}},{path:"business_data/goods/goods",style:{navigationBarTitleText:"",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"business_data/comment/comment",style:{navigationBarTitleText:"用户评价",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"business_data/printer/printer",style:{navigationBarTitleText:"打印机列表",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"business_data/goods/addProduct/post",style:{navigationBarTitleText:"编辑打印机",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"event_promotion/avtivity/avtivity",style:{navigationBarTitleText:"活动中心",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"billing_related/deliveryBilling/deliveryBilling",style:{navigationBarTitleText:"配送发单",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"vipSet_page/vipSet",style:{navigationBarTitleText:"配送发单",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"Member/shopVermicelli",style:{navigationBarTitleText:"店铺粉丝",navigationStyle:"custom"}},{path:"Member/shopMember",style:{navigationBarTitleText:"店铺会员",navigationStyle:"custom"}},{path:"business_data/goods/addProduct/list",style:{navigationBarTitleText:"添加拼团列表",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"business_data/goods/addProduct/kanjiapost",style:{navigationBarTitleText:"添加砍价列表",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"business_data/goods/addProduct/seckillList",style:{navigationBarTitleText:"添加抢购商品",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"business_data/goods/addProduct/foods",style:{navigationBarTitleText:"编辑商品",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"business_data/goods/category/category",style:{navigationBarTitleText:"全部商品",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"business_data/goods/category/post",style:{navigationBarTitleText:"编辑分类",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"business_data/goods/category/cloudGoods",style:{navigationBarTitleText:"云商品库",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"event_promotion/avtivity/activitys/list",style:{navigationBarTitleText:"",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"event_promotion/avtivity/activitys/couponCollect",style:{navigationBarTitleText:"",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"event_promotion/avtivity/activitys/deliveryFee",style:{navigationBarTitleText:"",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"event_promotion/avtivity/activitys/bargain",style:{navigationBarTitleText:"",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"event_promotion/tuangouquan/scan_code",style:{navigationBarTitleText:"扫码核销",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"manag_statistics/lifeCircle",style:{navigationBarTitleText:"生活圈",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"business_data/asset/index",style:{navigationBarTitleText:"资产",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"manag_statistics/home",style:{navigationBarTitleText:"当面付订单",navigationStyle:"custom",enablePullDownRefresh:!0}},{path:"event_promotion/avtivity/activitys/bargainList",style:{navigationBarTitleText:"天天特价",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"event_promotion/advertise/advertise",style:{navigationBarTitleText:"商户推广",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"manag_statistics/tuangouquan",style:{navigationBarTitleText:"",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"Member/member_store_recharge",style:{navigationBarTitleText:"会员管理",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"Member/balance_list",style:{navigationBarTitleText:"余额明细",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"pay_bill/index",style:{navigationBarTitleText:"当面付收款",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"userRedpacket/userRedpacket",style:{navigationBarTitleText:"可用红包"}}]},{root:"setting",pages:[{path:"setting",style:{navigationBarTitleText:"商家中心",navigationStyle:"custom",navigationBarTextStyle:"black",enablePullDownRefresh:!1}},{path:"functionList/storInfo/index",style:{navigationBarTitleText:"店铺管理",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"selectStores/select",style:{navigationBarTitleText:"切换门店",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"settingMore",style:{navigationBarTitleText:"更多设置",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"functionList/storInfo/basic/basic",style:{navigationBarTitleText:"基本信息",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"functionList/storInfo/basic/qualification",style:{navigationBarTitleText:"营业资质",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"functionList/storInfo/basic/pill",style:{navigationBarTitleText:"支付方式",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"functionList/storInfo/basic/account",style:{navigationBarTitleText:"账户设置",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"functionList/updateInfo/update",style:{navigationBarTitleText:"基本信息设置",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"functionList/accountPassword/password",style:{navigationBarTitleText:"修改密码",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"businessDistStat/index",style:{navigationBarTitleText:"商圈统计",navigationBarTextStyle:"white",enablePullDownRefresh:!1}},{path:"system/index",style:{navigationBarTitleText:"",enablePullDownRefresh:!1}},{path:"system/subscribe",style:{navigationBarTitleText:"模板消息订阅",enablePullDownRefresh:!1}},{path:"businessShow",style:{navigationBarTitleText:"商家秀",navigationStyle:"custom"}},{path:"defaultDisplaySelection",style:{navigationBarTitleText:"默认显示选择",navigationStyle:"custom"}},{path:"pushSetting",style:{navigationBarTitleText:"通知设置",navigationStyle:"custom",enablePullDownRefresh:!1}}]},{root:"shop",pages:[{path:"avtivity/advertise",style:{navigationBarTitleText:"店铺活动",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"avtivity/list/list",style:{navigationBarTitleText:"店铺推广记录",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"avtivity/index",style:{navigationBarTitleText:"店铺活动",navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"avtivity/list/newNotice",style:{navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"avtivity/list/hefuIdex",style:{navigationStyle:"custom"}},{path:"avtivity/list/setting",style:{navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"avtivity/list/updata",style:{navigationStyle:"custom",enablePullDownRefresh:!1}},{path:"avtivity/list/recommend",style:{navigationBarTitleText:"商家推广",enablePullDownRefresh:!1}}]}],globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"祝生意兴隆",navigationBarBackgroundColor:"#fff",backgroundColor:"#e8e8e8"},condition:{current:0,list:[{name:"",path:"",query:""}]}}},"23bd":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"container loading6"},[e("v-uni-view",{staticClass:"shape shape1"}),e("v-uni-view",{staticClass:"shape shape2"}),e("v-uni-view",{staticClass:"shape shape3"}),e("v-uni-view",{staticClass:"shape shape4"})],1)},i=[]},"249b":function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,".digital__roller-wrap[data-v-495ece1e]{\ndisplay:inline-flex;\nflex-direction:row;justify-content:center;align-items:center}.digital__roller[data-v-495ece1e]{overflow:hidden}.digital__roller-column[data-v-495ece1e]{\ndisplay:flex;-webkit-transform:translateZ(0);transform:translateZ(0);\n\n\nalign-items:center;justify-content:center;flex-direction:column;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;\ntransition-timing-function:cubic-bezier(0,1,0,1);\n}.digital__roller-item[data-v-495ece1e]{\ndisplay:flex;\nalign-items:center;justify-content:center;text-align:center}\n.digital__roller-color[data-v-495ece1e]{color:var(#465cff)!important}\n\n",""]),t.exports=e},"24a6":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n}));var n={tnNavBar:a("3703").default,tnCalendar:a("69ca").default,qiunDataCharts:a("cf9e").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{attrs:{id:"crilord"}},[a("v-uni-view",{staticClass:"bg_color"}),a("v-uni-view",{staticClass:"bg_header"},[a("tn-nav-bar",{staticClass:"nav_bar",staticStyle:{color:"#FFFFFF"},attrs:{fixed:!0,beforeBack:t.handleNavBack,backTitle:"",alpha:!0}},[t._v("经营数据")]),a("v-uni-view",{staticClass:"date"},[a("v-uni-view",{staticClass:"date_item",class:{time_active:0==t.days},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onRibao(0)}}},[t._v("日报")]),a("v-uni-view",{staticClass:"date_item",class:{time_active:7==t.days},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onRibao(7)}}},[t._v("周报")]),a("v-uni-view",{staticClass:"date_item",class:{time_active:30==t.days},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onRibao(30)}}},[t._v("月报")]),a("v-uni-view",{staticClass:"date_item",class:{time_active:-1==t.days},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onRibao(-1)}}},[t._v("自定义")])],1),-1==t.days?a("v-uni-view",{staticClass:"time"},[a("tn-calendar",{staticStyle:{"margin-bottom":"100rpx"},attrs:{mode:"date"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.handleStartDateChange.apply(void 0,arguments)}},model:{value:t.calenderStartShow,callback:function(e){t.calenderStartShow=e},expression:"calenderStartShow"}}),a("v-uni-view",{staticClass:"time_left",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.calenderStartShow=!0}}},[t._v(t._s(t.datePicker.start))]),a("v-uni-text",{staticClass:"time_center"},[t._v("——")]),a("tn-calendar",{staticStyle:{"margin-bottom":"100rpx"},attrs:{mode:"date"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.handleEndDateChange.apply(void 0,arguments)}},model:{value:t.calenderEndShow,callback:function(e){t.calenderEndShow=e},expression:"calenderEndShow"}}),a("v-uni-view",{staticClass:"time_right",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.calenderEndShow=!0}}},[t._v(t._s(t.datePicker.end))])],1):t._e(),-1!==t.days?a("v-uni-view",{staticClass:"time"},[a("v-uni-view",{staticClass:"time_left"},[t._v(t._s(t.datePicker.start))]),a("v-uni-text",{staticClass:"time_center"},[t._v("——")]),a("v-uni-view",{staticClass:"time_right"},[t._v(t._s(t.datePicker.end))])],1):t._e()],1),a("v-uni-view",{staticClass:"bg_content"}),a("v-uni-view",{staticClass:"big"},[a("v-uni-view",{staticClass:"bigBox tn-margin-top"},[a("v-uni-view",{staticClass:"title"},[t._v("数据概览")]),a("v-uni-view",{staticClass:"dataOverView"},[a("v-uni-view",{staticClass:"dataItem",style:{backgroundColor:"total_fee"==t.statcenter_type?"#D9F0FF":"#F7F7F7"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onOverView("total_fee","营业额")}}},[a("v-uni-view",{staticClass:"dataItem_title"},[t._v("营业额")]),a("v-uni-view",{staticClass:"dataItem_price"},[t._v(t._s(t.stat.total_fee))])],1),a("v-uni-view",{staticClass:"dataItem",style:{backgroundColor:"net_receipts"==t.statcenter_type?"#D9F0FF":"#F7F7F7"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onOverView("net_receipts","实际收入")}}},[a("v-uni-view",{staticClass:"dataItem_title"},[t._v("实际收入")]),a("v-uni-view",{staticClass:"dataItem_price"},[t._v(t._s(t.stat.net_receipts))])],1),a("v-uni-view",{staticClass:"dataItem",style:{backgroundColor:"total_success_order"==t.statcenter_type?"#D9F0FF":"#F7F7F7"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onOverView("total_success_order","交易笔数")}}},[a("v-uni-view",{staticClass:"dataItem_title"},[t._v("交易笔数(笔)")]),a("v-uni-view",{staticClass:"dataItem_price"},[t._v(t._s(t.stat.total_success_order))])],1),a("v-uni-view",{staticClass:"dataItem",style:{backgroundColor:"member_total"==t.statcenter_type?"#D9F0FF":"#F7F7F7"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onOverView("member_total","顾客数")}}},[a("v-uni-view",{staticClass:"dataItem_title"},[t._v("顾客数(人)")]),a("v-uni-view",{staticClass:"dataItem_price"},[t._v(t._s(t.member_total))])],1),a("v-uni-view",{staticClass:"dataItem",style:{backgroundColor:"avg_pre_order"==t.statcenter_type?"#D9F0FF":"#F7F7F7"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onOverView("avg_pre_order","笔均价")}}},[a("v-uni-view",{staticClass:"dataItem_title"},[t._v("笔均价")]),a("v-uni-view",{staticClass:"dataItem_price"},[t._v(t._s(t.stat.avg_pre_order))])],1)],1),a("v-uni-view",{staticClass:"title"},[t._v(t._s(t.statcenter_title))]),a("v-uni-view",{staticClass:"tn-padding-top-xl tn-padding-bottom-xl"},[t.hasOverviewData?a("v-uni-view",{staticStyle:{"min-height":"500rpx"}},[a("qiun-data-charts",{attrs:{canvas2d:!0,type:"area",opts:t.investOpts,ontouch:!0,inScrollView:!0,chartData:t.investChartData}})],1):a("v-uni-view",{staticClass:"empty-data"},[a("v-uni-view",{staticClass:"empty-icon"},[a("v-uni-text",{staticClass:"tn-icon-info"})],1),a("v-uni-text",{staticClass:"empty-text"},[t._v("暂无数据")])],1)],1)],1),a("v-uni-view",{staticClass:"bigBox payment-method-box"},[a("v-uni-view",{staticClass:"title payment-title"},[a("v-uni-text",{staticClass:"title-text"},[t._v("营业明细")]),a("v-uni-view",{staticClass:"title-line"})],1),a("v-uni-view",{staticClass:"subitlesx"},[t.order_records&&0!==t.order_records.length?a("v-uni-scroll-view",{attrs:{"scroll-x":!0,"scroll-y":!0}},[a("v-uni-view",{staticClass:"table payment-table",style:t.tableStyle},[a("v-uni-view",{staticClass:"table-header"},[a("v-uni-view",{staticClass:"title-cell",staticStyle:{width:"144px"}},[a("v-uni-view",{staticClass:"row"},[t._v("时间")])],1),t._l(t.timeSS,(function(e){return a("v-uni-view",{key:e.id,staticClass:"content-cell"},[a("v-uni-view",{staticClass:"cell"},[t._v(t._s(e.name))])],1)}))],2),a("v-uni-view",{staticClass:"table-content",style:t.tableStyle},t._l(t.order_records,(function(e,n){return a("v-uni-view",{key:e.id,staticClass:"table-content__item",style:{backgroundColor:n%2==0?"":"#F7F7F7"}},[a("v-uni-view",{staticClass:"title-cell"},[a("v-uni-view",{staticClass:"cell"},[t._v(t._s(e.stat_day))])],1),t._l(t.timeSS,(function(n){return a("v-uni-view",{key:n.id,staticClass:"content-cell"},[a("v-uni-view",{staticClass:"cell"},[t._v(t._s(e[n.id]))])],1)}))],2)})),1)],1)],1):a("v-uni-view",{staticClass:"empty-data"},[a("v-uni-view",{staticClass:"empty-icon"},[a("v-uni-text",{staticClass:"tn-icon-info"})],1),a("v-uni-text",{staticClass:"empty-text"},[t._v("暂无数据")])],1)],1)],1),a("v-uni-view",{staticClass:"bigBox payment-method-box"},[a("v-uni-view",{staticClass:"title payment-title"},[a("v-uni-text",{staticClass:"title-text"},[t._v("渠道统计")]),a("v-uni-view",{staticClass:"chart-toggle"},[a("v-uni-view",{staticClass:"toggle-item",class:{active:"table"===t.channelDisplayMode},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.switchChannelDisplayMode("table")}}},[a("v-uni-text",{staticClass:"tn-icon-data-list"}),a("v-uni-text",{staticClass:"toggle-text",staticStyle:{"margin-left":"-20rpx"}},[t._v("数据")])],1),a("v-uni-view",{staticClass:"toggle-item",class:{active:"chart"===t.channelDisplayMode},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.switchChannelDisplayMode("chart")}}},[a("v-uni-text",{staticClass:"tn-icon-chart-bar"}),a("v-uni-text",{staticClass:"toggle-text",staticStyle:{"margin-left":"-20rpx"}},[t._v("图表")])],1)],1),a("v-uni-view",{staticClass:"title-line"})],1),"chart"===t.channelDisplayMode?a("v-uni-view",{staticClass:"tn-padding-top-xl tn-padding-bottom-xl"},[t.hasChannelData?a("v-uni-view",{staticStyle:{"min-height":"500rpx"}},[a("qiun-data-charts",{attrs:{canvas2d:!0,type:"bubble",opts:t.flowOpts,chartData:t.flowChartData}})],1):a("v-uni-view",{staticClass:"empty-data"},[a("v-uni-view",{staticClass:"empty-icon"},[a("v-uni-text",{staticClass:"tn-icon-info"})],1),a("v-uni-text",{staticClass:"empty-text"},[t._v("暂无数据")])],1)],1):a("v-uni-view",{staticClass:"subitlesx tn-margin-top-xs"},[t.filteredChannels&&0!==t.filteredChannels.length?a("v-uni-scroll-view",{attrs:{"scroll-x":!0,"scroll-y":!0}},[a("v-uni-view",{staticClass:"table payment-table",style:t.tableStyle},[a("v-uni-view",{staticClass:"table-header"},[a("v-uni-view",{staticClass:"title-cell",staticStyle:{width:"112px"}},[a("v-uni-view",{staticClass:"row"},[t._v("渠道")])],1),t._l(t.filteredChannelColumns,(function(e){return a("v-uni-view",{key:e.id,staticClass:"content-cell",class:{"total-column":"total_fee"===e.id}},[a("v-uni-view",{staticClass:"cell"},[t._v(t._s(e.name))])],1)}))],2),a("v-uni-view",{staticClass:"table-content",style:t.tableStyle},t._l(t.filteredChannels,(function(e,n){return a("v-uni-view",{key:e.id,staticClass:"table-content__item",style:{backgroundColor:n%2==0?"":"#F7F7F7"}},[a("v-uni-view",{staticClass:"title-cell"},[a("v-uni-view",{staticClass:"cell"},[t._v(t._s(e.order_channel))])],1),t._l(t.filteredChannelColumns,(function(n){return a("v-uni-view",{key:n.id,staticClass:"content-cell"},[a("v-uni-view",{staticClass:"cell",class:{"total-value":"total_fee"===n.id}},[t._v(t._s(e[n.id]))])],1)}))],2)})),1)],1)],1):a("v-uni-view",{staticClass:"empty-data"},[a("v-uni-view",{staticClass:"empty-icon"},[a("v-uni-text",{staticClass:"tn-icon-info"})],1),a("v-uni-text",{staticClass:"empty-text"},[t._v("暂无数据")])],1)],1)],1),a("v-uni-view",{staticClass:"bigBox payment-method-box"},[a("v-uni-view",{staticClass:"title payment-title"},[a("v-uni-text",{staticClass:"title-text"},[t._v("热门商品统计")]),a("v-uni-view",{staticClass:"chart-toggle"},[a("v-uni-view",{staticClass:"toggle-item",class:{active:"table"===t.goodsDisplayMode},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.switchGoodsDisplayMode("table")}}},[a("v-uni-text",{staticClass:"tn-icon-data-list"}),a("v-uni-text",{staticClass:"toggle-text",staticStyle:{"margin-left":"-20rpx"}},[t._v("数据")])],1),a("v-uni-view",{staticClass:"toggle-item",class:{active:"chart"===t.goodsDisplayMode},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.switchGoodsDisplayMode("chart")}}},[a("v-uni-text",{staticClass:"tn-icon-chart-bar"}),a("v-uni-text",{staticClass:"toggle-text",staticStyle:{"margin-left":"-20rpx"}},[t._v("图表")])],1)],1),a("v-uni-view",{staticClass:"title-line"})],1),"chart"===t.goodsDisplayMode?a("v-uni-view",{staticClass:"tn-padding-top-xl tn-padding-bottom-xl"},[a("v-uni-view",{staticStyle:{"min-height":"500rpx"}},[a("qiun-data-charts",{attrs:{canvas2d:!0,type:"bar",opts:t.goodsChartOpts,chartData:t.goodsChartData,"canvas-id":"goods-bar-chart"}})],1)],1):a("v-uni-view",{staticClass:"subitlesx"},[t.goods_records&&0!==t.goods_records.length?a("v-uni-scroll-view",{attrs:{"scroll-x":!0,"scroll-y":!0}},[a("v-uni-view",{staticClass:"table payment-table",style:t.tableStyle},[a("v-uni-view",{staticClass:"table-header"},[a("v-uni-view",{staticClass:"title-cell",staticStyle:{width:"112px"}},[a("v-uni-view",{staticClass:"row"},[t._v("排名")])],1),t._l(t.filteredCommodityStatistics,(function(e){return a("v-uni-view",{key:e.id,staticClass:"content-cell"},[a("v-uni-view",{staticClass:"cell"},[t._v(t._s(e.name))])],1)}))],2),a("v-uni-view",{staticClass:"table-content",style:t.tableStyle},t._l(t.filteredGoodsRecords,(function(e,n){return a("v-uni-view",{key:e.id,staticClass:"table-content__item",style:{backgroundColor:n%2==0?"":"#F7F7F7"}},[a("v-uni-view",{staticClass:"title-cell"},[a("v-uni-view",{staticClass:"cell"},[t._v(t._s(e.goods_id))])],1),t._l(t.filteredCommodityStatistics,(function(n){return a("v-uni-view",{key:n.id,staticClass:"content-cell"},[a("v-uni-view",{staticClass:"cell"},[t._v(t._s(e[n.id]))])],1)}))],2)})),1)],1)],1):a("v-uni-view",{staticClass:"empty-data"},[a("v-uni-view",{staticClass:"empty-icon"},[a("v-uni-text",{staticClass:"tn-icon-info"})],1),a("v-uni-text",{staticClass:"empty-text"},[t._v("暂无数据")])],1)],1)],1),a("v-uni-view",{staticClass:"bigBox payment-method-box"},[a("v-uni-view",{staticClass:"title payment-title"},[a("v-uni-text",{staticClass:"title-text"},[t._v("收款方式")])],1),a("v-uni-view",{staticClass:"subitlesx",staticStyle:{"font-size":"22rpx"}},[0===t.filteredPaytypes.length||0===t.filteredTableColumned.length?a("v-uni-view",{staticClass:"empty-data"},[a("v-uni-view",{staticClass:"empty-icon"},[a("v-uni-text",{staticClass:"tn-icon-info"})],1),a("v-uni-text",{staticClass:"empty-text"},[t._v("暂无数据")])],1):a("v-uni-scroll-view",{attrs:{"scroll-x":!0,"scroll-y":!0}},[a("v-uni-view",{staticClass:"table payment-table",style:t.tableStyle},[a("v-uni-view",{staticClass:"table-header"},[a("v-uni-view",{staticClass:"title-cell"},[a("v-uni-view",{staticClass:"row"},[t._v("渠道/支付方式")])],1),a("v-uni-view",{staticClass:"content-cell total-column"},[a("v-uni-view",{staticClass:"cell"},[t._v("总额")])],1),t._l(t.filteredPaytypes,(function(e){return a("v-uni-view",{key:e.id,staticClass:"content-cell"},[a("v-uni-view",{staticClass:"cell"},[t._v(t._s(e.type))])],1)}))],2),a("v-uni-view",{staticClass:"table-content",style:t.tableStyle},t._l(t.filteredTableColumned,(function(e,n){return a("v-uni-view",{key:e.id,staticClass:"table-content__item",style:{backgroundColor:n%2==0?"":"#F7F7F7"}},[a("v-uni-view",{staticClass:"title-cell"},[a("v-uni-view",{staticClass:"cell"},[t._v(t._s(e.name))])],1),a("v-uni-view",{staticClass:"content-cell total-column"},[a("v-uni-view",{staticClass:"cell total-value"},[t._v(t._s(t.getRowTotal(e.id,n)))])],1),t._l(t.filteredPaytypes,(function(i){return a("v-uni-view",{key:i.id,staticClass:"content-cell"},[a("v-uni-view",{staticClass:"cell payment-value"},[t._v(t._s(t.getPaymentValue(i,e.id,n)))])],1)}))],2)})),1)],1)],1)],1)],1),a("v-uni-view",{staticClass:"bigBox payment-method-box"},[a("v-uni-view",{staticClass:"title payment-title"},[a("v-uni-text",{staticClass:"title-text"},[t._v("新老顾客统计")]),a("v-uni-view",{staticClass:"title-line"})],1),a("v-uni-view",{staticClass:"customer-analysis"},[t.hasCustomerData?a("v-uni-view",{staticClass:"chart-container"},[a("qiun-data-charts",{attrs:{type:"pie",opts:t.customerOpts,chartData:t.customerChartData,canvas2d:!0,canvasId:"customer-pie-chart"}})],1):a("v-uni-view",{staticClass:"empty-data"},[a("v-uni-view",{staticClass:"empty-icon"},[a("v-uni-text",{staticClass:"tn-icon-info"})],1),a("v-uni-text",{staticClass:"empty-text"},[t._v("暂无数据")])],1),a("v-uni-view",{staticClass:"customer-summary"},[a("v-uni-view",{staticClass:"summary-item"},[a("v-uni-view",{staticClass:"summary-title"},[t._v("客户总数")]),a("v-uni-view",{staticClass:"summary-value"},[t._v(t._s(t.statm.total_success||0))])],1),a("v-uni-view",{staticClass:"summary-item new-customer"},[a("v-uni-view",{staticClass:"summary-title"},[t._v("新客户")]),a("v-uni-view",{staticClass:"summary-value"},[t._v(t._s(t.statm.total_success_new||0))]),a("v-uni-view",{staticClass:"summary-percent"},[t._v(t._s(t.statm.percent_new||0)+"%")])],1),a("v-uni-view",{staticClass:"summary-item old-customer"},[a("v-uni-view",{staticClass:"summary-title"},[t._v("老客户")]),a("v-uni-view",{staticClass:"summary-value"},[t._v(t._s(t.statm.total_success_old||0))]),a("v-uni-view",{staticClass:"summary-percent"},[t._v(t._s(t.statm.percent_old||0)+"%")])],1)],1)],1)],1),a("v-uni-view",{staticClass:"safe-area-bottom"})],1)],1)},r=[]},"26b6":function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"loading3",data:function(){return{}}}},"26e1":function(t,e,a){"use strict";a.r(e);var n=a("8f68"),i=a("7b2d");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("68ee");var o=a("828b"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"2a1d6a03",null,!1,n["a"],void 0);e["default"]=s.exports},2729:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("2634")),r=n(a("2fdc"));a("64aa"),a("5ef2"),a("5c47"),a("fd3c"),a("bd06");var o={name:"tn-tabbar",props:{value:{type:[String,Number],default:0},show:{type:Boolean,default:!0},list:{type:Array,default:function(){return[]}},height:{type:Number,default:100},outHeight:{type:Number,default:100},bgColor:{type:String,default:"#FFFFFF"},iconSize:{type:Number,default:40},fontSize:{type:Number,default:24},activeColor:{type:String,default:"#01BEFF"},inactiveColor:{type:String,default:"#AAAAAA"},activeIconColor:{type:String,default:"#01BEFF"},inactiveIconColor:{type:String,default:"#AAAAAA"},activeStyle:{type:Object,default:function(){return{}}},shadow:{type:Boolean,default:!0},animation:{type:Boolean,default:!1},animationMode:{type:String,default:"scale"},fixed:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!1},beforeSwitch:{type:Function,default:null}},computed:{elColor:function(){var t=this;return function(e){var a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.list[e],i="";return i=e===t.value?n["activeColor"]||t.activeColor:n["inactiveColor"]||t.inactiveColor,a?""!==t.$t.color.getFontColorStyle(i)?i:"":""===t.$t.color.getFontColorStyle(i)?i:""}},elIconColor:function(){var t=this;return function(e){var a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.list[e],i="";return i=e===t.value?n["activeIconColor"]||t.activeIconColor:n["inactiveIconColor"]||t.inactiveIconColor,a?""!==t.$t.color.getFontColorStyle(i)?i:"":""===t.$t.color.getFontColorStyle(i)?i+" tn-tabbar__content__item__icon--clip":""}},elIcon:function(){var t=this;return function(e){var a=t.list[e];return e===t.value?a["activeIcon"]:a["inactiveIcon"]}},itemButtonClass:function(){var t=this;return function(e){var a="";return t.list[e]["out"]?(a+="tn-tabbar__content__item__button--out",""===t.$t.color.getFontColorStyle(t.activeIconColor)&&(a+=" ".concat(t.activeIconColor)),t.value===e&&(a+=" tn-tabbar__content__item__button--out--animation--".concat(t.animationMode))):(a+="tn-tabbar__content__item__button",t.value===e&&(a+=" tn-tabbar__content__item__button--animation--".concat(t.animationMode))),a}},itemButtonStyle:function(){var t=this;return function(e){var a={};return t.list[e]["out"]?(""!==t.$t.color.getFontColorStyle(t.activeIconColor)&&(a.backgroundColor=t.activeIconColor),a.width="".concat(t.outHeight-35,"rpx"),a.height="".concat(t.outHeight-35,"rpx"),a.top="-".concat(.15*t.outHeight,"rpx"),a):a}},isImage:function(){var t=this;return function(e){var a=t.list[e]["activeIcon"];return-1!==a.indexOf("/")}}},data:function(){return{outItemLeft:"50%",outItemIndex:-1,tabbatItemInfo:[]}},watch:{},created:function(){this.getOutItemIndex()},mounted:function(){var t=this;this.$nextTick((function(){t.getTabbarItem()}))},methods:{getTabbarItem:function(){for(var t=this,e=uni.createSelectorQuery().in(this),a=0;a<this.list.length;a++)e.select("#tabbar_item_".concat(a)).fields({size:!0,rect:!0});e.exec((function(e){e?(t.tabbatItemInfo=e.map((function(t){return{left:t.left,width:t.width}})),t.updateOutItemLeft()):setTimeout((function(){t.getTabbarItem()}),10)}))},getOutItemIndex:function(){this.outItemIndex=this.list.findIndex((function(t){return t.hasOwnProperty("out")&&t.out}))},clickItemHandler:function(t){var e=this;return(0,r.default)((0,i.default)().mark((function a(){var n;return(0,i.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!e.beforeSwitch||"function"!==typeof e.beforeSwitch){a.next=10;break}if(n=e.beforeSwitch.bind(e.$t.$parent.call(e))(t),!n||"function"!==typeof n.then){a.next=7;break}return a.next=5,n.then((function(a){e.switchTab(t)})).catch((function(t){}));case 5:a.next=8;break;case 7:!0===n&&e.switchTab(t);case 8:a.next=11;break;case 10:e.switchTab(t);case 11:case"end":return a.stop()}}),a)})))()},switchTab:function(t){this.$emit("change",t),this.$emit("input",t)},updateOutItemLeft:function(){var t=this.list.findIndex((function(t){return t.out}));-1!==t&&(this.outItemLeft=this.tabbatItemInfo[t].left+this.tabbatItemInfo[t].width/2+"px")}}};e.default=o},"27e2":function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("f7a5"),a("c223");var i=n(a("2634")),r=n(a("2fdc")),o=n(a("e480")),s=(n(a("7225")),n(a("390e"))),l=n(a("c249")),c=n(a("bec3")),u=n(a("05d8")),d=uni.getSystemInfoSync(),f={data:function(){return{statusBarHeight:d.statusBarHeight/(uni.upx2px(100)/100)+20,stat_day:{start:u.default.formatDate(new Date,"date"),end:u.default.formatDate(new Date,"date")},vipsetting:0,statm:{total_success_old:null},stat:{total_success:0,total_fee:0,final_fee:0,store_final_fee:0,total_success_order:0,total_cancel_order:0,total_cancel_fee:0,avg_pre_order:0,total_scan:0,total_pay:0,percent_success:0,total_success_new:0,total_success_old:0,total_success_new_percent:0,total_success_old_percent:0,rate:50,net_receipts:0},store:{storebd_id:0,storebd_user:{},is_in_business:1},refundStatu:{num:0},supplier_ids:"",is_open:!1}},mounted:function(){this.shopsttin(),this.getList(),this.getListStatus(),this.getIsOpen()},methods:{diyOnShow:function(){this.shopsttin(),this.getList(),this.getListStatus(),this.getVipSetting()},getVipSetting:function(){var t=this;return(0,r.default)((0,i.default)().mark((function e(){var a;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o.default.getVipSetting({});case 2:a=e.sent,t.vipsetting=a.data.is_open;case 4:case"end":return e.stop()}}),e)})))()},getListStatus:function(){var t=this;return(0,r.default)((0,i.default)().mark((function e(){var a,n,r;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=u.default.getStorageSync("__sid"),e.next=3,s.default.takeoutListStatus({sid:a});case 3:for(r in n=e.sent,n.data)7==r&&(t.refundStatu=n.data[r]);case 5:case"end":return e.stop()}}),e)})))()},getList:function(){var t=this;return(0,r.default)((0,i.default)().mark((function e(){var a,n,r,o,s;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t,n=t.util.getStorageSync("__sid"),r=a.stat_day.start.slice(0,10),o=a.stat_day.end.slice(0,10),a.stat_day={start:"".concat(r," ").concat(a.stattime),end:"".concat(o," ").concat(a.endtime)},console.log(t.stat_day),e.next=8,l.default.statcenterHome({days:0,stat_day:a.stat_day,sid:n});case 8:s=e.sent,s&&(a.stat=s.data.stat,a.statm=s.data.statm);case 10:case"end":return e.stop()}}),e)})))()},shopsttin:function(){var t=this;return(0,r.default)((0,i.default)().mark((function e(){var a,n,r;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t,n=t.util.getStorageSync("__sid"),e.next=4,o.default.shopStting({sid:n});case 4:r=e.sent,r&&(a.store=r.data.store,a.manager=r.data.manager,a.notice=r.data.notice,a.order_notice_num=r.data.order_notice_num,a.accept_wechat_notice=r.data.manager.extra.accept_wechat_notice,a.accept_voice_notice=r.data.manager.extra.accept_voice_notice,a.accept_vibrate=r.data.manager.extra.accept_vibrate,a.supplier_ids=r.data.store.supplier_ids);case 6:case"end":return e.stop()}}),e)})))()},getIsOpen:function(){var t=this;return(0,r.default)((0,i.default)().mark((function e(){var a,n;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.util.getStorageSync("__sid"),e.next=3,c.default.isOpen({sid:a});case 3:n=e.sent,t.is_open=n.data.data;case 5:case"end":return e.stop()}}),e)})))()},updateIndex:function(t,e){this.$emit("updateIndex",t,e)},tn:function(t){uni.navigateTo({url:t})}}};e.default=f},2811:function(t,e,a){"use strict";a.r(e);var n=a("a4c4"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},"2afb":function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("64aa");var i=n(a("7caa")),r={mixins:[i.default],name:"tn-list-cell",props:{index:{type:[Number,String],default:"0"},padding:{type:String,default:""},arrow:{type:Boolean,default:!1},arrowRight:{type:Boolean,default:!0},hover:{type:Boolean,default:!1},unlined:{type:Boolean,default:!1},lineLeft:{type:Boolean,default:!0},lineRight:{type:Boolean,default:!0},radius:{type:Boolean,default:!1}},computed:{cellClass:function(){var t="";return this.arrow&&(t+=" tn-list-cell--arrow",this.arrowRight||(t+=" tn-list-cell--arrow--none-right")),this.unlined?t+=" tn-list-cell--unlined":(this.lineLeft&&(t+=" tn-list-cell--line-left"),this.lineRight&&(t+=" tn-list-cell--line-right")),this.radius&&(t+=" tn-list-cell--radius"),t},cellStyle:function(){var t={};return this.backgroundColorStyle&&(t.backgroundColor=this.backgroundColorStyle),this.fontColorStyle&&(t.color=this.fontColorStyle),this.fontSize&&(t.fontSize=this.fontSize+this.fontUnit),this.padding&&(t.padding=this.padding),t}},data:function(){return{}},methods:{handleClick:function(){this.$emit("click",{index:Number(this.index)}),this.$emit("tap",{index:Number(this.index)})}}};e.default=r},"2d0c":function(t,e,a){"use strict";a.r(e);var n=a("f914"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},"2e3d":function(t,e,a){"use strict";a.r(e);var n=a("5886"),i=a("08d9");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("064c");var o=a("828b"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"441c1b16",null,!1,n["a"],void 0);e["default"]=s.exports},"2e47":function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,"uni-page-body[data-v-d1bd44b2]{background:#f7f7f7}body.?%PAGE?%[data-v-d1bd44b2]{background:#f7f7f7}",""]),t.exports=e},"2f34":function(t,e,a){"use strict";(function(t){a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("64aa"),a("d4b5"),a("4626"),a("5ac7"),a("aa9c"),a("fd3c"),a("5c47");var i=n(a("fcf3")),r=(n(a("a13b")),n(a("69d3"))),o=n(a("fe4f"));function s(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,a=new Array(e>1?e-1:0),n=1;n<e;n++)a[n-1]=arguments[n];for(var r in a)for(var o in a[r])a[r].hasOwnProperty(o)&&(t[o]=a[r][o]&&"object"===(0,i.default)(a[r][o])?s(Array.isArray(a[r][o])?[]:{},t[o],a[r][o]):a[r][o]);return t}function l(t){var e=t.getFullYear(),a=t.getMonth()+1,n=t.getDate();a>=1&&a<=9&&(a="0"+a),n>=0&&n<=9&&(n="0"+n);var i=e+"-"+a+"-"+n;return i}var c={name:"qiun-data-charts",mixins:[t.mixinDatacom],props:{type:{type:String,default:null},canvasId:{type:String,default:"uchartsid"},canvas2d:{type:Boolean,default:!1},background:{type:String,default:"rgba(0,0,0,0)"},animation:{type:Boolean,default:!0},chartData:{type:Object,default:function(){return{categories:[],series:[]}}},opts:{type:Object,default:function(){return{}}},eopts:{type:Object,default:function(){return{}}},loadingType:{type:Number,default:2},errorShow:{type:Boolean,default:!0},errorReload:{type:Boolean,default:!0},errorMessage:{type:String,default:null},inScrollView:{type:Boolean,default:!1},reshow:{type:Boolean,default:!1},reload:{type:Boolean,default:!1},disableScroll:{type:Boolean,default:!1},optsWatch:{type:Boolean,default:!0},onzoom:{type:Boolean,default:!1},ontap:{type:Boolean,default:!0},ontouch:{type:Boolean,default:!1},onmouse:{type:Boolean,default:!0},onmovetip:{type:Boolean,default:!1},echartsH5:{type:Boolean,default:!1},echartsApp:{type:Boolean,default:!1},tooltipShow:{type:Boolean,default:!0},tooltipFormat:{type:String,default:void 0},tooltipCustom:{type:Object,default:void 0},startDate:{type:String,default:void 0},endDate:{type:String,default:void 0},textEnum:{type:Array,default:function(){return[]}},groupEnum:{type:Array,default:function(){return[]}},pageScrollTop:{type:Number,default:0},directory:{type:String,default:"/"},tapLegend:{type:Boolean,default:!0},menus:{type:Array,default:function(){return[]}}},data:function(){return{cid:"uchartsid",inWx:!1,inAli:!1,inTt:!1,inBd:!1,inH5:!1,inApp:!1,inWin:!1,type2d:!0,disScroll:!1,openmouse:!1,pixel:1,cWidth:375,cHeight:250,showchart:!1,echarts:!1,echartsResize:{state:!1},uchartsOpts:{},echartsOpts:{},drawData:{},lastDrawTime:null}},created:function(){if(this.cid=this.canvasId,"uchartsid"==this.canvasId||""==this.canvasId){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",e=t.length,a="",n=0;n<32;n++)a+=t.charAt(Math.floor(Math.random()*e));this.cid=a}var i=uni.getSystemInfoSync();"windows"!==i.platform&&"mac"!==i.platform||(this.inWin=!0),this.type2d=!1,this.disScroll=this.disableScroll},mounted:function(){var t=this;this.inH5=!0,!0===this.inWin&&(this.openmouse=this.onmouse),!0===this.echartsH5&&(this.echarts=!0),this.$nextTick((function(){t.beforeInit()}));var e=this.inH5?500:200,a=this;uni.onWindowResize(function(t,e){var a=!1;return function(){var n=arguments,i=this;clearTimeout(a),a&&clearTimeout(a),a=setTimeout((function(){a=!1,t.apply(i,n)}),e)}}((function(t){if(1!=a.mixinDatacomLoading){var e=a.mixinDatacomErrorMessage;null!==e&&"null"!==e&&""!==e||(a.echarts?a.echartsResize.state=!a.echartsResize.state:a.resizeHandler())}}),e))},destroyed:function(){!0===this.echarts?(delete o.default.option[this.cid],delete o.default.instance[this.cid]):(delete r.default.option[this.cid],delete r.default.instance[this.cid]),uni.offWindowResize((function(){}))},watch:{chartDataProps:{handler:function(t,e){"object"===(0,i.default)(t)?JSON.stringify(t)!==JSON.stringify(e)&&(this._clearChart(),t.series&&t.series.length>0?this.beforeInit():(this.mixinDatacomLoading=!0,this.showchart=!1,this.mixinDatacomErrorMessage=null)):(this.mixinDatacomLoading=!1,this._clearChart(),this.showchart=!1,this.mixinDatacomErrorMessage="参数错误:chartData数据类型错误")},immediate:!1,deep:!0},localdata:{handler:function(t,e){JSON.stringify(t)!==JSON.stringify(e)&&(t.length>0?this.beforeInit():(this.mixinDatacomLoading=!0,this._clearChart(),this.showchart=!1,this.mixinDatacomErrorMessage=null))},immediate:!1,deep:!0},optsProps:{handler:function(t,e){"object"===(0,i.default)(t)?JSON.stringify(t)!==JSON.stringify(e)&&!1===this.echarts&&1==this.optsWatch&&this.checkData(this.drawData):(this.mixinDatacomLoading=!1,this._clearChart(),this.showchart=!1,this.mixinDatacomErrorMessage="参数错误:opts数据类型错误")},immediate:!1,deep:!0},eoptsProps:{handler:function(t,e){"object"===(0,i.default)(t)?JSON.stringify(t)!==JSON.stringify(e)&&!0===this.echarts&&this.checkData(this.drawData):(this.mixinDatacomLoading=!1,this.showchart=!1,this.mixinDatacomErrorMessage="参数错误:eopts数据类型错误")},immediate:!1,deep:!0},reshow:function(t,e){var a=this;!0===t&&!1===this.mixinDatacomLoading&&setTimeout((function(){a.mixinDatacomErrorMessage=null,a.echartsResize.state=!a.echartsResize.state,a.checkData(a.drawData)}),200)},reload:function(t,e){!0===t&&(this.showchart=!1,this.mixinDatacomErrorMessage=null,this.reloading())},mixinDatacomErrorMessage:function(t,e){t&&(this.emitMsg({name:"error",params:{type:"error",errorShow:this.errorShow,msg:t,id:this.cid}}),this.errorShow&&console.log("[秋云图表组件]"+t))},errorMessage:function(t,e){t&&this.errorShow&&null!==t&&"null"!==t&&""!==t?(this.showchart=!1,this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=t):(this.showchart=!1,this.mixinDatacomErrorMessage=null,this.reloading())}},computed:{optsProps:function(){return JSON.parse(JSON.stringify(this.opts))},eoptsProps:function(){return JSON.parse(JSON.stringify(this.eopts))},chartDataProps:function(){return JSON.parse(JSON.stringify(this.chartData))}},methods:{beforeInit:function(){this.mixinDatacomErrorMessage=null,"object"===(0,i.default)(this.chartData)&&null!=this.chartData&&void 0!==this.chartData.series&&this.chartData.series.length>0?(this.drawData=s({},this.chartData),this.mixinDatacomLoading=!1,this.showchart=!0,this.checkData(this.chartData)):this.localdata.length>0?(this.mixinDatacomLoading=!1,this.showchart=!0,this.localdataInit(this.localdata)):""!==this.collection?(this.mixinDatacomLoading=!1,this.getCloudData()):this.mixinDatacomLoading=!0},localdataInit:function(t){if(this.groupEnum.length>0)for(var e=0;e<t.length;e++)for(var a=0;a<this.groupEnum.length;a++)t[e].group===this.groupEnum[a].value&&(t[e].group=this.groupEnum[a].text);if(this.textEnum.length>0)for(var n=0;n<t.length;n++)for(var i=0;i<this.textEnum.length;i++)t[n].text===this.textEnum[i].value&&(t[n].text=this.textEnum[i].text);var c=!1,u={categories:[],series:[]},d=[],f=[];if(c=!0===this.echarts?o.default.categories.includes(this.type):r.default.categories.includes(this.type),!0===c){if(this.chartData&&this.chartData.categories&&this.chartData.categories.length>0)d=this.chartData.categories;else if(this.startDate&&this.endDate){var h=new Date(this.startDate),p=new Date(this.endDate);while(h<=p)d.push(l(h)),h=h.setDate(h.getDate()+1),h=new Date(h)}else{var v={};t.map((function(t,e){void 0==t.text||v[t.text]||(d.push(t.text),v[t.text]=!0)}))}u.categories=d}var g={};if(t.map((function(t,e){void 0==t.group||g[t.group]||(f.push({name:t.group,data:[]}),g[t.group]=!0)})),0==f.length)if(f=[{name:"默认分组",data:[]}],!0===c)for(var b=0;b<d.length;b++){for(var m=0,x=0;x<t.length;x++)t[x].text==d[b]&&(m=t[x].value);f[0].data.push(m)}else for(var y=0;y<t.length;y++)f[0].data.push({name:t[y].text,value:t[y].value});else for(var w=0;w<f.length;w++)if(d.length>0)for(var _=0;_<d.length;_++){for(var S=0,C=0;C<t.length;C++)f[w].name==t[C].group&&t[C].text==d[_]&&(S=t[C].value);f[w].data.push(S)}else for(var k=0;k<t.length;k++)f[w].name==t[k].group&&f[w].data.push(t[k].value);u.series=f,this.drawData=s({},u),this.checkData(u)},reloading:function(){!1!==this.errorReload&&(this.showchart=!1,this.mixinDatacomErrorMessage=null,""!==this.collection?(this.mixinDatacomLoading=!1,this.onMixinDatacomPropsChange(!0)):this.beforeInit())},checkData:function(t){var e=this,a=this.cid;!0===this.echarts?(o.default.option[a]=s({},this.eopts),o.default.option[a].id=a,o.default.option[a].type=this.type):this.type&&r.default.type.includes(this.type)?(r.default.option[a]=s({},r.default[this.type],this.opts),r.default.option[a].canvasId=a):(this.mixinDatacomLoading=!1,this.showchart=!1,this.mixinDatacomErrorMessage="参数错误:props参数中type类型不正确");var n=s({},t);void 0!==n.series&&n.series.length>0&&(this.mixinDatacomErrorMessage=null,!0===this.echarts?(o.default.option[a].chartData=n,this.$nextTick((function(){e.init()}))):(r.default.option[a].categories=n.categories,r.default.option[a].series=n.series,this.$nextTick((function(){e.init()}))))},resizeHandler:function(){var t=this,e=Date.now(),a=this.lastDrawTime?this.lastDrawTime:e-3e3,n=e-a;if(!(n<1e3))uni.createSelectorQuery().in(this).select("#ChartBoxId"+this.cid).boundingClientRect((function(e){t.showchart=!0,e.width>0&&e.height>0&&(e.width===t.cWidth&&e.height===t.cHeight||t.checkData(t.drawData))})).exec()},getCloudData:function(){var t=this;1!=this.mixinDatacomLoading&&(this.mixinDatacomLoading=!0,this.mixinDatacomGet().then((function(e){t.mixinDatacomResData=e.result.data,t.localdataInit(t.mixinDatacomResData)})).catch((function(e){t.mixinDatacomLoading=!1,t.showchart=!1,t.mixinDatacomErrorMessage="请求错误:"+e})))},onMixinDatacomPropsChange:function(t,e){1==t&&""!==this.collection&&(this.showchart=!1,this.mixinDatacomErrorMessage=null,this._clearChart(),this.getCloudData())},_clearChart:function(){var t=this.cid;if(!0!==this.echarts&&r.default.option[t]&&r.default.option[t].context){var e=r.default.option[t].context;"object"!==(0,i.default)(e)||r.default.option[t].update||(e.clearRect(0,0,this.cWidth*this.pixel,this.cHeight*this.pixel),e.draw())}},init:function(){var t=this,e=this.cid;uni.createSelectorQuery().in(this).select("#ChartBoxId"+e).boundingClientRect((function(a){a.width>0&&a.height>0?(t.mixinDatacomLoading=!1,t.showchart=!0,t.lastDrawTime=Date.now(),t.cWidth=a.width,t.cHeight=a.height,!0!==t.echarts&&(r.default.option[e].background="rgba(0,0,0,0)"==t.background?"#FFFFFF":t.background,r.default.option[e].canvas2d=t.type2d,r.default.option[e].pixelRatio=t.pixel,r.default.option[e].animation=t.animation,r.default.option[e].width=a.width*t.pixel,r.default.option[e].height=a.height*t.pixel,r.default.option[e].onzoom=t.onzoom,r.default.option[e].ontap=t.ontap,r.default.option[e].ontouch=t.ontouch,r.default.option[e].onmouse=t.openmouse,r.default.option[e].onmovetip=t.onmovetip,r.default.option[e].tooltipShow=t.tooltipShow,r.default.option[e].tooltipFormat=t.tooltipFormat,r.default.option[e].tooltipCustom=t.tooltipCustom,r.default.option[e].inScrollView=t.inScrollView,r.default.option[e].lastDrawTime=t.lastDrawTime,r.default.option[e].tapLegend=t.tapLegend),t.inH5||t.inApp?1==t.echarts?(o.default.option[e].ontap=t.ontap,o.default.option[e].onmouse=t.openmouse,o.default.option[e].tooltipShow=t.tooltipShow,o.default.option[e].tooltipFormat=t.tooltipFormat,o.default.option[e].tooltipCustom=t.tooltipCustom,o.default.option[e].lastDrawTime=t.lastDrawTime,t.echartsOpts=s({},o.default.option[e])):(r.default.option[e].rotateLock=r.default.option[e].rotate,t.uchartsOpts=s({},r.default.option[e])):(r.default.option[e]=function t(e,a){for(var n in e)e.hasOwnProperty(n)&&null!==e[n]&&"object"===(0,i.default)(e[n])?t(e[n],a):"format"===n&&"string"===typeof e[n]&&(e["formatter"]=a[e[n]]?a[e[n]]:void 0);return e}(r.default.option[e],r.default.formatter),t.mixinDatacomErrorMessage=null,t.mixinDatacomLoading=!1,t.showchart=!0,t.$nextTick((function(){if(!0===t.type2d){var n=uni.createSelectorQuery().in(t);n.select("#"+e).fields({node:!0,size:!0}).exec((function(n){if(n[0]){var i=n[0].node,o=i.getContext("2d");r.default.option[e].context=o,r.default.option[e].rotateLock=r.default.option[e].rotate,r.default.instance[e]&&r.default.option[e]&&!0===r.default.option[e].update?t._updataUChart(e):(i.width=a.width*t.pixel,i.height=a.height*t.pixel,i._width=a.width*t.pixel,i._height=a.height*t.pixel,setTimeout((function(){r.default.option[e].context.restore(),r.default.option[e].context.save(),t._newChart(e)}),100))}else t.showchart=!1,t.mixinDatacomErrorMessage="参数错误:开启2d模式后,未获取到dom节点,canvas-id:"+e}))}else t.inAli&&(r.default.option[e].rotateLock=r.default.option[e].rotate),r.default.option[e].context=uni.createCanvasContext(e,t),r.default.instance[e]&&r.default.option[e]&&!0===r.default.option[e].update?t._updataUChart(e):setTimeout((function(){r.default.option[e].context.restore(),r.default.option[e].context.save(),t._newChart(e)}),100)})))):(t.mixinDatacomLoading=!1,t.showchart=!1,1==t.reshow&&(t.mixinDatacomErrorMessage="布局错误:未获取到父元素宽高尺寸!canvas-id:"+e))})).exec()},saveImage:function(){var t=this;uni.canvasToTempFilePath({canvasId:this.cid,success:function(e){var a=document.createElement("a");a.href=e.tempFilePath,a.download=t.cid,a.target="_blank",a.click()}},this)},getImage:function(){var t=this;if(0==this.type2d)uni.canvasToTempFilePath({canvasId:this.cid,success:function(e){t.emitMsg({name:"getImage",params:{type:"getImage",base64:e.tempFilePath}})}},this);else{var e=uni.createSelectorQuery().in(this);e.select("#"+this.cid).fields({node:!0,size:!0}).exec((function(e){if(e[0]){var a=e[0].node;t.emitMsg({name:"getImage",params:{type:"getImage",base64:a.toDataURL("image/png")}})}}))}},_error:function(t){this.mixinDatacomErrorMessage=t.detail.errMsg},emitMsg:function(t){this.$emit(t.name,t.params)},getRenderType:function(){!0===this.echarts&&!1===this.mixinDatacomLoading&&this.beforeInit()},toJSON:function(){return this}}};e.default=c}).call(this,a("861b")["uniCloud"])},"31f5":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"container loading2"},[e("v-uni-view",{staticClass:"shape shape1"}),e("v-uni-view",{staticClass:"shape shape2"}),e("v-uni-view",{staticClass:"shape shape3"}),e("v-uni-view",{staticClass:"shape shape4"})],1)},i=[]},3228:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"loading5",data:function(){return{}}}},"323a":function(t,e,a){"use strict";var n=a("a37e"),i=a.n(n);i.a},3402:function(t,e,a){var n=a("225d");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("6f30251e",n,!0,{sourceMap:!1,shadowMode:!1})},3471:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var a="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=(0,n.default)(t))||e&&t&&"number"===typeof t.length){a&&(t=a);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return s=t.done,t},e:function(t){l=!0,o=t},f:function(){try{s||null==a["return"]||a["return"]()}finally{if(l)throw o}}}},a("01a2"),a("e39c"),a("bf0f"),a("844d"),a("18f7"),a("de6c"),a("7a76"),a("c9b5");var n=function(t){return t&&t.__esModule?t:{default:t}}(a("5d6b"))},3532:function(t,e,a){"use strict";a.r(e);var n=a("2f34"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},3811:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("64aa"),a("c223"),a("5c47"),a("a1c1"),a("fd3c"),a("f7a5"),a("08eb"),a("18f7"),a("bf0f"),a("de6c");var i=n(a("6d95")),r={name:"tn-calendar",props:{value:{type:Boolean,default:!1},mode:{type:String,default:"date"},changeYear:{type:Boolean,default:!0},changeMonth:{type:Boolean,default:!0},maxYear:{type:[Number,String],default:2100},minYear:{type:[Number,String],default:1970},minDate:{type:String,default:"1970-01-01"},maxDate:{type:String,default:""},monthArrowColor:{type:String,default:"#AAAAAA"},yearArrowColor:{type:String,default:"#C8C8C8"},color:{type:String,default:"#080808"},activeBgColor:{type:String,default:"#01BEFF"},activeColor:{type:String,default:"#FFFFFF"},rangeBgColor:{type:String,default:"#E6E6E655"},rangeColor:{type:String,default:"#01BEFF"},startText:{type:String,default:"开始"},endText:{type:String,default:"结束"},btnColor:{type:String,default:"#01BEFF"},lunarColor:{type:String,default:"#AAAAAA"},isActiveCurrent:{type:Boolean,default:!0},isChange:{type:Boolean,default:!1},showLunar:{type:Boolean,default:!0},toolTips:{type:String,default:"请选择日期"},borderRadius:{type:Number,default:8},safeAreaInsetBottom:{type:Boolean,default:!1},maskCloseable:{type:Boolean,default:!0},zIndex:{type:Number,default:0},closeBtn:{type:Boolean,default:!1}},computed:{dateChange:function(){return"".concat(this.mode,"-").concat(this.minDate,"-").concat(this.maxDate)},elIndex:function(){return this.zIndex?this.zIndex:this.$t.zIndex.popup},colorValue:function(){var t=this;return function(e,a){var n="bg"===a?"":t.color,i=e+1,r="".concat(t.year,"-").concat(t.month,"-").concat(i),o=new Date(r.replace(/\-/g,"/")).getTime(),s=t.startDate.replace(/\-/g,"/"),l=t.endDate.replace(/\-/g,"/");return"date"===t.mode&&t.isActiveCurrent&&t.activeDate==r||t.startDate==r||t.endDate==r?n="bg"===a?t.activeBgColor:t.activeColor:t.endDate&&o>new Date(s).getTime()&&o<new Date(l).getTime()&&(n="bg"===a?t.rangeBgColor:t.rangeColor),n}}},data:function(){return{weekday:1,weekdayArr:[],weekDayZh:["日","一","二","三","四","五","六"],days:0,daysArr:[],year:2021,month:0,day:0,startYear:0,startMonth:0,startDay:0,endYear:0,endMonth:0,endDay:0,today:"",activeDate:"",startDate:"",endDate:"",min:null,max:null,dateTitle:"",chooseStart:!1}},watch:{dateChange:function(){this.init()}},created:function(){this.init()},methods:{init:function(){var t=new Date;this.year=t.getFullYear(),this.month=t.getMonth()+1,this.day=t.getDate(),this.today="".concat(this.year,"-").concat(this.month,"-").concat(this.day),this.activeDate=this.today,this.min=this.initDate(this.minDate),this.max=this.initDate(this.maxDate||this.today),this.startDate="",this.startYear=0,this.startMonth=0,this.startDay=0,this.endDate="",this.endYear=0,this.endMonth=0,this.endDay=0,this.chooseStart=!1,this.changeData()},changeMonthHandler:function(t){if(t){var e=this.month+1,a=e>12?this.year+1:this.year;this.checkRange(a)||(this.month=e>12?1:e,this.year=a,this.changeData())}else{var n=this.month-1,i=n<1?this.year-1:this.year;this.checkRange(i)||(this.month=n<1?12:n,this.year=i,this.changeData())}},changeYearHandler:function(t){var e=t?this.year+1:this.year-1;this.checkRange(e)||(this.year=e,this.changeData())},dateClick:function(t){if(t+=1,!this.disabledChoose(this.year,this.month,t)){this.day=t;var e="".concat(this.year,"-").concat(this.month,"-").concat(t);if("date"===this.mode)this.activeDate=e;else{var a=new Date(e.replace(/\-/g,"/")).getTime()<new Date(this.startDate.replace(/\-/g,"/")).getTime();!this.chooseStart||a?(this.startDate=e,this.startYear=this.year,this.startMonth=this.month,this.startDay=this.day,this.endYear=0,this.endMonth=0,this.endDay=0,this.endDate="",this.activeDate="",this.chooseStart=!0):(this.endDate=e,this.endYear=this.year,this.endMonth=this.month,this.endDay=this.day,this.chooseStart=!1)}this.daysArr=this.handleDaysArr()}},changeData:function(){this.days=this.getMonthDay(this.year,this.month),this.daysArr=this.handleDaysArr(),this.weekday=this.getMonthFirstWeekDay(this.year,this.month),this.weekdayArr=this.generateArray(1,this.weekday),this.dateTitle="".concat(this.year,"年").concat(this.month,"月"),this.isChange&&"date"===this.mode&&this.handleBtnClick(!0)},handleBtnClick:function(t){if(t||this.close(),"date"===this.mode){var e=this.activeDate.split("-"),a=this.isChange?this.year:Number(e[0]),n=this.isChange?this.month:Number(e[1]),i=this.isChange?this.day:Number(e[2]),r=this.getMonthDay(a,n),o="".concat(a,"-").concat(this.formatNumber(n),"-").concat(this.formatNumber(i)),s=this.getWeekText(o),l=!1;"".concat(a,"-").concat(n,"-").concat(i)===this.today&&(l=!0),this.$emit("change",{year:a,month:n,day:i,days:r,week:s,isToday:l,date:o,switch:t})}else{if(!this.startDate||!this.endDate)return;var c=this.formatNumber(this.startMonth),u=this.formatNumber(this.startDay),d="".concat(this.startYear,"-").concat(c,"-").concat(u),f=this.getWeekText(d),h=this.formatNumber(this.endMonth),p=this.formatNumber(this.endDay),v="".concat(this.endYear,"-").concat(h,"-").concat(p),g=this.getWeekText(v);this.$emit("change",{startYear:this.startYear,startMonth:this.startMonth,startDay:this.startDay,startDate:d,startWeek:f,endYear:this.endYear,endMonth:this.endMonth,endDay:this.endDay,endDate:v,endWeek:g})}},disabledChoose:function(t,e,a){var n=!0,i="".concat(t,"/").concat(e,"/").concat(a),r="".concat(this.min.year,"/").concat(this.min.month,"/").concat(this.min.day),o="".concat(this.max.year,"/").concat(this.max.month,"/").concat(this.max.day),s=new Date(i).getTime();return s>=new Date(r).getTime()&&s<=new Date(o).getTime()&&(n=!1),n},checkRange:function(t){var e=!1;return(t<this.minYear||t>this.maxYear)&&(uni.showToast({title:"所选日期超出范围",icon:"none"}),e=!0),e},initDate:function(t){var e=t.split("-");return{year:Number(e[0]||1970),month:Number(e[1]||1),day:Number(e[2]||1)}},handleDaysArr:function(){var t=this,e=this.generateArray(1,this.days),a=e.map((function(e){var a=t.showLunar?i.default.solar2lunar(t.year,t.month,e).IDayCn:"",n=t.showLunar?t.lunarColor:t.activeColor;return("date"===t.mode&&t.day==e||"range"===t.mode&&(t.startDay==e||t.endDay==e))&&(n=t.activeColor),"range"===t.mode&&(t.startDay==e&&t.startDay!=t.endDay&&(a=t.startText),t.endDay==e&&(a=t.endText)),{day:e,color:n,bottomInfo:a}}));return a},getMonthDay:function(t,e){return new Date(t,e,0).getDate()},getMonthFirstWeekDay:function(t,e){return new Date("".concat(t,"/").concat(e,"/01 00:00:00")).getDay()},getWeekText:function(t){t=new Date("".concat(t.replace(/\-/g,"/")," 00:00:00"));var e=t.getDay();return"星期"+this.weekDayZh[e]},generateArray:function(t,e){return Array.from(new Array(e+1).keys()).slice(t)},formatNumber:function(t){return t<10?"0"+t:t+""},close:function(){this.$emit("input",!1)}}};e.default=r},"390e":function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.ItemsRefunded=y,e.calculateRefund=f,e.cancelOrderApi=T,e.categoryList=x,e.default=void 0,e.getIsReserveNumApi=P,e.getOrderIdByOrderSnApi=void 0,e.getThirdDeliveryResult=D,e.mealServedApi=k,e.operationsManagement=w,e.orderStatus=_,e.partialRefund=d,e.print=S,e.selfdelivery=C,e.sendOrderBySelfApi=A,e.setting=s,e.storeList=m,e.subRefund=h,e.takeoutDetail=c,e.takeoutDetailNoNeedLoginApi=u,e.takeoutList=l,e.takeoutListStatus=o,e.tangshiList=p,e.thirdDeliveryOption=E,e.tsOrderCancel=g,e.tsOrderPay=b,e.tsOrderStatus=v;var i=n(a("9b1b")),r=n(a("5b42"));function o(t){return r.default.get("api/manage.order.order/statusStatistic",{params:t})}function s(t){return r.default.get("api/manage.order.order/setting",{params:t})}function l(t){return r.default.get("api/manage.order.order/list",{params:t})}function c(t){return r.default.get("api/manage.order.order/detail",{params:t})}function u(t){return r.default.get("api/manage.order.order/detailNoNeedLogin",{params:t})}function d(t){return r.default.get("api/manage.order.order/refund",{params:t})}function f(t){return r.default.post("api/manage.order.order/refundCalculate",t)}function h(t){return r.default.post("api/manage.order.order/refund",t)}function p(t){return r.default.get("api/manage.order.tangshi/list",{params:t})}function v(t){return r.default.post("api/manage.order.tangshi/status",t)}function g(t){return r.default.get("api/manage.order.tangshi/cancel",{params:t})}function b(t){return r.default.get("api/manage.order.tangshi/pay_status",{params:t})}function m(t){return r.default.post("api/manage.user.user/storeList",t)}function x(t,e){return r.default.get("api/manage.goods.category/list",{params:t})}function y(t,e){return util.request((0,i.default)({method:"post",url:"manage/order/takeout/refund_calculate",data:t},e))}function w(t,e){return util.request((0,i.default)({method:"get",url:"manage/shop/index/index",data:t},e))}function _(t){return r.default.post("api/manage.order.order/status",t)}function S(t){return r.default.post("api/manage.order.order/print",t)}function C(t){return r.default.post("api/manage.order.order/selfdelivery",t)}function k(t){return r.default.post("api/manage.order.order/mealServed",{id:t})}function T(t){return r.default.get("api/manage.order.order/cancel",{params:t})}function A(t){return r.default.post("api/manage.order.order/sendOrderBySelf",t)}function P(t){return r.default.get("api/manage.order.order/getIsReserveNum",{params:t})}var O=function(t){return r.default.get("api/manage.order.order/getOrderIdByOrderSn",{params:t})};function D(t){return r.default.get("api/manage.order.order/getThirdDeliveryResult",{params:t})}function E(t){return r.default.post("api/manage.order.order/thirdDeliveryOption",t)}e.getOrderIdByOrderSnApi=O;var I={thirdDeliveryOption:E,getThirdDeliveryResult:D,calculateRefund:f,takeoutListStatus:o,setting:s,takeoutList:l,operationsManagement:w,takeoutDetail:c,partialRefund:d,tangshiList:p,storeList:m,categoryList:x,ItemsRefunded:y,subRefund:h,orderStatus:_,tsOrderStatus:v,tsOrderCancel:g,tsOrderPay:b,print:S,selfdelivery:C,mealServedApi:k,cancelOrderApi:T,sendOrderBySelfApi:A,getIsReserveNumApi:P,getOrderIdByOrderSnApi:O,takeoutDetailNoNeedLoginApi:u};e.default=I},"39e1":function(t,e,a){var n=a("1fb9");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("b86e51be",n,!0,{sourceMap:!1,shadowMode:!1})},"3a59":function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.getAppVersion=r;var i=n(a("5b42"));function r(t){return i.default.get("api/manage.system.AppVersion/app_version",{params:t})}var o={getAppVersion:r};e.default=o},"3acd":function(t,e,a){"use strict";a.r(e);var n=a("702a"),i=a("4c0e");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("f313");var o=a("828b"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"26d1a264",null,!1,n["a"],void 0);e["default"]=s.exports},"3bec":function(t,e,a){var n=a("6017");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("7b725aa1",n,!0,{sourceMap:!1,shadowMode:!1})},"3c89":function(t,e,a){"use strict";var n=a("bdbb").default;a("6a54"),a("7a76"),a("c9b5"),a("8a8d"),a("5c47"),a("af8f"),a("926e"),a("a1c1"),a("aa9c"),Object.defineProperty(e,"__esModule",{value:!0}),e.codabar=void 0;var i=function(){function t(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,a,n){return a&&t(e.prototype,a),n&&t(e,n),e}}(),r=a("822a"),o=function(t){return t&&t.__esModule?t:{default:t}}(r);var s=function(t){function e(t,a){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,e),0===t.search(/^[0-9\-\$\:\.\+\/]+$/)&&(t="A"+t+"A");var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==n(e)&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.toUpperCase(),a));return i.text=i.options.text||i.text.replace(/[A-D]/g,""),i}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+n(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)}},{key:"encode",value:function(){for(var t=[],e=this.getEncodings(),a=0;a<this.data.length;a++)t.push(e[this.data.charAt(a)]),a!==this.data.length-1&&t.push("0");return{text:this.text,data:t.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"101100110011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),e}(o.default);e.codabar=s},"3cca":function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"loading2",data:function(){return{}}}},"3f18":function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,".container[data-v-c31bb498]{width:30px;height:30px;position:relative;margin-top:%?200?%}.container.loading6[data-v-c31bb498]{-webkit-animation:rotation 1s infinite;animation:rotation 1s infinite}.container.loading6 .shape[data-v-c31bb498]{width:12px;height:12px;border-radius:2px}.container .shape[data-v-c31bb498]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-c31bb498]{left:0;background-color:#4b98fe}.container .shape.shape2[data-v-c31bb498]{right:0;background-color:#00d05e}.container .shape.shape3[data-v-c31bb498]{bottom:0;background-color:#ffac00}.container .shape.shape4[data-v-c31bb498]{bottom:0;right:0;background-color:#fb6a67}.loading6 .shape1[data-v-c31bb498]{-webkit-animation:animation6shape1-data-v-c31bb498 2s linear 0s infinite normal;animation:animation6shape1-data-v-c31bb498 2s linear 0s infinite normal}@-webkit-keyframes animation6shape1-data-v-c31bb498{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(18px);transform:translateY(18px)}50%{-webkit-transform:translate(18px,18px);transform:translate(18px,18px)}75%{-webkit-transform:translate(18px);transform:translate(18px)}}@keyframes animation6shape1-data-v-c31bb498{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(18px);transform:translateY(18px)}50%{-webkit-transform:translate(18px,18px);transform:translate(18px,18px)}75%{-webkit-transform:translate(18px);transform:translate(18px)}}.loading6 .shape2[data-v-c31bb498]{-webkit-animation:animation6shape2-data-v-c31bb498 2s linear 0s infinite normal;animation:animation6shape2-data-v-c31bb498 2s linear 0s infinite normal}@-webkit-keyframes animation6shape2-data-v-c31bb498{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(-18px);transform:translate(-18px)}50%{-webkit-transform:translate(-18px,18px);transform:translate(-18px,18px)}75%{-webkit-transform:translateY(18px);transform:translateY(18px)}}@keyframes animation6shape2-data-v-c31bb498{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(-18px);transform:translate(-18px)}50%{-webkit-transform:translate(-18px,18px);transform:translate(-18px,18px)}75%{-webkit-transform:translateY(18px);transform:translateY(18px)}}.loading6 .shape3[data-v-c31bb498]{-webkit-animation:animation6shape3-data-v-c31bb498 2s linear 0s infinite normal;animation:animation6shape3-data-v-c31bb498 2s linear 0s infinite normal}@-webkit-keyframes animation6shape3-data-v-c31bb498{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(18px);transform:translate(18px)}50%{-webkit-transform:translate(18px,-18px);transform:translate(18px,-18px)}75%{-webkit-transform:translateY(-18px);transform:translateY(-18px)}}@keyframes animation6shape3-data-v-c31bb498{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(18px);transform:translate(18px)}50%{-webkit-transform:translate(18px,-18px);transform:translate(18px,-18px)}75%{-webkit-transform:translateY(-18px);transform:translateY(-18px)}}.loading6 .shape4[data-v-c31bb498]{-webkit-animation:animation6shape4-data-v-c31bb498 2s linear 0s infinite normal;animation:animation6shape4-data-v-c31bb498 2s linear 0s infinite normal}@-webkit-keyframes animation6shape4-data-v-c31bb498{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(-18px);transform:translateY(-18px)}50%{-webkit-transform:translate(-18px,-18px);transform:translate(-18px,-18px)}75%{-webkit-transform:translate(-18px);transform:translate(-18px)}}@keyframes animation6shape4-data-v-c31bb498{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(-18px);transform:translateY(-18px)}50%{-webkit-transform:translate(-18px,-18px);transform:translate(-18px,-18px)}75%{-webkit-transform:translate(-18px);transform:translate(-18px)}}",""]),t.exports=e},"3f7f":function(t,e,a){"use strict";var n=a("b24b"),i=a.n(n);i.a},4085:function(t,e,a){"use strict";var n=a("8bdb"),i=a("85c1");n({global:!0,forced:i.globalThis!==i},{globalThis:i})},"43d1":function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.ITF14=e.ITF=void 0;var n=a("0d41"),i=s(n),r=a("460f"),o=s(r);function s(t){return t&&t.__esModule?t:{default:t}}e.ITF=i.default,e.ITF14=o.default},"453d":function(t,e,a){"use strict";a.r(e);var n=a("2afb"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},"45a5":function(t,e,a){var n=a("4ad4");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("433a08c6",n,!0,{sourceMap:!1,shadowMode:!1})},"460f":function(t,e,a){"use strict";var n=a("bdbb").default;a("6a54"),a("7a76"),a("c9b5"),a("8a8d"),a("473f"),a("bf0f"),a("fd3c"),a("e966"),a("5c47"),a("af8f"),a("926e"),Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,a,n){return a&&t(e.prototype,a),n&&t(e,n),e}}(),r=a("0d41"),o=function(t){return t&&t.__esModule?t:{default:t}}(r);var s=function(t){var e=t.substr(0,13).split("").map((function(t){return parseInt(t,10)})).reduce((function(t,e,a){return t+e*(3-a%2*2)}),0);return 10*Math.ceil(e/10)-e},l=function(t){function e(t,a){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{13}$/)&&(t+=s(t)),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==n(e)&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,a))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+n(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{14}$/)&&+this.data[13]===s(this.data)}}]),e}(o.default);e.default=l},4640:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"qiun-error",props:{errorMessage:{type:String,default:null}},data:function(){return{}}};e.default=n},"49cc":function(t,e,a){var n=a("249b");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("aa538310",n,!0,{sourceMap:!1,shadowMode:!1})},"4a76":function(t,e,a){"use strict";a.r(e);var n=a("31f5"),i=a("9ff3");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("51ff");var o=a("828b"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"2ef93b2c",null,!1,n["a"],void 0);e["default"]=s.exports},"4ad4":function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */uni-page-body[data-v-26d1a264]{background-color:#f3f5f9}body.?%PAGE?%[data-v-26d1a264]{background-color:#f3f5f9}.sp-ico[data-v-26d1a264]{width:%?60?%;height:%?60?%}.sp-top-radius[data-v-26d1a264]{border-radius:8px 8px 0 0}.sp-bottom-radius[data-v-26d1a264]{border-radius:0 0 8px 8px}.manager-tips[data-v-26d1a264]{font-size:14px;text-align:center;padding:5px 15px 20px;color:#999}.weui-btn[data-v-26d1a264]{margin:15px;background-color:#33aafc;color:#fff}.merchant[data-v-26d1a264]{background:linear-gradient(180deg,#fff,#f9fcfe,#e7f4fc);border-radius:0 0 %?40?% %?40?%;padding:%?40?% 0 %?60?% %?40?%}.merchant .merchant_a[data-v-26d1a264]{position:relative;width:100%}.merchant .img_css[data-v-26d1a264]{width:%?120?%;height:%?120?%;position:absolute;right:%?100?%;top:%?20?%}.merchant .confirm-btn[data-v-26d1a264]{position:absolute;right:%?60?%;bottom:%?5?%;color:#58a8f5}.posedtion[data-v-26d1a264]{position:relative;top:%?-60?%}\n/* 页面 start*/.shangpu-shadow[data-v-26d1a264]{border-radius:%?15?%}.setting-btn[data-v-26d1a264]{padding:%?6?% %?20?%;background-color:#33aafc;color:#fff;border-radius:%?25?%;font-size:%?26?%;margin-right:%?20?%}',""]),t.exports=e},"4b5e":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"container loading3"},[e("v-uni-view",{staticClass:"shape shape1"}),e("v-uni-view",{staticClass:"shape shape2"}),e("v-uni-view",{staticClass:"shape shape3"}),e("v-uni-view",{staticClass:"shape shape4"})],1)},i=[]},"4c0e":function(t,e,a){"use strict";a.r(e);var n=a("59cf"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},"4c82":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n}));var n={tnTabbar:a("5e05").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[0==t.currentIndex?a("order",{ref:"orderRef"}):t._e(),1==t.currentIndex?a("tangshi",{ref:"tangshiRef"}):t._e(),2==t.currentIndex?a("business",{ref:"businessRef",on:{updateIndex:function(e){arguments[0]=e=t.$handleEvent(e),t.updateIndex.apply(void 0,arguments)}}}):t._e(),3==t.currentIndex?a("statcenter",{ref:"statRef"}):t._e(),4==t.currentIndex?a("setUp",{ref:"setUpRef"}):t._e(),a("tn-tabbar",{attrs:{list:t.tabbarList},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTabbar.apply(void 0,arguments)}},model:{value:t.currentIndex,callback:function(e){t.currentIndex=e},expression:"currentIndex"}})],1)},r=[]},"4fa9":function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={appid:"__UNI__4AC6F03"}},5007:function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.thumb[data-v-4453c55f]{width:%?100?%;border-radius:%?12?%;margin-right:%?12?%}.qrcode[data-v-4453c55f]{margin-bottom:%?10?%;display:flex;align-items:center}.qrcode p[data-v-4453c55f]{color:#999;font-family:PingFang SC;font-size:%?26?%}.qrcode .eye[data-v-4453c55f]{display:flex;padding:4px 8px;justify-content:center;align-items:center;gap:%?4?%;border-radius:%?6?%;background:#e2e7ee;margin-left:%?12?%}.qrcode .eye .eye-code[data-v-4453c55f]{color:#707a87;font-family:PingFang SC;font-size:%?22?%;font-style:normal;font-weight:400;display:inline-block;vertical-align:middle;margin-left:%?6?%}.i_header_top[data-v-4453c55f]{position:fixed;z-index:1000;padding:%?60?% 0;width:100%;background:linear-gradient(117deg,#32baee,#3a91f8)}.avatar-tips[data-v-4453c55f]{color:#fff}.tl-but[data-v-4453c55f]{position:relative;left:10px;font-size:%?24?%;display:flex;align-items:center;flex-direction:column;padding:%?5?%;border-radius:%?10?%}.tl-but .tips[data-v-4453c55f]{position:absolute;top:%?-10?%;right:%?-24?%;color:#fff;background-color:red;z-index:1000;border-radius:50%}.navbar[data-v-4453c55f]{display:flex;justify-content:center;align-items:center;position:relative;padding:%?20?%}.tabs[data-v-4453c55f]{color:#fff;padding:%?30?% 10px 0 10px;display:flex;z-index:100;padding-top:20px;left:0;right:0}.tabs .tabs-item[data-v-4453c55f]{width:20%;display:flex;flex-flow:column nowrap;align-items:center;justify-content:space-between;position:relative}.tabs .tabs-item .tabs-tips[data-v-4453c55f]{position:absolute;top:%?-20?%;right:0;background-color:#fff;color:#389cf5;z-index:1000;border-radius:50%}.tabs .tabs-item .tabs-tips[data-v-4453c55f] .tn-badge{padding:2px 6px;font-size:8px;background-color:#fff}.tabs .tabs-item .title[data-v-4453c55f]{font-size:%?26?%;color:#f5f5f5;margin-bottom:%?16?%}.tabs-item.active .title[data-v-4453c55f]{font-size:%?30?%;font-weight:600;padding-bottom:%?16?%;color:#fff;border-bottom:2px solid #fff}.i_body[data-v-4453c55f]{width:100%;height:100%}.i_body_top[data-v-4453c55f]{position:fixed;z-index:1000;top:%?150?%;border-radius:16px 16px 0 0;margin-top:%?30?%;background-color:#f5f5f5;width:100%;justify-content:space-between;align-items:center;padding:10px 15px}.search__input[data-v-4453c55f]{flex-grow:1;font-size:10px;border:%?1?% solid #33aafc;background-color:#fff;padding:2px;border-radius:88px;justify-content:space-between;align-items:center;font-size:13px}.search__input--icon[data-v-4453c55f]{padding:0 %?15?%}.search__input--input[data-v-4453c55f]{flex-grow:1;width:100%;font-size:13px;border:none;outline:none;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding:0 %?5?%}.no-data .no-data_img[data-v-4453c55f]{display:flex;align-items:center;margin:auto;margin-top:%?200?%;width:%?200?%;height:%?200?%}.no-data .shuju[data-v-4453c55f]{text-align:center;margin:auto;margin-top:%?88?%;color:#768491}.center[data-v-4453c55f]{background-color:#f5f5f5;min-height:100vh;overflow-y:auto}.order_list[data-v-4453c55f]{margin:auto;width:98%;overflow-y:auto;padding-top:%?280?%}.order_box[data-v-4453c55f]{margin:0 %?20?% %?20?% %?20?%;background-color:#fff;border-radius:8px;padding:%?20?%;position:relative}.bubble_body[data-v-4453c55f]{position:absolute;bottom:%?80?%;right:%?15?%}.bubble[data-v-4453c55f]{margin-left:%?35?%;height:0;width:0;border-top:%?20?% solid #fff;border-right:%?20?% solid transparent;border-bottom:%?20?% solid transparent;border-left:%?20?% solid transparent}.bubble-content[data-v-4453c55f]{padding:%?5?% %?20?%;background-color:#fff;border-radius:%?14?%;box-shadow:0 -1px 4px #efefef}.tn-strip-bottom-min[data-v-4453c55f]{margin:auto;border-bottom:%?1?% solid #000}.commission_details_body[data-v-4453c55f]{position:absolute;bottom:8px;left:50px}.commission_details[data-v-4453c55f]{margin-left:%?35?%;height:0;width:0;border-top:%?20?% solid #fff;border-right:%?20?% solid transparent;border-bottom:%?18?% solid transparent;border-left:%?20?% solid transparent}.commission_details_content[data-v-4453c55f]{padding:%?5?% %?20?%;background-color:#fff;border-radius:%?14?%;box-shadow:0 -1px 4px #efefef}.hx[data-v-4453c55f]{height:1px;width:100%;background-color:rgba(0,0,0,.05)}\n/* 父容器样式 */.loading[data-v-4453c55f]{position:fixed;z-index:19080;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:200px;padding:20px;text-align:center;display:flex;align-items:center;justify-content:space-around;flex-direction:column;background-color:rgba(0,0,0,.65)}.loading_body[data-v-4453c55f]{margin-bottom:10px;width:25px;height:25px;border:3px solid #e1e1e1;border-top:3px solid #3498db;border-radius:50%;-webkit-animation:spin-data-v-4453c55f 2s linear infinite;animation:spin-data-v-4453c55f 2s linear infinite}@-webkit-keyframes spin-data-v-4453c55f{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin-data-v-4453c55f{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}',""]),t.exports=e},"502e":function(t,e,a){"use strict";a.r(e);var n=a("8687"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},5050:function(t,e,a){"use strict";var n=a("8355"),i=a.n(n);i.a},"51ff":function(t,e,a){"use strict";var n=a("dfeb"),i=a.n(n);i.a},"54e3":function(t,e,a){"use strict";var n=a("bdbb").default;a("6a54"),a("7a76"),a("c9b5"),a("8a8d"),a("473f"),a("bf0f"),a("fd3c"),a("926e"),a("5c47"),a("af8f"),Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,a,n){return a&&t(e.prototype,a),n&&t(e,n),e}}(),r=a("e0cb"),o=a("c77a"),s=u(o),l=a("822a"),c=u(l);function u(t){return t&&t.__esModule?t:{default:t}}var d=function(t){function e(t,a){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==n(e)&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,a))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+n(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{5}$/)}},{key:"encode",value:function(){var t=r.EAN5_STRUCTURE[function(t){var e=t.split("").map((function(t){return+t})).reduce((function(t,e,a){return a%2?t+9*e:t+3*e}),0);return e%10}(this.data)];return{data:"1011"+(0,s.default)(this.data,t,"01"),text:this.text}}}]),e}(c.default);e.default=d},"56c9":function(t,e,a){"use strict";var n=a("2309"),i=a.n(n);i.a},5886:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("umask",{attrs:{show:t.uploadPopShow,duration:0},on:{click:function(e){arguments[0]=e=t.$handleEvent(e)}}},[n("v-uni-view",{staticClass:"page-height"},[n("v-uni-view",{staticClass:"page-content"},[n("v-uni-view",{staticClass:"wrap"},[n("v-uni-view",{staticClass:"popup-bg"},[n("v-uni-view",{staticClass:"popup-content popup-content-show"},[n("v-uni-view",{staticClass:"update-wrap",style:{"border-radius":t.bgBorderRadius}},[n("v-uni-image",{staticClass:"top-img",attrs:{src:t.topImgBg}}),n("v-uni-view",{staticClass:"content"},[n("v-uni-text",{staticClass:"title",style:{color:t.titleColor}},[t._v(t._s(t.title))]),n("v-uni-view",{staticClass:"title-sub",style:{color:t.conColor},domProps:{innerHTML:t._s(t.con)}}),t.pressShow?n("v-uni-view",{staticClass:"sche-wrap"},[n("v-uni-view",{staticStyle:{width:"480rpx",height:"30rpx"}},[n("ProgressBar",{attrs:{proColor:t.btnBgColor,progress:t.pressValue}})],1),n("v-uni-text",{staticClass:"down-text",style:{color:t.btnBgColor}},[t._v("下载进度:"+t._s((t.downSize/1024/1024).toFixed(2))+"M/"+t._s((t.fileSize/1024/1024).toFixed(2))+"M")])],1):n("v-uni-button",{staticClass:"btn",style:{"background-color":t.btnBgColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toUpLoad()}}},[t._v(t._s(t.updateBtnText))])],1)],1),t.hidCancelbtn?t._e():n("v-uni-image",{staticClass:"close-ioc",attrs:{src:a("6611")},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.closeUpdate()}}})],1)],1)],1)],1)],1)],1)],1)},i=[]},"59af":function(t,e,a){"use strict";var n=a("1cb6"),i=a.n(n);i.a},"59cf":function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("2634")),r=n(a("2fdc"));a("5c47"),a("2c10");var o=n(a("e480")),s=n(a("7225")),l=n(a("3a59")),c=n(a("05d8")),u={data:function(){return{checked:!1,store:{title:"",logo:"",storebd_id:0,storebd_user:{},business_hours_cn:"",is_in_business:1,auto_handel_order:1,auto_notice_deliveryer:1,auto_notice_deliveryer_bytime:0},auto_notice_modal:!1,manager:{},stat:{},notice:30,order_notice_num:0,menufooter:{},accept_wechat_notice:0,accept_voice_notice:0,accept_vibrate:0,clerk:{sids:[]},is_wecaht_h5:!1,version:"",wgtver:"",appver:"",iconRootPath:"_www/static/images",platform_mobile:""}},methods:{showTips:function(){uni.showModal({title:"提示",content:"请联系"+this.platform_mobile+"人工注销",showCancel:!1})},diyOnShow:function(){var t=navigator.userAgent.toLowerCase();"micromessenger"==t.match(/micromessenger/i)&&(this.is_wecaht_h5=!0),this.version=c.default.getStorageSync("version"),this._sid=this.util.getStorageSync("__sid"),this.util.getStorageSync("clerk")&&(this.clerk=this.util.getStorageSync("clerk")),this.shopsttin()},auto_notice_confirm:function(){var t=this;return(0,r.default)((0,i.default)().mark((function e(){var a,n,r,s;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.store.auto_notice_deliveryer,n=t.store.auto_notice_deliveryer_bytime,"auto_notice_deliveryer",r=t.util.getStorageSync("__sid"),e.next=6,o.default.shopStatus({sid:r,value:a,auto_notice_time:n,type:"auto_notice_deliveryer"});case 6:s=e.sent,c.default.$toast(s.msg),t.auto_notice_modal=!1;case 9:case"end":return e.stop()}}),e)})))()},checkGetUpdateData:function(){var t=this;return(0,r.default)((0,i.default)().mark((function e(){var a,n;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.version){e.next=3;break}return c.default.$toast("缺少版本号参数"),e.abrupt("return");case 3:return e.next=5,l.default.getAppVersion({version:t.version});case 5:a=e.sent,n=a.data,n&&n.app_version&&(t.appver,n.app_version);case 8:case"end":return e.stop()}}),e)})))()},startUpDate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"有数据需要更新,请点击升级",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n="http://qny.wdsp666.com/福袋背景图/spshop/update.png",i=uni.requireNativePlugin("CL-UpDater"),r={title:e,con:a,downUrl:t,hidCancelbtn:!1,bgColor:"#ffffff",conColor:"#666666",titleColor:"#000000",btnBgColor:"#ffaa00",updateBtnText:"立即更新",verCode:"",hidBackBtn:!1,downMsgTip:"资源下载中,请稍后...",goBackBtnText:"后台下载",topImgBg:n};i.startUpdate(r,(function(){}))},shopsttin:function(){var t=this;return(0,r.default)((0,i.default)().mark((function e(){var a,n,r;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t,n=t.util.getStorageSync("__sid"),e.next=4,o.default.shopStting({sid:n});case 4:r=e.sent,r&&(a.store.title=r.data.store.title||"",a.store.logo=r.data.store.logo||"",a.store.storebd_id=r.data.store.storebd_id||0,a.store.storebd_user=r.data.store.storebd_user||{},a.store.business_hours_cn=r.data.store.business_hours_cn||"",a.store.is_in_business=r.data.store.is_in_business,a.store.auto_handel_order=r.data.store.auto_handel_order,a.store.auto_notice_deliveryer=r.data.store.auto_notice_deliveryer||0,a.store.auto_notice_deliveryer_bytime=r.data.store.auto_notice_deliveryer_bytime||0,a.platform_mobile=r.data.platform_mobile||"",a.manager=r.data.manager,a.stat=r.data.stat,a.notice=r.data.notice,a.order_notice_num=r.data.order_notice_num,a.accept_wechat_notice=r.data.manager.extra.accept_wechat_notice,a.accept_voice_notice=r.data.manager.extra.accept_voice_notice,a.accept_vibrate=r.data.manager.extra.accept_vibrate);case 6:case"end":return e.stop()}}),e)})))()},onChangeSwitch:function(t){var e=this;return(0,r.default)((0,i.default)().mark((function a(){var n,r,s,l;return(0,i.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n=t.detail.value?1:0,r=t.currentTarget.dataset.type,s=e.util.getStorageSync("__sid"),a.next=5,o.default.shopStatus({sid:s,value:n,type:r});case 5:l=a.sent,c.default.$toast(l.msg),"accept_vibrate"==r&&c.default.setStorageSync("accept_vibrate",n);case 8:case"end":return a.stop()}}),a)})))()},onLoginout:function(){uni.showModal({title:"",content:"确定退出当前登录吗?",success:function(t){if(t.confirm)s.default.logout().then((function(){c.default.removeStorage("clerkInfo"),c.default.removeStorage("__sid"),c.default.$toast("退出成功",c.default.getUrl({path:"/pages/auth/login"}),1e3)}));else if(t.cancel)return}})},tn:function(t){uni.navigateTo({url:t})}}};e.default=u},"5bd0":function(t,e,a){"use strict";var n=a("bdbb").default;a("6a54"),a("7a76"),a("c9b5"),a("8a8d"),a("5c47"),a("af8f"),a("926e"),a("71cb"),a("f18a"),a("aa9c"),a("e966"),Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,a,n){return a&&t(e.prototype,a),n&&t(e,n),e}}();e.checksum=d;var r=a("c77a"),o=c(r),s=a("822a"),l=c(s);function c(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(t,a){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,e),-1!==t.search(/^[0-9]{11}$/)&&(t+=d(t));var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==n(e)&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,a));return i.displayValue=a.displayValue,a.fontSize>10*a.width?i.fontSize=10*a.width:i.fontSize=a.fontSize,i.guardHeight=a.height+i.fontSize/2+a.textMargin,i}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+n(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{12}$/)&&this.data[11]==d(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var t="";return t+="101",t+=(0,o.default)(this.data.substr(0,6),"LLLLLL"),t+="01010",t+=(0,o.default)(this.data.substr(6,6),"RRRRRR"),t+="101",{data:t,text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101"+(0,o.default)(this.data[0],"L"),options:{height:this.guardHeight}}),t.push({data:(0,o.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),t.push({data:"01010",options:{height:this.guardHeight}}),t.push({data:(0,o.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),t.push({data:(0,o.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),t}}]),e}(l.default);function d(t){var e,a=0;for(e=1;e<11;e+=2)a+=parseInt(t[e]);for(e=0;e<11;e+=2)a+=3*parseInt(t[e]);return(10-a%10)%10}e.default=u},"5bf6":function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,'.chartsview[data-v-06f9c5d4]{width:100%;height:100%;display:flex;flex-direction:column;flex:1;justify-content:center;align-items:center}.charts-font[data-v-06f9c5d4]{font-size:14px;color:#ccc;margin-top:10px}.charts-error[data-v-06f9c5d4]{width:128px;height:128px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAUz0lEQVR4Xu1de3Bc1X3+zmp3jYVWfkPAgCWwY8zLEglNQCSW0yT9o2SQaDKdNulUykwfM+k09p+J3ImYIPJXi9yZzDSZZiwyaZuZBCwnNG1DMogEmUAAy7xs/MAyNhCMjWWtsK1deU/n23OvtLu6j3Pv3t29d71nxjOSde455/5+3/m9z7kCjRY4BR7eK7fkcmhrasLT37hbTAY+QYADigDHagwFYGhc7gZwHMAUgG4hMPzNe8RoWInTAECAnHl4r+yREt0DXWIbhx3cJ5fHP8TYjntFR4DTBDqUIwBmMrJDCtyPHDoQw0Q8jkeXinCLtECp43Gwh56R22IxTBbu+KFxOTbQJbo9DlW17rYASGdlNySeKl2JADpbkmKiait0mWhoXHZkmzE52CkocmvavvOsbMvl8MhAl+jlQrg2CQzu6BI9NV2Yw+T2AJiVo+DuL2kSeLQ1KfrC8kLcYbkYBv/pbjEWhjUNjUvSpk9KSAicm2tGXxjAaUcbewBkJAm6xeLBp1PJ2os06ttcDl8H0CEEaGnvGegSg2EAQZTW4B0AEntSS2ov0mhgJc5jmwT6IDEWi2E0zNZ2WEFhC4CZjCRxH7GwAfpbkmIkLC9EFQBg20BXeOySsNBGZx2OXkB6Vg5CgAbMZgD7BTDSkhTDOgM3+kSDAr7iANNz8n4hQRdxojUu9kTjVRurtKKAJwBIKZfPZPOuYWFgY6wlgV4hau+GNVjsnQKeAJDOSIp/Wt6lbSKeQG8jSOSdAbV+wisA7FxDSGAqBmwNS5DIiGIucyNwKiGedutTz3/3BgCb4JBJoGqDIJ2VW4REmxRog0S3lGgT/NlfY3RzCgJjQmJSCkxeDuDwBgCb8HAhvQkCIdCbSgQfmSPDmWGDzHsm1UqwjBEUAMbqERCeAEBGz2RknwR2uW0yAZQdL6DR+WEW90syXLmjtW8So0Jg9MoE9tSD4esZANUAAd1M5NAjGOULaaOkAzCKGEaj7Ar7AoBHEGxrSYqdOnxMZ+W3ZA59ZehxnWkC7yMlJkUMIy1x7IyaVPANAAMEHTlgTACO1rYERlqTot+J8nbp58C5VcEBDftnOEpAKAsAgYPAPgNZQbYFP3QeCAybJ/Bg2CVC2QDwCoJUAtudiJKuExCQLoZbPKirAoOHovuIThVByuXii2jE/C9I2TaXBYsfmThyahMtCWy1A4ERbj7rvvRI9aCa3F7pINm3n5XdXgtjFgHAYCQrW4v8bBo6MYFep5cwmEefuSwQpDNSRoq9+osdrqRaGBqXMhfDVi8gWASAdEbuswuyGCKNSLatBygXBHUqAQohMmHESAKrqzSro4TIS2yOq10dVQQAuyKQUoC7BXnIxHQWwwL4ay/qIM/8DHaFJuijv7M99QzaNmAx6hzQFsvhKSmxvakJo7oHUooA4MUA0wHBTDYfQnVUB6bFnLc1JHqiFgPwxPnSzhKjLUn0B+UpsDoqFkOfLvO5HN8AMN5lOJUU2+2IMD0ne0QOtCcq0k7OANe1VGToag7qaBRXeiFFAJjOyBENsV20Jqcgj2FQHgvyJWYvAQfPAJuvAv7198ADm4DMHJBKAmuag5ypemPpGNiVWk2pDcCDDDQCPTU7EOgmjrxMRgA8dgBYmwJOXwBuWgH87m3gz26OLgDy6q9G9RSLvIAymFZUGsaCjJzE7qB1+vvngXRGQebG5QB/P30eaF2iQBHllk8wxdDfGq/eYVLLQJBfEOQNOpk3/Bg86hbA8iAZwt2/a78asX8zsKRJ/fzYQeDttFIHUbcJqi0JnM4FaOX9g2Sw7lgHTgPTs0DHRxTjT5wDtqzTfTr8/aoJArfTwX055P1519q6apGV4v8/XlU6nzv/vo8CvzwK3L0W2LS6Wquo/DzVAoFrMiivyzVSvpUnycIMVAUU///2kgIC9b+pDqq5jirMVXEX0RUAfMkwgoDrMoFQBUbUcoqxVFJsrdQCtAAQZhBUijChGlfiwdSSypx81gaAAQLLA6OhIlaNF2MGqriMm1cFqJoEtlai0lobAIzqZbPYF7RrV2N+BT79L99c8Eh+dzI474RGYSqB9qDyBuaLawMgnZE8Exjau24C56TPAZ8+vsD0594GPrHW50DWjwVuD2gBwDgm/q1AX6VOB/v5YeDWNerlXnsf+MKGYF/ULQvrdTZXAFQioeN1kVHqTxuAgSo2xiWCdk+DVgWuAEjPyt31XqARJYAZa92ZSqq7CMttjgCoh1r9cgkU1ueDuq7PEQDTs/JY0Nm8sBI0gusKxCCMZDIogsyqzJIDiA3YAqCx+yvDs4BHLVsKBFoPEPDLNYbToUCZUsASAFHY/SfTCxWtq5qBK4ziEB2a1VmfsqTAIgBUupLXL/Evshj0NNCaBM7NAr89sTDSp64HOj/id+ToP1eOR7AYAD4qg6tBwufeARhabV8BfPJaFWxZEgeSMWDTmstaApD8vuMCRQAI47Gs37wFrG4GrksBR882mG212VhW3rpEtPvZiL6OhvmZyOszFPm7D6qqX+76L6xfGIH/l7mkVMGNKy773Z8njIyh1081cfHBkJAEfgqZv2kV8Cmj4HP/H4ADZ1RBqNmYbfvEtV7hVX/9/X7HYR4AYUr6PPmmYjSZ/7kblRT47yOK8Uyu8DxA6xXqHADVw2XsARQhuSWBFV7rBeYBoHsyuNJ7582zwBNHgNVLgb+8TTH/8YOq/o+7ffPVCwynpAiC+W+cUfOcnwOuvlIdO4ti86MG5gGQdrkFtFoE2fUykJ4F+u4AknHgx6+pnf/ZduCW1QD9f3oDPA/A5tcFpA3x8ingxXcVuPJ61Dgt27MRuKG1Wm8c6DyevYE8AMJk/f/nq8BNK5VeN10/k8mvnwZ+ZRw1pfjnYdCOq1VZuJd2/Bzwv0cXGL9hpdr1PGNIgMUF8Oe3AquWehk1FH0nUknR6WUleQCENe37vZeUFOi/AyhUDbQL/JwE5q4ngI4YNxBxl7NiZ5kBoCePAb9/R4mBq64EejcGX9DhhTl++sYTaPdya7sCgPoySM1LvujzM8Dzd3cuMNy08ikZeBqYqoE7njv1t28p3c3f/+hapSLs2jszAI1Luo40JMn4j64s7v3PzympQNeSgLtnLfDxiHkYXkvGFAA0r2Yjsf3sPF0km/r/H+9aEP8P8ORPEhh5ecErIPNpGLJxF7/3oWLcfesV80rboQ+UyDf7f3HTYuPx+XeAX00Ct68BPn0D8O8TasyvbgZakrpvEIp+nuyAPACmM/KsW7k3b+N4/ABA5lSq8cIH0/o39f9f3KoYQYab0uDnR4BjZ4Gv3LYAgB+9qiQB+xe2X0+q4kw22hL8V9roTXz3BTXP1z6mVAJzDfxHqUIDNELN02f9hI7/T6v7zSklbml8MfFCXzzoRp1Pv57n/Wj5M/RrJnn2/QG4rlVJIPM4+DfvWVjB9/YpFfFJIzBEZv7iMHAirUT+59qBO2zcu7zuf1ftfrOKtxAUVElBF3cGTTtzPBaNtiaFhRy0nlHoGIDc/a+fUlez0Dq/ZY26kiXoRoCR0G5WvRkoMnf0/xwFXnwPiAFINgE3LAOmLwKnjPEoKejfW7Xj0+q0Mef92seLVQNLvF95H/iTm4CNJfZC0O8e5HheAkJCNwBkHsv++zuDXKq/sSgd/uu1xf47gfnWOR5mVeNe1Qx8adOClW8l+n8woQzDL9682Cik7fDTg8D1KaD3Zn9rrdRTlHA0mmmvLJJOHopERFg8AK+EIgiomo6dAy7OKdXwNx3AiRngRy8DOQl0XgN8Zp19tJDMJZMLRX/pOh7eqwhMNRCmZtpkVreiePEECADLj0SH6WWd1kIgPP6G2sVty4Av36pE/+43gDMX1K6+b8NiEJhGHqXEV263Bwm9AY731Q6gJVF7qnDnT7ynbCS6zDx8QpXJgNi8JPBwmljouoC1f3X7FdDHH30DmMsBG1YosU+m0Vg8exG4pkV5B2begCFg5htIMCf7gDOadsCXbgGusbEjqkkbMp+iv7QR5POG+eUGADL/rWmgSQBzEui4CvjT9cBUBnjikPqbCYJzF4EfGBdNMW5g5xmYBKY3cOgMsGEVcClXTVY7z+WkArxUCIkoFIA6keLXx4DXTiuDb2ubihdkcsCnDZ+fDPzZIRX+pYvJRBPF6GfbVPRQt124FE4AULJZBOe0YwFUAZG9mv2Fd4G9J4tdOEb0fnNCVQxtuQHoug4gCH5yADgxrdjtZPRZeQqvnFISgEmiMDV6ZjbueP0DgBm9PYes9Tizhr84mr98Ol9Qwps66OszZOyF+WS2GSQKiw2gCcD6BkBMABT9DNLY6XFKgicnVWCIuQR6BMwb0Ojz0hhipg3x5dsilR6ubwA0xwGCgDvaLsJHJtPPP/yBKvQg862SQG5gYByArZI5ELc1+Pi7PgCmM5JfuArNRZBuL0uGMkdg5dsXPktwcPfS4PMq9s1xzDAxS9KZlYxQ0wdAlOIAFOPU5Wxm1s6KKfTzqbvLYT7HNWMANCZZixihVp8AYHSPlrxdWpcMMiN8/Pmua1QW0E+LajbQeNf6A4BZ1MGw5z98bDFLybAnDqvYPptOkMcJGBGuB+BraReFRCYU/OPXgVMfWjOW+p4Gn1nu5RbedZMIHOe7L6pevJa+EqlvtzWU9XdPoeCQ1AM6vbCp+0t3P3c96wJZzMHG6l4WdJR7VuCR54ELc6q4xEu0sCymBfiwp2ygbj1AgOvzPBQjcU8dL9bpNPQops1dT7sgCGYxScSxGURa2+rubXh+mWo84KkeICu7IcFbQEPb6Pqx6mdpXBV9HvlgoRiktLS7nJcw9X4ipuIM9CJWXqHSxVFqXkrDRZgOhdgROZsDvv8ScMnMWgiV9uWOXxfACR6qErp8BJpVY7KF2UW3UrUwgEQC51qTQrtiU1UFz8pJIRDqj67MzAGPva5EPsO7zPkHwXyO98NX1IeomE4myFgnQHAxysiQMkPBLIZlsWoEmrYLyHfxdC6g1i/PxfJkD9O/bOWIf/OaGep7Nur8eEwBoNCFpHQw6wb/9s7yDcwq0FDbBVwAQAQ8gULCUVSPn1y4J4BlX+uWqfIv85iXFaHN4g7uaJ4INr84wtLzrAReeFs99Ve3Fx8O/ZfnVd3hXdeqbxOFuXnxAOYBENaLoZwITWnA3ct6APN0L/tTbFOEXxFXP3OnT11UI5HxhY2HPnjYhCqFpeY8+8BWGGnk89/fB9AOYWPRCXMLYW1eDMB5APCHqBaGEAisDWCI+PDZ4ttDSplEYKxfody79uUKKOapI55J4Glg2gIsJqF6IYAIMvZh/2MGQG5bA3ymLXgI0IATAj3ml0G8VmxLieOtS4SnlYXufoByydoUUwdHeUhkdk6dLqbzwCNndO8KG5nO8DGZblYHs2bwJweLgWQGmFgbyDgBG08OXx+AB1K0IAv/3ctHPP1cExO6G0LKBYDu82Q+q4a52ynSWTlUGEFkKpht+ZJiu4L/T8/g8+1Ac6JY/ejObdcvlRSWRWc8vSUlRt3S9mXdEKJzRrDcFwzL86ynZ7qYzW+tAA3Knx5Qhaa0GcotrHQ706f16T6J0ZYk+r3cE1SEuHRGTgDYHBZGVWIdhcz3WhlcuJ7CdDGDUn/crozJcprbDtYCAeDpY5PFAIiYO+iV2Nz15udcyk0Xc+7CqiPeKPLAxvJAoPO5WOOr7KMugTttEBQBoJ7VQCHzGS9wqiX0AiyCwKxBqBYIjPA9v9LuJK0n4gn0ul0XE5m7gr0wpbSveYqmnDF0nw3qWhm3gI4OCHQkyiIA6NwXoEuMsPSjH8/IX2ausiuiIcjawXJtAXOVgYBAYjKVRKedYWj3vYDQJ4cqy8rwjO4GAq502uWGdyfjsvHFkPDw2n4lAoOphHjQaalOIHACkSUAqF/SWUy6BR6iQLt6WaMERlqTot8rCBheTiTQYWcM2h539BKCrBcih/09dEBAvuWAYW5eMh8x9JnXyBu5hS359xQYa4ljp+N51ygUioSdaUGvjyBIJbDdLdpHKV7YxyqxxNyBIwDq0SMImiE1Gk870GOuz+oEGN1E1xPvUTo6ViNm1GpaTyCwC/O7AoChRwnsq9VbNuZ1pIA2CCy9BIk9rgDg9OmMHAbw9QYzQkkBLRAYkcNRAMoIBPYLoE8LAAYI6j5TGEr26i3KUyFo4ZDaANBMReott9ErUAq41RI4TaYNAA4ShWNkgVI2QoPZVRO5vYItAIbGZYcQWJZZiv2DncIoh8x/XCLSN4u6ESSqfw8UAEPjeaOvj1+kBLCuqQmd37hb8Gfz+0Juueio0jGS6/ZTDGq+6CIJMLhPLk+cx9lYDO1k+kPPyBEhMDnQJQbNh1g4ks1iopErqDhe9scT6JnLYBgC91vN5hbrd1vhIgB851nZlsvhWLYZKyj6DWmAgS6xrXCwhlHoRtry/s4a/1QSHWY4l6FcKbCtcNOxT0ygpyUp6KH5apY2gLHrt1AFCIHOWAwdpgoonKURKvZFc9eHuKtjQHcpY/Mle3NoQw7dsgkTfr4VXDq5rRH48F7Zk8uhrakJo1bMNwdqZA1d+empgx3zPQ3iobMnN9Bu3AYIPFDcoWu1mc+lBAIADsQDpshhpGEY+gNDLZgfCADoNSQvqPLkTSuxfuNq7IwJhODTCv4YUYunsjkc3f8+Bo7M4v8KYy5cixmPKVxXaWymnDWXLQGGxiVjAmaCoZy1XPbPSon9O+4VHSYhaIdJid2lhJESUzvu1f80nBNhywYA3cY5oOhI8uqlaLk+hfWXPUc1CHAijSOnL2CGXePAZKHBzd0PgEG50jZR6pZrTGXZpWwA+J248Vw4KNAAQDj4ULNVBA6Abz8ru8Ul9SVyITCVbUY/DRsjxLxLSmhdYSYEHh3oEiMch2rm0iXssqHSxI57xfZKU/ChZ+QjAOb1c6XnM+g3T4NKzRc4AIbGZR8TSeaCYzH0Ua8ZIeY8QzXbSBEAcvlSZyvwBKYPndb10LjkBQ1a4NV8P51u8zTQ6eynT+AA8LOIxjO1o0ADALWjfShmjhwACgNPoaCgsnWOO+VLwrJOq3VEDgCGLrbMjdeK0EEGZqr9DpEDgFXgqdpEK50vlsPUQJf/nHwt1///89bqDjCPWPAAAAAASUVORK5CYII=");background-position:50%}',""]),t.exports=e},"5d85":function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.tn-list-cell[data-v-52ee05d6]{position:relative;width:100%;box-sizing:border-box;background-color:#fff;color:#080808;font-size:%?28?%;padding:%?26?% %?30?%}.tn-list-cell--radius[data-v-52ee05d6]{border-radius:%?12?%;overflow:hidden}.tn-list-cell--arrow[data-v-52ee05d6]::before{content:" ";position:absolute;top:50%;right:%?30?%;width:%?20?%;height:%?20?%;margin-top:%?-12?%;border-width:%?4?% %?4?% 0 0;border-color:#e6e6e6;border-style:solid;-webkit-transform:matrix(.5,.5,-.5,.5,0,0);transform:matrix(.5,.5,-.5,.5,0,0)}.tn-list-cell--arrow--none-right[data-v-52ee05d6]::before{right:0!important}.tn-list-cell[data-v-52ee05d6]::after{content:" ";position:absolute;bottom:0;right:0;left:0;pointer-events:none;border-bottom:1px solid rgba(0,0,0,.1);-webkit-transform:scaleY(.5) translateZ(0);transform:scaleY(.5) translateZ(0);-webkit-transform-origin:0 100%;transform-origin:0 100%}.tn-list-cell--line-left[data-v-52ee05d6]::after{left:%?30?%!important}.tn-list-cell--line-right[data-v-52ee05d6]::after{right:%?30?%!important}.tn-list-cell--unlined[data-v-52ee05d6]::after{border-bottom:0!important}',""]),t.exports=e},"5e05":function(t,e,a){"use strict";a.r(e);var n=a("86a2"),i=a("a429");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("cf4e");var o=a("828b"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"f053db80",null,!1,n["a"],void 0);e["default"]=s.exports},"5ea9":function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,".progress-bar[data-v-a36a53a8]{width:100%;display:flex;align-items:center}\n\n/* 进度条背景 */.progress-bg[data-v-a36a53a8]{position:relative;width:100%;height:%?30?%;background-color:#ccc;border-radius:%?15?%;overflow:hidden}\n\n/* 进度条填充部分 */.progress-fill[data-v-a36a53a8]{position:absolute;height:100%;min-width:%?30?%;background-color:#5775e7;border-radius:%?15?%;transition:width .3s ease-in-out;display:flex;justify-content:flex-end;align-items:center}.progress-circle[data-v-a36a53a8]{width:%?20?%;height:%?20?%;border-radius:50%;background-color:#fff;margin-right:%?5?%}",""]),t.exports=e},6017:function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.tn-tabbar__content[data-v-f053db80]{box-sizing:initial;display:flex;flex-direction:row;align-items:center;position:relative;width:100%;z-index:1024}.tn-tabbar__content__out[data-v-f053db80]{position:absolute;z-index:4;border-radius:100%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.tn-tabbar__content__out--shadow[data-v-f053db80]{box-shadow:%?0?% %?-10?% %?30?% %?0?% rgba(0,0,0,.05)}.tn-tabbar__content__out--shadow[data-v-f053db80]::before{content:" ";position:absolute;width:100%;height:%?50?%;bottom:0;left:0;right:0;margin:auto;background-color:inherit}.tn-tabbar__content__out--animation--scale[data-v-f053db80]{-webkit-transform-origin:50% 100%;transform-origin:50% 100%;-webkit-animation:tabbar-content-out-click-data-v-f053db80 .2s forwards 1 ease-in-out;animation:tabbar-content-out-click-data-v-f053db80 .2s forwards 1 ease-in-out}.tn-tabbar__content__item[data-v-f053db80]{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%;position:relative}.tn-tabbar__content__item__button[data-v-f053db80]{margin-bottom:%?10?%;display:flex;align-items:center;justify-content:center;position:relative}.tn-tabbar__content__item__button--out[data-v-f053db80]{margin-bottom:%?10?%;border-radius:50%;position:absolute;display:flex;justify-content:center;align-items:center;z-index:6}.tn-tabbar__content__item__button--out--animation--scale[data-v-f053db80]{-webkit-transform-origin:50% 100%;transform-origin:50% 100%;-webkit-animation:tabbar-item-button-out-click-data-v-f053db80 .2s forwards 1;animation:tabbar-item-button-out-click-data-v-f053db80 .2s forwards 1}.tn-tabbar__content__item__button--animation--scale .tn-tabbar__content__item__icon[data-v-f053db80], .tn-tabbar__content__item__button--animation--scale .tn-tabbar__content__item__image[data-v-f053db80]{-webkit-transform-origin:50% 100%;transform-origin:50% 100%;-webkit-animation:tabbar-item-button-click-data-v-f053db80 .2s forwards 1;animation:tabbar-item-button-click-data-v-f053db80 .2s forwards 1}.tn-tabbar__content__item__icon--clip[data-v-f053db80]{-webkit-background-clip:text;color:transparent!important}.tn-tabbar__content__item__text[data-v-f053db80]{width:100%;font-size:%?26?%;line-height:%?28?%;text-align:center;margin-bottom:%?10?%;z-index:10;transition:all .2s ease-in-out}.tn-tabbar__content__item--out[data-v-f053db80]{height:calc(100% - 1px)}.tn-tabbar--fixed[data-v-f053db80]{position:fixed;bottom:0;left:0;right:0}.tn-tabbar--shadow[data-v-f053db80]{box-shadow:%?0?% %?0?% %?30?% %?0?% rgba(0,0,0,.07)}\n/* 点击动画 start */@-webkit-keyframes tabbar-item-button-click-data-v-f053db80{from{-webkit-transform:scale(.8);transform:scale(.8)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes tabbar-item-button-click-data-v-f053db80{from{-webkit-transform:scale(.8);transform:scale(.8)}to{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes tabbar-item-button-out-click-data-v-f053db80{0%{-webkit-transform:translateY(0) scale(1);transform:translateY(0) scale(1)}50%{-webkit-transform:translateY(%?-10?%) scale(1.2);transform:translateY(%?-10?%) scale(1.2)}100%{-webkit-transform:translateY(0) scale(1);transform:translateY(0) scale(1)}}@keyframes tabbar-item-button-out-click-data-v-f053db80{0%{-webkit-transform:translateY(0) scale(1);transform:translateY(0) scale(1)}50%{-webkit-transform:translateY(%?-10?%) scale(1.2);transform:translateY(%?-10?%) scale(1.2)}100%{-webkit-transform:translateY(0) scale(1);transform:translateY(0) scale(1)}}@-webkit-keyframes tabbar-content-out-click-data-v-f053db80{0%{-webkit-transform:translateX(-50%) translateY(0) scale(1);transform:translateX(-50%) translateY(0) scale(1)}50%{-webkit-transform:translateX(-50%) translateY(%?-10?%) scale(1.1);transform:translateX(-50%) translateY(%?-10?%) scale(1.1)}100%{-webkit-transform:translateX(-50%) translateY(0) scale(1);transform:translateX(-50%) translateY(0) scale(1)}}@keyframes tabbar-content-out-click-data-v-f053db80{0%{-webkit-transform:translateX(-50%) translateY(0) scale(1);transform:translateX(-50%) translateY(0) scale(1)}50%{-webkit-transform:translateX(-50%) translateY(%?-10?%) scale(1.1);transform:translateX(-50%) translateY(%?-10?%) scale(1.1)}100%{-webkit-transform:translateX(-50%) translateY(0) scale(1);transform:translateX(-50%) translateY(0) scale(1)}}\n/* 点击动画 end */',""]),t.exports=e},"62b0":function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(e&&("object"===(0,n.default)(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.default)(t)},a("7a76"),a("c9b5");var n=r(a("fcf3")),i=r(a("f478"));function r(t){return t&&t.__esModule?t:{default:t}}},6373:function(t,e,a){"use strict";var n=a("bdbb").default;a("6a54"),a("7a76"),a("c9b5"),a("8a8d"),a("926e"),a("e966"),a("bf0f"),a("ab80"),a("5c47"),a("af8f"),Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,a,n){return a&&t(e.prototype,a),n&&t(e,n),e}}(),r=a("822a"),o=function(t){return t&&t.__esModule?t:{default:t}}(r);var s=function(t){function e(t,a){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==n(e)&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,a))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+n(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"encode",value:function(){for(var t="110",e=0;e<this.data.length;e++){var a=parseInt(this.data[e]),n=a.toString(2);n=l(n,4-n.length);for(var i=0;i<n.length;i++)t+="0"==n[i]?"100":"110"}return t+="1001",{data:t,text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]+$/)}}]),e}(o.default);function l(t,e){for(var a=0;a<e;a++)t="0"+t;return t}e.default=s},"63e0":function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("08d4")),r=n(a("e35e")),o={name:"am-upVersion",components:{umask:i.default,ProgressBar:r.default},data:function(){return{pressShow:!1,downSize:null,pressValue:0,fileSize:null,uploadPopShow:null}},props:{downUrl:{type:String,default:""},verCode:{type:String,default:"1.0.0"},title:{type:String,default:""},con:{type:String,default:""},updateBtnText:{type:String,default:"立即升级"},titleColor:{type:String,default:"#6526f3"},conColor:{type:String,default:"#6526f3"},btnBgColor:{type:String,default:"#6526f3"},hidCancelbtn:{type:Boolean,default:!1},topImgBg:{type:String,default:"./img/update_bg_one.png"},bgBorderRadius:{type:String,default:"18rpx"}},computed:{boxStyle:function(){return{background:"url(./img/round.png) ".concat(this.btnBgColor," center right 4rpx no-repeat")}}},watch:{verCode:function(t,e){t>plus.runtime.version&&(this.uploadPopShow=!0)},uploadPopShow:function(t,e){console.log(t),t||(this.$emit("onFinish"),this.downSize=null,this.pressValue=0,this.fileSize=null)}},methods:{toUpLoad:function(){if(this.downUrl)if("ios"!==uni.getSystemInfoSync().platform){var t=this;t.pressShow=!0,t.downloadTask=uni.downloadFile({url:t.downUrl,success:function(e){200===e.statusCode?(t.pressShow=!1,t.uploadPopShow=!1):uni.showToast({title:"安装包下载失败!请联系管理员。",icon:"none"})}}),t.downloadTask.onProgressUpdate((function(e){t.downSize=e.totalBytesWritten,t.fileSize=e.totalBytesExpectedToWrite,t.pressValue=e.progress}))}else plus.runtime.launchApplication({action:this.downUrl},(function(t){console.log("Open system default browser failed: "+t.message)}));else uni.showToast({title:"未检测到下载地址",icon:"none"})},closeUpdate:function(){this.pressShow=!1,this.uploadPopShow=!1,this.$root.verCode="",this.downloadTask&&this.downloadTask.abort()}}};e.default=o},"658a":function(t,e,a){"use strict";var n=a("39e1"),i=a.n(n);i.a},6611:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADsAAAA7CAYAAADFJfKzAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozOEQxNDdCNERFRDIxMUVCODY4OEU0MjZFMjZGRTNENCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozOEQxNDdCNURFRDIxMUVCODY4OEU0MjZFMjZGRTNENCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjM4RDE0N0IyREVEMjExRUI4Njg4RTQyNkUyNkZFM0Q0IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM4RDE0N0IzREVEMjExRUI4Njg4RTQyNkUyNkZFM0Q0Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+/3JaFAAAA9pJREFUeNrsm11IFUEUx0f7gBIqioggKvShrlGUZd1eVHoJoRc1ECqQW0I3CnwIlR7qMdekRIks+nirp75ewoIgspc+LEWwD9DIbggaRgkWZNftP9xz7bbM9e7uzGy7Nw/8XvY6Z8/fmd0zZ2Y2xzRNpskKQRiEwDqwCiwBC8EC8AN8B1/BJ/AOvAFPwWsdAeUoFrsbVIBSsF7Cz1vwGNwBD/wkdi6oJbZq6JCX4DK4Cn5JeeJiJagHQ6Y3NkT3cx2v24a7QL/5b6yf7u+J2CbTH9bkNHYnz+xycBOUMP9YF9gLPqt8QW0BnWAF85+NgHLQo0JsEeW+ecy/Nkk5/ZWM2E3gBZjP/G8/QTHocyN2KXgPFrPg2DjIB2OiH3NnaPgwYEK5LaK4mROx5+ilFETbTPHbGsbbwTMWfNsBnmcS+wGsyQKxQ2DtTMM4miVCGemIpuvZOeALPeTZYuOUVeLWnq2VEHqJXmjHFAZ6AGwDdyXfzrWiEm/A5YS81zLhrlQwyS+1+ByW8DWQ9JPs2Z2gwOV/z/rc3waVEr1RTqsUqqyA9E0HWiPhbKMgr/HllCoXvnib+5Zr18FKScE1qcM4pmDotQhqSCdDep+gfYei2jeWLN5DCgtqkeAKG+0OCdq1Ki72Q9xpRLFTp4KPCv7+tIaVjQh33KbBsV3BogW0U5qWcdq4805Nzs9keIZPCn4/rnHNqpNRnjQ9FFwHzguuH9G8QNer6k3sVLCViKnfYjzP5mmen9ZTHs5LMyE5CK55ME/O44XAN48m/3vAPcs1PlkY9qooyE1WBJqtBTxKswy63yOxcS52QvNNDNDAEtuTVpsCN1xOLZ3aRG66lTiFQk9YrtWBC4LioUKz2DGdebYpQ55tdjm1lMqz7RocGzaFNEsWD06sXUeOMxwKMDzq4Yjqqsdw2VOGBz0cUlnPigKuctBe5zMcS92Mli2SzyrqmXQ9HJeMryNVbFjCUZ/iISjqYdkyNJy64Mb3Xwdd5q8pwTrSLYl8yCcgzRnu4cQGSd9fS6lRif/cRVCouEzjQ28DOAwmJfxERWcq/qsdAX6hkWWXNaYWOqJdPL77tToLhH60btKJNqOrs6RXq+3svPM3V2vAhbZOv4EzbEYnrYe27INmPO4iu8cMkraMclSQDpHwJaZ8yirMzjD+U+wyVhawXi1LJzSTWG69LHFW0QyA0BKKl7kVy+0JS5ygGfGpSB5XMcXJZMVy62aJo31dPhPaRXF1u9k1n8lGWeLsv+EToQbFM2q7xexJcvs0ePyNQINMvEH5+uMKIfX1x+x3PYrMd19s/RZgAJ9yv76mYttEAAAAAElFTkSuQmCC"},6730:function(t,e,a){"use strict";var n=a("8bdb"),i=a("71e9");n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},6864:function(t,e,a){"use strict";a.r(e);var n=a("a6a5"),i=a("502e");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("e370");var o=a("828b"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"22f87c42",null,!1,n["a"],void 0);e["default"]=s.exports},"68ee":function(t,e,a){"use strict";var n=a("3402"),i=a.n(n);i.a},"68ef":function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=l,a("c1a3"),a("bf0f"),a("18f7"),a("de6c"),a("7a76"),a("c9b5");var n=s(a("f1f8")),i=s(a("e668")),r=s(a("d441")),o=s(a("d2c4"));function s(t){return t&&t.__esModule?t:{default:t}}function l(t){var a="function"===typeof Map?new Map:void 0;return e.default=l=function(t){if(null===t||!(0,r.default)(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof a){if(a.has(t))return a.get(t);a.set(t,e)}function e(){return(0,o.default)(t,arguments,(0,n.default)(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),(0,i.default)(e,t)},l(t)}},"69ca":function(t,e,a){"use strict";a.r(e);var n=a("8532"),i=a("b294");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("6a17");var o=a("828b"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"5c8b397d",null,!1,n["a"],void 0);e["default"]=s.exports},"69d3":function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],i={type:["pie","ring","rose","word","funnel","map","arcbar","line","column","mount","bar","area","radar","gauge","candle","mix","tline","tarea","scatter","bubble","demotype"],range:["饼状图","圆环图","玫瑰图","词云图","漏斗图","地图","圆弧进度条","折线图","柱状图","山峰图","条状图","区域图","雷达图","仪表盘","K线图","混合图","时间轴折线","时间轴区域","散点图","气泡图","自定义类型"],categories:["line","column","mount","bar","area","radar","gauge","candle","mix","demotype"],instance:{},option:{},formatter:{yAxisDemo1:function(t,e,a){return t+"元"},yAxisDemo2:function(t,e,a){return t.toFixed(2)},xAxisDemo1:function(t,e,a){return t+"年"},xAxisDemo2:function(t,e,a){return function(t,e){var a=new Date;a.setTime(1e3*t);var n=a.getFullYear(),i=a.getMonth()+1;i=i<10?"0"+i:i;var r=a.getDate();r=r<10?"0"+r:r;var o=a.getHours();o=o<10?"0"+o:o;var s=a.getMinutes(),l=a.getSeconds();return s=s<10?"0"+s:s,l=l<10?"0"+l:l,"full"==e?n+"-"+i+"-"+r+" "+o+":"+s+":"+l:"y-m-d"==e?n+"-"+i+"-"+r:"h:m"==e?o+":"+s:"h:m:s"==e?o+":"+s+":"+l:[n,i,r,o,s,l]}(t,"h:m")},seriesDemo1:function(t,e,a,n){return t+"元"},tooltipDemo1:function(t,e,a,n){return 0==a?"随便用"+t.data+"年":"其他我没改"+t.data+"天"},pieDemo:function(t,e,a,n){if(void 0!==e)return a[e].name+":"+a[e].data+"元"}},demotype:{type:"line",color:n,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"curve",width:2}}},pie:{type:"pie",color:n,padding:[5,5,5,5],extra:{pie:{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},ring:{type:"ring",color:n,padding:[5,5,5,5],rotate:!1,dataLabel:!0,legend:{show:!0,position:"right",lineHeight:25},title:{name:"收益率",fontSize:15,color:"#666666"},subtitle:{name:"70%",fontSize:25,color:"#7cb5ec"},extra:{ring:{ringWidth:30,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},rose:{type:"rose",color:n,padding:[5,5,5,5],legend:{show:!0,position:"left",lineHeight:25},extra:{rose:{type:"area",minRadius:50,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF"}}},word:{type:"word",color:n,extra:{word:{type:"normal",autoColors:!1}}},funnel:{type:"funnel",color:n,padding:[15,15,0,15],extra:{funnel:{activeOpacity:.3,activeWidth:10,border:!0,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"}}},map:{type:"map",color:n,padding:[0,0,0,0],dataLabel:!0,extra:{map:{border:!0,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#F04864",activeFillColor:"#FACC14",activeFillOpacity:1}}},arcbar:{type:"arcbar",color:n,title:{name:"百分比",fontSize:25,color:"#00FF00"},subtitle:{name:"默认标题",fontSize:15,color:"#666666"},extra:{arcbar:{type:"default",width:12,backgroundColor:"#E9E9E9",startAngle:.75,endAngle:.25,gap:2}}},line:{type:"line",color:n,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"straight",width:2,activeType:"hollow"}}},tline:{type:"line",color:n,padding:[15,10,0,15],xAxis:{disableGrid:!1,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{line:{type:"curve",width:2,activeType:"hollow"}}},tarea:{type:"area",color:n,padding:[15,10,0,15],xAxis:{disableGrid:!0,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{area:{type:"curve",opacity:.2,addLine:!0,width:2,gradient:!0,activeType:"hollow"}}},column:{type:"column",color:n,padding:[15,15,0,5],xAxis:{disableGrid:!0},yAxis:{data:[{min:0}]},legend:{},extra:{column:{type:"group",width:30,activeBgColor:"#000000",activeBgOpacity:.08}}},mount:{type:"mount",color:n,padding:[15,15,0,5],xAxis:{disableGrid:!0},yAxis:{data:[{min:0}]},legend:{},extra:{mount:{type:"mount",widthRatio:1.5}}},bar:{type:"bar",color:n,padding:[15,30,0,5],xAxis:{boundaryGap:"justify",disableGrid:!1,min:0,axisLine:!1},yAxis:{},legend:{},extra:{bar:{type:"group",width:30,meterBorde:1,meterFillColor:"#FFFFFF",activeBgColor:"#000000",activeBgOpacity:.08}}},area:{type:"area",color:n,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{area:{type:"straight",opacity:.2,addLine:!0,width:2,gradient:!1,activeType:"hollow"}}},radar:{type:"radar",color:n,padding:[5,5,5,5],dataLabel:!1,legend:{show:!0,position:"right",lineHeight:25},extra:{radar:{gridType:"radar",gridColor:"#CCCCCC",gridCount:3,opacity:.2,max:200,labelShow:!0}}},gauge:{type:"gauge",color:n,title:{name:"66Km/H",fontSize:25,color:"#2fc25b",offsetY:50},subtitle:{name:"实时速度",fontSize:15,color:"#1890ff",offsetY:-50},extra:{gauge:{type:"default",width:30,labelColor:"#666666",startAngle:.75,endAngle:.25,startNumber:0,endNumber:100,labelFormat:"",splitLine:{fixRadius:0,splitNumber:10,width:30,color:"#FFFFFF",childNumber:5,childWidth:12},pointer:{width:24,color:"auto"}}}},candle:{type:"candle",color:n,padding:[15,15,0,15],enableScroll:!0,enableMarkLine:!0,dataLabel:!1,xAxis:{labelCount:4,itemCount:40,disableGrid:!0,gridColor:"#CCCCCC",gridType:"solid",dashLength:4,scrollShow:!0,scrollAlign:"left",scrollColor:"#A6A6A6",scrollBackgroundColor:"#EFEBEF"},yAxis:{},legend:{},extra:{candle:{color:{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},average:{show:!0,name:["MA5","MA10","MA30"],day:[5,10,20],color:["#1890ff","#2fc25b","#facc14"]}},markLine:{type:"dash",dashLength:5,data:[{value:2150,lineColor:"#f04864",showLabel:!0},{value:2350,lineColor:"#f04864",showLabel:!0}]}}},mix:{type:"mix",color:n,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{disabled:!1,disableGrid:!1,splitNumber:5,gridType:"dash",dashLength:4,gridColor:"#CCCCCC",padding:10,showTitle:!0,data:[]},legend:{},extra:{mix:{column:{width:20}}}},scatter:{type:"scatter",color:n,padding:[15,15,0,15],dataLabel:!1,xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0},yAxis:{disableGrid:!1,gridType:"dash"},legend:{},extra:{scatter:{}}},bubble:{type:"bubble",color:n,padding:[15,15,0,15],xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0,max:250},yAxis:{disableGrid:!1,gridType:"dash",data:[{min:0,max:150}]},legend:{},extra:{bubble:{border:2,opacity:.5}}}},r=i;e.default=r},"6a17":function(t,e,a){"use strict";var n=a("c094"),i=a.n(n);i.a},"6b57":function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("64aa");var i=n(a("efd3")),r=n(a("4a76")),o=n(a("1899")),s=n(a("8507")),l=n(a("7945")),c={components:{Loading1:i.default,Loading2:r.default,Loading3:o.default,Loading4:s.default,Loading5:l.default},name:"qiun-loading",props:{loadingType:{type:Number,default:2}},data:function(){return{}}};e.default=c},"6c1a":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"chartsview"},[e("v-uni-view",{staticClass:"charts-error"}),e("v-uni-view",{staticClass:"charts-font"},[this._v(this._s(null==this.errorMessage?"请点击重试":this.errorMessage))])],1)},i=[]},"6c31":function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}},a("bf0f"),a("7996"),a("6a88")},"6d95":function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("c9b5"),a("bf0f"),a("ab80"),a("e966");var n={lunarInfo:[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,23232,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19195,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835,37744,18936,18800,25776,92326,59984,27424,108228,43744,41696,53987,51552,54615,54432,55888,23893,22176,42704,21972,21200,43448,43344,46240,46758,44368,21920,43940,42416,21168,45683,26928,29495,27296,44368,84821,19296,42352,21732,53600,59752,54560,55968,92838,22224,19168,43476,41680,53584,62034,54560],solarMonth:[31,28,31,30,31,30,31,31,30,31,30,31],Gan:["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],Zhi:["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"],Animals:["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"],solarTerm:["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"],sTermInfo:["9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","9778397bd19801ec9210c965cc920e","97b6b97bd19801ec95f8c965cc920f","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd197c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bcf97c3598082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd19801ec9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bd07f1487f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b97bd197c36c9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b70c9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","977837f0e37f149b0723b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0723b06bd","7f07e7f0e37f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f595b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e37f14998083b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14898082b0723b02d5","7f07e7f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66aa89801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e26665b66a449801e9808297c35","665f67f0e37f1489801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722"],nStr1:["日","一","二","三","四","五","六","七","八","九","十"],nStr2:["初","十","廿","卅"],nStr3:["正","二","三","四","五","六","七","八","九","十","冬","腊"],lYearDays:function(t){var e,a=348;for(e=32768;e>8;e>>=1)a+=this.lunarInfo[t-1900]&e?1:0;return a+this.leapDays(t)},leapMonth:function(t){return 15&this.lunarInfo[t-1900]},leapDays:function(t){return this.leapMonth(t)?65536&this.lunarInfo[t-1900]?30:29:0},monthDays:function(t,e){return e>12||e<1?-1:this.lunarInfo[t-1900]&65536>>e?30:29},solarDays:function(t,e){if(e>12||e<1)return-1;var a=e-1;return 1==a?t%4==0&&t%100!=0||t%400==0?29:28:this.solarMonth[a]},toGanZhiYear:function(t){var e=(t-3)%10,a=(t-3)%12;return 0==e&&(e=10),0==a&&(a=12),this.Gan[e-1]+this.Zhi[a-1]},toAstro:function(t,e){return"魔羯水瓶双鱼白羊金牛双子巨蟹狮子处女天秤天蝎射手魔羯".substr(2*t-(e<[20,19,21,21,21,22,23,23,23,23,22,22][t-1]?2:0),2)+"座"},toGanZhi:function(t){return this.Gan[t%10]+this.Zhi[t%12]},getTerm:function(t,e){if(t<1900||t>2100)return-1;if(e<1||e>24)return-1;var a=this.sTermInfo[t-1900],n=[parseInt("0x"+a.substr(0,5)).toString(),parseInt("0x"+a.substr(5,5)).toString(),parseInt("0x"+a.substr(10,5)).toString(),parseInt("0x"+a.substr(15,5)).toString(),parseInt("0x"+a.substr(20,5)).toString(),parseInt("0x"+a.substr(25,5)).toString()],i=[n[0].substr(0,1),n[0].substr(1,2),n[0].substr(3,1),n[0].substr(4,2),n[1].substr(0,1),n[1].substr(1,2),n[1].substr(3,1),n[1].substr(4,2),n[2].substr(0,1),n[2].substr(1,2),n[2].substr(3,1),n[2].substr(4,2),n[3].substr(0,1),n[3].substr(1,2),n[3].substr(3,1),n[3].substr(4,2),n[4].substr(0,1),n[4].substr(1,2),n[4].substr(3,1),n[4].substr(4,2),n[5].substr(0,1),n[5].substr(1,2),n[5].substr(3,1),n[5].substr(4,2)];return parseInt(i[e-1])},toChinaMonth:function(t){if(t>12||t<1)return-1;var e=this.nStr3[t-1];return e+="月",e},toChinaDay:function(t){var e;switch(t){case 10:e="初十";break;case 20:e="二十";break;case 30:e="三十";break;default:e=this.nStr2[Math.floor(t/10)],e+=this.nStr1[t%10]}return e},getAnimal:function(t){return this.Animals[(t-4)%12]},solar2lunar:function(t,e,a){if(t<1900||t>2100)return-1;if(1900==t&&1==e&&a<31)return-1;if(t)n=new Date(t,parseInt(e)-1,a);else var n=new Date;var i,r=0,o=(t=n.getFullYear(),e=n.getMonth()+1,a=n.getDate(),(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())-Date.UTC(1900,0,31))/864e5);for(i=1900;i<2101&&o>0;i++)r=this.lYearDays(i),o-=r;o<0&&(o+=r,i--);var s=new Date,l=!1;s.getFullYear()==t&&s.getMonth()+1==e&&s.getDate()==a&&(l=!0);var c=n.getDay(),u=this.nStr1[c];0==c&&(c=7);var d=i,f=this.leapMonth(i),h=!1;for(i=1;i<13&&o>0;i++)f>0&&i==f+1&&0==h?(--i,h=!0,r=this.leapDays(d)):r=this.monthDays(d,i),1==h&&i==f+1&&(h=!1),o-=r;0==o&&f>0&&i==f+1&&(h?h=!1:(h=!0,--i)),o<0&&(o+=r,--i);var p=i,v=o+1,g=e-1,b=this.toGanZhiYear(d),m=this.getTerm(t,2*e-1),x=this.getTerm(t,2*e),y=this.toGanZhi(12*(t-1900)+e+11);a>=m&&(y=this.toGanZhi(12*(t-1900)+e+12));var w=!1,_=null;m==a&&(w=!0,_=this.solarTerm[2*e-2]),x==a&&(w=!0,_=this.solarTerm[2*e-1]);var S=Date.UTC(t,g,1,0,0,0,0)/864e5+25567+10,C=this.toGanZhi(S+a-1),k=this.toAstro(e,a);return{lYear:d,lMonth:p,lDay:v,Animal:this.getAnimal(d),IMonthCn:(h?"闰":"")+this.toChinaMonth(p),IDayCn:this.toChinaDay(v),cYear:t,cMonth:e,cDay:a,gzYear:b,gzMonth:y,gzDay:C,isToday:l,isLeap:h,nWeek:c,ncWeek:"星期"+u,isTerm:w,Term:_,astro:k}},lunar2solar:function(t,e,a,n){n=!!n;var i=this.leapMonth(t);this.leapDays(t);if(n&&i!=e)return-1;if(2100==t&&12==e&&a>1||1900==t&&1==e&&a<31)return-1;var r=this.monthDays(t,e),o=r;if(n&&(o=this.leapDays(t,e)),t<1900||t>2100||a>o)return-1;for(var s=0,l=1900;l<t;l++)s+=this.lYearDays(l);var c=0,u=!1;for(l=1;l<e;l++)c=this.leapMonth(t),u||c<=l&&c>0&&(s+=this.leapDays(t),u=!0),s+=this.monthDays(t,l);n&&(s+=r);var d=Date.UTC(1900,1,30,0,0,0),f=new Date(864e5*(s+a-31)+d),h=f.getUTCFullYear(),p=f.getUTCMonth()+1,v=f.getUTCDate();return this.solar2lunar(h,p,v)}},i=n;e.default=i},"702a":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n}));var n={tnNavBar:a("3703").default,tnListCell:a("c6ed").default,tnModal:a("2235").default,tnRadioGroup:a("439e").default,tnRadio:a("bc0f").default,tnInput:a("6864").default,tnButton:a("29d7").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("tn-nav-bar",{attrs:{fixed:!0,isBack:!1}},[t._v("商家中心")]),a("v-uni-view",{style:{marginTop:t.vuex_custom_bar_height+10+"px"}},[a("v-uni-view",{staticClass:"merchant tn-flex-col-center"},[a("v-uni-view",{staticClass:"tn-flex merchant_a"},[a("v-uni-image",{staticStyle:{width:"120rpx",height:"120rpx","border-radius":"20rpx"},attrs:{src:t.store.logo}}),a("v-uni-view",{staticClass:"tn-margin-left"},[a("v-uni-view",{staticClass:"tn-text-bold",staticStyle:{"font-size":"36rpx"}},[t._v(t._s(t.store.title))]),a("v-uni-view",{staticClass:"tn-flex tn-flex-col-center tn-margin-top-sm"},[a("v-uni-view",{staticStyle:{"font-size":"30rpx"}},[t._v("切换门店")]),a("v-uni-view",{staticClass:" tn-flex tn-flex-row-center tn-flex-col-center tn-main-gradient-blue tn-color-white",staticStyle:{"border-radius":"50%","margin-left":"10rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tn("/setting/selectStores/select")}}},[a("v-uni-view",{staticClass:"tn-icon-sequence tn-padding-xs"})],1)],1)],1),a("v-uni-image",{staticClass:"img_css",attrs:{src:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/spshop/tubioa1.png"}}),t.clerk.sids.length>3?a("v-uni-navigator",{staticClass:"confirm-btn",staticStyle:{border:"1px solid #58a8f5",padding:"10rpx","border-radius":"20rpx"},attrs:{url:"/setting/businessDistStat/index"}},[t._v("商圈统计")]):t._e()],1)],1),a("v-uni-view",{staticClass:"posedtion"},[a("v-uni-view",{staticClass:"shangpu-shadow tn-margin"},[a("tn-list-cell",{staticClass:"sp-top-radius",attrs:{hover:!0,fontSize:30}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-col-center",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tn("/setting/functionList/storInfo/index")}}},[a("v-uni-view",{staticClass:"icon1__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-color-white"},[a("v-uni-image",{staticClass:"sp-ico",attrs:{src:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/spshop/1980@2x.png"}})],1),a("v-uni-view",{staticClass:"tn-margin-left-sm tn-flex-1"},[t._v("门店信息")]),a("v-uni-view",{staticClass:"tn-color-Dark--light tn-icon-right"})],1)],1),a("tn-list-cell",{staticClass:"sp-bottom-radius",attrs:{hover:!0,fontSize:30,unlined:!1}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-col-center",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tn("/setting/functionList/updateInfo/update?type=business_hours")}}},[a("v-uni-view",{staticClass:"icon1__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-color-white"},[a("v-uni-image",{staticClass:"sp-ico",attrs:{src:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/spshop/1991@2x.png"}})],1),a("v-uni-view",{staticClass:"tn-margin-left-sm tn-flex-1"},[t._v("营业时间")]),a("v-uni-view",[t._v(t._s(t.store.business_hours_cn))]),a("v-uni-view",{staticClass:"tn-color-Dark--light tn-icon-right"})],1)],1)],1),a("v-uni-view",{staticClass:"shangpu-shadow tn-margin"},[a("tn-list-cell",{staticClass:"sp-top-radius",attrs:{hover:!0,fontSize:30}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-col-center"},[a("v-uni-view",{staticClass:"icon1__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-color-white"},[a("v-uni-image",{staticClass:"sp-ico",attrs:{src:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/spshop/2349@2x.png"}})],1),a("v-uni-view",{staticClass:"tn-margin-left-sm tn-flex-1"},[t._v("营业状态")]),a("v-uni-switch",{attrs:{color:"#33aafc",checked:1==t.store.is_in_business,"data-type":"is_in_business",activeColor:"'linear-gradient(blue, pink);'"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.onChangeSwitch.apply(void 0,arguments)}}})],1)],1),a("tn-list-cell",{attrs:{hover:!0,fontSize:30}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-col-center"},[a("v-uni-view",{staticClass:"icon1__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-color-white"},[a("v-uni-image",{staticClass:"sp-ico",attrs:{src:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/spshop/23490@2x.png"}})],1),a("v-uni-view",{staticClass:"tn-margin-left-sm tn-flex-1"},[t._v("自动接单")]),a("v-uni-switch",{attrs:{color:"#33aafc",checked:1==t.store.auto_handel_order,"data-type":"auto_handel_order"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.onChangeSwitch.apply(void 0,arguments)}}})],1)],1),a("tn-list-cell",{attrs:{hover:!0,fontSize:30}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-col-center"},[a("v-uni-view",{staticClass:"icon1__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-color-white"},[a("v-uni-image",{staticClass:"sp-ico",attrs:{src:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/spshop/234901@2x.png"}})],1),a("v-uni-view",{staticClass:"tn-margin-left-sm tn-flex-1"},[t._v("自动通知配送员抢单")]),a("v-uni-view",{staticClass:"setting-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.auto_notice_modal=!0}}},[t._v("设置")])],1)],1),a("tn-list-cell",{attrs:{hover:!0,fontSize:30}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-col-center"},[a("v-uni-view",{staticClass:"icon1__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-color-white"},[a("v-uni-image",{staticClass:"sp-ico",attrs:{src:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/spshop/234902@2x.png"}})],1),a("v-uni-view",{staticClass:"tn-margin-left-sm tn-flex-1"},[t._v("微信模板消息提醒")]),a("v-uni-switch",{attrs:{color:"#33aafc",checked:1==t.accept_wechat_notice,"data-type":"accept_wechat_notice"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.onChangeSwitch.apply(void 0,arguments)}}})],1)],1),a("tn-list-cell",{staticClass:"sp-bottom-radius",attrs:{hover:!0,fontSize:30,unlined:!1}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-col-center"},[a("v-uni-view",{staticClass:"icon1__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-color-white"},[a("v-uni-image",{staticClass:"sp-ico",attrs:{src:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/spshop/234901@2x.png"}})],1),a("v-uni-view",{staticClass:"tn-margin-left-sm tn-flex-1"},[t._v("新订单震动提醒")]),a("v-uni-switch",{attrs:{color:"#33aafc",checked:1==t.accept_vibrate,"data-type":"accept_vibrate"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.onChangeSwitch.apply(void 0,arguments)}}})],1)],1)],1),a("v-uni-view",{staticClass:"shangpu-shadow tn-margin"},[a("tn-list-cell",{attrs:{hover:!0,unlined:!0,radius:!0,fontSize:30}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-col-center",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tn("/setting/functionList/accountPassword/password")}}},[a("v-uni-view",{staticClass:"icon1__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-color-white"},[a("v-uni-image",{staticClass:"sp-ico",attrs:{src:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/spshop/13217@2x.png"}})],1),a("v-uni-view",{staticClass:"tn-margin-left-sm tn-flex-1"},[t._v("账户密码")]),a("v-uni-view",{staticClass:"tn-color-Dark--light tn-icon-right"})],1)],1),t.is_wecaht_h5?a("tn-list-cell",{attrs:{hover:!0,unlined:!0,radius:!0,fontSize:30}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-col-center",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tn("/setting/system/subscribe")}}},[a("v-uni-view",{staticClass:"icon1__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-color-white"},[a("v-uni-image",{staticClass:"sp-ico",attrs:{src:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/spshop/13217@2x.png"}})],1),a("v-uni-view",{staticClass:"tn-margin-left-sm tn-flex-1"},[t._v("订阅消息")]),a("v-uni-view",{staticClass:"tn-color-Dark--light tn-icon-right"})],1)],1):t._e()],1),a("v-uni-view",{staticClass:"tn-margin tn-text-center tn-padding",staticStyle:{color:"white","background-color":"#33aafc","border-radius":"15rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onLoginout.apply(void 0,arguments)}}},[t._v("退出登录")]),a("v-uni-view",{staticStyle:{"text-align":"center","margin-top":"60rpx",color:"#aaaaaa"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showTips.apply(void 0,arguments)}}},[t._v("注销账号")])],1)],1),a("tn-modal",{attrs:{custom:!0,padding:"42rpx 28rpx"},model:{value:t.auto_notice_modal,callback:function(e){t.auto_notice_modal=e},expression:"auto_notice_modal"}},[a("v-uni-view",{staticClass:"custom-modal-content",staticStyle:{"text-align":"center","margin-bottom":"30rpx"}},[a("v-uni-view",{staticClass:"tn-icon tn-icon-about-fill"}),a("tn-radio-group",{model:{value:t.store.auto_notice_deliveryer,callback:function(e){t.$set(t.store,"auto_notice_deliveryer",e)},expression:"store.auto_notice_deliveryer"}},[a("tn-radio",{attrs:{name:1}},[t._v("是")]),a("tn-radio",{attrs:{name:0}},[t._v("否")]),a("tn-radio",{attrs:{name:2}},[t._v("接单后多少分钟通知")])],1)],1),2==t.store.auto_notice_deliveryer?a("v-uni-view",{staticStyle:{"text-align":"center",color:"red","margin-bottom":"30rpx"}},[a("tn-input",{attrs:{border:!0},model:{value:t.store.auto_notice_deliveryer_bytime,callback:function(e){t.$set(t.store,"auto_notice_deliveryer_bytime",e)},expression:"store.auto_notice_deliveryer_bytime"}})],1):t._e(),a("v-uni-view",{staticStyle:{"text-align":"center"}},[a("tn-button",{attrs:{backgroundColor:"#53DBEB",fontColor:"#FFFFFF"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.auto_notice_confirm()}}},[t._v("确认")])],1)],1)],1)},r=[]},7157:function(t,e,a){"use strict";var n=a("153d"),i=a.n(n);i.a},"71cb":function(t,e,a){"use strict";var n=a("8bdb"),i=a("1dbd"),r=a("1099"),o=a("1fc1"),s=a("497b"),l=a("3242");n({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=r(this),a=o(e),n=l(e,0);return n.length=i(n,e,e,a,0,void 0===t?1:s(t)),n}})},7225:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.authSettleOpenidApi=e.authOpenidApi=void 0,e.change_password=r,e.default=void 0,e.forget=g,e.getAgentListApi=void 0,e.getAgreement=v,e.getBaseInfoApi=void 0,e.getCode=p,e.getJsConfigApi=void 0,e.getLogin=d,e.getLoginCode=o,e.getMerchantAgreementApi=function(t){return i.default.get("api/manage.system.platform/getMerchantAgreement",{params:t})},e.getNavListApi=void 0,e.getPlatformList=b,e.isFillInApi=e.getWechatSubscribeNotice=e.getUserTokenApi=void 0,e.login=s,e.logout=m,e.manageLogin=u,e.openLogin=c,e.settleShopApi=e.registerApi=void 0,e.wechatLogin=l;var i=n(a("5b42"));function r(t){return i.default.post("api/manage.user.user/change_password",t)}function o(t){return i.default.post("api/manage.user.user/getCode",t)}function s(t){return i.default.post("api/manage.user.user/login",t)}function l(t){return i.default.get("api/manage.user.user/wechatLogin",{params:t})}function c(t){return i.default.post("api/manage.user.user/openidLogin",t)}function u(t){return i.default.post("api/manage.user.user/manageLogin",t)}function d(t){return i.default.get("api/manage.user.user/loginPageConfig",{params:t})}var f=function(t){return i.default.post("api/manage.auth.user/register",t)};e.registerApi=f;var h=function(t){return i.default.get("api/manage.auth.user/wechatOpenidAuth",{params:t})};e.authOpenidApi=h;e.settleShopApi=function(t){return i.default.post("api/merchant.store.auth/register",t)};function p(t){return i.default.request({method:"post",url:"system/common/code",data:t})}function v(t){return i.default.get("api/manage.system.platform/getAgreement",{params:t})}function g(t){return i.default.request({method:"post",url:"api/manage/auth/forget/index",data:t})}function b(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i.default.get("api/manage.system.platform/list",{data:t})}e.authSettleOpenidApi=function(t){return i.default.get("api/merchant.store.auth/wechatOpenIdAuth",{params:t})};function m(){return i.default.request({method:"post",url:"api/manage.user.user/logout"})}e.getAgentListApi=function(t){return i.default.get("api/manage.system.agent/list",{data:t})};var x=function(t){return i.default.get("api/merchant.store.auth/getBaseInfo?uniacid="+t)};e.getBaseInfoApi=x;var y=function(){return i.default.post("api/manage.user.user/getWxChatConfig")};e.getWechatSubscribeNotice=y;var w=function(t){return i.default.get("api/manage.auth.user/isFillIn",{data:t})};e.isFillInApi=w;var _=function(t){return i.default.get("api/system.store.store_category/index",{data:t})};e.getNavListApi=_;var S=function(t){return i.default.get("api/manage.user.user/getUserToken",{data:t})};e.getUserTokenApi=S;var C=function(){return i.default.get("api/manage.auth.user/getJsConfig")};e.getJsConfigApi=C;var k={login:s,manageLogin:u,getLogin:d,getAgreement:v,getCode:p,getLoginCode:o,registerApi:f,authOpenidApi:h,forget:g,change_password:r,getPlatformList:b,logout:m,getBaseInfoApi:x,getWechatSubscribeNotice:y,wechatLogin:l,openLogin:c,isFillInApi:w,getNavListApi:_,getUserTokenApi:S,getJsConfigApi:C};e.default=k},"73e1":function(t,e,a){"use strict";var n=a("29d8");t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)},"73ed":function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.tn-calendar[data-v-5c8b397d]{color:#080808}.tn-calendar__header[data-v-5c8b397d]{width:100%;box-sizing:border-box;font-size:%?30?%;background-color:#fff;color:#01beff}.tn-calendar__header__text[data-v-5c8b397d]{display:flex;flex-direction:row;align-items:center;justify-content:center;margin-top:%?30?%;padding:0 %?60?%}.tn-calendar__action[data-v-5c8b397d]{display:flex;flex-direction:row;justify-content:center;align-items:center;padding:%?40?% 0 %?40?% 0}.tn-calendar__action__icon[data-v-5c8b397d]{display:flex;align-items:center;justify-content:center;margin:0 %?16?%;width:%?32?%;height:%?32?%;font-size:%?20?%;border-radius:50%;color:#fff}.tn-calendar__action__text[data-v-5c8b397d]{padding:0 %?16?%;color:#080808;font-size:%?32?%;font-weight:700}.tn-calendar__week-day-zh[data-v-5c8b397d]{display:flex;flex-direction:row;align-items:center;justify-content:center;padding:%?12?% 0;overflow:hidden;box-shadow:%?16?% %?6?% %?8?% 0 #e6e6e6;margin-bottom:%?2?%}.tn-calendar__week-day-zh__text[data-v-5c8b397d]{flex:1;text-align:center}.tn-calendar__content[data-v-5c8b397d]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%;padding:%?12?% 0;box-sizing:border-box;background-color:#f7f7f7;position:relative}.tn-calendar__content__item[data-v-5c8b397d]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:14.2857%;padding:%?12?% 0;margin:%?6?% 0;overflow:hidden;position:relative;z-index:2}.tn-calendar__content__item__text[data-v-5c8b397d]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:%?80?%;font-size:%?32?%;position:relative}.tn-calendar__content__item__tips[data-v-5c8b397d]{position:absolute;width:100%;line-height:%?24?%;left:0;bottom:%?8?%;text-align:center;z-index:2;-webkit-transform-origin:center center;transform-origin:center center;-webkit-transform:scale(.8);transform:scale(.8)}.tn-calendar__content--start-date[data-v-5c8b397d]{border-top-left-radius:%?8?%;border-bottom-left-radius:%?8?%}.tn-calendar__content--end-date[data-v-5c8b397d]{border-top-right-radius:%?8?%;border-bottom-right-radius:%?8?%}.tn-calendar__content__month--bg[data-v-5c8b397d]{position:absolute;font-size:%?200?%;line-height:%?200?%;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);color:#e6e6e6;z-index:1}.tn-calendar__bottom[data-v-5c8b397d]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;background-color:#f7f7f7;padding:0 %?40?% %?30?%;box-sizing:border-box;font-size:%?24?%;color:#aaa}.tn-calendar__bottom__choose[data-v-5c8b397d]{height:%?50?%}.tn-calendar__bottom__btn[data-v-5c8b397d]{display:flex;align-items:center;justify-content:center;width:100%;height:%?60?%;border-radius:%?40?%;color:#fff;font-size:%?28?%}',""]),t.exports=e},"750c":function(t,e,a){var n=a("1939");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("dce1f50a",n,!0,{sourceMap:!1,shadowMode:!1})},7754:function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.u-mask[data-v-5ffa7a0a]{position:fixed;top:0;left:0;right:0;bottom:0;opacity:0;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.u-mask-show[data-v-5ffa7a0a]{opacity:1}.u-mask-zoom[data-v-5ffa7a0a]{-webkit-transform:scale(1.2);transform:scale(1.2)}',""]),t.exports=e},"775d":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n}));var n={qiunLoading:a("d9e8").default,qiunError:a("f9e2").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"chartsview",attrs:{id:"ChartBoxId"+t.cid}},[t.mixinDatacomLoading?a("v-uni-view",[a("qiun-loading",{attrs:{loadingType:t.loadingType}})],1):t._e(),t.mixinDatacomErrorMessage&&t.errorShow?a("v-uni-view",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.reloading.apply(void 0,arguments)}}},[a("qiun-error",{attrs:{errorMessage:t.errorMessage}})],1):t._e(),t.echarts?[a("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.showchart,expression:"showchart"}],wxsProps:{"change:resize":"echartsResize","change:prop":"echartsOpts"},staticStyle:{width:"100%",height:"100%"},style:{background:t.background},attrs:{"data-directory":t.directory,id:"EC"+t.cid,prop:t.echartsOpts,"change:prop":t.rdcharts.ecinit,resize:t.echartsResize,"change:resize":t.rdcharts.ecresize}})]:[a("v-uni-view",{wxsProps:{"change:prop":"uchartsOpts"},attrs:{id:"UC"+t.cid,prop:t.uchartsOpts,"change:prop":t.rdcharts.ucinit},on:{mousemove:function(e){e=t.$handleWxsEvent(e),t.rdcharts.mouseMove(e,t.$getComponentDescriptor())},mousedown:function(e){e=t.$handleWxsEvent(e),t.rdcharts.mouseDown(e,t.$getComponentDescriptor())},mouseup:function(e){e=t.$handleWxsEvent(e),t.rdcharts.mouseUp(e,t.$getComponentDescriptor())},touchstart:function(e){e=t.$handleWxsEvent(e),t.rdcharts.touchStart(e,t.$getComponentDescriptor())},touchmove:function(e){e=t.$handleWxsEvent(e),t.rdcharts.touchMove(e,t.$getComponentDescriptor())},touchend:function(e){e=t.$handleWxsEvent(e),t.rdcharts.touchEnd(e,t.$getComponentDescriptor())},click:function(e){e=t.$handleWxsEvent(e),t.rdcharts.tap(e,t.$getComponentDescriptor())}}},[a("v-uni-canvas",{directives:[{name:"show",rawName:"v-show",value:t.showchart,expression:"showchart"}],style:{width:t.cWidth+"px",height:t.cHeight+"px",background:t.background},attrs:{id:t.cid,canvasId:t.cid,"disable-scroll":t.disableScroll},on:{error:function(e){arguments[0]=e=t.$handleEvent(e),t._error.apply(void 0,arguments)}}})],1)]],2)},r=[]},7945:function(t,e,a){"use strict";a.r(e);var n=a("23bd"),i=a("2811");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("9815");var o=a("828b"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"c31bb498",null,!1,n["a"],void 0);e["default"]=s.exports},"795c":function(t,e,a){"use strict";var n=a("8bdb"),i=a("db04").start,r=a("73e1");n({target:"String",proto:!0,forced:r},{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"7b2d":function(t,e,a){"use strict";a.r(e);var n=a("27e2"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},"7b59":function(t,e,a){var n=a("5ea9");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("d6b057ae",n,!0,{sourceMap:!1,shadowMode:!1})},"7f31":function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("64aa");var n={props:{progress:{type:Number,default:0},proColor:{type:String,default:"#6526f3"}}};e.default=n},"808c":function(t,e,a){var n=a("f2ac");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("c727f2e4",n,!0,{sourceMap:!1,shadowMode:!1})},"815f":function(t,e,a){"use strict";var n=a("49cc"),i=a.n(n);i.a},"822a":function(t,e,a){"use strict";a("6a54"),a("7a76"),a("c9b5"),Object.defineProperty(e,"__esModule",{value:!0});e.default=function t(e,a){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.data=e,this.text=a.text||e,this.options=a}},8355:function(t,e,a){var n=a("bcc3");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("d35eefe2",n,!0,{sourceMap:!1,shadowMode:!1})},8507:function(t,e,a){"use strict";a.r(e);var n=a("944e"),i=a("d30d");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("5050");var o=a("828b"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"37562626",null,!1,n["a"],void 0);e["default"]=s.exports},8532:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n}));var n={tnPopup:a("5a78").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tn-popup",{attrs:{mode:"bottom",popup:!1,length:"auto",borderRadius:t.borderRadius,safeAreaInsetBottom:t.safeAreaInsetBottom,maskCloseable:t.maskCloseable,closeBtn:t.closeBtn,zIndex:t.elIndex},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},[a("v-uni-view",{staticClass:"tn-calendar-class tn-calendar"},[a("v-uni-view",{staticClass:"tn-calendar__header"},[t.$slots.tooltip&&t.$slots.$tooltip?a("v-uni-view",[t._t("tooltip")],2):a("v-uni-view",{staticClass:"tn-calendar__header__text"},[t._v(t._s(t.toolTips))])],1),a("v-uni-view",{staticClass:"tn-calendar__action"},[t.changeYear?a("v-uni-view",{staticClass:"tn-calendar__action__icon",style:{backgroundColor:t.yearArrowColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.changeYearHandler(!1)}}},[a("v-uni-view",[a("v-uni-text",{staticClass:"tn-icon-left"})],1)],1):t._e(),t.changeMonth?a("v-uni-view",{staticClass:"tn-calendar__action__icon",style:{backgroundColor:t.monthArrowColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.changeMonthHandler(!1)}}},[a("v-uni-view",[a("v-uni-text",{staticClass:"tn-icon-left"})],1)],1):t._e(),a("v-uni-view",{staticClass:"tn-calendar__action__text"},[t._v(t._s(t.dateTitle))]),t.changeMonth?a("v-uni-view",{staticClass:"tn-calendar__action__icon",style:{backgroundColor:t.monthArrowColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.changeMonthHandler(!0)}}},[a("v-uni-view",[a("v-uni-text",{staticClass:"tn-icon-right"})],1)],1):t._e(),t.changeYear?a("v-uni-view",{staticClass:"tn-calendar__action__icon",style:{backgroundColor:t.yearArrowColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.changeYearHandler(!0)}}},[a("v-uni-view",[a("v-uni-text",{staticClass:"tn-icon-right"})],1)],1):t._e()],1),a("v-uni-view",{staticClass:"tn-calendar__week-day-zh"},t._l(t.weekDayZh,(function(e,n){return a("v-uni-view",{key:n,staticClass:"tn-calendar__week-day-zh__text"},[t._v(t._s(e))])})),1),a("v-uni-view",{staticClass:"tn-calendar__content"},[t._l(t.weekdayArr,(function(t,e){return[a("v-uni-view",{key:e+"_0",staticClass:"tn-calendar__content__item"})]})),t._l(t.daysArr,(function(e,n){return a("v-uni-view",{key:n,staticClass:"tn-calendar__content__item",class:{"tn-hover":t.disabledChoose(t.year,t.month,n+1),"tn-calendar__content--start-date":"range"===t.mode&&t.startDate==t.year+"-"+t.month+"-"+(n+1)||"date"===t.mode,"tn-calendar__content--end-date":"range"===t.mode&&t.endDate==t.year+"-"+t.month+"-"+(n+1)||"date"===t.mode},style:{backgroundColor:t.colorValue(n,"bg")},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.dateClick(n)}}},[a("v-uni-view",{staticClass:"tn-calendar__content__item__text",style:{color:t.colorValue(n,"text")}},[a("v-uni-view",[t._v(t._s(e.day))])],1),a("v-uni-view",{staticClass:"tn-calendar__content__item__tips",style:{color:e.color}},[t._v(t._s(e.bottomInfo))])],1)})),a("v-uni-view",{staticClass:"tn-calendar__content__month--bg"},[t._v(t._s(t.month))])],2),a("v-uni-view",{staticClass:"tn-calendar__bottom"},[a("v-uni-view",{staticClass:"tn-calendar__bottom__choose"},[a("v-uni-text",[t._v(t._s("date"===t.mode?t.activeDate:t.startDate))]),t.endDate?a("v-uni-text",[t._v("至"+t._s(t.endDate))]):t._e()],1),a("v-uni-view",{staticClass:"tn-calendar__bottom__btn",style:{backgroundColor:t.btnColor},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleBtnClick(!1)}}},[a("v-uni-view",{staticClass:"tn-calendar__bottom__btn--text"},[t._v("确定")])],1)],1)],1)],1)},r=[]},"861b":function(t,e,a){"use strict";(function(t){var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.uniCloud=e.default=e.UniCloudError=void 0;var i=n(a("f478")),r=n(a("5de6")),o=n(a("fcf3")),s=n(a("b7c7")),l=n(a("3471")),c=n(a("2634")),u=n(a("2fdc")),d=n(a("9b1b")),f=n(a("acb1")),h=n(a("cad9")),p=n(a("68ef")),v=n(a("80b1")),g=n(a("efe5"));a("4085"),a("7a76"),a("c9b5"),a("bf0f"),a("ab80"),a("f7a5"),a("aa9c"),a("e966"),a("c223"),a("dd2b"),a("5ef2"),a("2797"),a("dc8a"),a("473f"),a("4626"),a("5ac7"),a("4100"),a("5c47"),a("d4b5"),a("0c26"),a("0506"),a("fd3c"),a("6a54"),a("a1c1"),a("de6c"),a("c1a3"),a("18f7"),a("af8f"),a("64aa"),a("8f71"),a("23f4"),a("7d2f"),a("9c4e"),a("4db2"),a("c976"),a("4d8f"),a("7b97"),a("668a"),a("c5b7"),a("8ff5"),a("2378"),a("641a"),a("64e0"),a("cce3"),a("efba"),a("d009"),a("bd7d"),a("7edd"),a("d798"),a("f547"),a("5e54"),a("b60a"),a("8c18"),a("12973"),a("f991"),a("198e"),a("8557"),a("63b1"),a("1954"),a("1cf1"),a("01a2"),a("e39c"),a("e062"),a("aa77"),a("2c10"),a("f555"),a("dc69"),a("9370"),a("6730"),a("08eb"),a("15d1"),a("d5c6"),a("5a56"),a("f074"),a("20f3");var b=n(a("23b1"));function m(t,e,a){return t(a={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&a.path)}},a.exports),a.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof t||"undefined"!=typeof self&&self;var x=m((function(t,e){var a;t.exports=(a=a||function(t,e){var a=Object.create||function(){function t(){}return function(e){var a;return t.prototype=e,a=new t,t.prototype=null,a}}(),n={},i=n.lib={},r=i.Base={extend:function(t){var e=a(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)}},o=i.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||l).stringify(this)},concat:function(t){var e=this.words,a=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(var r=0;r<i;r++){var o=a[r>>>2]>>>24-r%4*8&255;e[n+r>>>2]|=o<<24-(n+r)%4*8}else for(r=0;r<i;r+=4)e[n+r>>>2]=a[r>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,a=this.sigBytes;e[a>>>2]&=4294967295<<32-a%4*8,e.length=t.ceil(a/4)},clone:function(){var t=r.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var a,n=[],i=function(e){var a=987654321,n=4294967295;return function(){var i=((a=36969*(65535&a)+(a>>16)&n)<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n;return i/=4294967296,(i+=.5)*(t.random()>.5?1:-1)}},r=0;r<e;r+=4){var s=i(4294967296*(a||t.random()));a=987654071*s(),n.push(4294967296*s()|0)}return new o.init(n,e)}}),s=n.enc={},l=s.Hex={stringify:function(t){for(var e=t.words,a=t.sigBytes,n=[],i=0;i<a;i++){var r=e[i>>>2]>>>24-i%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,a=[],n=0;n<e;n+=2)a[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new o.init(a,e/2)}},c=s.Latin1={stringify:function(t){for(var e=t.words,a=t.sigBytes,n=[],i=0;i<a;i++){var r=e[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(r))}return n.join("")},parse:function(t){for(var e=t.length,a=[],n=0;n<e;n++)a[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new o.init(a,e)}},u=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},d=i.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=u.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var a=this._data,n=a.words,i=a.sigBytes,r=this.blockSize,s=i/(4*r),l=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*r,c=t.min(4*l,i);if(l){for(var u=0;u<l;u+=r)this._doProcessBlock(n,u);var d=n.splice(0,l);a.sigBytes-=c}return new o.init(d,c)},clone:function(){var t=r.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});i.Hasher=d.extend({cfg:r.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){d.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,a){return new t.init(a).finalize(e)}},_createHmacHelper:function(t){return function(e,a){return new f.HMAC.init(t,a).finalize(e)}}});var f=n.algo={};return n}(Math),a)})),y=x,w=(m((function(t,e){var a;t.exports=(a=y,function(t){var e=a,n=e.lib,i=n.WordArray,r=n.Hasher,o=e.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=o.MD5=r.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var a=0;a<16;a++){var n=e+a,i=t[n];t[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var r=this._hash.words,o=t[e+0],l=t[e+1],h=t[e+2],p=t[e+3],v=t[e+4],g=t[e+5],b=t[e+6],m=t[e+7],x=t[e+8],y=t[e+9],w=t[e+10],_=t[e+11],S=t[e+12],C=t[e+13],k=t[e+14],T=t[e+15],A=r[0],P=r[1],O=r[2],D=r[3];A=c(A,P,O,D,o,7,s[0]),D=c(D,A,P,O,l,12,s[1]),O=c(O,D,A,P,h,17,s[2]),P=c(P,O,D,A,p,22,s[3]),A=c(A,P,O,D,v,7,s[4]),D=c(D,A,P,O,g,12,s[5]),O=c(O,D,A,P,b,17,s[6]),P=c(P,O,D,A,m,22,s[7]),A=c(A,P,O,D,x,7,s[8]),D=c(D,A,P,O,y,12,s[9]),O=c(O,D,A,P,w,17,s[10]),P=c(P,O,D,A,_,22,s[11]),A=c(A,P,O,D,S,7,s[12]),D=c(D,A,P,O,C,12,s[13]),O=c(O,D,A,P,k,17,s[14]),A=u(A,P=c(P,O,D,A,T,22,s[15]),O,D,l,5,s[16]),D=u(D,A,P,O,b,9,s[17]),O=u(O,D,A,P,_,14,s[18]),P=u(P,O,D,A,o,20,s[19]),A=u(A,P,O,D,g,5,s[20]),D=u(D,A,P,O,w,9,s[21]),O=u(O,D,A,P,T,14,s[22]),P=u(P,O,D,A,v,20,s[23]),A=u(A,P,O,D,y,5,s[24]),D=u(D,A,P,O,k,9,s[25]),O=u(O,D,A,P,p,14,s[26]),P=u(P,O,D,A,x,20,s[27]),A=u(A,P,O,D,C,5,s[28]),D=u(D,A,P,O,h,9,s[29]),O=u(O,D,A,P,m,14,s[30]),A=d(A,P=u(P,O,D,A,S,20,s[31]),O,D,g,4,s[32]),D=d(D,A,P,O,x,11,s[33]),O=d(O,D,A,P,_,16,s[34]),P=d(P,O,D,A,k,23,s[35]),A=d(A,P,O,D,l,4,s[36]),D=d(D,A,P,O,v,11,s[37]),O=d(O,D,A,P,m,16,s[38]),P=d(P,O,D,A,w,23,s[39]),A=d(A,P,O,D,C,4,s[40]),D=d(D,A,P,O,o,11,s[41]),O=d(O,D,A,P,p,16,s[42]),P=d(P,O,D,A,b,23,s[43]),A=d(A,P,O,D,y,4,s[44]),D=d(D,A,P,O,S,11,s[45]),O=d(O,D,A,P,T,16,s[46]),A=f(A,P=d(P,O,D,A,h,23,s[47]),O,D,o,6,s[48]),D=f(D,A,P,O,m,10,s[49]),O=f(O,D,A,P,k,15,s[50]),P=f(P,O,D,A,g,21,s[51]),A=f(A,P,O,D,S,6,s[52]),D=f(D,A,P,O,p,10,s[53]),O=f(O,D,A,P,w,15,s[54]),P=f(P,O,D,A,l,21,s[55]),A=f(A,P,O,D,x,6,s[56]),D=f(D,A,P,O,T,10,s[57]),O=f(O,D,A,P,b,15,s[58]),P=f(P,O,D,A,C,21,s[59]),A=f(A,P,O,D,v,6,s[60]),D=f(D,A,P,O,_,10,s[61]),O=f(O,D,A,P,h,15,s[62]),P=f(P,O,D,A,y,21,s[63]),r[0]=r[0]+A|0,r[1]=r[1]+P|0,r[2]=r[2]+O|0,r[3]=r[3]+D|0},_doFinalize:function(){var e=this._data,a=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;a[i>>>5]|=128<<24-i%32;var r=t.floor(n/4294967296),o=n;a[15+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),a[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e.sigBytes=4*(a.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,e,a,n,i,r,o){var s=t+(e&a|~e&n)+i+o;return(s<<r|s>>>32-r)+e}function u(t,e,a,n,i,r,o){var s=t+(e&n|a&~n)+i+o;return(s<<r|s>>>32-r)+e}function d(t,e,a,n,i,r,o){var s=t+(e^a^n)+i+o;return(s<<r|s>>>32-r)+e}function f(t,e,a,n,i,r,o){var s=t+(a^(e|~n))+i+o;return(s<<r|s>>>32-r)+e}e.MD5=r._createHelper(l),e.HmacMD5=r._createHmacHelper(l)}(Math),a.MD5)})),m((function(t,e){var a;t.exports=(a=y,void function(){var t=a,e=t.lib.Base,n=t.enc.Utf8;t.algo.HMAC=e.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=n.parse(e));var a=t.blockSize,i=4*a;e.sigBytes>i&&(e=t.finalize(e)),e.clamp();for(var r=this._oKey=e.clone(),o=this._iKey=e.clone(),s=r.words,l=o.words,c=0;c<a;c++)s[c]^=1549556828,l[c]^=909522486;r.sigBytes=o.sigBytes=i,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,a=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(a))}})}())})),m((function(t,e){t.exports=y.HmacMD5}))),_=m((function(t,e){t.exports=y.enc.Utf8})),S=m((function(t,e){var a;t.exports=(a=y,function(){var t=a,e=t.lib.WordArray;function n(t,a,n){for(var i=[],r=0,o=0;o<a;o++)if(o%4){var s=n[t.charCodeAt(o-1)]<<o%4*2,l=n[t.charCodeAt(o)]>>>6-o%4*2;i[r>>>2]|=(s|l)<<24-r%4*8,r++}return e.create(i,r)}t.enc.Base64={stringify:function(t){var e=t.words,a=t.sigBytes,n=this._map;t.clamp();for(var i=[],r=0;r<a;r+=3)for(var o=(e[r>>>2]>>>24-r%4*8&255)<<16|(e[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|e[r+2>>>2]>>>24-(r+2)%4*8&255,s=0;s<4&&r+.75*s<a;s++)i.push(n.charAt(o>>>6*(3-s)&63));var l=n.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(t){var e=t.length,a=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var r=0;r<a.length;r++)i[a.charCodeAt(r)]=r}var o=a.charAt(64);if(o){var s=t.indexOf(o);-1!==s&&(e=s)}return n(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),a.enc.Base64)})),C="uni_id_token",k="uni_id_token_expired",T={DEFAULT:"FUNCTION",FUNCTION:"FUNCTION",OBJECT:"OBJECT",CLIENT_DB:"CLIENT_DB"},A="pending",P="fulfilled",O="rejected";function D(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function E(t){return"object"===D(t)}function I(t){return"function"==typeof t}function M(t){return function(){try{return t.apply(t,arguments)}catch(t){console.error(t)}}}var F="REJECTED",L="NOT_PENDING",B=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.createPromise,n=e.retryRule,i=void 0===n?F:n;(0,v.default)(this,t),this.createPromise=a,this.status=null,this.promise=null,this.retryRule=i}return(0,g.default)(t,[{key:"needRetry",get:function(){if(!this.status)return!0;switch(this.retryRule){case F:return this.status===O;case L:return this.status!==A}}},{key:"exec",value:function(){var t=this;return this.needRetry?(this.status=A,this.promise=this.createPromise().then((function(e){return t.status=P,Promise.resolve(e)}),(function(e){return t.status=O,Promise.reject(e)})),this.promise):this.promise}}]),t}(),R=function(){function t(){(0,v.default)(this,t),this._callback={}}return(0,g.default)(t,[{key:"addListener",value:function(t,e){this._callback[t]||(this._callback[t]=[]),this._callback[t].push(e)}},{key:"on",value:function(t,e){return this.addListener(t,e)}},{key:"removeListener",value:function(t,e){if(!e)throw new Error('The "listener" argument must be of type function. Received undefined');var a=this._callback[t];if(a){var n=function(t,e){for(var a=t.length-1;a>=0;a--)if(t[a]===e)return a;return-1}(a,e);a.splice(n,1)}}},{key:"off",value:function(t,e){return this.removeListener(t,e)}},{key:"removeAllListener",value:function(t){delete this._callback[t]}},{key:"emit",value:function(t){for(var e=this._callback[t],a=arguments.length,n=new Array(a>1?a-1:0),i=1;i<a;i++)n[i-1]=arguments[i];if(e)for(var r=0;r<e.length;r++)e[r].apply(e,n)}}]),t}();function z(t){return t&&"string"==typeof t?JSON.parse(t):t}var j=z([]),N="web",U=(z(void 0),z([])||[]);try{(a("4fa9").default||a("4fa9")).appid}catch(mn){}var W,G={};function q(t){var e,a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=G,a=t,Object.prototype.hasOwnProperty.call(e,a)||(G[t]=n),G[t]}"app"===N&&(G=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={});var $=["invoke","success","fail","complete"],H=q("_globalUniCloudInterceptor");function Y(t,e){H[t]||(H[t]={}),E(e)&&Object.keys(e).forEach((function(a){$.indexOf(a)>-1&&function(t,e,a){var n=H[t][e];n||(n=H[t][e]=[]),-1===n.indexOf(a)&&I(a)&&n.push(a)}(t,a,e[a])}))}function J(t,e){H[t]||(H[t]={}),E(e)?Object.keys(e).forEach((function(a){$.indexOf(a)>-1&&function(t,e,a){var n=H[t][e];if(n){var i=n.indexOf(a);i>-1&&n.splice(i,1)}}(t,a,e[a])})):delete H[t]}function V(t,e){return t&&0!==t.length?t.reduce((function(t,a){return t.then((function(){return a(e)}))}),Promise.resolve()):Promise.resolve()}function X(t,e){return H[t]&&H[t][e]||[]}function K(t){Y("callObject",t)}var Q=q("_globalUniCloudListener"),Z={RESPONSE:"response",NEED_LOGIN:"needLogin",REFRESH_TOKEN:"refreshToken"},tt={CLIENT_DB:"clientdb",CLOUD_FUNCTION:"cloudfunction",CLOUD_OBJECT:"cloudobject"};function et(t){return Q[t]||(Q[t]=[]),Q[t]}function at(t,e){var a=et(t);a.includes(e)||a.push(e)}function nt(t,e){var a=et(t),n=a.indexOf(e);-1!==n&&a.splice(n,1)}function it(t,e){for(var a=et(t),n=0;n<a.length;n++)(0,a[n])(e)}var rt,ot=!1;function st(){return rt||(rt=new Promise((function(t){ot&&t(),function e(){if("function"==typeof getCurrentPages){var a=getCurrentPages();a&&a[0]&&(ot=!0,t())}ot||setTimeout((function(){e()}),30)}()})),rt)}function lt(t){var e={};for(var a in t){var n=t[a];I(n)&&(e[a]=M(n))}return e}var ct=function(t){(0,f.default)(a,t);var e=(0,h.default)(a);function a(t){var n;return(0,v.default)(this,a),n=e.call(this,t.message),n.errMsg=t.message||t.errMsg||"unknown system error",n.code=n.errCode=t.code||t.errCode||"SYSTEM_ERROR",n.errSubject=n.subject=t.subject||t.errSubject,n.cause=t.cause,n.requestId=t.requestId,n}return(0,g.default)(a,[{key:"toJson",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!(t>=10))return t++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(t):this.cause}}}]),a}((0,p.default)(Error));e.UniCloudError=ct;var ut,dt,ft={request:function(t){return uni.request(t)},uploadFile:function(t){return uni.uploadFile(t)},setStorageSync:function(t,e){return uni.setStorageSync(t,e)},getStorageSync:function(t){return uni.getStorageSync(t)},removeStorageSync:function(t){return uni.removeStorageSync(t)},clearStorageSync:function(){return uni.clearStorageSync()},connectSocket:function(t){return uni.connectSocket(t)}};function ht(){return{token:ft.getStorageSync(C)||ft.getStorageSync("uniIdToken"),tokenExpired:ft.getStorageSync(k)}}function pt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.token,a=t.tokenExpired;e&&ft.setStorageSync(C,e),a&&ft.setStorageSync(k,a)}function vt(){return ut||(ut=uni.getSystemInfoSync()),ut}var gt={};function bt(){var t=uni.getLocale&&uni.getLocale()||"en";if(dt)return(0,d.default)((0,d.default)((0,d.default)({},gt),dt),{},{locale:t,LOCALE:t});var e=vt(),a=e.deviceId,n=e.osName,i=e.uniPlatform,r=e.appId,o=["appId","appLanguage","appName","appVersion","appVersionCode","appWgtVersion","browserName","browserVersion","deviceBrand","deviceId","deviceModel","deviceType","osName","osVersion","romName","romVersion","ua","hostName","hostVersion","uniPlatform","uniRuntimeVersion","uniRuntimeVersionCode","uniCompilerVersion","uniCompilerVersionCode"];for(var s in e)Object.hasOwnProperty.call(e,s)&&-1===o.indexOf(s)&&delete e[s];return dt=(0,d.default)((0,d.default)({PLATFORM:i,OS:n,APPID:r,DEVICEID:a},function(){var t,e;try{if(uni.getLaunchOptionsSync){if(uni.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;var a=uni.getLaunchOptionsSync(),n=a.scene,i=a.channel;t=i,e=n}}catch(t){}return{channel:t,scene:e}}()),e),(0,d.default)((0,d.default)((0,d.default)({},gt),dt),{},{locale:t,LOCALE:t})}var mt,xt={sign:function(t,e){var a="";return Object.keys(t).sort().forEach((function(e){t[e]&&(a=a+"&"+e+"="+t[e])})),a=a.slice(1),w(a,e).toString()},wrappedRequest:function(t,e){return new Promise((function(a,n){e(Object.assign(t,{complete:function(t){t||(t={});var e=t.data&&t.data.header&&t.data.header["x-serverless-request-id"]||t.header&&t.header["request-id"];if(!t.statusCode||t.statusCode>=400){var i=t.data&&t.data.error&&t.data.error.code||"SYS_ERR",r=t.data&&t.data.error&&t.data.error.message||t.errMsg||"request:fail";return n(new ct({code:i,message:r,requestId:e}))}var o=t.data;if(o.error)return n(new ct({code:o.error.code,message:o.error.message,requestId:e}));o.result=o.data,o.requestId=e,delete o.data,a(o)}}))}))},toBase64:function(t){return S.stringify(_.parse(t))}},yt=function(){function t(e){var a=this;(0,v.default)(this,t),["spaceId","clientSecret"].forEach((function(t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error("".concat(t," required"))})),this.config=Object.assign({},{endpoint:0===e.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=ft,this._getAccessTokenPromiseHub=new B({createPromise:function(){return a.requestAuth(a.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(t){if(!t.result||!t.result.accessToken)throw new ct({code:"AUTH_FAILED",message:"获取accessToken失败"});a.setAccessToken(t.result.accessToken)}))},retryRule:L})}return(0,g.default)(t,[{key:"hasAccessToken",get:function(){return!!this.accessToken}},{key:"setAccessToken",value:function(t){this.accessToken=t}},{key:"requestWrapped",value:function(t){return xt.wrappedRequest(t,this.adapter.request)}},{key:"requestAuth",value:function(t){return this.requestWrapped(t)}},{key:"request",value:function(t,e){var a=this;return Promise.resolve().then((function(){return a.hasAccessToken?e?a.requestWrapped(t):a.requestWrapped(t).catch((function(e){return new Promise((function(t,a){!e||"GATEWAY_INVALID_TOKEN"!==e.code&&"InvalidParameter.InvalidToken"!==e.code?a(e):t()})).then((function(){return a.getAccessToken()})).then((function(){var e=a.rebuildRequest(t);return a.request(e,!0)}))})):a.getAccessToken().then((function(){var e=a.rebuildRequest(t);return a.request(e,!0)}))}))}},{key:"rebuildRequest",value:function(t){var e=Object.assign({},t);return e.data.token=this.accessToken,e.header["x-basement-token"]=this.accessToken,e.header["x-serverless-sign"]=xt.sign(e.data,this.config.clientSecret),e}},{key:"setupRequest",value:function(t,e){var a=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};return"auth"!==e&&(a.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=xt.sign(a,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:a,dataType:"json",header:n}}},{key:"getAccessToken",value:function(){return this._getAccessTokenPromiseHub.exec()}},{key:"authorize",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(){return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.getAccessToken();case 2:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"callFunction",value:function(t){var e={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:t.name,functionArgs:t.data||{}})};return this.request((0,d.default)((0,d.default)({},this.setupRequest(e)),{},{timeout:t.timeout}))}},{key:"getOSSUploadOptionsFromPath",value:function(t){var e={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(t)};return this.request(this.setupRequest(e))}},{key:"uploadFileToOSS",value:function(t){var e=this,a=t.url,n=t.formData,i=t.name,r=t.filePath,o=t.fileType,s=t.onUploadProgress;return new Promise((function(t,l){var c=e.adapter.uploadFile({url:a,formData:n,name:i,filePath:r,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(e){e&&e.statusCode<400?t(e):l(new ct({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(t){l(new ct({code:t.code||"UPLOAD_FAILED",message:t.message||t.errMsg||"文件上传失败"}))}});"function"==typeof s&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(t){s({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}},{key:"reportOSSUpload",value:function(t){var e={method:"serverless.file.resource.report",params:JSON.stringify(t)};return this.request(this.setupRequest(e))}},{key:"uploadFile",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e){var a,n,i,r,o,s,l,u,d,f,h,p,v,g,b,m,x,y,w,_,S,C;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=e.filePath,n=e.cloudPath,i=e.fileType,r=void 0===i?"image":i,o=e.cloudPathAsRealPath,s=void 0!==o&&o,l=e.onUploadProgress,u=e.config,"string"===D(n)){t.next=3;break}throw new ct({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(n=n.trim()){t.next=5;break}throw new ct({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(n)){t.next=7;break}throw new ct({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:if(d=u&&u.envType||this.config.envType,!(s&&("/"!==n[0]&&(n="/"+n),n.indexOf("\\")>-1))){t.next=10;break}throw new ct({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});case 10:return t.next=12,this.getOSSUploadOptionsFromPath({env:d,filename:s?n.split("/").pop():n,fileId:s?n:void 0});case 12:return f=t.sent.result,h="https://"+f.cdnDomain+"/"+f.ossPath,p=f.securityToken,v=f.accessKeyId,g=f.signature,b=f.host,m=f.ossPath,x=f.id,y=f.policy,w=f.ossCallbackUrl,_={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:v,Signature:g,host:b,id:x,key:m,policy:y,success_action_status:200},p&&(_["x-oss-security-token"]=p),w&&(S=JSON.stringify({callbackUrl:w,callbackBody:JSON.stringify({fileId:x,spaceId:this.config.spaceId}),callbackBodyType:"application/json"}),_.callback=xt.toBase64(S)),C={url:"https://"+f.host,formData:_,fileName:"file",name:"file",filePath:a,fileType:r},t.next=27,this.uploadFileToOSS(Object.assign({},C,{onUploadProgress:l}));case 27:if(!w){t.next=29;break}return t.abrupt("return",{success:!0,filePath:a,fileID:h});case 29:return t.next=31,this.reportOSSUpload({id:x});case 31:if(!t.sent.success){t.next=33;break}return t.abrupt("return",{success:!0,filePath:a,fileID:h});case 33:throw new ct({code:"UPLOAD_FAILED",message:"文件上传失败"});case 34:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.fileList;return new Promise((function(t,a){Array.isArray(e)&&0!==e.length||a(new ct({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((function(t){return{fileID:t,tempFileURL:t}}))})}))}},{key:"getFileInfo",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(){var e,a,n,i=arguments;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=i.length>0&&void 0!==i[0]?i[0]:{},a=e.fileList,Array.isArray(a)&&0!==a.length){t.next=3;break}throw new ct({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});case 3:return n={method:"serverless.file.resource.info",params:JSON.stringify({id:a.map((function(t){return t.split("?")[0]})).join(",")})},t.next=6,this.request(this.setupRequest(n));case 6:return t.t0=t.sent.result,t.abrupt("return",{fileList:t.t0});case 8:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()}]),t}(),wt={init:function(t){var e=new yt(t),a={signInAnonymously:function(){return e.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return a},e.customAuth=e.auth,e}},_t="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(t){t.local="local",t.none="none",t.session="session"}(mt||(mt={}));var St,Ct=function(){},kt=m((function(t,e){var a;t.exports=(a=y,function(t){var e=a,n=e.lib,i=n.WordArray,r=n.Hasher,o=e.algo,s=[],l=[];!function(){function e(e){for(var a=t.sqrt(e),n=2;n<=a;n++)if(!(e%n))return!1;return!0}function a(t){return 4294967296*(t-(0|t))|0}for(var n=2,i=0;i<64;)e(n)&&(i<8&&(s[i]=a(t.pow(n,.5))),l[i]=a(t.pow(n,1/3)),i++),n++}();var c=[],u=o.SHA256=r.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(t,e){for(var a=this._hash.words,n=a[0],i=a[1],r=a[2],o=a[3],s=a[4],u=a[5],d=a[6],f=a[7],h=0;h<64;h++){if(h<16)c[h]=0|t[e+h];else{var p=c[h-15],v=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=c[h-2],b=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[h]=v+c[h-7]+b+c[h-16]}var m=n&i^n&r^i&r,x=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),y=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+l[h]+c[h];f=d,d=u,u=s,s=o+y|0,o=r,r=i,i=n,n=y+(x+m)|0}a[0]=a[0]+n|0,a[1]=a[1]+i|0,a[2]=a[2]+r|0,a[3]=a[3]+o|0,a[4]=a[4]+s|0,a[5]=a[5]+u|0,a[6]=a[6]+d|0,a[7]=a[7]+f|0},_doFinalize:function(){var e=this._data,a=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return a[i>>>5]|=128<<24-i%32,a[14+(i+64>>>9<<4)]=t.floor(n/4294967296),a[15+(i+64>>>9<<4)]=n,e.sigBytes=4*a.length,this._process(),this._hash},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=r._createHelper(u),e.HmacSHA256=r._createHmacHelper(u)}(Math),a.SHA256)})),Tt=kt,At=m((function(t,e){t.exports=y.HmacSHA256})),Pt=function(){var t;if(!Promise){t=function(){},t.promise={};var e=function(){throw new ct({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(t.promise,"then",{get:e}),Object.defineProperty(t.promise,"catch",{get:e}),t}var a=new Promise((function(e,a){t=function(t,n){return t?a(t):e(n)}}));return t.promise=a,t};function Ot(t){return void 0===t}function Dt(t){return"[object Null]"===Object.prototype.toString.call(t)}function Et(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.replace(/([\s\S]+)\s+(请前往云开发AI小助手查看问题:.*)/,"$1")}function It(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a="",n=0;n<t;n++)a+=e.charAt(Math.floor(62*Math.random()));return a}!function(t){t.WEB="web",t.WX_MP="wx_mp"}(St||(St={}));var Mt={adapter:null,runtime:void 0},Ft=["anonymousUuidKey"],Lt=function(t){(0,f.default)(a,t);var e=(0,h.default)(a);function a(){var t;return(0,v.default)(this,a),t=e.call(this),Mt.adapter.root.tcbObject||(Mt.adapter.root.tcbObject={}),t}return(0,g.default)(a,[{key:"setItem",value:function(t,e){Mt.adapter.root.tcbObject[t]=e}},{key:"getItem",value:function(t){return Mt.adapter.root.tcbObject[t]}},{key:"removeItem",value:function(t){delete Mt.adapter.root.tcbObject[t]}},{key:"clear",value:function(){delete Mt.adapter.root.tcbObject}}]),a}(Ct);function Bt(t,e){switch(t){case"local":return e.localStorage||new Lt;case"none":return new Lt;default:return e.sessionStorage||new Lt}}var Rt=function(){function t(e){if((0,v.default)(this,t),!this._storage){this._persistence=Mt.adapter.primaryStorage||e.persistence,this._storage=Bt(this._persistence,Mt.adapter);var a="access_token_".concat(e.env),n="access_token_expire_".concat(e.env),i="refresh_token_".concat(e.env),r="anonymous_uuid_".concat(e.env),o="login_type_".concat(e.env),s="token_type_".concat(e.env),l="user_info_".concat(e.env);this.keys={accessTokenKey:a,accessTokenExpireKey:n,refreshTokenKey:i,anonymousUuidKey:r,loginTypeKey:o,userInfoKey:l,deviceIdKey:"device_id",tokenTypeKey:s}}}return(0,g.default)(t,[{key:"updatePersistence",value:function(t){if(t!==this._persistence){var e="local"===this._persistence;this._persistence=t;var a=Bt(t,Mt.adapter);for(var n in this.keys){var i=this.keys[n];if(!e||!Ft.includes(n)){var r=this._storage.getItem(i);Ot(r)||Dt(r)||(a.setItem(i,r),this._storage.removeItem(i))}}this._storage=a}}},{key:"setStore",value:function(t,e,a){if(this._storage){var n={version:a||"localCachev1",content:e},i=JSON.stringify(n);try{this._storage.setItem(t,i)}catch(t){throw t}}}},{key:"getStore",value:function(t,e){try{if(!this._storage)return}catch(t){return""}e=e||"localCachev1";var a=this._storage.getItem(t);return a&&a.indexOf(e)>=0?JSON.parse(a).content:""}},{key:"removeStore",value:function(t){this._storage.removeItem(t)}}]),t}(),zt={},jt={};function Nt(t){return zt[t]}var Ut=(0,g.default)((function t(e,a){(0,v.default)(this,t),this.data=a||null,this.name=e})),Wt=function(t){(0,f.default)(a,t);var e=(0,h.default)(a);function a(t,n){var i;return(0,v.default)(this,a),i=e.call(this,"error",{error:t,data:n}),i.error=t,i}return(0,g.default)(a)}(Ut),Gt=new(function(){function t(){(0,v.default)(this,t),this._listeners={}}return(0,g.default)(t,[{key:"on",value:function(t,e){return function(t,e,a){a[t]=a[t]||[],a[t].push(e)}(t,e,this._listeners),this}},{key:"off",value:function(t,e){return function(t,e,a){if(a&&a[t]){var n=a[t].indexOf(e);-1!==n&&a[t].splice(n,1)}}(t,e,this._listeners),this}},{key:"fire",value:function(t,e){if(t instanceof Wt)return console.error(t.error),this;var a="string"==typeof t?new Ut(t,e||{}):t,n=a.name;if(this._listens(n)){a.target=this;var i,r=this._listeners[n]?(0,s.default)(this._listeners[n]):[],o=(0,l.default)(r);try{for(o.s();!(i=o.n()).done;){var c=i.value;c.call(this,a)}}catch(u){o.e(u)}finally{o.f()}}return this}},{key:"_listens",value:function(t){return this._listeners[t]&&this._listeners[t].length>0}}]),t}());function qt(t,e){Gt.on(t,e)}function $t(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Gt.fire(t,e)}function Ht(t,e){Gt.off(t,e)}var Yt,Jt="loginStateChanged",Vt="loginStateExpire",Xt="loginTypeChanged",Kt="anonymousConverted",Qt="refreshAccessToken";!function(t){t.ANONYMOUS="ANONYMOUS",t.WECHAT="WECHAT",t.WECHAT_PUBLIC="WECHAT-PUBLIC",t.WECHAT_OPEN="WECHAT-OPEN",t.CUSTOM="CUSTOM",t.EMAIL="EMAIL",t.USERNAME="USERNAME",t.NULL="NULL"}(Yt||(Yt={}));var Zt=function(){function t(){(0,v.default)(this,t),this._fnPromiseMap=new Map}return(0,g.default)(t,[{key:"run",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e,a){var n,i=this;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=this._fnPromiseMap.get(e),t.abrupt("return",(n||(n=new Promise(function(){var t=(0,u.default)((0,c.default)().mark((function t(n,r){var o;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i._runIdlePromise();case 3:return o=a(),t.t0=n,t.next=7,o;case 7:t.t1=t.sent,(0,t.t0)(t.t1),t.next=14;break;case 11:t.prev=11,t.t2=t["catch"](0),r(t.t2);case 14:return t.prev=14,i._fnPromiseMap.delete(e),t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[0,11,14,17]])})));return function(e,a){return t.apply(this,arguments)}}()),this._fnPromiseMap.set(e,n)),n));case 2:case"end":return t.stop()}}),t,this)})));return function(e,a){return t.apply(this,arguments)}}()},{key:"_runIdlePromise",value:function(){return Promise.resolve()}}]),t}(),te=function(){function t(e){(0,v.default)(this,t),this._singlePromise=new Zt,this._cache=Nt(e.env),this._baseURL="https://".concat(e.env,".ap-shanghai.tcb-api.tencentcloudapi.com"),this._reqClass=new Mt.adapter.reqClass({timeout:e.timeout,timeoutMsg:"请求在".concat(e.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]})}return(0,g.default)(t,[{key:"_getDeviceId",value:function(){if(this._deviceID)return this._deviceID;var t=this._cache.keys.deviceIdKey,e=this._cache.getStore(t);return"string"==typeof e&&e.length>=16&&e.length<=48||(e=It(),this._cache.setStore(t,e)),this._deviceID=e,e}},{key:"_request",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e,a){var n,i,r,o,s,l=arguments;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=l.length>2&&void 0!==l[2]?l[2]:{},i={"x-request-id":It(),"x-device-id":this._getDeviceId()},!n.withAccessToken){t.next=9;break}return r=this._cache.keys.tokenTypeKey,t.next=6,this.getAccessToken();case 6:o=t.sent,s=this._cache.getStore(r),i.authorization="".concat(s," ").concat(o);case 9:return t.abrupt("return",this._reqClass["get"===n.method?"get":"post"]({url:"".concat(this._baseURL).concat(e),data:a,headers:i}));case 10:case"end":return t.stop()}}),t,this)})));return function(e,a){return t.apply(this,arguments)}}()},{key:"_fetchAccessToken",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(){var e,a,n,i,r,o,s,l,d,f,h=this;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this._cache.keys,a=e.loginTypeKey,n=e.accessTokenKey,i=e.accessTokenExpireKey,r=e.tokenTypeKey,o=this._cache.getStore(a),!o||o===Yt.ANONYMOUS){t.next=3;break}throw new ct({code:"INVALID_OPERATION",message:"非匿名登录不支持刷新 access token"});case 3:return t.next=5,this._singlePromise.run("fetchAccessToken",(0,u.default)((0,c.default)().mark((function t(){return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,h._request("/auth/v1/signin/anonymously",{},{method:"post"});case 2:return t.abrupt("return",t.sent.data);case 3:case"end":return t.stop()}}),t)}))));case 5:return s=t.sent,l=s.access_token,d=s.expires_in,f=s.token_type,t.abrupt("return",(this._cache.setStore(r,f),this._cache.setStore(n,l),this._cache.setStore(i,Date.now()+1e3*d),l));case 10:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"isAccessTokenExpired",value:function(t,e){var a=!0;return t&&e&&(a=e<Date.now()),a}},{key:"getAccessToken",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(){var e,a,n,i,r;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this._cache.keys,a=e.accessTokenKey,n=e.accessTokenExpireKey,i=this._cache.getStore(a),r=this._cache.getStore(n),t.abrupt("return",this.isAccessTokenExpired(i,r)?this._fetchAccessToken():i);case 2:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"refreshAccessToken",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(){var e,a,n,i;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this._cache.keys,a=e.accessTokenKey,n=e.accessTokenExpireKey,i=e.loginTypeKey,t.abrupt("return",(this._cache.removeStore(a),this._cache.removeStore(n),this._cache.setStore(i,Yt.ANONYMOUS),this.getAccessToken()));case 2:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"getUserInfo",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(){var e=this;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._singlePromise.run("getUserInfo",(0,u.default)((0,c.default)().mark((function t(){return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e._request("/auth/v1/user/me",{},{withAccessToken:!0,method:"get"});case 2:return t.abrupt("return",t.sent.data);case 3:case"end":return t.stop()}}),t)})))));case 1:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()}]),t}(),ee=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],ae={"X-SDK-Version":"1.3.5"};function ne(t,e,a){var n=t[e];t[e]=function(e){var i={},r={};a.forEach((function(a){var n=a.call(t,e),o=n.data,s=n.headers;Object.assign(i,o),Object.assign(r,s)}));var o=e.data;return o&&function(){var t;if(t=o,"[object FormData]"!==Object.prototype.toString.call(t))e.data=(0,d.default)((0,d.default)({},o),i);else for(var a in i)o.append(a,i[a])}(),e.headers=(0,d.default)((0,d.default)({},e.headers||{}),r),n.call(t,e)}}function ie(){var t=Math.random().toString(16).slice(2);return{data:{seqId:t},headers:(0,d.default)((0,d.default)({},ae),{},{"x-seqid":t})}}var re=function(){function t(){var e,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,v.default)(this,t),this.config=a,this._reqClass=new Mt.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]}),this._cache=Nt(this.config.env),this._localCache=(e=this.config.env,jt[e]),this.oauth=new te(this.config),ne(this._reqClass,"post",[ie]),ne(this._reqClass,"upload",[ie]),ne(this._reqClass,"download",[ie])}return(0,g.default)(t,[{key:"post",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e){return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._reqClass.post(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"upload",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e){return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._reqClass.upload(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"download",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e){return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._reqClass.download(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"refreshAccessToken",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(){var e,a;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),t.prev=1,t.next=4,this._refreshAccessTokenPromise;case 4:e=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](1),a=t.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!a){t.next=12;break}throw a;case 12:return t.abrupt("return",e);case 13:case"end":return t.stop()}}),t,this,[[1,7]])})));return function(){return t.apply(this,arguments)}}()},{key:"_refreshAccessToken",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(){var e,a,n,i,r,o,s,l,u,d,f,h,p;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this._cache.keys,a=e.accessTokenKey,n=e.accessTokenExpireKey,i=e.refreshTokenKey,r=e.loginTypeKey,o=e.anonymousUuidKey,this._cache.removeStore(a),this._cache.removeStore(n),s=this._cache.getStore(i),s){t.next=5;break}throw new ct({message:"未登录CloudBase"});case 5:return l={refresh_token:s},t.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",l);case 8:if(u=t.sent,!u.data.code){t.next=21;break}if(d=u.data.code,"SIGN_PARAM_INVALID"!==d&&"REFRESH_TOKEN_EXPIRED"!==d&&"INVALID_REFRESH_TOKEN"!==d){t.next=20;break}if(this._cache.getStore(r)!==Yt.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==d){t.next=19;break}return f=this._cache.getStore(o),h=this._cache.getStore(i),t.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:f,refresh_token:h});case 17:return p=t.sent,t.abrupt("return",(this.setRefreshToken(p.refresh_token),this._refreshAccessToken()));case 19:$t(Vt),this._cache.removeStore(i);case 20:throw new ct({code:u.data.code,message:"刷新access token失败:".concat(u.data.code)});case 21:if(!u.data.access_token){t.next=23;break}return t.abrupt("return",($t(Qt),this._cache.setStore(a,u.data.access_token),this._cache.setStore(n,u.data.access_token_expire+Date.now()),{accessToken:u.data.access_token,accessTokenExpire:u.data.access_token_expire}));case 23:u.data.refresh_token&&(this._cache.removeStore(i),this._cache.setStore(i,u.data.refresh_token),this._refreshAccessToken());case 24:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"getAccessToken",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(){var e,a,n,i,r,o,s;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this._cache.keys,a=e.accessTokenKey,n=e.accessTokenExpireKey,i=e.refreshTokenKey,this._cache.getStore(i)){t.next=3;break}throw new ct({message:"refresh token不存在,登录状态异常"});case 3:if(r=this._cache.getStore(a),o=this._cache.getStore(n),s=!0,t.t0=this._shouldRefreshAccessTokenHook,!t.t0){t.next=9;break}return t.next=8,this._shouldRefreshAccessTokenHook(r,o);case 8:t.t0=!t.sent;case 9:if(t.t1=t.t0,!t.t1){t.next=12;break}s=!1;case 12:return t.abrupt("return",(!r||!o||o<Date.now())&&s?this.refreshAccessToken():{accessToken:r,accessTokenExpire:o});case 13:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"request",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e,a,n){var i,r,o,s,l,u,f,h,p,v,g,b,m,x,y;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i="x-tcb-trace_".concat(this.config.env),r="application/x-www-form-urlencoded",o=(0,d.default)({action:e,env:this.config.env,dataVersion:"2019-08-16"},a),t.t0=-1===ee.indexOf(e),!t.t0){t.next=9;break}return this._cache.keys,t.next=8,this.oauth.getAccessToken();case 8:o.access_token=t.sent;case 9:if("storage.uploadFile"!==e){t.next=15;break}for(l in s=new FormData,s)s.hasOwnProperty(l)&&void 0!==s[l]&&s.append(l,o[l]);r="multipart/form-data",t.next=17;break;case 15:for(u in r="application/json",s={},o)void 0!==o[u]&&(s[u]=o[u]);case 17:return f={headers:{"content-type":r}},n&&n.timeout&&(f.timeout=n.timeout),n&&n.onUploadProgress&&(f.onUploadProgress=n.onUploadProgress),h=this._localCache.getStore(i),h&&(f.headers["X-TCB-Trace"]=h),p=a.parse,v=a.inQuery,g=a.search,b={env:this.config.env},p&&(b.parse=!0),v&&(b=(0,d.default)((0,d.default)({},v),b)),m=function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=/\?/.test(e),i="";for(var r in a)""===i?!n&&(e+="?"):i+="&",i+="".concat(r,"=").concat(encodeURIComponent(a[r]));return/^http(s)?\:\/\//.test(e+=i)?e:"".concat(t).concat(e)}(_t,"//tcb-api.tencentcloudapi.com/web",b),g&&(m+=g),t.next=28,this.post((0,d.default)({url:m,data:s},f));case 28:if(x=t.sent,y=x.header&&x.header["x-tcb-trace"],y&&this._localCache.setStore(i,y),(200===Number(x.status)||200===Number(x.statusCode))&&x.data){t.next=32;break}throw new ct({code:"NETWORK_ERROR",message:"network request error"});case 32:return t.abrupt("return",x);case 33:case"end":return t.stop()}}),t,this)})));return function(e,a,n){return t.apply(this,arguments)}}()},{key:"send",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e){var a,n,i,r,o=arguments;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=o.length>1&&void 0!==o[1]?o[1]:{},n=o.length>2&&void 0!==o[2]?o[2]:{},t.next=4,this.request(e,a,(0,d.default)((0,d.default)({},n),{},{onUploadProgress:a.onUploadProgress}));case 4:if(i=t.sent,"ACCESS_TOKEN_DISABLED"!==i.data.code&&"ACCESS_TOKEN_EXPIRED"!==i.data.code||-1!==ee.indexOf(e)){t.next=14;break}return t.next=8,this.oauth.refreshAccessToken();case 8:return t.next=10,this.request(e,a,(0,d.default)((0,d.default)({},n),{},{onUploadProgress:a.onUploadProgress}));case 10:if(r=t.sent,!r.data.code){t.next=13;break}throw new ct({code:r.data.code,message:Et(r.data.message)});case 13:return t.abrupt("return",r.data);case 14:if(!i.data.code){t.next=16;break}throw new ct({code:i.data.code,message:Et(i.data.message)});case 16:return t.abrupt("return",i.data);case 17:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"setRefreshToken",value:function(t){var e=this._cache.keys,a=e.accessTokenKey,n=e.accessTokenExpireKey,i=e.refreshTokenKey;this._cache.removeStore(a),this._cache.removeStore(n),this._cache.setStore(i,t)}}]),t}(),oe={};function se(t){return oe[t]}var le=function(){function t(e){(0,v.default)(this,t),this.config=e,this._cache=Nt(e.env),this._request=se(e.env)}return(0,g.default)(t,[{key:"setRefreshToken",value:function(t){var e=this._cache.keys,a=e.accessTokenKey,n=e.accessTokenExpireKey,i=e.refreshTokenKey;this._cache.removeStore(a),this._cache.removeStore(n),this._cache.setStore(i,t)}},{key:"setAccessToken",value:function(t,e){var a=this._cache.keys,n=a.accessTokenKey,i=a.accessTokenExpireKey;this._cache.setStore(n,t),this._cache.setStore(i,e)}},{key:"refreshUserInfo",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(){var e,a;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._request.send("auth.getUserInfo",{});case 2:return e=t.sent,a=e.data,t.abrupt("return",(this.setLocalUserInfo(a),a));case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"setLocalUserInfo",value:function(t){var e=this._cache.keys.userInfoKey;this._cache.setStore(e,t)}}]),t}(),ce=function(){function t(e){if((0,v.default)(this,t),!e)throw new ct({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=e,this._cache=Nt(this._envId),this._request=se(this._envId),this.setUserInfo()}return(0,g.default)(t,[{key:"linkWithTicket",value:function(t){if("string"!=typeof t)throw new ct({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:t})}},{key:"linkWithRedirect",value:function(t){t.signInWithRedirect()}},{key:"updatePassword",value:function(t,e){return this._request.send("auth.updatePassword",{oldPassword:e,newPassword:t})}},{key:"updateEmail",value:function(t){return this._request.send("auth.updateEmail",{newEmail:t})}},{key:"updateUsername",value:function(t){if("string"!=typeof t)throw new ct({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:t})}},{key:"getLinkedUidList",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(){var e,a,n,i;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._request.send("auth.getLinkedUidList",{});case 2:return e=t.sent,a=e.data,n=!1,i=a.users,t.abrupt("return",(i.forEach((function(t){t.wxOpenId&&t.wxPublicId&&(n=!0)})),{users:i,hasPrimaryUid:n}));case 7:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"setPrimaryUid",value:function(t){return this._request.send("auth.setPrimaryUid",{uid:t})}},{key:"unlink",value:function(t){return this._request.send("auth.unlink",{platform:t})}},{key:"update",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e){var a,n,i,r,o,s,l,u;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.nickName,n=e.gender,i=e.avatarUrl,r=e.province,o=e.country,s=e.city,t.next=8,this._request.send("auth.updateUserInfo",{nickName:a,gender:n,avatarUrl:i,province:r,country:o,city:s});case 8:l=t.sent,u=l.data,this.setLocalUserInfo(u);case 11:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"refresh",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(){var e;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._request.oauth.getUserInfo();case 2:return e=t.sent,t.abrupt("return",(this.setLocalUserInfo(e),e));case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"setUserInfo",value:function(){var t=this,e=this._cache.keys.userInfoKey,a=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((function(e){t[e]=a[e]})),this.location={country:a.country,province:a.province,city:a.city}}},{key:"setLocalUserInfo",value:function(t){var e=this._cache.keys.userInfoKey;this._cache.setStore(e,t),this.setUserInfo()}}]),t}(),ue=function(){function t(e){if((0,v.default)(this,t),!e)throw new ct({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Nt(e);var a=this._cache.keys,n=a.refreshTokenKey,i=a.accessTokenKey,r=a.accessTokenExpireKey,o=this._cache.getStore(n),s=this._cache.getStore(i),l=this._cache.getStore(r);this.credential={refreshToken:o,accessToken:s,accessTokenExpire:l},this.user=new ce(e)}return(0,g.default)(t,[{key:"isAnonymousAuth",get:function(){return this.loginType===Yt.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===Yt.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===Yt.WECHAT||this.loginType===Yt.WECHAT_OPEN||this.loginType===Yt.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),t}(),de=function(t){(0,f.default)(a,t);var e=(0,h.default)(a);function a(){return(0,v.default)(this,a),e.apply(this,arguments)}return(0,g.default)(a,[{key:"signIn",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(){var e;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this._cache.updatePersistence("local"),t.next=3,this._request.oauth.getAccessToken();case 3:return $t(Jt),$t(Xt,{env:this.config.env,loginType:Yt.ANONYMOUS,persistence:"local"}),e=new ue(this.config.env),t.next=8,e.user.refresh();case 8:return t.abrupt("return",e);case 9:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e){var a,n,i,r,o,s;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=this._cache.keys,n=a.anonymousUuidKey,i=a.refreshTokenKey,r=this._cache.getStore(n),o=this._cache.getStore(i),t.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:r,refresh_token:o,ticket:e});case 7:if(s=t.sent,!s.refresh_token){t.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(s.refresh_token),t.next=13,this._request.refreshAccessToken();case 13:return $t(Kt,{env:this.config.env}),$t(Xt,{loginType:Yt.CUSTOM,persistence:"local"}),t.abrupt("return",{credential:{refreshToken:s.refresh_token}});case 16:throw new ct({message:"匿名转化失败"});case 17:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_setAnonymousUUID",value:function(t){var e=this._cache.keys,a=e.anonymousUuidKey,n=e.loginTypeKey;this._cache.removeStore(a),this._cache.setStore(a,t),this._cache.setStore(n,Yt.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),a}(le),fe=function(t){(0,f.default)(a,t);var e=(0,h.default)(a);function a(){return(0,v.default)(this,a),e.apply(this,arguments)}return(0,g.default)(a,[{key:"signIn",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e){var a,n;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new ct({code:"PARAM_ERROR",message:"ticket must be a string"});case 2:return a=this._cache.keys.refreshTokenKey,t.next=5,this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(a)||""});case 5:if(n=t.sent,!n.refresh_token){t.next=15;break}return this.setRefreshToken(n.refresh_token),t.next=10,this._request.refreshAccessToken();case 10:return $t(Jt),$t(Xt,{env:this.config.env,loginType:Yt.CUSTOM,persistence:this.config.persistence}),t.next=14,this.refreshUserInfo();case 14:return t.abrupt("return",new ue(this.config.env));case 15:throw new ct({message:"自定义登录失败"});case 16:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}]),a}(le),he=function(t){(0,f.default)(a,t);var e=(0,h.default)(a);function a(){return(0,v.default)(this,a),e.apply(this,arguments)}return(0,g.default)(a,[{key:"signIn",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e,a){var n,i,r,o,s;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new ct({code:"PARAM_ERROR",message:"email must be a string"});case 2:return n=this._cache.keys.refreshTokenKey,t.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:a,refresh_token:this._cache.getStore(n)||""});case 5:if(i=t.sent,r=i.refresh_token,o=i.access_token,s=i.access_token_expire,!r){t.next=22;break}if(this.setRefreshToken(r),!o||!s){t.next=15;break}this.setAccessToken(o,s),t.next=17;break;case 15:return t.next=17,this._request.refreshAccessToken();case 17:return t.next=19,this.refreshUserInfo();case 19:return $t(Jt),$t(Xt,{env:this.config.env,loginType:Yt.EMAIL,persistence:this.config.persistence}),t.abrupt("return",new ue(this.config.env));case 22:throw i.code?new ct({code:i.code,message:"邮箱登录失败: ".concat(i.message)}):new ct({message:"邮箱登录失败"});case 23:case"end":return t.stop()}}),t,this)})));return function(e,a){return t.apply(this,arguments)}}()},{key:"activate",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e){return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._request.send("auth.activateEndUserMail",{token:e}));case 1:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"resetPasswordWithToken",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e,a){return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:a}));case 1:case"end":return t.stop()}}),t,this)})));return function(e,a){return t.apply(this,arguments)}}()}]),a}(le),pe=function(t){(0,f.default)(a,t);var e=(0,h.default)(a);function a(){return(0,v.default)(this,a),e.apply(this,arguments)}return(0,g.default)(a,[{key:"signIn",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e,a){var n,i,r,o,s;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new ct({code:"PARAM_ERROR",message:"username must be a string"});case 2:return"string"!=typeof a&&(a="",console.warn("password is empty")),n=this._cache.keys.refreshTokenKey,t.next=6,this._request.send("auth.signIn",{loginType:Yt.USERNAME,username:e,password:a,refresh_token:this._cache.getStore(n)||""});case 6:if(i=t.sent,r=i.refresh_token,o=i.access_token_expire,s=i.access_token,!r){t.next=23;break}if(this.setRefreshToken(r),!s||!o){t.next=16;break}this.setAccessToken(s,o),t.next=18;break;case 16:return t.next=18,this._request.refreshAccessToken();case 18:return t.next=20,this.refreshUserInfo();case 20:return $t(Jt),$t(Xt,{env:this.config.env,loginType:Yt.USERNAME,persistence:this.config.persistence}),t.abrupt("return",new ue(this.config.env));case 23:throw i.code?new ct({code:i.code,message:"用户名密码登录失败: ".concat(i.message)}):new ct({message:"用户名密码登录失败"});case 24:case"end":return t.stop()}}),t,this)})));return function(e,a){return t.apply(this,arguments)}}()}]),a}(le),ve=function(){function t(e){(0,v.default)(this,t),this.config=e,this._cache=Nt(e.env),this._request=se(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),qt(Xt,this._onLoginTypeChanged)}return(0,g.default)(t,[{key:"currentUser",get:function(){var t=this.hasLoginState();return t&&t.user||null}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}},{key:"anonymousAuthProvider",value:function(){return new de(this.config)}},{key:"customAuthProvider",value:function(){return new fe(this.config)}},{key:"emailAuthProvider",value:function(){return new he(this.config)}},{key:"usernameAuthProvider",value:function(){return new pe(this.config)}},{key:"signInAnonymously",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(){return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new de(this.config).signIn());case 1:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"signInWithEmailAndPassword",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e,a){return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new he(this.config).signIn(e,a));case 1:case"end":return t.stop()}}),t,this)})));return function(e,a){return t.apply(this,arguments)}}()},{key:"signInWithUsernameAndPassword",value:function(t,e){return new pe(this.config).signIn(t,e)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e){return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new de(this.config)),qt(Kt,this._onAnonymousConverted),t.next=3,this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"signOut",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(){var e,a,n,i,r,o;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.loginType!==Yt.ANONYMOUS){t.next=2;break}throw new ct({message:"匿名用户不支持登出操作"});case 2:if(e=this._cache.keys,a=e.refreshTokenKey,n=e.accessTokenKey,i=e.accessTokenExpireKey,r=this._cache.getStore(a),r){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,this._request.send("auth.logout",{refresh_token:r});case 7:return o=t.sent,t.abrupt("return",(this._cache.removeStore(a),this._cache.removeStore(n),this._cache.removeStore(i),$t(Jt),$t(Xt,{env:this.config.env,loginType:Yt.NULL,persistence:this.config.persistence}),o));case 9:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"signUpWithEmailAndPassword",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e,a){return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:a}));case 1:case"end":return t.stop()}}),t,this)})));return function(e,a){return t.apply(this,arguments)}}()},{key:"sendPasswordResetEmail",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e){return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._request.send("auth.sendPasswordResetEmail",{email:e}));case 1:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"onLoginStateChanged",value:function(t){var e=this;qt(Jt,(function(){var a=e.hasLoginState();t.call(e,a)}));var a=this.hasLoginState();t.call(this,a)}},{key:"onLoginStateExpired",value:function(t){qt(Vt,t.bind(this))}},{key:"onAccessTokenRefreshed",value:function(t){qt(Qt,t.bind(this))}},{key:"onAnonymousConverted",value:function(t){qt(Kt,t.bind(this))}},{key:"onLoginTypeChanged",value:function(t){var e=this;qt(Xt,(function(){var a=e.hasLoginState();t.call(e,a)}))}},{key:"getAccessToken",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(){return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._request.getAccessToken();case 2:return t.t0=t.sent.accessToken,t.t1=this.config.env,t.abrupt("return",{accessToken:t.t0,env:t.t1});case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"hasLoginState",value:function(){var t=this._cache.keys,e=t.accessTokenKey,a=t.accessTokenExpireKey,n=this._cache.getStore(e),i=this._cache.getStore(a);return this._request.oauth.isAccessTokenExpired(n,i)?null:new ue(this.config.env)}},{key:"isUsernameRegistered",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e){var a,n;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new ct({code:"PARAM_ERROR",message:"username must be a string"});case 2:return t.next=4,this._request.send("auth.isUsernameRegistered",{username:e});case 4:return a=t.sent,n=a.data,t.abrupt("return",n&&n.isRegistered);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e){return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new fe(this.config).signIn(e));case 1:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"shouldRefreshAccessToken",value:function(t){this._request._shouldRefreshAccessTokenHook=t.bind(this)}},{key:"getUserInfo",value:function(){return this._request.send("auth.getUserInfo",{}).then((function(t){return t.code?t:(0,d.default)((0,d.default)({},t.data),{},{requestId:t.seqId})}))}},{key:"getAuthHeader",value:function(){var t=this._cache.keys,e=t.refreshTokenKey,a=t.accessTokenKey,n=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(a)+"/@@/"+n}}},{key:"_onAnonymousConverted",value:function(t){var e=t.data.env;e===this.config.env&&this._cache.updatePersistence(this.config.persistence)}},{key:"_onLoginTypeChanged",value:function(t){var e=t.data,a=e.loginType,n=e.persistence,i=e.env;i===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,a))}}]),t}(),ge=function(t,e){e=e||Pt();var a=se(this.config.env),n=t.cloudPath,i=t.filePath,r=t.onUploadProgress,o=t.fileType,s=void 0===o?"image":o;return a.send("storage.getUploadMetadata",{path:n}).then((function(t){var o=t.data,l=o.url,c=o.authorization,u=o.token,d=o.fileId,f=o.cosFileId,h=t.requestId,p={key:n,signature:c,"x-cos-meta-fileid":f,success_action_status:"201","x-cos-security-token":u};a.upload({url:l,data:p,file:i,name:n,fileType:s,onUploadProgress:r}).then((function(t){201===t.statusCode?e(null,{fileID:d,requestId:h}):e(new ct({code:"STORAGE_REQUEST_FAIL",message:"STORAGE_REQUEST_FAIL: ".concat(t.data)}))})).catch((function(t){e(t)}))})).catch((function(t){e(t)})),e.promise},be=function(t,e){e=e||Pt();var a=se(this.config.env),n=t.cloudPath;return a.send("storage.getUploadMetadata",{path:n}).then((function(t){e(null,t)})).catch((function(t){e(t)})),e.promise},me=function(t,e){var a=t.fileList;if(e=e||Pt(),!a||!Array.isArray(a))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var n,i=(0,l.default)(a);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(!r||"string"!=typeof r)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(s){i.e(s)}finally{i.f()}var o={fileid_list:a};return se(this.config.env).send("storage.batchDeleteFile",o).then((function(t){t.code?e(null,t):e(null,{fileList:t.data.delete_list,requestId:t.requestId})})).catch((function(t){e(t)})),e.promise},xe=function(t,e){var a=t.fileList;e=e||Pt(),a&&Array.isArray(a)||e(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var n,i=[],r=(0,l.default)(a);try{for(r.s();!(n=r.n()).done;){var s=n.value;"object"==(0,o.default)(s)?(s.hasOwnProperty("fileID")&&s.hasOwnProperty("maxAge")||e(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),i.push({fileid:s.fileID,max_age:s.maxAge})):"string"==typeof s?i.push({fileid:s}):e(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(u){r.e(u)}finally{r.f()}var c={file_list:i};return se(this.config.env).send("storage.batchGetDownloadUrl",c).then((function(t){t.code?e(null,t):e(null,{fileList:t.data.download_list,requestId:t.requestId})})).catch((function(t){e(t)})),e.promise},ye=function(){var t=(0,u.default)((0,c.default)().mark((function t(e,a){var n,i,r,o;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.fileID,t.next=3,xe.call(this,{fileList:[{fileID:n,maxAge:600}]});case 3:if(i=t.sent.fileList[0],"SUCCESS"===i.code){t.next=6;break}return t.abrupt("return",a?a(i):new Promise((function(t){t(i)})));case 6:if(r=se(this.config.env),o=i.download_url,o=encodeURI(o),a){t.next=10;break}return t.abrupt("return",r.download({url:o}));case 10:return t.t0=a,t.next=13,r.download({url:o});case 13:t.t1=t.sent,(0,t.t0)(t.t1);case 15:case"end":return t.stop()}}),t,this)})));return function(e,a){return t.apply(this,arguments)}}(),we=function(t,e){var a,n=t.name,i=t.data,r=t.query,o=t.parse,s=t.search,l=t.timeout,c=e||Pt();try{a=i?JSON.stringify(i):""}catch(n){return Promise.reject(n)}if(!n)return Promise.reject(new ct({code:"PARAM_ERROR",message:"函数名不能为空"}));var u={inQuery:r,parse:o,search:s,function_name:n,request_data:a};return se(this.config.env).send("functions.invokeFunction",u,{timeout:l}).then((function(t){if(t.code)c(null,t);else{var e=t.data.response_data;if(o)c(null,{result:e,requestId:t.requestId});else try{e=JSON.parse(t.data.response_data),c(null,{result:e,requestId:t.requestId})}catch(t){c(new ct({message:"response data must be json"}))}}return c.promise})).catch((function(t){c(t)})),c.promise},_e={timeout:15e3,persistence:"session"},Se={},Ce=function(){function t(e){(0,v.default)(this,t),this.config=e||this.config,this.authObj=void 0}return(0,g.default)(t,[{key:"init",value:function(e){switch(Mt.adapter||(this.requestClient=new Mt.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:"请求在".concat((e.timeout||5e3)/1e3,"s内未完成,已中断")})),this.config=(0,d.default)((0,d.default)({},_e),e),!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new t(this.config)}},{key:"auth",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.persistence;if(this.authObj)return this.authObj;var a,n=e||Mt.adapter.primaryStorage||_e.persistence;return n!==this.config.persistence&&(this.config.persistence=n),function(t){var e=t.env;zt[e]=new Rt(t),jt[e]=new Rt((0,d.default)((0,d.default)({},t),{},{persistence:"local"}))}(this.config),a=this.config,oe[a.env]=new re(a),this.authObj=new ve(this.config),this.authObj}},{key:"on",value:function(t,e){return qt.apply(this,[t,e])}},{key:"off",value:function(t,e){return Ht.apply(this,[t,e])}},{key:"callFunction",value:function(t,e){return we.apply(this,[t,e])}},{key:"deleteFile",value:function(t,e){return me.apply(this,[t,e])}},{key:"getTempFileURL",value:function(t,e){return xe.apply(this,[t,e])}},{key:"downloadFile",value:function(t,e){return ye.apply(this,[t,e])}},{key:"uploadFile",value:function(t,e){return ge.apply(this,[t,e])}},{key:"getUploadMetadata",value:function(t,e){return be.apply(this,[t,e])}},{key:"registerExtension",value:function(t){Se[t.name]=t}},{key:"invokeExtension",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e,a){var n;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=Se[e],n){t.next=3;break}throw new ct({message:"扩展".concat(e," 必须先注册")});case 3:return t.next=5,n.invoke(a,this);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)})));return function(e,a){return t.apply(this,arguments)}}()},{key:"useAdapters",value:function(t){var e=function(t){var e,a,n=(e=t,"[object Array]"===Object.prototype.toString.call(e)?t:[t]),i=(0,l.default)(n);try{for(i.s();!(a=i.n()).done;){var r=a.value,o=r.isMatch,s=r.genAdapter,c=r.runtime;if(o())return{adapter:s(),runtime:c}}}catch(u){i.e(u)}finally{i.f()}}(t)||{},a=e.adapter,n=e.runtime;a&&(Mt.adapter=a),n&&(Mt.runtime=n)}}]),t}(),ke=new Ce;function Te(t,e,a){void 0===a&&(a={});var n=/\?/.test(e),i="";for(var r in a)""===i?!n&&(e+="?"):i+="&",i+=r+"="+encodeURIComponent(a[r]);return/^http(s)?:\/\//.test(e+=i)?e:""+t+e}var Ae=function(){function t(){(0,v.default)(this,t)}return(0,g.default)(t,[{key:"get",value:function(t){var e=t.url,a=t.data,n=t.headers,i=t.timeout;return new Promise((function(t,r){ft.request({url:Te("https:",e),data:a,method:"GET",header:n,timeout:i,success:function(e){t(e)},fail:function(t){r(t)}})}))}},{key:"post",value:function(t){var e=t.url,a=t.data,n=t.headers,i=t.timeout;return new Promise((function(t,r){ft.request({url:Te("https:",e),data:a,method:"POST",header:n,timeout:i,success:function(e){t(e)},fail:function(t){r(t)}})}))}},{key:"upload",value:function(t){return new Promise((function(e,a){var n=t.url,i=t.file,r=t.data,o=t.headers,s=t.fileType,l=ft.uploadFile({url:Te("https:",n),name:"file",formData:Object.assign({},r),filePath:i,fileType:s,header:o,success:function(t){var a={statusCode:t.statusCode,data:t.data||{}};200===t.statusCode&&r.success_action_status&&(a.statusCode=parseInt(r.success_action_status,10)),e(a)},fail:function(t){a(new Error(t.errMsg||"uploadFile:fail"))}});"function"==typeof t.onUploadProgress&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((function(e){t.onUploadProgress({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}}]),t}(),Pe={setItem:function(t,e){ft.setStorageSync(t,e)},getItem:function(t){return ft.getStorageSync(t)},removeItem:function(t){ft.removeStorageSync(t)},clear:function(){ft.clearStorageSync()}},Oe={genAdapter:function(){return{root:{},reqClass:Ae,localStorage:Pe,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};ke.useAdapters(Oe);var De=ke,Ee=De.init;De.init=function(t){t.env=t.spaceId;var e=Ee.call(this,t);e.config.provider="tencent",e.config.spaceId=t.spaceId;var a=e.auth;return e.auth=function(t){var e=a.call(this,t);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(t){var a;e[t]=(a=e[t],function(t){t=t||{};var e=lt(t),n=e.success,i=e.fail,r=e.complete;if(!(n||i||r))return a.call(this,t);a.call(this,t).then((function(t){n&&n(t),r&&r(t)}),(function(t){i&&i(t),r&&r(t)}))}).bind(e)})),e},e.customAuth=e.auth,e};var Ie=De;function Me(t,e){return Fe.apply(this,arguments)}function Fe(){return Fe=(0,u.default)((0,c.default)().mark((function t(e,a){var n,i,r;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n="http://".concat(e,":").concat(a,"/system/ping"),t.prev=1,t.next=4,r={url:n,timeout:500},new Promise((function(t,e){ft.request((0,d.default)((0,d.default)({},r),{},{success:function(e){t(e)},fail:function(t){e(t)}}))}));case 4:return i=t.sent,t.abrupt("return",!(!i.data||0!==i.data.code));case 8:return t.prev=8,t.t0=t["catch"](1),t.abrupt("return",!1);case 11:case"end":return t.stop()}}),t,null,[[1,8]])}))),Fe.apply(this,arguments)}function Le(t,e){return Be.apply(this,arguments)}function Be(){return Be=(0,u.default)((0,c.default)().mark((function t(e,a){var n,i,r;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:i=0;case 1:if(!(i<e.length)){t.next=11;break}return r=e[i],t.next=5,Me(r,a);case 5:if(!t.sent){t.next=8;break}return n=r,t.abrupt("break",11);case 8:i++,t.next=1;break;case 11:return t.abrupt("return",{address:n,port:a});case 12:case"end":return t.stop()}}),t)}))),Be.apply(this,arguments)}var Re={"serverless.file.resource.generateProximalSign":"storage/generate-proximal-sign","serverless.file.resource.report":"storage/report","serverless.file.resource.delete":"storage/delete","serverless.file.resource.getTempFileURL":"storage/get-temp-file-url"},ze=function(){function t(e){if((0,v.default)(this,t),["spaceId","clientSecret"].forEach((function(t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error("".concat(t," required"))})),!e.endpoint)throw new Error("集群空间未配置ApiEndpoint,配置后需要重新关联服务空间后生效");this.config=Object.assign({},e),this.config.provider="dcloud",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.adapter=ft}return(0,g.default)(t,[{key:"request",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e){var a,n=this,i=arguments;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(i.length>1&&void 0!==i[1])||i[1],a=!1,!a){t.next=8;break}return t.next=5,this.setupLocalRequest(e);case 5:t.t0=t.sent,t.next=9;break;case 8:t.t0=this.setupRequest(e);case 9:return e=t.t0,t.abrupt("return",Promise.resolve().then((function(){return a?n.requestLocal(e):xt.wrappedRequest(e,n.adapter.request)})));case 11:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"requestLocal",value:function(t){var e=this;return new Promise((function(a,n){e.adapter.request(Object.assign(t,{complete:function(t){if(t||(t={}),!t.statusCode||t.statusCode>=400){var e=t.data&&t.data.code||"SYS_ERR",i=t.data&&t.data.message||"request:fail";return n(new ct({code:e,message:i}))}a({success:!0,result:t.data})}}))}))}},{key:"setupRequest",value:function(t){var e=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now()}),a={"Content-Type":"application/json"};a["x-serverless-sign"]=xt.sign(e,this.config.clientSecret);var n=bt();a["x-client-info"]=encodeURIComponent(JSON.stringify(n));var i=ht(),r=i.token;return a["x-client-token"]=r,{url:this.config.requestUrl,method:"POST",data:e,dataType:"json",header:JSON.parse(JSON.stringify(a))}}},{key:"setupLocalRequest",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e){var a,n,i,r,o,s,l,u,d;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=bt(),n=ht(),i=n.token,r=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now(),clientInfo:a,token:i}),o=this.__dev__&&this.__dev__.debugInfo||{},s=o.address,l=o.servePort,t.next=9,Le(s,l);case 9:return u=t.sent,d=u.address,t.abrupt("return",{url:"http://".concat(d,":").concat(l,"/").concat(Re[e.method]),method:"POST",data:r,dataType:"json",header:JSON.parse(JSON.stringify({"Content-Type":"application/json"}))});case 12:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"callFunction",value:function(t){var e={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:t.name,functionArgs:t.data||{}})};return this.request(e,!1)}},{key:"getUploadFileOptions",value:function(t){var e={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(t)};return this.request(e)}},{key:"reportUploadFile",value:function(t){var e={method:"serverless.file.resource.report",params:JSON.stringify(t)};return this.request(e)}},{key:"uploadFile",value:function(t){var e,a=this,n=t.filePath,i=t.cloudPath,r=t.fileType,o=void 0===r?"image":r,s=t.onUploadProgress;if(!i)throw new ct({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getUploadFileOptions({cloudPath:i}).then((function(t){var i=t.result,r=i.url,l=i.formData,c=i.name;return e=t.result.fileUrl,new Promise((function(t,e){var i=a.adapter.uploadFile({url:r,formData:l,name:c,filePath:n,fileType:o,success:function(a){a&&a.statusCode<400?t(a):e(new ct({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(t){e(new ct({code:t.code||"UPLOAD_FAILED",message:t.message||t.errMsg||"文件上传失败"}))}});"function"==typeof s&&i&&"function"==typeof i.onProgressUpdate&&i.onProgressUpdate((function(t){s({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))})).then((function(){return a.reportUploadFile({cloudPath:i})})).then((function(t){return new Promise((function(a,i){t.success?a({success:!0,filePath:n,fileID:e}):i(new ct({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(t){var e=t.fileList,a={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(a).then((function(t){if(t.success)return t.result;throw new ct({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}},{key:"getTempFileURL",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.fileList,a=t.maxAge;if(!Array.isArray(e)||0===e.length)throw new ct({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});var n={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e,maxAge:a})};return this.request(n).then((function(t){if(t.success)return{fileList:t.result.fileList.map((function(t){return{fileID:t.fileID,tempFileURL:t.tempFileURL}}))};throw new ct({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}}]),t}(),je={init:function(t){var e=new ze(t),a={signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return a},e.customAuth=e.auth,e}},Ne=m((function(t,e){t.exports=y.enc.Hex}));function Ue(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function We(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=e.data,n=e.functionName,i=e.method,o=e.headers,s=e.signHeaderKeys,l=void 0===s?[]:s,c=e.config,u=String(Date.now()),d=Ue(),f=Object.assign({},o,{"x-from-app-id":c.spaceAppId,"x-from-env-id":c.spaceId,"x-to-env-id":c.spaceId,"x-from-instance-id":u,"x-from-function-name":n,"x-client-timestamp":u,"x-alipay-source":"client","x-request-id":d,"x-alipay-callid":d,"x-trace-id":d}),h=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(l),p=t.split("?")||[],v=(0,r.default)(p,2),g=v[0],b=void 0===g?"":g,m=v[1],x=void 0===m?"":m,y=function(t){var e="HMAC-SHA256",a=t.signedHeaders.join(";"),n=t.signedHeaders.map((function(e){return"".concat(e.toLowerCase(),":").concat(t.headers[e],"\n")})).join(""),i=Tt(t.body).toString(Ne),r="".concat(t.method.toUpperCase(),"\n").concat(t.path,"\n").concat(t.query,"\n").concat(n,"\n").concat(a,"\n").concat(i,"\n"),o=Tt(r).toString(Ne),s="".concat(e,"\n").concat(t.timestamp,"\n").concat(o,"\n"),l=At(s,t.secretKey).toString(Ne);return"".concat(e," Credential=").concat(t.secretId,", SignedHeaders=").concat(a,", Signature=").concat(l)}({path:b,query:x,method:i,headers:f,timestamp:u,body:JSON.stringify(a),secretId:c.accessKey,secretKey:c.secretKey,signedHeaders:h.sort()});return{url:"".concat(c.endpoint).concat(t),headers:Object.assign({},f,{Authorization:y})}}function Ge(t){var e=t.url,a=t.data,n=t.method,i=void 0===n?"POST":n,r=t.headers,s=void 0===r?{}:r,l=t.timeout;return new Promise((function(t,n){ft.request({url:e,method:i,data:"object"==(0,o.default)(a)?JSON.stringify(a):a,header:s,dataType:"json",timeout:l,complete:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=s["x-trace-id"]||"";if(!e.statusCode||e.statusCode>=400){var i=e.data||{},r=i.message,o=i.errMsg,l=i.trace_id;return n(new ct({code:"SYS_ERR",message:r||o||"request:fail",requestId:l||a}))}t({status:e.statusCode,data:e.data,headers:e.header,requestId:a})}})}))}function qe(t,e){var a=t.path,n=t.data,i=t.method,r=void 0===i?"GET":i,o=We(a,{functionName:"",data:n,method:r,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:e}),s=o.url,l=o.headers;return Ge({url:s,data:n,method:r,headers:l}).then((function(t){var e=t.data||{};if(!e.success)throw new ct({code:t.errCode,message:t.errMsg,requestId:t.requestId});return e.data||{}})).catch((function(t){throw new ct({code:t.errCode,message:t.errMsg,requestId:t.requestId})}))}function $e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.trim().replace(/^cloud:\/\//,""),a=e.indexOf("/");if(a<=0)throw new ct({code:"INVALID_PARAM",message:"fileID不合法"});var n=e.substring(0,a),i=e.substring(a+1);return n!==this.config.spaceId&&console.warn("file ".concat(t," does not belong to env ").concat(this.config.spaceId)),i}function He(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"cloud://".concat(this.config.spaceId,"/").concat(t.replace(/^\/+/,""))}var Ye=function(){function t(e){(0,v.default)(this,t),this.config=e}return(0,g.default)(t,[{key:"signedURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a="/ws/function/".concat(t),n=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),i=Object.assign({},e,{accessKeyId:this.config.accessKey,signatureNonce:Ue(),timestamp:""+Date.now()}),r=[a,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map((function(t){return i[t]?"".concat(t,"=").concat(i[t]):null})).filter(Boolean).join("&"),"host:".concat(n)].join("\n"),o=["HMAC-SHA256",Tt(r).toString(Ne)].join("\n"),s=At(o,this.config.secretKey).toString(Ne),l=Object.keys(i).map((function(t){return"".concat(t,"=").concat(encodeURIComponent(i[t]))})).join("&");return"".concat(this.config.wsEndpoint).concat(a,"?").concat(l,"&signature=").concat(s)}}]),t}(),Je=function(){function t(e){if((0,v.default)(this,t),["spaceId","spaceAppId","accessKey","secretKey"].forEach((function(t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error("".concat(t," required"))})),e.endpoint){if("string"!=typeof e.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(e.endpoint))throw new Error("endpoint must start with https://");e.endpoint=e.endpoint.replace(/\/$/,"")}this.config=Object.assign({},e,{endpoint:e.endpoint||"https://".concat(e.spaceId,".api-hz.cloudbasefunction.cn"),wsEndpoint:e.wsEndpoint||"wss://".concat(e.spaceId,".api-hz.cloudbasefunction.cn")}),this._websocket=new Ye(this.config)}return(0,g.default)(t,[{key:"callFunction",value:function(t){return function(t,e){var a=t.name,n=t.data,i=t.async,r=void 0!==i&&i,o=t.timeout,s="POST",l={"x-to-function-name":a};r&&(l["x-function-invoke-type"]="async");var c=We("/functions/invokeFunction",{functionName:a,data:n,method:s,headers:l,signHeaderKeys:["x-to-function-name"],config:e}),u=c.url,d=c.headers;return Ge({url:u,data:n,method:s,headers:d,timeout:o}).then((function(t){var e=0;if(r){var a=t.data||{};e="200"===a.errCode?0:a.errCode,t.data=a.data||{},t.errMsg=a.errMsg}if(0!==e)throw new ct({code:e,message:t.errMsg,requestId:t.requestId});return{errCode:e,success:0===e,requestId:t.requestId,result:t.data}})).catch((function(t){throw new ct({code:t.errCode,message:t.errMsg,requestId:t.requestId})}))}(t,this.config)}},{key:"uploadFileToOSS",value:function(t){var e=t.url,a=t.filePath,n=t.fileType,i=t.formData,r=t.onUploadProgress;return new Promise((function(t,o){var s=ft.uploadFile({url:e,filePath:a,fileType:n,formData:i,name:"file",success:function(e){e&&e.statusCode<400?t(e):o(new ct({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(t){o(new ct({code:t.code||"UPLOAD_FAILED",message:t.message||t.errMsg||"文件上传失败"}))}});"function"==typeof r&&s&&"function"==typeof s.onProgressUpdate&&s.onProgressUpdate((function(t){r({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e){var a,n,i,r,o,s,l,u,d,f,h;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=e.filePath,n=e.cloudPath,i=void 0===n?"":n,r=e.fileType,o=void 0===r?"image":r,s=e.onUploadProgress,"string"===D(i)){t.next=3;break}throw new ct({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(i=i.trim()){t.next=5;break}throw new ct({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(i)){t.next=7;break}throw new ct({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:return t.next=9,qe({path:"/".concat(i.replace(/^\//,""),"?post_url")},this.config);case 9:return l=t.sent,u=l.file_id,d=l.upload_url,f=l.form_data,h=f&&f.reduce((function(t,e){return t[e.key]=e.value,t}),{}),t.abrupt("return",this.uploadFileToOSS({url:d,filePath:a,fileType:o,formData:h,onUploadProgress:s}).then((function(){return{fileID:u}})));case 15:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e){var a,n=this;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.fileList,t.abrupt("return",new Promise((function(t,e){(!a||a.length<0)&&t({code:"INVALID_PARAM",message:"fileList不能为空数组"}),a.length>50&&t({code:"INVALID_PARAM",message:"fileList数组长度不能超过50"});var i,r=[],o=(0,l.default)(a);try{for(o.s();!(i=o.n()).done;){var s=i.value,c=void 0;"string"!==D(s)&&t({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});try{c=$e.call(n,s)}catch(t){console.warn(t.errCode,t.errMsg),c=s}r.push({file_id:c,expire:600})}}catch(u){o.e(u)}finally{o.f()}qe({path:"/?download_url",data:{file_list:r},method:"POST"},n.config).then((function(e){var a=e.file_list,i=void 0===a?[]:a;t({fileList:i.map((function(t){return{fileID:He.call(n,t.file_id),tempFileURL:t.download_url}}))})})).catch((function(t){return e(t)}))})));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"connectWebSocket",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(e){var a,n;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.name,n=e.query,t.abrupt("return",ft.connectSocket({url:this._websocket.signedURL(a,n),complete:function(){}}));case 2:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}]),t}(),Ve={init:function(t){t.provider="alipay";var e=new Je(t);return e.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},e}};function Xe(t){var e,a=t.data;e=bt();var n=JSON.parse(JSON.stringify(a||{}));if(Object.assign(n,{clientInfo:e}),!n.uniIdToken){var i=ht(),r=i.token;r&&(n.uniIdToken=r)}return n}var Ke=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],Qe=/[\\^$.*+?()[\]{}|]/g,Ze=RegExp(Qe.source);function ta(t,e,a){return t.replace(new RegExp((n=e)&&Ze.test(n)?n.replace(Qe,"\\$&"):n,"g"),a);var n}var ea={NONE:"none",REQUEST:"request",RESPONSE:"response",BOTH:"both"},aa="_globalUniCloudStatus",na="_globalUniCloudSecureNetworkCache__{spaceId}";var ia;ia="0123456789abcdef";var ra="uni-secure-network",oa={SYSTEM_ERROR:{code:2e4,message:"System error"},APP_INFO_INVALID:{code:20101,message:"Invalid client"},GET_ENCRYPT_KEY_FAILED:{code:20102,message:"Get encrypt key failed"}};function sa(t){var e=t||{},a=e.errSubject,n=e.subject,i=e.errCode,r=e.errMsg,o=e.code,s=e.message,l=e.cause;return new ct({subject:a||n||ra,code:i||o||oa.SYSTEM_ERROR.code,message:r||s,cause:l})}var la;function ca(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.secretType;return e===ea.REQUEST||e===ea.RESPONSE||e===ea.BOTH}function ua(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.name,a=t.data,n=void 0===a?{}:a;return"app"===N&&"DCloud-clientDB"===e&&"encryption"===n.redirectTo&&"getAppClientKey"===n.action}function da(t){t.functionName,t.result,t.logPvd}function fa(t){var e=t.callFunction,a=function(a){var n=this,i=a.name;a.data=Xe.call(t,{data:a.data});var r={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],o=ca(a),s=ua(a),l=o||s;return e.call(this,a).then((function(t){return t.errCode=0,!l&&da.call(n,{functionName:i,result:t,logPvd:r}),Promise.resolve(t)}),(function(t){return!l&&da.call(n,{functionName:i,result:t,logPvd:r}),t&&t.message&&(t.message=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.message,a=void 0===e?"":e,n=t.extraInfo,i=void 0===n?{}:n,r=t.formatter,o=void 0===r?[]:r,s=0;s<o.length;s++){var l=o[s],c=l.rule,u=l.content,d=l.mode,f=a.match(c);if(f){for(var h=u,p=1;p<f.length;p++)h=ta(h,"{$".concat(p,"}"),f[p]);for(var v in i)h=ta(h,"{".concat(v,"}"),i[v]);return"replace"===d?h:a+h}}return a}({message:"[".concat(a.name,"]: ").concat(t.message),formatter:Ke,extraInfo:{functionName:i}})),Promise.reject(t)}))};t.callFunction=function(e){var n,i,r=t.config,o=r.provider,s=r.spaceId,l=e.name;return e.data=e.data||{},n=a,n=n.bind(t),i=ua(e)?a.call(t,e):function(t){var e=t.name,a=t.data,n=void 0===a?{}:a;return"mp-weixin"===N&&"uni-id-co"===e&&"secureNetworkHandshakeByWeixin"===n.method}(e)?n.call(t,e):ca(e)?new la({secretType:e.secretType,uniCloudIns:t}).wrapEncryptDataCallFunction(a.bind(t))(e):function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.provider,a=t.spaceId,n=t.functionName,i=vt(),r=i.appId,o=i.uniPlatform,s=i.osName,l=o;"app"===o&&(l=s);var c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.provider,a=t.spaceId,n=j;if(!n)return{};e=function(t){return"tencent"===t?"tcb":t}(e);var i=n.find((function(t){return t.provider===e&&t.spaceId===a}));return i&&i.config}({provider:e,spaceId:a});if(!c||!c.accessControl||!c.accessControl.enable)return!1;var u=c.accessControl.function||{},d=Object.keys(u);if(0===d.length)return!0;var f=function(t,e){for(var a,n,i,r=0;r<t.length;r++){var o=t[r];o!==e?"*"!==o?o.split(",").map((function(t){return t.trim()})).indexOf(e)>-1&&(n=o):i=o:a=o}return a||n||i}(d,n);if(!f)return!1;if((u[f]||[]).find((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.appId===r&&(t.platform||"").toLowerCase()===l.toLowerCase()})))return!0;throw console.error("此应用[appId: ".concat(r,", platform: ").concat(l,"]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")),sa(oa.APP_INFO_INVALID)}({provider:o,spaceId:s,functionName:l})?new la({secretType:e.secretType,uniCloudIns:t}).wrapVerifyClientCallFunction(a.bind(t))(e):n(e),Object.defineProperty(i,"result",{get:function(){return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),i.then((function(t){return"undefined"!=typeof UTSJSONObject&&(t.result=new UTSJSONObject(t.result)),t}))}}la="mp-weixin"!==N&&"app"!==N?function(){return(0,g.default)((function t(){throw(0,v.default)(this,t),sa({message:"Platform ".concat(N," is not supported by secure network")})}))}():function(){return(0,g.default)((function t(){throw(0,v.default)(this,t),sa({message:"Platform ".concat(N," is not enabled, please check whether secure network module is enabled in your manifest.json")})}))}();var ha=Symbol("CLIENT_DB_INTERNAL");function pa(t,e){return t.then="DoNotReturnProxyWithAFunctionNamedThen",t._internalType=ha,t.inspect=null,t.__ob__=void 0,new Proxy(t,{get:function(t,a,n){if("_uniClient"===a)return null;if("symbol"==(0,o.default)(a))return t[a];if(a in t||"string"!=typeof a){var i=t[a];return"function"==typeof i?i.bind(t):i}return e.get(t,a,n)}})}function va(t){return{on:function(e,a){t[e]=t[e]||[],t[e].indexOf(a)>-1||t[e].push(a)},off:function(e,a){t[e]=t[e]||[];var n=t[e].indexOf(a);-1!==n&&t[e].splice(n,1)}}}var ga=["db.Geo","db.command","command.aggregate"];function ba(t,e){return ga.indexOf("".concat(t,".").concat(e))>-1}function ma(t){switch(D(t)){case"array":return t.map((function(t){return ma(t)}));case"object":return t._internalType===ha||Object.keys(t).forEach((function(e){t[e]=ma(t[e])})),t;case"regexp":return{$regexp:{source:t.source,flags:t.flags}};case"date":return{$date:t.toISOString()};default:return t}}function xa(t){return t&&t.content&&t.content.$method}var ya=function(){function t(e,a,n){(0,v.default)(this,t),this.content=e,this.prevStage=a||null,this.udb=null,this._database=n}return(0,g.default)(t,[{key:"toJSON",value:function(){for(var t=this,e=[t.content];t.prevStage;)t=t.prevStage,e.push(t.content);return{$db:e.reverse().map((function(t){return{$method:t.$method,$param:ma(t.$param)}}))}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}},{key:"getAction",value:function(){var t=this.toJSON().$db.find((function(t){return"action"===t.$method}));return t&&t.$param&&t.$param[0]}},{key:"getCommand",value:function(){return{$db:this.toJSON().$db.filter((function(t){return"action"!==t.$method}))}}},{key:"isAggregate",get:function(){for(var t=this;t;){var e=xa(t),a=xa(t.prevStage);if("aggregate"===e&&"collection"===a||"pipeline"===e)return!0;t=t.prevStage}return!1}},{key:"isCommand",get:function(){for(var t=this;t;){if("command"===xa(t))return!0;t=t.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var t=this;t;){var e=xa(t),a=xa(t.prevStage);if("aggregate"===e&&"command"===a)return!0;t=t.prevStage}return!1}},{key:"getNextStageFn",value:function(t){var e=this;return function(){return wa({$method:t,$param:ma(Array.from(arguments))},e,e._database)}}},{key:"count",get:function(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}},{key:"remove",get:function(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}},{key:"get",value:function(){return this._send("get",Array.from(arguments))}},{key:"add",get:function(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}},{key:"update",value:function(){return this._send("update",Array.from(arguments))}},{key:"end",value:function(){return this._send("end",Array.from(arguments))}},{key:"set",get:function(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}},{key:"_send",value:function(t,e){var a=this.getAction(),n=this.getCommand();return n.$db.push({$method:t,$param:ma(e)}),this._database._callCloudFunction({action:a,command:n})}}]),t}();function wa(t,e,a){return pa(new ya(t,e,a),{get:function(t,e){var n="db";return t&&t.content&&(n=t.content.$method),ba(n,e)?wa({$method:e},t,a):function(){return wa({$method:e,$param:ma(Array.from(arguments))},t,a)}}})}function _a(t){var e=t.path,a=t.method;return function(){function t(){(0,v.default)(this,t),this.param=Array.from(arguments)}return(0,g.default)(t,[{key:"toJSON",value:function(){return{$newDb:[].concat((0,s.default)(e.map((function(t){return{$method:t}}))),[{$method:a,$param:this.param}])}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}}]),t}()}var Sa=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.uniClient,n=void 0===a?{}:a,i=e.isJQL,r=void 0!==i&&i;(0,v.default)(this,t),this._uniClient=n,this._authCallBacks={},this._dbCallBacks={},n._isDefault&&(this._dbCallBacks=q("_globalUniCloudDatabaseCallback")),r||(this.auth=va(this._authCallBacks)),this._isJQL=r,Object.assign(this,va(this._dbCallBacks)),this.env=pa({},{get:function(t,e){return{$env:e}}}),this.Geo=pa({},{get:function(t,e){return _a({path:["Geo"],method:e})}}),this.serverDate=_a({path:[],method:"serverDate"}),this.RegExp=_a({path:[],method:"RegExp"})}return(0,g.default)(t,[{key:"getCloudEnv",value:function(t){if("string"!=typeof t||!t.trim())throw new Error("getCloudEnv参数错误");return{$env:t.replace("$cloudEnv_","")}}},{key:"_callback",value:function(t,e){var a=this._dbCallBacks;a[t]&&a[t].forEach((function(t){t.apply(void 0,(0,s.default)(e))}))}},{key:"_callbackAuth",value:function(t,e){var a=this._authCallBacks;a[t]&&a[t].forEach((function(t){t.apply(void 0,(0,s.default)(e))}))}},{key:"multiSend",value:function(){var t=Array.from(arguments),e=t.map((function(t){var e=t.getAction(),a=t.getCommand();if("getTemp"!==a.$db[a.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:e,command:a}}));return this._callCloudFunction({multiCommand:e,queryList:t})}}]),t}();function Ca(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return pa(new t(e),{get:function(t,e){return ba("db",e)?wa({$method:e},null,t):function(){return wa({$method:e,$param:ma(Array.from(arguments))},null,t)}}})}var ka=function(t){(0,f.default)(a,t);var e=(0,h.default)(a);function a(){return(0,v.default)(this,a),e.apply(this,arguments)}return(0,g.default)(a,[{key:"_parseResult",value:function(t){return this._isJQL?t.result:t}},{key:"_callCloudFunction",value:function(t){var e=this,a=t.action,n=t.command,i=t.multiCommand,r=t.queryList;function o(t,e){if(i&&r)for(var a=0;a<r.length;a++){var n=r[a];n.udb&&"function"==typeof n.udb.setResult&&(e?n.udb.setResult(e):n.udb.setResult(t.result.dataList[a]))}}var s=this,l=this._isJQL?"databaseForJQL":"database";function c(t){return s._callback("error",[t]),V(X(l,"fail"),t).then((function(){return V(X(l,"complete"),t)})).then((function(){return o(null,t),it(Z.RESPONSE,{type:tt.CLIENT_DB,content:t}),Promise.reject(t)}))}var u=V(X(l,"invoke")),d=this._uniClient;return u.then((function(){return d.callFunction({name:"DCloud-clientDB",type:T.CLIENT_DB,data:{action:a,command:n,multiCommand:i}})})).then((function(t){var a=t.result,n=a.code,i=a.message,r=a.token,u=a.tokenExpired,d=a.systemInfo,f=void 0===d?[]:d;if(f)for(var h=0;h<f.length;h++){var p=f[h],v=p.level,g=p.message,b=p.detail,m="[System Info]"+g;b&&(m="".concat(m,"\n详细信息:").concat(b)),(console["app"===N&&"warn"===v?"error":v]||console.log)(m)}if(n)return c(new ct({code:n,message:i,requestId:t.requestId}));t.result.errCode=t.result.errCode||t.result.code,t.result.errMsg=t.result.errMsg||t.result.message,r&&u&&(pt({token:r,tokenExpired:u}),e._callbackAuth("refreshToken",[{token:r,tokenExpired:u}]),e._callback("refreshToken",[{token:r,tokenExpired:u}]),it(Z.REFRESH_TOKEN,{token:r,tokenExpired:u}));for(var x=[{prop:"affectedDocs",tips:"affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"},{prop:"code",tips:"code不再推荐使用,请使用errCode替代"},{prop:"message",tips:"message不再推荐使用,请使用errMsg替代"}],y=function(e){var a=x[e],n=a.prop,i=a.tips;if(n in t.result){var r=t.result[n];Object.defineProperty(t.result,n,{get:function(){return console.warn(i),r}})}},w=0;w<x.length;w++)y(w);return function(t){return V(X(l,"success"),t).then((function(){return V(X(l,"complete"),t)})).then((function(){o(t,null);var e=s._parseResult(t);return it(Z.RESPONSE,{type:tt.CLIENT_DB,content:e}),Promise.resolve(e)}))}(t)}),(function(t){return/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(t.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),c(new ct({code:t.code||"SYSTEM_ERROR",message:t.message,requestId:t.requestId}))}))}}]),a}(Sa),Ta="token无效,跳转登录页面",Aa="token过期,跳转登录页面",Pa={TOKEN_INVALID_TOKEN_EXPIRED:Aa,TOKEN_INVALID_INVALID_CLIENTID:Ta,TOKEN_INVALID:Ta,TOKEN_INVALID_WRONG_TOKEN:Ta,TOKEN_INVALID_ANONYMOUS_USER:Ta},Oa={"uni-id-token-expired":Aa,"uni-id-check-token-failed":Ta,"uni-id-token-not-exist":Ta,"uni-id-check-device-feature-failed":Ta};function Da(t,e){var a="";return a=t?"".concat(t,"/").concat(e):e,a.replace(/^\//,"")}function Ea(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=[],n=[];return t.forEach((function(t){!0===t.needLogin?a.push(Da(e,t.path)):!1===t.needLogin&&n.push(Da(e,t.path))})),{needLoginPage:a,notNeedLoginPage:n}}function Ia(t){return t.split("?")[0].replace(/^\//,"")}function Ma(){return function(t){var e=t&&t.$page&&t.$page.fullPath||"";return e?("/"!==e.charAt(0)&&(e="/"+e),e):e}(function(){var t=getCurrentPages();return t[t.length-1]}())}function Fa(){return Ia(Ma())}function La(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return!1;if(!(e&&e.list&&e.list.length))return!1;var a=e.list,n=Ia(t);return a.some((function(t){return t.pagePath===n}))}var Ba,Ra=!!b.default.uniIdRouter,za=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.default,e=t.pages,a=void 0===e?[]:e,n=t.subPackages,i=void 0===n?[]:n,r=t.uniIdRouter,o=void 0===r?{}:r,l=t.tabBar,c=void 0===l?{}:l,u=o.loginPage,d=o.needLogin,f=void 0===d?[]:d,h=o.resToLogin,p=void 0===h||h,v=Ea(a),g=v.needLoginPage,m=v.notNeedLoginPage,x=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[],a=[];return t.forEach((function(t){var n=t.root,i=t.pages,r=void 0===i?[]:i,o=Ea(r,n),l=o.needLoginPage,c=o.notNeedLoginPage;e.push.apply(e,(0,s.default)(l)),a.push.apply(a,(0,s.default)(c))})),{needLoginPage:e,notNeedLoginPage:a}}(i),y=x.needLoginPage,w=x.notNeedLoginPage;return{loginPage:u,routerNeedLogin:f,resToLogin:p,needLoginPage:[].concat((0,s.default)(g),(0,s.default)(y)),notNeedLoginPage:[].concat((0,s.default)(m),(0,s.default)(w)),loginPageInTabBar:La(u,c)}}(),ja=za.loginPage,Na=za.routerNeedLogin,Ua=za.resToLogin,Wa=za.needLoginPage,Ga=za.notNeedLoginPage,qa=za.loginPageInTabBar;if(Wa.indexOf(ja)>-1)throw new Error("Login page [".concat(ja,'] should not be "needLogin", please check your pages.json'));function $a(t){var e=Fa();if("/"===t.charAt(0))return t;var a=t.split("?"),n=(0,r.default)(a,2),i=n[0],o=n[1],s=i.replace(/^\//,"").split("/"),l=e.split("/");l.pop();for(var c=0;c<s.length;c++){var u=s[c];".."===u?l.pop():"."!==u&&l.push(u)}return""===l[0]&&l.shift(),"/"+l.join("/")+(o?"?"+o:"")}function Ha(t){var e=Ia($a(t));return!(Ga.indexOf(e)>-1)&&(Wa.indexOf(e)>-1||Na.some((function(e){return function(t,e){return new RegExp(e).test(t)}(t,e)})))}function Ya(t){var e=t.redirect,a=Ia(e),n=Ia(ja);return Fa()!==n&&a!==n}function Ja(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.api,a=t.redirect;if(a&&Ya({redirect:a})){var n=function(t,e){return"/"!==t.charAt(0)&&(t="/"+t),e?t.indexOf("?")>-1?t+"&uniIdRedirectUrl=".concat(encodeURIComponent(e)):t+"?uniIdRedirectUrl=".concat(encodeURIComponent(e)):t}(ja,a);qa?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");var i={navigateTo:uni.navigateTo,redirectTo:uni.redirectTo,switchTab:uni.switchTab,reLaunch:uni.reLaunch};setTimeout((function(){i[e]({url:n})}),0)}}function Va(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.url,a={abortLoginPageJump:!1,autoToLoginPage:!1},n=function(){var t,e=ht(),a=e.token,n=e.tokenExpired;if(a){if(n<Date.now()){var i="uni-id-token-expired";t={errCode:i,errMsg:Oa[i]}}}else{var r="uni-id-check-token-failed";t={errCode:r,errMsg:Oa[r]}}return t}();if(Ha(e)&&n){if(n.uniIdRedirectUrl=e,et(Z.NEED_LOGIN).length>0)return setTimeout((function(){it(Z.NEED_LOGIN,n)}),0),a.abortLoginPageJump=!0,a;a.autoToLoginPage=!0}return a}function Xa(){!function(){var t=Ma(),e=Va({url:t}),a=e.abortLoginPageJump,n=e.autoToLoginPage;a||n&&Ja({api:"redirectTo",redirect:t})}();for(var t=["navigateTo","redirectTo","reLaunch","switchTab"],e=function(e){var a=t[e];uni.addInterceptor(a,{invoke:function(t){var e=Va({url:t.url}),n=e.abortLoginPageJump,i=e.autoToLoginPage;return n?t:i?(Ja({api:a,redirect:$a(t.url)}),!1):t}})},a=0;a<t.length;a++)e(a)}function Ka(){this.onResponse((function(t){var e=t.type,a=t.content,n=!1;switch(e){case"cloudobject":n=function(t){if("object"!=(0,o.default)(t))return!1;var e=t||{},a=e.errCode;return a in Oa}(a);break;case"clientdb":n=function(t){if("object"!=(0,o.default)(t))return!1;var e=t||{},a=e.errCode;return a in Pa}(a)}n&&function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=et(Z.NEED_LOGIN);st().then((function(){var a=Ma();if(a&&Ya({redirect:a}))return e.length>0?it(Z.NEED_LOGIN,Object.assign({uniIdRedirectUrl:a},t)):void(ja&&Ja({api:"navigateTo",redirect:a}))}))}(a)}))}function Qa(t){!function(t){t.onResponse=function(t){at(Z.RESPONSE,t)},t.offResponse=function(t){nt(Z.RESPONSE,t)}}(t),function(t){t.onNeedLogin=function(t){at(Z.NEED_LOGIN,t)},t.offNeedLogin=function(t){nt(Z.NEED_LOGIN,t)},Ra&&(q(aa).needLoginInit||(q(aa).needLoginInit=!0,st().then((function(){Xa.call(t)})),Ua&&Ka.call(t)))}(t),function(t){t.onRefreshToken=function(t){at(Z.REFRESH_TOKEN,t)},t.offRefreshToken=function(t){nt(Z.REFRESH_TOKEN,t)}}(t)}var Za="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",tn=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function en(){var t,e,a=ht().token||"",n=a.split(".");if(!a||3!==n.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{t=JSON.parse((e=n[1],decodeURIComponent(Ba(e).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(a){throw new Error("获取当前用户信息出错,详细错误信息为:"+a.message)}return t.tokenExpired=1e3*t.exp,delete t.exp,delete t.iat,t}Ba="function"!=typeof atob?function(t){if(t=String(t).replace(/[\t\n\f\r ]+/g,""),!tn.test(t))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var e;t+="==".slice(2-(3&t.length));for(var a,n,i="",r=0;r<t.length;)e=Za.indexOf(t.charAt(r++))<<18|Za.indexOf(t.charAt(r++))<<12|(a=Za.indexOf(t.charAt(r++)))<<6|(n=Za.indexOf(t.charAt(r++))),i+=64===a?String.fromCharCode(e>>16&255):64===n?String.fromCharCode(e>>16&255,e>>8&255):String.fromCharCode(e>>16&255,e>>8&255,255&e);return i}:atob;var an=m((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var a="chooseAndUploadFile:ok",n="chooseAndUploadFile:fail";function i(t,e){return t.tempFiles.forEach((function(t,a){t.name||(t.name=t.path.substring(t.path.lastIndexOf("/")+1)),e&&(t.fileType=e),t.cloudPath=Date.now()+"_"+a+t.name.substring(t.name.lastIndexOf("."))})),t.tempFilePaths||(t.tempFilePaths=t.tempFiles.map((function(t){return t.path}))),t}function r(t,e,n){var i=n.onChooseFile,r=n.onUploadProgress;return e.then((function(t){if(i){var e=i(t);if(void 0!==e)return Promise.resolve(e).then((function(e){return void 0===e?t:e}))}return t})).then((function(e){return!1===e?{errMsg:a,tempFilePaths:[],tempFiles:[]}:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,i=arguments.length>3?arguments[3]:void 0;(e=Object.assign({},e)).errMsg=a;var r=e.tempFiles,o=r.length,s=0;return new Promise((function(a){for(;s<n;)l();function l(){var n=s++;if(n>=o)!r.find((function(t){return!t.url&&!t.errMsg}))&&a(e);else{var c=r[n];t.uploadFile({provider:c.provider,filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,cloudPathAsRealPath:c.cloudPathAsRealPath,onUploadProgress:function(t){t.index=n,t.tempFile=c,t.tempFilePath=c.path,i&&i(t)}}).then((function(t){c.url=t.fileID,n<o&&l()})).catch((function(t){c.errMsg=t.errMsg||t.message,n<o&&l()}))}}}))}(t,e,5,r)}))}e.initChooseAndUploadFile=function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===e.type?r(t,function(t){var e=t.count,a=t.sizeType,r=t.sourceType,o=void 0===r?["album","camera"]:r,s=t.extension;return new Promise((function(t,r){uni.chooseImage({count:e,sizeType:a,sourceType:o,extension:s,success:function(e){t(i(e,"image"))},fail:function(t){r({errMsg:t.errMsg.replace("chooseImage:fail",n)})}})}))}(e),e):"video"===e.type?r(t,function(t){var e=t.camera,a=t.compressed,r=t.maxDuration,o=t.sourceType,s=void 0===o?["album","camera"]:o,l=t.extension;return new Promise((function(t,o){uni.chooseVideo({camera:e,compressed:a,maxDuration:r,sourceType:s,extension:l,success:function(e){var a=e.tempFilePath,n=e.duration,r=e.size,o=e.height,s=e.width;t(i({errMsg:"chooseVideo:ok",tempFilePaths:[a],tempFiles:[{name:e.tempFile&&e.tempFile.name||"",path:a,size:r,type:e.tempFile&&e.tempFile.type||"",width:s,height:o,duration:n,fileType:"video",cloudPath:""}]},"video"))},fail:function(t){o({errMsg:t.errMsg.replace("chooseVideo:fail",n)})}})}))}(e),e):r(t,function(t){var e=t.count,a=t.extension;return new Promise((function(t,r){var o=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(o=wx.chooseMessageFile),"function"!=typeof o)return r({errMsg:n+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});o({type:"all",count:e,extension:a,success:function(e){t(i(e))},fail:function(t){r({errMsg:t.errMsg.replace("chooseFile:fail",n)})}})}))}(e),e)}}})),nn=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(an),rn={auto:"auto",onready:"onready",manual:"manual"};function on(t){return{props:{localdata:{type:Array,default:function(){return[]}},options:{type:[Object,Array],default:function(){return{}}},spaceInfo:{type:Object,default:function(){return{}}},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:function(){return{mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}},created:function(){var t=this;this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((function(){var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((function(a){e.push(t[a])})),e}),(function(e,a){if(t.loadtime!==rn.manual){for(var n=!1,i=[],r=2;r<e.length;r++)e[r]!==a[r]&&(i.push(e[r]),n=!0);e[0]!==a[0]&&(t.mixinDatacomPage.current=t.pageCurrent),t.mixinDatacomPage.size=t.pageSize,t.onMixinDatacomPropsChange(n,i)}}))},methods:{onMixinDatacomPropsChange:function(t,e){},mixinDatacomEasyGet:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.getone,n=void 0!==a&&a,i=e.success,r=e.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then((function(e){t.mixinDatacomLoading=!1;var a=e.result,r=a.data,o=a.count;t.getcount&&(t.mixinDatacomPage.count=o),t.mixinDatacomHasMore=r.length<t.pageSize;var s=n?r.length?r[0]:void 0:r;t.mixinDatacomResData=s,i&&i(s)})).catch((function(e){t.mixinDatacomLoading=!1,t.mixinDatacomErrorMessage=e,t.mixinDatacomError=e,r&&r(e)})))},mixinDatacomGet:function(){var e,a,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n=n||{},a="undefined"!=typeof __uniX&&__uniX?t.databaseForJQL(this.spaceInfo):t.database(this.spaceInfo);var i=n.action||this.action;i&&(a=a.action(i));var r=n.collection||this.collection;a=Array.isArray(r)?(e=a).collection.apply(e,(0,s.default)(r)):a.collection(r);var o=n.where||this.where;o&&Object.keys(o).length&&(a=a.where(o));var l=n.field||this.field;l&&(a=a.field(l));var c=n.foreignKey||this.foreignKey;c&&(a=a.foreignKey(c));var u=n.groupby||this.groupby;u&&(a=a.groupBy(u));var d=n.groupField||this.groupField;d&&(a=a.groupField(d)),!0===(void 0!==n.distinct?n.distinct:this.distinct)&&(a=a.distinct());var f=n.orderby||this.orderby;f&&(a=a.orderBy(f));var h=void 0!==n.pageCurrent?n.pageCurrent:this.mixinDatacomPage.current,p=void 0!==n.pageSize?n.pageSize:this.mixinDatacomPage.size,v=void 0!==n.getcount?n.getcount:this.getcount,g=void 0!==n.gettree?n.gettree:this.gettree,b=void 0!==n.gettreepath?n.gettreepath:this.gettreepath,m={getCount:v},x={limitLevel:void 0!==n.limitlevel?n.limitlevel:this.limitlevel,startWith:void 0!==n.startwith?n.startwith:this.startwith};return g&&(m.getTree=x),b&&(m.getTreePath=x),a=a.skip(p*(h-1)).limit(p).get(m),a}}}}function sn(t){return q(na.replace("{spaceId}",t.config.spaceId))}function ln(){return cn.apply(this,arguments)}function cn(){return cn=(0,u.default)((0,c.default)().mark((function t(){var e,a,n,i,r,o,s,l=arguments;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=l.length>0&&void 0!==l[0]?l[0]:{},a=e.openid,n=e.callLoginByWeixin,i=void 0!==n&&n,r=sn(this),"mp-weixin"===N){t.next=4;break}throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(N,"`"));case 4:if(!a||!i){t.next=6;break}throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");case 6:if(!a){t.next=8;break}return t.abrupt("return",(r.mpWeixinOpenid=a,{}));case 8:return t.next=10,new Promise((function(t,e){uni.login({success:function(e){t(e.code)},fail:function(t){e(new Error(t.errMsg))}})}));case 10:return o=t.sent,s=this.importObject("uni-id-co",{customUI:!0}),t.next=14,s.secureNetworkHandshakeByWeixin({code:o,callLoginByWeixin:i});case 14:return r.mpWeixinCode=o,t.abrupt("return",{code:o});case 16:case"end":return t.stop()}}),t,this)}))),cn.apply(this,arguments)}function un(t){return dn.apply(this,arguments)}function dn(){return dn=(0,u.default)((0,c.default)().mark((function t(e){var a;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=sn(this),t.abrupt("return",(a.initPromise||(a.initPromise=ln.call(this,e).then((function(t){return t})).catch((function(t){throw delete a.initPromise,t}))),a.initPromise));case 2:case"end":return t.stop()}}),t,this)}))),dn.apply(this,arguments)}function fn(t){!function(t){gt=t}(t)}function hn(t){var e={getSystemInfo:uni.getSystemInfo,getPushClientId:uni.getPushClientId};return function(a){return new Promise((function(n,i){e[t]((0,d.default)((0,d.default)({},a),{},{success:function(t){n(t)},fail:function(t){i(t)}}))}))}}var pn=function(t){(0,f.default)(a,t);var e=(0,h.default)(a);function a(){var t;return(0,v.default)(this,a),t=e.call(this),t._uniPushMessageCallback=t._receivePushMessage.bind((0,i.default)(t)),t._currentMessageId=-1,t._payloadQueue=[],t}return(0,g.default)(a,[{key:"init",value:function(){var t=this;return Promise.all([hn("getSystemInfo")(),hn("getPushClientId")()]).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=(0,r.default)(e,2),n=a[0];n=void 0===n?{}:n;var i=n.appId,o=a[1];o=void 0===o?{}:o;var s=o.cid;if(!i)throw new Error("Invalid appId, please check the manifest.json file");if(!s)throw new Error("Invalid push client id");t._appId=i,t._pushClientId=s,t._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),t.emit("open"),t._initMessageListener()}),(function(e){throw t.emit("error",e),t.close(),e}))}},{key:"open",value:function(){var t=(0,u.default)((0,c.default)().mark((function t(){return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this.init());case 1:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"_isUniCloudSSE",value:function(t){if("receive"!==t.type)return!1;var e=t&&t.data&&t.data.payload;return!(!e||"UNI_CLOUD_SSE"!==e.channel||e.seqId!==this._seqId)}},{key:"_receivePushMessage",value:function(t){if(this._isUniCloudSSE(t)){var e=t&&t.data&&t.data.payload,a=e.action,n=e.messageId,i=e.message;this._payloadQueue.push({action:a,messageId:n,message:i}),this._consumMessage()}}},{key:"_consumMessage",value:function(){for(var t=this;;){var e=this._payloadQueue.find((function(e){return e.messageId===t._currentMessageId+1}));if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}},{key:"_parseMessagePayload",value:function(t){var e=t.action,a=t.messageId,n=t.message;"end"===e?this._end({messageId:a,message:n}):"message"===e&&this._appendMessage({messageId:a,message:n})}},{key:"_appendMessage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(t.messageId,t.message);this.emit("message",e)}},{key:"_end",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(t.messageId,t.message);this.emit("end",e),this.close()}},{key:"_initMessageListener",value:function(){uni.onPushMessage(this._uniPushMessageCallback)}},{key:"_destroy",value:function(){uni.offPushMessage(this._uniPushMessageCallback)}},{key:"toJSON",value:function(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}},{key:"close",value:function(){this._destroy(),this.emit("close")}}]),a}(R);var vn={tcb:Ie,tencent:Ie,aliyun:wt,private:je,dcloud:je,alipay:Ve},gn=new(function(){function t(){(0,v.default)(this,t)}return(0,g.default)(t,[{key:"init",value:function(t){var e={},a=vn[t.provider];if(!a)throw new Error("未提供正确的provider参数");return e=a.init(t),function(t){t._initPromiseHub||(t._initPromiseHub=new B({createPromise:function(){var e=Promise.resolve();e=new Promise((function(t){setTimeout((function(){t()}),1)}));var a=t.auth();return e.then((function(){return a.getLoginState()})).then((function(t){return t?Promise.resolve():a.signInAnonymously()}))}}))}(e),fa(e),function(t){var e=t.uploadFile;t.uploadFile=function(t){return e.call(this,t)}}(e),function(t){t.database=function(e){if(e&&Object.keys(e).length>0)return t.init(e).database();if(this._database)return this._database;var a=Ca(ka,{uniClient:t});return this._database=a,a},t.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return t.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;var a=Ca(ka,{uniClient:t,isJQL:!0});return this._databaseForJQL=a,a}}(e),function(t){t.getCurrentUserInfo=en,t.chooseAndUploadFile=nn.initChooseAndUploadFile(t),Object.assign(t,{get mixinDatacom(){return on(t)}}),t.SSEChannel=pn,t.initSecureNetworkByWeixin=function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.openid,n=e.callLoginByWeixin,i=void 0!==n&&n;return un.call(t,{openid:a,callLoginByWeixin:i})}}(t),t.setCustomClientInfo=fn,t.importObject=function(t){return function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.customUI=e.customUI||t.customUI,t.parseSystemError=e.parseSystemError||t.parseSystemError,Object.assign(t.loadingOptions,e.loadingOptions),Object.assign(t.errorOptions,e.errorOptions),"object"==(0,o.default)(e.secretMethods)&&(t.secretMethods=e.secretMethods),t}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},a);var n=a,i=n.customUI,r=n.loadingOptions,s=n.errorOptions,l=n.parseSystemError,f=!i;return new Proxy({},{get:function(n,i){switch(i){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.fn,a=t.interceptorName,n=t.getCallbackArgs;return(0,u.default)((0,c.default)().mark((function t(){var i,r,o,s,l,u,f=arguments;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:for(i=f.length,r=new Array(i),o=0;o<i;o++)r[o]=f[o];return s=n?n({params:r}):{},t.prev=2,t.next=5,V(X(a,"invoke"),(0,d.default)({},s));case 5:return t.next=7,e.apply(void 0,r);case 7:return l=t.sent,t.next=10,V(X(a,"success"),(0,d.default)((0,d.default)({},s),{},{result:l}));case 10:return t.abrupt("return",l);case 13:return t.prev=13,t.t0=t["catch"](2),u=t.t0,t.next=18,V(X(a,"fail"),(0,d.default)((0,d.default)({},s),{},{error:u}));case 18:throw u;case 19:return t.prev=19,t.next=22,V(X(a,"complete"),u?(0,d.default)((0,d.default)({},s),{},{error:u}):(0,d.default)((0,d.default)({},s),{},{result:l}));case 22:return t.finish(19);case 23:case"end":return t.stop()}}),t,null,[[2,13,19,23]])})))}({fn:function(){var n=(0,u.default)((0,c.default)().mark((function n(){var p,v,g,b,m,x,y,w,_,S,C,k,A,P,O,D=arguments;return(0,c.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:for(f&&uni.showLoading({title:r.title,mask:r.mask}),v=D.length,g=new Array(v),b=0;b<v;b++)g[b]=D[b];return m={name:e,type:T.OBJECT,data:{method:i,params:g}},"object"==(0,o.default)(a.secretMethods)&&function(t,e){var a=e.data.method,n=t.secretMethods||{},i=n[a]||n["*"];i&&(e.secretType=i)}(a,m),x=!1,n.prev=5,n.next=8,t.callFunction(m);case 8:p=n.sent,n.next=14;break;case 11:n.prev=11,n.t0=n["catch"](5),x=!0,p={result:new ct(n.t0)};case 14:if(y=p.result||{},w=y.errSubject,_=y.errCode,S=y.errMsg,C=y.newToken,f&&uni.hideLoading(),C&&C.token&&C.tokenExpired&&(pt(C),it(Z.REFRESH_TOKEN,(0,d.default)({},C))),!_){n.next=39;break}if(k=S,!x||!l){n.next=24;break}return n.next=20,l({objectName:e,methodName:i,params:g,errSubject:w,errCode:_,errMsg:S});case 20:if(n.t1=n.sent.errMsg,n.t1){n.next=23;break}n.t1=S;case 23:k=n.t1;case 24:if(!f){n.next=37;break}if("toast"!==s.type){n.next=29;break}uni.showToast({title:k,icon:"none"}),n.next=37;break;case 29:if("modal"===s.type){n.next=31;break}throw new Error("Invalid errorOptions.type: ".concat(s.type));case 31:return n.next=33,(0,u.default)((0,c.default)().mark((function t(){var e,a,n,i,r,o,s=arguments;return(0,c.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=s.length>0&&void 0!==s[0]?s[0]:{},a=e.title,n=e.content,i=e.showCancel,r=e.cancelText,o=e.confirmText,t.abrupt("return",new Promise((function(t,e){uni.showModal({title:a,content:n,showCancel:i,cancelText:r,confirmText:o,success:function(e){t(e)},fail:function(){t({confirm:!1,cancel:!0})}})})));case 2:case"end":return t.stop()}}),t)})))({title:"提示",content:k,showCancel:s.retry,cancelText:"取消",confirmText:s.retry?"重试":"确定"});case 33:if(A=n.sent,P=A.confirm,!s.retry||!P){n.next=37;break}return n.abrupt("return",h.apply(void 0,g));case 37:throw O=new ct({subject:w,code:_,message:S,requestId:p.requestId}),O.detail=p.result,it(Z.RESPONSE,{type:tt.CLOUD_OBJECT,content:O}),O;case 39:return n.abrupt("return",(it(Z.RESPONSE,{type:tt.CLOUD_OBJECT,content:p.result}),p.result));case 40:case"end":return n.stop()}}),n,null,[[5,11]])})));function h(){return n.apply(this,arguments)}return h}(),interceptorName:"callObject",getCallbackArgs:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.params;return{objectName:e,methodName:i,params:a}}})}})}}(t)}(e),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(t){if(e[t]){var a=e[t];e[t]=function(){return a.apply(e,Array.from(arguments))},e[t]=function(t,e){return function(a){var n=this,i=!1;if("callFunction"===e){var r=a&&a.type||T.DEFAULT;i=r!==T.DEFAULT}var o="callFunction"===e&&!i,s=this._initPromiseHub.exec();a=a||{};var l=lt(a),c=l.success,u=l.fail,d=l.complete,f=s.then((function(){return i?Promise.resolve():V(X(e,"invoke"),a)})).then((function(){return t.call(n,a)})).then((function(t){return i?Promise.resolve(t):V(X(e,"success"),t).then((function(){return V(X(e,"complete"),t)})).then((function(){return o&&it(Z.RESPONSE,{type:tt.CLOUD_FUNCTION,content:t}),Promise.resolve(t)}))}),(function(t){return i?Promise.reject(t):V(X(e,"fail"),t).then((function(){return V(X(e,"complete"),t)})).then((function(){return it(Z.RESPONSE,{type:tt.CLOUD_FUNCTION,content:t}),Promise.reject(t)}))}));if(!(c||u||d))return f;f.then((function(t){c&&c(t),d&&d(t),o&&it(Z.RESPONSE,{type:tt.CLOUD_FUNCTION,content:t})}),(function(t){u&&u(t),d&&d(t),o&&it(Z.RESPONSE,{type:tt.CLOUD_FUNCTION,content:t})}))}}(e[t],t).bind(e)}})),e.init=this.init,e}}]),t}());e.uniCloud=gn,function(){var t=U,a={};if(t&&1===t.length)a=t[0],e.uniCloud=gn=gn.init(a),gn._isDefault=!0;else{var n;n=t&&t.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"].forEach((function(t){gn[t]=function(){return console.error(n),Promise.reject(new ct({code:"SYS_ERR",message:n}))}}))}if(Object.assign(gn,{get mixinDatacom(){return on(gn)}}),Qa(gn),gn.addInterceptor=Y,gn.removeInterceptor=J,gn.interceptObject=K,"app"===N&&(uni.__uniCloud=gn),"app"===N||"web"===N){var i=function(){return W||(W=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;function t(){return this}return void 0!==t()?t():new Function("return this")()}(),W)}();i.uniCloud=gn,i.UniCloudError=ct}}();var bn=gn;e.default=bn}).call(this,a("0ee4"))},8687:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("64aa"),a("0c26");var i=n(a("a7d1")),r={mixins:[i.default],name:"tn-input",props:{value:{type:[String,Number],default:""},type:{type:String,default:"text"},inputAlign:{type:String,default:"left"},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:"color: #AAAAAA"},disabled:{type:Boolean,default:!1},maxLength:{type:Number,default:255},height:{type:Number,default:0},autoHeight:{type:Boolean,default:!0},confirmType:{type:String,default:"done"},customStyle:{type:Object,default:function(){return{}}},fixed:{type:Boolean,default:!1},focus:{type:Boolean,default:!1},passwordIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!1},borderColor:{type:String,default:"#dcdfe6"},selectOpen:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},cursorSpacing:{type:Number,default:0},selectionStart:{type:Number,default:-1},selectionEnd:{type:Number,default:-1},trim:{type:Boolean,default:!0},showConfirmBar:{type:Boolean,default:!0},showRightIcon:{type:Boolean,default:!1},rightIcon:{type:String,default:""}},computed:{inputStyle:function(){var t={};return t.minHeight=this.height?this.height+"rpx":"textarea"===this.type?this.textareaHeight+"rpx":this.inputHeight+"rpx",t=Object.assign(t,this.customStyle),t},elSelectionStart:function(){return String(this.selectionStart)},elSelectionEnd:function(){return String(this.selectionEnd)}},data:function(){return{defaultValue:this.value,inputHeight:70,textareaHeight:100,validateState:!1,focused:!1,showPassword:!1,lastValue:""}},watch:{value:function(t,e){this.defaultValue=t,t!==e&&"select"===this.type&&this.handleInput({detail:{value:t}})}},created:function(){this.$on("on-form-item-error",this.onFormItemError)},methods:{handleInput:function(t){var e=this,a=t.detail.value;this.trim&&(a=this.$t.string.trim(a)),this.$emit("input",a),this.defaultValue=a,setTimeout((function(){e.dispatch("tn-form-item","on-form-change",a)}),40)},handleBlur:function(t){var e=this,a=t.detail.value;setTimeout((function(){e.focused=!1}),100),this.$emit("blur",a),setTimeout((function(){e.dispatch("tn-form-item","on-form-blur",a)}),40)},onFormItemError:function(t){this.validateState=t},onFocus:function(t){this.focused=!0,this.$emit("focus")},onConfirm:function(t){this.$emit("confirm",t.detail.value)},onClear:function(t){this.$emit("input","")},inputClick:function(){this.$emit("click")}}};e.default=r},"86a2":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n}));var n={tnBadge:a("8d2a").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.show?a("v-uni-view",{staticClass:"tn-tabbar-class tn-tabbar",on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),function(){}.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"tn-tabbar__content",class:{"tn-tabbar--fixed":t.fixed,"tn-safe-area-inset-bottom":t.safeAreaInsetBottom,"tn-tabbar--shadow":t.shadow},style:{height:t.height+"rpx",backgroundColor:t.bgColor}},[t._l(t.list,(function(e,n){return a("v-uni-view",{key:n,staticClass:"tn-tabbar__content__item",class:{"tn-tabbar__content__item--out":e.out},style:{backgroundColor:t.bgColor},attrs:{id:"tabbar_item_"+n},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.clickItemHandler(n)}}},[a("v-uni-view",{class:[t.itemButtonClass(n)],style:[t.itemButtonStyle(n)]},[t.isImage(n)?a("v-uni-image",{staticClass:"tn-tabbar__content__item__image",style:{width:(e.iconSize||t.iconSize)+"rpx",height:(e.iconSize||t.iconSize)+"rpx"},attrs:{src:t.elIcon(n),mode:"scaleToFill"}}):a("v-uni-view",{staticClass:"tn-tabbar__content__item__icon",class:["tn-icon-"+t.elIcon(n),t.elIconColor(n,!1)],style:{fontSize:(e.iconSize||t.iconSize)+"rpx",color:t.elIconColor(n)}}),e.out||!e.count&&!e.dot?t._e():a("tn-badge",{attrs:{dot:e.dot||!1,backgroundColor:"tn-bg-red",fontColor:"#FFFFFF",radius:e.dot?14:0,fontSize:14,padding:"2rpx 4rpx",absolute:!0,top:2}},[t._v(t._s(t.$t.number.formatNumberString(e.count)))])],1),a("v-uni-view",{staticClass:"tn-tabbar__content__item__text",class:[t.elColor(n,!1)],style:{color:t.elColor(n),fontSize:t.fontSize+"rpx"}},[a("v-uni-text",{staticClass:"tn-text-ellipsis"},[t._v(t._s(e.title))])],1)],1)})),-1!==t.outItemIndex?a("v-uni-view",{staticClass:"tn-tabbar__content__out",class:[{"tn-tabbar__content__out--shadow":t.shadow},t.animation&&t.value===t.outItemIndex?"tn-tabbar__content__out--animation--"+t.animationMode:""],style:{backgroundColor:t.bgColor,left:t.outItemLeft,width:t.outHeight+"rpx",height:t.outHeight+"rpx",top:"-"+.3*t.outHeight+"rpx"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.clickItemHandler(t.outItemIndex)}}}):t._e()],2),a("v-uni-view",{staticClass:"tn-tabbar__placeholder",class:{"tn-safe-area-inset-bottom":t.safeAreaInsetBottom},style:{height:"calc("+t.height+"rpx)"}})],1):t._e()},r=[]},"8c6c":function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0});e.START_BIN="1010",e.END_BIN="11101",e.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]},"8d2a":function(t,e,a){"use strict";a.r(e);var n=a("1ee6"),i=a("9f89");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("027c");var o=a("828b"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"5ef10296",null,!1,n["a"],void 0);e["default"]=s.exports},"8d53":function(t,e,a){"use strict";var n=a("7b59"),i=a.n(n);i.a},"8def":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"container loading1"},[e("v-uni-view",{staticClass:"shape shape1"}),e("v-uni-view",{staticClass:"shape shape2"}),e("v-uni-view",{staticClass:"shape shape3"}),e("v-uni-view",{staticClass:"shape shape4"})],1)},i=[]},"8f68":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n}));var n={digitalRoller:a("f9ede").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"businessBox"},[a("v-uni-view",{staticClass:"businessBox_topBg",staticStyle:{"padding-bottom":"182.79rpx"},style:{paddingTop:t.statusBarHeight+"rpx"}},[a("v-uni-view",{staticClass:"businessBox_topBg_userInfo",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tn("/setting/selectStores/select")}}},[a("v-uni-image",{staticClass:"businessBox_topBg_userInfo_logo",attrs:{src:t.store.logo}}),a("v-uni-text",{staticClass:"businessBox_topBg_userInfo_title"},[t._v(t._s(t.store.title))]),a("v-uni-text",{staticClass:"tn-icon-down-triangle businessBox_topBg_userInfo_icon"})],1),a("v-uni-view",{staticClass:"businessBox_topBg_data"},[a("v-uni-view",{staticClass:"businessBox_topBg_data_item"},[a("v-uni-view",{staticClass:"businessBox_topBg_data_item_top"},[a("digital-roller",{attrs:{value:t.stat.total_fee,size:38}})],1),a("v-uni-view",{staticClass:"businessBox_topBg_data_item_bottom"},[t._v("今日营业额")])],1),a("v-uni-view",{staticClass:"businessBox_topBg_data_item"},[a("v-uni-view",{staticClass:"businessBox_topBg_data_item_top"},[a("digital-roller",{attrs:{value:t.stat.total_success_order,size:38}})],1),a("v-uni-view",{staticClass:"businessBox_topBg_data_item_bottom"},[t._v("今日订单数")])],1),a("v-uni-view",{staticClass:"businessBox_topBg_data_item"},[a("v-uni-view",{staticClass:"businessBox_topBg_data_item_top"},[a("digital-roller",{attrs:{value:t.stat.net_receipts,size:38}})],1),a("v-uni-view",{staticClass:"businessBox_topBg_data_item_bottom"},[t._v("今日实际收入")])],1)],1),a("v-uni-view",{staticClass:"businessBox_topBg_data"},[a("v-uni-view",{staticClass:"businessBox_topBg_data_item"},[a("v-uni-view",{staticClass:"businessBox_topBg_data_item_top"},[a("digital-roller",{attrs:{value:t.statm.total_success||0,size:38}})],1),a("v-uni-view",{staticClass:"businessBox_topBg_data_item_bottom"},[t._v("今日活跃用户")])],1),a("v-uni-view",{staticClass:"businessBox_topBg_data_item"},[a("v-uni-view",{staticClass:"businessBox_topBg_data_item_top"},[a("v-uni-view",{staticClass:"businessBox_topBg_data_item_top"},[a("digital-roller",{attrs:{value:t.statm.total_success_new||0,size:38}})],1)],1),a("v-uni-view",{staticClass:"businessBox_topBg_data_item_bottom"},[t._v("今日新用户")])],1),a("v-uni-view",{staticClass:"businessBox_topBg_data_item"},[a("v-uni-view",{staticClass:"businessBox_topBg_data_item_top"},[a("digital-roller",{attrs:{value:t.statm.total_success_old||0,size:38}})],1),a("v-uni-view",{staticClass:"businessBox_topBg_data_item_bottom"},[t._v("今日老客户用户")])],1)],1)],1),a("v-uni-view",{staticStyle:{position:"relative"}},[a("v-uni-view",{staticClass:"contentBox",staticStyle:{position:"absolute",top:"-115.79rpx"}},[a("v-uni-view",{staticClass:"contentBox_content"},[a("v-uni-view",{staticClass:"contentBox_content_card1"},[a("v-uni-view",{staticClass:"contentBox_content_card1_title"},[t._v("待办事项")]),0!==t.refundStatu.num?a("v-uni-view",{staticClass:"contentBox_content_card1_item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tn("/pages/order/refund/refundsList/refundsList")}}},[a("v-uni-view",{staticClass:"contentBox_content_card1_item_left"},[a("v-uni-text",{staticClass:"contentBox_content_card1_item_left_title"},[t._v("提醒")]),a("v-uni-view",{staticClass:"contentBox_content_card1_item_left_bg"}),a("v-uni-text",[t._v("有"+t._s(t.refundStatu.num)+"个退货单需要处理")])],1),a("v-uni-text",{staticClass:"tn-icon-right contentBox_content_card1_item_right"})],1):a("v-uni-view",{staticStyle:{width:"100%",height:"200rpx",color:"#c5c5c5",display:"flex","align-items":"center","justify-content":"center","flex-wrap":"wrap"}},[a("v-uni-image",{staticStyle:{width:"200rpx",height:"150rpx"},attrs:{src:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/spshop/not_processed.png"}}),a("v-uni-view",{staticStyle:{width:"100%","text-align":"center"}},[t._v("太棒了,你完成了所有待办事项")])],1)],1),a("v-uni-view",{staticClass:"contentBox_content_card2"},[a("v-uni-view",{staticStyle:{width:"100%","padding-bottom":"10rpx","font-weight":"bold"}},[t._v("商家运营")]),a("v-uni-view",{staticClass:"tn-radius",staticStyle:{width:"25%",padding:"20rpx 0rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tn("/operation/business_data/goods/goods")}}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center"},[a("v-uni-view",{staticClass:"icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center lanse tn-color-white"},[a("v-uni-view",{staticClass:"tn-icon-shopbag-fill",staticStyle:{"font-size":"42rpx"}})],1),a("v-uni-view",{staticClass:"tn-color-black tn-text-center"},[a("v-uni-text",{staticClass:"tn-text-ellipsis"},[t._v("商品管理")])],1)],1)],1),a("v-uni-view",{staticClass:"tn-radius",staticStyle:{width:"25%",padding:"20rpx 0rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tn("/operation/manag_statistics/home")}}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center"},[a("v-uni-view",{staticClass:"icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center lvse tn-color-white"},[a("v-uni-view",{staticClass:"tn-icon-ticket-fill"})],1),a("v-uni-view",{staticClass:"tn-color-black tn-text-center"},[a("v-uni-text",{staticClass:"tn-text-ellipsis"},[t._v("当面付订单")])],1)],1)],1),a("v-uni-view",{staticClass:"tn-radius",staticStyle:{width:"25%",padding:"20rpx 0rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tn("../statcenter/home")}}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center"},[a("v-uni-view",{staticClass:"icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center huangse tn-color-white"},[a("v-uni-view",{staticClass:"tn-icon-statistics-fill"})],1),a("v-uni-view",{staticClass:"tn-color-black tn-text-center"},[a("v-uni-text",{staticClass:"tn-text-ellipsis"},[t._v("经营数据")])],1)],1)],1),a("v-uni-view",{staticClass:"tn-radius",staticStyle:{width:"25%",padding:"20rpx 0rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tn("/operation/business_data/printer/printer")}}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center"},[a("v-uni-view",{staticClass:"icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center chengse tn-color-white"},[a("v-uni-view",{staticClass:"tn-icon-receipt-fill"})],1),a("v-uni-view",{staticClass:"tn-color-black tn-text-center"},[a("v-uni-text",{staticClass:"tn-text-ellipsis"},[t._v("打印机管理")])],1)],1)],1),a("v-uni-view",{staticClass:"tn-radius",staticStyle:{width:"25%",padding:"20rpx 0rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tn("/operation/event_promotion/advertise/advertise")}}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center"},[a("v-uni-view",{staticClass:"icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center chengse tn-color-white"},[a("v-uni-view",{staticClass:"tn-icon-team-fill"})],1),a("v-uni-view",{staticClass:"tn-color-black tn-text-center"},[a("v-uni-text",{staticClass:"tn-text-ellipsis"},[t._v("商户推广")])],1)],1)],1),a("v-uni-view",{staticClass:"tn-radius",staticStyle:{width:"25%",padding:"20rpx 0rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tn("/operation/manag_statistics/tuangouquan")}}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center"},[a("v-uni-view",{staticClass:"icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center lvse tn-color-white"},[a("v-uni-view",{staticClass:"tn-icon-coupon"})],1),a("v-uni-view",{staticClass:"tn-color-black tn-text-center"},[a("v-uni-text",{staticClass:"tn-text-ellipsis"},[t._v("团购券订单")])],1)],1)],1),a("v-uni-view",{staticClass:"tn-radius",staticStyle:{width:"25%",padding:"20rpx 0rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tn("/operation/event_promotion/tuangouquan/scan_code")}}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center"},[a("v-uni-view",{staticClass:"icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center lanse tn-color-white"},[a("v-uni-view",{staticClass:"tn-icon-scan"})],1),a("v-uni-view",{staticClass:"tn-color-black tn-text-center"},[a("v-uni-text",{staticClass:"tn-text-ellipsis"},[t._v("扫码核销")])],1)],1)],1),a("v-uni-view",{staticClass:"tn-radius",staticStyle:{width:"25%",padding:"20rpx 0rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tn("/operation/business_data/comment/comment")}}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center"},[a("v-uni-view",{staticClass:"icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center chengse tn-color-white"},[a("v-uni-view",{staticClass:"tn-icon-comment-fill"})],1),a("v-uni-view",{staticClass:"tn-color-black tn-text-center"},[a("v-uni-text",{staticClass:"tn-text-ellipsis"},[t._v("评论管理")])],1)],1)],1),a("v-uni-view",{staticClass:"tn-radius",staticStyle:{width:"25%",padding:"20rpx 0rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tn("/operation/business_data/asset/index")}}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center"},[a("v-uni-view",{staticClass:"icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center huangse tn-color-white"},[a("v-uni-view",{staticClass:"tn-icon-money-fill"})],1),a("v-uni-view",{staticClass:"tn-color-black tn-text-center"},[a("v-uni-text",{staticClass:"tn-text-ellipsis"},[t._v("资产明细")])],1)],1)],1),a("v-uni-view",{staticClass:"tn-radius",staticStyle:{width:"25%",padding:"20rpx 0rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tn("/operation/event_promotion/avtivity/avtivity")}}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center"},[a("v-uni-view",{staticClass:"icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center huangse tn-color-white"},[a("v-uni-view",{staticClass:"tn-icon-flag-fill"})],1),a("v-uni-view",{staticClass:"tn-color-black tn-text-center"},[a("v-uni-text",{staticClass:"tn-text-ellipsis"},[t._v("商家活动")])],1)],1)],1),a("v-uni-view",{staticClass:"tn-radius",staticStyle:{width:"25%",padding:"20rpx 0rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tn("/operation/billing_related/deliveryBilling/deliveryBilling")}}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center"},[a("v-uni-view",{staticClass:"icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center lanse tn-color-white"},[a("v-uni-view",{staticClass:"tn-icon-empty-list"})],1),a("v-uni-view",{staticClass:"tn-color-black tn-text-center"},[a("v-uni-text",{staticClass:"tn-text-ellipsis"},[t._v("配送发单")])],1)],1)],1),a("v-uni-view",{staticClass:"tn-radius",staticStyle:{width:"25%",padding:"20rpx 0rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tn("/operation/billing_related/billingList/list")}}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center"},[a("v-uni-view",{staticClass:"icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center lvse tn-color-white"},[a("v-uni-view",{staticClass:"tn-icon-inventory"})],1),a("v-uni-view",{staticClass:"tn-color-black tn-text-center"},[a("v-uni-text",{staticClass:"tn-text-ellipsis"},[t._v("发单列表")])],1)],1)],1),1==t.vipsetting?a("v-uni-view",{staticClass:"tn-radius",staticStyle:{width:"25%",padding:"20rpx 0rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tn("/operation/vipSet_page/vipSet")}}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center"},[a("v-uni-view",{staticClass:"icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center huangse tn-color-white"},[a("v-uni-view",{staticClass:"tn-icon-vip"})],1),a("v-uni-view",{staticClass:"tn-color-black tn-text-center"},[a("v-uni-text",{staticClass:"tn-text-ellipsis"},[t._v("VIP配置")])],1)],1)],1):t._e(),t.supplier_ids&&t.supplier_ids.length>0?a("v-uni-view",{staticClass:"tn-radius",staticStyle:{width:"25%",padding:"20rpx 0rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tn("/other-page/supplier_list/supplier_list")}}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center"},[a("v-uni-view",{staticClass:"icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center lanse tn-color-white"},[a("v-uni-view",{staticClass:"tn-icon-order"})],1),a("v-uni-view",{staticClass:"tn-color-black tn-text-center"},[a("v-uni-text",{staticClass:"tn-text-ellipsis"},[t._v("进货")])],1)],1)],1):t._e(),t.is_open?a("v-uni-view",{staticClass:"tn-radius",staticStyle:{width:"25%",padding:"20rpx 0rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tn("/operation/Member/member_store_recharge")}}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center"},[a("v-uni-view",{staticClass:"icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center huangse tn-color-white"},[a("v-uni-view",{staticClass:"tn-icon-vip-fill"})],1),a("v-uni-view",{staticClass:"tn-color-black tn-text-center"},[a("v-uni-text",{staticClass:"tn-text-ellipsis"},[t._v("会员管理")])],1)],1)],1):t._e(),a("v-uni-view",{staticClass:"tn-radius",staticStyle:{width:"25%",padding:"20rpx 0rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tn("/operation/pay_bill/index")}}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center"},[a("v-uni-view",{staticClass:"icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center huangse tn-color-white"},[a("v-uni-view",{staticClass:"tn-icon-vip-fill"})],1),a("v-uni-view",{staticClass:"tn-color-black tn-text-center"},[a("v-uni-text",{staticClass:"tn-text-ellipsis"},[t._v("当面付收款")])],1)],1)],1),a("v-uni-view",{staticClass:"tn-radius",staticStyle:{width:"25%",padding:"20rpx 0rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tn("/other-page/checkstand/index")}}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-direction-column tn-flex-row-center tn-flex-col-center"},[a("v-uni-view",{staticClass:"icon12__item--icon tn-flex tn-flex-row-center tn-flex-col-center lvse tn-color-white"},[a("v-uni-view",{staticClass:"tn-icon-edit-form"})],1),a("v-uni-view",{staticClass:"tn-color-black tn-text-center"},[a("v-uni-text",{staticClass:"tn-text-ellipsis"},[t._v("桌台点餐")])],1)],1)],1)],1)],1)],1)],1)],1)},r=[]},"8f71c":function(t,e,a){"use strict";var n=a("bdbb").default;a("6a54"),a("9a2c"),a("926e"),a("7a76"),a("c9b5"),a("8a8d"),a("473f"),a("bf0f"),a("fd3c"),a("5c47"),a("af8f"),a("3efd"),a("aa9c"),Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,a,n){return a&&t(e.prototype,a),n&&t(e,n),e}}(),r=function t(e,a,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,a);if(void 0===i){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,a,n)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(n):void 0},o=a("e0cb"),s=a("c5bc"),l=function(t){return t&&t.__esModule?t:{default:t}}(s);var c=function(t){var e=t.substr(0,12).split("").map((function(t){return+t})).reduce((function(t,e,a){return a%2?t+3*e:t+e}),0);return(10-e%10)%10},u=function(t){function e(t,a){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,e),-1!==t.search(/^[0-9]{12}$/)&&(t+=c(t));var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==n(e)&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,a));return i.lastChar=a.lastChar,i}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+n(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{13}$/)&&+this.data[12]===c(this.data)}},{key:"leftText",value:function(){return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var t=this.data.substr(1,6),a=o.EAN13_STRUCTURE[this.data[0]];return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,t,a)}},{key:"rightText",value:function(){return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var t=this.data.substr(7,6);return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,t,"RRRRRR")}},{key:"encodeGuarded",value:function(){var t=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(t.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(t.push({data:"00"}),t.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),t}}]),e}(l.default);e.default=u},9041:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"progress-bar"},[e("div",{staticClass:"progress-bg"},[e("div",{staticClass:"progress-fill",style:{width:"max("+this.progress+"%, 30rpx)","background-color":this.proColor}},[e("div",{staticClass:"progress-circle"})])])])},i=[]},"90b5":function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.bg_color[data-v-cad53924]{position:fixed;z-index:-1;top:0;height:%?500?%;width:100%;background:linear-gradient(117deg,#32baee,#3a91f8)}.bg_content[data-v-cad53924]{width:100%;position:fixed;z-index:-1;top:%?400?%;height:90vh;background-color:#f4f4f4;background:linear-gradient(180deg,hsla(0,0%,96.9%,0),#f7f7f7 7%,#f7f7f7)}.header[data-v-cad53924]{width:100%;position:fixed;z-index:1000;top:0;background:linear-gradient(117deg,#32baee,#3a91f8)}.header_top[data-v-cad53924]{font-size:17px;color:#fff}.header_tabs[data-v-cad53924]{margin:auto;margin-top:%?90?%;width:90%;color:hsla(0,0%,100%,.8)}.tabs-item[data-v-cad53924]{font-size:17px;margin-bottom:%?30?%}.tabs-item.active .title[data-v-cad53924]{padding-bottom:%?10?%;color:#fff;border-bottom:2px solid #fff}.no-data .no-data_img[data-v-cad53924]{display:flex;align-items:center;margin:auto;margin-top:%?200?%;width:%?200?%;height:%?200?%}.no-data .shuju[data-v-cad53924]{text-align:center;margin:auto;margin-top:%?88?%;color:#768491}.center[data-v-cad53924]{margin:auto;width:98%;min-height:100vh;overflow-y:auto}.order_list[data-v-cad53924]{width:100%;overflow-y:auto;padding-top:%?200?%}.order_box[data-v-cad53924]{margin:0 %?20?% %?20?% %?20?%;background-color:#fff;border-radius:8px;padding:%?20?%;position:relative}.bubble_body[data-v-cad53924]{position:absolute;bottom:%?80?%;left:%?-15?%}.bubble[data-v-cad53924]{margin-left:%?35?%;height:0;width:0;border-top:%?20?% solid #fff;border-right:%?20?% solid transparent;border-bottom:%?20?% solid transparent;border-left:%?20?% solid transparent}.bubble-content[data-v-cad53924]{padding:%?5?% %?20?%;background-color:#fff;border-radius:%?14?%;box-shadow:0 -1px 4px #efefef}.tn-strip-bottom-min[data-v-cad53924]{margin:auto;border-bottom:%?1?% solid #000}.commission_details_body[data-v-cad53924]{position:absolute;bottom:8px;left:50px}.commission_details[data-v-cad53924]{margin-left:%?35?%;height:0;width:0;border-top:%?20?% solid #fff;border-right:%?20?% solid transparent;border-bottom:%?18?% solid transparent;border-left:%?20?% solid transparent}.commission_details_content[data-v-cad53924]{padding:%?5?% %?20?%;background-color:#fff;border-radius:%?14?%;box-shadow:0 -1px 4px #efefef}.hx[data-v-cad53924]{height:1px;width:100%;background-color:rgba(0,0,0,.05)}',""]),t.exports=e},9370:function(t,e,a){"use strict";var n=a("8bdb"),i=a("af9e"),r=a("1099"),o=a("c215"),s=i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));n({target:"Date",proto:!0,arity:1,forced:s},{toJSON:function(t){var e=r(this),a=o(e,"number");return"number"!=typeof a||isFinite(a)?e.toISOString():null}})},"944e":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"container loading5"},[e("v-uni-view",{staticClass:"shape shape1"}),e("v-uni-view",{staticClass:"shape shape2"}),e("v-uni-view",{staticClass:"shape shape3"}),e("v-uni-view",{staticClass:"shape shape4"})],1)},i=[]},"948a":function(t,e,a){"use strict";var n=a("bdbb").default;a("6a54"),a("7a76"),a("c9b5"),a("8a8d"),a("926e"),a("5c47"),a("0506"),a("23f4"),a("7d2f"),a("9c4e"),a("ab80"),Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,a,n){return a&&t(e.prototype,a),n&&t(e,n),e}}(),r=a("0f6d"),o=function(t){return t&&t.__esModule?t:{default:t}}(r),s=a("b802");var l=function(t){function e(t,a){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==n(e)&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,s.B_START_CHAR+t,a))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+n(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"valid",value:function(){return new RegExp("^"+s.B_CHARS+"+$").test(this.data)}}]),e}(o.default);e.default=l},9815:function(t,e,a){"use strict";var n=a("1915"),i=a.n(n);i.a},"9ad2":function(t,e,a){"use strict";var n=a("bdbb").default;a("6a54"),a("7a76"),a("c9b5"),a("8a8d"),a("926e"),a("5c47"),a("0506"),a("23f4"),a("7d2f"),a("9c4e"),a("ab80"),Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,a,n){return a&&t(e.prototype,a),n&&t(e,n),e}}(),r=a("0f6d"),o=function(t){return t&&t.__esModule?t:{default:t}}(r),s=a("b802");var l=function(t){function e(t,a){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==n(e)&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,s.C_START_CHAR+t,a))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+n(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"valid",value:function(){return new RegExp("^"+s.C_CHARS+"+$").test(this.data)}}]),e}(o.default);e.default=l},"9b37":function(t,e,a){"use strict";a.r(e);var n=a("dfff"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},"9f89":function(t,e,a){"use strict";a.r(e);var n=a("faf2"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},"9ff3":function(t,e,a){"use strict";a.r(e);var n=a("3cca"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},a0ff:function(t,e,a){"use strict";a.r(e);var n=a("c92c"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},a13b:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("5de6")),r=n(a("fcf3"));a("7a76"),a("c9b5"),a("bf0f"),a("ab80"),a("2797"),a("aa9c"),a("5c47"),a("a1c1"),a("e966"),a("5ef2"),a("0506"),a("473f"),a("c223"),a("fd3c"),a("8f71"),a("f7a5"),a("dc69"),a("1851"),a("4626"),a("5ac7"),a("3efd");var o={version:"v2.5.0-20230101",yAxisWidth:15,xAxisHeight:22,padding:[10,10,10,10],rotate:!1,fontSize:13,fontColor:"#666666",dataPointShape:["circle","circle","circle","circle"],color:["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],linearColor:["#0EE2F8","#2BDCA8","#FA7D8D","#EB88E2","#2AE3A0","#0EE2F8","#EB88E2","#6773E3","#F78A85"],pieChartLinePadding:15,pieChartTextPadding:5,titleFontSize:20,subtitleFontSize:15,radarLabelTextMargin:13},s=function(t){for(var e=arguments.length,a=new Array(e>1?e-1:0),n=1;n<e;n++)a[n-1]=arguments[n];if(null==t)throw new TypeError("[uCharts] Cannot convert undefined or null to object");if(!a||a.length<=0)return t;function i(t,e){for(var a in e)t[a]=t[a]&&"[object Object]"===t[a].toString()?i(t[a],e[a]):t[a]=e[a];return t}return a.forEach((function(e){t=i(t,e)})),t},l={toFixed:function(t,e){return e=e||2,this.isFloat(t)&&(t=t.toFixed(e)),t},isFloat:function(t){return t%1!==0},approximatelyEqual:function(t,e){return Math.abs(t-e)<1e-10},isSameSign:function(t,e){return Math.abs(t)===t&&Math.abs(e)===e||Math.abs(t)!==t&&Math.abs(e)!==e},isSameXCoordinateArea:function(t,e){return this.isSameSign(t.x,e.x)},isCollision:function(t,e){t.end={},t.end.x=t.start.x+t.width,t.end.y=t.start.y-t.height,e.end={},e.end.x=e.start.x+e.width,e.end.y=e.start.y-e.height;var a=e.start.x>t.end.x||e.end.x<t.start.x||e.end.y>t.start.y||e.start.y<t.end.y;return!a}};function c(t,e){var a=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,a,n){return e+e+a+a+n+n})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a),i=parseInt(n[1],16),r=parseInt(n[2],16),o=parseInt(n[3],16);return"rgba("+i+","+r+","+o+","+e+")"}function u(t,e,a){if(isNaN(t))throw new Error("[uCharts] series数据需为Number格式");a=a||10,e=e||"upper";var n=1;while(a<1)a*=10,n*=10;t="upper"===e?Math.ceil(t*n):Math.floor(t*n);while(t%a!==0)if("upper"===e){if(t==t+1)break;t++}else t--;return t/n}function d(t,e,a,n,i){var r=i.width-i.area[1]-i.area[3],o=a.eachSpacing*(i.chartData.xAxisData.xAxisPoints.length-1);"mount"==i.type&&i.extra&&i.extra.mount&&i.extra.mount.widthRatio&&i.extra.mount.widthRatio>1&&(i.extra.mount.widthRatio>2&&(i.extra.mount.widthRatio=2),o+=(i.extra.mount.widthRatio-1)*a.eachSpacing);var s=e;return e>=0?(s=0,t.uevent.trigger("scrollLeft"),t.scrollOption.position="left",i.xAxis.scrollPosition="left"):Math.abs(e)>=o-r?(s=r-o,t.uevent.trigger("scrollRight"),t.scrollOption.position="right",i.xAxis.scrollPosition="right"):(t.scrollOption.position=e,i.xAxis.scrollPosition=e),s}function f(t,e,a){function n(t){while(t<0)t+=2*Math.PI;while(t>2*Math.PI)t-=2*Math.PI;return t}return t=n(t),e=n(e),a=n(a),e>a&&(a+=2*Math.PI,t<e&&(t+=2*Math.PI)),t>=e&&t<=a}function h(t,e){function a(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].y>=Math.max(t[e-1].y,t[e+1].y)||t[e].y<=Math.min(t[e-1].y,t[e+1].y))}function n(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].x>=Math.max(t[e-1].x,t[e+1].x)||t[e].x<=Math.min(t[e-1].x,t[e+1].x))}var i=.2,r=.2,o=null,s=null,l=null,c=null;if(e<1?(o=t[0].x+(t[1].x-t[0].x)*i,s=t[0].y+(t[1].y-t[0].y)*i):(o=t[e].x+(t[e+1].x-t[e-1].x)*i,s=t[e].y+(t[e+1].y-t[e-1].y)*i),e>t.length-3){var u=t.length-1;l=t[u].x-(t[u].x-t[u-1].x)*r,c=t[u].y-(t[u].y-t[u-1].y)*r}else l=t[e+1].x-(t[e+2].x-t[e].x)*r,c=t[e+1].y-(t[e+2].y-t[e].y)*r;return a(t,e+1)&&(c=t[e+1].y),a(t,e)&&(s=t[e].y),n(t,e+1)&&(l=t[e+1].x),n(t,e)&&(o=t[e].x),(s>=Math.max(t[e].y,t[e+1].y)||s<=Math.min(t[e].y,t[e+1].y))&&(s=t[e].y),(c>=Math.max(t[e].y,t[e+1].y)||c<=Math.min(t[e].y,t[e+1].y))&&(c=t[e+1].y),(o>=Math.max(t[e].x,t[e+1].x)||o<=Math.min(t[e].x,t[e+1].x))&&(o=t[e].x),(l>=Math.max(t[e].x,t[e+1].x)||l<=Math.min(t[e].x,t[e+1].x))&&(l=t[e+1].x),{ctrA:{x:o,y:s},ctrB:{x:l,y:c}}}function p(t,e,a){return{x:a.x+t,y:a.y-e}}function v(t,e){if(e)while(l.isCollision(t,e))t.start.x>0?t.start.y--:t.start.x<0||t.start.y>0?t.start.y++:t.start.y--;return t}function g(t,e,a){for(var n=0,i=0;i<t.length;i++){var r=t[i];if(r.color||(r.color=a.color[n],n=(n+1)%a.color.length),r.linearIndex||(r.linearIndex=i),r.index||(r.index=0),r.type||(r.type=e.type),"undefined"==typeof r.show&&(r.show=!0),r.type||(r.type=e.type),r.pointShape||(r.pointShape="circle"),!r.legendShape)switch(r.type){case"line":r.legendShape="line";break;case"column":case"bar":r.legendShape="rect";break;case"area":case"mount":r.legendShape="triangle";break;default:r.legendShape="circle"}}return t}function b(t,e,a,n){var i=e||[];if("custom"==t&&0==i.length&&(i=n.linearColor),"custom"==t&&i.length<a.length)for(var r=a.length-i.length,o=0;o<r;o++)i.push(n.linearColor[(o+1)%n.linearColor.length]);return i}function m(t,e){var a=0,n=e-t;return a=n>=1e4?1e3:n>=1e3?100:n>=100?10:n>=10?5:n>=1?1:n>=.1?.1:n>=.01?.01:n>=.001?.001:n>=1e-4?1e-4:n>=1e-5?1e-5:1e-6,{minRange:u(t,"lower",a),maxRange:u(e,"upper",a)}}function x(t,e,a){var n=0;if(t=String(t),!1!==a&&void 0!==a&&a.setFontSize&&a.measureText)return a.setFontSize(e),a.measureText(t).width;t=t.split("");for(var i=0;i<t.length;i++){var r=t[i];/[a-zA-Z]/.test(r)?n+=7:/[0-9]/.test(r)?n+=5.5:/\./.test(r)?n+=2.7:/-/.test(r)?n+=3.25:/:/.test(r)?n+=2.5:/[\u4e00-\u9fa5]/.test(r)?n+=10:/\(|\)/.test(r)?n+=3.73:/\s/.test(r)?n+=2.5:/%/.test(r)?n+=8:n+=10}return n*e/10}function y(t){return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data)}),[])}function w(t,e){for(var a=new Array(e),n=0;n<a.length;n++)a[n]=0;for(var i=0;i<t.length;i++)for(n=0;n<a.length;n++)a[n]+=t[i].data[n];return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data).concat(a)}),[])}function _(t,e,a){var n,i;return t.clientX?e.rotate?(i=e.height-t.clientX*e.pix,n=(t.pageY-a.currentTarget.offsetTop-e.height/e.pix/2*(e.pix-1))*e.pix):(n=t.clientX*e.pix,i=(t.pageY-a.currentTarget.offsetTop-e.height/e.pix/2*(e.pix-1))*e.pix):e.rotate?(i=e.height-t.x*e.pix,n=t.y*e.pix):(n=t.x*e.pix,i=t.y*e.pix),{x:n,y:i}}function S(t,e,a){var n=[],i=[],r=e.constructor.toString().indexOf("Array")>-1;if(r)for(var o=O(t),s=0;s<a.length;s++)i.push(o[a[s]]);else i=t;for(var l=0;l<i.length;l++){var c=i[l],u=-1;if(u=r?e[l]:e,null!==c.data[u]&&"undefined"!==typeof c.data[u]&&c.show){var d={};d.color=c.color,d.type=c.type,d.style=c.style,d.pointShape=c.pointShape,d.disableLegend=c.disableLegend,d.legendShape=c.legendShape,d.name=c.name,d.show=c.show,d.data=c.formatter?c.formatter(c.data[u]):c.data[u],n.push(d)}}return n}function C(t,e,a){var n=t.map((function(t){return x(t,e,a)}));return Math.max.apply(null,n)}function k(t){for(var e=2*Math.PI/t,a=[],n=0;n<t;n++)a.push(e*n);return a.map((function(t){return-1*t+Math.PI/2}))}function T(t,e,a,n,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=e.chartData.calPoints?e.chartData.calPoints:[],s={};if(n.length>0){for(var l=[],c=0;c<n.length;c++)l.push(o[n[c]]);s=l[0][a[0]]}else for(var u=0;u<o.length;u++)if(o[u][a]){s=o[u][a];break}var d=t.map((function(t){var n=null;return e.categories&&e.categories.length>0&&(n=i[a]),{text:r.formatter?r.formatter(t,n,a,e):t.name+": "+t.data,color:t.color,legendShape:"auto"==e.extra.tooltip.legendShape?t.legendShape:e.extra.tooltip.legendShape}})),f={x:Math.round(s.x),y:Math.round(s.y)};return{textList:d,offset:f}}function A(t,e,a,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=e.chartData.xAxisPoints[a]+e.chartData.eachSpacing/2,o=t.map((function(t){return{text:i.formatter?i.formatter(t,n[a],a,e):t.name+": "+t.data,color:t.color,disableLegend:!!t.disableLegend,legendShape:"auto"==e.extra.tooltip.legendShape?t.legendShape:e.extra.tooltip.legendShape}}));o=o.filter((function(t){if(!0!==t.disableLegend)return t}));var s={x:Math.round(r),y:0};return{textList:o,offset:s}}function P(t,e,a,n,i,r){var o=a.chartData.calPoints,s=r.color.upFill,l=r.color.downFill,c=[s,s,l,s],u=[];e.map((function(e){0==n?e.data[1]-e.data[0]<0?c[1]=l:c[1]=s:(e.data[0]<t[n-1][1]&&(c[0]=l),e.data[1]<e.data[0]&&(c[1]=l),e.data[2]>t[n-1][1]&&(c[2]=s),e.data[3]<t[n-1][1]&&(c[3]=l));var i={text:"开盘:"+e.data[0],color:c[0],legendShape:"auto"==a.extra.tooltip.legendShape?e.legendShape:a.extra.tooltip.legendShape},r={text:"收盘:"+e.data[1],color:c[1],legendShape:"auto"==a.extra.tooltip.legendShape?e.legendShape:a.extra.tooltip.legendShape},o={text:"最低:"+e.data[2],color:c[2],legendShape:"auto"==a.extra.tooltip.legendShape?e.legendShape:a.extra.tooltip.legendShape},d={text:"最高:"+e.data[3],color:c[3],legendShape:"auto"==a.extra.tooltip.legendShape?e.legendShape:a.extra.tooltip.legendShape};u.push(i,r,o,d)}));for(var d=[],f={x:0,y:0},h=0;h<o.length;h++){var p=o[h];"undefined"!==typeof p[n]&&null!==p[n]&&d.push(p[n])}return f.x=Math.round(d[0][0].x),{textList:u,offset:f}}function O(t){for(var e=[],a=0;a<t.length;a++)1==t[a].show&&e.push(t[a]);return e}function D(t,e,a){return t.x<=e.width-e.area[1]+10&&t.x>=e.area[3]-10&&t.y>=e.area[0]&&t.y<=e.height-e.area[2]}function E(t,e,a){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(a,2)}function I(t,e){var a=[],n=[];return t.forEach((function(t,i){e.connectNulls?null!==t&&n.push(t):null!==t?n.push(t):(n.length&&a.push(n),n=[])})),n.length&&a.push(n),a}function M(t,e,a,n,i){var r={angle:0,xAxisHeight:e.xAxis.lineHeight*e.pix+e.xAxis.marginTop*e.pix},o=e.xAxis.fontSize*e.pix,s=t.map((function(t,a){var n=e.xAxis.formatter?e.xAxis.formatter(t,a,e):t;return x(String(n),o,i)})),l=Math.max.apply(this,s);if(1==e.xAxis.rotateLabel){r.angle=e.xAxis.rotateAngle*Math.PI/180;var c=e.xAxis.marginTop*e.pix*2+Math.abs(l*Math.sin(r.angle));c=c<o+e.xAxis.marginTop*e.pix*2?c+e.xAxis.marginTop*e.pix*2:c,r.xAxisHeight=c}return e.enableScroll&&e.xAxis.scrollShow&&(r.xAxisHeight+=6*e.pix),e.xAxis.disabled&&(r.xAxisHeight=0),r}function F(t,e,a,n){var i=s({},{type:""},e.extra.bar),o={angle:0,xAxisHeight:e.xAxis.lineHeight*e.pix+e.xAxis.marginTop*e.pix};o.ranges=function(t,e,a,n){var i,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;i="stack"==n?w(t,e.categories.length):y(t);var s=[];i=i.filter((function(t){return"object"===(0,r.default)(t)&&null!==t?t.constructor.toString().indexOf("Array")>-1?null!==t:null!==t.value:null!==t})),i.map((function(t){"object"===(0,r.default)(t)?t.constructor.toString().indexOf("Array")>-1?"candle"==e.type?t.map((function(t){s.push(t)})):s.push(t[0]):s.push(t.value):s.push(t)}));var l=0,c=0;if(s.length>0&&(l=Math.min.apply(this,s),c=Math.max.apply(this,s)),o>-1?("number"===typeof e.xAxis.data[o].min&&(l=Math.min(e.xAxis.data[o].min,l)),"number"===typeof e.xAxis.data[o].max&&(c=Math.max(e.xAxis.data[o].max,c))):("number"===typeof e.xAxis.min&&(l=Math.min(e.xAxis.min,l)),"number"===typeof e.xAxis.max&&(c=Math.max(e.xAxis.max,c))),l===c){var u=c||10;c+=u}for(var d=l,f=c,h=[],p=(f-d)/e.xAxis.splitNumber,v=0;v<=e.xAxis.splitNumber;v++)h.push(d+p*v);return h}(t,e,a,i.type),o.rangesFormat=o.ranges.map((function(t){return t=l.toFixed(t,2),t}));var c=o.ranges.map((function(t){return t=l.toFixed(t,2),t}));o=Object.assign(o,J(c,e,a));o.eachSpacing,c.map((function(t){return x(t,e.xAxis.fontSize*e.pix,n)}));return!0===e.xAxis.disabled&&(o.xAxisHeight=0),o}function L(t,e,a,n,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=i.extra.radar||{};o.max=o.max||0;for(var s=Math.max(o.max,Math.max.apply(null,y(n))),l=[],c=function(i){var o=n[i],c={};c.color=o.color,c.legendShape=o.legendShape,c.pointShape=o.pointShape,c.data=[],o.data.forEach((function(n,i){var o={};o.angle=t[i],o.proportion=n/s,o.value=n,o.position=p(a*o.proportion*r*Math.cos(o.angle),a*o.proportion*r*Math.sin(o.angle),e),c.data.push(o)})),l.push(c)},u=0;u<n.length;u++)c(u);return l}function B(t,e){for(var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=0,i=0,r=0;r<t.length;r++){var o=t[r];o.data=null===o.data?0:o.data,n+=o.data}for(var s=0;s<t.length;s++){var l=t[s];l.data=null===l.data?0:l.data,l._proportion_=0===n?1/t.length*a:l.data/n*a,l._radius_=e}for(var c=0;c<t.length;c++){var u=t[c];u._start_=i,i+=2*u._proportion_*Math.PI}return t}function R(t,e,a,n){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=0;r<t.length;r++)"funnel"==a.type?t[r].radius=t[r].data/t[0].data*e*i:t[r].radius=n*(t.length-r)/(n*t.length)*e*i,t[r]._proportion_=t[r].data/t[0].data;return t}function z(t,e,a,n){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=0,o=0,s=[],l=0;l<t.length;l++){var c=t[l];c.data=null===c.data?0:c.data,r+=c.data,s.push(c.data)}for(var u=Math.min.apply(null,s),d=Math.max.apply(null,s),f=n-a,h=0;h<t.length;h++){var p=t[h];p.data=null===p.data?0:p.data,0===r?(p._proportion_=1/t.length*i,p._rose_proportion_=1/t.length*i):(p._proportion_=p.data/r*i,p._rose_proportion_="area"==e?1/t.length*i:p.data/r*i),p._radius_=a+f*((p.data-u)/(d-u))||n}for(var v=0;v<t.length;v++){var g=t[v];g._start_=o,o+=2*g._rose_proportion_*Math.PI}return t}function j(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==a&&(a=.999999);for(var n=0;n<t.length;n++){var i=t[n];i.data=null===i.data?0:i.data;var r=void 0;r="circle"==e.type?2:"ccw"==e.direction?e.startAngle<e.endAngle?2+e.startAngle-e.endAngle:e.startAngle-e.endAngle:e.endAngle<e.startAngle?2+e.endAngle-e.startAngle:e.startAngle-e.endAngle,i._proportion_=r*i.data*a+e.startAngle,"ccw"==e.direction&&(i._proportion_=e.startAngle-r*i.data*a),i._proportion_>=2&&(i._proportion_=i._proportion_%2)}return t}function N(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==a&&(a=.999999);for(var n=0;n<t.length;n++){var i=t[n];i.data=null===i.data?0:i.data;var r=void 0;r="circle"==e.type?2:e.endAngle<e.startAngle?2+e.endAngle-e.startAngle:e.startAngle-e.endAngle,i._proportion_=r*i.data*a+e.startAngle,i._proportion_>=2&&(i._proportion_=i._proportion_%2)}return t}function U(t,e,a){var n;n=a<e?2+a-e:e-a;for(var i=e,r=0;r<t.length;r++)t[r].value=null===t[r].value?0:t[r].value,t[r]._startAngle_=i,t[r]._endAngle_=n*t[r].value+e,t[r]._endAngle_>=2&&(t[r]._endAngle_=t[r]._endAngle_%2),i=t[r]._endAngle_;return t}function W(t,e,a){for(var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=0;i<t.length;i++){var r=t[i];if(r.data=null===r.data?0:r.data,"auto"==a.pointer.color){for(var o=0;o<e.length;o++)if(r.data<=e[o].value){r.color=e[o].color;break}}else r.color=a.pointer.color;var s=void 0;s=a.endAngle<a.startAngle?2+a.endAngle-a.startAngle:a.startAngle-a.endAngle,r._endAngle_=s*r.data+a.startAngle,r._oldAngle_=a.oldAngle,a.oldAngle<a.endAngle&&(r._oldAngle_+=2),r.data>=a.oldData?r._proportion_=(r._endAngle_-r._oldAngle_)*n+a.oldAngle:r._proportion_=r._oldAngle_-(r._oldAngle_-r._endAngle_)*n,r._proportion_>=2&&(r._proportion_=r._proportion_%2)}return t}function G(t,e,a,n,i,r){return t.map((function(t){if(null===t)return null;var i=0,o=0;return"mix"==r.type?(i=r.extra.mix.column.seriesGap*r.pix||0,o=r.extra.mix.column.categoryGap*r.pix||0):(i=r.extra.column.seriesGap*r.pix||0,o=r.extra.column.categoryGap*r.pix||0),i=Math.min(i,e/a),o=Math.min(o,e/a),t.width=Math.ceil((e-2*o-i*(a-1))/a),r.extra.mix&&r.extra.mix.column.width&&+r.extra.mix.column.width>0&&(t.width=Math.min(t.width,+r.extra.mix.column.width*r.pix)),r.extra.column&&r.extra.column.width&&+r.extra.column.width>0&&(t.width=Math.min(t.width,+r.extra.column.width*r.pix)),t.width<=0&&(t.width=1),t.x+=(n+.5-a/2)*(t.width+i),t}))}function q(t,e,a,n,i,r){return t.map((function(t){if(null===t)return null;var i=0,o=0;return i=r.extra.bar.seriesGap*r.pix||0,o=r.extra.bar.categoryGap*r.pix||0,i=Math.min(i,e/a),o=Math.min(o,e/a),t.width=Math.ceil((e-2*o-i*(a-1))/a),r.extra.bar&&r.extra.bar.width&&+r.extra.bar.width>0&&(t.width=Math.min(t.width,+r.extra.bar.width*r.pix)),t.width<=0&&(t.width=1),t.y+=(n+.5-a/2)*(t.width+i),t}))}function $(t,e,a,n,i,r,o){var s=r.extra.column.categoryGap*r.pix||0;return t.map((function(t){return null===t?null:(t.width=e-2*s,r.extra.column&&r.extra.column.width&&+r.extra.column.width>0&&(t.width=Math.min(t.width,+r.extra.column.width*r.pix)),n>0&&(t.width-=o),t)}))}function H(t,e,a,n,i,r,o){var s=r.extra.column.categoryGap*r.pix||0;return t.map((function(t,a){return null===t?null:(t.width=Math.ceil(e-2*s),r.extra.column&&r.extra.column.width&&+r.extra.column.width>0&&(t.width=Math.min(t.width,+r.extra.column.width*r.pix)),t.width<=0&&(t.width=1),t)}))}function Y(t,e,a,n,i,r,o){var s=r.extra.bar.categoryGap*r.pix||0;return t.map((function(t,a){return null===t?null:(t.width=Math.ceil(e-2*s),r.extra.bar&&r.extra.bar.width&&+r.extra.bar.width>0&&(t.width=Math.min(t.width,+r.extra.bar.width*r.pix)),t.width<=0&&(t.width=1),t)}))}function J(t,e,a){var n=e.width-e.area[1]-e.area[3],i=e.enableScroll?Math.min(e.xAxis.itemCount,t.length):t.length;("line"==e.type||"area"==e.type||"scatter"==e.type||"bubble"==e.type||"bar"==e.type)&&i>1&&"justify"==e.xAxis.boundaryGap&&(i-=1);var r=0;"mount"==e.type&&e.extra&&e.extra.mount&&e.extra.mount.widthRatio&&e.extra.mount.widthRatio>1&&(e.extra.mount.widthRatio>2&&(e.extra.mount.widthRatio=2),r=e.extra.mount.widthRatio-1,i+=r);var o=n/i,s=[],l=e.area[3],c=e.width-e.area[1];return t.forEach((function(t,e){s.push(l+r/2*o+e*o)})),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?s.push(l+r*o+t.length*o):s.push(c)),{xAxisPoints:s,startX:l,endX:c,eachSpacing:o}}function V(t,e,a,n,i,r,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l=[],c=r.height-r.area[0]-r.area[2];return t.forEach((function(t,o){if(null===t)l.push(null);else{var u=[];t.forEach((function(t,l){var d={};d.x=n[o]+Math.round(i/2);var f=t.value||t,h=c*(f-e)/(a-e);h*=s,d.y=r.height-Math.round(h)-r.area[2],u.push(d)})),l.push(u)}})),l}function X(t,e,a,n,i,o,s){var l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c="center";"line"!=o.type&&"area"!=o.type&&"scatter"!=o.type&&"bubble"!=o.type||(c=o.xAxis.boundaryGap);var u=[],d=o.height-o.area[0]-o.area[2],f=o.width-o.area[1]-o.area[3];return t.forEach((function(t,s){if(null===t)u.push(null);else{var h={};h.color=t.color,h.x=n[s];var p,v,g,b=t;if("object"===(0,r.default)(t)&&null!==t)if(t.constructor.toString().indexOf("Array")>-1)p=[].concat(o.chartData.xAxisData.ranges),v=p.shift(),g=p.pop(),b=t[1],h.x=o.area[3]+f*(t[0]-v)/(g-v),"bubble"==o.type&&(h.r=t[2],h.t=t[3]);else b=t.value;"center"==c&&(h.x+=i/2);var m=d*(b-e)/(a-e);m*=l,h.y=o.height-m-o.area[2],u.push(h)}})),u}function K(t,e,a,n,i,o,s,l,c){c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;var u=o.xAxis.boundaryGap,d=[],f=o.height-o.area[0]-o.area[2],h=o.width-o.area[1]-o.area[3];return t.forEach((function(t,s){if(null===t)d.push(null);else{var p={};if(p.color=t.color,"vertical"==l.animation){p.x=n[s];var v,g,b,m=t;if("object"===(0,r.default)(t)&&null!==t)if(t.constructor.toString().indexOf("Array")>-1)v=[].concat(o.chartData.xAxisData.ranges),g=v.shift(),b=v.pop(),m=t[1],p.x=o.area[3]+h*(t[0]-g)/(b-g);else m=t.value;"center"==u&&(p.x+=i/2);var x=f*(m-e)/(a-e);x*=c,p.y=o.height-x-o.area[2],d.push(p)}else{p.x=n[0]+i*s*c;m=t;"center"==u&&(p.x+=i/2);x=f*(m-e)/(a-e);p.y=o.height-x-o.area[2],d.push(p)}}})),d}function Q(t,e,a,n,i,o,s,l,c){c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;var u=[],d=o.height-o.area[0]-o.area[2],f=o.width-o.area[1]-o.area[3];return t.forEach((function(t,s){if(null===t)u.push(null);else{var l={};l.color=t.color,l.x=n[s];var h,p,v,g=t;if("object"===(0,r.default)(t)&&null!==t)if(t.constructor.toString().indexOf("Array")>-1)h=[].concat(o.chartData.xAxisData.ranges),p=h.shift(),v=h.pop(),g=t[1],l.x=o.area[3]+f*(t[0]-p)/(v-p);else g=t.value;l.x+=i/2;var b=d*(g*c-e)/(a-e);l.y=o.height-b-o.area[2],u.push(l)}})),u}function Z(t,e,a,n,i,r,o,s){var l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1,c=[],u=r.height-r.area[0]-r.area[2],d=(r.width,r.area[1],r.area[3],i*o.widthRatio);return t.forEach((function(t,o){if(null===t)c.push(null);else{var s={};s.color=t.color,s.x=n[o],s.x+=i/2;var f=t.data,h=u*(f*l-e)/(a-e);s.y=r.height-h-r.area[2],s.value=f,s.width=d,c.push(s)}})),c}function tt(t,e,a,n,i,o,s){var l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c=[],u=(o.height,o.area[0],o.area[2],o.width-o.area[1]-o.area[3]);return t.forEach((function(t,i){if(null===t)c.push(null);else{var s={};s.color=t.color,s.y=n[i];var d=t;"object"===(0,r.default)(t)&&null!==t&&(d=t.value);var f=u*(d-e)/(a-e);f*=l,s.height=f,s.value=d,s.x=f+o.area[3],c.push(s)}})),c}function et(t,e,a,n,i,o,s,l,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,d=[],f=o.height-o.area[0]-o.area[2];return t.forEach((function(t,s){if(null===t)d.push(null);else{var h={};if(h.color=t.color,h.x=n[s]+Math.round(i/2),l>0){for(var p=0,v=0;v<=l;v++)p+=c[v].data[s];var g=p-t,b=f*(p-e)/(a-e),m=f*(g-e)/(a-e)}else{p=t;"object"===(0,r.default)(t)&&null!==t&&(p=t.value);b=f*(p-e)/(a-e),m=0}var x=m;b*=u,x*=u,h.y=o.height-Math.round(b)-o.area[2],h.y0=o.height-Math.round(x)-o.area[2],d.push(h)}})),d}function at(t,e,a,n,i,o,s,l,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,d=[],f=o.width-o.area[1]-o.area[3];return t.forEach((function(t,i){if(null===t)d.push(null);else{var s={};if(s.color=t.color,s.y=n[i],l>0){for(var h=0,p=0;p<=l;p++)h+=c[p].data[i];var v=h-t,g=f*(h-e)/(a-e),b=f*(v-e)/(a-e)}else{h=t;"object"===(0,r.default)(t)&&null!==t&&(h=t.value);g=f*(h-e)/(a-e),b=0}var m=b;g*=u,m*=u,s.height=g-m,s.x=o.area[3]+g,s.x0=o.area[3]+m,d.push(s)}})),d}function nt(t,e,a,n,i){var o;o="stack"==n?w(t,e.categories.length):y(t);var s=[];o=o.filter((function(t){return"object"===(0,r.default)(t)&&null!==t?t.constructor.toString().indexOf("Array")>-1?null!==t:null!==t.value:null!==t})),o.map((function(t){"object"===(0,r.default)(t)?t.constructor.toString().indexOf("Array")>-1?"candle"==e.type?t.map((function(t){s.push(t)})):s.push(t[1]):s.push(t.value):s.push(t)}));var l=i.min||0,c=i.max||0;s.length>0&&(l=Math.min.apply(this,s),c=Math.max.apply(this,s)),l===c&&(0==c?c=10:l=0);for(var u=m(l,c),d=void 0===i.min||null===i.min?u.minRange:i.min,f=void 0===i.max||null===i.max?u.maxRange:i.max,h=(f-d)/e.yAxis.splitNumber,p=[],v=0;v<=e.yAxis.splitNumber;v++)p.push(d+h*v);return p.reverse()}function it(t,e,a,n){var i=s({},{type:""},e.extra.column),r=e.yAxis.data.length,o=new Array(r);if(r>0){for(var c=0;c<r;c++){o[c]=[];for(var u=0;u<t.length;u++)t[u].index==c&&o[c].push(t[u])}for(var d=new Array(r),f=new Array(r),h=new Array(r),p=function(t){var r=e.yAxis.data[t];1==e.yAxis.disabled&&(r.disabled=!0),"categories"===r.type?(r.formatter||(r.formatter=function(t,e,a){return t+(r.unit||"")}),r.categories=r.categories||e.categories,d[t]=r.categories):(r.formatter||(r.formatter=function(t,e,a){return l.toFixed(t,r.tofix||0)+(r.unit||"")}),d[t]=nt(o[t],e,a,i.type,r,t));var s=r.fontSize*e.pix||a.fontSize;h[t]={position:r.position?r.position:"left",width:0},f[t]=d[t].map((function(a,i){return a=r.formatter(a,i,e),h[t].width=Math.max(h[t].width,x(a,s,n)+5),a}));var c=r.calibration?4*e.pix:0;h[t].width+=c+3*e.pix,!0===r.disabled&&(h[t].width=0)},v=0;v<r;v++)p(v)}else{d=new Array(1),f=new Array(1),h=new Array(1);"bar"===e.type?(d[0]=e.categories,e.yAxis.formatter||(e.yAxis.formatter=function(t,e,a){return t+(a.yAxis.unit||"")})):(e.yAxis.formatter||(e.yAxis.formatter=function(t,e,a){return t.toFixed(a.yAxis.tofix)+(a.yAxis.unit||"")}),d[0]=nt(t,e,a,i.type,{})),h[0]={position:"left",width:0};var g=e.yAxis.fontSize*e.pix||a.fontSize;f[0]=d[0].map((function(t,a){return t=e.yAxis.formatter(t,a,e),h[0].width=Math.max(h[0].width,x(t,g,n)+5),t})),h[0].width+=3*e.pix,!0===e.yAxis.disabled?(h[0]={position:"left",width:0},e.yAxis.data[0]={disabled:!0}):(e.yAxis.data[0]={disabled:!1,position:"left",max:e.yAxis.max,min:e.yAxis.min,formatter:e.yAxis.formatter},"bar"===e.type&&(e.yAxis.data[0].categories=e.categories,e.yAxis.data[0].type="categories"))}return{rangesFormat:f,ranges:d,yAxisWidth:h}}function rt(t,e){!0!==e.rotateLock?(t.translate(e.height,0),t.rotate(90*Math.PI/180)):!0!==e._rotate_&&(t.translate(e.height,0),t.rotate(90*Math.PI/180),e._rotate_=!0)}function ot(t,e,a,n,i){if(n.beginPath(),"hollow"==i.dataPointShapeType?(n.setStrokeStyle(e),n.setFillStyle(i.background),n.setLineWidth(2*i.pix)):(n.setStrokeStyle("#ffffff"),n.setFillStyle(e),n.setLineWidth(1*i.pix)),"diamond"===a)t.forEach((function(t,e){null!==t&&(n.moveTo(t.x,t.y-4.5),n.lineTo(t.x-4.5,t.y),n.lineTo(t.x,t.y+4.5),n.lineTo(t.x+4.5,t.y),n.lineTo(t.x,t.y-4.5))}));else if("circle"===a)t.forEach((function(t,e){null!==t&&(n.moveTo(t.x+2.5*i.pix,t.y),n.arc(t.x,t.y,3*i.pix,0,2*Math.PI,!1))}));else if("square"===a)t.forEach((function(t,e){null!==t&&(n.moveTo(t.x-3.5,t.y-3.5),n.rect(t.x-3.5,t.y-3.5,7,7))}));else if("triangle"===a)t.forEach((function(t,e){null!==t&&(n.moveTo(t.x,t.y-4.5),n.lineTo(t.x-4.5,t.y+4.5),n.lineTo(t.x+4.5,t.y+4.5),n.lineTo(t.x,t.y-4.5))}));else if("none"===a)return;n.closePath(),n.fill(),n.stroke()}function st(t,e,a,n,i,r,o){if(i.tooltip&&!(i.tooltip.group.length>0&&0==i.tooltip.group.includes(o))){var s="number"===typeof i.tooltip.index?i.tooltip.index:i.tooltip.index[i.tooltip.group.indexOf(o)];if(n.beginPath(),"hollow"==r.activeType?(n.setStrokeStyle(e),n.setFillStyle(i.background),n.setLineWidth(2*i.pix)):(n.setStrokeStyle("#ffffff"),n.setFillStyle(e),n.setLineWidth(1*i.pix)),"diamond"===a)t.forEach((function(t,e){null!==t&&s==e&&(n.moveTo(t.x,t.y-4.5),n.lineTo(t.x-4.5,t.y),n.lineTo(t.x,t.y+4.5),n.lineTo(t.x+4.5,t.y),n.lineTo(t.x,t.y-4.5))}));else if("circle"===a)t.forEach((function(t,e){null!==t&&s==e&&(n.moveTo(t.x+2.5*i.pix,t.y),n.arc(t.x,t.y,3*i.pix,0,2*Math.PI,!1))}));else if("square"===a)t.forEach((function(t,e){null!==t&&s==e&&(n.moveTo(t.x-3.5,t.y-3.5),n.rect(t.x-3.5,t.y-3.5,7,7))}));else if("triangle"===a)t.forEach((function(t,e){null!==t&&s==e&&(n.moveTo(t.x,t.y-4.5),n.lineTo(t.x-4.5,t.y+4.5),n.lineTo(t.x+4.5,t.y+4.5),n.lineTo(t.x,t.y-4.5))}));else if("none"===a)return;n.closePath(),n.fill(),n.stroke()}}function lt(t,e,a,n){var i=t.title.fontSize||e.titleFontSize,r=t.subtitle.fontSize||e.subtitleFontSize,o=t.title.name||"",s=t.subtitle.name||"",l=t.title.color||t.fontColor,c=t.subtitle.color||t.fontColor,u=o?i:0,d=s?r:0;if(s){var f=x(s,r*t.pix,a),h=n.x-f/2+(t.subtitle.offsetX||0)*t.pix,p=n.y+r*t.pix/2+(t.subtitle.offsetY||0)*t.pix;o&&(p+=(u*t.pix+5)/2),a.beginPath(),a.setFontSize(r*t.pix),a.setFillStyle(c),a.fillText(s,h,p),a.closePath(),a.stroke()}if(o){var v=x(o,i*t.pix,a),g=n.x-v/2+(t.title.offsetX||0),b=n.y+i*t.pix/2+(t.title.offsetY||0)*t.pix;s&&(b-=(d*t.pix+5)/2),a.beginPath(),a.setFontSize(i*t.pix),a.setFillStyle(l),a.fillText(o,g,b),a.closePath(),a.stroke()}}function ct(t,e,a,n,i){var o=e.data,s=e.textOffset?e.textOffset:0;t.forEach((function(t,l){if(null!==t){n.beginPath();var c=e.textSize?e.textSize*i.pix:a.fontSize;n.setFontSize(c),n.setFillStyle(e.textColor||i.fontColor);var u=o[l];"object"===(0,r.default)(o[l])&&null!==o[l]&&(u=o[l].constructor.toString().indexOf("Array")>-1?o[l][1]:o[l].value);var d=e.formatter?e.formatter(u,l,e,i):u;n.setTextAlign("center"),n.fillText(String(d),t.x,t.y-4+s*i.pix),n.closePath(),n.stroke(),n.setTextAlign("left")}}))}function ut(t,e,a,n,i){var o=e.data,s=e.textOffset?e.textOffset:0,l=i.extra.column.labelPosition;t.forEach((function(t,c){if(null!==t){n.beginPath();var u=e.textSize?e.textSize*i.pix:a.fontSize;n.setFontSize(u),n.setFillStyle(e.textColor||i.fontColor);var d=o[c];"object"===(0,r.default)(o[c])&&null!==o[c]&&(d=o[c].constructor.toString().indexOf("Array")>-1?o[c][1]:o[c].value);var f=e.formatter?e.formatter(d,c,e,i):d;n.setTextAlign("center");var h=t.y-4*i.pix+s*i.pix;t.y>e.zeroPoints&&(h=t.y+s*i.pix+u),"insideTop"==l&&(h=t.y+u+s*i.pix,t.y>e.zeroPoints&&(h=t.y-s*i.pix-4*i.pix)),"center"==l&&(h=t.y+s*i.pix+(i.height-i.area[2]-t.y+u)/2,e.zeroPoints<i.height-i.area[2]&&(h=t.y+s*i.pix+(e.zeroPoints-t.y+u)/2),t.y>e.zeroPoints&&(h=t.y-s*i.pix-(t.y-e.zeroPoints-u)/2),"stack"==i.extra.column.type&&(h=t.y+s*i.pix+(t.y0-t.y+u)/2)),"bottom"==l&&(h=i.height-i.area[2]+s*i.pix-4*i.pix,e.zeroPoints<i.height-i.area[2]&&(h=e.zeroPoints+s*i.pix-4*i.pix),t.y>e.zeroPoints&&(h=e.zeroPoints-s*i.pix+u+2*i.pix),"stack"==i.extra.column.type&&(h=t.y0+s*i.pix-4*i.pix)),n.fillText(String(f),t.x,h),n.closePath(),n.stroke(),n.setTextAlign("left")}}))}function dt(t,e,a,n,i,r){e.data;var o=e.textOffset?e.textOffset:0;i.extra.mount.labelPosition;t.forEach((function(t,s){if(null!==t){n.beginPath();var l=e[s].textSize?e[s].textSize*i.pix:a.fontSize;n.setFontSize(l),n.setFillStyle(e[s].textColor||i.fontColor);var c=t.value,u=e[s].formatter?e[s].formatter(c,s,e,i):c;n.setTextAlign("center");var d=t.y-4*i.pix+o*i.pix;t.y>r&&(d=t.y+o*i.pix+l),n.fillText(String(u),t.x,d),n.closePath(),n.stroke(),n.setTextAlign("left")}}))}function ft(t,e,a,n,i){var o=e.data;e.textOffset&&e.textOffset;t.forEach((function(t,s){if(null!==t){n.beginPath();var l=e.textSize?e.textSize*i.pix:a.fontSize;n.setFontSize(l),n.setFillStyle(e.textColor||i.fontColor);var c=o[s];"object"===(0,r.default)(o[s])&&null!==o[s]&&(c=o[s].value);var u=e.formatter?e.formatter(c,s,e,i):c;n.setTextAlign("left"),n.fillText(String(u),t.x+4*i.pix,t.y+l/2-3),n.closePath(),n.stroke()}}))}function ht(t,e,a,n,i,r){var o;e-=t.width/2+t.labelOffset*n.pix,e=e<10?10:e,o=t.endAngle<t.startAngle?2+t.endAngle-t.startAngle:t.startAngle-t.endAngle;for(var s=o/t.splitLine.splitNumber,l=t.endNumber-t.startNumber,c=l/t.splitLine.splitNumber,u=t.startAngle,d=t.startNumber,f=0;f<t.splitLine.splitNumber+1;f++){var h={x:e*Math.cos(u*Math.PI),y:e*Math.sin(u*Math.PI)},p=t.formatter?t.formatter(d,f,n):d;h.x+=a.x-x(p,i.fontSize,r)/2,h.y+=a.y;var v=h.x,g=h.y;r.beginPath(),r.setFontSize(i.fontSize),r.setFillStyle(t.labelColor||n.fontColor),r.fillText(p,v,g+i.fontSize/2),r.closePath(),r.stroke(),u+=s,u>=2&&(u%=2),d+=c}}function pt(t,e,a,n,i,r){var o=n.extra.radar||{};t.forEach((function(t,s){if(!0===o.labelPointShow&&""!==n.categories[s]){var c={x:e*Math.cos(t),y:e*Math.sin(t)},u=p(c.x,c.y,a);r.setFillStyle(o.labelPointColor),r.beginPath(),r.arc(u.x,u.y,o.labelPointRadius*n.pix,0,2*Math.PI,!1),r.closePath(),r.fill()}if(!0===o.labelShow){var d={x:(e+i.radarLabelTextMargin*n.pix)*Math.cos(t),y:(e+i.radarLabelTextMargin*n.pix)*Math.sin(t)},f=p(d.x,d.y,a),h=f.x,v=f.y;l.approximatelyEqual(d.x,0)?h-=x(n.categories[s]||"",i.fontSize,r)/2:d.x<0&&(h-=x(n.categories[s]||"",i.fontSize,r)),r.beginPath(),r.setFontSize(i.fontSize),r.setFillStyle(o.labelColor||n.fontColor),r.fillText(n.categories[s]||"",h,v+i.fontSize/2),r.closePath(),r.stroke()}}))}function vt(t,e,a,n,i,r){for(var o=a.pieChartLinePadding,s=[],c=null,u=t.map((function(a,n){var i=a.formatter?a.formatter(a,n,t,e):l.toFixed(100*a._proportion_.toFixed(4))+"%";i=a.labelText?a.labelText:i;var r=2*Math.PI-(a._start_+2*Math.PI*a._proportion_/2);a._rose_proportion_&&(r=2*Math.PI-(a._start_+2*Math.PI*a._rose_proportion_/2));var o=a.color,s=a._radius_;return{arc:r,text:i,color:o,radius:s,textColor:a.textColor,textSize:a.textSize,labelShow:a.labelShow}})),d=0;d<u.length;d++){var f=u[d],h=Math.cos(f.arc)*(f.radius+o),g=Math.sin(f.arc)*(f.radius+o),b=Math.cos(f.arc)*f.radius,m=Math.sin(f.arc)*f.radius,y=h>=0?h+a.pieChartTextPadding:h-a.pieChartTextPadding,w=g,_=x(f.text,f.textSize*e.pix||a.fontSize,n),S=w;c&&l.isSameXCoordinateArea(c.start,{x:y})&&(S=y>0?Math.min(w,c.start.y):h<0||w>0?Math.max(w,c.start.y):Math.min(w,c.start.y)),y<0&&(y-=_);var C={lineStart:{x:b,y:m},lineEnd:{x:h,y:g},start:{x:y,y:S},width:_,height:a.fontSize,text:f.text,color:f.color,textColor:f.textColor,textSize:f.textSize};c=v(C,c),s.push(c)}for(var k=0;k<s.length;k++)if(!1!==u[k].labelShow){var T=s[k],A=p(T.lineStart.x,T.lineStart.y,r),P=p(T.lineEnd.x,T.lineEnd.y,r),O=p(T.start.x,T.start.y,r);n.setLineWidth(1*e.pix),n.setFontSize(T.textSize*e.pix||a.fontSize),n.beginPath(),n.setStrokeStyle(T.color),n.setFillStyle(T.color),n.moveTo(A.x,A.y);var D=T.start.x<0?O.x+T.width:O.x,E=T.start.x<0?O.x-5:O.x+5;n.quadraticCurveTo(P.x,P.y,D,O.y),n.moveTo(A.x,A.y),n.stroke(),n.closePath(),n.beginPath(),n.moveTo(O.x+T.width,O.y),n.arc(D,O.y,2*e.pix,0,2*Math.PI),n.closePath(),n.fill(),n.beginPath(),n.setFontSize(T.textSize*e.pix||a.fontSize),n.setFillStyle(T.textColor||e.fontColor),n.fillText(T.text,E,O.y+3),n.closePath(),n.stroke(),n.closePath()}}function gt(t,e,a){for(var n=s({},{type:"solid",dashLength:4,data:[]},t.extra.markLine),i=t.area[3],r=t.width-t.area[1],o=function(t,e){for(var a,n,i=e.height-e.area[0]-e.area[2],r=0;r<t.length;r++){t[r].yAxisIndex=t[r].yAxisIndex?t[r].yAxisIndex:0;var o=[].concat(e.chartData.yAxisData.ranges[t[r].yAxisIndex]);a=o.pop(),n=o.shift();var s=i*(t[r].value-a)/(n-a);t[r].y=e.height-Math.round(s)-e.area[2]}return t}(n.data,t),l=0;l<o.length;l++){var u=s({},{lineColor:"#DE4A42",showLabel:!1,labelFontSize:13,labelPadding:6,labelFontColor:"#666666",labelBgColor:"#DFE8FF",labelBgOpacity:.8,labelAlign:"left",labelOffsetX:0,labelOffsetY:0},o[l]);if("dash"==n.type&&a.setLineDash([n.dashLength,n.dashLength]),a.setStrokeStyle(u.lineColor),a.setLineWidth(1*t.pix),a.beginPath(),a.moveTo(i,u.y),a.lineTo(r,u.y),a.stroke(),a.setLineDash([]),u.showLabel){var d=u.labelFontSize*t.pix,f=u.labelText?u.labelText:u.value;a.setFontSize(d);var h=x(f,d,a),p=h+u.labelPadding*t.pix*2,v="left"==u.labelAlign?t.area[3]-p:t.width-t.area[1];v+=u.labelOffsetX;var g=u.y-.5*d-u.labelPadding*t.pix;g+=u.labelOffsetY;var b=v+u.labelPadding*t.pix;u.y;a.setFillStyle(c(u.labelBgColor,u.labelBgOpacity)),a.setStrokeStyle(u.labelBgColor),a.setLineWidth(1*t.pix),a.beginPath(),a.rect(v,g,p,d+2*u.labelPadding*t.pix),a.closePath(),a.stroke(),a.fill(),a.setFontSize(d),a.setTextAlign("left"),a.setFillStyle(u.labelFontColor),a.fillText(String(f),b,g+d+u.labelPadding*t.pix/2),a.stroke(),a.setTextAlign("left")}}}function bt(t,e,a,n,i){var r=s({},{gridType:"solid",dashLength:4},t.extra.tooltip),o=t.area[3],l=t.width-t.area[1];if("dash"==r.gridType&&a.setLineDash([r.dashLength,r.dashLength]),a.setStrokeStyle(r.gridColor||"#cccccc"),a.setLineWidth(1*t.pix),a.beginPath(),a.moveTo(o,t.tooltip.offset.y),a.lineTo(l,t.tooltip.offset.y),a.stroke(),a.setLineDash([]),r.yAxisLabel)for(var u=r.boxPadding*t.pix,d=function(t,e,a,n,i){for(var r=[].concat(a.chartData.yAxisData.ranges),o=a.height-a.area[0]-a.area[2],s=a.area[0],l=[],c=0;c<r.length;c++){var u=Math.max.apply(this,r[c]),d=Math.min.apply(this,r[c]),f=u-(u-d)*(t-s)/o;f=a.yAxis.data&&a.yAxis.data[c].formatter?a.yAxis.data[c].formatter(f,c,a):f.toFixed(0),l.push(String(f))}return l}(t.tooltip.offset.y,t.series,t),f=t.chartData.yAxisData.yAxisWidth,h=t.area[3],p=t.width-t.area[1],v=0;v<d.length;v++){a.setFontSize(r.fontSize*t.pix);var g,b=x(d[v],r.fontSize*t.pix,a),m=void 0,y=void 0;"left"==f[v].position?(m=h-(b+2*u)-2*t.pix,y=Math.max(m,m+b+2*u)):(m=p+2*t.pix,y=Math.max(m+f[v].width,m+b+2*u)),g=y-m;var w=m+(g-b)/2,_=t.tooltip.offset.y;a.beginPath(),a.setFillStyle(c(r.labelBgColor||e.toolTipBackground,r.labelBgOpacity||e.toolTipOpacity)),a.setStrokeStyle(r.labelBgColor||e.toolTipBackground),a.setLineWidth(1*t.pix),a.rect(m,_-.5*e.fontSize-u,g,e.fontSize+2*u),a.closePath(),a.stroke(),a.fill(),a.beginPath(),a.setFontSize(e.fontSize),a.setFillStyle(r.labelFontColor||t.fontColor),a.fillText(d[v],w,_+.5*e.fontSize),a.closePath(),a.stroke(),"left"==f[v].position?h-=f[v].width+t.yAxis.padding*t.pix:p+=f[v].width+t.yAxis.padding*t.pix}}function mt(t,e,a,n,i){var r=s({},{activeBgColor:"#000000",activeBgOpacity:.08,activeWidth:i},e.extra.column);r.activeWidth=r.activeWidth>i?i:r.activeWidth;var o=e.area[0],l=e.height-e.area[2];n.beginPath(),n.setFillStyle(c(r.activeBgColor,r.activeBgOpacity)),n.rect(t-r.activeWidth/2,o,r.activeWidth,l-o),n.closePath(),n.fill(),n.setFillStyle("#FFFFFF")}function xt(t,e,a,n,i){var r=s({},{activeBgColor:"#000000",activeBgOpacity:.08},e.extra.bar),o=e.area[3],l=e.width-e.area[1];n.beginPath(),n.setFillStyle(c(r.activeBgColor,r.activeBgOpacity)),n.rect(o,t-i/2,l-o,i),n.closePath(),n.fill(),n.setFillStyle("#FFFFFF")}function yt(t,e,a,n,i,r,o){var l=s({},{showBox:!0,showArrow:!0,showCategory:!1,bgColor:"#000000",bgOpacity:.7,borderColor:"#000000",borderWidth:0,borderRadius:0,borderOpacity:.7,boxPadding:3,fontColor:"#FFFFFF",fontSize:13,lineHeight:20,legendShow:!0,legendShape:"auto",splitLine:!0},a.extra.tooltip);1==l.showCategory&&a.categories&&t.unshift({text:a.categories[a.tooltip.index],color:null});var u=l.fontSize*a.pix,d=l.lineHeight*a.pix,f=l.boxPadding*a.pix,h=u,p=5*a.pix;0==l.legendShow&&(h=0,p=0);var v=l.showArrow?8*a.pix:0,g=!1;"line"!=a.type&&"mount"!=a.type&&"area"!=a.type&&"candle"!=a.type&&"mix"!=a.type||1==l.splitLine&&function(t,e,a,n){var i=e.extra.tooltip||{};i.gridType=void 0==i.gridType?"solid":i.gridType,i.dashLength=void 0==i.dashLength?4:i.dashLength;var r=e.area[0],o=e.height-e.area[2];if("dash"==i.gridType&&n.setLineDash([i.dashLength,i.dashLength]),n.setStrokeStyle(i.gridColor||"#cccccc"),n.setLineWidth(1*e.pix),n.beginPath(),n.moveTo(t,r),n.lineTo(t,o),n.stroke(),n.setLineDash([]),i.xAxisLabel){var s=e.categories[e.tooltip.index];n.setFontSize(a.fontSize);var l=x(s,a.fontSize,n),u=t-.5*l,d=o+2*e.pix;n.beginPath(),n.setFillStyle(c(i.labelBgColor||a.toolTipBackground,i.labelBgOpacity||a.toolTipOpacity)),n.setStrokeStyle(i.labelBgColor||a.toolTipBackground),n.setLineWidth(1*e.pix),n.rect(u-i.boxPadding*e.pix,d,l+2*i.boxPadding*e.pix,a.fontSize+2*i.boxPadding*e.pix),n.closePath(),n.stroke(),n.fill(),n.beginPath(),n.setFontSize(a.fontSize),n.setFillStyle(i.labelFontColor||e.fontColor),n.fillText(String(s),u,d+i.boxPadding*e.pix+a.fontSize),n.closePath(),n.stroke()}}(a.tooltip.offset.x,a,n,i),e=s({x:0,y:0},e),e.y-=8*a.pix;var b=t.map((function(t){return x(t.text,u,i)})),m=h+p+4*f+Math.max.apply(null,b),y=2*f+t.length*d;if(0!=l.showBox){e.x-Math.abs(a._scrollDistance_||0)+v+m>a.width&&(g=!0),y+e.y>a.height&&(e.y=a.height-y),i.beginPath(),i.setFillStyle(c(l.bgColor,l.bgOpacity)),i.setLineWidth(l.borderWidth*a.pix),i.setStrokeStyle(c(l.borderColor,l.borderOpacity));var w=l.borderRadius;g?(m+v>a.width&&(e.x=a.width+Math.abs(a._scrollDistance_||0)+v+(m-a.width)),m>e.x&&(e.x=a.width+Math.abs(a._scrollDistance_||0)+v+(m-a.width)),l.showArrow&&(i.moveTo(e.x,e.y+10*a.pix),i.lineTo(e.x-v,e.y+10*a.pix+5*a.pix)),i.arc(e.x-v-w,e.y+y-w,w,0,Math.PI/2,!1),i.arc(e.x-v-Math.round(m)+w,e.y+y-w,w,Math.PI/2,Math.PI,!1),i.arc(e.x-v-Math.round(m)+w,e.y+w,w,-Math.PI,-Math.PI/2,!1),i.arc(e.x-v-w,e.y+w,w,-Math.PI/2,0,!1),l.showArrow&&(i.lineTo(e.x-v,e.y+10*a.pix-5*a.pix),i.lineTo(e.x,e.y+10*a.pix))):(l.showArrow&&(i.moveTo(e.x,e.y+10*a.pix),i.lineTo(e.x+v,e.y+10*a.pix-5*a.pix)),i.arc(e.x+v+w,e.y+w,w,-Math.PI,-Math.PI/2,!1),i.arc(e.x+v+Math.round(m)-w,e.y+w,w,-Math.PI/2,0,!1),i.arc(e.x+v+Math.round(m)-w,e.y+y-w,w,0,Math.PI/2,!1),i.arc(e.x+v+w,e.y+y-w,w,Math.PI/2,Math.PI,!1),l.showArrow&&(i.lineTo(e.x+v,e.y+10*a.pix+5*a.pix),i.lineTo(e.x,e.y+10*a.pix))),i.closePath(),i.fill(),l.borderWidth>0&&i.stroke(),l.legendShow&&t.forEach((function(t,n){if(null!==t.color){i.beginPath(),i.setFillStyle(t.color);var r=e.x+v+2*f,o=e.y+(d-u)/2+d*n+f+1;switch(g&&(r=e.x-m-v+2*f),t.legendShape){case"line":i.moveTo(r,o+.5*h-2*a.pix),i.fillRect(r,o+.5*h-2*a.pix,h,4*a.pix);break;case"triangle":i.moveTo(r+7.5*a.pix,o+.5*h-5*a.pix),i.lineTo(r+2.5*a.pix,o+.5*h+5*a.pix),i.lineTo(r+12.5*a.pix,o+.5*h+5*a.pix),i.lineTo(r+7.5*a.pix,o+.5*h-5*a.pix);break;case"diamond":i.moveTo(r+7.5*a.pix,o+.5*h-5*a.pix),i.lineTo(r+2.5*a.pix,o+.5*h),i.lineTo(r+7.5*a.pix,o+.5*h+5*a.pix),i.lineTo(r+12.5*a.pix,o+.5*h),i.lineTo(r+7.5*a.pix,o+.5*h-5*a.pix);break;case"circle":i.moveTo(r+7.5*a.pix,o+.5*h),i.arc(r+7.5*a.pix,o+.5*h,5*a.pix,0,2*Math.PI);break;case"rect":i.moveTo(r,o+.5*h-5*a.pix),i.fillRect(r,o+.5*h-5*a.pix,15*a.pix,10*a.pix);break;case"square":i.moveTo(r+2*a.pix,o+.5*h-5*a.pix),i.fillRect(r+2*a.pix,o+.5*h-5*a.pix,10*a.pix,10*a.pix);break;default:i.moveTo(r,o+.5*h-5*a.pix),i.fillRect(r,o+.5*h-5*a.pix,15*a.pix,10*a.pix)}i.closePath(),i.fill()}})),t.forEach((function(t,a){var n=e.x+v+2*f+h+p;g&&(n=e.x-m-v+2*f+h+p);var r=e.y+d*a+(d-u)/2-1+f+u;i.beginPath(),i.setFontSize(u),i.setTextBaseline("normal"),i.setFillStyle(l.fontColor),i.fillText(t.text,n,r),i.closePath(),i.stroke()}))}}function wt(t,e,a,n,i,r){var o=t.extra.tooltip||{};o.horizentalLine&&t.tooltip&&1===n&&("line"==t.type||"area"==t.type||"column"==t.type||"mount"==t.type||"candle"==t.type||"mix"==t.type)&&bt(t,e,a),a.save(),t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&a.translate(t._scrollDistance_,0),t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===n&&yt(t.tooltip.textList,t.tooltip.offset,t,e,a),a.restore()}function _t(t,e,a,n){var i=e.chartData.xAxisData,r=i.xAxisPoints,o=i.startX,s=i.endX,l=i.eachSpacing,c="center";"bar"!=e.type&&"line"!=e.type&&"area"!=e.type&&"scatter"!=e.type&&"bubble"!=e.type||(c=e.xAxis.boundaryGap);var u=e.height-e.area[2],d=e.area[0];if(e.enableScroll&&e.xAxis.scrollShow){var f=e.height-e.area[2]+a.xAxisHeight,h=s-o,p=l*(r.length-1);"mount"==e.type&&e.extra&&e.extra.mount&&e.extra.mount.widthRatio&&e.extra.mount.widthRatio>1&&(e.extra.mount.widthRatio>2&&(e.extra.mount.widthRatio=2),p+=(e.extra.mount.widthRatio-1)*l);var v=h*h/p,g=0;e._scrollDistance_&&(g=-e._scrollDistance_*h/p),n.beginPath(),n.setLineCap("round"),n.setLineWidth(6*e.pix),n.setStrokeStyle(e.xAxis.scrollBackgroundColor||"#EFEBEF"),n.moveTo(o,f),n.lineTo(s,f),n.stroke(),n.closePath(),n.beginPath(),n.setLineCap("round"),n.setLineWidth(6*e.pix),n.setStrokeStyle(e.xAxis.scrollColor||"#A6A6A6"),n.moveTo(o+g,f),n.lineTo(o+g+v,f),n.stroke(),n.closePath(),n.setLineCap("butt")}if(n.save(),e._scrollDistance_&&0!==e._scrollDistance_&&n.translate(e._scrollDistance_,0),!0===e.xAxis.calibration&&(n.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),n.setLineCap("butt"),n.setLineWidth(1*e.pix),r.forEach((function(t,a){a>0&&(n.beginPath(),n.moveTo(t-l/2,u),n.lineTo(t-l/2,u+3*e.pix),n.closePath(),n.stroke())}))),!0!==e.xAxis.disableGrid&&(n.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),n.setLineCap("butt"),n.setLineWidth(1*e.pix),"dash"==e.xAxis.gridType&&n.setLineDash([e.xAxis.dashLength*e.pix,e.xAxis.dashLength*e.pix]),e.xAxis.gridEval=e.xAxis.gridEval||1,r.forEach((function(t,a){a%e.xAxis.gridEval==0&&(n.beginPath(),n.moveTo(t,u),n.lineTo(t,d),n.stroke())})),n.setLineDash([])),!0!==e.xAxis.disabled){var b=t.length;e.xAxis.labelCount&&(b=e.xAxis.itemCount?Math.ceil(t.length/e.xAxis.itemCount*e.xAxis.labelCount):e.xAxis.labelCount,b-=1);for(var m=Math.ceil(t.length/b),y=[],w=t.length,_=0;_<w;_++)_%m!==0?y.push(""):y.push(t[_]);y[w-1]=t[w-1];var S=e.xAxis.fontSize*e.pix||a.fontSize;0===a._xAxisTextAngle_?y.forEach((function(t,a){var i=e.xAxis.formatter?e.xAxis.formatter(t,a,e):t,o=-x(String(i),S,n)/2;"center"==c&&(o+=l/2);e.xAxis.scrollShow&&e.pix;var s=e._scrollDistance_||0,d="center"==c?r[a]+l/2:r[a];d-Math.abs(s)>=e.area[3]-1&&d-Math.abs(s)<=e.width-e.area[1]+1&&(n.beginPath(),n.setFontSize(S),n.setFillStyle(e.xAxis.fontColor||e.fontColor),n.fillText(String(i),r[a]+o,u+e.xAxis.marginTop*e.pix+(e.xAxis.lineHeight-e.xAxis.fontSize)*e.pix/2+e.xAxis.fontSize*e.pix),n.closePath(),n.stroke())})):y.forEach((function(t,i){var o=e.xAxis.formatter?e.xAxis.formatter(t):t,s=e._scrollDistance_||0,d="center"==c?r[i]+l/2:r[i];if(d-Math.abs(s)>=e.area[3]-1&&d-Math.abs(s)<=e.width-e.area[1]+1){n.save(),n.beginPath(),n.setFontSize(S),n.setFillStyle(e.xAxis.fontColor||e.fontColor);var f=x(String(o),S,n),h=r[i];"center"==c&&(h=r[i]+l/2);e.xAxis.scrollShow&&6*e.pix;var p=u+e.xAxis.marginTop*e.pix+S-S*Math.abs(Math.sin(a._xAxisTextAngle_));e.xAxis.rotateAngle<0?(h-=S/2,f=0):(h+=S/2,f=-f),n.translate(h,p),n.rotate(-1*a._xAxisTextAngle_),n.fillText(String(o),f,0),n.closePath(),n.stroke(),n.restore()}}))}n.restore(),e.xAxis.title&&(n.beginPath(),n.setFontSize(e.xAxis.titleFontSize*e.pix),n.setFillStyle(e.xAxis.titleFontColor),n.fillText(String(e.xAxis.title),e.width-e.area[1]+e.xAxis.titleOffsetX*e.pix,e.height-e.area[2]+e.xAxis.marginTop*e.pix+(e.xAxis.lineHeight-e.xAxis.titleFontSize)*e.pix/2+(e.xAxis.titleFontSize+e.xAxis.titleOffsetY)*e.pix),n.closePath(),n.stroke()),e.xAxis.axisLine&&(n.beginPath(),n.setStrokeStyle(e.xAxis.axisLineColor),n.setLineWidth(.5*e.pix),n.moveTo(o,e.height-e.area[2]),n.lineTo(s,e.height-e.area[2]),n.stroke())}function St(t,e,a,n){if(!0!==e.yAxis.disableGrid){var i=e.height-e.area[0]-e.area[2],r=i/e.yAxis.splitNumber,o=e.area[3],s=e.chartData.xAxisData.xAxisPoints,l=e.chartData.xAxisData.eachSpacing,c=l*(s.length-1);"mount"==e.type&&e.extra&&e.extra.mount&&e.extra.mount.widthRatio&&e.extra.mount.widthRatio>1&&(e.extra.mount.widthRatio>2&&(e.extra.mount.widthRatio=2),c+=(e.extra.mount.widthRatio-1)*l);var u=o+c,d=[],f=1;!1===e.xAxis.axisLine&&(f=0);for(var h=f;h<e.yAxis.splitNumber+1;h++)d.push(e.height-e.area[2]-r*h);n.save(),e._scrollDistance_&&0!==e._scrollDistance_&&n.translate(e._scrollDistance_,0),"dash"==e.yAxis.gridType&&n.setLineDash([e.yAxis.dashLength*e.pix,e.yAxis.dashLength*e.pix]),n.setStrokeStyle(e.yAxis.gridColor),n.setLineWidth(1*e.pix),d.forEach((function(t,e){n.beginPath(),n.moveTo(o,t),n.lineTo(u,t),n.stroke()})),n.setLineDash([]),n.restore()}}function Ct(t,e,a,n){if(!0!==e.yAxis.disabled){var i=e.height-e.area[0]-e.area[2],r=i/e.yAxis.splitNumber,o=e.area[3],s=e.width-e.area[1],l=e.height-e.area[2];n.beginPath(),n.setFillStyle(e.background),1==e.enableScroll&&e.xAxis.scrollPosition&&"left"!==e.xAxis.scrollPosition&&n.fillRect(0,0,o,l+2*e.pix),1==e.enableScroll&&e.xAxis.scrollPosition&&"right"!==e.xAxis.scrollPosition&&n.fillRect(s,0,e.width,l+2*e.pix),n.closePath(),n.stroke();var c=e.area[3],u=e.width-e.area[1],d=e.area[3]+(e.width-e.area[1]-e.area[3])/2;if(e.yAxis.data)for(var f=function(t){var o=e.yAxis.data[t];if(p=[],"categories"===o.type)for(var s=0;s<=o.categories.length;s++)p.push(e.area[0]+i/o.categories.length/2+i/o.categories.length*s);else for(var l=0;l<=e.yAxis.splitNumber;l++)p.push(e.area[0]+r*l);if(!0!==o.disabled){var f=e.chartData.yAxisData.rangesFormat[t],h=o.fontSize?o.fontSize*e.pix:a.fontSize,v=e.chartData.yAxisData.yAxisWidth[t],g=o.textAlign||"right";if(f.forEach((function(t,a){var i=p[a];n.beginPath(),n.setFontSize(h),n.setLineWidth(1*e.pix),n.setStrokeStyle(o.axisLineColor||"#cccccc"),n.setFillStyle(o.fontColor||e.fontColor);var r=0,s=4*e.pix;if("left"==v.position){switch(1==o.calibration&&(n.moveTo(c,i),n.lineTo(c-3*e.pix,i),s+=3*e.pix),g){case"left":n.setTextAlign("left"),r=c-v.width;break;case"right":n.setTextAlign("right"),r=c-s;break;default:n.setTextAlign("center"),r=c-v.width/2}n.fillText(String(t),r,i+h/2-3*e.pix)}else if("right"==v.position){switch(1==o.calibration&&(n.moveTo(u,i),n.lineTo(u+3*e.pix,i),s+=3*e.pix),g){case"left":n.setTextAlign("left"),r=u+s;break;case"right":n.setTextAlign("right"),r=u+v.width;break;default:n.setTextAlign("center"),r=u+v.width/2}n.fillText(String(t),r,i+h/2-3*e.pix)}else if("center"==v.position){switch(1==o.calibration&&(n.moveTo(d,i),n.lineTo(d-3*e.pix,i),s+=3*e.pix),g){case"left":n.setTextAlign("left"),r=d-v.width;break;case"right":n.setTextAlign("right"),r=d-s;break;default:n.setTextAlign("center"),r=d-v.width/2}n.fillText(String(t),r,i+h/2-3*e.pix)}n.closePath(),n.stroke(),n.setTextAlign("left")})),!1!==o.axisLine&&(n.beginPath(),n.setStrokeStyle(o.axisLineColor||"#cccccc"),n.setLineWidth(1*e.pix),"left"==v.position?(n.moveTo(c,e.height-e.area[2]),n.lineTo(c,e.area[0])):"right"==v.position?(n.moveTo(u,e.height-e.area[2]),n.lineTo(u,e.area[0])):"center"==v.position&&(n.moveTo(d,e.height-e.area[2]),n.lineTo(d,e.area[0])),n.stroke()),e.yAxis.showTitle){var b=o.titleFontSize*e.pix||a.fontSize,m=o.title;n.beginPath(),n.setFontSize(b),n.setFillStyle(o.titleFontColor||e.fontColor),"left"==v.position?n.fillText(m,c-x(m,b,n)/2+(o.titleOffsetX||0),e.area[0]-(10-(o.titleOffsetY||0))*e.pix):"right"==v.position?n.fillText(m,u-x(m,b,n)/2+(o.titleOffsetX||0),e.area[0]-(10-(o.titleOffsetY||0))*e.pix):"center"==v.position&&n.fillText(m,d-x(m,b,n)/2+(o.titleOffsetX||0),e.area[0]-(10-(o.titleOffsetY||0))*e.pix),n.closePath(),n.stroke()}"left"==v.position?c-=v.width+e.yAxis.padding*e.pix:u+=v.width+e.yAxis.padding*e.pix}},h=0;h<e.yAxis.data.length;h++){var p;f(h)}}}function kt(t,e,a,n,i){if(!1!==e.legend.show){var r=i.legendData,o=r.points,s=r.area,l=e.legend.padding*e.pix,c=e.legend.fontSize*e.pix,u=15*e.pix,d=5*e.pix,f=e.legend.itemGap*e.pix,h=Math.max(e.legend.lineHeight*e.pix,c);n.beginPath(),n.setLineWidth(e.legend.borderWidth*e.pix),n.setStrokeStyle(e.legend.borderColor),n.setFillStyle(e.legend.backgroundColor),n.moveTo(s.start.x,s.start.y),n.rect(s.start.x,s.start.y,s.width,s.height),n.closePath(),n.fill(),n.stroke(),o.forEach((function(t,i){var o,p=0;p=r.widthArr[i],o=r.heightArr[i];var v=0,g=0;if("top"==e.legend.position||"bottom"==e.legend.position){switch(e.legend.float){case"left":v=s.start.x+l;break;case"right":v=s.start.x+s.width-p;break;default:v=s.start.x+(s.width-p)/2}g=s.start.y+l+i*h}else p=0==i?0:r.widthArr[i-1],v=s.start.x+l+p,g=s.start.y+l+(s.height-o)/2;n.setFontSize(a.fontSize);for(var b=0;b<t.length;b++){var m=t[b];switch(m.area=[0,0,0,0],m.area[0]=v,m.area[1]=g,m.area[3]=g+h,n.beginPath(),n.setLineWidth(1*e.pix),n.setStrokeStyle(m.show?m.color:e.legend.hiddenColor),n.setFillStyle(m.show?m.color:e.legend.hiddenColor),m.legendShape){case"line":n.moveTo(v,g+.5*h-2*e.pix),n.fillRect(v,g+.5*h-2*e.pix,15*e.pix,4*e.pix);break;case"triangle":n.moveTo(v+7.5*e.pix,g+.5*h-5*e.pix),n.lineTo(v+2.5*e.pix,g+.5*h+5*e.pix),n.lineTo(v+12.5*e.pix,g+.5*h+5*e.pix),n.lineTo(v+7.5*e.pix,g+.5*h-5*e.pix);break;case"diamond":n.moveTo(v+7.5*e.pix,g+.5*h-5*e.pix),n.lineTo(v+2.5*e.pix,g+.5*h),n.lineTo(v+7.5*e.pix,g+.5*h+5*e.pix),n.lineTo(v+12.5*e.pix,g+.5*h),n.lineTo(v+7.5*e.pix,g+.5*h-5*e.pix);break;case"circle":n.moveTo(v+7.5*e.pix,g+.5*h),n.arc(v+7.5*e.pix,g+.5*h,5*e.pix,0,2*Math.PI);break;case"rect":n.moveTo(v,g+.5*h-5*e.pix),n.fillRect(v,g+.5*h-5*e.pix,15*e.pix,10*e.pix);break;case"square":n.moveTo(v+5*e.pix,g+.5*h-5*e.pix),n.fillRect(v+5*e.pix,g+.5*h-5*e.pix,10*e.pix,10*e.pix);break;case"none":break;default:n.moveTo(v,g+.5*h-5*e.pix),n.fillRect(v,g+.5*h-5*e.pix,15*e.pix,10*e.pix)}n.closePath(),n.fill(),n.stroke(),v+=u+d;var y=.5*h+.5*c-2,w=m.legendText?m.legendText:m.name;n.beginPath(),n.setFontSize(c),n.setFillStyle(m.show?e.legend.fontColor:e.legend.hiddenColor),n.fillText(w,v,g+y),n.closePath(),n.stroke(),"top"==e.legend.position||"bottom"==e.legend.position?(v+=x(w,c,n)+f,m.area[2]=v):(m.area[2]=v+x(w,c,n)+f,v-=u+d,g+=h)}}))}}function Tt(t,e,a,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=s({},{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,ringWidth:30,customRadius:0,border:!1,borderWidth:2,borderColor:"#FFFFFF",centerColor:"#FFFFFF",linearType:"none",customColor:[]},"pie"==e.type?e.extra.pie:e.extra.ring),o={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2};0==a.pieChartLinePadding&&(a.pieChartLinePadding=r.activeRadius*e.pix);var l=Math.min((e.width-e.area[1]-e.area[3])/2-a.pieChartLinePadding-a.pieChartTextPadding-a._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-a.pieChartLinePadding-a.pieChartTextPadding);l=l<10?10:l,r.customRadius>0&&(l=r.customRadius*e.pix),t=B(t,l,i);var u=r.activeRadius*e.pix;if(r.customColor=b(r.linearType,r.customColor,t,a),t=t.map((function(t){return t._start_+=r.offsetAngle*Math.PI/180,t})),t.forEach((function(t,a){e.tooltip&&e.tooltip.index==a&&(n.beginPath(),n.setFillStyle(c(t.color,r.activeOpacity||.5)),n.moveTo(o.x,o.y),n.arc(o.x,o.y,t._radius_+u,t._start_,t._start_+2*t._proportion_*Math.PI),n.closePath(),n.fill()),n.beginPath(),n.setLineWidth(r.borderWidth*e.pix),n.lineJoin="round",n.setStrokeStyle(r.borderColor);var i,s=t.color;"custom"==r.linearType&&(i=n.createCircularGradient?n.createCircularGradient(o.x,o.y,t._radius_):n.createRadialGradient(o.x,o.y,0,o.x,o.y,t._radius_),i.addColorStop(0,c(r.customColor[t.linearIndex],1)),i.addColorStop(1,c(t.color,1)),s=i);n.setFillStyle(s),n.moveTo(o.x,o.y),n.arc(o.x,o.y,t._radius_,t._start_,t._start_+2*t._proportion_*Math.PI),n.closePath(),n.fill(),1==r.border&&n.stroke()})),"ring"===e.type){var d=.6*l;"number"===typeof r.ringWidth&&r.ringWidth>0&&(d=Math.max(0,l-r.ringWidth*e.pix)),n.beginPath(),n.setFillStyle(r.centerColor),n.moveTo(o.x,o.y),n.arc(o.x,o.y,d,0,2*Math.PI),n.closePath(),n.fill()}return!1!==e.dataLabel&&1===i&&vt(t,e,a,n,0,o),1===i&&"ring"===e.type&&lt(e,a,n,o),{center:o,radius:l,series:t}}function At(t,e){var a=Array(2),n=20037508.34*t/180,i=Math.log(Math.tan((90+e)*Math.PI/360))/(Math.PI/180);return i=20037508.34*i/180,a[0]=n,a[1]=i,a}function Pt(t,e,a,n,i,r){return{x:(e-a.xMin)*n+i,y:(a.yMax-t)*n+r}}function Ot(t,e,a){if(e[1]==a[1])return!1;if(e[1]>t[1]&&a[1]>t[1])return!1;if(e[1]<t[1]&&a[1]<t[1])return!1;if(e[1]==t[1]&&a[1]>t[1])return!1;if(a[1]==t[1]&&e[1]>t[1])return!1;if(e[0]<t[0]&&a[1]<t[1])return!1;var n=a[0]-(a[0]-e[0])*(a[1]-t[1])/(a[1]-e[1]);return!(n<t[0])}function Dt(t,e,a){for(var n=0,i=0;i<e.length;i++){var r=e[i][0];1==e.length&&(r=e[i][0]);for(var o=0;o<r.length-1;o++){var s=r[o],l=r[o+1];a&&(s=At(r[o][0],r[o][1]),l=At(r[o+1][0],r[o+1][1])),Ot(t,s,l)&&(n+=1)}}return n%2==1}function Et(t,e,a){a=0==a?1:a;for(var n=[],i=0;i<a;i++)n[i]=Math.random();return Math.floor(n.reduce((function(t,e){return t+e}))/a*(e-t))+t}function It(t,e,a,n){for(var i=!1,r=0;r<e.length;r++)if(e[r].area){if(!(t[3]<e[r].area[1]||t[0]>e[r].area[2]||t[1]>e[r].area[3]||t[2]<e[r].area[0])){i=!0;break}if(t[0]<0||t[1]<0||t[2]>a||t[3]>n){i=!0;break}i=!1}return i}function Mt(t,e,a){var n=t.series;switch(e){case"normal":for(var i=0;i<n.length;i++){var r=n[i].name,o=n[i].textSize*t.pix,s=x(r,o,a),l=void 0,c=void 0,u=void 0,d=0;while(1){d++,l=Et(-t.width/2,t.width/2,5)-s/2,c=Et(-t.height/2,t.height/2,5)+o/2,u=[l-5+t.width/2,c-5-o+t.height/2,l+s+5+t.width/2,c+5+t.height/2];var f=It(u,n,t.width,t.height);if(!f)break;if(1e3==d){u=[-100,-100,-100,-100];break}}n[i].area=u}break;case"vertical":for(var h=function(){return Math.random()>.7},p=0;p<n.length;p++){var v=n[p].name,g=n[p].textSize*t.pix,b=x(v,g,a),m=h(),y=void 0,w=void 0,_=void 0,S=void 0,C=0;while(1){C++;var k=void 0;if(m?(y=Et(-t.width/2,t.width/2,5)-b/2,w=Et(-t.height/2,t.height/2,5)+g/2,_=[w-5-b+t.width/2,-y-5+t.height/2,w+5+t.width/2,-y+g+5+t.height/2],S=[t.width-(t.width/2-t.height/2)-(-y+g+5+t.height/2)-5,t.height/2-t.width/2+(w-5-b+t.width/2)-5,t.width-(t.width/2-t.height/2)-(-y+g+5+t.height/2)+g,t.height/2-t.width/2+(w-5-b+t.width/2)+b+5],k=It(S,n,t.height,t.width)):(y=Et(-t.width/2,t.width/2,5)-b/2,w=Et(-t.height/2,t.height/2,5)+g/2,_=[y-5+t.width/2,w-5-g+t.height/2,y+b+5+t.width/2,w+5+t.height/2],k=It(_,n,t.width,t.height)),!k)break;if(1e3==C){_=[-1e3,-1e3,-1e3,-1e3];break}}m?(n[p].area=S,n[p].areav=_):n[p].area=_,n[p].rotate=m}break}return n}function Ft(t,e,a,n,i,r,o){for(var s=0;s<t.length;s++){var c=t[s];if(!1!==c.labelShow){var u=void 0,d=void 0,f=void 0,h=void 0,p=c.formatter?c.formatter(c,s,t,e):l.toFixed(100*c._proportion_)+"%";p=c.labelText?c.labelText:p,"right"==i&&(u=s==t.length-1?(c.funnelArea[2]+o.x)/2:(c.funnelArea[2]+t[s+1].funnelArea[2])/2,d=u+2*r,f=c.funnelArea[1]+n/2,h=c.textSize*e.pix||e.fontSize*e.pix,a.setLineWidth(1*e.pix),a.setStrokeStyle(c.color),a.setFillStyle(c.color),a.beginPath(),a.moveTo(u,f),a.lineTo(d,f),a.stroke(),a.closePath(),a.beginPath(),a.moveTo(d,f),a.arc(d,f,2*e.pix,0,2*Math.PI),a.closePath(),a.fill(),a.beginPath(),a.setFontSize(h),a.setFillStyle(c.textColor||e.fontColor),a.fillText(p,d+5,f+h/2-2),a.closePath(),a.stroke(),a.closePath()),"left"==i&&(u=s==t.length-1?(c.funnelArea[0]+o.x)/2:(c.funnelArea[0]+t[s+1].funnelArea[0])/2,d=u-2*r,f=c.funnelArea[1]+n/2,h=c.textSize*e.pix||e.fontSize*e.pix,a.setLineWidth(1*e.pix),a.setStrokeStyle(c.color),a.setFillStyle(c.color),a.beginPath(),a.moveTo(u,f),a.lineTo(d,f),a.stroke(),a.closePath(),a.beginPath(),a.moveTo(d,f),a.arc(d,f,2,0,2*Math.PI),a.closePath(),a.fill(),a.beginPath(),a.setFontSize(h),a.setFillStyle(c.textColor||e.fontColor),a.fillText(p,d-5-x(p,h,a),f+h/2-2),a.closePath(),a.stroke(),a.closePath())}}}function Lt(t,e,a,n,i,r,o){for(var s=0;s<t.length;s++){var l=t[s],c=void 0,u=void 0;l.centerText&&(c=l.funnelArea[1]+n/2,u=l.centerTextSize*e.pix||e.fontSize*e.pix,a.beginPath(),a.setFontSize(u),a.setFillStyle(l.centerTextColor||"#FFFFFF"),a.fillText(l.centerText,o.x-x(l.centerText,u,a)/2,c+u/2-2),a.closePath(),a.stroke(),a.closePath())}}function Bt(t,e){e.save(),e.translate(0,.5),e.restore(),e.draw()}var Rt={easeIn:function(t){return Math.pow(t,3)},easeOut:function(t){return Math.pow(t-1,3)+1},easeInOut:function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},linear:function(t){return t}};function zt(t){this.isStop=!1,t.duration="undefined"===typeof t.duration?1e3:t.duration,t.timing=t.timing||"easeInOut";var e=function(){return"undefined"!==typeof setTimeout?function(t,e){setTimeout((function(){var e=+new Date;t(e)}),e)}:"undefined"!==typeof requestAnimationFrame?requestAnimationFrame:function(t){t(null)}}(),a=null,n=function(i){if(null===i||!0===this.isStop)return t.onProcess&&t.onProcess(1),void(t.onAnimationFinish&&t.onAnimationFinish());if(null===a&&(a=i),i-a<t.duration){var r=(i-a)/t.duration,o=Rt[t.timing];r=o(r),t.onProcess&&t.onProcess(r),e(n,17)}else t.onProcess&&t.onProcess(1),t.onAnimationFinish&&t.onAnimationFinish()};n=n.bind(this),e(n,17)}function jt(t,e,a,n){var r=this,o=this,u=e.series;"pie"!==t&&"ring"!==t&&"mount"!==t&&"rose"!==t&&"funnel"!==t||(u=function(t,e,a){var n=[];if(t.length>0&&t[0].data.constructor.toString().indexOf("Array")>-1){e._pieSeries_=t;for(var i=t[0].data,r=0;r<i.length;r++)i[r].formatter=t[0].formatter,i[r].data=i[r].value,n.push(i[r]);e.series=n}else n=t;return n}(u,e));var d=e.categories;if("mount"===t){d=[];for(var f=0;f<u.length;f++)!1!==u[f].show&&d.push(u[f].name);e.categories=d}u=g(u,e,a);var v=e.animation?e.duration:0;o.animationInstance&&o.animationInstance.stop();var m=null;if("candle"==t){var w=s({},e.extra.candle.average);w.show?(m=function(t,e,a,n){for(var i=[],r=0;r<t.length;r++){for(var o={data:[],name:e[r],color:a[r]},s=0,l=n.length;s<l;s++)if(s<t[r])o.data.push(null);else{for(var c=0,u=0;u<t[r];u++)c+=n[s-u][1];o.data.push(+(c/t[r]).toFixed(3))}i.push(o)}return i}(w.day,w.name,w.color,u[0].data),m=g(m,e,a),e.seriesMA=m):m=e.seriesMA?e.seriesMA=g(e.seriesMA,e,a):u}else m=u;e._series_=u=O(u),e.area=new Array(4);for(var _=0;_<4;_++)e.area[_]=e.padding[_]*e.pix;var S=function(t,e,a,n,i){var r={area:{start:{x:0,y:0},end:{x:0,y:0},width:0,height:0,wholeWidth:0,wholeHeight:0},points:[],widthArr:[],heightArr:[]};if(!1===e.legend.show)return n.legendData=r,r;var o=e.legend.padding*e.pix,s=e.legend.margin*e.pix,l=e.legend.fontSize?e.legend.fontSize*e.pix:a.fontSize,c=15*e.pix,u=5*e.pix,d=Math.max(e.legend.lineHeight*e.pix,l);if("top"==e.legend.position||"bottom"==e.legend.position){for(var f=[],h=0,p=[],v=[],g=0;g<t.length;g++){var b=t[g],m=b.legendText?b.legendText:b.name,y=c+u+x(m||"undefined",l,i)+e.legend.itemGap*e.pix;h+y>e.width-e.area[1]-e.area[3]?(f.push(v),p.push(h-e.legend.itemGap*e.pix),h=y,v=[b]):(h+=y,v.push(b))}if(v.length){f.push(v),p.push(h-e.legend.itemGap*e.pix),r.widthArr=p;var w=Math.max.apply(null,p);switch(e.legend.float){case"left":r.area.start.x=e.area[3],r.area.end.x=e.area[3]+w+2*o;break;case"right":r.area.start.x=e.width-e.area[1]-w-2*o,r.area.end.x=e.width-e.area[1];break;default:r.area.start.x=(e.width-w)/2-o,r.area.end.x=(e.width+w)/2+o}r.area.width=w+2*o,r.area.wholeWidth=w+2*o,r.area.height=f.length*d+2*o,r.area.wholeHeight=f.length*d+2*o+2*s,r.points=f}}else{var _=t.length,S=e.height-e.area[0]-e.area[2]-2*s-2*o,C=Math.min(Math.floor(S/d),_);switch(r.area.height=C*d+2*o,r.area.wholeHeight=C*d+2*o,e.legend.float){case"top":r.area.start.y=e.area[0]+s,r.area.end.y=e.area[0]+s+r.area.height;break;case"bottom":r.area.start.y=e.height-e.area[2]-s-r.area.height,r.area.end.y=e.height-e.area[2]-s;break;default:r.area.start.y=(e.height-r.area.height)/2,r.area.end.y=(e.height+r.area.height)/2}for(var k=_%C===0?_/C:Math.floor(_/C+1),T=[],A=0;A<k;A++){var P=t.slice(A*C,A*C+C);T.push(P)}if(r.points=T,T.length){for(var O=0;O<T.length;O++){for(var D=T[O],E=0,I=0;I<D.length;I++){var M=c+u+x(D[I].name||"undefined",l,i)+e.legend.itemGap*e.pix;M>E&&(E=M)}r.widthArr.push(E),r.heightArr.push(D.length*d+2*o)}for(var F=0,L=0;L<r.widthArr.length;L++)F+=r.widthArr[L];r.area.width=F-e.legend.itemGap*e.pix+2*o,r.area.wholeWidth=r.area.width+o}}switch(e.legend.position){case"top":r.area.start.y=e.area[0]+s,r.area.end.y=e.area[0]+s+r.area.height;break;case"bottom":r.area.start.y=e.height-e.area[2]-r.area.height-s,r.area.end.y=e.height-e.area[2]-s;break;case"left":r.area.start.x=e.area[3],r.area.end.x=e.area[3]+r.area.width;break;case"right":r.area.start.x=e.width-e.area[1]-r.area.width,r.area.end.x=e.width-e.area[1];break}return n.legendData=r,r}(m,e,a,e.chartData,n),T=S.area.wholeHeight,A=S.area.wholeWidth;switch(e.legend.position){case"top":e.area[0]+=T;break;case"bottom":e.area[2]+=T;break;case"left":e.area[3]+=A;break;case"right":e.area[1]+=A;break}var P={},D=0;if("line"===e.type||"column"===e.type||"mount"===e.type||"area"===e.type||"mix"===e.type||"candle"===e.type||"scatter"===e.type||"bubble"===e.type||"bar"===e.type){if(P=it(u,e,a,n),D=P.yAxisWidth,e.yAxis.showTitle){for(var E=0,nt=0;nt<e.yAxis.data.length;nt++)E=Math.max(E,e.yAxis.data[nt].titleFontSize?e.yAxis.data[nt].titleFontSize*e.pix:a.fontSize);e.area[0]+=E}for(var bt=0,yt=0,Ot=0;Ot<D.length;Ot++)"left"==D[Ot].position?(e.area[3]+=yt>0?D[Ot].width+e.yAxis.padding*e.pix:D[Ot].width,yt+=1):"right"==D[Ot].position&&(e.area[1]+=bt>0?D[Ot].width+e.yAxis.padding*e.pix:D[Ot].width,bt+=1)}else a.yAxisWidth=D;if(e.chartData.yAxisData=P,e.categories&&e.categories.length&&"radar"!==e.type&&"gauge"!==e.type&&"bar"!==e.type){e.chartData.xAxisData=J(e.categories,e);var Dt=M(e.categories,e,0,e.chartData.xAxisData.eachSpacing,n),Et=Dt.xAxisHeight,It=Dt.angle;a.xAxisHeight=Et,a._xAxisTextAngle_=It,e.area[2]+=Et,e.chartData.categoriesData=Dt}else if("line"===e.type||"area"===e.type||"scatter"===e.type||"bubble"===e.type||"bar"===e.type){e.chartData.xAxisData=F(u,e,a,n),d=e.chartData.xAxisData.rangesFormat;var Rt=M(d,e,0,e.chartData.xAxisData.eachSpacing,n),jt=Rt.xAxisHeight,Nt=Rt.angle;a.xAxisHeight=jt,a._xAxisTextAngle_=Nt,e.area[2]+=jt,e.chartData.categoriesData=Rt}else e.chartData.xAxisData={xAxisPoints:[]};if(e.enableScroll&&"right"==e.xAxis.scrollAlign&&void 0===e._scrollDistance_){var Ut,Wt=e.chartData.xAxisData.xAxisPoints,Gt=e.chartData.xAxisData.startX,qt=e.chartData.xAxisData.endX,$t=e.chartData.xAxisData.eachSpacing,Ht=$t*(Wt.length-1),Yt=qt-Gt;Ut=Yt-Ht,o.scrollOption.currentOffset=Ut,o.scrollOption.startTouchX=Ut,o.scrollOption.distance=0,o.scrollOption.lastMoveTime=0,e._scrollDistance_=Ut}switch("pie"!==t&&"ring"!==t&&"rose"!==t||(a._pieTextMaxLength_=!1===e.dataLabel?0:function(t,e,a,n){t=B(t);for(var i=0,r=0;r<t.length;r++){var o=t[r],s=o.formatter?o.formatter(+o._proportion_.toFixed(2)):l.toFixed(100*o._proportion_)+"%";i=Math.max(i,x(s,o.textSize*n.pix||e.fontSize,a))}return i}(m,a,n,e)),t){case"word":this.animationInstance=new zt({timing:e.timing,duration:v,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&rt(n,e),function(t,e,a,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=s({},{type:"normal",autoColors:!0},e.extra.word);e.chartData.wordCloudData||(e.chartData.wordCloudData=Mt(e,r.type,n)),n.beginPath(),n.setFillStyle(e.background),n.rect(0,0,e.width,e.height),n.fill(),n.save();var o=e.chartData.wordCloudData;n.translate(e.width/2,e.height/2);for(var l=0;l<o.length;l++){n.save(),o[l].rotate&&n.rotate(90*Math.PI/180);var c=o[l].name,u=o[l].textSize*e.pix,d=x(c,u,n);n.beginPath(),n.setStrokeStyle(o[l].color),n.setFillStyle(o[l].color),n.setFontSize(u),o[l].rotate?o[l].areav[0]>0&&(e.tooltip&&e.tooltip.index==l?n.strokeText(c,(o[l].areav[0]+5-e.width/2)*i-d*(1-i)/2,(o[l].areav[1]+5+u-e.height/2)*i):n.fillText(c,(o[l].areav[0]+5-e.width/2)*i-d*(1-i)/2,(o[l].areav[1]+5+u-e.height/2)*i)):o[l].area[0]>0&&(e.tooltip&&e.tooltip.index==l?n.strokeText(c,(o[l].area[0]+5-e.width/2)*i-d*(1-i)/2,(o[l].area[1]+5+u-e.height/2)*i):n.fillText(c,(o[l].area[0]+5-e.width/2)*i-d*(1-i)/2,(o[l].area[1]+5+u-e.height/2)*i)),n.stroke(),n.restore()}n.restore()}(u,e,a,n,t),Bt(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"map":n.clearRect(0,0,e.width,e.height),function(t,e,a,n){var i,r,o=s({},{border:!0,mercator:!1,borderWidth:1,active:!0,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},e.extra.map),l=t,u=function(t){for(var e,a={xMin:180,xMax:0,yMin:90,yMax:0},n=0;n<t.length;n++)for(var i=t[n].geometry.coordinates,r=0;r<i.length;r++){e=i[r],1==e.length&&(e=e[0]);for(var o=0;o<e.length;o++){var s=e[o][0],l=e[o][1],c={x:s,y:l};a.xMin=a.xMin<c.x?a.xMin:c.x,a.xMax=a.xMax>c.x?a.xMax:c.x,a.yMin=a.yMin<c.y?a.yMin:c.y,a.yMax=a.yMax>c.y?a.yMax:c.y}}return a}(l);if(o.mercator){var d=At(u.xMax,u.yMax),f=At(u.xMin,u.yMin);u.xMax=d[0],u.yMax=d[1],u.xMin=f[0],u.yMin=f[1]}for(var h=e.width/Math.abs(u.xMax-u.xMin),p=e.height/Math.abs(u.yMax-u.yMin),v=h<p?h:p,g=e.width/2-Math.abs(u.xMax-u.xMin)/2*v,b=e.height/2-Math.abs(u.yMax-u.yMin)/2*v,m=0;m<l.length;m++){n.beginPath(),n.setLineWidth(o.borderWidth*e.pix),n.setStrokeStyle(o.borderColor),n.setFillStyle(c(t[m].color,t[m].fillOpacity||o.fillOpacity)),1==o.active&&e.tooltip&&e.tooltip.index==m&&(n.setStrokeStyle(o.activeBorderColor),n.setFillStyle(c(o.activeFillColor,o.activeFillOpacity)));for(var y=l[m].geometry.coordinates,w=0;w<y.length;w++){i=y[w],1==i.length&&(i=i[0]);for(var _=0;_<i.length;_++){var S=Array(2);S=o.mercator?At(i[_][0],i[_][1]):i[_],r=Pt(S[1],S[0],u,v,g,b),0===_?(n.beginPath(),n.moveTo(r.x,r.y)):n.lineTo(r.x,r.y)}n.fill(),1==o.border&&n.stroke()}}if(1==e.dataLabel)for(m=0;m<l.length;m++){var C=l[m].properties.centroid;if(C){o.mercator&&(C=At(l[m].properties.centroid[0],l[m].properties.centroid[1])),r=Pt(C[1],C[0],u,v,g,b);var k=l[m].textSize*e.pix||a.fontSize,T=l[m].textColor||e.fontColor;o.active&&o.activeTextColor&&e.tooltip&&e.tooltip.index==m&&(T=o.activeTextColor);var A=l[m].properties.name;n.beginPath(),n.setFontSize(k),n.setFillStyle(T),n.fillText(A,r.x-x(A,k,n)/2,r.y+k/2),n.closePath(),n.stroke()}}e.chartData.mapData={bounds:u,scale:v,xoffset:g,yoffset:b,mercator:o.mercator},wt(e,a,n,1),n.draw()}(u,e,a,n),setTimeout((function(){r.uevent.trigger("renderComplete")}),50);break;case"funnel":this.animationInstance=new zt({timing:e.timing,duration:v,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&rt(n,e),e.chartData.funnelData=function(t,e,a,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=s({},{type:"funnel",activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,minSize:0,labelAlign:"right",linearType:"none",customColor:[]},e.extra.funnel),o=(e.height-e.area[0]-e.area[2])/t.length,l={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.height-e.area[2]},u=r.activeWidth*e.pix,d=Math.min((e.width-e.area[1]-e.area[3])/2-u,(e.height-e.area[0]-e.area[2])/2-u),f=R(t,d,r,o,i);if(n.save(),n.translate(l.x,l.y),r.customColor=b(r.linearType,r.customColor,t,a),"pyramid"==r.type)for(var h=0;h<f.length;h++){if(h==f.length-1){e.tooltip&&e.tooltip.index==h&&(n.beginPath(),n.setFillStyle(c(f[h].color,r.activeOpacity)),n.moveTo(-u,-o),n.lineTo(-f[h].radius-u,0),n.lineTo(f[h].radius+u,0),n.lineTo(u,-o),n.lineTo(-u,-o),n.closePath(),n.fill()),f[h].funnelArea=[l.x-f[h].radius,l.y-o*(h+1),l.x+f[h].radius,l.y-o*h],n.beginPath(),n.setLineWidth(r.borderWidth*e.pix),n.setStrokeStyle(r.borderColor);var p=c(f[h].color,r.fillOpacity);if("custom"==r.linearType){var v=n.createLinearGradient(f[h].radius,-o,-f[h].radius,-o);v.addColorStop(0,c(f[h].color,r.fillOpacity)),v.addColorStop(.5,c(r.customColor[f[h].linearIndex],r.fillOpacity)),v.addColorStop(1,c(f[h].color,r.fillOpacity)),p=v}n.setFillStyle(p),n.moveTo(0,-o),n.lineTo(-f[h].radius,0),n.lineTo(f[h].radius,0),n.lineTo(0,-o),n.closePath(),n.fill(),1==r.border&&n.stroke()}else{e.tooltip&&e.tooltip.index==h&&(n.beginPath(),n.setFillStyle(c(f[h].color,r.activeOpacity)),n.moveTo(0,0),n.lineTo(-f[h].radius-u,0),n.lineTo(-f[h+1].radius-u,-o),n.lineTo(f[h+1].radius+u,-o),n.lineTo(f[h].radius+u,0),n.lineTo(0,0),n.closePath(),n.fill()),f[h].funnelArea=[l.x-f[h].radius,l.y-o*(h+1),l.x+f[h].radius,l.y-o*h],n.beginPath(),n.setLineWidth(r.borderWidth*e.pix),n.setStrokeStyle(r.borderColor);p=c(f[h].color,r.fillOpacity);if("custom"==r.linearType){v=n.createLinearGradient(f[h].radius,-o,-f[h].radius,-o);v.addColorStop(0,c(f[h].color,r.fillOpacity)),v.addColorStop(.5,c(r.customColor[f[h].linearIndex],r.fillOpacity)),v.addColorStop(1,c(f[h].color,r.fillOpacity)),p=v}n.setFillStyle(p),n.moveTo(0,0),n.lineTo(-f[h].radius,0),n.lineTo(-f[h+1].radius,-o),n.lineTo(f[h+1].radius,-o),n.lineTo(f[h].radius,0),n.lineTo(0,0),n.closePath(),n.fill(),1==r.border&&n.stroke()}n.translate(0,-o)}else{n.translate(0,-(f.length-1)*o);for(var g=0;g<f.length;g++){if(g==f.length-1){e.tooltip&&e.tooltip.index==g&&(n.beginPath(),n.setFillStyle(c(f[g].color,r.activeOpacity)),n.moveTo(-u-r.minSize/2,0),n.lineTo(-f[g].radius-u,-o),n.lineTo(f[g].radius+u,-o),n.lineTo(u+r.minSize/2,0),n.lineTo(-u-r.minSize/2,0),n.closePath(),n.fill()),f[g].funnelArea=[l.x-f[g].radius,l.y-o,l.x+f[g].radius,l.y],n.beginPath(),n.setLineWidth(r.borderWidth*e.pix),n.setStrokeStyle(r.borderColor);p=c(f[g].color,r.fillOpacity);if("custom"==r.linearType){v=n.createLinearGradient(f[g].radius,-o,-f[g].radius,-o);v.addColorStop(0,c(f[g].color,r.fillOpacity)),v.addColorStop(.5,c(r.customColor[f[g].linearIndex],r.fillOpacity)),v.addColorStop(1,c(f[g].color,r.fillOpacity)),p=v}n.setFillStyle(p),n.moveTo(0,0),n.lineTo(-r.minSize/2,0),n.lineTo(-f[g].radius,-o),n.lineTo(f[g].radius,-o),n.lineTo(r.minSize/2,0),n.lineTo(0,0),n.closePath(),n.fill(),1==r.border&&n.stroke()}else{e.tooltip&&e.tooltip.index==g&&(n.beginPath(),n.setFillStyle(c(f[g].color,r.activeOpacity)),n.moveTo(0,0),n.lineTo(-f[g+1].radius-u,0),n.lineTo(-f[g].radius-u,-o),n.lineTo(f[g].radius+u,-o),n.lineTo(f[g+1].radius+u,0),n.lineTo(0,0),n.closePath(),n.fill()),f[g].funnelArea=[l.x-f[g].radius,l.y-o*(f.length-g),l.x+f[g].radius,l.y-o*(f.length-g-1)],n.beginPath(),n.setLineWidth(r.borderWidth*e.pix),n.setStrokeStyle(r.borderColor);p=c(f[g].color,r.fillOpacity);if("custom"==r.linearType){v=n.createLinearGradient(f[g].radius,-o,-f[g].radius,-o);v.addColorStop(0,c(f[g].color,r.fillOpacity)),v.addColorStop(.5,c(r.customColor[f[g].linearIndex],r.fillOpacity)),v.addColorStop(1,c(f[g].color,r.fillOpacity)),p=v}n.setFillStyle(p),n.moveTo(0,0),n.lineTo(-f[g+1].radius,0),n.lineTo(-f[g].radius,-o),n.lineTo(f[g].radius,-o),n.lineTo(f[g+1].radius,0),n.lineTo(0,0),n.closePath(),n.fill(),1==r.border&&n.stroke()}n.translate(0,o)}}return n.restore(),!1!==e.dataLabel&&1===i&&Ft(f,e,n,o,r.labelAlign,u,l),1===i&&Lt(f,e,n,o,r.labelAlign,u,l),{center:l,radius:d,series:f}}(u,e,a,n,t),kt(e.series,e,a,n,e.chartData),wt(e,a,n,t),Bt(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"line":this.animationInstance=new zt({timing:e.timing,duration:v,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&rt(n,e),St(0,e,0,n),_t(d,e,a,n);var i=function(t,e,a,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=s({},{type:"straight",width:2,activeType:"none",linearType:"none",onShadow:!1,animation:"vertical"},e.extra.line);r.width*=e.pix;var o=e.chartData.xAxisData,l=o.xAxisPoints,u=o.eachSpacing,d=[];n.save();var f=0,p=e.width+u;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),f=-e._scrollDistance_-2*u+e.area[3],p=f+(e.xAxis.itemCount+4)*u),t.forEach((function(t,o){var s,v,g;n.beginPath(),n.setStrokeStyle(t.color),n.moveTo(-1e4,-1e4),n.lineTo(-10001,-10001),n.stroke(),s=[].concat(e.chartData.yAxisData.ranges[t.index]),v=s.pop(),g=s.shift();var b=t.data,m=K(b,v,g,l,u,e,a,r,i);d.push(m);var x=I(m,t);if("dash"==t.lineType){var y=t.dashLength?t.dashLength:8;y*=e.pix,n.setLineDash([y,y])}n.beginPath();var w=t.color;if("none"!==r.linearType&&t.linearColor&&t.linearColor.length>0){for(var _=n.createLinearGradient(e.chartData.xAxisData.startX,e.height/2,e.chartData.xAxisData.endX,e.height/2),S=0;S<t.linearColor.length;S++)_.addColorStop(t.linearColor[S][0],c(t.linearColor[S][1],1));w=_}n.setStrokeStyle(w),1==r.onShadow&&t.setShadow&&t.setShadow.length>0?n.setShadow(t.setShadow[0],t.setShadow[1],t.setShadow[2],t.setShadow[3]):n.setShadow(0,0,0,"rgba(0,0,0,0)"),n.setLineWidth(r.width),x.forEach((function(t,e){if(1===t.length)n.moveTo(t[0].x,t[0].y);else{n.moveTo(t[0].x,t[0].y);var a=0;if("curve"===r.type)for(var i=0;i<t.length;i++){var o=t[i];if(0==a&&o.x>f&&(n.moveTo(o.x,o.y),a=1),i>0&&o.x>f&&o.x<p){var s=h(t,i-1);n.bezierCurveTo(s.ctrA.x,s.ctrA.y,s.ctrB.x,s.ctrB.y,o.x,o.y)}}if("straight"===r.type)for(var l=0;l<t.length;l++){var c=t[l];0==a&&c.x>f&&(n.moveTo(c.x,c.y),a=1),l>0&&c.x>f&&c.x<p&&n.lineTo(c.x,c.y)}if("step"===r.type)for(var u=0;u<t.length;u++){var d=t[u];0==a&&d.x>f&&(n.moveTo(d.x,d.y),a=1),u>0&&d.x>f&&d.x<p&&(n.lineTo(d.x,t[u-1].y),n.lineTo(d.x,d.y))}n.moveTo(t[0].x,t[0].y)}})),n.stroke(),n.setLineDash([]),!1!==e.dataPointShape&&ot(m,t.color,t.pointShape,n,e),st(m,t.color,t.pointShape,n,e,r)})),!1!==e.dataLabel&&1===i&&t.forEach((function(t,r){var o,s,c;o=[].concat(e.chartData.yAxisData.ranges[t.index]),s=o.pop(),c=o.shift();var d=t.data,f=X(d,s,c,l,u,e,a,i);ct(f,t,a,n,e)})),n.restore(),{xAxisPoints:l,calPoints:d,eachSpacing:u}}(u,e,a,n,t),r=i.xAxisPoints,o=i.calPoints,l=i.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=o,e.chartData.eachSpacing=l,Ct(0,e,a,n),!1!==e.enableMarkLine&&1===t&&gt(e,0,n),kt(e.series,e,a,n,e.chartData),wt(e,a,n,t),Bt(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"scatter":this.animationInstance=new zt({timing:e.timing,duration:v,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&rt(n,e),St(0,e,0,n),_t(d,e,a,n);var i=function(t,e,a,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=(s({},{type:"circle"},e.extra.scatter),e.chartData.xAxisData),o=r.xAxisPoints,l=r.eachSpacing,c=[];n.save();return e.width,e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),-e._scrollDistance_-2*l+e.area[3],e.xAxis.itemCount),t.forEach((function(t,r){var s,c,u;s=[].concat(e.chartData.yAxisData.ranges[t.index]),c=s.pop(),u=s.shift();var d=t.data,f=X(d,c,u,o,l,e,a,i);n.beginPath(),n.setStrokeStyle(t.color),n.setFillStyle(t.color),n.setLineWidth(1*e.pix);var h=t.pointShape;if("diamond"===h)f.forEach((function(t,e){null!==t&&(n.moveTo(t.x,t.y-4.5),n.lineTo(t.x-4.5,t.y),n.lineTo(t.x,t.y+4.5),n.lineTo(t.x+4.5,t.y),n.lineTo(t.x,t.y-4.5))}));else if("circle"===h)f.forEach((function(t,a){null!==t&&(n.moveTo(t.x+2.5*e.pix,t.y),n.arc(t.x,t.y,3*e.pix,0,2*Math.PI,!1))}));else if("square"===h)f.forEach((function(t,e){null!==t&&(n.moveTo(t.x-3.5,t.y-3.5),n.rect(t.x-3.5,t.y-3.5,7,7))}));else if("triangle"===h)f.forEach((function(t,e){null!==t&&(n.moveTo(t.x,t.y-4.5),n.lineTo(t.x-4.5,t.y+4.5),n.lineTo(t.x+4.5,t.y+4.5),n.lineTo(t.x,t.y-4.5))}));else if("triangle"===h)return;n.closePath(),n.fill(),n.stroke()})),!1!==e.dataLabel&&1===i&&t.forEach((function(t,r){var s,c,u;s=[].concat(e.chartData.yAxisData.ranges[t.index]),c=s.pop(),u=s.shift();var d=t.data,f=X(d,c,u,o,l,e,a,i);ct(f,t,a,n,e)})),n.restore(),{xAxisPoints:o,calPoints:c,eachSpacing:l}}(u,e,a,n,t),r=i.xAxisPoints,o=i.calPoints,l=i.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=o,e.chartData.eachSpacing=l,Ct(0,e,a,n),!1!==e.enableMarkLine&&1===t&&gt(e,0,n),kt(e.series,e,a,n,e.chartData),wt(e,a,n,t),Bt(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"bubble":this.animationInstance=new zt({timing:e.timing,duration:v,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&rt(n,e),St(0,e,0,n),_t(d,e,a,n);var i=function(t,e,a,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=s({},{opacity:1,border:2},e.extra.bubble),o=e.chartData.xAxisData,l=o.xAxisPoints,u=o.eachSpacing,d=[];n.save();return e.width,e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),-e._scrollDistance_-2*u+e.area[3],e.xAxis.itemCount),t.forEach((function(t,o){var s,d,f;s=[].concat(e.chartData.yAxisData.ranges[t.index]),d=s.pop(),f=s.shift();var h=t.data,p=X(h,d,f,l,u,e,a,i);n.beginPath(),n.setStrokeStyle(t.color),n.setLineWidth(r.border*e.pix),n.setFillStyle(c(t.color,r.opacity)),p.forEach((function(t,a){n.moveTo(t.x+t.r,t.y),n.arc(t.x,t.y,t.r*e.pix,0,2*Math.PI,!1)})),n.closePath(),n.fill(),n.stroke(),!1!==e.dataLabel&&1===i&&p.forEach((function(i,r){n.beginPath();var o=t.textSize*e.pix||a.fontSize;n.setFontSize(o),n.setFillStyle(t.textColor||"#FFFFFF"),n.setTextAlign("center"),n.fillText(String(i.t),i.x,i.y+o/2),n.closePath(),n.stroke(),n.setTextAlign("left")}))})),n.restore(),{xAxisPoints:l,calPoints:d,eachSpacing:u}}(u,e,a,n,t),r=i.xAxisPoints,o=i.calPoints,l=i.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=o,e.chartData.eachSpacing=l,Ct(0,e,a,n),!1!==e.enableMarkLine&&1===t&&gt(e,0,n),kt(e.series,e,a,n,e.chartData),wt(e,a,n,t),Bt(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"mix":this.animationInstance=new zt({timing:e.timing,duration:v,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&rt(n,e),St(0,e,0,n),_t(d,e,a,n);var r=function(t,e,a,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=e.chartData.xAxisData,l=o.xAxisPoints,u=o.eachSpacing,d=s({},{width:u/2,barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.mix.column),f=s({},{opacity:.2,gradient:!1},e.extra.mix.area),p=s({},{width:2},e.extra.mix.line),v=e.height-e.area[2],g=[],m=0,x=0;t.forEach((function(t,e){"column"==t.type&&(x+=1)})),n.save();var y=-2,w=l.length+2,_=0,S=e.width+u;if(e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),y=Math.floor(-e._scrollDistance_/u)-2,w=y+e.xAxis.itemCount+4,_=-e._scrollDistance_-2*u+e.area[3],S=_+(e.xAxis.itemCount+4)*u),d.customColor=b(d.linearType,d.customColor,t,a),t.forEach((function(t,o){var s,b,C;s=[].concat(e.chartData.yAxisData.ranges[t.index]),b=s.pop(),C=s.shift();var k=t.data,T=X(k,b,C,l,u,e,a,r);if(g.push(T),"column"==t.type){T=G(T,u,x,m,0,e);for(var A=0;A<T.length;A++){var P=T[A];if(null!==P&&A>y&&A<w){var O=P.x-P.width/2;e.height,P.y,e.area[2];n.beginPath();var D=P.color||t.color,E=P.color||t.color;if("none"!==d.linearType){var M=n.createLinearGradient(O,P.y,O,e.height-e.area[2]);"opacity"==d.linearType?(M.addColorStop(0,c(D,d.linearOpacity)),M.addColorStop(1,c(D,1))):(M.addColorStop(0,c(d.customColor[t.linearIndex],d.linearOpacity)),M.addColorStop(d.colorStop,c(d.customColor[t.linearIndex],d.linearOpacity)),M.addColorStop(1,c(D,1))),D=M}if(d.barBorderRadius&&4===d.barBorderRadius.length||d.barBorderCircle){var F=O,L=P.y,B=P.width,R=e.height-e.area[2]-P.y;d.barBorderCircle&&(d.barBorderRadius=[B/2,B/2,0,0]);var z=(0,i.default)(d.barBorderRadius,4),j=z[0],N=z[1],U=z[2],W=z[3],q=Math.min(B/2,R/2);j=j>q?q:j,N=N>q?q:N,U=U>q?q:U,W=W>q?q:W,j=j<0?0:j,N=N<0?0:N,U=U<0?0:U,W=W<0?0:W,n.arc(F+j,L+j,j,-Math.PI,-Math.PI/2),n.arc(F+B-N,L+N,N,-Math.PI/2,0),n.arc(F+B-U,L+R-U,U,0,Math.PI/2),n.arc(F+W,L+R-W,W,Math.PI/2,Math.PI)}else n.moveTo(O,P.y),n.lineTo(O+P.width,P.y),n.lineTo(O+P.width,e.height-e.area[2]),n.lineTo(O,e.height-e.area[2]),n.lineTo(O,P.y),n.setLineWidth(1),n.setStrokeStyle(E);n.setFillStyle(D),n.closePath(),n.fill()}}m+=1}if("area"==t.type)for(var $=I(T,t),H=0;H<$.length;H++){var Y=$[H];if(n.beginPath(),n.setStrokeStyle(t.color),n.setStrokeStyle(c(t.color,f.opacity)),f.gradient){var J=n.createLinearGradient(0,e.area[0],0,e.height-e.area[2]);J.addColorStop("0",c(t.color,f.opacity)),J.addColorStop("1.0",c("#FFFFFF",.1)),n.setFillStyle(J)}else n.setFillStyle(c(t.color,f.opacity));if(n.setLineWidth(2*e.pix),Y.length>1){var V=Y[0],K=Y[Y.length-1];n.moveTo(V.x,V.y);var Q=0;if("curve"===t.style)for(var Z=0;Z<Y.length;Z++){var tt=Y[Z];if(0==Q&&tt.x>_&&(n.moveTo(tt.x,tt.y),Q=1),Z>0&&tt.x>_&&tt.x<S){var et=h(Y,Z-1);n.bezierCurveTo(et.ctrA.x,et.ctrA.y,et.ctrB.x,et.ctrB.y,tt.x,tt.y)}}else for(var at=0;at<Y.length;at++){var nt=Y[at];0==Q&&nt.x>_&&(n.moveTo(nt.x,nt.y),Q=1),at>0&&nt.x>_&&nt.x<S&&n.lineTo(nt.x,nt.y)}n.lineTo(K.x,v),n.lineTo(V.x,v),n.lineTo(V.x,V.y)}else{var it=Y[0];n.moveTo(it.x-u/2,it.y)}n.closePath(),n.fill()}if("line"==t.type){var rt=I(T,t);rt.forEach((function(a,i){if("dash"==t.lineType){var r=t.dashLength?t.dashLength:8;r*=e.pix,n.setLineDash([r,r])}if(n.beginPath(),n.setStrokeStyle(t.color),n.setLineWidth(p.width*e.pix),1===a.length)n.moveTo(a[0].x,a[0].y);else{n.moveTo(a[0].x,a[0].y);var o=0;if("curve"==t.style)for(var s=0;s<a.length;s++){var l=a[s];if(0==o&&l.x>_&&(n.moveTo(l.x,l.y),o=1),s>0&&l.x>_&&l.x<S){var c=h(a,s-1);n.bezierCurveTo(c.ctrA.x,c.ctrA.y,c.ctrB.x,c.ctrB.y,l.x,l.y)}}else for(var u=0;u<a.length;u++){var d=a[u];0==o&&d.x>_&&(n.moveTo(d.x,d.y),o=1),u>0&&d.x>_&&d.x<S&&n.lineTo(d.x,d.y)}n.moveTo(a[0].x,a[0].y)}n.stroke(),n.setLineDash([])}))}"point"==t.type&&(t.addPoint=!0),1==t.addPoint&&"column"!==t.type&&ot(T,t.color,t.pointShape,n,e)})),!1!==e.dataLabel&&1===r){m=0;t.forEach((function(t,i){var o,s,c;o=[].concat(e.chartData.yAxisData.ranges[t.index]),s=o.pop(),c=o.shift();var d=t.data,f=X(d,s,c,l,u,e,a,r);"column"!==t.type?ct(f,t,a,n,e):(f=G(f,u,x,m,0,e),ct(f,t,a,n,e),m+=1)}))}return n.restore(),{xAxisPoints:l,calPoints:g,eachSpacing:u}}(u,e,a,n,t),o=r.xAxisPoints,l=r.calPoints,f=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=l,e.chartData.eachSpacing=f,Ct(0,e,a,n),!1!==e.enableMarkLine&&1===t&&gt(e,0,n),kt(e.series,e,a,n,e.chartData),wt(e,a,n,t),Bt(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"column":this.animationInstance=new zt({timing:e.timing,duration:v,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&rt(n,e),St(0,e,0,n),_t(d,e,a,n);var r=function(t,e,a,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=e.chartData.xAxisData,l=o.xAxisPoints,u=o.eachSpacing,d=s({},{type:"group",width:u/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0,labelPosition:"outside"},e.extra.column),f=[];n.save();var h=-2,p=l.length+2;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),h=Math.floor(-e._scrollDistance_/u)-2,p=h+e.xAxis.itemCount+4),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===r&&mt(e.tooltip.offset.x,e,0,n,u),d.customColor=b(d.linearType,d.customColor,t,a),t.forEach((function(o,s){var v,g,b;v=[].concat(e.chartData.yAxisData.ranges[o.index]),g=v.pop(),b=v.shift();var m=e.height-e.area[0]-e.area[2],x=m*(0-g)/(b-g),y=e.height-Math.round(x)-e.area[2];o.zeroPoints=y;var w=o.data;switch(d.type){case"group":var _=Q(w,g,b,l,u,e,a,y,r),S=et(w,g,b,l,u,e,a,s,t,r);f.push(S),_=G(_,u,t.length,s,0,e);for(var C=0;C<_.length;C++){var k=_[C];if(null!==k&&C>h&&C<p){var T=k.x-k.width/2,A=e.height-k.y-e.area[2];n.beginPath();var P=k.color||o.color,O=k.color||o.color;if("none"!==d.linearType){var D=n.createLinearGradient(T,k.y,T,y);"opacity"==d.linearType?(D.addColorStop(0,c(P,d.linearOpacity)),D.addColorStop(1,c(P,1))):(D.addColorStop(0,c(d.customColor[o.linearIndex],d.linearOpacity)),D.addColorStop(d.colorStop,c(d.customColor[o.linearIndex],d.linearOpacity)),D.addColorStop(1,c(P,1))),P=D}if(d.barBorderRadius&&4===d.barBorderRadius.length||!0===d.barBorderCircle){var E=T,I=k.y>y?y:k.y,M=k.width,F=Math.abs(y-k.y);d.barBorderCircle&&(d.barBorderRadius=[M/2,M/2,0,0]),k.y>y&&(d.barBorderRadius=[0,0,M/2,M/2]);var L=(0,i.default)(d.barBorderRadius,4),B=L[0],R=L[1],z=L[2],j=L[3],N=Math.min(M/2,F/2);B=B>N?N:B,R=R>N?N:R,z=z>N?N:z,j=j>N?N:j,B=B<0?0:B,R=R<0?0:R,z=z<0?0:z,j=j<0?0:j,n.arc(E+B,I+B,B,-Math.PI,-Math.PI/2),n.arc(E+M-R,I+R,R,-Math.PI/2,0),n.arc(E+M-z,I+F-z,z,0,Math.PI/2),n.arc(E+j,I+F-j,j,Math.PI/2,Math.PI)}else n.moveTo(T,k.y),n.lineTo(T+k.width,k.y),n.lineTo(T+k.width,y),n.lineTo(T,y),n.lineTo(T,k.y),n.setLineWidth(1),n.setStrokeStyle(O);n.setFillStyle(P),n.closePath(),n.fill()}}break;case"stack":_=et(w,g,b,l,u,e,a,s,t,r);f.push(_),_=H(_,u,t.length,0,0,e);for(var U=0;U<_.length;U++){var W=_[U];if(null!==W&&U>h&&U<p){n.beginPath();P=W.color||o.color,T=W.x-W.width/2+1,A=e.height-W.y-e.area[2];var q=e.height-W.y0-e.area[2];s>0&&(A-=q),n.setFillStyle(P),n.moveTo(T,W.y),n.fillRect(T,W.y,W.width,A),n.closePath(),n.fill()}}break;case"meter":_=X(w,g,b,l,u,e,a,r);f.push(_),_=$(_,u,t.length,s,0,e,d.meterBorder);for(var Y=0;Y<_.length;Y++){var J=_[Y];if(null!==J&&Y>h&&Y<p){n.beginPath(),0==s&&d.meterBorder>0&&(n.setStrokeStyle(o.color),n.setLineWidth(d.meterBorder*e.pix)),0==s?n.setFillStyle(d.meterFillColor):n.setFillStyle(J.color||o.color);T=J.x-J.width/2,A=e.height-J.y-e.area[2];if(d.barBorderRadius&&4===d.barBorderRadius.length||!0===d.barBorderCircle){var V=T,K=J.y,Z=J.width,tt=y-J.y;d.barBorderCircle&&(d.barBorderRadius=[Z/2,Z/2,0,0]);var at=(0,i.default)(d.barBorderRadius,4),nt=at[0],it=at[1],rt=at[2],ot=at[3],st=Math.min(Z/2,tt/2);nt=nt>st?st:nt,it=it>st?st:it,rt=rt>st?st:rt,ot=ot>st?st:ot,nt=nt<0?0:nt,it=it<0?0:it,rt=rt<0?0:rt,ot=ot<0?0:ot,n.arc(V+nt,K+nt,nt,-Math.PI,-Math.PI/2),n.arc(V+Z-it,K+it,it,-Math.PI/2,0),n.arc(V+Z-rt,K+tt-rt,rt,0,Math.PI/2),n.arc(V+ot,K+tt-ot,ot,Math.PI/2,Math.PI),n.fill()}else n.moveTo(T,J.y),n.lineTo(T+J.width,J.y),n.lineTo(T+J.width,y),n.lineTo(T,y),n.lineTo(T,J.y),n.fill();0==s&&d.meterBorder>0&&(n.closePath(),n.stroke())}}break}})),!1!==e.dataLabel&&1===r&&t.forEach((function(i,o){var s,c,f;s=[].concat(e.chartData.yAxisData.ranges[i.index]),c=s.pop(),f=s.shift();var h=i.data;switch(d.type){case"group":var p=Q(h,c,f,l,u,e,a,r);p=G(p,u,t.length,o,0,e),ut(p,i,a,n,e);break;case"stack":p=et(h,c,f,l,u,e,a,o,t,r);ut(p,i,a,n,e);break;case"meter":p=X(h,c,f,l,u,e,a,r);ut(p,i,a,n,e);break}})),n.restore(),{xAxisPoints:l,calPoints:f,eachSpacing:u}}(u,e,a,n,t),o=r.xAxisPoints,l=r.calPoints,f=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=l,e.chartData.eachSpacing=f,Ct(0,e,a,n),!1!==e.enableMarkLine&&1===t&&gt(e,0,n),kt(e.series,e,a,n,e.chartData),wt(e,a,n,t),Bt(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"mount":this.animationInstance=new zt({timing:e.timing,duration:v,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&rt(n,e),St(0,e,0,n),_t(d,e,a,n);var r=function(t,e,a,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=e.chartData.xAxisData,l=o.xAxisPoints,u=o.eachSpacing,d=s({},{type:"mount",widthRatio:1,borderWidth:1,barBorderCircle:!1,barBorderRadius:[],linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.mount);d.widthRatio=d.widthRatio<=0?0:d.widthRatio,d.widthRatio=d.widthRatio>=2?2:d.widthRatio,n.save();var f,h,p,v=-2,g=l.length+2;e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),v=Math.floor(-e._scrollDistance_/u)-2,g=v+e.xAxis.itemCount+4),d.customColor=b(d.linearType,d.customColor,t,a),f=[].concat(e.chartData.yAxisData.ranges[0]),h=f.pop(),p=f.shift();var m=e.height-e.area[0]-e.area[2],x=m*(0-h)/(p-h),y=e.height-Math.round(x)-e.area[2],w=Z(t,h,p,l,u,e,d,y,r);switch(d.type){case"bar":for(var _=0;_<w.length;_++){var S=w[_];if(null!==S&&_>v&&_<g){var C=S.x-u*d.widthRatio/2,k=e.height-S.y-e.area[2];n.beginPath();var T=S.color||t[_].color,A=S.color||t[_].color;if("none"!==d.linearType){var P=n.createLinearGradient(C,S.y,C,y);"opacity"==d.linearType?(P.addColorStop(0,c(T,d.linearOpacity)),P.addColorStop(1,c(T,1))):(P.addColorStop(0,c(d.customColor[t[_].linearIndex],d.linearOpacity)),P.addColorStop(d.colorStop,c(d.customColor[t[_].linearIndex],d.linearOpacity)),P.addColorStop(1,c(T,1))),T=P}if(d.barBorderRadius&&4===d.barBorderRadius.length||!0===d.barBorderCircle){var O=C,D=S.y>y?y:S.y,E=S.width,I=Math.abs(y-S.y);d.barBorderCircle&&(d.barBorderRadius=[E/2,E/2,0,0]),S.y>y&&(d.barBorderRadius=[0,0,E/2,E/2]);var M=(0,i.default)(d.barBorderRadius,4),F=M[0],L=M[1],B=M[2],R=M[3],z=Math.min(E/2,I/2);F=F>z?z:F,L=L>z?z:L,B=B>z?z:B,R=R>z?z:R,F=F<0?0:F,L=L<0?0:L,B=B<0?0:B,R=R<0?0:R,n.arc(O+F,D+F,F,-Math.PI,-Math.PI/2),n.arc(O+E-L,D+L,L,-Math.PI/2,0),n.arc(O+E-B,D+I-B,B,0,Math.PI/2),n.arc(O+R,D+I-R,R,Math.PI/2,Math.PI)}else n.moveTo(C,S.y),n.lineTo(C+S.width,S.y),n.lineTo(C+S.width,y),n.lineTo(C,y),n.lineTo(C,S.y);n.setStrokeStyle(A),n.setFillStyle(T),d.borderWidth>0&&(n.setLineWidth(d.borderWidth*e.pix),n.closePath(),n.stroke()),n.fill()}}break;case"triangle":for(var j=0;j<w.length;j++){var N=w[j];if(null!==N&&j>v&&j<g){C=N.x-u*d.widthRatio/2,k=e.height-N.y-e.area[2];n.beginPath();T=N.color||t[j].color,A=N.color||t[j].color;if("none"!==d.linearType){P=n.createLinearGradient(C,N.y,C,y);"opacity"==d.linearType?(P.addColorStop(0,c(T,d.linearOpacity)),P.addColorStop(1,c(T,1))):(P.addColorStop(0,c(d.customColor[t[j].linearIndex],d.linearOpacity)),P.addColorStop(d.colorStop,c(d.customColor[t[j].linearIndex],d.linearOpacity)),P.addColorStop(1,c(T,1))),T=P}n.moveTo(C,y),n.lineTo(N.x,N.y),n.lineTo(C+N.width,y),n.setStrokeStyle(A),n.setFillStyle(T),d.borderWidth>0&&(n.setLineWidth(d.borderWidth*e.pix),n.stroke()),n.fill()}}break;case"mount":for(var U=0;U<w.length;U++){var W=w[U];if(null!==W&&U>v&&U<g){C=W.x-u*d.widthRatio/2,k=e.height-W.y-e.area[2];n.beginPath();T=W.color||t[U].color,A=W.color||t[U].color;if("none"!==d.linearType){P=n.createLinearGradient(C,W.y,C,y);"opacity"==d.linearType?(P.addColorStop(0,c(T,d.linearOpacity)),P.addColorStop(1,c(T,1))):(P.addColorStop(0,c(d.customColor[t[U].linearIndex],d.linearOpacity)),P.addColorStop(d.colorStop,c(d.customColor[t[U].linearIndex],d.linearOpacity)),P.addColorStop(1,c(T,1))),T=P}n.moveTo(C,y),n.bezierCurveTo(W.x-W.width/4,y,W.x-W.width/4,W.y,W.x,W.y),n.bezierCurveTo(W.x+W.width/4,W.y,W.x+W.width/4,y,C+W.width,y),n.setStrokeStyle(A),n.setFillStyle(T),d.borderWidth>0&&(n.setLineWidth(d.borderWidth*e.pix),n.stroke()),n.fill()}}break;case"sharp":for(var G=0;G<w.length;G++){var q=w[G];if(null!==q&&G>v&&G<g){C=q.x-u*d.widthRatio/2,k=e.height-q.y-e.area[2];n.beginPath();T=q.color||t[G].color,A=q.color||t[G].color;if("none"!==d.linearType){P=n.createLinearGradient(C,q.y,C,y);"opacity"==d.linearType?(P.addColorStop(0,c(T,d.linearOpacity)),P.addColorStop(1,c(T,1))):(P.addColorStop(0,c(d.customColor[t[G].linearIndex],d.linearOpacity)),P.addColorStop(d.colorStop,c(d.customColor[t[G].linearIndex],d.linearOpacity)),P.addColorStop(1,c(T,1))),T=P}n.moveTo(C,y),n.quadraticCurveTo(q.x-0,y-k/4,q.x,q.y),n.quadraticCurveTo(q.x+0,y-k/4,C+q.width,y),n.setStrokeStyle(A),n.setFillStyle(T),d.borderWidth>0&&(n.setLineWidth(d.borderWidth*e.pix),n.stroke()),n.fill()}}break}if(!1!==e.dataLabel&&1===r){var $,H,Y;$=[].concat(e.chartData.yAxisData.ranges[0]),H=$.pop(),Y=$.shift();w=Z(t,H,Y,l,u,e,d,y,r);dt(w,t,a,n,e,y)}return n.restore(),{xAxisPoints:l,calPoints:w,eachSpacing:u}}(u,e,a,n,t),o=r.xAxisPoints,l=r.calPoints,f=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=l,e.chartData.eachSpacing=f,Ct(0,e,a,n),!1!==e.enableMarkLine&&1===t&&gt(e,0,n),kt(e.series,e,a,n,e.chartData),wt(e,a,n,t),Bt(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"bar":this.animationInstance=new zt({timing:e.timing,duration:v,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&rt(n,e),_t(d,e,a,n);var r=function(t,e,a,n){for(var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=[],l=(e.height-e.area[0]-e.area[2])/e.categories.length,u=0;u<e.categories.length;u++)o.push(e.area[0]+l/2+l*u);var d=s({},{type:"group",width:l/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.bar),f=[];n.save();var h=-2,p=o.length+2;return e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===r&&xt(e.tooltip.offset.y,e,0,n,l),d.customColor=b(d.linearType,d.customColor,t,a),t.forEach((function(s,u){var v,g,b;v=[].concat(e.chartData.xAxisData.ranges),b=v.pop(),g=v.shift();var m=s.data;switch(d.type){case"group":var x=tt(m,g,b,o,l,e,a,r),y=at(m,g,b,o,l,e,a,u,t,r);f.push(y),x=q(x,l,t.length,u,0,e);for(var w=0;w<x.length;w++){var _=x[w];if(null!==_&&w>h&&w<p){var S=e.area[3],C=_.y-_.width/2;_.height;n.beginPath();var k=_.color||s.color,T=_.color||s.color;if("none"!==d.linearType){var A=n.createLinearGradient(S,_.y,_.x,_.y);"opacity"==d.linearType?(A.addColorStop(0,c(k,d.linearOpacity)),A.addColorStop(1,c(k,1))):(A.addColorStop(0,c(d.customColor[s.linearIndex],d.linearOpacity)),A.addColorStop(d.colorStop,c(d.customColor[s.linearIndex],d.linearOpacity)),A.addColorStop(1,c(k,1))),k=A}if(d.barBorderRadius&&4===d.barBorderRadius.length||!0===d.barBorderCircle){var P=S,O=_.width,D=_.y-_.width/2,E=_.height;d.barBorderCircle&&(d.barBorderRadius=[O/2,O/2,0,0]);var I=(0,i.default)(d.barBorderRadius,4),M=I[0],F=I[1],L=I[2],B=I[3],R=Math.min(O/2,E/2);M=M>R?R:M,F=F>R?R:F,L=L>R?R:L,B=B>R?R:B,M=M<0?0:M,F=F<0?0:F,L=L<0?0:L,B=B<0?0:B,n.arc(P+B,D+B,B,-Math.PI,-Math.PI/2),n.arc(_.x-M,D+M,M,-Math.PI/2,0),n.arc(_.x-F,D+O-F,F,0,Math.PI/2),n.arc(P+L,D+O-L,L,Math.PI/2,Math.PI)}else n.moveTo(S,C),n.lineTo(_.x,C),n.lineTo(_.x,C+_.width),n.lineTo(S,C+_.width),n.lineTo(S,C),n.setLineWidth(1),n.setStrokeStyle(T);n.setFillStyle(k),n.closePath(),n.fill()}}break;case"stack":x=at(m,g,b,o,l,e,a,u,t,r);f.push(x),x=Y(x,l,t.length,0,0,e);for(var z=0;z<x.length;z++){var j=x[z];if(null!==j&&z>h&&z<p){n.beginPath();k=j.color||s.color,S=j.x0;n.setFillStyle(k),n.moveTo(S,j.y-j.width/2),n.fillRect(S,j.y-j.width/2,j.height,j.width),n.closePath(),n.fill()}}break}})),!1!==e.dataLabel&&1===r&&t.forEach((function(i,s){var c,u,f;c=[].concat(e.chartData.xAxisData.ranges),f=c.pop(),u=c.shift();var h=i.data;switch(d.type){case"group":var p=tt(h,u,f,o,l,e,a,r);p=q(p,l,t.length,s,0,e),ft(p,i,a,n,e);break;case"stack":p=at(h,u,f,o,l,e,a,s,t,r);ft(p,i,a,n,e);break}})),{yAxisPoints:o,calPoints:f,eachSpacing:l}}(u,e,a,n,t),o=r.yAxisPoints,l=r.calPoints,f=r.eachSpacing;e.chartData.yAxisPoints=o,e.chartData.xAxisPoints=e.chartData.xAxisData.xAxisPoints,e.chartData.calPoints=l,e.chartData.eachSpacing=f,Ct(0,e,a,n),!1!==e.enableMarkLine&&1===t&&gt(e,0,n),kt(e.series,e,a,n,e.chartData),wt(e,a,n,t),Bt(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"area":this.animationInstance=new zt({timing:e.timing,duration:v,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&rt(n,e),St(0,e,0,n),_t(d,e,a,n);var i=function(t,e,a,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=s({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1,activeType:"none"},e.extra.area),o=e.chartData.xAxisData,l=o.xAxisPoints,u=o.eachSpacing,d=e.height-e.area[2],f=[];n.save();var p=0,v=e.width+u;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),p=-e._scrollDistance_-2*u+e.area[3],v=p+(e.xAxis.itemCount+4)*u),t.forEach((function(t,o){var s,g,b;s=[].concat(e.chartData.yAxisData.ranges[t.index]),g=s.pop(),b=s.shift();var m=t.data,x=X(m,g,b,l,u,e,a,i);f.push(x);for(var y=I(x,t),w=0;w<y.length;w++){var _=y[w];if(n.beginPath(),n.setStrokeStyle(c(t.color,r.opacity)),r.gradient){var S=n.createLinearGradient(0,e.area[0],0,e.height-e.area[2]);S.addColorStop("0",c(t.color,r.opacity)),S.addColorStop("1.0",c("#FFFFFF",.1)),n.setFillStyle(S)}else n.setFillStyle(c(t.color,r.opacity));if(n.setLineWidth(r.width*e.pix),_.length>1){var C=_[0],k=_[_.length-1];n.moveTo(C.x,C.y);var T=0;if("curve"===r.type)for(var A=0;A<_.length;A++){var P=_[A];if(0==T&&P.x>p&&(n.moveTo(P.x,P.y),T=1),A>0&&P.x>p&&P.x<v){var O=h(_,A-1);n.bezierCurveTo(O.ctrA.x,O.ctrA.y,O.ctrB.x,O.ctrB.y,P.x,P.y)}}if("straight"===r.type)for(var D=0;D<_.length;D++){var E=_[D];0==T&&E.x>p&&(n.moveTo(E.x,E.y),T=1),D>0&&E.x>p&&E.x<v&&n.lineTo(E.x,E.y)}if("step"===r.type)for(var M=0;M<_.length;M++){var F=_[M];0==T&&F.x>p&&(n.moveTo(F.x,F.y),T=1),M>0&&F.x>p&&F.x<v&&(n.lineTo(F.x,_[M-1].y),n.lineTo(F.x,F.y))}n.lineTo(k.x,d),n.lineTo(C.x,d),n.lineTo(C.x,C.y)}else{var L=_[0];n.moveTo(L.x-u/2,L.y)}if(n.closePath(),n.fill(),r.addLine){if("dash"==t.lineType){var B=t.dashLength?t.dashLength:8;B*=e.pix,n.setLineDash([B,B])}if(n.beginPath(),n.setStrokeStyle(t.color),n.setLineWidth(r.width*e.pix),1===_.length)n.moveTo(_[0].x,_[0].y);else{n.moveTo(_[0].x,_[0].y);var R=0;if("curve"===r.type)for(var z=0;z<_.length;z++){var j=_[z];if(0==R&&j.x>p&&(n.moveTo(j.x,j.y),R=1),z>0&&j.x>p&&j.x<v){var N=h(_,z-1);n.bezierCurveTo(N.ctrA.x,N.ctrA.y,N.ctrB.x,N.ctrB.y,j.x,j.y)}}if("straight"===r.type)for(var U=0;U<_.length;U++){var W=_[U];0==R&&W.x>p&&(n.moveTo(W.x,W.y),R=1),U>0&&W.x>p&&W.x<v&&n.lineTo(W.x,W.y)}if("step"===r.type)for(var G=0;G<_.length;G++){var q=_[G];0==R&&q.x>p&&(n.moveTo(q.x,q.y),R=1),G>0&&q.x>p&&q.x<v&&(n.lineTo(q.x,_[G-1].y),n.lineTo(q.x,q.y))}n.moveTo(_[0].x,_[0].y)}n.stroke(),n.setLineDash([])}}!1!==e.dataPointShape&&ot(x,t.color,t.pointShape,n,e),st(x,t.color,t.pointShape,n,e,r,o)})),!1!==e.dataLabel&&1===i&&t.forEach((function(t,r){var o,s,c;o=[].concat(e.chartData.yAxisData.ranges[t.index]),s=o.pop(),c=o.shift();var d=t.data,f=X(d,s,c,l,u,e,a,i);ct(f,t,a,n,e)})),n.restore(),{xAxisPoints:l,calPoints:f,eachSpacing:u}}(u,e,a,n,t),r=i.xAxisPoints,o=i.calPoints,l=i.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=o,e.chartData.eachSpacing=l,Ct(0,e,a,n),!1!==e.enableMarkLine&&1===t&&gt(e,0,n),kt(e.series,e,a,n,e.chartData),wt(e,a,n,t),Bt(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"ring":this.animationInstance=new zt({timing:e.timing,duration:v,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&rt(n,e),e.chartData.pieData=Tt(u,e,a,n,t),kt(e.series,e,a,n,e.chartData),wt(e,a,n,t),Bt(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"pie":this.animationInstance=new zt({timing:e.timing,duration:v,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&rt(n,e),e.chartData.pieData=Tt(u,e,a,n,t),kt(e.series,e,a,n,e.chartData),wt(e,a,n,t),Bt(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"rose":this.animationInstance=new zt({timing:e.timing,duration:v,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&rt(n,e),e.chartData.pieData=function(t,e,a,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=s({},{type:"area",activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF",linearType:"none",customColor:[]},e.extra.rose);0==a.pieChartLinePadding&&(a.pieChartLinePadding=r.activeRadius*e.pix);var o={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},l=Math.min((e.width-e.area[1]-e.area[3])/2-a.pieChartLinePadding-a.pieChartTextPadding-a._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-a.pieChartLinePadding-a.pieChartTextPadding);l=l<10?10:l;var u=r.minRadius||.5*l;l<u&&(l=u+10),t=z(t,r.type,u,l,i);var d=r.activeRadius*e.pix;return r.customColor=b(r.linearType,r.customColor,t,a),t=t.map((function(t){return t._start_+=(r.offsetAngle||0)*Math.PI/180,t})),t.forEach((function(t,a){e.tooltip&&e.tooltip.index==a&&(n.beginPath(),n.setFillStyle(c(t.color,r.activeOpacity||.5)),n.moveTo(o.x,o.y),n.arc(o.x,o.y,d+t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),n.closePath(),n.fill()),n.beginPath(),n.setLineWidth(r.borderWidth*e.pix),n.lineJoin="round",n.setStrokeStyle(r.borderColor);var i,s=t.color;"custom"==r.linearType&&(i=n.createCircularGradient?n.createCircularGradient(o.x,o.y,t._radius_):n.createRadialGradient(o.x,o.y,0,o.x,o.y,t._radius_),i.addColorStop(0,c(r.customColor[t.linearIndex],1)),i.addColorStop(1,c(t.color,1)),s=i);n.setFillStyle(s),n.moveTo(o.x,o.y),n.arc(o.x,o.y,t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),n.closePath(),n.fill(),1==r.border&&n.stroke()})),!1!==e.dataLabel&&1===i&&vt(t,e,a,n,0,o),{center:o,radius:l,series:t}}(u,e,a,n,t),kt(e.series,e,a,n,e.chartData),wt(e,a,n,t),Bt(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"radar":this.animationInstance=new zt({timing:e.timing,duration:v,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&rt(n,e),e.chartData.radarData=function(t,e,a,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=s({},{gridColor:"#cccccc",gridType:"radar",gridEval:1,axisLabel:!1,axisLabelTofix:0,labelShow:!0,labelColor:"#666666",labelPointShow:!1,labelPointRadius:3,labelPointColor:"#cccccc",opacity:.2,gridCount:3,border:!1,borderWidth:2,linearType:"none",customColor:[]},e.extra.radar),o=k(e.categories.length),l={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},u=(e.width-e.area[1]-e.area[3])/2,d=(e.height-e.area[0]-e.area[2])/2,f=Math.min(u-(C(e.categories,a.fontSize,n)+a.radarLabelTextMargin),d-a.radarLabelTextMargin);f-=a.radarLabelTextMargin*e.pix,f=f<10?10:f,f=r.radius?r.radius:f,n.beginPath(),n.setLineWidth(1*e.pix),n.setStrokeStyle(r.gridColor),o.forEach((function(t,e){var a=p(f*Math.cos(t),f*Math.sin(t),l);n.moveTo(l.x,l.y),e%r.gridEval==0&&n.lineTo(a.x,a.y)})),n.stroke(),n.closePath();for(var h=function(t){var a={};if(n.beginPath(),n.setLineWidth(1*e.pix),n.setStrokeStyle(r.gridColor),"radar"==r.gridType)o.forEach((function(e,i){var o=p(f/r.gridCount*t*Math.cos(e),f/r.gridCount*t*Math.sin(e),l);0===i?(a=o,n.moveTo(o.x,o.y)):n.lineTo(o.x,o.y)})),n.lineTo(a.x,a.y);else{var i=p(f/r.gridCount*t*Math.cos(1.5),f/r.gridCount*t*Math.sin(1.5),l);n.arc(l.x,l.y,l.y-i.y,0,2*Math.PI,!1)}n.stroke(),n.closePath()},v=1;v<=r.gridCount;v++)h(v);r.customColor=b(r.linearType,r.customColor,t,a);var g=L(o,l,f,t,e,i);if(g.forEach((function(a,i){n.beginPath(),n.setLineWidth(r.borderWidth*e.pix),n.setStrokeStyle(a.color);var o,s=c(a.color,r.opacity);"custom"==r.linearType&&(o=n.createCircularGradient?n.createCircularGradient(l.x,l.y,f):n.createRadialGradient(l.x,l.y,0,l.x,l.y,f),o.addColorStop(0,c(r.customColor[t[i].linearIndex],r.opacity)),o.addColorStop(1,c(a.color,r.opacity)),s=o);if(n.setFillStyle(s),a.data.forEach((function(t,e){0===e?n.moveTo(t.position.x,t.position.y):n.lineTo(t.position.x,t.position.y)})),n.closePath(),n.fill(),!0===r.border&&n.stroke(),n.closePath(),!1!==e.dataPointShape){var u=a.data.map((function(t){return t.position}));ot(u,a.color,a.pointShape,n,e)}})),!0===r.axisLabel){var m=Math.max(r.max,Math.max.apply(null,y(t))),x=f/r.gridCount,w=e.fontSize*e.pix;n.setFontSize(w),n.setFillStyle(e.fontColor),n.setTextAlign("left");for(v=0;v<r.gridCount+1;v++){var _=v*m/r.gridCount;_=_.toFixed(r.axisLabelTofix),n.fillText(String(_),l.x+3*e.pix,l.y-v*x+w/2)}}return pt(o,f,l,e,a,n),!1!==e.dataLabel&&1===i&&(g.forEach((function(t,i){n.beginPath();var r=t.textSize*e.pix||a.fontSize;n.setFontSize(r),n.setFillStyle(t.textColor||e.fontColor),t.data.forEach((function(t,e){Math.abs(t.position.x-l.x)<2?t.position.y<l.y?(n.setTextAlign("center"),n.fillText(t.value,t.position.x,t.position.y-4)):(n.setTextAlign("center"),n.fillText(t.value,t.position.x,t.position.y+r+2)):t.position.x<l.x?(n.setTextAlign("right"),n.fillText(t.value,t.position.x-4,t.position.y+r/2-2)):(n.setTextAlign("left"),n.fillText(t.value,t.position.x+4,t.position.y+r/2-2))})),n.closePath(),n.stroke()})),n.setTextAlign("left")),{center:l,radius:f,angleList:o}}(u,e,a,n,t),kt(e.series,e,a,n,e.chartData),wt(e,a,n,t),Bt(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new zt({timing:e.timing,duration:v,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&rt(n,e),e.chartData.arcbarData=function(t,e,a,n){var i,r,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=s({},{startAngle:.75,endAngle:.25,type:"default",direction:"cw",lineCap:"round",width:12,gap:2,linearType:"none",customColor:[]},e.extra.arcbar);t=j(t,l,o),i=l.centerX||l.centerY?{x:l.centerX?l.centerX:e.width/2,y:l.centerY?l.centerY:e.height/2}:{x:e.width/2,y:e.height/2},l.radius?r=l.radius:(r=Math.min(i.x,i.y),r-=5*e.pix,r-=l.width/2),r=r<10?10:r,l.customColor=b(l.linearType,l.customColor,t,a);for(var u=0;u<t.length;u++){var d=t[u];n.setLineWidth(l.width*e.pix),n.setStrokeStyle(l.backgroundColor||"#E9E9E9"),n.setLineCap(l.lineCap),n.beginPath(),"default"==l.type?n.arc(i.x,i.y,r-(l.width*e.pix+l.gap*e.pix)*u,l.startAngle*Math.PI,l.endAngle*Math.PI,"ccw"==l.direction):n.arc(i.x,i.y,r-(l.width*e.pix+l.gap*e.pix)*u,0,2*Math.PI,"ccw"==l.direction),n.stroke();var f=d.color;if("custom"==l.linearType){var h=n.createLinearGradient(i.x-r,i.y,i.x+r,i.y);h.addColorStop(1,c(l.customColor[d.linearIndex],1)),h.addColorStop(0,c(d.color,1)),f=h}n.setLineWidth(l.width*e.pix),n.setStrokeStyle(f),n.setLineCap(l.lineCap),n.beginPath(),n.arc(i.x,i.y,r-(l.width*e.pix+l.gap*e.pix)*u,l.startAngle*Math.PI,d._proportion_*Math.PI,"ccw"==l.direction),n.stroke()}return lt(e,a,n,i),{center:i,radius:r,series:t}}(u,e,a,n,t),Bt(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new zt({timing:e.timing,duration:v,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&rt(n,e),e.chartData.gaugeData=function(t,e,a,n,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=s({},{type:"default",startAngle:.75,endAngle:.25,width:15,labelOffset:13,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},a.extra.gauge);void 0==o.oldAngle&&(o.oldAngle=o.startAngle),void 0==o.oldData&&(o.oldData=0),t=U(t,o.startAngle,o.endAngle);var l={x:a.width/2,y:a.height/2},u=Math.min(l.x,l.y);u-=5*a.pix,u-=o.width/2,u=u<10?10:u;var d=u-o.width,f=0;if("progress"==o.type){var h=u-3*o.width;i.beginPath();var p=i.createLinearGradient(l.x,l.y-h,l.x,l.y+h);p.addColorStop("0",c(e[0].color,.3)),p.addColorStop("1.0",c("#FFFFFF",.1)),i.setFillStyle(p),i.arc(l.x,l.y,h,0,2*Math.PI,!1),i.fill(),i.setLineWidth(o.width),i.setStrokeStyle(c(e[0].color,.3)),i.setLineCap("round"),i.beginPath(),i.arc(l.x,l.y,d,o.startAngle*Math.PI,o.endAngle*Math.PI,!1),i.stroke(),f=o.endAngle<o.startAngle?2+o.endAngle-o.startAngle:o.startAngle-o.endAngle;o.splitLine.splitNumber;var v=f/o.splitLine.splitNumber/o.splitLine.childNumber,g=-u-.5*o.width-o.splitLine.fixRadius,b=-u-o.width-o.splitLine.fixRadius+o.splitLine.width;i.save(),i.translate(l.x,l.y),i.rotate((o.startAngle-1)*Math.PI);for(var m=o.splitLine.splitNumber*o.splitLine.childNumber+1,x=e[0].data*r,y=0;y<m;y++)i.beginPath(),x>y/m?i.setStrokeStyle(c(e[0].color,1)):i.setStrokeStyle(c(e[0].color,.3)),i.setLineWidth(3*a.pix),i.moveTo(g,0),i.lineTo(b,0),i.stroke(),i.rotate(v*Math.PI);i.restore(),e=N(e,o,r),i.setLineWidth(o.width),i.setStrokeStyle(e[0].color),i.setLineCap("round"),i.beginPath(),i.arc(l.x,l.y,d,o.startAngle*Math.PI,e[0]._proportion_*Math.PI,!1),i.stroke();var w=u-2.5*o.width;i.save(),i.translate(l.x,l.y),i.rotate((e[0]._proportion_-1)*Math.PI),i.beginPath(),i.setLineWidth(o.width/3);var _=i.createLinearGradient(0,.6*-w,0,.6*w);_.addColorStop("0",c("#FFFFFF",0)),_.addColorStop("0.5",c(e[0].color,1)),_.addColorStop("1.0",c("#FFFFFF",0)),i.setStrokeStyle(_),i.arc(0,0,w,.85*Math.PI,1.15*Math.PI,!1),i.stroke(),i.beginPath(),i.setLineWidth(1),i.setStrokeStyle(e[0].color),i.setFillStyle(e[0].color),i.moveTo(-w-o.width/3/2,-4),i.lineTo(-w-o.width/3/2-4,0),i.lineTo(-w-o.width/3/2,4),i.lineTo(-w-o.width/3/2,-4),i.stroke(),i.fill(),i.restore()}else{i.setLineWidth(o.width),i.setLineCap("butt");for(var S=0;S<t.length;S++){var C=t[S];i.beginPath(),i.setStrokeStyle(C.color),i.arc(l.x,l.y,u,C._startAngle_*Math.PI,C._endAngle_*Math.PI,!1),i.stroke()}i.save(),f=o.endAngle<o.startAngle?2+o.endAngle-o.startAngle:o.startAngle-o.endAngle;var k=f/o.splitLine.splitNumber,T=f/o.splitLine.splitNumber/o.splitLine.childNumber,A=-u-.5*o.width-o.splitLine.fixRadius,P=-u-.5*o.width-o.splitLine.fixRadius+o.splitLine.width,O=-u-.5*o.width-o.splitLine.fixRadius+o.splitLine.childWidth;i.translate(l.x,l.y),i.rotate((o.startAngle-1)*Math.PI);for(var D=0;D<o.splitLine.splitNumber+1;D++)i.beginPath(),i.setStrokeStyle(o.splitLine.color),i.setLineWidth(2*a.pix),i.moveTo(A,0),i.lineTo(P,0),i.stroke(),i.rotate(k*Math.PI);i.restore(),i.save(),i.translate(l.x,l.y),i.rotate((o.startAngle-1)*Math.PI);for(var E=0;E<o.splitLine.splitNumber*o.splitLine.childNumber+1;E++)i.beginPath(),i.setStrokeStyle(o.splitLine.color),i.setLineWidth(1*a.pix),i.moveTo(A,0),i.lineTo(O,0),i.stroke(),i.rotate(T*Math.PI);i.restore(),e=W(e,t,o,r);for(var I=0;I<e.length;I++){var M=e[I];i.save(),i.translate(l.x,l.y),i.rotate((M._proportion_-1)*Math.PI),i.beginPath(),i.setFillStyle(M.color),i.moveTo(o.pointer.width,0),i.lineTo(0,-o.pointer.width/2),i.lineTo(-d,0),i.lineTo(0,o.pointer.width/2),i.lineTo(o.pointer.width,0),i.closePath(),i.fill(),i.beginPath(),i.setFillStyle("#FFFFFF"),i.arc(0,0,o.pointer.width/6,0,2*Math.PI,!1),i.fill(),i.restore()}!1!==a.dataLabel&&ht(o,u,l,a,n,i)}return lt(a,n,i,l),1===r&&"gauge"===a.type&&(a.extra.gauge.oldAngle=e[0]._proportion_,a.extra.gauge.oldData=e[0].data),{center:l,radius:u,innerRadius:d,categories:t,totalAngle:f}}(d,u,e,a,n,t),Bt(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"candle":this.animationInstance=new zt({timing:e.timing,duration:v,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&rt(n,e),St(0,e,0,n),_t(d,e,a,n);var i=function(t,e,a,n,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=s({},{color:{},average:{}},a.extra.candle);o.color=s({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},o.color),o.average=s({},{show:!1,name:[],day:[],color:n.color},o.average),a.extra.candle=o;var l=a.chartData.xAxisData,c=l.xAxisPoints,u=l.eachSpacing,d=[];i.save();var f=-2,p=c.length+2,v=0,g=a.width+u;return a._scrollDistance_&&0!==a._scrollDistance_&&!0===a.enableScroll&&(i.translate(a._scrollDistance_,0),f=Math.floor(-a._scrollDistance_/u)-2,p=f+a.xAxis.itemCount+4,v=-a._scrollDistance_-2*u+a.area[3],g=v+(a.xAxis.itemCount+4)*u),(o.average.show||e)&&e.forEach((function(t,e){var o,s,l;o=[].concat(a.chartData.yAxisData.ranges[t.index]),s=o.pop(),l=o.shift();for(var d=t.data,f=X(d,s,l,c,u,a,n,r),p=I(f,t),b=0;b<p.length;b++){var m=p[b];if(i.beginPath(),i.setStrokeStyle(t.color),i.setLineWidth(1),1===m.length)i.moveTo(m[0].x,m[0].y),i.arc(m[0].x,m[0].y,1,0,2*Math.PI);else{i.moveTo(m[0].x,m[0].y);for(var x=0,y=0;y<m.length;y++){var w=m[y];if(0==x&&w.x>v&&(i.moveTo(w.x,w.y),x=1),y>0&&w.x>v&&w.x<g){var _=h(m,y-1);i.bezierCurveTo(_.ctrA.x,_.ctrA.y,_.ctrB.x,_.ctrB.y,w.x,w.y)}}i.moveTo(m[0].x,m[0].y)}i.closePath(),i.stroke()}})),t.forEach((function(t,e){var s,l,h;s=[].concat(a.chartData.yAxisData.ranges[t.index]),l=s.pop(),h=s.shift();var v=t.data,g=V(v,l,h,c,u,a,n,r);d.push(g);for(var b=I(g,t),m=0;m<b[0].length;m++)if(m>f&&m<p){var x=b[0][m];i.beginPath(),v[m][1]-v[m][0]>0?(i.setStrokeStyle(o.color.upLine),i.setFillStyle(o.color.upFill),i.setLineWidth(1*a.pix),i.moveTo(x[3].x,x[3].y),i.lineTo(x[1].x,x[1].y),i.lineTo(x[1].x-u/4,x[1].y),i.lineTo(x[0].x-u/4,x[0].y),i.lineTo(x[0].x,x[0].y),i.lineTo(x[2].x,x[2].y),i.lineTo(x[0].x,x[0].y),i.lineTo(x[0].x+u/4,x[0].y),i.lineTo(x[1].x+u/4,x[1].y),i.lineTo(x[1].x,x[1].y),i.moveTo(x[3].x,x[3].y)):(i.setStrokeStyle(o.color.downLine),i.setFillStyle(o.color.downFill),i.setLineWidth(1*a.pix),i.moveTo(x[3].x,x[3].y),i.lineTo(x[0].x,x[0].y),i.lineTo(x[0].x-u/4,x[0].y),i.lineTo(x[1].x-u/4,x[1].y),i.lineTo(x[1].x,x[1].y),i.lineTo(x[2].x,x[2].y),i.lineTo(x[1].x,x[1].y),i.lineTo(x[1].x+u/4,x[1].y),i.lineTo(x[0].x+u/4,x[0].y),i.lineTo(x[0].x,x[0].y),i.moveTo(x[3].x,x[3].y)),i.closePath(),i.fill(),i.stroke()}})),i.restore(),{xAxisPoints:c,calPoints:d,eachSpacing:u}}(u,m,e,a,n,t),r=i.xAxisPoints,o=i.calPoints,l=i.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=o,e.chartData.eachSpacing=l,Ct(0,e,a,n),!1!==e.enableMarkLine&&1===t&&gt(e,0,n),kt(m?0:e.series,e,a,n,e.chartData),wt(e,a,n,t),Bt(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break}}function Nt(){this.events={}}zt.prototype.stop=function(){this.isStop=!0},Nt.prototype.addEventListener=function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},Nt.prototype.delEventListener=function(t){this.events[t]=[]},Nt.prototype.trigger=function(){for(var t=arguments.length,e=Array(t),a=0;a<t;a++)e[a]=arguments[a];var n=e[0],i=e.slice(1);this.events[n]&&this.events[n].forEach((function(t){try{t.apply(null,i)}catch(e){}}))};var Ut=function(t){t.pix=t.pixelRatio?t.pixelRatio:1,t.fontSize=t.fontSize?t.fontSize:13,t.fontColor=t.fontColor?t.fontColor:o.fontColor,""!=t.background&&"none"!=t.background||(t.background="#FFFFFF"),t.title=s({},t.title),t.subtitle=s({},t.subtitle),t.duration=t.duration?t.duration:1e3,t.yAxis=s({},{data:[],showTitle:!1,disabled:!1,disableGrid:!1,gridSet:"number",splitNumber:5,gridType:"solid",dashLength:4*t.pix,gridColor:"#cccccc",padding:10,fontColor:"#666666"},t.yAxis),t.xAxis=s({},{rotateLabel:!1,rotateAngle:45,disabled:!1,disableGrid:!1,splitNumber:5,calibration:!1,fontColor:"#666666",fontSize:13,lineHeight:20,marginTop:0,gridType:"solid",dashLength:4,scrollAlign:"left",boundaryGap:"center",axisLine:!0,axisLineColor:"#cccccc",titleFontSize:13,titleOffsetY:0,titleOffsetX:0,titleFontColor:"#666666"},t.xAxis),t.xAxis.scrollPosition=t.xAxis.scrollAlign,t.legend=s({},{show:!0,position:"bottom",float:"center",backgroundColor:"rgba(0,0,0,0)",borderColor:"rgba(0,0,0,0)",borderWidth:0,padding:5,margin:5,itemGap:10,fontSize:t.fontSize,lineHeight:t.fontSize,fontColor:t.fontColor,formatter:{},hiddenColor:"#CECECE"},t.legend),t.extra=s({tooltip:{legendShape:"auto"}},t.extra),t.rotate=!!t.rotate,t.animation=!!t.animation,t.rotate=!!t.rotate,t.canvas2d=!!t.canvas2d;var e=s({},o);if(e.color=t.color?t.color:e.color,"pie"==t.type&&(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.pie.labelWidth*t.pix||e.pieChartLinePadding*t.pix),"ring"==t.type&&(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.ring.labelWidth*t.pix||e.pieChartLinePadding*t.pix),"rose"==t.type&&(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.rose.labelWidth*t.pix||e.pieChartLinePadding*t.pix),e.pieChartTextPadding=!1===t.dataLabel?0:e.pieChartTextPadding*t.pix,e.rotate=t.rotate,t.rotate){var a=t.width,n=t.height;t.width=n,t.height=a}if(t.padding=t.padding?t.padding:e.padding,e.yAxisWidth=o.yAxisWidth*t.pix,e.fontSize=t.fontSize*t.pix,e.titleFontSize=o.titleFontSize*t.pix,e.subtitleFontSize=o.subtitleFontSize*t.pix,!t.context)throw new Error("[uCharts] 未获取到context!注意:v2.0版本后,需要自行获取canvas的绘图上下文并传入opts.context!");this.context=t.context,this.context.setTextAlign||(this.context.setStrokeStyle=function(t){return this.strokeStyle=t},this.context.setLineWidth=function(t){return this.lineWidth=t},this.context.setLineCap=function(t){return this.lineCap=t},this.context.setFontSize=function(t){return this.font=t+"px sans-serif"},this.context.setFillStyle=function(t){return this.fillStyle=t},this.context.setTextAlign=function(t){return this.textAlign=t},this.context.setTextBaseline=function(t){return this.textBaseline=t},this.context.setShadow=function(t,e,a,n){this.shadowColor=n,this.shadowOffsetX=t,this.shadowOffsetY=e,this.shadowBlur=a},this.context.draw=function(){}),this.context.setLineDash||(this.context.setLineDash=function(t){}),t.chartData={},this.uevent=new Nt,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0},this.opts=t,this.config=e,jt.call(this,t.type,t,e,this.context)};Ut.prototype.updateData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.opts=s({},this.opts,t),this.opts.updateData=!0;var e=t.scrollPosition||"current";switch(e){case"current":this.opts._scrollDistance_=this.scrollOption.currentOffset;break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var a=it(this.opts.series,this.opts,this.config,this.context),n=a.yAxisWidth;this.config.yAxisWidth=n;var i=0,r=J(this.opts.categories,this.opts,this.config),o=r.xAxisPoints,l=r.startX,c=r.endX,u=r.eachSpacing,d=u*(o.length-1),f=c-l;i=f-d,this.scrollOption={currentOffset:i,startTouchX:i,distance:0,lastMoveTime:0},this.opts._scrollDistance_=i;break}jt.call(this,this.opts.type,this.opts,this.config,this.context)},Ut.prototype.zoom=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var e=Math.round(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+Math.round(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=t.itemCount;var a=it(this.opts.series,this.opts,this.config,this.context),n=a.yAxisWidth;this.config.yAxisWidth=n;var i=0,r=J(this.opts.categories,this.opts,this.config),o=r.xAxisPoints,s=r.startX,l=r.endX,c=r.eachSpacing,u=c*e,f=l-s,h=f-c*(o.length-1);i=f/2-u,i>0&&(i=0),i<h&&(i=h),this.scrollOption={currentOffset:i,startTouchX:0,distance:0,lastMoveTime:0},d(this,i,this.opts.chartData,this.config,this.opts),this.opts._scrollDistance_=i,jt.call(this,this.opts.type,this.opts,this.config,this.context)}else console.log("[uCharts] 请启用滚动条后使用")},Ut.prototype.dobuleZoom=function(t){if(!0===this.opts.enableScroll){var e=t.changedTouches;if(!(e.length<2)){for(var a=0;a<e.length;a++)e[a].x=e[a].x?e[a].x:e[a].clientX,e[a].y=e[a].y?e[a].y:e[a].clientY;var n=[_(e[0],this.opts,t),_(e[1],this.opts,t)],i=Math.abs(n[0].x-n[1].x);if(!this.scrollOption.moveCount){var r={changedTouches:[{x:e[0].x,y:this.opts.area[0]/this.opts.pix+2}]},o={changedTouches:[{x:e[1].x,y:this.opts.area[0]/this.opts.pix+2}]};this.opts.rotate&&(r={changedTouches:[{x:this.opts.height/this.opts.pix-this.opts.area[0]/this.opts.pix-2,y:e[0].y}]},o={changedTouches:[{x:this.opts.height/this.opts.pix-this.opts.area[0]/this.opts.pix-2,y:e[1].y}]});var s=this.getCurrentDataIndex(r).index,l=this.getCurrentDataIndex(o).index,c=Math.abs(s-l);return this.scrollOption.moveCount=c,this.scrollOption.moveCurrent1=Math.min(s,l),void(this.scrollOption.moveCurrent2=Math.max(s,l))}var u=i/this.scrollOption.moveCount,f=(this.opts.width-this.opts.area[1]-this.opts.area[3])/u;f=f<=2?2:f,f=f>=this.opts.categories.length?this.opts.categories.length:f,this.opts.animation=!1,this.opts.xAxis.itemCount=f;var h=0,p=J(this.opts.categories,this.opts,this.config),v=p.xAxisPoints,g=p.startX,b=p.endX,m=p.eachSpacing,x=m*this.scrollOption.moveCurrent1,y=b-g,w=y-m*(v.length-1);h=-x+Math.min(n[0].x,n[1].x)-this.opts.area[3]-m,h>0&&(h=0),h<w&&(h=w),this.scrollOption.currentOffset=h,this.scrollOption.startTouchX=0,this.scrollOption.distance=0,d(this,h,this.opts.chartData,this.config,this.opts),this.opts._scrollDistance_=h,jt.call(this,this.opts.type,this.opts,this.config,this.context)}}else console.log("[uCharts] 请启用滚动条后使用")},Ut.prototype.stopAnimation=function(){this.animationInstance&&this.animationInstance.stop()},Ut.prototype.addEventListener=function(t,e){this.uevent.addEventListener(t,e)},Ut.prototype.delEventListener=function(t){this.uevent.delEventListener(t)},Ut.prototype.getCurrentDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var a=_(e,this.opts,t);return"pie"===this.opts.type||"ring"===this.opts.type?function(t,e,a){var n=-1,i=B(e.series);if(e&&e.center&&E(t,e.center,e.radius)){var r=Math.atan2(e.center.y-t.y,t.x-e.center.x);r=-r,a.extra.pie&&a.extra.pie.offsetAngle&&(r-=a.extra.pie.offsetAngle*Math.PI/180),a.extra.ring&&a.extra.ring.offsetAngle&&(r-=a.extra.ring.offsetAngle*Math.PI/180);for(var o=0,s=i.length;o<s;o++)if(f(r,i[o]._start_,i[o]._start_+2*i[o]._proportion_*Math.PI)){n=o;break}}return n}({x:a.x,y:a.y},this.opts.chartData.pieData,this.opts):"rose"===this.opts.type?function(t,e,a){var n=-1,i=z(a._series_,a.extra.rose.type,e.radius,e.radius);if(e&&e.center&&E(t,e.center,e.radius)){var r=Math.atan2(e.center.y-t.y,t.x-e.center.x);r=-r,a.extra.rose&&a.extra.rose.offsetAngle&&(r-=a.extra.rose.offsetAngle*Math.PI/180);for(var o=0,s=i.length;o<s;o++)if(f(r,i[o]._start_,i[o]._start_+2*i[o]._rose_proportion_*Math.PI)){n=o;break}}return n}({x:a.x,y:a.y},this.opts.chartData.pieData,this.opts):"radar"===this.opts.type?function(t,e,a){var n=2*Math.PI/a,i=-1;if(E(t,e.center,e.radius)){var r=function(t){return t<0&&(t+=2*Math.PI),t>2*Math.PI&&(t-=2*Math.PI),t},o=Math.atan2(e.center.y-t.y,t.x-e.center.x);o*=-1,o<0&&(o+=2*Math.PI);var s=e.angleList.map((function(t){return t=r(-1*t),t}));s.forEach((function(t,e){var a=r(t-n/2),s=r(t+n/2);s<a&&(s+=2*Math.PI),(o>=a&&o<=s||o+2*Math.PI>=a&&o+2*Math.PI<=s)&&(i=e)}))}return i}({x:a.x,y:a.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?function(t,e){for(var a=-1,n=0,i=e.series.length;n<i;n++){var r=e.series[n];if(t.x>r.funnelArea[0]&&t.x<r.funnelArea[2]&&t.y>r.funnelArea[1]&&t.y<r.funnelArea[3]){a=n;break}}return a}({x:a.x,y:a.y},this.opts.chartData.funnelData):"map"===this.opts.type?function(t,e){for(var a=-1,n=e.chartData.mapData,i=e.series,r=function(t,e,a,n,i,r){return{x:(e-i)/n+a.xMin,y:a.yMax-(t-r)/n}}(t.y,t.x,n.bounds,n.scale,n.xoffset,n.yoffset),o=[r.x,r.y],s=0,l=i.length;s<l;s++){var c=i[s].geometry.coordinates;if(Dt(o,c,e.chartData.mapData.mercator)){a=s;break}}return a}({x:a.x,y:a.y},this.opts):"word"===this.opts.type?function(t,e){for(var a=-1,n=0,i=e.length;n<i;n++){var r=e[n];if(t.x>r.area[0]&&t.x<r.area[2]&&t.y>r.area[1]&&t.y<r.area[3]){a=n;break}}return a}({x:a.x,y:a.y},this.opts.chartData.wordCloudData):"bar"===this.opts.type?function(t,e,a,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r={index:-1,group:[]},o=a.chartData.eachSpacing/2,s=a.chartData.yAxisPoints;return e&&e.length>0&&D(t,a,n)&&s.forEach((function(e,a){t.y+i+o>e&&(r.index=a)})),r}({x:a.x,y:a.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset)):function(t,e,a,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r={index:-1,group:[]},o=a.chartData.eachSpacing/2,s=[];if(e&&e.length>0){if(a.categories){for(var l=1;l<a.chartData.xAxisPoints.length;l++)s.push(a.chartData.xAxisPoints[l]-o);"line"!=a.type&&"area"!=a.type||"justify"!=a.xAxis.boundaryGap||(s=a.chartData.xAxisPoints)}else o=0;if(D(t,a,n))if(a.categories)s.forEach((function(e,a){t.x+i+o>e&&(r.index=a)}));else{for(var c=Array(e.length),u=0;u<e.length;u++){c[u]=Array(e[u].length);for(var d=0;d<e[u].length;d++)c[u][d]=Math.abs(e[u][d].x-t.x)}for(var f=Array(c.length),h=Array(c.length),p=0;p<c.length;p++)f[p]=Math.min.apply(null,c[p]),h[p]=c[p].indexOf(f[p]);var v=Math.min.apply(null,f);r.index=[];for(var g=0;g<f.length;g++)f[g]==v&&(r.group.push(g),r.index.push(h[g]))}}return r}({x:a.x,y:a.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset))}return-1},Ut.prototype.getLegendDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var a=_(e,this.opts,t);return function(t,e,a){var n=-1;if(function(t,e){return t.x>e.start.x&&t.x<e.end.x&&t.y>e.start.y&&t.y<e.end.y}(t,e.area)){for(var i=e.points,r=-1,o=0,s=i.length;o<s;o++)for(var l=i[o],c=0;c<l.length;c++){r+=1;var u=l[c]["area"];if(u&&t.x>u[0]-0&&t.x<u[2]+0&&t.y>u[1]-0&&t.y<u[3]+0){n=r;break}}return n}return n}({x:a.x,y:a.y},this.opts.chartData.legendData)}return-1},Ut.prototype.touchLegend=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null;if(a=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],a){_(a,this.opts,t);var n=this.getLegendDataIndex(t);n>=0&&("candle"==this.opts.type?this.opts.seriesMA[n].show=!this.opts.seriesMA[n].show:this.opts.series[n].show=!this.opts.series[n].show,this.opts.animation=!!e.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,jt.call(this,this.opts.type,this.opts,this.config,this.context))}},Ut.prototype.showToolTip=function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null;n=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],n||console.log("[uCharts] 未获取到event坐标信息");var i=_(n,this.opts,t),r=this.scrollOption.currentOffset,o=s({},this.opts,{_scrollDistance_:r,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type||"scatter"===this.opts.type||"bubble"===this.opts.type){var l=this.getCurrentDataIndex(t),c=void 0==a.index?l.index:a.index;if(c>-1||c.length>0){var u=S(this.opts.series,c,l.group);if(0!==u.length){var d=T(u,this.opts,c,l.group,this.opts.categories,a),f=d.textList,h=d.offset;h.y=i.y,o.tooltip={textList:void 0!==a.textList?a.textList:f,offset:void 0!==a.offset?a.offset:h,option:a,index:c,group:l.group}}}jt.call(this,o.type,o,this.config,this.context)}if("mount"===this.opts.type){c=void 0==a.index?this.getCurrentDataIndex(t).index:a.index;if(c>-1){o=s({},this.opts,{animation:!1}),u=s({},o._series_[c]),f=[{text:a.formatter?a.formatter(u,void 0,c,o):u.name+": "+u.data,color:u.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?u.legendShape:this.opts.extra.tooltip.legendShape}],h={x:o.chartData.calPoints[c].x,y:i.y};o.tooltip={textList:a.textList?a.textList:f,offset:void 0!==a.offset?a.offset:h,option:a,index:c}}jt.call(this,o.type,o,this.config,this.context)}if("bar"===this.opts.type){l=this.getCurrentDataIndex(t),c=void 0==a.index?l.index:a.index;if(c>-1||c.length>0){u=S(this.opts.series,c,l.group);if(0!==u.length){d=T(u,this.opts,c,l.group,this.opts.categories,a),f=d.textList,h=d.offset;h.x=i.x,o.tooltip={textList:void 0!==a.textList?a.textList:f,offset:void 0!==a.offset?a.offset:h,option:a,index:c}}}jt.call(this,o.type,o,this.config,this.context)}if("mix"===this.opts.type){l=this.getCurrentDataIndex(t),c=void 0==a.index?l.index:a.index;if(c>-1){r=this.scrollOption.currentOffset,o=s({},this.opts,{_scrollDistance_:r,animation:!1}),u=S(this.opts.series,c);if(0!==u.length){var p=A(u,this.opts,c,this.opts.categories,a);f=p.textList,h=p.offset;h.y=i.y,o.tooltip={textList:a.textList?a.textList:f,offset:void 0!==a.offset?a.offset:h,option:a,index:c}}}jt.call(this,o.type,o,this.config,this.context)}if("candle"===this.opts.type){l=this.getCurrentDataIndex(t),c=void 0==a.index?l.index:a.index;if(c>-1){r=this.scrollOption.currentOffset,o=s({},this.opts,{_scrollDistance_:r,animation:!1}),u=S(this.opts.series,c);if(0!==u.length){d=P(this.opts.series[0].data,u,this.opts,c,this.opts.categories,this.opts.extra.candle,a),f=d.textList,h=d.offset;h.y=i.y,o.tooltip={textList:a.textList?a.textList:f,offset:void 0!==a.offset?a.offset:h,option:a,index:c}}}jt.call(this,o.type,o,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){c=void 0==a.index?this.getCurrentDataIndex(t):a.index;if(c>-1){o=s({},this.opts,{animation:!1}),u=s({},o._series_[c]),f=[{text:a.formatter?a.formatter(u,void 0,c,o):u.name+": "+u.data,color:u.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?u.legendShape:this.opts.extra.tooltip.legendShape}],h={x:i.x,y:i.y};o.tooltip={textList:a.textList?a.textList:f,offset:void 0!==a.offset?a.offset:h,option:a,index:c}}jt.call(this,o.type,o,this.config,this.context)}if("map"===this.opts.type){c=void 0==a.index?this.getCurrentDataIndex(t):a.index;if(c>-1){o=s({},this.opts,{animation:!1}),u=s({},this.opts.series[c]);u.name=u.properties.name;f=[{text:a.formatter?a.formatter(u,void 0,c,this.opts):u.name,color:u.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?u.legendShape:this.opts.extra.tooltip.legendShape}],h={x:i.x,y:i.y};o.tooltip={textList:a.textList?a.textList:f,offset:void 0!==a.offset?a.offset:h,option:a,index:c}}o.updateData=!1,jt.call(this,o.type,o,this.config,this.context)}if("word"===this.opts.type){c=void 0==a.index?this.getCurrentDataIndex(t):a.index;if(c>-1){o=s({},this.opts,{animation:!1}),u=s({},this.opts.series[c]),f=[{text:a.formatter?a.formatter(u,void 0,c,this.opts):u.name,color:u.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?u.legendShape:this.opts.extra.tooltip.legendShape}],h={x:i.x,y:i.y};o.tooltip={textList:a.textList?a.textList:f,offset:void 0!==a.offset?a.offset:h,option:a,index:c}}o.updateData=!1,jt.call(this,o.type,o,this.config,this.context)}if("radar"===this.opts.type){c=void 0==a.index?this.getCurrentDataIndex(t):a.index;if(c>-1){o=s({},this.opts,{animation:!1}),u=S(this.opts.series,c);if(0!==u.length){f=u.map((function(t){return{text:a.formatter?a.formatter(t,e.opts.categories[c],c,e.opts):t.name+": "+t.data,color:t.color,legendShape:"auto"==e.opts.extra.tooltip.legendShape?t.legendShape:e.opts.extra.tooltip.legendShape}})),h={x:i.x,y:i.y};o.tooltip={textList:a.textList?a.textList:f,offset:void 0!==a.offset?a.offset:h,option:a,index:c}}}jt.call(this,o.type,o,this.config,this.context)}},Ut.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};var e=s({},this.opts,{_scrollDistance_:t,animation:!1});jt.call(this,this.opts.type,e,this.config,this.context)},Ut.prototype.scrollStart=function(t){var e=null;e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var a=_(e,this.opts,t);e&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=a.x)},Ut.prototype.scroll=function(t){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var e=this.opts.touchMoveLimit||60,a=Date.now(),n=a-this.scrollOption.lastMoveTime;if(!(n<Math.floor(1e3/e))&&0!=this.scrollOption.startTouchX){this.scrollOption.lastMoveTime=a;var i=null;if(i=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],i&&!0===this.opts.enableScroll){var r,o=_(i,this.opts,t);r=o.x-this.scrollOption.startTouchX;var l=this.scrollOption.currentOffset,c=d(this,l+r,this.opts.chartData,this.config,this.opts);this.scrollOption.distance=r=c-l;var u=s({},this.opts,{_scrollDistance_:l+r,animation:!1});return this.opts=u,jt.call(this,u.type,u,this.config,this.context),l+r}}},Ut.prototype.scrollEnd=function(t){if(!0===this.opts.enableScroll){var e=this.scrollOption,a=e.currentOffset,n=e.distance;this.scrollOption.currentOffset=a+n,this.scrollOption.distance=0,this.scrollOption.moveCount=0}};var Wt=Ut;e.default=Wt},a37e:function(t,e,a){var n=a("5007");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("3cc0fba7",n,!0,{sourceMap:!1,shadowMode:!1})},a3fb2:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"loading1",data:function(){return{}}}},a429:function(t,e,a){"use strict";a.r(e);var n=a("2729"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},a4c4:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"loading6",data:function(){return{}}}},a6a5:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"tn-input-class tn-input",class:{"tn-input--border":t.border,"tn-input--error":t.validateState},style:{padding:"0 "+(t.border?20:0)+"rpx",borderColor:t.borderColor,textAlign:t.inputAlign},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.inputClick.apply(void 0,arguments)}}},["textarea"===t.type?a("v-uni-textarea",{staticClass:"tn-input__input tn-input__textarea",style:[t.inputStyle],attrs:{value:t.defaultValue,placeholder:t.placeholder,placeholderStyle:t.placeholderStyle,disabled:t.disabled||"select"===t.type,maxlength:t.maxLength,fixed:t.fixed,focus:t.focus,autoHeight:t.autoHeight,selectionStart:t.elSelectionStart,selectionEnd:t.elSelectionEnd,cursorSpacing:t.cursorSpacing,showConfirmBar:t.showConfirmBar},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.handleInput.apply(void 0,arguments)},blur:function(e){arguments[0]=e=t.$handleEvent(e),t.handleBlur.apply(void 0,arguments)},focus:function(e){arguments[0]=e=t.$handleEvent(e),t.onFocus.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm.apply(void 0,arguments)}}}):a("v-uni-input",{staticClass:"tn-input__input",style:[t.inputStyle],attrs:{type:"password"===t.type?"text":t.type,value:t.defaultValue,password:"password"===t.type&&!t.showPassword,placeholder:t.placeholder,placeholderStyle:t.placeholderStyle,disabled:t.disabled||"select"===t.type,maxlength:t.maxLength,focus:t.focus,confirmType:t.confirmType,selectionStart:t.elSelectionStart,selectionEnd:t.elSelectionEnd,cursorSpacing:t.cursorSpacing,showConfirmBar:t.showConfirmBar},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.handleInput.apply(void 0,arguments)},blur:function(e){arguments[0]=e=t.$handleEvent(e),t.handleBlur.apply(void 0,arguments)},focus:function(e){arguments[0]=e=t.$handleEvent(e),t.onFocus.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm.apply(void 0,arguments)}}}),a("v-uni-view",{staticClass:"tn-input__right-icon tn-flex tn-flex-col-center"},[t.clearable&&""!==t.value&&t.focused?a("v-uni-view",{staticClass:"tn-input__right-icon__item tn-input__right-icon__clear",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClear.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"icon tn-icon-close"})],1):"text"===t.type&&!t.focused&&t.showRightIcon&&""!==t.rightIcon?a("v-uni-view",{staticClass:"tn-input__right-icon__item tn-input__right-icon__clear"},[a("v-uni-view",{staticClass:"icon",class:["tn-icon-"+t.rightIcon]})],1):t._e(),t.passwordIcon&&"password"===t.type?a("v-uni-view",{staticClass:"tn-input__right-icon__item tn-input__right-icon__clear",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showPassword=!t.showPassword}}},[t.showPassword?a("v-uni-view",{staticClass:"icon tn-icon-eye"}):a("v-uni-view",{staticClass:"tn-icon-eye-hide"})],1):t._e(),"select"===t.type?a("v-uni-view",{staticClass:"tn-input__right-icon__item tn-input__right-icon__select",class:{"tn-input__right-icon__select--reverse":t.selectOpen}},[a("v-uni-view",{staticClass:"icon tn-icon-up-triangle"})],1):t._e()],1)],1)},i=[]},a842:function(t,e,a){"use strict";var n=a("bdbb").default;a("6a54"),a("7a76"),a("c9b5"),a("8a8d"),a("926e"),a("5c47"),a("af8f"),a("e966"),Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,a,n){return a&&t(e.prototype,a),n&&t(e,n),e}}(),r=a("e0cb"),o=a("c77a"),s=u(o),l=a("822a"),c=u(l);function u(t){return t&&t.__esModule?t:{default:t}}var d=function(t){function e(t,a){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==n(e)&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,a))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+n(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{2}$/)}},{key:"encode",value:function(){var t=r.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,s.default)(this.data,t,"01"),text:this.text}}}]),e}(c.default);e.default=d},a96e:function(t,e,a){"use strict";var n=a("bdbb").default;a("6a54"),a("7a76"),a("c9b5"),a("8a8d"),a("926e"),Object.defineProperty(e,"__esModule",{value:!0});var i=a("6373"),r=function(t){return t&&t.__esModule?t:{default:t}}(i),o=a("e24c");var s=function(t){function e(t,a){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==n(e)&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,o.mod10)(t),a))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+n(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.default);e.default=s},a9d1:function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.time_active[data-v-e5b5b0bc]{border-bottom:1px solid #fff}.overview_active[data-v-e5b5b0bc]{background-color:red}.bg_color[data-v-e5b5b0bc]{position:fixed;z-index:-1;height:%?600?%;width:100%;background:linear-gradient(117deg,#32baee,#3a91f8)}.bg_content[data-v-e5b5b0bc]{width:100%;position:fixed;z-index:-1;top:%?480?%;height:100vh;background-color:#f4f4f4;background:linear-gradient(180deg,hsla(0,0%,96.9%,0),#f7f7f7 7%,#f7f7f7)}.bg_header[data-v-e5b5b0bc]{position:fixed;z-index:1000;width:100%;background:linear-gradient(117deg,#32baee,#3999f7);background-color:rgba(50,186,238,.5)}.bg_header .navbar[data-v-e5b5b0bc]{display:flex;margin-top:%?80?%;position:relative}.bg_header .navbar .navbar_back[data-v-e5b5b0bc]{position:absolute;left:10px;font-size:%?48?%;color:#f5f1f1}.bg_header .navbar .navbar_title[data-v-e5b5b0bc]{font-size:%?40?%;color:#f5f1f1;margin:0 auto}.bg_header .date[data-v-e5b5b0bc]{width:90%;margin:auto;padding-top:50px;display:flex;justify-content:space-around}.bg_header .date .date_item[data-v-e5b5b0bc]{height:46px;width:100px;line-height:40px;text-align:center;color:#f5f1f1;font-size:16px}.bg_header .time[data-v-e5b5b0bc]{margin:10px 0;display:flex;justify-content:space-around;color:#f5f1f1;font-size:16px}.bg_header .time .time_left[data-v-e5b5b0bc]{margin-left:%?50?%}.bg_header .time .time_center[data-v-e5b5b0bc]{font-size:16px;font-weight:700}.bg_header .time .time_right[data-v-e5b5b0bc]{margin-right:%?50?%}.subitlesx .table[data-v-e5b5b0bc]{display:table;border-collapse:collapse\n /* 去掉栅栏 */}.subitlesx .table .table-header[data-v-e5b5b0bc]{font-weight:700;background-color:#f7f7f7;position:-webkit-sticky;position:sticky;top:0;z-index:2}.subitlesx .table .table-header .title-cell[data-v-e5b5b0bc]{border:0;position:relative;position:-webkit-sticky;position:sticky;left:0;z-index:1}.subitlesx .table .table-header .title-cell .row[data-v-e5b5b0bc]{text-align:center}.subitlesx .table .table-header .content-cell[data-v-e5b5b0bc]{text-align:center}.subitlesx .table .table-content[data-v-e5b5b0bc]{text-align:center}.subitlesx .table .table-content__item[data-v-e5b5b0bc]{display:table-row}.subitlesx .table .table-content__item .title-cell[data-v-e5b5b0bc]{position:-webkit-sticky;position:sticky;left:0;z-index:1}.subitlesx .table .table-content__item .content-cell[data-v-e5b5b0bc]{text-align:center}.subitlesx .table .title-cell[data-v-e5b5b0bc]{display:table-cell;width:%?200?%}.subitlesx .table .content-cell[data-v-e5b5b0bc]{display:table-cell;width:%?250?%}.subitlesx .table .cell[data-v-e5b5b0bc]{padding:%?10?%;line-height:1.6}.subitlesx .empty-data[data-v-e5b5b0bc]{background:rgba(245,247,250,.8);border-radius:%?12?%;box-shadow:inset %?0?% %?0?% %?10?% rgba(0,0,0,.05);display:flex;flex-direction:column;justify-content:center;align-items:center;padding:%?80?% %?0?%;text-align:center}.subitlesx .empty-data .empty-icon[data-v-e5b5b0bc]{color:#a0cfff!important}.subitlesx .empty-data .empty-icon .tn-icon-info[data-v-e5b5b0bc]{font-size:%?90?%;-webkit-transform:scale(1);transform:scale(1);-webkit-animation:pulse-data-v-e5b5b0bc 2s infinite;animation:pulse-data-v-e5b5b0bc 2s infinite}@-webkit-keyframes pulse-data-v-e5b5b0bc{0%{-webkit-transform:scale(.95);transform:scale(.95);opacity:.8}70%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(.95);transform:scale(.95);opacity:.8}}.subitlesx .empty-data .empty-text[data-v-e5b5b0bc]{color:#7d8998;font-size:%?30?%;letter-spacing:%?2?%;text-align:center}#crilord[data-v-e5b5b0bc]{background-color:#fff}#crilord .picker_group[data-v-e5b5b0bc]{width:80%;height:%?80?%;font-size:%?28?%;border-radius:%?20?%;display:flex;align-items:center;justify-content:space-between;left:0;right:0;margin:auto;top:%?20?%;position:relative;background:#f6f6f6}#crilord .example-body[data-v-e5b5b0bc]{display:flex;flex-direction:row}#crilord .calendar-button[data-v-e5b5b0bc]{flex:1;font-weight:700;font-size:%?32?%}#crilord .moneyzhengli[data-v-e5b5b0bc]{width:100%;height:%?100?%;position:relative;left:0;right:0;margin:auto;display:flex;justify-content:space-between;background-color:#389df5}#crilord .moneyzhengli .money_A[data-v-e5b5b0bc]{height:100%;text-align:center;width:25%;line-height:%?100?%;border-radius:%?50?%}#crilord .money_A.active[data-v-e5b5b0bc]{border-bottom:1px solid #fff}#crilord .big[data-v-e5b5b0bc]{position:absolute;width:95%;top:160px;top:130px;left:50%;-webkit-transform:translate(-50%);transform:translate(-50%);margin:auto}#crilord .big .bigBox[data-v-e5b5b0bc]{background-color:#fff;margin-bottom:%?30?%;border-radius:%?14?%;padding:%?10?%}#crilord .big .bigBox .dataOverView[data-v-e5b5b0bc]{display:flex;justify-content:flex-start;flex-wrap:wrap}#crilord .big .bigBox .dataOverView .dataItem[data-v-e5b5b0bc]{width:%?215?%;height:%?140?%;background-color:#f7f7f7;border-radius:%?15?%;margin:%?5?%}#crilord .big .bigBox .dataOverView .dataItem .dataItem_title[data-v-e5b5b0bc]{font-size:%?24?%;color:#474343;margin-left:%?20?%;margin-top:%?20?%}#crilord .big .bigBox .dataOverView .dataItem .dataItem_price[data-v-e5b5b0bc]{font-size:%?40?%;font-weight:700;margin-left:%?20?%;margin-top:%?10?%}#crilord .big .bigBox .dataOverView .dataItem2[data-v-e5b5b0bc]{width:%?200?%;height:%?80?%;background-color:#f7f7f7;border-radius:%?10?%;margin:%?5?%;line-height:40px;text-align:center}#crilord .big .bigBox .dataOverView .dataItem2 .dataItem_title2[data-v-e5b5b0bc]{font-size:%?30?%;color:#474343;font-weight:700}#crilord .big .bigBox .dataOverView .dataItem2 .dataItem_price2[data-v-e5b5b0bc]{font-size:%?40?%;font-weight:700;margin-left:%?20?%;margin-top:%?10?%}#crilord .big .bigBox .dataOverView .text[data-v-e5b5b0bc]{color:#515151;font-size:%?26?%}#crilord .big .bigBox .dataOverView .amount[data-v-e5b5b0bc]{color:#000;font-size:%?50?%;font-weight:900}#crilord .big .bigBox .dataOverView .topBox[data-v-e5b5b0bc]{padding:%?20?% %?0?%}#crilord .big .bigBox .dataOverView .bottomBox .amount[data-v-e5b5b0bc]{color:#000;font-size:%?34?%;font-weight:900}#crilord .big .bigBox .title[data-v-e5b5b0bc]{font-weight:900;font-size:%?36?%;height:%?80?%;text-indent:%?18?%;line-height:%?80?%}#crilord .big .bigBox .subTitle[data-v-e5b5b0bc]{font-size:%?34?%;color:#888}#crilord .big .bigBox .flex[data-v-e5b5b0bc]{display:flex}#crilord .big .bigBox .flexCenter[data-v-e5b5b0bc]{display:flex;align-items:center}#crilord .big .bigBox .flexContentCenter[data-v-e5b5b0bc]{display:flex;justify-content:space-between;align-items:center}#crilord .big .bigBox .flexCenterCenter[data-v-e5b5b0bc]{display:flex;justify-content:center;align-items:center;text-align:center}#crilord .big .bigBox .flexcolumn[data-v-e5b5b0bc]{display:flex;justify-content:center;justify-content:space-between;align-items:center;flex-direction:column}.payment-method-box[data-v-e5b5b0bc]{box-shadow:%?0?% %?4?% %?20?% rgba(0,0,0,.08);border-radius:%?16?%!important;padding:%?20?%!important;transition:all .3s ease}.payment-method-box[data-v-e5b5b0bc]:hover{-webkit-transform:translateY(%?-5?%);transform:translateY(%?-5?%);box-shadow:%?0?% %?8?% %?25?% rgba(0,0,0,.1)}.payment-title[data-v-e5b5b0bc]{display:flex;align-items:center;position:relative;justify-content:space-between}.payment-title .title-text[data-v-e5b5b0bc]{position:relative;z-index:1;padding-right:%?20?%;background:#fff;font-weight:700}.payment-title .chart-toggle[data-v-e5b5b0bc]{display:flex;align-items:center;margin-left:%?140?%}.payment-title .chart-toggle .toggle-item[data-v-e5b5b0bc]{margin:%?0?% %?10?%;padding:%?8?% %?16?%;border-radius:%?6?%;background-color:#f7f7f7;transition:all .3s ease}.payment-title .chart-toggle .toggle-item.active[data-v-e5b5b0bc]{background-color:#3a91f8;color:#fff}.payment-title .chart-toggle .toggle-item uni-text[data-v-e5b5b0bc]{font-size:%?28?%}.payment-table .table-header[data-v-e5b5b0bc]{background:linear-gradient(90deg,#f0f8ff,#e6f7ff)!important;border-radius:%?12?% %?12?% %?0?% %?0?%;overflow:hidden}.payment-table .table-header .title-cell[data-v-e5b5b0bc], .payment-table .table-header .content-cell[data-v-e5b5b0bc]{font-weight:600;color:#2c3e50}.payment-table .table-header .title-cell .row[data-v-e5b5b0bc], .payment-table .table-header .title-cell .cell[data-v-e5b5b0bc], .payment-table .table-header .content-cell .row[data-v-e5b5b0bc], .payment-table .table-header .content-cell .cell[data-v-e5b5b0bc]{padding:%?18?% %?10?%!important}.payment-table .table-header .total-column[data-v-e5b5b0bc]{background-color:rgba(50,186,238,.1)}.payment-table .table-header .total-column .cell[data-v-e5b5b0bc]{color:#2c3e50;font-weight:700}.payment-table .table-content__item[data-v-e5b5b0bc]{transition:background-color .3s ease}.payment-table .table-content__item[data-v-e5b5b0bc]:hover{background-color:#f0f8ff!important}.payment-table .table-content__item .title-cell[data-v-e5b5b0bc]{background-color:rgba(50,186,238,.05);font-weight:600;color:#2c3e50}.payment-table .table-content__item .total-column[data-v-e5b5b0bc]{background-color:rgba(50,186,238,.05)}.payment-table .table-content__item .total-value[data-v-e5b5b0bc]{font-weight:700;font-size:%?24?%}.payment-table .table-content__item .payment-value[data-v-e5b5b0bc]{position:relative;transition:all .3s ease}.payment-table .table-content__item .payment-value[data-v-e5b5b0bc]:not(:empty):not([data-value="0"]):not(:contains("0")){font-weight:600;color:#3a91f8}.empty-data[data-v-e5b5b0bc]{background:rgba(245,247,250,.8);border-radius:%?12?%;box-shadow:inset 0 0 %?10?% rgba(0,0,0,.05);display:flex;flex-direction:column;justify-content:center;align-items:center;padding:%?80?% %?0?%;text-align:center}.empty-data .empty-icon[data-v-e5b5b0bc]{color:#a0cfff!important}.empty-data .empty-icon .tn-icon-info[data-v-e5b5b0bc]{font-size:%?90?%;-webkit-transform:scale(1);transform:scale(1);-webkit-animation:pulse-data-v-e5b5b0bc 2s infinite;animation:pulse-data-v-e5b5b0bc 2s infinite}@keyframes pulse-data-v-e5b5b0bc{0%{-webkit-transform:scale(.95);transform:scale(.95);opacity:.8}70%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(.95);transform:scale(.95);opacity:.8}}.empty-data .empty-text[data-v-e5b5b0bc]{color:#7d8998;font-size:%?30?%;letter-spacing:%?2?%;text-align:center}.customer-analysis[data-v-e5b5b0bc]{display:flex;flex-direction:column;padding:%?20?% %?0?%}.customer-analysis .chart-container[data-v-e5b5b0bc]{height:%?480?%;width:100%}.customer-analysis .customer-summary[data-v-e5b5b0bc]{display:flex;justify-content:space-around;padding:%?30?% %?20?%;margin-top:%?20?%;background:rgba(245,247,250,.5);border-radius:%?12?%}.customer-analysis .customer-summary .summary-item[data-v-e5b5b0bc]{text-align:center;padding:%?10?% %?20?%;border-radius:%?8?%;transition:all .3s}.customer-analysis .customer-summary .summary-item[data-v-e5b5b0bc]:hover{-webkit-transform:translateY(%?-5?%);transform:translateY(%?-5?%);box-shadow:0 %?5?% %?15?% rgba(0,0,0,.08)}.customer-analysis .customer-summary .summary-item .summary-title[data-v-e5b5b0bc]{font-size:%?26?%;color:#666;margin-bottom:%?10?%}.customer-analysis .customer-summary .summary-item .summary-value[data-v-e5b5b0bc]{font-size:%?36?%;font-weight:700;color:#2c3e50}.customer-analysis .customer-summary .summary-item .summary-percent[data-v-e5b5b0bc]{font-size:%?24?%;color:#999;margin-top:%?5?%}.customer-analysis .customer-summary .new-customer .summary-value[data-v-e5b5b0bc]{color:#4b98fe}.customer-analysis .customer-summary .old-customer .summary-value[data-v-e5b5b0bc]{color:#fb6a67}.chart-toggle[data-v-e5b5b0bc]{display:flex;justify-content:space-around;margin-top:%?15?%;margin-bottom:%?15?%}.chart-toggle .toggle-item[data-v-e5b5b0bc]{padding:%?6?% %?15?%;border-radius:%?6?%;background-color:#f0f0f0;cursor:pointer;display:flex;align-items:center;justify-content:center;height:%?36?%;line-height:%?36?%}.chart-toggle .toggle-item .toggle-text[data-v-e5b5b0bc]{margin-left:%?4?%;font-size:%?20?%}.chart-toggle .toggle-item.active[data-v-e5b5b0bc]{background-color:#3a91f8;color:#fff}.safe-area-bottom[data-v-e5b5b0bc]{height:%?100?%;width:100%;display:block}',""]),t.exports=e},aaa3:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[1==t.loadingType?a("Loading1"):t._e(),5==t.loadingType?a("Loading2"):t._e(),3==t.loadingType?a("Loading3"):t._e(),4==t.loadingType?a("Loading4"):t._e(),2==t.loadingType?a("Loading5"):t._e()],1)},i=[]},acb1:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&(0,n.default)(t,e)},a("7a76"),a("c9b5"),a("6a54");var n=function(t){return t&&t.__esModule?t:{default:t}}(a("e668"))},b24b:function(t,e,a){var n=a("ff3a");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("490b1e0b",n,!0,{sourceMap:!1,shadowMode:!1})},b294:function(t,e,a){"use strict";a.r(e);var n=a("3811"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},b4c2:function(t,e,a){"use strict";var n=a("bdbb").default;a("6a54"),a("7a76"),a("c9b5"),a("8a8d"),a("926e"),a("5c47"),a("0506"),a("23f4"),a("7d2f"),a("9c4e"),a("ab80"),Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,a,n){return a&&t(e.prototype,a),n&&t(e,n),e}}(),r=a("0f6d"),o=function(t){return t&&t.__esModule?t:{default:t}}(r),s=a("b802");var l=function(t){function e(t,a){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==n(e)&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,s.A_START_CHAR+t,a))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+n(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"valid",value:function(){return new RegExp("^"+s.A_CHARS+"+$").test(this.data)}}]),e}(o.default);e.default=l},b4d1:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"digital__roller-wrap"},t._l(t.columns,(function(e,n){return a("v-uni-view",{key:n,staticClass:"digital__roller",style:t.getStyles},[a("v-uni-view",{staticClass:"digital__roller-column",style:{transform:"translate3d(0, -"+(t.keys[n]||0)*t.rollHeight+"px, 0)",transitionDuration:t.duration+"s"}},t._l(e,(function(e,n){return a("v-uni-text",{key:n,staticClass:"digital__roller-item",class:{"digital__roller-color":!t.color},style:{color:t.color,fontSize:t.size+"rpx",lineHeight:t.size+"rpx",fontWeight:t.fontWeight,height:t.rollHeight+"px"}},[t._v(t._s(e))])})),1)],1)})),1)},i=[]},b6ea:function(t,e,a){"use strict";a.r(e);var n=a("a3fb2"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},b802:function(t,e,a){"use strict";var n;function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}a("6a54"),Object.defineProperty(e,"__esModule",{value:!0});var r=e.SET_A=0,o=e.SET_B=1,s=e.SET_C=2,l=(e.SHIFT=98,e.START_A=103),c=e.START_B=104,u=e.START_C=105;e.MODULO=103,e.STOP=106,e.FNC1=207,e.SET_BY_CODE=(n={},i(n,l,r),i(n,c,o),i(n,u,s),n),e.SWAP={101:r,100:o,99:s},e.A_START_CHAR=String.fromCharCode(208),e.B_START_CHAR=String.fromCharCode(209),e.C_START_CHAR=String.fromCharCode(210),e.A_CHARS="[\0-_È-Ï]",e.B_CHARS="[ -È-Ï]",e.C_CHARS="(Ï*[0-9]{2}Ï*)",e.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011]},bab9:function(t,e,a){"use strict";var n=a("bdbb").default;a("6a54"),a("7a76"),a("c9b5"),a("8a8d"),a("926e"),Object.defineProperty(e,"__esModule",{value:!0});var i=a("6373"),r=function(t){return t&&t.__esModule?t:{default:t}}(i),o=a("e24c");var s=function(t){function e(t,a){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==n(e)&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,o.mod11)(t),a))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+n(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.default);e.default=s},bcba:function(t,e,a){"use strict";var n=a("06ea"),i=a.n(n);i.a},bcc3:function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,".container[data-v-37562626]{width:30px;height:30px;position:relative}.container.loading5 .shape[data-v-37562626]{width:15px;height:15px}.container .shape[data-v-37562626]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-37562626]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-37562626]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-37562626]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-37562626]{bottom:0;right:0;background-color:#e66}.loading5 .shape1[data-v-37562626]{animation:animation5shape1-data-v-37562626 2s ease 0s infinite reverse}@-webkit-keyframes animation5shape1-data-v-37562626{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(15px);transform:translateY(15px)}50%{-webkit-transform:translate(15px,15px);transform:translate(15px,15px)}75%{-webkit-transform:translate(15px);transform:translate(15px)}}@keyframes animation5shape1-data-v-37562626{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(15px);transform:translateY(15px)}50%{-webkit-transform:translate(15px,15px);transform:translate(15px,15px)}75%{-webkit-transform:translate(15px);transform:translate(15px)}}.loading5 .shape2[data-v-37562626]{animation:animation5shape2-data-v-37562626 2s ease 0s infinite reverse}@-webkit-keyframes animation5shape2-data-v-37562626{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(-15px);transform:translate(-15px)}50%{-webkit-transform:translate(-15px,15px);transform:translate(-15px,15px)}75%{-webkit-transform:translateY(15px);transform:translateY(15px)}}@keyframes animation5shape2-data-v-37562626{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(-15px);transform:translate(-15px)}50%{-webkit-transform:translate(-15px,15px);transform:translate(-15px,15px)}75%{-webkit-transform:translateY(15px);transform:translateY(15px)}}.loading5 .shape3[data-v-37562626]{animation:animation5shape3-data-v-37562626 2s ease 0s infinite reverse}@-webkit-keyframes animation5shape3-data-v-37562626{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(15px);transform:translate(15px)}50%{-webkit-transform:translate(15px,-15px);transform:translate(15px,-15px)}75%{-webkit-transform:translateY(-15px);transform:translateY(-15px)}}@keyframes animation5shape3-data-v-37562626{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(15px);transform:translate(15px)}50%{-webkit-transform:translate(15px,-15px);transform:translate(15px,-15px)}75%{-webkit-transform:translateY(-15px);transform:translateY(-15px)}}.loading5 .shape4[data-v-37562626]{animation:animation5shape4-data-v-37562626 2s ease 0s infinite reverse}@-webkit-keyframes animation5shape4-data-v-37562626{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(-15px);transform:translateY(-15px)}50%{-webkit-transform:translate(-15px,-15px);transform:translate(-15px,-15px)}75%{-webkit-transform:translate(-15px);transform:translate(-15px)}}@keyframes animation5shape4-data-v-37562626{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(-15px);transform:translateY(-15px)}50%{-webkit-transform:translate(-15px,-15px);transform:translate(-15px,-15px)}75%{-webkit-transform:translate(-15px);transform:translate(-15px)}}",""]),t.exports=e},be38:function(t,e,a){"use strict";a.r(e);var n=a("4640"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},bec3:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.deleteMember=s,e.getBalanceList=u,e.getList=o,e.getMemberBalance=l,e.isOpen=r,e.updateMemberBalance=c;var i=n(a("5b42"));function r(t){return i.default.get("api/manage.member.member/isOpen",{params:t})}function o(t){return i.default.get("api/manage.member.member/list",{params:t})}function s(t){return i.default.post("api/manage.member.member/delete",t)}function l(t){return i.default.get("api/manage.member.member/getMemberBalance",{params:t})}function c(t){return i.default.post("api/manage.member.member/updateMemberBalance",t)}function u(t){return i.default.get("api/manage.member.member/balance",{params:t})}var d={isOpen:r,getList:o,deleteMember:s,getMemberBalance:l,updateMemberBalance:c,getBalanceList:u};e.default=d},c094:function(t,e,a){var n=a("73ed");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("bfd9f658",n,!0,{sourceMap:!1,shadowMode:!1})},c1c8:function(t,e,a){"use strict";a.r(e);var n=a("c3a2"),i=a("d7d9");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("bcba");var o=a("828b"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"cad53924",null,!1,n["a"],void 0);e["default"]=s.exports},c249:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.getBubbleChartData=s,e.getLineChartData=o,e.statcenterHome=r;var i=n(a("5b42"));function r(t){return i.default.get("api/manage.statistic.count/info",{params:t})}function o(t){return i.default.get("api/manage.statistic.count/getLineChartData",{params:t})}function s(t){return i.default.get("api/manage.statistic.count/getBubbleChartData",{params:t})}var l={statcenterHome:r,getBubbleChartData:s,getLineChartData:o};e.default=l},c3a2:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n}));var n={tnNavBar:a("3703").default,tnModal:a("2235").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("v-uni-view",{staticClass:"bg_color"}),a("v-uni-view",{staticClass:"bg_content"}),a("v-uni-view",{staticClass:"tangshi"},[a("v-uni-view",{staticClass:"header"},[a("tn-nav-bar",{staticStyle:{color:"#FFFFFF"},attrs:{fixed:!0,beforeBack:t.handleNavBack,backTitle:"",alpha:!0}},[t._v("店内订单管理")]),a("v-uni-view",{staticClass:"header_tabs tn-flex tn-flex-col-center tn-flex-row-between"},[a("v-uni-view",{staticClass:"tabs-item",class:{active:1==t.filter.items.status},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onToggleStatus(1)}}},[a("v-uni-view",{staticClass:"title"},[t._v("待确认")])],1),a("v-uni-view",{staticClass:"tabs-item",class:{active:2==t.filter.items.status},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onToggleStatus(2)}}},[a("v-uni-view",{staticClass:"title"},[t._v("已确认")])],1),a("v-uni-view",{staticClass:"tabs-item",class:{active:5==t.filter.items.status},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onToggleStatus(5)}}},[a("v-uni-view",{staticClass:"title"},[t._v("已完成")])],1),a("v-uni-view",{staticClass:"tabs-item",class:{active:6==t.filter.items.status},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onToggleStatus(6)}}},[a("v-uni-view",{staticClass:"title"},[t._v("已取消")])],1)],1)],1),a("v-uni-view",{staticClass:"center"},[a("v-uni-view",{staticClass:"order_list"},[0===t.tangshiList.length?a("v-uni-view",{staticClass:"no-data"},[a("v-uni-image",{staticClass:"no-data_img",attrs:{src:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/spshop/order_no_con.png"}}),a("v-uni-view",{staticClass:"shuju"},[t._v("暂无数据")])],1):t._e(),t._l(t.tangshiList,(function(e,n){return a("v-uni-view",{key:e.id,staticClass:"order_box"},[a("v-uni-view",{staticClass:"order_box_header",staticStyle:{"border-bottom":"1rpx solid #EBEBEB"}},[a("v-uni-view",{staticClass:"tn-flex",staticStyle:{"justify-content":"space-between","margin-bottom":"15rpx","align-items":"center"}},[a("v-uni-view",{staticClass:"tn-flex",staticStyle:{"align-items":"center"}},[a("v-uni-view",{staticStyle:{"margin-right":"20rpx","font-size":"24px","font-weight":"bold"}},[t._v("#"+t._s(e.serial_sn))]),a("v-uni-view",{staticStyle:{color:"#ffab19","font-size":"14px","margin-right":"20rpx"}},[t._v(t._s(e.addtime_cn))]),e.is_spellrice?a("v-uni-view",{staticStyle:{color:"#33AAFC","font-size":"10px"}},[a("span",{staticStyle:{border:"1rpx solid #33AAFC","border-radius":"4px",padding:"5rpx 15rpx"}},[t._v("拼饭单")])]):t._e()],1),a("v-uni-view",{staticStyle:{"font-size":"14px",color:"#333333","font-weight":"bold"}},[t._v(t._s(e.order_status_cn))])],1),a("v-uni-view",{staticClass:"tn-flex tn-flex-col-center tn-flex-row-between",staticStyle:{"margin-bottom":"20rpx"}},[a("v-uni-view",{staticStyle:{"font-size":"18px"}},[t._v(t._s(e.table_sn)+"号桌,"+t._s(e.person_num)+"人就餐")]),a("v-uni-view",{staticStyle:{"font-size":"10px",color:"#141414"}},["未支付"==e.pay_type_cn?a("v-uni-view",{staticStyle:{padding:"5rpx 15rpx","border-radius":"4px",background:"rgba(250, 67, 76, 1)",color:"#FFFFFF"}},[t._v(t._s(e.pay_type_cn))]):t._e(),"未支付"!=e.pay_type_cn?a("v-uni-view",{staticStyle:{padding:"5rpx 15rpx","border-radius":"4px",background:"rgba(4, 210, 0, 1)",color:"#FFFFFF"}},[t._v(t._s(e.pay_type_cn))]):t._e()],1)],1)],1),a("v-uni-view",{staticClass:"order_box_content",staticStyle:{"margin-top":"20rpx","border-bottom":"1rpx solid #EBEBEB"}},[a("v-uni-view",{staticClass:"order_goods",staticStyle:{"border-radius":"6px",background:"#F5F5F5",width:"100%",padding:"20rpx","margin-bottom":"20rpx"}},t._l(e.goods,(function(e){return a("v-uni-view",{key:e.goods_id,staticClass:"order_good"},[a("v-uni-view",{staticClass:"tn-flex tn-flex-row-between tn-flex-col-center",staticStyle:{"font-size":"16px"}},[a("v-uni-view",{staticStyle:{width:"70%","font-weight":"600"}},[t._v(t._s(e.goods_title.replace(e.goods_options_title,"")))]),a("v-uni-view",[t._v("x"+t._s(e.goods_num))]),a("v-uni-view",[t._v(t._s(t.CurrencyUnit)+t._s(e.goods_price))])],1),e.goods_options_title?a("v-uni-view",{staticStyle:{"font-size":"14px",color:"#03AD00","margin-top":"10rpx"}},[t._v(t._s(e.goods_options_title.slice(1,-1)))]):t._e()],1)})),1),a("v-uni-view",{staticStyle:{"margin-bottom":"20rpx"}},[a("v-uni-view",{staticClass:"tn-flex",staticStyle:{"align-items":"center"}},[a("v-uni-view",{staticStyle:{"font-size":"13px"}},[t._v("备注:")]),a("v-uni-view",{staticStyle:{color:"#ffab19","font-size":"16px"}},[t._v(t._s(e.note?e.note:"无"))])],1)],1),a("v-uni-view",{staticClass:"order_info",staticStyle:{"border-radius":"6px",background:"#F5F5F5",width:"100%",padding:"20rpx","margin-bottom":"20rpx"}},[t.tangshiList[n].isShowinfo?a("v-uni-view",[e.discount_fee>0?a("v-uni-view",{staticClass:"tn-flex tn-margin-bottom-sm",staticStyle:{color:"#666666","font-size":"12px"}},[a("v-uni-view",{staticClass:"tn-text-bold tn-flex-1"},[t._v("线上优惠")]),a("v-uni-view",{staticClass:"tn-text-bold"},[t._v("-"+t._s(t.CurrencyUnit)+t._s(e.discount_fee)+"\n\t\t\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t\t平台:"+t._s(e.plateform_discount_fee>0?-e.plateform_discount_fee:0)+";\n\t\t\t\t\t\t\t\t\t\t代理:"+t._s(e.agent_discount_fee>0?-e.agent_discount_fee:0)+";\n\t\t\t\t\t\t\t\t\t\t店铺:"+t._s(e.store_discount_fee>0?-e.store_discount_fee:0)+"\n\t\t\t\t\t\t\t\t\t\t)")])],1):t._e(),a("v-uni-view",{staticClass:"tn-flex tn-flex-row-between tn-flex-col-center",staticStyle:{"white-space":"nowrap"}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-row-between tn-flex-col-center"},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[t._v("配送费")]),a("v-uni-view",[t._v(t._s(t.CurrencyUnit)+t._s(e.delivery_fee))])],1),a("v-uni-view",[t._v("|")]),a("v-uni-view",{staticClass:"tn-flex tntn-flex-row-between tn-flex-col-center"},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[t._v("餐盒费")]),a("v-uni-view",[t._v(t._s(t.CurrencyUnit)+t._s(e.box_price))])],1),a("v-uni-view",[t._v("|")]),a("v-uni-view",{staticClass:"tn-flex tn-flex-row-between tn-flex-col-center"},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[t._v("包装费")]),a("v-uni-view",[t._v(t._s(t.CurrencyUnit)+t._s(e.pack_fee))])],1),a("v-uni-view",[t._v("|")]),a("v-uni-view",{staticClass:"tn-flex tn-flex-row-between tn-flex-col-center"},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[t._v("餐具")]),a("v-uni-view",[t._v(t._s(e.person_num)+"套")])],1)],1),a("v-uni-view",{staticClass:"tn-flex tn-margin-top-xs",staticStyle:{position:"relative"}},[t.tangshiList[n].isShowCommission?a("v-uni-view",{staticClass:"commission_details_body"},[a("v-uni-view",{staticClass:"commission_details_content",staticStyle:{"font-size":"12px",padding:"10rpx"}},[t._v(t._s(e.plateform_serve.note))]),a("v-uni-view",{staticClass:"commission_details"})],1):t._e(),a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[a("v-uni-view",{staticClass:"tn-flex tn-flex-col-center",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleCommission(n)}}},[t._v("平台抽取佣金"),a("v-uni-text",{staticClass:"tn-icon-tip"})],1)],1),a("v-uni-view",[t._v("-"+t._s(t.CurrencyUnit)+t._s(e.platform_income))])],1),e.data?a("v-uni-view",[t._l(e.data.extra_fee,(function(n){return e.data.extra_fee.length>0?a("v-uni-view",{staticClass:"tn-flex tn-margin-top-xs"},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[t._v(t._s(n.name)+"(归平台)")]),a("v-uni-view",[t._v(t._s(t.CurrencyUnit)+t._s(n.fee))])],1):t._e()})),t._l(e.data.store_extra_fee,(function(n){return e.data.store_extra_fee.length>0?a("v-uni-view",{staticClass:"tn-flex tn-margin-top-xs"},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[t._v(t._s(n.name)+"(归商户)")]),a("v-uni-view",[t._v(t._s(t.CurrencyUnit)+t._s(n.fee))])],1):t._e()}))],2):t._e(),a("v-uni-view",{staticClass:"tn-flex tn-margin-top-xs"},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[t._v("平台配送费")]),a("v-uni-view",[t._v("-"+t._s(t.CurrencyUnit)+t._s(e.delivery_fee))])],1),a("v-uni-view",{staticClass:"tn-flex tn-margin-top-xs"},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[t._v("商户优惠活动")]),a("v-uni-view",[t._v("-"+t._s(t.CurrencyUnit)+t._s(e.store_discount_fee))])],1),a("v-uni-view",{staticClass:"tn-flex tn-margin-top-xs"},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[t._v("平台补贴")]),a("v-uni-view",[t._v("+"+t._s(t.CurrencyUnit)+t._s(e.plateform_discount_fee))])],1),e.spread_commission>0?a("v-uni-view",{staticClass:"tn-flex tn-margin-top-xs"},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[t._v("推广佣金")]),a("v-uni-view",[t._v("-"+t._s(t.CurrencyUnit)+t._s(e.spread_commission))])],1):t._e(),e.discount&&e.discount.length>0?a("v-uni-view",{staticClass:"tn-flex tn-margin-top-xs"},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[t._v("订单退款")]),a("v-uni-view",[t._v("-"+t._s(t.CurrencyUnit)+t._s(e.refund_fee))])],1):t._e(),a("v-uni-view",{staticClass:"tn-flex tn-margin-top-xs"},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#666666","font-size":"12px"}},[t._v("顾客实际支付")]),a("v-uni-view",[t._v(t._s(t.CurrencyUnit)+t._s(e.final_fee))])],1)],1):t._e(),a("v-uni-view",{staticClass:"tn-flex tn-margin-top-xs",staticStyle:{"font-weight":"bold"}},[a("v-uni-view",{staticClass:"tn-flex-1",staticStyle:{color:"#FA434C","font-size":"16px"}},[t._v("商家预计收入")]),a("v-uni-view",{staticStyle:{color:"#FA434C","font-size":"20px"}},[t._v(t._s(t.CurrencyUnit)+t._s(e.store_final_fee))])],1),a("v-uni-view",{staticClass:"hx tn-margin-top-xs"}),t.tangshiList[n].isShowinfo?t._e():a("v-uni-view",{staticClass:"oppen tn-flex tn-flex-col-center tn-margin-top-xs",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showInfo(n)}}},[t._v("展开"),a("v-uni-text",{staticClass:"tn-icon-down-double"})],1),t.tangshiList[n].isShowinfo?a("v-uni-view",{staticClass:"close tn-flex tn-flex-col-center tn-margin-top-xs",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showInfo(n)}}},[t._v("收起"),a("v-uni-text",{staticClass:"tn-icon-up-double"})],1):t._e()],1)],1),a("v-uni-view",{staticClass:"order_box_footer tn-flex",staticStyle:{"margin-top":"20rpx","justify-content":"space-between","align-items":"center","font-size":"13px"}},[t.tangshiList[n].isShowOptions?a("v-uni-view",{staticClass:"bubble_body"},[a("v-uni-view",{staticClass:"bubble-content",on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.closePopupModal.apply(void 0,arguments)}}},[0==e.is_pay?a("v-uni-view",{staticClass:"tn-strip-bottom-min",staticStyle:{padding:"10rpx"}},[a("v-uni-view",{on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.clickUpdateStatus(e.id,"pay_status","确认设为已支付吗")}}},[t._v("设为已支付")])],1):t._e(),1==e.is_pay&&5!==e.status?a("v-uni-view",[a("v-uni-view",{staticStyle:{padding:"10rpx","text-align":"center"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.clickUpdateStatus(e.id,"cancel","确认取消并退款吗")}}},[t._v("取消并退款")])],1):6!=e.status&&5!==e.status?a("v-uni-view",[a("v-uni-view",{staticStyle:{padding:"10rpx","text-align":"center"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickUpdateStatus(n,"cancel_refund","确认取消订单吗")}}},[t._v("取消")])],1):t._e()],1),a("v-uni-view",{staticClass:"bubble"})],1):t._e(),a("v-uni-view",{staticClass:"tn-flex",staticStyle:{"text-align":"center",color:"#989898"}},[a("v-uni-view",{staticStyle:{"text-align":"center",color:"#989898","margin-right":"20rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleOptions(n)}}},[a("v-uni-text",{staticClass:"tn-icon-menu-alone-fill",staticStyle:{"font-size":"20px"}}),a("v-uni-view",{staticStyle:{"font-size":"13px"}},[t._v("更多")])],1)],1),a("v-uni-view",{staticClass:"tn-flex"},[1==e.status?a("v-uni-view",[a("v-uni-view",{staticStyle:{"font-size":"14px",color:"#FFFFFF","border-radius":"6px",padding:"10rpx 20rpx","background-color":"#FF791A","margin-right":"20rpx"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.clickUpdateStatus(e.id,"handle","是否确认订单")}}},[t._v("订单确认")])],1):2==e.status?a("v-uni-view",[a("v-uni-view",{staticStyle:{"font-size":"14px",color:"#FFFFFF","border-radius":"6px",padding:"10rpx 20rpx","background-color":"#FF791A","margin-right":"20rpx"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.clickUpdateStatus(e.id,"end","确认订单完成吗")}}},[t._v("订单完成")])],1):t._e(),a("v-uni-view",[a("v-uni-view",{staticStyle:{"font-size":"14px",color:"#FFFFFF","border-radius":"6px",padding:"10rpx 20rpx","background-color":"#33AAFC"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.tn("/pages/order/refund/detail?id="+e.id)}}},[t._v("订单详细")])],1)],1)],1)],1)}))],2)],1),a("tn-modal",{staticStyle:{"text-align":"center"},attrs:{custom:!0},model:{value:t.popupShow,callback:function(e){t.popupShow=e},expression:"popupShow"}},[a("v-uni-view",{staticStyle:{}},[t._v("温馨提示")]),a("v-uni-view",{staticClass:"tn-margin-top",staticStyle:{}},[t._v(t._s(t.msg))]),a("v-uni-view",{staticClass:"tn-flex tn-margin-top tn-flex-row-between"},[a("v-uni-view",{staticClass:"tn-btn-class tn-btn tn-round",staticStyle:{padding:"9px 12px","font-size":"11px",width:"45%",color:"rgb(255, 255, 255)","background-color":"rgb(230, 230, 230)"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.popupShow=!1}}},[t._v("取消")]),a("v-uni-view",{staticClass:"tn-btn-class tn-btn tn-round tn-bg-indigo",staticStyle:{padding:"9px 12px","font-size":"11px",width:"45%",color:"rgb(255, 255, 255)"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onUpdateOrderStatus(t.updateIndex,t.type)}}},[t._v("确认")])],1)],1)],1)],1)},r=[]},c3df:function(t,e,a){"use strict";var n=a("14e8"),i=a.n(n);i.a},c4e7:function(t,e,a){var n=a("7754");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("d46e5df2",n,!0,{sourceMap:!1,shadowMode:!1})},c54e:function(t,e,a){var n=a("e8ea");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("0973812e",n,!0,{sourceMap:!1,shadowMode:!1})},c5bc:function(t,e,a){"use strict";var n=a("bdbb").default;a("6a54"),a("7a76"),a("c9b5"),a("8a8d"),a("926e"),a("71cb"),a("f18a"),Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,a,n){return a&&t(e.prototype,a),n&&t(e,n),e}}(),r=a("e0cb"),o=a("c77a"),s=u(o),l=a("822a"),c=u(l);function u(t){return t&&t.__esModule?t:{default:t}}var d=function(t){function e(t,a){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==n(e)&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,a));return i.fontSize=!a.flat&&a.fontSize>10*a.width?10*a.width:a.fontSize,i.guardHeight=a.height+i.fontSize/2+a.textMargin,i}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+n(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(t,e){return this.text.substr(t,e)}},{key:"leftEncode",value:function(t,e){return(0,s.default)(t,e)}},{key:"rightText",value:function(t,e){return this.text.substr(t,e)}},{key:"rightEncode",value:function(t,e){return(0,s.default)(t,e)}},{key:"encodeGuarded",value:function(){var t={fontSize:this.fontSize},e={height:this.guardHeight};return[{data:r.SIDE_BIN,options:e},{data:this.leftEncode(),text:this.leftText(),options:t},{data:r.MIDDLE_BIN,options:e},{data:this.rightEncode(),text:this.rightText(),options:t},{data:r.SIDE_BIN,options:e}]}},{key:"encodeFlat",value:function(){var t=[r.SIDE_BIN,this.leftEncode(),r.MIDDLE_BIN,this.rightEncode(),r.SIDE_BIN];return{data:t.join(""),text:this.text}}}]),e}(c.default);e.default=d},c66b:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.MSI1110=e.MSI1010=e.MSI11=e.MSI10=e.MSI=void 0;var n=a("6373"),i=h(n),r=a("a96e"),o=h(r),s=a("bab9"),l=h(s),c=a("e327"),u=h(c),d=a("097f"),f=h(d);function h(t){return t&&t.__esModule?t:{default:t}}e.MSI=i.default,e.MSI10=o.default,e.MSI11=l.default,e.MSI1010=u.default,e.MSI1110=f.default},c6ed:function(t,e,a){"use strict";a.r(e);var n=a("c94a"),i=a("453d");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("c3df");var o=a("828b"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"52ee05d6",null,!1,n["a"],void 0);e["default"]=s.exports},c77a:function(t,e,a){"use strict";a("6a54"),a("fd3c"),Object.defineProperty(e,"__esModule",{value:!0});var n=a("e0cb");e.default=function(t,e,a){var i=t.split("").map((function(t,a){return n.BINARIES[e[a]]})).map((function(e,a){return e?e[t[a]]:""}));if(a){var r=t.length-1;i=i.map((function(t,e){return e<r?t+a:t}))}return i.join("")}},c92c:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("64aa"),a("5ef2"),a("aa9c"),a("3efd"),a("bf0f"),a("de6c");var n={name:"digital-roller",props:{value:{type:[Number,String],default:""},color:{type:String,default:""},size:{type:[Number,String],default:32},fontWeight:{type:[Number,String],default:400},width:{type:[Number,String],default:0},height:{type:[Number,String],default:32},duration:{type:[Number,String],default:1.2}},computed:{getStyles:function(){var t="height:".concat(this.rollHeight,"px;");return this.width&&0!=this.width&&(t+="width:".concat(this.width,"rpx;")),t},getColor:function(){var t=this.color;return t}},watch:{value:function(t){this.initColumn(this.value)},height:function(t){this.initHeight(t)}},data:function(){return{columns:[],keys:[],rollHeight:0,rows:["0","1","2","3","4","5","6","7","8","9"]}},created:function(){this.initHeight(this.height),this.initColumn(this.value)},methods:{initHeight:function(t){var e=Math.floor(uni.upx2px(t||0));e=e%2===0?e:e+1,this.rollHeight=e},initColumn:function(t){t+="";for(var e=t.split(""),a=e.length,n=[],i=0;i<a;i++)~this.rows.indexOf(e[i])?n.push(this.rows):n.push([e[i]]);this.columns=n,this.startRoll(e)},startRoll:function(t){var e=this.columns.length,a=[];while(t.length){var n=t.pop();~this.rows.indexOf(n)?a.unshift(Number(n)):a.unshift(0)}while(a.length<e)a.unshift(0);this.keys=a}}};e.default=n},c94a:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"tn-list-cell-class tn-list-cell",class:[t.backgroundColorClass,t.fontColorClass,t.cellClass],style:[t.cellStyle],attrs:{"hover-class":t.hover?"tn-hover":"","hover-stay-time":150},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleClick.apply(void 0,arguments)}}},[t._t("default")],2)},i=[]},cad9:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=(0,i.default)();return function(){var a,i=(0,n.default)(t);if(e){var o=(0,n.default)(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return(0,r.default)(this,a)}},a("6a88"),a("bf0f"),a("7996");var n=o(a("f1f8")),i=o(a("6c31")),r=o(a("62b0"));function o(t){return t&&t.__esModule?t:{default:t}}},cd9c:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.CODE128C=e.CODE128B=e.CODE128A=e.CODE128=void 0;var n=a("e2af"),i=d(n),r=a("b4c2"),o=d(r),s=a("948a"),l=d(s),c=a("9ad2"),u=d(c);function d(t){return t&&t.__esModule?t:{default:t}}e.CODE128=i.default,e.CODE128A=o.default,e.CODE128B=l.default,e.CODE128C=u.default},ce26:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0});var n=a("f22c"),i=a("cd9c"),r=a("ea42"),o=a("43d1"),s=a("c66b"),l=a("e832"),c=a("3c89"),u=a("10dd");e.default={CODE39:n.CODE39,CODE128:i.CODE128,CODE128A:i.CODE128A,CODE128B:i.CODE128B,CODE128C:i.CODE128C,EAN13:r.EAN13,EAN8:r.EAN8,EAN5:r.EAN5,EAN2:r.EAN2,UPC:r.UPC,UPCE:r.UPCE,ITF14:o.ITF14,ITF:o.ITF,MSI:s.MSI,MSI10:s.MSI10,MSI11:s.MSI11,MSI1010:s.MSI1010,MSI1110:s.MSI1110,PHARMACODE:l.pharmacode,CODABAR:c.codabar,GENERICBARCODE:u.GenericBarcode}},cf4e:function(t,e,a){"use strict";var n=a("3bec"),i=a.n(n);i.a},cf9e:function(t,e,a){"use strict";a.r(e);var n=a("775d"),i=a("d419");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);var o=a("3532");for(var r in o)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return o[t]}))}(r);a("658a");var s=a("828b");i["default"].__module="rdcharts";var l=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"3dd6a45f",null,!1,n["a"],i["default"]);e["default"]=l.exports},d0c5:function(t,e,a){var n=a("13d2");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("565e6516",n,!0,{sourceMap:!1,shadowMode:!1})},d2c4:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=o,a("6a88"),a("bf0f"),a("7996"),a("aa9c");var n=r(a("e668")),i=r(a("6c31"));function r(t){return t&&t.__esModule?t:{default:t}}function o(t,a,r){return(0,i.default)()?e.default=o=Reflect.construct.bind():e.default=o=function(t,e,a){var i=[null];i.push.apply(i,e);var r=Function.bind.apply(t,i),o=new r;return a&&(0,n.default)(o,a.prototype),o},o.apply(null,arguments)}},d30d:function(t,e,a){"use strict";a.r(e);var n=a("3228"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},d419:function(t,e,a){"use strict";a.r(e);var n=a("faef"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},d441:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")},a("5ef2"),a("c9b5"),a("bf0f"),a("ab80")},d52c:function(t,e,a){"use strict";var n=a("c54e"),i=a.n(n);i.a},d7d9:function(t,e,a){"use strict";a.r(e);var n=a("0832"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},d9e8:function(t,e,a){"use strict";a.r(e);var n=a("aaa3"),i=a("ff75");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);var o=a("828b"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"3f4d8090",null,!1,n["a"],void 0);e["default"]=s.exports},db04:function(t,e,a){"use strict";var n=a("bb80"),i=a("c435"),r=a("9e70"),o=a("f298"),s=a("862c"),l=n(o),c=n("".slice),u=Math.ceil,d=function(t){return function(e,a,n){var o,d,f=r(s(e)),h=i(a),p=f.length,v=void 0===n?" ":r(n);return h<=p||""===v?f:(o=h-p,d=l(v,u(o/v.length)),d.length>o&&(d=c(d,0,o)),t?f+d:d+f)}};t.exports={start:d(!1),end:d(!0)}},db0e:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"u-mask",class:{"u-mask-zoom":t.zoom,"u-mask-show":t.show},style:[t.maskStyle,t.zoomStyle],attrs:{"hover-stop-propagation":!0},on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),function(){}.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.click.apply(void 0,arguments)}}},[t._t("default")],2)},i=[]},dbb2:function(t,e,a){var n=a("5bf6");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("6754f1c6",n,!0,{sourceMap:!1,shadowMode:!1})},dfeb:function(t,e,a){var n=a("eea8");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("ef07e41c",n,!0,{sourceMap:!1,shadowMode:!1})},dfff:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("8f71"),a("bf0f"),a("e838"),a("f7a5"),a("d4b5"),a("fd3c"),a("c223"),a("795c"),a("c9b5"),a("ab80"),a("4626"),a("5ac7"),a("bd06"),a("2797"),a("e966");var i=n(a("9b1b")),r=n(a("2634")),o=n(a("2fdc")),s=n(a("39d8")),l=n(a("c249")),c=n(a("05d8")),u={data:function(){var t,e=new Date;return t={datePicker:{start:this.formatDate(e),end:this.formatDate(e)},calenderStartShow:!1,calenderEndShow:!1,order_records:[],member_total:"",isshow:!1,tableColumn:[{id:"total_success",name:"人数"},{id:"total_success_order",name:"比例(%)"}],CommodityStatistics:[{id:"goods_title",name:"商品名称"},{id:"total_goods_num",name:"销量"},{id:"total_goods_price",name:"销售额"}],channelStatistics:[{id:"order_channel",name:"订单渠道 "},{id:"total_fee",name:"销售额"},{id:"orders_num",name:"订单数"}],timeSS:[{id:"final_fee",name:"营业额"},{id:"total_success_order",name:"交易笔数(笔)"},{id:"store_final_fee",name:"实收金额"}],tableColumned:[{id:"total_fee",name:"总额"},{id:"waimai_fee",name:"外卖"},{id:"ziti_fee",name:"自提"},{id:"diancan_fee",name:"店内"},{id:"madan_fee",name:"买单"}],min:60,max:100,titleWidth:200,contentWidth:250,days:0,statm:{},stat:(0,s.default)({total:0,total_fee:0,net_receipts:0,final_fee:0,store_final_fee:0,total_success_order:0,total_cancel_order:0,total_cancel_fee:0,avg_pre_order:0,total_scan:0,total_pay:0,percent_success:0,total_success_new:0,total_success_old:0,total_success_new_percent:0,total_success_old_percent:0,rate:50},"net_receipts",0),todayStat:{final_fee:0,store_final_fee:0,total_success_order:0,total_scan:0,total_pay:0,percent_success:0}},(0,s.default)(t,"member_total",0),(0,s.default)(t,"paytypes",[]),(0,s.default)(t,"goods_records",[]),(0,s.default)(t,"channels",[]),(0,s.default)(t,"statcenter_title","营业额"),(0,s.default)(t,"statcenter_type","total_fee"),(0,s.default)(t,"investChartData",{}),(0,s.default)(t,"investOpts",{dataPointShape:!1,color:["#4B98FE","#00D05E","#FFAC00","#FB6A67","#957BFE","#00B9FE","#FE871B","#00C8B0","#F674D6"],padding:[15,15,0,15],dataLabel:!0,enableScroll:!0,xAxis:{disableGrid:!0,boundaryGap:"center",scrollShow:!0,itemCount:5},yAxis:{gridColor:"rgba(230,230,230,0.6)",disabled:!1,disableGrid:!1,gridType:"dash",dashLength:"4",data:[{axisLineColor:"#FFFFFF"}]},legend:{show:!1,position:"top",float:"right"},extra:{area:{type:"curve",opacity:.9,addLine:!0,width:2,gradient:!0}}}),(0,s.default)(t,"flowChartData",{}),(0,s.default)(t,"flowOpts",{color:["#4B98FE","#00D05E","#FFAC00","#FB6A67","#957BFE","#00B9FE","#FE871B","#00C8B0","#F674D6"],padding:[15,15,0,15],dataLabel:!0,xAxis:{disableGrid:!0,splitNumber:4,max:50},yAxis:{gridColor:"rgba(230,230,230,0.6)",disabled:!1,disableGrid:!1,gridType:"dash",dashLength:"4",data:[{axisLineColor:"#FFFFFF",max:150}]},legend:{show:!0,position:"top",float:"right"},extra:{bubble:{border:.4,opacity:.5}}}),(0,s.default)(t,"customerChartData",{}),(0,s.default)(t,"customerOpts",{color:["#4B98FE","#FB6A67"],padding:[5,5,5,5],dataLabel:!0,legend:{show:!0,position:"right",lineHeight:25,fontSize:12,itemGap:12},extra:{pie:{activeOpacity:.9,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF"}}}),(0,s.default)(t,"goodsDisplayMode","table"),(0,s.default)(t,"goodsChartOpts",{dataPointShape:!1,color:["#4B98FE","#00D05E","#FFAC00","#FB6A67","#957BFE","#00B9FE","#FE871B","#00C8B0","#F674D6"],padding:[15,15,0,15],dataLabel:!0,enableScroll:!0,xAxis:{disableGrid:!0,boundaryGap:"center",scrollShow:!0,itemCount:5},yAxis:{gridColor:"rgba(230,230,230,0.6)",disabled:!1,disableGrid:!1,gridType:"dash",dashLength:"4",data:[{axisLineColor:"#FFFFFF"}]},legend:{show:!1,position:"top",float:"right"},extra:{area:{type:"curve",opacity:.9,addLine:!0,width:2,gradient:!0}}}),(0,s.default)(t,"goodsChartData",{}),(0,s.default)(t,"channelDisplayMode","chart"),t},computed:{tableStyle:function(){return{"--min-width":this.contentWidth/2+"px","--min-height":this.min+"px","--max-height":this.max+"px","--title-width":this.titleWidth/2+"px"}},filteredPaytypes:function(){var t=this;return this.paytypes.filter((function(e){var a=t.tableColumned.some((function(a,n){var i=t.getPaymentValue(e,a.id,n);return 0!==parseFloat(i)}));return a}))},filteredTableColumned:function(){var t=this;return this.tableColumned.filter((function(e,a){var n=t.filteredPaytypes.some((function(n){var i=t.getPaymentValue(n,e.id,a);return 0!==parseFloat(i)}));return n}))},filteredCommodityStatistics:function(){return this.CommodityStatistics.slice(0,10)},filteredGoodsRecords:function(){return this.goods_records?this.goods_records.slice(0,10):[]},filteredChannelStatistics:function(){return this.channelStatistics.slice(0,10)},filteredChannelColumns:function(){return this.channelStatistics.filter((function(t,e){return e>0}))},filteredChannels:function(){var t=this;return this.channels?this.channels.filter((function(e){return t.filteredChannelColumns.some((function(t){var a=parseFloat(e[t.id])||0;return 0!==a}))})).slice(0,10):[]},hasOverviewData:function(){return this.investChartData&&this.investChartData.series&&this.investChartData.series.length>0&&this.investChartData.series[0].data&&this.investChartData.series[0].data.some((function(t){return parseFloat(t)>0}))},hasChannelData:function(){return this.flowChartData&&this.flowChartData.series&&this.flowChartData.series.length>0},hasCustomerData:function(){return this.statm&&(parseFloat(this.statm.total_success_new)>0||parseFloat(this.statm.total_success_old)>0)}},onPullDownRefresh:function(){this.getList(),uni.stopPullDownRefresh()},methods:{diyOnShow:function(){this.datePicker.start=this.formatDate("start"),this.datePicker.end=this.formatDate("end"),this.onRibao(0)},getList:function(){var t=this;return(0,o.default)((0,r.default)().mark((function e(){var a,n,i;return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t,n=t.util.getStorageSync("__sid"),e.prev=2,e.next=5,l.default.statcenterHome({days:a.days,stat_day:a.datePicker,sid:n});case 5:i=e.sent,i&&(console.log("============ 数据概览统计 ============"),console.log("原始统计数据:",i.data),a.member_total=i.data.member_total,a.paytypes=i.data.paytypes,a.goods_records=i.data.goods_records,a.order_records=i.data.order_records,a.stat=i.data.stat,a.statm=i.data.statm,t.updateCustomerChart(),t.generateGoodsChartData(),t.getLineChartData(),t.getBubbleChartData()),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](2),console.error("获取数据概览失败:",e.t0);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})))()},getLineChartData:function(){var t=this,e=this,a=this.util.getStorageSync("__sid");l.default.getLineChartData({days:e.days,stat_day:e.datePicker,statcenter_type:e.statcenter_type,sid:a}).then((function(a){var n=a.data,i={categories:n.dates,series:[{name:e.statcenter_title,data:n.data,legendShape:"circle",linearColor:[[0,"#FFAC00"],[.25,"#FE871B"],[.5,"#FB6A67"],[.75,"#F674D6"],[1,"#957BFE"]]}]};t.investChartData=JSON.parse(JSON.stringify(i))}))},getBubbleChartData:function(){var t=this,e=this.util.getStorageSync("__sid");l.default.getBubbleChartData({days:this.days,stat_day:this.datePicker,sid:e}).then((function(e){var a=e.data;console.log("============ 渠道统计数据分析 ============"),console.log("原始数据:",a),console.log("数据概览统计值:",t.stat),a.channels&&a.channels.length>0?(console.log("第一条渠道记录:",a.channels[0]),t.channels=a.channels.map((function(t){return(0,i.default)((0,i.default)({},t),{},{order_channel:t.order_channel||"未知渠道",total_fee:void 0!==t.total_fee?t.total_fee:0,orders_num:void 0!==t.orders_num?t.orders_num:0})}))):(console.warn("没有找到渠道数据"),t.channels=[]),t.compareStatData();var n={series:a.chartData};t.flowOpts.xAxis.max=a.bubbleOpts.xMax,t.flowOpts.yAxis.data[0].max=a.bubbleOpts.yMax,t.flowChartData=JSON.parse(JSON.stringify(n))})).catch((function(t){console.error("获取渠道统计数据出错:",t)}))},onOverView:function(t,e){this.statcenter_title=e,this.statcenter_type=t,this.getLineChartData()},handleStartDateChange:function(t){this.datePicker.start=t.date,this.checkDateOrder()},handleEndDateChange:function(t){this.datePicker.end=t.date,this.checkDateOrder()},checkDateOrder:function(){this.datePicker.end<this.datePicker.start&&this.swapDates(),console.log("自定义时间范围确认: ".concat(this.datePicker.start," 至 ").concat(this.datePicker.end)),this.getList()},swapDates:function(){var t=this.datePicker.start;this.datePicker.start=this.datePicker.end,this.datePicker.end=t,c.default.$toast("结束时间早于开始时间,已自动交换。","",1e3)},onRibao:function(t){var e,a=new Date,n=this.formatDate(a);switch(t){case 0:e=this.formatDate(new Date(a.getTime()));break;case 7:e=this.formatDate(new Date(a.getTime()-6048e5));break;case 30:e=this.formatDate(new Date(a.getTime()-2592e6));break;default:e=n}console.log("切换到".concat(0===t?"日报":7===t?"周报":30===t?"月报":"自定义","模式")),console.log("时间范围: ".concat(e," 至 ").concat(n)),this.days=t,this.datePicker.start=e,this.datePicker.end=n,this.getList()},getstatisticinfo:function(t){var e=this;c.default.request({url:"manage/statcenter/statisticcount",data:{days:this.days,stat_day:this.datePicker}}).then((function(t){e.goods_records=t.goods_records,e.order_records=t.order_records,e.stat=t.stat,e.member_total=t.member_total}))},formatDate:function(t){var e=new Date(t),a=e.getFullYear(),n=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0");return"".concat(a,"-").concat(n,"-").concat(i)},handleNavBack:function(){uni.navigateBack({delta:1})},getPaymentValue:function(t,e,a){var n=t[e]||t.total_fee||"";if("string"===typeof n&&n.includes("/")){var i=n.split("/");return i[a]||"0"}return 0===a&&n||"0"},getRowTotal:function(t,e){var a=this,n=this.tableColumned.findIndex((function(e){return e.id===t})),i=0;return this.filteredPaytypes.forEach((function(e){var r=a.getPaymentValue(e,t,n),o=parseFloat(r)||0;i+=o})),i.toFixed(2)},updateCustomerChart:function(){var t={series:[{name:"新客户",data:this.statm.total_success_new||0,format:"新客户:{value} 人 ({percent}%)"},{name:"老客户",data:this.statm.total_success_old||0,format:"老客户:{value} 人 ({percent}%)"}]};this.customerChartData=JSON.parse(JSON.stringify(t))},compareStatData:function(){if(this.channels&&this.stat){var t=0,e=0;this.channels.forEach((function(a){t+=parseFloat(a.total_fee)||0,e+=parseInt(a.orders_num)||0})),console.log("============ 数据对比分析 ============"),console.log("渠道销售额合计: ".concat(t.toFixed(2))),console.log("概览销售额: ".concat(this.stat.total_fee)),console.log("渠道订单数合计: ".concat(e)),console.log("概览订单数: ".concat(this.stat.total_success_order));var a=Math.abs(t-parseFloat(this.stat.total_fee||0)),n=Math.abs(e-parseInt(this.stat.total_success_order||0));console.log("销售额差异: ".concat(a.toFixed(2))),console.log("订单数差异: ".concat(n)),(a>1||n>1)&&(console.warn("⚠️ 渠道统计与概览数据存在明显差异,可能原因:"),console.warn("1. API返回的渠道数据不完整,只包含部分渠道"),console.warn("2. getBubbleChartData接口与statcenterHome接口数据来源不同"),console.warn("3. 统计逻辑计算方式不同"),console.warn("4. 日期范围过滤有问题"))}},switchGoodsDisplayMode:function(t){this.goodsDisplayMode=t,"chart"===t&&this.generateGoodsChartData()},generateGoodsChartData:function(){if(this.goods_records&&0!==this.goods_records.length){var t=this.filteredGoodsRecords,e=t.map((function(t){return t.goods_title?t.goods_title.length>6?t.goods_title.substring(0,6)+"...":t.goods_title:"未知商品"})),a=t.map((function(t){return parseFloat(t.total_goods_num)||0})),n=t.map((function(t){return parseFloat(t.total_goods_price)||0}));this.goodsChartData={categories:e,series:[{name:"销量",data:a,format:"销量: {value}"},{name:"销售额",data:n,format:"销售额: {value}"}]},this.goodsChartOpts=(0,i.default)((0,i.default)({},this.goodsChartOpts),{},{color:["#4B98FE","#FB6A67"],padding:[15,15,0,15],dataLabel:!1,yAxis:{data:[{calibration:!0,axisLine:!0,axisLineColor:"#cccccc",format:"value"}]},xAxis:{disabled:!1,disableGrid:!0,boundaryGap:!0,scrollShow:!0,itemCount:5,axisLine:!0,axisLineColor:"#cccccc"},extra:{bar:{type:"group",width:30,meterBorder:1,meterFillColor:"#FFFFFF",activeBgColor:"#000000",activeBgOpacity:.08,barBorderRadius:[5,5,5,5]}}})}else this.goodsChartData={}},switchChannelDisplayMode:function(t){this.channelDisplayMode=t,"chart"===t&&this.getBubbleChartData()}}};e.default=u},e062:function(t,e,a){"use strict";var n=a("8bdb");n({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},e0cb:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0});e.SIDE_BIN="101",e.MIDDLE_BIN="01010",e.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},e.EAN2_STRUCTURE=["LL","LG","GL","GG"],e.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],e.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]},e24c:function(t,e,a){"use strict";a("6a54"),a("e966"),Object.defineProperty(e,"__esModule",{value:!0}),e.mod10=function(t){for(var e=0,a=0;a<t.length;a++){var n=parseInt(t[a]);(a+t.length)%2===0?e+=n:e+=2*n%10+Math.floor(2*n/10)}return(10-e%10)%10},e.mod11=function(t){for(var e=0,a=[2,3,4,5,6,7],n=0;n<t.length;n++){var i=parseInt(t[t.length-1-n]);e+=a[n%a.length]*i}return(11-e%11)%11}},e2af:function(t,e,a){"use strict";var n=a("bdbb").default;a("6a54"),a("7a76"),a("c9b5"),a("8a8d"),a("5c47"),a("0506"),a("926e"),Object.defineProperty(e,"__esModule",{value:!0});var i=a("0f6d"),r=l(i),o=a("1c99"),s=l(o);function l(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==n(e)&&"function"!==typeof e?t:e}var u=function(t){function e(t,a){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(t))var n=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,s.default)(t),a));else n=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,a));return c(n)}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+n(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.default);e.default=u},e2bd:function(t,e,a){"use strict";var n=a("bdbb").default;a("6a54"),a("9a2c"),a("926e"),a("7a76"),a("c9b5"),a("8a8d"),a("473f"),a("bf0f"),a("fd3c"),a("5c47"),a("af8f"),Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,a,n){return a&&t(e.prototype,a),n&&t(e,n),e}}(),r=function t(e,a,n){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,a);if(void 0===i){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,a,n)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(n):void 0},o=a("c5bc"),s=function(t){return t&&t.__esModule?t:{default:t}}(o);var l=function(t){var e=t.substr(0,7).split("").map((function(t){return+t})).reduce((function(t,e,a){return a%2?t+e:t+3*e}),0);return(10-e%10)%10},c=function(t){function e(t,a){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{7}$/)&&(t+=l(t)),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==n(e)&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,a))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+n(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{8}$/)&&+this.data[7]===l(this.data)}},{key:"leftText",value:function(){return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var t=this.data.substr(0,4);return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,t,"LLLL")}},{key:"rightText",value:function(){return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var t=this.data.substr(4,4);return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,t,"RRRR")}}]),e}(s.default);e.default=c},e327:function(t,e,a){"use strict";var n=a("bdbb").default;a("6a54"),a("7a76"),a("c9b5"),a("8a8d"),a("926e"),Object.defineProperty(e,"__esModule",{value:!0});var i=a("6373"),r=function(t){return t&&t.__esModule?t:{default:t}}(i),o=a("e24c");var s=function(t){function e(t,a){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t+=(0,o.mod10)(t),t+=(0,o.mod10)(t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==n(e)&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,a))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+n(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.default);e.default=s},e35e:function(t,e,a){"use strict";a.r(e);var n=a("9041"),i=a("236d");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("8d53");var o=a("828b"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"a36a53a8",null,!1,n["a"],void 0);e["default"]=s.exports},e370:function(t,e,a){"use strict";var n=a("750c"),i=a.n(n);i.a},e459:function(t,e,a){"use strict";a.r(e);var n=a("fd59"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},e480:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.BranchInformation=l,e.InformationSettings=p,e.OperatingStatus=m,e.accountSetting=x,e.accountSubmit=y,e.administration=h,e.checkAuthcodeApi=D,e.couponScan=O,e.couponSubmit=P,e.default=void 0,e.getDrawFirmCharts=A,e.getDrawInvestCharts=S,e.getDrawMakeupCharts=T,e.getDrawMonthCharts=k,e.getDrawOverviewCharts=C,e.getImageUrl=function(t){return r.default.get("api/manage.shop.config/info",{params:t})},e.getPill=w,e.getQrcodeApi=I,e.getVipSetting=c,e.gitCommit=v,e.imageUpload=d,e.pillSubmit=_,e.setVipConfig=u,e.shopStatus=b,e.shopStting=g,e.submitImg=f,e.updateLogo=o,e.updateThumbs=s,e.useAuthcodeApi=E;var i=n(a("9b1b")),r=n(a("5b42"));function o(t){return r.default.post("api/manage.shop.config/logo",t)}function s(t){return r.default.post("api/manage.shop.config/thumbs",t)}function l(t){return r.default.get("api/manage.shop.config/info",{params:t})}function c(t){return r.default.get("api/manage.shop.config/vipConfig",{params:t})}function u(t){return r.default.post("api/manage.shop.config/setVipConfig",t,{headers:{"Content-Type":"application/json"}})}function d(t,e){return util.request((0,i.default)({method:"post",url:"manage/shop/index/info",data:t},e))}function f(t,e){return r.default.post("api/manage.shop.config/setting",t)}function h(t,e){return util.request((0,i.default)({method:"get",url:"manage/shop/index/index",data:t},e))}function p(t){return r.default.get("api/manage.shop.config/info",{params:t})}function v(t,e){return r.default.post("api/manage.shop.config/setting",t)}function g(t){return r.default.get("api/manage.shop.config/index",{params:t})}function b(t){return r.default.get("api/manage.shop.config/status",{params:t})}function m(t,e){return util.request((0,i.default)({method:"post",url:"manage/shop/index/status",data:t},e))}function x(t){return r.default.get("api/manage.shop.config/index",{params:t})}function y(t){return r.default.post("api/manage.shop.config/account",t)}function w(t){return r.default.get("api/manage.shop.config/pill",{params:t})}function _(t){return r.default.post("api/manage.shop.config/pill",t)}function S(t){return r.default.get("api/manage.statistic.count/drawInvestCharts",{params:t})}function C(t){return r.default.get("api/manage.statistic.count/drawOverviewCharts",{params:t})}function k(t){return r.default.get("api/manage.statistic.count/drawMonthCharts",{params:t})}function T(t){return r.default.get("api/manage.statistic.count/drawMakeupCharts",{params:t})}function A(t){return r.default.get("api/manage.statistic.count/drawFirmCharts",{params:t})}function P(t){return r.default.post("api/manage.coupon.coupon/submit",t)}function O(t){return r.default.post("api/manage.coupon.coupon/ScanCode",t)}function D(t){return r.default.post("api/manage.authcode.credit_authcode/checkAuthcode",t)}function E(t){return r.default.post("api/manage.authcode.credit_authcode/useAuthcode",t)}function I(t){return r.default.get("api/manage.shop.config/getQrcode",{params:t})}var M={updateLogo:o,shopStatus:b,pillSubmit:_,getPill:w,accountSubmit:y,BranchInformation:l,imageUpload:d,submitImg:f,administration:h,InformationSettings:p,gitCommit:v,shopStting:g,OperatingStatus:m,accountSetting:x,getDrawInvestCharts:S,getDrawOverviewCharts:C,getDrawMonthCharts:k,getDrawMakeupCharts:T,getDrawFirmCharts:A,couponSubmit:P,couponScan:O,checkAuthcodeApi:D,useAuthcodeApi:E,getQrcodeApi:I,getVipSetting:c,setVipConfig:u,updateThumbs:s};e.default=M},e668:function(t,e,a){"use strict";function n(t,a){return e.default=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},n(t,a)}a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=n,a("8a8d")},e832:function(t,e,a){"use strict";var n=a("bdbb").default;a("6a54"),a("7a76"),a("c9b5"),a("8a8d"),a("926e"),a("e966"),a("f7a5"),Object.defineProperty(e,"__esModule",{value:!0}),e.pharmacode=void 0;var i=function(){function t(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,a,n){return a&&t(e.prototype,a),n&&t(e,n),e}}(),r=a("822a"),o=function(t){return t&&t.__esModule?t:{default:t}}(r);var s=function(t){function e(t,a){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==n(e)&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,a));return i.number=parseInt(t,10),i}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+n(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"encode",value:function(){var t=this.number,e="";while(!isNaN(t)&&0!=t)t%2===0?(e="11100"+e,t=(t-2)/2):(e="100"+e,t=(t-1)/2);return e=e.slice(0,-2),{data:e,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),e}(o.default);e.pharmacode=s},e8bd:function(t,e,a){"use strict";var n=a("dbb2"),i=a.n(n);i.a},e8be:function(t,e,a){"use strict";a.r(e);var n=a("234c"),i=a("e459");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("d52c");var o=a("828b"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"3b6ece68",null,!1,n["a"],void 0);e["default"]=s.exports},e8ea:function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,".tki-barcode[data-v-3b6ece68]{position:relative}.tki-barcode-canvas[data-v-3b6ece68]{position:fixed;top:%?-99999?%;left:%?-99999?%;z-index:-99999}",""]),t.exports=e},ea20:function(t,e,a){"use strict";var n=a("bdbb").default;a("6a54"),a("7a76"),a("c9b5"),a("8a8d"),a("926e"),a("5c47"),a("af8f"),a("71cb"),a("f18a"),a("aa9c"),a("e966"),Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,a,n){return a&&t(e.prototype,a),n&&t(e,n),e}}(),r=a("c77a"),o=u(r),s=a("822a"),l=u(s),c=a("5bd0");function u(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==n(e)&&"function"!==typeof e?t:e}var f=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],h=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],p=function(t){function e(t,a){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,e);var n=d(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,a));if(n.isValid=!1,-1!==t.search(/^[0-9]{6}$/))n.middleDigits=t,n.upcA=v(t,"0"),n.text=a.text||""+n.upcA[0]+t+n.upcA[n.upcA.length-1],n.isValid=!0;else{if(-1===t.search(/^[01][0-9]{7}$/))return d(n);if(n.middleDigits=t.substring(1,t.length-1),n.upcA=v(n.middleDigits,t[0]),n.upcA[n.upcA.length-1]!==t[t.length-1])return d(n);n.isValid=!0}return n.displayValue=a.displayValue,a.fontSize>10*a.width?n.fontSize=10*a.width:n.fontSize=a.fontSize,n.guardHeight=a.height+n.fontSize/2+a.textMargin,n}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+n(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var t="";return t+="101",t+=this.encodeMiddleDigits(),t+="010101",{data:t,text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101",options:{height:this.guardHeight}}),t.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),t.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),t}},{key:"encodeMiddleDigits",value:function(){var t=this.upcA[0],e=this.upcA[this.upcA.length-1],a=h[parseInt(e)][parseInt(t)];return(0,o.default)(this.middleDigits,a)}}]),e}(l.default);function v(t,e){for(var a=parseInt(t[t.length-1]),n=f[a],i="",r=0,o=0;o<n.length;o++){var s=n[o];i+="X"===s?t[r++]:s}return i=""+e+i,""+i+(0,c.checksum)(i)}e.default=p},ea42:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.UPCE=e.UPC=e.EAN2=e.EAN5=e.EAN8=e.EAN13=void 0;var n=a("8f71c"),i=v(n),r=a("e2bd"),o=v(r),s=a("54e3"),l=v(s),c=a("a842"),u=v(c),d=a("5bd0"),f=v(d),h=a("ea20"),p=v(h);function v(t){return t&&t.__esModule?t:{default:t}}e.EAN13=i.default,e.EAN8=o.default,e.EAN5=l.default,e.EAN2=u.default,e.UPC=f.default,e.UPCE=p.default},eea8:function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,".container[data-v-2ef93b2c]{width:30px;height:30px;position:relative}.container.loading2[data-v-2ef93b2c]{-webkit-transform:rotate(10deg);transform:rotate(10deg)}.container.loading2 .shape[data-v-2ef93b2c]{border-radius:5px}.container.loading2[data-v-2ef93b2c]{-webkit-animation:rotation 1s infinite;animation:rotation 1s infinite}.container .shape[data-v-2ef93b2c]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-2ef93b2c]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-2ef93b2c]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-2ef93b2c]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-2ef93b2c]{bottom:0;right:0;background-color:#e66}.loading2 .shape1[data-v-2ef93b2c]{-webkit-animation:animation2shape1-data-v-2ef93b2c .5s ease 0s infinite alternate;animation:animation2shape1-data-v-2ef93b2c .5s ease 0s infinite alternate}@-webkit-keyframes animation2shape1-data-v-2ef93b2c{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(20px,20px);transform:translate(20px,20px)}}@keyframes animation2shape1-data-v-2ef93b2c{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(20px,20px);transform:translate(20px,20px)}}.loading2 .shape2[data-v-2ef93b2c]{-webkit-animation:animation2shape2-data-v-2ef93b2c .5s ease 0s infinite alternate;animation:animation2shape2-data-v-2ef93b2c .5s ease 0s infinite alternate}@-webkit-keyframes animation2shape2-data-v-2ef93b2c{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-20px,20px);transform:translate(-20px,20px)}}@keyframes animation2shape2-data-v-2ef93b2c{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-20px,20px);transform:translate(-20px,20px)}}.loading2 .shape3[data-v-2ef93b2c]{-webkit-animation:animation2shape3-data-v-2ef93b2c .5s ease 0s infinite alternate;animation:animation2shape3-data-v-2ef93b2c .5s ease 0s infinite alternate}@-webkit-keyframes animation2shape3-data-v-2ef93b2c{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(20px,-20px);transform:translate(20px,-20px)}}@keyframes animation2shape3-data-v-2ef93b2c{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(20px,-20px);transform:translate(20px,-20px)}}.loading2 .shape4[data-v-2ef93b2c]{-webkit-animation:animation2shape4-data-v-2ef93b2c .5s ease 0s infinite alternate;animation:animation2shape4-data-v-2ef93b2c .5s ease 0s infinite alternate}@-webkit-keyframes animation2shape4-data-v-2ef93b2c{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-20px,-20px);transform:translate(-20px,-20px)}}@keyframes animation2shape4-data-v-2ef93b2c{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-20px,-20px);transform:translate(-20px,-20px)}}",""]),t.exports=e},ef21:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("9b1b"));a("64aa"),a("dc8a");var r={name:"u-mask",props:{show:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:"10000000"},customStyle:{type:Object,default:function(){return{}}},zoom:{type:Boolean,default:!0},duration:{type:[Number,String],default:300},maskClickAble:{type:Boolean,default:!0}},data:function(){return{zoomStyle:{transform:""},scale:"scale(1.2, 1.2)"}},watch:{show:function(t){t&&this.zoom?this.zoomStyle.transform="scale(1, 1)":!t&&this.zoom&&(this.zoomStyle.transform=this.scale)}},computed:{maskStyle:function(){var t={backgroundColor:"rgba(0, 0, 0, 0.6)"};return this.show?t.zIndex=this.zIndex?this.zIndex:this.$u.zIndex.mask:t.zIndex=-1,t.transition="all ".concat(this.duration/1e3,"s ease-in-out"),Object.keys(this.customStyle).length&&(t=(0,i.default)((0,i.default)({},t),this.customStyle)),t}},methods:{click:function(){this.maskClickAble&&this.$emit("click")}}};e.default=r},efd3:function(t,e,a){"use strict";a.r(e);var n=a("8def"),i=a("b6ea");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("59af");var o=a("828b"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"fe0925d0",null,!1,n["a"],void 0);e["default"]=s.exports},f003:function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,".container[data-v-fe0925d0]{width:30px;height:30px;position:relative}.container.loading1[data-v-fe0925d0]{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.container .shape[data-v-fe0925d0]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-fe0925d0]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-fe0925d0]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-fe0925d0]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-fe0925d0]{bottom:0;right:0;background-color:#e66}.loading1 .shape1[data-v-fe0925d0]{-webkit-animation:animation1shape1-data-v-fe0925d0 .5s ease 0s infinite alternate;animation:animation1shape1-data-v-fe0925d0 .5s ease 0s infinite alternate}@-webkit-keyframes animation1shape1-data-v-fe0925d0{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(16px,16px);transform:translate(16px,16px)}}@keyframes animation1shape1-data-v-fe0925d0{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(16px,16px);transform:translate(16px,16px)}}.loading1 .shape2[data-v-fe0925d0]{-webkit-animation:animation1shape2-data-v-fe0925d0 .5s ease 0s infinite alternate;animation:animation1shape2-data-v-fe0925d0 .5s ease 0s infinite alternate}@-webkit-keyframes animation1shape2-data-v-fe0925d0{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-16px,16px);transform:translate(-16px,16px)}}@keyframes animation1shape2-data-v-fe0925d0{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-16px,16px);transform:translate(-16px,16px)}}.loading1 .shape3[data-v-fe0925d0]{-webkit-animation:animation1shape3-data-v-fe0925d0 .5s ease 0s infinite alternate;animation:animation1shape3-data-v-fe0925d0 .5s ease 0s infinite alternate}@-webkit-keyframes animation1shape3-data-v-fe0925d0{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(16px,-16px);transform:translate(16px,-16px)}}@keyframes animation1shape3-data-v-fe0925d0{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(16px,-16px);transform:translate(16px,-16px)}}.loading1 .shape4[data-v-fe0925d0]{-webkit-animation:animation1shape4-data-v-fe0925d0 .5s ease 0s infinite alternate;animation:animation1shape4-data-v-fe0925d0 .5s ease 0s infinite alternate}@-webkit-keyframes animation1shape4-data-v-fe0925d0{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-16px,-16px);transform:translate(-16px,-16px)}}@keyframes animation1shape4-data-v-fe0925d0{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-16px,-16px);transform:translate(-16px,-16px)}}",""]),t.exports=e},f0de:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.getData=function(t){return t.vue.util.request({url:t.url,data:t.data}).then((function(e){t.vue.showPreLoading&&(t.vue.showPreLoading=!1);var a=e.data.message;return a.errno?t.fail&&"function"===typeof t.fail?(t.fail(a),!1):(t.vue.util.$toast(a.message),!1):(a=a.message,t.data&&1==t.data.menufooter&&(t.vue.menufooter=window.immenufooter),t.autoAssign&&t.variable&&a[t.variable]&&(t.vue[t.variable]=t.vue.util.extend(t.vue[t.variable],a[t.variable])),!t.success||"function"!==typeof t.success||(t.success(a),!1))})),!0},e.getRecords=function(t){t.force&&(t.vue.records={page:1,psize:15,loading:!0,finished:!1,empty:!1,data:[]});if(t.vue.records.finished)return!1;var e={page:t.vue.records.page,psize:t.vue.records.psize};t.data&&(e=Object.assign(t.data,e));t.vue.filter&&(e.filter=JSON.stringify(t.vue.filter.items));return t.vue.util.request({url:t.url,data:e}).then((function(e){t.vue.showPreLoading&&(t.vue.showPreLoading=!1);var a=e.data.message;if(a.errno)return t.vue.util.$toast(a.message),!1;if(t.data&&1==t.data.menufooter&&(t.vue.menufooter=window.immenufooter),t.recordsName)var n=a.message[t.recordsName];else n=a.message.records;return t.vue.records.data=[].concat((0,i.default)(t.vue.records.data),(0,i.default)(n)),t.vue.records.data.length||(t.vue.records.empty=!0),n&&n.length<t.vue.records.psize&&(t.vue.records.finished=!0),t.vue.records.page++,t.vue.records.loading=!1,t.vue.isRefresh=!1,a.message.filter&&(t.vue.condition.items=a.message.filter),t.data&&1==t.data.menufooter&&(t.vue.menufooter=window.immenufooter),t.success&&"function"===typeof t.success?(t.success(a.message),!1):void 0})),!0},e.setData=function(t){var e=function(){t.vue.util.request({method:"post",url:t.url,data:t.data}).then((function(e){var a=e.data.message;if(a.errno)return t.fail&&"function"===typeof t.fail?(t.fail(a),!1):(t.vue.util.$toast(a.message),!1);if(a=a.message,t.success&&"function"===typeof t.success)return t.success(a),!1;t.redirect||(t.redirect="refresh"),t.message||(t.message="保存成功");var n=t.redirectType?t.redirectType:"push";return t.vue.util.$toast(t.message,t.redirect,1e3,n),!0}))};t.confirm?uni.showModal({title:"温馨提示",cancelText:"取消",content:t.confirm,success:function(t){t.cancel||e()}}):e()};var i=n(a("b7c7"));a("8f71"),a("bf0f"),a("d4b5"),a("c223");n(a("05d8"))},f18a:function(t,e,a){"use strict";var n=a("1cb5");n("flat")},f1f8:function(t,e,a){"use strict";function n(t){return e.default=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},n(t)}a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=n,a("8a8d"),a("926e")},f22c:function(t,e,a){"use strict";var n=a("bdbb").default;a("6a54"),a("7a76"),a("c9b5"),a("8a8d"),a("926e"),a("5c47"),a("af8f"),a("bf0f"),a("ab80"),a("5ef2"),Object.defineProperty(e,"__esModule",{value:!0}),e.CODE39=void 0;var i=function(){function t(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,a,n){return a&&t(e.prototype,a),n&&t(e,n),e}}(),r=a("822a"),o=function(t){return t&&t.__esModule?t:{default:t}}(r);var s=function(t){function e(t,a){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t=t.toUpperCase(),a.mod43&&(t+=function(t){return l[t]}(function(t){for(var e=0,a=0;a<t.length;a++)e+=d(t[a]);return e%=43,e}(t))),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==n(e)&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,a))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+n(e));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"encode",value:function(){for(var t=u("*"),e=0;e<this.data.length;e++)t+=u(this.data[e])+"0";return t+=u("*"),{data:t,text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)}}]),e}(o.default),l=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],c=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function u(t){return function(t){return c[t].toString(2)}(d(t))}function d(t){return l.indexOf(t)}e.CODE39=s},f24b:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("b7c7"));a("bf0f"),a("2797"),a("d4b5");var r=a("ce26")["default"],o={};(function(){o=function(t,e,a,n,o){var s,l,c,u,d,f,h;if(d=e,f=n,h=o,s=Object.assign({},a),function(t){t.marginTop=void 0==t.marginTop?t.margin:t.marginTop,t.marginBottom=void 0==t.marginBottom?t.margin:t.marginBottom,t.marginRight=void 0==t.marginRight?t.margin:t.marginRight,t.marginLeft=void 0==t.marginLeft?t.margin:t.marginLeft}(s),""==s.text||""==t)return!1;c=t,u=uni.createCanvasContext(d,c),l=new(r[s.format.toUpperCase()])(s.text,s).encode();var p=function(t,e){var a,n=[],r=e.marginLeft+e.marginRight;Array.isArray(t)?n=(0,i.default)(t):n[0]=JSON.parse(JSON.stringify(t));return n.forEach((function(t,i){var o=u.measureText(n[i].text?n[i].text:"").width,s=n[i].data.length*e.width,l=0;e.displayValue&&s<o&&("center"==e.textAlign?l=Math.floor((o-s)/2):"left"==e.textAlign?l=0:"right"==e.textAlign&&(l=Math.floor(o-s))),n[i].barcodePadding=l,n[i].width=Math.ceil(Math.max(o,s)),r+=n[i].width,n[i].options&&void 0!=n[i].options.height?n[i].height=n[i].options.height+(e.displayValue&&(n[i].text?n[i].text:"").length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom:n[i].height=a=e.height+(e.displayValue&&(n[i].text?n[i].text:"").length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom})),{encodings:n,width:r,height:a}}(l,s);f({width:p.width,height:p.height}),setTimeout((function(){v.render(s,p)}),50);var v={render:function(t,e){var a=this;this.prepare(t,e),e.encodings.forEach((function(e,n){a.barcode(t,e),a.text(t,e),a.move(e)})),this.draw(t,e)},barcode:function(t,e){var a,n=e.data;a="top"==t.textPosition?t.marginTop+t.fontSize+t.textMargin:t.marginTop,u.fillStyle=t.lineColor;for(var i=0;i<n.length;i++){var r=i*t.width+e.barcodePadding,o=t.height;e.options&&void 0!=e.options.height&&(o=e.options.height),"1"===n[i]?u.fillRect(r,a,t.width,o):n[i]&&u.fillRect(r,a,t.width,o*n[i])}},text:function(t,e){var a,n,i,r;t.displayValue&&(n="top"==t.textPosition?t.marginTop+t.fontSize:t.height+t.textMargin+t.marginTop+t.fontSize,e.options?(void 0!=e.options.textAlign&&(i=e.options.textAlign),void 0!=e.options.fontSize&&(r=e.options.fontSize)):(i=t.textAlign,r=t.fontSize),u.setFontSize(r),"left"==i||e.barcodePadding>0?(a=0,u.setTextAlign("left")):"right"==i?(a=e.width-1,u.setTextAlign("right")):(a=e.width/2,u.setTextAlign("center")),u.fillStyle=t.fontColor,void 0!=e.text&&u.fillText(e.text,a,n))},move:function(t){u.translate(t.width,0)},prepare:function(t,e){t.background&&(u.fillStyle=t.background,u.fillRect(0,0,e.width,e.height)),u.translate(t.marginLeft,0)},draw:function(t,e){var a=this;u.draw(!1,(function(){a.toImgs(t,e)}))},toImgs:function(t,e){setTimeout((function(){uni.canvasToTempFilePath({width:e.width,height:e.height,destWidth:e.width,destHeight:e.height,canvasId:d,fileType:"png",success:function(t){h(t.tempFilePath)},fail:function(t){h(t)},complete:function(){uni.hideLoading()}},c)}),t.text.length+100)}}}})();var s=o;e.default=s},f298:function(t,e,a){"use strict";var n=a("497b"),i=a("9e70"),r=a("862c"),o=RangeError;t.exports=function(t){var e=i(r(this)),a="",s=n(t);if(s<0||s===1/0)throw new o("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(e+=e))1&s&&(a+=e);return a}},f2ac:function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.page-height[data-v-441c1b16]{display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:rgba(0,0,0,.7)}.popup-bg[data-v-441c1b16]{display:flex;flex-direction:column;align-items:center;justify-content:center;position:fixed;top:0;left:0;right:0;bottom:0;width:%?750?%}.popup-content[data-v-441c1b16]{display:flex;flex-direction:column;align-items:center}.popup-content-show[data-v-441c1b16]{-webkit-animation:mymove-data-v-441c1b16 .3s;animation:mymove-data-v-441c1b16 .3s;-webkit-transform:scale(1);transform:scale(1)}@-webkit-keyframes mymove-data-v-441c1b16{0%{-webkit-transform:scale(0);transform:scale(0)\n /*开始为原始大小*/}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes mymove-data-v-441c1b16{0%{-webkit-transform:scale(0);transform:scale(0)\n /*开始为原始大小*/}100%{-webkit-transform:scale(1);transform:scale(1)}}.update-wrap[data-v-441c1b16]{width:%?580?%;border-radius:%?18?%;position:relative;display:flex;flex-direction:column;background-color:#fff;padding:%?170?% %?30?% 0}.update-wrap .top-img[data-v-441c1b16]{position:absolute;left:0;width:100%;height:%?256?%;top:%?-128?%}.update-wrap .content[data-v-441c1b16]{display:flex;flex-direction:column;align-items:center;padding-bottom:%?30?%}.update-wrap .content .title[data-v-441c1b16]{flex:1;text-align:start;font-size:%?32?%;font-weight:700;color:#6526f3}.update-wrap .content .title-sub[data-v-441c1b16]{flex:1;text-align:start;font-size:%?24?%;color:#666;padding:%?30?% 0}.update-wrap .content .btn[data-v-441c1b16]{width:%?500?%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:%?30?%;height:%?80?%;line-height:%?80?%;border-radius:%?18?%;background-color:#6526f3;margin-top:%?20?%}.close-ioc[data-v-441c1b16]{width:%?70?%;height:%?70?%;margin-top:%?30?%}.sche-wrap[data-v-441c1b16]{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:%?10?% %?50?% 0}.sche-wrap .sche-wrap-text[data-v-441c1b16]{font-size:%?24?%;color:#666;margin-bottom:%?20?%}.sche-wrap .sche-bg[data-v-441c1b16]{position:relative;height:%?30?%;width:%?480?%;display:flex;align-items:center}.sche-wrap .sche-bg .jd-bg[data-v-441c1b16]{background-color:#ccc;position:absolute;left:0;right:0;top:5;height:%?20?%;width:100%;border-radius:100px}.sche-wrap .sche-bg .sche-bg-jindu[data-v-441c1b16]{position:absolute;left:0;top:0;height:%?30?%;min-width:%?40?%;border-radius:100px;background-size:%?26?% %?26?%}.sche-wrap .down-text[data-v-441c1b16]{font-size:%?24?%;color:#5674e5;margin-top:%?16?%}',""]),t.exports=e},f313:function(t,e,a){"use strict";var n=a("45a5"),i=a.n(n);i.a},f478:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},a("7a76"),a("c9b5")},f555:function(t,e,a){"use strict";var n=a("85c1"),i=a("ab4a"),r=a("e4ca"),o=a("471d"),s=a("af9e"),l=n.RegExp,c=l.prototype,u=i&&s((function(){var t=!0;try{l(".","d")}catch(u){t=!1}var e={},a="",n=t?"dgimsy":"gimsy",i=function(t,n){Object.defineProperty(e,t,{get:function(){return a+=n,!0}})},r={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in t&&(r.hasIndices="d"),r)i(o,r[o]);var s=Object.getOwnPropertyDescriptor(c,"flags").get.call(e);return s!==n||a!==n}));u&&r(c,"flags",{configurable:!0,get:o})},f8f5:function(t,e,a){"use strict";a.r(e);var n=a("0993"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},f914:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("fcf3")),r=n(a("3471")),o=n(a("2634")),s=n(a("2fdc"));a("8f71"),a("bf0f"),a("5ef2"),a("23f4"),a("7d2f"),a("5c47"),a("9c4e"),a("ab80"),a("2c10"),a("e838"),a("4626"),a("5ac7"),a("fd3c"),a("e966"),a("aa9c"),a("2797");var l=n(a("390e")),c=n(a("3a59")),u=(a("f0de"),n(a("05d8"))),d=(a("033a"),n(a("e8be"))),f=n(a("2e3d"));console.log(d.default,"tkiBarcode");var h={components:{tkiBarcode:d.default,AppUpdate:f.default},data:function(){return{updateoptions:{},barCodeVal:"",modelShow:!1,bar:["code128","code39","ean13","ean8","upc","itf14"],val:"FB19A1650-100S",opations:{width:4,height:120,displayValue:!0,text:"FB19A1650-100S",textAlign:"left",textPosition:"bottom",textMargin:0,fontSize:24,fontColor:"#0000ef",lineColor:"#0000ef",background:"#FFFFFF",margin:0,marginTop:50,marginBottom:50},zhangkai:!1,orderFilter:[{name:"新订单",key:1,num:0},{name:"备货中",key:2,num:0},{name:"待配送",key:3,num:0},{name:"配送中",key:4,num:0},{name:"已完成",key:5,num:0},{name:"已取消",key:6,num:0}],ordertext:[{name:"待确认",key:1},{name:"备货中",key:2},{name:"待配送",key:3},{name:"配送中",key:4},{name:"已完成",key:5},{name:"已取消",key:6}],filter:{items:{status:"1"}},orderList:[],showGoods:!1,cid:"",loading:!1,loadend:!1,where:{page:1,limit:10,mer_id:"",status:"all"},version:"",wgtver:"",appver:"",iconRootPath:"_www/static/images",keywords:"",refundStatu:{num:0},loadingData:"",showLoading:!1,showPopupModal:!1,isShowOptions:!1,hideNoYuyue:!1,yuyuedanNum:0,isShowCommission:!1,isShowinfo:!1,store_handle:{timeout_remind:[]},store_prepare:{timeout_remind:[]},setting:{}}},computed:{ordertxt:function(){var t=this,e=this.ordertext.filter((function(e){return e.key==t.filter.items.status}));return e[0].name}},onLoad:function(){var t=this;setTimeout((function(){for(var e=function(e){setTimeout((function(){console.log(e),t.$refs[t.bar[e]]._makeCode()}),1e3*e)},a=0;a<t.bar.length;a++)e(a)}),1e3)},methods:{bindEyeCode:function(t){console.log(t,"e"),this.barCodeVal=t,this.modelShow=!0},itf14:function(t){console.log("itf14:",t)},onUpdateOrderStatus:function(t,e,a){var n=this;console.log("that.orderList.id",t);var i=this;uni.showModal({title:"提示",content:"确认".concat(a,"吗?"),success:function(){var r=(0,s.default)((0,o.default)().mark((function r(s){var c;return(0,o.default)().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n.showLoading=!0,n.loadingData=a,!s.confirm){r.next=8;break}return r.next=5,l.default.orderStatus({id:t,type:e});case 5:c=r.sent,c&&(c.msg?i.util.$toast(c.msg):i.util.$toast("操作成功","",1e3)),n.getAllApi();case 8:n.showLoading=!1,n.loadingData="";case 10:case"end":return r.stop()}}),r)})));return function(t){return r.apply(this,arguments)}}()})},diyMounted:function(){console.log("diyMounteddiyMounteddiyMounteddiyMounteddiyMounteddiyMounteddiyMounteddiyMounteddiyMounteddiyMounted"),this.version&&this.checkGetUpdateData()},diyOnLoad:function(t){this.version=u.default.getStorageSync("version"),this.diyMounted()},extractShippingCost:function(t){var e=t.indexOf("商家额外承担配送费");if(-1!==e){var a=t.substring(e+"商家额外承担配送费".length),n=new RegExp("".concat(this.CurrencyUnit,"(\\d+(\\.\\d+)?)")),i=a.match(n);return!!(i&&parseFloat(i[1])>0)&&parseFloat(i[1])}return!1},diyOnShow:function(){this.getAllApi()},diyOnPullDownRefresh:function(){this.reload(!0)},diyOnReachBottom:function(){this.loading||this.loadend||(this.where.page++,this.getlist())},getAllApi:function(){this.getSetting(),this.orderList=[],this.getList(),this.reload(!0),this.getListStatus()},checkGetUpdateData:function(){var t=this;return(0,s.default)((0,o.default)().mark((function e(){var a,n;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,c.default.getAppVersion({version:t.version});case 2:a=e.sent,n=a.data,n&&n.app_version&&(t.appver,n.app_version);case 5:case"end":return e.stop()}}),e)})))()},startUpDate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"有数据需要更新,请点击升级",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3?arguments[3]:void 0,i="/static/update_bg_one.png",r={title:e,con:a,downUrl:t,hidCancelbtn:!1,bgColor:"#ffffff",conColor:"#666666",titleColor:"#000000",btnBgColor:"#ffaa00",updateBtnText:"立即更新",verCode:n,hidBackBtn:!1,downMsgTip:"资源下载中,请稍后...",goBackBtnText:"后台下载",topImgBg:i};this.updateoptions=r},getList:function(){var t=this;return(0,s.default)((0,o.default)().mark((function e(){var a,n,i;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t,n=u.default.getStorageSync("__sid"),e.next=4,l.default.takeoutList({sid:n,status:a.filter.items.status,cid:a.cid,keywords:a.keywords});case 4:i=e.sent,i&&(a.orderList=i.data,a.lijiNum=i.data.filter((function(t){return t.delivery_time.includes("立即送出")||t.delivery_time.includes("立即取餐")})).length,a.yuyuedanNum=i.data.length-a.lijiNum,a.orderList.map((function(t){return t.showGoods=!0})),a.getIsReserveNum());case 6:case"end":return e.stop()}}),e)})))()},getSetting:function(){var t=this;return(0,s.default)((0,o.default)().mark((function e(){var a,n;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t,a=u.default.getStorageSync("__sid"),e.next=4,l.default.setting({sid:a});case 4:n=e.sent,t.store_handle=n.data.store_handle,t.store_prepare=n.data.store_prepare;case 7:case"end":return e.stop()}}),e)})))()},checkTimeout:function(t,e){var a=(new Date).getTime(),n=new Date(t.addtime_cn).getTime(),i=Math.floor((a-n)/6e4),o=null;if(1===e?o=this.store_handle.timeout_remind:2===e&&(o=this.store_prepare.timeout_remind),0===o.length)return null;var s,l=null,c=(0,r.default)(o);try{for(c.s();!(s=c.n()).done;){var u=s.value;i>=parseInt(u.minute)&&(l={message:"已过".concat(u.minute,"分钟"),type:"".concat(1===e?"未接单":"未出餐"),color:u.color})}}catch(d){c.e(d)}finally{c.f()}return l},reload:function(t){!0===t&&(this.loadend=!1,this.$set(this.where,"page",1)),this.getlist(t),this.getListStatus()},getlist:function(t){var e=this;return(0,s.default)((0,o.default)().mark((function a(){var n,i,r,s,c,d;return(0,o.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(n=e,!n.loadend){a.next=3;break}return a.abrupt("return");case 3:if(!n.loading){a.next=5;break}return a.abrupt("return");case 5:return n.loading=!0,n.loadTitle="",i=u.default.getStorageSync("__sid"),e.$set(e.where,"sid",i),e.$set(e.where,"status",n.filter.items.status),e.$set(e.where,"cid",n.cid),e.$set(e.where,"keywords",n.keywords),a.next=14,l.default.takeoutList(e.where);case 14:r=a.sent,!0===t&&n.$set(n,"orderList",[]),s=r.data,c=n.SplitArray(s,n.orderList),d=s.length<n.where.limit,n.orderList=c,console.log(n.orderList),n.loadend=d,n.loading=!1,n.$set(n.where,"page",n.where.page+1),uni.stopPullDownRefresh();case 25:case"end":return a.stop()}}),a)})))()},SplitArray:function(t,e){if("object"!=(0,i.default)(t))return[];void 0===e&&(e=[]);for(var a=0;a<t.length;a++)e.push(t[a]);return e},getListStatus:function(){var t=this;return(0,s.default)((0,o.default)().mark((function e(){var a,n;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=u.default.getStorageSync("__sid"),e.next=3,l.default.takeoutListStatus({sid:a});case 3:n=e.sent,console.log("退款状态数据:",n.data),n.data&&n.data["7"]?(t.refundStatu=n.data["7"],console.log("退款单数量:",t.refundStatu.num)):t.refundStatu={num:0},t.orderFilter.forEach((function(t){var e=n.data[t.key];t.num=e?e.num:0})),t.checkRefundOrders();case 8:case"end":return e.stop()}}),e)})))()},checkRefundOrders:function(){var t=this;return(0,s.default)((0,o.default)().mark((function e(){var a,n;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,a=u.default.getStorageSync("__sid"),e.next=4,l.default.takeoutList({sid:a,refund_status:1});case 4:n=e.sent,n&&n.data&&n.data.length>0&&0===t.refundStatu.num&&(t.refundStatu.num=n.data.length,console.log("手动更新退款单数量为:",t.refundStatu.num)),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),console.error("检查退款订单失败:",e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})))()},onCallCustomer:function(t){uni.makePhoneCall({phoneNumber:t.mobile})},refund:function(t){uni.navigateTo({url:t})},details:function(t){uni.navigateTo({url:t})},zhankai:function(t){this.showGoods;this.orderList[t].showGoods=!this.orderList[t].showGoods,this.orderList=Object.assign({},this.orderList)},onToggleStatus:function(t){t=parseInt(t),this.filter.items.status!=t&&(this.filter.items.status=t,this.where.page=1,this.loadend=!1,this.loading=!1,this.getList())},toprint:function(t){var e=this;uni.showModal({title:"打印",content:"确认打印订单吗?",success:function(a){a.confirm&&e.gotoprint(t)}})},gotoprint:function(t){return(0,s.default)((0,o.default)().mark((function e(){var a;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l.default.print({id:t});case 2:a=e.sent,a.code?uni.showToast({title:"打印成功"}):uni.showToast({title:a.msg,icon:"none"});case 4:case"end":return e.stop()}}),e)})))()},toselfdelievry:function(t){var e=this;uni.showModal({title:"打印",content:"订单确认转为自配送吗?",success:function(a){a.confirm&&e.selfdelievry(t)}})},changeOrderStatus:function(t,e,a){var n=this;uni.showModal({title:a,content:"订单".concat(a,"吗?"),success:function(){var i=(0,s.default)((0,o.default)().mark((function i(r){var s;return(0,o.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n.showLoading=!0,n.loadingData=a,!r.confirm){i.next=8;break}return i.next=5,l.default.orderStatus({id:t,type:e});case 5:s=i.sent,s.code?uni.showToast({title:"".concat(a,"成功")}):uni.showToast({title:s.msg,icon:"none"}),n.getAllApi();case 8:n.showLoading=!1,n.loadingData="";case 10:case"end":return i.stop()}}),i)})));return function(t){return i.apply(this,arguments)}}()})},endOrder:function(t){var e=this;uni.showModal({title:"送达",content:"订单确认送达吗?",success:function(){var a=(0,s.default)((0,o.default)().mark((function a(n){var i;return(0,o.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!n.confirm){a.next=6;break}return a.next=3,l.default.orderStatus({id:t,type:"end"});case 3:i=a.sent,i.code?uni.showToast({title:"订单完成成功"}):uni.showToast({title:i.msg,icon:"none"}),e.getAllApi();case 6:case"end":return a.stop()}}),a)})));return function(t){return a.apply(this,arguments)}}()})},selfdelievry:function(t){return(0,s.default)((0,o.default)().mark((function e(){var a;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l.default.selfdelivery({id:t});case 2:a=e.sent,a.code?uni.showToast({title:"转为自配送成功"}):uni.showToast({title:a.msg,icon:"none"});case 4:case"end":return e.stop()}}),e)})))()},handleFilterChange:function(){this.getList()},toServed:function(t){var e=this;uni.showModal({title:"确认出餐吗",content:"确认出餐吗",success:function(a){e.showLoading=!0,e.loadingData="确认出餐吗",a.confirm?l.default.mealServedApi(t).then((function(t){e.showLoading=!1,1==t.code?(uni.showToast({title:"出餐成功",icon:"none"}),e.getList()):uni.showToast({title:t.msg,icon:"none"})})):(e.showLoading=!1,e.loadingData="")}})},startSendBySelf:function(t){var e=this;uni.showModal({title:"确认配送吗",content:"确认配送吗",success:function(a){console.log(a),a.confirm&&l.default.sendOrderBySelfApi({id:t}).then((function(t){console.log(t),1==t.code?(uni.showToast({title:"配送成功",icon:"none"}),e.getList()):uni.showToast({title:t.msg,icon:"none"})}))}})},toggleOptions:function(t){var e=this.orderList[t];e.hasOwnProperty("isShowOptions")||this.$set(e,"isShowOptions",!1),e.isShowOptions=!e.isShowOptions},toggleCommission:function(t){var e=this.orderList[t];e.hasOwnProperty("isShowCommission")||this.$set(e,"isShowCommission",!1),e.isShowCommission=!e.isShowCommission},showInfo:function(t){var e=this.orderList[t];e.hasOwnProperty("isShowinfo")||this.$set(e,"isShowinfo",!1),e.isShowinfo=!e.isShowinfo},toggleHideNoYuyue:function(){this.hideNoYuyue=!0},noToggleHideNoYuyue:function(){this.hideNoYuyue=!1},getIsReserveNum:function(){var t=this,e=u.default.getStorageSync("__sid");l.default.getIsReserveNumApi({sid:e,status:t.filter.items.status,cid:t.cid,keywords:t.keywords}).then((function(e){console.log("res",e),t.yuyuedanNum=e.data.data}))}}};e.default=h},f9e2:function(t,e,a){"use strict";a.r(e);var n=a("6c1a"),i=a("be38");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("e8bd");var o=a("828b"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"06f9c5d4",null,!1,n["a"],void 0);e["default"]=s.exports},f9ede:function(t,e,a){"use strict";a.r(e);var n=a("b4d1"),i=a("a0ff");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("815f");var o=a("828b"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"495ece1e",null,!1,n["a"],void 0);e["default"]=s.exports},faef:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("d4b5"),a("4626"),a("5ac7"),a("aa9c"),a("3efd");var i=n(a("fcf3")),r=n(a("a13b")),o=n(a("69d3")),s=n(a("fe4f")),l={},c=null;function u(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,a=new Array(e>1?e-1:0),n=1;n<e;n++)a[n-1]=arguments[n];for(var r in a)for(var o in a[r])a[r].hasOwnProperty(o)&&(t[o]=a[r][o]&&"object"===(0,i.default)(a[r][o])?u(Array.isArray(a[r][o])?[]:{},t[o],a[r][o]):a[r][o]);return t}function d(t,e){for(var a in t)t.hasOwnProperty(a)&&null!==t[a]&&"object"===(0,i.default)(t[a])?d(t[a],e):"format"===a&&"string"===typeof t[a]&&(t["formatter"]=e[t[a]]?e[t[a]]:void 0);return t}var f={data:function(){return{rid:null}},mounted:function(){var t=this;c={top:0,left:0};var e=document.querySelectorAll("uni-main")[0];void 0===e&&(e=document.querySelectorAll("uni-page-wrapper")[0]),c={top:e.offsetTop,left:e.offsetLeft},setTimeout((function(){null===t.rid&&t.$ownerInstance&&t.$ownerInstance.callMethod("getRenderType")}),200)},destroyed:function(){delete o.default.option[this.rid],delete o.default.instance[this.rid],delete s.default.option[this.rid],delete s.default.instance[this.rid]},methods:{ecinit:function(t,e,a,n){var r=JSON.stringify(t.id);this.rid=r,l[r]=this.$ownerInstance||n;var o=JSON.parse(JSON.stringify(t)),c=o.type;c&&s.default.type.includes(c)?s.default.option[r]=u({},s.default[c],o):s.default.option[r]=u({},o);var d=o.chartData;if(d){s.default.option[r].xAxis&&s.default.option[r].xAxis.type&&"category"===s.default.option[r].xAxis.type&&(s.default.option[r].xAxis.data=d.categories),s.default.option[r].yAxis&&s.default.option[r].yAxis.type&&"category"===s.default.option[r].yAxis.type&&(s.default.option[r].yAxis.data=d.categories),s.default.option[r].series=[];for(var f=0;f<d.series.length;f++){s.default.option[r].seriesTemplate=s.default.option[r].seriesTemplate?s.default.option[r].seriesTemplate:{};var h=u({},s.default.option[r].seriesTemplate,d.series[f]);s.default.option[r].series.push(h)}}if("object"===(0,i.default)(window.echarts))this.newEChart();else{var p=document.createElement("script"),v=window.location.origin,g=n.getDataset().directory;p.src=v+g+"uni_modules/qiun-data-charts/static/h5/echarts.min.js",p.onload=this.newEChart,document.head.appendChild(p)}},ecresize:function(t,e,a,n){s.default.instance[this.rid]&&s.default.instance[this.rid].resize()},newEChart:function(){var t=this.rid;void 0===s.default.instance[t]?(s.default.instance[t]=echarts.init(l[t].$el.children[0]),!0===s.default.option[t].ontap&&(s.default.instance[t].on("click",(function(e){var a=JSON.parse(JSON.stringify({x:e.event.offsetX,y:e.event.offsetY}));l[t].callMethod("emitMsg",{name:"getIndex",params:{type:"getIndex",event:a,currentIndex:e.dataIndex,value:e.data,seriesName:e.seriesName,id:t}})})),s.default.instance[t].on("highlight",(function(e){l[t].callMethod("emitMsg",{name:"getHighlight",params:{type:"highlight",res:e,id:t}})}))),this.updataEChart(t,s.default.option[t])):this.updataEChart(t,s.default.option[t])},updataEChart:function(t,e){if(e=d(e,s.default.formatter),e.tooltip&&(e.tooltip.show=!!e.tooltipShow,e.tooltip.position=this.tooltipPosition(),"string"===typeof e.tooltipFormat&&s.default.formatter[e.tooltipFormat]&&(e.tooltip.formatter=e.tooltip.formatter?e.tooltip.formatter:s.default.formatter[e.tooltipFormat])),e.series)for(var a in e.series){var n=e.series[a].linearGradient;n&&(e.series[a].color=new echarts.graphic.LinearGradient(n[0],n[1],n[2],n[3],n[4]))}s.default.instance[t].setOption(e,e.notMerge),s.default.instance[t].on("finished",(function(){l[t].callMethod("emitMsg",{name:"complete",params:{type:"complete",complete:!0,id:t}}),s.default.instance[t]&&s.default.instance[t].off("finished")})),"undefined"!=typeof l[t].$el.children[0].clientWidth&&(Math.abs(l[t].$el.children[0].clientWidth-s.default.instance[t].getWidth())>3||Math.abs(l[t].$el.children[0].clientHeight-s.default.instance[t].getHeight())>3)&&this.ecresize()},tooltipPosition:function(){return function(t,e,a,n,i){var r=t[0],o=t[1],s=i.viewSize[0],l=i.viewSize[1],c=i.contentSize[0],u=i.contentSize[1],d=r+30,f=o+30;return d+c>s&&(d=r-c-30),f+u>l&&(f=o-u-30),[d,f]}},ucinit:function(t,e,a,n){var i=this;if(JSON.stringify(t)!=JSON.stringify(e)&&t.canvasId){var r=JSON.parse(JSON.stringify(t.canvasId));this.rid=r,l[r]=this.$ownerInstance||n,o.default.option[r]=JSON.parse(JSON.stringify(t)),o.default.option[r]=d(o.default.option[r],o.default.formatter);var s=document.getElementById(r);s&&s.children[0]&&(o.default.option[r].context=s.children[0].getContext("2d"),o.default.instance[r]&&o.default.option[r]&&!0===o.default.option[r].update?this.updataUChart():setTimeout((function(){o.default.option[r].context.restore(),o.default.option[r].context.save(),i.newUChart()}),100))}},newUChart:function(){var t=this.rid;o.default.instance[t]=new r.default(o.default.option[t]),o.default.instance[t].addEventListener("renderComplete",(function(){l[t].callMethod("emitMsg",{name:"complete",params:{type:"complete",complete:!0,id:t,opts:o.default.instance[t].opts}}),o.default.instance[t].delEventListener("renderComplete")})),o.default.instance[t].addEventListener("scrollLeft",(function(){l[t].callMethod("emitMsg",{name:"scrollLeft",params:{type:"scrollLeft",scrollLeft:!0,id:t,opts:o.default.instance[t].opts}})})),o.default.instance[t].addEventListener("scrollRight",(function(){l[t].callMethod("emitMsg",{name:"scrollRight",params:{type:"scrollRight",scrollRight:!0,id:t,opts:o.default.instance[t].opts}})}))},updataUChart:function(){var t=this.rid;o.default.instance[t].updateData(o.default.option[t])},tooltipDefault:function(t,e,a,n){if(e){var r=t.data;return"object"===(0,i.default)(t.data)&&(r=t.data.value),e+" "+t.name+":"+r}return t.properties&&t.properties.name?t.properties.name:t.name+":"+t.data},showTooltip:function(t,e){var a=this,n=o.default.option[e].tooltipCustom;if(n&&void 0!==n&&null!==n){var i=void 0;n.x>=0&&n.y>=0&&(i={x:n.x,y:n.y+10}),o.default.instance[e].showToolTip(t,{index:n.index,offset:i,textList:n.textList,formatter:function(t,n,i,r){return"string"===typeof o.default.option[e].tooltipFormat&&o.default.formatter[o.default.option[e].tooltipFormat]?o.default.formatter[o.default.option[e].tooltipFormat](t,n,i,r):a.tooltipDefault(t,n,i,r)}})}else o.default.instance[e].showToolTip(t,{formatter:function(t,n,i,r){return"string"===typeof o.default.option[e].tooltipFormat&&o.default.formatter[o.default.option[e].tooltipFormat]?o.default.formatter[o.default.option[e].tooltipFormat](t,n,i,r):a.tooltipDefault(t,n,i,r)}})},tap:function(t){var e=this.rid,a=o.default.option[e].ontap,n=o.default.option[e].tooltipShow,i=o.default.option[e].tapLegend;if(0!=a){var r,s,u=document.getElementById("UC"+e).getBoundingClientRect(),d={};d=t.detail.x?{x:t.detail.x-u.left,y:t.detail.y-u.top+c.top}:{x:t.clientX-u.left,y:t.clientY-u.top+c.top},t.changedTouches=[],t.changedTouches.unshift(d),r=o.default.instance[e].getCurrentDataIndex(t),s=o.default.instance[e].getLegendDataIndex(t),!0===i&&o.default.instance[e].touchLegend(t),1==n&&this.showTooltip(t,e),l[e].callMethod("emitMsg",{name:"getIndex",params:{type:"getIndex",event:d,currentIndex:r,legendIndex:s,id:e,opts:o.default.instance[e].opts}})}},touchStart:function(t){var e=this.rid,a=o.default.option[e].ontouch;0!=a&&(!0===o.default.option[e].enableScroll&&1==t.touches.length&&o.default.instance[e].scrollStart(t),l[e].callMethod("emitMsg",{name:"getTouchStart",params:{type:"touchStart",event:t.changedTouches[0],id:e,opts:o.default.instance[e].opts}}))},touchMove:function(t){var e=this.rid,a=o.default.option[e].ontouch;if(0!=a){if(!0===o.default.option[e].enableScroll&&1==t.changedTouches.length&&o.default.instance[e].scroll(t),!0===o.default.option[e].ontap&&!1===o.default.option[e].enableScroll&&!0===o.default.option[e].onmovetip){var n=document.getElementById("UC"+e).getBoundingClientRect(),i={x:t.changedTouches[0].clientX-n.left,y:t.changedTouches[0].clientY-n.top+c.top};t.changedTouches.unshift(i),!0===o.default.option[e].tooltipShow&&this.showTooltip(t,e)}!0===a&&!0===o.default.option[e].enableScroll&&!0===o.default.option[e].onzoom&&2==t.changedTouches.length&&o.default.instance[e].dobuleZoom(t),l[e].callMethod("emitMsg",{name:"getTouchMove",params:{type:"touchMove",event:t.changedTouches[0],id:e,opts:o.default.instance[e].opts}})}},touchEnd:function(t){var e=this.rid,a=o.default.option[e].ontouch;0!=a&&(!0===o.default.option[e].enableScroll&&0==t.touches.length&&o.default.instance[e].scrollEnd(t),l[e].callMethod("emitMsg",{name:"getTouchEnd",params:{type:"touchEnd",event:t.changedTouches[0],id:e,opts:o.default.instance[e].opts}}))},mouseDown:function(t){var e=this.rid,a=o.default.option[e].onmouse;if(0!=a){var n,i=document.getElementById("UC"+e).getBoundingClientRect();n={x:t.clientX-i.left,y:t.clientY-i.top+c.top},t.changedTouches=[],t.changedTouches.unshift(n),o.default.instance[e].scrollStart(t),o.default.option[e].mousedown=!0,l[e].callMethod("emitMsg",{name:"getTouchStart",params:{type:"mouseDown",event:n,id:e,opts:o.default.instance[e].opts}})}},mouseMove:function(t){var e=this.rid,a=o.default.option[e].onmouse,n=o.default.option[e].tooltipShow;if(0!=a){var i,r=document.getElementById("UC"+e).getBoundingClientRect();i={x:t.clientX-r.left,y:t.clientY-r.top+c.top},t.changedTouches=[],t.changedTouches.unshift(i),o.default.option[e].mousedown?(o.default.instance[e].scroll(t),l[e].callMethod("emitMsg",{name:"getTouchMove",params:{type:"mouseMove",event:i,id:e,opts:o.default.instance[e].opts}})):o.default.instance[e]&&1==n&&this.showTooltip(t,e)}},mouseUp:function(t){var e=this.rid,a=o.default.option[e].onmouse;if(0!=a){var n,i=document.getElementById("UC"+e).getBoundingClientRect();n={x:t.clientX-i.left,y:t.clientY-i.top+c.top},t.changedTouches=[],t.changedTouches.unshift(n),o.default.instance[e].scrollEnd(t),o.default.option[e].mousedown=!1,l[e].callMethod("emitMsg",{name:"getTouchEnd",params:{type:"mouseUp",event:n,id:e,opts:o.default.instance[e].opts}})}}}};e.default=f},faf2:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("64aa");var i=n(a("7caa")),r={mixins:[i.default],name:"tn-badge",props:{index:{type:[Number,String],default:"0"},radius:{type:Number,default:0},padding:{type:String,default:""},margin:{type:String,default:""},dot:{type:Boolean,default:!1},absolute:{type:Boolean,default:!1},top:{type:[String,Number],default:""},right:{type:[String,Number],default:""},translateCenter:{type:Boolean,default:!0}},computed:{badgeClass:function(){var t="";return this.dot&&(t+=" tn-badge--dot"),this.absolute&&(t+=" tn-badge--absolute",this.translateCenter&&(t+=" tn-badge--center-position")),t},badgeStyle:function(){var t={};return 0!==this.radius&&(t.width=this.radius+"rpx",t.height=this.radius+"rpx",t.lineHeight=this.radius+"rpx"),this.padding&&(t.padding=this.padding),this.margin&&(t.margin=this.margin),this.fontColorStyle&&(t.color=this.fontColorStyle),this.fontSize&&(t.fontSize=this.fontSize+this.fontUnit),this.backgroundColorStyle&&(t.backgroundColor=this.backgroundColorStyle),this.top&&(t.top=this.$t.string.getLengthUnitValue(this.top)),this.right&&(t.right=this.$t.string.getLengthUnitValue(this.right)),t}},data:function(){return{}},methods:{handleClick:function(){this.$emit("click",{index:Number(this.index)}),this.$emit("tap",{index:Number(this.index)})}}};e.default=r},fafb:function(t,e,a){"use strict";a.r(e);var n=a("26b6"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},fce8:function(t,e,a){"use strict";a.r(e);var n=a("ef21"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},fd59:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("d4b5");var i,r=n(a("39d8")),o=n(a("fcf3")),s=n(a("f24b")),l={width:4,height:120,displayValue:!0,textAlign:"center",textPosition:"bottom",textMargin:0,fontSize:24,fontColor:"#000000",lineColor:"#000000",background:"#FFFFFF",margin:0,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0},c={name:"tkiBarcode",props:{show:{type:Boolean,default:!0},cid:{type:String,default:"tki-barcode-canvas"},unit:{type:String,default:"upx"},val:{type:String,default:"1234567890128"},format:{type:String,default:"CODE128"},opations:{type:Object,default:function(){return{}}},onval:{type:Boolean,default:!1},loadMake:{type:Boolean,default:!0}},data:function(){return{result:"",canvasWidth:0,canvasHeight:0,defaultOpations:Object.assign({},l)}},onUnload:function(){},methods:(i={_makeCode:function(){var t=this;Object.assign(this.defaultOpations,this.opations),"upx"==t.unit&&(t.defaultOpations.width&&(t.defaultOpations.width=uni.upx2px(t.defaultOpations.width)),t.defaultOpations.height&&(t.defaultOpations.height=uni.upx2px(t.defaultOpations.height)),t.defaultOpations.fontSize&&(t.defaultOpations.fontSize=uni.upx2px(t.defaultOpations.fontSize))),t._empty(t.defaultOpations.text)&&(t.defaultOpations.text=t.val),t._empty(t.defaultOpations.format)&&(t.defaultOpations.format=t.format),new s.default(t,t.cid,t.defaultOpations,(function(e){t.canvasWidth=e.width,t.canvasHeight=e.height}),(function(e){t._result(e),t.defaultOpations=l}))},_clearCode:function(){this._result("")},_saveCode:function(){""!=this.result&&uni.saveImageToPhotosAlbum({filePath:this.result,success:function(){uni.showToast({title:"条形码保存成功",icon:"success",duration:2e3})}})},_result:function(t){this.result=t,this.$emit("result",t)}},(0,r.default)(i,"_result",(function(t){this.result=t,this.$emit("result",t)})),(0,r.default)(i,"_empty",(function(t){var e=(0,o.default)(t),a=!1;return"number"==e&&""==String(t)||"undefined"==e?a=!0:"object"==e?"{}"!=JSON.stringify(t)&&"[]"!=JSON.stringify(t)&&null!=t||(a=!0):"string"==e?""!=t&&"undefined"!=t&&"null"!=t&&"{}"!=t&&"[]"!=t||(a=!0):"function"==e&&(a=!1),a})),i),watch:{val:function(t,e){var a=this;this.onval&&(t==e||this._empty(t)||setTimeout((function(){a._makeCode()}),0))},opations:{handler:function(t,e){var a=this;this.onval&&(this._empty(t)||setTimeout((function(){a._makeCode()}),0))},deep:!0}},mounted:function(){var t=this;this.loadMake&&(this._empty(this.val)||setTimeout((function(){t._makeCode()}),0))}};e.default=c},fe48:function(t,e,a){"use strict";a.r(e);var n=a("13fe"),i=a("2d0c");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("323a");var o=a("828b"),s=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"4453c55f",null,!1,n["a"],void 0);e["default"]=s.exports},fe4f:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],i={type:["pie","ring","rose","funnel","line","column","area","radar","gauge","candle","demotype"],categories:["line","column","area","radar","gauge","candle","demotype"],instance:{},option:{},formatter:{tooltipDemo1:function(t){var e="";for(var a in t){0==a&&(e+=t[a].axisValueLabel+"年销售额");var n="--";null!==t[a].data&&(n=t[a].data),e+="\n"+t[a].seriesName+":"+n+" 万元"}return e},legendFormat:function(t){return"自定义图例+"+t},yAxisFormatDemo:function(t,e){return t+"元"},seriesFormatDemo:function(t){return t.name+"年"+t.value+"元"}},demotype:{color:n},column:{color:n,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"bar",data:[],barwidth:20,label:{show:!0,color:"#666666",position:"top"}}},line:{color:n,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"line",data:[],barwidth:20,label:{show:!0,color:"#666666",position:"top"}}},area:{color:n,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"line",data:[],areaStyle:{},label:{show:!0,color:"#666666",position:"top"}}},pie:{color:n,title:{text:""},tooltip:{trigger:"item"},grid:{top:40,bottom:30,right:15,left:15},legend:{bottom:"left"},seriesTemplate:{name:"",type:"pie",data:[],radius:"50%",label:{show:!0,color:"#666666",position:"top"}}},ring:{color:n,title:{text:""},tooltip:{trigger:"item"},grid:{top:40,bottom:30,right:15,left:15},legend:{bottom:"left"},seriesTemplate:{name:"",type:"pie",data:[],radius:["40%","70%"],avoidLabelOverlap:!1,label:{show:!0,color:"#666666",position:"top"},labelLine:{show:!0}}},rose:{color:n,title:{text:""},tooltip:{trigger:"item"},legend:{top:"bottom"},seriesTemplate:{name:"",type:"pie",data:[],radius:"55%",center:["50%","50%"],roseType:"area"}},funnel:{color:n,title:{text:""},tooltip:{trigger:"item",formatter:"{b} : {c}%"},legend:{top:"bottom"},seriesTemplate:{name:"",type:"funnel",left:"10%",top:60,bottom:60,width:"80%",min:0,max:100,minSize:"0%",maxSize:"100%",sort:"descending",gap:2,label:{show:!0,position:"inside"},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{bordercolor:"#fff",borderwidth:1},emphasis:{label:{fontSize:20}},data:[]}},gauge:{color:n,tooltip:{formatter:"{a} <br/>{b} : {c}%"},seriesTemplate:{name:"业务指标",type:"gauge",detail:{formatter:"{value}%"},data:[{value:50,name:"完成率"}]}},candle:{xAxis:{data:[]},yAxis:{},color:n,title:{text:""},dataZoom:[{type:"inside",xAxisIndex:[0,1],start:10,end:100},{show:!0,xAxisIndex:[0,1],type:"slider",bottom:10,start:10,end:100}],seriesTemplate:{name:"",type:"k",data:[]}}},r=i;e.default=r},ff3a:function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,".container[data-v-4e1c1bfa]{width:30px;height:30px;position:relative}.container.loading3[data-v-4e1c1bfa]{-webkit-animation:rotation 1s infinite;animation:rotation 1s infinite}.container.loading3 .shape1[data-v-4e1c1bfa]{border-top-left-radius:10px}.container.loading3 .shape2[data-v-4e1c1bfa]{border-top-right-radius:10px}.container.loading3 .shape3[data-v-4e1c1bfa]{border-bottom-left-radius:10px}.container.loading3 .shape4[data-v-4e1c1bfa]{border-bottom-right-radius:10px}.container .shape[data-v-4e1c1bfa]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-4e1c1bfa]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-4e1c1bfa]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-4e1c1bfa]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-4e1c1bfa]{bottom:0;right:0;background-color:#e66}.loading3 .shape1[data-v-4e1c1bfa]{-webkit-animation:animation3shape1-data-v-4e1c1bfa .5s ease 0s infinite alternate;animation:animation3shape1-data-v-4e1c1bfa .5s ease 0s infinite alternate}@-webkit-keyframes animation3shape1-data-v-4e1c1bfa{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(5px,5px);transform:translate(5px,5px)}}@keyframes animation3shape1-data-v-4e1c1bfa{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(5px,5px);transform:translate(5px,5px)}}.loading3 .shape2[data-v-4e1c1bfa]{-webkit-animation:animation3shape2-data-v-4e1c1bfa .5s ease 0s infinite alternate;animation:animation3shape2-data-v-4e1c1bfa .5s ease 0s infinite alternate}@-webkit-keyframes animation3shape2-data-v-4e1c1bfa{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-5px,5px);transform:translate(-5px,5px)}}@keyframes animation3shape2-data-v-4e1c1bfa{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-5px,5px);transform:translate(-5px,5px)}}.loading3 .shape3[data-v-4e1c1bfa]{-webkit-animation:animation3shape3-data-v-4e1c1bfa .5s ease 0s infinite alternate;animation:animation3shape3-data-v-4e1c1bfa .5s ease 0s infinite alternate}@-webkit-keyframes animation3shape3-data-v-4e1c1bfa{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(5px,-5px);transform:translate(5px,-5px)}}@keyframes animation3shape3-data-v-4e1c1bfa{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(5px,-5px);transform:translate(5px,-5px)}}.loading3 .shape4[data-v-4e1c1bfa]{-webkit-animation:animation3shape4-data-v-4e1c1bfa .5s ease 0s infinite alternate;animation:animation3shape4-data-v-4e1c1bfa .5s ease 0s infinite alternate}@-webkit-keyframes animation3shape4-data-v-4e1c1bfa{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-5px,-5px);transform:translate(-5px,-5px)}}@keyframes animation3shape4-data-v-4e1c1bfa{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-5px,-5px);transform:translate(-5px,-5px)}}",""]),t.exports=e},ff75:function(t,e,a){"use strict";a.r(e);var n=a("6b57"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a}}]);