pages-index-index.670c03a6.js 118 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"0058":function(t,e,i){"use strict";var a=i("42c3"),o=i.n(a);o.a},"02a4":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".uni-grid-wrap[data-v-716a2b55]{\ndisplay:-webkit-box;display:-webkit-flex;display:flex;\n-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;\nwidth:100%\n}.uni-grid[data-v-716a2b55]{\ndisplay:-webkit-box;display:-webkit-flex;display:flex;\n-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;flex-wrap:wrap}.uni-grid--border[data-v-716a2b55]{position:relative;\n\n\nz-index:1;border-left:1px #e5e5e5 solid\n}",""]),t.exports=e},"05d3":function(t,e,i){var a=i("02a4");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("4f06").default;o("7385b2b5",a,!0,{sourceMap:!1,shadowMode:!1})},"139c2":function(t,e,i){"use strict";i("4160"),i("a434"),i("a9e3"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={name:"UniGridItem",inject:["grid"],props:{index:{type:Number,default:0}},data:function(){return{column:0,showBorder:!0,square:!0,highlight:!0,left:0,top:0,openNum:2,width:0,borderColor:"#e5e5e5"}},created:function(){this.column=this.grid.column,this.showBorder=this.grid.showBorder,this.square=this.grid.square,this.highlight=this.grid.highlight,this.top=0===this.hor?this.grid.hor:this.hor,this.left=0===this.ver?this.grid.ver:this.ver,this.borderColor=this.grid.borderColor,this.grid.children.push(this),this.width=this.grid.width},beforeDestroy:function(){var t=this;this.grid.children.forEach((function(e,i){e===t&&t.grid.children.splice(i,1)}))},methods:{_onClick:function(){this.grid.change({detail:{index:this.index}})}}};e.default=a},"188f":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".uni-grid-item[data-v-599cb4c2]{\nheight:100%;display:-webkit-box;display:-webkit-flex;display:flex\n}.uni-grid-item__box[data-v-599cb4c2]{\ndisplay:-webkit-box;display:-webkit-flex;display:flex;width:100%;\nposition:relative;-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.uni-grid-item--border[data-v-599cb4c2]{position:relative;\n\n\nz-index:0;border-bottom:1px #e5e5e5 solid;border-right:1px #e5e5e5 solid\n}.uni-grid-item--border-top[data-v-599cb4c2]{position:relative;\n\n\nborder-top:1px #e5e5e5 solid;z-index:0\n}.uni-highlight[data-v-599cb4c2]:active{background-color:#f1f1f1}",""]),t.exports=e},"18e5":function(t,e,i){"use strict";var a=i("6355"),o=i.n(a);o.a},2313:function(t,e,i){"use strict";i.r(e);var a=i("865d"),o=i("bb01");for(var n in o)"default"!==n&&function(t){i.d(e,t,(function(){return o[t]}))}(n);i("27d9");var r,l=i("f0c5"),s=Object(l["a"])(o["default"],a["b"],a["c"],!1,null,"6dc26165",null,!1,a["a"],r);e["default"]=s.exports},"27d9":function(t,e,i){"use strict";var a=i("419e"),o=i.n(a);o.a},3880:function(t,e,i){"use strict";i.r(e);var a=i("9f21"),o=i.n(a);for(var n in a)"default"!==n&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=o.a},"419e":function(t,e,i){var a=i("ce67");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("4f06").default;o("47be1ca0",a,!0,{sourceMap:!1,shadowMode:!1})},"42c3":function(t,e,i){var a=i("9f65");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("4f06").default;o("041dd8ed",a,!0,{sourceMap:!1,shadowMode:!1})},"44cd":function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return a}));var a={uniIcons:i("4f0f").default},o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"uni-collapse-cell",class:{"uni-collapse-cell--disabled":t.disabled,"uni-collapse-cell--notdisabled":!t.disabled,"uni-collapse-cell--open":t.isOpen,"uni-collapse-cell--hide":!t.isOpen}},[i("v-uni-view",{staticClass:"uni-collapse-cell__title",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClick.apply(void 0,arguments)}}},[t.thumb?i("v-uni-image",{staticClass:"uni-collapse-cell__title-img",attrs:{src:t.thumb}}):t._e(),i("v-uni-text",{staticClass:"uni-collapse-cell__title-text"},[t._v(t._s(t.title))]),i("uni-icons",{staticClass:"uni-collapse-cell__title-arrow",class:{"uni-collapse-cell__title-arrow-active":t.isOpen,"uni-collapse-cell--animation":!0===t.showAnimation},attrs:{color:"#bbb",size:"20",type:"arrowdown"}})],1),i("v-uni-view",{staticClass:"uni-collapse-cell__content",class:{"uni-collapse-cell__content--hide":!t.isOpen}},[i("v-uni-view",{staticClass:"uni-collapse-cell__wrapper",class:{"uni-collapse-cell--animation":!0===t.showAnimation},style:{transform:t.isOpen?"translateY(0)":"translateY(-50%)","-webkit-transform":t.isOpen?"translateY(0)":"translateY(-50%)"}},[t._t("default")],2)],1)],1)},n=[]},"47ee":function(t,e,i){"use strict";i("4160"),i("a9e3"),i("d3b7"),i("e25e"),i("ac1f"),i("25f0"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={name:"UniGrid",props:{column:{type:Number,default:3},showBorder:{type:Boolean,default:!0},borderColor:{type:String,default:"#e5e5e5"},square:{type:Boolean,default:!0},highlight:{type:Boolean,default:!0}},provide:function(){return{grid:this}},data:function(){var t="Uni_".concat(Math.ceil(1e6*Math.random()).toString(36));return{elId:t,width:0}},created:function(){this.children=[]},mounted:function(){var t=this;this.$nextTick((function(){t.init()}))},methods:{init:function(){var t=this;setTimeout((function(){t._getSize((function(e){t.children.forEach((function(t,i){t.width=e}))}))}),50)},change:function(t){this.$emit("change",t)},_getSize:function(t){var e=this;uni.createSelectorQuery().in(this).select("#".concat(this.elId)).boundingClientRect().exec((function(i){e.width=parseInt((i[0].width-1)/e.column)+"px",t(e.width)}))}}};e.default=a},"49f2":function(t,e,i){"use strict";i.r(e);var a=i("44cd"),o=i("3880");for(var n in o)"default"!==n&&function(t){i.d(e,t,(function(){return o[t]}))}(n);i("18e5");var r,l=i("f0c5"),s=Object(l["a"])(o["default"],a["b"],a["c"],!1,null,"28c524e2",null,!1,a["a"],r);e["default"]=s.exports},"4e82":function(t,e,i){"use strict";var a=i("23e7"),o=i("1c0b"),n=i("7b0b"),r=i("d039"),l=i("a640"),s=[],c=s.sort,h=r((function(){s.sort(void 0)})),d=r((function(){s.sort(null)})),u=l("sort"),p=h||!d||!u;a({target:"Array",proto:!0,forced:p},{sort:function(t){return void 0===t?c.call(n(this)):c.call(n(this),o(t))}})},"4f08":function(t,e,i){"use strict";var a=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getUnitUser=n,e.getUnit=r,e.GetUserDepartment=l,e.selectProject=s,e.showImage=c,e.getMaterialTree=h,e.GetContracts=d,e.getSupplierNameAndType=u,e.GetEngineeringContracts=p,e.GetContract=f,e.GetWorkFlowProcedureList=g,e.WorkFlowAudit=x,e.WorkFlowSave=v;var o=a(i("8cec"));function n(t){return(0,o.default)({url:"/common/GetUnitUser",method:"get",params:{projectid:t}})}function r(t){return(0,o.default)({url:"/common/getunit",method:"get",params:{projectid:t}})}function l(t){return(0,o.default)({url:"/common/GetUserDepartment",method:"get",params:{usercode:t}})}function s(){return(0,o.default)({url:"/common/GetProjectList",method:"get"})}function c(t){return(0,o.default)({url:"/common/ShowImg",method:"get",params:{code:t}})}function h(t){return(0,o.default)({url:"/common/GetMaterialTree",method:"get",params:{classCode:t}})}function d(t,e){return(0,o.default)({url:"/common/GetContracts",method:"get",params:{projectcode:t,searchValue:e}})}function u(t,e){return(0,o.default)({url:"/common/GetSupplierNameAndType",method:"get",params:{supplierCode:t,supplierTypeCode:e}})}function p(t,e){return(0,o.default)({url:"/common/GetEngineeringContracts",method:"get",params:{projectcode:t,searchValue:e}})}function f(t){return(0,o.default)({url:"/Common/GetContract",method:"get",params:{contractCode:t}})}function g(t,e,i){return(0,o.default)({url:"/Common/GetWorkFlowProcedureList",method:"get",params:{procedureName:t,projectCode:e,activity:i}})}function x(t,e){return(0,o.default)({url:"/Common/WorkFlowAudit",method:"get",params:{userCode:t,procedureCode:e}})}function v(t){return(0,o.default)({url:"/Common/WorkFlowSave",method:"POST",data:t})}},"583b":function(t,e,i){"use strict";i.r(e);var a=i("139c2"),o=i.n(a);for(var n in a)"default"!==n&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=o.a},"5a16":function(t,e,i){var a=i("188f");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("4f06").default;o("9b1f8b22",a,!0,{sourceMap:!1,shadowMode:!1})},6355:function(t,e,i){var a=i("bc8a");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("4f06").default;o("a5b7e5bc",a,!0,{sourceMap:!1,shadowMode:!1})},"865d":function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return a}));var a={uniCollapse:i("880c").default,uniCollapseItem:i("49f2").default,uniGrid:i("ffd0").default,uniGridItem:i("c512").default},o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("uni-collapse",{staticClass:"uni-flex"},[i("uni-collapse-item",{attrs:{title:"常用操作"}},[i("uni-grid",{attrs:{column:4,square:!1,highlight:!1}},[i("uni-grid-item",[i("v-uni-view",{staticClass:"grid-item-box pointer",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toSign1.apply(void 0,arguments)}}},[i("v-uni-image",{staticClass:"img",attrs:{mode:"aspectFit",src:"/static/icon/qianzhengshenqing.svg"}}),i("v-uni-text",{staticClass:"text"},[t._v("签证申请单")])],1)],1),i("uni-grid-item",[i("v-uni-view",{staticClass:"grid-item-box pointer",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toSign2.apply(void 0,arguments)}}},[i("v-uni-image",{staticClass:"img",attrs:{mode:"aspectFit",src:"/static/icon/qianzheng.svg"}}),i("v-uni-text",{staticClass:"text"},[t._v("待审签证单")])],1)],1),i("uni-grid-item",[i("v-uni-navigator",{attrs:{url:"../template/GetMaterialIns/GetMaterialIns"}},[i("v-uni-view",{staticClass:"grid-item-box pointer"},[i("v-uni-image",{staticClass:"img",attrs:{mode:"aspectFit",src:"/static/icon/in.svg"}}),i("v-uni-text",{staticClass:"text"},[t._v("入库单")])],1)],1)],1),i("uni-grid-item",[i("v-uni-view",{staticClass:"grid-item-box pointer",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.selectProject.apply(void 0,arguments)}}},[i("v-uni-image",{staticClass:"img",attrs:{mode:"aspectFit",src:"/static/icon/select.svg"}}),i("v-uni-text",{staticClass:"text"},[t._v("选择项目")])],1)],1)],1),i("uni-grid",{attrs:{column:4,square:!1,highlight:!1}},[i("uni-grid-item",[i("v-uni-navigator",{attrs:{url:"../template/GetMaterialOuts/GetMaterialOuts"}},[i("v-uni-view",{staticClass:"grid-item-box pointer"},[i("v-uni-image",{staticClass:"img",attrs:{mode:"aspectFit",src:"/static/icon/lingliao.svg"}}),i("v-uni-text",{staticClass:"text"},[t._v("领料单")])],1)],1)],1),i("uni-grid-item",[i("v-uni-navigator",{attrs:{url:"../template/GetSafeQualityCheckDTOs/GetSafeQualityCheckDTOs?type=0"}},[i("v-uni-view",{staticClass:"grid-item-box pointer"},[i("v-uni-image",{staticClass:"img",attrs:{mode:"aspectFit",src:"/static/icon/quality.svg"}}),i("v-uni-text",{staticClass:"text"},[t._v("质量检查")])],1)],1)],1),i("uni-grid-item",[i("v-uni-navigator",{attrs:{url:"../template/GetSafeQualityCheckDTOs/GetSafeQualityCheckDTOs?type=1"}},[i("v-uni-view",{staticClass:"grid-item-box pointer"},[i("v-uni-image",{staticClass:"img",attrs:{mode:"aspectFit",src:"/static/icon/safe.svg"}}),i("v-uni-text",{staticClass:"text"},[t._v("安全检查")])],1)],1)],1),i("uni-grid-item",[i("v-uni-navigator",{attrs:{url:"../template/GetPmProgressDTOs/GetPmProgressDTOs"}},[i("v-uni-view",{staticClass:"grid-item-box pointer"},[i("v-uni-image",{staticClass:"img",attrs:{mode:"aspectFit",src:"/static/icon/progress.svg"}}),i("v-uni-text",{staticClass:"text"},[t._v("进度填报")])],1)],1)],1)],1),i("uni-grid",{attrs:{column:4,square:!1,highlight:!1}},[i("uni-grid-item",[i("v-uni-navigator",{attrs:{url:"../template/GetSafeQualityCheckDTOs/GetSafeQualityCheckDTOs?type=2"}},[i("v-uni-view",{staticClass:"grid-item-box pointer"},[i("v-uni-image",{staticClass:"img",attrs:{mode:"aspectFit",src:"/static/icon/material.svg"}}),i("v-uni-text",{staticClass:"text"},[t._v("材料检查")])],1)],1)],1),i("uni-grid-item",[i("v-uni-navigator",{attrs:{url:"/pages/template/requisitionlist/requisitionlist?type=1"}},[i("v-uni-view",{staticClass:"grid-item-box pointer"},[i("v-uni-image",{staticClass:"img",attrs:{mode:"aspectFit",src:"/static/icon/change.svg"}}),i("v-uni-text",{staticClass:"text"},[t._v("变更申请单")])],1)],1)],1),i("uni-grid-item",[i("v-uni-navigator",{attrs:{url:"../template/ChangeRequest/CheckChange"}},[i("v-uni-view",{staticClass:"grid-item-box pointer"},[i("v-uni-image",{staticClass:"img",attrs:{mode:"aspectFit",src:"/static/icon/audit.svg"}}),i("v-uni-text",{staticClass:"text"},[t._v("待审变更")])],1)],1)],1),i("uni-grid-item",[i("v-uni-view",{staticClass:"grid-item-box pointer",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.logout.apply(void 0,arguments)}}},[i("v-uni-image",{staticClass:"img",attrs:{mode:"aspectFit",src:"/static/icon/logout.svg"}}),i("v-uni-text",{staticClass:"text"},[t._v("登出")])],1)],1)],1)],1)],1),i("v-uni-view",{staticClass:"qiun-columns"},[i("v-uni-view",{staticClass:"qiun-padding",staticStyle:{"font-size":"32rpx"}},[i("v-uni-text",[t._v(t._s(t.tips))])],1),t._l(t.talk,(function(e,a){return i("v-uni-view",[i("v-uni-view",{staticClass:"qiun-bg-white qiun-title-bar qiun-common-mt"},[i("v-uni-view",{staticClass:"qiun-title-dot-light"},[e.isCollapse?i("i",{ref:"qi_title",refInFor:!0,staticClass:"fa fa-minus marginRight",attrs:{"aria-hidden":"true"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.collapse(e,a)}}}):i("i",{ref:"qi_title",refInFor:!0,staticClass:"fa fa-plus marginRight",attrs:{"aria-hidden":"true"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.collapse(e,a)}}}),t._v("项目("+t._s(e.progressName)+")进度图")])],1),i("v-uni-view",{staticClass:"line"}),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.isCollapse,expression:"item2.isCollapse"}],ref:"qi_content",refInFor:!0,staticClass:"space"},t._l(e.progressList,(function(o,n){return i("v-uni-view",{key:n},[i("v-uni-view",{staticClass:"space height30"},[o.isCollapse?i("i",{ref:"qi_title",refInFor:!0,staticClass:"fa fa-minus marginRight",attrs:{"aria-hidden":"true"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.collapse1(e,a,o,n)}}}):i("i",{ref:"qi_title",refInFor:!0,staticClass:"fa fa-plus marginRight",attrs:{"aria-hidden":"true"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.collapse1(e,a,o,n)}}}),3==o.alertState?i("i",{staticClass:"fa fa-circle red marginRight",attrs:{"aria-hidden":"true",title:"未按期完成"}}):2==o.alertState?i("i",{staticClass:"fa fa-circle orange marginRight",attrs:{"aria-hidden":"true",title:"即将到期预警"}}):i("i",{staticClass:"fa fa-circle green marginRight",attrs:{"aria-hidden":"true",title:"正常"}}),t._v(t._s(o.nodeName)),1==o.isCompanyKey?i("i",{staticClass:"fa fa-flag marginLeft red",attrs:{"aria-hidden":"true",title:"集团关键节点"}}):t._e()]),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:o.isCollapse,expression:"item.isCollapse"}],staticClass:"space"},[i("v-uni-view",{staticClass:"line"}),i("v-uni-view",{staticClass:"height30"},[t._v(t._s(o.plannedStartDate)+"--"+t._s(o.plannedFinishDate)+" 工期:"+t._s(o.duration))]),i("v-uni-view",{staticClass:"height30 progress-box"},[i("v-uni-progress",{attrs:{percent:o.completePercent,"show-info":!0,"stroke-width":"3"}})],1),i("v-uni-view",{staticClass:"height30"},[t._v(t._s(1==o.status?"进行中":4==o.status?"已完成":"未开始")),i("v-uni-navigator",{staticClass:"blue right",attrs:{url:"../template/GetpmProgressReportDTOs/GetpmProgressReportDTOs?progressNodeId="+o.progressNodeId}},[t._v("看进度报告")])],1)],1),i("v-uni-view",{staticClass:"line"})],1)})),1)],1)})),i("v-uni-view",{staticClass:"qiun-title-bar",staticStyle:{"background-color":"#E5FDC3"}},[i("v-uni-view",{staticClass:"qiun-title-dot-light"},[t._v("质量图")])],1),i("v-uni-view",{staticClass:"qiun-charts",staticStyle:{"background-color":"#E5FDC3"}},[i("v-uni-canvas",{staticClass:"charts",staticStyle:{"background-color":"#E5FDC3"},attrs:{"canvas-id":"canvasColumn",id:"canvasColumn"},on:{touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t.touchIt(e,"canvasColumn")}}})],1),i("v-uni-view",{staticClass:"qiun-bg-white qiun-title-bar qiun-common-mt"},[i("v-uni-view",{staticClass:"qiun-title-dot-light"},[t._v("安全图")])],1),i("v-uni-view",{staticClass:"qiun-charts"},[i("v-uni-canvas",{staticClass:"charts",attrs:{"canvas-id":"canvasMix",id:"canvasMix","disable-scroll":"true"},on:{touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t.touchMix.apply(void 0,arguments)},touchmove:function(e){arguments[0]=e=t.$handleEvent(e),t.moveMix.apply(void 0,arguments)},touchend:function(e){arguments[0]=e=t.$handleEvent(e),t.touchEndMix.apply(void 0,arguments)}}})],1)],2),i("page-foot",{attrs:{isShow:!0,showIndex:0}})],1)},n=[]},"880c":function(t,e,i){"use strict";i.r(e);var a=i("f289"),o=i("e625");for(var n in o)"default"!==n&&function(t){i.d(e,t,(function(){return o[t]}))}(n);i("0058");var r,l=i("f0c5"),s=Object(l["a"])(o["default"],a["b"],a["c"],!1,null,"68e4a6ca",null,!1,a["a"],r);e["default"]=s.exports},9217:function(t,e,i){"use strict";i.r(e);var a=i("47ee"),o=i.n(a);for(var n in a)"default"!==n&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=o.a},"9a58":function(t,e,i){"use strict";var a=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.GetPmProgressDTOs=n,e.InsertProgressReport=r,e.GetPmProgressItemAndReports=l,e.GetpmProgressReportDTOs=s,e.GetpmProgressReportDTO=c;var o=a(i("8cec"));function n(t,e,i){return(0,o.default)({url:"/Progress/GetPmProgressDTOs",method:"get",params:{projectCode:t,userCode:e,searchValue:i}})}function r(t){return(0,o.default)({url:"/Progress/InsertProgressReport",method:"POST",data:t})}function l(t,e){return(0,o.default)({url:"/Progress/GetPmProgressItemAndReports",method:"get",params:{projectCode:t,userCode:e}})}function s(t){return(0,o.default)({url:"/Progress/GetpmProgressReportDTOs",method:"get",params:{progressNodeId:t}})}function c(t){return(0,o.default)({url:"/Progress/GetpmProgressReportDTO",method:"get",params:{progressReportId:t}})}},"9f21":function(t,e,i){"use strict";var a=i("4ea4");i("4160"),i("a9e3"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(i("4f0f")),n={name:"UniCollapseItem",components:{uniIcons:o.default},props:{title:{type:String,default:""},name:{type:[Number,String],default:0},disabled:{type:Boolean,default:!1},showAnimation:{type:Boolean,default:!1},open:{type:Boolean,default:!1},thumb:{type:String,default:""}},data:function(){return{isOpen:!1}},watch:{open:function(t){this.isOpen=t}},inject:["collapse"],created:function(){if(this.isOpen=this.open,this.nameSync=this.name?this.name:this.collapse.childrens.length,this.collapse.childrens.push(this),"true"===String(this.collapse.accordion)&&this.isOpen){var t=this.collapse.childrens[this.collapse.childrens.length-2];t&&(this.collapse.childrens[this.collapse.childrens.length-2].isOpen=!1)}},methods:{onClick:function(){var t=this;this.disabled||("true"===String(this.collapse.accordion)&&this.collapse.childrens.forEach((function(e){e!==t&&(e.isOpen=!1)})),this.isOpen=!this.isOpen,this.collapse.onChange&&this.collapse.onChange(),this.$forceUpdate())}}};e.default=n},"9f65":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".uni-collapse[data-v-68e4a6ca]{\nwidth:100%;display:-webkit-box;display:-webkit-flex;display:flex;\n\n\n-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;background-color:#fff}",""]),t.exports=e},aaf0:function(t,e,i){"use strict";i("4160"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={name:"UniCollapse",props:{accordion:{type:[Boolean,String],default:!1}},data:function(){return{}},provide:function(){return{collapse:this}},created:function(){this.childrens=[]},methods:{onChange:function(){var t=[];this.childrens.forEach((function(e,i){e.isOpen&&t.push(e.nameSync)})),this.$emit("change",t)}}};e.default=a},b452:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return a}));var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"uni-grid-wrap"},[i("v-uni-view",{ref:"uni-grid",staticClass:"uni-grid",class:{"uni-grid--border":t.showBorder},style:{"border-left-color":t.borderColor},attrs:{id:t.elId}},[t._t("default")],2)],1)},n=[]},bb01:function(t,e,i){"use strict";i.r(e);var a=i("f179"),o=i.n(a);for(var n in a)"default"!==n&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=o.a},bc8a:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".uni-collapse-cell[data-v-28c524e2]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;border-color:#e5e5e5;border-bottom-width:1px;border-bottom-style:solid}.uni-collapse-cell--hover[data-v-28c524e2]{background-color:#f1f1f1}.uni-collapse-cell--open[data-v-28c524e2]{background-color:#f1f1f1}.uni-collapse-cell--disabled[data-v-28c524e2]{background-color:#f1f1f1}.uni-collapse-cell--hide[data-v-28c524e2]{height:48px}.uni-collapse-cell--animation[data-v-28c524e2]{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:ease;transition-timing-function:ease}.uni-collapse-cell__title[data-v-28c524e2]{padding:12px 12px;position:relative;\ndisplay:-webkit-box;display:-webkit-flex;display:flex;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;\nheight:48px;line-height:24px;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.uni-collapse-cell__title[data-v-28c524e2]:active{background-color:#f1f1f1}.uni-collapse-cell__title-img[data-v-28c524e2]{height:26px;width:26px;margin-right:10px}.uni-collapse-cell__title-arrow[data-v-28c524e2]{width:20px;height:20px;-webkit-transform:rotate(0deg);transform:rotate(0deg);-webkit-transform-origin:center center;transform-origin:center center}.uni-collapse-cell__title-arrow-active[data-v-28c524e2]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.uni-collapse-cell__title-text[data-v-28c524e2]{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:14px;\nwhite-space:nowrap;color:inherit;\n\n\noverflow:hidden;text-overflow:ellipsis}.uni-collapse-cell__content[data-v-28c524e2]{overflow:hidden}.uni-collapse-cell__wrapper[data-v-28c524e2]{\ndisplay:-webkit-box;display:-webkit-flex;display:flex;\n-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.uni-collapse-cell__content--hide[data-v-28c524e2]{height:0;line-height:0}",""]),t.exports=e},c023:function(t,e,i){"use strict";var a=i("5a16"),o=i.n(a);o.a},c512:function(t,e,i){"use strict";i.r(e);var a=i("fe90"),o=i("583b");for(var n in o)"default"!==n&&function(t){i.d(e,t,(function(){return o[t]}))}(n);i("c023");var r,l=i("f0c5"),s=Object(l["a"])(o["default"],a["b"],a["c"],!1,null,"599cb4c2",null,!1,a["a"],r);e["default"]=s.exports},cb29:function(t,e,i){var a=i("23e7"),o=i("81d5"),n=i("44d2");a({target:"Array",proto:!0},{fill:o}),n("fill")},ce67:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"uni-view[data-v-6dc26165]{font-size:15px}.uni-row[data-v-6dc26165]{height:40px}.uni-row-column[data-v-6dc26165]{float:left;width:%?150?%;height:40px}.grid-item-box[data-v-6dc26165]{-webkit-box-flex:1;-webkit-flex:1;flex:1;\ndisplay:-webkit-box;display:-webkit-flex;display:flex;\n-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;padding:15px 0}.qiun-padding[data-v-6dc26165]{padding:2%;width:96%}.qiun-wrap[data-v-6dc26165]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.qiun-rows[data-v-6dc26165]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal!important;-webkit-box-direction:normal!important;-webkit-flex-direction:row!important;flex-direction:row!important}.qiun-columns[data-v-6dc26165]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical!important;-webkit-box-direction:normal!important;-webkit-flex-direction:column!important;flex-direction:column!important}.qiun-common-mt[data-v-6dc26165]{margin-top:%?10?%}.qiun-bg-white[data-v-6dc26165]{background:#fff}.qiun-title-bar[data-v-6dc26165]{width:96%;padding:%?10?% 2%;-webkit-flex-wrap:nowrap;flex-wrap:nowrap}.qiun-title-dot-light[data-v-6dc26165]{border-left:%?10?% solid #0ea391;padding-left:%?10?%;font-size:%?32?%;color:#000}\n\n\t/* 通用样式 */.qiun-charts[data-v-6dc26165]{width:%?750?%;height:%?500?%;background-color:#fff}.qiun-charts1[data-v-6dc26165]{width:%?750?%;height:auto;padding:5px 10px;background-color:#fff}.charts[data-v-6dc26165]{width:%?750?%;height:%?500?%;background-color:#fff}\n\n\t/* 横屏样式 */.qiun-charts-rotate[data-v-6dc26165]{width:%?700?%;height:%?1100?%;background-color:#fff;padding:%?25?%}.charts-rotate[data-v-6dc26165]{width:%?700?%;height:%?1100?%;background-color:#fff}\n\n\t/* 圆弧进度样式 */.qiun-charts3[data-v-6dc26165]{width:%?750?%;height:%?250?%;background-color:#fff;position:relative}.charts3[data-v-6dc26165]{position:absolute;width:%?250?%;height:%?250?%;background-color:#fff}.qiun-tip[data-v-6dc26165]{display:block;width:auto;overflow:hidden;padding:%?15?%;height:%?30?%;line-height:%?30?%;margin:%?10?%;background:#f93;font-size:%?30?%;-webkit-border-radius:%?8?%;border-radius:%?8?%;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;text-align:center;border:1px solid #dc7004;color:#fff}.gree[data-v-6dc26165]{color:#09bb07}.orange[data-v-6dc26165]{color:orange}.gray[data-v-6dc26165]{color:#e0e0e0}\n\n\t/* 进度图表css */.space[data-v-6dc26165]{margin-left:20px}.height30[data-v-6dc26165]{display:block;padding-top:5px;padding-bottom:5px;\n\t\t /* height: 30px; */height:auto;max-height:45px\n\t\t /* -webkit-line-clamp: 2; */}.line[data-v-6dc26165]{border-bottom:3px solid #f2f6fc}.marginRight[data-v-6dc26165]{margin-right:15px;cursor:pointer}.marginLeft[data-v-6dc26165]{margin-left:15px}.red[data-v-6dc26165]{color:#f33}.green[data-v-6dc26165]{color:#1aad19}.blue[data-v-6dc26165]{color:#00f}.lef[data-v-6dc26165]{float:left}.right[data-v-6dc26165]{float:right;padding-right:15px}.awesomeIcon[data-v-6dc26165]{font-size:20px;padding:8px 5px}.img[data-v-6dc26165]{width:40px;height:40px}",""]),t.exports=e},e625:function(t,e,i){"use strict";i.r(e);var a=i("aaf0"),o=i.n(a);for(var n in a)"default"!==n&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=o.a},efaf:function(t,e,i){"use strict";var a=i("05d3"),o=i.n(a);o.a},f179:function(t,e,i){"use strict";(function(t){var a=i("4ea4");i("4160"),i("b680"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,n=a(i("ade3")),r=a(i("f759")),l=i("9a58"),s=(i("4f08"),{}),c={data:function(){return{href:"",state:this.$store.state,cWidth:"",cHeight:"",cWidth2:"",cHeight2:"",cWidth3:"",cHeight3:"",arcbarWidth:"",gaugeWidth:"",tips:"",pixelRatio:1,serverData:"",itemCount:30,sliderMax:50,talk:[]}},onLoad:function(){t.info("首页1"),this.$util.persistLogin(this),o=this,this.cWidth=uni.upx2px(750),this.cHeight=uni.upx2px(500),this.cWidth2=uni.upx2px(700),this.cHeight2=uni.upx2px(1100),this.cWidth3=uni.upx2px(250),this.cHeight3=uni.upx2px(250),this.arcbarWidth=uni.upx2px(24),this.gaugeWidth=uni.upx2px(30)},onReady:function(){this.getServerData()},created:function(){this.getList()},methods:{toSign1:function(){uni.navigateTo({url:"/pages/template/requisitionlist/requisitionlist?type=0"})},toSign2:function(){uni.navigateTo({url:"/pages/template/GetVises/GetVises"})},preventhuadong:function(){},getList:function(){var e=this,i=e.$util.getState(e,"projectCode"),a=e.$util.getState(e,"userCode");(0,l.GetPmProgressItemAndReports)(i,a).then((function(i){t.info("GetPmProgressItemAndReports",i),i&&i.length>0&&(i.forEach((function(t,i,a){e.talk.push(t)})),t.info("talk",e.talk))}))},collapse:function(e,i){t.info("collapse");var a=this;e.isCollapse?e.isCollapse=!1:e.isCollapse=!0,t.info(e),a.$set(a.talk,i,e)},collapse1:function(e,i,a,o){t.info("collapse1");var n=this;a.isCollapse?a.isCollapse=!1:a.isCollapse=!0,t.info(e),n.$set(n.talk,i,e)},logout:function(){t.info("logout"),this.$store.commit("setIsLogin",!1),this.$store.commit("setUser",null),this.$store.commit("setToken",""),this.$store.commit("setName",""),this.$store.commit("setRoles",""),uni.navigateTo({url:"/"})},selectProject:function(){uni.navigateTo({url:"/pages/SelectProject/SelectProject"})},getServerData:function(){uni.showLoading({title:"正在加载数据..."}),uni.request({url:"https://unidemo.dcloud.net.cn/hello-uniapp-ucharts-data.json",data:{},success:function(t){o.fillData(t.data)},fail:function(){o.tips="网络错误,小程序端请检查合法域名"},complete:function(){uni.hideLoading()}})},fillData:function(t){this.serverData=t,this.tips=t.tips,this.sliderMax=t.Candle.categories.length;var e={categories:[],series:[]},i={categories:[],series:[]},a={categories:[],series:[]},o={categories:[],series:[]},n={categories:[],series:[]},r={series:[]},l={series:[]},s={series:[]},c={categories:[],series:[]},h={series:[]},d={series:[]},u={series:[]},p={categories:[],series:[]},f={categories:[],series:[]},g={categories:[],series:[]};e.categories=t.Column.categories,e.series=t.Column.series,i.categories=t.ColumnMeter.categories,i.series=t.ColumnMeter.series,a.categories=t.LineA.categories,a.series=t.LineA.series,o.categories=t.LineB.categories,o.series=t.LineB.series,n.categories=t.Area.categories,n.series=t.Area.series,r.series=t.Pie.series,l.series=t.Ring.series,s.series=t.Pie.series;for(var x=function(t){l.series[t].format=function(){return l.series[t].name+l.series[t].data}},v=0;v<l.series.length;v++)x(v);c.categories=t.Radar.categories,c.series=t.Radar.series,h.series=t.Arcbar1.series,d.series=t.Arcbar2.series,u.series=t.Arcbar3.series,p.categories=t.Gauge.categories,p.series=t.Gauge.series,f.categories=t.Candle.categories,f.series=t.Candle.series,g.categories=t.Mix.categories,g.series=t.Mix.series,this.showColumn("canvasColumn",e),this.showColumnMeter("canvasColumnMeter",i),this.showLineA("canvasLineA",a),this.showLineB("canvasLineB",o),this.showArea("canvasArea",n),this.showPie("canvasPie",r),this.showRing("canvasRing",l),this.showFunnel("canvasFunnel",s),this.showRadar("canvasRadar",c),this.showArcbar("canvasArcbar1",h),this.showArcbar2("canvasArcbar2",d),this.showArcbar3("canvasArcbar3",u),this.showGauge("canvasGauge",p),this.showCandle("canvasCandle",f),this.showMix("canvasMix",g)},showColumn:function(t,e){s[t]=new r.default({$this:o,canvasId:t,type:"column",padding:[15,15,0,15],legend:{show:!0,padding:5,lineHeight:11,margin:0},fontSize:11,background:"#FFFFFF",pixelRatio:o.pixelRatio,animation:!1,categories:e.categories,series:e.series,xAxis:{disableGrid:!0},yAxis:{format:function(t){return t.toFixed(0)+"元"}},dataLabel:!0,width:o.cWidth*o.pixelRatio,height:o.cHeight*o.pixelRatio,extra:{column:{type:"group",width:o.cWidth*o.pixelRatio*.45/e.categories.length}}})},showColumnMeter:function(t,e){s[t]=new r.default({$this:o,canvasId:t,type:"column",padding:[15,15,0,15],legend:{show:!0,padding:5,lineHeight:11,margin:0},fontSize:11,background:"#FFFFFF",pixelRatio:o.pixelRatio,animation:!1,categories:e.categories,series:e.series,xAxis:{disableGrid:!0},yAxis:{},dataLabel:!0,width:o.cWidth*o.pixelRatio,height:o.cHeight*o.pixelRatio,extra:{column:{type:"meter",width:o.cWidth*o.pixelRatio*.45/e.categories.length,meter:{border:4,fillColor:"#E5FDC3"}}}})},showLineA:function(t,e){var i;s[t]=new r.default((i={$this:o,canvasId:t,type:"line",fontSize:11,padding:[15,15,0,15],legend:{show:!0,padding:5,lineHeight:11,margin:5},dataLabel:!1,dataPointShape:!1,background:"#FFFFFF",pixelRatio:o.pixelRatio,categories:e.categories,series:e.series,animation:!1,enableScroll:!0,xAxis:{disableGrid:!1,type:"grid",gridType:"dash",itemCount:4,scrollShow:!0,scrollAlign:"left"},yAxis:{gridType:"dash",splitNumber:8,min:10,max:180,format:function(t){return t.toFixed(0)+"元"}},width:o.cWidth*o.pixelRatio,height:o.cHeight*o.pixelRatio},(0,n.default)(i,"dataLabel",!0),(0,n.default)(i,"dataPointShape",!0),(0,n.default)(i,"extra",{lineStyle:"straight"}),i))},showLineB:function(t,e){s[t]=new r.default({$this:o,canvasId:t,type:"line",fontSize:11,padding:[15,15,0,15],legend:{show:!0,padding:5,lineHeight:11,margin:5},background:"#FFFFFF",pixelRatio:o.pixelRatio,rotate:!0,categories:e.categories,animation:!1,series:e.series,xAxis:{disableGrid:!0},yAxis:{},width:o.cWidth2*o.pixelRatio,height:o.cHeight2*o.pixelRatio,dataLabel:!0,dataPointShape:!0,extra:{lineStyle:"curve"}})},showArea:function(t,e){s[t]=new r.default({$this:o,canvasId:t,type:"area",fontSize:11,padding:[0,15,10,15],legend:{show:!0,position:"top",float:"center",itemGap:30,padding:5,lineHeight:18,margin:0},dataLabel:!1,dataPointShape:!0,background:"#FFFFFF",pixelRatio:o.pixelRatio,categories:e.categories,series:e.series,animation:!1,xAxis:{type:"grid",gridColor:"#CCCCCC",gridType:"dash",dashLength:8,boundaryGap:"justify"},yAxis:{gridType:"dash",gridColor:"#CCCCCC",dashLength:8,splitNumber:5},width:o.cWidth*o.pixelRatio,height:o.cHeight*o.pixelRatio,extra:{area:{type:"curve",opacity:.2,addLine:!0,width:2}}})},showPie:function(t,e){s[t]=new r.default({$this:o,canvasId:t,type:"pie",fontSize:11,padding:[15,15,0,15],legend:{show:!0,padding:5,lineHeight:11,margin:0},background:"#FFFFFF",pixelRatio:o.pixelRatio,series:e.series,animation:!1,width:o.cWidth*o.pixelRatio,height:o.cHeight*o.pixelRatio,dataLabel:!0,extra:{pie:{lableWidth:15}}})},showRing:function(t,e){s[t]=new r.default({$this:o,canvasId:t,type:"ring",fontSize:11,padding:[5,5,5,5],legend:{show:!0,position:"right",float:"center",itemGap:10,padding:5,lineHeight:26,margin:5,borderWidth:1},title:{name:"70%",color:"#7cb5ec",fontSize:25*o.pixelRatio},subtitle:{name:"收益率",color:"#666666",fontSize:15*o.pixelRatio},extra:{pie:{lableWidth:15,ringWidth:40*o.pixelRatio,offsetAngle:0}},background:"#FFFFFF",pixelRatio:o.pixelRatio,series:e.series,animation:!1,width:o.cWidth*o.pixelRatio,height:o.cHeight*o.pixelRatio,disablePieStroke:!0,dataLabel:!0})},showFunnel:function(t,e){s[t]=new r.default({$this:o,canvasId:t,type:"funnel",fontSize:11,padding:[15,15,0,15],legend:{show:!0,padding:5,lineHeight:11,margin:0},background:"#FFFFFF",pixelRatio:o.pixelRatio,series:e.series,animation:!1,width:o.cWidth*o.pixelRatio,height:o.cHeight*o.pixelRatio,dataLabel:!0,extra:{funnel:{border:!0,borderWidth:2,borderColor:"#FFFFFF"}}})},showRadar:function(t,e){s[t]=new r.default({$this:o,canvasId:t,type:"radar",fontSize:11,padding:[15,15,0,15],legend:{show:!0,padding:5,lineHeight:11,margin:0},background:"#FFFFFF",pixelRatio:o.pixelRatio,animation:!1,dataLabel:!0,categories:e.categories,series:e.series,width:o.cWidth*o.pixelRatio,height:o.cHeight*o.pixelRatio,extra:{radar:{max:200}}})},showArcbar:function(t,e){new r.default({$this:o,canvasId:t,type:"arcbar",fontSize:11,title:{name:Math.round(100*e.series[0].data)+"%",color:e.series[0].color,fontSize:25*o.pixelRatio},subtitle:{name:e.series[0].name,color:"#666666",fontSize:15*o.pixelRatio},extra:{arcbar:{type:"default",width:o.arcbarWidth*o.pixelRatio}},background:"#FFFFFF",pixelRatio:o.pixelRatio,series:e.series,animation:!1,width:o.cWidth3*o.pixelRatio,height:o.cHeight3*o.pixelRatio,dataLabel:!0})},showArcbar2:function(t,e){new r.default({$this:o,canvasId:t,type:"arcbar",fontSize:11,title:{name:Math.round(100*e.series[0].data)+"%",color:e.series[0].color,fontSize:25*o.pixelRatio},subtitle:{name:e.series[0].name,color:"#666666",fontSize:15*o.pixelRatio},extra:{arcbar:{type:"default",width:o.arcbarWidth*o.pixelRatio,backgroundColor:"#ffe3e8",startAngle:1.25,endAngle:.75}},background:"#FFFFFF",pixelRatio:o.pixelRatio,series:e.series,animation:!1,width:o.cWidth3*o.pixelRatio,height:o.cHeight3*o.pixelRatio,dataLabel:!0})},showArcbar3:function(t,e){new r.default({$this:o,canvasId:t,type:"arcbar",fontSize:11,title:{name:Math.round(100*e.series[0].data)+"%",color:e.series[0].color,fontSize:25*o.pixelRatio},subtitle:{name:e.series[0].name,color:"#666666",fontSize:15*o.pixelRatio},extra:{arcbar:{type:"circle",width:o.arcbarWidth*o.pixelRatio,startAngle:.5}},background:"#FFFFFF",pixelRatio:o.pixelRatio,series:e.series,animation:!1,width:o.cWidth3*o.pixelRatio,height:o.cHeight3*o.pixelRatio,dataLabel:!0})},showGauge:function(t,e){s[t]=new r.default({$this:o,canvasId:t,type:"gauge",fontSize:11,title:{name:Math.round(100*e.series[0].data)+"%",color:e.categories[1].color,fontSize:25*o.pixelRatio,offsetY:50*o.pixelRatio},subtitle:{name:e.series[0].name,color:"#666666",fontSize:15*o.pixelRatio,offsetY:-50*o.pixelRatio},extra:{gauge:{type:"default",width:o.gaugeWidth*o.pixelRatio,startAngle:.75,endAngle:.25,startNumber:0,endNumber:100,splitLine:{fixRadius:0,splitNumber:10,width:o.gaugeWidth*o.pixelRatio,color:"#FFFFFF",childNumber:5,childWidth:.4*o.gaugeWidth*o.pixelRatio},pointer:{width:.8*o.gaugeWidth*o.pixelRatio,color:"auto"}}},background:"#FFFFFF",pixelRatio:o.pixelRatio,categories:e.categories,series:e.series,animation:!0,width:o.cWidth*o.pixelRatio,height:o.cHeight*o.pixelRatio,dataLabel:!0})},changeGaugeData:function(){for(var t,e=[{name:"完成率",data:Math.random()}],i=0;i<o.serverData.Gauge.categories.length;i++)if(e[0].data<=o.serverData.Gauge.categories[i].value){t=o.serverData.Gauge.categories[i].color;break}s["canvasGauge"].updateData({series:e,categories:o.serverData.Gauge.categories,title:{name:Math.round(100*e[0].data)+"%",color:t,fontSize:25*o.pixelRatio,offsetY:50*o.pixelRatio},subtitle:{name:"更新数据",color:"#666666",fontSize:15*o.pixelRatio,offsetY:-50*o.pixelRatio}})},showCandle:function(t,e){s[t]=new r.default({$this:o,canvasId:t,type:"candle",fontSize:11,padding:[15,15,0,15],legend:{show:!0,padding:5,lineHeight:11,margin:8},background:"#FFFFFF",pixelRatio:o.pixelRatio,enableMarkLine:!0,categories:e.categories,series:e.series,animation:!0,enableScroll:!0,xAxis:{disableGrid:!0,labelCount:4,itemCount:o.itemCount,scrollShow:!0,scrollAlign:"right"},yAxis:{gridType:"dash",splitNumber:5,format:function(t){return t.toFixed(0)}},width:o.cWidth*o.pixelRatio,height:o.cHeight*o.pixelRatio,dataLabel:!1,dataPointShape:!0,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"]}},tooltip:{bgColor:"#000000",bgOpacity:.7,gridType:"dash",dashLength:5,gridColor:"#1890ff",fontColor:"#FFFFFF",horizentalLine:!0,xAxisLabel:!0,yAxisLabel:!0,labelBgColor:"#DFE8FF",labelBgOpacity:.95,labelAlign:"left",labelFontColor:"#666666"},markLine:{type:"dash",dashLength:5,data:[{value:2150,lineColor:"#f04864",showLabel:!0},{value:2350,lineColor:"#f04864",showLabel:!0}]}}})},touchCandle:function(t){s["canvasCandle"].scrollStart(t)},moveCandle:function(t){s["canvasCandle"].scroll(t)},touchEndCandle:function(t){s["canvasCandle"].scrollEnd(t),s["canvasCandle"].showToolTip(t,{format:function(t,e){return e+" "+t.name+":"+t.data}})},changeData:function(){s["canvasColumn"].updateData({series:o.serverData.ColumnB.series,categories:o.serverData.ColumnB.categories})},touchLineA:function(t){s["canvasLineA"].scrollStart(t)},moveLineA:function(t){s["canvasLineA"].scroll(t)},touchEndLineA:function(t){s["canvasLineA"].scrollEnd(t),s["canvasLineA"].showToolTip(t,{format:function(t,e){return e+" "+t.name+":"+t.data}})},showMix:function(t,e){s[t]=new r.default({$this:o,canvasId:t,type:"mix",fontSize:11,padding:[15,15,0,15],legend:{show:!0,padding:5,lineHeight:11,margin:6},background:"#FFFFFF",pixelRatio:o.pixelRatio,categories:e.categories,series:e.series,animation:!1,enableScroll:!0,xAxis:{disableGrid:!1,type:"grid",gridType:"dash",itemCount:4,scrollShow:!0,scrollAlign:"left"},yAxis:{gridType:"dash",dashLength:4,splitNumber:5,min:10,max:180,format:function(t){return t.toFixed(0)}},width:o.cWidth*o.pixelRatio,height:o.cHeight*o.pixelRatio,dataLabel:!0,dataPointShape:!0,extra:{column:{width:20*o.pixelRatio},tooltip:{bgColor:"#000000",bgOpacity:.7,gridType:"dash",dashLength:8,gridColor:"#1890ff",fontColor:"#FFFFFF",horizentalLine:!0,xAxisLabel:!0,yAxisLabel:!0,labelBgColor:"#DFE8FF",labelBgOpacity:.95,labelAlign:"left",labelFontColor:"#666666"}}})},touchMix:function(t){s["canvasMix"].scrollStart(t)},moveMix:function(t){s["canvasMix"].scroll(t)},touchEndMix:function(t){s["canvasMix"].scrollEnd(t),s["canvasMix"].touchLegend(t),s["canvasMix"].showToolTip(t,{format:function(t,e){return e+" "+t.name+":"+t.data}})},touchIt:function(t,e){s[e].touchLegend(t,{animation:!1}),s[e].showToolTip(t,{format:function(t,e){return"object"===typeof t.data?e+" "+t.name+":"+t.data.value:e+" "+t.name+":"+t.data}})},touchPie:function(t,e){s[e].showToolTip(t,{format:function(t){return t.name+":"+t.data}})}}};e.default=c}).call(this,i("5a52")["default"])},f289:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return a}));var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"uni-collapse"},[t._t("default")],2)},n=[]},f759:function(t,e,i){"use strict";(function(e){i("99af"),i("cb29"),i("4de4"),i("4160"),i("d81d"),i("13d5"),i("26e9"),i("fb6a"),i("4e82"),i("a9e3"),i("b680"),i("e25e"),i("ac1f"),i("5319"),i("1276"),i("159b");var a,o={yAxisWidth:15,yAxisSplit:5,xAxisHeight:15,xAxisLineHeight:15,legendHeight:15,yAxisTitleWidth:15,padding:[10,10,10,10],pixelRatio:1,rotate:!1,columePadding:3,fontSize:13,dataPointShape:["circle","circle","circle","circle"],colors:["#1890ff","#2fc25b","#facc14","#f04864","#8543e0","#90ed7d"],pieChartLinePadding:15,pieChartTextPadding:5,xAxisTextPadding:3,titleColor:"#333333",titleFontSize:20,subtitleColor:"#999999",subtitleFontSize:15,toolTipPadding:3,toolTipBackground:"#000000",toolTipOpacity:.7,toolTipLineHeight:20,radarGridCount:3,radarLabelTextMargin:15,gaugeLabelTextMargin:15};a=Object.assign?Object.assign:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(t),a=1;a<arguments.length;a++){var o=arguments[a];if(null!=o)for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(i[n]=o[n])}return i};var n={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 i=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!i}};function r(t,e){var i=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,a=t.replace(i,(function(t,e,i,a){return e+e+i+i+a+a})),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a),n=parseInt(o[1],16),r=parseInt(o[2],16),l=parseInt(o[3],16);return"rgba("+n+","+r+","+l+","+e+")"}function l(t,e,i){if(isNaN(t))throw new Error("[uCharts] unvalid series data!");i=i||10,e=e||"upper";var a=1;while(i<1)i*=10,a*=10;t="upper"===e?Math.ceil(t*a):Math.floor(t*a);while(t%i!==0)"upper"===e?t++:t--;return t/a}function s(t,e,i,a){for(var o=[],n=0;n<t.length;n++){for(var r={data:[],name:e[n],color:i[n]},l=0,s=a.length;l<s;l++)if(l<t[n])r.data.push(null);else{for(var c=0,h=0;h<t[n];h++)c+=a[l-h][1];r.data.push(+(c/t[n]).toFixed(3))}o.push(r)}return o}function c(t,e,i,a){var o=a.width-a.area[1]-a.area[3],n=e.eachSpacing*(a.chartData.xAxisData.xAxisPoints.length-1),r=t;return t>=0?r=0:Math.abs(t)>=n-o&&(r=o-n),r}function h(t,e,i){function a(t){while(t<0)t+=2*Math.PI;while(t>2*Math.PI)t-=2*Math.PI;return t}return t=a(t),e=a(e),i=a(i),e>i&&(i+=2*Math.PI,t<e&&(t+=2*Math.PI)),t>=e&&t<=i}function d(t,e,i){var a=t,o=i-e,n=a+(i-o-a)/Math.sqrt(2);n*=-1;var r=(i-o)*(Math.sqrt(2)-1)-(i-o-a)/Math.sqrt(2);return{transX:n,transY:r}}function u(t,e){function i(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))}var a=.2,o=.2,n=null,r=null,l=null,s=null;if(e<1?(n=t[0].x+(t[1].x-t[0].x)*a,r=t[0].y+(t[1].y-t[0].y)*a):(n=t[e].x+(t[e+1].x-t[e-1].x)*a,r=t[e].y+(t[e+1].y-t[e-1].y)*a),e>t.length-3){var c=t.length-1;l=t[c].x-(t[c].x-t[c-1].x)*o,s=t[c].y-(t[c].y-t[c-1].y)*o}else l=t[e+1].x-(t[e+2].x-t[e].x)*o,s=t[e+1].y-(t[e+2].y-t[e].y)*o;return i(t,e+1)&&(s=t[e+1].y),i(t,e)&&(r=t[e].y),{ctrA:{x:n,y:r},ctrB:{x:l,y:s}}}function p(t,e,i){return{x:i.x+t,y:i.y-e}}function f(t,e){if(e)while(n.isCollision(t,e))t.start.x>0?t.start.y--:t.start.x<0||t.start.y>0?t.start.y++:t.start.y--;return t}function g(t,e,i){var a=0;return t.map((function(t){if(t.color||(t.color=i.colors[a],a=(a+1)%i.colors.length),t.type||(t.type=e.type),"undefined"==typeof t.show&&(t.show=!0),t.type||(t.type=e.type),t.pointShape||(t.pointShape="circle"),!t.legendShape)switch(t.type){case"line":t.legendShape="line";break;case"column":t.legendShape="rect";break;case"area":t.legendShape="triangle";break;default:t.legendShape="circle"}return t}))}function x(t,e){var i=0,a=e-t;return i=a>=1e4?1e3:a>=1e3?100:a>=100?10:a>=10?5:a>=1?1:a>=.1?.1:a>=.01?.01:a>=.001?.001:a>=1e-4?1e-4:a>=1e-5?1e-5:1e-6,{minRange:l(t,"lower",i),maxRange:l(e,"upper",i)}}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.fontSize;t=String(t);t=t.split("");for(var i=0,a=0;a<t.length;a++){var n=t[a];/[a-zA-Z]/.test(n)?i+=7:/[0-9]/.test(n)?i+=5.5:/\./.test(n)?i+=2.7:/-/.test(n)?i+=3.25:/[\u4e00-\u9fa5]/.test(n)?i+=10:/\(|\)/.test(n)?i+=3.73:/\s/.test(n)?i+=2.5:/%/.test(n)?i+=8:i+=10}return i*e/10}function y(t){return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data)}),[])}function m(t,e){for(var i=new Array(e),a=0;a<i.length;a++)i[a]=0;for(var o=0;o<t.length;o++)for(a=0;a<i.length;a++)i[a]+=t[o].data[a];return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data).concat(i)}),[])}function b(t,e,i){var a,o;return t.clientX?e.rotate?(o=e.height-t.clientX*e.pixelRatio,a=(t.pageY-i.currentTarget.offsetTop-e.height/e.pixelRatio/2*(e.pixelRatio-1))*e.pixelRatio):(a=t.clientX*e.pixelRatio,o=(t.pageY-i.currentTarget.offsetTop-e.height/e.pixelRatio/2*(e.pixelRatio-1))*e.pixelRatio):e.rotate?(o=e.height-t.x*e.pixelRatio,a=t.y*e.pixelRatio):(a=t.x*e.pixelRatio,o=t.y*e.pixelRatio),{x:a,y:o}}function w(t,e){for(var i=[],a=0;a<t.length;a++){var o=t[a];if(null!==o.data[e]&&"undefined"!==typeof o.data[e]&&o.show){var n={};n.color=o.color,n.type=o.type,n.style=o.style,n.pointShape=o.pointShape,n.disableLegend=o.disableLegend,n.name=o.name,n.show=o.show,n.data=o.format?o.format(o.data[e]):o.data[e],i.push(n)}}return i}function S(t){var e=t.map((function(t){return v(t)}));return Math.max.apply(null,e)}function P(t){for(var e=2*Math.PI/t,i=[],a=0;a<t;a++)i.push(e*a);return i.map((function(t){return-1*t+Math.PI/2}))}function T(t,e,i,a){for(var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},n=t.map((function(t){return{text:o.format?o.format(t,a[i]):t.name+": "+t.data,color:t.color}})),r=[],l={x:0,y:0},s=0;s<e.length;s++){var c=e[s];"undefined"!==typeof c[i]&&null!==c[i]&&r.push(c[i])}for(var h=0;h<r.length;h++){var d=r[h];l.x=Math.round(d.x),l.y+=d.y}return l.y/=r.length,{textList:n,offset:l}}function A(t,e,i,a){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},n=t.map((function(t){return{text:o.format?o.format(t,a[i]):t.name+": "+t.data,color:t.color,disableLegend:!!t.disableLegend}}));n=n.filter((function(t){if(!0!==t.disableLegend)return t}));for(var r=[],l={x:0,y:0},s=0;s<e.length;s++){var c=e[s];"undefined"!==typeof c[i]&&null!==c[i]&&r.push(c[i])}for(var h=0;h<r.length;h++){var d=r[h];l.x=Math.round(d.x),l.y+=d.y}return l.y/=r.length,{textList:n,offset:l}}function C(t,e,i,a,o,n){var r=n.color.upFill,l=n.color.downFill,s=[r,r,l,r],c=[],h={text:o[a],color:null};c.push(h),e.map((function(e){0==a&&e.data[1]-e.data[0]<0?s[1]=l:(e.data[0]<t[a-1][1]&&(s[0]=l),e.data[1]<e.data[0]&&(s[1]=l),e.data[2]>t[a-1][1]&&(s[2]=r),e.data[3]<t[a-1][1]&&(s[3]=l));var i={text:"开盘:"+e.data[0],color:s[0]},o={text:"收盘:"+e.data[1],color:s[1]},n={text:"最低:"+e.data[2],color:s[2]},h={text:"最高:"+e.data[3],color:s[3]};c.push(i,o,n,h)}));for(var d=[],u={x:0,y:0},p=0;p<i.length;p++){var f=i[p];"undefined"!==typeof f[a]&&null!==f[a]&&d.push(f[a])}return u.x=Math.round(d[0][0].x),{textList:c,offset:u}}function _(t){for(var e=[],i=0;i<t.length;i++)1==t[i].show&&e.push(t[i]);return e}function F(t,e,i,a){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,n=-1,r=0;return"line"!=i.type&&"area"!=i.type||"justify"!=i.xAxis.boundaryGap||(r=i.chartData.eachSpacing/2),M(t,i,a)&&e.forEach((function(e,i){t.x+o+r>e&&(n=i)})),n}function k(t,e,i){var a=-1;if(R(t,e.area)){for(var o=e.points,n=-1,r=0,l=o.length;r<l;r++)for(var s=o[r],c=0;c<s.length;c++){n+=1;var h=s[c]["area"];if(t.x>h[0]&&t.x<h[2]&&t.y>h[1]&&t.y<h[3]){a=n;break}}return a}return a}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 M(t,e,i){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 L(t,e,i){var a=2*Math.PI/i,o=-1;if(W(t,e.center,e.radius)){var n=function(t){return t<0&&(t+=2*Math.PI),t>2*Math.PI&&(t-=2*Math.PI),t},r=Math.atan2(e.center.y-t.y,t.x-e.center.x);r*=-1,r<0&&(r+=2*Math.PI);var l=e.angleList.map((function(t){return t=n(-1*t),t}));l.forEach((function(t,e){var i=n(t-a/2),l=n(t+a/2);l<i&&(l+=2*Math.PI),(r>=i&&r<=l||r+2*Math.PI>=i&&r+2*Math.PI<=l)&&(o=e)}))}return o}function D(t,e){for(var i=-1,a=0,o=e.series.length;a<o;a++){var n=e.series[a];if(t.x>n.funnelArea[0]&&t.x<n.funnelArea[2]&&t.y>n.funnelArea[1]&&t.y<n.funnelArea[3]){i=a;break}}return i}function z(t,e){for(var i=-1,a=0,o=e.length;a<o;a++){var n=e[a];if(t.x>n.area[0]&&t.x<n.area[2]&&t.y>n.area[1]&&t.y<n.area[3]){i=a;break}}return i}function I(t,e){for(var i=-1,a=e.chartData.mapData,o=e.series,n=Et(t.y,t.x,a.bounds,a.scale,a.xoffset,a.yoffset),r=[n.x,n.y],l=0,s=o.length;l<s;l++){var c=o[l].geometry.coordinates;if(Ht(r,c)){i=l;break}}return i}function O(t,e){var i=-1;if(W(t,e.center,e.radius)){var a=Math.atan2(e.center.y-t.y,t.x-e.center.x);a=-a;for(var o=0,n=e.series.length;o<n;o++){var r=e.series[o];if(h(a,r._start_,r._start_+2*r._proportion_*Math.PI)){i=o;break}}}return i}function W(t,e,i){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(i,2)}function E(t){var e=[],i=[];return t.forEach((function(t,a){null!==t?i.push(t):(i.length&&e.push(i),i=[])})),i.length&&e.push(i),e}function G(t,e,i,a){var o={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 a.legendData=o,o;var n=e.legend.padding,r=e.legend.margin,l=e.legend.fontSize,s=15*e.pixelRatio,c=5*e.pixelRatio,h=Math.max(e.legend.lineHeight*e.pixelRatio,l);if("top"==e.legend.position||"bottom"==e.legend.position){for(var d=[],u=0,p=[],f=[],g=0;g<t.length;g++){var x=t[g],y=s+c+v(x.name||"undefined",l)+e.legend.itemGap;u+y>e.width-e.padding[1]-e.padding[3]?(d.push(f),p.push(u-e.legend.itemGap),u=y,f=[x]):(u+=y,f.push(x))}if(f.length){d.push(f),p.push(u-e.legend.itemGap),o.widthArr=p;var m=Math.max.apply(null,p);switch(e.legend.float){case"left":o.area.start.x=e.padding[3],o.area.end.x=e.padding[3]+2*n;break;case"right":o.area.start.x=e.width-e.padding[1]-m-2*n,o.area.end.x=e.width-e.padding[1];break;default:o.area.start.x=(e.width-m)/2-n,o.area.end.x=(e.width+m)/2+n}o.area.width=m+2*n,o.area.wholeWidth=m+2*n,o.area.height=d.length*h+2*n,o.area.wholeHeight=d.length*h+2*n+2*r,o.points=d}}else{var b=t.length,w=e.height-e.padding[0]-e.padding[2]-2*r-2*n,S=Math.min(Math.floor(w/h),b);switch(o.area.height=S*h+2*n,o.area.wholeHeight=S*h+2*n,e.legend.float){case"top":o.area.start.y=e.padding[0]+r,o.area.end.y=e.padding[0]+r+o.area.height;break;case"bottom":o.area.start.y=e.height-e.padding[2]-r-o.area.height,o.area.end.y=e.height-e.padding[2]-r;break;default:o.area.start.y=(e.height-o.area.height)/2,o.area.end.y=(e.height+o.area.height)/2}for(var P=b%S===0?b/S:Math.floor(b/S+1),T=[],A=0;A<P;A++){var C=t.slice(A*S,A*S+S);T.push(C)}if(o.points=T,T.length){for(var _=0;_<T.length;_++){for(var F=T[_],k=0,R=0;R<F.length;R++){var M=s+c+v(F[R].name||"undefined",l)+e.legend.itemGap;M>k&&(k=M)}o.widthArr.push(k),o.heightArr.push(F.length*h+2*n)}for(var L=0,D=0;D<o.widthArr.length;D++)L+=o.widthArr[D];o.area.width=L-e.legend.itemGap+2*n,o.area.wholeWidth=o.area.width+n}}switch(e.legend.position){case"top":o.area.start.y=e.padding[0]+r,o.area.end.y=e.padding[0]+r+o.area.height;break;case"bottom":o.area.start.y=e.height-e.padding[2]-o.area.height-r,o.area.end.y=e.height-e.padding[2]-r;break;case"left":o.area.start.x=e.padding[3],o.area.end.x=e.padding[3]+o.area.width;break;case"right":o.area.start.x=e.width-e.padding[1]-o.area.width,o.area.end.x=e.width-e.padding[1];break}return a.legendData=o,o}function H(t,e,i,a){var o={angle:0,xAxisHeight:i.xAxisHeight},n=t.map((function(t){return v(t)})),r=Math.max.apply(this,n);return 1==e.xAxis.rotateLabel&&r+2*i.xAxisTextPadding>a&&(o.angle=45*Math.PI/180,o.xAxisHeight=2*i.xAxisTextPadding+r*Math.sin(o.angle)),o}function B(t,e,i,a,o){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,r=o.extra.radar||{};r.max=r.max||0;for(var l=Math.max(r.max,Math.max.apply(null,y(a))),s=[],c=function(o){var r=a[o],c={};c.color=r.color,c.data=[],r.data.forEach((function(a,o){var r={};r.angle=t[o],r.proportion=a/l,r.position=p(i*r.proportion*n*Math.cos(r.angle),i*r.proportion*n*Math.sin(r.angle),e),c.data.push(r)})),s.push(c)},h=0;h<a.length;h++)c(h);return s}function q(t,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=0,o=0,n=0;n<t.length;n++){var r=t[n];r.data=null===r.data?0:r.data,a+=r.data}for(var l=0;l<t.length;l++){var s=t[l];s.data=null===s.data?0:s.data,s._proportion_=0===a?1/t.length*i:s.data/a*i,s._radius_=e}for(var c=0;c<t.length;c++){var h=t[c];h._start_=o,o+=2*h._proportion_*Math.PI}return t}function $(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t=t.sort((function(t,e){return parseInt(e.data)-parseInt(t.data)}));for(var a=0;a<t.length;a++)t[a].radius=t[a].data/t[0].data*e*i,t[a]._proportion_=t[a].data/t[0].data;return t.reverse()}function j(t,e,i,a){for(var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=0,r=0,l=[],s=0;s<t.length;s++){var c=t[s];c.data=null===c.data?0:c.data,n+=c.data,l.push(c.data)}for(var h=Math.min.apply(null,l),d=Math.max.apply(null,l),u=a-i,p=0;p<t.length;p++){var f=t[p];f.data=null===f.data?0:f.data,0===n||"area"==e?(f._proportion_=f.data/n*o,f._rose_proportion_=1/t.length*o):(f._proportion_=f.data/n*o,f._rose_proportion_=f.data/n*o),f._radius_=i+u*((f.data-h)/(d-h))}for(var g=0;g<t.length;g++){var x=t[g];x._start_=r,r+=2*x._rose_proportion_*Math.PI}return t}function N(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==i&&(i=.999999);for(var a=0;a<t.length;a++){var o=t[a];o.data=null===o.data?0:o.data;var n=void 0;n="default"==e.type?e.endAngle<e.startAngle?2+e.endAngle-e.startAngle:e.startAngle-e.endAngle:2,o._proportion_=n*o.data*i+e.startAngle,o._proportion_>=2&&(o._proportion_=o._proportion_%2)}return t}function X(t,e,i){for(var a=e-i+1,o=e,n=0;n<t.length;n++)t[n].value=null===t[n].value?0:t[n].value,t[n]._startAngle_=o,t[n]._endAngle_=a*t[n].value+e,t[n]._endAngle_>=2&&(t[n]._endAngle_=t[n]._endAngle_%2),o=t[n]._endAngle_;return t}function U(t,e,i){for(var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=0;o<t.length;o++){var n=t[o];if(n.data=null===n.data?0:n.data,"auto"==i.pointer.color){for(var r=0;r<e.length;r++)if(n.data<=e[r].value){n.color=e[r].color;break}}else n.color=i.pointer.color;var l=i.startAngle-i.endAngle+1;n._endAngle_=l*n.data+i.startAngle,n._oldAngle_=i.oldAngle,i.oldAngle<i.endAngle&&(n._oldAngle_+=2),n.data>=i.oldData?n._proportion_=(n._endAngle_-n._oldAngle_)*a+i.oldAngle:n._proportion_=n._oldAngle_-(n._oldAngle_-n._endAngle_)*a,n._proportion_>=2&&(n._proportion_=n._proportion_%2)}return t}function Y(t){t=q(t);for(var e=0,i=0;i<t.length;i++){var a=t[i],o=a.format?a.format(+a._proportion_.toFixed(2)):n.toFixed(100*a._proportion_)+"%";e=Math.max(e,v(o))}return e}function Q(t,e,i,a,o,n){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*o.columePadding)/i),n.extra.column&&n.extra.column.width&&+n.extra.column.width>0&&(t.width=Math.min(t.width,+n.extra.column.width)),t.width<=0&&(t.width=1),t.x+=(a+.5-i/2)*t.width,t)}))}function J(t,e,i,a,o,n,r){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*o.columePadding)/2),n.extra.column&&n.extra.column.width&&+n.extra.column.width>0&&(t.width=Math.min(t.width,+n.extra.column.width)),a>0&&(t.width-=2*r),t)}))}function V(t,e,i,a,o,n,r){return t.map((function(t,i){return null===t?null:(t.width=Math.ceil((e-2*o.columePadding)/2),n.extra.column&&n.extra.column.width&&+n.extra.column.width>0&&(t.width=Math.min(t.width,+n.extra.column.width)),t)}))}function K(t,e,i){i.yAxisWidth,i.yAxisTitleWidth;var a=e.width-e.area[1]-e.area[3],o=e.enableScroll?Math.min(e.xAxis.itemCount,t.length):t.length;("line"==e.type||"area"==e.type)&&o>1&&"justify"==e.xAxis.boundaryGap&&(o-=1);var n=a/o,r=[],l=e.area[3],s=e.width-e.area[1];return t.forEach((function(t,e){r.push(l+e*n)})),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?r.push(l+t.length*n):r.push(s)),{xAxisPoints:r,startX:l,endX:s,eachSpacing:n}}function Z(t,e,i,a,o,n,r){var l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,s=[],c=n.height-n.area[0]-n.area[2];return t.forEach((function(t,r){if(null===t)s.push(null);else{var h=[];t.forEach((function(t,s){var d={};d.x=a[r]+Math.round(o/2);var u=t.value||t,p=c*(u-e)/(i-e);p*=l,d.y=n.height-Math.round(p)-n.area[2],h.push(d)})),s.push(h)}})),s}function tt(t,e,i,a,o,n,r){var l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,s="center";"line"!=n.type&&"area"!=n.type||(s=n.xAxis.boundaryGap);var c=[],h=n.height-n.area[0]-n.area[2];return t.forEach((function(t,r){if(null===t)c.push(null);else{var d={};d.color=t.color,d.x=a[r],"center"==s&&(d.x+=Math.round(o/2));var u=t;"object"===typeof t&&null!==t&&(u=t.value);var p=h*(u-e)/(i-e);p*=l,d.y=n.height-Math.round(p)-n.area[2],c.push(d)}})),c}function et(t,e,i,a,o,n,r,l,s){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,h=[],d=n.height-n.area[0]-n.area[2];return t.forEach((function(t,r){if(null===t)h.push(null);else{var u={};if(u.color=t.color,u.x=a[r]+Math.round(o/2),l>0){for(var p=0,f=0;f<=l;f++)p+=s[f].data[r];var g=p-t,x=d*(p-e)/(i-e),v=d*(g-e)/(i-e)}else p=t,x=d*(p-e)/(i-e),v=0;var y=v;x*=c,y*=c,u.y=n.height-Math.round(x)-n.area[2],u.y0=n.height-Math.round(y)-n.area[2],h.push(u)}})),h}function it(t,e,i,a){var o;o="stack"==a?m(t,e.categories.length):y(t);var n=[];o=o.filter((function(t){return"object"===typeof t&&null!==t?Array.isArray(t)?null!==t:null!==t.value:null!==t})),o.map((function(t){"object"===typeof t?Array.isArray(t)?t.map((function(t){n.push(t)})):n.push(t.value):n.push(t)}));var r=0,l=0;if(n.length>0&&(r=Math.min.apply(this,n),l=Math.max.apply(this,n)),"number"===typeof e.yAxis.min&&(r=Math.min(e.yAxis.min,r)),"number"===typeof e.yAxis.max&&(l=Math.max(e.yAxis.max,l)),r===l){var s=l||10;l+=s}for(var c=x(r,l),h=c.minRange,d=c.maxRange,u=[],p=(d-h)/i.yAxisSplit,f=0;f<=i.yAxisSplit;f++)u.push(h+p*f);return u.reverse()}function at(t,e,i){var o=a({},{type:""},e.extra.column),r=it(t,e,i,o.type),l=i.yAxisWidth,s=e.yAxis.fontSize||i.fontSize,c=r.map((function(t){return t=n.toFixed(t,6),t=e.yAxis.format?e.yAxis.format(Number(t)):t,l=Math.max(l,v(t,s)+5),t}));return!0===e.yAxis.disabled&&(l=0),{rangesFormat:c,ranges:r,yAxisWidth:l}}function ot(t,e,i,a,o){var n=it(e,i,a),r=i.height-i.area[0]-i.area[2],l=n[0],s=n[n.length-1],c=i.padding[3],h=i.padding[1]+r,d=l-(l-s)*(t-c)/(h-c);return d=i.yAxis.format?i.yAxis.format(Number(d)):d,d}function nt(t,e,i,a){for(var o=a.height-a.area[0]-a.area[2],n=0;n<i.length;n++){var r=o*(i[n].value-t)/(e-t);i[n].y=a.height-Math.round(r)-a.area[2]}return i}function rt(t,e){!0!==e.rotateLock?(t.translate(e.height,0),t.rotate(90*Math.PI/180)):!0!==e._rotate_&&(t.translate(e.height,0),t.rotate(90*Math.PI/180),e._rotate_=!0)}function lt(t,e,i,a,o){a.beginPath(),a.setStrokeStyle("#ffffff"),a.setLineWidth(1*o.pixelRatio),a.setFillStyle(e),"diamond"===i?t.forEach((function(t,e){null!==t&&(a.moveTo(t.x,t.y-4.5),a.lineTo(t.x-4.5,t.y),a.lineTo(t.x,t.y+4.5),a.lineTo(t.x+4.5,t.y),a.lineTo(t.x,t.y-4.5))})):"circle"===i?t.forEach((function(t,e){null!==t&&(a.moveTo(t.x+3.5*o.pixelRatio,t.y),a.arc(t.x,t.y,4*o.pixelRatio,0,2*Math.PI,!1))})):"rect"===i?t.forEach((function(t,e){null!==t&&(a.moveTo(t.x-3.5,t.y-3.5),a.rect(t.x-3.5,t.y-3.5,7,7))})):"triangle"===i&&t.forEach((function(t,e){null!==t&&(a.moveTo(t.x,t.y-4.5),a.lineTo(t.x-4.5,t.y+4.5),a.lineTo(t.x+4.5,t.y+4.5),a.lineTo(t.x,t.y-4.5))})),a.closePath(),a.fill(),a.stroke()}function st(t,e,i,a){var o=t.title.fontSize||e.titleFontSize,n=t.subtitle.fontSize||e.subtitleFontSize,r=t.title.name||"",l=t.subtitle.name||"",s=t.title.color||e.titleColor,c=t.subtitle.color||e.subtitleColor,h=r?o:0,d=l?n:0,u=5;if(l){var p=v(l,n),f=a.x-p/2+(t.subtitle.offsetX||0),g=a.y+n/2+(t.subtitle.offsetY||0);r&&(g+=(h+u)/2),i.beginPath(),i.setFontSize(n),i.setFillStyle(c),i.fillText(l,f,g),i.closePath(),i.stroke()}if(r){var x=v(r,o),y=a.x-x/2+(t.title.offsetX||0),m=a.y+o/2+(t.title.offsetY||0);l&&(m-=(d+u)/2),i.beginPath(),i.setFontSize(o),i.setFillStyle(s),i.fillText(r,y,m),i.closePath(),i.stroke()}}function ct(t,e,i,a){var o=e.data;t.forEach((function(t,n){if(null!==t){a.beginPath(),a.setFontSize(e.textSize||i.fontSize),a.setFillStyle(e.textColor||"#666666");var r=o[n];"object"===typeof o[n]&&null!==o[n]&&(r=o[n].value);var l=e.format?e.format(r):r;a.fillText(String(l),t.x-v(l,e.textSize||i.fontSize)/2,t.y-2),a.closePath(),a.stroke()}}))}function ht(t,e,i,a,o,n){e-=t.width/2+o.gaugeLabelTextMargin;for(var r=t.startAngle-t.endAngle+1,l=r/t.splitLine.splitNumber,s=t.endNumber-t.startNumber,c=s/t.splitLine.splitNumber,h=t.startAngle,d=t.startNumber,u=0;u<t.splitLine.splitNumber+1;u++){var p={x:e*Math.cos(h*Math.PI),y:e*Math.sin(h*Math.PI)},f=t.labelFormat?t.labelFormat(d):d;p.x+=i.x-v(f)/2,p.y+=i.y;var g=p.x,x=p.y;n.beginPath(),n.setFontSize(o.fontSize),n.setFillStyle(t.labelColor||"#666666"),n.fillText(f,g,x+o.fontSize/2),n.closePath(),n.stroke(),h+=l,h>=2&&(h%=2),d+=c}}function dt(t,e,i,a,o,r){var l=a.extra.radar||{};e+=o.radarLabelTextMargin,t.forEach((function(t,s){var c={x:e*Math.cos(t),y:e*Math.sin(t)},h=p(c.x,c.y,i),d=h.x,u=h.y;n.approximatelyEqual(c.x,0)?d-=v(a.categories[s]||"")/2:c.x<0&&(d-=v(a.categories[s]||"")),r.beginPath(),r.setFontSize(o.fontSize),r.setFillStyle(l.labelColor||"#666666"),r.fillText(a.categories[s]||"",d,u+o.fontSize/2),r.closePath(),r.stroke()}))}function ut(t,e,i,a,o,r){for(var l=i.pieChartLinePadding,s=[],c=null,h=t.map((function(t){var e=t.format?t.format(+t._proportion_.toFixed(2)):n.toFixed(100*t._proportion_.toFixed(4))+"%";t._rose_proportion_&&(t._proportion_=t._rose_proportion_);var i=2*Math.PI-(t._start_+2*Math.PI*t._proportion_/2),a=t.color,o=t._radius_;return{arc:i,text:e,color:a,radius:o,textColor:t.textColor,textSize:t.textSize}})),d=0;d<h.length;d++){var u=h[d],g=Math.cos(u.arc)*(u.radius+l),x=Math.sin(u.arc)*(u.radius+l),y=Math.cos(u.arc)*u.radius,m=Math.sin(u.arc)*u.radius,b=g>=0?g+i.pieChartTextPadding:g-i.pieChartTextPadding,w=x,S=v(u.text),P=w;c&&n.isSameXCoordinateArea(c.start,{x:b})&&(P=b>0?Math.min(w,c.start.y):g<0||w>0?Math.max(w,c.start.y):Math.min(w,c.start.y)),b<0&&(b-=S);var T={lineStart:{x:y,y:m},lineEnd:{x:g,y:x},start:{x:b,y:P},width:S,height:i.fontSize,text:u.text,color:u.color,textColor:u.textColor,textSize:u.textSize};c=f(T,c),s.push(c)}for(var A=0;A<s.length;A++){var C=s[A],_=p(C.lineStart.x,C.lineStart.y,r),F=p(C.lineEnd.x,C.lineEnd.y,r),k=p(C.start.x,C.start.y,r);a.setLineWidth(1*e.pixelRatio),a.setFontSize(i.fontSize),a.beginPath(),a.setStrokeStyle(C.color),a.setFillStyle(C.color),a.moveTo(_.x,_.y);var R=C.start.x<0?k.x+C.width:k.x,M=C.start.x<0?k.x-5:k.x+5;a.quadraticCurveTo(F.x,F.y,R,k.y),a.moveTo(_.x,_.y),a.stroke(),a.closePath(),a.beginPath(),a.moveTo(k.x+C.width,k.y),a.arc(R,k.y,2,0,2*Math.PI),a.closePath(),a.fill(),a.beginPath(),a.setFontSize(C.textSize||i.fontSize),a.setFillStyle(C.textColor||"#666666"),a.fillText(C.text,M,k.y+3),a.closePath(),a.stroke(),a.closePath()}}function pt(t,e,i,a){var o=e.extra.tooltip||{};o.gridType=void 0==o.gridType?"solid":o.gridType,o.dashLength=void 0==o.dashLength?4:o.dashLength;var n=e.area[0],l=e.height-e.area[2];if("dash"==o.gridType&&a.setLineDash([o.dashLength,o.dashLength]),a.setStrokeStyle(o.gridColor||"#cccccc"),a.setLineWidth(1*e.pixelRatio),a.beginPath(),a.moveTo(t,n),a.lineTo(t,l),a.stroke(),a.setLineDash([]),o.xAxisLabel){var s=e.categories[e.tooltip.index];a.setFontSize(i.fontSize);var c=v(s,i.fontSize),h=t-.5*c,d=l;a.beginPath(),a.setFillStyle(r(o.labelBgColor||i.toolTipBackground,o.labelBgOpacity||i.toolTipOpacity)),a.setStrokeStyle(o.labelBgColor||i.toolTipBackground),a.setLineWidth(1*e.pixelRatio),a.rect(h-i.toolTipPadding,d,c+2*i.toolTipPadding,i.fontSize+2*i.toolTipPadding),a.closePath(),a.stroke(),a.fill(),a.beginPath(),a.setFontSize(i.fontSize),a.setFillStyle(o.labelFontColor||i.fontColor),a.fillText(String(s),h,d+i.toolTipPadding+i.fontSize),a.closePath(),a.stroke()}}function ft(t,e,i,o,n){for(var l=a({},{type:"solid",dashLength:4,data:[]},i.extra.markLine),s=i.area[3],c=i.width-i.padding[1],h=nt(t,e,l.data,i),d=0;d<h.length;d++){var u=a({},{lineColor:"#DE4A42",showLabel:!1,labelFontColor:"#666666",labelBgColor:"#DFE8FF",labelBgOpacity:.8,yAxisIndex:0},h[d]);if("dash"==l.type&&n.setLineDash([l.dashLength,l.dashLength]),n.setStrokeStyle(u.lineColor),n.setLineWidth(1*i.pixelRatio),n.beginPath(),n.moveTo(s,u.y),n.lineTo(c,u.y),n.stroke(),n.setLineDash([]),u.showLabel){var p=i.yAxis.format?i.yAxis.format(Number(u.value)):u.value;n.setFontSize(o.fontSize);var f=v(p,o.fontSize),g=i.padding[3]+o.yAxisTitleWidth-o.toolTipPadding,x=Math.max(i.area[3],f+2*o.toolTipPadding),y=x-g,m=g+(y-f)/2,b=u.y;n.setFillStyle(r(u.labelBgColor,u.labelBgOpacity)),n.setStrokeStyle(u.labelBgColor),n.setLineWidth(1*i.pixelRatio),n.beginPath(),n.rect(g,b-.5*o.fontSize-o.toolTipPadding,y,o.fontSize+2*o.toolTipPadding),n.closePath(),n.stroke(),n.fill(),n.beginPath(),n.setFontSize(o.fontSize),n.setFillStyle(u.labelFontColor),n.fillText(String(p),m,b+.5*o.fontSize),n.stroke()}}}function gt(t,e,i,o,n){var l=a({},{gridType:"solid",dashLength:4},t.extra.tooltip),s=t.area[3],c=t.width-t.padding[1];if("dash"==l.gridType&&i.setLineDash([l.dashLength,l.dashLength]),i.setStrokeStyle(l.gridColor||"#cccccc"),i.setLineWidth(1*t.pixelRatio),i.beginPath(),i.moveTo(s,t.tooltip.offset.y),i.lineTo(c,t.tooltip.offset.y),i.stroke(),i.setLineDash([]),l.yAxisLabel){var h=ot(t.tooltip.offset.y,t.series,t,e,o);i.setFontSize(e.fontSize);var d=v(h,e.fontSize),u=t.padding[3]+e.yAxisTitleWidth-e.toolTipPadding,p=Math.max(t.area[3],d+2*e.toolTipPadding),f=p-u,g=u+(f-d)/2,x=t.tooltip.offset.y;i.beginPath(),i.setFillStyle(r(l.labelBgColor||e.toolTipBackground,l.labelBgOpacity||e.toolTipOpacity)),i.setStrokeStyle(l.labelBgColor||e.toolTipBackground),i.setLineWidth(1*t.pixelRatio),i.rect(u,x-.5*e.fontSize-e.toolTipPadding,f,e.fontSize+2*e.toolTipPadding),i.closePath(),i.stroke(),i.fill(),i.beginPath(),i.setFontSize(e.fontSize),i.setFillStyle(l.labelFontColor||e.fontColor),i.fillText(h,g,x+.5*e.fontSize),i.closePath(),i.stroke()}}function xt(t,e,i,o,n){var l=a({},{activeBgColor:"#000000",activeBgOpacity:.08},e.extra.tooltip),s=e.area[0],c=e.height-e.area[2];o.beginPath(),o.setFillStyle(r(l.activeBgColor,l.activeBgOpacity)),o.rect(t-n/2,s,n,c-s),o.closePath(),o.fill()}function vt(t,e,i,o,n,l,s){var c=a({},{bgColor:"#000000",bgOpacity:.7,fontColor:"#FFFFFF"},i.extra.tooltip),h=4*i.pixelRatio,d=5*i.pixelRatio,u=8*i.pixelRatio,p=!1;"line"!=i.type&&"area"!=i.type&&"candle"!=i.type&&"mix"!=i.type||pt(i.tooltip.offset.x,i,o,n),e=a({x:0,y:0},e),e.y-=8*i.pixelRatio;var f=t.map((function(t){return v(t.text,o.fontSize)})),g=h+d+4*o.toolTipPadding+Math.max.apply(null,f),x=2*o.toolTipPadding+t.length*o.toolTipLineHeight;e.x-Math.abs(i._scrollDistance_)+u+g>i.width&&(p=!0),x+e.y>i.height&&(e.y=i.height-x),n.beginPath(),n.setFillStyle(r(c.bgColor||o.toolTipBackground,c.bgOpacity||o.toolTipOpacity)),p?(n.moveTo(e.x,e.y+10*i.pixelRatio),n.lineTo(e.x-u,e.y+10*i.pixelRatio-5*i.pixelRatio),n.lineTo(e.x-u,e.y),n.lineTo(e.x-u-Math.round(g),e.y),n.lineTo(e.x-u-Math.round(g),e.y+x),n.lineTo(e.x-u,e.y+x),n.lineTo(e.x-u,e.y+10*i.pixelRatio+5*i.pixelRatio),n.lineTo(e.x,e.y+10*i.pixelRatio)):(n.moveTo(e.x,e.y+10*i.pixelRatio),n.lineTo(e.x+u,e.y+10*i.pixelRatio-5*i.pixelRatio),n.lineTo(e.x+u,e.y),n.lineTo(e.x+u+Math.round(g),e.y),n.lineTo(e.x+u+Math.round(g),e.y+x),n.lineTo(e.x+u,e.y+x),n.lineTo(e.x+u,e.y+10*i.pixelRatio+5*i.pixelRatio),n.lineTo(e.x,e.y+10*i.pixelRatio)),n.closePath(),n.fill(),t.forEach((function(t,i){if(null!==t.color){n.beginPath(),n.setFillStyle(t.color);var a=e.x+u+2*o.toolTipPadding,r=e.y+(o.toolTipLineHeight-o.fontSize)/2+o.toolTipLineHeight*i+o.toolTipPadding+1;p&&(a=e.x-g-u+2*o.toolTipPadding),n.fillRect(a,r,h,o.fontSize),n.closePath()}})),t.forEach((function(t,i){var a=e.x+u+2*o.toolTipPadding+h+d;p&&(a=e.x-g-u+2*o.toolTipPadding+ +h+d);var r=e.y+(o.toolTipLineHeight-o.fontSize)/2+o.toolTipLineHeight*i+o.toolTipPadding;n.beginPath(),n.setFontSize(o.fontSize),n.setFillStyle(c.fontColor),n.fillText(t.text,a,r+o.fontSize),n.closePath(),n.stroke()}))}function yt(t,e,i,a){var o=i.xAxisHeight+(e.height-i.xAxisHeight-v(t))/2;a.save(),a.beginPath(),a.setFontSize(i.fontSize),a.setFillStyle(e.yAxis.titleFontColor||"#333333"),a.translate(0,e.height),a.rotate(-90*Math.PI/180),a.fillText(t,o,e.padding[3]+.5*i.fontSize),a.closePath(),a.stroke(),a.restore()}function mt(t,e,i,o){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=[].concat(e.chartData.yAxisData.ranges),l=e.chartData.xAxisData,s=l.xAxisPoints,c=l.eachSpacing,h=a({},{type:"group",width:c/2,meter:{border:4,fillColor:"#FFFFFF"}},e.extra.column),d=r.pop(),u=r.shift(),p=[];return o.save(),e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&o.translate(e._scrollDistance_,0),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===n&&xt(e.tooltip.offset.x,e,i,o,c),t.forEach((function(a,r){var l=a.data;switch(h.type){case"group":var f=tt(l,d,u,s,c,e,i,n),g=et(l,d,u,s,c,e,i,r,t,n);p.push(g),f=Q(f,c,t.length,r,i,e),f.forEach((function(t,i){if(null!==t){o.beginPath(),o.setStrokeStyle(t.color||a.color),o.setLineWidth(1),o.setFillStyle(t.color||a.color);var n=t.x-t.width/2;e.height,t.y,e.area[2];o.moveTo(n-1,t.y),o.lineTo(n+t.width-2,t.y),o.lineTo(n+t.width-2,e.height-e.area[2]),o.lineTo(n,e.height-e.area[2]),o.lineTo(n,t.y),o.closePath(),o.stroke(),o.fill()}}));break;case"stack":f=et(l,d,u,s,c,e,i,r,t,n);p.push(f),f=V(f,c,t.length,r,i,e,t),f.forEach((function(t,i){if(null!==t){o.beginPath(),o.setFillStyle(t.color||a.color);var n=t.x-t.width/2+1,l=e.height-t.y-e.area[2],s=e.height-t.y0-e.area[2];r>0&&(l-=s),o.moveTo(n,t.y),o.fillRect(n,t.y,t.width-2,l),o.closePath(),o.fill()}}));break;case"meter":f=tt(l,d,u,s,c,e,i,n);p.push(f),f=J(f,c,t.length,r,i,e,h.meter.border),0==r?f.forEach((function(t,i){if(null!==t){o.beginPath(),o.setFillStyle(h.meter.fillColor);var n=t.x-t.width/2,r=e.height-t.y-e.area[2];o.moveTo(n,t.y),o.fillRect(n,t.y,t.width,r),o.closePath(),o.fill(),h.meter.border>0&&(o.beginPath(),o.setStrokeStyle(a.color),o.setLineWidth(h.meter.border*e.pixelRatio),o.moveTo(n+.5*h.meter.border,t.y+r),o.lineTo(n+.5*h.meter.border,t.y+.5*h.meter.border),o.lineTo(n+t.width-.5*h.meter.border,t.y+.5*h.meter.border),o.lineTo(n+t.width-.5*h.meter.border,t.y+r),o.stroke())}})):f.forEach((function(t,i){if(null!==t){o.beginPath(),o.setFillStyle(t.color||a.color);var n=t.x-t.width/2,r=e.height-t.y-e.area[2];o.moveTo(n,t.y),o.fillRect(n,t.y,t.width,r),o.closePath(),o.fill()}}));break}})),!1!==e.dataLabel&&1===n&&t.forEach((function(a,r){var l=a.data;switch(h.type){case"group":var p=tt(l,d,u,s,c,e,i,n);p=Q(p,c,t.length,r,i,e),ct(p,a,i,o);break;case"stack":p=et(l,d,u,s,c,e,i,r,t,n);ct(p,a,i,o);break;case"meter":p=tt(l,d,u,s,c,e,i,n);ct(p,a,i,o);break}})),o.restore(),{xAxisPoints:s,calPoints:p,eachSpacing:c,minRange:d,maxRange:u}}function bt(t,e,i,o,n){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,l=a({},{color:{},average:{}},i.extra.candle);l.color=a({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},l.color),l.average=a({},{show:!1,name:[],day:[],color:o.colors},l.average),i.extra.candle=l;var s=[].concat(i.chartData.yAxisData.ranges),c=i.chartData.xAxisData,h=c.xAxisPoints,d=c.eachSpacing,p=s.pop(),f=s.shift(),g=[];return n.save(),i._scrollDistance_&&0!==i._scrollDistance_&&!0===i.enableScroll&&n.translate(i._scrollDistance_,0),l.average.show&&e.forEach((function(t,e){var a=t.data,l=tt(a,p,f,h,d,i,o,r),s=E(l);s.forEach((function(e,i){n.beginPath(),n.setStrokeStyle(t.color),n.setLineWidth(1),1===e.length?(n.moveTo(e[0].x,e[0].y),n.arc(e[0].x,e[0].y,1,0,2*Math.PI)):(n.moveTo(e[0].x,e[0].y),e.forEach((function(t,i){if(i>0){var a=u(e,i-1);n.bezierCurveTo(a.ctrA.x,a.ctrA.y,a.ctrB.x,a.ctrB.y,t.x,t.y)}})),n.moveTo(e[0].x,e[0].y)),n.closePath(),n.stroke()}))})),t.forEach((function(t,e){var a=t.data,s=Z(a,p,f,h,d,i,o,r);g.push(s);var c=E(s);c=c[0],c.forEach((function(t,e){n.beginPath(),a[e][1]-a[e][0]>0?(n.setStrokeStyle(l.color.upLine),n.setFillStyle(l.color.upFill),n.setLineWidth(1*i.pixelRatio),n.moveTo(t[3].x,t[3].y),n.lineTo(t[1].x,t[1].y),n.lineTo(t[1].x-d/4,t[1].y),n.lineTo(t[0].x-d/4,t[0].y),n.lineTo(t[0].x,t[0].y),n.lineTo(t[2].x,t[2].y),n.lineTo(t[0].x,t[0].y),n.lineTo(t[0].x+d/4,t[0].y),n.lineTo(t[1].x+d/4,t[1].y),n.lineTo(t[1].x,t[1].y),n.moveTo(t[3].x,t[3].y)):(n.setStrokeStyle(l.color.downLine),n.setFillStyle(l.color.downFill),n.setLineWidth(1*i.pixelRatio),n.moveTo(t[3].x,t[3].y),n.lineTo(t[0].x,t[0].y),n.lineTo(t[0].x-d/4,t[0].y),n.lineTo(t[1].x-d/4,t[1].y),n.lineTo(t[1].x,t[1].y),n.lineTo(t[2].x,t[2].y),n.lineTo(t[1].x,t[1].y),n.lineTo(t[1].x+d/4,t[1].y),n.lineTo(t[0].x+d/4,t[0].y),n.lineTo(t[0].x,t[0].y),n.moveTo(t[3].x,t[3].y)),n.closePath(),n.fill(),n.stroke()}))})),n.restore(),{xAxisPoints:h,calPoints:g,eachSpacing:d,minRange:p,maxRange:f}}function wt(t,e,i,o){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=a({},{type:"straight",opacity:.2,addLine:!1,width:2},e.extra.area),s=[].concat(e.chartData.yAxisData.ranges),c=e.chartData.xAxisData,h=c.xAxisPoints,d=c.eachSpacing,p=s.pop(),f=s.shift(),g=e.height-e.area[2],x=[];return o.save(),e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&o.translate(e._scrollDistance_,0),t.forEach((function(t,a){var s=t.data,c=tt(s,p,f,h,d,e,i,n);x.push(c);for(var v=E(c),y=function(i){var a=v[i];if(o.beginPath(),o.setStrokeStyle(r(t.color,l.opacity)),o.setFillStyle(r(t.color,l.opacity)),o.setLineWidth(l.width*e.pixelRatio),a.length>1){var n=a[0],s=a[a.length-1];o.moveTo(n.x,n.y),"curve"===l.type?a.forEach((function(t,e){if(e>0){var i=u(a,e-1);o.bezierCurveTo(i.ctrA.x,i.ctrA.y,i.ctrB.x,i.ctrB.y,t.x,t.y)}})):a.forEach((function(t,e){e>0&&o.lineTo(t.x,t.y)})),o.lineTo(s.x,g),o.lineTo(n.x,g),o.lineTo(n.x,n.y)}else{var c=a[0];o.moveTo(c.x-d/2,c.y),o.lineTo(c.x+d/2,c.y),o.lineTo(c.x+d/2,g),o.lineTo(c.x-d/2,g),o.moveTo(c.x-d/2,c.y)}o.closePath(),o.fill(),l.addLine&&(o.beginPath(),o.setStrokeStyle(t.color),o.setLineWidth(l.width*e.pixelRatio),1===a.length?(o.moveTo(a[0].x,a[0].y),o.arc(a[0].x,a[0].y,1,0,2*Math.PI)):(o.moveTo(a[0].x,a[0].y),"curve"===l.type?a.forEach((function(t,e){if(e>0){var i=u(a,e-1);o.bezierCurveTo(i.ctrA.x,i.ctrA.y,i.ctrB.x,i.ctrB.y,t.x,t.y)}})):a.forEach((function(t,e){e>0&&o.lineTo(t.x,t.y)})),o.moveTo(a[0].x,a[0].y)),o.closePath(),o.stroke())},m=0;m<v.length;m++)y(m);if(!1!==e.dataPointShape){var b=i.dataPointShape[a%i.dataPointShape.length];lt(c,t.color,b,o,e)}})),!1!==e.dataLabel&&1===n&&t.forEach((function(t,a){var r=t.data,l=tt(r,p,f,h,d,e,i,n);ct(l,t,i,o)})),o.restore(),{xAxisPoints:h,calPoints:x,eachSpacing:d,minRange:p,maxRange:f}}function St(t,e,i,a){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=e.extra.line||{type:"straight",width:2};n.type=n.type?n.type:"straight",n.width=n.width?n.width:2;var r=[].concat(e.chartData.yAxisData.ranges),l=e.chartData.xAxisData,s=l.xAxisPoints,c=l.eachSpacing,h=r.pop(),d=r.shift(),p=[];return a.save(),e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&a.translate(e._scrollDistance_,0),t.forEach((function(t,r){var l=t.data,f=tt(l,h,d,s,c,e,i,o);p.push(f);var g=E(f);if(g.forEach((function(i,o){a.beginPath(),a.setStrokeStyle(t.color),a.setLineWidth(n.width*e.pixelRatio),1===i.length?(a.moveTo(i[0].x,i[0].y),a.arc(i[0].x,i[0].y,1,0,2*Math.PI)):(a.moveTo(i[0].x,i[0].y),"curve"===n.type?i.forEach((function(t,e){if(e>0){var o=u(i,e-1);a.bezierCurveTo(o.ctrA.x,o.ctrA.y,o.ctrB.x,o.ctrB.y,t.x,t.y)}})):i.forEach((function(t,e){e>0&&a.lineTo(t.x,t.y)})),a.moveTo(i[0].x,i[0].y)),a.closePath(),a.stroke()})),!1!==e.dataPointShape){var x=i.dataPointShape[r%i.dataPointShape.length];lt(f,t.color,x,a,e)}})),!1!==e.dataLabel&&1===o&&t.forEach((function(t,n){var r=t.data,l=tt(r,h,d,s,c,e,i,o);ct(l,t,i,a)})),a.restore(),{xAxisPoints:s,calPoints:p,eachSpacing:c,minRange:h,maxRange:d}}function Pt(t,e,i,a){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=[].concat(e.chartData.yAxisData.ranges),l=e.chartData.xAxisData,s=l.xAxisPoints,c=l.eachSpacing,h=n.pop(),d=n.shift(),p=e.height-e.area[2],f=[],g=0,x=0;if(t.forEach((function(t,e){"column"==t.type&&(x+=1)})),a.save(),e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&a.translate(e._scrollDistance_,0),t.forEach((function(t,n){var l=t.data,v=tt(l,h,d,s,c,e,i,o);if(f.push(v),"column"==t.type&&(v=Q(v,c,x,g,i,e),v.forEach((function(i,o){if(null!==i){a.beginPath(),a.setStrokeStyle(i.color||t.color),a.setLineWidth(1),a.setFillStyle(i.color||t.color);var n=i.x-i.width/2;e.height,i.y,e.area[2];a.moveTo(n,i.y),a.moveTo(n-1,i.y),a.lineTo(n+i.width-2,i.y),a.lineTo(n+i.width-2,e.height-e.area[2]),a.lineTo(n,e.height-e.area[2]),a.lineTo(n,i.y),a.closePath(),a.stroke(),a.fill(),a.closePath(),a.fill()}})),g+=1),"area"==t.type)for(var y=E(v),m=function(i){var o=y[i];if(a.beginPath(),a.setStrokeStyle(t.color),a.setFillStyle(r(t.color,.2)),a.setLineWidth(2*e.pixelRatio),o.length>1){w=o[0];var n=o[o.length-1];a.moveTo(w.x,w.y),"curve"===t.style?o.forEach((function(t,e){if(e>0){var i=u(o,e-1);a.bezierCurveTo(i.ctrA.x,i.ctrA.y,i.ctrB.x,i.ctrB.y,t.x,t.y)}})):o.forEach((function(t,e){e>0&&a.lineTo(t.x,t.y)})),a.lineTo(n.x,p),a.lineTo(w.x,p),a.lineTo(w.x,w.y)}else{var l=o[0];a.moveTo(l.x-c/2,l.y),a.lineTo(l.x+c/2,l.y),a.lineTo(l.x+c/2,p),a.lineTo(l.x-c/2,p),a.moveTo(l.x-c/2,l.y)}a.closePath(),a.fill()},b=0;b<y.length;b++){var w;m(b)}if("line"==t.type){var S=E(v);S.forEach((function(i,o){a.beginPath(),a.setStrokeStyle(t.color),a.setLineWidth(2*e.pixelRatio),1===i.length?(a.moveTo(i[0].x,i[0].y),a.arc(i[0].x,i[0].y,1,0,2*Math.PI)):(a.moveTo(i[0].x,i[0].y),"curve"==t.style?i.forEach((function(t,e){if(e>0){var o=u(i,e-1);a.bezierCurveTo(o.ctrA.x,o.ctrA.y,o.ctrB.x,o.ctrB.y,t.x,t.y)}})):i.forEach((function(t,e){e>0&&a.lineTo(t.x,t.y)})),a.moveTo(i[0].x,i[0].y)),a.closePath(),a.stroke()}))}if("point"==t.type&&v.forEach((function(i,o){i&&(a.beginPath(),a.setFillStyle(t.color),a.setStrokeStyle("#FFFFFF"),a.setLineWidth(1*e.pixelRatio),a.moveTo(i.x+3.5*e.pixelRatio,i.y),a.arc(i.x,i.y,4*e.pixelRatio,0,2*Math.PI),a.closePath(),a.fill(),a.stroke())})),1==t.addPoint&&"column"!==t.type){var P=i.dataPointShape[n%i.dataPointShape.length];lt(v,t.color,P,a,e)}})),!1!==e.dataLabel&&1===o){g=0;t.forEach((function(t,n){var r=t.data,l=tt(r,h,d,s,c,e,i,o);"column"!==t.type?ct(l,t,i,a):(l=Q(l,c,x,g,i,e),ct(l,t,i,a),g+=1)}))}return a.restore(),{xAxisPoints:s,calPoints:f,eachSpacing:c,minRange:h,maxRange:d}}function Tt(t,e,i,a,o,n){var r=t.extra.tooltip||{};r.horizentalLine&&t.tooltip&&1===a&&("line"==t.type||"area"==t.type||"column"==t.type||"candle"==t.type||"mix"==t.type)&&gt(t,e,i,o,n),i.save(),t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&i.translate(t._scrollDistance_,0),t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===a&&vt(t.tooltip.textList,t.tooltip.offset,t,e,i,o,n),i.restore()}function At(t,e,i,a){var o=e.chartData.xAxisData,n=o.xAxisPoints,r=o.startX,l=o.endX,s=o.eachSpacing,c="center";"line"!=e.type&&"area"!=e.type||(c=e.xAxis.boundaryGap);var h=e.height-e.area[2],u=e.area[0];if(e.enableScroll&&e.xAxis.scrollShow){var p=e.height-e.area[2]+i.xAxisHeight,f=l-r,g=s*(n.length-1),x=f*f/g,y=0;e._scrollDistance_&&(y=-e._scrollDistance_*f/g),a.beginPath(),a.setLineCap("round"),a.setLineWidth(6*e.pixelRatio),a.setStrokeStyle(e.xAxis.scrollBackgroundColor||"#EFEBEF"),a.moveTo(r,p),a.lineTo(l,p),a.stroke(),a.closePath(),a.beginPath(),a.setLineCap("round"),a.setLineWidth(6*e.pixelRatio),a.setStrokeStyle(e.xAxis.scrollColor||"#A6A6A6"),a.moveTo(r+y,p),a.lineTo(r+y+x,p),a.stroke(),a.closePath(),a.setLineCap("butt")}if(a.save(),e._scrollDistance_&&0!==e._scrollDistance_&&a.translate(e._scrollDistance_,0),!0!==e.xAxis.disableGrid&&(a.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),a.setLineCap("butt"),a.setLineWidth(1*e.pixelRatio),"dash"==e.xAxis.gridType&&a.setLineDash([e.xAxis.dashLength,e.xAxis.dashLength]),"calibration"===e.xAxis.type?n.forEach((function(t,i){i>0&&(a.beginPath(),a.moveTo(t-s/2,h),a.lineTo(t-s/2,h+4*e.pixelRatio),a.closePath(),a.stroke())})):(e.xAxis.gridEval=e.xAxis.gridEval||1,n.forEach((function(t,i){i%e.xAxis.gridEval==0&&(a.beginPath(),a.moveTo(t,h),a.lineTo(t,u),a.stroke())}))),a.setLineDash([])),!0!==e.xAxis.disabled){e.width,e.padding[1],e.padding[3],i.yAxisWidth,i.yAxisTitleWidth;var m=t.length;e.xAxis.labelCount&&(m=e.xAxis.itemCount?Math.ceil(t.length/e.xAxis.itemCount*e.xAxis.labelCount):e.xAxis.labelCount,m-=1);for(var b=Math.ceil(t.length/m),w=[],S=t.length,P=0;P<S;P++)P%b!==0?w.push(""):w.push(t[P]);w[S-1]=t[S-1];var T=e.xAxis.fontSize||i.fontSize;0===i._xAxisTextAngle_?w.forEach((function(t,o){var r=-v(t,T)/2;"center"==c&&(r+=s/2),a.beginPath(),a.setFontSize(T),a.setFillStyle(e.xAxis.fontColor||"#666666"),a.fillText(t,n[o]+r,h+T+(i.xAxisHeight-T)/2),a.closePath(),a.stroke()})):w.forEach((function(t,o){a.save(),a.beginPath(),a.setFontSize(T),a.setFillStyle(e.xAxis.fontColor||"#666666");var r=v(t),l=-r;"center"==c&&(l+=s/2);var u=d(n[o]+s/2,h+T/2+5,e.height),p=u.transX,f=u.transY;a.rotate(-1*i._xAxisTextAngle_),a.translate(p,f),a.fillText(t,n[o]+l,h+T+5),a.closePath(),a.stroke(),a.restore()}))}a.restore()}function Ct(t,e,i,a){if(!0!==e.yAxis.disableGrid){for(var o=e.height-e.area[0]-e.area[2],n=o/i.yAxisSplit,r=e.area[3],l=e.chartData.xAxisData.xAxisPoints,s=e.chartData.xAxisData.eachSpacing,c=s*(l.length-1),h=r+c,d=[],u=0;u<i.yAxisSplit+1;u++)d.push(e.height-e.area[2]-n*u);a.save(),e._scrollDistance_&&0!==e._scrollDistance_&&a.translate(e._scrollDistance_,0),"dash"==e.yAxis.gridType&&a.setLineDash([e.yAxis.dashLength,e.yAxis.dashLength]),a.setStrokeStyle(e.yAxis.gridColor||"#cccccc"),a.setLineWidth(1*e.pixelRatio),d.forEach((function(t,e){a.beginPath(),a.moveTo(r,t),a.lineTo(h,t),a.stroke()})),a.setLineDash([]),a.restore()}}function _t(t,e,i,a){if(!0!==e.yAxis.disabled){var o=e.chartData.yAxisData.rangesFormat,n=e.height-e.area[0]-e.area[2],r=Math.floor(n/i.yAxisSplit),l=e.area[3],s=e.width-e.area[1],c=e.height-e.area[2],h=c+i.xAxisHeight;e.xAxis.scrollShow&&(h-=3*e.pixelRatio),a.beginPath(),a.setFillStyle(e.background||"#ffffff"),e._scrollDistance_<0&&a.fillRect(0,0,l,h),1==e.enableScroll&&a.fillRect(s,0,e.width,h),a.closePath(),a.stroke();for(var d=[],u=0;u<=i.yAxisSplit;u++)d.push(e.area[0]+r*u);var p=e.yAxis.fontSize||i.fontSize;o.forEach((function(t,o){var n=d[o]?d[o]:c;a.beginPath(),a.setFontSize(p),a.setFillStyle(e.yAxis.fontColor||"#666666"),a.fillText(String(t),e.area[3]-i.yAxisWidth,n+p/2),a.closePath(),a.stroke()})),e.yAxis.title&&yt(e.yAxis.title,e,i,a)}}function Ft(t,e,i,a,o){if(!1!==e.legend.show){var n=o.legendData,r=n.points,l=n.area,s=e.legend.padding,c=e.legend.fontSize,h=15*e.pixelRatio,d=5*e.pixelRatio,u=e.legend.itemGap,p=Math.max(e.legend.lineHeight*e.pixelRatio,c);a.beginPath(),a.setLineWidth(e.legend.borderWidth),a.setStrokeStyle(e.legend.borderColor),a.setFillStyle(e.legend.backgroundColor),a.moveTo(l.start.x,l.start.y),a.rect(l.start.x,l.start.y,l.width,l.height),a.closePath(),a.fill(),a.stroke(),r.forEach((function(t,o){var r=0,f=0;r=n.widthArr[o],f=n.heightArr[o];var g=0,x=0;"top"==e.legend.position||"bottom"==e.legend.position?(g=l.start.x+(l.width-r)/2,x=l.start.y+s+o*p):(r=0==o?0:n.widthArr[o-1],g=l.start.x+s+r,x=l.start.y+s+(l.height-f)/2),a.setFontSize(i.fontSize);for(var y=0;y<t.length;y++){var m=t[y];switch(m.area=[0,0,0,0],m.area[0]=g,m.area[1]=x,m.area[3]=x+p,a.beginPath(),a.setLineWidth(1*e.pixelRatio),a.setStrokeStyle(m.show?m.color:e.legend.hiddenColor),a.setFillStyle(m.show?m.color:e.legend.hiddenColor),m.legendShape){case"line":a.moveTo(g,x+.5*p-2*e.pixelRatio),a.fillRect(g,x+.5*p-2*e.pixelRatio,15*e.pixelRatio,4*e.pixelRatio);break;case"triangle":a.moveTo(g+7.5*e.pixelRatio,x+.5*p-5*e.pixelRatio),a.lineTo(g+2.5*e.pixelRatio,x+.5*p+5*e.pixelRatio),a.lineTo(g+12.5*e.pixelRatio,x+.5*p+5*e.pixelRatio),a.lineTo(g+7.5*e.pixelRatio,x+.5*p-5*e.pixelRatio);break;case"diamond":a.moveTo(g+7.5*e.pixelRatio,x+.5*p-5*e.pixelRatio),a.lineTo(g+2.5*e.pixelRatio,x+.5*p),a.lineTo(g+7.5*e.pixelRatio,x+.5*p+5*e.pixelRatio),a.lineTo(g+12.5*e.pixelRatio,x+.5*p),a.lineTo(g+7.5*e.pixelRatio,x+.5*p-5*e.pixelRatio);break;case"circle":a.moveTo(g+7.5*e.pixelRatio,x+.5*p),a.arc(g+7.5*e.pixelRatio,x+.5*p,5*e.pixelRatio,0,2*Math.PI);break;case"rect":a.moveTo(g,x+.5*p-5*e.pixelRatio),a.fillRect(g,x+.5*p-5*e.pixelRatio,15*e.pixelRatio,10*e.pixelRatio);break;default:a.moveTo(g,x+.5*p-5*e.pixelRatio),a.fillRect(g,x+.5*p-5*e.pixelRatio,15*e.pixelRatio,10*e.pixelRatio)}a.closePath(),a.fill(),a.stroke(),g+=h+d;var b=.5*p+.5*c-2;a.beginPath(),a.setFontSize(c),a.setFillStyle(m.show?e.legend.fontColor:e.legend.hiddenColor),a.fillText(m.name,g,x+b),a.closePath(),a.stroke(),"top"==e.legend.position||"bottom"==e.legend.position?(g+=v(m.name,c)+u,m.area[2]=g):(m.area[2]=g+v(m.name,c)+u,g-=h+d,x+=p)}}))}}function kt(t,e,i,o){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=a({},{activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,ringWidth:0,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.pie),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==i.pieChartLinePadding&&(i.pieChartLinePadding=l.activeRadius);var c=Math.min((e.width-e.area[1]-e.area[3])/2-i.pieChartLinePadding-i.pieChartTextPadding-i._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-i.pieChartLinePadding-i.pieChartTextPadding);t=q(t,c,n);var h=l.activeRadius;if(t=t.map((function(t){return t._start_+=l.offsetAngle*Math.PI/180,t})),t.forEach((function(t,i){e.tooltip&&e.tooltip.index==i&&(o.beginPath(),o.setFillStyle(r(t.color,e.extra.pie.activeOpacity||.5)),o.moveTo(s.x,s.y),o.arc(s.x,s.y,t._radius_+h,t._start_,t._start_+2*t._proportion_*Math.PI),o.closePath(),o.fill()),o.beginPath(),o.setLineWidth(l.borderWidth*e.pixelRatio),o.lineJoin="round",o.setStrokeStyle(l.borderColor),o.setFillStyle(t.color),o.moveTo(s.x,s.y),o.arc(s.x,s.y,t._radius_,t._start_,t._start_+2*t._proportion_*Math.PI),o.closePath(),o.fill(),1==l.border&&o.stroke()})),"ring"===e.type){var d=.6*c;"number"===typeof e.extra.pie.ringWidth&&e.extra.pie.ringWidth>0&&(d=Math.max(0,c-e.extra.pie.ringWidth)),o.beginPath(),o.setFillStyle(e.background||"#ffffff"),o.moveTo(s.x,s.y),o.arc(s.x,s.y,d,0,2*Math.PI),o.closePath(),o.fill()}if(!1!==e.dataLabel&&1===n){for(var u=!1,p=0,f=t.length;p<f;p++)if(t[p].data>0){u=!0;break}u&&ut(t,e,i,o,c,s)}return 1===n&&"ring"===e.type&&st(e,i,o,s),{center:s,radius:c,series:t}}function Rt(t,e,i,o){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=a({},{type:"area",activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.rose);0==i.pieChartLinePadding&&(i.pieChartLinePadding=l.activeRadius);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},c=Math.min((e.width-e.area[1]-e.area[3])/2-i.pieChartLinePadding-i.pieChartTextPadding-i._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-i.pieChartLinePadding-i.pieChartTextPadding),h=l.minRadius||.5*c;t=j(t,l.type,h,c,n);var d=l.activeRadius;if(t=t.map((function(t){return t._start_+=(l.offsetAngle||0)*Math.PI/180,t})),t.forEach((function(t,i){e.tooltip&&e.tooltip.index==i&&(o.beginPath(),o.setFillStyle(r(t.color,l.activeOpacity||.5)),o.moveTo(s.x,s.y),o.arc(s.x,s.y,d+t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),o.closePath(),o.fill()),o.beginPath(),o.setLineWidth(l.borderWidth*e.pixelRatio),o.lineJoin="round",o.setStrokeStyle(l.borderColor),o.setFillStyle(t.color),o.moveTo(s.x,s.y),o.arc(s.x,s.y,t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),o.closePath(),o.fill(),1==l.border&&o.stroke()})),!1!==e.dataLabel&&1===n){for(var u=!1,p=0,f=t.length;p<f;p++)if(t[p].data>0){u=!0;break}u&&ut(t,e,i,o,c,s)}return{center:s,radius:c,series:t}}function Mt(t,e,i,o){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=a({},{startAngle:.75,endAngle:.25,type:"default",width:12*e.pixelRatio},e.extra.arcbar);t=N(t,r,n);var l={x:e.width/2,y:e.height/2},s=Math.min(l.x,l.y);s-=5*e.pixelRatio,s-=r.width/2,o.setLineWidth(r.width),o.setStrokeStyle(r.backgroundColor||"#E9E9E9"),o.setLineCap("round"),o.beginPath(),"default"==r.type?o.arc(l.x,l.y,s,r.startAngle*Math.PI,r.endAngle*Math.PI,!1):o.arc(l.x,l.y,s,0,2*Math.PI,!1),o.stroke();for(var c=0;c<t.length;c++){var h=t[c];o.setLineWidth(r.width),o.setStrokeStyle(h.color),o.setLineCap("round"),o.beginPath(),o.arc(l.x,l.y,s,r.startAngle*Math.PI,h._proportion_*Math.PI,!1),o.stroke()}return st(e,i,o,l),{center:l,radius:s,series:t}}function Lt(t,e,i,o,n){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,l=a({},{startAngle:.75,endAngle:.25,width:15,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},i.extra.gauge);void 0==l.oldAngle&&(l.oldAngle=l.startAngle),void 0==l.oldData&&(l.oldData=0),t=X(t,l.startAngle,l.endAngle);var s={x:i.width/2,y:i.height/2},c=Math.min(s.x,s.y);c-=5*i.pixelRatio,c-=l.width/2;var h=c-l.width;n.setLineWidth(l.width),n.setLineCap("butt");for(var d=0;d<t.length;d++){var u=t[d];n.beginPath(),n.setStrokeStyle(u.color),n.arc(s.x,s.y,c,u._startAngle_*Math.PI,u._endAngle_*Math.PI,!1),n.stroke()}n.save();var p=l.startAngle-l.endAngle+1,f=p/l.splitLine.splitNumber,g=p/l.splitLine.splitNumber/l.splitLine.childNumber,x=-c-.5*l.width-l.splitLine.fixRadius,v=-c-.5*l.width-l.splitLine.fixRadius+l.splitLine.width,y=-c-.5*l.width-l.splitLine.fixRadius+l.splitLine.childWidth;n.translate(s.x,s.y),n.rotate((l.startAngle-1)*Math.PI);for(var m=0;m<l.splitLine.splitNumber+1;m++)n.beginPath(),n.setStrokeStyle(l.splitLine.color),n.setLineWidth(2*i.pixelRatio),n.moveTo(x,0),n.lineTo(v,0),n.stroke(),n.rotate(f*Math.PI);n.restore(),n.save(),n.translate(s.x,s.y),n.rotate((l.startAngle-1)*Math.PI);for(var b=0;b<l.splitLine.splitNumber*l.splitLine.childNumber+1;b++)n.beginPath(),n.setStrokeStyle(l.splitLine.color),n.setLineWidth(1*i.pixelRatio),n.moveTo(x,0),n.lineTo(y,0),n.stroke(),n.rotate(g*Math.PI);n.restore(),e=U(e,t,l,r);for(var w=0;w<e.length;w++){var S=e[w];n.save(),n.translate(s.x,s.y),n.rotate((S._proportion_-1)*Math.PI),n.beginPath(),n.setFillStyle(S.color),n.moveTo(l.pointer.width,0),n.lineTo(0,-l.pointer.width/2),n.lineTo(-h,0),n.lineTo(0,l.pointer.width/2),n.lineTo(l.pointer.width,0),n.closePath(),n.fill(),n.beginPath(),n.setFillStyle("#FFFFFF"),n.arc(0,0,l.pointer.width/6,0,2*Math.PI,!1),n.fill(),n.restore()}return!1!==i.dataLabel&&ht(l,c,s,i,o,n),st(i,o,n,s),1===r&&"gauge"===i.type&&(i.extra.gauge.oldAngle=e[0]._proportion_,i.extra.gauge.oldData=e[0].data),{center:s,radius:c,innerRadius:h,categories:t,totalAngle:p}}function Dt(t,e,i,o){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=a({},{gridColor:"#cccccc",labelColor:"#666666",opacity:.2},e.extra.radar),s=P(e.categories.length),c={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},h=Math.min(c.x-(S(e.categories)+i.radarLabelTextMargin),c.y-i.radarLabelTextMargin);h-=e.padding[1],o.beginPath(),o.setLineWidth(1*e.pixelRatio),o.setStrokeStyle(l.gridColor),s.forEach((function(t){var e=p(h*Math.cos(t),h*Math.sin(t),c);o.moveTo(c.x,c.y),o.lineTo(e.x,e.y)})),o.stroke(),o.closePath();for(var d=function(t){var a={};o.beginPath(),o.setLineWidth(1*e.pixelRatio),o.setStrokeStyle(l.gridColor),s.forEach((function(e,n){var r=p(h/i.radarGridCount*t*Math.cos(e),h/i.radarGridCount*t*Math.sin(e),c);0===n?(a=r,o.moveTo(r.x,r.y)):o.lineTo(r.x,r.y)})),o.lineTo(a.x,a.y),o.stroke(),o.closePath()},u=1;u<=i.radarGridCount;u++)d(u);var f=B(s,c,h,t,e,n);return f.forEach((function(t,a){if(o.beginPath(),o.setFillStyle(r(t.color,l.opacity)),t.data.forEach((function(t,e){0===e?o.moveTo(t.position.x,t.position.y):o.lineTo(t.position.x,t.position.y)})),o.closePath(),o.fill(),!1!==e.dataPointShape){var n=i.dataPointShape[a%i.dataPointShape.length],s=t.data.map((function(t){return t.position}));lt(s,t.color,n,o,e)}})),dt(s,h,c,e,i,o),{center:c,radius:h,angleList:s}}function zt(t,e,i){i=0==i?1:i;for(var a=[],o=0;o<i;o++)a[o]=Math.random();return Math.floor(a.reduce((function(t,e){return t+e}))/i*(e-t))+t}function It(t,e,i,a){for(var o=!1,n=0;n<e.length;n++)if(e[n].area){if(!(t[3]<e[n].area[1]||t[0]>e[n].area[2]||t[1]>e[n].area[3]||t[2]<e[n].area[0])){o=!0;break}if(t[0]<0||t[1]<0||t[2]>i||t[3]>a){o=!0;break}o=!1}return o}function Ot(t){var e,i={};i.xMin=180,i.xMax=0,i.yMin=90,i.yMax=0;for(var a=0;a<t.length;a++)for(var o=t[a].geometry.coordinates,n=0;n<o.length;n++){e=o[n],1==e.length&&(e=e[0]);for(var r=0;r<e.length;r++){var l=e[r][0],s=e[r][1],c={x:l,y:s};i.xMin=i.xMin<c.x?i.xMin:c.x,i.xMax=i.xMax>c.x?i.xMax:c.x,i.yMin=i.yMin<c.y?i.yMin:c.y,i.yMax=i.yMax>c.y?i.yMax:c.y}}return i}function Wt(t,e,i,a,o,n){return{x:(e-i.xMin)*a+o,y:(i.yMax-t)*a+n}}function Et(t,e,i,a,o,n){return{x:(e-o)/a+i.xMin,y:i.yMax-(t-n)/a}}function Gt(t,e,i){if(e[1]==i[1])return!1;if(e[1]>t[1]&&i[1]>t[1])return!1;if(e[1]<t[1]&&i[1]<t[1])return!1;if(e[1]==t[1]&&i[1]>t[1])return!1;if(i[1]==t[1]&&e[1]>t[1])return!1;if(e[0]<t[0]&&i[1]<t[1])return!1;var a=i[0]-(i[0]-e[0])*(i[1]-t[1])/(i[1]-e[1]);return!(a<t[0])}function Ht(t,e){for(var i=0,a=0;a<e.length;a++){var o=e[a][0];1==e.length&&(o=e[a][0]);for(var n=0;n<o.length-1;n++){var r=o[n],l=o[n+1];Gt(t,r,l)&&(i+=1)}}return i%2==1}function Bt(t,e,i,o){var n,l,s=a({},{border:!0,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},e.extra.map),c=t,h=Ot(c),d=e.width/Math.abs(h.xMax-h.xMin),u=e.height/Math.abs(h.yMax-h.yMin),p=d<u?d:u,f=e.width/2-Math.abs(h.xMax-h.xMin)/2*p,g=e.height/2-Math.abs(h.yMax-h.yMin)/2*p;o.beginPath(),o.clearRect(0,0,e.width,e.height),o.setFillStyle(e.background||"#FFFFFF"),o.rect(0,0,e.width,e.height),o.fill();for(var x=0;x<c.length;x++){o.beginPath(),o.setLineWidth(s.borderWidth*e.pixelRatio),o.setStrokeStyle(s.borderColor),o.setFillStyle(r(t[x].color,s.fillOpacity)),e.tooltip&&e.tooltip.index==x&&(o.setStrokeStyle(s.activeBorderColor),o.setFillStyle(r(s.activeFillColor,s.activeFillOpacity)));for(var y=c[x].geometry.coordinates,m=0;m<y.length;m++){n=y[m],1==n.length&&(n=n[0]);for(var b=0;b<n.length;b++)l=Wt(n[b][1],n[b][0],h,p,f,g),0===b?(o.beginPath(),o.moveTo(l.x,l.y)):o.lineTo(l.x,l.y);o.fill(),1==s.border&&o.stroke()}if(1==e.dataLabel){var w=c[x].properties.centroid;if(w){l=Wt(w[1],w[0],h,p,f,g);var S=c[x].textSize||i.fontSize,P=c[x].properties.name;o.beginPath(),o.setFontSize(S),o.setFillStyle(c[x].textColor||"#666666"),o.fillText(P,l.x-v(P,S)/2,l.y+S/2),o.closePath(),o.stroke()}}}e.chartData.mapData={bounds:h,scale:p,xoffset:f,yoffset:g},Tt(e,i,o,1),o.draw()}function qt(t,e){var i=t.series.sort((function(t,e){return parseInt(e.textSize)-parseInt(t.textSize)}));switch(e){case"normal":for(var a=0;a<i.length;a++){var o=i[a].name,n=i[a].textSize,r=v(o,n),l=void 0,s=void 0,c=void 0,h=0;while(1){h++,l=zt(-t.width/2,t.width/2,5)-r/2,s=zt(-t.height/2,t.height/2,5)+n/2,c=[l-5+t.width/2,s-5-n+t.height/2,l+r+5+t.width/2,s+5+t.height/2];var d=It(c,i,t.width,t.height);if(!d)break;if(1e3==h){c=[-100,-100,-100,-100];break}}i[a].area=c}break;case"vertical":for(var u=function(){return Math.random()>.7},p=0;p<i.length;p++){var f=i[p].name,g=i[p].textSize,x=v(f,g),y=u(),m=void 0,b=void 0,w=void 0,S=void 0,P=0;while(1){P++;var T=void 0;if(y?(m=zt(-t.width/2,t.width/2,5)-x/2,b=zt(-t.height/2,t.height/2,5)+g/2,w=[b-5-x+t.width/2,-m-5+t.height/2,b+5+t.width/2,-m+g+5+t.height/2],S=[t.width-(t.width/2-t.height/2)-(-m+g+5+t.height/2)-5,t.height/2-t.width/2+(b-5-x+t.width/2)-5,t.width-(t.width/2-t.height/2)-(-m+g+5+t.height/2)+g,t.height/2-t.width/2+(b-5-x+t.width/2)+x+5],T=It(S,i,t.height,t.width)):(m=zt(-t.width/2,t.width/2,5)-x/2,b=zt(-t.height/2,t.height/2,5)+g/2,w=[m-5+t.width/2,b-5-g+t.height/2,m+x+5+t.width/2,b+5+t.height/2],T=It(w,i,t.width,t.height)),!T)break;if(1e3==P){w=[-1e3,-1e3,-1e3,-1e3];break}}y?(i[p].area=S,i[p].areav=w):i[p].area=w,i[p].rotate=y}break}return i}function $t(t,e,i,o){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;a({},{type:"normal",autoColors:!0},e.extra.word);o.beginPath(),o.setFillStyle(e.background||"#FFFFFF"),o.rect(0,0,e.width,e.height),o.fill(),o.save();var r=e.chartData.wordCloudData;o.translate(e.width/2,e.height/2);for(var l=0;l<r.length;l++){o.save(),r[l].rotate&&o.rotate(90*Math.PI/180);var s=r[l].name,c=r[l].textSize,h=v(s,c);o.beginPath(),o.setStrokeStyle(r[l].color),o.setFillStyle(r[l].color),o.setFontSize(c),r[l].rotate?r[l].areav[0]>0&&(e.tooltip&&e.tooltip.index==l?o.strokeText(s,(r[l].areav[0]+5-e.width/2)*n-h*(1-n)/2,(r[l].areav[1]+5+c-e.height/2)*n):o.fillText(s,(r[l].areav[0]+5-e.width/2)*n-h*(1-n)/2,(r[l].areav[1]+5+c-e.height/2)*n)):r[l].area[0]>0&&(e.tooltip&&e.tooltip.index==l?o.strokeText(s,(r[l].area[0]+5-e.width/2)*n-h*(1-n)/2,(r[l].area[1]+5+c-e.height/2)*n):o.fillText(s,(r[l].area[0]+5-e.width/2)*n-h*(1-n)/2,(r[l].area[1]+5+c-e.height/2)*n)),o.stroke(),o.restore()}o.restore()}function jt(t,e,i,o){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=a({},{activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"},e.extra.funnel),s=(e.height-e.area[0]-e.area[2])/t.length,c={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.height-e.area[2]},h=l.activeWidth,d=Math.min((e.width-e.area[1]-e.area[3])/2-h,(e.height-e.area[0]-e.area[2])/2-h);t=$(t,d,n),o.save(),o.translate(c.x,c.y);for(var u=0;u<t.length;u++)0==u?(e.tooltip&&e.tooltip.index==u&&(o.beginPath(),o.setFillStyle(r(t[u].color,l.activeOpacity)),o.moveTo(-h,0),o.lineTo(-t[u].radius-h,-s),o.lineTo(t[u].radius+h,-s),o.lineTo(h,0),o.lineTo(-h,0),o.closePath(),o.fill()),t[u].funnelArea=[c.x-t[u].radius,c.y-s,c.x+t[u].radius,c.y],o.beginPath(),o.setLineWidth(l.borderWidth*e.pixelRatio),o.setStrokeStyle(l.borderColor),o.setFillStyle(r(t[u].color,l.fillOpacity)),o.moveTo(0,0),o.lineTo(-t[u].radius,-s),o.lineTo(t[u].radius,-s),o.lineTo(0,0),o.closePath(),o.fill(),1==l.border&&o.stroke()):(e.tooltip&&e.tooltip.index==u&&(o.beginPath(),o.setFillStyle(r(t[u].color,l.activeOpacity)),o.moveTo(0,0),o.lineTo(-t[u-1].radius-h,0),o.lineTo(-t[u].radius-h,-s),o.lineTo(t[u].radius+h,-s),o.lineTo(t[u-1].radius+h,0),o.lineTo(0,0),o.closePath(),o.fill(),o.closePath(),o.fill()),t[u].funnelArea=[c.x-t[u].radius,c.y-s*(u+1),c.x+t[u].radius,c.y-s*u],o.beginPath(),o.setLineWidth(l.borderWidth*e.pixelRatio),o.setStrokeStyle(l.borderColor),o.setFillStyle(r(t[u].color,l.fillOpacity)),o.moveTo(0,0),o.lineTo(-t[u-1].radius,0),o.lineTo(-t[u].radius,-s),o.lineTo(t[u].radius,-s),o.lineTo(t[u-1].radius,0),o.lineTo(0,0),o.closePath(),o.fill(),1==l.border&&o.stroke()),o.translate(0,-s);return o.restore(),!1!==e.dataLabel&&1===n&&Nt(t,e,o,s,l.labelAlign,h,c),{center:c,radius:d,series:t}}function Nt(t,e,i,a,o,r,l){for(var s=0;s<t.length;s++){var c=t[s],h=void 0,d=void 0,u=void 0,p=void 0,f=c.format?c.format(+c._proportion_.toFixed(2)):n.toFixed(100*c._proportion_)+"%";"right"==o?(h=0==s?(c.funnelArea[2]+l.x)/2:(c.funnelArea[2]+t[s-1].funnelArea[2])/2,d=h+2*r,u=c.funnelArea[1]+a/2,p=c.textSize||e.fontSize,i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(c.color),i.setFillStyle(c.color),i.beginPath(),i.moveTo(h,u),i.lineTo(d,u),i.stroke(),i.closePath(),i.beginPath(),i.moveTo(d,u),i.arc(d,u,2,0,2*Math.PI),i.closePath(),i.fill(),i.beginPath(),i.setFontSize(p),i.setFillStyle(c.textColor||"#666666"),i.fillText(f,d+5,u+p/2-2),i.closePath(),i.stroke(),i.closePath()):(h=0==s?(c.funnelArea[0]+l.x)/2:(c.funnelArea[0]+t[s-1].funnelArea[0])/2,d=h-2*r,u=c.funnelArea[1]+a/2,p=c.textSize||e.fontSize,i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(c.color),i.setFillStyle(c.color),i.beginPath(),i.moveTo(h,u),i.lineTo(d,u),i.stroke(),i.closePath(),i.beginPath(),i.moveTo(d,u),i.arc(d,u,2,0,2*Math.PI),i.closePath(),i.fill(),i.beginPath(),i.setFontSize(p),i.setFillStyle(c.textColor||"#666666"),i.fillText(f,d-5-v(f),u+p/2-2),i.closePath(),i.stroke(),i.closePath())}}function Xt(t,e){e.draw()}var Ut={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 Yt(t){this.isStop=!1,t.duration="undefined"===typeof t.duration?1e3:t.duration,t.timing=t.timing||"linear";var e=17;function i(){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 a=i(),o=null,n=function(i){if(null===i||!0===this.isStop)return t.onProcess&&t.onProcess(1),void(t.onAnimationFinish&&t.onAnimationFinish());if(null===o&&(o=i),i-o<t.duration){var r=(i-o)/t.duration,l=Ut[t.timing];r=l(r),t.onProcess&&t.onProcess(r),a(n,e)}else t.onProcess&&t.onProcess(1),t.onAnimationFinish&&t.onAnimationFinish()};n=n.bind(this),a(n,e)}function Qt(t,e,i,o){var n=this,r=e.series,l=e.categories;r=g(r,e,i);var c=e.animation?e.duration:0;this.animationInstance&&this.animationInstance.stop();var h=null;if("candle"==t){var d=a({},e.extra.candle.average);d.show?(h=s(d.day,d.name,d.color,r[0].data),h=g(h,e,i),e.seriesMA=h):h=e.seriesMA?e.seriesMA=g(e.seriesMA,e,i):r}else h=r;e._series_=r=_(r),e.area=new Array(4);for(var u=0;u<4;u++)e.area[u]=e.padding[u];var p=G(h,e,i,e.chartData),f=p.area.wholeHeight,x=p.area.wholeWidth;switch(i.legendHeight=f,e.legend.position){case"top":e.area[0]+=f;break;case"bottom":e.area[2]+=f;break;case"left":e.area[3]+=x;break;case"right":e.area[1]+=x;break}var v={},y=0;if("line"===e.type||"column"===e.type||"area"===e.type||"mix"===e.type||"candle"===e.type?(v=at(r,e,i),y=v.yAxisWidth,i.yAxisWidth=y,e.area[3]+=y):i.yAxisWidth=y,e.chartData.yAxisData=v,e.categories&&e.categories.length){e.chartData.xAxisData=K(e.categories,e,i);var m=H(e.categories,e,i,e.chartData.xAxisData.eachSpacing),b=m.xAxisHeight,w=m.angle;i.xAxisHeight=b,i._xAxisTextAngle_=w,e.area[2]+=b,e.chartData.categoriesData=m}if(e.enableScroll&&"right"==e.xAxis.scrollAlign&&void 0===e._scrollDistance_){var S=0,P=e.chartData.xAxisData.xAxisPoints,T=e.chartData.xAxisData.startX,A=e.chartData.xAxisData.endX,C=e.chartData.xAxisData.eachSpacing,F=C*(P.length-1),k=A-T;S=k-F,n.scrollOption={currentOffset:S,startTouchX:S,distance:0,lastMoveTime:0},e._scrollDistance_=S}switch("pie"!==t&&"ring"!==t&&"rose"!==t||(i._pieTextMaxLength_=!1===e.dataLabel?0:Y(h)),t){case"word":var R=a({},{type:"normal",autoColors:!0},e.extra.word);1!=e.updateData&&void 0!=e.updateData||(e.chartData.wordCloudData=qt(e,R.type)),this.animationInstance=new Yt({timing:"easeInOut",duration:c,onProcess:function(t){o.clearRect(0,0,e.width,e.height),e.rotate&&rt(o,e),$t(r,e,i,o,t),Xt(e,o)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"map":o.clearRect(0,0,e.width,e.height),Bt(r,e,i,o);break;case"funnel":this.animationInstance=new Yt({timing:"easeInOut",duration:c,onProcess:function(t){o.clearRect(0,0,e.width,e.height),e.rotate&&rt(o,e),e.chartData.funnelData=jt(r,e,i,o,t),Ft(e.series,e,i,o,e.chartData),Tt(e,i,o,t),Xt(e,o)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"line":this.animationInstance=new Yt({timing:"easeIn",duration:c,onProcess:function(t){o.clearRect(0,0,e.width,e.height),e.rotate&&rt(o,e),Ct(l,e,i,o),At(l,e,i,o);var a=St(r,e,i,o,t),n=a.xAxisPoints,s=a.calPoints,c=a.eachSpacing,h=a.minRange,d=a.maxRange;e.chartData.xAxisPoints=n,e.chartData.calPoints=s,e.chartData.eachSpacing=c,_t(r,e,i,o),!1!==e.enableMarkLine&&1===t&&ft(h,d,e,i,o),Ft(e.series,e,i,o,e.chartData),Tt(e,i,o,t,c,n),Xt(e,o)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"mix":this.animationInstance=new Yt({timing:"easeIn",duration:c,onProcess:function(t){o.clearRect(0,0,e.width,e.height),e.rotate&&rt(o,e),Ct(l,e,i,o),At(l,e,i,o);var a=Pt(r,e,i,o,t),n=a.xAxisPoints,s=a.calPoints,c=a.eachSpacing,h=a.minRange,d=a.maxRange;e.chartData.xAxisPoints=n,e.chartData.calPoints=s,e.chartData.eachSpacing=c,_t(r,e,i,o),!1!==e.enableMarkLine&&1===t&&ft(h,d,e,i,o),Ft(e.series,e,i,o,e.chartData),Tt(e,i,o,t,c,n),Xt(e,o)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"column":this.animationInstance=new Yt({timing:"easeIn",duration:c,onProcess:function(t){o.clearRect(0,0,e.width,e.height),e.rotate&&rt(o,e),Ct(l,e,i,o),At(l,e,i,o);var a=mt(r,e,i,o,t),n=a.xAxisPoints,s=a.calPoints,c=a.eachSpacing,h=a.minRange,d=a.maxRange;e.chartData.xAxisPoints=n,e.chartData.calPoints=s,e.chartData.eachSpacing=c,_t(r,e,i,o),!1!==e.enableMarkLine&&1===t&&ft(h,d,e,i,o),Ft(e.series,e,i,o,e.chartData),Tt(e,i,o,t,c,n),Xt(e,o)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"area":this.animationInstance=new Yt({timing:"easeIn",duration:c,onProcess:function(t){o.clearRect(0,0,e.width,e.height),e.rotate&&rt(o,e),Ct(l,e,i,o),At(l,e,i,o);var a=wt(r,e,i,o,t),n=a.xAxisPoints,s=a.calPoints,c=a.eachSpacing,h=a.minRange,d=a.maxRange;e.chartData.xAxisPoints=n,e.chartData.calPoints=s,e.chartData.eachSpacing=c,_t(r,e,i,o),!1!==e.enableMarkLine&&1===t&&ft(h,d,e,i,o),Ft(e.series,e,i,o,e.chartData),Tt(e,i,o,t,c,n),Xt(e,o)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"ring":case"pie":this.animationInstance=new Yt({timing:"easeInOut",duration:c,onProcess:function(t){o.clearRect(0,0,e.width,e.height),e.rotate&&rt(o,e),e.chartData.pieData=kt(r,e,i,o,t),Ft(e.series,e,i,o,e.chartData),Tt(e,i,o,t),Xt(e,o)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"rose":this.animationInstance=new Yt({timing:"easeInOut",duration:c,onProcess:function(t){o.clearRect(0,0,e.width,e.height),e.rotate&&rt(o,e),e.chartData.pieData=Rt(r,e,i,o,t),Ft(e.series,e,i,o,e.chartData),Tt(e,i,o,t),Xt(e,o)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"radar":this.animationInstance=new Yt({timing:"easeInOut",duration:c,onProcess:function(t){o.clearRect(0,0,e.width,e.height),e.rotate&&rt(o,e),e.chartData.radarData=Dt(r,e,i,o,t),Ft(e.series,e,i,o,e.chartData),Tt(e,i,o,t),Xt(e,o)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new Yt({timing:"easeInOut",duration:c,onProcess:function(t){o.clearRect(0,0,e.width,e.height),e.rotate&&rt(o,e),e.chartData.arcbarData=Mt(r,e,i,o,t),Xt(e,o)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new Yt({timing:"easeInOut",duration:c,onProcess:function(t){o.clearRect(0,0,e.width,e.height),e.rotate&&rt(o,e),e.chartData.gaugeData=Lt(l,r,e,i,o,t),Xt(e,o)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"candle":this.animationInstance=new Yt({timing:"easeIn",duration:c,onProcess:function(t){o.clearRect(0,0,e.width,e.height),e.rotate&&rt(o,e),Ct(l,e,i,o),At(l,e,i,o);var a=bt(r,h,e,i,o,t),n=a.xAxisPoints,s=a.calPoints,c=a.eachSpacing,d=a.minRange,u=a.maxRange;e.chartData.xAxisPoints=n,e.chartData.calPoints=s,e.chartData.eachSpacing=c,_t(r,e,i,o),!1!==e.enableMarkLine&&1===t&&ft(d,u,e,i,o),Ft(h||e.series,e,i,o,e.chartData),Tt(e,i,o,t,c,n),Xt(e,o)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break}}function Jt(){this.events={}}Yt.prototype.stop=function(){this.isStop=!0},Jt.prototype.addEventListener=function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},Jt.prototype.trigger=function(){for(var t=arguments.length,i=Array(t),a=0;a<t;a++)i[a]=arguments[a];var o=i[0],n=i.slice(1);this.events[o]&&this.events[o].forEach((function(t){try{t.apply(null,n)}catch(i){e.error(i)}}))};var Vt=function(t){t.pixelRatio=t.pixelRatio?t.pixelRatio:1,t.fontSize=t.fontSize?t.fontSize*t.pixelRatio:13*t.pixelRatio,t.title=a({},t.title),t.subtitle=a({},t.subtitle),t.duration=t.duration?t.duration:1e3,t.yAxis=a({},{gridType:"solid",dashLength:4*t.pixelRatio},t.yAxis),t.xAxis=a({},{rotateLabel:!1,type:"calibration",gridType:"solid",dashLength:4*t.pixelRatio,scrollAlign:"left",boundaryGap:"center"},t.xAxis),t.legend=a({},{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:"#333333",format:{},hiddenColor:"#CECECE"},t.legend),t.legend.borderWidth=t.legend.borderWidth*t.pixelRatio,t.legend.itemGap=t.legend.itemGap*t.pixelRatio,t.legend.padding=t.legend.padding*t.pixelRatio,t.legend.margin=t.legend.margin*t.pixelRatio,t.extra=a({},t.extra),t.rotate=!!t.rotate,t.animation=!!t.animation;var e=JSON.parse(JSON.stringify(o));if(e.colors=t.colors?t.colors:e.colors,e.yAxisTitleWidth=!0!==t.yAxis.disabled&&t.yAxis.title?e.yAxisTitleWidth:0,"pie"!=t.type&&"ring"!=t.type||(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.pie.labelWidth*t.pixelRatio||e.pieChartLinePadding*t.pixelRatio),"rose"==t.type&&(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.rose.labelWidth*t.pixelRatio||e.pieChartLinePadding*t.pixelRatio),e.pieChartTextPadding=!1===t.dataLabel?0:e.pieChartTextPadding*t.pixelRatio,e.yAxisSplit=t.yAxis.splitNumber?t.yAxis.splitNumber:o.yAxisSplit,e.rotate=t.rotate,t.rotate){var i=t.width,n=t.height;t.width=n,t.height=i}t.padding=t.padding?t.padding:e.padding;for(var r=0;r<4;r++)t.padding[r]*=t.pixelRatio;e.yAxisWidth=o.yAxisWidth*t.pixelRatio,e.xAxisHeight=o.xAxisHeight*t.pixelRatio,t.enableScroll&&t.xAxis.scrollShow&&(e.xAxisHeight+=6*t.pixelRatio),e.xAxisLineHeight=o.xAxisLineHeight*t.pixelRatio,e.legendHeight=o.legendHeight*t.pixelRatio,e.fontSize=t.fontSize,e.titleFontSize=o.titleFontSize*t.pixelRatio,e.subtitleFontSize=o.subtitleFontSize*t.pixelRatio,e.toolTipPadding=o.toolTipPadding*t.pixelRatio,e.toolTipLineHeight=o.toolTipLineHeight*t.pixelRatio,e.columePadding=o.columePadding*t.pixelRatio,t.$this=t.$this?t.$this:this,this.context=uni.createCanvasContext(t.canvasId,t.$this),t.chartData={},this.event=new Jt,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0},this.opts=t,this.config=e,Qt.call(this,t.type,t,e,this.context)};Vt.prototype.updateData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.opts=a({},this.opts,t),this.opts.updateData=!0;var e=t.scrollPosition||"current";switch(e){case"current":this.opts._scrollDistance_=this.scrollOption.currentOffset;break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var i=at(this.opts.series,this.opts,this.config),o=i.yAxisWidth;this.config.yAxisWidth=o;var n=0,r=K(this.opts.categories,this.opts,this.config),l=r.xAxisPoints,s=r.startX,c=r.endX,h=r.eachSpacing,d=h*(l.length-1),u=c-s;n=u-d,this.scrollOption={currentOffset:n,startTouchX:n,distance:0,lastMoveTime:0},this.opts._scrollDistance_=n;break}Qt.call(this,this.opts.type,this.opts,this.config,this.context)},Vt.prototype.zoom=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var i=Math.round(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+Math.round(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=t.itemCount;var a=at(this.opts.series,this.opts,this.config),o=a.yAxisWidth;this.config.yAxisWidth=o;var n=0,r=K(this.opts.categories,this.opts,this.config),l=r.xAxisPoints,s=r.startX,c=r.endX,h=r.eachSpacing,d=h*i,u=c-s,p=u-h*(l.length-1);n=u/2-d,n>0&&(n=0),n<p&&(n=p),this.scrollOption={currentOffset:n,startTouchX:n,distance:0,lastMoveTime:0},this.opts._scrollDistance_=n,Qt.call(this,this.opts.type,this.opts,this.config,this.context)}else e.log("请启用滚动条后使用!")},Vt.prototype.stopAnimation=function(){this.animationInstance&&this.animationInstance.stop()},Vt.prototype.addEventListener=function(t,e){this.event.addEventListener(t,e)},Vt.prototype.getCurrentDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var i=b(e,this.opts,t);return"pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type?O({x:i.x,y:i.y},this.opts.chartData.pieData):"radar"===this.opts.type?L({x:i.x,y:i.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?D({x:i.x,y:i.y},this.opts.chartData.funnelData):"map"===this.opts.type?I({x:i.x,y:i.y},this.opts):"word"===this.opts.type?z({x:i.x,y:i.y},this.opts.chartData.wordCloudData):F({x:i.x,y:i.y},this.opts.chartData.xAxisPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset))}return-1},Vt.prototype.getLegendDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var i=b(e,this.opts,t);return k({x:i.x,y:i.y},this.opts.chartData.legendData)}return-1},Vt.prototype.touchLegend=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null;if(i=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],i){b(i,this.opts,t);var a=this.getLegendDataIndex(t);a>=0&&(this.opts.series[a].show=!this.opts.series[a].show,this.opts.animation=!!e.animation,Qt.call(this,this.opts.type,this.opts,this.config,this.context))}},Vt.prototype.showToolTip=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null;o=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],o||e.log("touchError");var n=b(o,this.opts,t),r=this.scrollOption.currentOffset,l=a({},this.opts,{_scrollDistance_:r,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type){var s=this.getCurrentDataIndex(t);if(s>-1){var c=w(this.opts.series,s);if(0!==c.length){var h=T(c,this.opts.chartData.calPoints,s,this.opts.categories,i),d=h.textList,u=h.offset;u.y=n.y,l.tooltip={textList:d,offset:u,option:i,index:s}}}Qt.call(this,l.type,l,this.config,this.context)}if("mix"===this.opts.type){s=this.getCurrentDataIndex(t);if(s>-1){r=this.scrollOption.currentOffset,l=a({},this.opts,{_scrollDistance_:r,animation:!1}),c=w(this.opts.series,s);if(0!==c.length){var p=A(c,this.opts.chartData.calPoints,s,this.opts.categories,i);d=p.textList,u=p.offset;u.y=n.y,l.tooltip={textList:d,offset:u,option:i,index:s}}}Qt.call(this,l.type,l,this.config,this.context)}if("candle"===this.opts.type){s=this.getCurrentDataIndex(t);if(s>-1){r=this.scrollOption.currentOffset,l=a({},this.opts,{_scrollDistance_:r,animation:!1}),c=w(this.opts.series,s);if(0!==c.length){h=C(this.opts.series[0].data,c,this.opts.chartData.calPoints,s,this.opts.categories,this.opts.extra.candle,i),d=h.textList,u=h.offset;u.y=n.y,l.tooltip={textList:d,offset:u,option:i,index:s}}}Qt.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){s=this.getCurrentDataIndex(t);if(s>-1){r=this.scrollOption.currentOffset,l=a({},this.opts,{_scrollDistance_:r,animation:!1}),c=this.opts._series_[s],d=[{text:i.format?i.format(c):c.name+": "+c.data,color:c.color}],u={x:n.x,y:n.y};l.tooltip={textList:d,offset:u,option:i,index:s}}Qt.call(this,l.type,l,this.config,this.context)}if("map"===this.opts.type||"word"===this.opts.type){s=this.getCurrentDataIndex(t);if(s>-1){r=this.scrollOption.currentOffset,l=a({},this.opts,{_scrollDistance_:r,animation:!1}),c=this.opts._series_[s],d=[{text:i.format?i.format(c):c.properties.name,color:c.color}],u={x:n.x,y:n.y};l.tooltip={textList:d,offset:u,option:i,index:s}}l.updateData=!1,Qt.call(this,l.type,l,this.config,this.context)}if("radar"===this.opts.type){s=this.getCurrentDataIndex(t);if(s>-1){r=this.scrollOption.currentOffset,l=a({},this.opts,{_scrollDistance_:r,animation:!1}),c=w(this.opts.series,s);if(0!==c.length){d=c.map((function(t){return{text:i.format?i.format(t):t.name+": "+t.data,color:t.color}})),u={x:n.x,y:n.y};l.tooltip={textList:d,offset:u,option:i,index:s}}}Qt.call(this,l.type,l,this.config,this.context)}},Vt.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};var e=a({},this.opts,{_scrollDistance_:t,animation:!1});Qt.call(this,this.opts.type,e,this.config,this.context)},Vt.prototype.scrollStart=function(t){var e=null;e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var i=b(e,this.opts,t);e&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=i.x)},Vt.prototype.scroll=function(t){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var e=this.opts.extra.touchMoveLimit||20,i=Date.now(),o=i-this.scrollOption.lastMoveTime;if(!(o<Math.floor(1e3/e))){this.scrollOption.lastMoveTime=i;var n=null;if(n=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],n&&!0===this.opts.enableScroll){var r,l=b(n,this.opts,t);r=l.x-this.scrollOption.startTouchX;var s=this.scrollOption.currentOffset,h=c(s+r,this.opts.chartData,this.config,this.opts);this.scrollOption.distance=r=h-s;var d=a({},this.opts,{_scrollDistance_:s+r,animation:!1});return Qt.call(this,d.type,d,this.config,this.context),s+r}}},Vt.prototype.scrollEnd=function(t){if(!0===this.opts.enableScroll){var e=this.scrollOption,i=e.currentOffset,a=e.distance;this.scrollOption.currentOffset=i+a,this.scrollOption.distance=0}},"object"===typeof t.exports&&(t.exports=Vt)}).call(this,i("5a52")["default"])},fe90:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return a}));var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.width?i("v-uni-view",{staticClass:"uni-grid-item",style:"width:"+t.width+";"+(t.square?"height:"+t.width:"")},[i("v-uni-view",{staticClass:"uni-grid-item__box",class:{"uni-grid-item--border":t.showBorder,"uni-grid-item--border-top":t.showBorder&&t.index<t.column,"uni-highlight":t.highlight},style:{"border-right-color":t.borderColor,"border-bottom-color":t.borderColor,"border-top-color":t.borderColor},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t._onClick.apply(void 0,arguments)}}},[t._t("default")],2)],1):t._e()},n=[]},ffd0:function(t,e,i){"use strict";i.r(e);var a=i("b452"),o=i("9217");for(var n in o)"default"!==n&&function(t){i.d(e,t,(function(){return o[t]}))}(n);i("efaf");var r,l=i("f0c5"),s=Object(l["a"])(o["default"],a["b"],a["c"],!1,null,"716a2b55",null,!1,a["a"],r);e["default"]=s.exports}}]);