1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-healthCheck-healthCheck"],{"00c5":function(t,e,a){var n=a("4f0a");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("4f06").default;r("344bab92",n,!0,{sourceMap:!1,shadowMode:!1})},"01b8":function(t,e,a){"use strict";a.r(e);var n=a("3843"),r=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},"0538":function(t,e,a){"use strict";var n=a("1c0b"),r=a("861d"),i=[].slice,o={},s=function(t,e,a){if(!(e in o)){for(var n=[],r=0;r<e;r++)n[r]="a["+r+"]";o[e]=Function("C,a","return new C("+n.join(",")+")")}return o[e](t,a)};t.exports=Function.bind||function(t){var e=n(this),a=i.call(arguments,1),o=function(){var n=a.concat(i.call(arguments));return this instanceof o?s(e,n.length,n):e.apply(t,n)};return r(e.prototype)&&(o.prototype=e.prototype),o}},"0993":function(t,e,a){"use strict";a.r(e);var n=a("fdc7"),r=a("ad54");for(var i in r)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(i);a("a7af");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"38a0d81e",null,!1,n["a"],o);e["default"]=l.exports},"100a":function(t,e,a){"use strict";var n=a("e7b3"),r=a.n(n);r.a},"131a":function(t,e,a){var n=a("23e7"),r=a("d2bb");n({target:"Object",stat:!0},{setPrototypeOf:r})},"1cda":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("a9e3"),a("d81d");var n={name:"u-collapse-item",props:{title:{type:String,default:""},align:{type:String,default:"left"},disabled:{type:Boolean,default:!1},open:{type:Boolean,default:!1},name:{type:[Number,String],default:""},activeStyle:{type:Object,default:function(){return{}}},index:{type:[String,Number],default:""}},data:function(){return{isShow:!1,elId:this.$u.guid(),height:0,headStyle:{},bodyStyle:{},itemStyle:{},arrowColor:"",hoverClass:"",arrow:!0}},watch:{open:function(t){this.isShow=t}},created:function(){this.parent=!1,this.isShow=this.open},methods:{init:function(){var t=this;this.parent=this.$u.$parent.call(this,"u-collapse"),this.parent&&(this.nameSync=this.name?this.name:this.parent.childrens.length,this.parent.childrens.push(this),this.headStyle=this.parent.headStyle,this.bodyStyle=this.parent.bodyStyle,this.arrowColor=this.parent.arrowColor,this.hoverClass=this.parent.hoverClass,this.arrow=this.parent.arrow,this.itemStyle=this.parent.itemStyle),this.$nextTick((function(){t.queryRect()}))},headClick:function(){var t=this;this.disabled||(this.parent&&1==this.parent.accordion&&this.parent.childrens.map((function(e){t!=e&&(e.isShow=!1)})),this.isShow=!this.isShow,this.$emit("change",{index:this.index,show:this.isShow}),this.isShow&&this.parent&&this.parent.onChange(),this.$forceUpdate())},queryRect:function(){var t=this;this.$uGetRect("#"+this.elId).then((function(e){t.height=e.height}))}},mounted:function(){this.init()}};e.default=n},"1e10":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("26e9");var n={data:function(){return{itemStyle:{borderBottom:"1px solid #DDDDDD"},headStyle:{paddingLeft:"30rpx",paddingRight:"30rpx"},bodyStyle:{fontSize:"24rpx",fontWeight:400,color:"#777777",background:"#F1F1F1",padding:"28rpx 30rpx"},itemList:[{head:"三会一课",body:"所有三会一课均已完成",open:!0},{head:"主题党日",body:"有2次主题党日请假",open:!1},{head:"理论学习",body:"只完成了40%的理论学习,未达标",open:!1},{head:"党费缴纳",body:"所有党费已如期缴纳",open:!1},{head:"思想汇报",body:"所有思想汇报已如期上交",open:!1}],options:{radar:[{indicator:[{text:"三会一课",max:1},{text:"思想汇报",max:1},{text:"党费缴纳",max:1},{text:"理论学习",max:1},{text:"主题党日",max:1}],name:{textStyle:{color:"#000000"}},splitNumber:5,splitArea:{areaStyle:{color:["#f3c0b7","#eb9485","#e57662","#e1614a","#de5239"].reverse()}},label:{show:!0,color:"#6B99B7"},splitLine:{show:!1}}]},chartData:{categories:["三会一课","思想汇报","党费缴纳","理论学习","主题党日"],series:[{name:"党性体检",type:"radar",symbol:"circle",symbolSize:[4,4],itemStyle:{borderWidth:3,color:"#2CC554",borderColor:"#2CC554",shadowBlur:8,shadowColor:"#2CC554"},lineStyle:{color:"#fee797"},areaStyle:{color:"#FFFFFF80"},data:[{name:"",value:[.6,.7,.8,.4,.9]}]}]}}}};e.default=n},"23c1":function(t,e,a){var n=a("d90c");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("4f06").default;r("6022aa4d",n,!0,{sourceMap:!1,shadowMode:!1})},"257e":function(t,e,a){"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n},"262e":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var n=r(a("b380"));function r(t){return t&&t.__esModule?t:{default:t}}function i(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}}),e&&(0,n.default)(t,e)}},"264a":function(t,e,a){"use strict";a.r(e);var n=a("e00a"),r=a("01b8");for(var i in r)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(i);a("6e10");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"fe25cc46",null,!1,n["a"],o);e["default"]=l.exports},"278c":function(t,e,a){var n=a("c135"),r=a("9b42"),i=a("6613"),o=a("c240");function s(t,e){return n(t)||r(t,e)||i(t,e)||o()}t.exports=s},"2a6d":function(t,e,a){"use strict";a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var n={uIcon:a("f86b").default},r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"u-collapse-item",style:[t.itemStyle]},[a("v-uni-view",{staticClass:"u-collapse-head",style:[t.headStyle],attrs:{"hover-stay-time":200,"hover-class":t.hoverClass},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.headClick.apply(void 0,arguments)}}},[t.$slots["title-all"]?t._t("title-all"):[t.$slots["title"]?t._t("title"):a("v-uni-view",{staticClass:"u-collapse-title u-line-1",style:[{textAlign:t.align?t.align:"left"},t.isShow&&t.activeStyle&&!t.arrow?t.activeStyle:""]},[t._v(t._s(t.title))]),a("v-uni-view",{staticClass:"u-icon-wrap"},[t.arrow?a("u-icon",{staticClass:"u-arrow-down-icon",class:{"u-arrow-down-icon-active":t.isShow},attrs:{color:t.arrowColor,name:"arrow-down"}}):t._e()],1)]],2),a("v-uni-view",{staticClass:"u-collapse-body",style:[{height:t.isShow?t.height+"px":"0"}]},[a("v-uni-view",{staticClass:"u-collapse-content",style:[t.bodyStyle],attrs:{id:t.elId}},[t._t("default")],2)],1)],1)},i=[]},"2ae4":function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"container loading5"},[a("v-uni-view",{staticClass:"shape shape1"}),a("v-uni-view",{staticClass:"shape shape2"}),a("v-uni-view",{staticClass:"shape shape3"}),a("v-uni-view",{staticClass:"shape shape4"})],1)},i=[]},"2c5d":function(t,e,a){"use strict";a.r(e);var n=a("2a6d"),r=a("a896");for(var i in r)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(i);a("540f");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"4bb3f8d0",null,!1,n["a"],o);e["default"]=l.exports},"2caf8":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=s,a("4ae1");var n=o(a("7e84")),r=o(a("d967")),i=o(a("99de"));function o(t){return t&&t.__esModule?t:{default:t}}function s(t){var e=(0,r.default)();return function(){var a,r=(0,n.default)(t);if(e){var o=(0,n.default)(this).constructor;a=Reflect.construct(r,arguments,o)}else a=r.apply(this,arguments);return(0,i.default)(this,a)}}},3410:function(t,e,a){var n=a("23e7"),r=a("d039"),i=a("7b0b"),o=a("e163"),s=a("e177"),l=r((function(){o(1)}));n({target:"Object",stat:!0,forced:l,sham:!s},{getPrototypeOf:function(t){return o(i(t))}})},3710:function(t,e,a){var n=a("f6e7");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("4f06").default;r("37f8ce7c",n,!0,{sourceMap:!1,shadowMode:!1})},3843:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"loading3",data:function(){return{}}};e.default=n},"3b13":function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"container loading2"},[a("v-uni-view",{staticClass:"shape shape1"}),a("v-uni-view",{staticClass:"shape shape2"}),a("v-uni-view",{staticClass:"shape shape3"}),a("v-uni-view",{staticClass:"shape shape4"})],1)},i=[]},"3d41":function(t,e,a){"use strict";a.r(e);var n=a("447b"),r=a("eab1");for(var i in r)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(i);a("cf48");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"8ef7071a",null,!1,n["a"],o);e["default"]=l.exports},"42d4":function(t,e,a){var n=a("6481");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("4f06").default;r("64b90dd1",n,!0,{sourceMap:!1,shadowMode:!1})},4478:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=o,a("4ae1");var n=i(a("b380")),r=i(a("d967"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t,a,i){return(0,r.default)()?e.default=o=Reflect.construct:e.default=o=function(t,e,a){var r=[null];r.push.apply(r,e);var i=Function.bind.apply(t,r),o=new i;return a&&(0,n.default)(o,a.prototype),o},o.apply(null,arguments)}},"447b":function(t,e,a){"use strict";a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var n={qiunDataCharts:a("ed8a").default,uCollapse:a("9e9a").default,uCollapseItem:a("2c5d").default},r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"page"},[a("v-uni-view",{staticClass:"radar-chart-view"},[a("qiun-data-charts",{attrs:{type:"radar",chartData:t.chartData,background:"none",echartsH5:!0,eopts:t.options}})],1),a("u-collapse",{attrs:{accordion:!1,"item-style":t.itemStyle,"body-style":t.bodyStyle,"head-style":t.headStyle}},t._l(t.itemList,(function(e,n){return a("u-collapse-item",{key:n,attrs:{title:e.head}},[t._v(t._s(e.body))])})),1)],1)},i=[]},"45c1":function(t,e,a){"use strict";var n=a("d919"),r=a.n(n);r.a},"4ae1":function(t,e,a){var n=a("23e7"),r=a("d066"),i=a("1c0b"),o=a("825a"),s=a("861d"),l=a("7c73"),c=a("0538"),u=a("d039"),d=r("Reflect","construct"),h=u((function(){function t(){}return!(d((function(){}),[],t)instanceof t)})),f=!u((function(){d((function(){}))})),p=h||f;n({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(t,e){i(t),o(e);var a=arguments.length<3?t:i(arguments[2]);if(f&&!h)return d(t,e,a);if(t==a){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(c.apply(t,n))}var r=a.prototype,u=l(s(r)?r:Object.prototype),p=Function.apply.call(t,u,e);return s(p)?p:u}})},"4b1c":function(t,e,a){var n=a("8366");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("4f06").default;r("f61ed886",n,!0,{sourceMap:!1,shadowMode:!1})},"4cfe":function(t,e,a){"use strict";var n=a("dde0"),r=a.n(n);r.a},"4e82":function(t,e,a){"use strict";var n=a("23e7"),r=a("1c0b"),i=a("7b0b"),o=a("50c4"),s=a("d039"),l=a("addb"),c=a("a640"),u=a("04d1"),d=a("d998"),h=a("2d00"),f=a("512c"),p=[],g=p.sort,x=s((function(){p.sort(void 0)})),m=s((function(){p.sort(null)})),v=c("sort"),y=!s((function(){if(h)return h<70;if(!(u&&u>3)){if(d)return!0;if(f)return f<603;var t,e,a,n,r="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:a=3;break;case 68:case 71:a=4;break;default:a=2}for(n=0;n<47;n++)p.push({k:e+n,v:a})}for(p.sort((function(t,e){return e.v-t.v})),n=0;n<p.length;n++)e=p[n].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return"DGBEFHACIJK"!==r}})),b=x||!m||!v||!y,w=function(t){return function(e,a){return void 0===a?-1:void 0===e?1:void 0!==t?+t(e,a)||0:String(e)>String(a)?1:-1}};n({target:"Array",proto:!0,forced:b},{sort:function(t){void 0!==t&&r(t);var e=i(this);if(y)return void 0===t?g.call(e):g.call(e,t);var a,n,s=[],c=o(e.length);for(n=0;n<c;n++)n in e&&s.push(e[n]);s=l(s,w(t)),a=s.length,n=0;while(n<a)e[n]=s[n++];while(n<c)delete e[n++];return e}})},"4ec9":function(t,e,a){"use strict";var n=a("6d61"),r=a("6566");t.exports=n("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r)},"4f0a":function(t,e,a){var n=a("4bad");e=n(!1),e.push([t.i,".container[data-v-3b8cb2d8]{width:30px;height:30px;position:relative}.container.loading1[data-v-3b8cb2d8]{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.container .shape[data-v-3b8cb2d8]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-3b8cb2d8]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-3b8cb2d8]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-3b8cb2d8]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-3b8cb2d8]{bottom:0;right:0;background-color:#e66}.loading1 .shape1[data-v-3b8cb2d8]{-webkit-animation:animation1shape1-data-v-3b8cb2d8 .5s ease 0s infinite alternate;animation:animation1shape1-data-v-3b8cb2d8 .5s ease 0s infinite alternate}@-webkit-keyframes animation1shape1-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(16px,16px);transform:translate(16px,16px)}}@keyframes animation1shape1-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(16px,16px);transform:translate(16px,16px)}}.loading1 .shape2[data-v-3b8cb2d8]{-webkit-animation:animation1shape2-data-v-3b8cb2d8 .5s ease 0s infinite alternate;animation:animation1shape2-data-v-3b8cb2d8 .5s ease 0s infinite alternate}@-webkit-keyframes animation1shape2-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-16px,16px);transform:translate(-16px,16px)}}@keyframes animation1shape2-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-16px,16px);transform:translate(-16px,16px)}}.loading1 .shape3[data-v-3b8cb2d8]{-webkit-animation:animation1shape3-data-v-3b8cb2d8 .5s ease 0s infinite alternate;animation:animation1shape3-data-v-3b8cb2d8 .5s ease 0s infinite alternate}@-webkit-keyframes animation1shape3-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(16px,-16px);transform:translate(16px,-16px)}}@keyframes animation1shape3-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(16px,-16px);transform:translate(16px,-16px)}}.loading1 .shape4[data-v-3b8cb2d8]{-webkit-animation:animation1shape4-data-v-3b8cb2d8 .5s ease 0s infinite alternate;animation:animation1shape4-data-v-3b8cb2d8 .5s ease 0s infinite alternate}@-webkit-keyframes animation1shape4-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-16px,-16px);transform:translate(-16px,-16px)}}@keyframes animation1shape4-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-16px,-16px);transform:translate(-16px,-16px)}}",""]),t.exports=e},"52eb":function(t,e,a){"use strict";a.r(e);var n=a("f88e"),r=a("af206");for(var i in r)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(i);a("45c1");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"28d798ac",null,!1,n["a"],o);e["default"]=l.exports},5377:function(t,e,a){var n=a("83ab"),r=a("9bf2"),i=a("ad6d"),o=a("d039"),s=n&&o((function(){return"sy"!==Object.getOwnPropertyDescriptor(RegExp.prototype,"flags").get.call({dotAll:!0,sticky:!0})}));s&&r.f(RegExp.prototype,"flags",{configurable:!0,get:i})},"53fc":function(t,e,a){"use strict";a.r(e);var n=a("7fb9"),r=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},"540f":function(t,e,a){"use strict";var n=a("4b1c"),r=a.n(n);r.a},"55d2":function(t,e,a){"use strict";a.r(e);var n=a("60a3"),r=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},5751:function(t,e,a){"use strict";a.r(e);var n=a("be39"),r=a("642c");for(var i in r)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(i);a("e5ed");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"3b8cb2d8",null,!1,n["a"],o);e["default"]=l.exports},"5a43":function(t,e){function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}t.exports=a},"60a3":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"loading2",data:function(){return{}}};e.default=n},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"642c":function(t,e,a){"use strict";a.r(e);var n=a("76e8"),r=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},6481:function(t,e,a){var n=a("4bad");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */.u-swiper-wrap[data-v-688f25e7]{overflow:visible!important}.u-swiper-wrap uni-swiper[data-v-688f25e7]{border-radius:%?20?%;overflow:hidden;-webkit-transform:translateY(0);transform:translateY(0);box-shadow:%?0?% %?40?% %?40?% %?-30?% grey}.u-swiper-wrap .u-swiper-indicator[data-v-688f25e7]{bottom:%?-23?%!important}.u-swiper-wrap .u-swiper-indicator .u-indicator-item-rect[data-v-688f25e7]{border-radius:%?2?%;height:%?4?%;width:%?20?%}.u-swiper-wrap .u-swiper-indicator .u-indicator-item-rect.u-indicator-item-rect-active[data-v-688f25e7]{width:%?50?%;background:#be0000}.u-input__textarea[data-v-688f25e7]{padding:%?0?%!important}.u-list-item[data-v-688f25e7]{margin-left:%?0?%!important;width:%?100?%!important;height:%?100?%!important}.u-add-tips[data-v-688f25e7]{margin-top:%?0?%!important}.custom-list-item[data-v-688f25e7]{padding:%?0?% %?30?%}\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */',""]),t.exports=e},"64a1":function(t,e,a){"use strict";(function(t,n){var r=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("a9e3"),a("caad"),a("2532"),a("d81d"),a("ac1f");var i=r(a("53ca")),o=(r(a("ad83")),r(a("a09a"))),s=r(a("ff72"));function l(){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])?l(Array.isArray(a[r][o])?[]:{},t[o],a[r][o]):a[r][o]);return t}function c(t,e){for(var a in t)null!==t[a]&&"object"===(0,i.default)(t[a])?c(t[a],e):"format"===a&&"string"===typeof t[a]&&(t["formatter"]=e[t[a]]?e[t[a]]:void 0);return t}function u(t){var e="-",a=t.getFullYear(),n=t.getMonth()+1,r=t.getDate();n>=1&&n<=9&&(n="0"+n),r>=0&&r<=9&&(r="0"+r);var i=a+e+n+e+r;return i}function d(t,e){var a=!1;return function(){var n=arguments,r=this;clearTimeout(a),a&&clearTimeout(a),a=setTimeout((function(){a=!1,t.apply(r,n)}),e)}}var h={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:"none"},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},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}},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:!1,uchartsOpts:{},echartsOpts:{},drawData:{},lastDrawTime:null}},created:function(){if(this.cid=this.canvasId,"uchartsid"==this.canvasId||""==this.canvasId){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=t.length,a="",n=0;n<32;n++)a+=t.charAt(Math.floor(Math.random()*e));this.cid=a}var r=uni.getSystemInfoSync();"windows"===r.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(d((function(t){if(1!=a.mixinDatacomLoading){var e=a.mixinDatacomErrorMessage;null!==e&&"null"!==e&&""!==e||(a.echarts?a.echartsResize=!a.echartsResize:a.resizeHandler())}}),e))},destroyed:function(){!0===this.echarts?(delete s.default.option[this.cid],delete s.default.instance[this.cid]):(delete o.default.option[this.cid],delete o.default.instance[this.cid]),uni.offWindowResize((function(){}))},watch:{chartDataProps:{handler:function(t,e){"object"===(0,i.default)(t)?JSON.stringify(t)!==JSON.stringify(e)&&(t.series&&t.series.length>0?this.beforeInit():(this.mixinDatacomLoading=!0,this._clearChart(),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&&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=!a.echartsResize,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&&n.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=l({},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 r=0;r<this.textEnum.length;r++)t[n].text===this.textEnum[r].value&&(t[n].text=this.textEnum[r].text);var i=!1,c={categories:[],series:[]},d=[],h=[];if(i=!0===this.echarts?s.default.categories.includes(this.type):o.default.categories.includes(this.type),!0===i){if(this.chartData&&this.chartData.categories&&this.chartData.categories.length>0)d=this.chartData.categories;else if(this.startDate&&this.endDate){var f=new Date(this.startDate),p=new Date(this.endDate);while(f<=p)d.push(u(f)),f=f.setDate(f.getDate()+1),f=new Date(f)}else{var g={};t.map((function(t,e){void 0==t.text||g[t.text]||(d.push(t.text),g[t.text]=!0)}))}c.categories=d}var x={};if(t.map((function(t,e){void 0==t.group||x[t.group]||(h.push({name:t.group,data:[]}),x[t.group]=!0)})),0==h.length)if(h=[{name:"默认分组",data:[]}],!0===i)for(var m=0;m<d.length;m++){for(var v=0,y=0;y<t.length;y++)t[y].text==d[m]&&(v=t[y].value);h[0].data.push(v)}else for(var b=0;b<t.length;b++)h[0].data.push({name:t[b].text,value:t[b].value});else for(var w=0;w<h.length;w++)if(d.length>0)for(var k=0;k<d.length;k++){for(var S=0,A=0;A<t.length;A++)h[w].name==t[A].group&&t[A].text==d[k]&&(S=t[A].value);h[w].data.push(S)}else for(var T=0;T<t.length;T++)h[w].name==t[T].group&&h[w].data.push(t[T].value);c.series=h,this.drawData=l({},c),this.checkData(c)},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?(s.default.option[a]=l({},this.eopts),s.default.option[a].id=a,s.default.option[a].type=this.type):this.type&&o.default.type.includes(this.type)?(o.default.option[a]=l({},o.default[this.type],this.opts),o.default.option[a].canvasId=a):(this.mixinDatacomLoading=!1,this.showchart=!1,this.mixinDatacomErrorMessage="参数错误:props参数中type类型不正确");var n=l({},t);void 0!==n.series&&n.series.length>0&&(this.mixinDatacomErrorMessage=null,!0===this.echarts?(s.default.option[a].chartData=n,this.$nextTick((function(){e.init()}))):(o.default.option[a].categories=n.categories,o.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.echrts){var e=uni.createCanvasContext(t,this);e.clearRect(0,0,this.cWidth,this.cHeight),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&&(o.default.option[e].background="none"==t.background?"#FFFFFF":t.background,o.default.option[e].canvas2d=t.type2d,o.default.option[e].pixelRatio=t.pixel,o.default.option[e].animation=t.animation,o.default.option[e].width=a.width*t.pixel,o.default.option[e].height=a.height*t.pixel,o.default.option[e].ontap=t.ontap,o.default.option[e].ontouch=t.ontouch,o.default.option[e].onmouse=t.openmouse,o.default.option[e].onmovetip=t.onmovetip,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].inScrollView=t.inScrollView,o.default.option[e].lastDrawTime=t.lastDrawTime,o.default.option[e].tapLegend=t.tapLegend),t.inH5||t.inApp?1==t.echarts?(s.default.option[e].ontap=t.ontap,s.default.option[e].onmouse=t.openmouse,s.default.option[e].tooltipShow=t.tooltipShow,s.default.option[e].tooltipFormat=t.tooltipFormat,s.default.option[e].tooltipCustom=t.tooltipCustom,s.default.option[e].lastDrawTime=t.lastDrawTime,t.echartsOpts=l({},s.default.option[e])):(o.default.option[e].rotateLock=o.default.option[e].rotate,t.uchartsOpts=l({},o.default.option[e])):(o.default.option[e]=c(o.default.option[e],o.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 r=n[0].node,i=r.getContext("2d");o.default.option[e].context=i,r.width=a.width*t.pixel,r.height=a.height*t.pixel,r._width=a.width*t.pixel,r._height=a.height*t.pixel,o.default.option[e].rotateLock=o.default.option[e].rotate,o.default.instance[e]&&o.default.option[e]&&!0===o.default.option[e].update?t._updataUChart(e):setTimeout((function(){o.default.option[e].context.restore(),o.default.option[e].context.save(),t._newChart(e)}),100)}else t.showchart=!1,t.mixinDatacomErrorMessage="参数错误:开启2d模式后,未获取到dom节点,canvas-id:"+e}))}else t.inAli&&(o.default.option[e].rotateLock=o.default.option[e].rotate),o.default.option[e].context=uni.createCanvasContext(e,t),o.default.instance[e]&&o.default.option[e]&&!0===o.default.option[e].update?t._updataUChart(e):setTimeout((function(){o.default.option[e].context.restore(),o.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)},_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=h}).call(this,a("a9ff")["default"],a("5a52")["default"])},"64b9":function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"u-collapse"},[t._t("default")],2)},i=[]},"64e5":function(t,e,a){"use strict";var n=a("d039"),r=a("0ccb").start,i=Math.abs,o=Date.prototype,s=o.getTime,l=o.toISOString;t.exports=n((function(){return"0385-07-25T07:06:39.999Z"!=l.call(new Date(-50000000000001))}))||!n((function(){l.call(new Date(NaN))}))?function(){if(!isFinite(s.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),a=t.getUTCMilliseconds(),n=e<0?"-":e>9999?"+":"";return n+r(i(e),n?6:4,0)+"-"+r(t.getUTCMonth()+1,2,0)+"-"+r(t.getUTCDate(),2,0)+"T"+r(t.getUTCHours(),2,0)+":"+r(t.getUTCMinutes(),2,0)+":"+r(t.getUTCSeconds(),2,0)+"."+r(a,3,0)+"Z"}:l},6566:function(t,e,a){"use strict";var n=a("9bf2").f,r=a("7c73"),i=a("e2cc"),o=a("0366"),s=a("19aa"),l=a("2266"),c=a("7dd0"),u=a("2626"),d=a("83ab"),h=a("f183").fastKey,f=a("69f3"),p=f.set,g=f.getterFor;t.exports={getConstructor:function(t,e,a,c){var u=t((function(t,n){s(t,u,e),p(t,{type:e,index:r(null),first:void 0,last:void 0,size:0}),d||(t.size=0),void 0!=n&&l(n,t[c],{that:t,AS_ENTRIES:a})})),f=g(e),x=function(t,e,a){var n,r,i=f(t),o=m(t,e);return o?o.value=a:(i.last=o={index:r=h(e,!0),key:e,value:a,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=o),n&&(n.next=o),d?i.size++:t.size++,"F"!==r&&(i.index[r]=o)),t},m=function(t,e){var a,n=f(t),r=h(e);if("F"!==r)return n.index[r];for(a=n.first;a;a=a.next)if(a.key==e)return a};return i(u.prototype,{clear:function(){var t=this,e=f(t),a=e.index,n=e.first;while(n)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete a[n.index],n=n.next;e.first=e.last=void 0,d?e.size=0:t.size=0},delete:function(t){var e=this,a=f(e),n=m(e,t);if(n){var r=n.next,i=n.previous;delete a.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),a.first==n&&(a.first=r),a.last==n&&(a.last=i),d?a.size--:e.size--}return!!n},forEach:function(t){var e,a=f(this),n=o(t,arguments.length>1?arguments[1]:void 0,3);while(e=e?e.next:a.first){n(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!m(this,t)}}),i(u.prototype,a?{get:function(t){var e=m(this,t);return e&&e.value},set:function(t,e){return x(this,0===t?0:t,e)}}:{add:function(t){return x(this,t=0===t?0:t,t)}}),d&&n(u.prototype,"size",{get:function(){return f(this).size}}),u},setStrong:function(t,e,a){var n=e+" Iterator",r=g(e),i=g(n);c(t,e,(function(t,e){p(this,{type:n,target:t,state:r(t),kind:e,last:void 0})}),(function(){var t=i(this),e=t.kind,a=t.last;while(a&&a.removed)a=a.previous;return t.target&&(t.last=a=a?a.next:t.state.first)?"keys"==e?{value:a.key,done:!1}:"values"==e?{value:a.value,done:!1}:{value:[a.key,a.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),a?"entries":"values",!a,!0),u(e)}}},6613:function(t,e,a){a("fb6a"),a("d3b7"),a("a630"),a("3ca3");var n=a("5a43");function r(t,e){if(t){if("string"===typeof t)return n(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(t,e):void 0}}t.exports=r},6863:function(t,e,a){"use strict";var n=a("c5af"),r=a.n(n);r.a},"68bf0":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("4160"),a("159b"),a("a15b");var n={name:"u-collapse",props:{accordion:{type:Boolean,default:!0},headStyle:{type:Object,default:function(){return{}}},bodyStyle:{type:Object,default:function(){return{}}},itemStyle:{type:Object,default:function(){return{}}},arrow:{type:Boolean,default:!0},arrowColor:{type:String,default:"#909399"},hoverClass:{type:String,default:"u-hover-class"}},created:function(){this.childrens=[]},data:function(){return{}},methods:{init:function(){this.childrens.forEach((function(t,e){t.init()}))},onChange:function(){var t=[];this.childrens.forEach((function(e,a){e.isShow&&t.push(e.nameSync)})),this.accordion&&(t=t.join("")),this.$emit("change",t)}}};e.default=n},"6a05":function(t,e,a){var n=a("4bad");e=n(!1),e.push([t.i,'.chartsview[data-v-28d798ac]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.charts-font[data-v-28d798ac]{font-size:14px;color:#ccc;margin-top:10px}.charts-error[data-v-28d798ac]{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},"6c57":function(t,e,a){var n=a("23e7"),r=a("da84");n({global:!0},{globalThis:r})},"6e10":function(t,e,a){"use strict";var n=a("da36"),r=a.n(n);r.a},"72b3":function(t,e,a){"use strict";a.r(e);var n=a("64a1"),r=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},"76e8":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"loading1",data:function(){return{}}};e.default=n},7763:function(t,e,a){"use strict";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},"79ec":function(t,e,a){"use strict";a.r(e);var n=a("f681"),r=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},"7e84":function(t,e,a){"use strict";function n(t){return e.default=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n,a("131a"),a("3410")},"7fb9":function(t,e,a){"use strict";var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("caad"),a("2532");var r=n(a("53ca")),i=n(a("ad83")),o=n(a("a09a")),s=n(a("ff72")),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 i in a)for(var o in a[i])a[i].hasOwnProperty(o)&&(t[o]=a[i][o]&&"object"===(0,r.default)(a[i][o])?u(Array.isArray(a[i][o])?[]:{},t[o],a[i][o]):a[i][o]);return t}function d(t,e){for(var a in t)null!==t[a]&&"object"===(0,r.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 h={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.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 i=JSON.stringify(t.id);this.rid=i,l[i]=this.$ownerInstance;var o=JSON.parse(JSON.stringify(t)),c=o.type;c&&s.default.type.includes(c)?s.default.option[i]=u({},s.default[c],o):s.default.option[i]=u({},o);var d=o.chartData;s.default.option[i].xAxis&&s.default.option[i].xAxis.type&&"category"===s.default.option[i].xAxis.type&&(s.default.option[i].xAxis.data=d.categories),s.default.option[i].yAxis&&s.default.option[i].yAxis.type&&"category"===s.default.option[i].yAxis.type&&(s.default.option[i].yAxis.data=d.categories),s.default.option[i].series=[];for(var h=0;h<d.series.length;h++){s.default.option[i].seriesTemplate=s.default.option[i].seriesTemplate?s.default.option[i].seriesTemplate:{};var f=u({},s.default.option[i].seriesTemplate,d.series[h]);s.default.option[i].series.push(f)}if("object"===(0,r.default)(window.echarts))this.newEChart();else{var p=document.createElement("script"),g=window.location.origin,x=n.getDataset().directory;p.src=g+x+"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}})})),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")}))},tooltipPosition:function(){return function(t,e,a,n,r){var i=t[0],o=t[1],s=r.viewSize[0],l=r.viewSize[1],c=r.contentSize[0],u=r.contentSize[1],d=i+30,h=o+30;return d+c>s&&(d=i-c-30),h+u>l&&(h=o-u-30),[d,h]}},ucinit:function(t,e,a,n){var r=this;if(JSON.stringify(t)!=JSON.stringify(e)){var i=JSON.parse(JSON.stringify(t.canvasId));this.rid=i,l[i]=this.$ownerInstance,o.default.option[i]=JSON.parse(JSON.stringify(t)),o.default.option[i]=d(o.default.option[i],o.default.formatter);var s=document.getElementById(i);s&&s.children[0]&&(o.default.option[i].context=s.children[0].getContext("2d"),o.default.instance[i]&&o.default.option[i]&&!0===o.default.option[i].update?this.updataUChart():setTimeout((function(){o.default.option[i].context.restore(),o.default.option[i].context.save(),r.newUChart()}),100))}},newUChart:function(){var t=this.rid;o.default.instance[t]=new i.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}}),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}})})),o.default.instance[t].addEventListener("scrollRight",(function(){l[t].callMethod("emitMsg",{name:"scrollRight",params:{type:"scrollRight",scrollRight:!0,id:t}})}))},updataUChart:function(){var t=this.rid;o.default.instance[t].updateData(o.default.option[t])},tooltipDefault:function(t,e,a,n){if(e){var i=t.data;return"object"===(0,r.default)(t.data)&&(i=t.data.value),e+" "+t.name+":"+i}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 r=void 0;n.x>=0&&n.y>=0&&(r={x:n.x,y:n.y+10}),o.default.instance[e].showToolTip(t,{index:n.index,offset:r,textList:n.textList,formatter:function(t,n,r,i){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,r,i):a.tooltipDefault(t,n,r,i)}})}else o.default.instance[e].showToolTip(t,{formatter:function(t,n,r,i){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,r,i):a.tooltipDefault(t,n,r,i)}})},tap:function(t){var e=this.rid,a=o.default.option[e].ontap,n=o.default.option[e].tooltipShow,r=o.default.option[e].tapLegend;if(0!=a){var i=null,s=null,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.unshift(d),i=o.default.instance[e].getCurrentDataIndex(t),s=o.default.instance[e].getLegendDataIndex(t),!0===r&&o.default.instance[e].touchLegend(t),1==n&&this.showTooltip(t,e),l[e].callMethod("emitMsg",{name:"getIndex",params:{type:"getIndex",event:d,currentIndex:i,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&&(o.default.instance[e].scrollStart(t),l[e].callMethod("emitMsg",{name:"getTouchStart",params:{type:"touchStart",event:t.changedTouches[0],id:e}}))},touchMove:function(t){var e=this.rid,a=o.default.option[e].ontouch;if(0!=a&&(o.default.instance[e].scroll(t),l[e].callMethod("emitMsg",{name:"getTouchMove",params:{type:"touchMove",event:t.changedTouches[0],id:e}}),!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(),r={x:t.changedTouches[0].clientX-n.left,y:t.changedTouches[0].clientY-n.top+c.top};t.changedTouches.unshift(r),!0===o.default.option[e].tooltipShow&&this.showTooltip(t,e)}},touchEnd:function(t){var e=this.rid,a=o.default.option[e].ontouch;0!=a&&(o.default.instance[e].scrollEnd(t),l[e].callMethod("emitMsg",{name:"getTouchEnd",params:{type:"touchEnd",event:t.changedTouches[0],id:e}}))},mouseDown:function(t){var e=this.rid,a=o.default.option[e].onmouse;if(0!=a){var n=document.getElementById("UC"+e).getBoundingClientRect(),r={};r={x:t.clientX-n.left,y:t.clientY-n.top+c.top},t.changedTouches.unshift(r),o.default.instance[e].scrollStart(t),o.default.option[e].mousedown=!0,l[e].callMethod("emitMsg",{name:"getTouchStart",params:{type:"mouseDown",event:r,id:e}})}},mouseMove:function(t){var e=this.rid,a=o.default.option[e].onmouse,n=o.default.option[e].tooltipShow;if(0!=a){var r=document.getElementById("UC"+e).getBoundingClientRect(),i={};i={x:t.clientX-r.left,y:t.clientY-r.top+c.top},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}})):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=document.getElementById("UC"+e).getBoundingClientRect(),r={};r={x:t.clientX-n.left,y:t.clientY-n.top+c.top},t.changedTouches.unshift(r),o.default.instance[e].scrollEnd(t),o.default.option[e].mousedown=!1,l[e].callMethod("emitMsg",{name:"getTouchEnd",params:{type:"mouseUp",event:r,id:e}})}}}};e.default=h},8366:function(t,e,a){var n=a("4bad");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */.u-swiper-wrap[data-v-4bb3f8d0]{overflow:visible!important}.u-swiper-wrap uni-swiper[data-v-4bb3f8d0]{border-radius:%?20?%;overflow:hidden;-webkit-transform:translateY(0);transform:translateY(0);box-shadow:%?0?% %?40?% %?40?% %?-30?% grey}.u-swiper-wrap .u-swiper-indicator[data-v-4bb3f8d0]{bottom:%?-23?%!important}.u-swiper-wrap .u-swiper-indicator .u-indicator-item-rect[data-v-4bb3f8d0]{border-radius:%?2?%;height:%?4?%;width:%?20?%}.u-swiper-wrap .u-swiper-indicator .u-indicator-item-rect.u-indicator-item-rect-active[data-v-4bb3f8d0]{width:%?50?%;background:#be0000}.u-input__textarea[data-v-4bb3f8d0]{padding:%?0?%!important}.u-list-item[data-v-4bb3f8d0]{margin-left:%?0?%!important;width:%?100?%!important;height:%?100?%!important}.u-add-tips[data-v-4bb3f8d0]{margin-top:%?0?%!important}.custom-list-item[data-v-4bb3f8d0]{padding:%?0?% %?30?%}\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.u-collapse-head[data-v-4bb3f8d0]{position:relative;\ndisplay:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;\n-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center;color:#303133;font-size:%?30?%;line-height:1;padding:%?24?% 0;text-align:left}.u-collapse-title[data-v-4bb3f8d0]{-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:hidden}.u-arrow-down-icon[data-v-4bb3f8d0]{-webkit-transition:all .3s;transition:all .3s;margin-right:%?20?%;margin-left:%?14?%}.u-arrow-down-icon-active[data-v-4bb3f8d0]{-webkit-transform:rotate(180deg);transform:rotate(180deg);-webkit-transform-origin:center center;transform-origin:center center}.u-collapse-body[data-v-4bb3f8d0]{overflow:hidden;-webkit-transition:all .3s;transition:all .3s}.u-collapse-content[data-v-4bb3f8d0]{overflow:hidden;font-size:%?28?%;color:#909399;text-align:left}',""]),t.exports=e},8405:function(t,e,a){"use strict";a.r(e);var n=a("3b13"),r=a("55d2");for(var i in r)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(i);a("6863");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"e14678f8",null,!1,n["a"],o);e["default"]=l.exports},9072:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=l,a("4ec9"),a("d3b7"),a("3ca3"),a("ddb0");var n=s(a("7e84")),r=s(a("b380")),i=s(a("fa95")),o=s(a("4478"));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,i.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,r.default)(e,t)},l(t)}},"92dc":function(t,e,a){var n=a("4bad");e=n(!1),e.push([t.i,".container[data-v-fe25cc46]{width:30px;height:30px;position:relative}.container.loading3[data-v-fe25cc46]{-webkit-animation:rotation 1s infinite;animation:rotation 1s infinite}.container.loading3 .shape1[data-v-fe25cc46]{border-top-left-radius:10px}.container.loading3 .shape2[data-v-fe25cc46]{border-top-right-radius:10px}.container.loading3 .shape3[data-v-fe25cc46]{border-bottom-left-radius:10px}.container.loading3 .shape4[data-v-fe25cc46]{border-bottom-right-radius:10px}.container .shape[data-v-fe25cc46]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-fe25cc46]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-fe25cc46]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-fe25cc46]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-fe25cc46]{bottom:0;right:0;background-color:#e66}.loading3 .shape1[data-v-fe25cc46]{-webkit-animation:animation3shape1-data-v-fe25cc46 .5s ease 0s infinite alternate;animation:animation3shape1-data-v-fe25cc46 .5s ease 0s infinite alternate}@-webkit-keyframes animation3shape1-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(5px,5px);transform:translate(5px,5px)}}@keyframes animation3shape1-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(5px,5px);transform:translate(5px,5px)}}.loading3 .shape2[data-v-fe25cc46]{-webkit-animation:animation3shape2-data-v-fe25cc46 .5s ease 0s infinite alternate;animation:animation3shape2-data-v-fe25cc46 .5s ease 0s infinite alternate}@-webkit-keyframes animation3shape2-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-5px,5px);transform:translate(-5px,5px)}}@keyframes animation3shape2-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-5px,5px);transform:translate(-5px,5px)}}.loading3 .shape3[data-v-fe25cc46]{-webkit-animation:animation3shape3-data-v-fe25cc46 .5s ease 0s infinite alternate;animation:animation3shape3-data-v-fe25cc46 .5s ease 0s infinite alternate}@-webkit-keyframes animation3shape3-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(5px,-5px);transform:translate(5px,-5px)}}@keyframes animation3shape3-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(5px,-5px);transform:translate(5px,-5px)}}.loading3 .shape4[data-v-fe25cc46]{-webkit-animation:animation3shape4-data-v-fe25cc46 .5s ease 0s infinite alternate;animation:animation3shape4-data-v-fe25cc46 .5s ease 0s infinite alternate}@-webkit-keyframes animation3shape4-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-5px,-5px);transform:translate(-5px,-5px)}}@keyframes animation3shape4-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-5px,-5px);transform:translate(-5px,-5px)}}",""]),t.exports=e},9687:function(t,e,a){var n=a("4bad");e=n(!1),e.push([t.i,".chartsview[data-v-1b108cc9]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}",""]),t.exports=e},"99de":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var n=i(a("53ca")),r=i(a("257e"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){return!e||"object"!==(0,n.default)(e)&&"function"!==typeof e?(0,r.default)(t):e}},"9b42":function(t,e,a){function n(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var a=[],n=!0,r=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done);n=!0)if(a.push(o.value),e&&a.length===e)break}catch(l){r=!0,i=l}finally{try{n||null==s["return"]||s["return"]()}finally{if(r)throw i}}return a}}a("a4d3"),a("e01a"),a("d3b7"),a("d28b"),a("3ca3"),a("ddb0"),t.exports=n},"9cb7":function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[1==t.loadingType?a("Loading1"):t._e(),2==t.loadingType?a("Loading2"):t._e(),3==t.loadingType?a("Loading3"):t._e(),4==t.loadingType?a("Loading4"):t._e(),5==t.loadingType?a("Loading5"):t._e()],1)},i=[]},"9ce6":function(t,e,a){"use strict";var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("a9e3");var r=n(a("5751")),i=n(a("8405")),o=n(a("264a")),s=n(a("fec0")),l=n(a("0993")),c={components:{Loading1:r.default,Loading2:i.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},"9e9a":function(t,e,a){"use strict";a.r(e);var n=a("64b9"),r=a("bd37");for(var i in r)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(i);a("be16");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"688f25e7",null,!1,n["a"],o);e["default"]=l.exports},a09a:function(t,e,a){a("b680");var n=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],r=function(t,e){var a=new Date;a.setTime(1e3*t);var n=a.getFullYear(),r=a.getMonth()+1;r=r<10?"0"+r:r;var i=a.getDate();i=i<10?"0"+i:i;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+"-"+r+"-"+i+" "+o+":"+s+":"+l:"y-m-d"==e?n+"-"+r+"-"+i:"h:m"==e?o+":"+s:"h:m:s"==e?o+":"+s+":"+l:[n,r,i,o,s,l]};t.exports={type:["pie","ring","rose","word","funnel","map","arcbar","line","column","bar","area","radar","gauge","candle","mix","tline","tarea","scatter","bubble","demotype"],range:["饼状图","圆环图","玫瑰图","词云图","漏斗图","地图","圆弧进度条","折线图","柱状图","条状图","区域图","雷达图","仪表盘","K线图","混合图","时间轴折线","时间轴区域","散点图","气泡图","自定义类型"],categories:["line","column","bar","area","radar","gauge","candle","mix","demotype"],instance:{},option:{},formatter:{yAxisDemo1:function(t){return t+"元"},yAxisDemo2:function(t){return t.toFixed(2)},xAxisDemo1:function(t){return t+"年"},xAxisDemo2:function(t){return r(t,"h:m")},seriesDemo1:function(t){return t+"元"},tooltipDemo1:function(t,e,a,n){return 0==a?"随便用"+t.data+"年":"其他我没改"+t.data+"天"},pieDemo:function(t,e,a){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}}},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}}},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}}},column:{type:"column",color:n,padding:[15,15,0,5],xAxis:{disableGrid:!0},yAxis:{data:[{min:0}]},legend:{},extra:{column:{type:"group",width:30,meterBorde:1,meterFillColor:"#FFFFFF",activeBgColor:"#000000",activeBgOpacity:.08}}},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}}},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}}},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}}}}},a0d5:function(t,e,a){"use strict";a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var n={qiunLoading:a("e438").default,qiunError:a("52eb").default},r=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)},i=[]},a5a5:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"loading6",data:function(){return{}}};e.default=n},a7af:function(t,e,a){"use strict";var n=a("3710"),r=a.n(n);r.a},a896:function(t,e,a){"use strict";a.r(e);var n=a("1cda"),r=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},a9ff:function(t,e,a){"use strict";(function(t,n,r){var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("96cf");var o=i(a("53ca")),s=i(a("1da1")),l=i(a("5530")),c=i(a("2909")),u=i(a("b85c")),d=i(a("bee2")),h=i(a("ade3")),f=i(a("257e")),p=i(a("d4ec")),g=i(a("262e")),x=i(a("2caf8")),m=i(a("9072"));a("6c57"),a("d3b7"),a("25f0"),a("fb6a"),a("a15b"),a("e25e"),a("99af"),a("a434"),a("4160"),a("159b"),a("b64b"),a("c975"),a("13d5"),a("26e9"),a("4e82"),a("d81d"),a("ddb0"),a("caad"),a("ac1f"),a("841c"),a("a9e3"),a("4d63"),a("5319"),a("466d"),a("a4d3"),a("e01a"),a("5377"),a("accc"),a("1276"),a("baa5"),a("7db0"),a("f4b3"),a("bf19"),a("4de4"),a("a630"),a("3ca3"),a("498a");var v=a("78b5");function y(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function b(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 w=b((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={},r=n.lib={},i=r.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=r.WordArray=i.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=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,r=t.sigBytes;if(this.clamp(),n%4)for(var i=0;i<r;i++){var o=a[i>>>2]>>>24-i%4*8&255;e[n+i>>>2]|=o<<24-(n+i)%4*8}else for(i=0;i<r;i+=4)e[n+i>>>2]=a[i>>>2];return this.sigBytes+=r,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=i.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var a,n=[],r=function(e){e=e;var a=987654321,n=4294967295;return function(){var r=((a=36969*(65535&a)+(a>>16)&n)<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n;return r/=4294967296,(r+=.5)*(t.random()>.5?1:-1)}},i=0;i<e;i+=4){var s=r(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=[],r=0;r<a;r++){var i=e[r>>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).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=[],r=0;r<a;r++){var i=e[r>>>2]>>>24-r%4*8&255;n.push(String.fromCharCode(i))}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=r.BufferedBlockAlgorithm=i.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,r=a.sigBytes,i=this.blockSize,s=r/(4*i),l=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*i,c=t.min(4*l,r);if(l){for(var u=0;u<l;u+=i)this._doProcessBlock(n,u);var d=n.splice(0,l);a.sigBytes-=c}return new o.init(d,c)},clone:function(){var t=i.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),h=(r.Hasher=d.extend({cfg:i.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 h.HMAC.init(t,a).finalize(e)}}}),n.algo={});return n}(Math),a)})),k=(b((function(t,e){var a;t.exports=(a=w,function(t){var e=a,n=e.lib,r=n.WordArray,i=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=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var a=0;a<16;a++){var n=e+a,r=t[n];t[n]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var i=this._hash.words,o=t[e+0],l=t[e+1],f=t[e+2],p=t[e+3],g=t[e+4],x=t[e+5],m=t[e+6],v=t[e+7],y=t[e+8],b=t[e+9],w=t[e+10],k=t[e+11],S=t[e+12],A=t[e+13],T=t[e+14],P=t[e+15],C=i[0],_=i[1],D=i[2],M=i[3];C=c(C,_,D,M,o,7,s[0]),M=c(M,C,_,D,l,12,s[1]),D=c(D,M,C,_,f,17,s[2]),_=c(_,D,M,C,p,22,s[3]),C=c(C,_,D,M,g,7,s[4]),M=c(M,C,_,D,x,12,s[5]),D=c(D,M,C,_,m,17,s[6]),_=c(_,D,M,C,v,22,s[7]),C=c(C,_,D,M,y,7,s[8]),M=c(M,C,_,D,b,12,s[9]),D=c(D,M,C,_,w,17,s[10]),_=c(_,D,M,C,k,22,s[11]),C=c(C,_,D,M,S,7,s[12]),M=c(M,C,_,D,A,12,s[13]),D=c(D,M,C,_,T,17,s[14]),C=u(C,_=c(_,D,M,C,P,22,s[15]),D,M,l,5,s[16]),M=u(M,C,_,D,m,9,s[17]),D=u(D,M,C,_,k,14,s[18]),_=u(_,D,M,C,o,20,s[19]),C=u(C,_,D,M,x,5,s[20]),M=u(M,C,_,D,w,9,s[21]),D=u(D,M,C,_,P,14,s[22]),_=u(_,D,M,C,g,20,s[23]),C=u(C,_,D,M,b,5,s[24]),M=u(M,C,_,D,T,9,s[25]),D=u(D,M,C,_,p,14,s[26]),_=u(_,D,M,C,y,20,s[27]),C=u(C,_,D,M,A,5,s[28]),M=u(M,C,_,D,f,9,s[29]),D=u(D,M,C,_,v,14,s[30]),C=d(C,_=u(_,D,M,C,S,20,s[31]),D,M,x,4,s[32]),M=d(M,C,_,D,y,11,s[33]),D=d(D,M,C,_,k,16,s[34]),_=d(_,D,M,C,T,23,s[35]),C=d(C,_,D,M,l,4,s[36]),M=d(M,C,_,D,g,11,s[37]),D=d(D,M,C,_,v,16,s[38]),_=d(_,D,M,C,w,23,s[39]),C=d(C,_,D,M,A,4,s[40]),M=d(M,C,_,D,o,11,s[41]),D=d(D,M,C,_,p,16,s[42]),_=d(_,D,M,C,m,23,s[43]),C=d(C,_,D,M,b,4,s[44]),M=d(M,C,_,D,S,11,s[45]),D=d(D,M,C,_,P,16,s[46]),C=h(C,_=d(_,D,M,C,f,23,s[47]),D,M,o,6,s[48]),M=h(M,C,_,D,v,10,s[49]),D=h(D,M,C,_,T,15,s[50]),_=h(_,D,M,C,x,21,s[51]),C=h(C,_,D,M,S,6,s[52]),M=h(M,C,_,D,p,10,s[53]),D=h(D,M,C,_,w,15,s[54]),_=h(_,D,M,C,l,21,s[55]),C=h(C,_,D,M,y,6,s[56]),M=h(M,C,_,D,P,10,s[57]),D=h(D,M,C,_,m,15,s[58]),_=h(_,D,M,C,A,21,s[59]),C=h(C,_,D,M,g,6,s[60]),M=h(M,C,_,D,k,10,s[61]),D=h(D,M,C,_,f,15,s[62]),_=h(_,D,M,C,b,21,s[63]),i[0]=i[0]+C|0,i[1]=i[1]+_|0,i[2]=i[2]+D|0,i[3]=i[3]+M|0},_doFinalize:function(){var e=this._data,a=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;a[r>>>5]|=128<<24-r%32;var i=t.floor(n/4294967296),o=n;a[15+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),a[14+(r+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=i.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,e,a,n,r,i,o){var s=t+(e&a|~e&n)+r+o;return(s<<i|s>>>32-i)+e}function u(t,e,a,n,r,i,o){var s=t+(e&n|a&~n)+r+o;return(s<<i|s>>>32-i)+e}function d(t,e,a,n,r,i,o){var s=t+(e^a^n)+r+o;return(s<<i|s>>>32-i)+e}function h(t,e,a,n,r,i,o){var s=t+(a^(e|~n))+r+o;return(s<<i|s>>>32-i)+e}e.MD5=i._createHelper(l),e.HmacMD5=i._createHmacHelper(l)}(Math),a.MD5)})),b((function(t,e){var a,n,r;t.exports=(n=(a=w).lib.Base,r=a.enc.Utf8,void(a.algo.HMAC=n.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=r.parse(e));var a=t.blockSize,n=4*a;e.sigBytes>n&&(e=t.finalize(e)),e.clamp();for(var i=this._oKey=e.clone(),o=this._iKey=e.clone(),s=i.words,l=o.words,c=0;c<a;c++)s[c]^=1549556828,l[c]^=909522486;i.sigBytes=o.sigBytes=n,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))}})))})),b((function(t,e){t.exports=w.HmacMD5})));function S(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function A(t){return"object"===S(t)}var T=function(t){(0,g.default)(a,t);var e=(0,x.default)(a);function a(t,n){var r;return(0,p.default)(this,a),r=e.call(this,t),r.code=n,r}return a}((0,m.default)(Error));function P(t){return t&&"string"==typeof t?JSON.parse(t):t}var C=!1,_="h5",D=P(void 0),M=P([]),F=!1,L={};function I(t){var e,a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=L,a=t,Object.prototype.hasOwnProperty.call(e,a)||(L[t]=n),L[t]}"app-plus"===_&&(L=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={});var O=["invoke","success","fail","complete"],E=I("_globalUniCloudInterceptor");function R(t,e){E[t]||(E[t]={}),A(e)&&Object.keys(e).forEach((function(a){O.indexOf(a)>-1&&function(t,e,a){var n=E[t][e];n||(n=E[t][e]=[]),-1===n.indexOf(a)&&"function"==typeof a&&n.push(a)}(t,a,e[a])}))}function B(t,e){E[t]||(E[t]={}),A(e)?Object.keys(e).forEach((function(a){O.indexOf(a)>-1&&function(t,e,a){var n=E[t][e];if(n){var r=n.indexOf(a);r>-1&&n.splice(r,1)}}(t,a,e[a])})):delete E[t]}function z(t,e){return t&&0!==t.length?t.reduce((function(t,a){return t.then((function(){return a(e)}))}),Promise.resolve()):Promise.resolve()}function U(t,e){return E[t]&&E[t][e]||[]}function N(t,e){return e?function(a){var n,r=this,i="callFunction"===e&&"DCloud-clientDB"===(a&&a.name);n=this.isReady?Promise.resolve():this.initUniCloud,a=a||{};var o=n.then((function(){return i?Promise.resolve():z(U(e,"invoke"),a)})).then((function(){return t.call(r,a)})).then((function(t){return i?Promise.resolve(t):z(U(e,"success"),t).then((function(){return z(U(e,"complete"),t)})).then((function(){return Promise.resolve(t)}))}),(function(t){return i?Promise.reject(t):z(U(e,"fail"),t).then((function(){return z(U(e,"complete"),t)})).then((function(){return Promise.reject(t)}))}));if(!(a.success||a.fail||a.complete))return o;o.then((function(t){a.success&&a.success(t),a.complete&&a.complete(t)})).catch((function(t){a.fail&&a.fail(t),a.complete&&a.complete(t)}))}:function(e){if(!((e=e||{}).success||e.fail||e.complete))return t.call(this,e);t.call(this,e).then((function(t){e.success&&e.success(t),e.complete&&e.complete(t)}),(function(t){e.fail&&e.fail(t),e.complete&&e.complete(t)}))}}var W,j,q,H=function(t){(0,g.default)(a,t);var e=(0,x.default)(a);function a(t){var n;return(0,p.default)(this,a),n=e.call(this,t.message),n.errMsg=t.message||"",Object.defineProperties((0,f.default)(n),{code:{get:function(){return t.code}},requestId:{get:function(){return t.requestId}},message:{get:function(){return this.errMsg},set:function(t){this.errMsg=t}}}),n}return a}((0,m.default)(Error)),Y=(0,v.initVueI18n)({"zh-Hans":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},"zh-Hant":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},en:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},fr:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},es:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"}},"zh-Hans"),G=Y.t,J=(Y.setLocale,Y.getLocale);try{W=a("ecd6").default||a("ecd6")}catch(Le){W={appid:""}}function K(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,e="";e.length<t;)e+=Math.random().toString(32).substring(2);return e.substring(0,t)}function X(){var t=uni.getSystemInfoSync(),e=t.deviceId;return{PLATFORM:_,OS:q,APPID:W.appid,LOCALE:J(),DEVICEID:e,CLIENT_SDK_VERSION:"1.0.6"}}function Q(){if("n"===V()){try{j=plus.runtime.getDCloudId()}catch(Le){j=""}return j}return j||(j=K(32),uni.setStorage({key:"__DC_CLOUD_UUID",data:j})),j}function V(){var t;return(t={"app-plus":"n",h5:"h5","mp-weixin":"wx"},(0,h.default)(t,["y","a","p","mp-ali"].reverse().join(""),"ali"),(0,h.default)(t,"mp-baidu","bd"),(0,h.default)(t,"mp-toutiao","tt"),(0,h.default)(t,"mp-qq","qq"),(0,h.default)(t,"quickapp-native","qn"),t)[_]}var Z,$={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),k(a,e).toString()},wrappedRequest:function(t,e){return new Promise((function(a,r){e(Object.assign(t,{complete:function(t){t||(t={}),C&&"h5"===_&&t.errMsg&&0===t.errMsg.indexOf("request:fail")&&n.warn("发布H5,需要在uniCloud后台操作,绑定安全域名,否则会因为跨域问题而无法访问。教程参考:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");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)return r(new H({code:"SYS_ERR",message:t.errMsg||"request:fail",requestId:e}));var i=t.data;if(i.error)return r(new H({code:i.error.code,message:i.error.message,requestId:e}));i.result=i.data,i.requestId=e,delete i.data,a(i)}}))}))}},tt={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()}},et=function(){function t(e){(0,p.default)(this,t),["spaceId","clientSecret"].forEach((function(t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(G("uniCloud.init.paramRequired",{param:t}))})),this.config=Object.assign({},{endpoint:"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=tt,this._getAccessTokenPromise=null,this._getAccessTokenPromiseStatus=null}return(0,d.default)(t,[{key:"hasAccessToken",get:function(){return!!this.accessToken}},{key:"setAccessToken",value:function(t){this.accessToken=t}},{key:"requestWrapped",value:function(t){return $.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"]=$.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"]=$.sign(a,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:a,dataType:"json",header:n}}},{key:"getAccessToken",value:function(){var t=this;return"pending"===this._getAccessTokenPromiseStatus||(this._getAccessTokenPromiseStatus="pending",this._getAccessTokenPromise=this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(e){return new Promise((function(a,n){e.result&&e.result.accessToken?(t.setAccessToken(e.result.accessToken),t._getAccessTokenPromiseStatus="fulfilled",a(t.accessToken)):(t._getAccessTokenPromiseStatus="rejected",n(new H({code:"AUTH_FAILED",message:"获取accessToken失败"})))}))}),(function(e){return t._getAccessTokenPromiseStatus="rejected",Promise.reject(e)}))),this._getAccessTokenPromise}},{key:"authorize",value:function(){this.getAccessToken()}},{key:"callFunction",value:function(t){var e={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:t.name,functionArgs:t.data||{}})};return this.request(this.setupRequest(e))}},{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,r=t.name,i=t.filePath,o=t.fileType,s=t.onUploadProgress;return new Promise((function(t,l){var c=e.adapter.uploadFile({url:a,formData:n,name:r,filePath:i,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(e){e&&e.statusCode<400?t(e):l(new H({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(t){l(new H({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(t){var e=this,a=t.filePath,n=t.cloudPath,r=t.fileType,i=void 0===r?"image":r,o=t.onUploadProgress,s=t.config;if(!n)throw new H({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});var l,c,u=s&&s.envType||this.config.envType;return this.getOSSUploadOptionsFromPath({env:u,filename:n}).then((function(t){var n=t.result;l=n.id,c="https://"+n.cdnDomain+"/"+n.ossPath;var r={url:"https://"+n.host,formData:{"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:n.accessKeyId,Signature:n.signature,host:n.host,id:l,key:n.ossPath,policy:n.policy,success_action_status:200},fileName:"file",name:"file",filePath:a,fileType:i};return e.uploadFileToOSS(Object.assign({},r,{onUploadProgress:o}))})).then((function(){return e.reportOSSUpload({id:l})})).then((function(t){return new Promise((function(e,n){t.success?e({success:!0,filePath:a,fileID:c}):n(new H({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(t){var e=t.fileList,a={method:"serverless.file.resource.delete",params:JSON.stringify({id:e[0]})};return this.request(this.setupRequest(a))}},{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 H({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((function(t){return{fileID:t,tempFileURL:t}}))})}))}}]),t}(),at={init:function(t){var e=new et(t),a={signInAnonymously:function(){return e.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return a},e.customAuth=e.auth,e}},nt="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:",rt="//tcb-api.tencentcloudapi.com/web";!function(t){t.local="local",t.none="none",t.session="session"}(Z||(Z={}));var it,ot=function(){},st=function(){var t;if(!Promise){t=function(){},t.promise={};var e=function(){throw new Error('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 lt(t){return void 0===t}function ct(t){return"[object Null]"===Object.prototype.toString.call(t)}function ut(t){var e,a,n=(e=t,"[object Array]"===Object.prototype.toString.call(e)?t:[t]),r=(0,u.default)(n);try{for(r.s();!(a=r.n()).done;){var i=a.value,o=i.isMatch,s=i.genAdapter,l=i.runtime;if(o())return{adapter:s(),runtime:l}}}catch(c){r.e(c)}finally{r.f()}}!function(t){t.WEB="web",t.WX_MP="wx_mp"}(it||(it={}));var dt={adapter:null,runtime:void 0},ht=["anonymousUuidKey"],ft=function(t){(0,g.default)(a,t);var e=(0,x.default)(a);function a(){var t;return(0,p.default)(this,a),t=e.call(this),dt.adapter.root.tcbObject||(dt.adapter.root.tcbObject={}),t}return(0,d.default)(a,[{key:"setItem",value:function(t,e){dt.adapter.root.tcbObject[t]=e}},{key:"getItem",value:function(t){return dt.adapter.root.tcbObject[t]}},{key:"removeItem",value:function(t){delete dt.adapter.root.tcbObject[t]}},{key:"clear",value:function(){delete dt.adapter.root.tcbObject}}]),a}(ot);function pt(t,e){switch(t){case"local":return e.localStorage||new ft;case"none":return new ft;default:return e.sessionStorage||new ft}}var gt=function(){function t(e){if((0,p.default)(this,t),!this._storage){this._persistence=dt.adapter.primaryStorage||e.persistence,this._storage=pt(this._persistence,dt.adapter);var a="access_token_"+e.env,n="access_token_expire_"+e.env,r="refresh_token_"+e.env,i="anonymous_uuid_"+e.env,o="login_type_"+e.env,s="user_info_"+e.env;this.keys={accessTokenKey:a,accessTokenExpireKey:n,refreshTokenKey:r,anonymousUuidKey:i,loginTypeKey:o,userInfoKey:s}}}return(0,d.default)(t,[{key:"updatePersistence",value:function(t){if(t!==this._persistence){var e="local"===this._persistence;this._persistence=t;var a=pt(t,dt.adapter);for(var n in this.keys){var r=this.keys[n];if(!e||!ht.includes(n)){var i=this._storage.getItem(r);lt(i)||ct(i)||(a.setItem(r,i),this._storage.removeItem(r))}}this._storage=a}}},{key:"setStore",value:function(t,e,a){if(this._storage){var n={version:a||"localCachev1",content:e},r=JSON.stringify(n);try{this._storage.setItem(t,r)}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}(),xt={},mt={};function vt(t){return xt[t]}var yt=function t(e,a){(0,p.default)(this,t),this.data=a||null,this.name=e},bt=function(t){(0,g.default)(a,t);var e=(0,x.default)(a);function a(t,n){var r;return(0,p.default)(this,a),r=e.call(this,"error",{error:t,data:n}),r.error=t,r}return a}(yt),wt=new(function(){function t(){(0,p.default)(this,t),this._listeners={}}return(0,d.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 bt)return n.error(t.error),this;var a="string"==typeof t?new yt(t,e||{}):t,r=a.name;if(this._listens(r)){a.target=this;var i,o=this._listeners[r]?(0,c.default)(this._listeners[r]):[],s=(0,u.default)(o);try{for(s.s();!(i=s.n()).done;){var l=i.value;l.call(this,a)}}catch(d){s.e(d)}finally{s.f()}}return this}},{key:"_listens",value:function(t){return this._listeners[t]&&this._listeners[t].length>0}}]),t}());function kt(t,e){wt.on(t,e)}function St(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};wt.fire(t,e)}function At(t,e){wt.off(t,e)}var Tt,Pt="loginStateChanged",Ct="loginStateExpire",_t="loginTypeChanged",Dt="anonymousConverted",Mt="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"}(Tt||(Tt={}));var Ft=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Lt={"X-SDK-Version":"1.3.5"};function It(t,e,a){var n=t[e];t[e]=function(e){var r={},i={};a.forEach((function(a){var n=a.call(t,e),o=n.data,s=n.headers;Object.assign(r,o),Object.assign(i,s)}));var o=e.data;return o&&function(){var t;if(t=o,"[object FormData]"!==Object.prototype.toString.call(t))e.data=(0,l.default)((0,l.default)({},o),r);else for(var a in r)o.append(a,r[a])}(),e.headers=(0,l.default)((0,l.default)({},e.headers||{}),i),n.call(t,e)}}function Ot(){var t=Math.random().toString(16).slice(2);return{data:{seqId:t},headers:(0,l.default)((0,l.default)({},Lt),{},{"x-seqid":t})}}var Et=function(){function t(){var e,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,p.default)(this,t),this.config=a,this._reqClass=new dt.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]}),this._cache=vt(this.config.env),this._localCache=(e=this.config.env,mt[e]),It(this._reqClass,"post",[Ot]),It(this._reqClass,"upload",[Ot]),It(this._reqClass,"download",[Ot])}return(0,d.default)(t,[{key:"post",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.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)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"upload",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.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)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"download",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.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)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"refreshAccessToken",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.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]])})));function e(){return t.apply(this,arguments)}return e}()},{key:"_refreshAccessToken",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(){var e,a,n,r,i,o,s,l,c,u,d,h,f;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this._cache.keys,a=e.accessTokenKey,n=e.accessTokenExpireKey,r=e.refreshTokenKey,i=e.loginTypeKey,o=e.anonymousUuidKey,this._cache.removeStore(a),this._cache.removeStore(n),s=this._cache.getStore(r),s){t.next=5;break}throw new Error("未登录CloudBase");case 5:return l={refresh_token:s},t.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",l);case 8:if(c=t.sent,!c.data.code){t.next=21;break}if(u=c.data.code,"SIGN_PARAM_INVALID"!==u&&"REFRESH_TOKEN_EXPIRED"!==u&&"INVALID_REFRESH_TOKEN"!==u){t.next=20;break}if(this._cache.getStore(i)!==Tt.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==u){t.next=19;break}return d=this._cache.getStore(o),h=this._cache.getStore(r),t.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:d,refresh_token:h});case 17:return f=t.sent,t.abrupt("return",(this.setRefreshToken(f.refresh_token),this._refreshAccessToken()));case 19:St(Ct),this._cache.removeStore(r);case 20:throw new Error("刷新access token失败:"+c.data.code);case 21:if(!c.data.access_token){t.next=23;break}return t.abrupt("return",(St(Mt),this._cache.setStore(a,c.data.access_token),this._cache.setStore(n,c.data.access_token_expire+Date.now()),{accessToken:c.data.access_token,accessTokenExpire:c.data.access_token_expire}));case 23:c.data.refresh_token&&(this._cache.removeStore(r),this._cache.setStore(r,c.data.refresh_token),this._refreshAccessToken());case 24:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getAccessToken",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(){var e,a,n,r,i,o,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this._cache.keys,a=e.accessTokenKey,n=e.accessTokenExpireKey,r=e.refreshTokenKey,this._cache.getStore(r)){t.next=3;break}throw new Error("refresh token不存在,登录状态异常");case 3:if(i=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(i,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",(!i||!o||o<Date.now())&&s?this.refreshAccessToken():{accessToken:i,accessTokenExpire:o});case 13:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"request",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e,a,n){var r,i,o,s,c,u,d,h,f,p,g,x,m,v,y,b;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r="x-tcb-trace_"+this.config.env,i="application/x-www-form-urlencoded",o=(0,l.default)({action:e,env:this.config.env,dataVersion:"2019-08-16"},a),-1!==Ft.indexOf(e)){t.next=10;break}if(s=this._cache.keys.refreshTokenKey,t.t0=this._cache.getStore(s),!t.t0){t.next=10;break}return t.next=9,this.getAccessToken();case 9:o.access_token=t.sent.accessToken;case 10:if("storage.uploadFile"===e){for(u in c=new FormData,c)c.hasOwnProperty(u)&&void 0!==c[u]&&c.append(u,o[u]);i="multipart/form-data"}else for(d in i="application/json;charset=UTF-8",c={},o)void 0!==o[d]&&(c[d]=o[d]);return h={headers:{"content-type":i}},n&&n.onUploadProgress&&(h.onUploadProgress=n.onUploadProgress),f=this._localCache.getStore(r),f&&(h.headers["X-TCB-Trace"]=f),p=a.parse,g=a.inQuery,x=a.search,m={env:this.config.env},p&&(m.parse=!0),g&&(m=(0,l.default)((0,l.default)({},g),m)),v=function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=/\?/.test(e),r="";for(var i in a)""===r?!n&&(e+="?"):r+="&",r+="".concat(i,"=").concat(encodeURIComponent(a[i]));return/^http(s)?\:\/\//.test(e+=r)?e:"".concat(t).concat(e)}(nt,rt,m),x&&(v+=x),t.next=22,this.post((0,l.default)({url:v,data:c},h));case 22:if(y=t.sent,b=y.header&&y.header["x-tcb-trace"],b&&this._localCache.setStore(r,b),(200===Number(y.status)||200===Number(y.statusCode))&&y.data){t.next=26;break}throw new Error("network request error");case 26:return t.abrupt("return",y);case 27:case"end":return t.stop()}}),t,this)})));function e(e,a,n){return t.apply(this,arguments)}return e}()},{key:"send",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e){var a,n,r,i=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=i.length>1&&void 0!==i[1]?i[1]:{},t.next=3,this.request(e,a,{onUploadProgress:a.onUploadProgress});case 3:if(n=t.sent,"ACCESS_TOKEN_EXPIRED"!==n.data.code||-1!==Ft.indexOf(e)){t.next=13;break}return t.next=7,this.refreshAccessToken();case 7:return t.next=9,this.request(e,a,{onUploadProgress:a.onUploadProgress});case 9:if(r=t.sent,!r.data.code){t.next=12;break}throw new Error("[".concat(r.data.code,"] ").concat(r.data.message));case 12:return t.abrupt("return",r.data);case 13:if(!n.data.code){t.next=15;break}throw new Error("[".concat(n.data.code,"] ").concat(n.data.message));case 15:return t.abrupt("return",n.data);case 16:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"setRefreshToken",value:function(t){var e=this._cache.keys,a=e.accessTokenKey,n=e.accessTokenExpireKey,r=e.refreshTokenKey;this._cache.removeStore(a),this._cache.removeStore(n),this._cache.setStore(r,t)}}]),t}(),Rt={};function Bt(t){return Rt[t]}var zt=function(){function t(e){(0,p.default)(this,t),this.config=e,this._cache=vt(e.env),this._request=Bt(e.env)}return(0,d.default)(t,[{key:"setRefreshToken",value:function(t){var e=this._cache.keys,a=e.accessTokenKey,n=e.accessTokenExpireKey,r=e.refreshTokenKey;this._cache.removeStore(a),this._cache.removeStore(n),this._cache.setStore(r,t)}},{key:"setAccessToken",value:function(t,e){var a=this._cache.keys,n=a.accessTokenKey,r=a.accessTokenExpireKey;this._cache.setStore(n,t),this._cache.setStore(r,e)}},{key:"refreshUserInfo",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.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)})));function e(){return t.apply(this,arguments)}return e}()},{key:"setLocalUserInfo",value:function(t){var e=this._cache.keys.userInfoKey;this._cache.setStore(e,t)}}]),t}(),Ut=function(){function t(e){if((0,p.default)(this,t),!e)throw new Error("envId is not defined");this._envId=e,this._cache=vt(this._envId),this._request=Bt(this._envId),this.setUserInfo()}return(0,d.default)(t,[{key:"linkWithTicket",value:function(t){if("string"!=typeof t)throw new Error("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 Error("username must be a string");return this._request.send("auth.updateUsername",{username:t})}},{key:"getLinkedUidList",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(){var e,a,n,r;return regeneratorRuntime.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,r=a.users,t.abrupt("return",(r.forEach((function(t){t.wxOpenId&&t.wxPublicId&&(n=!0)})),{users:r,hasPrimaryUid:n}));case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{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,s.default)(regeneratorRuntime.mark((function t(e){var a,n,r,i,o,s,l,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.nickName,n=e.gender,r=e.avatarUrl,i=e.province,o=e.country,s=e.city,t.next=8,this._request.send("auth.updateUserInfo",{nickName:a,gender:n,avatarUrl:r,province:i,country:o,city:s});case 8:l=t.sent,c=l.data,this.setLocalUserInfo(c);case 11:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"refresh",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.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)})));function e(){return t.apply(this,arguments)}return e}()},{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}(),Nt=function(){function t(e){if((0,p.default)(this,t),!e)throw new Error("envId is not defined");this._cache=vt(e);var a=this._cache.keys,n=a.refreshTokenKey,r=a.accessTokenKey,i=a.accessTokenExpireKey,o=this._cache.getStore(n),s=this._cache.getStore(r),l=this._cache.getStore(i);this.credential={refreshToken:o,accessToken:s,accessTokenExpire:l},this.user=new Ut(e)}return(0,d.default)(t,[{key:"isAnonymousAuth",get:function(){return this.loginType===Tt.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===Tt.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===Tt.WECHAT||this.loginType===Tt.WECHAT_OPEN||this.loginType===Tt.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),t}(),Wt=function(t){(0,g.default)(a,t);var e=(0,x.default)(a);function a(){return(0,p.default)(this,a),e.apply(this,arguments)}return(0,d.default)(a,[{key:"signIn",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(){var e,a,n,r,i,o,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this._cache.updatePersistence("local"),e=this._cache.keys,a=e.anonymousUuidKey,n=e.refreshTokenKey,r=this._cache.getStore(a)||void 0,i=this._cache.getStore(n)||void 0,t.next=8,this._request.send("auth.signInAnonymously",{anonymous_uuid:r,refresh_token:i});case 8:if(o=t.sent,!o.uuid||!o.refresh_token){t.next=20;break}return this._setAnonymousUUID(o.uuid),this.setRefreshToken(o.refresh_token),t.next=14,this._request.refreshAccessToken();case 14:return St(Pt),St(_t,{env:this.config.env,loginType:Tt.ANONYMOUS,persistence:"local"}),s=new Nt(this.config.env),t.next=19,s.user.refresh();case 19:return t.abrupt("return",s);case 20:throw new Error("匿名登录失败");case 21:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e){var a,n,r,i,o,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=this._cache.keys,n=a.anonymousUuidKey,r=a.refreshTokenKey,i=this._cache.getStore(n),o=this._cache.getStore(r),t.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:i,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 St(Dt,{env:this.config.env}),St(_t,{loginType:Tt.CUSTOM,persistence:"local"}),t.abrupt("return",{credential:{refreshToken:s.refresh_token}});case 16:throw new Error("匿名转化失败");case 17:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{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,Tt.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),a}(zt),jt=function(t){(0,g.default)(a,t);var e=(0,x.default)(a);function a(){return(0,p.default)(this,a),e.apply(this,arguments)}return(0,d.default)(a,[{key:"signIn",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new Error("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 St(Pt),St(_t,{env:this.config.env,loginType:Tt.CUSTOM,persistence:this.config.persistence}),t.next=14,this.refreshUserInfo();case 14:return t.abrupt("return",new Nt(this.config.env));case 15:throw new Error("自定义登录失败");case 16:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()}]),a}(zt),qt=function(t){(0,g.default)(a,t);var e=(0,x.default)(a);function a(){return(0,p.default)(this,a),e.apply(this,arguments)}return(0,d.default)(a,[{key:"signIn",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e,a){var n,r,i,o,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new Error("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(r=t.sent,i=r.refresh_token,o=r.access_token,s=r.access_token_expire,!i){t.next=22;break}if(this.setRefreshToken(i),!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 St(Pt),St(_t,{env:this.config.env,loginType:Tt.EMAIL,persistence:this.config.persistence}),t.abrupt("return",new Nt(this.config.env));case 22:throw r.code?new Error("邮箱登录失败: [".concat(r.code,"] ").concat(r.message)):new Error("邮箱登录失败");case 23:case"end":return t.stop()}}),t,this)})));function e(e,a){return t.apply(this,arguments)}return e}()},{key:"activate",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.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)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"resetPasswordWithToken",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e,a){return regeneratorRuntime.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)})));function e(e,a){return t.apply(this,arguments)}return e}()}]),a}(zt),Ht=function(t){(0,g.default)(a,t);var e=(0,x.default)(a);function a(){return(0,p.default)(this,a),e.apply(this,arguments)}return(0,d.default)(a,[{key:"signIn",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e,a){var r,i,o,s,l;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new Error("username must be a string");case 2:return"string"!=typeof a&&(a="",n.warn("password is empty")),r=this._cache.keys.refreshTokenKey,t.next=6,this._request.send("auth.signIn",{loginType:Tt.USERNAME,username:e,password:a,refresh_token:this._cache.getStore(r)||""});case 6:if(i=t.sent,o=i.refresh_token,s=i.access_token_expire,l=i.access_token,!o){t.next=23;break}if(this.setRefreshToken(o),!l||!s){t.next=16;break}this.setAccessToken(l,s),t.next=18;break;case 16:return t.next=18,this._request.refreshAccessToken();case 18:return t.next=20,this.refreshUserInfo();case 20:return St(Pt),St(_t,{env:this.config.env,loginType:Tt.USERNAME,persistence:this.config.persistence}),t.abrupt("return",new Nt(this.config.env));case 23:throw i.code?new Error("用户名密码登录失败: [".concat(i.code,"] ").concat(i.message)):new Error("用户名密码登录失败");case 24:case"end":return t.stop()}}),t,this)})));function e(e,a){return t.apply(this,arguments)}return e}()}]),a}(zt),Yt=function(){function t(e){(0,p.default)(this,t),this.config=e,this._cache=vt(e.env),this._request=Bt(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),kt(_t,this._onLoginTypeChanged)}return(0,d.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 Wt(this.config)}},{key:"customAuthProvider",value:function(){return new jt(this.config)}},{key:"emailAuthProvider",value:function(){return new qt(this.config)}},{key:"usernameAuthProvider",value:function(){return new Ht(this.config)}},{key:"signInAnonymously",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Wt(this.config).signIn());case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"signInWithEmailAndPassword",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e,a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new qt(this.config).signIn(e,a));case 1:case"end":return t.stop()}}),t,this)})));function e(e,a){return t.apply(this,arguments)}return e}()},{key:"signInWithUsernameAndPassword",value:function(t,e){return new Ht(this.config).signIn(t,e)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new Wt(this.config)),kt(Dt,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)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"signOut",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(){var e,a,n,r,i,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.loginType!==Tt.ANONYMOUS){t.next=2;break}throw new Error("匿名用户不支持登出操作");case 2:if(e=this._cache.keys,a=e.refreshTokenKey,n=e.accessTokenKey,r=e.accessTokenExpireKey,i=this._cache.getStore(a),i){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,this._request.send("auth.logout",{refresh_token:i});case 7:return o=t.sent,t.abrupt("return",(this._cache.removeStore(a),this._cache.removeStore(n),this._cache.removeStore(r),St(Pt),St(_t,{env:this.config.env,loginType:Tt.NULL,persistence:this.config.persistence}),o));case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"signUpWithEmailAndPassword",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e,a){return regeneratorRuntime.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)})));function e(e,a){return t.apply(this,arguments)}return e}()},{key:"sendPasswordResetEmail",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.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)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"onLoginStateChanged",value:function(t){var e=this;kt(Pt,(function(){var a=e.hasLoginState();t.call(e,a)}));var a=this.hasLoginState();t.call(this,a)}},{key:"onLoginStateExpired",value:function(t){kt(Ct,t.bind(this))}},{key:"onAccessTokenRefreshed",value:function(t){kt(Mt,t.bind(this))}},{key:"onAnonymousConverted",value:function(t){kt(Dt,t.bind(this))}},{key:"onLoginTypeChanged",value:function(t){var e=this;kt(_t,(function(){var a=e.hasLoginState();t.call(e,a)}))}},{key:"getAccessToken",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.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)})));function e(){return t.apply(this,arguments)}return e}()},{key:"hasLoginState",value:function(){var t=this._cache.keys.refreshTokenKey;return this._cache.getStore(t)?new Nt(this.config.env):null}},{key:"isUsernameRegistered",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new Error("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)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new jt(this.config).signIn(e));case 1:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{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,l.default)((0,l.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,r=e.env;r===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,a))}}]),t}(),Gt=function(t,e){e=e||st();var a=Bt(this.config.env),n=t.cloudPath,r=t.filePath,i=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,h=o.cosFileId,f=t.requestId,p={key:n,signature:c,"x-cos-meta-fileid":h,success_action_status:"201","x-cos-security-token":u};a.upload({url:l,data:p,file:r,name:n,fileType:s,onUploadProgress:i}).then((function(t){201===t.statusCode?e(null,{fileID:d,requestId:f}):e(new Error("STORAGE_REQUEST_FAIL: "+t.data))})).catch((function(t){e(t)}))})).catch((function(t){e(t)})),e.promise},Jt=function(t,e){e=e||st();var a=Bt(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},Kt=function(t,e){var a=t.fileList;if(e=e||st(),!a||!Array.isArray(a))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var n,r=(0,u.default)(a);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!i||"string"!=typeof i)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(s){r.e(s)}finally{r.f()}var o={fileid_list:a};return Bt(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},Xt=function(t,e){var a=t.fileList;e=e||st(),a&&Array.isArray(a)||e(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var n,r=[],i=(0,u.default)(a);try{for(i.s();!(n=i.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的对象"}),r.push({fileid:s.fileID,max_age:s.maxAge})):"string"==typeof s?r.push({fileid:s}):e(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(c){i.e(c)}finally{i.f()}var l={file_list:r};return Bt(this.config.env).send("storage.batchGetDownloadUrl",l).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},Qt=function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e,a){var n,r,i,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.fileID,t.next=3,Xt.call(this,{fileList:[{fileID:n,maxAge:600}]});case 3:if(r=t.sent.fileList[0],"SUCCESS"===r.code){t.next=6;break}return t.abrupt("return",a?a(r):new Promise((function(t){t(r)})));case 6:if(i=Bt(this.config.env),o=r.download_url,o=encodeURI(o),a){t.next=10;break}return t.abrupt("return",i.download({url:o}));case 10:return t.t0=a,t.next=13,i.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)}}(),Vt=function(t,e){var a,n=t.name,r=t.data,i=t.query,o=t.parse,s=t.search,l=e||st();try{a=r?JSON.stringify(r):""}catch(n){return Promise.reject(n)}if(!n)return Promise.reject(new Error("函数名不能为空"));var c={inQuery:i,parse:o,search:s,function_name:n,request_data:a};return Bt(this.config.env).send("functions.invokeFunction",c).then((function(t){if(t.code)l(null,t);else{var e=t.data.response_data;if(o)l(null,{result:e,requestId:t.requestId});else try{e=JSON.parse(t.data.response_data),l(null,{result:e,requestId:t.requestId})}catch(t){l(new Error("response data must be json"))}}return l.promise})).catch((function(t){l(t)})),l.promise},Zt={timeout:15e3,persistence:"session"},$t={},te=function(){function t(e){(0,p.default)(this,t),this.config=e||this.config,this.authObj=void 0}return(0,d.default)(t,[{key:"init",value:function(e){switch(dt.adapter||(this.requestClient=new dt.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:"请求在".concat((e.timeout||5e3)/1e3,"s内未完成,已中断")})),this.config=(0,l.default)((0,l.default)({},Zt),e),!0){case this.config.timeout>6e5:n.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:n.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||dt.adapter.primaryStorage||Zt.persistence;return n!==this.config.persistence&&(this.config.persistence=n),function(t){var e=t.env;xt[e]=new gt(t),mt[e]=new gt((0,l.default)((0,l.default)({},t),{},{persistence:"local"}))}(this.config),a=this.config,Rt[a.env]=new Et(a),this.authObj=new Yt(this.config),this.authObj}},{key:"on",value:function(t,e){return kt.apply(this,[t,e])}},{key:"off",value:function(t,e){return At.apply(this,[t,e])}},{key:"callFunction",value:function(t,e){return Vt.apply(this,[t,e])}},{key:"deleteFile",value:function(t,e){return Kt.apply(this,[t,e])}},{key:"getTempFileURL",value:function(t,e){return Xt.apply(this,[t,e])}},{key:"downloadFile",value:function(t,e){return Qt.apply(this,[t,e])}},{key:"uploadFile",value:function(t,e){return Gt.apply(this,[t,e])}},{key:"getUploadMetadata",value:function(t,e){return Jt.apply(this,[t,e])}},{key:"registerExtension",value:function(t){$t[t.name]=t}},{key:"invokeExtension",value:function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e,a){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=$t[e],n){t.next=3;break}throw Error("扩展".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)})));function e(e,a){return t.apply(this,arguments)}return e}()},{key:"useAdapters",value:function(t){var e=ut(t)||{},a=e.adapter,n=e.runtime;a&&(dt.adapter=a),n&&(dt.runtime=n)}}]),t}(),ee=new te;function ae(t,e,a){void 0===a&&(a={});var n=/\?/.test(e),r="";for(var i in a)""===r?!n&&(e+="?"):r+="&",r+=i+"="+encodeURIComponent(a[i]);return/^http(s)?:\/\//.test(e+=r)?e:""+t+e}var ne=function(){function t(){(0,p.default)(this,t)}return(0,d.default)(t,[{key:"post",value:function(t){var e=t.url,a=t.data,n=t.headers;return new Promise((function(t,r){tt.request({url:ae("https:",e),data:a,method:"POST",header:n,success:function(e){t(e)},fail:function(t){r(t)}})}))}},{key:"upload",value:function(t){return new Promise((function(e,a){var r=t.url,i=t.file,o=t.data,s=t.headers,l=t.fileType,c=tt.uploadFile({url:ae("https:",r),name:"file",formData:Object.assign({},o),filePath:i,fileType:l,header:s,success:function(t){var a={statusCode:t.statusCode,data:t.data||{}};200===t.statusCode&&o.success_action_status&&(a.statusCode=parseInt(o.success_action_status,10)),e(a)},fail:function(t){C&&"mp-alipay"===_&&n.warn("支付宝小程序开发工具上传腾讯云时无法准确判断是否上传成功,请使用真机测试"),a(new Error(t.errMsg||"uploadFile:fail"))}});"function"==typeof t.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(e){t.onUploadProgress({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}}]),t}(),re={setItem:function(t,e){tt.setStorageSync(t,e)},getItem:function(t){return tt.getStorageSync(t)},removeItem:function(t){tt.removeStorageSync(t)},clear:function(){tt.clearStorageSync()}},ie={genAdapter:function(){return{root:{},reqClass:ne,localStorage:re,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};ee.useAdapters(ie);var oe=ee,se=oe.init;oe.init=function(t){t.env=t.spaceId;var e=se.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){e[t]=N(e[t]).bind(e)})),e},e.customAuth=e.auth,e};var le,ce,ue=function(t){(0,g.default)(a,t);var e=(0,x.default)(a);function a(){return(0,p.default)(this,a),e.apply(this,arguments)}return(0,d.default)(a,[{key:"getAccessToken",value:function(){var t=this;return new Promise((function(e,a){t.setAccessToken("Anonymous_Access_token"),e("Anonymous_Access_token")}))}},{key:"setupRequest",value:function(t,e){var a=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};"auth"!==e&&(a.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=$.sign(a,this.config.clientSecret);var r=X(),i=r.APPID,o=r.PLATFORM,s=r.DEVICEID,l=r.CLIENT_SDK_VERSION;return n["x-client-platform"]=o,n["x-client-appid"]=i,n["x-client-device-id"]=s,n["x-client-version"]=l,n["x-client-token"]=tt.getStorageSync("uni_id_token"),{url:this.config.requestUrl,method:"POST",data:a,dataType:"json",header:JSON.parse(JSON.stringify(n))}}},{key:"uploadFileToOSS",value:function(t){var e=this,a=t.url,n=t.formData,r=t.name,i=t.filePath,o=t.fileType,s=t.onUploadProgress;return new Promise((function(t,l){var c=e.adapter.uploadFile({url:a,formData:n,name:r,filePath:i,fileType:o,success:function(e){e&&e.statusCode<400?t(e):l(new H({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(t){l(new H({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:"uploadFile",value:function(t){var e,a=this,n=t.filePath,r=t.cloudPath,i=t.fileType,o=void 0===i?"image":i,s=t.onUploadProgress;if(!r)throw new H({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getOSSUploadOptionsFromPath({cloudPath:r}).then((function(t){var r=t.result,i=r.url,l=r.formData,c=r.name,u=r.fileUrl;e=u;var d={url:i,formData:l,name:c,filePath:n,fileType:o};return a.uploadFileToOSS(Object.assign({},d,{onUploadProgress:s}))})).then((function(){return a.reportOSSUpload({cloudPath:r})})).then((function(t){return new Promise((function(a,r){t.success?a({success:!0,filePath:n,fileID:e}):r(new H({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}}]),a}(et),de={init:function(t){var e=new ue(t),a={signInAnonymously:function(){return e.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return a},e.customAuth=e.auth,e}};function he(t){var e=t.name,a=t.data,n=t.spaceId,r=t.provider;le||(le=X(),ce={ak:W.appid,p:"android"===q?"a":"i",ut:V(),uuid:Q()});var i=JSON.parse(JSON.stringify(a||{})),o=e,s=n,l={tencent:"t",aliyun:"a"}[r],c=Object.assign({},ce,{fn:o,sid:s,pvd:l});Object.assign(i,{clientInfo:le,uniCloudClientInfo:encodeURIComponent(JSON.stringify(c))});var u=uni.getSystemInfoSync(),d=u.deviceId;if(i.uniCloudDeviceId=d,!i.uniIdToken){var h=tt.getStorageSync("uni_id_token")||tt.getStorageSync("uniIdToken");h&&(i.uniIdToken=h)}return i}function fe(t){var e=this,a=t.name,r=t.data,i=this.localAddress,o=this.localPort,s={aliyun:"aliyun",tencent:"tcb"}[this.config.provider],l=this.config.spaceId,c="http://".concat(i,":").concat(o,"/system/check-function"),u="http://".concat(i,":").concat(o,"/cloudfunctions/").concat(a);return new Promise((function(t,e){tt.request({method:"POST",url:c,data:{name:a,platform:_,provider:s,spaceId:l},timeout:3e3,success:function(e){t(e)},fail:function(){t({data:{code:"NETWORK_ERROR",message:"连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"}})}})})).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.data,a=e||{},n=a.code,r=a.message;return{code:0===n?0:n||"SYS_ERR",message:r||"SYS_ERR"}})).then((function(t){var i=t.code,o=t.message;if(0!==i){switch(i){case"MODULE_ENCRYPTED":n.error("此云函数(".concat(a,")依赖加密公共模块不可本地调试,自动切换为云端已部署的云函数"));break;case"FUNCTION_ENCRYPTED":n.error("此云函数(".concat(a,")已加密不可本地调试,自动切换为云端已部署的云函数"));break;case"ACTION_ENCRYPTED":n.error(o||"需要访问加密的uni-clientDB-action,自动切换为云端环境");break;case"NETWORK_ERROR":var c="连接本地调试服务失败,请检查客户端是否和主机在同一局域网下";throw n.error(c),new Error(c);case"SWITCH_TO_CLOUD":break;default:var d="检测本地调试服务出现错误:".concat(o,",请检查网络环境或重启客户端再试");throw n.error(d),new Error(d)}return e._originCallFunction({name:a,data:r})}return new Promise((function(t,n){var i=he({name:a,data:r,provider:e.config.provider,spaceId:l});tt.request({method:"POST",url:u,data:{provider:s,platform:_,param:i},success:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.statusCode,r=e.data;return!a||a>=400?n(new H({code:r.code||"SYS_ERR",message:r.message||"request:fail"})):t({result:r})},fail:function(t){n(new H({code:t.code||t.errCode||"SYS_ERR",message:t.message||t.errMsg||"request:fail"}))}})}))}))}var pe=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],ge=/[\\^$.*+?()[\]{}|]/g,xe=RegExp(ge.source);function me(t,e,a){return t.replace(new RegExp((n=e)&&xe.test(n)?n.replace(ge,"\\$&"):n,"g"),a);var n}function ve(t){var e=t.functionName,a=t.result,r=t.logPvd;if(this.config.useDebugFunction&&a&&a.requestId){var i=JSON.stringify({spaceId:this.config.spaceId,functionName:e,requestId:a.requestId});n.log("[".concat(r,"-request]").concat(i,"[/").concat(r,"-request]"))}}function ye(t){var e=t.callFunction,a=function(t){var a=this,n=t.name;t.data=he({name:n,data:t.data,provider:this.config.provider,spaceId:this.config.spaceId});var r={aliyun:"aliyun",tencent:"tcb"}[this.config.provider];return e.call(this,t).then((function(t){return ve.call(a,{functionName:n,result:t,logPvd:r}),Promise.resolve(t)}),(function(e){return ve.call(a,{functionName:n,result:e,logPvd:r}),e&&e.message&&(e.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,r=void 0===n?{}:n,i=t.formatter,o=void 0===i?[]:i,s=0;s<o.length;s++){var l=o[s],c=l.rule,u=l.content,d=l.mode,h=a.match(c);if(h){for(var f=u,p=1;p<h.length;p++)f=me(f,"{$".concat(p,"}"),h[p]);for(var g in r)f=me(f,"{".concat(g,"}"),r[g]);switch(d){case"replace":return f;case"append":default:return a+f}}}return a}({message:"[".concat(t.name,"]: ").concat(e.message),formatter:pe,extraInfo:{functionName:n}})),Promise.reject(e)}))};t.callFunction=function(e){var r;return C&&t.debugInfo&&!t.debugInfo.forceRemote&&M?(t._originCallFunction||(t._originCallFunction=a),r=fe.call(this,e)):r=a.call(this,e),Object.defineProperty(r,"result",{get:function(){return n.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),r}}var be=Symbol("CLIENT_DB_INTERNAL");function we(t,e){return t.then="DoNotReturnProxyWithAFunctionNamedThen",t._internalType=be,new Proxy(t,{get:function(t,a,n){return a in t||"string"!=typeof a?t[a]:e.get(t,a,n)}})}function ke(t){switch(S(t)){case"array":return t.map((function(t){return ke(t)}));case"object":return t._internalType===be||Object.keys(t).forEach((function(e){t[e]=ke(t[e])})),t;case"regexp":return{$regexp:{source:t.source,flags:t.flags}};case"date":return{$date:t.toISOString()};default:return t}}function Se(){var t,e,a=tt.getStorageSync("uni_id_token")||"",n=a.split(".");if(!a||3!==n.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{t=JSON.parse((e=n[1],decodeURIComponent(atob(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}var Ae=y(b((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var a="chooseAndUploadFile:fail";function n(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,a){var n=a.onChooseFile,r=a.onUploadProgress;return e.then((function(t){if(n){var e=n(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:"chooseAndUploadFile:ok",tempFilePaths:[],tempFiles:[]}:function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,n=arguments.length>3?arguments[3]:void 0;(e=Object.assign({},e)).errMsg="chooseAndUploadFile:ok";var r=e.tempFiles,i=r.length,o=0;return new Promise((function(s){for(;o<a;)l();function l(){var a=o++;if(a>=i)!r.find((function(t){return!t.url&&!t.errMsg}))&&s(e);else{var c=r[a];t.uploadFile({filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,onUploadProgress:function(t){t.index=a,t.tempFile=c,t.tempFilePath=c.path,n&&n(t)}}).then((function(t){c.url=t.fileID,a<i&&l()})).catch((function(t){c.errMsg=t.errMsg||t.message,a<i&&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,r=t.sizeType,i=t.sourceType,o=void 0===i?["album","camera"]:i,s=t.extension;return new Promise((function(t,i){uni.chooseImage({count:e,sizeType:r,sourceType:o,extension:s,success:function(e){t(n(e,"image"))},fail:function(t){i({errMsg:t.errMsg.replace("chooseImage:fail",a)})}})}))}(e),e):"video"===e.type?r(t,function(t){var e=t.camera,r=t.compressed,i=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:r,maxDuration:i,sourceType:s,extension:l,success:function(e){var a=e.tempFilePath,r=e.duration,i=e.size,o=e.height,s=e.width;t(n({errMsg:"chooseVideo:ok",tempFilePaths:[a],tempFiles:[{name:e.tempFile&&e.tempFile.name||"",path:a,size:i,type:e.tempFile&&e.tempFile.type||"",width:s,height:o,duration:r,fileType:"video",cloudPath:""}]},"video"))},fail:function(t){o({errMsg:t.errMsg.replace("chooseVideo:fail",a)})}})}))}(e),e):r(t,function(t){var e=t.count,r=t.extension;return new Promise((function(t,i){var o=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(o=wx.chooseMessageFile),"function"!=typeof o)return i({errMsg:a+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});o({type:"all",count:e,extension:r,success:function(e){t(n(e))},fail:function(t){i({errMsg:t.errMsg.replace("chooseFile:fail",a)})}})}))}(e),e)}}}))),Te="manual";function Pe(t){return{props:{localdata:{type:Array,default:function(){return[]}},options:{type:[Object,Array],default:function(){return{}}},collection:{type:String,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:{}}},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!==Te){for(var n=!1,r=[],i=2;i<e.length;i++)e[i]!==a[i]&&(r.push(e[i]),n=!0);e[0]!==a[0]&&(t.mixinDatacomPage.current=t.pageCurrent),t.mixinDatacomPage.size=t.pageSize,t.onMixinDatacomPropsChange(n,r)}}))},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,r=e.success,i=e.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomGet().then((function(e){t.mixinDatacomLoading=!1;var a=e.result,i=a.data,o=a.count;t.getcount&&(t.mixinDatacomPage.count=o),t.mixinDatacomHasMore=i.length<t.pageSize;var s=n?i.length?i[0]:void 0:i;t.mixinDatacomResData=s,r&&r(s)})).catch((function(e){t.mixinDatacomLoading=!1,t.mixinDatacomErrorMessage=e,i&&i(e)})))},mixinDatacomGet:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.database(),n=e.action||this.action;n&&(a=a.action(n));var r=e.collection||this.collection;a=a.collection(r);var i=e.where||this.where;i&&Object.keys(i).length&&(a=a.where(i));var o=e.field||this.field;o&&(a=a.field(o));var s=e.foreignKey||this.foreignKey;s&&(a=a.foreignKey(s));var l=e.groupby||this.groupby;l&&(a=a.groupBy(l));var c=e.groupField||this.groupField;c&&(a=a.groupField(c)),!0===(void 0!==e.distinct?e.distinct:this.distinct)&&(a=a.distinct());var u=e.orderby||this.orderby;u&&(a=a.orderBy(u));var d=void 0!==e.pageCurrent?e.pageCurrent:this.mixinDatacomPage.current,h=void 0!==e.pageSize?e.pageSize:this.mixinDatacomPage.size,f=void 0!==e.getcount?e.getcount:this.getcount,p=void 0!==e.gettree?e.gettree:this.gettree,g=void 0!==e.gettreepath?e.gettreepath:this.gettreepath,x={getCount:f},m={limitLevel:void 0!==e.limitlevel?e.limitlevel:this.limitlevel,startWith:void 0!==e.startwith?e.startwith:this.startwith};return p&&(x.getTree=m),g&&(x.getTreePath=m),a=a.skip(h*(d-1)).limit(h).get(x),a}}}}function Ce(t,e){return _e.apply(this,arguments)}function _e(){return _e=(0,s.default)(regeneratorRuntime.mark((function t(e,a){var n,r,i;return regeneratorRuntime.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,i={url:n,timeout:500},new Promise((function(t,e){tt.request((0,l.default)((0,l.default)({},i),{},{success:function(e){t(e)},fail:function(t){e(t)}}))}));case 4:return r=t.sent,t.abrupt("return",!(!r.data||0!==r.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]])}))),_e.apply(this,arguments)}var De=new(function(){function t(){(0,p.default)(this,t)}return(0,d.default)(t,[{key:"init",value:function(t){var e={},a=!1!==t.debugFunction&&C&&("h5"===_&&navigator.userAgent.indexOf("HBuilderX")>0||"app-plus"===_);switch(t.provider){case"tencent":e=oe.init(Object.assign(t,{useDebugFunction:a}));break;case"aliyun":e=at.init(Object.assign(t,{useDebugFunction:a}));break;case"private":e=de.init(Object.assign(t,{useDebugFunction:a}));break;default:throw new Error("未提供正确的provider参数")}var r=D;C&&r&&!r.code&&(e.debugInfo=r);var i,o=Promise.resolve();i=1,o=new Promise((function(t,e){setTimeout((function(){t()}),i)})),e.isReady=!1,e.isDefault=!1;var l=e.auth();return e.initUniCloud=o.then((function(){return l.getLoginState()})).then((function(t){return t?Promise.resolve():l.signInAnonymously()})).then((function(){if(C&&e.debugInfo){var t=e.debugInfo,a=t.address,n=t.servePort;return function(){var t=(0,s.default)(regeneratorRuntime.mark((function t(e,a){var n,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:r=0;case 1:if(!(r<e.length)){t.next=11;break}return i=e[r],t.next=5,Ce(i,a);case 5:if(!t.sent){t.next=8;break}return n=i,t.abrupt("break",11);case 8:r++,t.next=1;break;case 11:return t.abrupt("return",{address:n,port:a});case 12:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}()(a,n)}return Promise.resolve()})).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.address,r=t.port;if(!C)return Promise.resolve();if(a)e.localAddress=a,e.localPort=r;else if(e.debugInfo){var i=n["app-plus"===_?"error":"warn"];"remote"===e.debugInfo.initialLaunchType?(e.debugInfo.forceRemote=!0,i("当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs")):i("无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs")}})).then((function(){return function(){C&&"h5"===_&&uni.getStorageSync("__LAST_DCLOUD_APPID")!==W.appid&&(uni.setStorageSync("__LAST_DCLOUD_APPID",W.appid),uni.removeStorageSync("uni_id_token")&&(n.warn("检测到当前项目与上次运行到此端口的项目不一致,自动清理uni-id保存的token信息(仅开发调试时生效)"),uni.removeStorageSync("uni_id_token"),uni.removeStorageSync("uni_id_token_expired")))}(),new Promise((function(t){"quickapp-native"===_?(q="android",uni.getStorage({key:"__DC_CLOUD_UUID",success:function(e){j=e.data?e.data:K(32),t()}})):setTimeout((function(){q=uni.getSystemInfoSync().platform,j=uni.getStorageSync("__DC_CLOUD_UUID")||K(32),t()}),0)}))})).then((function(){e.isReady=!0})),ye(e),function(t){var e=t.uploadFile;t.uploadFile=function(t){var a,n=this;return a=this.isReady?Promise.resolve():this.initUniCloud,a.then((function(){return e.call(n,t)}))}}(e),function(t){t.database=function(){if(this._database)return this._database;var e={},a={};function r(r){var i=r.action,o=r.command,s=r.multiCommand;return z(U("database","invoke")).then((function(){return t.callFunction({name:"DCloud-clientDB",data:{action:i,command:o,multiCommand:s}})})).then((function(t){var r=t.result,i=r.code,o=r.message,s=r.token,l=r.tokenExpired,c=r.systemInfo,u=void 0===c?[]:c;if(u)for(var d=0;d<u.length;d++){var h=u[d],f=h.level,p=h.message,g=h.detail,x=n["app-plus"===_&&"warn"===f?"error":f]||n.log,m="[System Info]"+p;g&&(m="".concat(m,"\n详细信息:").concat(g)),x(m)}if(i){var v=new T(o,i);return a.error&&a.error.forEach((function(t){t(v)})),Promise.reject(v)}s&&l&&(e.refreshToken&&e.refreshToken.forEach((function(t){t({token:s,tokenExpired:l})})),a.refreshToken&&a.refreshToken.forEach((function(t){t({token:s,tokenExpired:l})})));var y=t.result.affectedDocs;return"number"==typeof y&&Object.defineProperty(t.result,"affectedDocs",{get:function(){return n.warn("affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"),y}}),z(U("database","success"),t).then((function(){return z(U("database","complete"),t)})).then((function(){return Promise.resolve(t)}))}),(function(t){var e=new T(t.message,t.code||"SYSTEM_ERROR");return a.error&&a.error.forEach((function(t){t(e)})),/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(t.message)&&n.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),z(U("database","fail"),t).then((function(){return z(U("database","complete"),t)})).then((function(){return Promise.reject(t)}))}))}this.isDefault&&(a=I("_globalUniCloudDatabaseCallback"));var i=function(){function t(e,a){(0,p.default)(this,t),this.content=e,this.prevStage=a,this.udb=null}return(0,d.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:t.$param}}))}}},{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:"useAggregate",get:function(){for(var t=this,e=!1;t.prevStage;){t=t.prevStage;var a=t.content.$method;if("aggregate"===a||"pipeline"===a){e=!0;break}}return e}},{key:"count",get:function(){if(!this.useAggregate)return function(){return this._send("count",Array.from(arguments))};var t=this;return function(){return l({$method:"count",$param:ke(Array.from(arguments))},t)}}},{key:"get",value:function(){return this._send("get",Array.from(arguments))}},{key:"add",value:function(){return this._send("add",Array.from(arguments))}},{key:"remove",value:function(){return this._send("remove",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",value:function(){throw new Error("clientDB禁止使用set方法")}},{key:"multiSend",get:function(){}},{key:"_send",value:function(t,e){var a=this.getAction(),n=this.getCommand();return n.$db.push({$method:t,$param:ke(e)}),r({action:a,command:n})}}]),t}(),o=["db.Geo","db.command","command.aggregate"];function s(t,e){return o.indexOf("".concat(t,".").concat(e))>-1}function l(t,e){return we(new i(t,e),{get:function(t,e){var a="db";return t&&t.content&&(a=t.content.$method),s(a,e)?l({$method:e},t):function(){return l({$method:e,$param:ke(Array.from(arguments))},t)}},set:function(t,e,a){t[e]=a}})}function u(t){var e=t.path,a=t.method;return function(){function t(){(0,p.default)(this,t),this.param=Array.from(arguments)}return(0,d.default)(t,[{key:"toJSON",value:function(){return{$newDb:[].concat((0,c.default)(e.map((function(t){return{$method:t}}))),[{$method:a,$param:this.param}])}}}]),t}()}var h={auth:{on:function(t,a){e[t]=e[t]||[],e[t].indexOf(a)>-1||e[t].push(a)},off:function(t,a){e[t]=e[t]||[];var n=e[t].indexOf(a);-1!==n&&e[t].splice(n,1)}},on:function(t,e){a[t]=a[t]||[],a[t].indexOf(e)>-1||a[t].push(e)},off:function(t,e){a[t]=a[t]||[];var n=a[t].indexOf(e);-1!==n&&a[t].splice(n,1)},env:we({},{get:function(t,e){return{$env:e}}}),Geo:we({},{get:function(t,e){return u({path:["Geo"],method:e})}}),getCloudEnv:function(t){if("string"!=typeof t||!t.trim())throw new Error("getCloudEnv参数错误");return{$env:t.replace("$cloudEnv_","")}},multiSend:function(){var t=Array.from(arguments);return r({multiCommand: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}}))}).then((function(e){for(var a=0;a<t.length;a++){var n=t[a];n.udb&&"function"==typeof n.udb.setResult&&n.udb.setResult(e.result.dataList[a])}return Promise.resolve(e)}),(function(e){for(var a=0;a<t.length;a++){var n=t[a];n.udb&&"function"==typeof n.udb.setResult&&n.udb.setResult(e)}return Promise.reject(e)}))},get serverDate(){return u({path:[],method:"serverDate"})},get RegExp(){return u({path:[],method:"RegExp"})}},f=we(h,{get:function(t,e){return s("db",e)?l({$method:e}):function(){return l({$method:e,$param:ke(Array.from(arguments))})}}});return this._database=f,f}}(e),function(t){t.getCurrentUserInfo=Se,t.chooseAndUploadFile=Ae.initChooseAndUploadFile(t),Object.assign(t,{get mixinDatacom(){return Pe(t)}})}(e),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(t){e[t]&&(e[t]=N(e[t],t))})),e.init=this.init,e}}]),t}());(function(){var t=M,e={};if(1===t.length)e=t[0],De=De.init(e),De.isDefault=!0;else{var a,r=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo"];a=t&&t.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":F?"应用未关联服务空间,请在uniCloud目录右键关联服务空间":"uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间",r.forEach((function(t){De[t]=function(){return n.error(a),Promise.reject(new H({code:"SYS_ERR",message:a}))}}))}Object.assign(De,{get mixinDatacom(){return Pe(De)}}),De.addInterceptor=R,De.removeInterceptor=B,C&&"h5"===_&&(window.uniCloud=De)})();var Me=De,Fe=Me;e.default=Fe}).call(this,a("c8ba"),a("5a52")["default"],a("4362"))},accc:function(t,e,a){var n=a("23e7"),r=a("64e5");n({target:"Date",proto:!0,forced:Date.prototype.toISOString!==r},{toISOString:r})},ad54:function(t,e,a){"use strict";a.r(e);var n=a("a5a5"),r=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},ad83:function(t,e,a){"use strict";(function(t,e){var n=a("278c"),r=a("7037");a("d3b7"),a("25f0"),a("4160"),a("159b"),a("b680"),a("ac1f"),a("5319"),a("e25e"),a("c975"),a("1276"),a("13d5"),a("99af"),a("d81d"),a("4de4"),a("fb6a"),a("4e82"),a("26e9"),a("cb29");var i={version:"v2.3.3-20210706",yAxisWidth:15,yAxisSplit:5,xAxisHeight:22,xAxisLineHeight:22,legendHeight:15,yAxisTitleWidth:15,padding:[10,10,10,10],pixelRatio:1,rotate:!1,columePadding:3,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,xAxisTextPadding:3,titleColor:"#333333",titleFontSize:20,subtitleColor:"#999999",subtitleFontSize:15,toolTipPadding:3,toolTipBackground:"#000000",toolTipOpacity:.7,toolTipLineHeight:20,radarLabelTextMargin:13,gaugeLabelTextMargin:13},o=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 r(t,e){for(var a in e)t[a]=t[a]&&"[object Object]"===t[a].toString()?r(t[a],e[a]):t[a]=e[a];return t}return a.forEach((function(e){t=r(t,e)})),t},s={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 l(t,e){var a=Array(2),n=20037508.34*t/180,r=Math.log(Math.tan((90+e)*Math.PI/360))/(Math.PI/180);return r=20037508.34*r/180,a[0]=n,a[1]=r,a}function c(t,e){var a=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,n=t.replace(a,(function(t,e,a,n){return e+e+a+a+n+n})),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n),i=parseInt(r[1],16),o=parseInt(r[2],16),s=parseInt(r[3],16);return"rgba("+i+","+o+","+s+","+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)"upper"===e?t++:t--;return t/n}function d(t,e,a,n){for(var r=[],i=0;i<t.length;i++){for(var o={data:[],name:e[i],color:a[i]},s=0,l=n.length;s<l;s++)if(s<t[i])o.data.push(null);else{for(var c=0,u=0;u<t[i];u++)c+=n[s-u][1];o.data.push(+(c/t[i]).toFixed(3))}r.push(o)}return r}function h(t,e,a,n,r){var i=r.width-r.area[1]-r.area[3],o=a.eachSpacing*(r.chartData.xAxisData.xAxisPoints.length-1),s=e;return e>=0?(s=0,t.uevent.trigger("scrollLeft"),t.scrollOption.position="left",r.xAxis.scrollPosition="left"):Math.abs(e)>=o-i?(s=i-o,t.uevent.trigger("scrollRight"),t.scrollOption.position="right",r.xAxis.scrollPosition="right"):(t.scrollOption.position=e,r.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 p(t,e,a){var n=t,r=a-e,i=n+(a-r-n)/Math.sqrt(2);i*=-1;var o=(a-r)*(Math.sqrt(2)-1)-(a-r-n)/Math.sqrt(2);return{transX:i,transY:o}}function g(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 r=.2,i=.2,o=null,s=null,l=null,c=null;if(e<1?(o=t[0].x+(t[1].x-t[0].x)*r,s=t[0].y+(t[1].y-t[0].y)*r):(o=t[e].x+(t[e+1].x-t[e-1].x)*r,s=t[e].y+(t[e+1].y-t[e-1].y)*r),e>t.length-3){var u=t.length-1;l=t[u].x-(t[u].x-t[u-1].x)*i,c=t[u].y-(t[u].y-t[u-1].y)*i}else l=t[e+1].x-(t[e+2].x-t[e].x)*i,c=t[e+1].y-(t[e+2].y-t[e].y)*i;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 x(t,e,a){return{x:a.x+t,y:a.y-e}}function m(t,e){if(e)while(s.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 v(t,e,a){var n=[];if(t.length>0&&t[0].data.constructor.toString().indexOf("Array")>-1){e._pieSeries_=t;for(var r=t[0].data,i=0;i<r.length;i++)r[i].formatter=t[0].formatter,r[i].data=r[i].value,n.push(r[i]);e.series=n}else n=t;return n}function y(t,e,a){for(var n=0,r=0;r<t.length;r++){var i=t[r];if(i.color||(i.color=a.color[n],n=(n+1)%a.color.length),i.linearIndex||(i.linearIndex=r),i.index||(i.index=0),i.type||(i.type=e.type),"undefined"==typeof i.show&&(i.show=!0),i.type||(i.type=e.type),i.pointShape||(i.pointShape="circle"),!i.legendShape)switch(i.type){case"line":i.legendShape="line";break;case"column":i.legendShape="rect";break;case"area":i.legendShape="triangle";break;case"bar":i.legendShape="rect";break;default:i.legendShape="circle"}}return t}function b(t,e,a,n){var r=e||[];if("custom"==t&&0==r.length&&(r=n.linearColor),"custom"==t&&r.length<a.length)for(var i=a.length-r.length,o=0;o<i;o++)r.push(n.linearColor[(o+1)%n.linearColor.length]);return r}function w(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 k(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 r=0;r<t.length;r++){var i=t[r];/[a-zA-Z]/.test(i)?n+=7:/[0-9]/.test(i)?n+=5.5:/\./.test(i)?n+=2.7:/-/.test(i)?n+=3.25:/:/.test(i)?n+=2.5:/[\u4e00-\u9fa5]/.test(i)?n+=10:/\(|\)/.test(i)?n+=3.73:/\s/.test(i)?n+=2.5:/%/.test(i)?n+=8:n+=10}return n*e/10}function S(t){return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data)}),[])}function A(t,e){for(var a=new Array(e),n=0;n<a.length;n++)a[n]=0;for(var r=0;r<t.length;r++)for(n=0;n<a.length;n++)a[n]+=t[r].data[n];return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data).concat(a)}),[])}function T(t,e,a){var n,r;return t.clientX?e.rotate?(r=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,r=(t.pageY-a.currentTarget.offsetTop-e.height/e.pix/2*(e.pix-1))*e.pix):e.rotate?(r=e.height-t.x*e.pix,n=t.y*e.pix):(n=t.x*e.pix,r=t.y*e.pix),{x:n,y:r}}function P(t,e,a){var n=[],r=[],i=e.constructor.toString().indexOf("Array")>-1;if(i)for(var o=L(t),s=0;s<a.length;s++)r.push(o[a[s]]);else r=t;for(var l=0;l<r.length;l++){var c=r[l],u=-1;if(u=i?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.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 k(t,e,a)}));return Math.max.apply(null,n)}function _(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 D(t,e,a,n,r){var i=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 s=o[0][a];var u=t.map((function(t){var n=null;return e.categories&&e.categories.length>0&&(n=r[a]),{text:i.formatter?i.formatter(t,n,a,e):t.name+": "+t.data,color:t.color}})),d={x:Math.round(s.x),y:Math.round(s.y)};return{textList:u,offset:d}}function M(t,e,a,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=e.chartData.xAxisPoints[a]+e.chartData.eachSpacing/2,o=t.map((function(t){return{text:r.formatter?r.formatter(t,n[a],a,e):t.name+": "+t.data,color:t.color,disableLegend:!!t.disableLegend}}));o=o.filter((function(t){if(!0!==t.disableLegend)return t}));var s={x:Math.round(i),y:0};return{textList:o,offset:s}}function F(t,e,a,n,r,i){var o=a.chartData.calPoints,s=i.color.upFill,l=i.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 a={text:"开盘:"+e.data[0],color:c[0]},r={text:"收盘:"+e.data[1],color:c[1]},i={text:"最低:"+e.data[2],color:c[2]},o={text:"最高:"+e.data[3],color:c[3]};u.push(a,r,i,o)}));for(var d=[],h={x:0,y:0},f=0;f<o.length;f++){var p=o[f];"undefined"!==typeof p[n]&&null!==p[n]&&d.push(p[n])}return h.x=Math.round(d[0][0].x),{textList:u,offset:h}}function L(t){for(var e=[],a=0;a<t.length;a++)1==t[a].show&&e.push(t[a]);return e}function I(t,e,a,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i={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(B(t,a,n))if(a.categories)s.forEach((function(e,a){t.x+r+o>e&&(i.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 h=Array(c.length),f=Array(c.length),p=0;p<c.length;p++)h[p]=Math.min.apply(null,c[p]),f[p]=c[p].indexOf(h[p]);var g=Math.min.apply(null,h);i.index=[];for(var x=0;x<h.length;x++)h[x]==g&&(i.group.push(x),i.index.push(f[x]))}}return i}function O(t,e,a,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i={index:-1,group:[]},o=a.chartData.eachSpacing/2,s=a.chartData.yAxisPoints;return e&&e.length>0&&B(t,a,n)&&s.forEach((function(e,a){t.y+r+o>e&&(i.index=a)})),i}function E(t,e,a){var n=-1,r=0;if(R(t,e.area)){for(var i=e.points,o=-1,s=0,l=i.length;s<l;s++)for(var c=i[s],u=0;u<c.length;u++){o+=1;var d=c[u]["area"];if(d&&t.x>d[0]-r&&t.x<d[2]+r&&t.y>d[1]-r&&t.y<d[3]+r){n=o;break}}return n}return n}function R(t,e){return t.x>e.start.x&&t.x<e.end.x&&t.y>e.start.y&&t.y<e.end.y}function B(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 z(t,e,a){var n=2*Math.PI/a,r=-1;if(H(t,e.center,e.radius)){var i=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=i(-1*t),t}));s.forEach((function(t,e){var a=i(t-n/2),s=i(t+n/2);s<a&&(s+=2*Math.PI),(o>=a&&o<=s||o+2*Math.PI>=a&&o+2*Math.PI<=s)&&(r=e)}))}return r}function U(t,e){for(var a=-1,n=0,r=e.series.length;n<r;n++){var i=e.series[n];if(t.x>i.funnelArea[0]&&t.x<i.funnelArea[2]&&t.y>i.funnelArea[1]&&t.y<i.funnelArea[3]){a=n;break}}return a}function N(t,e){for(var a=-1,n=0,r=e.length;n<r;n++){var i=e[n];if(t.x>i.area[0]&&t.x<i.area[2]&&t.y>i.area[1]&&t.y<i.area[3]){a=n;break}}return a}function W(t,e){for(var a=-1,n=e.chartData.mapData,r=e.series,i=ee(t.y,t.x,n.bounds,n.scale,n.xoffset,n.yoffset),o=[i.x,i.y],s=0,l=r.length;s<l;s++){var c=r[s].geometry.coordinates;if(ne(o,c,e.chartData.mapData.mercator)){a=s;break}}return a}function j(t,e,a){var n=-1,r=$(a._series_,a.extra.rose.type,e.radius,e.radius);if(e&&e.center&&H(t,e.center,e.radius)){var i=Math.atan2(e.center.y-t.y,t.x-e.center.x);i=-i,a.extra.rose&&a.extra.rose.offsetAngle&&(i-=a.extra.rose.offsetAngle*Math.PI/180);for(var o=0,s=r.length;o<s;o++)if(f(i,r[o]._start_,r[o]._start_+2*r[o]._rose_proportion_*Math.PI)){n=o;break}}return n}function q(t,e,a){var n=-1,r=V(e.series);if(e&&e.center&&H(t,e.center,e.radius)){var i=Math.atan2(e.center.y-t.y,t.x-e.center.x);i=-i,a.extra.pie&&a.extra.pie.offsetAngle&&(i-=a.extra.pie.offsetAngle*Math.PI/180),a.extra.ring&&a.extra.ring.offsetAngle&&(i-=a.extra.ring.offsetAngle*Math.PI/180);for(var o=0,s=r.length;o<s;o++)if(f(i,r[o]._start_,r[o]._start_+2*r[o]._proportion_*Math.PI)){n=o;break}}return n}function H(t,e,a){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(a,2)}function Y(t,e){var a=[],n=[];return t.forEach((function(t,r){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 G(t,e,a,n,r){var i={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=i,i;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 h=[],f=0,p=[],g=[],x=0;x<t.length;x++){var m=t[x],v=c+u+k(m.name||"undefined",l,r)+e.legend.itemGap*e.pix;f+v>e.width-e.area[1]-e.area[3]?(h.push(g),p.push(f-e.legend.itemGap*e.pix),f=v,g=[m]):(f+=v,g.push(m))}if(g.length){h.push(g),p.push(f-e.legend.itemGap*e.pix),i.widthArr=p;var y=Math.max.apply(null,p);switch(e.legend.float){case"left":i.area.start.x=e.area[3],i.area.end.x=e.area[3]+y+2*o;break;case"right":i.area.start.x=e.width-e.area[1]-y-2*o,i.area.end.x=e.width-e.area[1];break;default:i.area.start.x=(e.width-y)/2-o,i.area.end.x=(e.width+y)/2+o}i.area.width=y+2*o,i.area.wholeWidth=y+2*o,i.area.height=h.length*d+2*o,i.area.wholeHeight=h.length*d+2*o+2*s,i.points=h}}else{var b=t.length,w=e.height-e.area[0]-e.area[2]-2*s-2*o,S=Math.min(Math.floor(w/d),b);switch(i.area.height=S*d+2*o,i.area.wholeHeight=S*d+2*o,e.legend.float){case"top":i.area.start.y=e.area[0]+s,i.area.end.y=e.area[0]+s+i.area.height;break;case"bottom":i.area.start.y=e.height-e.area[2]-s-i.area.height,i.area.end.y=e.height-e.area[2]-s;break;default:i.area.start.y=(e.height-i.area.height)/2,i.area.end.y=(e.height+i.area.height)/2}for(var A=b%S===0?b/S:Math.floor(b/S+1),T=[],P=0;P<A;P++){var C=t.slice(P*S,P*S+S);T.push(C)}if(i.points=T,T.length){for(var _=0;_<T.length;_++){for(var D=T[_],M=0,F=0;F<D.length;F++){var L=c+u+k(D[F].name||"undefined",l,r)+e.legend.itemGap*e.pix;L>M&&(M=L)}i.widthArr.push(M),i.heightArr.push(D.length*d+2*o)}for(var I=0,O=0;O<i.widthArr.length;O++)I+=i.widthArr[O];i.area.width=I-e.legend.itemGap*e.pix+2*o,i.area.wholeWidth=i.area.width+o}}switch(e.legend.position){case"top":i.area.start.y=e.area[0]+s,i.area.end.y=e.area[0]+s+i.area.height;break;case"bottom":i.area.start.y=e.height-e.area[2]-i.area.height-s,i.area.end.y=e.height-e.area[2]-s;break;case"left":i.area.start.x=e.area[3],i.area.end.x=e.area[3]+i.area.width;break;case"right":i.area.start.x=e.width-e.area[1]-i.area.width,i.area.end.x=e.width-e.area[1];break}return n.legendData=i,i}function J(t,e,a,n,r){var i={angle:0,xAxisHeight:a.xAxisHeight},o=t.map((function(t){return k(t,e.xAxis.fontSize*e.pix||a.fontSize,r)})),s=Math.max.apply(this,o);return 1==e.xAxis.rotateLabel&&s+2*a.xAxisTextPadding>n&&(i.angle=45*Math.PI/180,i.xAxisHeight=2*a.xAxisTextPadding+s*Math.sin(i.angle)),i}function K(t,e,a,n){var i,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;i="stack"==n?A(t,e.categories.length):S(t);var s=[];i=i.filter((function(t){return"object"===r(t)&&null!==t?t.constructor.toString().indexOf("Array")>-1?null!==t:null!==t.value:null!==t})),i.map((function(t){"object"===r(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,h=c,f=[],p=(h-d)/e.xAxis.splitNumber,g=0;g<=e.xAxis.splitNumber;g++)f.push(d+p*g);return f}function X(t,e,a,n){var r=o({},{type:""},e.extra.bar),i={angle:0,xAxisHeight:a.xAxisHeight};i.ranges=K(t,e,a,r.type),i.rangesFormat=i.ranges.map((function(t){return t=s.toFixed(t,2),t}));var l=i.ranges.map((function(t){return t=s.toFixed(t,2),t}));i=Object.assign(i,ct(l,e,a));var c=i.eachSpacing,u=l.map((function(t){return k(t,e.xAxis.fontSize*e.pix||a.fontSize,n)})),d=Math.max.apply(this,u);return d+2*a.xAxisTextPadding>c&&(i.angle=45*Math.PI/180,i.xAxisHeight=2*a.xAxisTextPadding+d*Math.sin(i.angle)),!0===e.xAxis.disabled&&(i.xAxisHeight=0),i}function Q(t,e,a,n,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=r.extra.radar||{};o.max=o.max||0;for(var s=Math.max(o.max,Math.max.apply(null,S(n))),l=[],c=function(r){var o=n[r],c={};c.color=o.color,c.legendShape=o.legendShape,c.pointShape=o.pointShape,c.data=[],o.data.forEach((function(n,r){var o={};o.angle=t[r],o.proportion=n/s,o.value=n,o.position=x(a*o.proportion*i*Math.cos(o.angle),a*o.proportion*i*Math.sin(o.angle),e),c.data.push(o)})),l.push(c)},u=0;u<n.length;u++)c(u);return l}function V(t,e){for(var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=0,r=0,i=0;i<t.length;i++){var o=t[i];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_=r,r+=2*u._proportion_*Math.PI}return t}function Z(t,e,a,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;t=t.sort((function(t,e){return parseInt(e.data)-parseInt(t.data)}));for(var i=0;i<t.length;i++)t[i].radius="funnel"==a?t[i].data/t[0].data*e*r:n*(t.length-i)/(n*t.length)*e*r,t[i]._proportion_=t[i].data/t[0].data;return"pyramid"!==a&&t.reverse(),t}function $(t,e,a,n){for(var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=0,o=0,s=[],l=0;l<t.length;l++){var c=t[l];c.data=null===c.data?0:c.data,i+=c.data,s.push(c.data)}for(var u=Math.min.apply(null,s),d=Math.max.apply(null,s),h=n-a,f=0;f<t.length;f++){var p=t[f];p.data=null===p.data?0:p.data,0===i?(p._proportion_=1/t.length*r,p._rose_proportion_=1/t.length*r):(p._proportion_=p.data/i*r,p._rose_proportion_="area"==e?1/t.length*r:p.data/i*r),p._radius_=a+h*((p.data-u)/(d-u))||n}for(var g=0;g<t.length;g++){var x=t[g];x._start_=o,o+=2*x._rose_proportion_*Math.PI}return t}function tt(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 r=t[n];r.data=null===r.data?0:r.data;var i=void 0;i="circle"==e.type?2:e.endAngle<e.startAngle?2+e.endAngle-e.startAngle:e.startAngle-e.endAngle,r._proportion_=i*r.data*a+e.startAngle,r._proportion_>=2&&(r._proportion_=r._proportion_%2)}return t}function et(t,e,a){for(var n=e-a+1,r=e,i=0;i<t.length;i++)t[i].value=null===t[i].value?0:t[i].value,t[i]._startAngle_=r,t[i]._endAngle_=n*t[i].value+e,t[i]._endAngle_>=2&&(t[i]._endAngle_=t[i]._endAngle_%2),r=t[i]._endAngle_;return t}function at(t,e,a){for(var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,r=0;r<t.length;r++){var i=t[r];if(i.data=null===i.data?0:i.data,"auto"==a.pointer.color){for(var o=0;o<e.length;o++)if(i.data<=e[o].value){i.color=e[o].color;break}}else i.color=a.pointer.color;var s=a.startAngle-a.endAngle+1;i._endAngle_=s*i.data+a.startAngle,i._oldAngle_=a.oldAngle,a.oldAngle<a.endAngle&&(i._oldAngle_+=2),i.data>=a.oldData?i._proportion_=(i._endAngle_-i._oldAngle_)*n+a.oldAngle:i._proportion_=i._oldAngle_-(i._oldAngle_-i._endAngle_)*n,i._proportion_>=2&&(i._proportion_=i._proportion_%2)}return t}function nt(t,e,a,n){t=V(t);for(var r=0,i=0;i<t.length;i++){var o=t[i],l=o.formatter?o.formatter(+o._proportion_.toFixed(2)):s.toFixed(100*o._proportion_)+"%";r=Math.max(r,k(l,o.textSize*n.pix||e.fontSize,a))}return r}function rt(t,e,a,n,r,i){return t.map((function(t){if(null===t)return null;var r=0,o=0;return"mix"==i.type?(r=i.extra.mix.column.seriesGap*i.pix||0,o=i.extra.mix.column.categoryGap*i.pix||0):(r=i.extra.column.seriesGap*i.pix||0,o=i.extra.column.categoryGap*i.pix||0),r=Math.min(r,e/a),o=Math.min(o,e/a),t.width=Math.ceil((e-2*o-r*(a-1))/a),i.extra.mix&&i.extra.mix.column.width&&+i.extra.mix.column.width>0&&(t.width=Math.min(t.width,+i.extra.mix.column.width*i.pix)),i.extra.column&&i.extra.column.width&&+i.extra.column.width>0&&(t.width=Math.min(t.width,+i.extra.column.width*i.pix)),t.width<=0&&(t.width=1),t.x+=(n+.5-a/2)*(t.width+r),t}))}function it(t,e,a,n,r,i){return t.map((function(t){if(null===t)return null;var r=0,o=0;return r=i.extra.bar.seriesGap*i.pix||0,o=i.extra.bar.categoryGap*i.pix||0,r=Math.min(r,e/a),o=Math.min(o,e/a),t.width=Math.ceil((e-2*o-r*(a-1))/a),i.extra.bar&&i.extra.bar.width&&+i.extra.bar.width>0&&(t.width=Math.min(t.width,+i.extra.bar.width*i.pix)),t.width<=0&&(t.width=1),t.y+=(n+.5-a/2)*(t.width+r),t}))}function ot(t,e,a,n,r,i,o){var s=i.extra.column.categoryGap*i.pix||0;return t.map((function(t){return null===t?null:(t.width=Math.ceil(e-2*s),i.extra.column&&i.extra.column.width&&+i.extra.column.width>0&&(t.width=Math.min(t.width,+i.extra.column.width*i.pix)),n>0&&(t.width-=2*o),t)}))}function st(t,e,a,n,r,i,o){var s=i.extra.column.categoryGap*i.pix||0;return t.map((function(t,a){return null===t?null:(t.width=Math.ceil(e-2*s),i.extra.column&&i.extra.column.width&&+i.extra.column.width>0&&(t.width=Math.min(t.width,+i.extra.column.width*i.pix)),t.width<=0&&(t.width=1),t)}))}function lt(t,e,a,n,r,i,o){var s=i.extra.bar.categoryGap*i.pix||0;return t.map((function(t,a){return null===t?null:(t.width=Math.ceil(e-2*s),i.extra.bar&&i.extra.bar.width&&+i.extra.bar.width>0&&(t.width=Math.min(t.width,+i.extra.bar.width*i.pix)),t.width<=0&&(t.width=1),t)}))}function ct(t,e,a){var n=e.width-e.area[1]-e.area[3],r=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)&&r>1&&"justify"==e.xAxis.boundaryGap&&(r-=1);var i=n/r,o=[],s=e.area[3],l=e.width-e.area[1];return t.forEach((function(t,e){o.push(s+e*i)})),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?o.push(s+t.length*i):o.push(l)),{xAxisPoints:o,startX:s,endX:l,eachSpacing:i}}function ut(t,e,a,n,r,i,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l=[],c=i.height-i.area[0]-i.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(r/2);var h=t.value||t,f=c*(h-e)/(a-e);f*=s,d.y=i.height-Math.round(f)-i.area[2],u.push(d)})),l.push(u)}})),l}function dt(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],h=o.width-o.area[1]-o.area[3];return t.forEach((function(t,s){if(null===t)u.push(null);else{var f={};f.color=t.color,f.x=n[s];var p,g,x,m=t;if("object"===r(t)&&null!==t)if(t.constructor.toString().indexOf("Array")>-1)p=[].concat(o.chartData.xAxisData.ranges),g=p.shift(),x=p.pop(),m=t[1],f.x=o.area[3]+h*(t[0]-g)/(x-g),"bubble"==o.type&&(f.r=t[2],f.t=t[3]);else m=t.value;"center"==c&&(f.x+=i/2);var v=d*(m-e)/(a-e);v*=l,f.y=o.height-v-o.area[2],u.push(f)}})),u}function ht(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"===r(t)&&null!==t&&(d=t.value);var h=u*(d-e)/(a-e);h*=l,s.height=h,s.value=d,s.x=h+o.area[3],c.push(s)}})),c}function ft(t,e,a,n,r,i,o,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,u=[],d=i.height-i.area[0]-i.area[2];return t.forEach((function(t,o){if(null===t)u.push(null);else{var h={};if(h.color=t.color,h.x=n[o]+Math.round(r/2),s>0){for(var f=0,p=0;p<=s;p++)f+=l[p].data[o];var g=f-t,x=d*(f-e)/(a-e),m=d*(g-e)/(a-e)}else f=t,x=d*(f-e)/(a-e),m=0;var v=m;x*=c,v*=c,h.y=i.height-Math.round(x)-i.area[2],h.y0=i.height-Math.round(v)-i.area[2],u.push(h)}})),u}function pt(t,e,a,n,r,i,o,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,u=[],d=i.width-i.area[1]-i.area[3];return t.forEach((function(t,r){if(null===t)u.push(null);else{var o={};if(o.color=t.color,o.y=n[r],s>0){for(var h=0,f=0;f<=s;f++)h+=l[f].data[r];var p=h-t,g=d*(h-e)/(a-e),x=d*(p-e)/(a-e)}else h=t,g=d*(h-e)/(a-e),x=0;var m=x;g*=c,m*=c,o.height=g-m,o.x=i.area[3]+g,o.x0=i.area[3]+m,u.push(o)}})),u}function gt(t,e,a,n,i){var o;o="stack"==n?A(t,e.categories.length):S(t);var s=[];o=o.filter((function(t){return"object"===r(t)&&null!==t?t.constructor.toString().indexOf("Array")>-1?null!==t:null!==t.value:null!==t})),o.map((function(t){"object"===r(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;if(s.length>0&&(l=Math.min.apply(this,s),c=Math.max.apply(this,s)),l===c){var u=c||10;c+=u}for(var d=w(l,c),h=void 0===i.min||null===i.min?d.minRange:i.min,f=void 0===i.max||null===i.min?d.maxRange:i.max,p=[],g=(f-h)/e.yAxis.splitNumber,x=0;x<=e.yAxis.splitNumber;x++)p.push(h+g*x);return p.reverse()}function xt(t,e,a,n){var r=o({},{type:""},e.extra.column),i=e.yAxis.data.length,s=new Array(i);if(i>0){for(var l=0;l<i;l++){s[l]=[];for(var c=0;c<t.length;c++)t[c].index==l&&s[l].push(t[c])}for(var u=new Array(i),d=new Array(i),h=new Array(i),f=function(t){var i=e.yAxis.data[t];1==e.yAxis.disabled&&(i.disabled=!0),"categories"===i.type?(i.formatter||(i.formatter=function(t){return t+(i.unit||"")}),i.categories=i.categories||e.categories,u[t]=i.categories):(i.formatter||(i.formatter=function(t){return t.toFixed(i.tofix)+(i.unit||"")}),u[t]=gt(s[t],e,a,r.type,i,t));var o=i.fontSize*e.pix||a.fontSize;h[t]={position:i.position?i.position:"left",width:0},d[t]=u[t].map((function(e){return e=i.formatter(e),h[t].width=Math.max(h[t].width,k(e,o,n)+5),e}));var l=i.calibration?4*e.pix:0;h[t].width+=l+3*e.pix,!0===i.disabled&&(h[t].width=0)},p=0;p<i;p++)f(p)}else{u=new Array(1),d=new Array(1),h=new Array(1);"bar"===e.type?(u[0]=e.categories,e.yAxis.formatter||(e.yAxis.formatter=function(t){return t+(e.yAxis.unit||"")})):(e.yAxis.formatter||(e.yAxis.formatter=function(t){return t.toFixed(e.yAxis.tofix)+(e.yAxis.unit||"")}),u[0]=gt(t,e,a,r.type,{})),h[0]={position:"left",width:0};var g=e.yAxis.fontSize*e.pix||a.fontSize;d[0]=u[0].map((function(t){return t=e.yAxis.formatter(t),h[0].width=Math.max(h[0].width,k(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:d,ranges:u,yAxisWidth:h}}function mt(t,e,a,n,r){for(var i=[].concat(a.chartData.yAxisData.ranges),o=a.height-a.area[0]-a.area[2],s=a.area[0],l=[],c=0;c<i.length;c++){var u=i[c].shift(),d=i[c].pop(),h=u-(u-d)*(t-s)/o;h=a.yAxis.data[c].formatter?a.yAxis.data[c].formatter(h):h.toFixed(0),l.push(String(h))}return l}function vt(t,e){for(var a,n,r=e.height-e.area[0]-e.area[2],i=0;i<t.length;i++){t[i].yAxisIndex=t[i].yAxisIndex?t[i].yAxisIndex:0;var o=[].concat(e.chartData.yAxisData.ranges[t[i].yAxisIndex]);a=o.pop(),n=o.shift();var s=r*(t[i].value-a)/(n-a);t[i].y=e.height-Math.round(s)-e.area[2]}return t}function yt(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 bt(t,e,a,n,r){if(n.beginPath(),"hollow"==r.dataPointShapeType?(n.setStrokeStyle(e),n.setFillStyle(r.background),n.setLineWidth(2*r.pix)):(n.setStrokeStyle("#ffffff"),n.setFillStyle(e),n.setLineWidth(1*r.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*r.pix,t.y),n.arc(t.x,t.y,3*r.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("triangle"===a)return;n.closePath(),n.fill(),n.stroke()}function wt(t,e,a,n){var r=t.title.fontSize||e.titleFontSize,i=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?r:0,d=s?i:0,h=5;if(s){var f=k(s,i*t.pix,a),p=n.x-f/2+(t.subtitle.offsetX||0)*t.pix,g=n.y+i*t.pix/2+(t.subtitle.offsetY||0)*t.pix;o&&(g+=(u*t.pix+h)/2),a.beginPath(),a.setFontSize(i*t.pix),a.setFillStyle(c),a.fillText(s,p,g),a.closePath(),a.stroke()}if(o){var x=k(o,r*t.pix,a),m=n.x-x/2+(t.title.offsetX||0),v=n.y+r*t.pix/2+(t.title.offsetY||0)*t.pix;s&&(v-=(d*t.pix+h)/2),a.beginPath(),a.setFontSize(r*t.pix),a.setFillStyle(l),a.fillText(o,m,v),a.closePath(),a.stroke()}}function kt(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"===r(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):u;n.setTextAlign("center"),n.fillText(String(d),t.x,t.y-4+s*i.pix),n.closePath(),n.stroke(),n.setTextAlign("left")}}))}function St(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"===r(o[s])&&null!==o[s]&&(c=o[s].value);var u=e.formatter?e.formatter(c,s):c;n.setTextAlign("left"),n.fillText(String(u),t.x+4*i.pix,t.y+l/2-3),n.closePath(),n.stroke()}}))}function At(t,e,a,n,r,i){e-=t.width/2+t.labelOffset*n.pix;for(var o=t.startAngle-t.endAngle+1,s=o/t.splitLine.splitNumber,l=t.endNumber-t.startNumber,c=l/t.splitLine.splitNumber,u=t.startAngle,d=t.startNumber,h=0;h<t.splitLine.splitNumber+1;h++){var f={x:e*Math.cos(u*Math.PI),y:e*Math.sin(u*Math.PI)},p=t.formatter?t.formatter(d):d;f.x+=a.x-k(p,r.fontSize,i)/2,f.y+=a.y;var g=f.x,x=f.y;i.beginPath(),i.setFontSize(r.fontSize),i.setFillStyle(t.labelColor||n.fontColor),i.fillText(p,g,x+r.fontSize/2),i.closePath(),i.stroke(),u+=s,u>=2&&(u%=2),d+=c}}function Tt(t,e,a,n,r,i){var o=n.extra.radar||{};e+=r.radarLabelTextMargin*n.pix,t.forEach((function(t,l){var c={x:e*Math.cos(t),y:e*Math.sin(t)},u=x(c.x,c.y,a),d=u.x,h=u.y;s.approximatelyEqual(c.x,0)?d-=k(n.categories[l]||"",r.fontSize,i)/2:c.x<0&&(d-=k(n.categories[l]||"",r.fontSize,i)),i.beginPath(),i.setFontSize(r.fontSize),i.setFillStyle(o.labelColor||n.fontColor),i.fillText(n.categories[l]||"",d,h+r.fontSize/2),i.closePath(),i.stroke()}))}function Pt(t,e,a,n,r,i){for(var o=a.pieChartLinePadding,l=[],c=null,u=t.map((function(t,e,a){var n=t.formatter?t.formatter(t,e,a):s.toFixed(100*t._proportion_.toFixed(4))+"%",r=2*Math.PI-(t._start_+2*Math.PI*t._proportion_/2);t._rose_proportion_&&(r=2*Math.PI-(t._start_+2*Math.PI*t._rose_proportion_/2));var i=t.color,o=t._radius_;return{arc:r,text:n,color:i,radius:o,textColor:t.textColor,textSize:t.textSize}})),d=0;d<u.length;d++){var h=u[d],f=Math.cos(h.arc)*(h.radius+o),p=Math.sin(h.arc)*(h.radius+o),g=Math.cos(h.arc)*h.radius,v=Math.sin(h.arc)*h.radius,y=f>=0?f+a.pieChartTextPadding:f-a.pieChartTextPadding,b=p,w=k(h.text,h.textSize*e.pix||a.fontSize,n),S=b;c&&s.isSameXCoordinateArea(c.start,{x:y})&&(S=y>0?Math.min(b,c.start.y):f<0||b>0?Math.max(b,c.start.y):Math.min(b,c.start.y)),y<0&&(y-=w);var A={lineStart:{x:g,y:v},lineEnd:{x:f,y:p},start:{x:y,y:S},width:w,height:a.fontSize,text:h.text,color:h.color,textColor:h.textColor,textSize:h.textSize};c=m(A,c),l.push(c)}for(var T=0;T<l.length;T++){var P=l[T],C=x(P.lineStart.x,P.lineStart.y,i),_=x(P.lineEnd.x,P.lineEnd.y,i),D=x(P.start.x,P.start.y,i);n.setLineWidth(1*e.pix),n.setFontSize(P.textSize*e.pix||a.fontSize),n.beginPath(),n.setStrokeStyle(P.color),n.setFillStyle(P.color),n.moveTo(C.x,C.y);var M=P.start.x<0?D.x+P.width:D.x,F=P.start.x<0?D.x-5:D.x+5;n.quadraticCurveTo(_.x,_.y,M,D.y),n.moveTo(C.x,C.y),n.stroke(),n.closePath(),n.beginPath(),n.moveTo(D.x+P.width,D.y),n.arc(M,D.y,2,0,2*Math.PI),n.closePath(),n.fill(),n.beginPath(),n.setFontSize(P.textSize*e.pix||a.fontSize),n.setFillStyle(P.textColor||e.fontColor),n.fillText(P.text,F,D.y+3),n.closePath(),n.stroke(),n.closePath()}}function Ct(t,e,a,n){var r=e.extra.tooltip||{};r.gridType=void 0==r.gridType?"solid":r.gridType,r.dashLength=void 0==r.dashLength?4:r.dashLength;var i=e.area[0],o=e.height-e.area[2];if("dash"==r.gridType&&n.setLineDash([r.dashLength,r.dashLength]),n.setStrokeStyle(r.gridColor||"#cccccc"),n.setLineWidth(1*e.pix),n.beginPath(),n.moveTo(t,i),n.lineTo(t,o),n.stroke(),n.setLineDash([]),r.xAxisLabel){var s=e.categories[e.tooltip.index];n.setFontSize(a.fontSize);var l=k(s,a.fontSize,n),u=t-.5*l,d=o;n.beginPath(),n.setFillStyle(c(r.labelBgColor||a.toolTipBackground,r.labelBgOpacity||a.toolTipOpacity)),n.setStrokeStyle(r.labelBgColor||a.toolTipBackground),n.setLineWidth(1*e.pix),n.rect(u-a.toolTipPadding,d,l+2*a.toolTipPadding,a.fontSize+2*a.toolTipPadding),n.closePath(),n.stroke(),n.fill(),n.beginPath(),n.setFontSize(a.fontSize),n.setFillStyle(r.labelFontColor||e.fontColor),n.fillText(String(s),u,d+a.toolTipPadding+a.fontSize),n.closePath(),n.stroke()}}function _t(t,e,a){for(var n=o({},{type:"solid",dashLength:4,data:[]},t.extra.markLine),r=t.area[3],i=t.width-t.area[1],s=vt(n.data,t),l=0;l<s.length;l++){var u=o({},{lineColor:"#DE4A42",showLabel:!1,labelFontColor:"#666666",labelBgColor:"#DFE8FF",labelBgOpacity:.8,yAxisIndex:0},s[l]);if("dash"==n.type&&a.setLineDash([n.dashLength,n.dashLength]),a.setStrokeStyle(u.lineColor),a.setLineWidth(1*t.pix),a.beginPath(),a.moveTo(r,u.y),a.lineTo(i,u.y),a.stroke(),a.setLineDash([]),u.showLabel){var d=t.yAxis.formatter?t.yAxis.formatter(u.value):u.value;a.setFontSize(e.fontSize);var h=k(d,e.fontSize,a),f=(t.chartData.yAxisData.yAxisWidth[0].width,t.area[3]-h-2*e.toolTipPadding),p=t.area[3],g=p-f,x=p-e.toolTipPadding,m=u.y;a.setFillStyle(c(u.labelBgColor,u.labelBgOpacity)),a.setStrokeStyle(u.labelBgColor),a.setLineWidth(1*t.pix),a.beginPath(),a.rect(f,m-.5*e.fontSize-e.toolTipPadding,g,e.fontSize+2*e.toolTipPadding),a.closePath(),a.stroke(),a.fill(),a.setFontSize(e.fontSize),a.setTextAlign("right"),a.setFillStyle(u.labelFontColor),a.fillText(String(d),x,m+.5*e.fontSize),a.stroke(),a.setTextAlign("left")}}}function Dt(t,e,a,n,r){var i=o({},{gridType:"solid",dashLength:4},t.extra.tooltip),s=t.area[3],l=t.width-t.area[1];if("dash"==i.gridType&&a.setLineDash([i.dashLength,i.dashLength]),a.setStrokeStyle(i.gridColor||"#cccccc"),a.setLineWidth(1*t.pix),a.beginPath(),a.moveTo(s,t.tooltip.offset.y),a.lineTo(l,t.tooltip.offset.y),a.stroke(),a.setLineDash([]),i.yAxisLabel)for(var u=mt(t.tooltip.offset.y,t.series,t,e,n),d=t.chartData.yAxisData.yAxisWidth,h=t.area[3],f=t.width-t.area[1],p=0;p<u.length;p++){a.setFontSize(e.fontSize);var g=k(u[p],e.fontSize,a),x=void 0,m=void 0,v=void 0;"left"==d[p].position?(x=h-d[p].width,m=Math.max(x,x+g+2*e.toolTipPadding)):(x=f,m=Math.max(x+d[p].width,x+g+2*e.toolTipPadding)),v=m-x;var y=x+(v-g)/2,b=t.tooltip.offset.y;a.beginPath(),a.setFillStyle(c(i.labelBgColor||e.toolTipBackground,i.labelBgOpacity||e.toolTipOpacity)),a.setStrokeStyle(i.labelBgColor||e.toolTipBackground),a.setLineWidth(1*t.pix),a.rect(x,b-.5*e.fontSize-e.toolTipPadding,v,e.fontSize+2*e.toolTipPadding),a.closePath(),a.stroke(),a.fill(),a.beginPath(),a.setFontSize(e.fontSize),a.setFillStyle(i.labelFontColor||t.fontColor),a.fillText(u[p],y,b+.5*e.fontSize),a.closePath(),a.stroke(),"left"==d[p].position?h-=d[p].width+t.yAxis.padding*t.pix:f+=d[p].width+t.yAxis.padding*t.pix}}function Mt(t,e,a,n,r){var i=o({},{activeBgColor:"#000000",activeBgOpacity:.08},e.extra.column),s=e.area[0],l=e.height-e.area[2];n.beginPath(),n.setFillStyle(c(i.activeBgColor,i.activeBgOpacity)),n.rect(t-r/2,s,r,l-s),n.closePath(),n.fill(),n.setFillStyle("#FFFFFF")}function Ft(t,e,a,n,r){var i=o({},{activeBgColor:"#000000",activeBgOpacity:.08},e.extra.bar),s=e.area[3],l=e.width-e.area[1];n.beginPath(),n.setFillStyle(c(i.activeBgColor,i.activeBgOpacity)),n.rect(s,t-r/2,l-s,r),n.closePath(),n.fill(),n.setFillStyle("#FFFFFF")}function Lt(t,e,a,n,r,i,s){var l=o({},{showBox:!0,showArrow:!0,showCategory:!1,bgColor:"#000000",bgOpacity:.7,borderColor:"#000000",borderWidth:0,borderRadius:0,borderOpacity:.7,fontColor:"#FFFFFF",splitLine:!0},a.extra.tooltip);1==l.showCategory&&a.categories&&t.unshift({text:a.categories[a.tooltip.index],color:null});var u=4*a.pix,d=5*a.pix,h=l.showArrow?8*a.pix:0,f=!1;"line"!=a.type&&"area"!=a.type&&"candle"!=a.type&&"mix"!=a.type||1==l.splitLine&&Ct(a.tooltip.offset.x,a,n,r),e=o({x:0,y:0},e),e.y-=8*a.pix;var p=t.map((function(t){return k(t.text,n.fontSize,r)})),g=u+d+4*n.toolTipPadding+Math.max.apply(null,p),x=2*n.toolTipPadding+t.length*n.toolTipLineHeight;if(0!=l.showBox){e.x-Math.abs(a._scrollDistance_||0)+h+g>a.width&&(f=!0),x+e.y>a.height&&(e.y=a.height-x),r.beginPath(),r.setFillStyle(c(l.bgColor||n.toolTipBackground,l.bgOpacity||n.toolTipOpacity)),r.setLineWidth(l.borderWidth*a.pix),r.setStrokeStyle(c(l.borderColor,l.borderOpacity));var m=l.borderRadius;f?(l.showArrow&&(r.moveTo(e.x,e.y+10*a.pix),r.lineTo(e.x-h,e.y+10*a.pix+5*a.pix)),r.arc(e.x-h-m,e.y+x-m,m,0,Math.PI/2,!1),r.arc(e.x-h-Math.round(g)+m,e.y+x-m,m,Math.PI/2,Math.PI,!1),r.arc(e.x-h-Math.round(g)+m,e.y+m,m,-Math.PI,-Math.PI/2,!1),r.arc(e.x-h-m,e.y+m,m,-Math.PI/2,0,!1),l.showArrow&&(r.lineTo(e.x-h,e.y+10*a.pix-5*a.pix),r.lineTo(e.x,e.y+10*a.pix))):(l.showArrow&&(r.moveTo(e.x,e.y+10*a.pix),r.lineTo(e.x+h,e.y+10*a.pix-5*a.pix)),r.arc(e.x+h+m,e.y+m,m,-Math.PI,-Math.PI/2,!1),r.arc(e.x+h+Math.round(g)-m,e.y+m,m,-Math.PI/2,0,!1),r.arc(e.x+h+Math.round(g)-m,e.y+x-m,m,0,Math.PI/2,!1),r.arc(e.x+h+m,e.y+x-m,m,Math.PI/2,Math.PI,!1),l.showArrow&&(r.lineTo(e.x+h,e.y+10*a.pix+5*a.pix),r.lineTo(e.x,e.y+10*a.pix))),r.closePath(),r.fill(),l.borderWidth>0&&r.stroke(),t.forEach((function(t,a){if(null!==t.color){r.beginPath(),r.setFillStyle(t.color);var i=e.x+h+2*n.toolTipPadding,o=e.y+(n.toolTipLineHeight-n.fontSize)/2+n.toolTipLineHeight*a+n.toolTipPadding+1;f&&(i=e.x-g-h+2*n.toolTipPadding),r.fillRect(i,o,u,n.fontSize),r.closePath()}})),t.forEach((function(t,a){var i=e.x+h+2*n.toolTipPadding+u+d;f&&(i=e.x-g-h+2*n.toolTipPadding+ +u+d);var o=e.y+(n.toolTipLineHeight-n.fontSize)/2+n.toolTipLineHeight*a+n.toolTipPadding;r.beginPath(),r.setFontSize(n.fontSize),r.setFillStyle(l.fontColor),r.fillText(t.text,i,o+n.fontSize),r.closePath(),r.stroke()}))}}function It(t,e,a,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=e.chartData.xAxisData,l=s.xAxisPoints,u=s.eachSpacing,d=o({},{type:"group",width:u/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.column),h=[];r.save();var f=-2,p=l.length+2;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(r.translate(e._scrollDistance_,0),f=Math.floor(-e._scrollDistance_/u)-2,p=f+e.xAxis.itemCount+4),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===i&&Mt(e.tooltip.offset.x,e,a,r,u),d.customColor=b(d.linearType,d.customColor,t,a),t.forEach((function(o,s){var g,x,m;g=[].concat(e.chartData.yAxisData.ranges[o.index]),x=g.pop(),m=g.shift();var v=o.data;switch(d.type){case"group":var y=dt(v,x,m,l,u,e,a,i),b=ft(v,x,m,l,u,e,a,s,t,i);h.push(b),y=rt(y,u,t.length,s,a,e);for(var w=0;w<y.length;w++){var k=y[w];if(null!==k&&w>f&&w<p){var S=k.x-k.width/2,A=e.height-k.y-e.area[2];r.beginPath();var T=k.color||o.color,P=k.color||o.color;if("none"!==d.linearType){var C=r.createLinearGradient(S,k.y,S,e.height-e.area[2]);"opacity"==d.linearType?(C.addColorStop(0,c(T,d.linearOpacity)),C.addColorStop(1,c(T,1))):(C.addColorStop(0,c(d.customColor[o.linearIndex],d.linearOpacity)),C.addColorStop(d.colorStop,c(d.customColor[o.linearIndex],d.linearOpacity)),C.addColorStop(1,c(T,1))),T=C}if(d.barBorderRadius&&4===d.barBorderRadius.length||!0===d.barBorderCircle){var _=S,D=k.y,M=k.width,F=e.height-e.area[2]-k.y;d.barBorderCircle&&(d.barBorderRadius=[M/2,M/2,0,0]);var L=n(d.barBorderRadius,4),I=L[0],O=L[1],E=L[2],R=L[3],B=Math.min(M/2,F/2);I=I>B?B:I,O=O>B?B:O,E=E>B?B:E,R=R>B?B:R,I=I<0?0:I,O=O<0?0:O,E=E<0?0:E,R=R<0?0:R,r.arc(_+I,D+I,I,-Math.PI,-Math.PI/2),r.arc(_+M-O,D+O,O,-Math.PI/2,0),r.arc(_+M-E,D+F-E,E,0,Math.PI/2),r.arc(_+R,D+F-R,R,Math.PI/2,Math.PI)}else r.moveTo(S,k.y),r.lineTo(S+k.width-2,k.y),r.lineTo(S+k.width-2,e.height-e.area[2]),r.lineTo(S,e.height-e.area[2]),r.lineTo(S,k.y),r.setLineWidth(1),r.setStrokeStyle(P);r.setFillStyle(T),r.closePath(),r.fill()}}break;case"stack":y=ft(v,x,m,l,u,e,a,s,t,i);h.push(y),y=st(y,u,t.length,s,a,e,t);for(var z=0;z<y.length;z++){var U=y[z];if(null!==U&&z>f&&z<p){r.beginPath();T=U.color||o.color,S=U.x-U.width/2+1,A=e.height-U.y-e.area[2];var N=e.height-U.y0-e.area[2];s>0&&(A-=N),r.setFillStyle(T),r.moveTo(S,U.y),r.fillRect(S,U.y,U.width-2,A),r.closePath(),r.fill()}}break;case"meter":y=dt(v,x,m,l,u,e,a,i);if(h.push(y),y=ot(y,u,t.length,s,a,e,d.meterBorder),0==s)for(var W=0;W<y.length;W++){var j=y[W];if(null!==j&&W>f&&W<p){r.beginPath(),r.setFillStyle(d.meterFillColor);S=j.x-j.width/2,A=e.height-j.y-e.area[2];if(d.barBorderCircle){var q=(j.width-2*d.meterBorder)/2;q>A&&(q=A),r.moveTo(S+d.meterBorder,e.height-e.area[2]),r.lineTo(S+d.meterBorder,j.y+q),r.arc(S+j.width/2,j.y+q,q,-Math.PI,0),r.lineTo(S+j.width-d.meterBorder,e.height-e.area[2]),r.lineTo(S,e.height-e.area[2]),r.fill()}else r.moveTo(S,j.y),r.fillRect(S,j.y,j.width,A),r.closePath(),r.fill();if(d.meterBorder>0){if(r.beginPath(),r.setStrokeStyle(o.color),r.setLineWidth(d.meterBorder*e.pix),d.barBorderCircle){q=(j.width-d.meterBorder)/2;q>A&&(q=A),r.moveTo(S+.5*d.meterBorder,e.height-e.area[2]),r.lineTo(S+.5*d.meterBorder,j.y+q),r.arc(S+j.width/2,j.y+q-.5*d.meterBorder,q,-Math.PI,0),r.lineTo(S+j.width-.5*d.meterBorder,e.height-e.area[2])}else r.moveTo(S+.5*d.meterBorder,j.y+A),r.lineTo(S+.5*d.meterBorder,j.y+.5*d.meterBorder),r.lineTo(S+j.width-.5*d.meterBorder,j.y+.5*d.meterBorder),r.lineTo(S+j.width-.5*d.meterBorder,j.y+A);r.stroke()}}}else for(var H=0;H<y.length;H++){var Y=y[H];if(null!==Y&&H>f&&H<p){r.beginPath(),r.setFillStyle(Y.color||o.color);S=Y.x-Y.width/2,A=e.height-Y.y-e.area[2];if(d.barBorderCircle){q=Y.width/2;q>A&&(q=A),r.moveTo(S,e.height-e.area[2]),r.arc(S+q,Y.y+q,q,-Math.PI,-Math.PI/2),r.arc(S+Y.width-q,Y.y+q,q,-Math.PI/2,0),r.lineTo(S+Y.width,e.height-e.area[2]),r.lineTo(S,e.height-e.area[2]),r.fill()}else r.moveTo(S,Y.y),r.fillRect(S,Y.y,Y.width,A),r.closePath(),r.fill()}}break}})),!1!==e.dataLabel&&1===i&&t.forEach((function(n,o){var s,c,h;s=[].concat(e.chartData.yAxisData.ranges[n.index]),c=s.pop(),h=s.shift();var f=n.data;switch(d.type){case"group":var p=dt(f,c,h,l,u,e,a,i);p=rt(p,u,t.length,o,a,e),kt(p,n,a,r,e);break;case"stack":p=ft(f,c,h,l,u,e,a,o,t,i);kt(p,n,a,r,e);break;case"meter":p=dt(f,c,h,l,u,e,a,i);kt(p,n,a,r,e);break}})),r.restore(),{xAxisPoints:l,calPoints:h,eachSpacing:u}}function Ot(t,e,a,r){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=[],l=(e.height-e.area[0]-e.area[2])/e.categories.length,u=0;u<e.categories.length;u++)s.push(e.area[0]+l/2+l*u);var d=o({},{type:"group",width:l/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.bar),h=[];r.save();var f=-2,p=s.length+2;return e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===i&&Ft(e.tooltip.offset.y,e,a,r,l),d.customColor=b(d.linearType,d.customColor,t,a),t.forEach((function(o,u){var g,x,m;g=[].concat(e.chartData.xAxisData.ranges),m=g.pop(),x=g.shift();var v=o.data;switch(d.type){case"group":var y=ht(v,x,m,s,l,e,a,i),b=pt(v,x,m,s,l,e,a,u,t,i);h.push(b),y=it(y,l,t.length,u,a,e);for(var w=0;w<y.length;w++){var k=y[w];if(null!==k&&w>f&&w<p){var S=e.area[3],A=k.y-k.width/2;k.height;r.beginPath();var T=k.color||o.color,P=k.color||o.color;if("none"!==d.linearType){var C=r.createLinearGradient(S,k.y,k.x,k.y);"opacity"==d.linearType?(C.addColorStop(0,c(T,d.linearOpacity)),C.addColorStop(1,c(T,1))):(C.addColorStop(0,c(d.customColor[o.linearIndex],d.linearOpacity)),C.addColorStop(d.colorStop,c(d.customColor[o.linearIndex],d.linearOpacity)),C.addColorStop(1,c(T,1))),T=C}if(d.barBorderRadius&&4===d.barBorderRadius.length||!0===d.barBorderCircle){var _=S,D=k.width,M=k.y-k.width/2,F=k.heigh;d.barBorderCircle&&(d.barBorderRadius=[D/2,D/2,0,0]);var L=n(d.barBorderRadius,4),I=L[0],O=L[1],E=L[2],R=L[3];I+E>F&&(I=F,E=0,O=F,R=0),I+E>D/2&&(I=D/2,O=D/2,E=0,R=0),I=I<0?0:I,O=O<0?0:O,E=E<0?0:E,R=R<0?0:R,r.arc(_+R,M+R,R,-Math.PI,-Math.PI/2),r.arc(k.x-I,M+I,I,-Math.PI/2,0),r.arc(k.x-O,M+D-O,O,0,Math.PI/2),r.arc(_+E,M+D-E,E,Math.PI/2,Math.PI)}else r.moveTo(S,A),r.lineTo(k.x,A),r.lineTo(k.x,A+k.width-2),r.lineTo(S,A+k.width-2),r.lineTo(S,A),r.setLineWidth(1),r.setStrokeStyle(P);r.setFillStyle(T),r.closePath(),r.fill()}}break;case"stack":y=pt(v,x,m,s,l,e,a,u,t,i);h.push(y),y=lt(y,l,t.length,u,a,e,t);for(var B=0;B<y.length;B++){var z=y[B];if(null!==z&&B>f&&B<p){r.beginPath();T=z.color||o.color,S=z.x0;r.setFillStyle(T),r.moveTo(S,z.y-z.width/2),r.fillRect(S,z.y-z.width/2,z.height,z.width-2),r.closePath(),r.fill()}}break}})),!1!==e.dataLabel&&1===i&&t.forEach((function(n,o){var c,u,h;c=[].concat(e.chartData.xAxisData.ranges),h=c.pop(),u=c.shift();var f=n.data;switch(d.type){case"group":var p=ht(f,u,h,s,l,e,a,i);p=it(p,l,t.length,o,a,e),St(p,n,a,r,e);break;case"stack":p=pt(f,u,h,s,l,e,a,o,t,i);St(p,n,a,r,e);break}})),{yAxisPoints:s,calPoints:h,eachSpacing:l}}function Et(t,e,a,n,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,s=o({},{color:{},average:{}},a.extra.candle);s.color=o({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},s.color),s.average=o({},{show:!1,name:[],day:[],color:n.color},s.average),a.extra.candle=s;var l=a.chartData.xAxisData,c=l.xAxisPoints,u=l.eachSpacing,d=[];r.save();var h=-2,f=c.length+2,p=0,x=a.width+u;return a._scrollDistance_&&0!==a._scrollDistance_&&!0===a.enableScroll&&(r.translate(a._scrollDistance_,0),h=Math.floor(-a._scrollDistance_/u)-2,f=h+a.xAxis.itemCount+4,p=-a._scrollDistance_-2*u+a.area[3],x=p+(a.xAxis.itemCount+4)*u),(s.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,h=dt(d,s,l,c,u,a,n,i),f=Y(h,t),m=0;m<f.length;m++){var v=f[m];if(r.beginPath(),r.setStrokeStyle(t.color),r.setLineWidth(1),1===v.length)r.moveTo(v[0].x,v[0].y),r.arc(v[0].x,v[0].y,1,0,2*Math.PI);else{r.moveTo(v[0].x,v[0].y);for(var y=0,b=0;b<v.length;b++){var w=v[b];if(0==y&&w.x>p&&(r.moveTo(w.x,w.y),y=1),b>0&&w.x>p&&w.x<x){var k=g(v,b-1);r.bezierCurveTo(k.ctrA.x,k.ctrA.y,k.ctrB.x,k.ctrB.y,w.x,w.y)}}r.moveTo(v[0].x,v[0].y)}r.closePath(),r.stroke()}})),t.forEach((function(t,e){var o,l,p;o=[].concat(a.chartData.yAxisData.ranges[t.index]),l=o.pop(),p=o.shift();var g=t.data,x=ut(g,l,p,c,u,a,n,i);d.push(x);for(var m=Y(x,t),v=0;v<m[0].length;v++)if(v>h&&v<f){var y=m[0][v];r.beginPath(),g[v][1]-g[v][0]>0?(r.setStrokeStyle(s.color.upLine),r.setFillStyle(s.color.upFill),r.setLineWidth(1*a.pix),r.moveTo(y[3].x,y[3].y),r.lineTo(y[1].x,y[1].y),r.lineTo(y[1].x-u/4,y[1].y),r.lineTo(y[0].x-u/4,y[0].y),r.lineTo(y[0].x,y[0].y),r.lineTo(y[2].x,y[2].y),r.lineTo(y[0].x,y[0].y),r.lineTo(y[0].x+u/4,y[0].y),r.lineTo(y[1].x+u/4,y[1].y),r.lineTo(y[1].x,y[1].y),r.moveTo(y[3].x,y[3].y)):(r.setStrokeStyle(s.color.downLine),r.setFillStyle(s.color.downFill),r.setLineWidth(1*a.pix),r.moveTo(y[3].x,y[3].y),r.lineTo(y[0].x,y[0].y),r.lineTo(y[0].x-u/4,y[0].y),r.lineTo(y[1].x-u/4,y[1].y),r.lineTo(y[1].x,y[1].y),r.lineTo(y[2].x,y[2].y),r.lineTo(y[1].x,y[1].y),r.lineTo(y[1].x+u/4,y[1].y),r.lineTo(y[0].x+u/4,y[0].y),r.lineTo(y[0].x,y[0].y),r.moveTo(y[3].x,y[3].y)),r.closePath(),r.fill(),r.stroke()}})),r.restore(),{xAxisPoints:c,calPoints:d,eachSpacing:u}}function Rt(t,e,a,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=o({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1},e.extra.area),s=e.chartData.xAxisData,l=s.xAxisPoints,u=s.eachSpacing,d=e.height-e.area[2],h=[];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,x,m;s=[].concat(e.chartData.yAxisData.ranges[t.index]),x=s.pop(),m=s.shift();var v=t.data,y=dt(v,x,m,l,u,e,a,r);h.push(y);for(var b=Y(y,t),w=0;w<b.length;w++){var k=b[w];if(n.beginPath(),n.setStrokeStyle(c(t.color,i.opacity)),i.gradient){var S=n.createLinearGradient(0,e.area[0],0,e.height-e.area[2]);S.addColorStop("0",c(t.color,i.opacity)),S.addColorStop("1.0",c("#FFFFFF",.1)),n.setFillStyle(S)}else n.setFillStyle(c(t.color,i.opacity));if(n.setLineWidth(i.width*e.pix),k.length>1){var A=k[0],T=k[k.length-1];n.moveTo(A.x,A.y);var P=0;if("curve"===i.type)for(var C=0;C<k.length;C++){var _=k[C];if(0==P&&_.x>f&&(n.moveTo(_.x,_.y),P=1),C>0&&_.x>f&&_.x<p){var D=g(k,C-1);n.bezierCurveTo(D.ctrA.x,D.ctrA.y,D.ctrB.x,D.ctrB.y,_.x,_.y)}}if("straight"===i.type)for(var M=0;M<k.length;M++){var F=k[M];0==P&&F.x>f&&(n.moveTo(F.x,F.y),P=1),M>0&&F.x>f&&F.x<p&&n.lineTo(F.x,F.y)}if("step"===i.type)for(var L=0;L<k.length;L++){var I=k[L];0==P&&I.x>f&&(n.moveTo(I.x,I.y),P=1),L>0&&I.x>f&&I.x<p&&(n.lineTo(I.x,k[L-1].y),n.lineTo(I.x,I.y))}n.lineTo(T.x,d),n.lineTo(A.x,d),n.lineTo(A.x,A.y)}else{var O=k[0];n.moveTo(O.x-u/2,O.y),n.lineTo(O.x+u/2,O.y),n.lineTo(O.x+u/2,d),n.lineTo(O.x-u/2,d),n.moveTo(O.x-u/2,O.y)}if(n.closePath(),n.fill(),i.addLine){if("dash"==t.lineType){var E=t.dashLength?t.dashLength:8;E*=e.pix,n.setLineDash([E,E])}if(n.beginPath(),n.setStrokeStyle(t.color),n.setLineWidth(i.width*e.pix),1===k.length)n.moveTo(k[0].x,k[0].y),n.arc(k[0].x,k[0].y,1,0,2*Math.PI);else{n.moveTo(k[0].x,k[0].y);var R=0;if("curve"===i.type)for(var B=0;B<k.length;B++){var z=k[B];if(0==R&&z.x>f&&(n.moveTo(z.x,z.y),R=1),B>0&&z.x>f&&z.x<p){var U=g(k,B-1);n.bezierCurveTo(U.ctrA.x,U.ctrA.y,U.ctrB.x,U.ctrB.y,z.x,z.y)}}if("straight"===i.type)for(var N=0;N<k.length;N++){var W=k[N];0==R&&W.x>f&&(n.moveTo(W.x,W.y),R=1),N>0&&W.x>f&&W.x<p&&n.lineTo(W.x,W.y)}if("step"===i.type)for(var j=0;j<k.length;j++){var q=k[j];0==R&&q.x>f&&(n.moveTo(q.x,q.y),R=1),j>0&&q.x>f&&q.x<p&&(n.lineTo(q.x,k[j-1].y),n.lineTo(q.x,q.y))}n.moveTo(k[0].x,k[0].y)}n.stroke(),n.setLineDash([])}}!1!==e.dataPointShape&&bt(y,t.color,t.pointShape,n,e)})),!1!==e.dataLabel&&1===r&&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,h=dt(d,s,c,l,u,e,a,r);kt(h,t,a,n,e)})),n.restore(),{xAxisPoints:l,calPoints:h,eachSpacing:u}}function Bt(t,e,a,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=(o({},{type:"circle"},e.extra.scatter),e.chartData.xAxisData),s=i.xAxisPoints,l=i.eachSpacing,c=[];n.save();var u=0;e.width;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),u=-e._scrollDistance_-2*l+e.area[3],u+(e.xAxis.itemCount+4)*l),t.forEach((function(t,i){var o,c,u;o=[].concat(e.chartData.yAxisData.ranges[t.index]),c=o.pop(),u=o.shift();var d=t.data,h=dt(d,c,u,s,l,e,a,r);n.beginPath(),n.setStrokeStyle(t.color),n.setFillStyle(t.color),n.setLineWidth(1*e.pix);var f=t.pointShape;if("diamond"===f)h.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"===f)h.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"===f)h.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"===f)h.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"===f)return;n.closePath(),n.fill(),n.stroke()})),!1!==e.dataLabel&&1===r&&t.forEach((function(t,i){var o,c,u;o=[].concat(e.chartData.yAxisData.ranges[t.index]),c=o.pop(),u=o.shift();var d=t.data,h=dt(d,c,u,s,l,e,a,r);kt(h,t,a,n,e)})),n.restore(),{xAxisPoints:s,calPoints:c,eachSpacing:l}}function zt(t,e,a,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=o({},{opacity:1,border:2},e.extra.bubble),s=e.chartData.xAxisData,l=s.xAxisPoints,u=s.eachSpacing,d=[];n.save();var h=0;e.width;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),h=-e._scrollDistance_-2*u+e.area[3],h+(e.xAxis.itemCount+4)*u),t.forEach((function(o,s){var d,h,f;d=[].concat(e.chartData.yAxisData.ranges[o.index]),h=d.pop(),f=d.shift();var p=o.data,g=dt(p,h,f,l,u,e,a,r);n.beginPath(),n.setStrokeStyle(o.color),n.setLineWidth(i.border*e.pix),n.setFillStyle(c(o.color,i.opacity)),g.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===r&&g.forEach((function(r,i){n.beginPath();var o=t.textSize*e.pix||a.fontSize;n.setFontSize(o),n.setFillStyle(t.textColor||"#FFFFFF"),n.setTextAlign("center"),n.fillText(String(r.t),r.x,r.y+o/2),n.closePath(),n.stroke(),n.setTextAlign("left")}))})),n.restore(),{xAxisPoints:l,calPoints:d,eachSpacing:u}}function Ut(t,e,a,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=o({},{type:"straight",width:2},e.extra.line);i.width*=e.pix;var s=e.chartData.xAxisData,l=s.xAxisPoints,c=s.eachSpacing,u=[];n.save();var d=0,h=e.width+c;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),d=-e._scrollDistance_-2*c+e.area[3],h=d+(e.xAxis.itemCount+4)*c),t.forEach((function(t,o){var s,f,p;s=[].concat(e.chartData.yAxisData.ranges[t.index]),f=s.pop(),p=s.shift();var x=t.data,m=dt(x,f,p,l,c,e,a,r);u.push(m);var v=Y(m,t);if("dash"==t.lineType){var y=t.dashLength?t.dashLength:8;y*=e.pix,n.setLineDash([y,y])}n.beginPath(),n.setStrokeStyle(t.color),n.setLineWidth(i.width),v.forEach((function(t,e){if(1===t.length)n.moveTo(t[0].x,t[0].y),n.arc(t[0].x,t[0].y,1,0,2*Math.PI);else{n.moveTo(t[0].x,t[0].y);var a=0;if("curve"===i.type)for(var r=0;r<t.length;r++){var o=t[r];if(0==a&&o.x>d&&(n.moveTo(o.x,o.y),a=1),r>0&&o.x>d&&o.x<h){var s=g(t,r-1);n.bezierCurveTo(s.ctrA.x,s.ctrA.y,s.ctrB.x,s.ctrB.y,o.x,o.y)}}if("straight"===i.type)for(var l=0;l<t.length;l++){var c=t[l];0==a&&c.x>d&&(n.moveTo(c.x,c.y),a=1),l>0&&c.x>d&&c.x<h&&n.lineTo(c.x,c.y)}if("step"===i.type)for(var u=0;u<t.length;u++){var f=t[u];0==a&&f.x>d&&(n.moveTo(f.x,f.y),a=1),u>0&&f.x>d&&f.x<h&&(n.lineTo(f.x,t[u-1].y),n.lineTo(f.x,f.y))}n.moveTo(t[0].x,t[0].y)}})),n.stroke(),n.setLineDash([]),!1!==e.dataPointShape&&bt(m,t.color,t.pointShape,n,e)})),!1!==e.dataLabel&&1===r&&t.forEach((function(t,i){var o,s,u;o=[].concat(e.chartData.yAxisData.ranges[t.index]),s=o.pop(),u=o.shift();var d=t.data,h=dt(d,s,u,l,c,e,a,r);kt(h,t,a,n,e)})),n.restore(),{xAxisPoints:l,calPoints:u,eachSpacing:c}}function Nt(t,e,a,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=o({},{width:d/2,barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.mix.column),l=e.chartData.xAxisData,u=l.xAxisPoints,d=l.eachSpacing,h=e.height-e.area[2],f=[],p=0,x=0;t.forEach((function(t,e){"column"==t.type&&(x+=1)})),r.save();var m=-2,v=u.length+2,y=0,w=e.width+d;if(e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(r.translate(e._scrollDistance_,0),m=Math.floor(-e._scrollDistance_/d)-2,v=m+e.xAxis.itemCount+4,y=-e._scrollDistance_-2*d+e.area[3],w=y+(e.xAxis.itemCount+4)*d),s.customColor=b(s.linearType,s.customColor,t,a),t.forEach((function(t,o){var l,b,k;l=[].concat(e.chartData.yAxisData.ranges[t.index]),b=l.pop(),k=l.shift();var S=t.data,A=dt(S,b,k,u,d,e,a,i);if(f.push(A),"column"==t.type){A=rt(A,d,x,p,a,e);for(var T=0;T<A.length;T++){var P=A[T];if(null!==P&&T>m&&T<v){var C=P.x-P.width/2;e.height,P.y,e.area[2];r.beginPath();var _=P.color||t.color,D=P.color||t.color;if("none"!==s.linearType){var M=r.createLinearGradient(C,P.y,C,e.height-e.area[2]);"opacity"==s.linearType?(M.addColorStop(0,c(_,s.linearOpacity)),M.addColorStop(1,c(_,1))):(M.addColorStop(0,c(s.customColor[t.linearIndex],s.linearOpacity)),M.addColorStop(s.colorStop,c(s.customColor[t.linearIndex],s.linearOpacity)),M.addColorStop(1,c(_,1))),_=M}if(s.barBorderRadius&&4===s.barBorderRadius.length||s.barBorderCircle){var F=C,L=P.y,I=P.width,O=e.height-e.area[2]-P.y;s.barBorderCircle&&(s.barBorderRadius=[I/2,I/2,0,0]);var E=n(s.barBorderRadius,4),R=E[0],B=E[1],z=E[2],U=E[3],N=Math.min(I/2,O/2);R=R>N?N:R,B=B>N?N:B,z=z>N?N:z,U=U>N?N:U,R=R<0?0:R,B=B<0?0:B,z=z<0?0:z,U=U<0?0:U,r.arc(F+R,L+R,R,-Math.PI,-Math.PI/2),r.arc(F+I-B,L+B,B,-Math.PI/2,0),r.arc(F+I-z,L+O-z,z,0,Math.PI/2),r.arc(F+U,L+O-U,U,Math.PI/2,Math.PI)}else r.moveTo(C,P.y),r.lineTo(C+P.width-2,P.y),r.lineTo(C+P.width-2,e.height-e.area[2]),r.lineTo(C,e.height-e.area[2]),r.lineTo(C,P.y),r.setLineWidth(1),r.setStrokeStyle(D);r.setFillStyle(_),r.closePath(),r.fill()}}p+=1}if("area"==t.type)for(var W=Y(A,t),j=0;j<W.length;j++){var q=W[j];if(r.beginPath(),r.setStrokeStyle(t.color),r.setFillStyle(c(t.color,.2)),r.setLineWidth(2*e.pix),q.length>1){var H=q[0],G=q[q.length-1];r.moveTo(H.x,H.y);var J=0;if("curve"===t.style)for(var K=0;K<q.length;K++){var X=q[K];if(0==J&&X.x>y&&(r.moveTo(X.x,X.y),J=1),K>0&&X.x>y&&X.x<w){var Q=g(q,K-1);r.bezierCurveTo(Q.ctrA.x,Q.ctrA.y,Q.ctrB.x,Q.ctrB.y,X.x,X.y)}}else for(var V=0;V<q.length;V++){var Z=q[V];0==J&&Z.x>y&&(r.moveTo(Z.x,Z.y),J=1),V>0&&Z.x>y&&Z.x<w&&r.lineTo(Z.x,Z.y)}r.lineTo(G.x,h),r.lineTo(H.x,h),r.lineTo(H.x,H.y)}else{var $=q[0];r.moveTo($.x-d/2,$.y),r.lineTo($.x+d/2,$.y),r.lineTo($.x+d/2,h),r.lineTo($.x-d/2,h),r.moveTo($.x-d/2,$.y)}r.closePath(),r.fill()}if("line"==t.type){var tt=Y(A,t);tt.forEach((function(a,n){if("dash"==t.lineType){var i=t.dashLength?t.dashLength:8;i*=e.pix,r.setLineDash([i,i])}if(r.beginPath(),r.setStrokeStyle(t.color),r.setLineWidth(2*e.pix),1===a.length)r.moveTo(a[0].x,a[0].y),r.arc(a[0].x,a[0].y,1,0,2*Math.PI);else{r.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>y&&(r.moveTo(l.x,l.y),o=1),s>0&&l.x>y&&l.x<w){var c=g(a,s-1);r.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>y&&(r.moveTo(d.x,d.y),o=1),u>0&&d.x>y&&d.x<w&&r.lineTo(d.x,d.y)}r.moveTo(a[0].x,a[0].y)}r.stroke(),r.setLineDash([])}))}"point"==t.type&&(t.addPoint=!0),1==t.addPoint&&"column"!==t.type&&bt(A,t.color,t.pointShape,r,e)})),!1!==e.dataLabel&&1===i){p=0;t.forEach((function(t,n){var o,s,l;o=[].concat(e.chartData.yAxisData.ranges[t.index]),s=o.pop(),l=o.shift();var c=t.data,h=dt(c,s,l,u,d,e,a,i);"column"!==t.type?kt(h,t,a,r,e):(h=rt(h,d,x,p,a,e),kt(h,t,a,r,e),p+=1)}))}return r.restore(),{xAxisPoints:u,calPoints:f,eachSpacing:d}}function Wt(t,e,a,n,r,i){var o=t.extra.tooltip||{};o.horizentalLine&&t.tooltip&&1===n&&("line"==t.type||"area"==t.type||"column"==t.type||"candle"==t.type||"mix"==t.type)&&Dt(t,e,a,r,i),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&&Lt(t.tooltip.textList,t.tooltip.offset,t,e,a,r,i),a.restore()}function jt(t,e,a,n){var r=e.chartData.xAxisData,i=r.xAxisPoints,o=r.startX,s=r.endX,l=r.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 h=e.height-e.area[2]+a.xAxisHeight,f=s-o,g=l*(i.length-1),x=f*f/g,m=0;e._scrollDistance_&&(m=-e._scrollDistance_*f/g),n.beginPath(),n.setLineCap("round"),n.setLineWidth(6*e.pix),n.setStrokeStyle(e.xAxis.scrollBackgroundColor||"#EFEBEF"),n.moveTo(o,h),n.lineTo(s,h),n.stroke(),n.closePath(),n.beginPath(),n.setLineCap("round"),n.setLineWidth(6*e.pix),n.setStrokeStyle(e.xAxis.scrollColor||"#A6A6A6"),n.moveTo(o+m,h),n.lineTo(o+m+x,h),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),i.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,i.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 v=t.length;e.xAxis.labelCount&&(v=e.xAxis.itemCount?Math.ceil(t.length/e.xAxis.itemCount*e.xAxis.labelCount):e.xAxis.labelCount,v-=1);for(var y=Math.ceil(t.length/v),b=[],w=t.length,S=0;S<w;S++)S%y!==0?b.push(""):b.push(t[S]);b[w-1]=t[w-1];var A=e.xAxis.fontSize*e.pix||a.fontSize;0===a._xAxisTextAngle_?b.forEach((function(t,r){var o=e.xAxis.formatter?e.xAxis.formatter(t):t,s=-k(String(o),A,n)/2;"center"==c&&(s+=l/2);var d=0;e.xAxis.scrollShow&&(d=6*e.pix),n.beginPath(),n.setFontSize(A),n.setFillStyle(e.xAxis.fontColor||e.fontColor),n.fillText(String(o),i[r]+s,u+A+(a.xAxisHeight-d-A)/2),n.closePath(),n.stroke()})):b.forEach((function(t,r){var o=e.xAxis.formatter?e.xAxis.formatter(t):t;n.save(),n.beginPath(),n.setFontSize(A),n.setFillStyle(e.xAxis.fontColor||e.fontColor);var s=k(String(o),A,n),d=-s;"center"==c&&(d+=l/2);var h=p(i[r]+l/2,u+A/2+5,e.height),f=h.transX,g=h.transY;n.rotate(-1*a._xAxisTextAngle_),n.translate(f,g),n.fillText(String(o),i[r]+d,u+A+5),n.closePath(),n.stroke(),n.restore()}))}n.restore(),e.xAxis.axisLine&&(n.beginPath(),n.setStrokeStyle(e.xAxis.axisLineColor),n.setLineWidth(1*e.pix),n.moveTo(o,e.height-e.area[2]),n.lineTo(s,e.height-e.area[2]),n.stroke())}function qt(t,e,a,n){if(!0!==e.yAxis.disableGrid){var r=e.height-e.area[0]-e.area[2],i=r/e.yAxis.splitNumber,o=e.area[3],s=e.chartData.xAxisData.xAxisPoints,l=e.chartData.xAxisData.eachSpacing,c=l*(s.length-1),u=o+c,d=[],h=1;!1===e.xAxis.axisLine&&(h=0);for(var f=h;f<e.yAxis.splitNumber+1;f++)d.push(e.height-e.area[2]-i*f);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 Ht(t,e,a,n){if(!0!==e.yAxis.disabled){var r=e.height-e.area[0]-e.area[2],i=r/e.yAxis.splitNumber,o=e.area[3],s=e.width-e.area[1],l=e.height-e.area[2],c=l+a.xAxisHeight;e.xAxis.scrollShow&&(c-=3*e.pix),e.xAxis.rotateLabel&&(c=e.height-e.area[2]+e.fontSize*e.pix/2),n.beginPath(),n.setFillStyle(e.background),1==e.enableScroll&&e.xAxis.scrollPosition&&"left"!==e.xAxis.scrollPosition&&n.fillRect(0,0,o,c),1==e.enableScroll&&e.xAxis.scrollPosition&&"right"!==e.xAxis.scrollPosition&&n.fillRect(s,0,e.width,c),n.closePath(),n.stroke();var u=e.area[3],d=e.width-e.area[1],h=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(g=[],"categories"===o.type)for(var s=0;s<=o.categories.length;s++)g.push(e.area[0]+r/o.categories.length/2+r/o.categories.length*s);else for(var c=0;c<=e.yAxis.splitNumber;c++)g.push(e.area[0]+i*c);if(!0!==o.disabled){var f=e.chartData.yAxisData.rangesFormat[t],p=o.fontSize?o.fontSize*e.pix:a.fontSize,x=e.chartData.yAxisData.yAxisWidth[t],m=o.textAlign||"right";if(f.forEach((function(t,a){var r=g[a]?g[a]:l;n.beginPath(),n.setFontSize(p),n.setLineWidth(1*e.pix),n.setStrokeStyle(o.axisLineColor||"#cccccc"),n.setFillStyle(o.fontColor||e.fontColor);var i=0,s=4*e.pix;if("left"==x.position){switch(1==o.calibration&&(n.moveTo(u,r),n.lineTo(u-3*e.pix,r),s+=3*e.pix),m){case"left":n.setTextAlign("left"),i=u-x.width;break;case"right":n.setTextAlign("right"),i=u-s;break;default:n.setTextAlign("center"),i=u-x.width/2}n.fillText(String(t),i,r+p/2-3*e.pix)}else if("right"==x.position){switch(1==o.calibration&&(n.moveTo(d,r),n.lineTo(d+3*e.pix,r),s+=3*e.pix),m){case"left":n.setTextAlign("left"),i=d+s;break;case"right":n.setTextAlign("right"),i=d+x.width;break;default:n.setTextAlign("center"),i=d+x.width/2}n.fillText(String(t),i,r+p/2-3*e.pix)}else if("center"==x.position){switch(1==o.calibration&&(n.moveTo(h,r),n.lineTo(h-3*e.pix,r),s+=3*e.pix),m){case"left":n.setTextAlign("left"),i=h-x.width;break;case"right":n.setTextAlign("right"),i=h-s;break;default:n.setTextAlign("center"),i=h-x.width/2}n.fillText(String(t),i,r+p/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"==x.position?(n.moveTo(u,e.height-e.area[2]),n.lineTo(u,e.area[0])):"right"==x.position?(n.moveTo(d,e.height-e.area[2]),n.lineTo(d,e.area[0])):"center"==x.position&&(n.moveTo(h,e.height-e.area[2]),n.lineTo(h,e.area[0])),n.stroke()),e.yAxis.showTitle){var v=o.titleFontSize*e.pix||a.fontSize,y=o.title;n.beginPath(),n.setFontSize(v),n.setFillStyle(o.titleFontColor||e.fontColor),"left"==x.position?n.fillText(y,u-k(y,v,n)/2+(o.titleOffsetX||0),e.area[0]-(10-(o.titleOffsetY||0))*e.pix):"right"==x.position?n.fillText(y,d-k(y,v,n)/2+(o.titleOffsetX||0),e.area[0]-(10-(o.titleOffsetY||0))*e.pix):"center"==x.position&&n.fillText(y,h-k(y,v,n)/2+(o.titleOffsetX||0),e.area[0]-(10-(o.titleOffsetY||0))*e.pix),n.closePath(),n.stroke()}"left"==x.position?u-=x.width+e.yAxis.padding*e.pix:d+=x.width+e.yAxis.padding*e.pix}},p=0;p<e.yAxis.data.length;p++){var g;f(p)}}}function Yt(t,e,a,n,r){if(!1!==e.legend.show){var i=r.legendData,o=i.points,s=i.area,l=e.legend.padding*e.pix,c=e.legend.fontSize*e.pix,u=15*e.pix,d=5*e.pix,h=e.legend.itemGap*e.pix,f=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,r){var o=0,p=0;o=i.widthArr[r],p=i.heightArr[r];var g=0,x=0;if("top"==e.legend.position||"bottom"==e.legend.position){switch(e.legend.float){case"left":g=s.start.x+l;break;case"right":g=s.start.x+s.width-o;break;default:g=s.start.x+(s.width-o)/2}x=s.start.y+l+r*f}else o=0==r?0:i.widthArr[r-1],g=s.start.x+l+o,x=s.start.y+l+(s.height-p)/2;n.setFontSize(a.fontSize);for(var m=0;m<t.length;m++){var v=t[m];switch(v.area=[0,0,0,0],v.area[0]=g,v.area[1]=x,v.area[3]=x+f,n.beginPath(),n.setLineWidth(1*e.pix),n.setStrokeStyle(v.show?v.color:e.legend.hiddenColor),n.setFillStyle(v.show?v.color:e.legend.hiddenColor),v.legendShape){case"line":n.moveTo(g,x+.5*f-2*e.pix),n.fillRect(g,x+.5*f-2*e.pix,15*e.pix,4*e.pix);break;case"triangle":n.moveTo(g+7.5*e.pix,x+.5*f-5*e.pix),n.lineTo(g+2.5*e.pix,x+.5*f+5*e.pix),n.lineTo(g+12.5*e.pix,x+.5*f+5*e.pix),n.lineTo(g+7.5*e.pix,x+.5*f-5*e.pix);break;case"diamond":n.moveTo(g+7.5*e.pix,x+.5*f-5*e.pix),n.lineTo(g+2.5*e.pix,x+.5*f),n.lineTo(g+7.5*e.pix,x+.5*f+5*e.pix),n.lineTo(g+12.5*e.pix,x+.5*f),n.lineTo(g+7.5*e.pix,x+.5*f-5*e.pix);break;case"circle":n.moveTo(g+7.5*e.pix,x+.5*f),n.arc(g+7.5*e.pix,x+.5*f,5*e.pix,0,2*Math.PI);break;case"rect":n.moveTo(g,x+.5*f-5*e.pix),n.fillRect(g,x+.5*f-5*e.pix,15*e.pix,10*e.pix);break;case"square":n.moveTo(g+5*e.pix,x+.5*f-5*e.pix),n.fillRect(g+5*e.pix,x+.5*f-5*e.pix,10*e.pix,10*e.pix);break;case"none":break;default:n.moveTo(g,x+.5*f-5*e.pix),n.fillRect(g,x+.5*f-5*e.pix,15*e.pix,10*e.pix)}n.closePath(),n.fill(),n.stroke(),g+=u+d;var y=.5*f+.5*c-2;n.beginPath(),n.setFontSize(c),n.setFillStyle(v.show?e.legend.fontColor:e.legend.hiddenColor),n.fillText(v.name,g,x+y),n.closePath(),n.stroke(),"top"==e.legend.position||"bottom"==e.legend.position?(g+=k(v.name,c,n)+h,v.area[2]=g):(v.area[2]=g+k(v.name,c,n)+h,g-=u+d,x+=f)}}))}}function Gt(t,e,a,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=o({},{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),s={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=i.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);i.customRadius>0&&(l=i.customRadius*e.pix),t=V(t,l,r);var u=i.activeRadius*e.pix;if(i.customColor=b(i.linearType,i.customColor,t,a),t=t.map((function(t){return t._start_+=i.offsetAngle*Math.PI/180,t})),t.forEach((function(t,a){e.tooltip&&e.tooltip.index==a&&(n.beginPath(),n.setFillStyle(c(t.color,i.activeOpacity||.5)),n.moveTo(s.x,s.y),n.arc(s.x,s.y,t._radius_+u,t._start_,t._start_+2*t._proportion_*Math.PI),n.closePath(),n.fill()),n.beginPath(),n.setLineWidth(i.borderWidth*e.pix),n.lineJoin="round",n.setStrokeStyle(i.borderColor);var r,o=t.color;"custom"==i.linearType&&(r=n.createCircularGradient?n.createCircularGradient(s.x,s.y,t._radius_):n.createRadialGradient(s.x,s.y,0,s.x,s.y,t._radius_),r.addColorStop(0,c(i.customColor[t.linearIndex],1)),r.addColorStop(1,c(t.color,1)),o=r);n.setFillStyle(o),n.moveTo(s.x,s.y),n.arc(s.x,s.y,t._radius_,t._start_,t._start_+2*t._proportion_*Math.PI),n.closePath(),n.fill(),1==i.border&&n.stroke()})),"ring"===e.type){var d=.6*l;"number"===typeof i.ringWidth&&i.ringWidth>0&&(d=Math.max(0,l-i.ringWidth*e.pix)),n.beginPath(),n.setFillStyle(i.centerColor),n.moveTo(s.x,s.y),n.arc(s.x,s.y,d,0,2*Math.PI),n.closePath(),n.fill()}if(!1!==e.dataLabel&&1===r){for(var h=!1,f=0,p=t.length;f<p;f++)if(t[f].data>0){h=!0;break}h&&Pt(t,e,a,n,l,s)}return 1===r&&"ring"===e.type&&wt(e,a,n,s),{center:s,radius:l,series:t}}function Jt(t,e,a,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=o({},{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=i.activeRadius*e.pix);var s={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),u=i.minRadius||.5*l;t=$(t,i.type,u,l,r);var d=i.activeRadius*e.pix;if(i.customColor=b(i.linearType,i.customColor,t,a),t=t.map((function(t){return t._start_+=(i.offsetAngle||0)*Math.PI/180,t})),t.forEach((function(t,a){e.tooltip&&e.tooltip.index==a&&(n.beginPath(),n.setFillStyle(c(t.color,i.activeOpacity||.5)),n.moveTo(s.x,s.y),n.arc(s.x,s.y,d+t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),n.closePath(),n.fill()),n.beginPath(),n.setLineWidth(i.borderWidth*e.pix),n.lineJoin="round",n.setStrokeStyle(i.borderColor);var r,o=t.color;"custom"==i.linearType&&(r=n.createCircularGradient?n.createCircularGradient(s.x,s.y,t._radius_):n.createRadialGradient(s.x,s.y,0,s.x,s.y,t._radius_),r.addColorStop(0,c(i.customColor[t.linearIndex],1)),r.addColorStop(1,c(t.color,1)),o=r);n.setFillStyle(o),n.moveTo(s.x,s.y),n.arc(s.x,s.y,t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),n.closePath(),n.fill(),1==i.border&&n.stroke()})),!1!==e.dataLabel&&1===r){for(var h=!1,f=0,p=t.length;f<p;f++)if(t[f].data>0){h=!0;break}h&&Pt(t,e,a,n,l,s)}return{center:s,radius:l,series:t}}function Kt(t,e,a,n){var r,i,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=o({},{startAngle:.75,endAngle:.25,type:"default",width:12,gap:2,linearType:"none",customColor:[]},e.extra.arcbar);t=tt(t,l,s),r=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?i=l.radius:(i=Math.min(r.x,r.y),i-=5*e.pix,i-=l.width/2),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("round"),n.beginPath(),"default"==l.type?n.arc(r.x,r.y,i-(l.width*e.pix+l.gap*e.pix)*u,l.startAngle*Math.PI,l.endAngle*Math.PI,!1):n.arc(r.x,r.y,i-(l.width*e.pix+l.gap*e.pix)*u,0,2*Math.PI,!1),n.stroke();var h=d.color;if("custom"==l.linearType){var f=n.createLinearGradient(r.x-i,r.y,r.x+i,r.y);f.addColorStop(1,c(l.customColor[d.linearIndex],1)),f.addColorStop(0,c(d.color,1)),h=f}n.setLineWidth(l.width*e.pix),n.setStrokeStyle(h),n.setLineCap("round"),n.beginPath(),n.arc(r.x,r.y,i-(l.width*e.pix+l.gap*e.pix)*u,l.startAngle*Math.PI,d._proportion_*Math.PI,!1),n.stroke()}return wt(e,a,n,r),{center:r,radius:i,series:t}}function Xt(t,e,a,n,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,s=o({},{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==s.oldAngle&&(s.oldAngle=s.startAngle),void 0==s.oldData&&(s.oldData=0),t=et(t,s.startAngle,s.endAngle);var l={x:a.width/2,y:a.height/2},u=Math.min(l.x,l.y);u-=5*a.pix,u-=s.width/2;var d=u-s.width,h=0;if("progress"==s.type){var f=u-3*s.width;r.beginPath();var p=r.createLinearGradient(l.x,l.y-f,l.x,l.y+f);p.addColorStop("0",c(e[0].color,.3)),p.addColorStop("1.0",c("#FFFFFF",.1)),r.setFillStyle(p),r.arc(l.x,l.y,f,0,2*Math.PI,!1),r.fill(),r.setLineWidth(s.width),r.setStrokeStyle(c(e[0].color,.3)),r.setLineCap("round"),r.beginPath(),r.arc(l.x,l.y,d,s.startAngle*Math.PI,s.endAngle*Math.PI,!1),r.stroke(),h=s.startAngle-s.endAngle+1;s.splitLine.splitNumber;var g=h/s.splitLine.splitNumber/s.splitLine.childNumber,x=-u-.5*s.width-s.splitLine.fixRadius,m=-u-s.width-s.splitLine.fixRadius+s.splitLine.width;r.save(),r.translate(l.x,l.y),r.rotate((s.startAngle-1)*Math.PI);for(var v=s.splitLine.splitNumber*s.splitLine.childNumber+1,y=e[0].data*i,b=0;b<v;b++)r.beginPath(),y>b/v?r.setStrokeStyle(c(e[0].color,1)):r.setStrokeStyle(c(e[0].color,.3)),r.setLineWidth(3*a.pix),r.moveTo(x,0),r.lineTo(m,0),r.stroke(),r.rotate(g*Math.PI);r.restore(),e=tt(e,s,i),r.setLineWidth(s.width),r.setStrokeStyle(e[0].color),r.setLineCap("round"),r.beginPath(),r.arc(l.x,l.y,d,s.startAngle*Math.PI,e[0]._proportion_*Math.PI,!1),r.stroke();var w=u-2.5*s.width;r.save(),r.translate(l.x,l.y),r.rotate((e[0]._proportion_-1)*Math.PI),r.beginPath(),r.setLineWidth(s.width/3);var k=r.createLinearGradient(0,.6*-w,0,.6*w);k.addColorStop("0",c("#FFFFFF",0)),k.addColorStop("0.5",c(e[0].color,1)),k.addColorStop("1.0",c("#FFFFFF",0)),r.setStrokeStyle(k),r.arc(0,0,w,.85*Math.PI,1.15*Math.PI,!1),r.stroke(),r.beginPath(),r.setLineWidth(1),r.setStrokeStyle(e[0].color),r.setFillStyle(e[0].color),r.moveTo(-w-s.width/3/2,-4),r.lineTo(-w-s.width/3/2-4,0),r.lineTo(-w-s.width/3/2,4),r.lineTo(-w-s.width/3/2,-4),r.stroke(),r.fill(),r.restore()}else{r.setLineWidth(s.width),r.setLineCap("butt");for(var S=0;S<t.length;S++){var A=t[S];r.beginPath(),r.setStrokeStyle(A.color),r.arc(l.x,l.y,u,A._startAngle_*Math.PI,A._endAngle_*Math.PI,!1),r.stroke()}r.save(),h=s.startAngle-s.endAngle+1;var T=h/s.splitLine.splitNumber,P=h/s.splitLine.splitNumber/s.splitLine.childNumber,C=-u-.5*s.width-s.splitLine.fixRadius,_=-u-.5*s.width-s.splitLine.fixRadius+s.splitLine.width,D=-u-.5*s.width-s.splitLine.fixRadius+s.splitLine.childWidth;r.translate(l.x,l.y),r.rotate((s.startAngle-1)*Math.PI);for(var M=0;M<s.splitLine.splitNumber+1;M++)r.beginPath(),r.setStrokeStyle(s.splitLine.color),r.setLineWidth(2*a.pix),r.moveTo(C,0),r.lineTo(_,0),r.stroke(),r.rotate(T*Math.PI);r.restore(),r.save(),r.translate(l.x,l.y),r.rotate((s.startAngle-1)*Math.PI);for(var F=0;F<s.splitLine.splitNumber*s.splitLine.childNumber+1;F++)r.beginPath(),r.setStrokeStyle(s.splitLine.color),r.setLineWidth(1*a.pix),r.moveTo(C,0),r.lineTo(D,0),r.stroke(),r.rotate(P*Math.PI);r.restore(),e=at(e,t,s,i);for(var L=0;L<e.length;L++){var I=e[L];r.save(),r.translate(l.x,l.y),r.rotate((I._proportion_-1)*Math.PI),r.beginPath(),r.setFillStyle(I.color),r.moveTo(s.pointer.width,0),r.lineTo(0,-s.pointer.width/2),r.lineTo(-d,0),r.lineTo(0,s.pointer.width/2),r.lineTo(s.pointer.width,0),r.closePath(),r.fill(),r.beginPath(),r.setFillStyle("#FFFFFF"),r.arc(0,0,s.pointer.width/6,0,2*Math.PI,!1),r.fill(),r.restore()}!1!==a.dataLabel&&At(s,u,l,a,n,r)}return wt(a,n,r,l),1===i&&"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:h}}function Qt(t,e,a,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=o({},{gridColor:"#cccccc",gridType:"radar",opacity:.2,gridCount:3,border:!1,borderWidth:2},e.extra.radar),s=_(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,h=Math.min(u-(C(e.categories,a.fontSize,n)+a.radarLabelTextMargin),d-a.radarLabelTextMargin);h-=a.radarLabelTextMargin*e.pix,n.beginPath(),n.setLineWidth(1*e.pix),n.setStrokeStyle(i.gridColor),s.forEach((function(t){var e=x(h*Math.cos(t),h*Math.sin(t),l);n.moveTo(l.x,l.y),n.lineTo(e.x,e.y)})),n.stroke(),n.closePath();for(var f=function(t){var a={};if(n.beginPath(),n.setLineWidth(1*e.pix),n.setStrokeStyle(i.gridColor),"radar"==i.gridType)s.forEach((function(e,r){var o=x(h/i.gridCount*t*Math.cos(e),h/i.gridCount*t*Math.sin(e),l);0===r?(a=o,n.moveTo(o.x,o.y)):n.lineTo(o.x,o.y)})),n.lineTo(a.x,a.y);else{var r=x(h/i.gridCount*t*Math.cos(1.5),h/i.gridCount*t*Math.sin(1.5),l);n.arc(l.x,l.y,l.y-r.y,0,2*Math.PI,!1)}n.stroke(),n.closePath()},p=1;p<=i.gridCount;p++)f(p);var g=Q(s,l,h,t,e,r);return g.forEach((function(t,a){if(n.beginPath(),n.setLineWidth(i.borderWidth*e.pix),n.setStrokeStyle(t.color),n.setFillStyle(c(t.color,i.opacity)),t.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===i.border&&n.stroke(),n.closePath(),!1!==e.dataPointShape){var r=t.data.map((function(t){return t.position}));bt(r,t.color,t.pointShape,n,e)}})),Tt(s,h,l,e,a,n),!1!==e.dataLabel&&1===r&&(g.forEach((function(t,r){n.beginPath();var i=t.textSize*e.pix||a.fontSize;n.setFontSize(i),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+i+2)):t.position.x<l.x?(n.setTextAlign("right"),n.fillText(t.value,t.position.x-4,t.position.y+i/2-2)):(n.setTextAlign("left"),n.fillText(t.value,t.position.x+4,t.position.y+i/2-2))})),n.closePath(),n.stroke()})),n.setTextAlign("left")),{center:l,radius:h,angleList:s}}function Vt(t,e,a){a=0==a?1:a;for(var n=[],r=0;r<a;r++)n[r]=Math.random();return Math.floor(n.reduce((function(t,e){return t+e}))/a*(e-t))+t}function Zt(t,e,a,n){for(var r=!1,i=0;i<e.length;i++)if(e[i].area){if(!(t[3]<e[i].area[1]||t[0]>e[i].area[2]||t[1]>e[i].area[3]||t[2]<e[i].area[0])){r=!0;break}if(t[0]<0||t[1]<0||t[2]>a||t[3]>n){r=!0;break}r=!1}return r}function $t(t){var e,a={};a.xMin=180,a.xMax=0,a.yMin=90,a.yMax=0;for(var n=0;n<t.length;n++)for(var r=t[n].geometry.coordinates,i=0;i<r.length;i++){e=r[i],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}function te(t,e,a,n,r,i){return{x:(e-a.xMin)*n+r,y:(a.yMax-t)*n+i}}function ee(t,e,a,n,r,i){return{x:(e-r)/n+a.xMin,y:a.yMax-(t-i)/n}}function ae(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 ne(t,e,a){for(var n=0,r=0;r<e.length;r++){var i=e[r][0];1==e.length&&(i=e[r][0]);for(var o=0;o<i.length-1;o++){var s=i[o],c=i[o+1];a&&(s=l(i[o][0],i[o][1]),c=l(i[o+1][0],i[o+1][1])),ae(t,s,c)&&(n+=1)}}return n%2==1}function re(t,e,a,n){var r,i,s=o({},{border:!0,mercator:!1,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},e.extra.map),u=t,d=$t(u);if(s.mercator){var h=l(d.xMax,d.yMax),f=l(d.xMin,d.yMin);d.xMax=h[0],d.yMax=h[1],d.xMin=f[0],d.yMin=f[1]}for(var p=e.width/Math.abs(d.xMax-d.xMin),g=e.height/Math.abs(d.yMax-d.yMin),x=p<g?p:g,m=e.width/2-Math.abs(d.xMax-d.xMin)/2*x,v=e.height/2-Math.abs(d.yMax-d.yMin)/2*x,y=0;y<u.length;y++){n.beginPath(),n.setLineWidth(s.borderWidth*e.pix),n.setStrokeStyle(s.borderColor),n.setFillStyle(c(t[y].color,s.fillOpacity)),e.tooltip&&e.tooltip.index==y&&(n.setStrokeStyle(s.activeBorderColor),n.setFillStyle(c(s.activeFillColor,s.activeFillOpacity)));for(var b=u[y].geometry.coordinates,w=0;w<b.length;w++){r=b[w],1==r.length&&(r=r[0]);for(var S=0;S<r.length;S++){var A=Array(2);A=s.mercator?l(r[S][0],r[S][1]):r[S],i=te(A[1],A[0],d,x,m,v),0===S?(n.beginPath(),n.moveTo(i.x,i.y)):n.lineTo(i.x,i.y)}n.fill(),1==s.border&&n.stroke()}if(1==e.dataLabel){var T=u[y].properties.centroid;if(T){s.mercator&&(T=l(u[y].properties.centroid[0],u[y].properties.centroid[1])),i=te(T[1],T[0],d,x,m,v);var P=u[y].textSize*e.pix||a.fontSize,C=u[y].properties.name;n.beginPath(),n.setFontSize(P),n.setFillStyle(u[y].textColor||e.fontColor),n.fillText(C,i.x-k(C,P,n)/2,i.y+P/2),n.closePath(),n.stroke()}}}e.chartData.mapData={bounds:d,scale:x,xoffset:m,yoffset:v,mercator:s.mercator},Wt(e,a,n,1),n.draw()}function ie(t,e,a){var n=t.series;switch(e){case"normal":for(var r=0;r<n.length;r++){var i=n[r].name,o=n[r].textSize*t.pix,s=k(i,o,a),l=void 0,c=void 0,u=void 0,d=0;while(1){d++,l=Vt(-t.width/2,t.width/2,5)-s/2,c=Vt(-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 h=Zt(u,n,t.width,t.height);if(!h)break;if(1e3==d){u=[-100,-100,-100,-100];break}}n[r].area=u}break;case"vertical":for(var f=function(){return Math.random()>.7},p=0;p<n.length;p++){var g=n[p].name,x=n[p].textSize*t.pix,m=k(g,x,a),v=f(),y=void 0,b=void 0,w=void 0,S=void 0,A=0;while(1){A++;var T=void 0;if(v?(y=Vt(-t.width/2,t.width/2,5)-m/2,b=Vt(-t.height/2,t.height/2,5)+x/2,w=[b-5-m+t.width/2,-y-5+t.height/2,b+5+t.width/2,-y+x+5+t.height/2],S=[t.width-(t.width/2-t.height/2)-(-y+x+5+t.height/2)-5,t.height/2-t.width/2+(b-5-m+t.width/2)-5,t.width-(t.width/2-t.height/2)-(-y+x+5+t.height/2)+x,t.height/2-t.width/2+(b-5-m+t.width/2)+m+5],T=Zt(S,n,t.height,t.width)):(y=Vt(-t.width/2,t.width/2,5)-m/2,b=Vt(-t.height/2,t.height/2,5)+x/2,w=[y-5+t.width/2,b-5-x+t.height/2,y+m+5+t.width/2,b+5+t.height/2],T=Zt(w,n,t.width,t.height)),!T)break;if(1e3==A){w=[-1e3,-1e3,-1e3,-1e3];break}}v?(n[p].area=S,n[p].areav=w):n[p].area=w,n[p].rotate=v}break}return n}function oe(t,e,a,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=o({},{type:"normal",autoColors:!0},e.extra.word);e.chartData.wordCloudData||(e.chartData.wordCloudData=ie(e,i.type,n)),n.beginPath(),n.setFillStyle(e.background),n.rect(0,0,e.width,e.height),n.fill(),n.save();var s=e.chartData.wordCloudData;n.translate(e.width/2,e.height/2);for(var l=0;l<s.length;l++){n.save(),s[l].rotate&&n.rotate(90*Math.PI/180);var c=s[l].name,u=s[l].textSize*e.pix,d=k(c,u,n);n.beginPath(),n.setStrokeStyle(s[l].color),n.setFillStyle(s[l].color),n.setFontSize(u),s[l].rotate?s[l].areav[0]>0&&(e.tooltip&&e.tooltip.index==l?n.strokeText(c,(s[l].areav[0]+5-e.width/2)*r-d*(1-r)/2,(s[l].areav[1]+5+u-e.height/2)*r):n.fillText(c,(s[l].areav[0]+5-e.width/2)*r-d*(1-r)/2,(s[l].areav[1]+5+u-e.height/2)*r)):s[l].area[0]>0&&(e.tooltip&&e.tooltip.index==l?n.strokeText(c,(s[l].area[0]+5-e.width/2)*r-d*(1-r)/2,(s[l].area[1]+5+u-e.height/2)*r):n.fillText(c,(s[l].area[0]+5-e.width/2)*r-d*(1-r)/2,(s[l].area[1]+5+u-e.height/2)*r)),n.stroke(),n.restore()}n.restore()}function se(t,e,a,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=o({},{type:"funnel",activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right",linearType:"none",customColor:[]},e.extra.funnel),s=(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=i.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);if(t=Z(t,d,i.type,s,r),n.save(),n.translate(l.x,l.y),i.customColor=b(i.linearType,i.customColor,t,a),"pyramid"==i.type)for(var h=0;h<t.length;h++){if(h==t.length-1){e.tooltip&&e.tooltip.index==h&&(n.beginPath(),n.setFillStyle(c(t[h].color,i.activeOpacity)),n.moveTo(-u,-s),n.lineTo(-t[h].radius-u,0),n.lineTo(t[h].radius+u,0),n.lineTo(u,-s),n.lineTo(-u,-s),n.closePath(),n.fill()),t[h].funnelArea=[l.x-t[h].radius,l.y-s*(h+1),l.x+t[h].radius,l.y-s*h],n.beginPath(),n.setLineWidth(i.borderWidth*e.pix),n.setStrokeStyle(i.borderColor);var f=c(t[h].color,i.fillOpacity);if("custom"==i.linearType){var p=n.createLinearGradient(t[h].radius,-s,-t[h].radius,-s);p.addColorStop(0,c(t[h].color,i.fillOpacity)),p.addColorStop(.5,c(i.customColor[t[h].linearIndex],i.fillOpacity)),p.addColorStop(1,c(t[h].color,i.fillOpacity)),f=p}n.setFillStyle(f),n.moveTo(0,-s),n.lineTo(-t[h].radius,0),n.lineTo(t[h].radius,0),n.lineTo(0,-s),n.closePath(),n.fill(),1==i.border&&n.stroke()}else{e.tooltip&&e.tooltip.index==h&&(n.beginPath(),n.setFillStyle(c(t[h].color,i.activeOpacity)),n.moveTo(0,0),n.lineTo(-t[h].radius-u,0),n.lineTo(-t[h+1].radius-u,-s),n.lineTo(t[h+1].radius+u,-s),n.lineTo(t[h].radius+u,0),n.lineTo(0,0),n.closePath(),n.fill()),t[h].funnelArea=[l.x-t[h].radius,l.y-s*(h+1),l.x+t[h].radius,l.y-s*h],n.beginPath(),n.setLineWidth(i.borderWidth*e.pix),n.setStrokeStyle(i.borderColor);f=c(t[h].color,i.fillOpacity);if("custom"==i.linearType){p=n.createLinearGradient(t[h].radius,-s,-t[h].radius,-s);p.addColorStop(0,c(t[h].color,i.fillOpacity)),p.addColorStop(.5,c(i.customColor[t[h].linearIndex],i.fillOpacity)),p.addColorStop(1,c(t[h].color,i.fillOpacity)),f=p}n.setFillStyle(f),n.moveTo(0,0),n.lineTo(-t[h].radius,0),n.lineTo(-t[h+1].radius,-s),n.lineTo(t[h+1].radius,-s),n.lineTo(t[h].radius,0),n.lineTo(0,0),n.closePath(),n.fill(),1==i.border&&n.stroke()}n.translate(0,-s)}else for(var g=0;g<t.length;g++){if(0==g){e.tooltip&&e.tooltip.index==g&&(n.beginPath(),n.setFillStyle(c(t[g].color,i.activeOpacity)),n.moveTo(-u,0),n.lineTo(-t[g].radius-u,-s),n.lineTo(t[g].radius+u,-s),n.lineTo(u,0),n.lineTo(-u,0),n.closePath(),n.fill()),t[g].funnelArea=[l.x-t[g].radius,l.y-s,l.x+t[g].radius,l.y],n.beginPath(),n.setLineWidth(i.borderWidth*e.pix),n.setStrokeStyle(i.borderColor);f=c(t[g].color,i.fillOpacity);if("custom"==i.linearType){p=n.createLinearGradient(t[g].radius,-s,-t[g].radius,-s);p.addColorStop(0,c(t[g].color,i.fillOpacity)),p.addColorStop(.5,c(i.customColor[t[g].linearIndex],i.fillOpacity)),p.addColorStop(1,c(t[g].color,i.fillOpacity)),f=p}n.setFillStyle(f),n.moveTo(0,0),n.lineTo(-t[g].radius,-s),n.lineTo(t[g].radius,-s),n.lineTo(0,0),n.closePath(),n.fill(),1==i.border&&n.stroke()}else{e.tooltip&&e.tooltip.index==g&&(n.beginPath(),n.setFillStyle(c(t[g].color,i.activeOpacity)),n.moveTo(0,0),n.lineTo(-t[g-1].radius-u,0),n.lineTo(-t[g].radius-u,-s),n.lineTo(t[g].radius+u,-s),n.lineTo(t[g-1].radius+u,0),n.lineTo(0,0),n.closePath(),n.fill()),t[g].funnelArea=[l.x-t[g].radius,l.y-s*(g+1),l.x+t[g].radius,l.y-s*g],n.beginPath(),n.setLineWidth(i.borderWidth*e.pix),n.setStrokeStyle(i.borderColor);f=c(t[g].color,i.fillOpacity);if("custom"==i.linearType){p=n.createLinearGradient(t[g].radius,-s,-t[g].radius,-s);p.addColorStop(0,c(t[g].color,i.fillOpacity)),p.addColorStop(.5,c(i.customColor[t[g].linearIndex],i.fillOpacity)),p.addColorStop(1,c(t[g].color,i.fillOpacity)),f=p}n.setFillStyle(f),n.moveTo(0,0),n.lineTo(-t[g-1].radius,0),n.lineTo(-t[g].radius,-s),n.lineTo(t[g].radius,-s),n.lineTo(t[g-1].radius,0),n.lineTo(0,0),n.closePath(),n.fill(),1==i.border&&n.stroke()}n.translate(0,-s)}return n.restore(),!1!==e.dataLabel&&1===r&&le(t,e,n,s,i.labelAlign,u,l),{center:l,radius:d,series:t}}function le(t,e,a,n,r,i,o){for(var l=0;l<t.length;l++){var c=t[l],u=void 0,d=void 0,h=void 0,f=void 0,p=c.formatter?c.formatter(c,l,t):s.toFixed(100*c._proportion_)+"%";"right"==r?(u="pyramid"===e.extra.funnel.type?l==t.length-1?(c.funnelArea[2]+o.x)/2:(c.funnelArea[2]+t[l+1].funnelArea[2])/2:0==l?(c.funnelArea[2]+o.x)/2:(c.funnelArea[2]+t[l-1].funnelArea[2])/2,d=u+2*i,h=c.funnelArea[1]+n/2,f=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,h),a.lineTo(d,h),a.stroke(),a.closePath(),a.beginPath(),a.moveTo(d,h),a.arc(d,h,2,0,2*Math.PI),a.closePath(),a.fill(),a.beginPath(),a.setFontSize(f),a.setFillStyle(c.textColor||e.fontColor),a.fillText(p,d+5,h+f/2-2),a.closePath(),a.stroke(),a.closePath()):(u="pyramid"===e.extra.funnel.type?l==t.length-1?(c.funnelArea[0]+o.x)/2:(c.funnelArea[0]+t[l+1].funnelArea[0])/2:0==l?(c.funnelArea[0]+o.x)/2:(c.funnelArea[0]+t[l-1].funnelArea[0])/2,d=u-2*i,h=c.funnelArea[1]+n/2,f=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,h),a.lineTo(d,h),a.stroke(),a.closePath(),a.beginPath(),a.moveTo(d,h),a.arc(d,h,2,0,2*Math.PI),a.closePath(),a.fill(),a.beginPath(),a.setFontSize(f),a.setFillStyle(c.textColor||e.fontColor),a.fillText(p,d-5-k(p,f,a),h+f/2-2),a.closePath(),a.stroke(),a.closePath())}}function ce(t,e){e.draw()}var ue={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 de(t){this.isStop=!1,t.duration="undefined"===typeof t.duration?1e3:t.duration,t.timing=t.timing||"easeInOut";var e=17;function a(){return"undefined"!==typeof setTimeout?function(t,e){setTimeout((function(){var e=+new Date;t(e)}),e)}:"undefined"!==typeof requestAnimationFrame?requestAnimationFrame:function(t){t(null)}}var n=a(),r=null,i=function(a){if(null===a||!0===this.isStop)return t.onProcess&&t.onProcess(1),void(t.onAnimationFinish&&t.onAnimationFinish());if(null===r&&(r=a),a-r<t.duration){var o=(a-r)/t.duration,s=ue[t.timing];o=s(o),t.onProcess&&t.onProcess(o),n(i,e)}else t.onProcess&&t.onProcess(1),t.onAnimationFinish&&t.onAnimationFinish()};i=i.bind(this),n(i,e)}function he(t,e,a,n){var r=this,i=e.series;"pie"!==t&&"ring"!==t&&"rose"!==t&&"funnel"!==t||(i=v(i,e,a));var s=e.categories;i=y(i,e,a);var l=e.animation?e.duration:0;r.animationInstance&&r.animationInstance.stop();var c=null;if("candle"==t){var u=o({},e.extra.candle.average);u.show?(c=d(u.day,u.name,u.color,i[0].data),c=y(c,e,a),e.seriesMA=c):c=e.seriesMA?e.seriesMA=y(e.seriesMA,e,a):i}else c=i;e._series_=i=L(i),e.area=new Array(4);for(var h=0;h<4;h++)e.area[h]=e.padding[h]*e.pix;var f=G(c,e,a,e.chartData,n),p=f.area.wholeHeight,g=f.area.wholeWidth;switch(e.legend.position){case"top":e.area[0]+=p;break;case"bottom":e.area[2]+=p;break;case"left":e.area[3]+=g;break;case"right":e.area[1]+=g;break}var x={},m=0;if("line"===e.type||"column"===e.type||"area"===e.type||"mix"===e.type||"candle"===e.type||"scatter"===e.type||"bubble"===e.type||"bar"===e.type){if(x=xt(i,e,a,n),m=x.yAxisWidth,e.yAxis.showTitle){for(var b=0,w=0;w<e.yAxis.data.length;w++)b=Math.max(b,e.yAxis.data[w].titleFontSize?e.yAxis.data[w].titleFontSize*e.pix:a.fontSize);e.area[0]+=b}for(var k=0,S=0,A=0;A<m.length;A++)"left"==m[A].position?(e.area[3]+=S>0?m[A].width+e.yAxis.padding*e.pix:m[A].width,S+=1):"right"==m[A].position&&(e.area[1]+=k>0?m[A].width+e.yAxis.padding*e.pix:m[A].width,k+=1)}else a.yAxisWidth=m;if(e.chartData.yAxisData=x,e.categories&&e.categories.length&&"radar"!==e.type&&"gauge"!==e.type&&"bar"!==e.type){e.chartData.xAxisData=ct(e.categories,e,a);var T=J(e.categories,e,a,e.chartData.xAxisData.eachSpacing,n),P=T.xAxisHeight,C=T.angle;a.xAxisHeight=P,a._xAxisTextAngle_=C,e.area[2]+=P,e.chartData.categoriesData=T}else if("line"===e.type||"area"===e.type||"scatter"===e.type||"bubble"===e.type||"bar"===e.type){e.chartData.xAxisData=X(i,e,a,n),s=e.chartData.xAxisData.rangesFormat;var _=J(s,e,a,e.chartData.xAxisData.eachSpacing,n),D=_.xAxisHeight,M=_.angle;a.xAxisHeight=D,a._xAxisTextAngle_=M,e.area[2]+=D,e.chartData.categoriesData=_}else e.chartData.xAxisData={xAxisPoints:[]};if(e.enableScroll&&"right"==e.xAxis.scrollAlign&&void 0===e._scrollDistance_){var F=0,I=e.chartData.xAxisData.xAxisPoints,O=e.chartData.xAxisData.startX,E=e.chartData.xAxisData.endX,R=e.chartData.xAxisData.eachSpacing,B=R*(I.length-1),z=E-O;F=z-B,r.scrollOption={currentOffset:F,startTouchX:F,distance:0,lastMoveTime:0},e._scrollDistance_=F}switch("pie"!==t&&"ring"!==t&&"rose"!==t||(a._pieTextMaxLength_=!1===e.dataLabel?0:nt(c,a,n,e)),t){case"word":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),oe(i,e,a,n,t),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"map":n.clearRect(0,0,e.width,e.height),re(i,e,a,n);break;case"funnel":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),e.chartData.funnelData=se(i,e,a,n,t),Yt(e.series,e,a,n,e.chartData),Wt(e,a,n,t),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"line":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),qt(s,e,a,n),jt(s,e,a,n);var r=Ut(i,e,a,n,t),o=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ht(i,e,a,n),!1!==e.enableMarkLine&&1===t&&_t(e,a,n),Yt(e.series,e,a,n,e.chartData),Wt(e,a,n,t,c,o),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"scatter":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),qt(s,e,a,n),jt(s,e,a,n);var r=Bt(i,e,a,n,t),o=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ht(i,e,a,n),!1!==e.enableMarkLine&&1===t&&_t(e,a,n),Yt(e.series,e,a,n,e.chartData),Wt(e,a,n,t,c,o),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"bubble":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),qt(s,e,a,n),jt(s,e,a,n);var r=zt(i,e,a,n,t),o=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ht(i,e,a,n),!1!==e.enableMarkLine&&1===t&&_t(e,a,n),Yt(e.series,e,a,n,e.chartData),Wt(e,a,n,t,c,o),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"mix":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),qt(s,e,a,n),jt(s,e,a,n);var r=Nt(i,e,a,n,t),o=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ht(i,e,a,n),!1!==e.enableMarkLine&&1===t&&_t(e,a,n),Yt(e.series,e,a,n,e.chartData),Wt(e,a,n,t,c,o),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"column":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),qt(s,e,a,n),jt(s,e,a,n);var r=It(i,e,a,n,t),o=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ht(i,e,a,n),!1!==e.enableMarkLine&&1===t&&_t(e,a,n),Yt(e.series,e,a,n,e.chartData),Wt(e,a,n,t,c,o),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"bar":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),jt(s,e,a,n);var r=Ot(i,e,a,n,t),o=r.yAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.yAxisPoints=o,e.chartData.xAxisPoints=e.chartData.xAxisData.xAxisPoints,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ht(i,e,a,n),!1!==e.enableMarkLine&&1===t&&_t(e,a,n),Yt(e.series,e,a,n,e.chartData),Wt(e,a,n,t,c,o),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"area":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),qt(s,e,a,n),jt(s,e,a,n);var r=Rt(i,e,a,n,t),o=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ht(i,e,a,n),!1!==e.enableMarkLine&&1===t&&_t(e,a,n),Yt(e.series,e,a,n,e.chartData),Wt(e,a,n,t,c,o),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"ring":case"pie":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),e.chartData.pieData=Gt(i,e,a,n,t),Yt(e.series,e,a,n,e.chartData),Wt(e,a,n,t),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"rose":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),e.chartData.pieData=Jt(i,e,a,n,t),Yt(e.series,e,a,n,e.chartData),Wt(e,a,n,t),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"radar":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),e.chartData.radarData=Qt(i,e,a,n,t),Yt(e.series,e,a,n,e.chartData),Wt(e,a,n,t),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),e.chartData.arcbarData=Kt(i,e,a,n,t),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),e.chartData.gaugeData=Xt(s,i,e,a,n,t),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"candle":this.animationInstance=new de({timing:e.timing,duration:l,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&yt(n,e),qt(s,e,a,n),jt(s,e,a,n);var r=Et(i,c,e,a,n,t),o=r.xAxisPoints,l=r.calPoints,u=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=l,e.chartData.eachSpacing=u,Ht(i,e,a,n),!1!==e.enableMarkLine&&1===t&&_t(e,a,n),Yt(c||e.series,e,a,n,e.chartData),Wt(e,a,n,t,u,o),ce(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break}}function fe(){this.events={}}de.prototype.stop=function(){this.isStop=!0},fe.prototype.addEventListener=function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},fe.prototype.delEventListener=function(t){this.events[t]=[]},fe.prototype.trigger=function(){for(var t=arguments.length,e=Array(t),a=0;a<t;a++)e[a]=arguments[a];var n=e[0],r=e.slice(1);this.events[n]&&this.events[n].forEach((function(t){try{t.apply(null,r)}catch(e){}}))};var pe=function(t){t.pix=t.pixelRatio?t.pixelRatio:1,t.fontSize=t.fontSize?t.fontSize:13,t.fontColor=t.fontColor?t.fontColor:i.fontColor,""!=t.background&&"none"!=t.background||(t.background="#FFFFFF"),t.title=o({},t.title),t.subtitle=o({},t.subtitle),t.duration=t.duration?t.duration:1e3,t.yAxis=o({},{data:[],showTitle:!1,disabled:!1,disableGrid:!1,splitNumber:5,gridType:"solid",dashLength:4*t.pix,gridColor:"#cccccc",padding:10,fontColor:"#666666"},t.yAxis),t.xAxis=o({},{rotateLabel:!1,disabled:!1,disableGrid:!1,splitNumber:5,calibration:!1,gridType:"solid",dashLength:4,scrollAlign:"left",boundaryGap:"center",axisLine:!0,axisLineColor:"#cccccc"},t.xAxis),t.xAxis.scrollPosition=t.xAxis.scrollAlign,t.legend=o({},{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=o({},t.extra),t.rotate=!!t.rotate,t.animation=!!t.animation,t.rotate=!!t.rotate,t.canvas2d=!!t.canvas2d;var e=JSON.parse(JSON.stringify(i));if(e.color=t.color?t.color:e.color,e.yAxisTitleWidth=!0!==t.yAxis.disabled&&t.yAxis.title?e.yAxisTitleWidth:0,"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.yAxisSplit=t.yAxis.splitNumber?t.yAxis.splitNumber:i.yAxisSplit,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=i.yAxisWidth*t.pix,e.xAxisHeight=i.xAxisHeight*t.pix,t.enableScroll&&t.xAxis.scrollShow&&(e.xAxisHeight+=6*t.pix),e.xAxisLineHeight=i.xAxisLineHeight*t.pix,e.fontSize=t.fontSize*t.pix,e.titleFontSize=i.titleFontSize*t.pix,e.subtitleFontSize=i.subtitleFontSize*t.pix,e.toolTipPadding=i.toolTipPadding*t.pix,e.toolTipLineHeight=i.toolTipLineHeight*t.pix,e.columePadding=i.columePadding*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.draw=function(){}),this.context.setLineDash||(this.context.setLineDash=function(t){}),t.chartData={},this.uevent=new fe,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0},this.opts=t,this.config=e,he.call(this,t.type,t,e,this.context)};pe.prototype.updateData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.opts=o({},this.opts,t),this.opts.updateData=!0;var e=t.scrollPosition||"current";switch(e){case"current":break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var a=xt(this.opts.series,this.opts,this.config,this.context),n=a.yAxisWidth;this.config.yAxisWidth=n;var r=0,i=ct(this.opts.categories,this.opts,this.config),s=i.xAxisPoints,l=i.startX,c=i.endX,u=i.eachSpacing,d=u*(s.length-1),h=c-l;r=h-d,this.scrollOption={currentOffset:r,startTouchX:r,distance:0,lastMoveTime:0},this.opts._scrollDistance_=r;break}he.call(this,this.opts.type,this.opts,this.config,this.context)},pe.prototype.zoom=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var a=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=e.itemCount;var n=xt(this.opts.series,this.opts,this.config,this.context),r=n.yAxisWidth;this.config.yAxisWidth=r;var i=0,o=ct(this.opts.categories,this.opts,this.config),s=o.xAxisPoints,l=o.startX,c=o.endX,u=o.eachSpacing,d=u*a,h=c-l,f=h-u*(s.length-1);i=h/2-d,i>0&&(i=0),i<f&&(i=f),this.scrollOption={currentOffset:i,startTouchX:i,distance:0,lastMoveTime:0},this.opts._scrollDistance_=i,he.call(this,this.opts.type,this.opts,this.config,this.context)}else t.log("[uCharts] 请启用滚动条后使用")},pe.prototype.stopAnimation=function(){this.animationInstance&&this.animationInstance.stop()},pe.prototype.addEventListener=function(t,e){this.uevent.addEventListener(t,e)},pe.prototype.delEventListener=function(t){this.uevent.delEventListener(t)},pe.prototype.getCurrentDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var a=T(e,this.opts,t);return"pie"===this.opts.type||"ring"===this.opts.type?q({x:a.x,y:a.y},this.opts.chartData.pieData,this.opts):"rose"===this.opts.type?j({x:a.x,y:a.y},this.opts.chartData.pieData,this.opts):"radar"===this.opts.type?z({x:a.x,y:a.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?U({x:a.x,y:a.y},this.opts.chartData.funnelData):"map"===this.opts.type?W({x:a.x,y:a.y},this.opts):"word"===this.opts.type?N({x:a.x,y:a.y},this.opts.chartData.wordCloudData):"bar"===this.opts.type?O({x:a.x,y:a.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset)):I({x:a.x,y:a.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset))}return-1},pe.prototype.getLegendDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var a=T(e,this.opts,t);return E({x:a.x,y:a.y},this.opts.chartData.legendData)}return-1},pe.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){T(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,he.call(this,this.opts.type,this.opts,this.config,this.context))}},pe.prototype.showToolTip=function(e){var a=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;r=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],r||t.log("[uCharts] 未获取到event坐标信息");var i=T(r,this.opts,e),s=this.scrollOption.currentOffset,l=o({},this.opts,{_scrollDistance_:s,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type||"scatter"===this.opts.type||"bubble"===this.opts.type){var c=this.getCurrentDataIndex(e),u=void 0==n.index?c.index:n.index;if(u>-1||u.length>0){var d=P(this.opts.series,u,c.group);if(0!==d.length){var h=D(d,this.opts,u,c.group,this.opts.categories,n),f=h.textList,p=h.offset;p.y=i.y,l.tooltip={textList:void 0!==n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}he.call(this,l.type,l,this.config,this.context)}if("bar"===this.opts.type){c=this.getCurrentDataIndex(e),u=void 0==n.index?c.index:n.index;if(u>-1||u.length>0){d=P(this.opts.series,u,c.group);if(0!==d.length){h=D(d,this.opts,u,c.group,this.opts.categories,n),f=h.textList,p=h.offset;p.x=i.x,l.tooltip={textList:void 0!==n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}he.call(this,l.type,l,this.config,this.context)}if("mix"===this.opts.type){c=this.getCurrentDataIndex(e),u=void 0==n.index?c.index:n.index;if(u>-1){s=this.scrollOption.currentOffset,l=o({},this.opts,{_scrollDistance_:s,animation:!1}),d=P(this.opts.series,u);if(0!==d.length){var g=M(d,this.opts,u,this.opts.categories,n);f=g.textList,p=g.offset;p.y=i.y,l.tooltip={textList:n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}he.call(this,l.type,l,this.config,this.context)}if("candle"===this.opts.type){c=this.getCurrentDataIndex(e),u=void 0==n.index?c.index:n.index;if(u>-1){s=this.scrollOption.currentOffset,l=o({},this.opts,{_scrollDistance_:s,animation:!1}),d=P(this.opts.series,u);if(0!==d.length){h=F(this.opts.series[0].data,d,this.opts,u,this.opts.categories,this.opts.extra.candle,n),f=h.textList,p=h.offset;p.y=i.y,l.tooltip={textList:n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}he.call(this,l.type,l,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(u>-1){l=o({},this.opts,{animation:!1}),d=o({},l._series_[u]),f=[{text:n.formatter?n.formatter(d,void 0,u,l):d.name+": "+d.data,color:d.color}],p={x:i.x,y:i.y};l.tooltip={textList:n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}he.call(this,l.type,l,this.config,this.context)}if("map"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(u>-1){l=o({},this.opts,{animation:!1}),d=o({},this.opts.series[u]);d.name=d.properties.name;f=[{text:n.formatter?n.formatter(d,void 0,u,this.opts):d.name,color:d.color}],p={x:i.x,y:i.y};l.tooltip={textList:n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}l.updateData=!1,he.call(this,l.type,l,this.config,this.context)}if("word"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(u>-1){l=o({},this.opts,{animation:!1}),d=o({},this.opts.series[u]),f=[{text:n.formatter?n.formatter(d,void 0,u,this.opts):d.name,color:d.color}],p={x:i.x,y:i.y};l.tooltip={textList:n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}l.updateData=!1,he.call(this,l.type,l,this.config,this.context)}if("radar"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(u>-1){l=o({},this.opts,{animation:!1}),d=P(this.opts.series,u);if(0!==d.length){f=d.map((function(t){return{text:n.formatter?n.formatter(t,a.opts.categories[u],u,a.opts):t.name+": "+t.data,color:t.color}})),p={x:i.x,y:i.y};l.tooltip={textList:n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}he.call(this,l.type,l,this.config,this.context)}},pe.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};var e=o({},this.opts,{_scrollDistance_:t,animation:!1});he.call(this,this.opts.type,e,this.config,this.context)},pe.prototype.scrollStart=function(t){var e=null;e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var a=T(e,this.opts,t);e&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=a.x)},pe.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))){this.scrollOption.lastMoveTime=a;var r=null;if(r=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],r&&!0===this.opts.enableScroll){var i,s=T(r,this.opts,t);i=s.x-this.scrollOption.startTouchX;var l=this.scrollOption.currentOffset,c=h(this,l+i,this.opts.chartData,this.config,this.opts);this.scrollOption.distance=i=c-l;var u=o({},this.opts,{_scrollDistance_:l+i,animation:!1});return this.opts=u,he.call(this,u.type,u,this.config,this.context),l+i}}},pe.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}},"object"===r(e)&&"object"===r(e.exports)&&(e.exports=pe)}).call(this,a("5a52")["default"],a("62e4")(t))},af206:function(t,e,a){"use strict";a.r(e);var n=a("7763"),r=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},b380:function(t,e,a){"use strict";function n(t,a){return e.default=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},n(t,a)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n,a("131a")},b6de:function(t,e,a){"use strict";a.r(e);var n=a("9ce6"),r=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},b85c:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=i,a("a4d3"),a("e01a"),a("d3b7"),a("d28b"),a("3ca3"),a("ddb0");var n=r(a("06c5"));function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){var a;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=(0,n.default)(t))||e&&t&&"number"===typeof t.length){a&&(t=a);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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=t[Symbol.iterator]()},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}}}}},baa5:function(t,e,a){var n=a("23e7"),r=a("e58c");n({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},bd37:function(t,e,a){"use strict";a.r(e);var n=a("68bf0"),r=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},be16:function(t,e,a){"use strict";var n=a("42d4"),r=a.n(n);r.a},be39:function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"container loading1"},[a("v-uni-view",{staticClass:"shape shape1"}),a("v-uni-view",{staticClass:"shape shape2"}),a("v-uni-view",{staticClass:"shape shape3"}),a("v-uni-view",{staticClass:"shape shape4"})],1)},i=[]},bf19:function(t,e,a){"use strict";var n=a("23e7");n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},c135:function(t,e){function a(t){if(Array.isArray(t))return t}t.exports=a},c240:function(t,e){function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}t.exports=a},c5af:function(t,e,a){var n=a("cff9");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("4f06").default;r("0a33839e",n,!0,{sourceMap:!1,shadowMode:!1})},cb29:function(t,e,a){var n=a("23e7"),r=a("81d5"),i=a("44d2");n({target:"Array",proto:!0},{fill:r}),i("fill")},cf48:function(t,e,a){"use strict";var n=a("23c1"),r=a.n(n);r.a},cff9:function(t,e,a){var n=a("4bad");e=n(!1),e.push([t.i,".container[data-v-e14678f8]{width:30px;height:30px;position:relative}.container.loading2[data-v-e14678f8]{-webkit-transform:rotate(10deg);transform:rotate(10deg)}.container.loading2 .shape[data-v-e14678f8]{border-radius:5px}.container.loading2[data-v-e14678f8]{-webkit-animation:rotation 1s infinite;animation:rotation 1s infinite}.container .shape[data-v-e14678f8]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-e14678f8]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-e14678f8]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-e14678f8]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-e14678f8]{bottom:0;right:0;background-color:#e66}.loading2 .shape1[data-v-e14678f8]{-webkit-animation:animation2shape1-data-v-e14678f8 .5s ease 0s infinite alternate;animation:animation2shape1-data-v-e14678f8 .5s ease 0s infinite alternate}@-webkit-keyframes animation2shape1-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(20px,20px);transform:translate(20px,20px)}}@keyframes animation2shape1-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(20px,20px);transform:translate(20px,20px)}}.loading2 .shape2[data-v-e14678f8]{-webkit-animation:animation2shape2-data-v-e14678f8 .5s ease 0s infinite alternate;animation:animation2shape2-data-v-e14678f8 .5s ease 0s infinite alternate}@-webkit-keyframes animation2shape2-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-20px,20px);transform:translate(-20px,20px)}}@keyframes animation2shape2-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-20px,20px);transform:translate(-20px,20px)}}.loading2 .shape3[data-v-e14678f8]{-webkit-animation:animation2shape3-data-v-e14678f8 .5s ease 0s infinite alternate;animation:animation2shape3-data-v-e14678f8 .5s ease 0s infinite alternate}@-webkit-keyframes animation2shape3-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(20px,-20px);transform:translate(20px,-20px)}}@keyframes animation2shape3-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(20px,-20px);transform:translate(20px,-20px)}}.loading2 .shape4[data-v-e14678f8]{-webkit-animation:animation2shape4-data-v-e14678f8 .5s ease 0s infinite alternate;animation:animation2shape4-data-v-e14678f8 .5s ease 0s infinite alternate}@-webkit-keyframes animation2shape4-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-20px,-20px);transform:translate(-20px,-20px)}}@keyframes animation2shape4-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-20px,-20px);transform:translate(-20px,-20px)}}",""]),t.exports=e},d00f:function(t,e,a){var n=a("4bad");e=n(!1),e.push([t.i,".container[data-v-44c31eef]{width:30px;height:30px;position:relative}.container.loading5 .shape[data-v-44c31eef]{width:15px;height:15px}.container .shape[data-v-44c31eef]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-44c31eef]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-44c31eef]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-44c31eef]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-44c31eef]{bottom:0;right:0;background-color:#e66}.loading5 .shape1[data-v-44c31eef]{animation:animation5shape1-data-v-44c31eef 2s ease 0s infinite reverse}@-webkit-keyframes animation5shape1-data-v-44c31eef{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-44c31eef{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-44c31eef]{animation:animation5shape2-data-v-44c31eef 2s ease 0s infinite reverse}@-webkit-keyframes animation5shape2-data-v-44c31eef{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-44c31eef{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-44c31eef]{animation:animation5shape3-data-v-44c31eef 2s ease 0s infinite reverse}@-webkit-keyframes animation5shape3-data-v-44c31eef{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-44c31eef{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-44c31eef]{animation:animation5shape4-data-v-44c31eef 2s ease 0s infinite reverse}@-webkit-keyframes animation5shape4-data-v-44c31eef{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-44c31eef{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},d90c:function(t,e,a){var n=a("4bad");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */.u-swiper-wrap[data-v-8ef7071a]{overflow:visible!important}.u-swiper-wrap uni-swiper[data-v-8ef7071a]{border-radius:%?20?%;overflow:hidden;-webkit-transform:translateY(0);transform:translateY(0);box-shadow:%?0?% %?40?% %?40?% %?-30?% grey}.u-swiper-wrap .u-swiper-indicator[data-v-8ef7071a]{bottom:%?-23?%!important}.u-swiper-wrap .u-swiper-indicator .u-indicator-item-rect[data-v-8ef7071a]{border-radius:%?2?%;height:%?4?%;width:%?20?%}.u-swiper-wrap .u-swiper-indicator .u-indicator-item-rect.u-indicator-item-rect-active[data-v-8ef7071a]{width:%?50?%;background:#be0000}.u-input__textarea[data-v-8ef7071a]{padding:%?0?%!important}.u-list-item[data-v-8ef7071a]{margin-left:%?0?%!important;width:%?100?%!important;height:%?100?%!important}.u-add-tips[data-v-8ef7071a]{margin-top:%?0?%!important}.custom-list-item[data-v-8ef7071a]{padding:%?0?% %?30?%}\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.page[data-v-8ef7071a]{padding:%?30?% %?0?%;padding-bottom:%?200?%}.radar-chart-view[data-v-8ef7071a]{height:%?600?%}',""]),t.exports=e},d919:function(t,e,a){var n=a("6a05");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("4f06").default;r("1843e290",n,!0,{sourceMap:!1,shadowMode:!1})},d967:function(t,e,a){"use strict";function n(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n,a("4ae1"),a("d3b7")},da36:function(t,e,a){var n=a("92dc");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("4f06").default;r("7d11d290",n,!0,{sourceMap:!1,shadowMode:!1})},dde0:function(t,e,a){var n=a("d00f");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("4f06").default;r("1910049e",n,!0,{sourceMap:!1,shadowMode:!1})},e00a:function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"container loading3"},[a("v-uni-view",{staticClass:"shape shape1"}),a("v-uni-view",{staticClass:"shape shape2"}),a("v-uni-view",{staticClass:"shape shape3"}),a("v-uni-view",{staticClass:"shape shape4"})],1)},i=[]},e438:function(t,e,a){"use strict";a.r(e);var n=a("9cb7"),r=a("b6de");for(var i in r)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(i);var o,s=a("f0c5"),l=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"6dfcfdcc",null,!1,n["a"],o);e["default"]=l.exports},e5ed:function(t,e,a){"use strict";var n=a("00c5"),r=a.n(n);r.a},e7b3:function(t,e,a){var n=a("9687");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=a("4f06").default;r("1d1cd571",n,!0,{sourceMap:!1,shadowMode:!1})},eab1:function(t,e,a){"use strict";a.r(e);var n=a("1e10"),r=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},ecd6:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={appid:""};e.default=n},ed8a:function(t,e,a){"use strict";a.r(e);var n=a("a0d5"),r=a("53fc");for(var i in r)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(i);var o=a("72b3");for(var i in o)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return o[t]}))}(i);a("100a");var s=a("f0c5");r["default"].__module="rdcharts";var l=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"1b108cc9",null,!1,n["a"],r["default"]);e["default"]=l.exports},f4b3:function(t,e,a){"use strict";var n=a("23e7"),r=a("d039"),i=a("7b0b"),o=a("c04e"),s=r((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));n({target:"Date",proto:!0,forced:s},{toJSON:function(t){var e=i(this),a=o(e);return"number"!=typeof a||isFinite(a)?e.toISOString():null}})},f681:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"loading5",data:function(){return{}}};e.default=n},f6e7:function(t,e,a){var n=a("4bad");e=n(!1),e.push([t.i,".container[data-v-38a0d81e]{width:30px;height:30px;position:relative}.container.loading6[data-v-38a0d81e]{-webkit-animation:rotation 1s infinite;animation:rotation 1s infinite}.container.loading6 .shape[data-v-38a0d81e]{width:12px;height:12px;border-radius:2px}.container .shape[data-v-38a0d81e]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-38a0d81e]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-38a0d81e]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-38a0d81e]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-38a0d81e]{bottom:0;right:0;background-color:#e66}.loading6 .shape1[data-v-38a0d81e]{-webkit-animation:animation6shape1-data-v-38a0d81e 2s linear 0s infinite normal;animation:animation6shape1-data-v-38a0d81e 2s linear 0s infinite normal}@-webkit-keyframes animation6shape1-data-v-38a0d81e{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-38a0d81e{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-38a0d81e]{-webkit-animation:animation6shape2-data-v-38a0d81e 2s linear 0s infinite normal;animation:animation6shape2-data-v-38a0d81e 2s linear 0s infinite normal}@-webkit-keyframes animation6shape2-data-v-38a0d81e{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-38a0d81e{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-38a0d81e]{-webkit-animation:animation6shape3-data-v-38a0d81e 2s linear 0s infinite normal;animation:animation6shape3-data-v-38a0d81e 2s linear 0s infinite normal}@-webkit-keyframes animation6shape3-data-v-38a0d81e{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-38a0d81e{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-38a0d81e]{-webkit-animation:animation6shape4-data-v-38a0d81e 2s linear 0s infinite normal;animation:animation6shape4-data-v-38a0d81e 2s linear 0s infinite normal}@-webkit-keyframes animation6shape4-data-v-38a0d81e{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-38a0d81e{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},f88e:function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"chartsview"},[a("v-uni-view",{staticClass:"charts-error"}),a("v-uni-view",{staticClass:"charts-font"},[t._v(t._s(null==t.errorMessage?"请点击重试":t.errorMessage))])],1)},i=[]},fa95:function(t,e,a){"use strict";function n(t){return-1!==Function.toString.call(t).indexOf("[native code]")}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n,a("c975"),a("d3b7"),a("25f0")},fdc7:function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"container loading6"},[a("v-uni-view",{staticClass:"shape shape1"}),a("v-uni-view",{staticClass:"shape shape2"}),a("v-uni-view",{staticClass:"shape shape3"}),a("v-uni-view",{staticClass:"shape shape4"})],1)},i=[]},fec0:function(t,e,a){"use strict";a.r(e);var n=a("2ae4"),r=a("79ec");for(var i in r)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(i);a("4cfe");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"44c31eef",null,!1,n["a"],o);e["default"]=l.exports},ff72:function(t,e){var a=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"];t.exports={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:a},column:{color:a,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:a,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:a,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:a,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:a,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:a,title:{text:""},tooltip:{trigger:"item"},legend:{top:"bottom"},seriesTemplate:{name:"",type:"pie",data:[],radius:"55%",center:["50%","50%"],rosetype:"area"}},funnel:{color:a,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:a,tooltip:{formatter:"{a} <br/>{b} : {c}%"},seriesTemplate:{name:"业务指标",type:"gauge",detail:{formatter:"{value}%"},data:[{value:50,name:"完成率"}]}},candle:{xAxis:{data:[]},yAxis:{},color:a,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:[]}}}}}]);
|