1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-weiBao-planInnerList-planInnerList"],{"07eb":function(t,e,i){"use strict";i.r(e);var n=i("0850"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"0850":function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={mounted:function(){if("function"===typeof window.echarts)this.initEcharts();else{var t=document.createElement("script");t.src="static/echarts.min.js",t.onload=this.initEcharts.bind(this),document.head.appendChild(t)}},methods:{initEcharts:function(){n=echarts.init(document.getElementById("echarts")),n.setOption(this.option)},updateEcharts:function(t,e,i,a){n.setOption(t)},onClick:function(t,e){e.callMethod("onViewClick",{test:"test"})}}};e.default=a},"0d21e":function(t,e,i){"use strict";i.r(e);var n=i("9726"),a=i("c282");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("f15d");var r,s=i("f0c5"),l=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"38bb84d4",null,!1,n["a"],r);e["default"]=l.exports},"108d":function(t,e,i){"use strict";i.r(e);var n=i("86ec"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},1148:function(t,e,i){"use strict";var n=i("a691"),a=i("1d80");t.exports="".repeat||function(t){var e=String(a(this)),i="",o=n(t);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(i+=e);return i}},"143c":function(t,e,i){var n=i("74e8");n("Int32",(function(t){return function(e,i,n){return t(this,e,i,n)}}))},"219a":function(t,e,i){"use strict";var n=i("69e6"),a=i.n(n);a.a},"266ea":function(t,e,i){"use strict";var n=i("5db0"),a=i.n(n);a.a},2679:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-page-body[data-v-38bb84d4]{background-color:#f4f5f7}body.?%PAGE?%[data-v-38bb84d4]{background-color:#f4f5f7}',""]),t.exports=e},"38cf":function(t,e,i){var n=i("23e7"),a=i("1148");n({target:"String",proto:!0},{repeat:a})},"3f9e":function(t,e,i){"use strict";(function(t){var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("96cf");var a=n(i("1da1")),o=n(i("eba0")),r=n(i("f29f")),s=n(i("440a")),l={components:{chart:o.default,chart2:r.default},data:function(){return{inspectList:s.default.weiBaoPlan,getData:{},planList:[]}},onBackPress:function(t){return uni.reLaunch({url:"/"}),!0},onLoad:function(t){this.getPlanList({company_code:uni.getStorageSync("selectedCode"),id:t.id})},methods:{getPlanList:function(){var e=arguments,i=this;return(0,a.default)(regeneratorRuntime.mark((function n(){var a,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=e.length>0&&void 0!==e[0]?e[0]:{},n.next=3,i.$myRequest({url:"Maintenance/getMaintenanceDetails",data:a,showLoading:!0});case 3:o=n.sent,i.getData=o.data.data[0],i.planList=i.getData.point,t.log(i.planList);case 7:case"end":return n.stop()}}),n)})))()},goDetailPage:function(t){2==t.data3?uni.navigateTo({url:"/pages/weiBao/planDetailDone/planDetailDone?id="+t.id+"&zb_id="+this.getData.id}):uni.navigateTo({url:"/pages/weiBao/planDetail/planDetail?id="+t.id+"&zb_id="+this.getData.id})}}};e.default=l}).call(this,i("5a52")["default"])},"440a":function(t,e,i){var n,a,o,r=i("9523"),s=[{imgUrl:"../../static/square1.png",badge:120,name:"综合报警",redirectUrl:"/pages/siteList/siteList?type=1"},{imgUrl:"../../static/square2.png",badge:0,name:"设备管理",redirectUrl:"/pages/siteList/siteList?type=2"},{imgUrl:"../../static/square-xf.png",badge:0,name:"消防督查单",redirectUrl:""},(n={imgUrl:"../../static/square-xj.png",badge:0},r(n,"badge",0),r(n,"name","巡检"),r(n,"redirectUrl",""),n),{imgUrl:"../../static/square-bx.png",badge:0,name:"报修",redirectUrl:""},{imgUrl:"../../static/square-wb.png",badge:0,name:"维保",redirectUrl:""},(a={imgUrl:"../../static/square-sp.png",badge:0},r(a,"badge",0),r(a,"name","视频监测"),r(a,"redirectUrl",""),a),(o={imgUrl:"../../static/square-bz.png",badge:0},r(o,"badge",0),r(o,"name","风险保障"),r(o,"redirectUrl",""),o),{imgUrl:"../../static/square-rl.png",badge:0,name:"人脸识别",redirectUrl:""},{imgUrl:"../../static/square-sb.png",badge:0,name:"设备注册",redirectUrl:""},{imgUrl:"../../static/square-yh.png",badge:0,name:"用户管理",redirectUrl:""}],l={msg:"操作成功",flag:!0,companyCode:"1,2,3,4,5,6,7,8,12,13,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39",data:[{statisticalPeriod:"2021-03-16~2021-04-16",smartElectricityCount:"178",videoMonitoringCount:"12456",alarmCount:12627,eventCount:2,hiddenDangerCount:4,offlineCount:20,faultCount:30,earlyWarningCount:100,otherCount:99,normalCount:66,integratedAlarmCount:12627,unprocessedCount:0}]},u=[{imgUrl:"../../static/alarming-zj.png",badge:100,name:"报警主机",type:1},{imgUrl:"../../static/alarming-water.png",badge:0,name:"水系统",type:2},{imgUrl:"../../static/alarming-ck.png",badge:0,name:"测控终端",type:6},{imgUrl:"../../static/alarming-dq.png",badge:0,name:"电气火灾",type:7},{imgUrl:"../../static/alarming-sp.png",badge:0,name:"视频告警",type:16},{imgUrl:"../../static/alarming-dt.png",badge:0,name:"电梯报警",type:17},{imgUrl:"../../static/alarming-mc.png",badge:0,name:"门磁",type:130},{imgUrl:"../../static/alarming-kr.png",badge:0,name:"可燃气体",type:131},{imgUrl:"../../static/alarming-jg.png",badge:0,name:"井盖监测",type:128},{imgUrl:"../../static/alarming-xf.png",badge:0,name:"消防栓监测",type:4}],h=[{title:"测试用传装置",subTitle:"三楼茶水间",status:"未处理",time:"2020-01-08 15:15:12"},{title:"测试用传装置",subTitle:"三楼茶水间",status:"未处理",time:"2020-01-08 15:15:12"},{title:"测试用传装置",subTitle:"三楼茶水间",status:"未处理",time:"2020-01-08 15:15:12"}],c=[{id:"561",title:"烟雾拆卸报警",des:"三楼赛特威尔测试烟感二",time:"2021-01-20 15:23:43"},{id:"561",title:"烟雾拆卸报警",des:"三楼赛特威尔测试烟感二",time:"2021-01-20 15:23:43"},{id:"561",title:"烟雾拆卸报警",des:"三楼赛特威尔测试烟感二",time:"2021-01-20 15:23:43"}],d=[{id:"561",title:"烟雾拆卸报警",des:"三楼赛特威尔测试烟感二",time:"2021-01-20 15:23:43"},{id:"561",title:"烟雾拆卸报警",des:"三楼赛特威尔测试烟感二",time:"2021-01-20 15:23:43"}],f=[{id:"1",title:"火警",num:"3",imgUrl:"../../static/dt-alarmIcon.png",dwtype:1},{id:"2",title:"水警",num:"4",imgUrl:"../../static/dt-waterIcon.png",dwtype:2},{id:"3",title:"电气火灾",num:"4",imgUrl:"../../static/dt-dqIcon.png",dwtype:7},{id:"4",title:"RTU",num:"4",imgUrl:"../../static/dt-rtuIcon.png",dwtype:6},{id:"5",title:"烟感",num:"4",imgUrl:"../../static/dt-ygIcon.png",dwtype:3},{id:"6",title:"视频",num:"4",imgUrl:"../../static/dt-videoIcon.png",dwtype:16},{id:"7",title:"电梯",num:"4",imgUrl:"../../static/dt.png",dwtype:17},{id:"8",title:"井盖",num:"4",imgUrl:"../../static/dt-jgIcon.png",dwtype:128},{id:"9",title:"消防栓",num:"4",imgUrl:"../../static/dt-xfsIcon.png",dwtype:4},{id:"10",title:"液位设备",num:"4",imgUrl:"../../static/dt-ywIcon.png",dwtype:5}],p=[{id:"1",title:"测试用传装置1",des:"三楼茶水间",time:"2021-01-20 15:23:43",status:0},{id:"2",title:"测试用传装置2",des:"三楼茶水间",time:"2021-01-20 15:23:43",status:0},{id:"3",title:"测试用传装置3",des:"三楼茶水间",time:"2021-01-20 15:23:43",status:0},{id:"4",title:"测试用传装置4",des:"三楼茶水间",time:"2021-01-20 15:23:43",status:0},{id:"5",title:"测试用传装置5",des:"三楼茶水间",time:"2021-01-20 15:23:43",status:0},{id:"6",title:"测试用传装置6",des:"三楼茶水间",time:"2021-01-20 15:23:43",status:0},{id:"7",title:"测试用传装置7",des:"三楼茶水间",time:"2021-01-20 15:23:43",status:1},{id:"8",title:"测试用传装置8",des:"三楼茶水间",time:"2021-01-20 15:23:43",status:2}],g=[{id:"1",title:"人工督查单",num:"3",imgUrl:"/static/rg-icon.png",type:1},{id:"2",title:"电子督查单",num:"4",imgUrl:"/static/dz-icon.png",type:2}],m=[{id:"561",title:"[2020]HP第DZ4104号人工督查单",des:"事件未处理测试",time:"2020-01-08 15:15:12"},{id:"561",title:"[2020]HP第DZ4104号人工督查单",des:"事件未处理测试",time:"2020-01-08 15:15:12"},{id:"561",title:"[2020]HP第DZ4104号人工督查单",des:"事件未处理测试",time:"2020-01-08 15:15:12"}],v=[{id:"561",title:"[2020]HP第DZ4104号人工督查单",des:"事件未处理测试",time:"2020-01-08 15:15:12"},{id:"561",title:"[2020]HP第DZ4104号人工督查单",des:"事件未处理测试",time:"2020-01-08 15:15:12"},{id:"561",title:"[2020]HP第DZ4104号人工督查单",des:"事件未处理测试",time:"2020-01-08 15:15:12"}],y=[{id:"1",title:"巡检计划",num:"3",imgUrl:"/static/xunJian-icon1.png"},{id:"2",title:"巡检记录",num:"4",imgUrl:"/static/xunJian-icon2.png"}],x=[{id:"561",title:"计划:巡检计划1",des:"点位:巡检点位01",time:"2021-01-20 15:23:43",status:0},{id:"561",title:"计划:巡检计划1",des:"点位:巡检点位01",time:"2021-01-20 15:23:43",status:1},{id:"561",title:"计划:巡检计划1",des:"点位:巡检点位01",time:"2021-01-20 15:23:43",status:1}],_=[{id:"561",title:"虹泾总部园巡检点位1",status:0},{id:"561",title:"虹泾总部园巡检点位2",status:0},{id:"561",title:"虹泾总部园巡检点位3",status:1}],w=[{id:"561",title:"dfmz巡检报修",imgUrl:"/static/repair1.png",subTitle:"类型:故障",status:0},{id:"561",title:"dfmz巡检报修",imgUrl:"/static/repair2.png",subTitle:"类型:故障",status:1},{id:"561",title:"dfmz巡检报修",imgUrl:"/static/repair3.png",subTitle:"类型:故障",status:2},{id:"561",title:"dfmz巡检报修",imgUrl:"/static/repair4.png",subTitle:"类型:故障",status:3},{id:"561",title:"dfmz巡检报修",imgUrl:"/static/repair5.png",subTitle:"类型:故障",status:4}],b=[{id:"561",title:"报修总数",num:"5",color:"#7992F9",cl_type:0},{id:"561",title:"未处理",num:"1",color:"#FDCA60",cl_type:1},{id:"561",title:"未审核",num:"1",color:"#59D1EA",cl_type:2},{id:"561",title:"未通过",num:"1",color:"#F77070",cl_type:3},{id:"561",title:"已完成",num:"1",color:"#72D06A",cl_type:4},{id:"561",title:"超时完成",num:"1",color:"#F7895E",cl_type:5}],S=[{id:"1",title:"维保计划",num:"3",imgUrl:"/static/weiBao-icon1.png"},{id:"2",title:"维保记录",num:"4",imgUrl:"/static/weiBao-icon2.png"}],M=[{id:"561",title:"计划:维保计划1",des:"点位:维保点位01",time:"2021-01-20 15:23:43",status:0},{id:"561",title:"计划:维保计划1",des:"点位:维保点位01",time:"2021-01-20 15:23:43",status:1},{id:"561",title:"计划:维保计划1",des:"点位:维保点位01",time:"2021-01-20 15:23:43",status:1}],I=[{id:"561",title:"虹泾总部园维保点位1",status:0},{id:"561",title:"虹泾总部园维保点位2",status:0},{id:"561",title:"虹泾总部园维保点位3",status:1}],T=[{id:"1",title:"报备内容:测试用传装置1",des:"备注:三楼茶水间",time:"2021-01-20 15:23:43",status:0},{id:"2",title:"报备内容:测试用传装置2",des:"备注:三楼茶水间",time:"2021-01-20 15:23:43",status:0},{id:"3",title:"报备内容:测试用传装置3",des:"备注:三楼茶水间",time:"2021-01-20 15:23:43",status:0},{id:"4",title:"报备内容:测试用传装置4",des:"备注:三楼茶水间",time:"2021-01-20 15:23:43",status:0},{id:"5",title:"报备内容:测试用传装置5",des:"备注:三楼茶水间",time:"2021-01-20 15:23:43",status:0},{id:"6",title:"报备内容:测试用传装置6",des:"备注:三楼茶水间",time:"2021-01-20 15:23:43",status:0},{id:"7",title:"报备内容:测试用传装置7",des:"备注:三楼茶水间",time:"2021-01-20 15:23:43",status:1},{id:"8",title:"报备内容:测试用传装置8",des:"备注:三楼茶水间",time:"2021-01-20 15:23:43",status:2},{id:"3",title:"报备内容:测试用传装置3",des:"备注:三楼茶水间",time:"2021-01-20 15:23:43",status:0},{id:"4",title:"报备内容:测试用传装置4",des:"备注:三楼茶水间",time:"2021-01-20 15:23:43",status:0},{id:"5",title:"报备内容:测试用传装置5",des:"备注:三楼茶水间",time:"2021-01-20 15:23:43",status:0},{id:"6",title:"报备内容:测试用传装置6",des:"备注:三楼茶水间",time:"2021-01-20 15:23:43",status:0},{id:"7",title:"报备内容:测试用传装置7",des:"备注:三楼茶水间",time:"2021-01-20 15:23:43",status:1},{id:"8",title:"报备内容:测试用传装置8",des:"备注:三楼茶水间",time:"2021-01-20 15:23:43",status:2}];t.exports={staticData:l,cuIconList:s,unprocessList:c,processedList:d,alarmingSquareList:u,deviceOffLineData:h,deviceType:f,deviceManage:p,inspectList:g,inspectUnprocessList:m,inspectProcessedList:v,xunJianList:y,xunJianRecord:x,xunJianPlan:_,repair:w,repairSquare:b,weiBaoList:S,weiBaoRecord:M,weiBaoPlan:I,funcReport:T}},"4a9b":function(t,e,i){var n=i("74e8");n("Float64",(function(t){return function(e,i,n){return t(this,e,i,n)}}))},"5db0":function(t,e,i){var n=i("9eb8");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("53881daf",n,!0,{sourceMap:!1,shadowMode:!1})},"69e6":function(t,e,i){var n=i("ba19");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("d3382f1c",n,!0,{sourceMap:!1,shadowMode:!1})},"754b":function(t,e,i){"use strict";(function(t){var n=i("4ea4");i("4160"),i("a434"),i("e25e"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("f1a8")),o=new a.default.graphic.LinearGradient(0,1,1,0,[{offset:0,color:"#FF1F48"},{offset:.4,color:"#D6FF1F"},{offset:1,color:"#1FFBFF"}]),r={name:"chart",props:{bindData:{type:Object,default:""}},data:function(){return{option:{series:[{type:"gauge",axisLabel:{distance:-12},radius:"95%",detail:{formatter:"{value}%",color:"#FFC600",fontSize:30,fontFamily:"IMPACT",fontWeight:"normal",offsetCenter:[0,"70%"]},data:[{value:parseInt(this.bindData.completion),name:"任务完成率"}],startAngle:220,endAngle:-40,center:["50%","50%"],pointer:{show:!0,length:"70%"},title:{offsetCenter:[0,"40%"],fontSize:14,color:"#444"},min:0,max:100,splitNumber:10,splitLine:{show:!1},axisLine:{show:!0,lineStyle:{width:14,color:[[1,o]]}}}]}}},onLoad:function(){},methods:{changeOption:function(){var t=this.option.series[0].data;t.forEach((function(e,i){t.splice(i,1,40*Math.random())}))},onViewClick:function(e){t.log(e)}}};e.default=r}).call(this,i("5a52")["default"])},"761d":function(t,e,i){"use strict";(function(t){var n=i("4ea4");i("4160"),i("a434"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("f1a8")),o={name:"chart",props:{},data:function(){return{option:{tooltip:{formatter:"{a} <br/>{b} : {c}%"},toolbox:{feature:{restore:{},saveAsImage:{}}},series:[{name:"业务指标",type:"gauge",detail:{formatter:"{value}%"},data:[{value:50,name:"完成率"}],axisLine:{show:!0,lineStyle:{color:[[1,new a.default.graphic.LinearGradient(0,0,1,0,[{offset:.1,color:"#FFC600"},{offset:.6,color:"#30D27C"},{offset:1,color:"#0B95FF"}])]]}}}]}}},onLoad:function(){},methods:{changeOption:function(){var t=this.option.series[0].data;t.forEach((function(e,i){t.splice(i,1,40*Math.random())}))},onViewClick:function(e){t.log(e)}}};e.default=o}).call(this,i("5a52")["default"])},"84c3":function(t,e,i){var n=i("74e8");n("Uint16",(function(t){return function(e,i,n){return t(this,e,i,n)}}))},"86ec":function(t,e,i){"use strict";(function(t){var i;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={mounted:function(){if("function"===typeof window.echarts)this.initEcharts();else{var t=document.createElement("script");t.src="static/echarts.min.js",t.onload=this.initEcharts.bind(this),document.head.appendChild(t)}},methods:{initEcharts:function(){t.log("this.bindData"),t.log(this.bindData),i=echarts.init(document.getElementById("echarts")),i.setOption(this.option)},updateEcharts:function(t,e,n,a){i.setOption(t)},onClick:function(t,e){e.callMethod("onViewClick",{test:"test"})}}};e.default=n}).call(this,i("5a52")["default"])},9726:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{staticStyle:{height:"30rpx"}}),i("v-uni-view",{staticClass:"bg-white plan-sec text-center",staticStyle:{margin:"0rpx 30rpx 30rpx 30rpx"}},[i("v-uni-view",{staticClass:"plan-tit padding-top-lg"},[t._v(t._s(t.getData.plan_name))]),i("br"),"{}"!=JSON.stringify(t.getData)?i("chart2",{attrs:{bindData:this.getData}}):t._e()],1),i("v-uni-view",{staticClass:"margin bg-white plan-sec"},[i("v-uni-view",{staticClass:"info-tit margin-left-xs"},[i("v-uni-text",{staticClass:"cuIcon-titles margin-right-xs"}),t._v("维保详情")],1),i("v-uni-view",{staticClass:"cu-list menu-avatar"},t._l(t.planList,(function(e,n){return i("v-uni-view",{key:n,staticClass:"cu-item deviceTypeItem",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goDetailPage(e)}}},[i("v-uni-view",{staticClass:"content",staticStyle:{left:"0!important",width:"80%"}},[i("v-uni-view",{staticClass:"title"},[t._v(t._s(e.spot_name))])],1),i("v-uni-view",{staticClass:"nav-right num"},[i("v-uni-view",{staticClass:"text-grey"},[2==e.data3?i("span",{staticClass:"online"},[t._v("已执行")]):t._e(),1==e.data3?i("span",{staticClass:"error"},[t._v("未执行")]):t._e(),i("v-uni-text",{staticClass:"icon iconfont margin-right-xs "},[t._v("")])],1)],1)],1)})),1)],1)],1)},o=[]},"9e6f":function(t,e,i){"use strict";i.r(e);var n=i("761d"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"9eb8":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".content[data-v-3b8a1d74]{display:flex;flex-direction:column;align-items:center;justify-content:center}.echarts[data-v-3b8a1d74]{width:100%;height:%?400?%}",""]),t.exports=e},ad14:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"content"},[i("v-uni-view",{wxsProps:{"change:prop":"option"},staticClass:"echarts",attrs:{prop:t.option,"change:prop":t.echarts.updateEcharts,id:"echarts"},on:{click:function(e){e=t.$handleWxsEvent(e),t.echarts.onClick(e,t.$getComponentDescriptor())}}})],1)},o=[]},ba19:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".content[data-v-0595e46c]{display:flex;flex-direction:column;align-items:center;justify-content:center}.echarts[data-v-0595e46c]{width:100%;height:%?400?%}",""]),t.exports=e},baa5:function(t,e,i){var n=i("23e7"),a=i("e58c");n({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},baf3:function(t,e,i){"use strict";i.r(e);var n=i("754b"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},c282:function(t,e,i){"use strict";i.r(e);var n=i("3f9e"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},cb29:function(t,e,i){var n=i("23e7"),a=i("81d5"),o=i("44d2");n({target:"Array",proto:!0},{fill:a}),o("fill")},cfc3:function(t,e,i){var n=i("74e8");n("Float32",(function(t){return function(e,i,n){return t(this,e,i,n)}}))},dca8:function(t,e,i){var n=i("23e7"),a=i("bb2f"),o=i("d039"),r=i("861d"),s=i("f183").onFreeze,l=Object.freeze,u=o((function(){l(1)}));n({target:"Object",stat:!0,forced:u,sham:!a},{freeze:function(t){return l&&r(t)?l(s(t)):t}})},ea7f:function(t,e,i){var n=i("2679");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("097a4962",n,!0,{sourceMap:!1,shadowMode:!1})},eba0:function(t,e,i){"use strict";i.r(e);var n=i("ad14"),a=i("07eb");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);var r=i("9e6f");for(var o in r)"default"!==o&&function(t){i.d(e,t,(function(){return r[t]}))}(o);i("266ea");var s=i("f0c5");a["default"].__module="echarts";var l=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"3b8a1d74",null,!1,n["a"],a["default"]);e["default"]=l.exports},f15d:function(t,e,i){"use strict";var n=i("ea7f"),a=i.n(n);a.a},f1a8:function(t,e,i){(function(t){i("99af"),i("cb29"),i("4de4"),i("4160"),i("c975"),i("baa5"),i("d81d"),i("13d5"),i("26e9"),i("fb6a"),i("4e82"),i("a434"),i("ace4"),i("a9e3"),i("dca8"),i("d3b7"),i("acd8"),i("e25e"),i("4d63"),i("ac1f"),i("25f0"),i("466d"),i("38cf"),i("5319"),i("1276"),i("498a"),i("cfc3"),i("4a9b"),i("143c"),i("5cc6"),i("8a59"),i("84c3"),i("fb2c"),i("9a8c"),i("a975"),i("735e"),i("c1ac"),i("d139"),i("3a7b"),i("d5d6"),i("82f8"),i("e91f"),i("60bd"),i("5f96"),i("3280"),i("3fcc"),i("ca91"),i("25a1"),i("cd26"),i("2954"),i("649e"),i("219c"),i("b39a"),i("72f7"),i("159b"),i("ddb0"),function(t,i){i(e)}(0,(function(e){"use strict";function i(t,e){"createCanvas"===t&&(q_=null),X_[t]=e}function n(t){if(null==t||"object"!=typeof t)return t;var e=t,i=F_.call(t);if("[object Array]"===i){if(!E(t)){e=[];for(var a=0,o=t.length;a<o;a++)e[a]=n(t[a])}}else if(V_[i]){if(!E(t)){var r=t.constructor;if(t.constructor.from)e=r.from(t);else{e=new r(t.length);for(a=0,o=t.length;a<o;a++)e[a]=n(t[a])}}}else if(!B_[i]&&!E(t)&&!I(t))for(var s in e={},t)t.hasOwnProperty(s)&&(e[s]=n(t[s]));return e}function a(t,e,i){if(!b(e)||!b(t))return i?n(e):t;for(var o in e)if(e.hasOwnProperty(o)){var r=t[o],s=e[o];!b(s)||!b(r)||x(s)||x(r)||I(s)||I(r)||S(s)||S(r)||E(s)||E(r)?!i&&o in t||(t[o]=n(e[o],!0)):a(r,s,i)}return t}function o(t,e){for(var i=t[0],n=1,o=t.length;n<o;n++)i=a(i,t[n],e);return i}function r(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function s(t,e,i){for(var n in e)e.hasOwnProperty(n)&&(i?null!=e[n]:null==t[n])&&(t[n]=e[n]);return t}function l(){return q_||(q_=Y_().getContext("2d")),q_}function u(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i}return-1}function h(t,e){function i(){}var n=t.prototype;for(var a in i.prototype=e.prototype,t.prototype=new i,n)t.prototype[a]=n[a];t.prototype.constructor=t,t.superClass=e}function c(t,e,i){s(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,i)}function d(t){if(t)return"string"!=typeof t&&"number"==typeof t.length}function f(t,e,i){if(t&&e)if(t.forEach&&t.forEach===W_)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,a=t.length;n<a;n++)e.call(i,t[n],n,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t)}function p(t,e,i){if(t&&e){if(t.map&&t.map===Z_)return t.map(e,i);for(var n=[],a=0,o=t.length;a<o;a++)n.push(e.call(i,t[a],a,t));return n}}function g(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===j_)return t.reduce(e,i,n);for(var a=0,o=t.length;a<o;a++)i=e.call(n,i,t[a],a,t);return i}}function m(t,e,i){if(t&&e){if(t.filter&&t.filter===H_)return t.filter(e,i);for(var n=[],a=0,o=t.length;a<o;a++)e.call(i,t[a],a,t)&&n.push(t[a]);return n}}function v(t,e){var i=U_.call(arguments,2);return function(){return t.apply(e,i.concat(U_.call(arguments)))}}function y(t){var e=U_.call(arguments,1);return function(){return t.apply(this,e.concat(U_.call(arguments)))}}function x(t){return"[object Array]"===F_.call(t)}function _(t){return"function"==typeof t}function w(t){return"[object String]"===F_.call(t)}function b(t){var e=typeof t;return"function"===e||!!t&&"object"==e}function S(t){return!!B_[F_.call(t)]}function M(t){return!!V_[F_.call(t)]}function I(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function T(t){return t!==t}function A(t){for(var e=0,i=arguments.length;e<i;e++)if(null!=arguments[e])return arguments[e]}function D(t,e){return null!=t?t:e}function C(t,e,i){return null!=t?t:null!=e?e:i}function L(){return Function.call.apply(U_,arguments)}function k(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function P(t,e){if(!t)throw new Error(e)}function N(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function O(t){t[$_]=!0}function E(t){return t[$_]}function R(t){function e(t,e){i?n.set(t,e):n.set(e,t)}var i=x(t);this.data={};var n=this;t instanceof R?t.each(e):t&&f(t,e)}function z(t){return new R(t)}function B(t,e){for(var i=new t.constructor(t.length+e.length),n=0;n<t.length;n++)i[n]=t[n];var a=t.length;for(n=0;n<e.length;n++)i[n+a]=e[n];return i}function V(){}function F(t,e){var i=new J_(2);return null==t&&(t=0),null==e&&(e=0),i[0]=t,i[1]=e,i}function G(t,e){return t[0]=e[0],t[1]=e[1],t}function W(t){var e=new J_(2);return e[0]=t[0],e[1]=t[1],e}function H(t,e,i){return t[0]=e,t[1]=i,t}function U(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t}function Z(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t}function j(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function X(t){return Math.sqrt(Y(t))}function Y(t){return t[0]*t[0]+t[1]*t[1]}function q(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t}function $(t,e){var i=X(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t}function K(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function J(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function Q(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t}function tt(t,e,i){var n=e[0],a=e[1];return t[0]=i[0]*n+i[2]*a+i[4],t[1]=i[1]*n+i[3]*a+i[5],t}function et(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t}function it(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}function nt(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}function at(t,e){return{target:t,topTarget:e&&e.topTarget}}function ot(t,e){var i=t._$eventProcessor;return null!=e&&i&&i.normalizeQuery&&(e=i.normalizeQuery(e)),e}function rt(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function st(t,e,i,n){return i=i||{},n||!z_.canvasSupported?lt(t,e,i):z_.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):lt(t,e,i),i}function lt(t,e,i){var n=rt(t);i.zrX=e.clientX-n.left,i.zrY=e.clientY-n.top}function ut(t,e,i){if(null!=(e=e||window.event).zrX)return e;var n=e.type;if(n&&n.indexOf("touch")>=0){var a="touchend"!=n?e.targetTouches[0]:e.changedTouches[0];a&&st(t,a,e,i)}else st(t,e,e,i),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var o=e.button;return null==e.which&&void 0!==o&&sw.test(e.type)&&(e.which=1&o?1:2&o?3:4&o?2:0),e}function ht(t,e,i){rw?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function ct(t,e,i){rw?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}function dt(t){return t.which>1}function ft(t,e,i){return{type:t,event:i,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:pt}}function pt(t){lw(this.event)}function gt(){}function mt(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n,a=t;a;){if(a.clipPath&&!a.clipPath.contain(e,i))return!1;a.silent&&(n=!0),a=a.parent}return!n||uw}return!1}function vt(){var t=new dw(6);return yt(t),t}function yt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function xt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function _t(t,e,i){var n=e[0]*i[0]+e[2]*i[1],a=e[1]*i[0]+e[3]*i[1],o=e[0]*i[2]+e[2]*i[3],r=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=a,t[2]=o,t[3]=r,t[4]=s,t[5]=l,t}function wt(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t}function bt(t,e,i){var n=e[0],a=e[2],o=e[4],r=e[1],s=e[3],l=e[5],u=Math.sin(i),h=Math.cos(i);return t[0]=n*h+r*u,t[1]=-n*u+r*h,t[2]=a*h+s*u,t[3]=-a*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function St(t,e,i){var n=i[0],a=i[1];return t[0]=e[0]*n,t[1]=e[1]*a,t[2]=e[2]*n,t[3]=e[3]*a,t[4]=e[4]*n,t[5]=e[5]*a,t}function Mt(t,e){var i=e[0],n=e[2],a=e[4],o=e[1],r=e[3],s=e[5],l=i*r-o*n;return l?(l=1/l,t[0]=r*l,t[1]=-o*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-r*a)*l,t[5]=(o*a-i*s)*l,t):null}function It(t){var e=vt();return xt(e,t),e}function Tt(t){return t>gw||t<-gw}function At(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}function Dt(t){return(t=Math.round(t))<0?0:t>255?255:t}function Ct(t){return(t=Math.round(t))<0?0:t>360?360:t}function Lt(t){return t<0?0:t>1?1:t}function kt(t){return Dt(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function Pt(t){return Lt(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function Nt(t,e,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function Ot(t,e,i){return t+(e-t)*i}function Et(t,e,i,n,a){return t[0]=e,t[1]=i,t[2]=n,t[3]=a,t}function Rt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function zt(t,e){Cw&&Rt(Cw,e),Cw=Dw.put(t,Cw||e.slice())}function Bt(t,e){if(t){e=e||[];var i=Dw.get(t);if(i)return Rt(e,i);var n=(t+="").replace(/ /g,"").toLowerCase();if(n in Aw)return Rt(e,Aw[n]),zt(t,e),e;if("#"!==n.charAt(0)){var a=n.indexOf("("),o=n.indexOf(")");if(-1!==a&&o+1===n.length){var r=n.substr(0,a),s=n.substr(a+1,o-(a+1)).split(","),l=1;switch(r){case"rgba":if(4!==s.length)return void Et(e,0,0,0,1);l=Pt(s.pop());case"rgb":return 3!==s.length?void Et(e,0,0,0,1):(Et(e,kt(s[0]),kt(s[1]),kt(s[2]),l),zt(t,e),e);case"hsla":return 4!==s.length?void Et(e,0,0,0,1):(s[3]=Pt(s[3]),Vt(s,e),zt(t,e),e);case"hsl":return 3!==s.length?void Et(e,0,0,0,1):(Vt(s,e),zt(t,e),e);default:return}}Et(e,0,0,0,1)}else{if(4===n.length)return(u=parseInt(n.substr(1),16))>=0&&u<=4095?(Et(e,(3840&u)>>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,1),zt(t,e),e):void Et(e,0,0,0,1);if(7===n.length){var u=parseInt(n.substr(1),16);return u>=0&&u<=16777215?(Et(e,(16711680&u)>>16,(65280&u)>>8,255&u,1),zt(t,e),e):void Et(e,0,0,0,1)}}}}function Vt(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=Pt(t[1]),a=Pt(t[2]),o=a<=.5?a*(n+1):a+n-a*n,r=2*a-o;return e=e||[],Et(e,Dt(255*Nt(r,o,i+1/3)),Dt(255*Nt(r,o,i)),Dt(255*Nt(r,o,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Ft(t){if(t){var e,i,n=t[0]/255,a=t[1]/255,o=t[2]/255,r=Math.min(n,a,o),s=Math.max(n,a,o),l=s-r,u=(s+r)/2;if(0===l)e=0,i=0;else{i=u<.5?l/(s+r):l/(2-s-r);var h=((s-n)/6+l/2)/l,c=((s-a)/6+l/2)/l,d=((s-o)/6+l/2)/l;n===s?e=d-c:a===s?e=1/3+h-d:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,u];return null!=t[3]&&f.push(t[3]),f}}function Gt(t,e){var i=Bt(t);if(i){for(var n=0;n<3;n++)i[n]=e<0?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,i[n]>255?i[n]=255:t[n]<0&&(i[n]=0);return Xt(i,4===i.length?"rgba":"rgb")}}function Wt(t){var e=Bt(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Ht(t,e,i){if(e&&e.length&&t>=0&&t<=1){i=i||[];var n=t*(e.length-1),a=Math.floor(n),o=Math.ceil(n),r=e[a],s=e[o],l=n-a;return i[0]=Dt(Ot(r[0],s[0],l)),i[1]=Dt(Ot(r[1],s[1],l)),i[2]=Dt(Ot(r[2],s[2],l)),i[3]=Lt(Ot(r[3],s[3],l)),i}}function Ut(t,e,i){if(e&&e.length&&t>=0&&t<=1){var n=t*(e.length-1),a=Math.floor(n),o=Math.ceil(n),r=Bt(e[a]),s=Bt(e[o]),l=n-a,u=Xt([Dt(Ot(r[0],s[0],l)),Dt(Ot(r[1],s[1],l)),Dt(Ot(r[2],s[2],l)),Lt(Ot(r[3],s[3],l))],"rgba");return i?{color:u,leftIndex:a,rightIndex:o,value:n}:u}}function Zt(t,e,i,n){if(t=Bt(t))return t=Ft(t),null!=e&&(t[0]=Ct(e)),null!=i&&(t[1]=Pt(i)),null!=n&&(t[2]=Pt(n)),Xt(Vt(t),"rgba")}function jt(t,e){if((t=Bt(t))&&null!=e)return t[3]=Lt(e),Xt(t,"rgba")}function Xt(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(i+=","+t[3]),e+"("+i+")"}}function Yt(t,e){return t[e]}function qt(t,e,i){t[e]=i}function $t(t,e,i){return(e-t)*i+t}function Kt(t,e,i){return i>.5?e:t}function Jt(t,e,i,n,a){var o=t.length;if(1==a)for(s=0;s<o;s++)n[s]=$t(t[s],e[s],i);else for(var r=o&&t[0].length,s=0;s<o;s++)for(var l=0;l<r;l++)n[s][l]=$t(t[s][l],e[s][l],i)}function Qt(t,e,i){var n=t.length,a=e.length;if(n!==a)if(n>a)t.length=a;else for(r=n;r<a;r++)t.push(1===i?e[r]:Nw.call(e[r]));for(var o=t[0]&&t[0].length,r=0;r<t.length;r++)if(1===i)isNaN(t[r])&&(t[r]=e[r]);else for(var s=0;s<o;s++)isNaN(t[r][s])&&(t[r][s]=e[r][s])}function te(t,e,i){if(t===e)return!0;var n=t.length;if(n!==e.length)return!1;if(1===i){for(o=0;o<n;o++)if(t[o]!==e[o])return!1}else for(var a=t[0].length,o=0;o<n;o++)for(var r=0;r<a;r++)if(t[o][r]!==e[o][r])return!1;return!0}function ee(t,e,i,n,a,o,r,s,l){var u=t.length;if(1==l)for(c=0;c<u;c++)s[c]=ie(t[c],e[c],i[c],n[c],a,o,r);else for(var h=t[0].length,c=0;c<u;c++)for(var d=0;d<h;d++)s[c][d]=ie(t[c][d],e[c][d],i[c][d],n[c][d],a,o,r)}function ie(t,e,i,n,a,o,r){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*r+(-3*(e-i)-2*s-l)*o+s*a+e}function ne(t){if(d(t)){var e=t.length;if(d(t[0])){for(var i=[],n=0;n<e;n++)i.push(Nw.call(t[n]));return i}return Nw.call(t)}return t}function ae(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function oe(t){var e=t[t.length-1].value;return d(e&&e[0])?2:1}function re(t,e,i,n,a,o){var r=t._getter,s=t._setter,l="spline"===e,u=n.length;if(u){var h,c=d(n[0].value),f=!1,p=!1,g=c?oe(n):0;n.sort((function(t,e){return t.time-e.time})),h=n[u-1].time;for(var m=[],v=[],y=n[0].value,x=!0,_=0;_<u;_++){m.push(n[_].time/h);var w=n[_].value;if(c&&te(w,y,g)||!c&&w===y||(x=!1),y=w,"string"==typeof w){var b=Bt(w);b?(w=b,f=!0):p=!0}v.push(w)}if(o||!x){var S=v[u-1];for(_=0;_<u-1;_++)c?Qt(v[_],S,g):!isNaN(v[_])||isNaN(S)||p||f||(v[_]=S);c&&Qt(r(t._target,a),S,g);var M,I,T,A,D,C=0,L=0;if(f)var k=[0,0,0,0];var P=new At({target:t._target,life:h,loop:t._loop,delay:t._delay,onframe:function(t,e){var i;if(e<0)i=0;else if(e<L){for(i=Math.min(C+1,u-1);i>=0&&!(m[i]<=e);i--);i=Math.min(i,u-2)}else{for(i=C;i<u&&!(m[i]>e);i++);i=Math.min(i-1,u-2)}C=i,L=e;var n=m[i+1]-m[i];if(0!==n)if(M=(e-m[i])/n,l)if(T=v[i],I=v[0===i?i:i-1],A=v[i>u-2?u-1:i+1],D=v[i>u-3?u-1:i+2],c)ee(I,T,A,D,M,M*M,M*M*M,r(t,a),g);else{if(f)o=ee(I,T,A,D,M,M*M,M*M*M,k,1),o=ae(k);else{if(p)return Kt(T,A,M);o=ie(I,T,A,D,M,M*M,M*M*M)}s(t,a,o)}else if(c)Jt(v[i],v[i+1],M,r(t,a),g);else{var o;if(f)Jt(v[i],v[i+1],M,k,1),o=ae(k);else{if(p)return Kt(v[i],v[i+1],M);o=$t(v[i],v[i+1],M)}s(t,a,o)}},ondestroy:i});return e&&"spline"!==e&&(P.easing=e),P}}}function se(t,e,i,n,a,o,r,s){w(n)?(o=a,a=n,n=0):_(a)?(o=a,a="linear",n=0):_(n)?(o=n,n=0):_(i)?(o=i,i=500):i||(i=500),t.stopAnimation(),le(t,"",t,e,i,n,s);var l=t.animators.slice(),u=l.length;u||o&&o();for(var h=0;h<l.length;h++)l[h].done((function(){--u||o&&o()})).start(a,r)}function le(t,e,i,n,a,o,r){var s={},l=0;for(var u in n)n.hasOwnProperty(u)&&(null!=i[u]?b(n[u])&&!d(n[u])?le(t,e?e+"."+u:u,i[u],n[u],a,o,r):(r?(s[u]=i[u],ue(t,e,u,n[u])):s[u]=n[u],l++):null==n[u]||r||ue(t,e,u,n[u]));l>0&&t.animate(e,!1).when(null==a?500:a,s).delay(o||0)}function ue(t,e,i,n){if(e){var a={};a[e]={},a[e][i]=n,t.attr(a)}else t.attr(i,n)}function he(t,e,i,n){i<0&&(t+=i,i=-i),n<0&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}function ce(t){for(var e=0;t>=Zw;)e|=1&t,t>>=1;return t+e}function de(t,e,i,n){var a=e+1;if(a===i)return 1;if(n(t[a++],t[e])<0){for(;a<i&&n(t[a],t[a-1])<0;)a++;fe(t,e,a)}else for(;a<i&&n(t[a],t[a-1])>=0;)a++;return a-e}function fe(t,e,i){for(i--;e<i;){var n=t[e];t[e++]=t[i],t[i--]=n}}function pe(t,e,i,n,a){for(n===e&&n++;n<i;n++){for(var o,r=t[n],s=e,l=n;s<l;)a(r,t[o=s+l>>>1])<0?l=o:s=o+1;var u=n-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=r}}function ge(t,e,i,n,a,o){var r=0,s=0,l=1;if(o(t,e[i+a])>0){for(s=n-a;l<s&&o(t,e[i+a+l])>0;)r=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),r+=a,l+=a}else{for(s=a+1;l<s&&o(t,e[i+a-l])<=0;)r=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=r;r=a-l,l=a-u}for(r++;r<l;){var h=r+(l-r>>>1);o(t,e[i+h])>0?r=h+1:l=h}return l}function me(t,e,i,n,a,o){var r=0,s=0,l=1;if(o(t,e[i+a])<0){for(s=a+1;l<s&&o(t,e[i+a-l])<0;)r=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=r;r=a-l,l=a-u}else{for(s=n-a;l<s&&o(t,e[i+a+l])>=0;)r=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),r+=a,l+=a}for(r++;r<l;){var h=r+(l-r>>>1);o(t,e[i+h])<0?l=h:r=h+1}return l}function ve(t,e){function i(i){var s=o[i],u=r[i],h=o[i+1],c=r[i+1];r[i]=u+c,i===l-3&&(o[i+1]=o[i+2],r[i+1]=r[i+2]),l--;var d=me(t[h],t,s,u,0,e);s+=d,0!==(u-=d)&&0!==(c=ge(t[s+u-1],t,h,c,c-1,e))&&(u<=c?n(s,u,h,c):a(s,u,h,c))}function n(i,n,a,o){var r=0;for(r=0;r<n;r++)u[r]=t[i+r];var l=0,h=a,c=i;if(t[c++]=t[h++],0!=--o)if(1!==n){for(var d,f,p,g=s;;){d=0,f=0,p=!1;do{if(e(t[h],u[l])<0){if(t[c++]=t[h++],f++,d=0,0==--o){p=!0;break}}else if(t[c++]=u[l++],d++,f=0,1==--n){p=!0;break}}while((d|f)<g);if(p)break;do{if(0!==(d=me(t[h],u,l,n,0,e))){for(r=0;r<d;r++)t[c+r]=u[l+r];if(c+=d,l+=d,(n-=d)<=1){p=!0;break}}if(t[c++]=t[h++],0==--o){p=!0;break}if(0!==(f=ge(u[l],t,h,o,0,e))){for(r=0;r<f;r++)t[c+r]=t[h+r];if(c+=f,h+=f,0===(o-=f)){p=!0;break}}if(t[c++]=u[l++],1==--n){p=!0;break}g--}while(d>=jw||f>=jw);if(p)break;g<0&&(g=0),g+=2}if((s=g)<1&&(s=1),1===n){for(r=0;r<o;r++)t[c+r]=t[h+r];t[c+o]=u[l]}else{if(0===n)throw new Error;for(r=0;r<n;r++)t[c+r]=u[l+r]}}else{for(r=0;r<o;r++)t[c+r]=t[h+r];t[c+o]=u[l]}else for(r=0;r<n;r++)t[c+r]=u[l+r]}function a(i,n,a,o){var r=0;for(r=0;r<o;r++)u[r]=t[a+r];var l=i+n-1,h=o-1,c=a+o-1,d=0,f=0;if(t[c--]=t[l--],0!=--n)if(1!==o){for(var p=s;;){var g=0,m=0,v=!1;do{if(e(u[h],t[l])<0){if(t[c--]=t[l--],g++,m=0,0==--n){v=!0;break}}else if(t[c--]=u[h--],m++,g=0,1==--o){v=!0;break}}while((g|m)<p);if(v)break;do{if(0!=(g=n-me(u[h],t,i,n,n-1,e))){for(n-=g,f=1+(c-=g),d=1+(l-=g),r=g-1;r>=0;r--)t[f+r]=t[d+r];if(0===n){v=!0;break}}if(t[c--]=u[h--],1==--o){v=!0;break}if(0!=(m=o-ge(t[l],u,0,o,o-1,e))){for(o-=m,f=1+(c-=m),d=1+(h-=m),r=0;r<m;r++)t[f+r]=u[d+r];if(o<=1){v=!0;break}}if(t[c--]=t[l--],0==--n){v=!0;break}p--}while(g>=jw||m>=jw);if(v)break;p<0&&(p=0),p+=2}if((s=p)<1&&(s=1),1===o){for(f=1+(c-=n),d=1+(l-=n),r=n-1;r>=0;r--)t[f+r]=t[d+r];t[c]=u[h]}else{if(0===o)throw new Error;for(d=c-(o-1),r=0;r<o;r++)t[d+r]=u[r]}}else{for(f=1+(c-=n),d=1+(l-=n),r=n-1;r>=0;r--)t[f+r]=t[d+r];t[c]=u[h]}else for(d=c-(o-1),r=0;r<o;r++)t[d+r]=u[r]}var o,r,s=jw,l=0,u=[];o=[],r=[],this.mergeRuns=function(){for(;l>1;){var t=l-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]<r[t+1]&&t--;else if(r[t]>r[t+1])break;i(t)}},this.forceMergeRuns=function(){for(;l>1;){var t=l-2;t>0&&r[t-1]<r[t+1]&&t--,i(t)}},this.pushRun=function(t,e){o[l]=t,r[l]=e,l+=1}}function ye(t,e,i,n){i||(i=0),n||(n=t.length);var a=n-i;if(!(a<2)){var o=0;if(a<Zw)return o=de(t,i,n,e),void pe(t,i,n,i+o,e);var r=new ve(t,e),s=ce(a);do{if((o=de(t,i,n,e))<s){var l=a;l>s&&(l=s),pe(t,i,i+l,i+o,e),o=l}r.pushRun(i,o),r.mergeRuns(),a-=o,i+=o}while(0!==a);r.forceMergeRuns()}}function xe(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function _e(t,e,i){var n=null==e.x?0:e.x,a=null==e.x2?1:e.x2,o=null==e.y?0:e.y,r=null==e.y2?0:e.y2;return e.global||(n=n*i.width+i.x,a=a*i.width+i.x,o=o*i.height+i.y,r=r*i.height+i.y),n=isNaN(n)?0:n,a=isNaN(a)?1:a,o=isNaN(o)?0:o,r=isNaN(r)?0:r,t.createLinearGradient(n,o,a,r)}function we(t,e,i){var n=i.width,a=i.height,o=Math.min(n,a),r=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(r=r*n+i.x,s=s*a+i.y,l*=o),t.createRadialGradient(r,s,0,r,s,l)}function be(){return!1}function Se(t,e,i){var n=Y_(),a=e.getWidth(),o=e.getHeight(),r=n.style;return r&&(r.position="absolute",r.left=0,r.top=0,r.width=a+"px",r.height=o+"px",n.setAttribute("data-zr-dom-id",t)),n.width=a*i,n.height=o*i,n}function Me(t){if("string"==typeof t){var e=ab.get(t);return e&&e.image}return t}function Ie(t,e,i,n,a){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!i)return e;var o=ab.get(t),r={hostEl:i,cb:n,cbPayload:a};return o?!Ae(e=o.image)&&o.pending.push(r):(!e&&(e=new Image),e.onload=e.onerror=Te,ab.put(t,e.__cachedImgObj={image:e,pending:[r]}),e.src=e.__zrImageSrc=t),e}return t}return e}function Te(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var i=t.pending[e],n=i.cb;n&&n(this,i.cbPayload),i.hostEl.dirty()}t.pending.length=0}function Ae(t){return t&&t.width&&t.height}function De(t,e){var i=t+":"+(e=e||ub);if(ob[i])return ob[i];for(var n=(t+"").split("\n"),a=0,o=0,r=n.length;o<r;o++)a=Math.max(Fe(n[o],e).width,a);return rb>sb&&(rb=0,ob={}),rb++,ob[i]=a,a}function Ce(t,e,i,n,a,o,r){return o?ke(t,e,i,n,a,o,r):Le(t,e,i,n,a,r)}function Le(t,e,i,n,a,o){var r=Ge(t,e,a,o),s=De(t,e);a&&(s+=a[1]+a[3]);var l=r.outerHeight,u=new he(Pe(0,s,i),Ne(0,l,n),s,l);return u.lineHeight=r.lineHeight,u}function ke(t,e,i,n,a,o,r){var s=We(t,{rich:o,truncate:r,font:e,textAlign:i,textPadding:a}),l=s.outerWidth,u=s.outerHeight;return new he(Pe(0,l,i),Ne(0,u,n),l,u)}function Pe(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function Ne(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function Oe(t,e,i){var n=e.x,a=e.y,o=e.height,r=e.width,s=o/2,l="left",u="top";switch(t){case"left":n-=i,a+=s,l="right",u="middle";break;case"right":n+=i+r,a+=s,u="middle";break;case"top":n+=r/2,a-=i,l="center",u="bottom";break;case"bottom":n+=r/2,a+=o+i,l="center";break;case"inside":n+=r/2,a+=s,l="center",u="middle";break;case"insideLeft":n+=i,a+=s,u="middle";break;case"insideRight":n+=r-i,a+=s,l="right",u="middle";break;case"insideTop":n+=r/2,a+=i,l="center";break;case"insideBottom":n+=r/2,a+=o-i,l="center",u="bottom";break;case"insideTopLeft":n+=i,a+=i;break;case"insideTopRight":n+=r-i,a+=i,l="right";break;case"insideBottomLeft":n+=i,a+=o-i,u="bottom";break;case"insideBottomRight":n+=r-i,a+=o-i,l="right",u="bottom"}return{x:n,y:a,textAlign:l,textVerticalAlign:u}}function Ee(t,e,i,n,a){if(!e)return"";var o=(t+"").split("\n");a=Re(e,i,n,a);for(var r=0,s=o.length;r<s;r++)o[r]=ze(o[r],a);return o.join("\n")}function Re(t,e,i,n){(n=r({},n)).font=e;i=D(i,"...");n.maxIterations=D(n.maxIterations,2);var a=n.minChar=D(n.minChar,0);n.cnCharWidth=De("国",e);var o=n.ascCharWidth=De("a",e);n.placeholder=D(n.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<a&&s>=o;l++)s-=o;var u=De(i);return u>s&&(i="",u=0),s=t-u,n.ellipsis=i,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=t,n}function ze(t,e){var i=e.containerWidth,n=e.font,a=e.contentWidth;if(!i)return"";var o=De(t,n);if(o<=i)return t;for(var r=0;;r++){if(o<=a||r>=e.maxIterations){t+=e.ellipsis;break}var s=0===r?Be(t,a,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*a/o):0;o=De(t=t.substr(0,s),n)}return""===t&&(t=e.placeholder),t}function Be(t,e,i,n){for(var a=0,o=0,r=t.length;o<r&&a<e;o++){var s=t.charCodeAt(o);a+=0<=s&&s<=127?i:n}return o}function Ve(t){return De("国",t)}function Fe(t,e){return hb.measureText(t,e)}function Ge(t,e,i,n){null!=t&&(t+="");var a=Ve(e),o=t?t.split("\n"):[],r=o.length*a,s=r;if(i&&(s+=i[0]+i[2]),t&&n){var l=n.outerHeight,u=n.outerWidth;if(null!=l&&s>l)t="",o=[];else if(null!=u)for(var h=Re(u-(i?i[1]+i[3]:0),e,n.ellipsis,{minChar:n.minChar,placeholder:n.placeholder}),c=0,d=o.length;c<d;c++)o[c]=ze(o[c],h)}return{lines:o,height:r,outerHeight:s,lineHeight:a}}function We(t,e){var i={lines:[],width:0,height:0};if(null!=t&&(t+=""),!t)return i;for(var n,a=lb.lastIndex=0;null!=(n=lb.exec(t));){var o=n.index;o>a&&He(i,t.substring(a,o)),He(i,n[2],n[1]),a=lb.lastIndex}a<t.length&&He(i,t.substring(a,t.length));var r=i.lines,s=0,l=0,u=[],h=e.textPadding,c=e.truncate,d=c&&c.outerWidth,f=c&&c.outerHeight;for(h&&(null!=d&&(d-=h[1]+h[3]),null!=f&&(f-=h[0]+h[2])),L=0;L<r.length;L++){for(var p=r[L],g=0,m=0,v=0;v<p.tokens.length;v++){var y=(k=p.tokens[v]).styleName&&e.rich[k.styleName]||{},x=k.textPadding=y.textPadding,_=k.font=y.font||e.font,w=k.textHeight=D(y.textHeight,Ve(_));if(x&&(w+=x[0]+x[2]),k.height=w,k.lineHeight=C(y.textLineHeight,e.textLineHeight,w),k.textAlign=y&&y.textAlign||e.textAlign,k.textVerticalAlign=y&&y.textVerticalAlign||"middle",null!=f&&s+k.lineHeight>f)return{lines:[],width:0,height:0};k.textWidth=De(k.text,_);var b=y.textWidth,S=null==b||"auto"===b;if("string"==typeof b&&"%"===b.charAt(b.length-1))k.percentWidth=b,u.push(k),b=0;else{if(S){b=k.textWidth;var M=y.textBackgroundColor,I=M&&M.image;I&&Ae(I=Me(I))&&(b=Math.max(b,I.width*w/I.height))}var T=x?x[1]+x[3]:0;b+=T;var A=null!=d?d-m:null;null!=A&&A<b&&(!S||A<T?(k.text="",k.textWidth=b=0):(k.text=Ee(k.text,A-T,_,c.ellipsis,{minChar:c.minChar}),k.textWidth=De(k.text,_),b=k.textWidth+T))}m+=k.width=b,y&&(g=Math.max(g,k.lineHeight))}p.width=m,p.lineHeight=g,s+=g,l=Math.max(l,m)}i.outerWidth=i.width=D(e.textWidth,l),i.outerHeight=i.height=D(e.textHeight,s),h&&(i.outerWidth+=h[1]+h[3],i.outerHeight+=h[0]+h[2]);for(var L=0;L<u.length;L++){var k=u[L],P=k.percentWidth;k.width=parseInt(P,10)/100*l}return i}function He(t,e,i){for(var n=""===e,a=e.split("\n"),o=t.lines,r=0;r<a.length;r++){var s=a[r],l={styleName:i,text:s,isLineHolder:!s&&!n};if(r)o.push({tokens:[l]});else{var u=(o[o.length-1]||(o[0]={tokens:[]})).tokens,h=u.length;1===h&&u[0].isLineHolder?u[0]=l:(s||!h||n)&&u.push(l)}}}function Ue(t){var e=(t.fontSize||t.fontFamily)&&[t.fontStyle,t.fontWeight,(t.fontSize||12)+"px",t.fontFamily||"sans-serif"].join(" ");return e&&N(e)||t.textFont||t.font}function Ze(t,e){var i,n,a,o,r,s=e.x,l=e.y,u=e.width,h=e.height,c=e.r;u<0&&(s+=u,u=-u),h<0&&(l+=h,h=-h),"number"==typeof c?i=n=a=o=c:c instanceof Array?1===c.length?i=n=a=o=c[0]:2===c.length?(i=a=c[0],n=o=c[1]):3===c.length?(i=c[0],n=o=c[1],a=c[2]):(i=c[0],n=c[1],a=c[2],o=c[3]):i=n=a=o=0,i+n>u&&(i*=u/(r=i+n),n*=u/r),a+o>u&&(a*=u/(r=a+o),o*=u/r),n+a>h&&(n*=h/(r=n+a),a*=h/r),i+o>h&&(i*=h/(r=i+o),o*=h/r),t.moveTo(s+i,l),t.lineTo(s+u-n,l),0!==n&&t.arc(s+u-n,l+n,n,-Math.PI/2,0),t.lineTo(s+u,l+h-a),0!==a&&t.arc(s+u-a,l+h-a,a,0,Math.PI/2),t.lineTo(s+o,l+h),0!==o&&t.arc(s+o,l+h-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+i),0!==i&&t.arc(s+i,l+i,i,Math.PI,1.5*Math.PI)}function je(t){return Xe(t),f(t.rich,Xe),t}function Xe(t){if(t){t.font=Ue(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||cb[e]?e:"left";var i=t.textVerticalAlign||t.textBaseline;"center"===i&&(i="middle"),t.textVerticalAlign=null==i||db[i]?i:"top",t.textPadding&&(t.textPadding=k(t.textPadding))}}function Ye(t,e,i,n,a,o){n.rich?$e(t,e,i,n,a):qe(t,e,i,n,a,o)}function qe(t,e,i,n,a,o){var r=o&&o.style,s=r&&"text"===o.type,l=n.font||ub;s&&l===(r.font||ub)||(e.font=l);var u=t.__computedFont;t.__styleFont!==l&&(t.__styleFont=l,u=t.__computedFont=e.font);var h=n.textPadding,c=t.__textCotentBlock;c&&!t.__dirtyText||(c=t.__textCotentBlock=Ge(i,u,h,n.truncate));var d=c.outerHeight,f=c.lines,p=c.lineHeight,g=ni(d,n,a),m=g.baseX,v=g.baseY,y=g.textAlign||"left",x=g.textVerticalAlign;Je(e,n,a,m,v);var _=Ne(v,d,x),w=m,b=_,S=ti(n);if(S||h){var M=De(i,u);h&&(M+=h[1]+h[3]);var I=Pe(m,M,y);S&&ei(t,e,n,I,_,M,d),h&&(w=li(m,y,h),b+=h[0])}for(e.textAlign=y,e.textBaseline="middle",R=0;R<fb.length;R++){var T=fb[R],A=T[0],D=T[1],C=n[A];s&&C===r[A]||(e[D]=qw(e,D,C||T[2]))}b+=p/2;var L=n.textStrokeWidth,k=s?r.textStrokeWidth:null,P=!s||L!==k,N=!s||P||n.textStroke!==r.textStroke,O=oi(n.textStroke,L),E=ri(n.textFill);if(O&&(P&&(e.lineWidth=L),N&&(e.strokeStyle=O)),E&&(s&&n.textFill===r.textFill&&!r.textBackgroundColor||(e.fillStyle=E)),1===f.length)O&&e.strokeText(f[0],w,b),E&&e.fillText(f[0],w,b);else for(var R=0;R<f.length;R++)O&&e.strokeText(f[R],w,b),E&&e.fillText(f[R],w,b),b+=p}function $e(t,e,i,n,a){var o=t.__textCotentBlock;o&&!t.__dirtyText||(o=t.__textCotentBlock=We(i,n)),Ke(t,e,o,n,a)}function Ke(t,e,i,n,a){var o=i.width,r=i.outerWidth,s=i.outerHeight,l=n.textPadding,u=ni(s,n,a),h=u.baseX,c=u.baseY,d=u.textAlign,f=u.textVerticalAlign;Je(e,n,a,h,c);var p=Pe(h,r,d),g=Ne(c,s,f),m=p,v=g;l&&(m+=l[3],v+=l[0]);var y=m+o;ti(n)&&ei(t,e,n,p,g,r,s);for(var x=0;x<i.lines.length;x++){for(var _,w=i.lines[x],b=w.tokens,S=b.length,M=w.lineHeight,I=w.width,T=0,A=m,D=y,C=S-1;T<S&&(!(_=b[T]).textAlign||"left"===_.textAlign);)Qe(t,e,_,n,M,v,A,"left"),I-=_.width,A+=_.width,T++;for(;C>=0&&"right"===(_=b[C]).textAlign;)Qe(t,e,_,n,M,v,D,"right"),I-=_.width,D-=_.width,C--;for(A+=(o-(A-m)-(y-D)-I)/2;T<=C;)Qe(t,e,_=b[T],n,M,v,A+_.width/2,"center"),A+=_.width,T++;v+=M}}function Je(t,e,i,n,a){if(i&&e.textRotation){var o=e.textOrigin;"center"===o?(n=i.width/2+i.x,a=i.height/2+i.y):o&&(n=o[0]+i.x,a=o[1]+i.y),t.translate(n,a),t.rotate(-e.textRotation),t.translate(-n,-a)}}function Qe(t,e,i,n,a,o,r,s){var l=n.rich[i.styleName]||{};l.text=i.text;var u=i.textVerticalAlign,h=o+a/2;"top"===u?h=o+i.height/2:"bottom"===u&&(h=o+a-i.height/2),!i.isLineHolder&&ti(l)&&ei(t,e,l,"right"===s?r-i.width:"center"===s?r-i.width/2:r,h-i.height/2,i.width,i.height);var c=i.textPadding;c&&(r=li(r,s,c),h-=i.height/2-c[2]-i.textHeight/2),ai(e,"shadowBlur",C(l.textShadowBlur,n.textShadowBlur,0)),ai(e,"shadowColor",l.textShadowColor||n.textShadowColor||"transparent"),ai(e,"shadowOffsetX",C(l.textShadowOffsetX,n.textShadowOffsetX,0)),ai(e,"shadowOffsetY",C(l.textShadowOffsetY,n.textShadowOffsetY,0)),ai(e,"textAlign",s),ai(e,"textBaseline","middle"),ai(e,"font",i.font||ub);var d=oi(l.textStroke||n.textStroke,p),f=ri(l.textFill||n.textFill),p=D(l.textStrokeWidth,n.textStrokeWidth);d&&(ai(e,"lineWidth",p),ai(e,"strokeStyle",d),e.strokeText(i.text,r,h)),f&&(ai(e,"fillStyle",f),e.fillText(i.text,r,h))}function ti(t){return t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor}function ei(t,e,i,n,a,o,r){var s=i.textBackgroundColor,l=i.textBorderWidth,u=i.textBorderColor,h=w(s);if(ai(e,"shadowBlur",i.textBoxShadowBlur||0),ai(e,"shadowColor",i.textBoxShadowColor||"transparent"),ai(e,"shadowOffsetX",i.textBoxShadowOffsetX||0),ai(e,"shadowOffsetY",i.textBoxShadowOffsetY||0),h||l&&u){e.beginPath();var c=i.textBorderRadius;c?Ze(e,{x:n,y:a,width:o,height:r,r:c}):e.rect(n,a,o,r),e.closePath()}if(h)ai(e,"fillStyle",s),null!=i.fillOpacity?(f=e.globalAlpha,e.globalAlpha=i.fillOpacity*i.opacity,e.fill(),e.globalAlpha=f):e.fill();else if(_(s))ai(e,"fillStyle",s(i)),e.fill();else if(b(s)){var d=s.image;(d=Ie(d,null,t,ii,s))&&Ae(d)&&e.drawImage(d,n,a,o,r)}if(l&&u)if(ai(e,"lineWidth",l),ai(e,"strokeStyle",u),null!=i.strokeOpacity){var f=e.globalAlpha;e.globalAlpha=i.strokeOpacity*i.opacity,e.stroke(),e.globalAlpha=f}else e.stroke()}function ii(t,e){e.image=t}function ni(t,e,i){var n=e.x||0,a=e.y||0,o=e.textAlign,r=e.textVerticalAlign;if(i){var s=e.textPosition;if(s instanceof Array)n=i.x+si(s[0],i.width),a=i.y+si(s[1],i.height);else{var l=Oe(s,i,e.textDistance);n=l.x,a=l.y,o=o||l.textAlign,r=r||l.textVerticalAlign}var u=e.textOffset;u&&(n+=u[0],a+=u[1])}return{baseX:n,baseY:a,textAlign:o,textVerticalAlign:r}}function ai(t,e,i){return t[e]=qw(t,e,i),t[e]}function oi(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function ri(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function si(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function li(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function ui(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}function hi(t){for(var e in t=t||{},Fw.call(this,t),t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new Kw(t.style,this),this._rect=null,this.__clipPaths=[]}function ci(t){hi.call(this,t)}function di(t){return parseInt(t,10)}function fi(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}function pi(t,e,i){return mb.copy(t.getBoundingRect()),t.transform&&mb.applyTransform(t.transform),vb.width=e,vb.height=i,!mb.intersect(vb)}function gi(t,e){if(t==e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!0}function mi(t,e){for(var i=0;i<t.length;i++){var n=t[i];n.setTransform(e),e.beginPath(),n.buildPath(e,n.shape),e.clip(),n.restoreTransform(e)}}function vi(t,e){var i=document.createElement("div");return i.style.cssText=["position:relative","overflow:hidden","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",i}function yi(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function xi(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function _i(t){return"mousewheel"===t&&z_.browser.firefox?"DOMMouseScroll":t}function wi(t,e,i){var n=t._gestureMgr;"start"===i&&n.clear();var a=n.recognize(e,t.handler.findHover(e.zrX,e.zrY,null).target,t.dom);if("end"===i&&n.clear(),a){var o=a.type;e.gestureEvent=o,t.handler.dispatchToElement({target:a.target},o,a.event)}}function bi(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout((function(){t._touching=!1}),700)}function Si(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Mi(t){function e(t,e){return function(){if(!e._touching)return t.apply(e,arguments)}}f(Sb,(function(e){t._handlers[e]=v(Tb[e],t)})),f(Ib,(function(e){t._handlers[e]=v(Tb[e],t)})),f(bb,(function(i){t._handlers[i]=e(Tb[i],t)}))}function Ii(t){function e(e,i){f(e,(function(e){ht(t,_i(e),i._handlers[e])}),i)}ow.call(this),this.dom=t,this._touching=!1,this._touchTimer,this._gestureMgr=new _b,this._handlers={},Mi(this),z_.pointerEventsSupported?e(Ib,this):(z_.touchEventsSupported&&e(Sb,this),e(bb,this))}function Ti(t,e){var i=new kb(R_(),t,e);return Lb[i.id]=i,i}function Ai(t,e){Cb[t]=e}function Di(t){delete Lb[t]}function Ci(t){return t instanceof Array?t:null==t?[]:[t]}function Li(t,e,i){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,a=i.length;n<a;n++){var o=i[n];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function ki(t){return!Ob(t)||Eb(t)||t instanceof Date?t:t.value}function Pi(t){return Ob(t)&&!(t instanceof Array)}function Ni(t,e){e=(e||[]).slice();var i=p(t||[],(function(t,e){return{exist:t}}));return Nb(e,(function(t,n){if(Ob(t)){for(a=0;a<i.length;a++)if(!i[a].option&&null!=t.id&&i[a].exist.id===t.id+"")return i[a].option=t,void(e[n]=null);for(var a=0;a<i.length;a++){var o=i[a].exist;if(!(i[a].option||null!=o.id&&null!=t.id||null==t.name||Ri(t)||Ri(o)||o.name!==t.name+""))return i[a].option=t,void(e[n]=null)}}})),Nb(e,(function(t,e){if(Ob(t)){for(var n=0;n<i.length;n++){var a=i[n].exist;if(!i[n].option&&!Ri(a)&&null==t.id){i[n].option=t;break}}n>=i.length&&i.push({option:t})}})),i}function Oi(t){var e=z();Nb(t,(function(t,i){var n=t.exist;n&&e.set(n.id,t)})),Nb(t,(function(t,i){var n=t.option;P(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})})),Nb(t,(function(t,i){var n=t.exist,a=t.option,o=t.keyInfo;if(Ob(a)){if(o.name=null!=a.name?a.name+"":n?n.name:Rb+i,n)o.id=n.id;else if(null!=a.id)o.id=a.id+"";else{var r=0;do{o.id="\0"+o.name+"\0"+r++}while(e.get(o.id))}e.set(o.id,t)}}))}function Ei(t){var e=t.name;return!(!e||!e.indexOf(Rb))}function Ri(t){return Ob(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")}function zi(t,e){function i(t,e,i){for(var n=0,a=t.length;n<a;n++)for(var o=t[n].seriesId,r=Ci(t[n].dataIndex),s=i&&i[o],l=0,u=r.length;l<u;l++){var h=r[l];s&&s[h]?s[h]=null:(e[o]||(e[o]={}))[h]=1}}function n(t,e){var i=[];for(var a in t)if(t.hasOwnProperty(a)&&null!=t[a])if(e)i.push(+a);else{var o=n(t[a],!0);o.length&&i.push({seriesId:a,dataIndex:o})}return i}var a={},o={};return i(t||[],a),i(e||[],o,a),[n(a),n(o)]}function Bi(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?x(e.dataIndex)?p(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?x(e.name)?p(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function Vi(){var t="__\0ec_inner_"+Bb+++"_"+Math.random().toFixed(5);return function(e){return e[t]||(e[t]={})}}function Fi(t,e,i){if(w(e)){var n={};n[e+"Index"]=0,e=n}var a=i&&i.defaultMainType;!a||Gi(e,a+"Index")||Gi(e,a+"Id")||Gi(e,a+"Name")||(e[a+"Index"]=0);var o={};return Nb(e,(function(n,a){n=e[a];if("dataIndex"!==a&&"dataIndexInside"!==a){var r=a.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(!(!s||!l||null==n||"index"===l&&"none"===n||i&&i.includeMainTypes&&u(i.includeMainTypes,s)<0)){var h={mainType:s};"index"===l&&"all"===n||(h[l]=n);var c=t.queryComponents(h);o[s+"Models"]=c,o[s+"Model"]=c[0]}}else o[a]=n})),o}function Gi(t,e){return t&&t.hasOwnProperty(e)}function Wi(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function Hi(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function Ui(t){return"auto"===t?z_.domSupported?"html":"richText":t||"html"}function Zi(t){var e={main:"",sub:""};return t&&(t=t.split(Vb),e.main=t[0]||"",e.sub=t[1]||""),e}function ji(t){P(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function Xi(t,e){t.$constructor=t,t.extend=function(t){var e=this,i=function(){t.$constructor?t.$constructor.apply(this,arguments):e.apply(this,arguments)};return r(i.prototype,t),i.extend=this.extend,i.superCall=qi,i.superApply=$i,h(i,this),i.superClass=e,i}}function Yi(t){var e=["__\0is_clz",Gb++,Math.random().toFixed(3)].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function qi(t,e){var i=L(arguments,2);return this.superClass.prototype[e].apply(t,i)}function $i(t,e,i){return this.superClass.prototype[e].apply(t,i)}function Ki(t,e){function i(t){var e=n[t.main];return e&&e[Fb]||((e=n[t.main]={})[Fb]=!0),e}e=e||{};var n={};if(t.registerClass=function(t,e){return e&&(ji(e),(e=Zi(e)).sub?e.sub!==Fb&&(i(e)[e.sub]=t):n[e.main]=t),t},t.getClass=function(t,e,i){var a=n[t];if(a&&a[Fb]&&(a=e?a[e]:null),i&&!a)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return a},t.getClassesByMainType=function(t){t=Zi(t);var e=[],i=n[t.main];return i&&i[Fb]?f(i,(function(t,i){i!==Fb&&e.push(t)})):e.push(i),e},t.hasClass=function(t){return t=Zi(t),!!n[t.main]},t.getAllClassMainTypes=function(){var t=[];return f(n,(function(e,i){t.push(i)})),t},t.hasSubTypes=function(t){t=Zi(t);var e=n[t.main];return e&&e[Fb]},t.parseClassType=Zi,e.registerWhenExtend){var a=t.extend;a&&(t.extend=function(e){var i=a.call(this,e);return t.registerClass(i,e.type)})}return t}function Ji(t){return t>-qb&&t<qb}function Qi(t){return t>qb||t<-qb}function tn(t,e,i,n,a){var o=1-a;return o*o*(o*t+3*a*e)+a*a*(a*n+3*o*i)}function en(t,e,i,n,a){var o=1-a;return 3*(((e-t)*o+2*(i-e)*a)*o+(n-i)*a*a)}function nn(t,e,i,n,a,o){var r=n+3*(e-i)-t,s=3*(i-2*e+t),l=3*(e-t),u=t-a,h=s*s-3*r*l,c=s*l-9*r*u,d=l*l-3*s*u,f=0;if(Ji(h)&&Ji(c))Ji(s)?o[0]=0:(M=-l/s)>=0&&M<=1&&(o[f++]=M);else{var p=c*c-4*h*d;if(Ji(p)){var g=c/h,m=-g/2;(M=-s/r+g)>=0&&M<=1&&(o[f++]=M),m>=0&&m<=1&&(o[f++]=m)}else if(p>0){var v=Yb(p),y=h*s+1.5*r*(-c+v),x=h*s+1.5*r*(-c-v);(M=(-s-((y=y<0?-Xb(-y,Jb):Xb(y,Jb))+(x=x<0?-Xb(-x,Jb):Xb(x,Jb))))/(3*r))>=0&&M<=1&&(o[f++]=M)}else{var _=(2*h*s-3*r*c)/(2*Yb(h*h*h)),w=Math.acos(_)/3,b=Yb(h),S=Math.cos(w),M=(-s-2*b*S)/(3*r),I=(m=(-s+b*(S+Kb*Math.sin(w)))/(3*r),(-s+b*(S-Kb*Math.sin(w)))/(3*r));M>=0&&M<=1&&(o[f++]=M),m>=0&&m<=1&&(o[f++]=m),I>=0&&I<=1&&(o[f++]=I)}}return f}function an(t,e,i,n,a){var o=6*i-12*e+6*t,r=9*e+3*n-3*t-9*i,s=3*e-3*t,l=0;if(Ji(r))Qi(o)&&(c=-s/o)>=0&&c<=1&&(a[l++]=c);else{var u=o*o-4*r*s;if(Ji(u))a[0]=-o/(2*r);else if(u>0){var h=Yb(u),c=(-o+h)/(2*r),d=(-o-h)/(2*r);c>=0&&c<=1&&(a[l++]=c),d>=0&&d<=1&&(a[l++]=d)}}return l}function on(t,e,i,n,a,o){var r=(e-t)*a+t,s=(i-e)*a+e,l=(n-i)*a+i,u=(s-r)*a+r,h=(l-s)*a+s,c=(h-u)*a+u;o[0]=t,o[1]=r,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=n}function rn(t,e,i,n,a,o,r,s,l,u,h){var c,d,f,p,g,m=.005,v=1/0;Qb[0]=l,Qb[1]=u;for(var y=0;y<1;y+=.05)tS[0]=tn(t,i,a,r,y),tS[1]=tn(e,n,o,s,y),(p=iw(Qb,tS))<v&&(c=y,v=p);v=1/0;for(var x=0;x<32&&!(m<$b);x++)d=c-m,f=c+m,tS[0]=tn(t,i,a,r,d),tS[1]=tn(e,n,o,s,d),p=iw(tS,Qb),d>=0&&p<v?(c=d,v=p):(eS[0]=tn(t,i,a,r,f),eS[1]=tn(e,n,o,s,f),g=iw(eS,Qb),f<=1&&g<v?(c=f,v=g):m*=.5);return h&&(h[0]=tn(t,i,a,r,c),h[1]=tn(e,n,o,s,c)),Yb(v)}function sn(t,e,i,n){var a=1-n;return a*(a*t+2*n*e)+n*n*i}function ln(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function un(t,e,i,n,a){var o=t-2*e+i,r=2*(e-t),s=t-n,l=0;if(Ji(o))Qi(r)&&(c=-s/r)>=0&&c<=1&&(a[l++]=c);else{var u=r*r-4*o*s;if(Ji(u))(c=-r/(2*o))>=0&&c<=1&&(a[l++]=c);else if(u>0){var h=Yb(u),c=(-r+h)/(2*o),d=(-r-h)/(2*o);c>=0&&c<=1&&(a[l++]=c),d>=0&&d<=1&&(a[l++]=d)}}return l}function hn(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function cn(t,e,i,n,a){var o=(e-t)*n+t,r=(i-e)*n+e,s=(r-o)*n+o;a[0]=t,a[1]=o,a[2]=s,a[3]=s,a[4]=r,a[5]=i}function dn(t,e,i,n,a,o,r,s,l){var u,h=.005,c=1/0;Qb[0]=r,Qb[1]=s;for(var d=0;d<1;d+=.05)tS[0]=sn(t,i,a,d),tS[1]=sn(e,n,o,d),(m=iw(Qb,tS))<c&&(u=d,c=m);c=1/0;for(var f=0;f<32&&!(h<$b);f++){var p=u-h,g=u+h;tS[0]=sn(t,i,a,p),tS[1]=sn(e,n,o,p);var m=iw(tS,Qb);if(p>=0&&m<c)u=p,c=m;else{eS[0]=sn(t,i,a,g),eS[1]=sn(e,n,o,g);var v=iw(eS,Qb);g<=1&&v<c?(u=g,c=v):h*=.5}}return l&&(l[0]=sn(t,i,a,u),l[1]=sn(e,n,o,u)),Yb(c)}function fn(t,e,i){if(0!==t.length){var n,a=t[0],o=a[0],r=a[0],s=a[1],l=a[1];for(n=1;n<t.length;n++)a=t[n],o=iS(o,a[0]),r=nS(r,a[0]),s=iS(s,a[1]),l=nS(l,a[1]);e[0]=o,e[1]=s,i[0]=r,i[1]=l}}function pn(t,e,i,n,a,o){a[0]=iS(t,i),a[1]=iS(e,n),o[0]=nS(t,i),o[1]=nS(e,n)}function gn(t,e,i,n,a,o,r,s,l,u){var h,c=an,d=tn,f=c(t,i,a,r,hS);for(l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0,h=0;h<f;h++){var p=d(t,i,a,r,hS[h]);l[0]=iS(p,l[0]),u[0]=nS(p,u[0])}for(f=c(e,n,o,s,cS),h=0;h<f;h++){var g=d(e,n,o,s,cS[h]);l[1]=iS(g,l[1]),u[1]=nS(g,u[1])}l[0]=iS(t,l[0]),u[0]=nS(t,u[0]),l[0]=iS(r,l[0]),u[0]=nS(r,u[0]),l[1]=iS(e,l[1]),u[1]=nS(e,u[1]),l[1]=iS(s,l[1]),u[1]=nS(s,u[1])}function mn(t,e,i,n,a,o,r,s){var l=hn,u=sn,h=nS(iS(l(t,i,a),1),0),c=nS(iS(l(e,n,o),1),0),d=u(t,i,a,h),f=u(e,n,o,c);r[0]=iS(t,a,d),r[1]=iS(e,o,f),s[0]=nS(t,a,d),s[1]=nS(e,o,f)}function vn(t,e,i,n,a,o,r,s,l){var u=et,h=it,c=Math.abs(a-o);if(c%rS<1e-4&&c>1e-4)return s[0]=t-i,s[1]=e-n,l[0]=t+i,void(l[1]=e+n);if(sS[0]=oS(a)*i+t,sS[1]=aS(a)*n+e,lS[0]=oS(o)*i+t,lS[1]=aS(o)*n+e,u(s,sS,lS),h(l,sS,lS),(a%=rS)<0&&(a+=rS),(o%=rS)<0&&(o+=rS),a>o&&!r?o+=rS:a<o&&r&&(a+=rS),r){var d=o;o=a,a=d}for(var f=0;f<o;f+=Math.PI/2)f>a&&(uS[0]=oS(f)*i+t,uS[1]=aS(f)*n+e,u(s,uS,s),h(l,uS,l))}function yn(t,e,i,n,a,o,r){if(0===a)return!1;var s=a,l=0;if(r>e+s&&r>n+s||r<e-s&&r<n-s||o>t+s&&o>i+s||o<t-s&&o<i-s)return!1;if(t===i)return Math.abs(o-t)<=s/2;var u=(l=(e-n)/(t-i))*o-r+(t*n-i*e)/(t-i);return u*u/(l*l+1)<=s/2*s/2}function xn(t,e,i,n,a,o,r,s,l,u,h){if(0===l)return!1;var c=l;return!(h>e+c&&h>n+c&&h>o+c&&h>s+c||h<e-c&&h<n-c&&h<o-c&&h<s-c||u>t+c&&u>i+c&&u>a+c&&u>r+c||u<t-c&&u<i-c&&u<a-c&&u<r-c)&&rn(t,e,i,n,a,o,r,s,u,h,null)<=c/2}function _n(t,e,i,n,a,o,r,s,l){if(0===r)return!1;var u=r;return!(l>e+u&&l>n+u&&l>o+u||l<e-u&&l<n-u&&l<o-u||s>t+u&&s>i+u&&s>a+u||s<t-u&&s<i-u&&s<a-u)&&dn(t,e,i,n,a,o,s,l,null)<=u/2}function wn(t){return(t%=IS)<0&&(t+=IS),t}function bn(t,e,i,n,a,o,r,s,l){if(0===r)return!1;var u=r;s-=t,l-=e;var h=Math.sqrt(s*s+l*l);if(h-u>i||h+u<i)return!1;if(Math.abs(n-a)%TS<1e-4)return!0;if(o){var c=n;n=wn(a),a=wn(c)}else n=wn(n),a=wn(a);n>a&&(a+=TS);var d=Math.atan2(l,s);return d<0&&(d+=TS),d>=n&&d<=a||d+TS>=n&&d+TS<=a}function Sn(t,e,i,n,a,o){if(o>e&&o>n||o<e&&o<n)return 0;if(n===e)return 0;var r=n<e?1:-1,s=(o-e)/(n-e);1!==s&&0!==s||(r=n<e?.5:-.5);var l=s*(i-t)+t;return l===a?1/0:l>a?r:0}function Mn(t,e){return Math.abs(t-e)<CS}function In(){var t=kS[0];kS[0]=kS[1],kS[1]=t}function Tn(t,e,i,n,a,o,r,s,l,u){if(u>e&&u>n&&u>o&&u>s||u<e&&u<n&&u<o&&u<s)return 0;var h=nn(e,n,o,s,u,LS);if(0===h)return 0;for(var c,d,f=0,p=-1,g=0;g<h;g++){var m=LS[g],v=0===m||1===m?.5:1;tn(t,i,a,r,m)<l||(p<0&&(p=an(e,n,o,s,kS),kS[1]<kS[0]&&p>1&&In(),c=tn(e,n,o,s,kS[0]),p>1&&(d=tn(e,n,o,s,kS[1]))),2==p?m<kS[0]?f+=c<e?v:-v:m<kS[1]?f+=d<c?v:-v:f+=s<d?v:-v:m<kS[0]?f+=c<e?v:-v:f+=s<c?v:-v)}return f}function An(t,e,i,n,a,o,r,s){if(s>e&&s>n&&s>o||s<e&&s<n&&s<o)return 0;var l=un(e,n,o,s,LS);if(0===l)return 0;var u=hn(e,n,o);if(u>=0&&u<=1){for(var h=0,c=sn(e,n,o,u),d=0;d<l;d++)f=0===LS[d]||1===LS[d]?.5:1,(p=sn(t,i,a,LS[d]))<r||(LS[d]<u?h+=c<e?f:-f:h+=o<c?f:-f);return h}var f=0===LS[0]||1===LS[0]?.5:1,p=sn(t,i,a,LS[0]);return p<r?0:o<e?f:-f}function Dn(t,e,i,n,a,o,r,s){if((s-=e)>i||s<-i)return 0;u=Math.sqrt(i*i-s*s),LS[0]=-u,LS[1]=u;var l=Math.abs(n-a);if(l<1e-4)return 0;if(l%DS<1e-4)return n=0,a=DS,p=o?1:-1,r>=LS[0]+t&&r<=LS[1]+t?p:0;if(o){var u=n;n=wn(a),a=wn(u)}else n=wn(n),a=wn(a);n>a&&(a+=DS);for(var h=0,c=0;c<2;c++){var d=LS[c];if(d+t>r){var f=Math.atan2(s,d),p=o?1:-1;f<0&&(f=DS+f),(f>=n&&f<=a||f+DS>=n&&f+DS<=a)&&(f>Math.PI/2&&f<1.5*Math.PI&&(p=-p),h+=p)}}return h}function Cn(t,e,i,n,a){for(var o=0,r=0,s=0,l=0,u=0,h=0;h<t.length;){var c=t[h++];switch(c===AS.M&&h>1&&(i||(o+=Sn(r,s,l,u,n,a))),1==h&&(l=r=t[h],u=s=t[h+1]),c){case AS.M:r=l=t[h++],s=u=t[h++];break;case AS.L:if(i){if(yn(r,s,t[h],t[h+1],e,n,a))return!0}else o+=Sn(r,s,t[h],t[h+1],n,a)||0;r=t[h++],s=t[h++];break;case AS.C:if(i){if(xn(r,s,t[h++],t[h++],t[h++],t[h++],t[h],t[h+1],e,n,a))return!0}else o+=Tn(r,s,t[h++],t[h++],t[h++],t[h++],t[h],t[h+1],n,a)||0;r=t[h++],s=t[h++];break;case AS.Q:if(i){if(_n(r,s,t[h++],t[h++],t[h],t[h+1],e,n,a))return!0}else o+=An(r,s,t[h++],t[h++],t[h],t[h+1],n,a)||0;r=t[h++],s=t[h++];break;case AS.A:var d=t[h++],f=t[h++],p=t[h++],g=t[h++],m=t[h++],v=t[h++],y=(t[h++],1-t[h++]),x=Math.cos(m)*p+d,_=Math.sin(m)*g+f;h>1?o+=Sn(r,s,x,_,n,a):(l=x,u=_);var w=(n-d)*g/p+d;if(i){if(bn(d,f,g,m,m+v,y,e,w,a))return!0}else o+=Dn(d,f,g,m,m+v,y,w,a);r=Math.cos(m+v)*p+d,s=Math.sin(m+v)*g+f;break;case AS.R:l=r=t[h++],u=s=t[h++];x=l+t[h++],_=u+t[h++];if(i){if(yn(l,u,x,u,e,n,a)||yn(x,u,x,_,e,n,a)||yn(x,_,l,_,e,n,a)||yn(l,_,l,u,e,n,a))return!0}else o+=Sn(x,u,x,_,n,a),o+=Sn(l,_,l,u,n,a);break;case AS.Z:if(i){if(yn(r,s,l,u,e,n,a))return!0}else o+=Sn(r,s,l,u,n,a);r=l,s=u}}return i||Mn(s,u)||(o+=Sn(r,s,l,u,n,a)||0),0!==o}function Ln(t,e,i){return Cn(t,0,!1,e,i)}function kn(t,e,i,n){return Cn(t,e,!0,i,n)}function Pn(t){hi.call(this,t),this.path=null}function Nn(t,e,i,n,a,o,r,s,l,u,h){var c=l*(HS/180),d=WS(c)*(t-i)/2+GS(c)*(e-n)/2,f=-1*GS(c)*(t-i)/2+WS(c)*(e-n)/2,p=d*d/(r*r)+f*f/(s*s);p>1&&(r*=FS(p),s*=FS(p));var g=(a===o?-1:1)*FS((r*r*(s*s)-r*r*(f*f)-s*s*(d*d))/(r*r*(f*f)+s*s*(d*d)))||0,m=g*r*f/s,v=g*-s*d/r,y=(t+i)/2+WS(c)*m-GS(c)*v,x=(e+n)/2+GS(c)*m+WS(c)*v,_=jS([1,0],[(d-m)/r,(f-v)/s]),w=[(d-m)/r,(f-v)/s],b=[(-1*d-m)/r,(-1*f-v)/s],S=jS(w,b);ZS(w,b)<=-1&&(S=HS),ZS(w,b)>=1&&(S=0),0===o&&S>0&&(S-=2*HS),1===o&&S<0&&(S+=2*HS),h.addData(u,y,x,r,s,_,S,c,o)}function On(t){if(!t)return new MS;for(var e,i=0,n=0,a=i,o=n,r=new MS,s=MS.CMD,l=t.match(XS),u=0;u<l.length;u++){for(var h,c=l[u],d=c.charAt(0),f=c.match(YS)||[],p=f.length,g=0;g<p;g++)f[g]=parseFloat(f[g]);for(var m=0;m<p;){var v,y,x,_,w,b,S,M=i,I=n;switch(d){case"l":i+=f[m++],n+=f[m++],h=s.L,r.addData(h,i,n);break;case"L":i=f[m++],n=f[m++],h=s.L,r.addData(h,i,n);break;case"m":i+=f[m++],n+=f[m++],h=s.M,r.addData(h,i,n),a=i,o=n,d="l";break;case"M":i=f[m++],n=f[m++],h=s.M,r.addData(h,i,n),a=i,o=n,d="L";break;case"h":i+=f[m++],h=s.L,r.addData(h,i,n);break;case"H":i=f[m++],h=s.L,r.addData(h,i,n);break;case"v":n+=f[m++],h=s.L,r.addData(h,i,n);break;case"V":n=f[m++],h=s.L,r.addData(h,i,n);break;case"C":h=s.C,r.addData(h,f[m++],f[m++],f[m++],f[m++],f[m++],f[m++]),i=f[m-2],n=f[m-1];break;case"c":h=s.C,r.addData(h,f[m++]+i,f[m++]+n,f[m++]+i,f[m++]+n,f[m++]+i,f[m++]+n),i+=f[m-2],n+=f[m-1];break;case"S":v=i,y=n;var T=r.len(),A=r.data;e===s.C&&(v+=i-A[T-4],y+=n-A[T-3]),h=s.C,M=f[m++],I=f[m++],i=f[m++],n=f[m++],r.addData(h,v,y,M,I,i,n);break;case"s":v=i,y=n;T=r.len(),A=r.data;e===s.C&&(v+=i-A[T-4],y+=n-A[T-3]),h=s.C,M=i+f[m++],I=n+f[m++],i+=f[m++],n+=f[m++],r.addData(h,v,y,M,I,i,n);break;case"Q":M=f[m++],I=f[m++],i=f[m++],n=f[m++],h=s.Q,r.addData(h,M,I,i,n);break;case"q":M=f[m++]+i,I=f[m++]+n,i+=f[m++],n+=f[m++],h=s.Q,r.addData(h,M,I,i,n);break;case"T":v=i,y=n;T=r.len(),A=r.data;e===s.Q&&(v+=i-A[T-4],y+=n-A[T-3]),i=f[m++],n=f[m++],h=s.Q,r.addData(h,v,y,i,n);break;case"t":v=i,y=n;T=r.len(),A=r.data;e===s.Q&&(v+=i-A[T-4],y+=n-A[T-3]),i+=f[m++],n+=f[m++],h=s.Q,r.addData(h,v,y,i,n);break;case"A":x=f[m++],_=f[m++],w=f[m++],b=f[m++],S=f[m++],Nn(M=i,I=n,i=f[m++],n=f[m++],b,S,x,_,w,h=s.A,r);break;case"a":x=f[m++],_=f[m++],w=f[m++],b=f[m++],S=f[m++],Nn(M=i,I=n,i+=f[m++],n+=f[m++],b,S,x,_,w,h=s.A,r)}}"z"!==d&&"Z"!==d||(h=s.Z,r.addData(h),i=a,n=o),e=h}return r.toStatic(),r}function En(t,e){var i=On(t);return e=e||{},e.buildPath=function(t){if(t.setData)t.setData(i.data),(e=t.getContext())&&t.rebuildPath(e);else{var e=t;i.rebuildPath(e)}},e.applyTransform=function(t){VS(i,t),this.dirty(!0)},e}function Rn(t,e){return new Pn(En(t,e))}function zn(t,e){return Pn.extend(En(t,e))}function Bn(t,e,i,n,a,o,r){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*r+(-3*(e-i)-2*s-l)*o+s*a+e}function Vn(t,e,i){var n=e.points,a=e.smooth;if(n&&n.length>=2){if(a&&"spline"!==a){var o=iM(n,a,i,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var r=n.length,s=0;s<(i?r:r-1);s++){var l=o[2*s],u=o[2*s+1],h=n[(s+1)%r];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{"spline"===a&&(n=eM(n,i)),t.moveTo(n[0][0],n[0][1]);s=1;for(var c=n.length;s<c;s++)t.lineTo(n[s][0],n[s][1])}i&&t.closePath()}}function Fn(t,e,i){var n=t.cpx2,a=t.cpy2;return null===n||null===a?[(i?en:tn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?en:tn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?ln:sn)(t.x1,t.cpx1,t.x2,e),(i?ln:sn)(t.y1,t.cpy1,t.y2,e)]}function Gn(t){hi.call(this,t),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}function Wn(t){return Pn.extend(t)}function Hn(t,e,i,n){var a=Rn(t,e);return i&&("center"===n&&(i=Zn(i,a.getBoundingRect())),jn(a,i)),a}function Un(t,e,i){var n=new ci({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===i){var a={width:t.width,height:t.height};n.setStyle(Zn(e,a))}}});return n}function Zn(t,e){var i,n=e.width/e.height,a=t.height*n;return i=a<=t.width?t.height:(a=t.width)/n,{x:t.x+t.width/2-a/2,y:t.y+t.height/2-i/2,width:a,height:i}}function jn(t,e){if(t.applyTransform){var i=t.getBoundingRect().calculateTransform(e);t.applyTransform(i)}}function Xn(t){var e=t.shape,i=t.style.lineWidth;return gM(2*e.x1)===gM(2*e.x2)&&(e.x1=e.x2=qn(e.x1,i,!0)),gM(2*e.y1)===gM(2*e.y2)&&(e.y1=e.y2=qn(e.y1,i,!0)),t}function Yn(t){var e=t.shape,i=t.style.lineWidth,n=e.x,a=e.y,o=e.width,r=e.height;return e.x=qn(e.x,i,!0),e.y=qn(e.y,i,!0),e.width=Math.max(qn(n+o,i,!1)-e.x,0===o?0:1),e.height=Math.max(qn(a+r,i,!1)-e.y,0===r?0:1),t}function qn(t,e,i){var n=gM(2*t);return(n+gM(e))%2==0?n/2:(n+(i?1:-1))/2}function $n(t){return null!=t&&"none"!==t}function Kn(t){if("string"!=typeof t)return t;var e=_M.get(t);return e||(e=Gt(t,-.1),wM<1e4&&(_M.set(t,e),wM++)),e}function Jn(t){if(t.__hoverStlDirty){t.__hoverStlDirty=!1;var e=t.__hoverStl;if(e){var i=t.__normalStl={},n=t.style;for(var a in e)null!=e[a]&&(i[a]=n[a]);i.fill=n.fill,i.stroke=n.stroke}else t.__normalStl=null}}function Qn(t){var e=t.__hoverStl;if(e&&!t.__highlighted){var i=t.useHoverLayer;t.__highlighted=i?"layer":"plain";var n=t.__zr;if(n||!i){var a=t,o=t.style;i&&(o=(a=n.addHover(t)).style),xa(o),i||Jn(a),o.extendFrom(e),ta(o,e,"fill"),ta(o,e,"stroke"),ya(o),i||(t.dirty(!1),t.z2+=1)}}}function ta(t,e,i){!$n(e[i])&&$n(t[i])&&(t[i]=Kn(t[i]))}function ea(t){t.__highlighted&&(ia(t),t.__highlighted=!1)}function ia(t){var e=t.__highlighted;if("layer"===e)t.__zr&&t.__zr.removeHover(t);else if(e){var i=t.style,n=t.__normalStl;n&&(xa(i),t.setStyle(n),ya(i),t.z2-=1)}}function na(t,e){t.isGroup?t.traverse((function(t){!t.isGroup&&e(t)})):e(t)}function aa(t,e){e=t.__hoverStl=!1!==e&&(e||{}),t.__hoverStlDirty=!0,t.__highlighted&&(ea(t),Qn(t))}function oa(t){return t&&t.__isEmphasisEntered}function ra(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasisEntered&&na(this,Qn)}function sa(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasisEntered&&na(this,ea)}function la(){this.__isEmphasisEntered=!0,na(this,Qn)}function ua(){this.__isEmphasisEntered=!1,na(this,ea)}function ha(t,e,i){t.isGroup?t.traverse((function(t){!t.isGroup&&aa(t,t.hoverStyle||e)})):aa(t,t.hoverStyle||e),ca(t,i)}function ca(t,e){var i=!1===e;if(t.__hoverSilentOnTouch=null!=e&&e.hoverSilentOnTouch,!i||t.__hoverStyleTrigger){var n=i?"off":"on";t[n]("mouseover",ra)[n]("mouseout",sa),t[n]("emphasis",la)[n]("normal",ua),t.__hoverStyleTrigger=!i}}function da(t,e,i,n,a,o,r){var s,l=(a=a||yM).labelFetcher,u=a.labelDataIndex,h=a.labelDimIndex,c=i.getShallow("show"),d=n.getShallow("show");(c||d)&&(l&&(s=l.getFormattedLabel(u,"normal",null,h)),null==s&&(s=_(a.defaultText)?a.defaultText(u,a):a.defaultText));var f=c?s:null,p=d?D(l?l.getFormattedLabel(u,"emphasis",null,h):null,s):null;null==f&&null==p||(fa(t,i,o,a),fa(e,n,r,a,!0)),t.text=f,e.text=p}function fa(t,e,i,n,a){return pa(t,e,n,a),i&&r(t,i),t}function pa(t,e,i,n){if((i=i||yM).isRectText){var a=e.getShallow("position")||(n?null:"inside");"outside"===a&&(a="top"),t.textPosition=a,t.textOffset=e.getShallow("offset");var o=e.getShallow("rotate");null!=o&&(o*=Math.PI/180),t.textRotation=o,t.textDistance=D(e.getShallow("distance"),n?null:5)}var r,s=e.ecModel,l=s&&s.option.textStyle,u=ga(e);if(u)for(var h in r={},u)if(u.hasOwnProperty(h)){var c=e.getModel(["rich",h]);ma(r[h]={},c,l,i,n)}return t.rich=r,ma(t,e,l,i,n,!0),i.forceRich&&!i.textStyle&&(i.textStyle={}),t}function ga(t){for(var e;t&&t!==t.ecModel;){var i=(t.option||yM).rich;if(i)for(var n in e=e||{},i)i.hasOwnProperty(n)&&(e[n]=1);t=t.parentModel}return e}function ma(t,e,i,n,a,o){i=!a&&i||yM,t.textFill=va(e.getShallow("color"),n)||i.color,t.textStroke=va(e.getShallow("textBorderColor"),n)||i.textBorderColor,t.textStrokeWidth=D(e.getShallow("textBorderWidth"),i.textBorderWidth),t.insideRawTextPosition=t.textPosition,a||(o&&(t.insideRollbackOpt=n,ya(t)),null==t.textFill&&(t.textFill=n.autoColor)),t.fontStyle=e.getShallow("fontStyle")||i.fontStyle,t.fontWeight=e.getShallow("fontWeight")||i.fontWeight,t.fontSize=e.getShallow("fontSize")||i.fontSize,t.fontFamily=e.getShallow("fontFamily")||i.fontFamily,t.textAlign=e.getShallow("align"),t.textVerticalAlign=e.getShallow("verticalAlign")||e.getShallow("baseline"),t.textLineHeight=e.getShallow("lineHeight"),t.textWidth=e.getShallow("width"),t.textHeight=e.getShallow("height"),t.textTag=e.getShallow("tag"),o&&n.disableBox||(t.textBackgroundColor=va(e.getShallow("backgroundColor"),n),t.textPadding=e.getShallow("padding"),t.textBorderColor=va(e.getShallow("borderColor"),n),t.textBorderWidth=e.getShallow("borderWidth"),t.textBorderRadius=e.getShallow("borderRadius"),t.textBoxShadowColor=e.getShallow("shadowColor"),t.textBoxShadowBlur=e.getShallow("shadowBlur"),t.textBoxShadowOffsetX=e.getShallow("shadowOffsetX"),t.textBoxShadowOffsetY=e.getShallow("shadowOffsetY")),t.textShadowColor=e.getShallow("textShadowColor")||i.textShadowColor,t.textShadowBlur=e.getShallow("textShadowBlur")||i.textShadowBlur,t.textShadowOffsetX=e.getShallow("textShadowOffsetX")||i.textShadowOffsetX,t.textShadowOffsetY=e.getShallow("textShadowOffsetY")||i.textShadowOffsetY}function va(t,e){return"auto"!==t?t:e&&e.autoColor?e.autoColor:null}function ya(t){var e=t.insideRollbackOpt;if(e&&null==t.textFill){var i,n=e.useInsideStyle,a=t.insideRawTextPosition,o=e.autoColor;!1!==n&&(!0===n||e.isRectText&&a&&"string"==typeof a&&a.indexOf("inside")>=0)?(i={textFill:null,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth},t.textFill="#fff",null==t.textStroke&&(t.textStroke=o,null==t.textStrokeWidth&&(t.textStrokeWidth=2))):null!=o&&(i={textFill:null},t.textFill=o),i&&(t.insideRollback=i)}}function xa(t){var e=t.insideRollback;e&&(t.textFill=e.textFill,t.textStroke=e.textStroke,t.textStrokeWidth=e.textStrokeWidth,t.insideRollback=null)}function _a(t,e){var i=e||e.getModel("textStyle");return N([t.fontStyle||i&&i.getShallow("fontStyle")||"",t.fontWeight||i&&i.getShallow("fontWeight")||"",(t.fontSize||i&&i.getShallow("fontSize")||12)+"px",t.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))}function wa(t,e,i,n,a,o){if("function"==typeof a&&(o=a,a=null),n&&n.isAnimationEnabled()){var r=t?"Update":"",s=n.getShallow("animationDuration"+r),l=n.getShallow("animationEasing"+r),u=n.getShallow("animationDelay"+r);"function"==typeof u&&(u=u(a,n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null)),"function"==typeof s&&(s=s(a)),s>0?e.animateTo(i,s,u||0,l,o,!!o):(e.stopAnimation(),e.attr(i),o&&o())}else e.stopAnimation(),e.attr(i),o&&o()}function ba(t,e,i,n,a){wa(!0,t,e,i,n,a)}function Sa(t,e,i,n,a){wa(!1,t,e,i,n,a)}function Ma(t,e){for(var i=yt([]);t&&t!==e;)_t(i,t.getLocalTransform(),i),t=t.parent;return i}function Ia(t,e,i){return e&&!d(e)&&(e=mw.getLocalTransform(e)),i&&(e=Mt([],e)),tt([],t,e)}function Ta(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),a=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-n:"right"===t?n:0,"top"===t?-a:"bottom"===t?a:0];return o=Ia(o,e,i),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Aa(t,e,i,n){function a(t){var e={position:W(t.position),rotation:t.rotation};return t.shape&&(e.shape=r({},t.shape)),e}if(t&&e){var o=function(t){var e={};return t.traverse((function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)})),e}(t);e.traverse((function(t){if(!t.isGroup&&t.anid){var e=o[t.anid];if(e){var n=a(t);t.attr(a(e)),ba(t,n,i,t.dataIndex)}}}))}}function Da(t,e){return p(t,(function(t){var i=t[0];i=mM(i,e.x),i=vM(i,e.x+e.width);var n=t[1];return n=mM(n,e.y),n=vM(n,e.y+e.height),[i,n]}))}function Ca(t,e,i){var n=(e=r({rectHover:!0},e)).style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(n.image=t.slice(8),s(n,i),new ci(e)):Hn(t.replace("path://",""),e,i,"center")}function La(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}function ka(t,e,i){for(var n=0;n<e.length&&(!e[n]||null!=(t=t&&"object"==typeof t?t[e[n]]:null));n++);return null==t&&i&&(t=i.get(e)),t}function Pa(t,e){var i=DM(t).getParent;return i?i.call(t,e):t.parentModel}function Na(t){return[t||"",CM++,Math.random().toFixed(5)].join("_")}function Oa(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")}function Ea(t,e,i,n){var a=e[1]-e[0],o=i[1]-i[0];if(0===a)return 0===o?i[0]:(i[0]+i[1])/2;if(n)if(a>0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/a*o+i[0]}function Ra(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?Oa(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function za(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),i?t:+t}function Ba(t){return t.sort((function(t,e){return t-e})),t}function Va(t){if(t=+t,isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i}function Fa(t){var e=t.toString(),i=e.indexOf("e");if(i>0){var n=+e.slice(i+1);return n<0?-n:0}var a=e.indexOf(".");return a<0?0:e.length-1-a}function Ga(t,e){var i=Math.log,n=Math.LN10,a=Math.floor(i(t[1]-t[0])/n),o=Math.round(i(Math.abs(e[1]-e[0]))/n),r=Math.min(Math.max(-a+o,0),20);return isFinite(r)?r:20}function Wa(t,e,i){if(!t[e])return 0;var n=g(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return 0;for(var a=Math.pow(10,i),o=p(t,(function(t){return(isNaN(t)?0:t)/n*a*100})),r=100*a,s=p(o,(function(t){return Math.floor(t)})),l=g(s,(function(t,e){return t+e}),0),u=p(o,(function(t,e){return t-s[e]}));l<r;){for(var h=Number.NEGATIVE_INFINITY,c=null,d=0,f=u.length;d<f;++d)u[d]>h&&(h=u[d],c=d);++s[c],u[c]=0,++l}return s[e]/a}function Ha(t){var e=2*Math.PI;return(t%e+e)%e}function Ua(t){return t>-LM&&t<LM}function Za(t){if(t instanceof Date)return t;if("string"==typeof t){var e=PM.exec(t);if(!e)return new Date(NaN);if(e[8]){var i=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(i-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,i,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))}function ja(t){return Math.pow(10,Xa(t))}function Xa(t){return Math.floor(Math.log(t)/Math.LN10)}function Ya(t,e){var i,n=Xa(t),a=Math.pow(10,n),o=t/a;return i=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,t=i*a,n>=-20?+t.toFixed(n<0?-n:0):t}function qa(t){function e(t,i,n){return t.interval[n]<i.interval[n]||t.interval[n]===i.interval[n]&&(t.close[n]-i.close[n]==(n?-1:1)||!n&&e(t,i,1))}t.sort((function(t,i){return e(t,i,0)?-1:1}));for(var i=-1/0,n=1,a=0;a<t.length;){for(var o=t[a].interval,r=t[a].close,s=0;s<2;s++)o[s]<=i&&(o[s]=i,r[s]=s?1:1-n),i=o[s],n=r[s];o[0]===o[1]&&r[0]*r[1]!=1?t.splice(a,1):a++}return t}function $a(t){return t-parseFloat(t)>=0}function Ka(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Ja(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}function Qa(t){return null==t?"":(t+"").replace(EM,(function(t,e){return RM[e]}))}function to(t,e,i){x(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],o=0;o<a.length;o++){var r=zM[o];t=t.replace(BM(r),BM(r,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=e[s][a[l]];t=t.replace(BM(zM[l],s),i?Qa(u):u)}return t}function eo(t,e,i){return f(e,(function(e,n){t=t.replace("{"+n+"}",i?Qa(e):e)})),t}function io(t,e){var i=(t=w(t)?{color:t,extraCssText:e}:t||{}).color,n=t.type,a=(e=t.extraCssText,t.renderMode||"html"),o=t.markerId||"X";return i?"html"===a?"subItem"===n?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Qa(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+Qa(i)+";"+(e||"")+'"></span>':{renderMode:a,content:"{marker"+o+"|} ",style:{color:i}}:""}function no(t,e){return t+="","0000".substr(0,e-t.length)+t}function ao(t,e,i){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var n=Za(e),a=i?"UTC":"",o=n["get"+a+"FullYear"](),r=n["get"+a+"Month"]()+1,s=n["get"+a+"Date"](),l=n["get"+a+"Hours"](),u=n["get"+a+"Minutes"](),h=n["get"+a+"Seconds"](),c=n["get"+a+"Milliseconds"]();return t.replace("MM",no(r,2)).replace("M",r).replace("yyyy",o).replace("yy",o%100).replace("dd",no(s,2)).replace("d",s).replace("hh",no(l,2)).replace("h",l).replace("mm",no(u,2)).replace("m",u).replace("ss",no(h,2)).replace("s",h).replace("SSS",no(c,3))}function oo(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function ro(t,e,i,n,a){var o=0,r=0;null==n&&(n=1/0),null==a&&(a=1/0);var s=0;e.eachChild((function(l,u){var h,c,d=l.position,f=l.getBoundingRect(),p=e.childAt(u+1),g=p&&p.getBoundingRect();if("horizontal"===t){var m=f.width+(g?-g.x+f.x:0);(h=o+m)>n||l.newline?(o=0,h=m,r+=s+i,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(g?-g.y+f.y:0);(c=r+v)>a||l.newline?(o+=s+i,r=0,c=v,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=o,d[1]=r,"horizontal"===t?o=h+i:r=c+i)}))}function so(t,e,i){var n=e.width,a=e.height,o=Ra(t.x,n),r=Ra(t.y,a),s=Ra(t.x2,n),l=Ra(t.y2,a);return(isNaN(o)||isNaN(parseFloat(t.x)))&&(o=0),(isNaN(s)||isNaN(parseFloat(t.x2)))&&(s=n),(isNaN(r)||isNaN(parseFloat(t.y)))&&(r=0),(isNaN(l)||isNaN(parseFloat(t.y2)))&&(l=a),i=OM(i||0),{width:Math.max(s-o-i[1]-i[3],0),height:Math.max(l-r-i[0]-i[2],0)}}function lo(t,e,i){i=OM(i||0);var n=e.width,a=e.height,o=Ra(t.left,n),r=Ra(t.top,a),s=Ra(t.right,n),l=Ra(t.bottom,a),u=Ra(t.width,n),h=Ra(t.height,a),c=i[2]+i[0],d=i[1]+i[3],f=t.aspect;switch(isNaN(u)&&(u=n-s-d-o),isNaN(h)&&(h=a-l-c-r),null!=f&&(isNaN(u)&&isNaN(h)&&(f>n/a?u=.8*n:h=.8*a),isNaN(u)&&(u=f*h),isNaN(h)&&(h=u/f)),isNaN(o)&&(o=n-s-u-d),isNaN(r)&&(r=a-l-h-c),t.left||t.right){case"center":o=n/2-u/2-i[3];break;case"right":o=n-u-d}switch(t.top||t.bottom){case"middle":case"center":r=a/2-h/2-i[0];break;case"bottom":r=a-h-c}o=o||0,r=r||0,isNaN(u)&&(u=n-d-o-(s||0)),isNaN(h)&&(h=a-c-r-(l||0));var p=new he(o+i[3],r+i[0],u,h);return p.margin=i,p}function uo(t,e,i,n,a){var o=!a||!a.hv||a.hv[0],r=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(o||r){var u;if("raw"===l)u="group"===t.type?new he(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();(u=u.clone()).applyTransform(h)}e=lo(s({width:u.width,height:u.height},e),i,n);var c=t.position,d=o?e.x-u.x:0,f=r?e.y-u.y:0;t.attr("position","raw"===l?[d,f]:[c[0]+d,c[1]+f])}}function ho(t,e){return null!=t[UM[e][0]]||null!=t[UM[e][1]]&&null!=t[UM[e][2]]}function co(t,e,i){function n(i,n){var r={},l=0,u={},h=0;if(WM(i,(function(e){u[e]=t[e]})),WM(i,(function(t){a(e,t)&&(r[t]=u[t]=e[t]),o(r,t)&&l++,o(u,t)&&h++})),s[n])return o(e,i[1])?u[i[2]]=null:o(e,i[2])&&(u[i[1]]=null),u;if(2!==h&&l){if(l>=2)return r;for(var c=0;c<i.length;c++){var d=i[c];if(!a(r,d)&&a(t,d)){r[d]=t[d];break}}return r}return u}function a(t,e){return t.hasOwnProperty(e)}function o(t,e){return null!=t[e]&&"auto"!==t[e]}function r(t,e,i){WM(t,(function(t){e[t]=i[t]}))}!b(i)&&(i={});var s=i.ignoreSize;!x(s)&&(s=[s,s]);var l=n(UM[0],0),u=n(UM[1],1);r(UM[0],t,l),r(UM[1],t,u)}function fo(t){return po({},t)}function po(t,e){return e&&t&&WM(HM,(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})),t}function go(t,e){for(var i=t.length,n=0;n<i;n++)if(t[n].length>e)return t[n];return t[i-1]}function mo(t){var e=t.get("coordinateSystem"),i={coordSysName:e,coordSysDims:[],axisMap:z(),categoryAxisMap:z()},n=QM[e];if(n)return n(t,i,i.axisMap,i.categoryAxisMap),i}function vo(t){return"category"===t.get("type")}function yo(t){this.fromDataset=t.fromDataset,this.data=t.data||(t.sourceFormat===nI?{}:[]),this.sourceFormat=t.sourceFormat||aI,this.seriesLayoutBy=t.seriesLayoutBy||rI,this.dimensionsDefine=t.dimensionsDefine,this.encodeDefine=t.encodeDefine&&z(t.encodeDefine),this.startIndex=t.startIndex||0,this.dimensionsDetectCount=t.dimensionsDetectCount}function xo(t){var e=t.option.source,i=aI;if(M(e))i=oI;else if(x(e)){0===e.length&&(i=eI);for(var n=0,a=e.length;n<a;n++){var o=e[n];if(null!=o){if(x(o)){i=eI;break}if(b(o)){i=iI;break}}}}else if(b(e)){for(var r in e)if(e.hasOwnProperty(r)&&d(e[r])){i=nI;break}}else if(null!=e)throw new Error("Invalid data");lI(t).sourceFormat=i}function _o(t){return lI(t).source}function wo(t){lI(t).datasetMap=z()}function bo(t){var e=t.option,i=e.data,n=M(i)?oI:tI,a=!1,o=e.seriesLayoutBy,r=e.sourceHeader,s=e.dimensions,l=Do(t);if(l){var u=l.option;i=u.source,n=lI(l).sourceFormat,a=!0,o=o||u.seriesLayoutBy,null==r&&(r=u.sourceHeader),s=s||u.dimensions}var h=So(i,n,o,r,s),c=e.encode;!c&&l&&(c=Ao(t,l,i,n,o,h)),lI(t).source=new yo({data:i,fromDataset:a,seriesLayoutBy:o,sourceFormat:n,dimensionsDefine:h.dimensionsDefine,startIndex:h.startIndex,dimensionsDetectCount:h.dimensionsDetectCount,encodeDefine:c})}function So(t,e,i,n,a){if(!t)return{dimensionsDefine:Mo(a)};var o,r,s,l;if(e===eI)"auto"===n||null==n?Io((function(t){null!=t&&"-"!==t&&(w(t)?null==r&&(r=1):r=0)}),i,t,10):r=n?1:0,a||1!==r||(a=[],Io((function(t,e){a[e]=null!=t?t:""}),i,t)),o=a?a.length:i===sI?t.length:t[0]?t[0].length:null;else if(e===iI)a||(a=To(t),s=!0);else if(e===nI)a||(a=[],s=!0,f(t,(function(t,e){a.push(e)})));else if(e===tI){var u=ki(t[0]);o=x(u)&&u.length||1}return s&&f(a,(function(t,e){"name"===(b(t)?t.name:t)&&(l=e)})),{startIndex:r,dimensionsDefine:Mo(a),dimensionsDetectCount:o,potentialNameDimIndex:l}}function Mo(t){if(t){var e=z();return p(t,(function(t,i){if(null==(t=r({},b(t)?t:{name:t})).name)return t;t.name+="",null==t.displayName&&(t.displayName=t.name);var n=e.get(t.name);return n?t.name+="-"+n.count++:e.set(t.name,{count:1}),t}))}}function Io(t,e,i,n){if(null==n&&(n=1/0),e===sI)for(o=0;o<i.length&&o<n;o++)t(i[o]?i[o][0]:null,o);else for(var a=i[0]||[],o=0;o<a.length&&o<n;o++)t(a[o],o)}function To(t){for(var e,i=0;i<t.length&&!(e=t[i++]););if(e){var n=[];return f(e,(function(t,e){n.push(e)})),n}}function Ao(t,e,i,n,a,o){var r=mo(t),s={},l=[],u=[],h=t.subType,c=z(["pie","map","funnel"]),d=z(["line","bar","pictorialBar","scatter","effectScatter","candlestick","boxplot"]);if(r&&null!=d.get(h)){var p=t.ecModel,g=lI(p).datasetMap,m=e.uid+"_"+a,v=g.get(m)||g.set(m,{categoryWayDim:1,valueWayDim:0});f(r.coordSysDims,(function(t){if(null==r.firstCategoryDimIndex)e=v.valueWayDim++,s[t]=e,u.push(e);else if(r.categoryAxisMap.get(t))s[t]=0,l.push(0);else{var e=v.categoryWayDim++;s[t]=e,u.push(e)}}))}else if(null!=c.get(h)){for(var y,x=0;x<5&&null==y;x++)Lo(i,n,a,o.dimensionsDefine,o.startIndex,x)||(y=x);if(null!=y){s.value=y;var _=o.potentialNameDimIndex||Math.max(y-1,0);u.push(_),l.push(_)}}return l.length&&(s.itemName=l),u.length&&(s.seriesName=u),s}function Do(t){var e=t.option;if(!e.data)return t.ecModel.getComponent("dataset",e.datasetIndex||0)}function Co(t,e){return Lo(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Lo(t,e,i,n,a,o){function r(t){return(null==t||!isFinite(t)||""===t)&&(!(!w(t)||"-"===t)||void 0)}var s,l;if(M(t))return!1;if(n&&(l=b(l=n[o])?l.name:l),e===eI)if(i===sI){for(var u=t[o],h=0;h<(u||[]).length&&h<5;h++)if(null!=(s=r(u[a+h])))return s}else for(h=0;h<t.length&&h<5;h++){var c=t[a+h];if(c&&null!=(s=r(c[o])))return s}else if(e===iI){if(!l)return;for(h=0;h<t.length&&h<5;h++)if((d=t[h])&&null!=(s=r(d[l])))return s}else if(e===nI){if(!l)return;if(!(u=t[l])||M(u))return!1;for(h=0;h<u.length&&h<5;h++)if(null!=(s=r(u[h])))return s}else if(e===tI)for(h=0;h<t.length&&h<5;h++){var d=t[h],f=ki(d);if(!x(f))return!1;if(null!=(s=r(f[o])))return s}return!1}function ko(t,e){if(e){var i=e.seiresIndex,n=e.seriesId,a=e.seriesName;return null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=a&&t.name!==a}}function Po(t,e){var i=t.color&&!t.colorLayer;f(e,(function(e,o){"colorLayer"===o&&i||YM.hasClass(o)||("object"==typeof e?t[o]=t[o]?a(t[o],e,!1):n(e):null==t[o]&&(t[o]=e))}))}function No(t){t=t,this.option={},this.option[uI]=1,this._componentsMap=z({series:[]}),this._seriesIndices,this._seriesIndicesMap,Po(t,this._theme.option),a(t,$M,!1),this.mergeOption(t)}function Oo(t,e){x(e)||(e=e?[e]:[]);var i={};return f(e,(function(e){i[e]=(t.get(e)||[]).slice()})),i}function Eo(t,e,i){return e.type?e.type:i?i.subType:YM.determineSubType(t,e)}function Ro(t,e){t._seriesIndicesMap=z(t._seriesIndices=p(e,(function(t){return t.componentIndex}))||[])}function zo(t,e){return e.hasOwnProperty("subType")?m(t,(function(t){return t.subType===e.subType})):t}function Bo(t){f(cI,(function(e){this[e]=v(t[e],t)}),this)}function Vo(){this._coordinateSystems=[]}function Fo(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function Go(t,e,i){var n,a,o=[],r=[],s=t.timeline;if(t.baseOption&&(a=t.baseOption),(s||t.options)&&(a=a||{},o=(t.options||[]).slice()),t.media){a=a||{};var l=t.media;fI(l,(function(t){t&&t.option&&(t.query?r.push(t):n||(n=t))}))}return a||(a=t),a.timeline||(a.timeline=s),fI([a].concat(o).concat(p(r,(function(t){return t.option}))),(function(t){fI(e,(function(e){e(t,i)}))})),{baseOption:a,timelineOptions:o,mediaDefault:n,mediaList:r}}function Wo(t,e,i){var n={width:e,height:i,aspectratio:e/i},a=!0;return f(t,(function(t,e){var i=e.match(vI);if(i&&i[1]&&i[2]){var o=i[1],r=i[2].toLowerCase();Ho(n[r],t,o)||(a=!1)}})),a}function Ho(t,e,i){return"min"===i?t>=e:"max"===i?t<=e:t===e}function Uo(t,e){return t.join(",")===e.join(",")}function Zo(t,e){fI(e=e||{},(function(e,i){if(null!=e){var n=t[i];if(YM.hasClass(i)){e=Ci(e);var a=Ni(n=Ci(n),e);t[i]=gI(a,(function(t){return t.option&&t.exist?mI(t.exist,t.option,!0):t.exist||t.option}))}else t[i]=mI(n,e,!0)}}))}function jo(t){var e=t&&t.itemStyle;if(e)for(var i=0,n=_I.length;i<n;i++){var o=_I[i],r=e.normal,s=e.emphasis;r&&r[o]&&(t[o]=t[o]||{},t[o].normal?a(t[o].normal,r[o]):t[o].normal=r[o],r[o]=null),s&&s[o]&&(t[o]=t[o]||{},t[o].emphasis?a(t[o].emphasis,s[o]):t[o].emphasis=s[o],s[o]=null)}}function Xo(t,e,i){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,a=t[e].emphasis;n&&(i?(t[e].normal=t[e].emphasis=null,s(t[e],n)):t[e]=n),a&&(t.emphasis=t.emphasis||{},t.emphasis[e]=a)}}function Yo(t){Xo(t,"itemStyle"),Xo(t,"lineStyle"),Xo(t,"areaStyle"),Xo(t,"label"),Xo(t,"labelLine"),Xo(t,"upperLabel"),Xo(t,"edgeLabel")}function qo(t,e){var i=xI(t)&&t[e],n=xI(i)&&i.textStyle;if(n)for(var a=0,o=zb.length;a<o;a++){e=zb[a];n.hasOwnProperty(e)&&(i[e]=n[e])}}function $o(t){t&&(Yo(t),qo(t,"label"),t.emphasis&&qo(t.emphasis,"label"))}function Ko(t){if(xI(t)){jo(t),Yo(t),qo(t,"label"),qo(t,"upperLabel"),qo(t,"edgeLabel"),t.emphasis&&(qo(t.emphasis,"label"),qo(t.emphasis,"upperLabel"),qo(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(jo(e),$o(e));var i=t.markLine;i&&(jo(i),$o(i));var n=t.markArea;n&&$o(n);var a=t.data;if("graph"===t.type){a=a||t.nodes;var o=t.links||t.edges;if(o&&!M(o))for(s=0;s<o.length;s++)$o(o[s]);f(t.categories,(function(t){Yo(t)}))}if(a&&!M(a))for(s=0;s<a.length;s++)$o(a[s]);if((e=t.markPoint)&&e.data)for(var r=e.data,s=0;s<r.length;s++)$o(r[s]);if((i=t.markLine)&&i.data){var l=i.data;for(s=0;s<l.length;s++)x(l[s])?($o(l[s][0]),$o(l[s][1])):$o(l[s])}"gauge"===t.type?(qo(t,"axisLabel"),qo(t,"title"),qo(t,"detail")):"treemap"===t.type?(Xo(t.breadcrumb,"itemStyle"),f(t.levels,(function(t){Yo(t)}))):"tree"===t.type&&Yo(t.leaves)}}function Jo(t){return x(t)?t:t?[t]:[]}function Qo(t){return(x(t)?t[0]:t)||{}}function tr(t,e){e=e.split(",");for(var i=t,n=0;n<e.length&&null!=(i=i&&i[e[n]]);n++);return i}function er(t,e,i,n){e=e.split(",");for(var a,o=t,r=0;r<e.length-1;r++)null==o[a=e[r]]&&(o[a]={}),o=o[a];(n||null==o[e[r]])&&(o[e[r]]=i)}function ir(t){f(bI,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}function nr(t){f(t,(function(e,i){var n=[],a=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],r=e.data,s=e.isStackedByIndex,l=r.map(o,(function(o,l,u){var h,c,d=r.get(e.stackedDimension,u);if(isNaN(d))return a;s?c=r.getRawIndex(u):h=r.get(e.stackedByDimension,u);for(var f=NaN,p=i-1;p>=0;p--){var g=t[p];if(s||(c=g.data.rawIndexOf(g.stackedByDimension,h)),c>=0){var m=g.data.getByRawIndex(g.stackResultDimension,c);if(d>=0&&m>0||d<=0&&m<0){d+=m,f=m;break}}}return n[0]=d,n[1]=f,n}));r.hostModel.setData(l),e.data=l}))}function ar(t,e){yo.isInstance(t)||(t=yo.seriesDataToSource(t)),this._source=t;var i=this._data=t.data,n=t.sourceFormat;n===oI&&(this._offset=0,this._dimSize=e,this._data=i),r(this,TI[n===eI?n+"_"+t.seriesLayoutBy:n])}function or(){return this._data.length}function rr(t){return this._data[t]}function sr(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function lr(t,e,i,n){return null!=i?t[i]:t}function ur(t,e,i,n){return hr(t[n],this._dimensionInfos[e])}function hr(t,e){var i=e&&e.type;if("ordinal"===i){var n=e&&e.ordinalMeta;return n?n.parseAndCollect(t):t}return"time"===i&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+Za(t)),null==t||""===t?NaN:+t}function cr(t,e,i){if(t){var n=t.getRawDataItem(e);if(null!=n){var a,o,r=t.getProvider().getSource().sourceFormat,s=t.getDimensionInfo(i);return s&&(a=s.name,o=s.index),AI[r](n,e,o,a)}}}function dr(t,e,i){if(t){var n=t.getProvider().getSource().sourceFormat;if(n===tI||n===iI){var a=t.getRawDataItem(e);return n!==tI||b(a)||(a=null),a?a[i]:void 0}}}function fr(t){return new pr(t)}function pr(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0,this.context}function gr(t,e,i,n,a,o){PI.reset(i,n,a,o),t._callingProgress=e,t._callingProgress({start:i,end:n,count:n-i,next:PI.next},t.context)}function mr(t,e){var i,n;t._dueIndex=t._outputDueEnd=t._dueEnd=0,t._settedOutputEnd=null,!e&&t._reset&&((i=t._reset(t.context))&&i.progress&&(n=i.forceFirstProgress,i=i.progress),x(i)&&!i.length&&(i=null)),t._progress=i,t._modBy=t._modDataCount=null;var a=t._downstream;return a&&a.dirty(),n}function vr(t){var e=t.name;Ei(t)||(t.name=yr(t)||e)}function yr(t){var e=t.getRawData(),i=[];return f(e.mapDimension("seriesName",!0),(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}function xr(t){return t.model.getRawData().count()}function _r(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),wr}function wr(t,e){t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function br(t,e){f(t.CHANGABLE_METHODS,(function(i){t.wrapMethod(i,y(Sr,e))}))}function Sr(t){var e=Mr(t);e&&e.setOutputEnd(this.count())}function Mr(t){var e=(t.ecModel||{}).scheduler,i=e&&e.getPipeline(t.uid);if(i){var n=i.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(t.uid))}return n}}function Ir(){this.group=new Uw,this.uid=Na("viewChart"),this.renderTask=fr({plan:Dr,reset:Cr}),this.renderTask.context={view:this}}function Tr(t,e){if(t&&(t.trigger(e),"group"===t.type))for(var i=0;i<t.childCount();i++)Tr(t.childAt(i),e)}function Ar(t,e,i){var n=Bi(t,e);null!=n?f(Ci(n),(function(e){Tr(t.getItemGraphicEl(e),i)})):t.eachItemGraphicEl((function(t){Tr(t,i)}))}function Dr(t){return VI(t.model)}function Cr(t){var e=t.model,i=t.ecModel,n=t.api,a=t.payload,o=e.pipelineContext.progressiveRender,r=t.view,s=a&&BI(a).updateMethod,l=o?"incrementalPrepareRender":s&&r[s]?s:"render";return"render"!==l&&r[l](e,i,n,a),GI[l]}function Lr(t,e,i){function n(){h=(new Date).getTime(),c=null,t.apply(r,s||[])}var a,o,r,s,l,u=0,h=0,c=null;e=e||0;var d=function(){a=(new Date).getTime(),r=this,s=arguments;var t=l||e,d=l||i;l=null,o=a-(d?u:h)-t,clearTimeout(c),d?c=setTimeout(n,t):o>=0?n():c=setTimeout(n,-o),u=a};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){l=t},d}function kr(t,e,i,n){var a=t[e];if(a){var o=a[WI]||a,r=a[UI];if(a[HI]!==i||r!==n){if(null==i||!n)return t[e]=o;(a=t[e]=Lr(o,i,"debounce"===n))[WI]=o,a[UI]=n,a[HI]=i}return a}}function Pr(t,e){var i=t[e];i&&i[WI]&&(t[e]=i[WI])}function Nr(t,e,i,n){this.ecInstance=t,this.api=e,this.unfinished;i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice();this._allHandlers=i.concat(n),this._stageTaskMap=z()}function Or(t,e,i,n,a){function o(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}var r;a=a||{},f(e,(function(e,s){if(!a.visualType||a.visualType===e.visualType){var l=t._stageTaskMap.get(e.uid),u=l.seriesTaskMap,h=l.overallTask;if(h){var c,d=h.agentStubMap;d.each((function(t){o(a,t)&&(t.dirty(),c=!0)})),c&&h.dirty(),$I(h,n);var f=t.getPerformArgs(h,a.block);d.each((function(t){t.perform(f)})),r|=h.perform(f)}else u&&u.each((function(s,l){o(a,s)&&s.dirty();var u=t.getPerformArgs(s,a.block);u.skip=!e.performRawSeries&&i.isSeriesFiltered(s.context.model),$I(s,n),r|=s.perform(u)}))}})),t.unfinished|=r}function Er(t,e,i,n,a){function o(i){var o=i.uid,s=r.get(o)||r.set(o,fr({plan:Gr,reset:Wr,count:Ur}));s.context={model:i,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:t},Zr(t,i,s)}var r=i.seriesTaskMap||(i.seriesTaskMap=z()),s=e.seriesType,l=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(o):s?n.eachRawSeriesByType(s,o):l&&l(n,a).each(o);var u=t._pipelineMap;r.each((function(t,e){u.get(e)||(t.dispose(),r.removeKey(e))}))}function Rr(t,e,i,n,a){function o(e){var i=e.uid,n=s.get(i);n||(n=s.set(i,fr({reset:Br,onDirty:Fr})),r.dirty()),n.context={model:e,overallProgress:h,modifyOutputEnd:c},n.agent=r,n.__block=h,Zr(t,e,n)}var r=i.overallTask=i.overallTask||fr({reset:zr});r.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:t};var s=r.agentStubMap=r.agentStubMap||z(),l=e.seriesType,u=e.getTargetSeries,h=!0,c=e.modifyOutputEnd;l?n.eachRawSeriesByType(l,o):u?u(n,a).each(o):(h=!1,f(n.getSeries(),o));var d=t._pipelineMap;s.each((function(t,e){d.get(e)||(t.dispose(),r.dirty(),s.removeKey(e))}))}function zr(t){t.overallReset(t.ecModel,t.api,t.payload)}function Br(t,e){return t.overallProgress&&Vr}function Vr(){this.agent.dirty(),this.getDownstream().dirty()}function Fr(){this.agent&&this.agent.dirty()}function Gr(t){return t.plan&&t.plan(t.model,t.ecModel,t.api,t.payload)}function Wr(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Ci(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?p(e,(function(t,e){return Hr(e)})):KI}function Hr(t){return function(e,i){var n=i.data,a=i.resetDefines[t];if(a&&a.dataEach)for(var o=e.start;o<e.end;o++)a.dataEach(n,o);else a&&a.progress&&a.progress(e,n)}}function Ur(t){return t.data.count()}function Zr(t,e,i){var n=e.uid,a=t._pipelineMap.get(n);!a.head&&(a.head=i),a.tail&&a.tail.pipe(i),a.tail=i,i.__idxInPipeline=a.count++,i.__pipeline=a}function jr(t){JI=null;try{t(QI,tT)}catch(t){}return JI}function Xr(t,e){for(var i in e.prototype)t[i]=V}function Yr(t){for(w(t)&&(t=(new DOMParser).parseFromString(t,"text/xml")),9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}function qr(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}function $r(t,e){for(var i=t.firstChild;i;){if(1===i.nodeType){var n=i.getAttribute("offset");n=n.indexOf("%")>0?parseInt(n,10)/100:n?parseFloat(n):0;var a=i.getAttribute("stop-color")||"#000000";e.addColorStop(n,a)}i=i.nextSibling}}function Kr(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),s(e.__inheritedStyle,t.__inheritedStyle))}function Jr(t){for(var e=N(t).split(rT),i=[],n=0;n<e.length;n+=2){var a=parseFloat(e[n]),o=parseFloat(e[n+1]);i.push([a,o])}return i}function Qr(t,e,i,n){var a=e.__inheritedStyle||{},o="text"===e.type;if(1===t.nodeType&&(es(t,e),r(a,is(t)),!n))for(var s in uT)if(uT.hasOwnProperty(s)){var l=t.getAttribute(s);null!=l&&(a[uT[s]]=l)}var u=o?"textFill":"fill",h=o?"textStroke":"stroke";e.style=e.style||new Kw;var c=e.style;null!=a.fill&&c.set(u,ts(a.fill,i)),null!=a.stroke&&c.set(h,ts(a.stroke,i)),f(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){var e="lineWidth"===t&&o?"textStrokeWidth":t;null!=a[t]&&c.set(e,parseFloat(a[t]))})),a.textBaseline&&"auto"!==a.textBaseline||(a.textBaseline="alphabetic"),"alphabetic"===a.textBaseline&&(a.textBaseline="bottom"),"start"===a.textAlign&&(a.textAlign="left"),"end"===a.textAlign&&(a.textAlign="right"),f(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],(function(t){null!=a[t]&&c.set(t,a[t])})),a.lineDash&&(e.style.lineDash=N(a.lineDash).split(rT)),c[h]&&"none"!==c[h]&&(e[h]=!0),e.__inheritedStyle=a}function ts(t,e){var i=e&&t&&t.match(hT);return i?e[N(i[1])]:t}function es(e,i){var n=e.getAttribute("transform");if(n){var a=null,o=[];(n=n.replace(/,/g," ")).replace(cT,(function(t,e,i){o.push(e,i)}));for(var r=o.length-1;r>0;r-=2){var s=o[r],l=o[r-1];switch(a=a||vt(),l){case"translate":s=N(s).split(rT),wt(a,a,[parseFloat(s[0]),parseFloat(s[1]||0)]);break;case"scale":s=N(s).split(rT),St(a,a,[parseFloat(s[0]),parseFloat(s[1]||s[0])]);break;case"rotate":s=N(s).split(rT),bt(a,a,parseFloat(s[0]));break;case"skew":s=N(s).split(rT),t.warn("Skew transform is not supported yet");break;case"matrix":s=N(s).split(rT),a[0]=parseFloat(s[0]),a[1]=parseFloat(s[1]),a[2]=parseFloat(s[2]),a[3]=parseFloat(s[3]),a[4]=parseFloat(s[4]),a[5]=parseFloat(s[5])}}}i.setLocalTransform(a)}function is(t){var e=t.getAttribute("style"),i={};if(!e)return i;var n,a={};for(dT.lastIndex=0;null!=(n=dT.exec(e));)a[n[1]]=n[2];for(var o in uT)uT.hasOwnProperty(o)&&null!=a[o]&&(i[uT[o]]=a[o]);return i}function ns(t,e,i){var n=e/t.width,a=i/t.height,o=Math.min(n,a);return{scale:[o,o],position:[-(t.x+t.width/2)*o+e/2,-(t.y+t.height/2)*o+i/2]}}function as(t,e){return(new qr).parse(t,e)}function os(t){return function(e,i,n){e=e&&e.toLowerCase(),ow.prototype[t].call(this,e,i,n)}}function rs(){ow.call(this)}function ss(t,e,i){function a(t,e){return t.__prio-e.__prio}i=i||{},"string"==typeof e&&(e=BT[e]),this.id,this.group,this._dom=t;var o=this._zr=Ti(t,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height});this._throttledZrFlush=Lr(v(o.flush,o),17),(e=n(e))&&MI(e,!0),this._theme=e,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new Vo;var r=this._api=Is(this);ye(zT,a),ye(OT,a),this._scheduler=new Nr(this,r,OT,zT),ow.call(this,this._ecEventProcessor=new Ts),this._messageCenter=new rs,this._initEvents(),this.resize=v(this.resize,this),this._pendingActions=[],o.animation.on("frame",this._onframe,this),gs(o,this),O(this)}function ls(t,e,i){var n,a=this._model,o=this._coordSysMgr.getCoordinateSystems();e=Fi(a,e);for(var r=0;r<o.length;r++){var s=o[r];if(s[t]&&null!=(n=s[t](a,e,i)))return n}}function us(t){var e=t._model,i=t._scheduler;i.restorePipelines(e),i.prepareStageTasks(),ms(t,"component",e,i),ms(t,"chart",e,i),i.plan()}function hs(t,e,i,n,a){function o(n){n&&n.__alive&&n[e]&&n[e](n.__model,r,t._api,i)}var r=t._model;if(n){var s={};s[n+"Id"]=i[n+"Id"],s[n+"Index"]=i[n+"Index"],s[n+"Name"]=i[n+"Name"];var l={mainType:n,query:s};a&&(l.subType=a);var u=i.excludeSeriesId;null!=u&&(u=z(Ci(u))),r&&r.eachComponent(l,(function(e){u&&null!=u.get(e.id)||o(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else vT(t._componentsViews.concat(t._chartsViews),o)}function cs(t,e){var i=t._chartsMap,n=t._scheduler;e.eachSeries((function(t){n.updateStreamModes(t,i[t.__viewId])}))}function ds(t,e){var i=t.type,n=t.escapeConnect,a=PT[i],o=a.actionInfo,l=(o.update||"update").split(":"),u=l.pop();l=null!=l[0]&&_T(l[0]),this[TT]=!0;var h=[t],c=!1;t.batch&&(c=!0,h=p(t.batch,(function(e){return e=s(r({},e),t),e.batch=null,e})));var d,f=[],g="highlight"===i||"downplay"===i;vT(h,(function(t){d=a.action(t,this._model,this._api),(d=d||r({},t)).type=o.event||d.type,f.push(d),g?hs(this,u,t,"series"):l&&hs(this,u,t,l.main,l.sub)}),this),"none"===u||g||l||(this[AT]?(us(this),LT.update.call(this,t),this[AT]=!1):LT[u].call(this,t)),d=c?{type:o.event||i,escapeConnect:n,batch:f}:f[0],this[TT]=!1,!e&&this._messageCenter.trigger(d.type,d)}function fs(t){for(var e=this._pendingActions;e.length;){var i=e.shift();ds.call(this,i,t)}}function ps(t){!t&&this.trigger("updated")}function gs(t,e){t.on("rendered",(function(){e.trigger("rendered"),!t.animation.isFinished()||e[AT]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))}function ms(t,e,i,n){function a(t){var e="_ec_"+t.id+"_"+t.type,a=s[e];if(!a){var h=_T(t.type);(a=new(o?EI.getClass(h.main,h.sub):Ir.getClass(h.sub))).init(i,u),s[e]=a,r.push(a),l.add(a.group)}t.__viewId=a.__id=e,a.__alive=!0,a.__model=t,a.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!o&&n.prepareView(a,t,i,u)}for(var o="component"===e,r=o?t._componentsViews:t._chartsViews,s=o?t._componentsMap:t._chartsMap,l=t._zr,u=t._api,h=0;h<r.length;h++)r[h].__alive=!1;for(o?i.eachComponent((function(t,e){"series"!==t&&a(e)})):i.eachSeries(a),h=0;h<r.length;){var c=r[h];c.__alive?h++:(!o&&c.renderTask.dispose(),l.remove(c.group),c.dispose(i,u),r.splice(h,1),delete s[c.__id],c.__id=c.group.__ecComponentInfo=null)}}function vs(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function ys(t,e,i,n){xs(t,e,i,n),vT(t._chartsViews,(function(t){t.__alive=!1})),_s(t,e,i,n),vT(t._chartsViews,(function(t){t.__alive||t.remove(e,i)}))}function xs(t,e,i,n,a){vT(a||t._componentsViews,(function(t){var a=t.__model;t.render(a,e,i,n),Ms(a,t)}))}function _s(t,e,i,n,a){var o,r=t._scheduler;e.eachSeries((function(e){var i=t._chartsMap[e.__viewId];i.__alive=!0;var s=i.renderTask;r.updatePayload(s,n),a&&a.get(e.uid)&&s.dirty(),o|=s.perform(r.getPerformArgs(s)),i.group.silent=!!e.get("silent"),Ms(e,i),Ss(e,i)})),r.unfinished|=o,bs(t._zr,e),XI(t._zr.dom,e)}function ws(t,e){vT(RT,(function(i){i(t,e)}))}function bs(t,e){var i=t.storage,n=0;i.traverse((function(t){t.isGroup||n++})),n>e.get("hoverLayerThreshold")&&!z_.node&&i.traverse((function(t){t.isGroup||(t.useHoverLayer=!0)}))}function Ss(t,e){var i=t.get("blendMode")||null;e.group.traverse((function(t){t.isGroup||t.style.blend!==i&&t.setStyle("blend",i),t.eachPendingDisplayable&&t.eachPendingDisplayable((function(t){t.setStyle("blend",i)}))}))}function Ms(t,e){var i=t.get("z"),n=t.get("zlevel");e.group.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t.zlevel=n))}))}function Is(t){var e=t._coordSysMgr;return r(new Bo(t),{getCoordinateSystems:v(e.getCoordinateSystems,e),getComponentByElement:function(e){for(;e;){var i=e.__ecComponentInfo;if(null!=i)return t._model.getComponent(i.mainType,i.index);e=e.parent}}})}function Ts(){this.eventInfo}function As(t){function e(t,e){for(var n=0;n<t.length;n++)t[n][i]=e}var i="__connectUpdateStatus";vT(NT,(function(n,a){t._messageCenter.on(a,(function(n){if(GT[t.group]&&0!==t[i]){if(n&&n.escapeConnect)return;var a=t.makeActionFromEvent(n),o=[];vT(FT,(function(e){e!==t&&e.group===t.group&&o.push(e)})),e(o,0),vT(o,(function(t){1!==t[i]&&t.dispatchAction(a)})),e(o,2)}}))}))}function Ds(t){GT[t]=!1}function Cs(t){return FT[Hi(t,UT)]}function Ls(t,e){BT[t]=e}function ks(t){ET.push(t)}function Ps(t,e){zs(OT,t,e,bT)}function Ns(t,e,i){"function"==typeof e&&(i=e,e="");var n=xT(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,mT(DT.test(n)&&DT.test(e)),PT[n]||(PT[n]={action:i,actionInfo:t}),NT[e]=n}function Os(t,e){Vo.register(t,e)}function Es(t,e){zs(zT,t,e,ST,"layout")}function Rs(t,e){zs(zT,t,e,MT,"visual")}function zs(t,e,i,n,a){(yT(e)||xT(e))&&(i=e,e=n);var o=Nr.wrapStageHandler(i,a);return o.__prio=e,o.__raw=i,t.push(o),o}function Bs(t,e){VT[t]=e}function Vs(t){return YM.extend(t)}function Fs(t){return EI.extend(t)}function Gs(t){return OI.extend(t)}function Ws(t){return Ir.extend(t)}function Hs(t){return t}function Us(t,e,i,n,a){this._old=t,this._new=e,this._oldKeyGetter=i||Hs,this._newKeyGetter=n||Hs,this.context=a}function Zs(t,e,i,n,a){for(var o=0;o<t.length;o++){var r="_ec_"+a[n](t[o],o),s=e[r];null==s?(i.push(r),e[r]=o):(s.length||(e[r]=s=[s]),s.push(o))}}function js(t){var e={},i=e.encode={},n=z(),a=[],o=[];f(t.dimensions,(function(e){var r=t.getDimensionInfo(e),s=r.coordDim;if(s){var l=i[s];i.hasOwnProperty(s)||(l=i[s]=[]),l[r.coordDimIndex]=e,r.isExtraCoord||(n.set(s,1),Ys(r.type)&&(a[0]=e)),r.defaultTooltip&&o.push(e)}XT.each((function(t,e){var n=i[e];i.hasOwnProperty(e)||(n=i[e]=[]);var a=r.otherDims[e];null!=a&&!1!==a&&(n[a]=r.name)}))}));var r=[],s={};n.each((function(t,e){var n=i[e];s[e]=n[0],r=r.concat(n)})),e.dataDimsOnCoord=r,e.encodeFirstDimNotExtra=s;var l=i.label;l&&l.length&&(a=l.slice());var u=i.tooltip;return u&&u.length?o=u.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,e}function Xs(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function Ys(t){return!("ordinal"===t||"time"===t)}function qs(t){return t._rawCount>65535?KT:JT}function $s(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Ks(t,e){f(QT.concat(e.__wrappedMethods||[]),(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})),t.__wrappedMethods=e.__wrappedMethods,f(tA,(function(i){t[i]=n(e[i])})),t._calculationInfo=r(e._calculationInfo)}function Js(t){var e=t._invertedIndicesMap;f(e,(function(i,n){var a=t._dimensionInfos[n].ordinalMeta;if(a){for(i=e[n]=new KT(a.categories.length),o=0;o<i.length;o++)i[o]=NaN;for(var o=0;o<t._count;o++)i[t.get(n,o)]=o}}))}function Qs(t,e,i){var n;if(null!=e){var a=t._chunkSize,o=Math.floor(i/a),r=i%a,s=t.dimensions[e],l=t._storage[s][o];if(l){n=l[r];var u=t._dimensionInfos[s].ordinalMeta;u&&u.categories.length&&(n=u.categories[n])}}return n}function tl(t){return t}function el(t){return t<this._count&&t>=0?this._indices[t]:-1}function il(t,e){var i=t._idList[e];return null==i&&(i=Qs(t,t._idDimIdx,e)),null==i&&(i=qT+e),i}function nl(t){return x(t)||(t=[t]),t}function al(t,e){var i=t.dimensions,n=new eA(p(i,t.getDimensionInfo,t),t.hostModel);Ks(n,t);for(var a=n._storage={},o=t._storage,r=0;r<i.length;r++){var s=i[r];o[s]&&(u(e,s)>=0?(a[s]=ol(o[s]),n._rawExtent[s]=rl(),n._extent[s]=null):a[s]=o[s])}return n}function ol(t){for(var e=new Array(t.length),i=0;i<t.length;i++)e[i]=$s(t[i]);return e}function rl(){return[1/0,-1/0]}function sl(t,e,i){function a(t,e,i){null!=XT.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,h.set(e,!0))}yo.isInstance(e)||(e=yo.seriesDataToSource(e)),i=i||{},t=(t||[]).slice();for(var o=(i.dimsDef||[]).slice(),l=z(i.encodeDef),u=z(),h=z(),c=[],d=ll(e,t,o,i.dimCount),p=0;p<d;p++){var g=o[p]=r({},b(o[p])?o[p]:{name:o[p]}),m=g.name,v=c[p]={otherDims:{}};null!=m&&null==u.get(m)&&(v.name=v.displayName=m,u.set(m,p)),null!=g.type&&(v.type=g.type),null!=g.displayName&&(v.displayName=g.displayName)}l.each((function(t,e){if(1===(t=Ci(t).slice()).length&&t[0]<0)l.set(e,!1);else{var i=l.set(e,[]);f(t,(function(t,n){w(t)&&(t=u.get(t)),null!=t&&t<d&&(i[n]=t,a(c[t],e,n))}))}}));var y=0;f(t,(function(t,e){var i,o,r;if(w(t))i=t,t={};else{i=t.name;var u=t.ordinalMeta;t.ordinalMeta=null,(t=n(t)).ordinalMeta=u,o=t.dimsDef,r=t.otherDims,t.name=t.coordDim=t.coordDimIndex=t.dimsDef=t.otherDims=null}var h=l.get(i);if(!1!==h){if(!(h=Ci(h)).length)for(var d=0;d<(o&&o.length||1);d++){for(;y<c.length&&null!=c[y].coordDim;)y++;y<c.length&&h.push(y++)}f(h,(function(e,n){var l=c[e];if(a(s(l,t),i,n),null==l.name&&o){var u=o[n];!b(u)&&(u={name:u}),l.name=l.displayName=u.name,l.defaultTooltip=u.defaultTooltip}r&&s(l.otherDims,r)}))}}));var x=i.generateCoord,_=i.generateCoordCount,S=null!=_;_=x?_||1:0;for(var M=x||"value",I=0;I<d;I++)null==(v=c[I]=c[I]||{}).coordDim&&(v.coordDim=ul(M,h,S),v.coordDimIndex=0,(!x||_<=0)&&(v.isExtraCoord=!0),_--),null==v.name&&(v.name=ul(v.coordDim,u)),null==v.type&&Co(e,I,v.name)&&(v.type="ordinal");return c}function ll(t,e,i,n){var a=Math.max(t.dimensionsDetectCount||1,e.length,i.length,n||0);return f(e,(function(t){var e=t.dimsDef;e&&(a=Math.max(a,e.length))})),a}function ul(t,e,i){if(i||null!=e.get(t)){for(var n=0;null!=e.get(t+n);)n++;t+=n}return e.set(t,!0),t}function hl(t,e,i){var n,a,o,r,s=(i=i||{}).byIndex,l=i.stackedCoordDimension,u=!(!t||!t.get("stack"));if(f(e,(function(t,i){w(t)&&(e[i]=t={name:t}),u&&!t.isExtraCoord&&(s||n||!t.ordinalMeta||(n=t),a||"ordinal"===t.type||"time"===t.type||l&&l!==t.coordDim||(a=t))})),!a||s||n||(s=!0),a){o="__\0ecstackresult",r="__\0ecstackedover",n&&(n.createInvertedIndices=!0);var h=a.coordDim,c=a.type,d=0;f(e,(function(t){t.coordDim===h&&d++})),e.push({name:o,coordDim:h,coordDimIndex:d,type:c,isExtraCoord:!0,isCalculationCoord:!0}),d++,e.push({name:r,coordDim:r,coordDimIndex:d,type:c,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:a&&a.name,stackedByDimension:n&&n.name,isStackedByIndex:s,stackedOverDimension:r,stackResultDimension:o}}function cl(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function dl(t,e){return cl(t,e)?t.getCalculationInfo("stackResultDimension"):e}function fl(t,e,i){i=i||{},yo.isInstance(t)||(t=yo.seriesDataToSource(t));var n,a=e.get("coordinateSystem"),o=Vo.get(a),r=mo(e);r&&(n=p(r.coordSysDims,(function(t){var e={name:t},i=r.axisMap.get(t);if(i){var n=i.get("type");e.type=Xs(n)}return e}))),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]);var s,l,u=aA(t,{coordDimensions:n,generateCoord:i.generateCoord});r&&f(u,(function(t,e){var i=t.coordDim,n=r.categoryAxisMap.get(i);n&&(null==s&&(s=e),t.ordinalMeta=n.getOrdinalMeta()),null!=t.otherDims.itemName&&(l=!0)})),l||null==s||(u[s].otherDims.itemName=0);var h=hl(e,u),c=new eA(u,e);c.setCalculationInfo(h);var d=null!=s&&pl(t)?function(t,e,i,n){return n===s?i:this.defaultDimValueGetter(t,e,i,n)}:null;return c.hasItemOption=!1,c.initData(t,null,d),c}function pl(t){if(t.sourceFormat===tI){var e=gl(t.data||[]);return null!=e&&!x(ki(e))}}function gl(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}function ml(t){this._setting=t||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}function vl(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this._map}function yl(t){return t._map||(t._map=z(t.categories))}function xl(t){return b(t)&&null!=t.value?t.value:t+""}function _l(t,e,i,n){var a={},o=t[1]-t[0],r=a.interval=Ya(o/e,!0);null!=i&&r<i&&(r=a.interval=i),null!=n&&r>n&&(r=a.interval=n);var s=a.intervalPrecision=wl(r);return Sl(a.niceTickExtent=[lA(Math.ceil(t[0]/r)*r,s),lA(Math.floor(t[1]/r)*r,s)],t),a}function wl(t){return Fa(t)+2}function bl(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function Sl(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),bl(t,0,e),bl(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Ml(t,e,i,n){var a=[];if(!t)return a;e[0]<i[0]&&a.push(e[0]);for(var o=i[0];o<=i[1]&&(a.push(o),(o=lA(o+t,n))!==a[a.length-1]);)if(a.length>1e4)return[];return e[1]>(a.length?a[a.length-1]:i[1])&&a.push(e[1]),a}function Il(t){return t.get("stack")||cA+t.seriesIndex}function Tl(t){return t.dim+t.index}function Al(t){var e=[],i=t.axis;if("category"===i.type){for(var n=i.getBandWidth(),a=0;a<t.count;a++)e.push(s({bandWidth:n,axisKey:"axis0",stackId:cA+a},t));var o=Ll(e),r=[];for(a=0;a<t.count;a++){var l=o.axis0[cA+a];l.offsetCenter=l.offset+l.width/2,r.push(l)}return r}}function Dl(t,e){var i=[];return e.eachSeriesByType(t,(function(t){Nl(t)&&!Ol(t)&&i.push(t)})),i}function Cl(t){var e=[];return f(t,(function(t){var i=t.getData(),n=t.coordinateSystem.getBaseAxis(),a=n.getExtent(),o="category"===n.type?n.getBandWidth():Math.abs(a[1]-a[0])/i.count(),r=Ra(t.get("barWidth"),o),s=Ra(t.get("barMaxWidth"),o),l=t.get("barGap"),u=t.get("barCategoryGap");e.push({bandWidth:o,barWidth:r,barMaxWidth:s,barGap:l,barCategoryGap:u,axisKey:Tl(n),stackId:Il(t)})})),Ll(e)}function Ll(t){var e={};f(t,(function(t,i){var n=t.axisKey,a=t.bandWidth,o=e[n]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},r=o.stacks;e[n]=o;var s=t.stackId;r[s]||o.autoWidthCount++,r[s]=r[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!r[s].width&&(r[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(r[s].maxWidth=u);var h=t.barGap;null!=h&&(o.gap=h);var c=t.barCategoryGap;null!=c&&(o.categoryGap=c)}));var i={};return f(e,(function(t,e){i[e]={};var n=t.stacks,a=t.bandWidth,o=Ra(t.categoryGap,a),r=Ra(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*r);u=Math.max(u,0),f(n,(function(t,e){var i=t.maxWidth;i&&i<u&&(i=Math.min(i,s),t.width&&(i=Math.min(i,t.width)),s-=i,t.width=i,l--)})),u=(s-o)/(l+(l-1)*r),u=Math.max(u,0);var h,c=0;f(n,(function(t,e){t.width||(t.width=u),h=t,c+=t.width*(1+r)})),h&&(c-=h.width*r);var d=-c/2;f(n,(function(t,n){i[e][n]=i[e][n]||{offset:d,width:t.width},d+=t.width*(1+r)}))})),i}function kl(t,e,i){if(t&&e){var n=t[Tl(e)];return null!=n&&null!=i&&(n=n[Il(i)]),n}}function Pl(t,e){var i=Dl(t,e),n=Cl(i),a={};f(i,(function(t){var e=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),r=Il(t),s=n[Tl(o)][r],l=s.offset,u=s.width,h=i.getOtherAxis(o),c=t.get("barMinHeight")||0;a[r]=a[r]||[],e.setLayout({offset:l,size:u});for(var d=e.mapDimension(h.dim),f=e.mapDimension(o.dim),p=cl(e,d),g=h.isHorizontal(),m=El(o,h,p),v=0,y=e.count();v<y;v++){var x=e.get(d,v),_=e.get(f,v);if(!isNaN(x)){var w,b,S,M,I=x>=0?"p":"n",T=m;if(p&&(a[r][_]||(a[r][_]={p:m,n:m}),T=a[r][_][I]),g)w=T,b=(A=i.dataToPoint([x,_]))[1]+l,S=A[0]-m,M=u,Math.abs(S)<c&&(S=(S<0?-1:1)*c),p&&(a[r][_][I]+=S);else{var A=i.dataToPoint([_,x]);w=A[0]+l,b=T,S=u,M=A[1]-m,Math.abs(M)<c&&(M=(M<=0?-1:1)*c),p&&(a[r][_][I]+=M)}e.setItemLayout(v,{x:w,y:b,width:S,height:M})}}}),this)}function Nl(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function Ol(t){return t.pipelineContext&&t.pipelineContext.large}function El(t,e,i){var n,a,o=e.getGlobalExtent();o[0]>o[1]?(n=o[1],a=o[0]):(n=o[0],a=o[1]);var r=e.toGlobalCoord(e.dataToCoord(0));return r<n&&(r=n),r>a&&(r=a),r}function Rl(t,e){return SA(t,bA(e))}function zl(t,e){var i,n,a,o=t.type,r=e.getMin(),s=e.getMax(),l=null!=r,u=null!=s,h=t.getExtent();"ordinal"===o?i=e.getCategories().length:(x(n=e.get("boundaryGap"))||(n=[n||0,n||0]),"boolean"==typeof n[0]&&(n=[0,0]),n[0]=Ra(n[0],1),n[1]=Ra(n[1],1),a=h[1]-h[0]||Math.abs(h[0])),null==r&&(r="ordinal"===o?i?0:NaN:h[0]-n[0]*a),null==s&&(s="ordinal"===o?i?i-1:NaN:h[1]+n[1]*a),"dataMin"===r?r=h[0]:"function"==typeof r&&(r=r({min:h[0],max:h[1]})),"dataMax"===s?s=h[1]:"function"==typeof s&&(s=s({min:h[0],max:h[1]})),(null==r||!isFinite(r))&&(r=NaN),(null==s||!isFinite(s))&&(s=NaN),t.setBlank(T(r)||T(s)||"ordinal"===o&&!t.getOrdinalMeta().categories.length),e.getNeedCrossZero()&&(r>0&&s>0&&!l&&(r=0),r<0&&s<0&&!u&&(s=0));var c=e.ecModel;if(c&&"time"===o){var d,p=Dl("bar",c);if(f(p,(function(t){d|=t.getBaseAxis()===e.axis})),d){var g=Cl(p),m=Bl(r,s,e,g);r=m.min,s=m.max}}return[r,s]}function Bl(t,e,i,n){var a=i.axis.getExtent(),o=a[1]-a[0],r=kl(n,i.axis);if(void 0===r)return{min:t,max:e};var s=1/0;f(r,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;f(r,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-t,c=h/(1-(s+l)/o)-h;return e+=c*(l/u),t-=c*(s/u),{min:t,max:e}}function Vl(t,e){var i=zl(t,e),n=null!=e.getMin(),a=null!=e.getMax(),o=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var r=t.type;t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:o,fixMin:n,fixMax:a,minInterval:"interval"===r||"time"===r?e.get("minInterval"):null,maxInterval:"interval"===r||"time"===r?e.get("maxInterval"):null});var s=e.get("interval");null!=s&&t.setInterval&&t.setInterval(s)}function Fl(t,e){if(e=e||t.get("type"))switch(e){case"category":return new sA(t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),[1/0,-1/0]);case"value":return new hA;default:return(ml.getClass(e)||hA).create(t)}}function Gl(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||i<0&&n<0)}function Wl(t){var e=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"string"==typeof e?e=function(e){return function(i){return i=t.scale.getLabel(i),e.replace("{value}",null!=i?i:"")}}(e):"function"==typeof e?function(n,a){return null!=i&&(a=n-i),e(Hl(t,n),a)}:function(e){return t.scale.getLabel(e)}}function Hl(t,e){return"category"===t.type?t.scale.getLabel(e):e}function Ul(t){var e=t.model,i=t.scale;if(e.get("axisLabel.show")&&!i.isBlank()){var n,a,o="category"===t.type,r=i.getExtent();a=o?i.count():(n=i.getTicks()).length;var s,l=t.getLabelModel(),u=Wl(t),h=1;a>40&&(h=Math.ceil(a/40));for(var c=0;c<a;c+=h){var d=u(n?n[c]:r[0]+c),f=Zl(l.getTextRect(d),l.get("rotate")||0);s?s.union(f):s=f}return s}}function Zl(t,e){var i=e*Math.PI/180,n=t.plain(),a=n.width,o=n.height,r=a*Math.cos(i)+o*Math.sin(i),s=a*Math.sin(i)+o*Math.cos(i);return new he(n.x,n.y,r,s)}function jl(t,e){if("image"!==this.type){var i=this.style,n=this.shape;n&&"line"===n.symbolType?i.stroke=t:this.__isEmptyBrush?(i.stroke=t,i.fill=e||"#fff"):(i.fill&&(i.fill=t),i.stroke&&(i.stroke=t)),this.dirty(!1)}}function Xl(t,e,i,n,a,o,r){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),s=0===t.indexOf("image://")?Un(t.slice(8),new he(e,i,n,a),r?"center":"cover"):0===t.indexOf("path://")?Hn(t.slice(7),{},new he(e,i,n,a),r?"center":"cover"):new RA({shape:{symbolType:t,x:e,y:i,width:n,height:a}}),s.__isEmptyBrush=l,s.setColor=jl,s.setColor(o),s}function Yl(t,e){return Math.abs(t-e)<VA}function ql(t,e,i){var n=0,a=t[0];if(!a)return!1;for(var o=1;o<t.length;o++){var r=t[o];n+=Sn(a[0],a[1],r[0],r[1],e,i),a=r}var s=t[0];return Yl(a[0],s[0])&&Yl(a[1],s[1])||(n+=Sn(a[0],a[1],s[0],s[1],e,i)),0!==n}function $l(t,e,i){if(this.name=t,this.geometries=e,i)i=[i[0],i[1]];else{var n=this.getBoundingRect();i=[n.x+n.width/2,n.y+n.height/2]}this.center=i}function Kl(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var i=t.features,n=0;n<i.length;n++)for(var a=i[n].geometry,o=a.coordinates,r=a.encodeOffsets,s=0;s<o.length;s++){var l=o[s];if("Polygon"===a.type)o[s]=Jl(l,r[s],e);else if("MultiPolygon"===a.type)for(var u=0;u<l.length;u++){var h=l[u];l[u]=Jl(h,r[s][u],e)}}return t.UTF8Encoding=!1,t}function Jl(t,e,i){for(var n=[],a=e[0],o=e[1],r=0;r<t.length;r+=2){var s=t.charCodeAt(r)-64,l=t.charCodeAt(r+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),a=s+=a,o=l+=o,n.push([s/i,l/i])}return n}function Ql(t){return"category"===t.type?eu(t):au(t)}function tu(t,e){return"category"===t.type?nu(t,e):{ticks:t.scale.getTicks()}}function eu(t){var e=t.getLabelModel(),i=iu(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}function iu(t,e){var i,n,a=ou(t,"labels"),o=fu(e),r=ru(a,o);return r||(i=_(o)?du(t,o):cu(t,n="auto"===o?lu(t):o),su(a,o,{labels:i,labelCategoryInterval:n}))}function nu(t,e){var i,n,a=ou(t,"ticks"),o=fu(e),r=ru(a,o);if(r)return r;if(e.get("show")&&!t.scale.isBlank()||(i=[]),_(o))i=du(t,o,!0);else if("auto"===o){var s=iu(t,t.getLabelModel());n=s.labelCategoryInterval,i=p(s.labels,(function(t){return t.tickValue}))}else i=cu(t,n=o,!0);return su(a,o,{ticks:i,tickCategoryInterval:n})}function au(t){var e=t.scale.getTicks(),i=Wl(t);return{labels:p(e,(function(e,n){return{formattedLabel:i(e,n),rawLabel:t.scale.getLabel(e),tickValue:e}}))}}function ou(t,e){return GA(t)[e]||(GA(t)[e]=[])}function ru(t,e){for(var i=0;i<t.length;i++)if(t[i].key===e)return t[i].value}function su(t,e,i){return t.push({key:e,value:i}),i}function lu(t){var e=GA(t).autoInterval;return null!=e?e:GA(t).autoInterval=t.calculateCategoryInterval()}function uu(t){var e=hu(t),i=Wl(t),n=(e.axisRotate-e.labelRotate)/180*Math.PI,a=t.scale,o=a.getExtent(),r=a.count();if(o[1]-o[0]<1)return 0;var s=1;r>40&&(s=Math.max(1,Math.floor(r/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),d=0,f=0;l<=o[1];l+=s){var p=0,g=0,m=Ce(i(l),e.font,"center","top");p=1.3*m.width,g=1.3*m.height,d=Math.max(d,p,7),f=Math.max(f,g,7)}var v=d/h,y=f/c;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(v,y))),_=GA(t.model),w=_.lastAutoInterval,b=_.lastTickCount;return null!=w&&null!=b&&Math.abs(w-x)<=1&&Math.abs(b-r)<=1&&w>x?x=w:(_.lastTickCount=r,_.lastAutoInterval=x),x}function hu(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function cu(t,e,i){function n(t){l.push(i?t:{formattedLabel:a(t),rawLabel:o.getLabel(t),tickValue:t})}var a=Wl(t),o=t.scale,r=o.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),h=r[0],c=o.count();0!==h&&u>1&&c/u>2&&(h=Math.round(Math.ceil(h/u)*u));var d={min:s.get("showMinLabel"),max:s.get("showMaxLabel")};d.min&&h!==r[0]&&n(r[0]);for(var f=h;f<=r[1];f+=u)n(f);return d.max&&f!==r[1]&&n(r[1]),l}function du(t,e,i){var n=t.scale,a=Wl(t),o=[];return f(n.getTicks(),(function(t){var r=n.getLabel(t);e(t,r)&&o.push(i?t:{formattedLabel:a(t),rawLabel:r,tickValue:t})})),o}function fu(t){var e=t.get("interval");return null==e?"auto":e}function pu(t,e){var i=(t[1]-t[0])/e/2;t[0]+=i,t[1]-=i}function gu(t,e,i,n,a){function o(t,e){return h?t>e:t<e}var r=e.length;if(t.onBand&&!n&&r){var s,l=t.getExtent();if(1===r)e[0].coord=l[0],s=e[1]={coord:l[0]};else{var u=e[1].coord-e[0].coord;f(e,(function(t){t.coord-=u/2;var e=e||0;e%2>0&&(t.coord-=u/(2*(e+1)))})),s={coord:e[r-1].coord+u},e.push(s)}var h=l[0]>l[1];o(e[0].coord,l[0])&&(a?e[0].coord=l[0]:e.shift()),a&&o(l[0],e[0].coord)&&e.unshift({coord:l[0]}),o(l[1],s.coord)&&(a?s.coord=l[1]:e.pop()),a&&o(s.coord,l[1])&&e.push({coord:l[1]})}}function mu(t,e){var i=t.mapDimension("defaultedLabel",!0),n=i.length;if(1===n)return cr(t,e,i[0]);if(n){for(var a=[],o=0;o<i.length;o++){var r=cr(t,e,i[o]);a.push(r)}return a.join(" ")}}function vu(t,e,i){Uw.call(this),this.updateData(t,e,i)}function yu(t){return[t[0]/2,t[1]/2]}function xu(t,e){this.parent.drift(t,e)}function _u(){!oa(this)&&bu.call(this)}function wu(){!oa(this)&&Su.call(this)}function bu(){if(!this.incremental&&!this.useHoverLayer){var t=this.__symbolOriginalScale,e=t[1]/t[0];this.animateTo({scale:[Math.max(1.1*t[0],t[0]+3),Math.max(1.1*t[1],t[1]+3*e)]},400,"elasticOut")}}function Su(){this.incremental||this.useHoverLayer||this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}function Mu(t){this.group=new Uw,this._symbolCtor=t||vu}function Iu(t,e,i,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(i))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(i,"symbol")}function Tu(t){return null==t||b(t)||(t={isIgnore:t}),t||{}}function Au(t){var e=t.hostModel;return{itemStyle:e.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:e.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label"),cursorStyle:e.get("cursor")}}function Du(t,e,i){var n,a=t.getBaseAxis(),o=t.getOtherAxis(a),r=Cu(o,i),s=a.dim,l=o.dim,u=e.mapDimension(l),h=e.mapDimension(s),c="x"===l||"radius"===l?1:0,d=p(t.dimensions,(function(t){return e.mapDimension(t)})),f=e.getCalculationInfo("stackResultDimension");return(n|=cl(e,d[0]))&&(d[0]=f),(n|=cl(e,d[1]))&&(d[1]=f),{dataDimsForPoint:d,valueStart:r,valueAxisDim:l,baseAxisDim:s,stacked:!!n,valueDim:u,baseDim:h,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Cu(t,e){var i=0,n=t.scale.getExtent();return"start"===e?i=n[0]:"end"===e?i=n[1]:n[0]>0?i=n[0]:n[1]<0&&(i=n[1]),i}function Lu(t,e,i,n){var a=NaN;t.stacked&&(a=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=t.valueStart);var o=t.baseDataOffset,r=[];return r[o]=i.get(t.baseDim,n),r[1-o]=a,e.dataToPoint(r)}function ku(t,e){var i=[];return e.diff(t).add((function(t){i.push({cmd:"+",idx:t})})).update((function(t,e){i.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){i.push({cmd:"-",idx:t})})).execute(),i}function Pu(t){return isNaN(t[0])||isNaN(t[1])}function Nu(t,e,i,n,a,o,r,s,l,u,h){return"none"!==u&&u?Ou.apply(this,arguments):Eu.apply(this,arguments)}function Ou(t,e,i,n,a,o,r,s,l,u,h){for(var c=0,d=i,f=0;f<n;f++){var p=e[d];if(d>=a||d<0)break;if(Pu(p)){if(h){d+=o;continue}break}if(d===i)t[o>0?"moveTo":"lineTo"](p[0],p[1]);else if(l>0){var g=e[c],m="y"===u?1:0,v=(p[m]-g[m])*l;aD(rD,g),rD[m]=g[m]+v,aD(sD,p),sD[m]=p[m]-v,t.bezierCurveTo(rD[0],rD[1],sD[0],sD[1],p[0],p[1])}else t.lineTo(p[0],p[1]);c=d,d+=o}return f}function Eu(t,e,i,n,a,o,r,s,l,u,h){for(var c=0,d=i,f=0;f<n;f++){var p=e[d];if(d>=a||d<0)break;if(Pu(p)){if(h){d+=o;continue}break}if(d===i)t[o>0?"moveTo":"lineTo"](p[0],p[1]),aD(rD,p);else if(l>0){var g=d+o,m=e[g];if(h)for(;m&&Pu(e[g]);)m=e[g+=o];var v=.5,y=e[c];if(!(m=e[g])||Pu(m))aD(sD,p);else{var x,_;if(Pu(m)&&!h&&(m=p),j(oD,m,y),"x"===u||"y"===u){var w="x"===u?0:1;x=Math.abs(p[w]-y[w]),_=Math.abs(p[w]-m[w])}else x=ew(p,y),_=ew(p,m);nD(sD,p,oD,-l*(1-(v=_/(_+x))))}eD(rD,rD,s),iD(rD,rD,r),eD(sD,sD,s),iD(sD,sD,r),t.bezierCurveTo(rD[0],rD[1],sD[0],sD[1],p[0],p[1]),nD(rD,p,oD,l*v)}else t.lineTo(p[0],p[1]);c=d,d+=o}return f}function Ru(t,e){var i=[1/0,1/0],n=[-1/0,-1/0];if(e)for(var a=0;a<t.length;a++){var o=t[a];o[0]<i[0]&&(i[0]=o[0]),o[1]<i[1]&&(i[1]=o[1]),o[0]>n[0]&&(n[0]=o[0]),o[1]>n[1]&&(n[1]=o[1])}return{min:e?i:n,max:e?n:i}}function zu(t,e){if(t.length===e.length){for(var i=0;i<t.length;i++){var n=t[i],a=e[i];if(n[0]!==a[0]||n[1]!==a[1])return}return!0}}function Bu(t){return"number"==typeof t?t:t?.5:0}function Vu(t){var e=t.getGlobalExtent();if(t.onBand){var i=t.getBandWidth()/2-1,n=e[1]>e[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function Fu(t,e,i){if(!i.valueDim)return[];for(var n=[],a=0,o=e.count();a<o;a++)n.push(Lu(i,t,e,a));return n}function Gu(t,e,i,n){var a=Vu(t.getAxis("x")),o=Vu(t.getAxis("y")),r=t.getBaseAxis().isHorizontal(),s=Math.min(a[0],a[1]),l=Math.min(o[0],o[1]),u=Math.max(a[0],a[1])-s,h=Math.max(o[0],o[1])-l;if(i)s-=.5,u+=.5,l-=.5,h+=.5;else{var c=n.get("lineStyle.width")||2,d=n.get("clipOverflow")?c/2:Math.max(u,h);r?(l-=d,h+=2*d):(s-=d,u+=2*d)}var f=new oM({shape:{x:s,y:l,width:u,height:h}});return e&&(f.shape[r?"width":"height"]=0,Sa(f,{shape:{width:u,height:h}},n)),f}function Wu(t,e,i,n){var a=t.getAngleAxis(),o=t.getRadiusAxis().getExtent().slice();o[0]>o[1]&&o.reverse();var r=a.getExtent(),s=Math.PI/180;i&&(o[0]-=.5,o[1]+=.5);var l=new QS({shape:{cx:za(t.cx,1),cy:za(t.cy,1),r0:za(o[0],1),r:za(o[1],1),startAngle:-r[0]*s,endAngle:-r[1]*s,clockwise:a.inverse}});return e&&(l.shape.endAngle=-r[0]*s,Sa(l,{shape:{endAngle:-r[1]*s}},n)),l}function Hu(t,e,i,n){return"polar"===t.type?Wu(t,e,i,n):Gu(t,e,i,n)}function Uu(t,e,i){for(var n=e.getBaseAxis(),a="x"===n.dim||"radius"===n.dim?0:1,o=[],r=0;r<t.length-1;r++){var s=t[r+1],l=t[r];o.push(l);var u=[];switch(i){case"end":u[a]=s[a],u[1-a]=l[1-a],o.push(u);break;case"middle":var h=(l[a]+s[a])/2,c=[];u[a]=c[a]=h,u[1-a]=l[1-a],c[1-a]=s[1-a],o.push(u),o.push(c);break;default:u[a]=l[a],u[1-a]=s[1-a],o.push(u)}}return t[r]&&o.push(t[r]),o}function Zu(t,e){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var n,a,o=i.length-1;o>=0;o--){var r=i[o].dimension,s=t.dimensions[r],l=t.getDimensionInfo(s);if("x"===(n=l&&l.coordDim)||"y"===n){a=i[o];break}}if(a){var u=e.getAxis(n),h=p(a.stops,(function(t){return{coord:u.toGlobalCoord(u.dataToCoord(t.value)),color:t.color}})),c=h.length,d=a.outerColors.slice();c&&h[0].coord>h[c-1].coord&&(h.reverse(),d.reverse());var g=h[0].coord-10,m=h[c-1].coord+10,v=m-g;if(v<.001)return"transparent";f(h,(function(t){t.offset=(t.coord-g)/v})),h.push({offset:c?h[c-1].offset:.5,color:d[1]||"transparent"}),h.unshift({offset:c?h[0].offset:.5,color:d[0]||"transparent"});var y=new dM(0,0,0,0,h,!0);return y[n]=g,y[n+"2"]=m,y}}}function ju(t,e,i){var n=t.get("showAllSymbol"),a="auto"===n;if(!n||a){var o=i.getAxesByScale("ordinal")[0];if(o&&(!a||!Xu(o,e))){var r=e.mapDimension(o.dim),s={};return f(o.getViewLabels(),(function(t){s[t.tickValue]=1})),function(t){return!s.hasOwnProperty(e.get(r,t))}}}}function Xu(t,e){var i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count();isNaN(n)&&(n=0);for(var a=e.count(),o=Math.max(1,Math.round(a/5)),r=0;r<a;r+=o)if(1.5*vu.getSymbolSize(e,r)[t.isHorizontal()?1:0]>n)return!1;return!0}function Yu(t){return this._axes[t]}function qu(t){pD.call(this,t)}function $u(t,e){return e.type||(e.data?"category":"value")}function Ku(t,e,i){return t.getCoordSysModel()===e}function Ju(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i),this.model=t}function Qu(t,e,i,n){function a(t){return t.dim+"_"+t.index}i.getAxesOnZeroOf=function(){return o?[o]:[]};var o,r=t[e],s=i.model,l=s.get("axisLine.onZero"),u=s.get("axisLine.onZeroAxisIndex");if(l){if(null!=u)th(r[u])&&(o=r[u]);else for(var h in r)if(r.hasOwnProperty(h)&&th(r[h])&&!n[a(r[h])]){o=r[h];break}o&&(n[a(o)]=!0)}}function th(t){return t&&"category"!==t.type&&"time"!==t.type&&Gl(t)}function eh(t,e){var i=t.getExtent(),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}function ih(t,e){return p(SD,(function(e){return t.getReferringComponents(e)[0]}))}function nh(t){return"cartesian2d"===t.get("coordinateSystem")}function ah(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e}function oh(t,e,i,n){var a,o,r=Ha(i-t.rotation),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return Ua(r-MD/2)?(o=l?"bottom":"top",a="center"):Ua(r-1.5*MD)?(o=l?"top":"bottom",a="center"):(o="middle",a=r<1.5*MD&&r>MD/2?l?"left":"right":l?"right":"left"),{rotation:r,textAlign:a,textVerticalAlign:o}}function rh(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}function sh(t,e,i){var n=t.get("axisLabel.showMinLabel"),a=t.get("axisLabel.showMaxLabel");e=e||[],i=i||[];var o=e[0],r=e[1],s=e[e.length-1],l=e[e.length-2],u=i[0],h=i[1],c=i[i.length-1],d=i[i.length-2];!1===n?(lh(o),lh(u)):uh(o,r)&&(n?(lh(r),lh(h)):(lh(o),lh(u))),!1===a?(lh(s),lh(c)):uh(l,s)&&(a?(lh(l),lh(d)):(lh(s),lh(c)))}function lh(t){t&&(t.ignore=!0)}function uh(t,e,i){var n=t&&t.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(n&&a){var o=yt([]);return bt(o,o,-t.rotation),n.applyTransform(_t([],o,t.getLocalTransform())),a.applyTransform(_t([],o,e.getLocalTransform())),n.intersect(a)}}function hh(t){return"middle"===t||"center"===t}function ch(t,e,i){var n=e.axis;if(e.get("axisTick.show")&&!n.scale.isBlank()){for(var a=e.getModel("axisTick"),o=a.getModel("lineStyle"),r=a.get("length"),l=n.getTicksCoords(),u=[],h=[],c=t._transform,d=[],f=0;f<l.length;f++){var p=l[f].coord;u[0]=p,u[1]=0,h[0]=p,h[1]=i.tickDirection*r,c&&(tt(u,u,c),tt(h,h,c));var g=new rM(Xn({anid:"tick_"+l[f].tickValue,shape:{x1:u[0],y1:u[1],x2:h[0],y2:h[1]},style:s(o.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}),z2:2,silent:!0}));t.group.add(g),d.push(g)}return d}}function dh(t,e,i){var n=e.axis;if(A(i.axisLabelShow,e.get("axisLabel.show"))&&!n.scale.isBlank()){var a=e.getModel("axisLabel"),o=a.get("margin"),r=n.getViewLabels(),s=(A(i.labelRotate,a.get("rotate"))||0)*MD/180,l=AD(i.rotation,s,i.labelDirection),u=e.getCategories(!0),h=[],c=rh(e),d=e.get("triggerEvent");return f(r,(function(r,s){var f=r.tickValue,p=r.formattedLabel,g=r.rawLabel,m=a;u&&u[f]&&u[f].textStyle&&(m=new La(u[f].textStyle,a,e.ecModel));var v=m.getTextColor()||e.get("axisLine.lineStyle.color"),y=[n.dataToCoord(f),i.labelOffset+i.labelDirection*o],x=new qS({anid:"label_"+f,position:y,rotation:l.rotation,silent:c,z2:10});fa(x.style,m,{text:p,textAlign:m.getShallow("align",!0)||l.textAlign,textVerticalAlign:m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||l.textVerticalAlign,textFill:"function"==typeof v?v("category"===n.type?g:"value"===n.type?f+"":f,s):v}),d&&(x.eventData=ah(e),x.eventData.targetType="axisLabel",x.eventData.value=g),t._dumbGroup.add(x),x.updateTransform(),h.push(x),t.group.add(x),x.decomposeTransform()})),h}}function fh(t,e){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return ph(i,t,e),i.seriesInvolved&&mh(i,t),i}function ph(t,e,i){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),o=a.get("link",!0)||[],r=[];DD(i.getCoordinateSystems(),(function(i){function s(n,s,l){var c=l.model.getModel("axisPointer",a),d=c.get("show");if(d&&("auto"!==d||n||bh(c))){null==s&&(s=c.get("triggerTooltip"));var f=(c=n?gh(l,h,a,e,n,s):c).get("snap"),p=Sh(l.model),g=s||f||"category"===l.type,m=t.axesInfo[p]={key:p,axis:l,coordSys:i,axisPointerModel:c,triggerTooltip:s,involveSeries:g,snap:f,useHandle:bh(c),seriesModels:[]};u[p]=m,t.seriesInvolved|=g;var v=vh(o,l);if(null!=v){var y=r[v]||(r[v]={axesInfo:{}});y.axesInfo[p]=m,y.mapper=o[v].mapper,m.linkGroup=y}}}if(i.axisPointerEnabled){var l=Sh(i.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=i;var h=i.model.getModel("tooltip",n);if(DD(i.getAxes(),CD(s,!1,null)),i.getTooltipAxes&&n&&h.get("show")){var c="axis"===h.get("trigger"),d="cross"===h.get("axisPointer.type"),f=i.getTooltipAxes(h.get("axisPointer.axis"));(c||d)&&DD(f.baseAxes,CD(s,!d||"cross",c)),d&&DD(f.otherAxes,CD(s,"cross",!1))}}}))}function gh(t,e,i,a,o,r){var l=e.getModel("axisPointer"),u={};DD(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){u[t]=n(l.get(t))})),u.snap="category"!==t.type&&!!r,"cross"===l.get("type")&&(u.type="line");var h=u.label||(u.label={});if(null==h.show&&(h.show=!1),"cross"===o){var c=l.get("label.show");if(h.show=null==c||c,!r){var d=u.lineStyle=l.get("crossStyle");d&&s(h,d.textStyle)}}return t.model.getModel("axisPointer",new La(u,i,a))}function mh(t,e){e.eachSeries((function(e){var i=e.coordinateSystem,n=e.get("tooltip.trigger",!0),a=e.get("tooltip.show",!0);i&&"none"!==n&&!1!==n&&"item"!==n&&!1!==a&&!1!==e.get("axisPointer.show",!0)&&DD(t.coordSysAxesInfo[Sh(i.model)],(function(t){var n=t.axis;i.getAxis(n.dim)===n&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}),this)}function vh(t,e){for(var i=e.model,n=e.dim,a=0;a<t.length;a++){var o=t[a]||{};if(yh(o[n+"AxisId"],i.id)||yh(o[n+"AxisIndex"],i.componentIndex)||yh(o[n+"AxisName"],i.name))return a}}function yh(t,e){return"all"===t||x(t)&&u(t,e)>=0||t===e}function xh(t){var e=_h(t);if(e){var i=e.axisPointerModel,n=e.axis.scale,a=i.option,o=i.get("status"),r=i.get("value");null!=r&&(r=n.parse(r));var s=bh(i);null==o&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==r||r>l[1])&&(r=l[1]),r<l[0]&&(r=l[0]),a.value=r,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function _h(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Sh(t)]}function wh(t){var e=_h(t);return e&&e.axisPointerModel}function bh(t){return!!t.get("handle.show")}function Sh(t){return t.type+"||"+t.id}function Mh(t,e,i,n,a,o){var r=LD.getAxisPointerClass(t.axisPointerClass);if(r){var s=wh(e);s?(t._axisPointer||(t._axisPointer=new r)).render(e,s,n,o):Ih(t,n)}}function Ih(t,e,i){var n=t._axisPointer;n&&n.dispose(e,i),t._axisPointer=null}function Th(t,e,i){i=i||{};var n=t.coordinateSystem,a=e.axis,o={},r=a.getAxesOnZeroOf()[0],s=a.position,l=r?"onZero":s,u=a.dim,h=n.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],d={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,p="x"===u?[c[2]-f,c[3]+f]:[c[0]-f,c[1]+f];if(r){var g=r.toGlobalCoord(r.dataToCoord(0));p[d.onZero]=Math.max(Math.min(g,p[1]),p[0])}o.position=["y"===u?p[d[l]]:c[0],"x"===u?p[d[l]]:c[3]],o.rotation=Math.PI/2*("x"===u?0:1);var m={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=m[s],o.labelOffset=r?p[d[s]]-p[d.onZero]:0,e.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),A(i.labelInside,e.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var v=e.get("axisLabel.rotate");return o.labelRotate="top"===l?-v:v,o.z2=1,o}function Ah(t,e,i,n,a,o,r){da(t,e,i.getModel("label"),i.getModel("emphasis.label"),{labelFetcher:a,labelDataIndex:o,defaultText:mu(a.getData(),o),isRectText:!0,autoColor:n}),Dh(t),Dh(e)}function Dh(t,e){"outside"===t.textPosition&&(t.textPosition=e)}function Ch(t,e,i){i.style.text=null,ba(i,{shape:{width:0}},e,t,(function(){i.parent&&i.parent.remove(i)}))}function Lh(t,e,i){i.style.text=null,ba(i,{shape:{r:i.shape.r0}},e,t,(function(){i.parent&&i.parent.remove(i)}))}function kh(t,e,i,n,a,o,r,l){var u=e.getItemVisual(i,"color"),h=e.getItemVisual(i,"opacity"),c=n.getModel("itemStyle"),d=n.getModel("emphasis.itemStyle").getBarItemStyle();l||t.setShape("r",c.get("barBorderRadius")||0),t.useStyle(s({fill:u,opacity:h},c.getBarItemStyle()));var f=n.getShallow("cursor");f&&t.attr("cursor",f);var p=r?a.height>0?"bottom":"top":a.width>0?"left":"right";l||Ah(t.style,d,n,u,o,i,p),ha(t,d)}function Ph(t,e){var i=t.get(BD)||0;return Math.min(i,Math.abs(e.width),Math.abs(e.height))}function Nh(t,e,i){var n=t.getData(),a=[],o=n.getLayout("valueAxisHorizontal")?1:0;a[1-o]=n.getLayout("valueAxisStart");var r=new GD({shape:{points:n.getLayout("largePoints")},incremental:!!i,__startPoint:a,__valueIdx:o});e.add(r),Oh(r,t,n)}function Oh(t,e,i){var n=i.getVisual("borderColor")||i.getVisual("color"),a=e.getModel("itemStyle").getItemStyle(["color","borderColor"]);t.useStyle(a),t.style.fill=null,t.style.stroke=n,t.style.lineWidth=i.getLayout("barWidth")}function Eh(t,e,i,n){var a=e.getData(),o=this.dataIndex,r=a.getName(o),s=e.get("selectedOffset");n.dispatchAction({type:"pieToggleSelect",from:t,name:r,seriesId:e.id}),a.each((function(t){Rh(a.getItemGraphicEl(t),a.getItemLayout(t),e.isSelected(a.getName(t)),s,i)}))}function Rh(t,e,i,n,a){var o=(e.startAngle+e.endAngle)/2,r=Math.cos(o),s=Math.sin(o),l=i?n:0,u=[r*l,s*l];a?t.animate().when(200,{position:u}).start("bounceOut"):t.attr("position",u)}function zh(t,e){function i(){o.ignore=o.hoverIgnore,r.ignore=r.hoverIgnore}function n(){o.ignore=o.normalIgnore,r.ignore=r.normalIgnore}Uw.call(this);var a=new QS({z2:2}),o=new aM,r=new qS;this.add(a),this.add(o),this.add(r),this.updateData(t,e,!0),this.on("emphasis",i).on("normal",n).on("mouseover",i).on("mouseout",n)}function Bh(t,e,i,n,a,o,r){function s(e,i){for(var n=e;n>=0&&(t[n].y-=i,!(n>0&&t[n].y>t[n-1].y+t[n-1].height));n--);}function l(t,e,i,n,a,o){for(var r=e?Number.MAX_VALUE:0,s=0,l=t.length;s<l;s++)if("center"!==t[s].position){var u=Math.abs(t[s].y-n),h=t[s].len,c=t[s].len2,d=u<a+h?Math.sqrt((a+h+c)*(a+h+c)-u*u):Math.abs(t[s].x-i);e&&d>=r&&(d=r-10),!e&&d<=r&&(d=r+10),t[s].x=i+d*o,r=d}}t.sort((function(t,e){return t.y-e.y}));for(var u,h=0,c=t.length,d=[],f=[],p=0;p<c;p++)(u=t[p].y-h)<0&&function(e,i,n,a){for(var o=e;o<i;o++)if(t[o].y+=n,o>e&&o+1<i&&t[o+1].y>t[o].y+t[o].height)return void s(o,n/2);s(i-1,n/2)}(p,c,-u),h=t[p].y+t[p].height;for(r-h<0&&s(c-1,h-r),p=0;p<c;p++)t[p].y>=i?f.push(t[p]):d.push(t[p]);l(d,!1,e,i,n,a),l(f,!0,e,i,n,a)}function Vh(t,e,i,n,a,o){for(var r=[],s=[],l=0;l<t.length;l++)t[l].x<e?r.push(t[l]):s.push(t[l]);for(Bh(s,e,i,n,1,a,o),Bh(r,e,i,n,-1,a,o),l=0;l<t.length;l++){var u=t[l].linePoints;if(u){var h=u[1][0]-u[2][0];t[l].x<e?u[2][0]=t[l].x+3:u[2][0]=t[l].x-3,u[1][1]=u[2][1]=t[l].y,u[1][0]=u[2][0]+h}}}function Fh(){this.group=new Uw}function Gh(t,e,i){HA.call(this,t,e,i),this.type="value",this.angle=0,this.name="",this.model}function Wh(t,e,i){this._model=t,this.dimensions=[],this._indicatorAxes=p(t.getIndicatorModels(),(function(t,e){var i="indicator_"+e,n=new Gh(i,new hA);return n.name=t.get("name"),n.model=t,t.axis=n,this.dimensions.push(i),n}),this),this.resize(t,i),this.cx,this.cy,this.r,this.r0,this.startAngle}function Hh(t,e){return s({show:e},t)}function Uh(t){return x(t)||(t=[+t,+t]),t}function Zh(){mw.call(this)}function jh(t){this.name=t,this.zoomLimit,mw.call(this),this._roamTransformable=new Zh,this._rawTransformable=new Zh,this._center,this._zoom}function Xh(t,e,i,n){var a=i.seriesModel,o=a?a.coordinateSystem:null;return o===this?o[t](n):null}function Yh(t){for(var e,i=0;i<t.length;i++){var n=t[i].getBoundingRect();(e=e||n.clone()).union(n)}return e}function qh(t,e){var i,n,a=t.svgXML;try{P(null!=(n=(i=a&&as(a,{ignoreViewBox:!0,ignoreRootClip:!0})||{}).root))}catch(t){throw new Error("Invalid svg format\n"+t.message)}var o=i.width,r=i.height,s=i.viewBoxRect;if(e||(e=null==o||null==r?n.getBoundingRect():new he(0,0,0,0),null!=o&&(e.width=o),null!=r&&(e.height=r)),s){var l=ns(s,e.width,e.height),u=n;(n=new Uw).add(u),u.scale=l.scale,u.position=l.position}return n.setClipPath(new oM({shape:e.plain()})),{root:n,boundingRect:e}}function $h(t){return function(e,i){var n=[];return f(Kh(e),(function(a){var o=yC[a.type][t];o&&n.push(o(e,a,i))})),n}}function Kh(t){return pT.retrieveMap(t)||[]}function Jh(t,e,i,n){jh.call(this,t),this.map=e;var a=xC.load(e,i);this._nameCoordMap=a.nameCoordMap,this._regionsMap=a.nameCoordMap,this._invertLongitute=null==n||n,this.regions=a.regions,this._rect=a.boundingRect}function Qh(t,e,i,n){var a=i.geoModel,o=i.seriesModel,r=a?a.coordinateSystem:o?o.coordinateSystem||(o.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return r===this?r[t](n):null}function tc(t,e){var i=t.get("boundingCoords");if(null!=i){var n=i[0],a=i[1];isNaN(n[0])||isNaN(n[1])||isNaN(a[0])||isNaN(a[1])||this.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1])}var o,r=this.getBoundingRect(),s=t.get("layoutCenter"),l=t.get("layoutSize"),u=e.getWidth(),h=e.getHeight(),c=r.width/r.height*this.aspectScale,d=!1;if(s&&l&&(s=[Ra(s[0],u),Ra(s[1],h)],l=Ra(l,Math.min(u,h)),isNaN(s[0])||isNaN(s[1])||isNaN(l)||(d=!0)),d){var f={};c>1?(f.width=l,f.height=l/c):(f.height=l,f.width=l*c),f.y=s[1]-f.height/2,f.x=s[0]-f.width/2}else(o=t.getBoxLayoutParams()).aspect=c,f=lo(o,{width:u,height:h});this.setViewRect(f.x,f.y,f.width,f.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function ec(t,e){f(e.get("geoCoord"),(function(e,i){t.addGeoCoord(i,e)}))}function ic(t,e,i){oc(t)[e]=i}function nc(t,e,i){var n=oc(t);n[e]===i&&(n[e]=null)}function ac(t,e){return!!oc(t)[e]}function oc(t){return t[bC]||(t[bC]={})}function rc(t){this.pointerChecker,this._zr=t,this._opt={};var e=v,i=e(sc,this),a=e(lc,this),o=e(uc,this),r=e(hc,this),l=e(cc,this);ow.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,u){this.disable(),this._opt=s(n(u)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",i),t.on("mousemove",a),t.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",r),t.on("pinch",l))},this.disable=function(){t.off("mousedown",i),t.off("mousemove",a),t.off("mouseup",o),t.off("mousewheel",r),t.off("pinch",l)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function sc(t){if(!(dt(t)||t.target&&t.target.draggable)){var e=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,i)&&(this._x=e,this._y=i,this._dragging=!0)}}function lc(t){if(!dt(t)&&pc("moveOnMouseMove",t,this._opt)&&this._dragging&&"pinch"!==t.gestureEvent&&!ac(this._zr,"globalPan")){var e=t.offsetX,i=t.offsetY,n=this._x,a=this._y,o=e-n,r=i-a;this._x=e,this._y=i,this._opt.preventDefaultMouseMove&&lw(t.event),fc(this,"pan","moveOnMouseMove",t,{dx:o,dy:r,oldX:n,oldY:a,newX:e,newY:i})}}function uc(t){dt(t)||(this._dragging=!1)}function hc(t){var e=pc("zoomOnMouseWheel",t,this._opt),i=pc("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,a=Math.abs(n),o=t.offsetX,r=t.offsetY;if(0!==n&&(e||i)){if(e){var s=a>3?1.4:a>1?1.2:1.1;dc(this,"zoom","zoomOnMouseWheel",t,{scale:n>0?s:1/s,originX:o,originY:r})}if(i){var l=Math.abs(n);dc(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(n>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:r})}}}function cc(t){ac(this._zr,"globalPan")||dc(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY})}function dc(t,e,i,n,a){t.pointerChecker&&t.pointerChecker(n,a.originX,a.originY)&&(lw(n.event),fc(t,e,i,n,a))}function fc(t,e,i,n,a){a.isAvailableBehavior=v(pc,null,i,n),t.trigger(e,a)}function pc(t,e,i){var n=i[t];return!t||n&&(!w(n)||e.event[n+"Key"])}function gc(t,e,i){var n=t.target,a=n.position;a[0]+=e,a[1]+=i,n.dirty()}function mc(t,e,i,n){var a=t.target,o=t.zoomLimit,r=a.position,s=a.scale,l=t.zoom=t.zoom||1;if(l*=e,o){var u=o.min||0,h=o.max||1/0;l=Math.max(Math.min(h,l),u)}var c=l/t.zoom;t.zoom=l,r[0]-=(i-r[0])*(c-1),r[1]-=(n-r[1])*(c-1),s[0]*=c,s[1]*=c,a.dirty()}function vc(t,e,i){var n=e.getComponentByElement(t.topTarget),a=n&&n.coordinateSystem;return n&&n!==i&&!SC[n.mainType]&&a&&a.model!==i}function yc(t,e){var i=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(i.fill=n),i}function xc(t,e,i,n,a){i.off("click"),i.off("mousedown"),e.get("selectedMode")&&(i.on("mousedown",(function(){t._mouseDownFlag=!0})),i.on("click",(function(o){if(t._mouseDownFlag){t._mouseDownFlag=!1;for(var r=o.target;!r.__regions;)r=r.parent;if(r){var s={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",batch:p(r.__regions,(function(t){return{name:t.name,from:a.uid}}))};s[e.mainType+"Id"]=e.id,n.dispatchAction(s),_c(e,i)}}})))}function _c(t,e){e.eachChild((function(e){f(e.__regions,(function(i){e.trigger(t.isSelected(i.name)?"emphasis":"normal")}))}))}function wc(t,e){var i=new Uw;this.uid=Na("ec_map_draw"),this._controller=new rc(t.getZr()),this._controllerHost={target:e?i:null},this.group=i,this._updateGroup=e,this._mouseDownFlag,this._mapName,this._initialized,i.add(this._regionsGroup=new Uw),i.add(this._backgroundGroup=new Uw)}function bc(t,e,i){var n=t.getZoom(),a=t.getCenter(),o=e.zoom,r=t.dataToPoint(a);if(null!=e.dx&&null!=e.dy&&(r[0]-=e.dx,r[1]-=e.dy,a=t.pointToData(r),t.setCenter(a)),null!=o){if(i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(n*o,l),s)/n}t.scale[0]*=o,t.scale[1]*=o;var u=t.position,h=(e.originX-u[0])*(o-1),c=(e.originY-u[1])*(o-1);u[0]-=h,u[1]-=c,t.updateTransform(),a=t.pointToData(r),t.setCenter(a),t.setZoom(o*n)}return{center:t.getCenter(),zoom:t.getZoom()}}function Sc(t,e){var i={};return f(t,(function(t){t.each(t.mapDimension("value"),(function(e,n){var a="ec-"+t.getName(n);i[a]=i[a]||[],isNaN(e)||i[a].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(n,a){for(var o="ec-"+t[0].getName(a),r=0,s=1/0,l=-1/0,u=i[o].length,h=0;h<u;h++)s=Math.min(s,i[o][h]),l=Math.max(l,i[o][h]),r+=i[o][h];var c;return c="min"===e?s:"max"===e?l:"average"===e?r/u:r,0===u?NaN:c}))}function Mc(t){var e=t.mainData,i=t.datas;i||(i={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,Lc(e,i,t),MC(i,(function(i){MC(e.TRANSFERABLE_METHODS,(function(e){i.wrapMethod(e,y(Ic,t))}))})),e.wrapMethod("cloneShallow",y(Ac,t)),MC(e.CHANGABLE_METHODS,(function(i){e.wrapMethod(i,y(Tc,t))})),P(i[e.dataType]===e)}function Ic(t,e){if(Cc(this)){var i=r({},this[IC]);i[this.dataType]=e,Lc(e,i,t)}else kc(e,this.dataType,this[TC],t);return e}function Tc(t,e){return t.struct&&t.struct.update(this),e}function Ac(t,e){return MC(e[IC],(function(i,n){i!==e&&kc(i.cloneShallow(),n,e,t)})),e}function Dc(t){var e=this[TC];return null==t||null==e?e:e[IC][t]}function Cc(t){return t[TC]===t}function Lc(t,e,i){t[IC]={},MC(e,(function(e,n){kc(e,n,t,i)}))}function kc(t,e,i,n){i[IC][e]=t,t[TC]=i,t.dataType=e,n.struct&&(t[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=t),t.getLinkedData=Dc}function Pc(t,e,i){this.root,this.data,this._nodes=[],this.hostModel=t,this.levelModels=p(e||[],(function(e){return new La(e,t,t.ecModel)})),this.leavesModel=new La(i||{},t,t.ecModel)}function Nc(t,e){var i=e.children;t.parentNode!==e&&(i.push(t),t.parentNode=e)}function Oc(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e,i,n=[t];e=n.pop();)if(i=e.children,e.isExpand&&i.length)for(var a=i.length-1;a>=0;a--){var o=i[a];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},n.push(o)}}function Ec(t,e){var i=t.isExpand?t.children:[],n=t.parentNode.children,a=t.hierNode.i?n[t.hierNode.i-1]:null;if(i.length){Fc(t);var o=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;a?(t.hierNode.prelim=a.hierNode.prelim+e(t,a),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else a&&(t.hierNode.prelim=a.hierNode.prelim+e(t,a));t.parentNode.hierNode.defaultAncestor=Gc(t,a,t.parentNode.hierNode.defaultAncestor||n[0],e)}function Rc(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function zc(t){return arguments.length?t:jc}function Bc(t,e){var i={};return t-=Math.PI/2,i.x=e*Math.cos(t),i.y=e*Math.sin(t),i}function Vc(t,e){return lo(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Fc(t){for(var e=t.children,i=e.length,n=0,a=0;--i>=0;){var o=e[i];o.hierNode.prelim+=n,o.hierNode.modifier+=n,a+=o.hierNode.change,n+=o.hierNode.shift+a}}function Gc(t,e,i,n){if(e){for(var a=t,o=t,r=o.parentNode.children[0],s=e,l=a.hierNode.modifier,u=o.hierNode.modifier,h=r.hierNode.modifier,c=s.hierNode.modifier;s=Wc(s),o=Hc(o),s&&o;){a=Wc(a),r=Hc(r),a.hierNode.ancestor=t;var d=s.hierNode.prelim+c-o.hierNode.prelim-u+n(s,o);d>0&&(Zc(Uc(s,t,i),t,d),u+=d,l+=d),c+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=a.hierNode.modifier,h+=r.hierNode.modifier}s&&!Wc(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=c-l),o&&!Hc(r)&&(r.hierNode.thread=o,r.hierNode.modifier+=u-h,i=t)}return i}function Wc(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function Hc(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function Uc(t,e,i){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:i}function Zc(t,e,i){var n=i/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=i,e.hierNode.modifier+=i,e.hierNode.prelim+=i,t.hierNode.change+=n}function jc(t,e){return t.parentNode===e.parentNode?1:2}function Xc(t,e){var i=t.getItemLayout(e);return i&&!isNaN(i.x)&&!isNaN(i.y)&&"none"!==t.getItemVisual(e,"symbol")}function Yc(t,e,i){return i.itemModel=e,i.itemStyle=e.getModel("itemStyle").getItemStyle(),i.hoverItemStyle=e.getModel("emphasis.itemStyle").getItemStyle(),i.lineStyle=e.getModel("lineStyle").getLineStyle(),i.labelModel=e.getModel("label"),i.hoverLabelModel=e.getModel("emphasis.label"),!1===t.isExpand&&0!==t.children.length?i.symbolInnerColor=i.itemStyle.fill:i.symbolInnerColor="#fff",i}function qc(t,e,i,n,a,o){var r=!i,l=t.tree.getNodeByDataIndex(e),u=(o=Yc(l,l.getModel(),o),t.tree.root),h=l.parentNode===u?l:l.parentNode||l,c=t.getItemGraphicEl(h.dataIndex),d=h.getLayout(),f=c?{x:c.position[0],y:c.position[1],rawX:c.__radialOldRawX,rawY:c.__radialOldRawY}:d,p=l.getLayout();r?(i=new vu(t,e,o)).attr("position",[f.x,f.y]):i.updateData(t,e,o),i.__radialOldRawX=i.__radialRawX,i.__radialOldRawY=i.__radialRawY,i.__radialRawX=p.rawX,i.__radialRawY=p.rawY,n.add(i),t.setItemGraphicEl(e,i),ba(i,{position:[p.x,p.y]},a);var g=i.getSymbolPath();if("radial"===o.layout){var m,v,y=u.children[0],x=y.getLayout(),_=y.children.length;if(p.x===x.x&&!0===l.isExpand){var w={};w.x=(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,w.y=(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2,(m=Math.atan2(w.y-x.y,w.x-x.x))<0&&(m=2*Math.PI+m),(v=w.x<x.x)&&(m-=Math.PI)}else(m=Math.atan2(p.y-x.y,p.x-x.x))<0&&(m=2*Math.PI+m),0===l.children.length||0!==l.children.length&&!1===l.isExpand?(v=p.x<x.x)&&(m-=Math.PI):(v=p.x>x.x)||(m-=Math.PI);var b=v?"left":"right";g.setStyle({textPosition:b,textRotation:-m,textOrigin:"center",verticalAlign:"middle"})}if(l.parentNode&&l.parentNode!==u){var S=i.__edge;S||(S=i.__edge=new lM({shape:Kc(o,f,f),style:s({opacity:0,strokeNoScale:!0},o.lineStyle)})),ba(S,{shape:Kc(o,d,p),style:{opacity:1}},a),n.add(S)}}function $c(t,e,i,n,a,o){for(var r,s=t.tree.getNodeByDataIndex(e),l=t.tree.root,u=(o=Yc(s,s.getModel(),o),s.parentNode===l?s:s.parentNode||s);null==(r=u.getLayout());)u=u.parentNode===l?u:u.parentNode||u;ba(i,{position:[r.x+1,r.y+1]},a,(function(){n.remove(i),t.setItemGraphicEl(e,null)})),i.fadeOut(null,{keepLabel:!0});var h=i.__edge;h&&ba(h,{shape:Kc(o,r,r),style:{opacity:0}},a,(function(){n.remove(h)}))}function Kc(t,e,i){var n,a,o,r,s,l,u,h,c=t.orient;if("radial"===t.layout){s=e.rawX,u=e.rawY,l=i.rawX,h=i.rawY;var d=Bc(s,u),f=Bc(s,u+(h-u)*t.curvature),p=Bc(l,h+(u-h)*t.curvature),g=Bc(l,h);return{x1:d.x,y1:d.y,x2:g.x,y2:g.y,cpx1:f.x,cpy1:f.y,cpx2:p.x,cpy2:p.y}}return s=e.x,u=e.y,l=i.x,h=i.y,"LR"!==c&&"RL"!==c||(n=s+(l-s)*t.curvature,a=u,o=l+(s-l)*t.curvature,r=h),"TB"!==c&&"BT"!==c||(n=s,a=u+(h-u)*t.curvature,o=l,r=h+(u-h)*t.curvature),{x1:s,y1:u,x2:l,y2:h,cpx1:n,cpy1:a,cpx2:o,cpy2:r}}function Jc(t,e,i){for(var n,a=[t],o=[];n=a.pop();)if(o.push(n),n.isExpand){var r=n.children;if(r.length)for(var s=0;s<r.length;s++)a.push(r[s])}for(;n=o.pop();)e(n,i)}function Qc(t,e){for(var i,n=[t];i=n.pop();)if(e(i),i.isExpand){var a=i.children;if(a.length)for(var o=a.length-1;o>=0;o--)n.push(a[o])}}function td(t,e){var i=Vc(t,e);t.layoutInfo=i;var n=t.get("layout"),a=0,o=0,r=null;"radial"===n?(a=2*Math.PI,o=Math.min(i.height,i.width)/2,r=zc((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(a=i.width,o=i.height,r=zc());var s=t.getData().tree.root,l=s.children[0];if(l){Oc(s),Jc(l,Ec,r),s.hierNode.modifier=-l.hierNode.prelim,Qc(l,Rc);var u=l,h=l,c=l;Qc(l,(function(t){var e=t.getLayout().x;e<u.getLayout().x&&(u=t),e>h.getLayout().x&&(h=t),t.depth>c.depth&&(c=t)}));var d=u===h?1:r(u,h)/2,f=d-u.getLayout().x,p=0,g=0,m=0,v=0;if("radial"===n)p=a/(h.getLayout().x+d+f),g=o/(c.depth-1||1),Qc(l,(function(t){m=(t.getLayout().x+f)*p,v=(t.depth-1)*g;var e=Bc(m,v);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)}));else{var y=t.getOrient();"RL"===y||"LR"===y?(g=o/(h.getLayout().x+d+f),p=a/(c.depth-1||1),Qc(l,(function(t){v=(t.getLayout().x+f)*g,m="LR"===y?(t.depth-1)*p:a-(t.depth-1)*p,t.setLayout({x:m,y:v},!0)}))):"TB"!==y&&"BT"!==y||(p=a/(h.getLayout().x+d+f),g=o/(c.depth-1||1),Qc(l,(function(t){m=(t.getLayout().x+f)*p,v="TB"===y?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:m,y:v},!0)})))}}}function ed(t,e,i){if(t&&u(e,t.type)>=0){var n=i.getData().tree.root,a=t.targetNode;if("string"==typeof a&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var o=t.targetNodeId;if(null!=o&&(a=n.getNodeById(o)))return{node:a}}}function id(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function nd(t,e){return u(id(t),e)>=0}function ad(t,e){for(var i=[];t;){var n=t.dataIndex;i.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return i.reverse(),i}function od(t){var e=0;f(t.children,(function(t){od(t);var i=t.value;x(i)&&(i=i[0]),e+=i}));var i=t.value;x(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=e),i<0&&(i=0),x(t.value)?t.value[0]=i:t.value=i}function rd(t,e){var i,n=e.get("color");if(n)return f(t=t||[],(function(t){var e=new La(t),n=e.get("color");(e.get("itemStyle.color")||n&&"none"!==n)&&(i=!0)})),i||((t[0]||(t[0]={})).color=n.slice()),t}function sd(t){this.group=new Uw,t.add(this.group)}function ld(t,e,i,n,a,o){var r=[[a?t:t-DC,e],[t+i,e],[t+i,e+n],[a?t:t-DC,e+n]];return!o&&r.splice(2,0,[t+i+DC,e+n/2]),!a&&r.push([t,e+n/2]),r}function ud(t,e,i){t.eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:i&&i.dataIndex,name:i&&i.name},treePathInfo:i&&ad(i,e)}}function hd(){var t,e=[],i={};return{add:function(t,n,a,o,r){return w(o)&&(r=o,o=0),!i[t.id]&&(i[t.id]=1,e.push({el:t,target:n,time:a,delay:o,easing:r}),!0)},done:function(e){return t=e,this},start:function(){for(var n=e.length,a=0,o=e.length;a<o;a++){var r=e[a];r.el.animateTo(r.target,r.time,r.delay,r.easing,(function(){--n||(e.length=0,i={},t&&t())}))}return this}}}function cd(t,e,i,a,o,s,l,u,h,c){function d(t,e){w?!t.invisible&&s.push(t):(e(),t.__tmWillVisible||(t.invisible=!1))}function f(e,i,a,o,r,s){var u=l.getModel(),h=A(t.getFormattedLabel(l.dataIndex,"normal",null,null,s?"upperLabel":"label"),u.get("name"));if(!s&&v.isLeafRoot){var c=t.get("drillDownIcon",!0);h=c?c+" "+h:h}var d=u.getModel(s?EC:NC),f=u.getModel(s?RC:OC),p=d.getShallow("show");da(e,i,d,f,{defaultText:p?h:null,autoColor:a,isRectText:!0}),s&&(e.textRect=n(s)),e.truncate=p&&d.get("ellipsis")?{outerWidth:o,outerHeight:r,minChar:2}:null}function p(t,n,a,r){var s=null!=S&&i[t][S],l=o[t];return s?(i[t][S]=null,g(l,s,t)):w||((s=new n({z:dd(a,r)})).__tmDepth=a,s.__tmStorageName=t,m(l,s,t)),e[t][b]=s}function g(t,e,i){(t[b]={}).old="nodeGroup"===i?e.position.slice():r({},e.shape)}function m(t,e,i){var n=t[b]={},r=l.parentNode;if(r&&(!a||"drillDown"===a.direction)){var s=0,u=0,h=o.background[r.getRawIndex()];!a&&h&&h.old&&(s=h.old.width,u=h.old.height),n.old="nodeGroup"===i?[0,u]:{x:s,y:u,width:0,height:0}}n.fadein="nodeGroup"!==i}if(l){var v=l.getLayout();if(v&&v.isInView){var y=v.width,x=v.height,_=v.borderWidth,w=v.invisible,b=l.getRawIndex(),S=u&&u.getRawIndex(),M=l.viewChildren,I=v.upperHeight,T=M&&M.length,D=l.getModel("itemStyle"),C=l.getModel("emphasis.itemStyle"),L=p("nodeGroup",LC);if(L){if(h.add(L),L.attr("position",[v.x||0,v.y||0]),L.__tmNodeWidth=y,L.__tmNodeHeight=x,v.isAboveViewRoot)return L;var k=p("background",kC,c,BC);if(k&&function(e,i,n){i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex,i.setShape({x:0,y:0,width:y,height:x});var a=l.getVisual("borderColor",!0),o=C.get("borderColor");d(i,(function(){var t=GC(D);t.fill=a;var e=FC(C);if(e.fill=o,n){var r=y-2*_;f(t,e,a,r,I,{x:_,y:0,width:r,height:I})}else t.text=e.text=null;i.setStyle(t),ha(i,e)})),e.add(i)}(L,k,T&&v.upperHeight),!T){var P=p("content",kC,c,VC);P&&function(e,i){i.dataIndex=l.dataIndex,i.seriesIndex=t.seriesIndex;var n=Math.max(y-2*_,0),a=Math.max(x-2*_,0);i.culling=!0,i.setShape({x:_,y:_,width:n,height:a});var o=l.getVisual("color",!0);d(i,(function(){var t=GC(D);t.fill=o;var e=FC(C);f(t,e,o,n,a),i.setStyle(t),ha(i,e)})),e.add(i)}(L,P)}return L}}}}function dd(t,e){var i=t*zC+e;return(i-1)/i}function fd(t){var e=t.pieceList;t.hasSpecialVisual=!1,f(e,(function(e,i){e.originIndex=i,null!=e.visual&&(t.hasSpecialVisual=!0)}))}function pd(t){var e=t.categories,i=t.visual,n=t.categoryMap={};if(UC(e,(function(t,e){n[t]=e})),!x(i)){var a=[];b(i)?UC(i,(function(t,e){var i=n[e];a[null!=i?i:jC]=t})):a[jC]=i,i=Sd(t,a)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}function gd(t,e){var i=t.visual,n=[];b(i)?UC(i,(function(t){n.push(t)})):null!=i&&n.push(i);var a={color:1,symbol:1};e||1!==n.length||a.hasOwnProperty(t.type)||(n[1]=n[0]),Sd(t,n)}function md(t){return{applyVisual:function(e,i,n){e=this.mapValueToVisual(e),n("color",t(i("color"),e))},_doMap:wd([0,1])}}function vd(t){var e=this.option.visual;return e[Math.round(Ea(t,[0,1],[0,e.length-1],!0))]||{}}function yd(t){return function(e,i,n){n(t,this.mapValueToVisual(e))}}function xd(t){var e=this.option.visual;return e[this.option.loop&&t!==jC?t%e.length:t]}function _d(){return this.option.visual[0]}function wd(t){return{linear:function(e){return Ea(e,t,this.option.visual,!0)},category:xd,piecewise:function(e,i){var n=bd.call(this,i);return null==n&&(n=Ea(e,t,this.option.visual,!0)),n},fixed:_d}}function bd(t){var e=this.option,i=e.pieceList;if(e.hasSpecialVisual){var n=i[XC.findPieceIndex(t,i)];if(n&&n.visual)return n.visual[this.type]}}function Sd(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=p(e,(function(t){return Bt(t)}))),e}function Md(t,e,i){return t?e<=i:e<i}function Id(t,e,i,n,a,o){var r=t.getModel(),s=t.getLayout();if(s&&!s.invisible&&s.isInView){var l,u=t.getModel(KC),h=Td(u,e,i[t.depth],n),c=u.get("borderColor"),d=u.get("borderColorSaturation");null!=d&&(c=Dd(d,l=Ad(h))),t.setVisual("borderColor",c);var p=t.viewChildren;if(p&&p.length){var g=Ld(t,r,s,u,h,p);f(p,(function(t,e){(t.depth>=a.length||t===a[t.depth])&&Id(t,Pd(r,h,t,e,g,o),i,n,a,o)}))}else l=Ad(h),t.setVisual("color",l)}}function Td(t,e,i,n){var a=r({},e);return f(["color","colorAlpha","colorSaturation"],(function(o){var r=t.get(o,!0);null==r&&i&&(r=i[o]),null==r&&(r=e[o]),null==r&&(r=n.get(o)),null!=r&&(a[o]=r)})),a}function Ad(t){var e=Cd(t,"color");if(e){var i=Cd(t,"colorAlpha"),n=Cd(t,"colorSaturation");return n&&(e=Zt(e,null,null,n)),i&&(e=jt(e,i)),e}}function Dd(t,e){return null!=e?Zt(e,null,null,t):null}function Cd(t,e){var i=t[e];if(null!=i&&"none"!==i)return i}function Ld(t,e,i,n,a,o){if(o&&o.length){var r=kd(e,"color")||null!=a.color&&"none"!==a.color&&(kd(e,"colorAlpha")||kd(e,"colorSaturation"));if(r){var s=e.get("visualMin"),l=e.get("visualMax"),u=i.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var h=e.get("colorMappingBy"),c={type:r.name,dataExtent:u,visual:r.range};"color"!==c.type||"index"!==h&&"id"!==h?c.mappingMethod="linear":(c.mappingMethod="category",c.loop=!0);var d=new XC(c);return d.__drColorMappingBy=h,d}}}function kd(t,e){var i=t.get(e);return $C(i)&&i.length?{name:e,range:i}:null}function Pd(t,e,i,n,a,o){var s=r({},e);if(a){var l=a.type,u="color"===l&&a.__drColorMappingBy,h="index"===u?n:"id"===u?o.mapIdToIndex(i.getId()):i.getValue(t.get("visualDimension"));s[l]=a.mapValueToVisual(h)}return s}function Nd(t,e,i,n){var a,o;if(!t.isRemoved()){var r=t.getLayout();a=r.width,o=r.height;var s=(f=t.getModel()).get(nL),l=f.get(aL)/2,u=Hd(f),h=Math.max(s,u),c=s-l,d=h-l,f=t.getModel();t.setLayout({borderWidth:s,upperHeight:h,upperLabelHeight:u},!0);var p=(a=QC(a-2*c,0))*(o=QC(o-c-d,0)),g=Od(t,f,p,e,i,n);if(g.length){var m={x:c,y:d,width:a,height:o},v=tL(a,o),y=1/0,x=[];x.area=0;for(var _=0,w=g.length;_<w;){var b=g[_];x.push(b),x.area+=b.getLayout().area;var S=Bd(x,v,e.squareRatio);S<=y?(_++,y=S):(x.area-=x.pop().getLayout().area,Vd(x,v,m,l,!1),v=tL(m.width,m.height),x.length=x.area=0,y=1/0)}if(x.length&&Vd(x,v,m,l,!0),!i){var M=f.get("childrenVisibleMin");null!=M&&p<M&&(i=!0)}for(_=0,w=g.length;_<w;_++)Nd(g[_],e,i,n+1)}}}function Od(t,e,i,n,a,o){var r=t.children||[],s=n.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=n.leafDepth&&n.leafDepth<=o;if(a&&!l)return t.viewChildren=[];Rd(r=m(r,(function(t){return!t.isRemoved()})),s);var u=zd(e,r,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=Ed(e,i,u.sum,s,r),0===u.sum)return t.viewChildren=[];for(var h=0,c=r.length;h<c;h++){var d=r[h].getValue()/u.sum*i;r[h].setLayout({area:d})}return l&&(r.length&&t.setLayout({isLeafRoot:!0},!0),r.length=0),t.viewChildren=r,t.setLayout({dataExtent:u.dataExtent},!0),r}function Ed(t,e,i,n,a){if(!n)return i;for(var o=t.get("visibleMin"),r=a.length,s=r,l=r-1;l>=0;l--){var u=a["asc"===n?r-l-1:l].getValue();u/i*e<o&&(s=l,i-=u)}return"asc"===n?a.splice(0,r-s):a.splice(s,r-s),i}function Rd(t,e){return e&&t.sort((function(t,i){var n="asc"===e?t.getValue()-i.getValue():i.getValue()-t.getValue();return 0===n?"asc"===e?t.dataIndex-i.dataIndex:i.dataIndex-t.dataIndex:n})),t}function zd(t,e,i){for(var n=0,a=0,o=e.length;a<o;a++)n+=e[a].getValue();var r=t.get("visualDimension");if(e&&e.length)if("value"===r&&i)s=[e[e.length-1].getValue(),e[0].getValue()],"asc"===i&&s.reverse();else{var s=[1/0,-1/0];iL(e,(function(t){var e=t.getValue(r);e<s[0]&&(s[0]=e),e>s[1]&&(s[1]=e)}))}else s=[NaN,NaN];return{sum:n,dataExtent:s}}function Bd(t,e,i){for(var n,a=0,o=1/0,r=0,s=t.length;r<s;r++)(n=t[r].getLayout().area)&&(n<o&&(o=n),n>a&&(a=n));var l=t.area*t.area,u=e*e*i;return l?QC(u*a/l,l/(u*o)):1/0}function Vd(t,e,i,n,a){var o=e===i.width?0:1,r=1-o,s=["x","y"],l=["width","height"],u=i[s[o]],h=e?t.area/e:0;(a||h>i[l[r]])&&(h=i[l[r]]);for(var c=0,d=t.length;c<d;c++){var f=t[c],p={},g=h?f.getLayout().area/h:0,m=p[l[r]]=QC(h-2*n,0),v=i[s[o]]+i[l[o]]-u,y=c===d-1||v<g?v:g,x=p[l[o]]=QC(y-2*n,0);p[s[r]]=i[s[r]]+tL(n,m/2),p[s[o]]=u+tL(n,x/2),u+=y,f.setLayout(p,!0)}i[s[r]]+=h,i[l[r]]-=h}function Fd(t,e,i,n,a){var o=(e||{}).node,r=[n,a];if(!o||o===i)return r;for(var s,l=n*a,u=l*t.option.zoomToNodeRatio;s=o.parentNode;){for(var h=0,c=s.children,d=0,f=c.length;d<f;d++)h+=c[d].getValue();var p=o.getValue();if(0===p)return r;u*=h/p;var g=s.getModel(),m=g.get(nL);(u+=4*m*m+(3*m+Math.max(m,Hd(g)))*Math.pow(u,.5))>kM&&(u=kM),o=s}u<l&&(u=l);var v=Math.pow(u/l,.5);return[n*v,a*v]}function Gd(t,e,i){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!i)return n;var a=i.node,o=a.getLayout();if(!o)return n;for(var r=[o.width/2,o.height/2],s=a;s;){var l=s.getLayout();r[0]+=l.x,r[1]+=l.y,s=s.parentNode}return{x:t.width/2-r[0],y:t.height/2-r[1]}}function Wd(t,e,i,n,a){var o=t.getLayout(),r=i[a],s=r&&r===t;if(!(r&&!s||a===i.length&&t!==n)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(o),isAboveViewRoot:s},!0);var l=new he(e.x-o.x,e.y-o.y,e.width,e.height);iL(t.viewChildren||[],(function(t){Wd(t,l,i,n,a+1)}))}}function Hd(t){return t.get(oL)?t.get(rL):0}function Ud(t){return"_EC_"+t}function Zd(t,e){this.id=null==t?"":t,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==e?-1:e}function jd(t,e,i){this.node1=t,this.node2=e,this.dataIndex=null==i?-1:i}function Xd(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}function Yd(t){return"_"+t+"Type"}function qd(t,e,i){var n=e.getItemVisual(i,"color"),a=e.getItemVisual(i,t),o=e.getItemVisual(i,t+"Size");if(a&&"none"!==a){x(o)||(o=[o,o]);var r=Xl(a,-o[0]/2,-o[1]/2,o[0],o[1],n);return r.name=t,r}}function $d(t){var e=new gL({name:"line"});return Kd(e.shape,t),e}function Kd(t,e){var i=e[0],n=e[1],a=e[2];t.x1=i[0],t.y1=i[1],t.x2=n[0],t.y2=n[1],t.percent=1,a?(t.cpx1=a[0],t.cpy1=a[1]):(t.cpx1=NaN,t.cpy1=NaN)}function Jd(t,e,i){Uw.call(this),this._createLine(t,e,i)}function Qd(t){this._ctor=t||Jd,this.group=new Uw}function tf(t,e,i,n){if(of(e.getItemLayout(i))){var a=new t._ctor(e,i,n);e.setItemGraphicEl(i,a),t.group.add(a)}}function ef(t,e,i,n,a,o){var r=e.getItemGraphicEl(n);of(i.getItemLayout(a))?(r?r.updateData(i,a,o):r=new t._ctor(i,a,o),i.setItemGraphicEl(a,r),t.group.add(r)):t.group.remove(r)}function nf(t){var e=t.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}function af(t){return isNaN(t[0])||isNaN(t[1])}function of(t){return!af(t[0])&&!af(t[1])}function rf(t,e,i){for(var n,a=t[0],o=t[1],r=t[2],s=1/0,l=i*i,u=.1,h=.1;h<=.9;h+=.1)xL[0]=bL(a[0],o[0],r[0],h),xL[1]=bL(a[1],o[1],r[1],h),(f=ML(SL(xL,e)-l))<s&&(s=f,n=h);for(var c=0;c<32;c++){var d=n+u;_L[0]=bL(a[0],o[0],r[0],n),_L[1]=bL(a[1],o[1],r[1],n),wL[0]=bL(a[0],o[0],r[0],d),wL[1]=bL(a[1],o[1],r[1],d);var f=SL(_L,e)-l;if(ML(f)<.01)break;var p=SL(wL,e)-l;u/=2,f<0?p>=0?n+=u:n-=u:p>=0?n-=u:n+=u}return n}function sf(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function lf(t,e,i){var n=t.getGraphicEl(),a=sf(t,e);null!=i&&(null==a&&(a=1),a*=i),n.downplay&&n.downplay(),n.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",a)}))}function uf(t,e){var i=sf(t,e),n=t.getGraphicEl();n.highlight&&n.highlight(),n.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",i)}))}function hf(t){return t instanceof Array||(t=[t,t]),t}function cf(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var i=t.getGraph();i.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),df(i)}}function df(t){t.eachEdge((function(t){var e=t.getModel().get("lineStyle.curveness")||0,i=W(t.node1.getLayout()),n=W(t.node2.getLayout()),a=[i,n];+e&&a.push([(i[0]+n[0])/2-(i[1]-n[1])*e,(i[1]+n[1])/2-(n[0]-i[0])*e]),t.setLayout(a)}))}function ff(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var i=e.getBoundingRect(),n=t.getData(),a=n.graph,o=0,r=n.getSum("value"),s=2*Math.PI/(r||n.count()),l=i.width/2+i.x,u=i.height/2+i.y,h=Math.min(i.width,i.height)/2;a.eachNode((function(t){var e=t.getValue("value");o+=s*(r?e:1)/2,t.setLayout([h*Math.cos(o)+l,h*Math.sin(o)+u]),o+=s*(r?e:1)/2})),n.setLayout({cx:l,cy:u}),a.eachEdge((function(t){var e,i=t.getModel().get("lineStyle.curveness")||0,n=W(t.node1.getLayout()),a=W(t.node2.getLayout()),o=(n[0]+a[0])/2,r=(n[1]+a[1])/2;+i&&(e=[l*(i*=3)+o*(1-i),u*i+r*(1-i)]),t.setLayout([n,a,e])}))}}function pf(t,e,i){for(var n=i.rect,a=n.width,o=n.height,r=[n.x+a/2,n.y+o/2],s=null==i.gravity?.1:i.gravity,l=0;l<t.length;l++){var u=t[l];u.p||(u.p=F(a*(Math.random()-.5)+r[0],o*(Math.random()-.5)+r[1])),u.pp=W(u.p),u.edges=null}var h=.6;return{warmUp:function(){h=.5},setFixed:function(e){t[e].fixed=!0},setUnfixed:function(e){t[e].fixed=!1},step:function(i){for(var n=[],a=t.length,o=0;o<e.length;o++){var l=e[o],u=l.n1;j(n,(p=l.n2).p,u.p);var c=X(n)-l.d,d=p.w/(u.w+p.w);isNaN(d)&&(d=0),$(n,n),!u.fixed&&DL(u.p,u.p,n,d*c*h),!p.fixed&&DL(p.p,p.p,n,-(1-d)*c*h)}for(o=0;o<a;o++)(v=t[o]).fixed||(j(n,r,v.p),DL(v.p,v.p,n,s*h));for(o=0;o<a;o++){u=t[o];for(var f=o+1;f<a;f++){var p=t[f];j(n,p.p,u.p),0===(c=X(n))&&(H(n,Math.random()-.5,Math.random()-.5),c=1);var g=(u.rep+p.rep)/c/c;!u.fixed&&DL(u.pp,u.pp,n,g),!p.fixed&&DL(p.pp,p.pp,n,-g)}}var m=[];for(o=0;o<a;o++){var v=t[o];v.fixed||(j(m,v.p,v.pp),DL(v.p,v.p,m,h),G(v.pp,v.p))}h*=.992,i&&i(t,e,h<.01)}}}function gf(t,e,i){var n=t.getBoxLayoutParams();return n.aspect=i,lo(n,{width:e.getWidth(),height:e.getHeight()})}function mf(t,e){var i=t.get("center"),n=e.getWidth(),a=e.getHeight(),o=Math.min(n,a);return{cx:Ra(i[0],e.getWidth()),cy:Ra(i[1],e.getHeight()),r:Ra(t.get("radius"),o/2)}}function vf(t,e){return e&&("string"==typeof e?t=e.replace("{value}",null!=t?t:""):"function"==typeof e&&(t=e(t))),t}function yf(t,e){function i(){o.ignore=o.hoverIgnore,r.ignore=r.hoverIgnore}function n(){o.ignore=o.normalIgnore,r.ignore=r.normalIgnore}Uw.call(this);var a=new nM,o=new aM,r=new qS;this.add(a),this.add(o),this.add(r),this.updateData(t,e,!0),this.on("emphasis",i).on("normal",n).on("mouseover",i).on("mouseout",n)}function xf(t,e){return lo(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function _f(t,e){for(var i=t.mapDimension("value"),n=t.mapArray(i,(function(t){return t})),a=[],o="ascending"===e,r=0,s=t.count();r<s;r++)a[r]=r;return"function"==typeof e?a.sort(e):"none"!==e&&a.sort((function(t,e){return o?n[t]-n[e]:n[e]-n[t]})),a}function wf(t){t.each((function(e){var i,n,a,o,r=t.getItemModel(e),s=r.getModel("label").get("position"),l=r.getModel("labelLine"),u=t.getItemLayout(e),h=u.points,c="inner"===s||"inside"===s||"center"===s;if(c)i="center",o=[[n=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,a=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4],[n,a]];else{var d,f,p,g=l.get("length");"left"===s?(d=(h[3][0]+h[0][0])/2,f=(h[3][1]+h[0][1])/2,n=(p=d-g)-5,i="right"):(d=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,n=(p=d+g)+5,i="left");var m=f;o=[[d,f],[p,m]],a=m}u.label={linePoints:o,x:n,y:a,verticalAlign:"middle",textAlign:i,inside:c}}))}function bf(t){if(!t.parallel){var e=!1;f(t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}}function Sf(t){f(Ci(t.parallelAxis),(function(e){if(b(e)){var i=e.parallelIndex||0,n=Ci(t.parallel)[i];n&&n.parallelAxisDefault&&a(e,n.parallelAxisDefault,!1)}}))}function Mf(t,e){var i=t[e]-t[1-e];return{span:Math.abs(i),sign:i>0?-1:i<0?1:e?-1:1}}function If(t,e){return Math.min(e[1],Math.max(e[0],t))}function Tf(t,e,i){this._axesMap=z(),this._axesLayout={},this.dimensions=t.dimensions,this._rect,this._model=t,this._init(t,e,i)}function Af(t,e){return zL(BL(t,e[0]),e[1])}function Df(t,e){var i=e.layoutLength/(e.axisCount-1);return{position:i*t,axisNameAvailableWidth:i,axisLabelShow:!0}}function Cf(t,e){var i,n,a=e.layoutLength,o=e.axisExpandWidth,r=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,h=!1;return t<l[0]?(i=t*s,n=s):t<=l[1]?(i=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],u=o,h=!0):(i=a-(r-1-t)*s,n=s),{position:i,axisNameAvailableWidth:u,axisLabelShow:h,nameTruncateMaxWidth:n}}function Lf(t){ow.call(this),this._zr=t,this.group=new Uw,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+ak++,this._handlers={},jL(ok,(function(t,e){this._handlers[e]=v(t,this)}),this)}function kf(t,e){var i=t._zr;t._enableGlobalPan||ic(i,tk,t._uid),jL(t._handlers,(function(t,e){i.on(e,t)})),t._brushType=e.brushType,t._brushOption=a(n(nk),e,!0)}function Pf(t){var e=t._zr;nc(e,tk,t._uid),jL(t._handlers,(function(t,i){e.off(i,t)})),t._brushType=t._brushOption=null}function Nf(t,e){var i=rk[e.brushType].createCover(t,e);return i.__brushOption=e,Rf(i,e),t.group.add(i),i}function Of(t,e){var i=Bf(e);return i.endCreating&&(i.endCreating(t,e),Rf(e,e.__brushOption)),e}function Ef(t,e){var i=e.__brushOption;Bf(e).updateCoverShape(t,e,i.range,i)}function Rf(t,e){var i=e.z;null==i&&(i=KL),t.traverse((function(t){t.z=i,t.z2=i}))}function zf(t,e){Bf(e).updateCommon(t,e),Ef(t,e)}function Bf(t){return rk[t.__brushOption.brushType]}function Vf(t,e,i){var n=t._panels;if(!n)return!0;var a,o=t._transform;return jL(n,(function(t){t.isTargetByCursor(e,i,o)&&(a=t)})),a}function Ff(t,e){var i=t._panels;if(!i)return!0;var n=e.__brushOption.panelId;return null==n||i[n]}function Gf(t){var e=t._covers,i=e.length;return jL(e,(function(e){t.group.remove(e)}),t),e.length=0,!!i}function Wf(t,e){var i=XL(t._covers,(function(t){var e=t.__brushOption,i=n(e.range);return{brushType:e.brushType,panelId:e.panelId,range:i}}));t.trigger("brush",i,{isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function Hf(t){var e=t._track;if(!e.length)return!1;var i=e[e.length-1],n=e[0],a=i[0]-n[0],o=i[1]-n[1];return $L(a*a+o*o,.5)>JL}function Uf(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function Zf(t,e,i,n){var a=new Uw;return a.add(new oM({name:"main",style:qf(i),silent:!0,draggable:!0,cursor:"move",drift:ZL(t,e,a,"nswe"),ondragend:ZL(Wf,e,{isEnd:!0})})),jL(n,(function(i){a.add(new oM({name:i,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ZL(t,e,a,i),ondragend:ZL(Wf,e,{isEnd:!0})}))})),a}function jf(t,e,i,n){var a=n.brushStyle.lineWidth||0,o=qL(a,QL),r=i[0][0],s=i[1][0],l=r-a/2,u=s-a/2,h=i[0][1],c=i[1][1],d=h-o+a/2,f=c-o+a/2,p=h-r,g=c-s,m=p+a,v=g+a;Yf(t,e,"main",r,s,p,g),n.transformable&&(Yf(t,e,"w",l,u,o,v),Yf(t,e,"e",d,u,o,v),Yf(t,e,"n",l,u,m,o),Yf(t,e,"s",l,f,m,o),Yf(t,e,"nw",l,u,o,o),Yf(t,e,"ne",d,u,o,o),Yf(t,e,"sw",l,f,o,o),Yf(t,e,"se",d,f,o,o))}function Xf(t,e){var i=e.__brushOption,n=i.transformable,a=e.childAt(0);a.useStyle(qf(i)),a.attr({silent:!n,cursor:n?"move":"default"}),jL(["w","e","n","s","se","sw","ne","nw"],(function(i){var a=e.childOfName(i),o=Jf(t,i);a&&a.attr({silent:!n,invisible:!n,cursor:n?ik[o]+"-resize":null})}))}function Yf(t,e,i,n,a,o,r){var s=e.childOfName(i);s&&s.setShape(np(ip(t,e,[[n,a],[n+o,a+r]])))}function qf(t){return s({strokeNoScale:!0},t.brushStyle)}function $f(t,e,i,n){var a=[YL(t,i),YL(e,n)],o=[qL(t,i),qL(e,n)];return[[a[0],o[0]],[a[1],o[1]]]}function Kf(t){return Ma(t.group)}function Jf(t,e){if(e.length>1)return("e"===(n=[Jf(t,(e=e.split(""))[0]),Jf(t,e[1])])[0]||"w"===n[0])&&n.reverse(),n.join("");var i={left:"w",right:"e",top:"n",bottom:"s"},n=Ta({w:"left",e:"right",n:"top",s:"bottom"}[e],Kf(t));return i[n]}function Qf(t,e,i,n,a,o,r,s){var l=n.__brushOption,u=t(l.range),h=ep(i,o,r);jL(a.split(""),(function(t){var e=ek[t];u[e[0]][e[1]]+=h[e[0]]})),l.range=e($f(u[0][0],u[1][0],u[0][1],u[1][1])),zf(i,n),Wf(i,{isEnd:!1})}function tp(t,e,i,n,a){var o=e.__brushOption.range,r=ep(t,i,n);jL(o,(function(t){t[0]+=r[0],t[1]+=r[1]})),zf(t,e),Wf(t,{isEnd:!1})}function ep(t,e,i){var n=t.group,a=n.transformCoordToLocal(e,i),o=n.transformCoordToLocal(0,0);return[a[0]-o[0],a[1]-o[1]]}function ip(t,e,i){var a=Ff(t,e);return a&&!0!==a?a.clipPath(i,t._transform):n(i)}function np(t){var e=YL(t[0][0],t[1][0]),i=YL(t[0][1],t[1][1]);return{x:e,y:i,width:qL(t[0][0],t[1][0])-e,height:qL(t[0][1],t[1][1])-i}}function ap(t,e,i){if(t._brushType){var n=t._zr,a=t._covers,o=Vf(t,e,i);if(!t._dragging)for(var r=0;r<a.length;r++){var s=a[r].__brushOption;if(o&&(!0===o||s.panelId===o.panelId)&&rk[s.brushType].contain(a[r],i[0],i[1]))return}o&&n.setCursorStyle("crosshair")}}function op(t){var e=t.event;e.preventDefault&&e.preventDefault()}function rp(t,e,i){return t.childOfName("main").contain(e,i)}function sp(t,e,i,a){var o,r=t._creatingCover,s=t._creatingPanel,l=t._brushOption;if(t._track.push(i.slice()),Hf(t)||r){if(s&&!r){"single"===l.brushMode&&Gf(t);var u=n(l);u.brushType=lp(u.brushType,s),u.panelId=!0===s?null:s.panelId,r=t._creatingCover=Nf(t,u),t._covers.push(r)}if(r){var h=rk[lp(t._brushType,s)];r.__brushOption.range=h.getCreatingRange(ip(t,r,t._track)),a&&(Of(t,r),h.updateCommon(t,r)),Ef(t,r),o={isEnd:a}}}else a&&"single"===l.brushMode&&l.removeOnClick&&Vf(t,e,i)&&Gf(t)&&(o={isEnd:a,removeOnClick:!0});return o}function lp(t,e){return"auto"===t?e.defaultBrushType:t}function up(t){if(this._dragging){op(t);var e=sp(this,t,this.group.transformCoordToLocal(t.offsetX,t.offsetY),!0);this._dragging=!1,this._track=[],this._creatingCover=null,e&&Wf(this,e)}}function hp(t){return{createCover:function(e,i){return Zf(ZL(Qf,(function(e){var i=[e,[0,100]];return t&&i.reverse(),i}),(function(e){return e[t]})),e,i,[["w","e"],["n","s"]][t])},getCreatingRange:function(e){var i=Uf(e);return[YL(i[0][t],i[1][t]),qL(i[0][t],i[1][t])]},updateCoverShape:function(e,i,n,a){var o,r=Ff(e,i);if(!0!==r&&r.getLinearBrushOtherExtent)o=r.getLinearBrushOtherExtent(t,e._transform);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[n,o];t&&l.reverse(),jf(e,i,l,a)},updateCommon:Xf,contain:rp}}function cp(t){return t=pp(t),function(e,i){return Da(e,t)}}function dp(t,e){return t=pp(t),function(i){var n=null!=e?e:i,a=n?t.width:t.height,o=n?t.x:t.y;return[o,o+(a||0)]}}function fp(t,e,i){return t=pp(t),function(n,a,o){return t.contain(a[0],a[1])&&!vc(n,e,i)}}function pp(t){return he.create(t)}function gp(t,e,i){return i&&"axisAreaSelect"===i.type&&e.findComponents({mainType:"parallelAxis",query:i})[0]===t}function mp(t){var e=t.axis;return p(t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}function vp(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}function yp(t,e){var i=t._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===e}function xp(t,e){if(!t.encodeDefine){var i=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(i){var n=t.encodeDefine=z();f(i.dimensions,(function(t){var e=_p(t);n.set(t,e)}))}}}function _p(t){return+t.replace("dim","")}function wp(t,e,i){var n=t.model,a=t.getRect(),o=new oM({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),r="horizontal"===n.get("layout")?"width":"height";return o.setShape(r,0),Sa(o,{shape:{width:a.width,height:a.height}},e,i),o}function bp(t,e,i,n){for(var a=[],o=0;o<i.length;o++){var r=i[o],s=t.get(t.mapDimension(r),e);Tp(s,n.getAxis(r).type)||a.push(n.dataToPoint(s,r))}return a}function Sp(t,e,i,n,a){var o=bp(t,i,n,a),r=new aM({shape:{points:o},silent:!0,z2:10});return e.add(r),t.setItemGraphicEl(i,r),r}function Mp(t){var e=t.get("smooth",!0);return!0===e&&(e=hk),{lineStyle:t.getModel("lineStyle").getLineStyle(),smooth:null!=e?e:hk}}function Ip(t,e,i,n){var a=n.lineStyle;e.hasItemOption&&(a=e.getItemModel(i).getModel("lineStyle").getLineStyle()),t.useStyle(a);var o=t.style;o.fill=null,o.stroke=e.getItemVisual(i,"color"),o.opacity=e.getItemVisual(i,"opacity"),n.smooth&&(t.shape.smooth=n.smooth)}function Tp(t,e){return"category"===e?null==t:null==t||isNaN(t)}function Ap(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function Dp(t,e,i){var n=t.getGraphicEl(),a=Ap(t,e);null!=i&&(null==a&&(a=1),a*=i),n.downplay&&n.downplay(),n.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",a)}))}function Cp(t,e){var i=Ap(t,e),n=t.getGraphicEl();n.highlight&&n.highlight(),n.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",i)}))}function Lp(t,e,i){var n=new oM({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Sa(n,{shape:{width:t.width+20,height:t.height+20}},e,i),n}function kp(){function t(e,n){if(n>=i.length)return e;for(var a=-1,o=e.length,r=i[n++],s={},l={};++a<o;){var u=r(e[a]),h=l[u];h?h.push(e[a]):l[u]=[e[a]]}return f(l,(function(e,i){s[i]=t(e,n)})),s}function e(t,a){if(a>=i.length)return t;var o=[],r=n[a++];return f(t,(function(t,i){o.push({key:i,values:e(t,a)})})),r?o.sort((function(t,e){return r(t.key,e.key)})):o}var i=[],n=[];return{key:function(t){return i.push(t),this},sortKeys:function(t){return n[i.length-1]=t,this},entries:function(i){return e(t(i,0),0)}}}function Pp(t,e){return lo(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Np(t,e,i,n,a,o,r,s){Ep(t,e,i,a,o,s),Bp(t,e,o,a,n,r,s),qp(t,s)}function Op(t){f(t,(function(t){var e=Xp(t.outEdges,jp),i=Xp(t.inEdges,jp),n=Math.max(e,i);t.setLayout({value:n},!0)}))}function Ep(t,e,i,n,a,o){for(var r=[],s=[],l=[],u=[],h=0,c=0;c<e.length;c++)r[c]=1;for(c=0;c<t.length;c++)s[c]=t[c].inEdges.length,0===s[c]&&l.push(t[c]);for(;l.length;){for(var d=0;d<l.length;d++){var f=l[d];"vertical"===o?(f.setLayout({y:h},!0),f.setLayout({dy:i},!0)):(f.setLayout({x:h},!0),f.setLayout({dx:i},!0));for(var p=0;p<f.outEdges.length;p++){var g=f.outEdges[p];r[e.indexOf(g)]=0;var m=g.node2;0==--s[t.indexOf(m)]&&u.push(m)}}++h,l=u,u=[]}for(c=0;c<r.length;c++);Rp(t,h,o),zp(t,"vertical"===o?(a-i)/(h-1):(n-i)/(h-1),o)}function Rp(t,e,i){f(t,(function(t){t.outEdges.length||("vertical"===i?t.setLayout({y:e-1},!0):t.setLayout({x:e-1},!0))}))}function zp(t,e,i){f(t,(function(t){if("vertical"===i){var n=t.getLayout().y*e;t.setLayout({y:n},!0)}else{var a=t.getLayout().x*e;t.setLayout({x:a},!0)}}))}function Bp(t,e,i,n,a,o,r){var s=kp().key(Vp(r)).sortKeys((function(t,e){return t-e})).entries(t).map((function(t){return t.values}));Fp(t,s,e,i,n,a,r),Gp(s,a,i,n,r);for(var l=1;o>0;o--)Wp(s,l*=.99,r),Gp(s,a,i,n,r),Yp(s,l,r),Gp(s,a,i,n,r)}function Vp(t){return"vertical"===t?function(t){return t.getLayout().y}:function(t){return t.getLayout().x}}function Fp(t,e,i,n,a,o,r){var s=[];f(e,(function(t){var e=t.length,i=0,l=0;f(t,(function(t){i+=t.getLayout().value})),l="vertical"===r?(a-(e-1)*o)/i:(n-(e-1)*o)/i,s.push(l)})),s.sort((function(t,e){return t-e}));var l=s[0];f(e,(function(t){f(t,(function(t,e){var i=t.getLayout().value*l;"vertical"===r?(t.setLayout({x:e},!0),t.setLayout({dx:i},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:i},!0))}))})),f(i,(function(t){var e=+t.getValue()*l;t.setLayout({dy:e},!0)}))}function Gp(t,e,i,n,a){f(t,(function(t){var o,r,s,l=0,u=t.length;if("vertical"===a){var h;for(t.sort((function(t,e){return t.getLayout().x-e.getLayout().x})),s=0;s<u;s++)(r=l-(o=t[s]).getLayout().x)>0&&(h=o.getLayout().x+r,o.setLayout({x:h},!0)),l=o.getLayout().x+o.getLayout().dx+e;if((r=l-e-n)>0)for(h=o.getLayout().x-r,o.setLayout({x:h},!0),l=h,s=u-2;s>=0;--s)(r=(o=t[s]).getLayout().x+o.getLayout().dx+e-l)>0&&(h=o.getLayout().x-r,o.setLayout({x:h},!0)),l=o.getLayout().x}else{var c;for(t.sort((function(t,e){return t.getLayout().y-e.getLayout().y})),s=0;s<u;s++)(r=l-(o=t[s]).getLayout().y)>0&&(c=o.getLayout().y+r,o.setLayout({y:c},!0)),l=o.getLayout().y+o.getLayout().dy+e;if((r=l-e-i)>0)for(c=o.getLayout().y-r,o.setLayout({y:c},!0),l=c,s=u-2;s>=0;--s)(r=(o=t[s]).getLayout().y+o.getLayout().dy+e-l)>0&&(c=o.getLayout().y-r,o.setLayout({y:c},!0)),l=o.getLayout().y}}))}function Wp(t,e,i){f(t.slice().reverse(),(function(t){f(t,(function(t){if(t.outEdges.length){var n=Xp(t.outEdges,Hp,i)/Xp(t.outEdges,jp,i);if("vertical"===i){var a=t.getLayout().x+(n-Zp(t,i))*e;t.setLayout({x:a},!0)}else{var o=t.getLayout().y+(n-Zp(t,i))*e;t.setLayout({y:o},!0)}}}))}))}function Hp(t,e){return Zp(t.node2,e)*t.getValue()}function Up(t,e){return Zp(t.node1,e)*t.getValue()}function Zp(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function jp(t){return t.getValue()}function Xp(t,e,i){for(var n=0,a=t.length,o=-1;++o<a;){var r=+e.call(t,t[o],i);isNaN(r)||(n+=r)}return n}function Yp(t,e,i){f(t,(function(t){f(t,(function(t){if(t.inEdges.length){var n=Xp(t.inEdges,Up,i)/Xp(t.inEdges,jp,i);if("vertical"===i){var a=t.getLayout().x+(n-Zp(t,i))*e;t.setLayout({x:a},!0)}else{var o=t.getLayout().y+(n-Zp(t,i))*e;t.setLayout({y:o},!0)}}}))}))}function qp(t,e){f(t,(function(t){"vertical"===e?(t.outEdges.sort((function(t,e){return t.node2.getLayout().x-e.node2.getLayout().x})),t.inEdges.sort((function(t,e){return t.node1.getLayout().x-e.node1.getLayout().x}))):(t.outEdges.sort((function(t,e){return t.node2.getLayout().y-e.node2.getLayout().y})),t.inEdges.sort((function(t,e){return t.node1.getLayout().y-e.node1.getLayout().y})))})),f(t,(function(t){var e=0,i=0;f(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),f(t.inEdges,(function(t){t.setLayout({ty:i},!0),i+=t.getLayout().dy}))}))}function $p(t,e,i,n,a){var o=t.ends,r=new xk({shape:{points:a?Jp(o,n,t):o}});return Kp(t,r,e,i,a),r}function Kp(t,e,i,n,a){var o=i.hostModel;(0,bM[a?"initProps":"updateProps"])(e,{shape:{points:t.ends}},o,n);var r=i.getItemModel(n),s=r.getModel(vk),l=i.getItemVisual(n,"color"),u=s.getItemStyle(["borderColor"]);u.stroke=l,u.strokeNoScale=!0,e.useStyle(u),e.z2=100,ha(e,r.getModel(yk).getItemStyle())}function Jp(t,e,i){return p(t,(function(t){return t=t.slice(),t[e]=i.initBaseline,t}))}function Qp(t){var e=[],i=[];return t.eachSeriesByType("boxplot",(function(t){var n=t.getBaseAxis(),a=u(i,n);a<0&&(a=i.length,i[a]=n,e[a]={axis:n,seriesModels:[]}),e[a].seriesModels.push(t)})),e}function tg(t){var e,i,n=t.axis,a=t.seriesModels,o=a.length,r=t.boxWidthList=[],s=t.boxOffsetList=[],l=[];if("category"===n.type)i=n.getBandWidth();else{var u=0;wk(a,(function(t){u=Math.max(u,t.getData().count())})),e=n.getExtent(),Math.abs(e[1]-e[0])}wk(a,(function(t){var e=t.get("boxWidth");x(e)||(e=[e,e]),l.push([Ra(e[0],i)||0,Ra(e[1],i)||0])}));var h=.8*i-2,c=h/o*.3,d=(h-c*(o-1))/o,f=d/2-h/2;wk(a,(function(t,e){s.push(f),f+=c+d,r.push(Math.min(Math.max(d,l[e][0]),l[e][1]))}))}function eg(t,e,i){function n(t,i,n){var a,o=s.get(i,n),l=[];return l[u]=t,l[h]=o,isNaN(t)||isNaN(o)?a=[NaN,NaN]:(a=r.dataToPoint(l))[u]+=e,a}function a(t,e,i){var n=e.slice(),a=e.slice();n[u]+=l,a[u]-=l,i?t.push(n,a):t.push(a,n)}function o(t,e){var i=e.slice(),n=e.slice();i[u]-=l,n[u]+=l,t.push(i,n)}var r=t.coordinateSystem,s=t.getData(),l=i/2,u="horizontal"===t.get("layout")?0:1,h=1-u,c=["x","y"],d=s.mapDimension(c[u]),f=s.mapDimension(c[h],!0);if(!(null==d||f.length<5))for(var p=0;p<s.count();p++){var g=s.get(d,p),m=n(g,f[2],p),v=n(g,f[0],p),y=n(g,f[1],p),x=n(g,f[3],p),_=n(g,f[4],p),w=[];a(w,y,0),a(w,x,1),w.push(v,y,_,x),o(w,v),o(w,_),o(w,m),s.setItemLayout(p,{initBaseline:m[h],ends:w})}}function ig(t,e,i){var n=t.ends;return new Ik({shape:{points:i?ag(n,t):n},z2:100})}function ng(t,e,i,n){var a=e.getItemModel(i),o=a.getModel(bk),r=e.getItemVisual(i,"color"),s=e.getItemVisual(i,"borderColor")||r,l=o.getItemStyle(Mk);t.useStyle(l),t.style.strokeNoScale=!0,t.style.fill=r,t.style.stroke=s,t.__simpleBox=n,ha(t,a.getModel(Sk).getItemStyle())}function ag(t,e){return p(t,(function(t){return t=t.slice(),t[1]=e.initBaseline,t}))}function og(t,e,i){var n=t.getData(),a=n.getLayout("largePoints"),o=new Tk({shape:{points:a},__sign:1});e.add(o);var r=new Tk({shape:{points:a},__sign:-1});e.add(r),rg(1,o,t,n),rg(-1,r,t,n),i&&(o.incremental=!0,r.incremental=!0)}function rg(t,e,i,n){var a=t>0?"P":"N",o=n.getVisual("borderColor"+a)||n.getVisual("color"+a),r=i.getModel(bk).getItemStyle(Mk);e.useStyle(r),e.style.fill=null,e.style.stroke=o}function sg(t,e,i,n,a){return i>n?-1:i<n?1:e>0?t.get(a,e-1)<=n?1:-1:1}function lg(t,e){var i,n=t.getBaseAxis(),a="category"===n.type?n.getBandWidth():(i=n.getExtent(),Math.abs(i[1]-i[0])/e.count()),o=Ra(D(t.get("barMaxWidth"),a),a),r=Ra(D(t.get("barMinWidth"),1),a),s=t.get("barWidth");return null!=s?Ra(s,a):Math.max(Math.min(a/2,o),r)}function ug(t){return x(t)||(t=[+t,+t]),t}function hg(t,e){t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?e.color:null,fill:"fill"===e.brushType?e.color:null}})}))}function cg(t,e){Uw.call(this);var i=new vu(t,e),n=new Uw;this.add(i),this.add(n),n.beforeUpdate=function(){this.attr(i.getScale())},this.updateData(t,e)}function dg(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=p(e,(function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),o([e,t[0],t[1]])})))}function fg(t,e,i){Uw.call(this),this.add(this.createLine(t,e,i)),this._updateEffectSymbol(t,e)}function pg(t,e,i){Uw.call(this),this._createPolyline(t,e,i)}function gg(t,e,i){fg.call(this,t,e,i),this._lastFrame=0,this._lastFramePercent=0}function mg(){this.group=new Uw}function vg(t){return t instanceof Array||(t=[t,t]),t}function yg(){var t=Y_();this.canvas=t,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}function xg(t,e,i){var n=t[1]-t[0],a=(e=p(e,(function(e){return{interval:[(e.interval[0]-t[0])/n,(e.interval[1]-t[0])/n]}}))).length,o=0;return function(t){for(n=o;n<a;n++)if((r=e[n].interval)[0]<=t&&t<=r[1]){o=n;break}if(n===a)for(var n=o-1;n>=0;n--){var r=e[n].interval;if(r[0]<=t&&t<=r[1]){o=n;break}}return n>=0&&n<a&&i[n]}}function _g(t,e){var i=t[1]-t[0];return e=[(e[0]-t[0])/i,(e[1]-t[0])/i],function(t){return t>=e[0]&&t<=e[1]}}function wg(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}function bg(t,e,i,n){var a=t.getItemLayout(e),o=i.get("symbolRepeat"),r=i.get("symbolClip"),s=i.get("symbolPosition")||"start",l=(i.get("symbolRotate")||0)*Math.PI/180||0,u=i.get("symbolPatternSize")||2,h=i.isAnimationEnabled(),c={dataIndex:e,layout:a,itemModel:i,symbolType:t.getItemVisual(e,"symbol")||"circle",color:t.getItemVisual(e,"color"),symbolClip:r,symbolRepeat:o,symbolRepeatDirection:i.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:h?i:null,hoverAnimation:h&&i.get("hoverAnimation"),z2:i.getShallow("z",!0)||0};Sg(i,o,a,n,c),Ig(t,e,a,o,r,c.boundingLength,c.pxSign,u,n,c),Tg(i,c.symbolScale,l,n,c);var d=c.symbolSize,f=i.get("symbolOffset");return x(f)&&(f=[Ra(f[0],d[0]),Ra(f[1],d[1])]),Ag(i,d,a,o,r,f,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,n,c),c}function Sg(t,e,i,n,a){var o,r=n.valueDim,s=t.get("symbolBoundingData"),l=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),h=1-+(i[r.wh]<=0);if(x(s)){var c=[Mg(l,s[0])-u,Mg(l,s[1])-u];c[1]<c[0]&&c.reverse(),o=c[h]}else o=null!=s?Mg(l,s)-u:e?n.coordSysExtent[r.index][h]-u:i[r.wh];a.boundingLength=o,e&&(a.repeatCutLength=i[r.wh]),a.pxSign=o>0?1:o<0?-1:0}function Mg(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function Ig(t,e,i,n,a,o,r,s,l,u){var h=l.valueDim,c=l.categoryDim,d=Math.abs(i[c.wh]),f=t.getItemVisual(e,"symbolSize");x(f)?f=f.slice():(null==f&&(f="100%"),f=[f,f]),f[c.index]=Ra(f[c.index],d),f[h.index]=Ra(f[h.index],n?d:Math.abs(o)),u.symbolSize=f,(u.symbolScale=[f[0]/s,f[1]/s])[h.index]*=(l.isHorizontal?-1:1)*r}function Tg(t,e,i,n,a){var o=t.get(Xk)||0;o&&(qk.attr({scale:e.slice(),rotation:i}),qk.updateTransform(),o/=qk.getLineScale(),o*=e[n.valueDim.index]),a.valueLineWidth=o}function Ag(t,e,i,n,a,o,s,l,u,h,c,d){var f=c.categoryDim,p=c.valueDim,g=d.pxSign,m=Math.max(e[p.index]+l,0),v=m;if(n){var y=Math.abs(u),x=A(t.get("symbolMargin"),"15%")+"",_=!1;x.lastIndexOf("!")===x.length-1&&(_=!0,x=x.slice(0,x.length-1)),x=Ra(x,e[p.index]);var w=Math.max(m+2*x,0),b=_?0:2*x,S=$a(n),M=S?n:Ug((y+b)/w);w=m+2*(x=(y-M*m)/2/(_?M:M-1)),b=_?0:2*x,S||"fixed"===n||(M=h?Ug((Math.abs(h)+b)/w):0),v=M*w-b,d.repeatTimes=M,d.symbolMargin=x}var I=g*(v/2),T=d.pathPosition=[];T[f.index]=i[f.wh]/2,T[p.index]="start"===s?I:"end"===s?u-I:u/2,o&&(T[0]+=o[0],T[1]+=o[1]);var D=d.bundlePosition=[];D[f.index]=i[f.xy],D[p.index]=i[p.xy];var C=d.barRectShape=r({},i);C[p.wh]=g*Math.max(Math.abs(i[p.wh]),Math.abs(T[p.index]+I)),C[f.wh]=i[f.wh];var L=d.clipShape={};L[f.xy]=-i[f.xy],L[f.wh]=c.ecSize[f.wh],L[p.xy]=0,L[p.wh]=i[p.wh]}function Dg(t){var e=t.symbolPatternSize,i=Xl(t.symbolType,-e/2,-e/2,e,e,t.color);return i.attr({culling:!0}),"image"!==i.type&&i.setStyle({strokeNoScale:!0}),i}function Cg(t,e,i,n){function a(t){var e=l.slice(),n=i.pxSign,a=t;return("start"===i.symbolRepeatDirection?n>0:n<0)&&(a=h-1-t),e[u.index]=d*(a-h/2+.5)+l[u.index],{position:e,scale:i.symbolScale.slice(),rotation:i.rotation}}var o=t.__pictorialBundle,r=i.symbolSize,s=i.valueLineWidth,l=i.pathPosition,u=e.valueDim,h=i.repeatTimes||0,c=0,d=r[e.valueDim.index]+s+2*i.symbolMargin;for(Gg(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=h,c<h?Wg(t,null,a(c),i,n):Wg(t,null,{scale:[0,0]},i,n,(function(){o.remove(t)})),Rg(t,i),c++}));c<h;c++){var f=Dg(i);f.__pictorialAnimationIndex=c,f.__pictorialRepeatTimes=h,o.add(f);var p=a(c);Wg(f,{position:p.position,scale:[0,0]},{scale:p.scale,rotation:p.rotation},i,n),f.on("mouseover",(function(){Gg(t,(function(t){t.trigger("emphasis")}))})).on("mouseout",(function(){Gg(t,(function(t){t.trigger("normal")}))})),Rg(f,i)}}function Lg(t,e,i,n){var a=t.__pictorialBundle,o=t.__pictorialMainPath;o?Wg(o,null,{position:i.pathPosition.slice(),scale:i.symbolScale.slice(),rotation:i.rotation},i,n):(o=t.__pictorialMainPath=Dg(i),a.add(o),Wg(o,{position:i.pathPosition.slice(),scale:[0,0],rotation:i.rotation},{scale:i.symbolScale.slice()},i,n),o.on("mouseover",(function(){this.trigger("emphasis")})).on("mouseout",(function(){this.trigger("normal")}))),Rg(o,i)}function kg(t,e,i){var n=r({},e.barRectShape),a=t.__pictorialBarRect;a?Wg(a,null,{shape:n},e,i):(a=t.__pictorialBarRect=new oM({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(a))}function Pg(t,e,i,n){if(i.symbolClip){var a=t.__pictorialClipPath,o=r({},i.clipShape),s=e.valueDim,l=i.animationModel,u=i.dataIndex;if(a)ba(a,{shape:o},l,u);else{o[s.wh]=0,a=new oM({shape:o}),t.__pictorialBundle.setClipPath(a),t.__pictorialClipPath=a;var h={};h[s.wh]=i.clipShape[s.wh],bM[n?"updateProps":"initProps"](a,{shape:h},l,u)}}}function Ng(t,e){var i=t.getItemModel(e);return i.getAnimationDelayParams=Og,i.isAnimationEnabled=Eg,i}function Og(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function Eg(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Rg(t,e){t.off("emphasis").off("normal");var i=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",(function(){this.animateTo({scale:[1.1*i[0],1.1*i[1]]},400,"elasticOut")})).on("normal",(function(){this.animateTo({scale:i.slice()},400,"elasticOut")}))}function zg(t,e,i,n){var a=new Uw,o=new Uw;return a.add(o),a.__pictorialBundle=o,o.attr("position",i.bundlePosition.slice()),i.symbolRepeat?Cg(a,e,i):Lg(a,e,i),kg(a,i,n),Pg(a,e,i,n),a.__pictorialShapeStr=Fg(t,i),a.__pictorialSymbolMeta=i,a}function Bg(t,e,i){var n=i.animationModel,a=i.dataIndex;ba(t.__pictorialBundle,{position:i.bundlePosition.slice()},n,a),i.symbolRepeat?Cg(t,e,i,!0):Lg(t,e,i,!0),kg(t,i,!0),Pg(t,e,i,!0)}function Vg(t,e,i,n){var a=n.__pictorialBarRect;a&&(a.style.text=null);var o=[];Gg(n,(function(t){o.push(t)})),n.__pictorialMainPath&&o.push(n.__pictorialMainPath),n.__pictorialClipPath&&(i=null),f(o,(function(t){ba(t,{scale:[0,0]},i,e,(function(){n.parent&&n.parent.remove(n)}))})),t.setItemGraphicEl(e,null)}function Fg(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Gg(t,e,i){f(t.__pictorialBundle.children(),(function(n){n!==t.__pictorialBarRect&&e.call(i,n)}))}function Wg(t,e,i,n,a,o){e&&t.attr(e),n.symbolClip&&!a?i&&t.attr(i):i&&bM[a?"updateProps":"initProps"](t,i,n.animationModel,n.dataIndex,o)}function Hg(t,e,i){var n=i.color,a=i.dataIndex,o=i.itemModel,r=o.getModel("itemStyle").getItemStyle(["color"]),l=o.getModel("emphasis.itemStyle").getItemStyle(),u=o.getShallow("cursor");Gg(t,(function(t){t.setColor(n),t.setStyle(s({fill:n,opacity:i.opacity},r)),ha(t,l),u&&(t.cursor=u),t.z2=i.z2}));var h={},c=e.valueDim.posDesc[+(i.boundingLength>0)],d=t.__pictorialBarRect;Ah(d.style,h,o,n,e.seriesModel,a,c),ha(d,h)}function Ug(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}function Zg(t,e,i){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,i),this.model=t}function jg(t,e){e=e||{};var i=t.coordinateSystem,n=t.axis,a={},o=n.position,r=n.orient,s=i.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=["vertical"===r?u.vertical[o]:l[0],"horizontal"===r?u.horizontal[o]:l[3]];var h={horizontal:0,vertical:1};a.rotation=Math.PI/2*h[r];var c={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=c[o],t.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),A(e.labelInside,t.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var d=e.rotate;return null==d&&(d=t.get("axisLabel.rotate")),a.labelRotation="top"===o?-d:d,a.z2=1,a}function Xg(t,e,i,n,a){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var s=Yg(e,t),l=s.payloadBatch,u=s.snapToValue;l[0]&&null==a.seriesIndex&&r(a,l[0]),!n&&t.snap&&o.containData(u)&&null!=u&&(e=u),i.showPointer(t,e,l,a),i.showTooltip(t,s,u)}else i.showPointer(t,e)}function Yg(t,e){var i=e.axis,n=i.dim,a=t,o=[],r=Number.MAX_VALUE,s=-1;return iP(e.seriesModels,(function(e,l){var u,h,c=e.getData().mapDimension(n,!0);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(c,t,i);h=d.dataIndices,u=d.nestestValue}else{if(!(h=e.getData().indicesOfNearest(c[0],t,"category"===i.type?.5:null)).length)return;u=e.getData().get(c[0],h[0])}if(null!=u&&isFinite(u)){var f=t-u,p=Math.abs(f);p<=r&&((p<r||f>=0&&s<0)&&(r=p,s=f,a=u,o.length=0),iP(h,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:a}}function qg(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function $g(t,e,i,n){var a=i.payloadBatch,o=e.axis,r=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&a.length){var l=e.coordSys.model,u=Sh(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:r.componentIndex,axisType:r.type,axisId:r.id,value:n,valueLabelOpt:{precision:s.get("label.precision"),formatter:s.get("label.formatter")},seriesDataIndices:a.slice()})}}function Kg(t,e,i){var n=i.axesInfo=[];iP(e,(function(e,i){var a=e.axisPointerModel.option,o=t[i];o?(!e.useHandle&&(a.status="show"),a.value=o.value,a.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(a.status="hide"),"show"===a.status&&n.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:a.value})}))}function Jg(t,e,i,n){if(!im(e)&&t.list.length){var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}else n({type:"hideTip"})}function Qg(t,e,i){var n=i.getZr(),a=aP(n).axisPointerLastHighlights||{},o=aP(n).axisPointerLastHighlights={};iP(t,(function(t,e){var i=t.axisPointerModel.option;"show"===i.status&&iP(i.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;o[e]=t}))}));var r=[],s=[];f(a,(function(t,e){!o[e]&&s.push(t)})),f(o,(function(t,e){!a[e]&&r.push(t)})),s.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,batch:s}),r.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,batch:r})}function tm(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function em(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function im(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function nm(t,e,i){if(!z_.node){var n=e.getZr();oP(n).records||(oP(n).records={}),am(n,e),(oP(n).records[t]||(oP(n).records[t]={})).handler=i}}function am(t,e){function i(i,n){t.on(i,(function(i){var a=lm(e);rP(oP(t).records,(function(t){t&&n(t,i,a.dispatchAction)})),om(a.pendings,e)}))}oP(t).initialized||(oP(t).initialized=!0,i("click",y(sm,"click")),i("mousemove",y(sm,"mousemove")),i("globalout",rm))}function om(t,e){var i,n=t.showTip.length,a=t.hideTip.length;n?i=t.showTip[n-1]:a&&(i=t.hideTip[a-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function rm(t,e,i){t.handler("leave",null,i)}function sm(t,e,i,n){e.handler(t,i,n)}function lm(t){var e={showTip:[],hideTip:[]},i=function i(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=i,t.dispatchAction(n))};return{dispatchAction:i,pendings:e}}function um(t,e){if(!z_.node){var i=e.getZr();(oP(i).records||{})[t]&&(oP(i).records[t]=null)}}function hm(){}function cm(t,e,i,n){dm(lP(i).lastProp,n)||(lP(i).lastProp=n,e?ba(i,n,t):(i.stopAnimation(),i.attr(n)))}function dm(t,e){if(b(t)&&b(e)){var i=!0;return f(e,(function(e,n){i=i&&dm(t[n],e)})),!!i}return t===e}function fm(t,e){t[e.get("label.show")?"show":"hide"]()}function pm(t){return{position:t.position.slice(),rotation:t.rotation||0}}function gm(t,e,i){var n=e.get("z"),a=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=a&&(t.zlevel=a),t.silent=i)}))}function mm(t){var e,i=t.get("type"),n=t.getModel(i+"Style");return"line"===i?(e=n.getLineStyle()).fill=null:"shadow"===i&&((e=n.getAreaStyle()).stroke=null),e}function vm(t,e,i,n,a){var o=xm(i.get("value"),e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get("label.precision"),formatter:i.get("label.formatter")}),r=i.getModel("label"),s=OM(r.get("padding")||0),l=r.getFont(),u=Ce(o,l),h=a.position,c=u.width+s[1]+s[3],d=u.height+s[0]+s[2],f=a.align;"right"===f&&(h[0]-=c),"center"===f&&(h[0]-=c/2);var p=a.verticalAlign;"bottom"===p&&(h[1]-=d),"middle"===p&&(h[1]-=d/2),ym(h,c,d,n);var g=r.get("backgroundColor");g&&"auto"!==g||(g=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:c,height:d,r:r.get("borderRadius")},position:h.slice(),style:{text:o,textFont:l,textFill:r.getTextColor(),textPosition:"inside",fill:g,stroke:r.get("borderColor")||"transparent",lineWidth:r.get("borderWidth")||0,shadowBlur:r.get("shadowBlur"),shadowColor:r.get("shadowColor"),shadowOffsetX:r.get("shadowOffsetX"),shadowOffsetY:r.get("shadowOffsetY")},z2:10}}function ym(t,e,i,n){var a=n.getWidth(),o=n.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+i,o)-i,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function xm(t,e,i,n,a){t=e.scale.parse(t);var o=e.scale.getLabel(t,{precision:a.precision}),r=a.formatter;if(r){var s={value:Hl(e,t),seriesData:[]};f(n,(function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,a=e&&e.getDataParams(n);a&&s.seriesData.push(a)})),w(r)?o=r.replace("{value}",o):_(r)&&(o=r(s))}return o}function _m(t,e,i){var n=vt();return bt(n,n,i.rotation),wt(n,n,i.position),Ia([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function wm(t,e,i,n,a,o){var r=ID.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=a.get("label.margin"),vm(e,n,a,o,{position:_m(n.axis,t,i),align:r.textAlign,verticalAlign:r.textVerticalAlign})}function bm(t,e,i){return i=i||0,{x1:t[i],y1:t[1-i],x2:e[i],y2:e[1-i]}}function Sm(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}function Mm(t,e,i,n,a,o){return{cx:t,cy:e,r0:i,r:n,startAngle:a,endAngle:o,clockwise:!0}}function Im(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}function Tm(t){return"x"===t.dim?0:1}function Am(t){return t.isHorizontal()?0:1}function Dm(t,e){var i=t.getRect();return[i[fP[e]],i[fP[e]]+i[pP[e]]]}function Cm(t,e,i){var n=new oM({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Sa(n,{shape:{width:t.width+20,height:t.height+20}},e,i),n}function Lm(t,e,i){if(t.count())for(var n,a=e.coordinateSystem,o=e.getLayerSeries(),r=t.mapDimension("single"),s=t.mapDimension("value"),l=p(o,(function(e){return p(e.indices,(function(e){var i=a.dataToPoint(t.get(r,e));return i[1]=t.get(s,e),i}))})),u=km(l),h=u.y0,c=i/u.max,d=o.length,f=o[0].indices.length,g=0;g<f;++g){n=h[g]*c,t.setItemLayout(o[0].indices[g],{layerIndex:0,x:l[0][g][0],y0:n,y:l[0][g][1]*c});for(var m=1;m<d;++m)n+=l[m-1][g][1]*c,t.setItemLayout(o[m].indices[g],{layerIndex:m,x:l[m][g][0],y0:n,y:l[m][g][1]*c})}}function km(t){for(var e=t.length,i=t[0].length,n=[],a=[],o=0,r={},s=0;s<i;++s){for(var l=0,u=0;l<e;++l)u+=t[l][s][1];u>o&&(o=u),n.push(u)}for(var h=0;h<i;++h)a[h]=(o-n[h])/2;o=0;for(var c=0;c<i;++c){var d=n[c]+a[c];d>o&&(o=d)}return r.y0=a,r.max=o,r}function Pm(t){var e=0;f(t.children,(function(t){Pm(t);var i=t.value;x(i)&&(i=i[0]),e+=i}));var i=t.value;x(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=e),i<0&&(i=0),x(t.value)?t.value[0]=i:t.value=i}function Nm(t,e,i){function n(){r.ignore=r.hoverIgnore}function a(){r.ignore=r.normalIgnore}Uw.call(this);var o=new QS({z2:xP});o.seriesIndex=e.seriesIndex;var r=new qS({z2:_P,silent:t.getModel("label").get("silent")});this.add(o),this.add(r),this.updateData(!0,t,"normal",e,i),this.on("emphasis",n).on("normal",a).on("mouseover",n).on("mouseout",a)}function Om(t,e,i){var n=t.getVisual("color"),a=t.getVisual("visualMeta");a&&0!==a.length||(n=null);var o=t.getModel("itemStyle").get("color");if(o)return o;if(n)return n;if(0===t.depth)return i.option.color[0];var r=i.option.color.length;return i.option.color[Em(t)%r]}function Em(t){for(var e=t;e.depth>1;)e=e.parentNode;return u(t.getAncestors()[0].children,e)}function Rm(t,e,i){return i!==yP.NONE&&(i===yP.SELF?t===e:i===yP.ANCESTOR?t===e||t.isAncestorOf(e):t===e||t.isDescendantOf(e))}function zm(t,e){var i=t.children||[];t.children=Bm(i,e),i.length&&f(t.children,(function(t){zm(t,e)}))}function Bm(t,e){if("function"==typeof e)return t.sort(e);var i="asc"===e;return t.sort((function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n}))}function Vm(t,e){return e=e||[0,0],p(["x","y"],(function(i,n){var a=this.getAxis(i),o=e[n],r=t[n]/2;return"category"===a.type?a.getBandWidth():Math.abs(a.dataToCoord(o-r)-a.dataToCoord(o+r))}),this)}function Fm(t,e){return e=e||[0,0],p([0,1],(function(i){var n=e[i],a=t[i]/2,o=[],r=[];return o[i]=n-a,r[i]=n+a,o[1-i]=r[1-i]=e[1-i],Math.abs(this.dataToPoint(o)[i]-this.dataToPoint(r)[i])}),this)}function Gm(t,e){var i=this.getAxis(),n=e instanceof Array?e[0]:e,a=(t instanceof Array?t[0]:t)/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(n-a)-i.dataToCoord(n+a))}function Wm(t,e){return p(["Radius","Angle"],(function(i,n){var a=this["get"+i+"Axis"](),o=e[n],r=t[n]/2,s="dataTo"+i,l="category"===a.type?a.getBandWidth():Math.abs(a[s](o-r)-a[s](o+r));return"Angle"===i&&(l=l*Math.PI/180),l}),this)}function Hm(t){var e,i=t.type;if("path"===i){var n=t.shape,a=null!=n.width&&null!=n.height?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,o=ev(n);(e=Hn(o,null,a,n.layout||"center")).__customPathData=o}else"image"===i?(e=new ci({})).__customImagePath=t.style.image:"text"===i?(e=new qS({})).__customText=t.style.text:e=new(0,bM[i.charAt(0).toUpperCase()+i.slice(1)]);return e.__customGraphicType=i,e.name=t.name,e}function Um(t,e,i,a,o,r,s){var l={},u=i.style||{};if(i.shape&&(l.shape=n(i.shape)),i.position&&(l.position=i.position.slice()),i.scale&&(l.scale=i.scale.slice()),i.origin&&(l.origin=i.origin.slice()),i.rotation&&(l.rotation=i.rotation),"image"===t.type&&i.style&&(h=l.style={},f(["x","y","width","height"],(function(e){Zm(e,h,u,t.style,r)}))),"text"===t.type&&i.style){var h=l.style={};f(["x","y"],(function(e){Zm(e,h,u,t.style,r)})),!u.hasOwnProperty("textFill")&&u.fill&&(u.textFill=u.fill),!u.hasOwnProperty("textStroke")&&u.stroke&&(u.textStroke=u.stroke)}if("group"!==t.type&&(t.useStyle(u),r)){t.style.opacity=0;var c=u.opacity;null==c&&(c=1),Sa(t,{style:{opacity:c}},a,e)}r?t.attr(l):ba(t,l,a,e),i.hasOwnProperty("z2")&&t.attr("z2",i.z2||0),i.hasOwnProperty("silent")&&t.attr("silent",i.silent),i.hasOwnProperty("invisible")&&t.attr("invisible",i.invisible),i.hasOwnProperty("ignore")&&t.attr("ignore",i.ignore),i.hasOwnProperty("info")&&t.attr("info",i.info);var d=i.styleEmphasis,p=!1===d;t.__cusHasEmphStl&&null==d||!t.__cusHasEmphStl&&p||(aa(t,d),t.__cusHasEmphStl=!p),s&&ca(t,!p)}function Zm(t,e,i,n,a){null==i[t]||a||(e[t]=i[t],i[t]=n[t])}function jm(t,e,i,n){function a(t){null==t&&(t=h),v&&(c=e.getItemModel(t),d=c.getModel(AP),f=c.getModel(DP),p=e.getItemVisual(t,"color"),v=!1)}var o=t.get("renderItem"),l=t.coordinateSystem,u={};l&&(u=l.prepareCustoms?l.prepareCustoms():LP[l.type](l));var h,c,d,f,p,g=s({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:function(t,i){return null==i&&(i=h),e.get(e.getDimension(t||0),i)},style:function(i,n){null==n&&(n=h),a(n);var o=c.getModel(IP).getItemStyle();null!=p&&(o.fill=p);var s=e.getItemVisual(n,"opacity");return null!=s&&(o.opacity=s),fa(o,d,null,{autoColor:p,isRectText:!0}),o.text=d.getShallow("show")?D(t.getFormattedLabel(n,"normal"),mu(e,n)):null,i&&r(o,i),o},styleEmphasis:function(i,n){null==n&&(n=h),a(n);var o=c.getModel(TP).getItemStyle();return fa(o,f,null,{isRectText:!0},!0),o.text=f.getShallow("show")?C(t.getFormattedLabel(n,"emphasis"),t.getFormattedLabel(n,"normal"),mu(e,n)):null,i&&r(o,i),o},visual:function(t,i){return null==i&&(i=h),e.getItemVisual(i,t)},barLayout:function(t){if(l.getBaseAxis)return Al(s({axis:l.getBaseAxis()},t),n)},currentSeriesIndices:function(){return i.getCurrentSeriesIndices()},font:function(t){return _a(t,i)}},u.api||{}),m={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:u.coordSys,dataInsideLength:e.count(),encode:Xm(t.getData())},v=!0;return function(t,i){return h=t,v=!0,o&&o(s({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:i?i.type:null},m),g)}}function Xm(t){var e={};return f(t.dimensions,(function(i,n){var a=t.getDimensionInfo(i);if(!a.isExtraCoord){var o=a.coordDim;(e[o]=e[o]||[])[a.coordDimIndex]=n}})),e}function Ym(t,e,i,n,a,o){return(t=qm(t,e,i,n,a,o,!0))&&o.setItemGraphicEl(e,t),t}function qm(t,e,i,n,a,o,r){var s=!i,l=(i=i||{}).type,u=i.shape,h=i.style;if(t&&(s||null!=l&&l!==t.__customGraphicType||"path"===l&&iv(u)&&ev(u)!==t.__customPathData||"image"===l&&nv(h,"image")&&h.image!==t.__customImagePath||"text"===l&&nv(u,"text")&&h.text!==t.__customText)&&(a.remove(t),t=null),!s){var c=!t;return!t&&(t=Hm(i)),Um(t,e,i,n,o,c,r),"group"===l&&$m(t,e,i,n,o),a.add(t),t}}function $m(t,e,i,n,a){var o=i.children,r=o?o.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,u=!1===s;if(r||l||u)if(l)Km({oldChildren:t.children()||[],newChildren:o||[],dataIndex:e,animatableModel:n,group:t,data:a});else{u&&t.removeAll();for(var h=0;h<r;h++)o[h]&&qm(t.childAt(h),e,o[h],n,t,a)}}function Km(t){new Us(t.oldChildren,t.newChildren,Jm,Jm,t).add(Qm).update(Qm).remove(tv).execute()}function Jm(t,e){var i=t&&t.name;return null!=i?i:CP+e}function Qm(t,e){var i=this.context,n=null!=t?i.newChildren[t]:null;qm(null!=e?i.oldChildren[e]:null,i.dataIndex,n,i.animatableModel,i.group,i.data)}function tv(t){var e=this.context,i=e.oldChildren[t];i&&e.group.remove(i)}function ev(t){return t&&(t.pathData||t.d)}function iv(t){return t&&(t.hasOwnProperty("pathData")||t.hasOwnProperty("d"))}function nv(t,e){return t&&t.hasOwnProperty(e)}function av(t,e,i,n){var a=i.type,o=new(0,bM[a.charAt(0).toUpperCase()+a.slice(1)])(i);e.add(o),n.set(t,o),o.__ecGraphicId=t}function ov(t,e){var i=t&&t.parent;i&&("group"===t.type&&t.traverse((function(t){ov(t,e)})),e.removeKey(t.__ecGraphicId),i.remove(t))}function rv(t){return t=r({},t),f(["id","parentId","$action","hv","bounding"].concat(HM),(function(e){delete t[e]})),t}function sv(t,e){var i;return f(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(i=!0)})),i}function lv(t,e){var i=t.exist;if(e.id=t.keyInfo.id,!e.type&&i&&(e.type=i.type),null==e.parentId){var n=e.parentOption;n?e.parentId=n.id:i&&(e.parentId=i.parentId)}e.parentOption=null}function uv(t,e,i){var n=r({},i),o=t[e],s=i.$action||"merge";"merge"===s?o?(a(o,n,!0),co(o,n,{ignoreSize:!0}),po(i,o)):t[e]=n:"replace"===s?t[e]=n:"remove"===s&&o&&(t[e]=null)}function hv(t,e){t&&(t.hv=e.hv=[sv(e,["left","right"]),sv(e,["top","bottom"])],"group"===t.type&&(null==t.width&&(t.width=e.width=0),null==t.height&&(t.height=e.height=0)))}function cv(t,e,i){var n=t.eventData;t.silent||t.ignore||n||(n=t.eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),n&&(n.info=t.info)}function dv(t,e,i){var n,a={},o="toggleSelected"===t;return i.eachComponent("legend",(function(i){o&&null!=n?i[n?"select":"unSelect"](e.name):(i[t](e.name),n=i.isSelected(e.name)),f(i.getData(),(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);a.hasOwnProperty(e)?a[e]=a[e]&&n:a[e]=n}}))})),{name:e.name,selected:a}}function fv(t,e,i){var n=e.getBoxLayoutParams(),a=e.get("padding"),o={width:i.getWidth(),height:i.getHeight()},r=lo(n,o,a);ZM(e.get("orient"),t,e.get("itemGap"),r.width,r.height),uo(t,n,o,a)}function pv(t,e){var i=OM(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),new oM({shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[1]+i[3],height:t.height+i[0]+i[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1})}function gv(t,e){e.dispatchAction({type:"legendToggleSelect",name:t})}function mv(t,e,i,n){var a=i.getZr().storage.getDisplayList()[0];a&&a.useHoverLayer||i.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function vv(t,e,i,n){var a=i.getZr().storage.getDisplayList()[0];a&&a.useHoverLayer||i.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function yv(t,e,i){var n=[1,1];n[t.getOrient().index]=0,co(e,i,{type:"box",ignoreSize:n})}function xv(t){var e="left "+t+"s cubic-bezier(0.23, 1, 0.32, 1),top "+t+"s cubic-bezier(0.23, 1, 0.32, 1)";return p(UP,(function(t){return t+"transition:"+e})).join(";")}function _v(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();return n&&e.push("color:"+n),e.push("font:"+t.getFont()),i&&e.push("line-height:"+Math.round(3*i/2)+"px"),WP(["decoration","align"],(function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)})),e.join(";")}function wv(t){var e=[],i=t.get("transitionDuration"),n=t.get("backgroundColor"),a=t.getModel("textStyle"),o=t.get("padding");return i&&e.push(xv(i)),n&&(z_.canvasSupported?e.push("background-Color:"+n):(e.push("background-Color:#"+Wt(n)),e.push("filter:alpha(opacity=70)"))),WP(["width","color","radius"],(function(i){var n="border-"+i,a=HP(n),o=t.get(a);null!=o&&e.push(n+":"+o+("color"===i?"":"px"))})),e.push(_v(a)),null!=o&&e.push("padding:"+OM(o).join("px ")+"px"),e.join(";")+";"}function bv(t,e){if(z_.wxa)return null;var i=document.createElement("div"),n=this._zr=e.getZr();this.el=i,this._x=e.getWidth()/2,this._y=e.getHeight()/2,t.appendChild(i),this._container=t,this._show=!1,this._hideTimeout;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(e){if(e=e||window.event,!a._enterable){var i=n.handler;ut(t,e,!0),i.dispatch("mousemove",e)}},i.onmouseleave=function(){a._enterable&&a._show&&a.hideLater(a._hideDelay),a._inContent=!1}}function Sv(t){this._zr=t.getZr(),this._show=!1,this._hideTimeout}function Mv(t){for(var e=t.pop();t.length;){var i=t.pop();i&&(La.isInstance(i)&&(i=i.get("tooltip",!0)),"string"==typeof i&&(i={formatter:i}),e=new La(i,e,e.ecModel))}return e}function Iv(t,e){return t.dispatchAction||v(e.dispatchAction,e)}function Tv(t,e,i,n,a,o,r){var s=i.getOuterSize(),l=s.width,u=s.height;return null!=o&&(t+l+o>n?t-=l+o:t+=o),null!=r&&(e+u+r>a?e-=u+r:e+=r),[t,e]}function Av(t,e,i,n,a){var o=i.getOuterSize(),r=o.width,s=o.height;return t=Math.min(t+r,n)-r,e=Math.min(e+s,a)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function Dv(t,e,i){var n=i[0],a=i[1],o=0,r=0,s=e.width,l=e.height;switch(t){case"inside":o=e.x+s/2-n/2,r=e.y+l/2-a/2;break;case"top":o=e.x+s/2-n/2,r=e.y-a-5;break;case"bottom":o=e.x+s/2-n/2,r=e.y+l+5;break;case"left":o=e.x-n-5,r=e.y+l/2-a/2;break;case"right":o=e.x+s+5,r=e.y+l/2-a/2}return[o,r]}function Cv(t){return"center"===t||"middle"===t}function Lv(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function kv(t){return t.dim}function Pv(t,e){var i={};f(t,(function(t,e){var n=t.getData(),a=t.coordinateSystem.getBaseAxis(),o=a.getExtent(),r="category"===a.type?a.getBandWidth():Math.abs(o[1]-o[0])/n.count(),s=i[kv(a)]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},l=s.stacks;i[kv(a)]=s;var u=Lv(t);l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var h=Ra(t.get("barWidth"),r),c=Ra(t.get("barMaxWidth"),r),d=t.get("barGap"),f=t.get("barCategoryGap");h&&!l[u].width&&(h=Math.min(s.remainedWidth,h),l[u].width=h,s.remainedWidth-=h),c&&(l[u].maxWidth=c),null!=d&&(s.gap=d),null!=f&&(s.categoryGap=f)}));var n={};return f(i,(function(t,e){n[e]={};var i=t.stacks,a=t.bandWidth,o=Ra(t.categoryGap,a),r=Ra(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*r);u=Math.max(u,0),f(i,(function(t,e){var i=t.maxWidth;i&&i<u&&(i=Math.min(i,s),t.width&&(i=Math.min(i,t.width)),s-=i,t.width=i,l--)})),u=(s-o)/(l+(l-1)*r),u=Math.max(u,0);var h,c=0;f(i,(function(t,e){t.width||(t.width=u),h=t,c+=t.width*(1+r)})),h&&(c-=h.width*r);var d=-c/2;f(i,(function(t,i){n[e][i]=n[e][i]||{offset:d,width:t.width},d+=t.width*(1+r)}))})),n}function Nv(t,e){HA.call(this,"radius",t,e),this.type="category"}function Ov(t,e){e=e||[0,360],HA.call(this,"angle",t,e),this.type="category"}function Ev(t,e){return e.type||(e.data?"category":"value")}function Rv(t,e,i){var n=e.get("center"),a=i.getWidth(),o=i.getHeight();t.cx=Ra(n[0],a),t.cy=Ra(n[1],o);var r=t.getRadiusAxis(),s=Math.min(a,o)/2,l=Ra(e.get("radius"),s);r.inverse?r.setExtent(l,0):r.setExtent(0,l)}function zv(t,e){var i=this,n=i.getAngleAxis(),a=i.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===i){var e=t.getData();f(e.mapDimension("radius",!0),(function(t){a.scale.unionExtentFromData(e,dl(e,t))})),f(e.mapDimension("angle",!0),(function(t){n.scale.unionExtentFromData(e,dl(e,t))}))}})),Vl(n.scale,n.model),Vl(a.scale,a.model),"category"===n.type&&!n.onBand){var o=n.getExtent(),r=360/n.scale.count();n.inverse?o[1]+=r:o[1]-=r,n.setExtent(o[0],o[1])}}function Bv(t,e){if(t.type=e.get("type"),t.scale=Fl(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse^=e.get("clockwise");var i=e.get("startAngle");t.setExtent(i,i+(t.inverse?-360:360))}e.axis=t,t.model=e}function Vv(t,e,i){e[1]>e[0]&&(e=e.slice().reverse());var n=t.coordToPoint([e[0],i]),a=t.coordToPoint([e[1],i]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function Fv(t){return t.getRadiusAxis().inverse?0:1}function Gv(t){var e=t[0],i=t[t.length-1];e&&i&&Math.abs(Math.abs(e.coord-i.coord)-360)<1e-4&&t.pop()}function Wv(t,e,i){return{position:[t.cx,t.cy],rotation:i/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}function Hv(t,e,i,n,a){var o=e.axis,r=o.dataToCoord(t),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,h,c=n.getRadiusAxis().getExtent();if("radius"===o.dim){var d=vt();bt(d,d,s),wt(d,d,[n.cx,n.cy]),l=Ia([r,-a],d);var f=e.getModel("axisLabel").get("rotate")||0,p=ID.innerTextLayout(s,f*Math.PI/180,-1);u=p.textAlign,h=p.textVerticalAlign}else{var g=c[1];l=n.coordToPoint([g+a,r]);var m=n.cx,v=n.cy;u=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",h=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:h}}function Uv(t,e){e.update="updateView",Ns(e,(function(e,i){var n={};return i.eachComponent({mainType:"geo",query:e},(function(i){i[t](e.name),f(i.coordinateSystem.regions,(function(t){n[t.name]=i.isSelected(t.name)||!1}))})),{selected:n,name:e.name}}))}function Zv(t){var e={};f(t,(function(t){e[t]=1})),t.length=0,f(e,(function(e,i){t.push(i)}))}function jv(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function Xv(t,e,i){function a(){var t=function(){};return t.prototype.__hidden=t.prototype,new t}var o={};return rN(e,(function(e){var r=o[e]=a();rN(t[e],(function(t,a){if(XC.isValidType(a)){var o={type:a,visual:t};i&&i(o,e),r[a]=new XC(o),"opacity"===a&&((o=n(o)).type="colorAlpha",r.__hidden.__alphaForOpacity=new XC(o))}}))})),o}function Yv(t,e,i){var a;f(i,(function(t){e.hasOwnProperty(t)&&jv(e[t])&&(a=!0)})),a&&f(i,(function(i){e.hasOwnProperty(i)&&jv(e[i])?t[i]=n(e[i]):delete t[i]}))}function qv(t,e,i,n,a,o){function r(t){return i.getItemVisual(u,t)}function s(t,e){i.setItemVisual(u,t,e)}function l(t,l){u=null==o?t:l;var c=i.getRawDataItem(u);if(!c||!1!==c.visualMap)for(var d=n.call(a,t),f=e[d],p=h[d],g=0,m=p.length;g<m;g++){var v=p[g];f[v]&&f[v].applyVisual(t,r,s)}}var u,h={};f(t,(function(t){var i=XC.prepareVisualTypes(e[t]);h[t]=i})),null==o?i.each(l):i.each([o],l)}function $v(t,e,i,n){var a={};return f(t,(function(t){var i=XC.prepareVisualTypes(e[t]);a[t]=i})),{progress:function(t,o){null!=n&&(n=o.getDimension(n));for(var r;null!=(r=t.next());){var s=o.getRawDataItem(r);if(s&&!1===s.visualMap)return;for(var l=null!=n?o.get(n,r,!0):r,u=i(l),h=e[u],c=a[u],d=0,f=c.length;d<f;d++){var p=c[d];h[p]&&h[p].applyVisual(l,(function(t){return o.getItemVisual(r,t)}),(function(t,e){o.setItemVisual(r,t,e)}))}}}}}function Kv(t){var e=["x","y"],i=["width","height"];return{point:function(e,i,n){if(e){var a=n.range;return Jv(e[t],a)}},rect:function(n,a,o){if(n){var r=o.range,s=[n[e[t]],n[e[t]]+n[i[t]]];return s[1]<s[0]&&s.reverse(),Jv(s[0],r)||Jv(s[1],r)||Jv(r[0],s)||Jv(r[1],s)}}}}function Jv(t,e){return e[0]<=t&&t<=e[1]}function Qv(t,e,i,n,a){for(var o=0,r=a[a.length-1];o<a.length;o++){var s=a[o];if(ty(t,e,i,n,s[0],s[1],r[0],r[1]))return!0;r=s}}function ty(t,e,i,n,a,o,r,s){var l=iy(i-t,a-r,n-e,o-s);if(ey(l))return!1;var u=iy(a-t,a-r,o-e,o-s)/l;if(u<0||u>1)return!1;var h=iy(i-t,a-t,n-e,o-e)/l;return!(h<0||h>1)}function ey(t){return t<=1e-6&&t>=-1e-6}function iy(t,e,i,n){return t*n-e*i}function ny(t,e,i){var n=this._targetInfoList=[],a={},o=oy(e,t);lN(pN,(function(t,e){(!i||!i.include||uN(i.include,e)>=0)&&t(o,n,a)}))}function ay(t){return t[0]>t[1]&&t.reverse(),t}function oy(t,e){return Fi(t,e,{includeMainTypes:dN})}function ry(t,e,i,n){var a=i.getAxis(["x","y"][t]),o=ay(p([0,1],(function(t){return e?a.coordToData(a.toLocalCoord(n[t])):a.toGlobalCoord(a.dataToCoord(n[t]))}))),r=[];return r[t]=o,r[1-t]=[NaN,NaN],{values:o,xyMinMax:r}}function sy(t,e,i,n){return[e[0]-n[t]*i[0],e[1]-n[t]*i[1]]}function ly(t,e){var i=uy(t),n=uy(e),a=[i[0]/n[0],i[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function uy(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}function hy(t,e,i,n,a){if(a){var o=t.getZr();o[wN]||(o[_N]||(o[_N]=cy),kr(o,_N,i,e)(t,n))}}function cy(t,e){if(!t.isDisposed()){var i=t.getZr();i[wN]=!0,t.dispatchAction({type:"brushSelect",batch:e}),i[wN]=!1}}function dy(t,e,i,n){for(var a=0,o=e.length;a<o;a++){var r=e[a];if(t[r.brushType](n,i,r.selectors,r))return!0}}function fy(t){var e=t.brushSelector;if(w(e)){var i=[];return f(sN,(function(t,n){i[n]=function(i,n,a,o){var r=n.getItemLayout(i);return t[e](r,a,o)}})),i}if(_(e)){var n={};return f(sN,(function(t,i){n[i]=e})),n}return e}function py(t,e){var i=t.option.seriesIndex;return null!=i&&"all"!==i&&(x(i)?u(i,e)<0:e!==i)}function gy(t){var e=t.selectors={};return f(sN[t.brushType],(function(i,n){e[n]=function(n){return i(n,e,t)}})),t}function my(t){return new he(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}function vy(t,e){return a({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new La(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}function yy(t,e,i,n){(!n||n.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(i)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}function xy(t,e){IN[t]=e}function _y(t){return IN[t]}function wy(t,e,i){this.model=t,this.ecModel=e,this.api=i,this._brushType,this._brushMode}function by(t,e,i){this._model=t}function Sy(t,e,i,n){var a=i.calendarModel,o=i.seriesModel,r=a?a.coordinateSystem:o?o.coordinateSystem:null;return r===this?r[t](n):null}function My(t,e){var i=t.cellSize;x(i)?1===i.length&&(i[1]=i[0]):i=t.cellSize=[i,i];var n=p([0,1],(function(t){return ho(e,t)&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]}));co(t,e,{type:"box",ignoreSize:n})}function Iy(t){return u(kN,t)>=0}function Ty(t,e,i){function n(t,e){return u(e.nodes,t)>=0}function a(t,n){var a=!1;return e((function(e){f(i(t,e)||[],(function(t){n.records[e.name][t]&&(a=!0)}))})),a}function o(t,n){n.nodes.push(t),e((function(e){f(i(t,e)||[],(function(t){n.records[e.name][t]=!0}))}))}return function(i){var r,s={nodes:[],records:{}};if(e((function(t){s.records[t.name]={}})),!i)return s;o(i,s);do{r=!1,t((function(t){!n(t,s)&&a(t,s)&&(o(t,s),r=!0)}))}while(r);return s}}function Ay(t,e,i){var n=[1/0,-1/0];return NN(i,(function(t){var i=t.getData();i&&NN(i.mapDimension(e,!0),(function(t){var e=i.getApproximateExtent(t);e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1])}))})),n[1]<n[0]&&(n=[NaN,NaN]),Dy(t,n),n}function Dy(t,e){var i=t.getAxisModel(),n=i.getMin(!0),a="category"===i.get("type"),o=a&&i.getCategories().length;null!=n&&"dataMin"!==n&&"function"!=typeof n?e[0]=n:a&&(e[0]=o>0?0:NaN);var r=i.getMax(!0);return null!=r&&"dataMax"!==r&&"function"!=typeof r?e[1]=r:a&&(e[1]=o>0?o-1:NaN),i.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0)),e}function Cy(t,e){var i=t.getAxisModel(),n=t._percentWindow,a=t._valueWindow;if(n){var o=Ga(a,[0,500]);o=Math.min(o,20);var r=e||0===n[0]&&100===n[1];i.setRange(r?null:+a[0].toFixed(o),r?null:+a[1].toFixed(o))}}function Ly(t){var e=t._minMaxSpan={},i=t._dataZoomModel;NN(["min","max"],(function(n){e[n+"Span"]=i.get(n+"Span");var a=i.get(n+"ValueSpan");if(null!=a&&(e[n+"ValueSpan"]=a,null!=(a=t.getAxisModel().axis.scale.parse(a)))){var o=t._dataExtent;e[n+"Span"]=Ea(o[0]+a,o,[0,100],!0)}}))}function ky(t){var e={};return RN(["start","end","startValue","endValue","throttle"],(function(i){t.hasOwnProperty(i)&&(e[i]=t[i])})),e}function Py(t,e){var i=t._rangePropMode,n=t.get("rangeMode");RN([["start","startValue"],["end","endValue"]],(function(t,a){var o=null!=e[t[0]],r=null!=e[t[1]];o&&!r?i[a]="percent":!o&&r?i[a]="value":n?i[a]=n[a]:o&&(i[a]="percent")}))}function Ny(t){return{x:"y",y:"x",radius:"angle",angle:"radius"}[t]}function Oy(t){return"vertical"===t?"ns-resize":"ew-resize"}function Ey(t,e){var i=By(t),n=e.dataZoomId,a=e.coordId;f(i,(function(t,i){var o=t.dataZoomInfos;o[n]&&u(e.allCoordIds,a)<0&&(delete o[n],t.count--)})),Fy(i);var o=i[a];o||((o=i[a]={coordId:a,dataZoomInfos:{},count:0}).controller=Vy(t,o),o.dispatchAction=y(Gy,t)),!o.dataZoomInfos[n]&&o.count++,o.dataZoomInfos[n]=e;var r=Wy(o.dataZoomInfos);o.controller.enable(r.controlType,r.opt),o.controller.setPointerChecker(e.containsPoint),kr(o,"dispatchAction",e.dataZoomModel.get("throttle",!0),"fixRate")}function Ry(t,e){var i=By(t);f(i,(function(t){t.controller.dispose();var i=t.dataZoomInfos;i[e]&&(delete i[e],t.count--)})),Fy(i)}function zy(t){return t.type+"\0_"+t.id}function By(t){var e=t.getZr();return e[qN]||(e[qN]={})}function Vy(t,e){var i=new rc(t.getZr());return f(["pan","zoom","scrollMove"],(function(t){i.on(t,(function(i){var n=[];f(e.dataZoomInfos,(function(a){if(i.isAvailableBehavior(a.dataZoomModel.option)){var o=(a.getRange||{})[t],r=o&&o(e.controller,i);!a.dataZoomModel.get("disabled",!0)&&r&&n.push({dataZoomId:a.dataZoomId,start:r[0],end:r[1]})}})),n.length&&e.dispatchAction(n)}))})),i}function Fy(t){f(t,(function(e,i){e.count||(e.controller.dispose(),delete t[i])}))}function Gy(t,e){t.dispatchAction({type:"dataZoom",batch:e})}function Wy(t){var e,i={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return f(t,(function(t){var a=t.dataZoomModel,o=!a.get("disabled",!0)&&(!a.get("zoomLock",!0)||"move");i["type_"+o]>i["type_"+e]&&(e=o),n&=a.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function Hy(t){return function(e,i,n,a){var o=this._range,r=o.slice(),s=e.axisModels[0];if(s){var l=t(r,s,e,i,n,a);return EL(l,r,[0,100],"all"),this._range=r,o[0]!==r[0]||o[1]!==r[1]?r:void 0}}}function Uy(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}function Zy(t,e,i,n){for(var a=e.targetVisuals[n],o=XC.prepareVisualTypes(a),r={color:t.getData().getVisual("color")},s=0,l=o.length;s<l;s++){var u=o[s],h=a["opacity"===u?"__alphaForOpacity":u];h&&h.applyVisual(i,(function(t){return r[t]}),(function(t,e){r[t]=e}))}return r.color}function jy(t,e,i){if(i[0]===i[1])return i.slice();for(var n=(i[1]-i[0])/200,a=i[0],o=[],r=0;r<=200&&a<i[1];r++)o.push(a),a+=n;return o.push(i[1]),o}function Xy(t,e,i){var n=t.option,a=n.align;if(null!=a&&"auto"!==a)return a;for(var o={width:e.getWidth(),height:e.getHeight()},r="horizontal"===n.orient?1:0,s=[["left","right","width"],["top","bottom","height"]],l=s[r],u=[0,null,10],h={},c=0;c<3;c++)h[s[1-r][c]]=u[c],h[l[c]]=2===c?i[0]:n[l[c]];var d=[["x","width",3],["y","height",0]][r],f=lo(h,o,n.padding);return l[(f.margin[d[2]]||0)+f[d[0]]+.5*f[d[1]]<.5*o[d[1]]?0:1]}function Yy(t){return f(t||[],(function(e){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null)})),t}function qy(t,e,i,n){return new nM({shape:{points:t},draggable:!!i,cursor:e,drift:i,onmousemove:function(t){lw(t.event)},ondragend:n})}function $y(t,e){return 0===t?[[0,0],[e,0],[e,-e]]:[[0,0],[e,0],[e,e]]}function Ky(t,e,i,n){return t?[[0,-yO(e,xO(i,0))],[wO,0],[0,yO(e,xO(n-i,0))]]:[[0,0],[5,-5],[5,5]]}function Jy(t,e,i){var n=_O/2,a=t.get("hoverLinkDataSize");return a&&(n=mO(a,e,i,!0)/2),n}function Qy(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function tx(t){return"vertical"===t?"ns-resize":"ew-resize"}function ex(t,e){var i=t.inverse;("vertical"===t.orient?!i:i)&&e.reverse()}function ix(t){Li(t,"label",["show"])}function nx(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function ax(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function ox(t,e,i,n,a,o){var r=[],s=cl(e,n)?e.getCalculationInfo("stackResultDimension"):n,l=cx(e,s,t),u=e.indicesOfNearest(s,l)[0];r[a]=e.get(i,u),r[o]=e.get(n,u);var h=Va(e.get(n,u));return(h=Math.min(h,20))>=0&&(r[o]=+r[o].toFixed(h)),r}function rx(t,e){var i=t.getData(),a=t.coordinateSystem;if(e&&!ax(e)&&!x(e.coord)&&a){var o=a.dimensions,r=sx(e,i,a,t);if((e=n(e)).type&&LO[e.type]&&r.baseAxis&&r.valueAxis){var s=DO(o,r.baseAxis.dim),l=DO(o,r.valueAxis.dim);e.coord=LO[e.type](i,r.baseDataDim,r.valueDataDim,s,l),e.value=e.coord[l]}else{for(var u=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],h=0;h<2;h++)LO[u[h]]&&(u[h]=cx(i,i.mapDimension(o[h]),u[h]));e.coord=u}}return e}function sx(t,e,i,n){var a={};return null!=t.valueIndex||null!=t.valueDim?(a.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,a.valueAxis=i.getAxis(lx(n,a.valueDataDim)),a.baseAxis=i.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=i.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function lx(t,e){var i=t.getData(),n=i.dimensions;e=i.getDimension(e);for(var a=0;a<n.length;a++){var o=i.getDimensionInfo(n[a]);if(o.name===e)return o.coordDim}}function ux(t,e){return!(t&&t.containData&&e.coord&&!nx(e))||t.containData(e.coord)}function hx(t,e,i,n){return n<2?t.coord&&t.coord[n]:t.value}function cx(t,e,i){if("average"===i){var n=0,a=0;return t.each(e,(function(t,e){isNaN(t)||(n+=t,a++)})),n/a}return"median"===i?t.getMedian(e):t.getDataExtent(e,!0)["max"===i?1:0]}function dx(t,e,i){var n=e.coordinateSystem;t.each((function(a){var o,r=t.getItemModel(a),s=Ra(r.get("x"),i.getWidth()),l=Ra(r.get("y"),i.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,a));else if(n){var u=t.get(n.dimensions[0],a),h=t.get(n.dimensions[1],a);o=n.dataToPoint([u,h])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(a,o)}))}function fx(t,e,i){var n;n=t?p(t&&t.dimensions,(function(t){return s({name:t},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{})})):[{name:"value",type:"float"}];var a=new eA(n,i),o=p(i.get("data"),y(rx,e));return t&&(o=m(o,y(ux,t))),a.initData(o,null,t?hx:function(t){return t.value}),a}function px(t){return!isNaN(t)&&!isFinite(t)}function gx(t,e,i,n){var a=1-t,o=n.dimensions[t];return px(e[a])&&px(i[a])&&e[t]===i[t]&&n.getAxis(o).containData(e[t])}function mx(t,e){if("cartesian2d"===t.type){var i=e[0].coord,n=e[1].coord;if(i&&n&&(gx(1,i,n,t)||gx(0,i,n,t)))return!0}return ux(t,e[0])&&ux(t,e[1])}function vx(t,e,i,n,a){var o,r=n.coordinateSystem,s=t.getItemModel(e),l=Ra(s.get("x"),a.getWidth()),u=Ra(s.get("y"),a.getHeight());if(isNaN(l)||isNaN(u)){if(n.getMarkerPosition)o=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var h=r.dimensions,c=t.get(h[0],e),d=t.get(h[1],e);o=r.dataToPoint([c,d])}if("cartesian2d"===r.type){var f=r.getAxis("x"),p=r.getAxis("y");h=r.dimensions;px(t.get(h[0],e))?o[0]=f.toGlobalCoord(f.getExtent()[i?0:1]):px(t.get(h[1],e))&&(o[1]=p.toGlobalCoord(p.getExtent()[i?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}function yx(t,e,i){var n;n=t?p(t&&t.dimensions,(function(t){return s({name:t},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{})})):[{name:"value",type:"float"}];var a=new eA(n,i),o=new eA(n,i),r=new eA([],i),l=p(i.get("data"),y(PO,e,t,i));t&&(l=m(l,y(mx,t)));var u=t?hx:function(t){return t.value};return a.initData(p(l,(function(t){return t[0]})),null,u),o.initData(p(l,(function(t){return t[1]})),null,u),r.initData(p(l,(function(t){return t[2]}))),r.hasItemOption=!0,{from:a,to:o,line:r}}function xx(t){return!isNaN(t)&&!isFinite(t)}function _x(t,e,i,n){var a=1-t;return xx(e[a])&&xx(i[a])}function bx(t,e){var i=e.coord[0],n=e.coord[1];return!("cartesian2d"!==t.type||!i||!n||!_x(1,i,n,t)&&!_x(0,i,n,t))||ux(t,{coord:i,x:e.x0,y:e.y0})||ux(t,{coord:n,x:e.x1,y:e.y1})}function Sx(t,e,i,n,a){var o,r=n.coordinateSystem,s=t.getItemModel(e),l=Ra(s.get(i[0]),a.getWidth()),u=Ra(s.get(i[1]),a.getHeight());if(isNaN(l)||isNaN(u)){if(n.getMarkerPosition)o=n.getMarkerPosition(t.getValues(i,e));else{var h=[f=t.get(i[0],e),p=t.get(i[1],e)];r.clampData&&r.clampData(h,h),o=r.dataToPoint(h,!0)}if("cartesian2d"===r.type){var c=r.getAxis("x"),d=r.getAxis("y"),f=t.get(i[0],e),p=t.get(i[1],e);xx(f)?o[0]=c.toGlobalCoord(c.getExtent()["x0"===i[0]?0:1]):xx(p)&&(o[1]=d.toGlobalCoord(d.getExtent()["y0"===i[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}function Mx(t,e,i){var n,a,o=["x0","y0","x1","y1"];t?(n=p(t&&t.dimensions,(function(t){var i=e.getData();return s({name:t},i.getDimensionInfo(i.mapDimension(t))||{})})),a=new eA(p(o,(function(t,e){return{name:t,type:n[e%2].type}})),i)):a=new eA(n=[{name:"value",type:"float"}],i);var r=p(i.get("data"),y(NO,e,t,i));t&&(r=m(r,y(bx,t)));var l=t?function(t,e,i,n){return t.coord[Math.floor(n/2)][n%2]}:function(t){return t.value};return a.initData(r,null,l),a.hasItemOption=!0,a}function Ix(t){var e=t.type,i={number:"value",time:"time"};if(i[e]&&(t.axisType=i[e],delete t.type),Tx(t),Ax(t,"controlPosition")){var n=t.controlStyle||(t.controlStyle={});Ax(n,"position")||(n.position=t.controlPosition),"none"!==n.position||Ax(n,"show")||(n.show=!1,delete n.position),delete t.controlPosition}f(t.data||[],(function(t){b(t)&&!x(t)&&(!Ax(t,"value")&&Ax(t,"name")&&(t.value=t.name),Tx(t))}))}function Tx(t){var e=t.itemStyle||(t.itemStyle={}),i=e.emphasis||(e.emphasis={}),n=t.label||t.label||{},a=n.normal||(n.normal={}),o={normal:1,emphasis:1};f(n,(function(t,e){o[e]||Ax(a,e)||(a[e]=t)})),i.label&&!Ax(n,"emphasis")&&(n.emphasis=i.label,delete i.label)}function Ax(t,e){return t.hasOwnProperty(e)}function Dx(t,e){return lo(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function Cx(t,e,i,a){return Hn(t.get(e).replace(/^path:\/\//,""),n(a||{}),new he(i[0],i[1],i[2],i[3]),"center")}function Lx(t,e,i,n,o,r){var s=e.get("color");o?(o.setColor(s),i.add(o),r&&r.onUpdate(o)):((o=Xl(t.get("symbol"),-1,-1,2,2,s)).setStyle("strokeNoScale",!0),i.add(o),r&&r.onCreate(o));var l=e.getItemStyle(["color","symbol","symbolSize"]);o.setStyle(l),n=a({rectHover:!0,z2:100},n,!0);var u=t.get("symbolSize");(u=u instanceof Array?u.slice():[+u,+u])[0]/=2,u[1]/=2,n.scale=u;var h=t.get("symbolOffset");if(h){var c=n.position=n.position||[0,0];c[0]+=Ra(h[0],u[0]),c[1]+=Ra(h[1],u[1])}var d=t.get("symbolRotate");return n.rotation=(d||0)*Math.PI/180||0,o.attr(n),o.updateTransform(),o}function kx(t,e,i,n,a){if(!t.dragging){var o=n.getModel("checkpointStyle"),r=i.dataToCoord(n.getData().get(["value"],e));a||!o.get("animation",!0)?t.attr({position:[r,0]}):(t.stopAnimation(!0),t.animateTo({position:[r,0]},o.get("animationDuration",!0),o.get("animationEasing",!0)))}}function Px(t){return 0===t.indexOf("my")}function Nx(t){this.model=t}function Ox(t){this.model=t}function Ex(t){var e={},i=[],n=[];return t.eachRawSeries((function(t){var a=t.coordinateSystem;if(!a||"cartesian2d"!==a.type&&"polar"!==a.type)i.push(t);else{var o=a.getBaseAxis();if("category"===o.type){var r=o.dim+"_"+o.index;e[r]||(e[r]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[r].series.push(t)}else i.push(t)}})),{seriesGroupByCategoryAxis:e,other:i,meta:n}}function Rx(t){var e=[];return f(t,(function(t,i){var n=t.categoryAxis,a=t.valueAxis.dim,o=[" "].concat(p(t.series,(function(t){return t.name}))),r=[n.model.getCategories()];f(t.series,(function(t){r.push(t.getRawData().mapArray(a,(function(t){return t})))}));for(var s=[o.join(qO)],l=0;l<r[0].length;l++){for(var u=[],h=0;h<r.length;h++)u.push(r[h][l]);s.push(u.join(qO))}e.push(s.join("\n"))})),e.join("\n\n"+YO+"\n\n")}function zx(t){return p(t,(function(t){var e=t.getRawData(),i=[t.name],n=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,a=arguments[t-1],o=e.getName(a),r=0;r<t-1;r++)n[r]=arguments[r];i.push((o?o+qO:"")+n.join(qO))})),i.join("\n")})).join("\n\n"+YO+"\n\n")}function Bx(t){var e=Ex(t);return{value:m([Rx(e.seriesGroupByCategoryAxis),zx(e.other)],(function(t){return t.replace(/[\n\t\s]/g,"")})).join("\n\n"+YO+"\n\n"),meta:e.meta}}function Vx(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Fx(t){if(t.slice(0,t.indexOf("\n")).indexOf(qO)>=0)return!0}function Gx(t){for(var e=t.split(/\n+/g),i=[],n=p(Vx(e.shift()).split($O),(function(t){return{name:t,data:[]}})),a=0;a<e.length;a++){var o=Vx(e[a]).split($O);i.push(o.shift());for(var r=0;r<o.length;r++)n[r]&&(n[r].data[a]=o[r])}return{series:n,categories:i}}function Wx(t){for(var e=t.split(/\n+/g),i=Vx(e.shift()),n=[],a=0;a<e.length;a++){var o,r=Vx(e[a]).split($O),s="",l=!1;isNaN(r[0])?(l=!0,s=r[0],r=r.slice(1),n[a]={name:s,value:[]},o=n[a].value):o=n[a]=[];for(var u=0;u<r.length;u++)o.push(+r[u]);1===o.length&&(l?n[a].value=o[0]:n[a]=o[0])}return{name:i,data:n}}function Hx(t,e){var i={series:[]};return f(t.split(new RegExp("\n*"+YO+"\n*","g")),(function(t,n){if(Fx(t)){var a=Gx(t),o=e[n],r=o.axisDim+"Axis";o&&(i[r]=i[r]||[],i[r][o.axisIndex]={data:a.categories},i.series=i.series.concat(a.series))}else a=Wx(t),i.series.push(a)})),i}function Ux(t){this._dom=null,this.model=t}function Zx(t,e){return p(t,(function(t,i){var n=e&&e[i];return b(n)&&!x(n)?(b(t)&&!x(t)&&(t=t.value),s({value:t},n)):t}))}function jx(t,e){var i=$x(t);KO(e,(function(e,n){for(var a=i.length-1;a>=0&&!i[a][n];a--);if(a<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(o){var r=o.getPercentRange();i[0][n]={dataZoomId:n,start:r[0],end:r[1]}}}})),i.push(e)}function Xx(t){var e=$x(t),i=e[e.length-1];e.length>1&&e.pop();var n={};return KO(i,(function(t,i){for(var a=e.length-1;a>=0;a--)if(t=e[a][i]){n[i]=t;break}})),n}function Yx(t){t[JO]=null}function qx(t){return $x(t).length}function $x(t){var e=t[JO];return e||(e=t[JO]=[{}]),e}function Kx(t,e,i){(this._brushController=new Lf(i.getZr())).on("brush",v(this._onBrush,this)).mount(),this._isZoomActive}function Jx(t){var e={};return f(["xAxisIndex","yAxisIndex"],(function(i){e[i]=t[i],null==e[i]&&(e[i]="all"),(!1===e[i]||"none"===e[i])&&(e[i]=[])})),e}function Qx(t,e){t.setIconStatus("back",qx(e)>1?"emphasis":"normal")}function t_(t,e,i,n,a){var o=i._isZoomActive;n&&"takeGlobalCursor"===n.type&&(o="dataZoomSelect"===n.key&&n.dataZoomSelectActive),i._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var r=new ny(Jx(t.option),e,{include:["grid"]});i._brushController.setPanels(r.makePanelOpts(a,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}))).enableBrush(!!o&&{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}})}function e_(t){this.model=t}function i_(t){return oE(t)}function n_(){if(!lE&&uE){lE=!0;var t=uE.styleSheets;t.length<31?uE.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}}function a_(t){return parseInt(t,10)}function o_(t,e){n_(),this.root=t,this.storage=e;var i=document.createElement("div"),n=document.createElement("div");i.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",n.style.cssText="position:absolute;left:0;top:0;",t.appendChild(i),this._vmlRoot=n,this._vmlViewport=i,this.resize();var a=e.delFromStorage,o=e.addToStorage;e.delFromStorage=function(t){a.call(e,t),t&&t.onRemove&&t.onRemove(n)},e.addToStorage=function(t){t.onAdd&&t.onAdd(n),o.call(e,t)},this._firstPaint=!0}function r_(t){return function(){Bw('In IE8.0 VML mode painter not support method "'+t+'"')}}function s_(t){return document.createElementNS(HE,t)}function l_(t){return XE(1e4*t)/1e4}function u_(t){return t<QE&&t>-QE}function h_(t,e){var i=e?t.textFill:t.fill;return null!=i&&i!==jE}function c_(t,e){var i=e?t.textStroke:t.stroke;return null!=i&&i!==jE}function d_(t,e){e&&f_(t,"transform","matrix("+ZE.call(e,",")+")")}function f_(e,i,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&("string"==typeof n&&n.indexOf("NaN")>-1&&t.log(n),e.setAttribute(i,n))}function p_(t,e,i){t.setAttributeNS("http://www.w3.org/1999/xlink",e,i)}function g_(t,e,i,n){if(h_(e,i)){var a=i?e.textFill:e.fill;a="transparent"===a?jE:a,"none"!==t.getAttribute("clip-path")&&a===jE&&(a="rgba(0, 0, 0, 0.002)"),f_(t,"fill",a),f_(t,"fill-opacity",null!=e.fillOpacity?e.fillOpacity*e.opacity:e.opacity)}else f_(t,"fill",jE);if(c_(e,i)){var o=i?e.textStroke:e.stroke;f_(t,"stroke",o="transparent"===o?jE:o),f_(t,"stroke-width",(i?e.textStrokeWidth:e.lineWidth)/(!i&&e.strokeNoScale?n.getLineScale():1)),f_(t,"paint-order",i?"stroke":"fill"),f_(t,"stroke-opacity",null!=e.strokeOpacity?e.strokeOpacity:e.opacity),e.lineDash?(f_(t,"stroke-dasharray",e.lineDash.join(",")),f_(t,"stroke-dashoffset",XE(e.lineDashOffset||0))):f_(t,"stroke-dasharray",""),e.lineCap&&f_(t,"stroke-linecap",e.lineCap),e.lineJoin&&f_(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&f_(t,"stroke-miterlimit",e.miterLimit)}else f_(t,"stroke",jE)}function m_(t){for(var e=[],i=t.data,n=t.len(),a=0;a<n;){var o="",r=0;switch(i[a++]){case UE.M:o="M",r=2;break;case UE.L:o="L",r=2;break;case UE.Q:o="Q",r=4;break;case UE.C:o="C",r=6;break;case UE.A:var s=i[a++],l=i[a++],u=i[a++],h=i[a++],c=i[a++],d=i[a++],f=i[a++],p=i[a++],g=Math.abs(d),m=u_(g-KE)&&!u_(g),v=!1;v=g>=KE||!u_(g)&&(d>-$E&&d<0||d>$E)==!!p;var y=l_(s+u*qE(c)),x=l_(l+h*YE(c));m&&(d=p?KE-1e-4:1e-4-KE,v=!0,9===a&&e.push("M",y,x));var _=l_(s+u*qE(c+d)),w=l_(l+h*YE(c+d));e.push("A",l_(u),l_(h),XE(f*JE),+v,+p,_,w);break;case UE.Z:o="Z";break;case UE.R:_=l_(i[a++]),w=l_(i[a++]);var b=l_(i[a++]),S=l_(i[a++]);e.push("M",_,w,"L",_+b,w,"L",_+b,w+S,"L",_,w+S,"L",_,w)}o&&e.push(o);for(var M=0;M<r;M++)e.push(l_(i[a++]))}return e.join(" ")}function v_(t){return"middle"===t?"middle":"bottom"===t?"after-edge":"hanging"}function y_(){}function x_(t,e,i,n){for(var a=0,o=e.length,r=0,s=0;a<o;a++){var l=e[a];if(l.removed){for(var u=[],h=s;h<s+l.count;h++)u.push(h);l.indices=u,s+=l.count}else{for(u=[],h=r;h<r+l.count;h++)u.push(h);l.indices=u,r+=l.count,l.added||(s+=l.count)}}return e}function __(t){return{newPos:t.newPos,components:t.components.slice(0)}}function w_(t,e,i,n,a){this._zrId=t,this._svgRoot=e,this._tagNames="string"==typeof i?[i]:i,this._markLabel=n,this._domName=a||"_dom",this.nextId=0}function b_(t,e){w_.call(this,t,e,["linearGradient","radialGradient"],"__gradient_in_use__")}function S_(t,e){w_.call(this,t,e,"clipPath","__clippath_in_use__")}function M_(t,e){w_.call(this,t,e,["filter"],"__filter_in_use__","_shadowDom")}function I_(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY||t.textShadowBlur||t.textShadowOffsetX||t.textShadowOffsetY)}function T_(t){return parseInt(t,10)}function A_(t){return t instanceof Pn?tR:t instanceof ci?eR:t instanceof qS?iR:tR}function D_(t,e){return e&&t&&e.parentNode!==t}function C_(t,e,i){if(D_(t,e)&&i){var n=i.nextSibling;n?t.insertBefore(e,n):t.appendChild(e)}}function L_(t,e){if(D_(t,e)){var i=t.firstChild;i?t.insertBefore(e,i):t.appendChild(e)}}function k_(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function P_(t){return t.__textSvgEl}function N_(t){return t.__svgEl}function O_(t){return function(){Bw('In SVG mode painter not support method "'+t+'"')}}var E_=2311,R_=function(){return E_++},z_="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:function(t){var e={},i={},n=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge\/([\d.]+)/),r=/micromessenger/i.test(t);return n&&(i.firefox=!0,i.version=n[1]),a&&(i.ie=!0,i.version=a[1]),o&&(i.edge=!0,i.version=o[1]),r&&(i.weChat=!0),{browser:i,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointerEventsSupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=11),domSupported:"undefined"!=typeof document}}(navigator.userAgent),B_={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},V_={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},F_=Object.prototype.toString,G_=Array.prototype,W_=G_.forEach,H_=G_.filter,U_=G_.slice,Z_=G_.map,j_=G_.reduce,X_={},Y_=function(){return X_.createCanvas()};X_.createCanvas=function(){return document.createElement("canvas")};var q_,$_="__ec_primitive__";R.prototype={constructor:R,get:function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},set:function(t,e){return this.data[t]=e},each:function(t,e){for(var i in void 0!==e&&(t=v(t,e)),this.data)this.data.hasOwnProperty(i)&&t(this.data[i],i)},removeKey:function(t){delete this.data[t]}};var K_=(Object.freeze||Object)({$override:i,clone:n,merge:a,mergeAll:o,extend:r,defaults:s,createCanvas:Y_,getContext:l,indexOf:u,inherits:h,mixin:c,isArrayLike:d,each:f,map:p,reduce:g,filter:m,find:function(t,e,i){if(t&&e)for(var n=0,a=t.length;n<a;n++)if(e.call(i,t[n],n,t))return t[n]},bind:v,curry:y,isArray:x,isFunction:_,isString:w,isObject:b,isBuiltInObject:S,isTypedArray:M,isDom:I,eqNaN:T,retrieve:A,retrieve2:D,retrieve3:C,slice:L,normalizeCssArray:k,assert:P,trim:N,setAsPrimitive:O,isPrimitive:E,createHashMap:z,concatArray:B,noop:V}),J_="undefined"==typeof Float32Array?Array:Float32Array,Q_=X,tw=Y,ew=K,iw=J,nw=(Object.freeze||Object)({create:F,copy:G,clone:W,set:H,add:U,scaleAndAdd:Z,sub:j,len:X,length:Q_,lenSquare:Y,lengthSquare:tw,mul:function(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t},div:function(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:q,normalize:$,distance:K,dist:ew,distanceSquare:J,distSquare:iw,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:Q,applyTransform:tt,min:et,max:it});nt.prototype={constructor:nt,_dragStart:function(t){var e=t.target;e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(at(e,t),"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(a,o,t),this.dispatchToElement(at(e,t),"drag",t.event);var r=this.findHover(i,n,e).target,s=this._dropTarget;this._dropTarget=r,e!==r&&(s&&r!==s&&this.dispatchToElement(at(s,t),"dragleave",t.event),r&&r!==s&&this.dispatchToElement(at(r,t),"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(at(e,t),"dragend",t.event),this._dropTarget&&this.dispatchToElement(at(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null}};var aw=Array.prototype.slice,ow=function(t){this._$handlers={},this._$eventProcessor=t};ow.prototype={constructor:ow,one:function(t,e,i,n){var a=this._$handlers;if("function"==typeof e&&(n=i,i=e,e=null),!i||!t)return this;e=ot(this,e),a[t]||(a[t]=[]);for(var o=0;o<a[t].length;o++)if(a[t][o].h===i)return this;return a[t].push({h:i,one:!0,query:e,ctx:n||this}),this},on:function(t,e,i,n){var a=this._$handlers;if("function"==typeof e&&(n=i,i=e,e=null),!i||!t)return this;e=ot(this,e),a[t]||(a[t]=[]);for(var o=0;o<a[t].length;o++)if(a[t][o].h===i)return this;return a[t].push({h:i,one:!1,query:e,ctx:n||this}),this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t].length},off:function(t,e){var i=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==e&&n.push(i[t][a]);i[t]=n}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];return this},trigger:function(t){var e=this._$handlers[t],i=this._$eventProcessor;if(e){var n=arguments,a=n.length;a>3&&(n=aw.call(n,1));for(var o=e.length,r=0;r<o;){var s=e[r];if(i&&i.filter&&null!=s.query&&!i.filter(t,s.query))r++;else{switch(a){case 1:s.h.call(s.ctx);break;case 2:s.h.call(s.ctx,n[1]);break;case 3:s.h.call(s.ctx,n[1],n[2]);break;default:s.h.apply(s.ctx,n)}s.one?(e.splice(r,1),o--):r++}}}return i&&i.afterTrigger&&i.afterTrigger(t),this},triggerWithContext:function(t){var e=this._$handlers[t],i=this._$eventProcessor;if(e){var n=arguments,a=n.length;a>4&&(n=aw.call(n,1,n.length-1));for(var o=n[n.length-1],r=e.length,s=0;s<r;){var l=e[s];if(i&&i.filter&&null!=l.query&&!i.filter(t,l.query))s++;else{switch(a){case 1:l.h.call(o);break;case 2:l.h.call(o,n[1]);break;case 3:l.h.call(o,n[1],n[2]);break;default:l.h.apply(o,n)}l.one?(e.splice(s,1),r--):s++}}}return i&&i.afterTrigger&&i.afterTrigger(t),this}};var rw="undefined"!=typeof window&&!!window.addEventListener,sw=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,lw=rw?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0},uw="silent";gt.prototype.dispose=function(){};var hw=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],cw=function(t,e,i,n){ow.call(this),this.storage=t,this.painter=e,this.painterRoot=n,i=i||new gt,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,nt.call(this),this.setHandlerProxy(i)};cw.prototype={constructor:cw,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(f(hw,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,i=t.zrY,n=this._hovered,a=n.target;a&&!a.__zr&&(a=(n=this.findHover(n.x,n.y)).target);var o=this._hovered=this.findHover(e,i),r=o.target,s=this.proxy;s.setCursor&&s.setCursor(r?r.cursor:"default"),a&&r!==a&&this.dispatchToElement(n,"mouseout",t),this.dispatchToElement(o,"mousemove",t),r&&r!==a&&this.dispatchToElement(o,"mouseover",t)},mouseout:function(t){this.dispatchToElement(this._hovered,"mouseout",t);var e,i=t.toElement||t.relatedTarget;do{i=i&&i.parentNode}while(i&&9!=i.nodeType&&!(e=i===this.painterRoot));!e&&this.trigger("globalout",{event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var i=this[t];i&&i.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,i){var n=(t=t||{}).target;if(!n||!n.silent){for(var a="on"+e,o=ft(e,t,i);n&&(n[a]&&(o.cancelBubble=n[a].call(n,o)),n.trigger(e,o),n=n.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer((function(t){"function"==typeof t[a]&&t[a].call(t,o),t.trigger&&t.trigger(e,o)})))}},findHover:function(t,e,i){for(var n=this.storage.getDisplayList(),a={x:t,y:e},o=n.length-1;o>=0;o--){var r;if(n[o]!==i&&!n[o].ignore&&(r=mt(n[o],t,e))&&(!a.topTarget&&(a.topTarget=n[o]),r!==uw)){a.target=n[o];break}}return a}},f(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){cw.prototype[t]=function(e){var i=this.findHover(e.zrX,e.zrY),n=i.target;if("mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||ew(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}})),c(cw,ow),c(cw,nt);var dw="undefined"==typeof Float32Array?Array:Float32Array,fw=(Object.freeze||Object)({create:vt,identity:yt,copy:xt,mul:_t,translate:wt,rotate:bt,scale:St,invert:Mt,clone:It}),pw=yt,gw=5e-5,mw=function(t){(t=t||{}).position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},vw=mw.prototype;vw.transform=null,vw.needLocalTransform=function(){return Tt(this.rotation)||Tt(this.position[0])||Tt(this.position[1])||Tt(this.scale[0]-1)||Tt(this.scale[1]-1)};var yw=[];vw.updateTransform=function(){var t=this.parent,e=t&&t.transform,i=this.needLocalTransform(),n=this.transform;if(i||e){n=n||vt(),i?this.getLocalTransform(n):pw(n),e&&(i?_t(n,t.transform,n):xt(n,t.transform)),this.transform=n;var a=this.globalScaleRatio;if(null!=a&&1!==a){this.getGlobalScale(yw);var o=yw[0]<0?-1:1,r=yw[1]<0?-1:1,s=((yw[0]-o)*a+o)/yw[0]||0,l=((yw[1]-r)*a+r)/yw[1]||0;n[0]*=s,n[1]*=s,n[2]*=l,n[3]*=l}this.invTransform=this.invTransform||vt(),Mt(this.invTransform,n)}else n&&pw(n)},vw.getLocalTransform=function(t){return mw.getLocalTransform(this,t)},vw.setTransform=function(t){var e=this.transform,i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)},vw.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var xw=[],_w=vt();vw.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=this.position,a=this.scale;Tt(e-1)&&(e=Math.sqrt(e)),Tt(i-1)&&(i=Math.sqrt(i)),t[0]<0&&(e=-e),t[3]<0&&(i=-i),n[0]=t[4],n[1]=t[5],a[0]=e,a[1]=i,this.rotation=Math.atan2(-t[1]/i,t[0]/e)}},vw.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(_t(xw,t.invTransform,e),e=xw);var i=this.origin;i&&(i[0]||i[1])&&(_w[4]=i[0],_w[5]=i[1],_t(xw,e,_w),xw[4]-=i[0],xw[5]-=i[1],e=xw),this.setLocalTransform(e)}},vw.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},vw.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&tt(i,i,n),i},vw.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&tt(i,i,n),i},mw.getLocalTransform=function(t,e){pw(e=e||[]);var i=t.origin,n=t.scale||[1,1],a=t.rotation||0,o=t.position||[0,0];return i&&(e[4]-=i[0],e[5]-=i[1]),St(e,e,n),a&&bt(e,e,a),i&&(e[4]+=i[0],e[5]+=i[1]),e[4]+=o[0],e[5]+=o[1],e};var ww={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-ww.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*ww.bounceIn(2*t):.5*ww.bounceOut(2*t-1)+.5}};At.prototype={constructor:At,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)this._pausedTime+=e;else{var i=(t-this._startTime-this._pausedTime)/this._life;if(!(i<0)){i=Math.min(i,1);var n=this.easing,a="string"==typeof n?ww[n]:n,o="function"==typeof a?a(i):i;return this.fire("frame",o),1==i?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){this[t="on"+t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var bw=function(){this.head=null,this.tail=null,this._len=0},Sw=bw.prototype;Sw.insert=function(t){var e=new Mw(t);return this.insertEntry(e),e},Sw.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},Sw.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},Sw.len=function(){return this._len},Sw.clear=function(){this.head=this.tail=null,this._len=0};var Mw=function(t){this.value=t,this.next,this.prev},Iw=function(t){this._list=new bw,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},Tw=Iw.prototype;Tw.put=function(t,e){var i=this._list,n=this._map,a=null;if(null==n[t]){var o=i.len(),r=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=i.head;i.remove(s),delete n[s.key],a=s.value,this._lastRemovedEntry=s}r?r.value=e:r=new Mw(e),r.key=t,i.insertEntry(r),n[t]=r}return a},Tw.get=function(t){var e=this._map[t],i=this._list;if(null!=e)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},Tw.clear=function(){this._list.clear(),this._map={}};var Aw={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]},Dw=new Iw(20),Cw=null,Lw=Ht,kw=Ut,Pw=(Object.freeze||Object)({parse:Bt,lift:Gt,toHex:Wt,fastLerp:Ht,fastMapToColor:Lw,lerp:Ut,mapToColor:kw,modifyHSL:Zt,modifyAlpha:jt,stringify:Xt}),Nw=Array.prototype.slice,Ow=function(t,e,i,n){this._tracks={},this._target=t,this._loop=e||!1,this._getter=i||Yt,this._setter=n||qt,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};Ow.prototype={when:function(t,e){var i=this._tracks;for(var n in e)if(e.hasOwnProperty(n)){if(!i[n]){i[n]=[];var a=this._getter(this._target,n);if(null==a)continue;0!==t&&i[n].push({time:0,value:ne(a)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].pause();this._paused=!0},resume:function(){for(var t=0;t<this._clipList.length;t++)this._clipList[t].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var t=this._doneList,e=t.length,i=0;i<e;i++)t[i].call(this)},start:function(t,e){var i,n=this,a=0;for(var o in this._tracks)if(this._tracks.hasOwnProperty(o)){var r=re(this,t,(function(){--a||n._doneCallback()}),this._tracks[o],o,e);r&&(this._clipList.push(r),a++,this.animation&&this.animation.addClip(r),i=r)}if(i){var s=i.onframe;i.onframe=function(t,e){s(t,e);for(var i=0;i<n._onframeList.length;i++)n._onframeList[i](t,e)}}return a||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,i=this.animation,n=0;n<e.length;n++){var a=e[n];t&&a.onframe(this._target,1),i&&i.removeClip(a)}e.length=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}};var Ew=1;"undefined"!=typeof window&&(Ew=Math.max(window.devicePixelRatio||1,1));var Rw=Ew,zw=function(){},Bw=zw,Vw=function(){this.animators=[]};Vw.prototype={constructor:Vw,animate:function(t,e){var i,n=!1,a=this,o=this.__zr;if(t){var r=t.split("."),s=a;n="shape"===r[0];for(var l=0,h=r.length;l<h;l++)s&&(s=s[r[l]]);s&&(i=s)}else i=a;if(i){var c=a.animators,d=new Ow(i,e);return d.during((function(t){a.dirty(n)})).done((function(){c.splice(u(c,d),1)})),c.push(d),o&&o.animation.addAnimator(d),d}Bw('Property "'+t+'" is not existed in element '+a.id)},stopAnimation:function(t){for(var e=this.animators,i=e.length,n=0;n<i;n++)e[n].stop(t);return e.length=0,this},animateTo:function(t,e,i,n,a,o){se(this,t,e,i,n,a,o)},animateFrom:function(t,e,i,n,a,o){se(this,t,e,i,n,a,o,!0)}};var Fw=function(t){mw.call(this,t),ow.call(this,t),Vw.call(this,t),this.id=t.id||R_()};Fw.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var i=this[t];i||(i=this[t]=[]),i[0]=e[0],i[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(b(t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},c(Fw,Vw),c(Fw,mw),c(Fw,ow);var Gw=tt,Ww=Math.min,Hw=Math.max;he.prototype={constructor:he,union:function(t){var e=Ww(t.x,this.x),i=Ww(t.y,this.y);this.width=Hw(t.x+t.width,this.x+this.width)-e,this.height=Hw(t.y+t.height,this.y+this.height)-i,this.x=e,this.y=i},applyTransform:function(){var t=[],e=[],i=[],n=[];return function(a){if(a){t[0]=i[0]=this.x,t[1]=n[1]=this.y,e[0]=n[0]=this.x+this.width,e[1]=i[1]=this.y+this.height,Gw(t,t,a),Gw(e,e,a),Gw(i,i,a),Gw(n,n,a),this.x=Ww(t[0],e[0],i[0],n[0]),this.y=Ww(t[1],e[1],i[1],n[1]);var o=Hw(t[0],e[0],i[0],n[0]),r=Hw(t[1],e[1],i[1],n[1]);this.width=o-this.x,this.height=r-this.y}}}(),calculateTransform:function(t){var e=this,i=t.width/e.width,n=t.height/e.height,a=vt();return wt(a,a,[-e.x,-e.y]),St(a,a,[i,n]),wt(a,a,[t.x,t.y]),a},intersect:function(t){if(!t)return!1;t instanceof he||(t=he.create(t));var e=this,i=e.x,n=e.x+e.width,a=e.y,o=e.y+e.height,r=t.x,s=t.x+t.width,l=t.y,u=t.y+t.height;return!(n<r||s<i||o<l||u<a)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},clone:function(){return new he(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},he.create=function(t){return new he(t.x,t.y,t.width,t.height)};var Uw=function(t){for(var e in t=t||{},Fw.call(this,t),t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};Uw.prototype={constructor:Uw,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i<e.length;i++)if(e[i].name===t)return e[i]},childCount:function(){return this._children.length},add:function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var i=this._children,n=i.indexOf(e);n>=0&&(i.splice(n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof Uw&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var e=this.__zr,i=this.__storage,n=this._children,a=u(n,t);return a<0||(n.splice(a,1),t.parent=null,i&&(i.delFromStorage(t),t instanceof Uw&&t.delChildrenFromStorage(i)),e&&e.refresh()),this},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e<i.length;e++)t=i[e],n&&(n.delFromStorage(t),t instanceof Uw&&t.delChildrenFromStorage(n)),t.parent=null;return i.length=0,this},eachChild:function(t,e){for(var i=this._children,n=0;n<i.length;n++){var a=i[n];t.call(e,a,n)}return this},traverse:function(t,e){for(var i=0;i<this._children.length;i++){var n=this._children[i];t.call(e,n),"group"===n.type&&n.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children.length;e++){var i=this._children[e];t.addToStorage(i),i instanceof Uw&&i.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children.length;e++){var i=this._children[e];t.delFromStorage(i),i instanceof Uw&&i.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,i=new he(0,0,0,0),n=t||this._children,a=[],o=0;o<n.length;o++){var r=n[o];if(!r.ignore&&!r.invisible){var s=r.getBoundingRect(),l=r.getLocalTransform(a);l?(i.copy(s),i.applyTransform(l),(e=e||i.clone()).union(i)):(e=e||s.clone()).union(s)}}return e||i}},h(Uw,Fw);var Zw=32,jw=7,Xw=function(){this._roots=[],this._displayList=[],this._displayListLen=0};Xw.prototype={constructor:Xw,traverse:function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},getDisplayList:function(t,e){return e=e||!1,t&&this.updateDisplayList(e),this._displayList},updateDisplayList:function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,a=e.length;n<a;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,z_.canvasSupported&&ye(i,xe)},_updateAndAddDisplayable:function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.__dirty&&t.update(),t.afterUpdate();var n=t.clipPath;if(n){e=e?e.slice():[];for(var a=n,o=t;a;)a.parent=o,a.updateTransform(),e.push(a),o=a,a=a.clipPath}if(t.isGroup){for(var r=t._children,s=0;s<r.length;s++){var l=r[s];t.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,e,i)}t.__dirty=!1}else t.__clipPaths=e,this._displayList[this._displayListLen++]=t}},addRoot:function(t){t.__storage!==this&&(t instanceof Uw&&t.addChildrenToStorage(this),this.addToStorage(t),this._roots.push(t))},delRoot:function(t){if(null==t){for(i=0;i<this._roots.length;i++){var e=this._roots[i];e instanceof Uw&&e.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(t instanceof Array)for(var i=0,n=t.length;i<n;i++)this.delRoot(t[i]);else{var a=u(this._roots,t);a>=0&&(this.delFromStorage(t),this._roots.splice(a,1),t instanceof Uw&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t&&(t.__storage=this,t.dirty(!1)),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:xe};var Yw={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1},qw=function(t,e,i){return Yw.hasOwnProperty(e)?i*=t.dpr:i},$w=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],Kw=function(t){this.extendFrom(t,!1)};Kw.prototype={constructor:Kw,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,e,i){for(var n=this,a=i&&i.style,o=!a,r=0;r<$w.length;r++){var s=$w[r],l=s[0];(o||n[l]!==a[l])&&(t[l]=qw(t,l,n[l]||s[1]))}if((o||n.fill!==a.fill)&&(t.fillStyle=n.fill),(o||n.stroke!==a.stroke)&&(t.strokeStyle=n.stroke),(o||n.opacity!==a.opacity)&&(t.globalAlpha=null==n.opacity?1:n.opacity),(o||n.blend!==a.blend)&&(t.globalCompositeOperation=n.blend||"source-over"),this.hasStroke()){var u=n.lineWidth;t.lineWidth=u/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this.stroke;return null!=t&&"none"!==t&&this.lineWidth>0},extendFrom:function(t,e){if(t)for(var i in t)!t.hasOwnProperty(i)||!0!==e&&(!1===e?this.hasOwnProperty(i):null==t[i])||(this[i]=t[i])},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,i){for(var n=("radial"===e.type?we:_e)(t,e,i),a=e.colorStops,o=0;o<a.length;o++)n.addColorStop(a[o].offset,a[o].color);return n}};for(var Jw=Kw.prototype,Qw=0;Qw<$w.length;Qw++){var tb=$w[Qw];tb[0]in Jw||(Jw[tb[0]]=tb[1])}Kw.getGradient=Jw.getGradient;var eb=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};eb.prototype.getCanvasPattern=function(t){return t.createPattern(this.image,this.repeat||"repeat")};var ib=function(t,e,i){var n;i=i||Rw,"string"==typeof t?n=Se(t,e,i):b(t)&&(t=(n=t).id),this.id=t,this.dom=n;var a=n.style;a&&(n.onselectstart=be,a["-webkit-user-select"]="none",a["user-select"]="none",a["-webkit-touch-callout"]="none",a["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",a.padding=0,a.margin=0,a["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=e,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=i};ib.prototype={constructor:ib,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=Se("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!=t&&this.ctxBack.scale(t,t)},resize:function(t,e){var i=this.dpr,n=this.dom,a=n.style,o=this.domBack;a&&(a.width=t+"px",a.height=e+"px"),n.width=t*i,n.height=e*i,o&&(o.width=t*i,o.height=e*i,1!=i&&this.ctxBack.scale(i,i))},clear:function(t,e){var i,n=this.dom,a=this.ctx,o=n.width,r=n.height,s=(e=e||this.clearColor,this.motionBlur&&!t),l=this.lastFrameAlpha,u=this.dpr;(s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,o/u,r/u)),a.clearRect(0,0,o,r),e&&"transparent"!==e)&&(e.colorStops?(i=e.__canvasGradient||Kw.getGradient(a,e,{x:0,y:0,width:o,height:r}),e.__canvasGradient=i):e.image&&(i=eb.prototype.getCanvasPattern.call(e,a)),a.save(),a.fillStyle=i||e,a.fillRect(0,0,o,r),a.restore());if(s){var h=this.domBack;a.save(),a.globalAlpha=l,a.drawImage(h,0,0,o,r),a.restore()}}};var nb="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){setTimeout(t,16)},ab=new Iw(50),ob={},rb=0,sb=5e3,lb=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,ub="12px sans-serif",hb={measureText:function(t,e){var i=l();return i.font=e||ub,i.measureText(t)}},cb={left:1,right:1,center:1},db={top:1,bottom:1,middle:1},fb=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],pb=new he,gb=function(){};gb.prototype={constructor:gb,drawRectText:function(t,e){var i=this.style;e=i.textRect||e,this.__dirty&&je(i);var n=i.text;if(null!=n&&(n+=""),ui(n,i)){t.save();var a=this.transform;i.transformText?this.setTransform(t):a&&(pb.copy(e),pb.applyTransform(a),e=pb),Ye(this,t,n,i,e),t.restore()}}},hi.prototype={constructor:hi,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(t){},afterBrush:function(t){},brush:function(t,e){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var i=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(i[0],i[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?Fw.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new Kw(t,this),this.dirty(!1),this}},h(hi,Fw),c(hi,gb),ci.prototype={constructor:ci,type:"image",brush:function(t,e){var i=this.style,n=i.image;i.bind(t,this,e);var a=this._image=Ie(n,this._image,this,this.onload);if(a&&Ae(a)){var o=i.x||0,r=i.y||0,s=i.width,l=i.height,u=a.width/a.height;if(null==s&&null!=l?s=l*u:null==l&&null!=s?l=s/u:null==s&&null==l&&(s=a.width,l=a.height),this.setTransform(t),i.sWidth&&i.sHeight){var h=i.sx||0,c=i.sy||0;t.drawImage(a,h,c,i.sWidth,i.sHeight,o,r,s,l)}else if(i.sx&&i.sy){var d=s-(h=i.sx),f=l-(c=i.sy);t.drawImage(a,h,c,d,f,o,r,s,l)}else t.drawImage(a,o,r,s,l);null!=i.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new he(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},h(ci,hi);var mb=new he(0,0,0,0),vb=new he(0,0,0,0),yb=function(t,e,i){this.type="canvas";var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=r({},i||{}),this.dpr=i.devicePixelRatio||Rw,this._singleCanvas=n,this.root=t;var a=t.style;a&&(a["-webkit-tap-highlight-color"]="transparent",a["-webkit-user-select"]=a["user-select"]=a["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var o=this._zlevelList=[],s=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,n){var l=t.width,u=t.height;null!=i.width&&(l=i.width),null!=i.height&&(u=i.height),this.dpr=i.devicePixelRatio||1,t.width=l*this.dpr,t.height=u*this.dpr,this._width=l,this._height=u;var h=new ib(t,this,this.dpr);h.__builtin__=!0,h.initContext(),s[314159]=h,h.zlevel=314159,o.push(314159),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var c=this._domRoot=vi(this._width,this._height);t.appendChild(c)}this._hoverlayer=null,this._hoverElements=[]};yb.prototype={constructor:yb,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(t){var e=this.storage.getDisplayList(!0),i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,t,this._redrawId);for(var n=0;n<i.length;n++){var a=i[n],o=this._layers[a];if(!o.__builtin__&&o.refresh){var r=0===n?this._backgroundColor:null;o.refresh(r)}}return this.refreshHover(),this},addHover:function(t,e){if(!t.__hoverMir){var i=new t.constructor({style:t.style,shape:t.shape,z:t.z,z2:t.z2,silent:t.silent});return i.__from=t,t.__hoverMir=i,e&&i.setStyle(e),this._hoverElements.push(i),i}},removeHover:function(t){var e=t.__hoverMir,i=this._hoverElements,n=u(i,e);n>=0&&i.splice(n,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,i=0;i<e.length;i++){var n=e[i].__from;n&&(n.__hoverMir=null)}e.length=0},refreshHover:function(){var t=this._hoverElements,e=t.length,i=this._hoverlayer;if(i&&i.clear(),e){ye(t,this.storage.displayableSortFunc),i||(i=this._hoverlayer=this.getLayer(1e5));var n={};i.ctx.save();for(var a=0;a<e;){var o=t[a],r=o.__from;r&&r.__zr?(a++,r.invisible||(o.transform=r.transform,o.invTransform=r.invTransform,o.__clipPaths=r.__clipPaths,this._doPaintEl(o,i,!0,n))):(t.splice(a,1),r.__hoverMir=null,e--)}i.ctx.restore()}},getHoverLayer:function(){return this.getLayer(1e5)},_paintList:function(t,e,i){if(this._redrawId===i){e=e||!1,this._updateLayerStatus(t);var n=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),!n){var a=this;nb((function(){a._paintList(t,e,i)}))}}},_compositeManually:function(){var t=this.getLayer(314159).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer((function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)}))},_doPaintList:function(e,i){for(var n=[],a=0;a<this._zlevelList.length;a++){var o=this._zlevelList[a];(l=this._layers[o]).__builtin__&&l!==this._hoverlayer&&(l.__dirty||i)&&n.push(l)}for(var r=!0,s=0;s<n.length;s++){var l=n[s],u=l.ctx,h={};u.save();var c=i?l.__startIndex:l.__drawIndex,d=!i&&l.incremental&&Date.now,p=d&&Date.now(),g=l.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,g);else if(c===l.__startIndex){var m=e[c];m.incremental&&m.notClear&&!i||l.clear(!1,g)}-1===c&&(t.error("For some unknown reason. drawIndex is -1"),c=l.__startIndex);for(var v=c;v<l.__endIndex;v++){var y=e[v];if(this._doPaintEl(y,l,i,h),y.__dirty=y.__dirtyText=!1,d&&Date.now()-p>15)break}l.__drawIndex=v,l.__drawIndex<l.__endIndex&&(r=!1),h.prevElClipPaths&&u.restore(),u.restore()}return z_.wxa&&f(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),r},_doPaintEl:function(t,e,i,n){var a=e.ctx,o=t.transform;if((e.__dirty||i)&&!t.invisible&&0!==t.style.opacity&&(!o||o[0]||o[3])&&(!t.culling||!pi(t,this._width,this._height))){var r=t.__clipPaths;n.prevElClipPaths&&!gi(r,n.prevElClipPaths)||(n.prevElClipPaths&&(e.ctx.restore(),n.prevElClipPaths=null,n.prevEl=null),r&&(a.save(),mi(r,a),n.prevElClipPaths=r)),t.beforeBrush&&t.beforeBrush(a),t.brush(a,n.prevEl||null),n.prevEl=t,t.afterBrush&&t.afterBrush(a)}},getLayer:function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=314159);var i=this._layers[t];return i||((i=new ib("zr_"+t,this,this.dpr)).zlevel=t,i.__builtin__=!0,this._layerConfig[t]&&a(i,this._layerConfig[t],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},insertLayer:function(t,e){var i=this._layers,n=this._zlevelList,a=n.length,o=null,r=-1,s=this._domRoot;if(i[t])Bw("ZLevel "+t+" has been used already");else if(fi(e)){if(a>0&&t>n[0]){for(r=0;r<a-1&&!(n[r]<t&&n[r+1]>t);r++);o=i[n[r]]}if(n.splice(r+1,0,t),i[t]=e,!e.virtual)if(o){var l=o.dom;l.nextSibling?s.insertBefore(e.dom,l.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}else Bw("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var i,n,a=this._zlevelList;for(n=0;n<a.length;n++)i=a[n],t.call(e,this._layers[i],i)},eachBuiltinLayer:function(t,e){var i,n,a,o=this._zlevelList;for(a=0;a<o.length;a++)n=o[a],(i=this._layers[n]).__builtin__&&t.call(e,i,n)},eachOtherLayer:function(t,e){var i,n,a,o=this._zlevelList;for(a=0;a<o.length;a++)n=o[a],(i=this._layers[n]).__builtin__||t.call(e,i,n)},getLayers:function(){return this._layers},_updateLayerStatus:function(t){function e(t){i&&(i.__endIndex!==t&&(i.__dirty=!0),i.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(a=1;a<t.length;a++)if((r=t[a]).zlevel!==t[a-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}for(var i=null,n=0,a=0;a<t.length;a++){var o,r=t[a],s=r.zlevel;r.incremental?((o=this.getLayer(s+.001,this._needsManuallyCompositing)).incremental=!0,n=1):o=this.getLayer(s+(n>0?.01:0),this._needsManuallyCompositing),o.__builtin__||Bw("ZLevel "+s+" has been used by unkown layer "+o.id),o!==i&&(o.__used=!0,o.__startIndex!==a&&(o.__dirty=!0),o.__startIndex=a,o.incremental?o.__drawIndex=-1:o.__drawIndex=a,e(a),i=o),r.__dirty&&(o.__dirty=!0,o.incremental&&o.__drawIndex<0&&(o.__drawIndex=a))}e(a),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},setBackgroundColor:function(t){this._backgroundColor=t},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?a(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var o=this._zlevelList[n];o!==t&&o!==t+.01||a(this._layers[o],i[t],!0)}}},delLayer:function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(u(i,t),1))},resize:function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!=t||e!=this._height){for(var a in i.style.width=t+"px",i.style.height=e+"px",this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,e);f(this._progressiveLayers,(function(i){i.resize(t,e)})),this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(314159).resize(t,e)}return this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new ib("image",this,t.pixelRatio||this.dpr);if(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,n=e.dom.height,a=e.ctx;this.eachLayer((function(t){t.__builtin__?a.drawImage(t.dom,0,0,i,n):t.renderToCanvas&&(e.ctx.save(),t.renderToCanvas(e.ctx),e.ctx.restore())}))}else for(var o={},r=this.storage.getDisplayList(!0),s=0;s<r.length;s++){var l=r[s];this._doPaintEl(l,e,!0,o)}return e.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[i]&&"auto"!==e[i])return parseFloat(e[i]);var r=this.root,s=document.defaultView.getComputedStyle(r);return(r[n]||di(s[i])||di(r.style[i]))-(di(s[a])||0)-(di(s[o])||0)|0},pathToImage:function(t,e){e=e||this.dpr;var i=document.createElement("canvas"),n=i.getContext("2d"),a=t.getBoundingRect(),o=t.style,r=o.shadowBlur*e,s=o.shadowOffsetX*e,l=o.shadowOffsetY*e,u=o.hasStroke()?o.lineWidth:0,h=Math.max(u/2,-s+r),c=Math.max(u/2,s+r),d=Math.max(u/2,-l+r),f=Math.max(u/2,l+r),p=a.width+h+c,g=a.height+d+f;i.width=p*e,i.height=g*e,n.scale(e,e),n.clearRect(0,0,p,g),n.dpr=e;var m={position:t.position,rotation:t.rotation,scale:t.scale};t.position=[h-a.x,d-a.y],t.rotation=0,t.scale=[1,1],t.updateTransform(),t&&t.brush(n);var v=new ci({style:{x:0,y:0,image:i}});return null!=m.position&&(v.position=t.position=m.position),null!=m.rotation&&(v.rotation=t.rotation=m.rotation),null!=m.scale&&(v.scale=t.scale=m.scale),v}};var xb=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,ow.call(this)};xb.prototype={constructor:xb,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),i=0;i<e.length;i++)this.addClip(e[i])},removeClip:function(t){var e=u(this._clips,t);e>=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i<e.length;i++)this.removeClip(e[i]);t.animation=null},_update:function(){for(var t=(new Date).getTime()-this._pausedTime,e=t-this._time,i=this._clips,n=i.length,a=[],o=[],r=0;r<n;r++){var s=i[r],l=s.step(t,e);l&&(a.push(l),o.push(s))}for(r=0;r<n;)i[r]._needsRemove?(i[r]=i[n-1],i.pop(),n--):r++;for(n=a.length,r=0;r<n;r++)o[r].fire(a[r]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},_startLoop:function(){function t(){e._running&&(nb(t),!e._paused&&e._update())}var e=this;this._running=!0,nb(t)},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(t,e){var i=new Ow(t,(e=e||{}).loop,e.getter,e.setter);return this.addAnimator(i),i}},c(xb,ow);var _b=function(){this._track=[]};_b.prototype={constructor:_b,recognize:function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:e,event:t},o=0,r=n.length;o<r;o++){var s=n[o],l=st(i,s,{});a.points.push([l.zrX,l.zrY]),a.touches.push(s)}this._track.push(a)}},_recognize:function(t){for(var e in wb)if(wb.hasOwnProperty(e)){var i=wb[e](this._track,t);if(i)return i}}};var wb={pinch:function(t,e){var i=t.length;if(i){var n=(t[i-1]||{}).points,a=(t[i-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var o=yi(n)/yi(a);!isFinite(o)&&(o=1),e.pinchScale=o;var r=xi(n);return e.pinchX=r[0],e.pinchY=r[1],{type:"pinch",target:t[0].target,event:e}}}}},bb=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Sb=["touchstart","touchend","touchmove"],Mb={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},Ib=p(bb,(function(t){var e=t.replace("mouse","pointer");return Mb[e]?e:t})),Tb={mousemove:function(t){t=ut(this.dom,t),this.trigger("mousemove",t)},mouseout:function(t){var e=(t=ut(this.dom,t)).toElement||t.relatedTarget;if(e!=this.dom)for(;e&&9!=e.nodeType;){if(e===this.dom)return;e=e.parentNode}this.trigger("mouseout",t)},touchstart:function(t){(t=ut(this.dom,t)).zrByTouch=!0,this._lastTouchMoment=new Date,wi(this,t,"start"),Tb.mousemove.call(this,t),Tb.mousedown.call(this,t),bi(this)},touchmove:function(t){(t=ut(this.dom,t)).zrByTouch=!0,wi(this,t,"change"),Tb.mousemove.call(this,t),bi(this)},touchend:function(t){(t=ut(this.dom,t)).zrByTouch=!0,wi(this,t,"end"),Tb.mouseup.call(this,t),+new Date-this._lastTouchMoment<300&&Tb.click.call(this,t),bi(this)},pointerdown:function(t){Tb.mousedown.call(this,t)},pointermove:function(t){Si(t)||Tb.mousemove.call(this,t)},pointerup:function(t){Tb.mouseup.call(this,t)},pointerout:function(t){Si(t)||Tb.mouseout.call(this,t)}};f(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Tb[t]=function(e){e=ut(this.dom,e),this.trigger(t,e)}}));var Ab=Ii.prototype;Ab.dispose=function(){for(var t=bb.concat(Sb),e=0;e<t.length;e++){var i=t[e];ct(this.dom,_i(i),this._handlers[i])}},Ab.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},c(Ii,ow);var Db=!z_.canvasSupported,Cb={canvas:yb},Lb={},kb=function(t,e,i){i=i||{},this.dom=e,this.id=t;var n=this,a=new Xw,o=i.renderer;if(Db){if(!Cb.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");o="vml"}else o&&Cb[o]||(o="canvas");var r=new Cb[o](e,a,i,t);this.storage=a,this.painter=r;var s=z_.node||z_.worker?null:new Ii(r.getViewportRoot());this.handler=new cw(a,r,s,r.root),this.animation=new xb({stage:{update:v(this.flush,this)}}),this.animation.start(),this._needsRefresh;var l=a.delFromStorage,u=a.addToStorage;a.delFromStorage=function(t){l.call(a,t),t&&t.removeSelfFromZr(n)},a.addToStorage=function(t){u.call(a,t),t.addSelfToZr(n)}};kb.prototype={constructor:kb,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this._needsRefresh=!0},setBackgroundColor:function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var t;this._needsRefresh&&(t=!0,this.refreshImmediately()),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately()),t&&this.trigger("rendered")},addHover:function(t,e){if(this.painter.addHover){var i=this.painter.addHover(t,e);return this.refreshHover(),i}},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(t,e){return this.painter.pathToImage(t,e)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},findHover:function(t,e){return this.handler.findHover(t,e)},on:function(t,e,i){this.handler.on(t,e,i)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,Di(this.id)}};var Pb=(Object.freeze||Object)({version:"4.0.5",init:Ti,dispose:function(t){if(t)t.dispose();else{for(var e in Lb)Lb.hasOwnProperty(e)&&Lb[e].dispose();Lb={}}return this},getInstance:function(t){return Lb[t]},registerPainter:Ai}),Nb=f,Ob=b,Eb=x,Rb="series\0",zb=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"],Bb=0,Vb=".",Fb="___EC__COMPONENT__CONTAINER___",Gb=0,Wb=function(t){for(var e=0;e<t.length;e++)t[e][1]||(t[e][1]=t[e][0]);return function(e,i,n){for(var a={},o=0;o<t.length;o++){var r=t[o][1];if(!(i&&u(i,r)>=0||n&&u(n,r)<0)){var s=e.getShallow(r);null!=s&&(a[t[o][0]]=s)}}return a}},Hb=Wb([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Ub={getLineStyle:function(t){var e=Hb(this,t),i=this.getLineDash(e.lineWidth);return i&&(e.lineDash=i),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),i=Math.max(t,2),n=4*t;return"solid"===e||null==e?null:"dashed"===e?[n,n]:[i,i]}},Zb=Wb([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),jb={getAreaStyle:function(t,e){return Zb(this,t,e)}},Xb=Math.pow,Yb=Math.sqrt,qb=1e-8,$b=1e-4,Kb=Yb(3),Jb=1/3,Qb=F(),tS=F(),eS=F(),iS=Math.min,nS=Math.max,aS=Math.sin,oS=Math.cos,rS=2*Math.PI,sS=F(),lS=F(),uS=F(),hS=[],cS=[],dS={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fS=[],pS=[],gS=[],mS=[],vS=Math.min,yS=Math.max,xS=Math.cos,_S=Math.sin,wS=Math.sqrt,bS=Math.abs,SS="undefined"!=typeof Float32Array,MS=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};MS.prototype={constructor:MS,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=bS(1/Rw/t)||0,this._uy=bS(1/Rw/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(dS.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var i=bS(t-this._xi)>this._ux||bS(e-this._yi)>this._uy||this._len<5;return this.addData(dS.L,t,e),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,i,n,a,o){return this.addData(dS.C,t,e,i,n,a,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,a,o):this._ctx.bezierCurveTo(t,e,i,n,a,o)),this._xi=a,this._yi=o,this},quadraticCurveTo:function(t,e,i,n){return this.addData(dS.Q,t,e,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,a,o){return this.addData(dS.A,t,e,i,i,n,a-n,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=xS(a)*i+t,this._yi=_S(a)*i+e,this},arcTo:function(t,e,i,n,a){return this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData(dS.R,t,e,i,n),this},closePath:function(){this.addData(dS.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;i<t.length;i++)e+=t[i];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t.length;this.data&&this.data.length==e||!SS||(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,a=0;a<e;a++)i+=t[a].len();for(SS&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i)),a=0;a<e;a++)for(var o=t[a].data,r=0;r<o.length;r++)this.data[n++]=o[r];this._len=n},addData:function(t){if(this._saveData){var e=this.data;this._len+arguments.length>e.length&&(this._expandData(),e=this.data);for(var i=0;i<arguments.length;i++)e[this._len++]=arguments[i];this._prevCmd=t}},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var i,n,a=this._dashSum,o=this._dashOffset,r=this._lineDash,s=this._ctx,l=this._xi,u=this._yi,h=t-l,c=e-u,d=wS(h*h+c*c),f=l,p=u,g=r.length;for(h/=d,c/=d,o<0&&(o=a+o),f-=(o%=a)*h,p-=o*c;h>0&&f<=t||h<0&&f>=t||0==h&&(c>0&&p<=e||c<0&&p>=e);)f+=h*(i=r[n=this._dashIdx]),p+=c*i,this._dashIdx=(n+1)%g,h>0&&f<l||h<0&&f>l||c>0&&p<u||c<0&&p>u||s[n%2?"moveTo":"lineTo"](h>=0?vS(f,t):yS(f,t),c>=0?vS(p,e):yS(p,e));h=f-t,c=p-e,this._dashOffset=-wS(h*h+c*c)},_dashedBezierTo:function(t,e,i,n,a,o){var r,s,l,u,h,c=this._dashSum,d=this._dashOffset,f=this._lineDash,p=this._ctx,g=this._xi,m=this._yi,v=tn,y=0,x=this._dashIdx,_=f.length,w=0;for(d<0&&(d=c+d),d%=c,r=0;r<1;r+=.1)s=v(g,t,i,a,r+.1)-v(g,t,i,a,r),l=v(m,e,n,o,r+.1)-v(m,e,n,o,r),y+=wS(s*s+l*l);for(;x<_&&!((w+=f[x])>d);x++);for(r=(w-d)/y;r<=1;)u=v(g,t,i,a,r),h=v(m,e,n,o,r),x%2?p.moveTo(u,h):p.lineTo(u,h),r+=f[x]/y,x=(x+1)%_;x%2!=0&&p.lineTo(a,o),s=a-u,l=o-h,this._dashOffset=-wS(s*s+l*l)},_dashedQuadraticTo:function(t,e,i,n){var a=i,o=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,a,o)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,SS&&(this.data=new Float32Array(t)))},getBoundingRect:function(){fS[0]=fS[1]=gS[0]=gS[1]=Number.MAX_VALUE,pS[0]=pS[1]=mS[0]=mS[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,n=0,a=0,o=0;o<t.length;){var r=t[o++];switch(1==o&&(n=e=t[o],a=i=t[o+1]),r){case dS.M:e=n=t[o++],i=a=t[o++],gS[0]=n,gS[1]=a,mS[0]=n,mS[1]=a;break;case dS.L:pn(e,i,t[o],t[o+1],gS,mS),e=t[o++],i=t[o++];break;case dS.C:gn(e,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],gS,mS),e=t[o++],i=t[o++];break;case dS.Q:mn(e,i,t[o++],t[o++],t[o],t[o+1],gS,mS),e=t[o++],i=t[o++];break;case dS.A:var s=t[o++],l=t[o++],u=t[o++],h=t[o++],c=t[o++],d=t[o++]+c,f=(t[o++],1-t[o++]);1==o&&(n=xS(c)*u+s,a=_S(c)*h+l),vn(s,l,u,h,c,d,f,gS,mS),e=xS(d)*u+s,i=_S(d)*h+l;break;case dS.R:pn(n=e=t[o++],a=i=t[o++],n+t[o++],a+t[o++],gS,mS);break;case dS.Z:e=n,i=a}et(fS,fS,gS),it(pS,pS,mS)}return 0===o&&(fS[0]=fS[1]=pS[0]=pS[1]=0),new he(fS[0],fS[1],pS[0]-fS[0],pS[1]-fS[1])},rebuildPath:function(t){for(var e,i,n,a,o,r,s=this.data,l=this._ux,u=this._uy,h=this._len,c=0;c<h;){var d=s[c++];switch(1==c&&(e=n=s[c],i=a=s[c+1]),d){case dS.M:e=n=s[c++],i=a=s[c++],t.moveTo(n,a);break;case dS.L:o=s[c++],r=s[c++],(bS(o-n)>l||bS(r-a)>u||c===h-1)&&(t.lineTo(o,r),n=o,a=r);break;case dS.C:t.bezierCurveTo(s[c++],s[c++],s[c++],s[c++],s[c++],s[c++]),n=s[c-2],a=s[c-1];break;case dS.Q:t.quadraticCurveTo(s[c++],s[c++],s[c++],s[c++]),n=s[c-2],a=s[c-1];break;case dS.A:var f=s[c++],p=s[c++],g=s[c++],m=s[c++],v=s[c++],y=s[c++],x=s[c++],_=s[c++],w=g>m?g:m,b=g>m?1:g/m,S=g>m?m/g:1,M=v+y;Math.abs(g-m)>.001?(t.translate(f,p),t.rotate(x),t.scale(b,S),t.arc(0,0,w,v,M,1-_),t.scale(1/b,1/S),t.rotate(-x),t.translate(-f,-p)):t.arc(f,p,w,v,M,1-_),1==c&&(e=xS(v)*g+f,i=_S(v)*m+p),n=xS(M)*g+f,a=_S(M)*m+p;break;case dS.R:e=n=s[c],i=a=s[c+1],t.rect(s[c++],s[c++],s[c++],s[c++]);break;case dS.Z:t.closePath(),n=e,a=i}}}},MS.CMD=dS;var IS=2*Math.PI,TS=2*Math.PI,AS=MS.CMD,DS=2*Math.PI,CS=1e-4,LS=[-1,-1,-1],kS=[-1,-1],PS=eb.prototype.getCanvasPattern,NS=Math.abs,OS=new MS(!0);Pn.prototype={constructor:Pn,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var i,n=this.style,a=this.path||OS,o=n.hasStroke(),r=n.hasFill(),s=n.fill,l=n.stroke,u=r&&!!s.colorStops,h=o&&!!l.colorStops,c=r&&!!s.image,d=o&&!!l.image;(n.bind(t,this,e),this.setTransform(t),this.__dirty)&&(u&&(i=i||this.getBoundingRect(),this._fillGradient=n.getGradient(t,s,i)),h&&(i=i||this.getBoundingRect(),this._strokeGradient=n.getGradient(t,l,i)));u?t.fillStyle=this._fillGradient:c&&(t.fillStyle=PS.call(s,t)),h?t.strokeStyle=this._strokeGradient:d&&(t.strokeStyle=PS.call(l,t));var f=n.lineDash,p=n.lineDashOffset,g=!!t.setLineDash,m=this.getGlobalScale();if(a.setScale(m[0],m[1]),this.__dirtyPath||f&&!g&&o?(a.beginPath(t),f&&!g&&(a.setLineDash(f),a.setLineDashOffset(p)),this.buildPath(a,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),r&&(null!=n.fillOpacity?(v=t.globalAlpha,t.globalAlpha=n.fillOpacity*n.opacity,a.fill(t),t.globalAlpha=v):a.fill(t)),f&&g&&(t.setLineDash(f),t.lineDashOffset=p),o)if(null!=n.strokeOpacity){var v=t.globalAlpha;t.globalAlpha=n.strokeOpacity*n.opacity,a.stroke(t),t.globalAlpha=v}else a.stroke(t);f&&g&&t.setLineDash([]),null!=n.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))},buildPath:function(t,e,i){},createPathProxy:function(){this.path=new MS},getBoundingRect:function(){var t=this._rect,e=this.style,i=!t;if(i){var n=this.path;n||(n=this.path=new MS),this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape,!1)),t=n.getBoundingRect()}if(this._rect=t,e.hasStroke()){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){a.copy(t);var o=e.lineWidth,r=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),r>1e-10&&(a.width+=o/r,a.height+=o/r,a.x-=o/r/2,a.y-=o/r/2)}return a}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),a=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var o=this.path.data;if(a.hasStroke()){var r=a.lineWidth,s=a.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(a.hasFill()||(r=Math.max(r,this.strokeContainThreshold)),kn(o,r/s,t,e)))return!0}if(a.hasFill())return Ln(o,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):hi.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(b(t))for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&NS(t[0]-1)>1e-10&&NS(t[3]-1)>1e-10?Math.sqrt(NS(t[0]*t[3]-t[2]*t[1])):1}},Pn.extend=function(t){var e=function(e){Pn.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var i=t.shape;if(i){this.shape=this.shape||{};var n=this.shape;for(var a in i)!n.hasOwnProperty(a)&&i.hasOwnProperty(a)&&(n[a]=i[a])}t.init&&t.init.call(this,e)};for(var i in h(e,Pn),t)"style"!==i&&"shape"!==i&&(e.prototype[i]=t[i]);return e},h(Pn,hi);var ES=MS.CMD,RS=[[],[],[]],zS=Math.sqrt,BS=Math.atan2,VS=function(t,e){var i,n,a,o,r,s,l=t.data,u=ES.M,h=ES.C,c=ES.L,d=ES.R,f=ES.A,p=ES.Q;for(a=0,o=0;a<l.length;){switch(i=l[a++],o=a,n=0,i){case u:case c:n=1;break;case h:n=3;break;case p:n=2;break;case f:var g=e[4],m=e[5],v=zS(e[0]*e[0]+e[1]*e[1]),y=zS(e[2]*e[2]+e[3]*e[3]),x=BS(-e[1]/y,e[0]/v);l[a]*=v,l[a++]+=g,l[a]*=y,l[a++]+=m,l[a++]*=v,l[a++]*=y,l[a++]+=x,l[a++]+=x,o=a+=2;break;case d:s[0]=l[a++],s[1]=l[a++],tt(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[a++],s[1]+=l[a++],tt(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(r=0;r<n;r++)(s=RS[r])[0]=l[a++],s[1]=l[a++],tt(s,s,e),l[o++]=s[0],l[o++]=s[1]}},FS=Math.sqrt,GS=Math.sin,WS=Math.cos,HS=Math.PI,US=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},ZS=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(US(t)*US(e))},jS=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(ZS(t,e))},XS=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,YS=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,qS=function(t){hi.call(this,t)};qS.prototype={constructor:qS,type:"text",brush:function(t,e){var i=this.style;this.__dirty&&je(i),i.fill=i.stroke=i.shadowBlur=i.shadowColor=i.shadowOffsetX=i.shadowOffsetY=null;var n=i.text;null!=n&&(n+=""),ui(n,i)&&(this.setTransform(t),Ye(this,t,n,i,null,e),this.restoreTransform(t))},getBoundingRect:function(){var t=this.style;if(this.__dirty&&je(t),!this._rect){var e=t.text;null!=e?e+="":e="";var i=Ce(t.text+"",t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.rich);if(i.x+=t.x||0,i.y+=t.y||0,oi(t.textStroke,t.textStrokeWidth)){var n=t.textStrokeWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect}},h(qS,hi);var $S=Pn.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,i){i&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}}),KS=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]],JS=function(t){return z_.browser.ie&&z_.browser.version>=11?function(){var e,i=this.__clipPaths,n=this.style;if(i)for(var a=0;a<i.length;a++){var o=i[a],r=o&&o.shape,s=o&&o.type;if(r&&("sector"===s&&r.startAngle===r.endAngle||"rect"===s&&(!r.width||!r.height))){for(l=0;l<KS.length;l++)KS[l][2]=n[KS[l][0]],n[KS[l][0]]=KS[l][1];e=!0;break}}if(t.apply(this,arguments),e)for(var l=0;l<KS.length;l++)n[KS[l][0]]=KS[l][2]}:t},QS=Pn.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:JS(Pn.prototype.brush),buildPath:function(t,e){var i=e.cx,n=e.cy,a=Math.max(e.r0||0,0),o=Math.max(e.r,0),r=e.startAngle,s=e.endAngle,l=e.clockwise,u=Math.cos(r),h=Math.sin(r);t.moveTo(u*a+i,h*a+n),t.lineTo(u*o+i,h*o+n),t.arc(i,n,o,r,s,!l),t.lineTo(Math.cos(s)*a+i,Math.sin(s)*a+n),0!==a&&t.arc(i,n,a,s,r,l),t.closePath()}}),tM=Pn.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var i=e.cx,n=e.cy,a=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,a,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,a,!0)}}),eM=function(t,e){for(var i=t.length,n=[],a=0,o=1;o<i;o++)a+=K(t[o-1],t[o]);var r=a/2;for(r=r<i?i:r,o=0;o<r;o++){var s,l,u,h=o/(r-1)*(e?i:i-1),c=Math.floor(h),d=h-c,f=t[c%i];e?(s=t[(c-1+i)%i],l=t[(c+1)%i],u=t[(c+2)%i]):(s=t[0===c?c:c-1],l=t[c>i-2?i-1:c+1],u=t[c>i-3?i-1:c+2]);var p=d*d,g=d*p;n.push([Bn(s[0],f[0],l[0],u[0],d,p,g),Bn(s[1],f[1],l[1],u[1],d,p,g)])}return n},iM=function(t,e,i,n){var a,o,r,s,l=[],u=[],h=[],c=[];if(n){r=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=t.length;d<f;d++)et(r,r,t[d]),it(s,s,t[d]);et(r,r,n[0]),it(s,s,n[1])}for(d=0,f=t.length;d<f;d++){var p=t[d];if(i)a=t[d?d-1:f-1],o=t[(d+1)%f];else{if(0===d||d===f-1){l.push(W(t[d]));continue}a=t[d-1],o=t[d+1]}j(u,o,a),q(u,u,e);var g=K(p,a),m=K(p,o),v=g+m;0!==v&&(g/=v,m/=v),q(h,u,-g),q(c,u,m);var y=U([],p,h),x=U([],p,c);n&&(it(y,y,r),et(y,y,s),it(x,x,r),et(x,x,s)),l.push(y),l.push(x)}return i&&l.push(l.shift()),l},nM=Pn.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){Vn(t,e,!0)}}),aM=Pn.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){Vn(t,e,!1)}}),oM=Pn.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,a=e.width,o=e.height;e.r?Ze(t,e):t.rect(i,n,a,o),t.closePath()}}),rM=Pn.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,n=e.y1,a=e.x2,o=e.y2,r=e.percent;0!==r&&(t.moveTo(i,n),r<1&&(a=i*(1-r)+a*r,o=n*(1-r)+o*r),t.lineTo(a,o))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}}),sM=[],lM=Pn.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,n=e.y1,a=e.x2,o=e.y2,r=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,h=e.percent;0!==h&&(t.moveTo(i,n),null==l||null==u?(h<1&&(cn(i,r,a,h,sM),r=sM[1],a=sM[2],cn(n,s,o,h,sM),s=sM[1],o=sM[2]),t.quadraticCurveTo(r,s,a,o)):(h<1&&(on(i,r,l,a,h,sM),r=sM[1],l=sM[2],a=sM[3],on(n,s,u,o,h,sM),s=sM[1],u=sM[2],o=sM[3]),t.bezierCurveTo(r,s,l,u,a,o)))},pointAt:function(t){return Fn(this.shape,t,!1)},tangentAt:function(t){var e=Fn(this.shape,t,!0);return $(e,e)}}),uM=Pn.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.cx,n=e.cy,a=Math.max(e.r,0),o=e.startAngle,r=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*a+i,u*a+n),t.arc(i,n,a,o,r,!s)}}),hM=Pn.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,i=0;i<e.length;i++)t=t||e[i].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(e[0],e[1])},buildPath:function(t,e){for(var i=e.paths||[],n=0;n<i.length;n++)i[n].buildPath(t,i[n].shape,!0)},afterBrush:function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),Pn.prototype.getBoundingRect.call(this)}}),cM=function(t){this.colorStops=t||[]};cM.prototype={constructor:cM,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}};var dM=function(t,e,i,n,a,o){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==i?1:i,this.y2=null==n?0:n,this.type="linear",this.global=o||!1,cM.call(this,a)};dM.prototype={constructor:dM},h(dM,cM);var fM=function(t,e,i,n,a){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==i?.5:i,this.type="radial",this.global=a||!1,cM.call(this,n)};fM.prototype={constructor:fM},h(fM,cM),Gn.prototype.incremental=!0,Gn.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},Gn.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.dirty()},Gn.prototype.addDisplayables=function(t,e){e=e||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],e)},Gn.prototype.eachPendingDisplayable=function(t){for(e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(var e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},Gn.prototype.update=function(){for(this.updateTransform(),t=this._cursor;t<this._displayables.length;t++)(e=this._displayables[t]).parent=this,e.update(),e.parent=null;for(var t=0;t<this._temporaryDisplayables.length;t++){var e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},Gn.prototype.brush=function(t,e){for(i=this._cursor;i<this._displayables.length;i++)(n=this._displayables[i]).beforeBrush&&n.beforeBrush(t),n.brush(t,i===this._cursor?null:this._displayables[i-1]),n.afterBrush&&n.afterBrush(t);this._cursor=i;for(var i=0;i<this._temporaryDisplayables.length;i++){var n=this._temporaryDisplayables[i];n.beforeBrush&&n.beforeBrush(t),n.brush(t,0===i?null:this._temporaryDisplayables[i-1]),n.afterBrush&&n.afterBrush(t)}this._temporaryDisplayables=[],this.notClear=!0};var pM=[];Gn.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new he(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var i=this._displayables[e],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(pM)),t.union(n)}this._rect=t}return this._rect},Gn.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(i[0],i[1]))for(var n=0;n<this._displayables.length;n++)if(this._displayables[n].contain(t,e))return!0;return!1},h(Gn,hi);var gM=Math.round,mM=Math.max,vM=Math.min,yM={},xM=function(t,e){for(var i=[],n=t.length,a=0;a<n;a++){var o=t[a];o.path||o.createPathProxy(),o.__dirtyPath&&o.buildPath(o.path,o.shape,!0),i.push(o.path)}var r=new Pn(e);return r.createPathProxy(),r.buildPath=function(t){t.appendPath(i);var e=t.getContext();e&&t.rebuildPath(e)},r},_M=z(),wM=0,bM=(Object.freeze||Object)({extendShape:Wn,extendPath:function(t,e){return zn(t,e)},makePath:Hn,makeImage:Un,mergePath:xM,resizePath:jn,subPixelOptimizeLine:Xn,subPixelOptimizeRect:Yn,subPixelOptimize:qn,setElementHoverStyle:aa,isInEmphasis:oa,setHoverStyle:ha,setAsHoverStyleTrigger:ca,setLabelStyle:da,setTextStyle:fa,setText:function(t,e,i){var n,a={isRectText:!0};!1===i?n=!0:a.autoColor=i,pa(t,e,a,n)},getFont:_a,updateProps:ba,initProps:Sa,getTransform:Ma,applyTransform:Ia,transformDirection:Ta,groupTransition:Aa,clipPointsByRect:Da,clipRectByRect:function(t,e){var i=mM(t.x,e.x),n=vM(t.x+t.width,e.x+e.width),a=mM(t.y,e.y),o=vM(t.y+t.height,e.y+e.height);if(n>=i&&o>=a)return{x:i,y:a,width:n-i,height:o-a}},createIcon:Ca,Group:Uw,Image:ci,Text:qS,Circle:$S,Sector:QS,Ring:tM,Polygon:nM,Polyline:aM,Rect:oM,Line:rM,BezierCurve:lM,Arc:uM,IncrementalDisplayable:Gn,CompoundPath:hM,LinearGradient:dM,RadialGradient:fM,BoundingRect:he}),SM=["textStyle","color"],MM={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(SM):null)},getFont:function(){return _a({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return Ce(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("rich"),this.getShallow("truncateText"))}},IM=Wb([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),TM={getItemStyle:function(t,e){var i=IM(this,t,e),n=this.getBorderLineDash();return n&&(i.lineDash=n),i},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}},AM=c,DM=Vi();La.prototype={constructor:La,init:null,mergeOption:function(t){a(this.option,t,!0)},get:function(t,e){return null==t?this.option:ka(this.option,this.parsePath(t),!e&&Pa(this,t))},getShallow:function(t,e){var i=this.option,n=null==i?i:i[t],a=!e&&Pa(this,t);return null==n&&a&&(n=a.getShallow(t)),n},getModel:function(t,e){var i,n=null==t?this.option:ka(this.option,t=this.parsePath(t));return e=e||(i=Pa(this,t))&&i.getModel(t),new La(n,e,this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){return new(0,this.constructor)(n(this.option))},setReadOnly:function(t){},parsePath:function(t){return"string"==typeof t&&(t=t.split(".")),t},customizeGetParent:function(t){DM(this).getParent=t},isAnimationEnabled:function(){if(!z_.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},Xi(La),Yi(La),AM(La,Ub),AM(La,jb),AM(La,MM),AM(La,TM);var CM=0,LM=1e-4,kM=9007199254740991,PM=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,NM=(Object.freeze||Object)({linearMap:Ea,parsePercent:Ra,round:za,asc:Ba,getPrecision:Va,getPrecisionSafe:Fa,getPixelPrecision:Ga,getPercentWithPrecision:Wa,MAX_SAFE_INTEGER:kM,remRadian:Ha,isRadianAroundZero:Ua,parseDate:Za,quantity:ja,nice:Ya,quantile:function(t,e){var i=(t.length-1)*e+1,n=Math.floor(i),a=+t[n-1],o=i-n;return o?a+o*(t[n]-a):a},reformIntervals:qa,isNumeric:$a}),OM=k,EM=/([&<>"'])/g,RM={"&":"&","<":"<",">":">",'"':""","'":"'"},zM=["a","b","c","d","e","f","g"],BM=function(t,e){return"{"+t+(null==e?"":e)+"}"},VM=Ee,FM=Ce,GM=(Object.freeze||Object)({addCommas:Ka,toCamelCase:Ja,normalizeCssArray:OM,encodeHTML:Qa,formatTpl:to,formatTplSimple:eo,getTooltipMarker:io,formatTime:ao,capitalFirst:oo,truncateText:VM,getTextRect:FM}),WM=f,HM=["left","right","top","bottom","width","height"],UM=[["width","left","right"],["height","top","bottom"]],ZM=ro,jM=(y(ro,"vertical"),y(ro,"horizontal"),{getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}}),XM=Vi(),YM=La.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,e,i,n){La.call(this,t,e,i,n),this.uid=Na("ec_cpt_model")},init:function(t,e,i,n){this.mergeDefaultAndTheme(t,i)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,n=i?fo(t):{};a(t,e.getTheme().get(this.mainType)),a(t,this.getDefaultOption()),i&&co(t,n,i)},mergeOption:function(t,e){a(this.option,t,!0);var i=this.layoutMode;i&&co(this.option,t,i)},optionUpdated:function(t,e){},getDefaultOption:function(){var t=XM(this);if(!t.defaultOption){for(var e=[],i=this.constructor;i;){var n=i.prototype.defaultOption;n&&e.push(n),i=i.superClass}for(var o={},r=e.length-1;r>=0;r--)o=a(o,e[r],!0);t.defaultOption=o}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});Ki(YM,{registerWhenExtend:!0}),function(t){var e={};t.registerSubTypeDefaulter=function(t,i){t=Zi(t),e[t.main]=i},t.determineSubType=function(i,n){var a=n.type;if(!a){var o=Zi(i).main;t.hasSubTypes(i)&&e[o]&&(a=e[o](n))}return a}}(YM),function(t,e){function i(t){var i={},o=[];return f(t,(function(r){var s=n(i,r),l=a(s.originalDeps=e(r),t);s.entryCount=l.length,0===s.entryCount&&o.push(r),f(l,(function(t){u(s.predecessor,t)<0&&s.predecessor.push(t);var e=n(i,t);u(e.successor,t)<0&&e.successor.push(r)}))})),{graph:i,noEntryList:o}}function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function a(t,e){var i=[];return f(t,(function(t){u(e,t)>=0&&i.push(t)})),i}t.topologicalTravel=function(t,e,n,a){function o(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}if(t.length){var r=i(e),s=r.graph,l=r.noEntryList,u={};for(f(t,(function(t){u[t]=!0}));l.length;){var h=l.pop(),c=s[h],d=!!u[h];d&&(n.call(a,h,c.originalDeps.slice()),delete u[h]),f(c.successor,d?function(t){u[t]=!0,o(t)}:o)}f(u,(function(){throw new Error("Circle dependency may exists")}))}}}(YM,(function(t){var e=[];return f(YM.getClassesByMainType(t),(function(t){e=e.concat(t.prototype.dependencies||[])})),e=p(e,(function(t){return Zi(t).main})),"dataset"!==t&&u(e,"dataset")<=0&&e.unshift("dataset"),e})),c(YM,jM);var qM="";"undefined"!=typeof navigator&&(qM=navigator.platform||"");var $M={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:qM.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},KM=Vi(),JM={clearColorPalette:function(){KM(this).colorIdx=0,KM(this).colorNameMap={}},getColorFromPalette:function(t,e,i){var n=KM(e=e||this),a=n.colorIdx||0,o=n.colorNameMap=n.colorNameMap||{};if(o.hasOwnProperty(t))return o[t];var r=Ci(this.get("color",!0)),s=this.get("colorLayer",!0),l=null!=i&&s?go(s,i):r;if((l=l||r)&&l.length){var u=l[a];return t&&(o[t]=u),n.colorIdx=(a+1)%l.length,u}}},QM={cartesian2d:function(t,e,i,n){var a=t.getReferringComponents("xAxis")[0],o=t.getReferringComponents("yAxis")[0];e.coordSysDims=["x","y"],i.set("x",a),i.set("y",o),vo(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),vo(o)&&(n.set("y",o),e.firstCategoryDimIndex=1)},singleAxis:function(t,e,i,n){var a=t.getReferringComponents("singleAxis")[0];e.coordSysDims=["single"],i.set("single",a),vo(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var a=t.getReferringComponents("polar")[0],o=a.findAxisModel("radiusAxis"),r=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",o),i.set("angle",r),vo(o)&&(n.set("radius",o),e.firstCategoryDimIndex=0),vo(r)&&(n.set("angle",r),e.firstCategoryDimIndex=1)},geo:function(t,e,i,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){var a=t.ecModel,o=a.getComponent("parallel",t.get("parallelIndex")),r=e.coordSysDims=o.dimensions.slice();f(o.parallelAxisIndex,(function(t,o){var s=a.getComponent("parallelAxis",t),l=r[o];i.set(l,s),vo(s)&&null==e.firstCategoryDimIndex&&(n.set(l,s),e.firstCategoryDimIndex=o)}))}},tI="original",eI="arrayRows",iI="objectRows",nI="keyedColumns",aI="unknown",oI="typedArray",rI="column",sI="row";yo.seriesDataToSource=function(t){return new yo({data:t,sourceFormat:M(t)?oI:tI,fromDataset:!1})},Yi(yo);var lI=Vi(),uI="\0_ec_inner",hI=La.extend({init:function(t,e,i,n){i=i||{},this.option=null,this._theme=new La(i),this._optionManager=n},setOption:function(t,e){P(!(uI in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,i=this._optionManager;if(!t||"recreate"===t){var n=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(n)):No.call(this,n),e=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=i.getTimelineOption(this);a&&(this.mergeOption(a),e=!0)}if(!t||"recreate"===t||"media"===t){var o=i.getMediaOption(this,this._api);o.length&&f(o,(function(t){this.mergeOption(t,e=!0)}),this)}return e},mergeOption:function(t){var e=this.option,i=this._componentsMap,o=[];wo(this),f(t,(function(t,i){null!=t&&(YM.hasClass(i)?i&&o.push(i):e[i]=null==e[i]?n(t):a(e[i],t,!0))})),YM.topologicalTravel(o,YM.getAllClassMainTypes(),(function(n,a){var o=Ci(t[n]),s=Ni(i.get(n),o);Oi(s),f(s,(function(t,e){var i=t.option;b(i)&&(t.keyInfo.mainType=n,t.keyInfo.subType=Eo(n,i,t.exist))}));var l=Oo(i,a);e[n]=[],i.set(n,[]),f(s,(function(t,a){var o=t.exist,s=t.option;if(P(b(s)||o,"Empty component definition"),s){var u=YM.getClass(n,t.keyInfo.subType,!0);if(o&&o instanceof u)o.name=t.keyInfo.name,o.mergeOption(s,this),o.optionUpdated(s,!1);else{var h=r({dependentModels:l,componentIndex:a},t.keyInfo);r(o=new u(s,this,this,h),h),o.init(s,this,this,h),o.optionUpdated(null,!0)}}else o.mergeOption({},this),o.optionUpdated({},!1);i.get(n)[a]=o,e[n][a]=o.option}),this),"series"===n&&Ro(this,i.get("series"))}),this),this._seriesIndicesMap=z(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var t=n(this.option);return f(t,(function(e,i){if(YM.hasClass(i)){for(var n=(e=Ci(e)).length-1;n>=0;n--)Ri(e[n])&&e.splice(n,1);t[i]=e}})),delete t[uI],t},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap.get(t);if(i)return i[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i,n=t.index,a=t.id,o=t.name,r=this._componentsMap.get(e);if(!r||!r.length)return[];if(null!=n)x(n)||(n=[n]),i=m(p(n,(function(t){return r[t]})),(function(t){return!!t}));else if(null!=a){var s=x(a);i=m(r,(function(t){return s&&u(a,t.id)>=0||!s&&t.id===a}))}else if(null!=o){var l=x(o);i=m(r,(function(t){return l&&u(o,t.name)>=0||!l&&t.name===o}))}else i=r.slice();return zo(i,t)},findComponents:function(t){var e=t.query,i=t.mainType,n=function(t){var e=i+"Index",n=i+"Id",a=i+"Name";return!t||null==t[e]&&null==t[n]&&null==t[a]?null:{mainType:i,index:t[e],id:t[n],name:t[a]}}(e);return function(e){return t.filter?m(e,t.filter):e}(zo(n?this.queryComponents(n):this._componentsMap.get(i),t))},eachComponent:function(t,e,i){var n=this._componentsMap;"function"==typeof t?(i=e,e=t,n.each((function(t,n){f(t,(function(t,a){e.call(i,n,t,a)}))}))):w(t)?f(n.get(t),e,i):b(t)&&f(this.findComponents(t),e,i)},getSeriesByName:function(t){return m(this._componentsMap.get("series"),(function(e){return e.name===t}))},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){return m(this._componentsMap.get("series"),(function(e){return e.subType===t}))},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(t,e){f(this._seriesIndices,(function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)}),this)},eachRawSeries:function(t,e){f(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,i){f(this._seriesIndices,(function(n){var a=this._componentsMap.get("series")[n];a.subType===t&&e.call(i,a,n)}),this)},eachRawSeriesByType:function(t,e,i){return f(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){Ro(this,m(this._componentsMap.get("series"),t,e))},restoreData:function(t){var e=this._componentsMap;Ro(this,e.get("series"));var i=[];e.each((function(t,e){i.push(e)})),YM.topologicalTravel(i,YM.getAllClassMainTypes(),(function(i,n){f(e.get(i),(function(e){("series"!==i||!ko(e,t))&&e.restoreData()}))}))}});c(hI,JM);var cI=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"],dI={};Vo.prototype={constructor:Vo,create:function(t,e){var i=[];f(dI,(function(n,a){var o=n.create(t,e);i=i.concat(o||[])})),this._coordinateSystems=i},update:function(t,e){f(this._coordinateSystems,(function(i){i.update&&i.update(t,e)}))},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},Vo.register=function(t,e){dI[t]=e},Vo.get=function(t){return dI[t]};var fI=f,pI=n,gI=p,mI=a,vI=/^(min|max)?(.+)$/;Fo.prototype={constructor:Fo,setOption:function(t,e){t&&f(Ci(t.series),(function(t){t&&t.data&&M(t.data)&&O(t.data)})),t=pI(t,!0);var i=this._optionBackup,n=Go.call(this,t,e,!i);this._newBaseOption=n.baseOption,i?(Zo(i.baseOption,n.baseOption),n.timelineOptions.length&&(i.timelineOptions=n.timelineOptions),n.mediaList.length&&(i.mediaList=n.mediaList),n.mediaDefault&&(i.mediaDefault=n.mediaDefault)):this._optionBackup=n},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=gI(e.timelineOptions,pI),this._mediaList=gI(e.mediaList,pI),this._mediaDefault=pI(e.mediaDefault),this._currentMediaIndices=[],pI(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=pI(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],r=[];if(!n.length&&!a)return r;for(var s=0,l=n.length;s<l;s++)Wo(n[s].query,e,i)&&o.push(s);return!o.length&&a&&(o=[-1]),o.length&&!Uo(o,this._currentMediaIndices)&&(r=gI(o,(function(t){return pI(-1===t?a.option:n[t].option)}))),this._currentMediaIndices=o,r}};var yI=f,xI=b,_I=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],wI=function(t,e){yI(Jo(t.series),(function(t){xI(t)&&Ko(t)}));var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),yI(i,(function(e){yI(Jo(t[e]),(function(t){t&&(qo(t,"axisLabel"),qo(t.axisPointer,"label"))}))})),yI(Jo(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;qo(e,"axisLabel"),qo(e&&e.axisPointer,"label")})),yI(Jo(t.calendar),(function(t){Xo(t,"itemStyle"),qo(t,"dayLabel"),qo(t,"monthLabel"),qo(t,"yearLabel")})),yI(Jo(t.radar),(function(t){qo(t,"name")})),yI(Jo(t.geo),(function(t){xI(t)&&($o(t),yI(Jo(t.regions),(function(t){$o(t)})))})),yI(Jo(t.timeline),(function(t){$o(t),Xo(t,"label"),Xo(t,"itemStyle"),Xo(t,"controlStyle",!0);var e=t.data;x(e)&&f(e,(function(t){b(t)&&(Xo(t,"label"),Xo(t,"itemStyle"))}))})),yI(Jo(t.toolbox),(function(t){Xo(t,"iconStyle"),yI(t.feature,(function(t){Xo(t,"iconStyle")}))})),qo(Qo(t.axisPointer),"label"),qo(Qo(t.tooltip).axisPointer,"label")},bI=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],SI=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],MI=function(t,e){wI(t,e),t.series=Ci(t.series),f(t.series,(function(t){if(b(t)){var e=t.type;if("pie"!==e&&"gauge"!==e||null!=t.clockWise&&(t.clockwise=t.clockWise),"gauge"===e){var i=tr(t,"pointer.color");null!=i&&er(t,"itemStyle.normal.color",i)}ir(t)}})),t.dataRange&&(t.visualMap=t.dataRange),f(SI,(function(e){var i=t[e];i&&(x(i)||(i=[i]),f(i,(function(t){ir(t)})))}))},II=ar.prototype;II.pure=!1,II.persistent=!0,II.getSource=function(){return this._source};var TI={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(t){return this._data[t+this._source.startIndex]},appendData:sr},arrayRows_row:{pure:!0,count:function(){var t=this._data[0];return t?Math.max(0,t.length-this._source.startIndex):0},getItem:function(t){t+=this._source.startIndex;for(var e=[],i=this._data,n=0;n<i.length;n++){var a=i[n];e.push(a?a[t]:null)}return e},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:or,getItem:rr,appendData:sr},keyedColumns:{pure:!0,count:function(){var t=this._source.dimensionsDefine[0].name,e=this._data[t];return e?e.length:0},getItem:function(t){for(var e=[],i=this._source.dimensionsDefine,n=0;n<i.length;n++){var a=this._data[i[n].name];e.push(a?a[t]:null)}return e},appendData:function(t){var e=this._data;f(t,(function(t,i){for(var n=e[i]||(e[i]=[]),a=0;a<(t||[]).length;a++)n.push(t[a])}))}},original:{count:or,getItem:rr,appendData:sr},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(t,e){t-=this._offset,e=e||[];for(var i=this._dimSize*t,n=0;n<this._dimSize;n++)e[n]=this._data[i+n];return e},appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}}},AI={arrayRows:lr,objectRows:function(t,e,i,n){return null!=i?t[n]:t},keyedColumns:lr,original:function(t,e,i,n){var a=ki(t);return null!=i&&a instanceof Array?a[i]:a},typedArray:lr},DI={arrayRows:ur,objectRows:function(t,e,i,n){return hr(t[e],this._dimensionInfos[e])},keyedColumns:ur,original:function(t,e,i,n){var a=t&&(null==t.value?t:t.value);return!this._rawData.pure&&Pi(t)&&(this.hasItemOption=!0),hr(a instanceof Array?a[n]:a,this._dimensionInfos[e])},typedArray:function(t,e,i,n){return t[n]}},CI=/\{@(.+?)\}/g,LI={getDataParams:function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),a=i.getRawIndex(t),o=i.getName(t),r=i.getRawDataItem(t),s=i.getItemVisual(t,"color"),l=this.ecModel.getComponent("tooltip"),u=Ui(l&&l.get("renderMode")),h=this.mainType,c="series"===h;return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:a,data:r,dataType:e,value:n,color:s,marker:io({color:s,renderMode:u}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,i,n,a){e=e||"normal";var o=this.getData(i),r=o.getItemModel(t),s=this.getDataParams(t,i);null!=n&&s.value instanceof Array&&(s.value=s.value[n]);var l=r.get("normal"===e?[a||"label","formatter"]:[e,a||"label","formatter"]);return"function"==typeof l?(s.status=e,l(s)):"string"==typeof l?to(l,s).replace(CI,(function(e,i){var n=i.length;return"["===i.charAt(0)&&"]"===i.charAt(n-1)&&(i=+i.slice(1,n-1)),cr(o,t,i)})):void 0},getRawValue:function(t,e){return cr(this.getData(e),t)},formatTooltip:function(){}},kI=pr.prototype;kI.perform=function(t){function e(t){return!(t>=1)&&(t=1),t}var i,n=this._upstream,a=t&&t.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!a&&(i=this._plan(this.context));var r,s=e(this._modBy),l=this._modDataCount||0,u=e(t&&t.modBy),h=t&&t.modDataCount||0;s===u&&l===h||(i="reset"),(this._dirty||"reset"===i)&&(this._dirty=!1,r=mr(this,a)),this._modBy=u,this._modDataCount=h;var c=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!a&&(r||d<f)){var p=this._progress;if(x(p))for(var g=0;g<p.length;g++)gr(this,p[g],d,f,u,h);else gr(this,p,d,f,u,h)}this._dueIndex=f;var m=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var PI=function(){function t(){return n<i?n++:null}function e(){var t=n%r*a+Math.ceil(n/r),e=n>=i?null:t<o?t:n;return n++,e}var i,n,a,o,r,s={reset:function(l,u,h,c){n=l,i=u,a=h,o=c,r=Math.ceil(o/a),s.next=a>1&&o>0?e:t}};return s}();kI.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},kI.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},kI.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},kI.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},kI.getUpstream=function(){return this._upstream},kI.getDownstream=function(){return this._downstream},kI.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var NI=Vi(),OI=YM.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.color",layoutMode:null,init:function(t,e,i,n){this.seriesIndex=this.componentIndex,this.dataTask=fr({count:xr,reset:_r}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i),bo(this);var a=this.getInitialData(t,i);br(a,this),this.dataTask.context.data=a,NI(this).dataBeforeProcessed=a,vr(this)},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,n=i?fo(t):{},o=this.subType;YM.hasClass(o)&&(o+="Series"),a(t,e.getTheme().get(this.subType)),a(t,this.getDefaultOption()),Li(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&co(t,n,i)},mergeOption:function(t,e){t=a(this.option,t,!0),this.fillDataTextStyle(t.data);var i=this.layoutMode;i&&co(this.option,t,i),bo(this);var n=this.getInitialData(t,e);br(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,NI(this).dataBeforeProcessed=n,vr(this)},fillDataTextStyle:function(t){if(t&&!M(t))for(var e=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&Li(t[i],"label",e)},getInitialData:function(){},appendData:function(t){this.getRawData().appendData(t.data)},getData:function(t){var e=Mr(this);if(e){var i=e.context.data;return null==t?i:i.getLinkedData(t)}return NI(this).data},setData:function(t){var e=Mr(this);if(e){var i=e.context;i.data!==t&&e.modifyOutputEnd&&e.setOutputEnd(t.count()),i.outputData=t,e!==this.dataTask&&(i.data=t)}NI(this).data=t},getSource:function(){return _o(this)},getRawData:function(){return NI(this).dataBeforeProcessed},getBaseAxis:function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},formatTooltip:function(t,e,i,n){function a(t){return{renderMode:n,content:Qa(Ka(t)),style:l}}var o=this,r="html"===(n=n||"html")?"<br/>":"\n",s="richText"===n,l={},u=0,h=this.getData(),c=h.mapDimension("defaultedTooltip",!0),d=c.length,p=this.getRawValue(t),m=x(p),v=h.getItemVisual(t,"color");b(v)&&v.colorStops&&(v=(v.colorStops[0]||{}).color),v=v||"transparent";var y=(d>1||m&&!d?function(i){function a(t,i){var a=h.getDimensionInfo(i);if(a&&!1!==a.otherDims.tooltip){var c=a.type,f="sub"+o.seriesIndex+"at"+u,p=io({color:v,type:"subItem",renderMode:n,markerId:f}),g="string"==typeof p?p:p.content,m=(r?g+Qa(a.displayName||"-")+": ":"")+Qa("ordinal"===c?t+"":"time"===c?e?"":ao("yyyy/MM/dd hh:mm:ss",t):Ka(t));m&&d.push(m),s&&(l[f]=v,++u)}}var r=g(i,(function(t,e,i){var n=h.getDimensionInfo(i);return t|(n&&!1!==n.tooltip&&null!=n.displayName)}),0),d=[];c.length?f(c,(function(e){a(cr(h,t,e),e)})):f(i,a);var p=r?s?"\n":"<br/>":"",m=p+d.join(p||", ");return{renderMode:n,content:m,style:l}}(p):a(d?cr(h,t,c[0]):m?p[0]:p)).content,_=o.seriesIndex+"at"+u,w=io({color:v,type:"item",renderMode:n,markerId:_});l[_]=v,++u;var S=h.getName(t),M=this.name;Ei(this)||(M=""),M=M?Qa(M)+(e?": ":r):"";var I="string"==typeof w?w:w.content;return{html:e?I+M+y:M+I+(S?Qa(S)+": "+y:y),markers:l}},isAnimationEnabled:function(){if(z_.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(t,e,i){var n=this.ecModel,a=JM.getColorFromPalette.call(this,t,e,i);return a||(a=n.getColorFromPalette(t,e,i)),a},coordDimToDataDim:function(t){return this.getRawData().mapDimension(t,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});c(OI,LI),c(OI,JM);var EI=function(){this.group=new Uw,this.uid=Na("viewComponent")};EI.prototype={constructor:EI,init:function(t,e){},render:function(t,e,i,n){},dispose:function(){},filterForExposedEvent:null};var RI=EI.prototype;RI.updateView=RI.updateLayout=RI.updateVisual=function(t,e,i,n){},Xi(EI),Ki(EI,{registerWhenExtend:!0});var zI=function(){var t=Vi();return function(e){var i=t(e),n=e.pipelineContext,a=i.large,o=i.progressiveRender,r=i.large=n.large,s=i.progressiveRender=n.progressiveRender;return!!(a^r||o^s)&&"reset"}},BI=Vi(),VI=zI();Ir.prototype={type:"chart",init:function(t,e){},render:function(t,e,i,n){},highlight:function(t,e,i,n){Ar(t.getData(),n,"emphasis")},downplay:function(t,e,i,n){Ar(t.getData(),n,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var FI=Ir.prototype;FI.updateView=FI.updateLayout=FI.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},Xi(Ir),Ki(Ir,{registerWhenExtend:!0}),Ir.markUpdateMethod=function(t,e){BI(t).updateMethod=e};var GI={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},WI="\0__throttleOriginMethod",HI="\0__throttleRate",UI="\0__throttleType",ZI={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),n=(t.visualColorAccessPath||"itemStyle.color").split("."),a=t.get(n)||t.getColorFromPalette(t.name,null,e.getSeriesCount());if(i.setVisual("color",a),!e.isSeriesFiltered(t))return"function"!=typeof a||a instanceof cM||i.each((function(e){i.setItemVisual(e,"color",a(t.getDataParams(e)))})),{dataEach:i.hasItemOption?function(t,e){var i=t.getItemModel(e).get(n,!0);null!=i&&t.setItemVisual(e,"color",i)}:null}}},jI={toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},XI=function(t,e){function i(t,e){if("string"!=typeof t)return t;var i=t;return f(e,(function(t,e){i=i.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),i}function n(t){var e=o.get(t);if(null==e){for(var i=t.split("."),n=jI.aria,a=0;a<i.length;++a)n=n[i[a]];return n}return e}function a(t){return jI.series.typeNames[t]||"自定义图"}var o=e.getModel("aria");if(o.get("show"))if(o.get("description"))t.setAttribute("aria-label",o.get("description"));else{var r=0;e.eachSeries((function(t,e){++r}),this);var s,l=o.get("data.maxCount")||10,u=o.get("series.maxCount")||10,h=Math.min(r,u);if(!(r<1)){var c=function(){var t=e.getModel("title").option;return t&&t.length&&(t=t[0]),t&&t.text}();s=c?i(n("general.withTitle"),{title:c}):n("general.withoutTitle");var d=[];s+=i(n(r>1?"series.multiple.prefix":"series.single.prefix"),{seriesCount:r}),e.eachSeries((function(t,e){if(e<h){var o,s=t.get("name"),u="series."+(r>1?"multiple":"single")+".";o=i(o=n(s?u+"withName":u+"withoutName"),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:a(t.subType)});var c=t.getData();window.data=c,c.count()>l?o+=i(n("data.partialData"),{displayCnt:l}):o+=n("data.allData");for(var f=[],p=0;p<c.count();p++)if(p<l){var g=c.getName(p),m=cr(c,p);f.push(i(n(g?"data.withName":"data.withoutName"),{name:g,value:m}))}o+=f.join(n("data.separator.middle"))+n("data.separator.end"),d.push(o)}})),s+=d.join(n("series.multiple.separator.middle"))+n("series.multiple.separator.end"),t.setAttribute("aria-label",s)}}},YI=Math.PI,qI=Nr.prototype;qI.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},qI.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,a=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex?i.step:null,o=n&&n.modDataCount;return{step:a,modBy:null!=o?Math.ceil(o/a):null,modDataCount:o}}},qI.getPipeline=function(t){return this._pipelineMap.get(t)},qI.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData().count(),a=i.progressiveEnabled&&e.incrementalPrepareRender&&n>=i.threshold,o=t.get("large")&&n>=t.get("largeThreshold"),r="mod"===t.get("progressiveChunkMode")?n:null;t.pipelineContext=i.context={progressiveRender:a,modDataCount:r,large:o}},qI.restorePipelines=function(t){var e=this,i=e._pipelineMap=z();t.eachSeries((function(t){var n=t.getProgressive(),a=t.uid;i.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),Zr(e,t,t.dataTask)}))},qI.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.ecInstance.getModel(),i=this.api;f(this._allHandlers,(function(n){var a=t.get(n.uid)||t.set(n.uid,[]);n.reset&&Er(this,n,a,e,i),n.overallReset&&Rr(this,n,a,e,i)}),this)},qI.prepareView=function(t,e,i,n){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=i,o.api=n,a.__block=!t.incrementalPrepareRender,Zr(this,e,a)},qI.performDataProcessorTasks=function(t,e){Or(this,this._dataProcessorHandlers,t,e,{block:!0})},qI.performVisualTasks=function(t,e,i){Or(this,this._visualHandlers,t,e,i)},qI.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e|=t.dataTask.perform()})),this.unfinished|=e},qI.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))};var $I=qI.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},KI=Hr(0);Nr.wrapStageHandler=function(t,e){return _(t)&&(t={overallReset:t,seriesType:jr(t)}),t.uid=Na("stageHandler"),e&&(t.visualType=e),t};var JI,QI={},tT={};Xr(QI,hI),Xr(tT,Bo),QI.eachSeriesByType=QI.eachRawSeriesByType=function(t){JI=t},QI.eachComponent=function(t){"series"===t.mainType&&t.subType&&(JI=t.subType)};var eT=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],iT={color:eT,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],eT]},nT=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],aT={color:nT,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:"#eee"},crossStyle:{color:"#eee"}}},legend:{textStyle:{color:"#eee"}},textStyle:{color:"#eee"},title:{textStyle:{color:"#eee"}},toolbox:{iconStyle:{normal:{borderColor:"#eee"}}},dataZoom:{textStyle:{color:"#eee"}},visualMap:{textStyle:{color:"#eee"}},timeline:{lineStyle:{color:"#eee"},itemStyle:{normal:{color:nT[1]}},label:{normal:{textStyle:{color:"#eee"}}},controlStyle:{normal:{color:"#eee",borderColor:"#eee"}}},timeAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},logAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},valueAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},categoryAxis:{axisLine:{lineStyle:{color:"#eee"}},axisTick:{lineStyle:{color:"#eee"}},axisLabel:{textStyle:{color:"#eee"}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:"#eee"}}},line:{symbol:"circle"},graph:{color:nT},gauge:{title:{textStyle:{color:"#eee"}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};aT.categoryAxis.splitLine.show=!1,YM.extend({type:"dataset",defaultOption:{seriesLayoutBy:rI,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){xo(this)}}),EI.extend({type:"dataset"});var oT=Pn.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(t,e){var i=.5522848,n=e.cx,a=e.cy,o=e.rx,r=e.ry,s=o*i,l=r*i;t.moveTo(n-o,a),t.bezierCurveTo(n-o,a-l,n-s,a-r,n,a-r),t.bezierCurveTo(n+s,a-r,n+o,a-l,n+o,a),t.bezierCurveTo(n+o,a+l,n+s,a+r,n,a+r),t.bezierCurveTo(n-s,a+r,n-o,a+l,n-o,a),t.closePath()}}),rT=/[\s,]+/;qr.prototype.parse=function(t,e){e=e||{};var i=Yr(t);if(!i)throw new Error("Illegal svg");var n=new Uw;this._root=n;var a,o,r=i.getAttribute("viewBox")||"",s=parseFloat(i.getAttribute("width")||e.width),l=parseFloat(i.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Qr(i,n,null,!0);for(var u=i.firstChild;u;)this._parseNode(u,n),u=u.nextSibling;if(r){var h=N(r).split(rT);h.length>=4&&(a={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(a&&null!=s&&null!=l&&(o=ns(a,s,l),!e.ignoreViewBox)){var c=n;(n=new Uw).add(c),c.scale=o.scale.slice(),c.position=o.position.slice()}return e.ignoreRootClip||null==s||null==l||n.setClipPath(new oM({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:a,viewBoxTransform:o}},qr.prototype._parseNode=function(t,e){var i,n=t.nodeName.toLowerCase();if("defs"===n?this._isDefine=!0:"text"===n&&(this._isText=!0),this._isDefine){if(r=lT[n]){var a=r.call(this,t),o=t.getAttribute("id");o&&(this._defs[o]=a)}}else{var r=sT[n];r&&(i=r.call(this,t,e),e.add(i))}for(var s=t.firstChild;s;)1===s.nodeType&&this._parseNode(s,i),3===s.nodeType&&this._isText&&this._parseText(s,i),s=s.nextSibling;"defs"===n?this._isDefine=!1:"text"===n&&(this._isText=!1)},qr.prototype._parseText=function(t,e){if(1===t.nodeType){var i=t.getAttribute("dx")||0,n=t.getAttribute("dy")||0;this._textX+=parseFloat(i),this._textY+=parseFloat(n)}var a=new qS({style:{text:t.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});Kr(e,a),Qr(t,a,this._defs);var o=a.style.fontSize;o&&o<9&&(a.style.fontSize=9,a.scale=a.scale||[1,1],a.scale[0]*=o/9,a.scale[1]*=o/9);var r=a.getBoundingRect();return this._textX+=r.width,e.add(a),a};var sT={g:function(t,e){var i=new Uw;return Kr(e,i),Qr(t,i,this._defs),i},rect:function(t,e){var i=new oM;return Kr(e,i),Qr(t,i,this._defs),i.setShape({x:parseFloat(t.getAttribute("x")||0),y:parseFloat(t.getAttribute("y")||0),width:parseFloat(t.getAttribute("width")||0),height:parseFloat(t.getAttribute("height")||0)}),i},circle:function(t,e){var i=new $S;return Kr(e,i),Qr(t,i,this._defs),i.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),r:parseFloat(t.getAttribute("r")||0)}),i},line:function(t,e){var i=new rM;return Kr(e,i),Qr(t,i,this._defs),i.setShape({x1:parseFloat(t.getAttribute("x1")||0),y1:parseFloat(t.getAttribute("y1")||0),x2:parseFloat(t.getAttribute("x2")||0),y2:parseFloat(t.getAttribute("y2")||0)}),i},ellipse:function(t,e){var i=new oT;return Kr(e,i),Qr(t,i,this._defs),i.setShape({cx:parseFloat(t.getAttribute("cx")||0),cy:parseFloat(t.getAttribute("cy")||0),rx:parseFloat(t.getAttribute("rx")||0),ry:parseFloat(t.getAttribute("ry")||0)}),i},polygon:function(t,e){var i=t.getAttribute("points");i&&(i=Jr(i));var n=new nM({shape:{points:i||[]}});return Kr(e,n),Qr(t,n,this._defs),n},polyline:function(t,e){var i=new Pn;Kr(e,i),Qr(t,i,this._defs);var n=t.getAttribute("points");return n&&(n=Jr(n)),new aM({shape:{points:n||[]}})},image:function(t,e){var i=new ci;return Kr(e,i),Qr(t,i,this._defs),i.setStyle({image:t.getAttribute("xlink:href"),x:t.getAttribute("x"),y:t.getAttribute("y"),width:t.getAttribute("width"),height:t.getAttribute("height")}),i},text:function(t,e){var i=t.getAttribute("x")||0,n=t.getAttribute("y")||0,a=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0;this._textX=parseFloat(i)+parseFloat(a),this._textY=parseFloat(n)+parseFloat(o);var r=new Uw;return Kr(e,r),Qr(t,r,this._defs),r},tspan:function(t,e){var i=t.getAttribute("x"),n=t.getAttribute("y");null!=i&&(this._textX=parseFloat(i)),null!=n&&(this._textY=parseFloat(n));var a=t.getAttribute("dx")||0,o=t.getAttribute("dy")||0,r=new Uw;return Kr(e,r),Qr(t,r,this._defs),this._textX+=a,this._textY+=o,r},path:function(t,e){var i=Rn(t.getAttribute("d")||"");return Kr(e,i),Qr(t,i,this._defs),i}},lT={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||0,10),i=parseInt(t.getAttribute("y1")||0,10),n=parseInt(t.getAttribute("x2")||10,10),a=parseInt(t.getAttribute("y2")||0,10),o=new dM(e,i,n,a);return $r(t,o),o},radialgradient:function(t){}},uT={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"},hT=/url\(\s*#(.*?)\)/,cT=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g,dT=/([^\s:;]+)\s*:\s*([^:;]+)/g,fT=z(),pT={registerMap:function(t,e,i){var n;return x(e)?n=e:e.svg?n=[{type:"svg",source:e.svg,specialAreas:e.specialAreas}]:(e.geoJson&&!e.features&&(i=e.specialAreas,e=e.geoJson),n=[{type:"geoJSON",source:e,specialAreas:i}]),f(n,(function(t){var e=t.type;"geoJson"===e&&(e=t.type="geoJSON"),(0,gT[e])(t)})),fT.set(t,n)},retrieveMap:function(t){return fT.get(t)}},gT={geoJSON:function(t){var e=t.source;t.geoJSON=w(e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e},svg:function(t){t.svgXML=Yr(t.source)}},mT=P,vT=f,yT=_,xT=b,_T=YM.parseClassType,wT={zrender:"4.0.5"},bT=1e3,ST=1e3,MT=3e3,IT={PROCESSOR:{FILTER:bT,STATISTIC:5e3},VISUAL:{LAYOUT:ST,GLOBAL:2e3,CHART:MT,COMPONENT:4e3,BRUSH:5e3}},TT="__flagInMainProcess",AT="__optionUpdated",DT=/^[a-zA-Z0-9_]+$/;rs.prototype.on=os("on"),rs.prototype.off=os("off"),rs.prototype.one=os("one"),c(rs,ow);var CT=ss.prototype;CT._onframe=function(){if(!this._disposed){var t=this._scheduler;if(this[AT]){var e=this[AT].silent;this[TT]=!0,us(this),LT.update.call(this),this[TT]=!1,this[AT]=!1,fs.call(this,e),ps.call(this,e)}else if(t.unfinished){var i=1,n=this._model;this._api,t.unfinished=!1;do{var a=+new Date;t.performSeriesTasks(n),t.performDataProcessorTasks(n),cs(this,n),t.performVisualTasks(n),_s(this,this._model,0,"remain"),i-=+new Date-a}while(i>0&&t.unfinished);t.unfinished||this._zr.flush()}}},CT.getDom=function(){return this._dom},CT.getZr=function(){return this._zr},CT.setOption=function(t,e,i){var n;if(xT(e)&&(i=e.lazyUpdate,n=e.silent,e=e.notMerge),this[TT]=!0,!this._model||e){var a=new Fo(this._api),o=this._theme,r=this._model=new hI(null,null,o,a);r.scheduler=this._scheduler,r.init(null,null,o,a)}this._model.setOption(t,ET),i?(this[AT]={silent:n},this[TT]=!1):(us(this),LT.update.call(this),this._zr.flush(),this[AT]=!1,this[TT]=!1,fs.call(this,n),ps.call(this,n))},CT.setTheme=function(){t.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},CT.getModel=function(){return this._model},CT.getOption=function(){return this._model&&this._model.getOption()},CT.getWidth=function(){return this._zr.getWidth()},CT.getHeight=function(){return this._zr.getHeight()},CT.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},CT.getRenderedCanvas=function(t){if(z_.canvasSupported)return(t=t||{}).pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(t)},CT.getSvgDataUrl=function(){if(z_.svgSupported){var t=this._zr;return f(t.storage.getDisplayList(),(function(t){t.stopAnimation(!0)})),t.painter.pathToDataUrl()}},CT.getDataURL=function(t){var e=(t=t||{}).excludeComponents,i=this._model,n=[],a=this;vT(e,(function(t){i.eachComponent({mainType:t},(function(t){var e=a._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataUrl():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return vT(n,(function(t){t.group.ignore=!1})),o},CT.getConnectedDataURL=function(t){if(z_.canvasSupported){var e=this.group,i=Math.min,a=Math.max;if(GT[e]){var o=1/0,r=1/0,s=-1/0,l=-1/0,u=[],h=t&&t.pixelRatio||1;f(FT,(function(h,c){if(h.group===e){var d=h.getRenderedCanvas(n(t)),f=h.getDom().getBoundingClientRect();o=i(f.left,o),r=i(f.top,r),s=a(f.right,s),l=a(f.bottom,l),u.push({dom:d,left:f.left,top:f.top})}}));var c=(s*=h)-(o*=h),d=(l*=h)-(r*=h),p=Y_();p.width=c,p.height=d;var g=Ti(p);return vT(u,(function(t){var e=new ci({style:{x:t.left*h-o,y:t.top*h-r,image:t.dom}});g.add(e)})),g.refreshImmediately(),p.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},CT.convertToPixel=y(ls,"convertToPixel"),CT.convertFromPixel=y(ls,"convertFromPixel"),CT.containPixel=function(t,e){var i;return t=Fi(this._model,t),f(t,(function(t,n){n.indexOf("Models")>=0&&f(t,(function(t){var a=t.coordinateSystem;if(a&&a.containPoint)i|=!!a.containPoint(e);else if("seriesModels"===n){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(i|=o.containPoint(e,t))}}),this)}),this),!!i},CT.getVisual=function(t,e){var i=(t=Fi(this._model,t,{defaultMainType:"series"})).seriesModel.getData(),n=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?i.indexOfRawIndex(t.dataIndex):null;return null!=n?i.getItemVisual(n,e):i.getVisual(e)},CT.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},CT.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var LT={prepareAndUpdate:function(t){us(this),LT.update.call(this,t)},update:function(t){var e=this._model,i=this._api,n=this._zr,a=this._coordSysMgr,o=this._scheduler;if(e){o.restoreData(e,t),o.performSeriesTasks(e),a.create(e,i),o.performDataProcessorTasks(e,t),cs(this,e),a.update(e,i),vs(e),o.performVisualTasks(e,t),ys(this,e,i,t);var r=e.get("backgroundColor")||"transparent";if(z_.canvasSupported)n.setBackgroundColor(r);else{var s=Bt(r);r=Xt(s,"rgb"),0===s[3]&&(r="transparent")}ws(e,i)}},updateTransform:function(t){var e=this._model,i=this,n=this._api;if(e){var a=[];e.eachComponent((function(o,r){var s=i.getViewOfComponentModel(r);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(r,e,n,t);l&&l.update&&a.push(s)}else a.push(s)}));var o=z();e.eachSeries((function(a){var r=i._chartsMap[a.__viewId];if(r.updateTransform){var s=r.updateTransform(a,e,n,t);s&&s.update&&o.set(a.uid,1)}else o.set(a.uid,1)})),vs(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0,dirtyMap:o}),_s(i,e,0,t,o),ws(e,this._api)}},updateView:function(t){var e=this._model;e&&(Ir.markUpdateMethod(t,"updateView"),vs(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),ys(this,this._model,this._api,t),ws(e,this._api))},updateVisual:function(t){LT.update.call(this,t)},updateLayout:function(t){LT.update.call(this,t)}};CT.resize=function(t){this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var i=e.resetOption("media"),n=t&&t.silent;this[TT]=!0,i&&us(this),LT.update.call(this),this[TT]=!1,fs.call(this,n),ps.call(this,n)}},CT.showLoading=function(t,e){if(xT(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),VT[t]){var i=VT[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},CT.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},CT.makeActionFromEvent=function(t){var e=r({},t);return e.type=NT[t.type],e},CT.dispatchAction=function(t,e){xT(e)||(e={silent:!!e}),PT[t.type]&&this._model&&(this[TT]?this._pendingActions.push(t):(ds.call(this,t,e.silent),e.flush?this._zr.flush(!0):!1!==e.flush&&z_.browser.weChat&&this._throttledZrFlush(),fs.call(this,e.silent),ps.call(this,e.silent)))},CT.appendData=function(t){var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0},CT.on=os("on"),CT.off=os("off"),CT.one=os("one");var kT=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];CT._initEvents=function(){vT(kT,(function(t){this._zr.on(t,(function(e){var i,n=this.getModel(),a=e.target;if("globalout"===t)i={};else if(a&&null!=a.dataIndex){var o=a.dataModel||n.getSeriesByIndex(a.seriesIndex);i=o&&o.getDataParams(a.dataIndex,a.dataType,a)||{}}else a&&a.eventData&&(i=r({},a.eventData));if(i){var s=i.componentType,l=i.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=i.seriesIndex);var u=s&&null!=l&&n.getComponent(s,l),h=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];i.event=e,i.type=t,this._ecEventProcessor.eventInfo={targetEl:a,packedEvent:i,model:u,view:h},this.trigger(t,i)}}),this)}),this),vT(NT,(function(t,e){this._messageCenter.on(e,(function(t){this.trigger(e,t)}),this)}),this)},CT.isDisposed=function(){return this._disposed},CT.clear=function(){this.setOption({series:[]},!0)},CT.dispose=function(){if(!this._disposed){this._disposed=!0,Wi(this.getDom(),UT,"");var t=this._api,e=this._model;vT(this._componentsViews,(function(i){i.dispose(e,t)})),vT(this._chartsViews,(function(i){i.dispose(e,t)})),this._zr.dispose(),delete FT[this.id]}},c(ss,ow),Ts.prototype={constructor:Ts,normalizeQuery:function(t){var e={},i={},n={};if(w(t)){var a=_T(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],r={name:1,dataIndex:1,dataType:1};f(t,(function(t,a){for(var s=!1,l=0;l<o.length;l++){var u=o[l],h=a.lastIndexOf(u);if(h>0&&h===a.length-u.length){var c=a.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}r.hasOwnProperty(a)&&(i[a]=t,s=!0),s||(n[a]=t)}))}return{cptQuery:e,dataQuery:i,otherQuery:n}},filter:function(t,e,i){function n(t,e,i,n){return null==t[i]||e[n||i]===t[i]}var a=this.eventInfo;if(!a)return!0;var o=a.targetEl,r=a.packedEvent,s=a.model,l=a.view;if(!s||!l)return!0;var u=e.cptQuery,h=e.dataQuery;return n(u,s,"mainType")&&n(u,s,"subType")&&n(u,s,"index","componentIndex")&&n(u,s,"name")&&n(u,s,"id")&&n(h,r,"name")&&n(h,r,"dataIndex")&&n(h,r,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(t,e.otherQuery,o,r))},afterTrigger:function(){this.eventInfo=null}};var PT={},NT={},OT=[],ET=[],RT=[],zT=[],BT={},VT={},FT={},GT={},WT=new Date-0,HT=new Date-0,UT="_echarts_instance_",ZT=Ds;Rs(2e3,ZI),ks(MI),Ps(5e3,(function(t){var e=z();t.eachSeries((function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),a=t.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;n.length&&a.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}})),e.each(nr)})),Bs("default",(function(t,e){s(e=e||{},{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var i=new oM({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),n=new uM({shape:{startAngle:-YI/2,endAngle:-YI/2+.1,r:10},style:{stroke:e.color,lineCap:"round",lineWidth:5},zlevel:e.zlevel,z:10001}),a=new oM({style:{fill:"none",text:e.text,textPosition:"right",textDistance:10,textFill:e.textColor},zlevel:e.zlevel,z:10001});n.animateShape(!0).when(1e3,{endAngle:3*YI/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*YI/2}).delay(300).start("circularInOut");var o=new Uw;return o.add(n),o.add(a),o.add(i),o.resize=function(){var e=t.getWidth()/2,o=t.getHeight()/2;n.setShape({cx:e,cy:o});var r=n.shape.r;a.setShape({x:e-r,y:o-r,width:2*r,height:2*r}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},o.resize(),o})),Ns({type:"highlight",event:"highlight",update:"highlight"},V),Ns({type:"downplay",event:"downplay",update:"downplay"},V),Ls("light",iT),Ls("dark",aT);var jT={};Us.prototype={constructor:Us,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t=this._old,e=this._new,i={},n=[],a=[];for(Zs(t,{},n,"_oldKeyGetter",this),Zs(e,i,a,"_newKeyGetter",this),o=0;o<t.length;o++)null!=(s=i[r=n[o]])?((u=s.length)?(1===u&&(i[r]=null),s=s.unshift()):i[r]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o);for(var o=0;o<a.length;o++){var r=a[o];if(i.hasOwnProperty(r)){var s=i[r];if(null==s)continue;if(s.length)for(var l=0,u=s.length;l<u;l++)this._add&&this._add(s[l]);else this._add&&this._add(s)}}}};var XT=z(["tooltip","label","itemName","itemId","seriesName"]),YT=b,qT="e\0\0",$T={float:"undefined"==typeof Float64Array?Array:Float64Array,int:"undefined"==typeof Int32Array?Array:Int32Array,ordinal:Array,number:Array,time:Array},KT="undefined"==typeof Uint32Array?Array:Uint32Array,JT="undefined"==typeof Uint16Array?Array:Uint16Array,QT=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],tA=["_extent","_approximateExtent","_rawExtent"],eA=function(t,e){t=t||["x","y"];for(var i={},n=[],a={},o=0;o<t.length;o++){var r=t[o];w(r)&&(r={name:r});var s=r.name;r.type=r.type||"float",r.coordDim||(r.coordDim=s,r.coordDimIndex=0),r.otherDims=r.otherDims||{},n.push(s),i[s]=r,r.index=o,r.createInvertedIndices&&(a[s]=[])}this.dimensions=n,this._dimensionInfos=i,this.hostModel=e,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=js(this),this._invertedIndicesMap=a,this._calculationInfo={}},iA=eA.prototype;iA.type="list",iA.hasItemOption=!0,iA.getDimension=function(t){return isNaN(t)||(t=this.dimensions[t]||t),t},iA.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},iA.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},iA.mapDimension=function(t,e){var i=this._dimensionsSummary;if(null==e)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return!0===e?(n||[]).slice():n&&n[e]},iA.initData=function(t,e,i){(yo.isInstance(t)||d(t))&&(t=new ar(t,this.dimensions.length)),this._rawData=t,this._storage={},this._indices=null,this._nameList=e||[],this._idList=[],this._nameRepeatCount={},i||(this.hasItemOption=!1),this.defaultDimValueGetter=DI[this._rawData.getSource().sourceFormat],this._dimValueGetter=i=i||this.defaultDimValueGetter,this._rawExtent={},this._initDataFromProvider(0,t.count()),t.pure&&(this.hasItemOption=!1)},iA.getProvider=function(){return this._rawData},iA.appendData=function(t){var e=this._rawData,i=this.count();e.appendData(t);var n=e.count();e.persistent||(n+=i),this._initDataFromProvider(i,n)},iA._initDataFromProvider=function(t,e){if(!(t>=e)){for(var i,n=this._chunkSize,a=this._rawData,o=this._storage,r=this.dimensions,s=r.length,l=this._dimensionInfos,u=this._nameList,h=this._idList,c=this._rawExtent,d=this._nameRepeatCount={},f=this._chunkCount,p=f-1,g=0;g<s;g++){c[T=r[g]]||(c[T]=[1/0,-1/0]);var m=l[T];0===m.otherDims.itemName&&(i=this._nameDimIdx=g),0===m.otherDims.itemId&&(this._idDimIdx=g);var v=$T[m.type];o[T]||(o[T]=[]);var y=o[T][p];if(y&&y.length<n){for(var x=new v(Math.min(e-p*n,n)),_=0;_<y.length;_++)x[_]=y[_];o[T][p]=x}for(I=f*n;I<e;I+=n)o[T].push(new v(Math.min(e-I,n)));this._chunkCount=o[T].length}for(var w=new Array(s),b=t;b<e;b++){w=a.getItem(b,w);for(var S=Math.floor(b/n),M=b%n,I=0;I<s;I++){var T=r[I],A=o[T][S],D=this._dimValueGetter(w,T,b,I);A[M]=D;var C=c[T];D<C[0]&&(C[0]=D),D>C[1]&&(C[1]=D)}if(!a.pure){var L=u[b];if(w&&null==L)if(null!=w.name)u[b]=L=w.name;else if(null!=i){var k=r[i],P=o[k][S];if(P){L=P[M];var N=l[k].ordinalMeta;N&&N.categories.length&&(L=N.categories[L])}}var O=null==w?null:w.id;null==O&&null!=L&&(d[L]=d[L]||0,O=L,d[L]>0&&(O+="__ec__"+d[L]),d[L]++),null!=O&&(h[b]=O)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent={},Js(this)}},iA.count=function(){return this._count},iA.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,i=this._count;if(e===Array)for(n=new e(i),a=0;a<i;a++)n[a]=t[a];else n=new e(t.buffer,0,i)}else for(var n=new(e=qs(this))(this.count()),a=0;a<n.length;a++)n[a]=a;return n},iA.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._storage;if(!i[t])return NaN;e=this.getRawIndex(e);var n=Math.floor(e/this._chunkSize),a=e%this._chunkSize;return i[t][n][a]},iA.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._storage[t];if(!i)return NaN;var n=Math.floor(e/this._chunkSize),a=e%this._chunkSize;return i[n][a]},iA._getFast=function(t,e){var i=Math.floor(e/this._chunkSize),n=e%this._chunkSize;return this._storage[t][i][n]},iA.getValues=function(t,e){var i=[];x(t)||(e=t,t=this.dimensions);for(var n=0,a=t.length;n<a;n++)i.push(this.get(t[n],e));return i},iA.hasValue=function(t){for(var e=this._dimensionsSummary.dataDimsOnCoord,i=this._dimensionInfos,n=0,a=e.length;n<a;n++)if("ordinal"!==i[e[n]].type&&isNaN(this.get(e[n],t)))return!1;return!0},iA.getDataExtent=function(t){t=this.getDimension(t);var e=[1/0,-1/0];if(!this._storage[t])return e;var i,n=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();for(var a=(i=e)[0],o=i[1],r=0;r<n;r++){var s=this._getFast(t,this.getRawIndex(r));s<a&&(a=s),s>o&&(o=s)}return i=[a,o],this._extent[t]=i,i},iA.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},iA.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},iA.getCalculationInfo=function(t){return this._calculationInfo[t]},iA.setCalculationInfo=function(t,e){YT(t)?r(this._calculationInfo,t):this._calculationInfo[t]=e},iA.getSum=function(t){var e=0;if(this._storage[t])for(var i=0,n=this.count();i<n;i++){var a=this.get(t,i);isNaN(a)||(e+=a)}return e},iA.getMedian=function(t){var e=[];this.each(t,(function(t,i){isNaN(t)||e.push(t)}));var i=[].concat(e).sort((function(t,e){return t-e})),n=this.count();return 0===n?0:n%2==1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},iA.rawIndexOf=function(t,e){var i=(t&&this._invertedIndicesMap[t])[e];return null==i||isNaN(i)?-1:i},iA.indexOfName=function(t){for(var e=0,i=this.count();e<i;e++)if(this.getName(e)===t)return e;return-1},iA.indexOfRawIndex=function(t){if(!this._indices)return t;if(t>=this._rawCount||t<0)return-1;var e=this._indices,i=e[t];if(null!=i&&i<this._count&&i===t)return t;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(e[o]<t)n=o+1;else{if(!(e[o]>t))return o;a=o-1}}return-1},iA.indicesOfNearest=function(t,e,i){var n=[];if(!this._storage[t])return n;null==i&&(i=1/0);for(var a=Number.MAX_VALUE,o=-1,r=0,s=this.count();r<s;r++){var l=e-this.get(t,r),u=Math.abs(l);l<=i&&u<=a&&((u<a||l>=0&&o<0)&&(a=u,o=l,n.length=0),n.push(r))}return n},iA.getRawIndex=tl,iA.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],i=0;i<this.dimensions.length;i++){var n=this.dimensions[i];e.push(this.get(n,t))}return e},iA.getName=function(t){var e=this.getRawIndex(t);return this._nameList[e]||Qs(this,this._nameDimIdx,e)||""},iA.getId=function(t){return il(this,this.getRawIndex(t))},iA.each=function(t,e,i,n){if(this._count){"function"==typeof t&&(n=i,i=e,e=t,t=[]),i=i||n||this;for(var a=(t=p(nl(t),this.getDimension,this)).length,o=0;o<this.count();o++)switch(a){case 0:e.call(i,o);break;case 1:e.call(i,this.get(t[0],o),o);break;case 2:e.call(i,this.get(t[0],o),this.get(t[1],o),o);break;default:for(var r=0,s=[];r<a;r++)s[r]=this.get(t[r],o);s[r]=o,e.apply(i,s)}}},iA.filterSelf=function(t,e,i,n){if(this._count){"function"==typeof t&&(n=i,i=e,e=t,t=[]),i=i||n||this,t=p(nl(t),this.getDimension,this);for(var a=this.count(),o=new(qs(this))(a),r=[],s=t.length,l=0,u=t[0],h=0;h<a;h++){var c,d=this.getRawIndex(h);if(0===s)c=e.call(i,h);else if(1===s){var f=this._getFast(u,d);c=e.call(i,f,h)}else{for(var g=0;g<s;g++)r[g]=this._getFast(u,d);r[g]=h,c=e.apply(i,r)}c&&(o[l++]=d)}return l<a&&(this._indices=o),this._count=l,this._extent={},this.getRawIndex=this._indices?el:tl,this}},iA.selectRange=function(t){if(this._count){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);var n=e.length;if(n){var a=this.count(),o=new(qs(this))(a),r=0,s=e[0],l=t[s][0],u=t[s][1],h=!1;if(!this._indices){var c=0;if(1===n){for(var d=this._storage[e[0]],f=0;f<this._chunkCount;f++)for(var p=d[f],g=Math.min(this._count-f*this._chunkSize,this._chunkSize),m=0;m<g;m++)((w=p[m])>=l&&w<=u||isNaN(w))&&(o[r++]=c),c++;h=!0}else if(2===n){d=this._storage[s];var v=this._storage[e[1]],y=t[e[1]][0],x=t[e[1]][1];for(f=0;f<this._chunkCount;f++){p=d[f];var _=v[f];for(g=Math.min(this._count-f*this._chunkSize,this._chunkSize),m=0;m<g;m++){var w=p[m],b=_[m];(w>=l&&w<=u||isNaN(w))&&(b>=y&&b<=x||isNaN(b))&&(o[r++]=c),c++}}h=!0}}if(!h)if(1===n)for(m=0;m<a;m++)M=this.getRawIndex(m),((w=this._getFast(s,M))>=l&&w<=u||isNaN(w))&&(o[r++]=M);else for(m=0;m<a;m++){var S=!0,M=this.getRawIndex(m);for(f=0;f<n;f++){var I=e[f];((w=this._getFast(i,M))<t[I][0]||w>t[I][1])&&(S=!1)}S&&(o[r++]=this.getRawIndex(m))}return r<a&&(this._indices=o),this._count=r,this._extent={},this.getRawIndex=this._indices?el:tl,this}}},iA.mapArray=function(t,e,i,n){"function"==typeof t&&(n=i,i=e,e=t,t=[]),i=i||n||this;var a=[];return this.each(t,(function(){a.push(e&&e.apply(this,arguments))}),i),a},iA.map=function(t,e,i,n){i=i||n||this;var a=al(this,t=p(nl(t),this.getDimension,this));a._indices=this._indices,a.getRawIndex=a._indices?el:tl;for(var o=a._storage,r=[],s=this._chunkSize,l=t.length,u=this.count(),h=[],c=a._rawExtent,d=0;d<u;d++){for(var f=0;f<l;f++)h[f]=this.get(t[f],d);h[l]=d;var g=e&&e.apply(i,h);if(null!=g){"object"!=typeof g&&(r[0]=g,g=r);for(var m=this.getRawIndex(d),v=Math.floor(m/s),y=m%s,x=0;x<g.length;x++){var _=t[x],w=g[x],b=c[_],S=o[_];S&&(S[v][y]=w),w<b[0]&&(b[0]=w),w>b[1]&&(b[1]=w)}}}return a},iA.downSample=function(t,e,i,n){for(var a=al(this,[t]),o=a._storage,r=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=this._chunkSize,c=a._rawExtent[t],d=new(qs(this))(u),f=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,r.length=s);for(var g=0;g<s;g++){var m=this.getRawIndex(p+g),v=Math.floor(m/h),y=m%h;r[g]=l[v][y]}var x=i(r),_=this.getRawIndex(Math.min(p+n(r,x)||0,u-1)),w=_%h;l[Math.floor(_/h)][w]=x,x<c[0]&&(c[0]=x),x>c[1]&&(c[1]=x),d[f++]=_}return a._count=f,a._indices=d,a.getRawIndex=el,a},iA.getItemModel=function(t){var e=this.hostModel;return new La(this.getRawDataItem(t),e,e&&e.ecModel)},iA.diff=function(t){var e=this;return new Us(t?t.getIndices():[],this.getIndices(),(function(e){return il(t,e)}),(function(t){return il(e,t)}))},iA.getVisual=function(t){var e=this._visual;return e&&e[t]},iA.setVisual=function(t,e){if(YT(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},iA.setLayout=function(t,e){if(YT(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},iA.getLayout=function(t){return this._layout[t]},iA.getItemLayout=function(t){return this._itemLayouts[t]},iA.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?r(this._itemLayouts[t]||{},e):e},iA.clearItemLayouts=function(){this._itemLayouts.length=0},iA.getItemVisual=function(t,e,i){var n=this._itemVisuals[t],a=n&&n[e];return null!=a||i?a:this.getVisual(e)},iA.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{},a=this.hasItemVisual;if(this._itemVisuals[t]=n,YT(e))for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o],a[o]=!0);else n[e]=i,a[e]=!0},iA.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var nA=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};iA.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e.traverse(nA,e)),this._graphicEls[t]=e},iA.getItemGraphicEl=function(t){return this._graphicEls[t]},iA.eachItemGraphicEl=function(t,e){f(this._graphicEls,(function(i,n){i&&t&&t.call(e,i,n)}))},iA.cloneShallow=function(t){if(!t){var e=p(this.dimensions,this.getDimensionInfo,this);t=new eA(e,this.hostModel)}if(t._storage=this._storage,Ks(t,this),this._indices){var i=this._indices.constructor;t._indices=new i(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?el:tl,t},iA.wrapMethod=function(t,e){var i=this[t];"function"==typeof i&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(L(arguments)))})},iA.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],iA.CHANGABLE_METHODS=["filterSelf","selectRange"];var aA=function(t,e){return e=e||{},sl(e.coordDimensions||[],t,{dimsDef:e.dimensionsDefine||t.dimensionsDefine,encodeDef:e.encodeDefine||t.encodeDefine,dimCount:e.dimensionsCount,generateCoord:e.generateCoord,generateCoordCount:e.generateCoordCount})};ml.prototype.parse=function(t){return t},ml.prototype.getSetting=function(t){return this._setting[t]},ml.prototype.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},ml.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},ml.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},ml.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},ml.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},ml.prototype.getExtent=function(){return this._extent.slice()},ml.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},ml.prototype.isBlank=function(){return this._isBlank},ml.prototype.setBlank=function(t){this._isBlank=t},ml.prototype.getLabel=null,Xi(ml),Ki(ml,{registerWhenExtend:!0}),vl.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&p(i,xl);return new vl({categories:n,needCollect:!n,deduplication:!1!==e.dedplication})};var oA=vl.prototype;oA.getOrdinal=function(t){return yl(this).get(t)},oA.parseAndCollect=function(t){var e,i=this._needCollect;if("string"!=typeof t&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=yl(this);return null==(e=n.get(t))&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e};var rA=ml.prototype,sA=ml.extend({type:"ordinal",init:function(t,e){t&&!x(t)||(t=new vl({categories:t})),this._ordinalMeta=t,this._extent=e||[0,t.categories.length-1]},parse:function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},contain:function(t){return t=this.parse(t),rA.contain.call(this,t)&&null!=this._ordinalMeta.categories[t]},normalize:function(t){return rA.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(rA.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push(i),i++;return t},getLabel:function(t){if(!this.isBlank())return this._ordinalMeta.categories[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:V,niceExtent:V});sA.create=function(){return new sA};var lA=za,uA=za,hA=ml.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),hA.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=wl(t)},getTicks:function(){return Ml(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getLabel:function(t,e){if(null==t)return"";var i=e&&e.precision;return null==i?i=Fa(t)||0:"auto"===i&&(i=this._intervalPrecision),t=uA(t,i,!0),Ka(t)},niceTicks:function(t,e,i){t=t||5;var n=this._extent,a=n[1]-n[0];if(isFinite(a)){a<0&&(a=-a,n.reverse());var o=_l(n,t,e,i);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},niceExtent:function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var i=e[0];t.fixMax||(e[1]+=i/2),e[0]-=i/2}else e[1]=1;var n=e[1]-e[0];isFinite(n)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var a=this._interval;t.fixMin||(e[0]=uA(Math.floor(e[0]/a)*a)),t.fixMax||(e[1]=uA(Math.ceil(e[1]/a)*a))}});hA.create=function(){return new hA};var cA="__ec_stack_",dA="undefined"!=typeof Float32Array?Float32Array:Array,fA={seriesType:"bar",plan:zI(),reset:function(t){if(Nl(t)&&Ol(t)){var e=t.getData(),i=t.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=e.mapDimension(a.dim),r=e.mapDimension(n.dim),s=a.isHorizontal(),l=s?0:1,u=kl(Cl([t]),n,t).width;return u>.5||(u=.5),{progress:function(t,e){for(var n,h=new dA(2*t.count),c=[],d=[],f=0;null!=(n=t.next());)d[l]=e.get(o,n),d[1-l]=e.get(r,n),c=i.dataToPoint(d,null,c),h[f++]=c[0],h[f++]=c[1];e.setLayout({largePoints:h,barWidth:u,valueAxisStart:El(0,a),valueAxisHorizontal:s})}}}}},pA=hA.prototype,gA=Math.ceil,mA=Math.floor,vA=function(t,e,i,n){for(;i<n;){var a=i+n>>>1;t[a][1]<e?i=a+1:n=a}return i},yA=hA.extend({type:"time",getLabel:function(t){var e=this._stepLvl,i=new Date(t);return ao(e[0],i,this.getSetting("useUTC"))},niceExtent:function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=864e5,e[1]+=864e5),e[1]===-1/0&&e[0]===1/0){var i=new Date;e[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),e[0]=e[1]-864e5}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var n=this._interval;t.fixMin||(e[0]=za(mA(e[0]/n)*n)),t.fixMax||(e[1]=za(gA(e[1]/n)*n))},niceTicks:function(t,e,i){t=t||10;var n=this._extent,a=n[1]-n[0],o=a/t;null!=e&&o<e&&(o=e),null!=i&&o>i&&(o=i);var r=xA.length,s=vA(xA,o,0,r),l=xA[Math.min(s,r-1)],u=l[1];"year"===l[0]&&(u*=Ya(a/u/t,!0));var h=this.getSetting("useUTC")?0:60*new Date(+n[0]||+n[1]).getTimezoneOffset()*1e3,c=[Math.round(gA((n[0]-h)/u)*u+h),Math.round(mA((n[1]-h)/u)*u+h)];Sl(c,n),this._stepLvl=l,this._interval=u,this._niceExtent=c},parse:function(t){return+Za(t)}});f(["contain","normalize"],(function(t){yA.prototype[t]=function(e){return pA[t].call(this,this.parse(e))}}));var xA=[["hh:mm:ss",1e3],["hh:mm:ss",5e3],["hh:mm:ss",1e4],["hh:mm:ss",15e3],["hh:mm:ss",3e4],["hh:mm\nMM-dd",6e4],["hh:mm\nMM-dd",3e5],["hh:mm\nMM-dd",6e5],["hh:mm\nMM-dd",9e5],["hh:mm\nMM-dd",18e5],["hh:mm\nMM-dd",36e5],["hh:mm\nMM-dd",72e5],["hh:mm\nMM-dd",216e5],["hh:mm\nMM-dd",432e5],["MM-dd\nyyyy",864e5],["MM-dd\nyyyy",1728e5],["MM-dd\nyyyy",2592e5],["MM-dd\nyyyy",3456e5],["MM-dd\nyyyy",432e6],["MM-dd\nyyyy",5184e5],["week",6048e5],["MM-dd\nyyyy",864e6],["week",12096e5],["week",18144e5],["month",26784e5],["week",36288e5],["month",53568e5],["week",6048e6],["quarter",8208e6],["month",107136e5],["month",13392e6],["half-year",16416e6],["month",214272e5],["month",26784e6],["year",32832e6]];yA.create=function(t){return new yA({useUTC:t.ecModel.get("useUTC")})};var _A=ml.prototype,wA=hA.prototype,bA=Fa,SA=za,MA=Math.floor,IA=Math.ceil,TA=Math.pow,AA=Math.log,DA=ml.extend({type:"log",base:10,$constructor:function(){ml.apply(this,arguments),this._originalScale=new hA},getTicks:function(){var t=this._originalScale,e=this._extent,i=t.getExtent();return p(wA.getTicks.call(this),(function(n){var a=za(TA(this.base,n));return a=n===e[0]&&t.__fixMin?Rl(a,i[0]):a,n===e[1]&&t.__fixMax?Rl(a,i[1]):a}),this)},getLabel:wA.getLabel,scale:function(t){return t=_A.scale.call(this,t),TA(this.base,t)},setExtent:function(t,e){var i=this.base;t=AA(t)/AA(i),e=AA(e)/AA(i),wA.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=_A.getExtent.call(this);e[0]=TA(t,e[0]),e[1]=TA(t,e[1]);var i=this._originalScale,n=i.getExtent();return i.__fixMin&&(e[0]=Rl(e[0],n[0])),i.__fixMax&&(e[1]=Rl(e[1],n[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=AA(t[0])/AA(e),t[1]=AA(t[1])/AA(e),_A.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getApproximateExtent(e))},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(i===1/0||i<=0)){var n=ja(i);for(t/i*n<=.5&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var a=[za(IA(e[0]/n)*n),za(MA(e[1]/n)*n)];this._interval=n,this._niceExtent=a}},niceExtent:function(t){wA.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});f(["contain","normalize"],(function(t){DA.prototype[t]=function(e){return e=AA(e)/AA(this.base),_A[t].call(this,e)}})),DA.create=function(){return new DA};var CA={getMin:function(t){var e=this.option,i=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=i&&"dataMin"!==i&&"function"!=typeof i&&!T(i)&&(i=this.axis.scale.parse(i)),i},getMax:function(t){var e=this.option,i=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=i&&"dataMax"!==i&&"function"!=typeof i&&!T(i)&&(i=this.axis.scale.parse(i)),i},getNeedCrossZero:function(){var t=this.option;return null==t.rangeStart&&null==t.rangeEnd&&!t.scale},getCoordSysModel:V,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}},LA=Wn({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,a=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+a,n+o),t.lineTo(i-a,n+o),t.closePath()}}),kA=Wn({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,a=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+a,n),t.lineTo(i,n+o),t.lineTo(i-a,n),t.closePath()}}),PA=Wn({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,a=e.width/5*3,o=Math.max(a,e.height),r=a/2,s=r*r/(o-r),l=n-o+r+s,u=Math.asin(s/r),h=Math.cos(u)*r,c=Math.sin(u),d=Math.cos(u),f=.6*r,p=.7*r;t.moveTo(i-h,l+s),t.arc(i,l,r,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(i+h-c*f,l+s+d*f,i,n-p,i,n),t.bezierCurveTo(i,n-p,i-h+c*f,l+s+d*f,i-h,l+s),t.closePath()}}),NA=Wn({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,a=e.x,o=e.y,r=n/3*2;t.moveTo(a,o),t.lineTo(a+r,o+i),t.lineTo(a,o+i/4*3),t.lineTo(a-r,o+i),t.lineTo(a,o),t.closePath()}}),OA={line:function(t,e,i,n,a){a.x1=t,a.y1=e+n/2,a.x2=t+i,a.y2=e+n/2},rect:function(t,e,i,n,a){a.x=t,a.y=e,a.width=i,a.height=n},roundRect:function(t,e,i,n,a){a.x=t,a.y=e,a.width=i,a.height=n,a.r=Math.min(i,n)/4},square:function(t,e,i,n,a){var o=Math.min(i,n);a.x=t,a.y=e,a.width=o,a.height=o},circle:function(t,e,i,n,a){a.cx=t+i/2,a.cy=e+n/2,a.r=Math.min(i,n)/2},diamond:function(t,e,i,n,a){a.cx=t+i/2,a.cy=e+n/2,a.width=i,a.height=n},pin:function(t,e,i,n,a){a.x=t+i/2,a.y=e+n/2,a.width=i,a.height=n},arrow:function(t,e,i,n,a){a.x=t+i/2,a.y=e+n/2,a.width=i,a.height=n},triangle:function(t,e,i,n,a){a.cx=t+i/2,a.cy=e+n/2,a.width=i,a.height=n}},EA={};f({line:rM,rect:oM,roundRect:oM,square:oM,circle:$S,diamond:kA,pin:PA,arrow:NA,triangle:LA},(function(t,e){EA[e]=new t}));var RA=Wn({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style;"pin"===this.shape.symbolType&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t.textAlign="center",t.textVerticalAlign="middle")},buildPath:function(t,e,i){var n=e.symbolType,a=EA[n];"none"!==e.symbolType&&(a||(a=EA[n="rect"]),OA[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,i))}}),zA={isDimensionStacked:cl,enableDataStack:hl,getStackedDimension:dl},BA=(Object.freeze||Object)({createList:function(t){return fl(t.getSource(),t)},getLayoutRect:lo,dataStack:zA,createScale:function(t,e){var i=e;La.isInstance(e)||c(i=new La(e),CA);var n=Fl(i);return n.setExtent(t[0],t[1]),Vl(n,i),n},mixinAxisModelCommonMethods:function(t){c(t,CA)},completeDimensions:sl,createDimensions:aA,createSymbol:Xl}),VA=1e-8;$l.prototype={constructor:$l,properties:null,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,i=[e,e],n=[-e,-e],a=[],o=[],r=this.geometries,s=0;s<r.length;s++)"polygon"===r[s].type&&(fn(r[s].exterior,a,o),et(i,i,a),it(n,n,o));return 0===s&&(i[0]=i[1]=n[0]=n[1]=0),this._rect=new he(i[0],i[1],n[0]-i[0],n[1]-i[1])},contain:function(t){var e=this.getBoundingRect(),i=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var n=0,a=i.length;n<a;n++)if("polygon"===i[n].type){var o=i[n].exterior,r=i[n].interiors;if(ql(o,t[0],t[1])){for(var s=0;s<(r?r.length:0);s++)if(ql(r[s]))continue t;return!0}}return!1},transformTo:function(t,e,i,n){var a=this.getBoundingRect(),o=a.width/a.height;i?n||(n=i/o):i=o*n;for(var r=new he(t,e,i,n),s=a.calculateTransform(r),l=this.geometries,u=0;u<l.length;u++)if("polygon"===l[u].type){for(var h=l[u].exterior,c=l[u].interiors,d=0;d<h.length;d++)tt(h[d],h[d],s);for(var f=0;f<(c?c.length:0);f++)for(d=0;d<c[f].length;d++)tt(c[f][d],c[f][d],s)}(a=this._rect).copy(r),this.center=[a.x+a.width/2,a.y+a.height/2]},cloneShallow:function(t){null==t&&(t=this.name);var e=new $l(t,this.geometries,this.center);return e._rect=this._rect,e.transformTo=null,e}};var FA=function(t){return Kl(t),p(m(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var e=t.properties,i=t.geometry,n=i.coordinates,a=[];"Polygon"===i.type&&a.push({type:"polygon",exterior:n[0],interiors:n.slice(1)}),"MultiPolygon"===i.type&&f(n,(function(t){t[0]&&a.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})}));var o=new $l(e.name,a,e.cp);return o.properties=e,o}))},GA=Vi(),WA=[0,1],HA=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};HA.prototype={constructor:HA,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return Ga(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&pu(i=i.slice(),n.count()),Ea(t,WA,i,e)},coordToData:function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&pu(i=i.slice(),n.count());var a=Ea(t,i,WA,e);return this.scale.scale(a)},pointToData:function(t,e){},getTicksCoords:function(t){var e=(t=t||{}).tickModel||this.getTickModel(),i=tu(this,e),n=p(i.ticks,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this),a=e.get("alignWithLabel");return gu(this,n,i.tickCategoryInterval,a,t.clamp),n},getViewLabels:function(){return Ql(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return uu(this)}};var UA=FA,ZA={};f(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],(function(t){ZA[t]=K_[t]}));var jA={};f(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],(function(t){jA[t]=bM[t]})),OI.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,e){return fl(this.getSource(),this)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clipOverflow:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}});var XA=vu.prototype,YA=vu.getSymbolSize=function(t,e){var i=t.getItemVisual(e,"symbolSize");return i instanceof Array?i.slice():[+i,+i]};XA._createSymbol=function(t,e,i,n,a){this.removeAll();var o=Xl(t,-1,-1,2,2,e.getItemVisual(i,"color"),a);o.attr({z2:100,culling:!0,scale:yu(n)}),o.drift=xu,this._symbolType=t,this.add(o)},XA.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},XA.getSymbolPath=function(){return this.childAt(0)},XA.getScale=function(){return this.childAt(0).scale},XA.highlight=function(){this.childAt(0).trigger("emphasis")},XA.downplay=function(){this.childAt(0).trigger("normal")},XA.setZ=function(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},XA.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},XA.updateData=function(t,e,i){this.silent=!1;var n=t.getItemVisual(e,"symbol")||"circle",a=t.hostModel,o=YA(t,e),r=n!==this._symbolType;if(r){var s=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(n,t,e,o,s)}else(l=this.childAt(0)).silent=!1,ba(l,{scale:yu(o)},a,e);if(this._updateCommon(t,e,o,i),r){var l=this.childAt(0),u=i&&i.fadeIn,h={scale:l.scale.slice()};u&&(h.style={opacity:l.style.opacity}),l.scale=[0,0],u&&(l.style.opacity=0),Sa(l,h,a,e)}this._seriesModel=a};var qA=["itemStyle"],$A=["emphasis","itemStyle"],KA=["label"],JA=["emphasis","label"];XA._updateCommon=function(t,e,i,n){var a=this.childAt(0),o=t.hostModel,s=t.getItemVisual(e,"color");"image"!==a.type&&a.useStyle({strokeNoScale:!0});var l=n&&n.itemStyle,u=n&&n.hoverItemStyle,h=n&&n.symbolRotate,c=n&&n.symbolOffset,d=n&&n.labelModel,f=n&&n.hoverLabelModel,p=n&&n.hoverAnimation,g=n&&n.cursorStyle;if(!n||t.hasItemOption){var m=n&&n.itemModel?n.itemModel:t.getItemModel(e);l=m.getModel(qA).getItemStyle(["color"]),u=m.getModel($A).getItemStyle(),h=m.getShallow("symbolRotate"),c=m.getShallow("symbolOffset"),d=m.getModel(KA),f=m.getModel(JA),p=m.getShallow("hoverAnimation"),g=m.getShallow("cursor")}else u=r({},u);var v=a.style;a.attr("rotation",(h||0)*Math.PI/180||0),c&&a.attr("position",[Ra(c[0],i[0]),Ra(c[1],i[1])]),g&&a.attr("cursor",g),a.setColor(s,n&&n.symbolInnerColor),a.setStyle(l);var y=t.getItemVisual(e,"opacity");null!=y&&(v.opacity=y);var x=t.getItemVisual(e,"liftZ"),_=a.__z2Origin;null!=x?null==_&&(a.__z2Origin=a.z2,a.z2+=x):null!=_&&(a.z2=_,a.__z2Origin=null);var w=n&&n.useNameLabel;da(v,u,d,f,{labelFetcher:o,labelDataIndex:e,defaultText:function(e,i){return w?t.getName(e):mu(t,e)},isRectText:!0,autoColor:s}),a.off("mouseover").off("mouseout").off("emphasis").off("normal"),a.hoverStyle=u,ha(a),a.__symbolOriginalScale=yu(i),p&&o.isAnimationEnabled()&&a.on("mouseover",_u).on("mouseout",wu).on("emphasis",bu).on("normal",Su)},XA.fadeOut=function(t,e){var i=this.childAt(0);this.silent=i.silent=!0,!(e&&e.keepLabel)&&(i.style.text=null),ba(i,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,t)},h(vu,Uw);var QA=Mu.prototype;QA.updateData=function(t,e){e=Tu(e);var i=this.group,n=t.hostModel,a=this._data,o=this._symbolCtor,r=Au(t);a||i.removeAll(),t.diff(a).add((function(n){var a=t.getItemLayout(n);if(Iu(t,a,n,e)){var s=new o(t,n,r);s.attr("position",a),t.setItemGraphicEl(n,s),i.add(s)}})).update((function(s,l){var u=a.getItemGraphicEl(l),h=t.getItemLayout(s);Iu(t,h,s,e)?(u?(u.updateData(t,s,r),ba(u,{position:h},n)):(u=new o(t,s)).attr("position",h),i.add(u),t.setItemGraphicEl(s,u)):i.remove(u)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&e.fadeOut((function(){i.remove(e)}))})).execute(),this._data=t},QA.isPersistent=function(){return!0},QA.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl((function(e,i){var n=t.getItemLayout(i);e.attr("position",n)}))},QA.incrementalPrepareUpdate=function(t){this._seriesScope=Au(t),this._data=null,this.group.removeAll()},QA.incrementalUpdate=function(t,e,i){i=Tu(i);for(var n=t.start;n<t.end;n++){var a=e.getItemLayout(n);if(Iu(e,a,n,i)){var o=new this._symbolCtor(e,n,this._seriesScope);o.traverse((function(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)})),o.attr("position",a),this.group.add(o),e.setItemGraphicEl(n,o)}}},QA.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}))})):e.removeAll()};var tD=function(t,e,i,n,a,o,r,s){for(var l=ku(t,e),u=[],h=[],c=[],d=[],f=[],p=[],g=[],m=Du(a,e,r),v=Du(o,t,s),y=0;y<l.length;y++){var x=l[y],_=!0;switch(x.cmd){case"=":var w=t.getItemLayout(x.idx),b=e.getItemLayout(x.idx1);(isNaN(w[0])||isNaN(w[1]))&&(w=b.slice()),u.push(w),h.push(b),c.push(i[x.idx]),d.push(n[x.idx1]),g.push(e.getRawIndex(x.idx1));break;case"+":S=x.idx,u.push(a.dataToPoint([e.get(m.dataDimsForPoint[0],S),e.get(m.dataDimsForPoint[1],S)])),h.push(e.getItemLayout(S).slice()),c.push(Lu(m,a,e,S)),d.push(n[S]),g.push(e.getRawIndex(S));break;case"-":var S=x.idx,M=t.getRawIndex(S);M!==S?(u.push(t.getItemLayout(S)),h.push(o.dataToPoint([t.get(v.dataDimsForPoint[0],S),t.get(v.dataDimsForPoint[1],S)])),c.push(i[S]),d.push(Lu(v,o,t,S)),g.push(M)):_=!1}_&&(f.push(x),p.push(p.length))}p.sort((function(t,e){return g[t]-g[e]}));var I=[],T=[],A=[],D=[],C=[];for(y=0;y<p.length;y++)S=p[y],I[y]=u[S],T[y]=h[S],A[y]=c[S],D[y]=d[S],C[y]=f[S];return{current:I,next:T,stackedOnCurrent:A,stackedOnNext:D,status:C}},eD=et,iD=it,nD=Z,aD=G,oD=[],rD=[],sD=[],lD=Pn.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:JS(Pn.prototype.brush),buildPath:function(t,e){var i=e.points,n=0,a=i.length,o=Ru(i,e.smoothConstraint);if(e.connectNulls){for(;a>0&&Pu(i[a-1]);a--);for(;n<a&&Pu(i[n]);n++);}for(;n<a;)n+=Nu(t,i,n,a,a,1,o.min,o.max,e.smooth,e.smoothMonotone,e.connectNulls)+1}}),uD=Pn.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:JS(Pn.prototype.brush),buildPath:function(t,e){var i=e.points,n=e.stackedOnPoints,a=0,o=i.length,r=e.smoothMonotone,s=Ru(i,e.smoothConstraint),l=Ru(n,e.smoothConstraint);if(e.connectNulls){for(;o>0&&Pu(i[o-1]);o--);for(;a<o&&Pu(i[a]);a++);}for(;a<o;){var u=Nu(t,i,a,o,o,1,s.min,s.max,e.smooth,r,e.connectNulls);Nu(t,n,a+u-1,u,o,-1,l.min,l.max,e.stackedOnSmooth,r,e.connectNulls),a+=u+1,t.closePath()}}});Ir.extend({type:"line",init:function(){var t=new Uw,e=new Mu;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,i){var n=t.coordinateSystem,a=this.group,o=t.getData(),r=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=o.mapArray(o.getItemLayout),h="polar"===n.type,c=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,g=this._lineGroup,m=t.get("animation"),v=!l.isEmpty(),y=l.get("origin"),x=Fu(n,o,Du(n,o,y)),_=t.get("showSymbol"),w=_&&!h&&ju(t,o,n),b=this._data;b&&b.eachItemGraphicEl((function(t,e){t.__temp&&(a.remove(t),b.setItemGraphicEl(e,null))})),_||d.remove(),a.add(g);var S=!h&&t.get("step");f&&c.type===n.type&&S===this._step?(v&&!p?p=this._newPolygon(u,x,n,m):p&&!v&&(g.remove(p),p=this._polygon=null),g.setClipPath(Hu(n,!1,!1,t)),_&&d.updateData(o,{isIgnore:w,clipShape:Hu(n,!1,!0,t)}),o.eachItemGraphicEl((function(t){t.stopAnimation(!0)})),zu(this._stackedOnPoints,x)&&zu(this._points,u)||(m?this._updateAnimation(o,x,n,i,S,y):(S&&(u=Uu(u,n,S),x=Uu(x,n,S)),f.setShape({points:u}),p&&p.setShape({points:u,stackedOnPoints:x})))):(_&&d.updateData(o,{isIgnore:w,clipShape:Hu(n,!1,!0,t)}),S&&(u=Uu(u,n,S),x=Uu(x,n,S)),f=this._newPolyline(u,n,m),v&&(p=this._newPolygon(u,x,n,m)),g.setClipPath(Hu(n,!0,!1,t)));var M=Zu(o,n)||o.getVisual("color");f.useStyle(s(r.getLineStyle(),{fill:"none",stroke:M,lineJoin:"bevel"}));var I=t.get("smooth");if(I=Bu(t.get("smooth")),f.setShape({smooth:I,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),p){var T=o.getCalculationInfo("stackedOnSeries"),A=0;p.useStyle(s(l.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel"})),T&&(A=Bu(T.get("smooth"))),p.setShape({smooth:I,stackedOnSmooth:A,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=o,this._coordSys=n,this._stackedOnPoints=x,this._points=u,this._step=S,this._valueOrigin=y},dispose:function(){},highlight:function(t,e,i,n){var a=t.getData(),o=Bi(a,n);if(!(o instanceof Array)&&null!=o&&o>=0){var r=a.getItemGraphicEl(o);if(!r){var s=a.getItemLayout(o);if(!s)return;(r=new vu(a,o)).position=s,r.setZ(t.get("zlevel"),t.get("z")),r.ignore=isNaN(s[0])||isNaN(s[1]),r.__temp=!0,a.setItemGraphicEl(o,r),r.stopSymbolAnimation(!0),this.group.add(r)}r.highlight()}else Ir.prototype.highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var a=t.getData(),o=Bi(a,n);if(null!=o&&o>=0){var r=a.getItemGraphicEl(o);r&&(r.__temp?(a.setItemGraphicEl(o,null),this.group.remove(r)):r.downplay())}else Ir.prototype.downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new lD({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new uD({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_updateAnimation:function(t,e,i,n,a,o){var r=this._polyline,s=this._polygon,l=t.hostModel,u=tD(this._data,t,this._stackedOnPoints,e,this._coordSys,i,this._valueOrigin,o),h=u.current,c=u.stackedOnCurrent,d=u.next,f=u.stackedOnNext;a&&(h=Uu(u.current,i,a),c=Uu(u.stackedOnCurrent,i,a),d=Uu(u.next,i,a),f=Uu(u.stackedOnNext,i,a)),r.shape.__points=u.current,r.shape.points=h,ba(r,{shape:{points:d}},l),s&&(s.setShape({points:h,stackedOnPoints:c}),ba(s,{shape:{points:d,stackedOnPoints:f}},l));for(var p=[],g=u.status,m=0;m<g.length;m++)if("="===g[m].cmd){var v=t.getItemGraphicEl(g[m].idx1);v&&p.push({el:v,ptIdx:m})}r.animators&&r.animators.length&&r.animators[0].during((function(){for(var t=0;t<p.length;t++)p[t].el.attr("position",r.shape.__points[p[t].ptIdx])}))},remove:function(t){var e=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl((function(t,n){t.__temp&&(e.remove(t),i.setItemGraphicEl(n,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});var hD=function(t,e,i){return{seriesType:t,performRawSeries:!0,reset:function(t,n,a){var o=t.getData(),r=t.get("symbol")||e,s=t.get("symbolSize"),l=t.get("symbolKeepAspect");if(o.setVisual({legendSymbol:i||r,symbol:r,symbolSize:s,symbolKeepAspect:l}),!n.isSeriesFiltered(t)){var u="function"==typeof s;return{dataEach:o.hasItemOption||u?function(e,i){if("function"==typeof s){var n=t.getRawValue(i),a=t.getDataParams(i);e.setItemVisual(i,"symbolSize",s(n,a))}if(e.hasItemOption){var o=e.getItemModel(i),r=o.getShallow("symbol",!0),l=o.getShallow("symbolSize",!0),u=o.getShallow("symbolKeepAspect",!0);null!=r&&e.setItemVisual(i,"symbol",r),null!=l&&e.setItemVisual(i,"symbolSize",l),null!=u&&e.setItemVisual(i,"symbolKeepAspect",u)}}:null}}}}},cD=function(t){return{seriesType:t,plan:zI(),reset:function(t){var e=t.getData(),i=t.coordinateSystem,n=t.pipelineContext.large;if(i){var a=p(i.dimensions,(function(t){return e.mapDimension(t)})).slice(0,2),o=a.length,r=e.getCalculationInfo("stackResultDimension");return cl(e,a[0])&&(a[0]=r),cl(e,a[1])&&(a[1]=r),o&&{progress:function(t,e){for(var r=t.end-t.start,s=n&&new Float32Array(r*o),l=t.start,u=0,h=[],c=[];l<t.end;l++){var d;if(1===o)f=e.get(a[0],l),d=!isNaN(f)&&i.dataToPoint(f,null,c);else{var f=h[0]=e.get(a[0],l),p=h[1]=e.get(a[1],l);d=!isNaN(f)&&!isNaN(p)&&i.dataToPoint(h,null,c)}n?(s[u++]=d?d[0]:NaN,s[u++]=d?d[1]:NaN):e.setItemLayout(l,d&&d.slice()||[NaN,NaN])}n&&e.setLayout("symbolPoints",s)}}}}}},dD={average:function(t){for(var e=0,i=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],i++);return 0===i?NaN:e/i},sum:function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t.length;i++)t[i]>e&&(e=t[i]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,i=0;i<t.length;i++)t[i]<e&&(e=t[i]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},fD=function(t,e){return Math.round(t.length/2)},pD=function(t){this._axes={},this._dimList=[],this.name=t||""};pD.prototype={constructor:pD,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return p(this._dimList,Yu,this)},getAxesByScale:function(t){return t=t.toLowerCase(),m(this.getAxes(),(function(e){return e.scale.type===t}))},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var i=this._dimList,n=t instanceof Array?[]:{},a=0;a<i.length;a++){var o=i[a],r=this._axes[o];n[o]=r[e](t[o])}return n}},qu.prototype={constructor:qu,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoint:function(t,e,i){var n=this.getAxis("x"),a=this.getAxis("y");return i=i||[],i[0]=n.toGlobalCoord(n.dataToCoord(t[0])),i[1]=a.toGlobalCoord(a.dataToCoord(t[1])),i},clampData:function(t,e){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,a=i.getExtent(),o=n.getExtent(),r=i.parse(t[0]),s=n.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(a[0],a[1]),r),Math.max(a[0],a[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},pointToData:function(t,e){var i=this.getAxis("x"),n=this.getAxis("y");return e=e||[],e[0]=i.coordToData(i.toLocalCoord(t[0])),e[1]=n.coordToData(n.toLocalCoord(t[1])),e},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")}},h(qu,pD);var gD=function(t,e,i,n,a){HA.call(this,t,e,i),this.type=n||"value",this.position=a||"bottom"};gD.prototype={constructor:gD,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},h(gD,HA);var mD={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},vD={};vD.categoryAxis=a({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},mD),vD.valueAxis=a({boundaryGap:[0,0],splitNumber:5},mD),vD.timeAxis=s({scale:!0,min:"dataMin",max:"dataMax"},vD.valueAxis),vD.logAxis=s({scale:!0,logBase:10},vD.valueAxis);var yD=["value","category","time","log"],xD=function(t,e,i,n){f(yD,(function(r){e.extend({type:t+"Axis."+r,mergeDefaultAndTheme:function(e,n){var o=this.layoutMode,s=o?fo(e):{};a(e,n.getTheme().get(r+"Axis")),a(e,this.getDefaultOption()),e.type=i(t,e),o&&co(e,s,o)},optionUpdated:function(){"category"===this.option.type&&(this.__ordinalMeta=vl.createByAxisModel(this))},getCategories:function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:o([{},vD[r+"Axis"],n],!0)})})),YM.registerSubTypeDefaulter(t+"Axis",y(i,t))},_D=YM.extend({type:"cartesian2dAxis",axis:null,init:function(){_D.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){_D.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){_D.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});a(_D.prototype,CA);var wD={offset:0};xD("x",_D,$u,wD),xD("y",_D,$u,wD),YM.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});var bD=Ju.prototype;bD.type="grid",bD.axisPointerEnabled=!0,bD.getRect=function(){return this._rect},bD.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model),f(i.x,(function(t){Vl(t.scale,t.model)})),f(i.y,(function(t){Vl(t.scale,t.model)}));var n={};f(i.x,(function(t){Qu(i,"y",t,n)})),f(i.y,(function(t){Qu(i,"x",t,n)})),this.resize(this.model,e)},bD.resize=function(t,e,i){function n(){f(o,(function(t){var e=t.isHorizontal(),i=e?[0,a.width]:[0,a.height],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),eh(t,e?a.x:a.y)}))}var a=lo(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=a;var o=this._axesList;n(),!i&&t.get("containLabel")&&(f(o,(function(t){if(!t.model.get("axisLabel.inside")){var e=Ul(t);if(e){var i=t.isHorizontal()?"height":"width",n=t.model.get("axisLabel.margin");a[i]-=e[i]+n,"top"===t.position?a.y+=e.height+n:"left"===t.position&&(a.x+=e.width+n)}}})),n())},bD.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i){if(null==e)for(var n in i)if(i.hasOwnProperty(n))return i[n];return i[e]}},bD.getAxes=function(){return this._axesList.slice()},bD.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}b(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===t||a[n].getAxis("y").index===e)return a[n]},bD.getCartesians=function(){return this._coordsList.slice()},bD.convertToPixel=function(t,e,i){var n=this._findConvertTarget(t,e);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},bD.convertFromPixel=function(t,e,i){var n=this._findConvertTarget(t,e);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},bD._findConvertTarget=function(t,e){var i,n,a=e.seriesModel,o=e.xAxisModel||a&&a.getReferringComponents("xAxis")[0],r=e.yAxisModel||a&&a.getReferringComponents("yAxis")[0],s=e.gridModel,l=this._coordsList;return a?u(l,i=a.coordinateSystem)<0&&(i=null):o&&r?i=this.getCartesian(o.componentIndex,r.componentIndex):o?n=this.getAxis("x",o.componentIndex):r?n=this.getAxis("y",r.componentIndex):s&&s.coordinateSystem===this&&(i=this._coordsList[0]),{cartesian:i,axis:n}},bD.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},bD._initCartesian=function(t,e,i){function n(i){return function(n,s){if(Ku(n,t,e)){var l=n.get("position");"x"===i?"top"!==l&&"bottom"!==l&&a[l="bottom"]&&(l="top"===l?"bottom":"top"):"left"!==l&&"right"!==l&&a[l="left"]&&(l="left"===l?"right":"left"),a[l]=!0;var u=new gD(i,Fl(n),[0,0],n.get("type"),l),h="category"===u.type;u.onBand=h&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=this,u.index=s,this._axesList.push(u),o[i][s]=u,r[i]++}}}var a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},r={x:0,y:0};if(e.eachComponent("xAxis",n("x"),this),e.eachComponent("yAxis",n("y"),this),!r.x||!r.y)return this._axesMap={},void(this._axesList=[]);this._axesMap=o,f(o.x,(function(e,i){f(o.y,(function(n,a){var o="x"+i+"y"+a,r=new qu(o);r.grid=this,r.model=t,this._coordsMap[o]=r,this._coordsList.push(r),r.addAxis(e),r.addAxis(n)}),this)}),this)},bD._updateScale=function(t,e){function i(t,e,i){f(t.mapDimension(e.dim,!0),(function(i){e.scale.unionExtentFromData(t,dl(t,i))}))}f(this._axesList,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeries((function(n){if(nh(n)){var a=ih(n),o=a[0],r=a[1];if(!Ku(o,e,t)||!Ku(r,e,t))return;var s=this.getCartesian(o.componentIndex,r.componentIndex),l=n.getData(),u=s.getAxis("x"),h=s.getAxis("y");"list"===l.type&&(i(l,u),i(l,h))}}),this)},bD.getTooltipAxes=function(t){var e=[],i=[];return f(this.getCartesians(),(function(n){var a=null!=t&&"auto"!==t?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(a);u(e,a)<0&&e.push(a),u(i,o)<0&&i.push(o)})),{baseAxes:e,otherAxes:i}};var SD=["xAxis","yAxis"];Ju.create=function(t,e){var i=[];return t.eachComponent("grid",(function(n,a){var o=new Ju(n,t,e);o.name="grid_"+a,o.resize(n,e,!0),n.coordinateSystem=o,i.push(o)})),t.eachSeries((function(t){if(nh(t)){var e=ih(t),i=e[0],n=e[1],a=i.getCoordSysModel().coordinateSystem;t.coordinateSystem=a.getCartesian(i.componentIndex,n.componentIndex)}})),i},Ju.dimensions=Ju.prototype.dimensions=qu.prototype.dimensions,Vo.register("cartesian2d",Ju);var MD=Math.PI,ID=function(t,e){this.opt=e,this.axisModel=t,s(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new Uw;var i=new Uw({position:e.position.slice(),rotation:e.rotation});i.updateTransform(),this._transform=i.transform,this._dumbGroup=i};ID.prototype={constructor:ID,hasBuilder:function(t){return!!TD[t]},add:function(t){TD[t].call(this)},getGroup:function(){return this.group}};var TD={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis.getExtent(),n=this._transform,a=[i[0],0],o=[i[1],0];n&&(tt(a,a,n),tt(o,o,n));var s=r({lineCap:"round"},e.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new rM(Xn({anid:"line",shape:{x1:a[0],y1:a[1],x2:o[0],y2:o[1]},style:s,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})));var l=e.get("axisLine.symbol"),u=e.get("axisLine.symbolSize"),h=e.get("axisLine.symbolOffset")||0;if("number"==typeof h&&(h=[h,h]),null!=l){"string"==typeof l&&(l=[l,l]),"string"!=typeof u&&"number"!=typeof u||(u=[u,u]);var c=u[0],d=u[1];f([{rotate:t.rotation+Math.PI/2,offset:h[0],r:0},{rotate:t.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((a[0]-o[0])*(a[0]-o[0])+(a[1]-o[1])*(a[1]-o[1]))}],(function(e,i){if("none"!==l[i]&&null!=l[i]){var n=Xl(l[i],-c/2,-d/2,c,d,s.stroke,!0),o=e.r+e.offset,r=[a[0]+o*Math.cos(t.rotation),a[1]-o*Math.sin(t.rotation)];n.attr({rotation:e.rotate,position:r,silent:!0}),this.group.add(n)}}),this)}}},axisTickLabel:function(){var t=this.axisModel,e=this.opt,i=ch(this,t,e);sh(t,dh(this,t,e),i)},axisName:function(){var t=this.opt,e=this.axisModel,i=A(t.axisName,e.get("name"));if(i){var n,a,o=e.get("nameLocation"),s=t.nameDirection,l=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,h=this.axisModel.axis.getExtent(),c=h[0]>h[1]?-1:1,d=["start"===o?h[0]-c*u:"end"===o?h[1]+c*u:(h[0]+h[1])/2,hh(o)?t.labelOffset+s*u:0],f=e.get("nameRotate");null!=f&&(f=f*MD/180),hh(o)?n=AD(t.rotation,null!=f?f:t.rotation,s):(n=oh(t,o,f||0,h),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(n.rotation)),!isFinite(a)&&(a=null)));var p=l.getFont(),g=e.get("nameTruncate",!0)||{},m=g.ellipsis,v=A(t.nameTruncateMaxWidth,g.maxWidth,a),y=null!=m&&null!=v?VM(i,v,p,m,{minChar:2,placeholder:g.placeholder}):i,x=e.get("tooltip",!0),_=e.mainType,w={componentType:_,name:i,$vars:["name"]};w[_+"Index"]=e.componentIndex;var b=new qS({anid:"name",__fullText:i,__truncatedText:y,position:d,rotation:n.rotation,silent:rh(e),z2:1,tooltip:x&&x.show?r({content:i,formatter:function(){return i},formatterParams:w},x):null});fa(b.style,l,{text:y,textFont:p,textFill:l.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:n.textAlign,textVerticalAlign:n.textVerticalAlign}),e.get("triggerEvent")&&(b.eventData=ah(e),b.eventData.targetType="axisName",b.eventData.name=i),this._dumbGroup.add(b),b.updateTransform(),this.group.add(b),b.decomposeTransform()}}},AD=ID.innerTextLayout=function(t,e,i){var n,a,o=Ha(e-t);return Ua(o)?(a=i>0?"top":"bottom",n="center"):Ua(o-MD)?(a=i>0?"bottom":"top",n="center"):(a="middle",n=o>0&&o<MD?i>0?"right":"left":i>0?"left":"right"),{rotation:o,textAlign:n,textVerticalAlign:a}},DD=f,CD=y,LD=Fs({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,e,i,n){this.axisPointerClass&&xh(t),LD.superApply(this,"render",arguments),Mh(this,t,0,i,0,!0)},updateAxisPointer:function(t,e,i,n,a){Mh(this,t,0,i,0,!1)},remove:function(t,e){var i=this._axisPointer;i&&i.remove(e),LD.superApply(this,"remove",arguments)},dispose:function(t,e){Ih(this,e),LD.superApply(this,"dispose",arguments)}}),kD=[];LD.registerAxisPointerClass=function(t,e){kD[t]=e},LD.getAxisPointerClass=function(t){return t&&kD[t]};var PD=["axisLine","axisTickLabel","axisName"],ND=["splitArea","splitLine"],OD=LD.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(t,e,i,n){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new Uw,this.group.add(this._axisGroup),t.get("show")){var o=t.getCoordSysModel(),r=Th(o,t),s=new ID(t,r);f(PD,s.add,s),this._axisGroup.add(s.getGroup()),f(ND,(function(e){t.get(e+".show")&&this["_"+e](t,o)}),this),Aa(a,this._axisGroup,t),OD.superCall(this,"render",t,e,i,n)}},remove:function(){this._splitAreaColors=null},_splitLine:function(t,e){var i=t.axis;if(!i.scale.isBlank()){var n=t.getModel("splitLine"),a=n.getModel("lineStyle"),o=a.get("color");o=x(o)?o:[o];for(var r=e.coordinateSystem.getRect(),l=i.isHorizontal(),u=0,h=i.getTicksCoords({tickModel:n}),c=[],d=[],f=a.getLineStyle(),p=0;p<h.length;p++){var g=i.toGlobalCoord(h[p].coord);l?(c[0]=g,c[1]=r.y,d[0]=g,d[1]=r.y+r.height):(c[0]=r.x,c[1]=g,d[0]=r.x+r.width,d[1]=g);var m=u++%o.length,v=h[p].tickValue;this._axisGroup.add(new rM(Xn({anid:null!=v?"line_"+h[p].tickValue:null,shape:{x1:c[0],y1:c[1],x2:d[0],y2:d[1]},style:s({stroke:o[m]},f),silent:!0})))}}},_splitArea:function(t,e){var i=t.axis;if(!i.scale.isBlank()){var n=t.getModel("splitArea"),a=n.getModel("areaStyle"),o=a.get("color"),r=e.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:n,clamp:!0});if(l.length){var u=o.length,h=this._splitAreaColors,c=z(),d=0;if(h)for(m=0;m<l.length;m++){var f=h.get(l[m].tickValue);if(null!=f){d=(f+(u-1)*m)%u;break}}var p=i.toGlobalCoord(l[0].coord),g=a.getAreaStyle();o=x(o)?o:[o];for(var m=1;m<l.length;m++){var v,y,_,w,b=i.toGlobalCoord(l[m].coord);i.isHorizontal()?(v=p,y=r.y,_=b-v,w=r.height,p=v+_):(v=r.x,y=p,_=r.width,p=y+(w=b-y));var S=l[m-1].tickValue;null!=S&&c.set(S,d),this._axisGroup.add(new oM({anid:null!=S?"area_"+S:null,shape:{x:v,y:y,width:_,height:w},style:s({fill:o[d]},g),silent:!0})),d=(d+1)%u}this._splitAreaColors=c}}}});OD.extend({type:"xAxis"}),OD.extend({type:"yAxis"}),Fs({type:"grid",render:function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new oM({shape:t.coordinateSystem.getRect(),style:s({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))}}),ks((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})),Rs(hD("line","circle","line")),Es(cD("line")),Ps(IT.PROCESSOR.STATISTIC,function(t){return{seriesType:t,modifyOutputEnd:!0,reset:function(t,e,i){var n=t.getData(),a=t.get("sampling"),o=t.coordinateSystem;if("cartesian2d"===o.type&&a){var r,s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),h=u[1]-u[0],c=Math.round(n.count()/h);if(c>1)"string"==typeof a?r=dD[a]:"function"==typeof a&&(r=a),r&&t.setData(n.downSample(n.mapDimension(l.dim),1/c,r,fD))}}}}("line"));var ED=OI.extend({type:"series.__base_bar__",getInitialData:function(t,e){return fl(this.getSource(),this)},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var i=e.dataToPoint(e.clampData(t)),n=this.getData(),a=n.getLayout("offset"),o=n.getLayout("size");return i[e.getBaseAxis().isHorizontal()?0:1]+=a+o/2,i}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});ED.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t}});var RD=Wb([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),zD={getBarItemStyle:function(t){var e=RD(this,t);if(this.getBorderLineDash){var i=this.getBorderLineDash();i&&(e.lineDash=i)}return e}},BD=["itemStyle","barBorderWidth"];r(La.prototype,zD),Ws({type:"bar",render:function(t,e,i){this._updateDrawMode(t);var n=t.get("coordinateSystem");return"cartesian2d"!==n&&"polar"!==n||(this._isLargeDraw?this._renderLarge(t,e,i):this._renderNormal(t,e,i)),this.group},incrementalPrepareRender:function(t,e,i){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,i,n){this._incrementalRenderLarge(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t,e,i){var n,a=this.group,o=t.getData(),r=this._data,s=t.coordinateSystem,l=s.getBaseAxis();"cartesian2d"===s.type?n=l.isHorizontal():"polar"===s.type&&(n="angle"===l.dim);var u=t.isAnimationEnabled()?t:null;o.diff(r).add((function(e){if(o.hasValue(e)){var i=o.getItemModel(e),r=FD[s.type](o,e,i),l=VD[s.type](o,e,i,r,n,u);o.setItemGraphicEl(e,l),a.add(l),kh(l,o,e,i,r,t,n,"polar"===s.type)}})).update((function(e,i){var l=r.getItemGraphicEl(i);if(o.hasValue(e)){var h=o.getItemModel(e),c=FD[s.type](o,e,h);l?ba(l,{shape:c},u,e):l=VD[s.type](o,e,h,c,n,u,!0),o.setItemGraphicEl(e,l),a.add(l),kh(l,o,e,h,c,t,n,"polar"===s.type)}else a.remove(l)})).remove((function(t){var e=r.getItemGraphicEl(t);"cartesian2d"===s.type?e&&Ch(t,u,e):e&&Lh(t,u,e)})).execute(),this._data=o},_renderLarge:function(t,e,i){this._clear(),Nh(t,this.group)},_incrementalRenderLarge:function(t,e){Nh(e,this.group,!0)},dispose:V,remove:function(t){this._clear(t)},_clear:function(t){var e=this.group,i=this._data;t&&t.get("animation")&&i&&!this._isLargeDraw?i.eachItemGraphicEl((function(e){"sector"===e.type?Lh(e.dataIndex,t,e):Ch(e.dataIndex,t,e)})):e.removeAll(),this._data=null}});var VD={cartesian2d:function(t,e,i,n,a,o,s){var l=new oM({shape:r({},n)});if(o){var u=l.shape,h=a?"height":"width",c={};u[h]=0,c[h]=n[h],bM[s?"updateProps":"initProps"](l,{shape:c},o,e)}return l},polar:function(t,e,i,n,a,o,r){var l=n.startAngle<n.endAngle,u=new QS({shape:s({clockwise:l},n)});if(o){var h=u.shape,c=a?"r":"endAngle",d={};h[c]=a?0:n.startAngle,d[c]=n[c],bM[r?"updateProps":"initProps"](u,{shape:d},o,e)}return u}},FD={cartesian2d:function(t,e,i){var n=t.getItemLayout(e),a=Ph(i,n),o=n.width>0?1:-1,r=n.height>0?1:-1;return{x:n.x+o*a/2,y:n.y+r*a/2,width:n.width-o*a,height:n.height-r*a}},polar:function(t,e,i){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle}}},GD=Pn.extend({type:"largeBar",shape:{points:[]},buildPath:function(t,e){for(var i=e.points,n=this.__startPoint,a=this.__valueIdx,o=0;o<i.length;o+=2)n[this.__valueIdx]=i[o+a],t.moveTo(n[0],n[1]),t.lineTo(i[o],i[o+1])}});Es(y(Pl,"bar")),Es(fA),Rs({seriesType:"bar",reset:function(t){t.getData().setVisual("legendSymbol","roundRect")}});var WD=function(t,e,i){e=x(e)&&{coordDimensions:e}||r({},e);var n=t.getSource(),a=aA(n,e),o=new eA(a,t);return o.initData(n,i),o},HD={updateSelectedMap:function(t){this._targetList=x(t)?t.slice():[],this._selectTargetMap=g(t||[],(function(t,e){return t.set(e.name,e),t}),z())},select:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);"single"===this.get("selectedMode")&&this._selectTargetMap.each((function(t){t.selected=!1})),i&&(i.selected=!0)},unSelect:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);i&&(i.selected=!1)},toggleSelected:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);if(null!=i)return this[i.selected?"unSelect":"select"](t,e),i.selected},isSelected:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return i&&i.selected}},UD=Gs({type:"series.pie",init:function(t){UD.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(t)},mergeOption:function(t){UD.superCall(this,"mergeOption",t),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(t,e){return WD(this,["value"])},_createSelectableList:function(){for(var t=this.getRawData(),e=t.mapDimension("value"),i=[],n=0,a=t.count();n<a;n++)i.push({name:t.getName(n),value:t.get(e,n),selected:dr(t,n,"selected")});return i},getDataParams:function(t){var e=this.getData(),i=UD.superCall(this,"getDataParams",t),n=[];return e.each(e.mapDimension("value"),(function(t){n.push(t)})),i.percent=Wa(n,t,e.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},_defaultLabelLine:function(t){Li(t,"labelLine",["show"]);var e=t.labelLine,i=t.emphasis.labelLine;e.show=e.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,label:{rotate:!1,show:!0,position:"outer"},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationEasing:"cubicOut"}});c(UD,HD);var ZD=zh.prototype;ZD.updateData=function(t,e,i){function n(){o.stopAnimation(!0),o.animateTo({shape:{r:h.r+l.get("hoverOffset")}},300,"elasticOut")}function a(){o.stopAnimation(!0),o.animateTo({shape:{r:h.r}},300,"elasticOut")}var o=this.childAt(0),l=t.hostModel,u=t.getItemModel(e),h=t.getItemLayout(e),c=r({},h);c.label=null,i?(o.setShape(c),"scale"===l.getShallow("animationType")?(o.shape.r=h.r0,Sa(o,{shape:{r:h.r}},l,e)):(o.shape.endAngle=h.startAngle,ba(o,{shape:{endAngle:h.endAngle}},l,e))):ba(o,{shape:c},l,e);var d=t.getItemVisual(e,"color");o.useStyle(s({lineJoin:"bevel",fill:d},u.getModel("itemStyle").getItemStyle())),o.hoverStyle=u.getModel("emphasis.itemStyle").getItemStyle();var f=u.getShallow("cursor");f&&o.attr("cursor",f),Rh(this,t.getItemLayout(e),l.isSelected(null,e),l.get("selectedOffset"),l.get("animation")),o.off("mouseover").off("mouseout").off("emphasis").off("normal"),u.get("hoverAnimation")&&l.isAnimationEnabled()&&o.on("mouseover",n).on("mouseout",a).on("emphasis",n).on("normal",a),this._updateLabel(t,e),ha(this)},ZD._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),a=t.hostModel,o=t.getItemModel(e),r=t.getItemLayout(e).label,s=t.getItemVisual(e,"color");ba(i,{shape:{points:r.linePoints||[[r.x,r.y],[r.x,r.y],[r.x,r.y]]}},a,e),ba(n,{style:{x:r.x,y:r.y}},a,e),n.attr({rotation:r.rotation,origin:[r.x,r.y],z2:10});var l=o.getModel("label"),u=o.getModel("emphasis.label"),h=o.getModel("labelLine"),c=o.getModel("emphasis.labelLine");s=t.getItemVisual(e,"color");da(n.style,n.hoverStyle={},l,u,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:s,useInsideStyle:!!r.inside},{textAlign:r.textAlign,textVerticalAlign:r.verticalAlign,opacity:t.getItemVisual(e,"opacity")}),n.ignore=n.normalIgnore=!l.get("show"),n.hoverIgnore=!u.get("show"),i.ignore=i.normalIgnore=!h.get("show"),i.hoverIgnore=!c.get("show"),i.setStyle({stroke:s,opacity:t.getItemVisual(e,"opacity")}),i.setStyle(h.getModel("lineStyle").getLineStyle()),i.hoverStyle=c.getModel("lineStyle").getLineStyle();var d=h.get("smooth");d&&!0===d&&(d=.4),i.setShape({smooth:d})},h(zh,Uw),Ir.extend({type:"pie",init:function(){var t=new Uw;this._sectorGroup=t},render:function(t,e,i,n){if(!n||n.from!==this.uid){var a=t.getData(),o=this._data,r=this.group,s=e.get("animation"),l=!o,u=t.get("animationType"),h=y(Eh,this.uid,t,s,i),c=t.get("selectedMode");if(a.diff(o).add((function(t){var e=new zh(a,t);l&&"scale"!==u&&e.eachChild((function(t){t.stopAnimation(!0)})),c&&e.on("click",h),a.setItemGraphicEl(t,e),r.add(e)})).update((function(t,e){var i=o.getItemGraphicEl(e);i.updateData(a,t),i.off("click"),c&&i.on("click",h),r.add(i),a.setItemGraphicEl(t,i)})).remove((function(t){var e=o.getItemGraphicEl(t);r.remove(e)})).execute(),s&&l&&a.count()>0&&"scale"!==u){var d=a.getItemLayout(0),f=Math.max(i.getWidth(),i.getHeight())/2,p=v(r.removeClipPath,r);r.setClipPath(this._createClipPath(d.cx,d.cy,f,d.startAngle,d.clockwise,p,t))}else r.removeClipPath();this._data=a}},dispose:function(){},_createClipPath:function(t,e,i,n,a,o,r){var s=new QS({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:a}});return Sa(s,{shape:{endAngle:n+(a?1:-1)*Math.PI*2}},r,o),s},containPoint:function(t,e){var i=e.getData().getItemLayout(0);if(i){var n=t[0]-i.cx,a=t[1]-i.cy,o=Math.sqrt(n*n+a*a);return o<=i.r&&o>=i.r0}}});var jD=function(t,e){f(e,(function(e){e.update="updateView",Ns(e,(function(i,n){var a={};return n.eachComponent({mainType:"series",subType:t,query:i},(function(t){t[e.method]&&t[e.method](i.name,i.dataIndex);var n=t.getData();n.each((function(e){var i=n.getName(e);a[i]=t.isSelected(i)||!1}))})),{name:i.name,selected:a}}))}))},XD=function(t){return{getTargetSeries:function(e){var i={},n=z();return e.eachSeriesByType(t,(function(t){t.__paletteScope=i,n.set(t.uid,t)})),n},reset:function(t,e){var i=t.getRawData(),n={},a=t.getData();a.each((function(t){var e=a.getRawIndex(t);n[e]=t})),i.each((function(e){var o=n[e],r=null!=o&&a.getItemVisual(o,"color",!0);if(r)i.setItemVisual(e,"color",r);else{var s=i.getItemModel(e).get("itemStyle.color")||t.getColorFromPalette(i.getName(e)||e+"",t.__paletteScope,i.count());i.setItemVisual(e,"color",s),null!=o&&a.setItemVisual(o,"color",s)}}))}}},YD=function(t,e,i,n){var a,o,r=t.getData(),s=[],l=!1;r.each((function(i){var n,u,h,c,d=r.getItemLayout(i),f=r.getItemModel(i),p=f.getModel("label"),g=p.get("position")||f.get("emphasis.label.position"),m=f.getModel("labelLine"),v=m.get("length"),y=m.get("length2"),x=(d.startAngle+d.endAngle)/2,_=Math.cos(x),w=Math.sin(x);a=d.cx,o=d.cy;var b="inside"===g||"inner"===g;if("center"===g)n=d.cx,u=d.cy,c="center";else{var S=(b?(d.r+d.r0)/2*_:d.r*_)+a,M=(b?(d.r+d.r0)/2*w:d.r*w)+o;if(n=S+3*_,u=M+3*w,!b){var I=S+_*(v+e-d.r),T=M+w*(v+e-d.r),A=I+(_<0?-1:1)*y,D=T;n=A+(_<0?-5:5),u=D,h=[[S,M],[I,T],[A,D]]}c=b?"center":_>0?"left":"right"}var C=p.getFont(),L=p.get("rotate")?_<0?-x+Math.PI:-x:0,k=Ce(t.getFormattedLabel(i,"normal")||r.getName(i),C,c,"top");l=!!L,d.label={x:n,y:u,position:g,height:k.height,len:v,len2:y,linePoints:h,textAlign:c,verticalAlign:"middle",rotation:L,inside:b},b||s.push(d.label)})),!l&&t.get("avoidLabelOverlap")&&Vh(s,a,o,e,i,n)},qD=2*Math.PI,$D=Math.PI/180,KD=function(t){return{seriesType:t,reset:function(t,e){var i=e.findComponents({mainType:"legend"});if(i&&i.length){var n=t.getData();n.filterSelf((function(t){for(var e=n.getName(t),a=0;a<i.length;a++)if(!i[a].isSelected(e))return!1;return!0}))}}}};jD("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),Rs(XD("pie")),Es(y((function(t,e,i,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),n=e.mapDimension("value"),a=t.get("center"),o=t.get("radius");x(o)||(o=[0,o]),x(a)||(a=[a,a]);var r=i.getWidth(),s=i.getHeight(),l=Math.min(r,s),u=Ra(a[0],r),h=Ra(a[1],s),c=Ra(o[0],l/2),d=Ra(o[1],l/2),f=-t.get("startAngle")*$D,p=t.get("minAngle")*$D,g=0;e.each(n,(function(t){!isNaN(t)&&g++}));var m=e.getSum(n),v=Math.PI/(m||g)*2,y=t.get("clockwise"),_=t.get("roseType"),w=t.get("stillShowZeroSum"),b=e.getDataExtent(n);b[0]=0;var S=qD,M=0,I=f,T=y?1:-1;if(e.each(n,(function(t,i){var n;if(isNaN(t))e.setItemLayout(i,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:u,cy:h,r0:c,r:_?NaN:d});else{(n="area"!==_?0===m&&w?v:t*v:qD/g)<p?(n=p,S-=p):M+=t;var a=I+T*n;e.setItemLayout(i,{angle:n,startAngle:I,endAngle:a,clockwise:y,cx:u,cy:h,r0:c,r:_?Ea(t,b,[c,d]):d}),I=a}})),S<qD&&g)if(S<=.001){var A=qD/g;e.each(n,(function(t,i){if(!isNaN(t)){var n=e.getItemLayout(i);n.angle=A,n.startAngle=f+T*i*A,n.endAngle=f+T*(i+1)*A}}))}else v=S/M,I=f,e.each(n,(function(t,i){if(!isNaN(t)){var n=e.getItemLayout(i),a=n.angle===p?p:t*v;n.startAngle=I,n.endAngle=I+T*a,I+=T*a}}));YD(t,d,r,s)}))}),"pie")),Ps(KD("pie")),OI.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(t,e){return fl(this.getSource(),this)},brushSelector:"point",getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8}}});var JD=Wn({shape:{points:null},symbolProxy:null,buildPath:function(t,e){var i=e.points,n=e.size,a=this.symbolProxy,o=a.shape;if(!((t.getContext?t.getContext():t)&&n[0]<4))for(var r=0;r<i.length;){var s=i[r++],l=i[r++];isNaN(s)||isNaN(l)||(o.x=s-n[0]/2,o.y=l-n[1]/2,o.width=n[0],o.height=n[1],a.buildPath(t,o,!0))}},afterBrush:function(t){var e=this.shape,i=e.points,n=e.size;if(n[0]<4){this.setTransform(t);for(var a=0;a<i.length;){var o=i[a++],r=i[a++];isNaN(o)||isNaN(r)||t.fillRect(o-n[0]/2,r-n[1]/2,n[0],n[1])}this.restoreTransform(t)}},findDataIndex:function(t,e){for(var i=this.shape,n=i.points,a=i.size,o=Math.max(a[0],4),r=Math.max(a[1],4),s=n.length/2-1;s>=0;s--){var l=2*s,u=n[l]-o/2,h=n[l+1]-r/2;if(t>=u&&e>=h&&t<=u+o&&e<=h+r)return s}return-1}}),QD=Fh.prototype;QD.isPersistent=function(){return!this._incremental},QD.updateData=function(t){this.group.removeAll();var e=new JD({rectHover:!0,cursor:"default"});e.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},QD.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("symbolPoints");this.group.eachChild((function(t){if(null!=t.startIndex){var i=2*(t.endIndex-t.startIndex),n=4*t.startIndex*2;e=new Float32Array(e.buffer,n,i)}t.setShape("points",e)}))}},QD.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new Gn({silent:!0})),this.group.add(this._incremental)):this._incremental=null},QD.incrementalUpdate=function(t,e){var i;this._incremental?(i=new JD,this._incremental.addDisplayable(i,!0)):((i=new JD({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end})).incremental=!0,this.group.add(i)),i.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(i,e,!!this._incremental)},QD._setCommon=function(t,e,i){var n=e.hostModel,a=e.getVisual("symbolSize");t.setShape("size",a instanceof Array?a:[a,a]),t.symbolProxy=Xl(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var r=e.getVisual("color");r&&t.setColor(r),i||(t.seriesIndex=n.seriesIndex,t.on("mousemove",(function(e){t.dataIndex=null;var i=t.findDataIndex(e.offsetX,e.offsetY);i>=0&&(t.dataIndex=i+(t.startIndex||0))})))},QD.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},QD._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},Ws({type:"scatter",render:function(t,e,i){var n=t.getData();this._updateSymbolDraw(n,t).updateData(n),this._finished=!0},incrementalPrepareRender:function(t,e,i){var n=t.getData();this._updateSymbolDraw(n,t).incrementalPrepareUpdate(n),this._finished=!1},incrementalRender:function(t,e,i){this._symbolDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,i){var n=t.getData();if(this.group.dirty(),!this._finished||n.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var a=cD().reset(t);a.progress&&a.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_updateSymbolDraw:function(t,e){var i=this._symbolDraw,n=e.pipelineContext.large;return i&&n===this._isLargeDraw||(i&&i.remove(),i=this._symbolDraw=n?new Fh:new Mu,this._isLargeDraw=n,this.group.removeAll()),this.group.add(i.group),i},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}}),Rs(hD("scatter","circle")),Es(cD("scatter")),h(Gh,HA),Wh.prototype.getIndicatorAxes=function(){return this._indicatorAxes},Wh.prototype.dataToPoint=function(t,e){var i=this._indicatorAxes[e];return this.coordToPoint(i.dataToCoord(t),e)},Wh.prototype.coordToPoint=function(t,e){var i=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(i),this.cy-t*Math.sin(i)]},Wh.prototype.pointToData=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=Math.sqrt(e*e+i*i);e/=n,i/=n;for(var a,o=Math.atan2(-i,e),r=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],h=Math.abs(o-u.angle);h<r&&(a=u,s=l,r=h)}return[s,+(a&&a.coodToData(n))]},Wh.prototype.resize=function(t,e){var i=t.get("center"),n=e.getWidth(),a=e.getHeight(),o=Math.min(n,a)/2;this.cx=Ra(i[0],n),this.cy=Ra(i[1],a),this.startAngle=t.get("startAngle")*Math.PI/180;var r=t.get("radius");"string"!=typeof r&&"number"!=typeof r||(r=[0,r]),this.r0=Ra(r[0],o),this.r=Ra(r[1],o),f(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var i=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;i=Math.atan2(Math.sin(i),Math.cos(i)),t.angle=i}),this)},Wh.prototype.update=function(t,e){function i(t){var e=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),i=t/e;return 2===i?i=5:i*=2,i*e}var n=this._indicatorAxes,a=this._model;f(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,i){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===a){var o=e.getData();f(n,(function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))}))}}),this);var o=a.get("splitNumber");f(n,(function(t,e){var n=zl(t.scale,t.model);Vl(t.scale,t.model);var a=t.model,r=t.scale,s=a.getMin(),l=a.getMax(),u=r.getInterval();if(null!=s&&null!=l)r.setExtent(+s,+l),r.setInterval((l-s)/o);else if(null!=s){var h;do{h=s+u*o,r.setExtent(+s,h),r.setInterval(u),u=i(u)}while(h<n[1]&&isFinite(h)&&isFinite(n[1]))}else if(null!=l){var c;do{c=l-u*o,r.setExtent(c,+l),r.setInterval(u),u=i(u)}while(c>n[0]&&isFinite(c)&&isFinite(n[0]))}else{r.getTicks().length-1>o&&(u=i(u));var d=Math.round((n[0]+n[1])/2/u)*u,f=Math.round(o/2);r.setExtent(za(d-f*u),za(d+(o-f)*u)),r.setInterval(u)}}))},Wh.dimensions=[],Wh.create=function(t,e){var i=[];return t.eachComponent("radar",(function(n){var a=new Wh(n,t,e);i.push(a),n.coordinateSystem=a})),t.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])})),i},Vo.register("radar",Wh);var tC=vD.valueAxis,eC=(Vs({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),i=this.get("scale"),o=this.get("axisLine"),l=this.get("axisTick"),u=this.get("axisLabel"),h=this.get("name"),c=this.get("name.show"),d=this.get("name.formatter"),f=this.get("nameGap"),g=this.get("triggerEvent"),m=p(this.get("indicator")||[],(function(p){null!=p.max&&p.max>0&&!p.min?p.min=0:null!=p.min&&p.min<0&&!p.max&&(p.max=0);var m=h;if(null!=p.color&&(m=s({color:p.color},h)),p=a(n(p),{boundaryGap:t,splitNumber:e,scale:i,axisLine:o,axisTick:l,axisLabel:u,name:p.text,nameLocation:"end",nameGap:f,nameTextStyle:m,triggerEvent:g},!1),c||(p.name=""),"string"==typeof d){var v=p.name;p.name=d.replace("{value}",null!=v?v:"")}else"function"==typeof d&&(p.name=d(p.name,p));var y=r(new La(p,null,this.ecModel),CA);return y.mainType="radar",y.componentIndex=this.componentIndex,y}),this);this.getIndicatorModels=function(){return m}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:a({lineStyle:{color:"#bbb"}},tC.axisLine),axisLabel:Hh(tC.axisLabel,!1),axisTick:Hh(tC.axisTick,!1),splitLine:Hh(tC.splitLine,!0),splitArea:Hh(tC.splitArea,!0),indicator:[]}}),["axisLine","axisTickLabel","axisName"]);Fs({type:"radar",render:function(t,e,i){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem;f(p(e.getIndicatorAxes(),(function(t){return new ID(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})})),(function(t){f(eC,t.add,t),this.group.add(t.getGroup())}),this)},_buildSplitLineAndArea:function(t){function e(t,e,i){var n=i%e.length;return t[n]=t[n]||[],n}var i=t.coordinateSystem,n=i.getIndicatorAxes();if(n.length){var a=t.get("shape"),o=t.getModel("splitLine"),r=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=r.getModel("areaStyle"),h=o.get("show"),c=r.get("show"),d=l.get("color"),g=u.get("color");d=x(d)?d:[d],g=x(g)?g:[g];var m=[],v=[];if("circle"===a)for(var y=n[0].getTicksCoords(),_=i.cx,w=i.cy,b=0;b<y.length;b++)h&&m[D=e(m,d,b)].push(new $S({shape:{cx:_,cy:w,r:y[b].coord}})),c&&b<y.length-1&&v[D=e(v,g,b)].push(new tM({shape:{cx:_,cy:w,r0:y[b].coord,r:y[b+1].coord}}));else{var S,M=p(n,(function(t,e){var n=t.getTicksCoords();return S=null==S?n.length-1:Math.min(n.length-1,S),p(n,(function(t){return i.coordToPoint(t.coord,e)}))})),I=[];for(b=0;b<=S;b++){for(var T=[],A=0;A<n.length;A++)T.push(M[A][b]);if(T[0]&&T.push(T[0].slice()),h&&m[D=e(m,d,b)].push(new aM({shape:{points:T}})),c&&I){var D=e(v,g,b-1);v[D].push(new nM({shape:{points:T.concat(I)}}))}I=T.slice().reverse()}}var C=l.getLineStyle(),L=u.getAreaStyle();f(v,(function(t,e){this.group.add(xM(t,{style:s({stroke:"none",fill:g[e%g.length]},L),silent:!0}))}),this),f(m,(function(t,e){this.group.add(xM(t,{style:s({fill:"none",stroke:d[e%d.length]},C),silent:!0}))}),this)}}});var iC=OI.extend({type:"series.radar",dependencies:["radar"],init:function(t){iC.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},getInitialData:function(t,e){return WD(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(t){var e=this.getData(),i=this.coordinateSystem.getIndicatorAxes(),n=this.getData().getName(t);return Qa(""===n?this.name:n)+"<br/>"+p(i,(function(i,n){var a=e.get(e.mapDimension(i.dim),t);return Qa(i.name+" : "+a)})).join("<br />")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}});Ws({type:"radar",render:function(t,e,i){function a(t,e){var i=t.getItemVisual(e,"symbol")||"circle",n=t.getItemVisual(e,"color");if("none"!==i){var a=Uh(t.getItemVisual(e,"symbolSize")),o=Xl(i,-1,-1,2,2,n);return o.attr({style:{strokeNoScale:!0},z2:100,scale:[a[0]/2,a[1]/2]}),o}}function o(e,i,n,o,r,s){n.removeAll();for(var l=0;l<i.length-1;l++){var u=a(o,r);u&&(u.__dimIdx=l,e[l]?(u.attr("position",e[l]),bM[s?"initProps":"updateProps"](u,{position:i[l]},t,r)):u.attr("position",i[l]),n.add(u))}}function r(t){return p(t,(function(t){return[l.cx,l.cy]}))}var l=t.coordinateSystem,u=this.group,h=t.getData(),c=this._data;h.diff(c).add((function(e){var i=h.getItemLayout(e);if(i){var n=new nM,a=new aM,s={shape:{points:i}};n.shape.points=r(i),a.shape.points=r(i),Sa(n,s,t,e),Sa(a,s,t,e);var l=new Uw,u=new Uw;l.add(a),l.add(n),l.add(u),o(a.shape.points,i,u,h,e,!0),h.setItemGraphicEl(e,l)}})).update((function(e,i){var n=c.getItemGraphicEl(i),a=n.childAt(0),r=n.childAt(1),s=n.childAt(2),l={shape:{points:h.getItemLayout(e)}};l.shape.points&&(o(a.shape.points,l.shape.points,s,h,e,!1),ba(a,l,t),ba(r,l,t),h.setItemGraphicEl(e,n))})).remove((function(t){u.remove(c.getItemGraphicEl(t))})).execute(),h.eachItemGraphicEl((function(t,e){function i(){l.attr("ignore",m)}function a(){l.attr("ignore",g)}var o=h.getItemModel(e),r=t.childAt(0),l=t.childAt(1),c=t.childAt(2),d=h.getItemVisual(e,"color");u.add(t),r.useStyle(s(o.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:d})),r.hoverStyle=o.getModel("emphasis.lineStyle").getLineStyle();var f=o.getModel("areaStyle"),p=o.getModel("emphasis.areaStyle"),g=f.isEmpty()&&f.parentModel.isEmpty(),m=p.isEmpty()&&p.parentModel.isEmpty();m=m&&g,l.ignore=g,l.useStyle(s(f.getAreaStyle(),{fill:d,opacity:.7})),l.hoverStyle=p.getAreaStyle();var v=o.getModel("itemStyle").getItemStyle(["color"]),y=o.getModel("emphasis.itemStyle").getItemStyle(),x=o.getModel("label"),_=o.getModel("emphasis.label");c.eachChild((function(t){t.setStyle(v),t.hoverStyle=n(y),da(t.style,t.hoverStyle,x,_,{labelFetcher:h.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:h.get(h.dimensions[t.__dimIdx],e),autoColor:d,isRectText:!0})})),t.off("mouseover").off("mouseout").off("normal").off("emphasis"),t.on("emphasis",i).on("mouseover",i).on("normal",a).on("mouseout",a),ha(t)})),this._data=h},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),Rs(XD("radar")),Rs(hD("radar","circle")),Es((function(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),i=[],n=t.coordinateSystem;if(n){for(var a=n.getIndicatorAxes(),o=0;o<a.length;o++)e.each(e.mapDimension(a[o].dim),(function(t,e){i[e]=i[e]||[],i[e][o]=n.dataToPoint(t,o)}));e.each((function(t){i[t][0]&&i[t].push(i[t][0].slice()),e.setItemLayout(t,i[t])}))}}))})),Ps(KD("radar")),ks((function(t){var e=t.polar;if(e){x(e)||(e=[e]);var i=[];f(e,(function(e,n){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],x(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):i.push(e)})),t.polar=i}f(t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}));var nC=tt;c(Zh,mw),jh.prototype={constructor:jh,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,i,n){return this._rect=new he(t,e,i,n),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,i,n){this.transformTo(t,e,i,n),this._viewRect=new he(t,e,i,n)},transformTo:function(t,e,i,n){var a=this.getBoundingRect(),o=this._rawTransformable;o.transform=a.calculateTransform(new he(t,e,i,n)),o.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,i=this.getDefaultCenter(),n=this.getCenter(),a=this.getZoom();n=tt([],n,t),i=tt([],i,t),e.origin=n,e.position=[i[0]-n[0],i[1]-n[1]],e.scale=[a,a],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),xt(this.transform||(this.transform=[]),e.transform||vt()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],Mt(this.invTransform,this.transform),this.decomposeTransform()},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,e,i){var n=e?this._rawTransform:this.transform;return i=i||[],n?nC(i,t,n):G(i,t)},pointToData:function(t){var e=this.invTransform;return e?nC([],t,e):[t[0],t[1]]},convertToPixel:y(Xh,"dataToPoint"),convertFromPixel:y(Xh,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},c(jh,mw);for(var aC=[126,25],oC=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],rC=0;rC<oC.length;rC++)for(var sC=0;sC<oC[rC].length;sC++)oC[rC][sC][0]/=10.5,oC[rC][sC][1]/=-14,oC[rC][sC][0]+=aC[0],oC[rC][sC][1]+=aC[1];var lC=function(t,e){"china"===t&&e.push(new $l("南海诸岛",p(oC,(function(t){return{type:"polygon",exterior:t}})),aC))},uC={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]},hC=function(t,e){if("china"===t){var i=uC[e.name];if(i){var n=e.center;n[0]+=i[0]/10.5,n[1]+=-i[1]/14}}},cC={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]},dC=function(t,e){if("world"===t){var i=cC[e.name];if(i){var n=e.center;n[0]=i[0],n[1]=i[1]}}},fC=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]],pC=function(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:fC[0]})},gC=Vi(),mC={load:function(t,e){var i=gC(e).parsed;if(i)return i;var n,a=e.specialAreas||{},o=e.geoJSON;try{n=o?FA(o):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return f(n,(function(e){var i=e.name;hC(t,e),dC(t,e),pC(t,e);var n=a[i];n&&e.transformTo(n.left,n.top,n.width,n.height)})),lC(t,n),gC(e).parsed={regions:n,boundingRect:Yh(n)}}},vC=Vi(),yC={geoJSON:mC,svg:{load:function(t,e){var i=vC(e).originRoot;if(i)return{root:i,boundingRect:vC(e).boundingRect};var n=qh(e);return vC(e).originRoot=n.root,vC(e).boundingRect=n.boundingRect,n},makeGraphic:function(t,e,i){var n=vC(e),a=n.rootMap||(n.rootMap=z()),o=a.get(i);if(o)return o;var r=n.originRoot,s=n.boundingRect;return n.originRootHostKey?o=qh(e,s).root:(n.originRootHostKey=i,o=r),a.set(i,o)},removeGraphic:function(t,e,i){var n=vC(e),a=n.rootMap;a&&a.removeKey(i),i===n.originRootHostKey&&(n.originRootHostKey=null)}}},xC={load:function(t,e){var i,n=[],a=z(),o=z();return f(Kh(t),(function(r){var s=yC[r.type].load(t,r);f(s.regions,(function(t){var i=t.name;e&&e.hasOwnProperty(i)&&(t=t.cloneShallow(i=e[i])),n.push(t),a.set(i,t),o.set(i,t.center)}));var l=s.boundingRect;l&&(i?i.union(l):i=l.clone())})),{regions:n,regionsMap:a,nameCoordMap:o,boundingRect:i||new he(0,0,0,0)}},makeGraphic:$h("makeGraphic"),removeGraphic:$h("removeGraphic")};Jh.prototype={constructor:Jh,type:"geo",dimensions:["lng","lat"],containCoord:function(t){for(var e=this.regions,i=0;i<e.length;i++)if(e[i].contain(t))return!0;return!1},transformTo:function(t,e,i,n){var a=this.getBoundingRect(),o=this._invertLongitute;a=a.clone(),o&&(a.y=-a.y-a.height);var r=this._rawTransformable;if(r.transform=a.calculateTransform(new he(t,e,i,n)),r.decomposeTransform(),o){var s=r.scale;s[1]=-s[1]}r.updateTransform(),this._updateTransform()},getRegion:function(t){return this._regionsMap.get(t)},getRegionByCoord:function(t){for(var e=this.regions,i=0;i<e.length;i++)if(e[i].contain(t))return e[i]},addGeoCoord:function(t,e){this._nameCoordMap.set(t,e)},getGeoCoord:function(t){return this._nameCoordMap.get(t)},getBoundingRect:function(){return this._rect},dataToPoint:function(t,e,i){if("string"==typeof t&&(t=this.getGeoCoord(t)),t)return jh.prototype.dataToPoint.call(this,t,e,i)},convertToPixel:y(Qh,"dataToPoint"),convertFromPixel:y(Qh,"pointToData")},c(Jh,jh);var _C={dimensions:Jh.prototype.dimensions,create:function(t,e){var i=[];t.eachComponent("geo",(function(t,n){var a=t.get("map"),o=t.get("aspectScale"),r=!0,s=pT.retrieveMap(a);s&&s[0]&&"svg"===s[0].type?(null==o&&(o=1),r=!1):null==o&&(o=.75);var l=new Jh(a+n,a,t.get("nameMap"),r);l.aspectScale=o,l.zoomLimit=t.get("scaleLimit"),i.push(l),ec(l,t),t.coordinateSystem=l,l.model=t,l.resize=tc,l.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=i[e]}}));var n={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();n[e]=n[e]||[],n[e].push(t)}})),f(n,(function(t,n){var a=new Jh(n,n,o(p(t,(function(t){return t.get("nameMap")}))));a.zoomLimit=A.apply(null,p(t,(function(t){return t.get("scaleLimit")}))),i.push(a),a.resize=tc,a.aspectScale=t[0].get("aspectScale"),a.resize(t[0],e),f(t,(function(t){t.coordinateSystem=a,ec(a,t)}))})),i},getFilledRegions:function(t,e,i){for(var n=(t||[]).slice(),a=z(),o=0;o<n.length;o++)a.set(n[o].name,n[o]);return f(xC.load(e,i).regions,(function(t){var e=t.name;!a.get(e)&&n.push({name:e})})),n}};Os("geo",_C);var wC=OI.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],init:function(t){wC.superApply(this,"init",arguments),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(t){return WD(this,["value"])},mergeOption:function(t){wC.superApply(this,"mergeOption",arguments),this.updateSelectedMap(this._createSelectableList())},_createSelectableList:function(){for(var t=this.getRawData(),e=t.mapDimension("value"),i=[],n=0,a=t.count();n<a;n++)i.push({name:t.getName(n),value:t.get(e,n),selected:dr(t,n,"selected")});return _C.getFilledRegions(i,this.getMapType(),this.option.nameMap)},getHostGeoModel:function(){var t=this.option.geoIndex;return null!=t?this.dependentModels.geo[t]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},_fillOption:function(t,e){},getRawValue:function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},getRegionModel:function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},formatTooltip:function(t){for(var e=this.getData(),i=Ka(this.getRawValue(t)),n=e.getName(t),a=this.seriesGroup,o=[],r=0;r<a.length;r++){var s=a[r].originalData.indexOfName(n),l=e.mapDimension("value");isNaN(a[r].originalData.get(l,s))||o.push(Qa(a[r].name))}return o.join(", ")+"<br />"+Qa(n+" : "+i)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),i=this.coordinateSystem,n=i.getRegion(e);return n&&i.dataToPoint(n.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}}}});c(wC,HD);var bC="\0_ec_interaction_mutex";Ns({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){})),c(rc,ow);var SC={axisPointer:1,tooltip:1,brush:1};wc.prototype={constructor:wc,draw:function(t,e,i,n,a){var o="geo"===t.mainType,r=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},(function(e){r||e.getHostGeoModel()!==t||(r=e.getData())}));var s=t.coordinateSystem;this._updateBackground(s);var l=this._regionsGroup,u=this.group,h=s.scale,c={position:s.position,scale:h};!l.childAt(0)||a?u.attr(c):ba(u,c,t),l.removeAll();var d=["itemStyle"],p=["emphasis","itemStyle"],g=["label"],m=["emphasis","label"],v=z();f(s.regions,(function(e){var i=v.get(e.name)||v.set(e.name,new Uw),n=new hM({shape:{paths:[]}});i.add(n);var a,s=(C=t.getRegionModel(e.name)||t).getModel(d),u=C.getModel(p),c=yc(s),y=yc(u),x=C.getModel(g),_=C.getModel(m);if(r){a=r.indexOfName(e.name);var w=r.getItemVisual(a,"color",!0);w&&(c.fill=w)}f(e.geometries,(function(t){if("polygon"===t.type){n.shape.paths.push(new nM({shape:{points:t.exterior}}));for(var e=0;e<(t.interiors?t.interiors.length:0);e++)n.shape.paths.push(new nM({shape:{points:t.interiors[e]}}))}})),n.setStyle(c),n.style.strokeNoScale=!0,n.culling=!0;var b=x.get("show"),S=_.get("show"),M=r&&isNaN(r.get(r.mapDimension("value"),a)),I=r&&r.getItemLayout(a);if(o||M&&(b||S)||I&&I.showLabel){var T,A=o?e.name:a;(!r||a>=0)&&(T=t);var D=new qS({position:e.center.slice(),scale:[1/h[0],1/h[1]],z2:10,silent:!0});da(D.style,D.hoverStyle={},x,_,{labelFetcher:T,labelDataIndex:A,defaultText:e.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),i.add(D)}if(r)r.setItemGraphicEl(a,i);else{var C=t.getRegionModel(e.name);n.eventData={componentType:"geo",componentIndex:t.componentIndex,geoIndex:t.componentIndex,name:e.name,region:C&&C.option||{}}}(i.__regions||(i.__regions=[])).push(e),ha(i,y,{hoverSilentOnTouch:!!t.get("selectedMode")}),l.add(i)})),this._updateController(t,e,i),xc(this,t,l,i,n),_c(t,l)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&xC.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(t){var e=t.map;this._mapName!==e&&f(xC.makeGraphic(e,this.uid),(function(t){this._backgroundGroup.add(t)}),this),this._mapName=e},_updateController:function(t,e,i){function n(){var e={type:"geoRoam",componentType:l};return e[l+"Id"]=t.id,e}var a=t.coordinateSystem,o=this._controller,s=this._controllerHost;s.zoomLimit=t.get("scaleLimit"),s.zoom=a.getZoom(),o.enable(t.get("roam")||!1);var l=t.mainType;o.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,gc(s,t.dx,t.dy),i.dispatchAction(r(n(),{dx:t.dx,dy:t.dy}))}),this),o.off("zoom").on("zoom",(function(t){if(this._mouseDownFlag=!1,mc(s,t.scale,t.originX,t.originY),i.dispatchAction(r(n(),{zoom:t.scale,originX:t.originX,originY:t.originY})),this._updateGroup){var e=this.group.scale;this._regionsGroup.traverse((function(t){"text"===t.type&&t.attr("scale",[1/e[0],1/e[1]])}))}}),this),o.setPointerChecker((function(e,n,o){return a.getViewRectAfterRoam().contain(n,o)&&!vc(e,i,t)}))}},Ws({type:"map",render:function(t,e,i,n){if(!n||"mapToggleSelect"!==n.type||n.from!==this.uid){var a=this.group;if(a.removeAll(),!t.getHostGeoModel()){if(n&&"geoRoam"===n.type&&"series"===n.componentType&&n.seriesId===t.id)(o=this._mapDraw)&&a.add(o.group);else if(t.needsDrawMap){var o=this._mapDraw||new wc(i,!0);a.add(o.group),o.draw(t,e,i,this,n),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,i)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,e,i){var n=t.originalData,a=this.group;n.each(n.mapDimension("value"),(function(e,i){if(!isNaN(e)){var o=n.getItemLayout(i);if(o&&o.point){var r=o.point,s=o.offset,l=new $S({style:{fill:t.getData().getVisual("color")},shape:{cx:r[0]+9*s,cy:r[1],r:3},silent:!0,z2:s?8:10});if(!s){var u=t.mainSeries.getData(),h=n.getName(i),c=u.indexOfName(h),d=n.getItemModel(i),f=d.getModel("label"),p=d.getModel("emphasis.label"),g=u.getItemGraphicEl(c),m=D(t.getFormattedLabel(i,"normal"),h),v=D(t.getFormattedLabel(i,"emphasis"),m),y=function(){var t=fa({},p,{text:p.get("show")?v:null},{isRectText:!0,useInsideStyle:!1},!0);l.style.extendFrom(t),l.__mapOriginalZ2=l.z2,l.z2+=1},x=function(){fa(l.style,f,{text:f.get("show")?m:null,textPosition:f.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),null!=l.__mapOriginalZ2&&(l.z2=l.__mapOriginalZ2,l.__mapOriginalZ2=null)};g.on("mouseover",y).on("mouseout",x).on("emphasis",y).on("normal",x),x()}a.add(l)}}}))}}),Ns({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},(function(e){var n=e.coordinateSystem;if("geo"===n.type){var a=bc(n,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(a.center),e.setZoom&&e.setZoom(a.zoom),"series"===i&&f(e.seriesGroup,(function(t){t.setCenter(a.center),t.setZoom(a.zoom)}))}}))})),Es((function(t){var e={};t.eachSeriesByType("map",(function(i){var n=i.getMapType();if(!i.getHostGeoModel()&&!e[n]){var a={};f(i.seriesGroup,(function(e){var i=e.coordinateSystem,n=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&n.each(n.mapDimension("value"),(function(t,e){var o=n.getName(e),r=i.getRegion(o);if(r&&!isNaN(t)){var s=a[o]||0,l=i.dataToPoint(r.center);a[o]=s+1,n.setItemLayout(e,{point:l,offset:s})}}))}));var o=i.getData();o.each((function(t){var e=o.getName(t),i=o.getItemLayout(t)||{};i.showLabel=!a[e],o.setItemLayout(t,i)})),e[n]=!0}}))})),Rs((function(t){t.eachSeriesByType("map",(function(t){var e=t.get("color"),i=t.getModel("itemStyle"),n=i.get("areaColor"),a=i.get("color")||e[t.seriesIndex%e.length];t.getData().setVisual({areaColor:n,color:a})}))})),Ps(IT.PROCESSOR.STATISTIC,(function(t){var e={};t.eachSeriesByType("map",(function(t){var i=t.getHostGeoModel(),n=i?"o"+i.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)})),f(e,(function(t,e){for(var i=Sc(p(t,(function(t){return t.getData()})),t[0].get("mapValueCalculation")),n=0;n<t.length;n++)t[n].originalData=t[n].getData();for(n=0;n<t.length;n++)t[n].seriesGroup=t,t[n].needsDrawMap=0===n&&!t[n].getHostGeoModel(),t[n].setData(i.cloneShallow()),t[n].mainSeries=t[0]}))})),ks((function(t){var e=[];f(t.series,(function(t){t&&"map"===t.type&&(e.push(t),t.map=t.map||t.mapType,s(t,t.mapLocation))}))})),jD("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}]);var MC=f,IC="\0__link_datas",TC="\0__link_mainData",AC=function(t,e){this.name=t||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=e};AC.prototype={constructor:AC,isRemoved:function(){return this.dataIndex<0},eachNode:function(t,e,i){"function"==typeof t&&(i=e,e=t,t=null),w(t=t||{})&&(t={order:t});var n,a=t.order||"preorder",o=this[t.attr||"children"];"preorder"===a&&(n=e.call(i,this));for(var r=0;!n&&r<o.length;r++)o[r].eachNode(t,e,i);"postorder"===a&&e.call(i,this)},updateDepthAndHeight:function(t){var e=0;this.depth=t;for(var i=0;i<this.children.length;i++){var n=this.children[i];n.updateDepthAndHeight(t+1),n.height>e&&(e=n.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,i=this.children,n=i.length;e<n;e++){var a=i[e].getNodeById(t);if(a)return a}},contains:function(t){if(t===this)return!0;for(var e=0,i=this.children,n=i.length;e<n;e++){var a=i[e].contains(t);if(a)return a}},getAncestors:function(t){for(var e=[],i=t?this:this.parentNode;i;)e.push(i),i=i.parentNode;return e.reverse(),e},getValue:function(t){var e=this.hostTree.data;return e.get(e.getDimension(t||"value"),this.dataIndex)},setLayout:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e,i=this.hostTree,n=i.data.getItemModel(this.dataIndex),a=this.getLevelModel();return a||0!==this.children.length&&(0===this.children.length||!1!==this.isExpand)||(e=this.getLeavesModel()),n.getModel(t,(a||e||i.hostModel).getModel(t))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},getLeavesModel:function(){return this.hostTree.leavesModel},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},isDescendantOf:function(t){return t!==this&&t.isAncestorOf(this)}},Pc.prototype={constructor:Pc,type:"tree",eachNode:function(t,e,i){this.root.eachNode(t,e,i)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,i=0,n=e.length;i<n;i++)e[i].dataIndex=-1;for(i=0,n=t.count();i<n;i++)e[t.getRawIndex(i)].dataIndex=i},clearLayouts:function(){this.data.clearItemLayouts()}},Pc.createTree=function(t,e,i){function n(t,e){var i=t.value;r=Math.max(r,x(i)?i.length:1),o.push(t);var s=new AC(t.name,a);e?Nc(s,e):a.root=s,a._nodes.push(s);var l=t.children;if(l)for(var u=0;u<l.length;u++)n(l[u],s)}var a=new Pc(e,i.levels,i.leaves),o=[],r=1;n(t),a.root.updateDepthAndHeight(0);var s=aA(o,{coordDimensions:["value"],dimensionsCount:r}),l=new eA(s,e);return l.initData(o),Mc({mainData:l,struct:a,structAttr:"tree"}),a.update(),a},OI.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(t){var e={name:t.name,children:t.data},i=t.leaves||{},n={};n.leaves=i;var a=Pc.createTree(e,this,n),o=0;a.eachNode("preorder",(function(t){t.depth>o&&(o=t.depth)}));var r=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return a.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=r})),a.data},getOrient:function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},formatTooltip:function(t){for(var e=this.getData().tree,i=e.root.children[0],n=e.getNodeByDataIndex(t),a=n.getValue(),o=n.name;n&&n!==i;)o=n.parentNode.name+"."+o,n=n.parentNode;return Qa(o+(isNaN(a)||null==a?"":" : "+a))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}}),Ws({type:"tree",init:function(t,e){this._oldTree,this._mainGroup=new Uw,this._controller=new rc(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(t,e,i,n){var a=t.getData(),o=t.layoutInfo,r=this._mainGroup,s=t.get("layout");"radial"===s?r.attr("position",[o.x+o.width/2,o.y+o.height/2]):r.attr("position",[o.x,o.y]),this._updateViewCoordSys(t),this._updateController(t,e,i);var l=this._data,u={expandAndCollapse:t.get("expandAndCollapse"),layout:s,orient:t.getOrient(),curvature:t.get("lineStyle.curveness"),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};a.diff(l).add((function(e){Xc(a,e)&&qc(a,e,null,r,t,u)})).update((function(e,i){var n=l.getItemGraphicEl(i);Xc(a,e)?qc(a,e,n,r,t,u):n&&$c(l,i,n,r,t,u)})).remove((function(e){var i=l.getItemGraphicEl(e);i&&$c(l,e,i,r,t,u)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===u.expandAndCollapse&&a.eachItemGraphicEl((function(e,n){e.off("click").on("click",(function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:n})}))})),this._data=a},_updateViewCoordSys:function(t){var e=t.getData(),i=[];e.each((function(t){var n=e.getItemLayout(t);!n||isNaN(n.x)||isNaN(n.y)||i.push([+n.x,+n.y])}));var n=[],a=[];fn(i,n,a),a[0]-n[0]==0&&(a[0]+=1,n[0]-=1),a[1]-n[1]==0&&(a[1]+=1,n[1]-=1);var o=t.coordinateSystem=new jh;o.zoomLimit=t.get("scaleLimit"),o.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1]),o.setCenter(t.get("center")),o.setZoom(t.get("zoom")),this.group.attr({position:o.position,scale:o.scale}),this._viewCoordSys=o},_updateController:function(t,e,i){var n=this._controller,a=this._controllerHost,o=this.group;n.setPointerChecker((function(e,n,a){var r=o.getBoundingRect();return r.applyTransform(o.transform),r.contain(n,a)&&!vc(e,i,t)})),n.enable(t.get("roam")),a.zoomLimit=t.get("scaleLimit"),a.zoom=t.coordinateSystem.getZoom(),n.off("pan").off("zoom").on("pan",(function(e){gc(a,e.dx,e.dy),i.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})}),this).on("zoom",(function(e){mc(a,e.scale,e.originX,e.originY),i.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),this._updateNodeAndLinkScale(t)}),this)},_updateNodeAndLinkScale:function(t){var e=t.getData(),i=this._getNodeGlobalScale(t),n=[i,i];e.eachItemGraphicEl((function(t,e){t.attr("scale",n)}))},_getNodeGlobalScale:function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var i=this._nodeScaleRatio,n=e.scale,a=n&&n[0]||1;return((e.getZoom()-1)*i+1)/a},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}}),Ns({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=t.dataIndex,n=e.getData().tree.getNodeByDataIndex(i);n.isExpand=!n.isExpand}))})),Ns({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=bc(e.coordinateSystem,t);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))})),Rs(hD("tree","circle")),Es((function(t,e){t.eachSeriesByType("tree",(function(t){td(t,e)}))})),OI.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:1/0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(t,e){var i={name:t.name,children:t.data};od(i);var n=t.levels||[];n=t.levels=rd(n,e);var a={};return a.levels=n,Pc.createTree(i,this,a).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),i=this.getRawValue(t),n=Ka(x(i)?i[0]:i);return Qa(e.getName(t)+": "+n)},getDataParams:function(t){var e=OI.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=ad(i,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},r(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=z(),this._idIndexMapCount=0);var i=e.get(t);return null==i&&e.set(t,i=this._idIndexMapCount++),i},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});var DC=5;sd.prototype={constructor:sd,render:function(t,e,i,n){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),a.get("show")&&i){var r=a.getModel("itemStyle"),s=r.getModel("textStyle"),l={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,l,s),this._renderContent(t,l,r,s,n),uo(o,l.pos,l.box)}},_prepare:function(t,e,i){for(var n=t;n;n=n.parentNode){var a=n.getModel().get("name"),o=i.getTextRect(a),r=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=r+8,e.renderList.push({node:n,text:a,width:r})}},_renderContent:function(t,e,i,n,a){for(var o=0,r=e.emptyItemWidth,l=t.get("breadcrumb.height"),u=so(e.pos,e.box),h=e.totalWidth,c=e.renderList,d=c.length-1;d>=0;d--){var f=c[d],p=f.node,g=f.width,m=f.text;h>u.width&&(h-=g-r,g=r,m=null);var v=new nM({shape:{points:ld(o,0,g,l,d===c.length-1,0===d)},style:s(i.getItemStyle(),{lineJoin:"bevel",text:m,textFill:n.getTextColor(),textFont:n.getFont()}),z:10,onclick:y(a,p)});this.group.add(v),ud(v,t,p),o+=g+8}},remove:function(){this.group.removeAll()}};var CC=v,LC=Uw,kC=oM,PC=f,NC=["label"],OC=["emphasis","label"],EC=["upperLabel"],RC=["emphasis","upperLabel"],zC=10,BC=1,VC=2,FC=Wb([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),GC=function(t){var e=FC(t);return e.stroke=e.fill=e.lineWidth=null,e};Ws({type:"treemap",init:function(t,e){this._containerGroup,this._storage={nodeGroup:[],background:[],content:[]},this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(t,e,i,n){if(!(u(e.findComponents({mainType:"series",subType:"treemap",query:n}),t)<0)){this.seriesModel=t,this.api=i,this.ecModel=e;var a=ed(n,["treemapZoomToNode","treemapRootToNode"],t),o=n&&n.type,r=t.layoutInfo,s=!this._oldTree,l=this._storage,h="treemapRootToNode"===o&&a&&l?{rootNodeGroup:l.nodeGroup[a.node.getRawIndex()],direction:n.direction}:null,c=this._giveContainerGroup(r),d=this._doRender(c,t,h);s||o&&"treemapZoomToNode"!==o&&"treemapRootToNode"!==o?d.renderFinally():this._doAnimation(c,d,t,h),this._resetController(i),this._renderBreadcrumb(t,i,a)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new LC,this._initEvents(e),this.group.add(e)),e.attr("position",[t.x,t.y]),e},_doRender:function(t,e,i){function n(t,e,i,a,o){function r(t){return t.getId()}function s(r,s){var l=null!=r?t[r]:null,u=null!=s?e[s]:null,c=h(l,u,i,o);c&&n(l&&l.viewChildren||[],u&&u.viewChildren||[],c,a,o+1)}a?(e=t,PC(t,(function(t,e){!t.isRemoved()&&s(e,e)}))):new Us(e,t,r,r).add(s).update(s).remove(y(s,null)).execute()}var a=e.getData().tree,o=this._oldTree,r={nodeGroup:[],background:[],content:[]},s={nodeGroup:[],background:[],content:[]},l=this._storage,u=[],h=y(cd,e,s,l,i,r,u);n(a.root?[a.root]:[],o&&o.root?[o.root]:[],t,a===o||!o,0);var c=function(t){var e={nodeGroup:[],background:[],content:[]};return t&&PC(t,(function(t,i){var n=e[i];PC(t,(function(t){t&&(n.push(t),t.__tmWillDelete=1)}))})),e}(l);return this._oldTree=a,this._storage=s,{lastsForAnimation:r,willDeleteEls:c,renderFinally:function(){PC(c,(function(t){PC(t,(function(t){t.parent&&t.parent.remove(t)}))})),PC(u,(function(t){t.invisible=!0,t.dirty()}))}}},_doAnimation:function(t,e,i,n){if(i.get("animation")){var a=i.get("animationDurationUpdate"),o=i.get("animationEasing"),s=hd();PC(e.willDeleteEls,(function(t,e){PC(t,(function(t,i){if(!t.invisible){var r,l=t.parent;if(n&&"drillDown"===n.direction)r=l===n.rootNodeGroup?{shape:{x:0,y:0,width:l.__tmNodeWidth,height:l.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,h=0;l.__tmWillDelete||(u=l.__tmNodeWidth/2,h=l.__tmNodeHeight/2),r="nodeGroup"===e?{position:[u,h],style:{opacity:0}}:{shape:{x:u,y:h,width:0,height:0},style:{opacity:0}}}r&&s.add(t,r,a,o)}}))})),PC(this._storage,(function(t,i){PC(t,(function(t,n){var l=e.lastsForAnimation[i][n],u={};l&&("nodeGroup"===i?l.old&&(u.position=t.position.slice(),t.attr("position",l.old)):(l.old&&(u.shape=r({},t.shape),t.setShape(l.old)),l.fadein?(t.setStyle("opacity",0),u.style={opacity:1}):1!==t.style.opacity&&(u.style={opacity:1})),s.add(t,u,a,o))}))}),this),this._state="animating",s.done(CC((function(){this._state="ready",e.renderFinally()}),this)).start()}},_resetController:function(t){var e=this._controller;e||((e=this._controller=new rc(t.getZr())).enable(this.seriesModel.get("roam")),e.on("pan",CC(this._onPan,this)),e.on("zoom",CC(this._onZoom,this)));var i=new he(0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,n){return i.contain(e,n)}))},_clearController:function(){var t=this._controller;t&&(t.dispose(),t=null)},_onPan:function(t){if("animating"!==this._state&&(Math.abs(t.dx)>3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var i=e.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+t.dx,y:i.y+t.dy,width:i.width,height:i.height}})}},_onZoom:function(t){var e=t.originX,i=t.originY;if("animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;var o=new he(a.x,a.y,a.width,a.height),r=this.seriesModel.layoutInfo;e-=r.x,i-=r.y;var s=vt();wt(s,s,[-e,-i]),St(s,s,[t.scale,t.scale]),wt(s,s,[e,i]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},_initEvents:function(t){t.on("click",(function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var i=this.findTarget(t.offsetX,t.offsetY);if(i){var n=i.node;if(n.getLayout().isLeafRoot)this._rootToNode(i);else if("zoomToNode"===e)this._zoomToNode(i);else if("link"===e){var a=n.hostTree.data.getItemModel(n.dataIndex),o=a.get("link",!0),r=a.get("target",!0)||"blank";o&&window.open(o,r)}}}}}),this)},_renderBreadcrumb:function(t,e,i){i||(i=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(i={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new sd(this.group))).render(t,e,i.node,CC((function(e){"animating"!==this._state&&(nd(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))}),this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var i;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(n){var a=this._storage.background[n.getRawIndex()];if(a){var o=a.transformCoordToLocal(t,e),r=a.shape;if(!(r.x<=o[0]&&o[0]<=r.x+r.width&&r.y<=o[1]&&o[1]<=r.y+r.height))return!1;i={node:n,offsetX:o[0],offsetY:o[1]}}}),this),i}});for(var WC=["treemapZoomToNode","treemapRender","treemapMove"],HC=0;HC<WC.length;HC++)Ns({type:WC[HC],update:"updateView"},(function(){}));Ns({type:"treemapRootToNode",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"treemap",query:t},(function(e,i){var n=ed(t,["treemapZoomToNode","treemapRootToNode"],e);if(n){var a=e.getViewRoot();a&&(t.direction=nd(a,n.node)?"rollUp":"drillDown"),e.resetViewRoot(n.node)}}))}));var UC=f,ZC=b,jC=-1,XC=function(t){var e=t.mappingMethod,i=t.type,a=this.option=n(t);this.type=i,this.mappingMethod=e,this._normalizeData=qC[e];var o=YC[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._doMap=o._doMap[e],"piecewise"===e?(gd(a),fd(a)):"category"===e?a.categories?pd(a):gd(a,!0):(P("linear"!==e||a.dataExtent),gd(a))};XC.prototype={constructor:XC,mapValueToVisual:function(t){var e=this._normalizeData(t);return this._doMap(e,t)},getNormalizer:function(){return v(this._normalizeData,this)}};var YC=XC.visualHandlers={color:{applyVisual:yd("color"),getColorMapper:function(){var t=this.option;return v("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),xd.call(this,t)}:function(e,i,n){var a=!!n;return!i&&(e=this._normalizeData(e)),n=Ht(e,t.parsedVisual,n),a?n:Xt(n,"rgba")},this)},_doMap:{linear:function(t){return Xt(Ht(t,this.option.parsedVisual),"rgba")},category:xd,piecewise:function(t,e){var i=bd.call(this,e);return null==i&&(i=Xt(Ht(t,this.option.parsedVisual),"rgba")),i},fixed:_d}},colorHue:md((function(t,e){return Zt(t,e)})),colorSaturation:md((function(t,e){return Zt(t,null,e)})),colorLightness:md((function(t,e){return Zt(t,null,null,e)})),colorAlpha:md((function(t,e){return jt(t,e)})),opacity:{applyVisual:yd("opacity"),_doMap:wd([0,1])},liftZ:{applyVisual:yd("liftZ"),_doMap:{linear:_d,category:_d,piecewise:_d,fixed:_d}},symbol:{applyVisual:function(t,e,i){var n=this.mapValueToVisual(t);if(w(n))i("symbol",n);else if(ZC(n))for(var a in n)n.hasOwnProperty(a)&&i(a,n[a])},_doMap:{linear:vd,category:xd,piecewise:function(t,e){var i=bd.call(this,e);return null==i&&(i=vd.call(this,t)),i},fixed:_d}},symbolSize:{applyVisual:yd("symbolSize"),_doMap:wd([0,1])}},qC={linear:function(t){return Ea(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,i=XC.findPieceIndex(t,e,!0);if(null!=i)return Ea(i,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?jC:e},fixed:V};XC.listVisualTypes=function(){var t=[];return f(YC,(function(e,i){t.push(i)})),t},XC.addVisualHandler=function(t,e){YC[t]=e},XC.isValidType=function(t){return YC.hasOwnProperty(t)},XC.eachVisual=function(t,e,i){b(t)?f(t,e,i):e.call(i,t)},XC.mapVisual=function(t,e,i){var n,a=x(t)?[]:b(t)?{}:(n=!0,null);return XC.eachVisual(t,(function(t,o){var r=e.call(i,t,o);n?a=r:a[o]=r})),a},XC.retrieveVisuals=function(t){var e,i={};return t&&UC(YC,(function(n,a){t.hasOwnProperty(a)&&(i[a]=t[a],e=!0)})),e?i:null},XC.prepareVisualTypes=function(t){if(ZC(t)){var e=[];UC(t,(function(t,i){e.push(i)})),t=e}else{if(!x(t))return[];t=t.slice()}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},XC.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},XC.findPieceIndex=function(t,e,i){function n(e,i){var n=Math.abs(e-t);n<o&&(o=n,a=i)}for(var a,o=1/0,r=0,s=e.length;r<s;r++){var l=e[r].value;if(null!=l){if(l===t||"string"==typeof l&&l===t+"")return r;i&&n(l,r)}}for(r=0,s=e.length;r<s;r++){var u=e[r],h=u.interval,c=u.close;if(h){if(h[0]===-1/0){if(Md(c[1],t,h[1]))return r}else if(h[1]===1/0){if(Md(c[0],h[0],t))return r}else if(Md(c[0],h[0],t)&&Md(c[1],t,h[1]))return r;i&&n(h[0],r),i&&n(h[1],r)}}if(i)return t===1/0?e.length-1:t===-1/0?0:a};var $C=x,KC="itemStyle",JC={seriesType:"treemap",reset:function(t,e,i,n){var a=t.getData().tree,o=a.root,r=t.getModel(KC);o.isRemoved()||Id(o,{},p(a.levelModels,(function(t){return t?t.get(KC):null})),r,t.getViewRoot().getAncestors(),t)}},QC=Math.max,tL=Math.min,eL=A,iL=f,nL=["itemStyle","borderWidth"],aL=["itemStyle","gapWidth"],oL=["upperLabel","show"],rL=["upperLabel","height"],sL={seriesType:"treemap",reset:function(t,e,i,n){var a=i.getWidth(),o=i.getHeight(),s=t.option,l=lo(t.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()}),u=s.size||[],h=Ra(eL(l.width,u[0]),a),c=Ra(eL(l.height,u[1]),o),d=n&&n.type,f=ed(n,["treemapZoomToNode","treemapRootToNode"],t),p="treemapRender"===d||"treemapMove"===d?n.rootRect:null,g=t.getViewRoot(),m=id(g);if("treemapMove"!==d){var v="treemapZoomToNode"===d?Fd(t,f,g,h,c):p?[p.width,p.height]:[h,c],y=s.sort;y&&"asc"!==y&&"desc"!==y&&(y="desc");var x={squareRatio:s.squareRatio,sort:y,leafDepth:s.leafDepth};g.hostTree.clearLayouts(),_={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]},g.setLayout(_),Nd(g,x,!1,0);var _=g.getLayout();iL(m,(function(t,e){var i=(m[e+1]||g).getValue();t.setLayout(r({dataExtent:[i,i],borderWidth:0,upperHeight:0},_))}))}var w=t.getData().tree.root;w.setLayout(Gd(l,p,f),!0),t.setLayoutInfo(l),Wd(w,new he(-l.x,-l.y,a,o),m,g,0)}};Rs(JC),Es(sL);var lL=function(t){this._directed=t||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},uL=lL.prototype;uL.type="graph",uL.isDirected=function(){return this._directed},uL.addNode=function(t,e){t=t||""+e;var i=this._nodesMap;if(!i[Ud(t)]){var n=new Zd(t,e);return n.hostGraph=this,this.nodes.push(n),i[Ud(t)]=n,n}},uL.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},uL.getNodeById=function(t){return this._nodesMap[Ud(t)]},uL.addEdge=function(t,e,i){var n=this._nodesMap,a=this._edgesMap;if("number"==typeof t&&(t=this.nodes[t]),"number"==typeof e&&(e=this.nodes[e]),Zd.isInstance(t)||(t=n[Ud(t)]),Zd.isInstance(e)||(e=n[Ud(e)]),t&&e){var o=t.id+"-"+e.id;if(!a[o]){var r=new jd(t,e,i);return r.hostGraph=this,this._directed&&(t.outEdges.push(r),e.inEdges.push(r)),t.edges.push(r),t!==e&&e.edges.push(r),this.edges.push(r),a[o]=r,r}}},uL.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},uL.getEdge=function(t,e){Zd.isInstance(t)&&(t=t.id),Zd.isInstance(e)&&(e=e.id);var i=this._edgesMap;return this._directed?i[t+"-"+e]:i[t+"-"+e]||i[e+"-"+t]},uL.eachNode=function(t,e){for(var i=this.nodes,n=i.length,a=0;a<n;a++)i[a].dataIndex>=0&&t.call(e,i[a],a)},uL.eachEdge=function(t,e){for(var i=this.edges,n=i.length,a=0;a<n;a++)i[a].dataIndex>=0&&i[a].node1.dataIndex>=0&&i[a].node2.dataIndex>=0&&t.call(e,i[a],a)},uL.breadthFirstTraverse=function(t,e,i,n){if(Zd.isInstance(e)||(e=this._nodesMap[Ud(e)]),e){for(var a="out"===i?"outEdges":"in"===i?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(n,e,null))for(var r=[e];r.length;){var s=r.shift(),l=s[a];for(o=0;o<l.length;o++){var u=l[o],h=u.node1===s?u.node2:u.node1;if(!h.__visited){if(t.call(n,h,s))return;r.push(h),h.__visited=!0}}}}},uL.update=function(){for(var t=this.data,e=this.edgeData,i=this.nodes,n=this.edges,a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(a=0,o=t.count();a<o;a++)i[t.getRawIndex(a)].dataIndex=a;e.filterSelf((function(t){var i=n[e.getRawIndex(t)];return i.node1.dataIndex>=0&&i.node2.dataIndex>=0}));for(a=0,o=n.length;a<o;a++)n[a].dataIndex=-1;for(a=0,o=e.count();a<o;a++)n[e.getRawIndex(a)].dataIndex=a},uL.clone=function(){for(var t=new lL(this._directed),e=this.nodes,i=this.edges,n=0;n<e.length;n++)t.addNode(e[n].id,e[n].dataIndex);for(n=0;n<i.length;n++){var a=i[n];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},Zd.prototype={constructor:Zd,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)}},jd.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)};var hL=function(t,e){return{getValue:function(i){var n=this[t][e];return n.get(n.getDimension(i||"value"),this.dataIndex)},setVisual:function(i,n){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,i,n)},getVisual:function(i,n){return this[t][e].getItemVisual(this.dataIndex,i,n)},setLayout:function(i,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,i,n)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};c(Zd,hL("hostGraph","data")),c(jd,hL("hostGraph","edgeData")),lL.Node=Zd,lL.Edge=jd,Yi(Zd),Yi(jd);var cL=function(t,e,i,n,a){for(var o=new lL(n),r=0;r<t.length;r++)o.addNode(A(t[r].id,t[r].name,r),r);var s=[],l=[],h=0;for(r=0;r<e.length;r++){var c=e[r],d=c.source,f=c.target;o.addEdge(d,f,h)&&(l.push(c),s.push(A(c.id,d+" > "+f)),h++)}var p,g=i.get("coordinateSystem");if("cartesian2d"===g||"polar"===g)p=fl(t,i);else{var m=Vo.get(g),v=m&&"view"!==m.type&&m.dimensions||[];u(v,"value")<0&&v.concat(["value"]);var y=aA(t,{coordDimensions:v});(p=new eA(y,i)).initData(t)}var x=new eA(["value"],i);return x.initData(l,s),a&&a(p,x),Mc({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:x},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o},dL=Gs({type:"series.graph",init:function(t){dL.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){dL.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){dL.superApply(this,"mergeDefaultAndTheme",arguments),Li(t,["edgeLabel"],["show"])},getInitialData:function(t,e){var i=t.edges||t.links||[],n=t.data||t.nodes||[],a=this;if(n&&i)return cL(n,i,this,!0,(function(t,i){function n(t){return(t=this.parsePath(t))&&"label"===t[0]?r:t&&"emphasis"===t[0]&&"label"===t[1]?l:this.parentModel}t.wrapMethod("getItemModel",(function(t){var e=a._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var o=a.getModel("edgeLabel"),r=new La({label:o.option},o.parentModel,e),s=a.getModel("emphasis.edgeLabel"),l=new La({emphasis:{label:s.option}},s.parentModel,e);i.wrapMethod("getItemModel",(function(t){return t.customizeGetParent(n),t}))})).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,i){if("edge"===i){var n=this.getData(),a=this.getDataParams(t,i),o=n.graph.getEdgeByIndex(t),r=n.getName(o.node1.dataIndex),s=n.getName(o.node2.dataIndex),l=[];return null!=r&&l.push(r),null!=s&&l.push(s),l=Qa(l.join(" > ")),a.value&&(l+=" : "+Qa(a.value)),l}return dL.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=p(this.option.categories||[],(function(t){return null!=t.value?t:r({value:0},t)})),e=new eA(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t,!0)}))},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return dL.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle"},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),fL=rM.prototype,pL=lM.prototype,gL=Wn({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){(Xd(e)?fL:pL).buildPath(t,e)},pointAt:function(t){return Xd(this.shape)?fL.pointAt.call(this,t):pL.pointAt.call(this,t)},tangentAt:function(t){var e=this.shape,i=Xd(e)?[e.x2-e.x1,e.y2-e.y1]:pL.tangentAt.call(this,t);return $(i,i)}}),mL=["fromSymbol","toSymbol"],vL=Jd.prototype;vL.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),i=t.childOfName("toSymbol"),n=t.childOfName("label");if(e||i||!n.ignore){for(var a=1,o=this.parent;o;)o.scale&&(a/=o.scale[0]),o=o.parent;var r=t.childOfName("line");if(this.__dirty||r.__dirty){var s=r.shape.percent,l=r.pointAt(0),u=r.pointAt(s),h=j([],u,l);if($(h,h),e&&(e.attr("position",l),c=r.tangentAt(0),e.attr("rotation",Math.PI/2-Math.atan2(c[1],c[0])),e.attr("scale",[a*s,a*s])),i){i.attr("position",u);var c=r.tangentAt(1);i.attr("rotation",-Math.PI/2-Math.atan2(c[1],c[0])),i.attr("scale",[a*s,a*s])}if(!n.ignore){n.attr("position",u);var d,f,p,g=5*a;if("end"===n.__position)d=[h[0]*g+u[0],h[1]*g+u[1]],f=h[0]>.8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";else if("middle"===n.__position){var m=s/2,v=[(c=r.tangentAt(m))[1],-c[0]],y=r.pointAt(m);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]),d=[y[0]+v[0]*g,y[1]+v[1]*g],f="center",p="bottom";var x=-Math.atan2(c[1],c[0]);u[0]<l[0]&&(x=Math.PI+x),n.attr("rotation",x)}else d=[-h[0]*g+l[0],-h[1]*g+l[1]],f=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";n.attr({style:{textVerticalAlign:n.__verticalAlign||p,textAlign:n.__textAlign||f},position:d,scale:[a,a]})}}}},vL._createLine=function(t,e,i){var n=t.hostModel,a=$d(t.getItemLayout(e));a.shape.percent=0,Sa(a,{shape:{percent:1}},n,e),this.add(a);var o=new qS({name:"label"});this.add(o),f(mL,(function(i){var n=qd(i,t,e);this.add(n),this[Yd(i)]=t.getItemVisual(e,i)}),this),this._updateCommonStl(t,e,i)},vL.updateData=function(t,e,i){var n=t.hostModel,a=this.childOfName("line"),o=t.getItemLayout(e),r={shape:{}};Kd(r.shape,o),ba(a,r,n,e),f(mL,(function(i){var n=t.getItemVisual(e,i),a=Yd(i);if(this[a]!==n){this.remove(this.childOfName(i));var o=qd(i,t,e);this.add(o)}this[a]=n}),this),this._updateCommonStl(t,e,i)},vL._updateCommonStl=function(t,e,i){var n=t.hostModel,a=this.childOfName("line"),o=i&&i.lineStyle,r=i&&i.hoverLineStyle,l=i&&i.labelModel,u=i&&i.hoverLabelModel;if(!i||t.hasItemOption){var h=t.getItemModel(e);o=h.getModel("lineStyle").getLineStyle(),r=h.getModel("emphasis.lineStyle").getLineStyle(),l=h.getModel("label"),u=h.getModel("emphasis.label")}var c=t.getItemVisual(e,"color"),d=C(t.getItemVisual(e,"opacity"),o.opacity,1);a.useStyle(s({strokeNoScale:!0,fill:"none",stroke:c,opacity:d},o)),a.hoverStyle=r,f(mL,(function(t){var e=this.childOfName(t);e&&(e.setColor(c),e.setStyle({opacity:d}))}),this);var p,g,m=l.getShallow("show"),v=u.getShallow("show"),y=this.childOfName("label");if((m||v)&&(p=c||"#000",null==(g=n.getFormattedLabel(e,"normal",t.dataType)))){var x=n.getRawValue(e);g=null==x?t.getName(e):isFinite(x)?za(x):x}var _=m?g:null,w=v?D(n.getFormattedLabel(e,"emphasis",t.dataType),g):null,b=y.style;null==_&&null==w||(fa(y.style,l,{text:_},{autoColor:p}),y.__textAlign=b.textAlign,y.__verticalAlign=b.textVerticalAlign,y.__position=l.get("position")||"middle"),y.hoverStyle=null!=w?{text:w,textFill:u.getTextColor(!0),fontStyle:u.getShallow("fontStyle"),fontWeight:u.getShallow("fontWeight"),fontSize:u.getShallow("fontSize"),fontFamily:u.getShallow("fontFamily")}:{text:null},y.ignore=!m&&!v,ha(this)},vL.highlight=function(){this.trigger("emphasis")},vL.downplay=function(){this.trigger("normal")},vL.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},vL.setLinePoints=function(t){var e=this.childOfName("line");Kd(e.shape,t),e.dirty()},h(Jd,Uw);var yL=Qd.prototype;yL.isPersistent=function(){return!0},yL.updateData=function(t){var e=this,i=e.group,n=e._lineData;e._lineData=t,n||i.removeAll();var a=nf(t);t.diff(n).add((function(i){tf(e,t,i,a)})).update((function(i,o){ef(e,n,t,o,i,a)})).remove((function(t){i.remove(n.getItemGraphicEl(t))})).execute()},yL.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,i){e.updateLayout(t,i)}),this)},yL.incrementalPrepareUpdate=function(t){this._seriesScope=nf(t),this._lineData=null,this.group.removeAll()},yL.incrementalUpdate=function(t,e){for(var i=t.start;i<t.end;i++)if(of(e.getItemLayout(i))){var n=new this._ctor(e,i,this._seriesScope);n.traverse((function(t){t.isGroup||(t.incremental=t.useHoverLayer=!0)})),this.group.add(n),e.setItemGraphicEl(i,n)}},yL.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},yL._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var xL=[],_L=[],wL=[],bL=sn,SL=iw,ML=Math.abs,IL=function(t,e){function i(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),e}var n=[],a=cn,o=[[],[],[]],r=[[],[]],s=[];e/=2,t.eachEdge((function(t,l){var u=t.getLayout(),h=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");u.__original||(u.__original=[W(u[0]),W(u[1])],u[2]&&u.__original.push(W(u[2])));var d=u.__original;if(null!=u[2]){if(G(o[0],d[0]),G(o[1],d[2]),G(o[2],d[1]),h&&"none"!==h){var f=i(t.node1),p=rf(o,d[0],f*e);a(o[0][0],o[1][0],o[2][0],p,n),o[0][0]=n[3],o[1][0]=n[4],a(o[0][1],o[1][1],o[2][1],p,n),o[0][1]=n[3],o[1][1]=n[4]}if(c&&"none"!==c){f=i(t.node2),p=rf(o,d[1],f*e);a(o[0][0],o[1][0],o[2][0],p,n),o[1][0]=n[1],o[2][0]=n[2],a(o[0][1],o[1][1],o[2][1],p,n),o[1][1]=n[1],o[2][1]=n[2]}G(u[0],o[0]),G(u[1],o[2]),G(u[2],o[1])}else G(r[0],d[0]),G(r[1],d[1]),j(s,r[1],r[0]),$(s,s),h&&"none"!==h&&(f=i(t.node1),Z(r[0],r[0],s,f*e)),c&&"none"!==c&&(f=i(t.node2),Z(r[1],r[1],s,-f*e)),G(u[0],r[0]),G(u[1],r[1])}))},TL=["itemStyle","opacity"],AL=["lineStyle","opacity"];Ws({type:"graph",init:function(t,e){var i=new Mu,n=new Qd,a=this.group;this._controller=new rc(e.getZr()),this._controllerHost={target:a},a.add(i.group),a.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},render:function(t,e,i){var n=t.coordinateSystem;this._model=t,this._nodeScaleRatio=t.get("nodeScaleRatio");var a=this._symbolDraw,o=this._lineDraw,r=this.group;if("view"===n.type){var s={position:n.position,scale:n.scale};this._firstRender?r.attr(s):ba(r,s,t)}IL(t.getGraph(),this._getNodeGlobalScale(t));var l=t.getData();a.updateData(l);var u=t.getEdgeData();o.updateData(u),this._updateNodeAndLinkScale(),this._updateController(t,e,i),clearTimeout(this._layoutTimeout);var h=t.forceLayout,c=t.get("force.layoutAnimation");h&&this._startForceLayoutIteration(h,c),l.eachItemGraphicEl((function(e,n){var a=l.getItemModel(n);e.off("drag").off("dragend");var o=a.get("draggable");o&&e.on("drag",(function(){h&&(h.warmUp(),!this._layouting&&this._startForceLayoutIteration(h,c),h.setFixed(n),l.setItemLayout(n,e.position))}),this).on("dragend",(function(){h&&h.setUnfixed(n)}),this),e.setDraggable(o&&h),e.off("mouseover",e.__focusNodeAdjacency),e.off("mouseout",e.__unfocusNodeAdjacency),a.get("focusNodeAdjacency")&&(e.on("mouseover",e.__focusNodeAdjacency=function(){i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e.__unfocusNodeAdjacency=function(){i.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t.id})}))}),this),l.graph.eachEdge((function(e){var n=e.getGraphicEl();n.off("mouseover",n.__focusNodeAdjacency),n.off("mouseout",n.__unfocusNodeAdjacency),e.getModel().get("focusNodeAdjacency")&&(n.on("mouseover",n.__focusNodeAdjacency=function(){i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex})}),n.on("mouseout",n.__unfocusNodeAdjacency=function(){i.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t.id})}))}));var d="circular"===t.get("layout")&&t.get("circular.rotateLabel"),f=l.getLayout("cx"),p=l.getLayout("cy");l.eachItemGraphicEl((function(t,e){var i=t.getSymbolPath();if(d){var n=l.getItemLayout(e),a=Math.atan2(n[1]-p,n[0]-f);a<0&&(a=2*Math.PI+a);var o=n[0]<f;o&&(a-=Math.PI);var r=o?"left":"right";i.setStyle({textRotation:-a,textPosition:r,textOrigin:"center"}),i.hoverStyle&&(i.hoverStyle.textPosition=r)}else i.setStyle({textRotation:0})})),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},focusNodeAdjacency:function(t,e,i,n){var a=this._model.getData().graph,o=n.dataIndex,r=n.edgeDataIndex,s=a.getNodeByIndex(o),l=a.getEdgeByIndex(r);(s||l)&&(a.eachNode((function(t){lf(t,TL,.1)})),a.eachEdge((function(t){lf(t,AL,.1)})),s&&(uf(s,TL),f(s.edges,(function(t){t.dataIndex<0||(uf(t,AL),uf(t.node1,TL),uf(t.node2,TL))}))),l&&(uf(l,AL),uf(l.node1,TL),uf(l.node2,TL)))},unfocusNodeAdjacency:function(t,e,i,n){var a=this._model.getData().graph;a.eachNode((function(t){lf(t,TL)})),a.eachEdge((function(t){lf(t,AL)}))},_startForceLayoutIteration:function(t,e){var i=this;!function n(){t.step((function(t){i.updateLayout(i._model),(i._layouting=!t)&&(e?i._layoutTimeout=setTimeout(n,16):n())}))}()},_updateController:function(t,e,i){var n=this._controller,a=this._controllerHost,o=this.group;n.setPointerChecker((function(e,n,a){var r=o.getBoundingRect();return r.applyTransform(o.transform),r.contain(n,a)&&!vc(e,i,t)})),"view"===t.coordinateSystem.type?(n.enable(t.get("roam")),a.zoomLimit=t.get("scaleLimit"),a.zoom=t.coordinateSystem.getZoom(),n.off("pan").off("zoom").on("pan",(function(e){gc(a,e.dx,e.dy),i.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){mc(a,e.scale,e.originX,e.originY),i.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),this._updateNodeAndLinkScale(),IL(t.getGraph(),this._getNodeGlobalScale(t)),this._lineDraw.updateLayout()}),this)):n.disable()},_updateNodeAndLinkScale:function(){var t=this._model,e=t.getData(),i=this._getNodeGlobalScale(t),n=[i,i];e.eachItemGraphicEl((function(t,e){t.attr("scale",n)}))},_getNodeGlobalScale:function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var i=this._nodeScaleRatio,n=e.scale,a=n&&n[0]||1;return((e.getZoom()-1)*i+1)/a},updateLayout:function(t){IL(t.getGraph(),this._getNodeGlobalScale(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}}),Ns({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},(function(){})),Ns({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},(function(){})),Ns({type:"graphRoam",event:"graphRoam",update:"none"},(function(t,e){e.eachComponent({mainType:"series",query:t},(function(e){var i=bc(e.coordinateSystem,t);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}));var DL=Z;Ps((function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var i=t.getCategoriesData(),n=t.getGraph().data,a=i.mapArray(i.getName);n.filterSelf((function(t){var i=n.getItemModel(t).getShallow("category");if(null!=i){"number"==typeof i&&(i=a[i]);for(var o=0;o<e.length;o++)if(!e[o].isSelected(i))return!1}return!0}))}),this)})),Rs(hD("graph","circle",null)),Rs((function(t){var e={};t.eachSeriesByType("graph",(function(t){var i=t.getCategoriesData(),n=t.getData(),a={};i.each((function(n){var o=i.getName(n);a["ec-"+o]=n;var r=i.getItemModel(n).get("itemStyle.color")||t.getColorFromPalette(o,e);i.setItemVisual(n,"color",r)})),i.count()&&n.each((function(t){var e=n.getItemModel(t).getShallow("category");null!=e&&("string"==typeof e&&(e=a["ec-"+e]),n.getItemVisual(t,"color",!0)||n.setItemVisual(t,"color",i.getItemVisual(e,"color")))}))}))})),Rs((function(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),i=t.getEdgeData(),n=hf(t.get("edgeSymbol")),a=hf(t.get("edgeSymbolSize")),o="lineStyle.color".split("."),r="lineStyle.opacity".split(".");i.setVisual("fromSymbol",n&&n[0]),i.setVisual("toSymbol",n&&n[1]),i.setVisual("fromSymbolSize",a&&a[0]),i.setVisual("toSymbolSize",a&&a[1]),i.setVisual("color",t.get(o)),i.setVisual("opacity",t.get(r)),i.each((function(t){var n=i.getItemModel(t),a=e.getEdgeByIndex(t),s=hf(n.getShallow("symbol",!0)),l=hf(n.getShallow("symbolSize",!0)),u=n.get(o),h=n.get(r);switch(u){case"source":u=a.node1.getVisual("color");break;case"target":u=a.node2.getVisual("color")}s[0]&&a.setVisual("fromSymbol",s[0]),s[1]&&a.setVisual("toSymbol",s[1]),l[0]&&a.setVisual("fromSymbolSize",l[0]),l[1]&&a.setVisual("toSymbolSize",l[1]),a.setVisual("color",u),a.setVisual("opacity",h)}))}))})),Es((function(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),i=t.coordinateSystem;if(i&&"view"!==i.type){var n=t.getData(),a=[];f(i.dimensions,(function(t){a=a.concat(n.mapDimension(t,!0))}));for(var o=0;o<n.count();o++){for(var r=[],s=!1,l=0;l<a.length;l++){var u=n.get(a[l],o);isNaN(u)||(s=!0),r.push(u)}s?n.setItemLayout(o,i.dataToPoint(r)):n.setItemLayout(o,[NaN,NaN])}df(n.graph)}else e&&"none"!==e||cf(t)}))})),Es((function(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&ff(t)}))})),Es((function(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var i=t.preservedPoints||{},n=t.getGraph(),a=n.data,o=n.edgeData,r=t.getModel("force"),s=r.get("initLayout");t.preservedPoints?a.each((function(t){var e=a.getId(t);a.setItemLayout(t,i[e]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&ff(t):cf(t);var l=a.getDataExtent("value"),u=o.getDataExtent("value"),h=r.get("repulsion"),c=r.get("edgeLength");x(h)||(h=[h,h]),x(c)||(c=[c,c]),c=[c[1],c[0]];var d=a.mapArray("value",(function(t,e){var i=a.getItemLayout(e),n=Ea(t,l,h);return isNaN(n)&&(n=(h[0]+h[1])/2),{w:n,rep:n,fixed:a.getItemModel(e).get("fixed"),p:!i||isNaN(i[0])||isNaN(i[1])?null:i}})),f=o.mapArray("value",(function(t,e){var i=n.getEdgeByIndex(e),a=Ea(t,u,c);return isNaN(a)&&(a=(c[0]+c[1])/2),{n1:d[i.node1.dataIndex],n2:d[i.node2.dataIndex],d:a,curveness:i.getModel().get("lineStyle.curveness")||0}})),p=(e=t.coordinateSystem).getBoundingRect(),g=pf(d,f,{rect:p,gravity:r.get("gravity")}),m=g.step;g.step=function(t){for(var e=0,o=d.length;e<o;e++)d[e].fixed&&G(d[e].p,n.getNodeByIndex(e).getLayout());m((function(e,o,r){for(var s=0,l=e.length;s<l;s++)e[s].fixed||n.getNodeByIndex(s).setLayout(e[s].p),i[a.getId(s)]=e[s].p;for(s=0,l=o.length;s<l;s++){var u=o[s],h=n.getEdgeByIndex(s),c=u.n1.p,d=u.n2.p,f=h.getLayout();(f=f?f.slice():[])[0]=f[0]||[],f[1]=f[1]||[],G(f[0],c),G(f[1],d),+u.curveness&&(f[2]=[(c[0]+d[0])/2-(c[1]-d[1])*u.curveness,(c[1]+d[1])/2-(d[0]-c[0])*u.curveness]),h.setLayout(f)}t&&t(r)}))},t.forceLayout=g,t.preservedPoints=i,g.step()}else t.forceLayout=null}))})),Os("graphView",{create:function(t,e){var i=[];return t.eachSeriesByType("graph",(function(t){var n=t.get("coordinateSystem");if(!n||"view"===n){var a=t.getData(),o=[],r=[];fn(a.mapArray((function(t){var e=a.getItemModel(t);return[+e.get("x"),+e.get("y")]})),o,r),r[0]-o[0]==0&&(r[0]+=1,o[0]-=1),r[1]-o[1]==0&&(r[1]+=1,o[1]-=1);var s=(r[0]-o[0])/(r[1]-o[1]),l=gf(t,e,s);isNaN(s)&&(o=[l.x,l.y],r=[l.x+l.width,l.y+l.height]);var u=r[0]-o[0],h=r[1]-o[1],c=l.width,d=l.height,f=t.coordinateSystem=new jh;f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(o[0],o[1],u,h),f.setViewRect(l.x,l.y,c,d),f.setCenter(t.get("center")),f.setZoom(t.get("zoom")),i.push(f)}})),i}}),OI.extend({type:"series.gauge",getInitialData:function(t,e){var i=t.data||[];return x(i)||(i=[i]),t.data=i,WD(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}});var CL=Pn.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(t,e){var i=Math.cos,n=Math.sin,a=e.r,o=e.width,r=e.angle,s=e.x-i(r)*o*(o>=a/3?1:2),l=e.y-n(r)*o*(o>=a/3?1:2);r=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+i(r)*o,e.y+n(r)*o),t.lineTo(e.x+i(e.angle)*a,e.y+n(e.angle)*a),t.lineTo(e.x-i(r)*o,e.y-n(r)*o),t.lineTo(s,l)}}),LL=2*Math.PI,kL=(Ir.extend({type:"gauge",render:function(t,e,i){this.group.removeAll();var n=t.get("axisLine.lineStyle.color"),a=mf(t,i);this._renderMain(t,e,i,n,a)},dispose:function(){},_renderMain:function(t,e,i,n,a){for(var o=this.group,r=t.getModel("axisLine").getModel("lineStyle"),s=t.get("clockwise"),l=-t.get("startAngle")/180*Math.PI,u=-t.get("endAngle")/180*Math.PI,h=(u-l)%LL,c=l,d=r.get("width"),f=0;f<n.length;f++){var p=Math.min(Math.max(n[f][0],0),1),g=new QS({shape:{startAngle:c,endAngle:u=l+h*p,cx:a.cx,cy:a.cy,clockwise:s,r0:a.r-d,r:a.r},silent:!0});g.setStyle({fill:n[f][1]}),g.setStyle(r.getLineStyle(["color","borderWidth","borderColor"])),o.add(g),c=u}var m=function(t){if(t<=0)return n[0][1];for(var e=0;e<n.length;e++)if(n[e][0]>=t&&(0===e?0:n[e-1][0])<t)return n[e][1];return n[e-1][1]};if(!s){var v=l;l=u,u=v}this._renderTicks(t,e,i,m,a,l,u,s),this._renderPointer(t,e,i,m,a,l,u,s),this._renderTitle(t,e,i,m,a),this._renderDetail(t,e,i,m,a)},_renderTicks:function(t,e,i,n,a,o,r,s){for(var l=this.group,u=a.cx,h=a.cy,c=a.r,d=+t.get("min"),f=+t.get("max"),p=t.getModel("splitLine"),g=t.getModel("axisTick"),m=t.getModel("axisLabel"),v=t.get("splitNumber"),y=g.get("splitNumber"),x=Ra(p.get("length"),c),_=Ra(g.get("length"),c),w=o,b=(r-o)/v,S=b/y,M=p.getModel("lineStyle").getLineStyle(),I=g.getModel("lineStyle").getLineStyle(),T=0;T<=v;T++){var A=Math.cos(w),D=Math.sin(w);if(p.get("show")){var C=new rM({shape:{x1:A*c+u,y1:D*c+h,x2:A*(c-x)+u,y2:D*(c-x)+h},style:M,silent:!0});"auto"===M.stroke&&C.setStyle({stroke:n(T/v)}),l.add(C)}if(m.get("show")){var L=vf(za(T/v*(f-d)+d),m.get("formatter")),k=m.get("distance"),P=n(T/v);l.add(new qS({style:fa({},m,{text:L,x:A*(c-x-k)+u,y:D*(c-x-k)+h,textVerticalAlign:D<-.4?"top":D>.4?"bottom":"middle",textAlign:A<-.4?"left":A>.4?"right":"center"},{autoColor:P}),silent:!0}))}if(g.get("show")&&T!==v){for(var N=0;N<=y;N++){A=Math.cos(w),D=Math.sin(w);var O=new rM({shape:{x1:A*c+u,y1:D*c+h,x2:A*(c-_)+u,y2:D*(c-_)+h},silent:!0,style:I});"auto"===I.stroke&&O.setStyle({stroke:n((T+N/y)/v)}),l.add(O),w+=S}w-=S}else w+=b}},_renderPointer:function(t,e,i,n,a,o,r,s){var l=this.group,u=this._data;if(t.get("pointer.show")){var h=[+t.get("min"),+t.get("max")],c=[o,r],d=t.getData(),f=d.mapDimension("value");d.diff(u).add((function(e){var i=new CL({shape:{angle:o}});Sa(i,{shape:{angle:Ea(d.get(f,e),h,c,!0)}},t),l.add(i),d.setItemGraphicEl(e,i)})).update((function(e,i){var n=u.getItemGraphicEl(i);ba(n,{shape:{angle:Ea(d.get(f,e),h,c,!0)}},t),l.add(n),d.setItemGraphicEl(e,n)})).remove((function(t){var e=u.getItemGraphicEl(t);l.remove(e)})).execute(),d.eachItemGraphicEl((function(t,e){var i=d.getItemModel(e),o=i.getModel("pointer");t.setShape({x:a.cx,y:a.cy,width:Ra(o.get("width"),a.r),r:Ra(o.get("length"),a.r)}),t.useStyle(i.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",n(Ea(d.get(f,e),h,[0,1],!0))),ha(t,i.getModel("emphasis.itemStyle").getItemStyle())})),this._data=d}else u&&u.eachItemGraphicEl((function(t){l.remove(t)}))},_renderTitle:function(t,e,i,n,a){var o=t.getData(),r=o.mapDimension("value"),s=t.getModel("title");if(s.get("show")){var l=s.get("offsetCenter"),u=a.cx+Ra(l[0],a.r),h=a.cy+Ra(l[1],a.r),c=+t.get("min"),d=+t.get("max"),f=n(Ea(t.getData().get(r,0),[c,d],[0,1],!0));this.group.add(new qS({silent:!0,style:fa({},s,{x:u,y:h,text:o.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:f,forceRich:!0})}))}},_renderDetail:function(t,e,i,n,a){var o=t.getModel("detail"),r=+t.get("min"),s=+t.get("max");if(o.get("show")){var l=o.get("offsetCenter"),u=a.cx+Ra(l[0],a.r),h=a.cy+Ra(l[1],a.r),c=Ra(o.get("width"),a.r),d=Ra(o.get("height"),a.r),f=t.getData(),p=f.get(f.mapDimension("value"),0),g=n(Ea(p,[r,s],[0,1],!0));this.group.add(new qS({silent:!0,style:fa({},o,{x:u,y:h,text:vf(p,o.get("formatter")),textWidth:isNaN(c)?null:c,textHeight:isNaN(d)?null:d,textAlign:"center",textVerticalAlign:"middle"},{autoColor:g,forceRich:!0})}))}}}),Gs({type:"series.funnel",init:function(t){kL.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this._defaultLabelLine(t)},getInitialData:function(t,e){return WD(this,["value"])},_defaultLabelLine:function(t){Li(t,"labelLine",["show"]);var e=t.labelLine,i=t.emphasis.labelLine;e.show=e.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},getDataParams:function(t){var e=this.getData(),i=kL.superCall(this,"getDataParams",t),n=e.mapDimension("value"),a=e.getSum(n);return i.percent=a?+(e.get(n,t)/a*100).toFixed(2):0,i.$vars.push("percent"),i},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}})),PL=yf.prototype,NL=["itemStyle","opacity"];PL.updateData=function(t,e,i){var n=this.childAt(0),a=t.hostModel,o=t.getItemModel(e),r=t.getItemLayout(e),l=t.getItemModel(e).get(NL);l=null==l?1:l,n.useStyle({}),i?(n.setShape({points:r.points}),n.setStyle({opacity:0}),Sa(n,{style:{opacity:l}},a,e)):ba(n,{style:{opacity:l},shape:{points:r.points}},a,e);var u=o.getModel("itemStyle"),h=t.getItemVisual(e,"color");n.setStyle(s({lineJoin:"round",fill:h},u.getItemStyle(["opacity"]))),n.hoverStyle=u.getModel("emphasis").getItemStyle(),this._updateLabel(t,e),ha(this)},PL._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),a=t.hostModel,o=t.getItemModel(e),r=t.getItemLayout(e).label,s=t.getItemVisual(e,"color");ba(i,{shape:{points:r.linePoints||r.linePoints}},a,e),ba(n,{style:{x:r.x,y:r.y}},a,e),n.attr({rotation:r.rotation,origin:[r.x,r.y],z2:10});var l=o.getModel("label"),u=o.getModel("emphasis.label"),h=o.getModel("labelLine"),c=o.getModel("emphasis.labelLine");s=t.getItemVisual(e,"color");da(n.style,n.hoverStyle={},l,u,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:s,useInsideStyle:!!r.inside},{textAlign:r.textAlign,textVerticalAlign:r.verticalAlign}),n.ignore=n.normalIgnore=!l.get("show"),n.hoverIgnore=!u.get("show"),i.ignore=i.normalIgnore=!h.get("show"),i.hoverIgnore=!c.get("show"),i.setStyle({stroke:s}),i.setStyle(h.getModel("lineStyle").getLineStyle()),i.hoverStyle=c.getModel("lineStyle").getLineStyle()},h(yf,Uw),Ir.extend({type:"funnel",render:function(t,e,i){var n=t.getData(),a=this._data,o=this.group;n.diff(a).add((function(t){var e=new yf(n,t);n.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var i=a.getItemGraphicEl(e);i.updateData(n,t),o.add(i),n.setItemGraphicEl(t,i)})).remove((function(t){var e=a.getItemGraphicEl(t);o.remove(e)})).execute(),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),Rs(XD("funnel")),Es((function(t,e,i){t.eachSeriesByType("funnel",(function(t){var i=t.getData(),n=i.mapDimension("value"),a=t.get("sort"),o=xf(t,e),r=_f(i,a),s=[Ra(t.get("minSize"),o.width),Ra(t.get("maxSize"),o.width)],l=i.getDataExtent(n),u=t.get("min"),h=t.get("max");null==u&&(u=Math.min(l[0],0)),null==h&&(h=l[1]);var c=t.get("funnelAlign"),d=t.get("gap"),f=(o.height-d*(i.count()-1))/i.count(),p=o.y,g=function(t,e){var a,r=Ea(i.get(n,t)||0,[u,h],s,!0);switch(c){case"left":a=o.x;break;case"center":a=o.x+(o.width-r)/2;break;case"right":a=o.x+o.width-r}return[[a,e],[a+r,e]]};"ascending"===a&&(f=-f,d=-d,p+=o.height,r=r.reverse());for(var m=0;m<r.length;m++){var v=r[m],y=r[m+1],x=i.getItemModel(v).get("itemStyle.height");null==x?x=f:(x=Ra(x,o.height),"ascending"===a&&(x=-x));var _=g(v,p),w=g(y,p+x);p+=x+d,i.setItemLayout(v,{points:_.concat(w.slice().reverse())})}wf(i)}))})),Ps(KD("funnel"));var OL=function(t,e,i,n,a){HA.call(this,t,e,i),this.type=n||"value",this.axisIndex=a};OL.prototype={constructor:OL,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},h(OL,HA);var EL=function(t,e,i,n,a,o){e[0]=If(e[0],i),e[1]=If(e[1],i),t=t||0;var r=i[1]-i[0];null!=a&&(a=If(a,[0,r])),null!=o&&(o=Math.max(o,null!=a?a:0)),"all"===n&&(a=o=Math.abs(e[1]-e[0]),n=0);var s=Mf(e,n);e[n]+=t;var l=a||0,u=i.slice();s.sign<0?u[0]+=l:u[1]-=l,e[n]=If(e[n],u),h=Mf(e,n),null!=a&&(h.sign!==s.sign||h.span<a)&&(e[1-n]=e[n]+s.sign*a);var h=Mf(e,n);return null!=o&&h.span>o&&(e[1-n]=e[n]+h.sign*o),e},RL=f,zL=Math.min,BL=Math.max,VL=Math.floor,FL=Math.ceil,GL=za,WL=Math.PI;Tf.prototype={type:"parallel",constructor:Tf,_init:function(t,e,i){var n=t.dimensions,a=t.parallelAxisIndex;RL(n,(function(t,i){var n=a[i],o=e.getComponent("parallelAxis",n),r=this._axesMap.set(t,new OL(t,Fl(o),[0,0],o.get("type"),n)),s="category"===r.type;r.onBand=s&&o.get("boundaryGap"),r.inverse=o.get("inverse"),o.axis=r,r.model=o,r.coordinateSystem=o.coordinateSystem=this}),this)},update:function(t,e){this._updateAxesFromSeries(this._model,t)},containPoint:function(t){var e=this._makeLayoutInfo(),i=e.axisBase,n=e.layoutBase,a=e.pixelDimIndex,o=t[1-a],r=t[a];return o>=i&&o<=i+e.axisLength&&r>=n&&r<=n+e.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(t,e){e.eachSeries((function(i){if(t.contains(i,e)){var n=i.getData();RL(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(n,n.mapDimension(t)),Vl(e.scale,e.model)}),this)}}),this)},resize:function(t,e){this._rect=lo(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,i=this._rect,n=["x","y"],a=["width","height"],o=e.get("layout"),r="horizontal"===o?0:1,s=i[a[r]],l=[0,s],u=this.dimensions.length,h=Af(e.get("axisExpandWidth"),l),c=Af(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>c&&c>1&&h>0&&s>0,f=e.get("axisExpandWindow");f?(t=Af(f[1]-f[0],l),f[1]=f[0]+t):(t=Af(h*(c-1),l),(f=[h*(e.get("axisExpandCenter")||VL(u/2))-t/2])[1]=f[0]+t);var p=(s-t)/(u-c);p<3&&(p=0);var g=[VL(GL(f[0]/h,1))+1,FL(GL(f[1]/h,1))-1],m=p/h*f[0];return{layout:o,pixelDimIndex:r,layoutBase:i[n[r]],layoutLength:s,axisBase:i[n[1-r]],axisLength:i[a[1-r]],axisExpandable:d,axisExpandWidth:h,axisCollapseWidth:p,axisExpandWindow:f,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:m}},_layoutAxes:function(){var t=this._rect,e=this._axesMap,i=this.dimensions,n=this._makeLayoutInfo(),a=n.layout;e.each((function(t){var e=[0,n.axisLength],i=t.inverse?1:0;t.setExtent(e[i],e[1-i])})),RL(i,(function(e,i){var o=(n.axisExpandable?Cf:Df)(i,n),r={horizontal:{x:o.position,y:n.axisLength},vertical:{x:0,y:o.position}},s={horizontal:WL/2,vertical:0},l=[r[a].x+t.x,r[a].y+t.y],u=s[a],h=vt();bt(h,h,u),wt(h,h,l),this._axesLayout[e]={position:l,rotation:u,transform:h,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},getAxis:function(t){return this._axesMap.get(t)},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},eachActiveState:function(t,e,i,n){null==i&&(i=0),null==n&&(n=t.count());var a=this._axesMap,o=this.dimensions,r=[],s=[];f(o,(function(e){r.push(t.mapDimension(e)),s.push(a.get(e).model)}));for(var l=this.hasAxisBrushed(),u=i;u<n;u++){var h;if(l){h="active";for(var c=t.getValues(r,u),d=0,p=o.length;d<p;d++)if("inactive"===s[d].getActiveState(c[d])){h="inactive";break}}else h="normal";e(h,u)}},hasAxisBrushed:function(){for(var t=this.dimensions,e=this._axesMap,i=!1,n=0,a=t.length;n<a;n++)"normal"!==e.get(t[n]).model.getActiveState()&&(i=!0);return i},axisCoordToPoint:function(t,e){return Ia([t,0],this._axesLayout[e].transform)},getAxisLayout:function(t){return n(this._axesLayout[t])},getSlidedAxisExpandWindow:function(t){var e=this._makeLayoutInfo(),i=e.pixelDimIndex,n=e.axisExpandWindow.slice(),a=n[1]-n[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:n};var r,s=t[i]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),c=null!=h[0];return u?(c&&u&&s<a*h[0]?(l="jump",r=s-a*h[2]):c&&u&&s>a*(1-h[0])?(l="jump",r=s-a*(1-h[2])):(r=s-a*h[1])>=0&&(r=s-a*(1-h[1]))<=0&&(r=0),(r*=e.axisExpandWidth/u)?EL(r,n,o,"all"):l="none"):(a=n[1]-n[0],(n=[BL(0,o[1]*s/a-a/2)])[1]=zL(o[1],n[0]+a),n[0]=n[1]-a),{axisExpandWindow:n,behavior:l}}},Vo.register("parallel",{create:function(t,e){var i=[];return t.eachComponent("parallel",(function(n,a){var o=new Tf(n,t,e);o.name="parallel_"+a,o.resize(n,e),n.coordinateSystem=o,o.model=n,i.push(o)})),t.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"parallel",index:e.get("parallelIndex"),id:e.get("parallelId")})[0];e.coordinateSystem=i.coordinateSystem}})),i}});var HL=YM.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return Wb([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=n(t);if(e)for(var i=e.length-1;i>=0;i--)Ba(e[i])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(t))return"inactive";if(1===e.length){var i=e[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var n=0,a=e.length;n<a;n++)if(e[n][0]<=t&&t<=e[n][1])return"active";return"inactive"}}),UL={type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};a(HL.prototype,CA),xD("parallel",HL,(function(t,e){return e.type||(e.data?"category":"value")}),UL),YM.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){YM.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(t){var e=this.option;t&&a(e,t,!0),this._initDimensions()},contains:function(t,e){var i=t.get("parallelIndex");return null!=i&&e.getComponent("parallel",i)===this},setAxisExpand:function(t){f(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},_initDimensions:function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[];f(m(this.dependentModels.parallelAxis,(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this),(function(i){t.push("dim"+i.get("dim")),e.push(i.componentIndex)}))}}),Ns({type:"axisAreaSelect",event:"axisAreaSelected"},(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),Ns("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}));var ZL=y,jL=f,XL=p,YL=Math.min,qL=Math.max,$L=Math.pow,KL=1e4,JL=6,QL=6,tk="globalPan",ek={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},ik={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},nk={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},ak=0;Lf.prototype={constructor:Lf,enableBrush:function(t){return this._brushType&&Pf(this),t.brushType&&kf(this,t),this},setPanels:function(t){if(t&&t.length){var e=this._panels={};f(t,(function(t){e[t.panelId]=n(t)}))}else this._panels=null;return this},mount:function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t.position||[0,0],rotation:t.rotation||0,scale:t.scale||[1,1]}),this._transform=e.getLocalTransform(),this},eachCover:function(t,e){jL(this._covers,t,e)},updateCovers:function(t){function e(t,e){return(null!=t.id?t.id:o+e)+"-"+t.brushType}function i(e,i){var n=t[e];if(null!=i&&r[i]===u)s[e]=r[i];else{var a=s[e]=null!=i?(r[i].__brushOption=n,r[i]):Of(l,Nf(l,n));zf(l,a)}}t=p(t,(function(t){return a(n(nk),t,!0)}));var o="\0-brush-index-",r=this._covers,s=this._covers=[],l=this,u=this._creatingCover;return new Us(r,t,(function(t,i){return e(t.__brushOption,i)}),e).add(i).update(i).remove((function(t){r[t]!==u&&l.group.remove(r[t])})).execute(),this},unmount:function(){return this.enableBrush(!1),Gf(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},c(Lf,ow);var ok={mousedown:function(t){if(this._dragging)up.call(this,t);else if(!t.target||!t.target.draggable){op(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=Vf(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);if(ap(this,t,e),this._dragging){op(t);var i=sp(this,t,e,!1);i&&Wf(this,i)}},mouseup:up},rk={lineX:hp(0),lineY:hp(1),rect:{createCover:function(t,e){return Zf(ZL(Qf,(function(t){return t}),(function(t){return t})),t,e,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(t){var e=Uf(t);return $f(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,i,n){jf(t,e,i,n)},updateCommon:Xf,contain:rp},polygon:{createCover:function(t,e){var i=new Uw;return i.add(new aM({name:"main",style:qf(e),silent:!0})),i},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new nM({name:"main",draggable:!0,drift:ZL(tp,t,e),ondragend:ZL(Wf,t,{isEnd:!0})}))},updateCoverShape:function(t,e,i,n){e.childAt(0).setShape({points:ip(t,e,i)})},updateCommon:Xf,contain:rp}},sk=["axisLine","axisTickLabel","axisName"],lk=Fs({type:"parallelAxis",init:function(t,e){lk.superApply(this,"init",arguments),(this._brushController=new Lf(e.getZr())).on("brush",v(this._onBrush,this))},render:function(t,e,i,n){if(!gp(t,e,n)){this.axisModel=t,this.api=i,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new Uw,this.group.add(this._axisGroup),t.get("show")){var o=vp(t,e),s=o.coordinateSystem,l=t.getAreaSelectStyle(),u=l.width,h=t.axis.dim,c=r({strokeContainThreshold:u},s.getAxisLayout(h)),d=new ID(t,c);f(sk,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(c,l,t,o,u,i);var p=n&&!1===n.animation?null:t;Aa(a,this._axisGroup,p)}}},_refreshBrushController:function(t,e,i,n,a,o){var r=i.axis.getExtent(),s=r[1]-r[0],l=Math.min(30,.1*Math.abs(s)),u=he.create({x:r[0],y:-a/2,width:s,height:a});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,position:t.position}).setPanels([{panelId:"pl",clipPath:cp(u),isTargetByCursor:fp(u,o,n),getLinearBrushOtherExtent:dp(u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(mp(i))},_onBrush:function(t,e){var i=this.axisModel,n=i.axis,a=p(t,(function(t){return[n.coordToData(t.range[0],!0),n.coordToData(t.range[1],!0)]}));(!i.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:a})},dispose:function(){this._brushController.dispose()}});Fs({type:"parallel",render:function(t,e,i){this._model=t,this._api=i,this._handlers||(this._handlers={},f(uk,(function(t,e){i.getZr().on(e,this._handlers[e]=v(t,this))}),this)),kr(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},dispose:function(t,e){f(this._handlers,(function(t,i){e.getZr().off(i,t)})),this._handlers=null},_throttledDispatchExpand:function(t){this._dispatchExpand(t)},_dispatchExpand:function(t){t&&this._api.dispatchAction(r({type:"parallelAxisExpand"},t))}});var uk={mousedown:function(t){yp(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(yp(this,"click")&&e){var i=[t.offsetX,t.offsetY];if(Math.pow(e[0]-i[0],2)+Math.pow(e[1]-i[1],2)>5)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==n.behavior&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&yp(this,"mousemove")){var e=this._model,i=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),n=i.behavior;"jump"===n&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===n?null:{axisExpandWindow:i.axisExpandWindow,animation:"jump"===n&&null})}}};ks((function(t){bf(t),Sf(t)})),OI.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(t,e){var i=this.getSource();return xp(i,this),fl(i,this)},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,i=this.getData(),n=[];return e.eachActiveState(i,(function(e,a){t===e&&n.push(i.getRawIndex(a))})),n},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});var hk=.3,ck=(Ir.extend({type:"parallel",init:function(){this._dataGroup=new Uw,this.group.add(this._dataGroup),this._data,this._initialized},render:function(t,e,i,n){var a=this._dataGroup,o=t.getData(),r=this._data,s=t.coordinateSystem,l=s.dimensions,u=Mp(t);if(o.diff(r).add((function(t){Ip(Sp(o,a,t,l,s),o,t,u)})).update((function(e,i){var a=r.getItemGraphicEl(i),h=bp(o,e,l,s);o.setItemGraphicEl(e,a),ba(a,{shape:{points:h}},n&&!1===n.animation?null:t,e),Ip(a,o,e,u)})).remove((function(t){var e=r.getItemGraphicEl(t);a.remove(e)})).execute(),!this._initialized){this._initialized=!0;var h=wp(s,t,(function(){setTimeout((function(){a.removeClipPath()}))}));a.setClipPath(h)}this._data=o},incrementalPrepareRender:function(t,e,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(t,e,i){for(var n=e.getData(),a=e.coordinateSystem,o=a.dimensions,r=Mp(e),s=t.start;s<t.end;s++){var l=Sp(n,this._dataGroup,s,o,a);l.incremental=!0,Ip(l,n,s,r)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}}),["lineStyle","normal","opacity"]);Rs({seriesType:"parallel",reset:function(t,e,i){var n=t.getModel("itemStyle"),a=t.getModel("lineStyle"),o=e.get("color"),r=a.get("color")||n.get("color")||o[t.seriesIndex%o.length],s=t.get("inactiveOpacity"),l=t.get("activeOpacity"),u=t.getModel("lineStyle").getLineStyle(),h=t.coordinateSystem,c=t.getData(),d={normal:u.opacity,active:l,inactive:s};return c.setVisual("color",r),{progress:function(t,e){h.eachActiveState(e,(function(t,i){var n=d[t];if("normal"===t&&e.hasItemOption){var a=e.getItemModel(i).get(ck,!0);null!=a&&(n=a)}e.setItemVisual(i,"opacity",n)}),t.start,t.end)}}}});var dk=OI.extend({type:"series.sankey",layoutInfo:null,getInitialData:function(t){var e=t.edges||t.links,i=t.data||t.nodes;if(i&&e)return cL(i,e,this,!0).data},setNodePosition:function(t,e){var i=this.option.data[t];i.localX=e[0],i.localY=e[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(t,e,i){if("edge"===i){var n=this.getDataParams(t,i),a=n.data,o=a.source+" -- "+a.target;return n.value&&(o+=" : "+n.value),Qa(o)}return dk.superCall(this,"formatTooltip",t,e)},optionUpdated:function(){var t=this.option;!0===t.focusNodeAdjacency&&(t.focusNodeAdjacency="allEdges")},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.6}},animationEasing:"linear",animationDuration:1e3}}),fk=["itemStyle","opacity"],pk=["lineStyle","opacity"],gk=Wn({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(t,e){var i=e.extent;"vertical"===e.orient?(t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),t.lineTo(e.x2+i,e.y2),t.bezierCurveTo(e.cpx2+i,e.cpy2,e.cpx1+i,e.cpy1,e.x1+i,e.y1)):(t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),t.lineTo(e.x2,e.y2+i),t.bezierCurveTo(e.cpx2,e.cpy2+i,e.cpx1,e.cpy1+i,e.x1,e.y1+i)),t.closePath()}});Ws({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(t,e,i){var n=this,a=t.getGraph(),o=this.group,r=t.layoutInfo,s=r.width,l=r.height,u=t.getData(),h=t.getData("edge"),c=t.get("orient");this._model=t,o.removeAll(),o.attr("position",[r.x,r.y]),a.eachEdge((function(e){var i=new gk;i.dataIndex=e.dataIndex,i.seriesIndex=t.seriesIndex,i.dataType="edge";var n,a,r,u,d,f,p,g,m=e.getModel("lineStyle"),v=m.get("curveness"),y=e.node1.getLayout(),x=e.node1.getModel(),_=x.get("localX"),w=x.get("localY"),b=e.node2.getLayout(),S=e.node2.getModel(),M=S.get("localX"),I=S.get("localY"),T=e.getLayout();switch(i.shape.extent=Math.max(1,T.dy),i.shape.orient=c,"vertical"===c?(n=(null!=_?_*s:y.x)+T.sy,a=(null!=w?w*l:y.y)+y.dy,r=(null!=M?M*s:b.x)+T.ty,d=n,f=a*(1-v)+(u=null!=I?I*l:b.y)*v,p=r,g=a*v+u*(1-v)):(n=(null!=_?_*s:y.x)+y.dx,a=(null!=w?w*l:y.y)+T.sy,d=n*(1-v)+(r=null!=M?M*s:b.x)*v,f=a,p=n*v+r*(1-v),g=u=(null!=I?I*l:b.y)+T.ty),i.setShape({x1:n,y1:a,x2:r,y2:u,cpx1:d,cpy1:f,cpx2:p,cpy2:g}),i.setStyle(m.getItemStyle()),i.style.fill){case"source":i.style.fill=e.node1.getVisual("color");break;case"target":i.style.fill=e.node2.getVisual("color")}ha(i,e.getModel("emphasis.lineStyle").getItemStyle()),o.add(i),h.setItemGraphicEl(e.dataIndex,i)})),a.eachNode((function(e){var i=e.getLayout(),n=e.getModel(),a=n.get("localX"),r=n.get("localY"),h=n.getModel("label"),c=n.getModel("emphasis.label"),d=new oM({shape:{x:null!=a?a*s:i.x,y:null!=r?r*l:i.y,width:i.dx,height:i.dy},style:n.getModel("itemStyle").getItemStyle()}),f=e.getModel("emphasis.itemStyle").getItemStyle();da(d.style,f,h,c,{labelFetcher:t,labelDataIndex:e.dataIndex,defaultText:e.id,isRectText:!0}),d.setStyle("fill",e.getVisual("color")),ha(d,f),o.add(d),u.setItemGraphicEl(e.dataIndex,d),d.dataType="node"})),u.eachItemGraphicEl((function(e,a){var o=u.getItemModel(a);o.get("draggable")&&(e.drift=function(e,o){n._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:u.getRawIndex(a),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){n._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move"),o.get("focusNodeAdjacency")&&(e.off("mouseover").on("mouseover",(function(){n._focusAdjacencyDisabled||i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})})),e.off("mouseout").on("mouseout",(function(){n._focusAdjacencyDisabled||i.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t.id})})))})),h.eachItemGraphicEl((function(e,a){h.getItemModel(a).get("focusNodeAdjacency")&&(e.off("mouseover").on("mouseover",(function(){n._focusAdjacencyDisabled||i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex})})),e.off("mouseout").on("mouseout",(function(){n._focusAdjacencyDisabled||i.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t.id})})))})),!this._data&&t.get("animation")&&o.setClipPath(Lp(o.getBoundingRect(),t,(function(){o.removeClipPath()}))),this._data=t.getData()},dispose:function(){},focusNodeAdjacency:function(t,e,i,n){var a=this._model.getData(),o=a.graph,r=n.dataIndex,s=a.getItemModel(r),l=n.edgeDataIndex;if(null!=r||null!=l){var u=o.getNodeByIndex(r),h=o.getEdgeByIndex(l);if(o.eachNode((function(t){Dp(t,fk,.1)})),o.eachEdge((function(t){Dp(t,pk,.1)})),u){Cp(u,fk);var c=s.get("focusNodeAdjacency");"outEdges"===c?f(u.outEdges,(function(t){t.dataIndex<0||(Cp(t,pk),Cp(t.node2,fk))})):"inEdges"===c?f(u.inEdges,(function(t){t.dataIndex<0||(Cp(t,pk),Cp(t.node1,fk))})):"allEdges"===c&&f(u.edges,(function(t){t.dataIndex<0||(Cp(t,pk),Cp(t.node1,fk),Cp(t.node2,fk))}))}h&&(Cp(h,pk),Cp(h.node1,fk),Cp(h.node2,fk))}},unfocusNodeAdjacency:function(t,e,i,n){var a=this._model.getGraph();a.eachNode((function(t){Dp(t,fk)})),a.eachEdge((function(t){Dp(t,pk)}))}}),Ns({type:"dragNode",event:"dragNode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))})),Es((function(t,e,i){t.eachSeriesByType("sankey",(function(t){var i=t.get("nodeWidth"),n=t.get("nodeGap"),a=Pp(t,e);t.layoutInfo=a;var o=a.width,r=a.height,s=t.getGraph(),l=s.nodes,u=s.edges;Op(l),Np(l,u,i,n,o,r,0!==m(l,(function(t){return 0===t.getLayout().value})).length?0:t.get("layoutIterations"),t.get("orient"))}))})),Rs((function(t,e){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph().nodes;if(e.length){var i=1/0,n=-1/0;f(e,(function(t){var e=t.getLayout().value;e<i&&(i=e),e>n&&(n=e)})),f(e,(function(e){var a=new XC({type:"color",mappingMethod:"linear",dataExtent:[i,n],visual:t.get("color")}).mapValueToVisual(e.getLayout().value);e.setVisual("color",a);var o=e.getModel().get("itemStyle.color");null!=o&&e.setVisual("color",o)}))}}))}));var mk={_baseAxisDim:null,getInitialData:function(t,e){var i,n,a=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),r=a.get("type"),s=o.get("type");"category"===r?(t.layout="horizontal",i=a.getOrdinalMeta(),n=!0):"category"===s?(t.layout="vertical",i=o.getOrdinalMeta(),n=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,h=this._baseAxisDim=l[u],c=l[1-u],d=[a,o],p=d[u].get("type"),g=d[1-u].get("type"),m=t.data;if(m&&n){var v=[];f(m,(function(t,e){var i;t.value&&x(t.value)?(i=t.value.slice(),t.value.unshift(e)):x(t)?(i=t.slice(),t.unshift(e)):i=t,v.push(i)})),t.data=v}var y=this.defaultValueDimensions;return WD(this,{coordDimensions:[{name:h,type:Xs(p),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:Xs(g),dimsDef:y.slice()}],dimensionsCount:y.length+1})},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}};c(OI.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}}),mk,!0);var vk=["itemStyle"],yk=["emphasis","itemStyle"],xk=(Ir.extend({type:"boxplot",render:function(t,e,i){var n=t.getData(),a=this.group,o=this._data;this._data||a.removeAll();var r="horizontal"===t.get("layout")?1:0;n.diff(o).add((function(t){if(n.hasValue(t)){var e=$p(n.getItemLayout(t),n,t,r,!0);n.setItemGraphicEl(t,e),a.add(e)}})).update((function(t,e){var i=o.getItemGraphicEl(e);if(n.hasValue(t)){var s=n.getItemLayout(t);i?Kp(s,i,n,t):i=$p(s,n,t,r),a.add(i),n.setItemGraphicEl(t,i)}else a.remove(i)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&a.remove(e)})).execute(),this._data=n},remove:function(t){var e=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl((function(t){t&&e.remove(t)}))},dispose:V}),Pn.extend({type:"boxplotBoxPath",shape:{},buildPath:function(t,e){var i=e.points,n=0;for(t.moveTo(i[n][0],i[n][1]),n++;n<4;n++)t.lineTo(i[n][0],i[n][1]);for(t.closePath();n<i.length;n++)t.moveTo(i[n][0],i[n][1]),n++,t.lineTo(i[n][0],i[n][1])}})),_k=["itemStyle","borderColor"],wk=f;Rs((function(t,e){var i=t.get("color");t.eachRawSeriesByType("boxplot",(function(e){var n=i[e.seriesIndex%i.length],a=e.getData();a.setVisual({legendSymbol:"roundRect",color:e.get(_k)||n}),t.isSeriesFiltered(e)||a.each((function(t){var e=a.getItemModel(t);a.setItemVisual(t,{color:e.get(_k,!0)})}))}))})),Es((function(t){var e=Qp(t);wk(e,(function(t){var e=t.seriesModels;e.length&&(tg(t),wk(e,(function(e,i){eg(e,t.boxOffsetList[i],t.boxWidthList[i])})))}))})),c(OI.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(t,e,i){var n=e.getItemLayout(t);return n&&i.rect(n.brushRect)}}),mk,!0);var bk=["itemStyle"],Sk=["emphasis","itemStyle"],Mk=["color","color0","borderColor","borderColor0"],Ik=(Ir.extend({type:"candlestick",render:function(t,e,i){this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},incrementalPrepareRender:function(t,e,i){this._clear(),this._updateDrawMode(t)},incrementalRender:function(t,e,i,n){this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},_updateDrawMode:function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e^this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},_renderNormal:function(t){var e=t.getData(),i=this._data,n=this.group,a=e.getLayout("isSimpleBox");this._data||n.removeAll(),e.diff(i).add((function(i){if(e.hasValue(i)){var o,r=e.getItemLayout(i);Sa(o=ig(r,0,!0),{shape:{points:r.ends}},t,i),ng(o,e,i,a),n.add(o),e.setItemGraphicEl(i,o)}})).update((function(o,r){var s=i.getItemGraphicEl(r);if(e.hasValue(o)){var l=e.getItemLayout(o);s?ba(s,{shape:{points:l.ends}},t,o):s=ig(l),ng(s,e,o,a),n.add(s),e.setItemGraphicEl(o,s)}else n.remove(s)})).remove((function(t){var e=i.getItemGraphicEl(t);e&&n.remove(e)})).execute(),this._data=e},_renderLarge:function(t){this._clear(),og(t,this.group)},_incrementalRenderNormal:function(t,e){for(var i,n=e.getData(),a=n.getLayout("isSimpleBox");null!=(i=t.next());){var o;ng(o=ig(n.getItemLayout(i)),n,i,a),o.incremental=!0,this.group.add(o)}},_incrementalRenderLarge:function(t,e){og(e,this.group,!0)},remove:function(t){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:V}),Pn.extend({type:"normalCandlestickBox",shape:{},buildPath:function(t,e){var i=e.points;this.__simpleBox?(t.moveTo(i[4][0],i[4][1]),t.lineTo(i[6][0],i[6][1])):(t.moveTo(i[0][0],i[0][1]),t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]),t.lineTo(i[3][0],i[3][1]),t.closePath(),t.moveTo(i[4][0],i[4][1]),t.lineTo(i[5][0],i[5][1]),t.moveTo(i[6][0],i[6][1]),t.lineTo(i[7][0],i[7][1]))}})),Tk=Pn.extend({type:"largeCandlestickBox",shape:{},buildPath:function(t,e){for(var i=e.points,n=0;n<i.length;)if(this.__sign===i[n++]){var a=i[n++];t.moveTo(a,i[n++]),t.lineTo(a,i[n++])}else n+=3}}),Ak=["itemStyle","borderColor"],Dk=["itemStyle","borderColor0"],Ck=["itemStyle","color"],Lk=["itemStyle","color0"],kk={seriesType:"candlestick",plan:zI(),performRawSeries:!0,reset:function(t,e){function i(t,e){return e.get(t>0?Ck:Lk)}function n(t,e){return e.get(t>0?Ak:Dk)}var a=t.getData(),o=t.pipelineContext.large;if(a.setVisual({legendSymbol:"roundRect",colorP:i(1,t),colorN:i(-1,t),borderColorP:n(1,t),borderColorN:n(-1,t)}),!e.isSeriesFiltered(t))return!o&&{progress:function(t,e){for(var a;null!=(a=t.next());){var o=e.getItemModel(a),r=e.getItemLayout(a).sign;e.setItemVisual(a,{color:i(r,o),borderColor:n(r,o)})}}}}},Pk="undefined"!=typeof Float32Array?Float32Array:Array,Nk={seriesType:"candlestick",plan:zI(),reset:function(t){var e=t.coordinateSystem,i=t.getData(),n=lg(t,i),a=0,o=1,r=["x","y"],s=i.mapDimension(r[a]),l=i.mapDimension(r[o],!0),u=l[0],h=l[1],c=l[2],d=l[3];if(i.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),!(null==s||l.length<4))return{progress:t.pipelineContext.large?function(t,i){for(var n,r,l=new Pk(5*t.count),f=0,p=[],g=[];null!=(r=t.next());){var m=i.get(s,r),v=i.get(u,r),y=i.get(h,r),x=i.get(c,r),_=i.get(d,r);isNaN(m)||isNaN(x)||isNaN(_)?(l[f++]=NaN,f+=4):(l[f++]=sg(i,r,v,y,h),p[a]=m,p[o]=x,n=e.dataToPoint(p,null,g),l[f++]=n?n[0]:NaN,l[f++]=n?n[1]:NaN,p[o]=_,n=e.dataToPoint(p,null,g),l[f++]=n?n[1]:NaN)}i.setLayout("largePoints",l)}:function(t,i){function r(t,i){var n=[];return n[a]=i,n[o]=t,isNaN(i)||isNaN(t)?[NaN,NaN]:e.dataToPoint(n)}function l(t,e,i){var o=e.slice(),r=e.slice();o[a]=qn(o[a]+n/2,1,!1),r[a]=qn(r[a]-n/2,1,!0),i?t.push(o,r):t.push(r,o)}function f(t){return t[a]=qn(t[a],1),t}for(var p;null!=(p=t.next());){var g=i.get(s,p),m=i.get(u,p),v=i.get(h,p),y=i.get(c,p),x=i.get(d,p),_=Math.min(m,v),w=Math.max(m,v),b=r(_,g),S=r(w,g),M=r(y,g),I=r(x,g),T=[];l(T,S,0),l(T,b,1),T.push(f(I),f(S),f(M),f(b)),i.setItemLayout(p,{sign:sg(i,p,m,v,h),initBaseline:m>v?S[o]:b[o],ends:T,brushRect:function(t,e,i){var s=r(t,i),l=r(e,i);return s[a]-=n/2,l[a]-=n/2,{x:s[0],y:s[1],width:o?n:l[0]-s[0],height:o?l[1]-s[1]:n}}(y,x,g)})}}}}};ks((function(t){t&&x(t.series)&&f(t.series,(function(t){b(t)&&"k"===t.type&&(t.type="candlestick")}))})),Rs(kk),Es(Nk),OI.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(t,e){return fl(this.getSource(),this)},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});var Ok=cg.prototype;Ok.stopEffectAnimation=function(){this.childAt(1).removeAll()},Ok.startEffectAnimation=function(t){for(var e=t.symbolType,i=t.color,n=this.childAt(1),a=0;a<3;a++){var o=Xl(e,-1,-1,2,2,i);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var r=-a/3*t.period+t.effectOffset;o.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(r).start(),o.animateStyle(!0).when(t.period,{opacity:0}).delay(r).start(),n.add(o)}hg(n,t)},Ok.updateEffectAnimation=function(t){for(var e=this._effectCfg,i=this.childAt(1),n=["symbolType","period","rippleScale"],a=0;a<n.length;a++){var o=n[a];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}hg(i,t)},Ok.highlight=function(){this.trigger("emphasis")},Ok.downplay=function(){this.trigger("normal")},Ok.updateData=function(t,e){var i=t.hostModel;this.childAt(0).updateData(t,e);var n=this.childAt(1),a=t.getItemModel(e),o=t.getItemVisual(e,"symbol"),r=ug(t.getItemVisual(e,"symbolSize")),s=t.getItemVisual(e,"color");n.attr("scale",r),n.traverse((function(t){t.attr({fill:s})}));var l=a.getShallow("symbolOffset");if(l){var u=n.position;u[0]=Ra(l[0],r[0]),u[1]=Ra(l[1],r[1])}n.rotation=(a.getShallow("symbolRotate")||0)*Math.PI/180||0;var h={};if(h.showEffectOn=i.get("showEffectOn"),h.rippleScale=a.get("rippleEffect.scale"),h.brushType=a.get("rippleEffect.brushType"),h.period=1e3*a.get("rippleEffect.period"),h.effectOffset=e/t.count(),h.z=a.getShallow("z")||0,h.zlevel=a.getShallow("zlevel")||0,h.symbolType=o,h.color=s,this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===h.showEffectOn)this._effectCfg?this.updateEffectAnimation(h):this.startEffectAnimation(h),this._effectCfg=h;else{this._effectCfg=null,this.stopEffectAnimation();var c=this.childAt(0),d=function(){c.highlight(),"render"!==h.showEffectOn&&this.startEffectAnimation(h)},f=function(){c.downplay(),"render"!==h.showEffectOn&&this.stopEffectAnimation()};this.on("mouseover",d,this).on("mouseout",f,this).on("emphasis",d,this).on("normal",f,this)}this._effectCfg=h},Ok.fadeOut=function(t){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),t&&t()},h(cg,Uw),Ws({type:"effectScatter",init:function(){this._symbolDraw=new Mu(cg)},render:function(t,e,i){var n=t.getData(),a=this._symbolDraw;a.updateData(n),this.group.add(a.group)},updateTransform:function(t,e,i){var n=t.getData();this.group.dirty();var a=cD().reset(t);a.progress&&a.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_updateGroupTransform:function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=It(e.getRoamTransform()),this.group.decomposeTransform())},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(e)},dispose:function(){}}),Rs(hD("effectScatter","circle")),Es(cD("effectScatter"));var Ek="undefined"==typeof Uint32Array?Array:Uint32Array,Rk="undefined"==typeof Float64Array?Array:Float64Array,zk=OI.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(t){t.data=t.data||[],dg(t);var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),zk.superApply(this,"init",arguments)},mergeOption:function(t){if(t.data=t.data||[],dg(t),t.data){var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count))}zk.superApply(this,"mergeOption",arguments)},appendData:function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=B(this._flatCoords,e.flatCoords),this._flatCoordsOffset=B(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},_getCoordsFromItemModel:function(t){var e=this.getData().getItemModel(t);return e.option instanceof Array?e.option:e.getShallow("coords")},getLineCoordsCount:function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},getLineCoords:function(t,e){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[2*t],n=this._flatCoordsOffset[2*t+1],a=0;a<n;a++)e[a]=e[a]||[],e[a][0]=this._flatCoords[i+2*a],e[a][1]=this._flatCoords[i+2*a+1];return n}var o=this._getCoordsFromItemModel(t);for(a=0;a<o.length;a++)e[a]=e[a]||[],e[a][0]=o[a][0],e[a][1]=o[a][1];return o.length},_processFlatCoordsArray:function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),"number"==typeof t[0]){for(var i=t.length,n=new Ek(i),a=new Rk(i),o=0,r=0,s=0,l=0;l<i;){s++;var u=t[l++];n[r++]=o+e,n[r++]=u;for(var h=0;h<u;h++){var c=t[l++],d=t[l++];a[o++]=c,a[o++]=d}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,r),flatCoords:a,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},getInitialData:function(t,e){var i=new eA(["value"],this);return i.hasItemOption=!1,i.initData(t.data,[],(function(t,e,n,a){if(t instanceof Array)return NaN;i.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[a]:o:void 0})),i},formatTooltip:function(t){var e=this.getData().getItemModel(t),i=e.get("name");if(i)return i;var n=e.get("fromName"),a=e.get("toName"),o=[];return null!=n&&o.push(n),null!=a&&o.push(a),Qa(o.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},getProgressiveThreshold:function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),Bk=fg.prototype;Bk.createLine=function(t,e,i){return new Jd(t,e,i)},Bk._updateEffectSymbol=function(t,e){var i=t.getItemModel(e).getModel("effect"),n=i.get("symbolSize"),a=i.get("symbol");x(n)||(n=[n,n]);var o=i.get("color")||t.getItemVisual(e,"color"),r=this.childAt(1);this._symbolType!==a&&(this.remove(r),(r=Xl(a,-.5,-.5,1,1,o)).z2=100,r.culling=!0,this.add(r)),r&&(r.setStyle("shadowColor",o),r.setStyle(i.getItemStyle(["color"])),r.attr("scale",n),r.setColor(o),r.attr("scale",n),this._symbolType=a,this._updateEffectAnimation(t,i,e))},Bk._updateEffectAnimation=function(t,e,i){var n=this.childAt(1);if(n){var a=this,o=t.getItemLayout(i),r=1e3*e.get("period"),s=e.get("loop"),l=e.get("constantSpeed"),u=A(e.get("delay"),(function(e){return e/t.count()*r/3})),h="function"==typeof u;if(n.ignore=!0,this.updateAnimationPoints(n,o),l>0&&(r=this.getLineLength(n)/l*1e3),r!==this._period||s!==this._loop){n.stopAnimation();var c=u;h&&(c=u(i)),n.__t>0&&(c=-r*n.__t),n.__t=0;var d=n.animate("",s).when(r,{__t:1}).delay(c).during((function(){a.updateSymbolPosition(n)}));s||d.done((function(){a.remove(n)})),d.start()}this._period=r,this._loop=s}},Bk.getLineLength=function(t){return ew(t.__p1,t.__cp1)+ew(t.__cp1,t.__p2)},Bk.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},Bk.updateData=function(t,e,i){this.childAt(0).updateData(t,e,i),this._updateEffectSymbol(t,e)},Bk.updateSymbolPosition=function(t){var e=t.__p1,i=t.__p2,n=t.__cp1,a=t.__t,o=t.position,r=sn,s=ln;o[0]=r(e[0],n[0],i[0],a),o[1]=r(e[1],n[1],i[1],a);var l=s(e[0],n[0],i[0],a),u=s(e[1],n[1],i[1],a);t.rotation=-Math.atan2(u,l)-Math.PI/2,t.ignore=!1},Bk.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var i=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,i,e)},h(fg,Uw);var Vk=pg.prototype;Vk._createPolyline=function(t,e,i){var n=t.getItemLayout(e),a=new aM({shape:{points:n}});this.add(a),this._updateCommonStl(t,e,i)},Vk.updateData=function(t,e,i){var n=t.hostModel;ba(this.childAt(0),{shape:{points:t.getItemLayout(e)}},n,e),this._updateCommonStl(t,e,i)},Vk._updateCommonStl=function(t,e,i){var n=this.childAt(0),a=t.getItemModel(e),o=t.getItemVisual(e,"color"),r=i&&i.lineStyle,l=i&&i.hoverLineStyle;i&&!t.hasItemOption||(r=a.getModel("lineStyle").getLineStyle(),l=a.getModel("emphasis.lineStyle").getLineStyle()),n.useStyle(s({strokeNoScale:!0,fill:"none",stroke:o},r)),n.hoverStyle=l,ha(this)},Vk.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},h(pg,Uw);var Fk=gg.prototype;Fk.createLine=function(t,e,i){return new pg(t,e,i)},Fk.updateAnimationPoints=function(t,e){this._points=e;for(var i=[0],n=0,a=1;a<e.length;a++){var o=e[a-1],r=e[a];n+=ew(o,r),i.push(n)}if(0!==n){for(a=0;a<i.length;a++)i[a]/=n;this._offsets=i,this._length=n}},Fk.getLineLength=function(t){return this._length},Fk.updateSymbolPosition=function(t){var e=t.__t,i=this._points,n=this._offsets,a=i.length;if(n){var o=this._lastFrame;if(e<this._lastFramePercent){for(r=Math.min(o+1,a-1);r>=0&&!(n[r]<=e);r--);r=Math.min(r,a-2)}else{for(var r=o;r<a&&!(n[r]>e);r++);r=Math.min(r-1,a-2)}Q(t.position,i[r],i[r+1],(e-n[r])/(n[r+1]-n[r]));var s=i[r+1][0]-i[r][0],l=i[r+1][1]-i[r][1];t.rotation=-Math.atan2(l,s)-Math.PI/2,this._lastFrame=r,this._lastFramePercent=e,t.ignore=!1}},h(gg,fg);var Gk=Wn({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(t,e){var i=e.segs,n=e.curveness;if(e.polyline)for(r=0;r<i.length;){var a=i[r++];if(a>0){t.moveTo(i[r++],i[r++]);for(var o=1;o<a;o++)t.lineTo(i[r++],i[r++])}}else for(var r=0;r<i.length;){var s=i[r++],l=i[r++],u=i[r++],h=i[r++];if(t.moveTo(s,l),n>0){var c=(s+u)/2-(l-h)*n,d=(l+h)/2-(u-s)*n;t.quadraticCurveTo(c,d,u,h)}else t.lineTo(u,h)}},findDataIndex:function(t,e){var i=this.shape,n=i.segs,a=i.curveness;if(i.polyline)for(var o=0,r=0;r<n.length;){var s=n[r++];if(s>0)for(var l=n[r++],u=n[r++],h=1;h<s;h++)if(yn(l,u,c=n[r++],d=n[r++]))return o;o++}else for(o=0,r=0;r<n.length;){l=n[r++],u=n[r++];var c=n[r++],d=n[r++];if(a>0){if(_n(l,u,(l+c)/2-(u-d)*a,(u+d)/2-(c-l)*a,c,d))return o}else if(yn(l,u,c,d))return o;o++}return-1}}),Wk=mg.prototype;Wk.isPersistent=function(){return!this._incremental},Wk.updateData=function(t){this.group.removeAll();var e=new Gk({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},Wk.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new Gn({silent:!0})),this.group.add(this._incremental)):this._incremental=null},Wk.incrementalUpdate=function(t,e){var i=new Gk;i.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(i,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(i,!0):(i.rectHover=!0,i.cursor="default",i.__startIndex=t.start,this.group.add(i))},Wk.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},Wk._setCommon=function(t,e,i){var n=e.hostModel;t.setShape({polyline:n.get("polyline"),curveness:n.get("lineStyle.curveness")}),t.useStyle(n.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var a=e.getVisual("color");a&&t.setStyle("stroke",a),t.setStyle("fill"),i||(t.seriesIndex=n.seriesIndex,t.on("mousemove",(function(e){t.dataIndex=null;var i=t.findDataIndex(e.offsetX,e.offsetY);i>0&&(t.dataIndex=i+t.__startIndex)})))},Wk._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()};var Hk={seriesType:"lines",plan:zI(),reset:function(t){var e=t.coordinateSystem,i=t.get("polyline"),n=t.pipelineContext.large;return{progress:function(a,o){var r=[];if(n){var s,l=a.end-a.start;if(i){for(var u=0,h=a.start;h<a.end;h++)u+=t.getLineCoordsCount(h);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var c=0,d=[];for(h=a.start;h<a.end;h++){g=t.getLineCoords(h,r),i&&(s[c++]=g);for(var f=0;f<g;f++)d=e.dataToPoint(r[f],!1,d),s[c++]=d[0],s[c++]=d[1]}o.setLayout("linesPoints",s)}else for(h=a.start;h<a.end;h++){var p=o.getItemModel(h),g=t.getLineCoords(h,r),m=[];if(i)for(var v=0;v<g;v++)m.push(e.dataToPoint(r[v]));else{m[0]=e.dataToPoint(r[0]),m[1]=e.dataToPoint(r[1]);var y=p.get("lineStyle.curveness");+y&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*y,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*y])}o.setItemLayout(h,m)}}}}};Ws({type:"lines",init:function(){},render:function(t,e,i){var n=t.getData(),a=this._updateLineDraw(n,t),o=t.get("zlevel"),r=t.get("effect.trailLength"),s=i.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&r&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(r/10+.9,1),0)})),a.updateData(n),this._lastZlevel=o,this._finished=!0},incrementalPrepareRender:function(t,e,i){var n=t.getData();this._updateLineDraw(n,t).incrementalPrepareUpdate(n),this._clearLayer(i),this._finished=!1},incrementalRender:function(t,e,i){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},updateTransform:function(t,e,i){var n=t.getData(),a=t.pipelineContext;if(!this._finished||a.large||a.progressiveRender)return{update:!0};var o=Hk.reset(t);o.progress&&o.progress({start:0,end:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(i)},_updateLineDraw:function(t,e){var i=this._lineDraw,n=this._showEffect(e),a=!!e.get("polyline"),o=e.pipelineContext.large;return i&&n===this._hasEffet&&a===this._isPolyline&&o===this._isLargeDraw||(i&&i.remove(),i=this._lineDraw=o?new mg:new Qd(a?n?gg:pg:n?fg:Jd),this._hasEffet=n,this._isPolyline=a,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},_showEffect:function(t){return!!t.get("effect.show")},_clearLayer:function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},dispose:function(){}});var Uk="lineStyle.opacity".split("."),Zk={seriesType:"lines",reset:function(t,e,i){var n=vg(t.get("symbol")),a=vg(t.get("symbolSize")),o=t.getData();return o.setVisual("fromSymbol",n&&n[0]),o.setVisual("toSymbol",n&&n[1]),o.setVisual("fromSymbolSize",a&&a[0]),o.setVisual("toSymbolSize",a&&a[1]),o.setVisual("opacity",t.get(Uk)),{dataEach:o.hasItemOption?function(t,e){var i=t.getItemModel(e),n=vg(i.getShallow("symbol",!0)),a=vg(i.getShallow("symbolSize",!0)),o=i.get(Uk);n[0]&&t.setItemVisual(e,"fromSymbol",n[0]),n[1]&&t.setItemVisual(e,"toSymbol",n[1]),a[0]&&t.setItemVisual(e,"fromSymbolSize",a[0]),a[1]&&t.setItemVisual(e,"toSymbolSize",a[1]),t.setItemVisual(e,"opacity",o)}:null}}};Es(Hk),Rs(Zk),OI.extend({type:"series.heatmap",getInitialData:function(t,e){return fl(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var t=Vo.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}}),yg.prototype={update:function(t,e,i,n,a,o){var r=this._getBrush(),s=this._getGradient(t,a,"inRange"),l=this._getGradient(t,a,"outOfRange"),u=this.pointSize+this.blurSize,h=this.canvas,c=h.getContext("2d"),d=t.length;h.width=e,h.height=i;for(var f=0;f<d;++f){var p=t[f],g=p[0],m=p[1],v=n(p[2]);c.globalAlpha=v,c.drawImage(r,g-u,m-u)}if(!h.width||!h.height)return h;for(var y=c.getImageData(0,0,h.width,h.height),x=y.data,_=0,w=x.length,b=this.minOpacity,S=this.maxOpacity-b;_<w;){v=x[_+3]/256;var M=4*Math.floor(255*v);if(v>0){var I=o(v)?s:l;v>0&&(v=v*S+b),x[_++]=I[M],x[_++]=I[M+1],x[_++]=I[M+2],x[_++]=I[M+3]*v*256}else _+=4}return c.putImageData(y,0,0),h},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=Y_()),e=this.pointSize+this.blurSize,i=2*e;t.width=i,t.height=i;var n=t.getContext("2d");return n.clearRect(0,0,i,i),n.shadowOffsetX=i,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-e,e,this.pointSize,0,2*Math.PI,!0),n.closePath(),n.fill(),t},_getGradient:function(t,e,i){for(var n=this._gradientPixels,a=n[i]||(n[i]=new Uint8ClampedArray(1024)),o=[0,0,0,0],r=0,s=0;s<256;s++)e[i](s/255,!0,o),a[r++]=o[0],a[r++]=o[1],a[r++]=o[2],a[r++]=o[3];return a}},Ws({type:"heatmap",render:function(t,e,i){var n;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(i){i===t&&(n=e)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var a=t.coordinateSystem;"cartesian2d"===a.type||"calendar"===a.type?this._renderOnCartesianAndCalendar(t,i,0,t.getData().count()):wg(a)&&this._renderOnGeo(a,t,n,i)},incrementalPrepareRender:function(t,e,i){this.group.removeAll()},incrementalRender:function(t,e,i,n){e.coordinateSystem&&this._renderOnCartesianAndCalendar(e,n,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,e,i,n,a){var o,s,l=t.coordinateSystem;if("cartesian2d"===l.type){var u=l.getAxis("x"),h=l.getAxis("y");o=u.getBandWidth(),s=h.getBandWidth()}for(var c=this.group,d=t.getData(),f=t.getModel("itemStyle").getItemStyle(["color"]),p=t.getModel("emphasis.itemStyle").getItemStyle(),g=t.getModel("label"),m=t.getModel("emphasis.label"),v=l.type,y="cartesian2d"===v?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],x=i;x<n;x++){var _;if("cartesian2d"===v){if(isNaN(d.get(y[2],x)))continue;var w=l.dataToPoint([d.get(y[0],x),d.get(y[1],x)]);_=new oM({shape:{x:w[0]-o/2,y:w[1]-s/2,width:o,height:s},style:{fill:d.getItemVisual(x,"color"),opacity:d.getItemVisual(x,"opacity")}})}else{if(isNaN(d.get(y[1],x)))continue;_=new oM({z2:1,shape:l.dataToRect([d.get(y[0],x)]).contentShape,style:{fill:d.getItemVisual(x,"color"),opacity:d.getItemVisual(x,"opacity")}})}var b=d.getItemModel(x);d.hasItemOption&&(f=b.getModel("itemStyle").getItemStyle(["color"]),p=b.getModel("emphasis.itemStyle").getItemStyle(),g=b.getModel("label"),m=b.getModel("emphasis.label"));var S=t.getRawValue(x),M="-";S&&null!=S[2]&&(M=S[2]),da(f,p,g,m,{labelFetcher:t,labelDataIndex:x,defaultText:M,isRectText:!0}),_.setStyle(f),ha(_,d.hasItemOption?p:r({},p)),_.incremental=a,a&&(_.useHoverLayer=!0),c.add(_),d.setItemGraphicEl(x,_)}},_renderOnGeo:function(t,e,i,n){var a=i.targetVisuals.inRange,o=i.targetVisuals.outOfRange,r=e.getData(),s=this._hmLayer||this._hmLayer||new yg;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var h=Math.max(l.x,0),c=Math.max(l.y,0),d=Math.min(l.width+l.x,n.getWidth()),f=Math.min(l.height+l.y,n.getHeight()),p=d-h,g=f-c,m=[r.mapDimension("lng"),r.mapDimension("lat"),r.mapDimension("value")],v=r.mapArray(m,(function(e,i,n){var a=t.dataToPoint([e,i]);return a[0]-=h,a[1]-=c,a.push(n),a})),y=i.getExtent(),x="visualMap.continuous"===i.type?_g(y,i.option.range):xg(y,i.getPieceList(),i.option.selected);s.update(v,p,g,a.color.getNormalizer(),{inRange:a.color.getColorMapper(),outOfRange:o.color.getColorMapper()},x);var _=new ci({style:{width:p,height:g,x:h,y:c,image:s.canvas},silent:!0});this.group.add(_)},dispose:function(){}});var jk=ED.extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(t){return t.stack=null,jk.superApply(this,"getInitialData",arguments)}}),Xk=["itemStyle","borderWidth"],Yk=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],qk=new $S;Ws({type:"pictorialBar",render:function(t,e,i){var n=this.group,a=t.getData(),o=this._data,r=t.coordinateSystem,s=!!r.getBaseAxis().isHorizontal(),l=r.grid.getRect(),u={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:r,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:Yk[+s],categoryDim:Yk[1-s]};return a.diff(o).add((function(t){if(a.hasValue(t)){var e=Ng(a,t),i=bg(a,t,e,u),o=zg(a,u,i);a.setItemGraphicEl(t,o),n.add(o),Hg(o,u,i)}})).update((function(t,e){var i=o.getItemGraphicEl(e);if(a.hasValue(t)){var r=Ng(a,t),s=bg(a,t,r,u),l=Fg(a,s);i&&l!==i.__pictorialShapeStr&&(n.remove(i),a.setItemGraphicEl(t,null),i=null),i?Bg(i,u,s):i=zg(a,u,s,!0),a.setItemGraphicEl(t,i),i.__pictorialSymbolMeta=s,n.add(i),Hg(i,u,s)}else n.remove(i)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&Vg(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=a,this.group},dispose:V,remove:function(t,e){var i=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl((function(e){Vg(n,e.dataIndex,t,e)})):i.removeAll()}}),Es(y(Pl,"pictorialBar")),Rs(hD("pictorialBar","roundRect"));var $k=function(t,e,i,n,a){HA.call(this,t,e,i),this.type=n||"value",this.position=a||"bottom",this.orient=null};$k.prototype={constructor:$k,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},h($k,HA),Zg.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:Zg,_init:function(t,e,i){var n=this.dimension,a=new $k(n,Fl(t),[0,0],t.get("type"),t.get("position")),o="category"===a.type;a.onBand=o&&t.get("boundaryGap"),a.inverse=t.get("inverse"),a.orient=t.get("orient"),t.axis=a,a.model=t,a.coordinateSystem=this,this._axis=a},update:function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();f(e.mapDimension(this.dimension,!0),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),Vl(this._axis.scale,this._axis.model)}}),this)},resize:function(t,e){this._rect=lo({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,i=e.isHorizontal(),n=i?[0,t.width]:[0,t.height],a=e.reverse?1:0;e.setExtent(n[a],n[1-a]),this._updateAxisTransform(e,i?t.x:t.y)},_updateAxisTransform:function(t,e){var i=t.getExtent(),n=i[0]+i[1],a=t.isHorizontal();t.toGlobalCoord=a?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord=a?function(t){return t-e}:function(t){return n-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),i=this.getAxis();return"horizontal"===i.orient?i.contain(i.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:i.contain(i.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),i=this.getRect(),n=[],a="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),n[a]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-a]=0===a?i.y+i.height/2:i.x+i.width/2,n}},Vo.register("single",{create:function(t,e){var i=[];return t.eachComponent("singleAxis",(function(n,a){var o=new Zg(n,t,e);o.name="single_"+a,o.resize(n,e),n.coordinateSystem=o,i.push(o)})),t.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=i&&i.coordinateSystem}})),i},dimensions:Zg.prototype.dimensions});var Kk=["axisLine","axisTickLabel","axisName"],Jk=LD.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,i,n){var a=this.group;a.removeAll();var o=jg(t),r=new ID(t,o);f(Kk,r.add,r),a.add(r.getGroup()),t.get("splitLine.show")&&this._splitLine(t),Jk.superCall(this,"render",t,e,i,n)},_splitLine:function(t){var e=t.axis;if(!e.scale.isBlank()){var i=t.getModel("splitLine"),n=i.getModel("lineStyle"),a=n.get("width"),o=n.get("color");o=o instanceof Array?o:[o];for(var r=t.coordinateSystem.getRect(),s=e.isHorizontal(),l=[],u=0,h=e.getTicksCoords({tickModel:i}),c=[],d=[],f=0;f<h.length;++f){var p=e.toGlobalCoord(h[f].coord);s?(c[0]=p,c[1]=r.y,d[0]=p,d[1]=r.y+r.height):(c[0]=r.x,c[1]=p,d[0]=r.x+r.width,d[1]=p);var g=u++%o.length;l[g]=l[g]||[],l[g].push(new rM(Xn({shape:{x1:c[0],y1:c[1],x2:d[0],y2:d[1]},style:{lineWidth:a},silent:!0})))}for(f=0;f<l.length;++f)this.group.add(xM(l[f],{style:{stroke:o[f%o.length],lineDash:n.getLineDash(a),lineWidth:a},silent:!0}))}}}),Qk=YM.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),tP={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:2,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:2}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};a(Qk.prototype,CA),xD("single",Qk,(function(t,e){return e.type||(e.data?"category":"value")}),tP);var eP=function(t,e){var i,n=[],a=t.seriesIndex;if(null==a||!(i=e.getSeriesByIndex(a)))return{point:[]};var o=i.getData(),r=Bi(o,t);if(null==r||r<0||x(r))return{point:[]};var s=o.getItemGraphicEl(r),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(r)||[];else if(l&&l.dataToPoint)n=l.dataToPoint(o.getValues(p(l.dimensions,(function(t){return o.mapDimension(t)})),r,!0))||[];else if(s){var u=s.getBoundingRect().clone();u.applyTransform(s.transform),n=[u.x+u.width/2,u.y+u.height/2]}return{point:n,el:s}},iP=f,nP=y,aP=Vi(),oP=(Vs({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}}),Vi()),rP=f,sP=Fs({type:"axisPointer",render:function(t,e,i){var n=e.getComponent("tooltip"),a=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";nm("axisPointer",i,(function(t,e,i){"none"!==a&&("leave"===t||a.indexOf(t)>=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},remove:function(t,e){um(e.getZr(),"axisPointer"),sP.superApply(this._model,"remove",arguments)},dispose:function(t,e){um("axisPointer",e),sP.superApply(this._model,"dispose",arguments)}}),lP=Vi(),uP=n,hP=v;(hm.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,i,n){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,n||this._lastValue!==a||this._lastStatus!==o){this._lastValue=a,this._lastStatus=o;var r=this._group,s=this._handle;if(!o||"hide"===o)return r&&r.hide(),void(s&&s.hide());r&&r.show(),s&&s.show();var l={};this.makeElOption(l,a,t,e,i);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(r){var c=y(cm,e,h);this.updatePointerEl(r,l,c,e),this.updateLabelEl(r,l,c,e)}else r=this._group=new Uw,this.createPointerEl(r,l,t,e),this.createLabelEl(r,l,t,e),i.getZr().add(r);gm(r,e,!0),this._renderHandle(a)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var i=e.get("animation"),n=t.axis,a="category"===n.type,o=e.get("snap");if(!o&&!a)return!1;if("auto"===i||null==i){var r=this.animationThreshold;if(a&&n.getBandWidth()>r)return!0;if(o){var s=_h(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/s>r}return!1}return!0===i},makeElOption:function(t,e,i,n,a){},createPointerEl:function(t,e,i,n){var a=e.pointer;if(a){var o=lP(t).pointerEl=new bM[a.type](uP(e.pointer));t.add(o)}},createLabelEl:function(t,e,i,n){if(e.label){var a=lP(t).labelEl=new oM(uP(e.label));t.add(a),fm(a,n)}},updatePointerEl:function(t,e,i){var n=lP(t).pointerEl;n&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,i,n){var a=lP(t).labelEl;a&&(a.setStyle(e.label.style),i(a,{shape:e.label.shape,position:e.label.position}),fm(a,n))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e,i=this._axisPointerModel,n=this._api.getZr(),a=this._handle,o=i.getModel("handle"),r=i.get("status");if(!o.get("show")||!r||"hide"===r)return a&&n.remove(a),void(this._handle=null);this._handle||(e=!0,a=this._handle=Ca(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){lw(t.event)},onmousedown:hP(this._onHandleDragMove,this,0,0),drift:hP(this._onHandleDragMove,this),ondragend:hP(this._onHandleDragEnd,this)}),n.add(a)),gm(a,i,!1);var s=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];a.setStyle(o.getItemStyle(null,s));var l=o.get("size");x(l)||(l=[l,l]),a.attr("scale",[l[0]/2,l[1]/2]),kr(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},_moveHandleToValue:function(t,e){cm(this._axisPointerModel,!e&&this._moveAnimation,this._handle,pm(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(pm(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(pm(n)),lP(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},_onHandleDragEnd:function(t){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}}).constructor=hm,Xi(hm);var cP=hm.extend({makeElOption:function(t,e,i,n,a){var o=i.axis,r=o.grid,s=n.get("type"),l=Im(r,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var h=mm(n),c=dP[s](o,u,l,h);c.style=h,t.graphicKey=c.type,t.pointer=c}wm(e,t,Th(r.model,i),i,n,a)},getHandleTransform:function(t,e,i){var n=Th(e.axis.grid.model,e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:_m(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i,n){var a=i.axis,o=a.grid,r=a.getGlobalExtent(!0),s=Im(o,a).getOtherAxis(a).getGlobalExtent(),l="x"===a.dim?0:1,u=t.position;u[l]+=e[l],u[l]=Math.min(r[1],u[l]),u[l]=Math.max(r[0],u[l]);var h=(s[1]+s[0])/2,c=[h,h];c[l]=u[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{position:u,rotation:t.rotation,cursorPoint:c,tooltipOption:d[l]}}}),dP={line:function(t,e,i,n){var a=bm([e,i[0]],[e,i[1]],Tm(t));return Xn({shape:a,style:n}),{type:"Line",shape:a}},shadow:function(t,e,i,n){var a=Math.max(1,t.getBandWidth()),o=i[1]-i[0];return{type:"Rect",shape:Sm([e-a/2,i[0]],[a,o],Tm(t))}}};LD.registerAxisPointerClass("CartesianAxisPointer",cP),ks((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!x(e)&&(t.axisPointer.link=[e])}})),Ps(IT.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=fh(t,e)})),Ns({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},(function(t,e,i){var n=t.currTrigger,a=[t.x,t.y],o=t,r=t.dispatchAction||v(i.dispatchAction,i),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){im(a)&&(a=eP({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=im(a),u=o.axesInfo,h=s.axesInfo,c="leave"===n||im(a),d={},f={},p={list:[],map:{}},g={showPointer:nP(qg,f),showTooltip:nP($g,p)};iP(s.coordSysMap,(function(t,e){var i=l||t.containPoint(a);iP(s.coordSysAxesInfo[e],(function(t,e){var n=t.axis,o=tm(u,t);if(!c&&i&&(!u||o)){var r=o&&o.value;null!=r||l||(r=n.pointToData(a)),null!=r&&Xg(t,r,g,!1,d)}}))}));var m={};return iP(h,(function(t,e){var i=t.linkGroup;i&&!f[e]&&iP(i.axesInfo,(function(e,n){var a=f[n];if(e!==t&&a){var o=a.value;i.mapper&&(o=t.axis.scale.parse(i.mapper(o,em(e),em(t)))),m[t.key]=o}}))})),iP(m,(function(t,e){Xg(h[e],t,g,!0,d)})),Kg(f,h,d),Jg(p,a,t,r),Qg(h,0,i),d}}));var fP=["x","y"],pP=["width","height"],gP=hm.extend({makeElOption:function(t,e,i,n,a){var o=i.axis,r=o.coordinateSystem,s=Dm(r,1-Am(o)),l=r.dataToPoint(e)[0],u=n.get("type");if(u&&"none"!==u){var h=mm(n),c=mP[u](o,l,s,h);c.style=h,t.graphicKey=c.type,t.pointer=c}wm(e,t,jg(i),i,n,a)},getHandleTransform:function(t,e,i){var n=jg(e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:_m(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i,n){var a=i.axis,o=a.coordinateSystem,r=Am(a),s=Dm(o,r),l=t.position;l[r]+=e[r],l[r]=Math.min(s[1],l[r]),l[r]=Math.max(s[0],l[r]);var u=Dm(o,1-r),h=(u[1]+u[0])/2,c=[h,h];return c[r]=l[r],{position:l,rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}}}),mP={line:function(t,e,i,n){var a=bm([e,i[0]],[e,i[1]],Am(t));return Xn({shape:a,style:n}),{type:"Line",shape:a}},shadow:function(t,e,i,n){var a=t.getBandWidth(),o=i[1]-i[0];return{type:"Rect",shape:Sm([e-a/2,i[0]],[a,o],Am(t))}}};LD.registerAxisPointerClass("SingleAxisPointer",gP),Fs({type:"single"});var vP=OI.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){vP.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(t){for(var e=t.length,i=p(kp().key((function(t){return t[2]})).entries(t),(function(t){return{name:t.key,dataList:t.values}})),n=i.length,a=-1,o=-1,r=0;r<n;++r){var s=i[r].dataList.length;s>a&&(a=s,o=r)}for(var l=0;l<n;++l)if(l!==o)for(var u=i[l].name,h=0;h<a;++h){for(var c=i[o].dataList[h][0],d=i[l].dataList.length,f=-1,g=0;g<d;++g)if(i[l].dataList[g][0]===c){f=g;break}-1===f&&(t[e]=[],t[e][0]=c,t[e][1]=0,t[e][2]=u,e++)}return t},getInitialData:function(t,e){for(var i=e.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0].get("type"),n=m(t.data,(function(t){return void 0!==t[2]})),a=this.fixData(n||[]),o=[],r=this.nameMap=z(),s=0,l=0;l<a.length;++l)o.push(a[l][2]),r.get(a[l][2])||(r.set(a[l][2],s),s++);var u=aA(a,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Xs(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),h=new eA(u,this);return h.initData(a),h},getLayerSeries:function(){for(var t=this.getData(),e=t.count(),i=[],n=0;n<e;++n)i[n]=n;for(var a=p(kp().key((function(e){return t.get("name",e)})).entries(i),(function(t){return{name:t.key,indices:t.values}})),o=t.mapDimension("single"),r=0;r<a.length;++r)a[r].indices.sort((function(e,i){return t.get(o,e)-t.get(o,i)}));return a},getAxisTooltipData:function(t,e,i){x(t)||(t=t?[t]:[]);for(var n,a=this.getData(),o=this.getLayerSeries(),r=[],s=o.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,h=-1,c=o[l].indices.length,d=0;d<c;++d){var f=a.get(t[0],o[l].indices[d]),p=Math.abs(f-e);p<=u&&(n=f,u=p,h=o[l].indices[d])}r.push(h)}return{dataIndices:r,nestestValue:n}},formatTooltip:function(t){var e=this.getData(),i=e.getName(t),n=e.get(e.mapDimension("value"),t);return(isNaN(n)||null==n)&&(n="-"),Qa(i+" : "+n)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}});Ws({type:"themeRiver",init:function(){this._layers=[]},render:function(t,e,i){function n(t){return t.name}function a(e,i,n){var a=this._layers;if("remove"!==e){for(var u,h=[],c=[],f=l[i].indices,p=0;p<f.length;p++){var g=o.getItemLayout(f[p]),m=g.x,v=g.y0,y=g.y;h.push([m,v]),c.push([m,v+y]),u=o.getItemVisual(f[p],"color")}var x,_,w=o.getItemLayout(f[0]),b=o.getItemModel(f[p-1]),S=b.getModel("label"),M=S.get("margin");if("add"===e)I=d[i]=new Uw,x=new uD({shape:{points:h,stackedOnPoints:c,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),_=new qS({style:{x:w.x-M,y:w.y0+w.y/2}}),I.add(x),I.add(_),s.add(I),x.setClipPath(Cm(x.getBoundingRect(),t,(function(){x.removeClipPath()})));else{var I=a[n];x=I.childAt(0),_=I.childAt(1),s.add(I),d[i]=I,ba(x,{shape:{points:h,stackedOnPoints:c}},t),ba(_,{style:{x:w.x-M,y:w.y0+w.y/2}},t)}var T=b.getModel("emphasis.itemStyle"),A=b.getModel("itemStyle");fa(_.style,S,{text:S.get("show")?t.getFormattedLabel(f[p-1],"normal")||o.getName(f[p-1]):null,textVerticalAlign:"middle"}),x.setStyle(r({fill:u},A.getItemStyle(["color"]))),ha(x,T.getItemStyle())}else s.remove(a[i])}var o=t.getData(),s=this.group,l=t.getLayerSeries(),u=o.getLayout("layoutInfo"),h=u.rect,c=u.boundaryGap;s.attr("position",[0,h.y+c[0]]);var d={};new Us(this._layersSeries||[],l,n,n).add(v(a,this,"add")).update(v(a,this,"update")).remove(v(a,this,"remove")).execute(),this._layersSeries=l,this._layers=d},dispose:function(){}}),Es((function(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),i=t.coordinateSystem,n={},a=i.getRect();n.rect=a;var o=t.get("boundaryGap"),r=i.getAxis();n.boundaryGap=o,"horizontal"===r.orient?(o[0]=Ra(o[0],a.height),o[1]=Ra(o[1],a.height),Lm(e,t,a.height-o[0]-o[1])):(o[0]=Ra(o[0],a.width),o[1]=Ra(o[1],a.width),Lm(e,t,a.width-o[0]-o[1])),e.setLayout("layoutInfo",n)}))})),Rs((function(t){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),i=t.getRawData(),n=t.get("color"),a=z();e.each((function(t){a.set(e.getRawIndex(t),t)})),i.each((function(o){var r=i.getName(o),s=n[(t.nameMap.get(r)-1)%n.length];i.setItemVisual(o,"color",s);var l=a.get(o);null!=l&&e.setItemVisual(l,"color",s)}))}))})),Ps(KD("themeRiver")),OI.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(t,e){var i={name:t.name,children:t.data};Pm(i);var n=t.levels||[],a={};return a.levels=n,Pc.createTree(i,this,a).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(t){var e=OI.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=ad(i,this),e},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0,emphasis:{}},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1,emphasis:{},highlight:{opacity:1},downplay:{opacity:.9}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});var yP={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},xP=2,_P=4,wP=Nm.prototype;wP.updateData=function(e,i,n,o,l){this.node=i,i.piece=this,o=o||this._seriesModel,l=l||this._ecModel;var u=this.childAt(0);u.dataIndex=i.dataIndex;var h=i.getModel(),c=i.getLayout();c||t.log(i.getLayout());var d=r({},c);d.label=null;var f,p=Om(i,0,l),g=h.getModel("itemStyle").getItemStyle();f=s({lineJoin:"bevel",fill:(f="normal"===n?g:a(h.getModel(n+".itemStyle").getItemStyle(),g)).fill||p},f),e?(u.setShape(d),u.shape.r=c.r0,ba(u,{shape:{r:c.r}},o,i.dataIndex),u.useStyle(f)):"object"==typeof f.fill&&f.fill.type||"object"==typeof u.style.fill&&u.style.fill.type?(ba(u,{shape:d},o),u.useStyle(f)):ba(u,{shape:d,style:f},o),this._updateLabel(o,p,n);var m=h.getShallow("cursor");if(m&&u.attr("cursor",m),e){var v=o.getShallow("highlightPolicy");this._initEvents(u,i,o,v)}this._seriesModel=o||this._seriesModel,this._ecModel=l||this._ecModel},wP.onEmphasis=function(t){var e=this;this.node.hostTree.root.eachNode((function(i){i.piece&&(e.node===i?i.piece.updateData(!1,i,"emphasis"):Rm(i,e.node,t)?i.piece.childAt(0).trigger("highlight"):t!==yP.NONE&&i.piece.childAt(0).trigger("downplay"))}))},wP.onNormal=function(){this.node.hostTree.root.eachNode((function(t){t.piece&&t.piece.updateData(!1,t,"normal")}))},wP.onHighlight=function(){this.updateData(!1,this.node,"highlight")},wP.onDownplay=function(){this.updateData(!1,this.node,"downplay")},wP._updateLabel=function(t,e,i){function n(t){var e=r.get(t);return null==e?o.get(t):e}var a=this.node.getModel(),o=a.getModel("label"),r="normal"===i||"emphasis"===i?o:a.getModel(i+".label"),s=a.getModel("emphasis.label"),l=A(t.getFormattedLabel(this.node.dataIndex,"normal",null,null,"label"),this.node.name);!1===n("show")&&(l="");var u=this.node.getLayout(),h=r.get("minAngle");null==h&&(h=o.get("minAngle")),h=h/180*Math.PI;var c=u.endAngle-u.startAngle;null!=h&&Math.abs(c)<h&&(l="");var d=this.childAt(1);da(d.style,d.hoverStyle||{},o,s,{defaultText:r.getShallow("show")?l:null,autoColor:e,useInsideStyle:!0});var f,p=(u.startAngle+u.endAngle)/2,g=Math.cos(p),m=Math.sin(p),v=n("position"),y=n("distance")||0,x=n("align");"outside"===v?(f=u.r+y,x=p>Math.PI/2?"right":"left"):x&&"center"!==x?"left"===x?(f=u.r0+y,p>Math.PI/2&&(x="right")):"right"===x&&(f=u.r-y,p>Math.PI/2&&(x="left")):(f=(u.r+u.r0)/2,x="center"),d.attr("style",{text:l,textAlign:x,textVerticalAlign:n("verticalAlign")||"middle",opacity:n("opacity")});var _=f*g+u.cx,w=f*m+u.cy;d.attr("position",[_,w]);var b=n("rotate"),S=0;"radial"===b?(S=-p)<-Math.PI/2&&(S+=Math.PI):"tangential"===b?(S=Math.PI/2-p)>Math.PI/2?S-=Math.PI:S<-Math.PI/2&&(S+=Math.PI):"number"==typeof b&&(S=b*Math.PI/180),d.attr("rotation",S)},wP._initEvents=function(t,e,i,n){t.off("mouseover").off("mouseout").off("emphasis").off("normal");var a=this,o=function(){a.onEmphasis(n)},r=function(){a.onNormal()};i.isAnimationEnabled()&&t.on("mouseover",o).on("mouseout",r).on("emphasis",o).on("normal",r).on("downplay",(function(){a.onDownplay()})).on("highlight",(function(){a.onHighlight()}))},h(Nm,Uw),Ir.extend({type:"sunburst",init:function(){},render:function(t,e,i,n){function a(i,n){if(c||!i||i.getValue()||(i=null),i!==l&&n!==l)if(n&&n.piece)i?(n.piece.updateData(!1,i,"normal",t,e),s.setItemGraphicEl(i.dataIndex,n.piece)):o(n);else if(i){var a=new Nm(i,t,e);h.add(a),s.setItemGraphicEl(i.dataIndex,a)}}function o(t){t&&t.piece&&(h.remove(t.piece),t.piece=null)}var r=this;this.seriesModel=t,this.api=i,this.ecModel=e;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),h=this.group,c=t.get("renderLabelForZeroData"),d=[];u.eachNode((function(t){d.push(t)}));var f=this._oldChildren||[];if(function(t,e){function i(t){return t.getId()}function n(i,n){a(null==i?null:t[i],null==n?null:e[n])}0===t.length&&0===e.length||new Us(e,t,i,i).add(n).update(n).remove(y(n,null)).execute()}(d,f),function(i,n){if(n.depth>0){r.virtualPiece?r.virtualPiece.updateData(!1,i,"normal",t,e):(r.virtualPiece=new Nm(i,t,e),h.add(r.virtualPiece)),n.piece._onclickEvent&&n.piece.off("click",n.piece._onclickEvent);var a=function(t){r._rootToNode(n.parentNode)};n.piece._onclickEvent=a,r.virtualPiece.on("click",a)}else r.virtualPiece&&(h.remove(r.virtualPiece),r.virtualPiece=null)}(l,u),n&&n.highlight&&n.highlight.piece){var p=t.getShallow("highlightPolicy");n.highlight.piece.onEmphasis(p)}else if(n&&n.unhighlight){var g=this.virtualPiece;!g&&l.children.length&&(g=l.children[0].piece),g&&g.onNormal()}this._initEvents(),this._oldChildren=d},dispose:function(){},_initEvents:function(){var t=this,e=function(e){var i=!1;t.seriesModel.getViewRoot().eachNode((function(n){if(!i&&n.piece&&n.piece.childAt(0)===e.target){var a=n.getModel().get("nodeClick");if("rootToNode"===a)t._rootToNode(n);else if("link"===a){var o=n.getModel(),r=o.get("link");if(r){var s=o.get("target",!0)||"_blank";window.open(r,s)}}i=!0}}))};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",e),this.group._onclickEvent=e},_rootToNode:function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:"sunburstRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},containPoint:function(t,e){var i=e.getData().getItemLayout(0);if(i){var n=t[0]-i.cx,a=t[1]-i.cy,o=Math.sqrt(n*n+a*a);return o<=i.r&&o>=i.r0}}});var bP="sunburstRootToNode";Ns({type:bP,update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,i){var n=ed(t,[bP],e);if(n){var a=e.getViewRoot();a&&(t.direction=nd(a,n.node)?"rollUp":"drillDown"),e.resetViewRoot(n.node)}}))}));var SP="sunburstHighlight";Ns({type:SP,update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,i){var n=ed(t,[SP],e);n&&(t.highlight=n.node)}))})),Ns({type:"sunburstUnhighlight",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,i){t.unhighlight=!0}))}));var MP=Math.PI/180;Rs(y(XD,"sunburst")),Es(y((function(t,e,i,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),n=t.get("radius");x(n)||(n=[0,n]),x(e)||(e=[e,e]);var a=i.getWidth(),o=i.getHeight(),r=Math.min(a,o),s=Ra(e[0],a),l=Ra(e[1],o),u=Ra(n[0],r/2),h=Ra(n[1],r/2),c=-t.get("startAngle")*MP,d=t.get("minAngle")*MP,p=t.getData().tree.root,g=t.getViewRoot(),m=g.depth,v=t.get("sort");null!=v&&zm(g,v);var y=0;f(g.children,(function(t){!isNaN(t.getValue())&&y++}));var _=g.getValue(),w=Math.PI/(_||y)*2,b=g.depth>0,S=g.height-(b?-1:1),M=(h-u)/(S||1),I=t.get("clockwise"),T=t.get("stillShowZeroSum"),A=I?1:-1,D=function t(e,i){if(e){var n=i;if(e!==p){var a=e.getValue(),o=0===_&&T?w:a*w;o<d&&(o=d),n=i+A*o;var h=e.depth-m-(b?-1:1),c=u+M*h,g=u+M*(h+1),v=e.getModel();null!=v.get("r0")&&(c=Ra(v.get("r0"),r/2)),null!=v.get("r")&&(g=Ra(v.get("r"),r/2)),e.setLayout({angle:o,startAngle:i,endAngle:n,clockwise:I,cx:s,cy:l,r0:c,r:g})}if(e.children&&e.children.length){var y=0;f(e.children,(function(e){y+=t(e,i+y)}))}return n-i}};if(b){var C=u,L=u+M,k=2*Math.PI;p.setLayout({angle:k,startAngle:c,endAngle:c+k,clockwise:I,cx:s,cy:l,r0:C,r:L})}D(g,c)}))}),"sunburst")),Ps(y(KD,"sunburst"));var IP=["itemStyle"],TP=["emphasis","itemStyle"],AP=["label"],DP=["emphasis","label"],CP="e\0\0",LP={cartesian2d:function(t){var e=t.grid.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:v(Vm,t)}}},geo:function(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:v(Fm,t)}}},singleAxis:function(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:v(Gm,t)}}},polar:function(t){var e=t.getRadiusAxis(),i=t.getAngleAxis(),n=e.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:n[1],r0:n[0]},api:{coord:v((function(n){var a=e.dataToRadius(n[0]),o=i.dataToAngle(n[1]),r=t.coordToPoint([a,o]);return r.push(a,o*Math.PI/180),r})),size:v(Wm,t)}}},calendar:function(t){var e=t.getRect(),i=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:i.start,end:i.end,weeks:i.weeks,dayCount:i.allDay}},api:{coord:function(e,i){return t.dataToPoint(e,i)}}}}};OI.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0},getInitialData:function(t,e){return fl(this.getSource(),this)},getDataParams:function(t,e,i){var n=OI.prototype.getDataParams.apply(this,arguments);return i&&(n.info=i.info),n}}),Ir.extend({type:"custom",_data:null,render:function(t,e,i,n){var a=this._data,o=t.getData(),r=this.group,s=jm(t,o,e,i);o.diff(a).add((function(e){Ym(null,e,s(e,n),t,r,o)})).update((function(e,i){Ym(a.getItemGraphicEl(i),e,s(e,n),t,r,o)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=o},incrementalPrepareRender:function(t,e,i){this.group.removeAll(),this._data=null},incrementalRender:function(t,e,i,n,a){for(var o=e.getData(),r=jm(e,o,i,n),s=t.start;s<t.end;s++)Ym(null,s,r(s,a),e,this.group,o).traverse((function(t){t.isGroup||(t.incremental=!0,t.useHoverLayer=!0)}))},dispose:V,filterForExposedEvent:function(t,e,i,n){var a=e.element;if(null==a||i.name===a)return!0;for(;(i=i.parent)&&i!==this.group;)if(i.name===a)return!0;return!1}}),ks((function(t){var e=t.graphic;x(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}));var kP=Vs({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(t){var e=this.option.elements;this.option.elements=null,kP.superApply(this,"mergeOption",arguments),this.option.elements=e},optionUpdated:function(t,e){var i=this.option,n=(e?i:t).elements,a=i.elements=e?[]:i.elements,o=[];this._flatten(n,o);var r=Ni(a,o);Oi(r);var s=this._elOptionsToUpdate=[];f(r,(function(t,e){var i=t.option;i&&(s.push(i),lv(t,i),uv(a,e,i),hv(a[e],i))}),this);for(var l=a.length-1;l>=0;l--)null==a[l]?a.splice(l,1):delete a[l].$action},_flatten:function(t,e,i){f(t,(function(t){if(t){i&&(t.parentOption=i),e.push(t);var n=t.children;"group"===t.type&&n&&this._flatten(n,e,t),delete t.children}}),this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});Fs({type:"graphic",init:function(t,e){this._elMap=z(),this._lastGraphicModel},render:function(t,e,i){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,i)},_updateElements:function(t){var e=t.useElOptionsToUpdate();if(e){var i=this._elMap,n=this.group;f(e,(function(e){var a=e.$action,o=e.id,r=i.get(o),s=e.parentId,l=null!=s?i.get(s):n,u=e.style;"text"===e.type&&u&&(e.hv&&e.hv[1]&&(u.textVerticalAlign=u.textBaseline=null),!u.hasOwnProperty("textFill")&&u.fill&&(u.textFill=u.fill),!u.hasOwnProperty("textStroke")&&u.stroke&&(u.textStroke=u.stroke));var h=rv(e);a&&"merge"!==a?"replace"===a?(ov(r,i),av(o,l,h,i)):"remove"===a&&ov(r,i):r?r.attr(h):av(o,l,h,i);var c=i.get(o);c&&(c.__ecGraphicWidth=e.width,c.__ecGraphicHeight=e.height,cv(c,t))}))}},_relocate:function(t,e){for(var i=t.option.elements,n=this.group,a=this._elMap,o=i.length-1;o>=0;o--){var r=i[o],s=a.get(r.id);if(s){var l=s.parent;uo(s,r,l===n?{width:e.getWidth(),height:e.getHeight()}:{width:l.__ecGraphicWidth||0,height:l.__ecGraphicHeight||0},null,{hv:r.hv,boundingMode:r.bounding})}}},_clear:function(){var t=this._elMap;t.each((function(e){ov(e,t)})),this._elMap=z()},dispose:function(){this._clear()}});var PP=Vs({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{}},mergeOption:function(t){PP.superCall(this,"mergeOption",t)},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i<t.length;i++){var n=t[i].get("name");if(this.isSelected(n)){this.select(n),e=!0;break}}!e&&this.select(t[0].get("name"))}},_updateData:function(t){var e=[],i=[];t.eachRawSeries((function(n){var a,o=n.name;if(i.push(o),n.legendDataProvider){var r=n.legendDataProvider(),s=r.mapArray(r.getName);t.isSeriesFiltered(n)||(i=i.concat(s)),s.length?e=e.concat(s):a=!0}else a=!0;a&&Ei(n)&&e.push(n.name)})),this._availableNames=i;var n=p(this.get("data")||e,(function(t){return"string"!=typeof t&&"number"!=typeof t||(t={name:t}),new La(t,this,this.ecModel)}),this);this._data=n},getData:function(){return this._data},select:function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&f(this._data,(function(t){e[t.get("name")]=!1})),e[t]=!0},unSelect:function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},toggleSelected:function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},isSelected:function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&u(this._availableNames,t)>=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}});Ns("legendToggleSelect","legendselectchanged",y(dv,"toggleSelected")),Ns("legendSelect","legendselected",y(dv,"select")),Ns("legendUnSelect","legendunselected",y(dv,"unSelect"));var NP=y,OP=f,EP=Uw,RP=Fs({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new EP),this._backgroundEl},getContentGroup:function(){return this._contentGroup},render:function(t,e,i){if(this.resetInner(),t.get("show",!0)){var n=t.get("align");n&&"auto"!==n||(n="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left"),this.renderInner(n,t,e,i);var a=t.getBoxLayoutParams(),o={width:i.getWidth(),height:i.getHeight()},r=t.get("padding"),l=lo(a,o,r),u=this.layoutInner(t,n,l),h=lo(s({width:u.width,height:u.height},a),o,r);this.group.attr("position",[h.x-u.x,h.y-u.y]),this.group.add(this._backgroundEl=pv(u,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl)},renderInner:function(t,e,i,n){var a=this.getContentGroup(),o=z(),r=e.get("selectedMode"),s=[];i.eachRawSeries((function(t){!t.get("legendHoverLink")&&s.push(t.id)})),OP(e.getData(),(function(l,u){var h=l.get("name");if(this.newlineDisabled||""!==h&&"\n"!==h){var c=i.getSeriesByName(h)[0];if(!o.get(h))if(c){var d=c.getData(),f=d.getVisual("color");"function"==typeof f&&(f=f(c.getDataParams(0)));var p=d.getVisual("legendSymbol")||"roundRect",g=d.getVisual("symbol");this._createItem(h,u,l,e,p,g,t,f,r).on("click",NP(gv,h,n)).on("mouseover",NP(mv,c.name,null,n,s)).on("mouseout",NP(vv,c.name,null,n,s)),o.set(h,!0)}else i.eachRawSeries((function(i){if(!o.get(h)&&i.legendDataProvider){var a=i.legendDataProvider(),c=a.indexOfName(h);if(c<0)return;var d=a.getItemVisual(c,"color");this._createItem(h,u,l,e,"roundRect",null,t,d,r).on("click",NP(gv,h,n)).on("mouseover",NP(mv,null,h,n,s)).on("mouseout",NP(vv,null,h,n,s)),o.set(h,!0)}}),this)}else a.add(new EP({newline:!0}))}),this)},_createItem:function(t,e,i,n,a,o,s,l,u){var h=n.get("itemWidth"),c=n.get("itemHeight"),d=n.get("inactiveColor"),f=n.get("symbolKeepAspect"),p=n.isSelected(t),g=new EP,m=i.getModel("textStyle"),v=i.get("icon"),y=i.getModel("tooltip"),x=y.parentModel;if(a=v||a,g.add(Xl(a,0,0,h,c,p?l:d,null==f||f)),!v&&o&&(o!==a||"none"===o)){var _=.8*c;"none"===o&&(o="circle"),g.add(Xl(o,(h-_)/2,(c-_)/2,_,_,p?l:d,null==f||f))}var w="left"===s?h+5:-5,b=s,S=n.get("formatter"),M=t;"string"==typeof S&&S?M=S.replace("{name}",null!=t?t:""):"function"==typeof S&&(M=S(t)),g.add(new qS({style:fa({},m,{text:M,x:w,y:c/2,textFill:p?m.getTextColor():d,textAlign:b,textVerticalAlign:"middle"})}));var I=new oM({shape:g.getBoundingRect(),invisible:!0,tooltip:y.get("show")?r({content:t,formatter:x.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:n.componentIndex,name:t,$vars:["name"]}},y.option):null});return g.add(I),g.eachChild((function(t){t.silent=!0})),I.silent=!u,this.getContentGroup().add(g),ha(g),g.__legendDataIndex=e,g},layoutInner:function(t,e,i){var n=this.getContentGroup();ZM(t.get("orient"),n,t.get("itemGap"),i.width,i.height);var a=n.getBoundingRect();return n.attr("position",[-a.x,-a.y]),this.group.getBoundingRect()}});Ps((function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0}))})),YM.registerSubTypeDefaulter("legend",(function(){return"plain"}));var zP=PP.extend({type:"legend.scroll",setScrollDataIndex:function(t){this.option.scrollDataIndex=t},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(t,e,i,n){var a=fo(t);zP.superCall(this,"init",t,e,i,n),yv(this,t,a)},mergeOption:function(t,e){zP.superCall(this,"mergeOption",t,e),yv(this,this.option,t)},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}}}),BP=Uw,VP=["width","height"],FP=["x","y"],GP=RP.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){GP.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new BP),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new BP),this._showController},resetInner:function(){GP.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(t,e,i,n){function a(t,i){var a=t+"DataIndex",l=Ca(e.get("pageIcons",!0)[e.getOrient().name][i],{onclick:v(o._pageGo,o,a,e,n)},{x:-s[0]/2,y:-s[1]/2,width:s[0],height:s[1]});l.name=t,r.add(l)}var o=this;GP.superCall(this,"renderInner",t,e,i,n);var r=this._controllerGroup,s=e.get("pageIconSize",!0);x(s)||(s=[s,s]),a("pagePrev",0);var l=e.getModel("pageTextStyle");r.add(new qS({name:"pageText",style:{textFill:l.getTextColor(),font:l.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),a("pageNext",1)},layoutInner:function(t,e,i){var n=this.getContentGroup(),a=this._containerGroup,o=this._controllerGroup,r=t.getOrient().index,s=VP[r],l=VP[1-r],u=FP[1-r];ZM(t.get("orient"),n,t.get("itemGap"),r?i.width:null,r?null:i.height),ZM("horizontal",o,t.get("pageButtonItemGap",!0));var h=n.getBoundingRect(),c=o.getBoundingRect(),d=this._showController=h[s]>i[s],f=[-h.x,-h.y];f[r]=n.position[r];var p=[0,0],g=[-c.x,-c.y],m=D(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?g[r]+=i[s]-c[s]:p[r]+=c[s]+m),g[1-r]+=h[l]/2-c[l]/2,n.attr("position",f),a.attr("position",p),o.attr("position",g);var v=this.group.getBoundingRect();if((v={x:0,y:0})[s]=d?i[s]:h[s],v[l]=Math.max(h[l],c[l]),v[u]=Math.min(0,c[u]+g[1-r]),a.__rectSize=i[s],d){var y={x:0,y:0};y[s]=Math.max(i[s]-c[s]-m,0),y[l]=v[l],a.setClipPath(new oM({shape:y})),a.__rectSize=y[s]}else o.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(t);return null!=x.pageIndex&&ba(n,{position:x.contentPosition},!!d&&t),this._updatePageInfoView(t,x),v},_pageGo:function(t,e,i){var n=this._getPageInfo(e)[t];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:e.id})},_updatePageInfoView:function(t,e){var i=this._controllerGroup;f(["pagePrev","pageNext"],(function(n){var a=null!=e[n+"DataIndex"],o=i.childOfName(n);o&&(o.setStyle("fill",a?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=a?"pointer":"default")}));var n=i.childOfName("pageText"),a=t.get("pageFormatter"),o=e.pageIndex,r=null!=o?o+1:0,s=e.pageCount;n&&a&&n.setStyle("text",w(a)?a.replace("{current}",r).replace("{total}",s):a({current:r,total:s}))},_getPageInfo:function(t){function e(t){var e=t.getBoundingRect().clone();return e[f]+=t.position[h],e}var i,n,a,o,r=t.get("scrollDataIndex",!0),s=this.getContentGroup(),l=s.getBoundingRect(),u=this._containerGroup.__rectSize,h=t.getOrient().index,c=VP[h],d=VP[1-h],f=FP[h],p=s.position.slice();this._showController?s.eachChild((function(t){t.__legendDataIndex===r&&(o=t)})):o=s.childAt(0);var g=u?Math.ceil(l[c]/u):0;if(o){var m=o.getBoundingRect(),v=o.position[h]+m[f];p[h]=-v-l[f],i=Math.floor(g*(v+m[f]+u/2)/l[c]),i=l[c]&&g?Math.max(0,Math.min(g-1,i)):-1;var y={x:0,y:0};y[c]=u,y[d]=l[d],y[f]=-p[h]-l[f];var x,_=s.children();if(s.eachChild((function(t,i){var n=e(t);n.intersect(y)&&(null==x&&(x=i),a=t.__legendDataIndex),i===_.length-1&&n[f]+n[c]<=y[f]+y[c]&&(a=null)})),null!=x){var w=e(_[x]);if(y[f]=w[f]+w[c]-y[c],x<=0&&w[f]>=y[f])n=null;else{for(;x>0&&e(_[x-1]).intersect(y);)x--;n=_[x].__legendDataIndex}}}return{contentPosition:p,pageIndex:i,pageCount:g,pagePrevDataIndex:n,pageNextDataIndex:a}}});Ns("legendScroll","legendscroll",(function(t,e){var i=t.scrollDataIndex;null!=i&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(i)}))})),Vs({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});var WP=f,HP=Ja,UP=["","-webkit-","-moz-","-o-"];bv.prototype={constructor:bv,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i.position&&"absolute"!==e.position&&(i.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+wv(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",e.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var i,n=this._zr;n&&n.painter&&(i=n.painter.getViewportRootOffset())&&(t+=i.offsetLeft,e+=i.offsetTop);var a=this.el.style;a.left=t+"px",a.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(v(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var t=this.el.clientWidth,e=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var i=document.defaultView.getComputedStyle(this.el);i&&(t+=parseInt(i.paddingLeft,10)+parseInt(i.paddingRight,10)+parseInt(i.borderLeftWidth,10)+parseInt(i.borderRightWidth,10),e+=parseInt(i.paddingTop,10)+parseInt(i.paddingBottom,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10))}return{width:t,height:e}}},Sv.prototype={constructor:Sv,_enterable:!0,update:function(){},show:function(t){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(t,e,i){this.el&&this._zr.remove(this.el);for(var n={},a=t,o=a.indexOf("{marker");o>=0;){var r=a.indexOf("|}"),s=a.substr(o+"{marker".length,r-o-"{marker".length);s.indexOf("sub")>-1?n["marker"+s]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:e[s],textOffset:[3,0]}:n["marker"+s]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:e[s]},o=(a=a.substr(r+1)).indexOf("{marker")}this.el=new qS({style:{rich:n,text:t,textLineHeight:20,textBackgroundColor:i.get("backgroundColor"),textBorderRadius:i.get("borderRadius"),textFill:i.get("textStyle.color"),textPadding:i.get("padding")},z:i.get("z")}),this._zr.add(this.el);var l=this;this.el.on("mouseover",(function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0})),this.el.on("mouseout",(function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}))},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el.getBoundingRect();return[t.width,t.height]},moveTo:function(t,e){this.el&&this.el.attr("position",[t,e])},hide:function(){this.el.hide(),this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(v(this.hide,this),t)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){return this.getSize()}};var ZP=v,jP=f,XP=Ra,YP=new oM({shape:{x:-1,y:-1,width:2,height:2}});Fs({type:"tooltip",init:function(t,e){if(!z_.node){var i,n=t.getComponent("tooltip").get("renderMode");this._renderMode=Ui(n),"html"===this._renderMode?(i=new bv(e.getDom(),e),this._newLine="<br/>"):(i=new Sv(e),this._newLine="\n"),this._tooltipContent=i}},render:function(t,e,i){if(!z_.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var n=this._tooltipContent;n.update(),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel.get("triggerOn");nm("itemTooltip",this._api,ZP((function(e,i,n){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(i,n):"leave"===e&&this._hide(n))}),this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){n.manuallyShowTip(t,e,i,{x:n._lastX,y:n._lastY})}))}},manuallyShowTip:function(t,e,i,n){if(n.from!==this.uid&&!z_.node){var a=Iv(n,i);this._ticket="";var o=n.dataByCoordSys;if(n.tooltip&&null!=n.x&&null!=n.y){var r=YP;r.position=[n.x,n.y],r.update(),r.tooltip=n.tooltip,this._tryShow({offsetX:n.x,offsetY:n.y,target:r},a)}else if(o)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,event:{},dataByCoordSys:n.dataByCoordSys,tooltipOption:n.tooltipOption},a);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var s=eP(n,e),l=s.point[0],u=s.point[1];null!=l&&null!=u&&this._tryShow({offsetX:l,offsetY:u,position:n.position,target:s.el,event:{}},a)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target,event:{}},a))}},manuallyHideTip:function(t,e,i,n){var a=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,n.from!==this.uid&&this._hide(Iv(n,i))},_manuallyAxisShowTip:function(t,e,i,n){var a=n.seriesIndex,o=n.dataIndex,r=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=a&&null!=o&&null!=r){var s=e.getSeriesByIndex(a);if(s&&"axis"===(t=Mv([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model,t])).get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:o,position:n.position}),!0}},_tryShow:function(t,e){var i=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var n=t.dataByCoordSys;n&&n.length?this._showAxisTooltip(n,t):i&&null!=i.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,i,e)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,i,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var i=t.get("showDelay");e=v(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},_showAxisTooltip:function(t,e){var i=this._ecModel,n=this._tooltipModel,o=[e.offsetX,e.offsetY],r=[],s=[],l=Mv([e.tooltipOption,n]),u=this._renderMode,h=this._newLine,c={};jP(t,(function(t){jP(t.dataByAxis,(function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),n=t.value,o=[];if(e&&null!=n){var l=xm(n,e.axis,i,t.seriesDataIndices,t.valueLabelOpt);f(t.seriesDataIndices,(function(r){var h=i.getSeriesByIndex(r.seriesIndex),d=r.dataIndexInside,f=h&&h.getDataParams(d);if(f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=Hl(e.axis,n),f.axisValueLabel=l,f){s.push(f);var p,g=h.formatTooltip(d,!0,null,u);if(b(g)){p=g.html;var m=g.markers;a(c,m)}else p=g;o.push(p)}}));var d=l;"html"!==u?r.push(o.join(h)):r.push((d?Qa(d)+h:"")+o.join(h))}}))}),this),r.reverse(),r=r.join(this._newLine+this._newLine);var d=e.position;this._showOrMove(l,(function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(l,d,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(l,r,s,Math.random(),o[0],o[1],d,void 0,c)}))},_showSeriesItemTooltip:function(t,e,i){var n=this._ecModel,a=e.seriesIndex,o=n.getSeriesByIndex(a),r=e.dataModel||o,s=e.dataIndex,l=e.dataType,u=r.getData(),h=Mv([u.getItemModel(s),r,o&&(o.coordinateSystem||{}).model,this._tooltipModel]),c=h.get("trigger");if(null==c||"item"===c){var d,f,p=r.getDataParams(s,l),g=r.formatTooltip(s,!1,l,this._renderMode);b(g)?(d=g.html,f=g.markers):(d=g,f=null);var m="item_"+r.name+"_"+s;this._showOrMove(h,(function(){this._showTooltipContent(h,d,p,m,t.offsetX,t.offsetY,t.position,t.target,f)})),i({type:"showTip",dataIndexInside:s,dataIndex:u.getRawIndex(s),seriesIndex:a,from:this.uid})}},_showComponentItemTooltip:function(t,e,i){var n=e.tooltip;if("string"==typeof n){var a=n;n={content:a,formatter:a}}var o=new La(n,this._tooltipModel,this._ecModel),r=o.get("content"),s=Math.random();this._showOrMove(o,(function(){this._showTooltipContent(o,r,o.get("formatterParams")||{},s,t.offsetX,t.offsetY,t.position,e)})),i({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,i,n,a,o,r,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,h=t.get("formatter");r=r||t.get("position");var c=e;if(h&&"string"==typeof h)c=to(h,i,!0);else if("function"==typeof h){var d=ZP((function(e,n){e===this._ticket&&(u.setContent(n,l,t),this._updatePosition(t,r,a,o,u,i,s))}),this);this._ticket=n,c=h(i,n,d)}u.setContent(c,l,t),u.show(t),this._updatePosition(t,r,a,o,u,i,s)}},_updatePosition:function(t,e,i,n,a,o,r){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=a.getSize(),h=t.get("align"),c=t.get("verticalAlign"),d=r&&r.getBoundingRect().clone();if(r&&d.applyTransform(r.transform),"function"==typeof e&&(e=e([i,n],o,a.el,d,{viewSize:[s,l],contentSize:u.slice()})),x(e))i=XP(e[0],s),n=XP(e[1],l);else if(b(e)){e.width=u[0],e.height=u[1];var f=lo(e,{width:s,height:l});i=f.x,n=f.y,h=null,c=null}else"string"==typeof e&&r?(i=(p=Dv(e,d,u))[0],n=p[1]):(i=(p=Tv(i,n,a,s,l,h?null:20,c?null:20))[0],n=p[1]);if(h&&(i-=Cv(h)?u[0]/2:"right"===h?u[0]:0),c&&(n-=Cv(c)?u[1]/2:"bottom"===c?u[1]:0),t.get("confine")){var p=Av(i,n,a,s,l);i=p[0],n=p[1]}a.moveTo(i,n)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,i=!!e&&e.length===t.length;return i&&jP(e,(function(e,n){var a=e.dataByAxis||{},o=(t[n]||{}).dataByAxis||[];(i&=a.length===o.length)&&jP(a,(function(t,e){var n=o[e]||{},a=t.seriesDataIndices||[],r=n.seriesDataIndices||[];(i&=t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&a.length===r.length)&&jP(a,(function(t,e){var n=r[e];i&=t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}))}))})),this._lastDataByCoordSys=t,!!i},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){z_.node||(this._tooltipContent.hide(),um("itemTooltip",e))}}),Ns({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),Ns({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){})),Nv.prototype={constructor:Nv,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToRadius:HA.prototype.dataToCoord,radiusToData:HA.prototype.coordToData},h(Nv,HA);var qP=Vi();Ov.prototype={constructor:Ov,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToAngle:HA.prototype.dataToCoord,angleToData:HA.prototype.coordToData,calculateCategoryInterval:function(){var t=this,e=t.getLabelModel(),i=t.scale,n=i.getExtent(),a=i.count();if(n[1]-n[0]<1)return 0;var o=n[0],r=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(r),l=Ce(o,e.getFont(),"center","top"),u=Math.max(l.height,7)/s;isNaN(u)&&(u=1/0);var h=Math.max(0,Math.floor(u)),c=qP(t.model),d=c.lastAutoInterval,f=c.lastTickCount;return null!=d&&null!=f&&Math.abs(d-h)<=1&&Math.abs(f-a)<=1&&d>h?h=d:(c.lastTickCount=a,c.lastAutoInterval=h),h}},h(Ov,HA);var $P=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new Nv,this._angleAxis=new Ov,this._radiusAxis.polar=this._angleAxis.polar=this};$P.prototype={type:"polar",axisPointerEnabled:!0,constructor:$P,dimensions:["radius","angle"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],i=this._angleAxis,n=this._radiusAxis;return i.scale.type===t&&e.push(i),n.scale.type===t&&e.push(n),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var i=this.pointToCoord(t);return[this._radiusAxis.radiusToData(i[0],e),this._angleAxis.angleToData(i[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=this.getAngleAxis(),a=n.getExtent(),o=Math.min(a[0],a[1]),r=Math.max(a[0],a[1]);n.inverse?o=r-360:r=o+360;var s=Math.sqrt(e*e+i*i);e/=s,i/=s;for(var l=Math.atan2(-i,e)/Math.PI*180,u=l<o?1:-1;l<o||l>r;)l+=360*u;return[s,l]},coordToPoint:function(t){var e=t[0],i=t[1]/180*Math.PI;return[Math.cos(i)*e+this.cx,-Math.sin(i)*e+this.cy]}};var KP=YM.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});a(KP.prototype,CA);var JP={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};xD("angle",KP,Ev,JP.angle),xD("radius",KP,Ev,JP.radius),Vs({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});var QP={dimensions:$P.prototype.dimensions,create:function(t,e){var i=[];return t.eachComponent("polar",(function(t,n){var a=new $P(n);a.update=zv;var o=a.getRadiusAxis(),r=a.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");Bv(o,s),Bv(r,l),Rv(a,t,e),i.push(a),t.coordinateSystem=a,a.model=t})),t.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];e.coordinateSystem=i.coordinateSystem}})),i}};Vo.register("polar",QP);var tN=["axisLine","axisLabel","axisTick","splitLine","splitArea"];LD.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var i=t.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),r=i.getTicksCoords(),s=p(i.getViewLabels(),(function(t){return(t=n(t)).coord=i.dataToCoord(t.tickValue),t}));Gv(s),Gv(r),f(tN,(function(e){!t.get(e+".show")||i.scale.isBlank()&&"axisLine"!==e||this["_"+e](t,a,r,o,s)}),this)}},_axisLine:function(t,e,i,n){var a=t.getModel("axisLine.lineStyle"),o=new $S({shape:{cx:e.cx,cy:e.cy,r:n[Fv(e)]},style:a.getLineStyle(),z2:1,silent:!0});o.style.fill=null,this.group.add(o)},_axisTick:function(t,e,i,n){var a=t.getModel("axisTick"),o=(a.get("inside")?-1:1)*a.get("length"),r=n[Fv(e)],l=p(i,(function(t){return new rM({shape:Vv(e,[r,r+o],t.coord)})}));this.group.add(xM(l,{style:s(a.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_axisLabel:function(t,e,i,n,a){var o=t.getCategories(!0),r=t.getModel("axisLabel"),s=r.get("margin");f(a,(function(i,a){var l=r,u=i.tickValue,h=n[Fv(e)],c=e.coordToPoint([h+s,i.coord]),d=e.cx,f=e.cy,p=Math.abs(c[0]-d)/h<.3?"center":c[0]>d?"left":"right",g=Math.abs(c[1]-f)/h<.3?"middle":c[1]>f?"top":"bottom";o&&o[u]&&o[u].textStyle&&(l=new La(o[u].textStyle,r,r.ecModel));var m=new qS({silent:!0});this.group.add(m),fa(m.style,l,{x:c[0],y:c[1],textFill:l.getTextColor()||t.get("axisLine.lineStyle.color"),text:i.formattedLabel,textAlign:p,textVerticalAlign:g})}),this)},_splitLine:function(t,e,i,n){var a=t.getModel("splitLine").getModel("lineStyle"),o=a.get("color"),r=0;o=o instanceof Array?o:[o];for(var l=[],u=0;u<i.length;u++){var h=r++%o.length;l[h]=l[h]||[],l[h].push(new rM({shape:Vv(e,n,i[u].coord)}))}for(u=0;u<l.length;u++)this.group.add(xM(l[u],{style:s({stroke:o[u%o.length]},a.getLineStyle()),silent:!0,z:t.get("z")}))},_splitArea:function(t,e,i,n){if(i.length){var a=t.getModel("splitArea").getModel("areaStyle"),o=a.get("color"),r=0;o=o instanceof Array?o:[o];for(var l=[],u=Math.PI/180,h=-i[0].coord*u,c=Math.min(n[0],n[1]),d=Math.max(n[0],n[1]),f=t.get("clockwise"),p=1;p<i.length;p++){var g=r++%o.length;l[g]=l[g]||[],l[g].push(new QS({shape:{cx:e.cx,cy:e.cy,r0:c,r:d,startAngle:h,endAngle:-i[p].coord*u,clockwise:f},silent:!0})),h=-i[p].coord*u}for(p=0;p<l.length;p++)this.group.add(xM(l[p],{style:s({fill:o[p%o.length]},a.getAreaStyle()),silent:!0}))}}});var eN=["axisLine","axisTickLabel","axisName"],iN=["splitLine","splitArea"];LD.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var i=t.axis,n=i.polar,a=n.getAngleAxis(),o=i.getTicksCoords(),r=a.getExtent()[0],s=i.getExtent(),l=Wv(n,t,r),u=new ID(t,l);f(eN,u.add,u),this.group.add(u.getGroup()),f(iN,(function(e){t.get(e+".show")&&!i.scale.isBlank()&&this["_"+e](t,n,r,s,o)}),this)}},_splitLine:function(t,e,i,n,a){var o=t.getModel("splitLine").getModel("lineStyle"),r=o.get("color"),l=0;r=r instanceof Array?r:[r];for(var u=[],h=0;h<a.length;h++){var c=l++%r.length;u[c]=u[c]||[],u[c].push(new $S({shape:{cx:e.cx,cy:e.cy,r:a[h].coord},silent:!0}))}for(h=0;h<u.length;h++)this.group.add(xM(u[h],{style:s({stroke:r[h%r.length],fill:null},o.getLineStyle()),silent:!0}))},_splitArea:function(t,e,i,n,a){if(a.length){var o=t.getModel("splitArea").getModel("areaStyle"),r=o.get("color"),l=0;r=r instanceof Array?r:[r];for(var u=[],h=a[0].coord,c=1;c<a.length;c++){var d=l++%r.length;u[d]=u[d]||[],u[d].push(new QS({shape:{cx:e.cx,cy:e.cy,r0:h,r:a[c].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=a[c].coord}for(c=0;c<u.length;c++)this.group.add(xM(u[c],{style:s({fill:r[c%r.length]},o.getAreaStyle()),silent:!0}))}}});var nN=hm.extend({makeElOption:function(t,e,i,n,a){var o=i.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var r,s=o.polar,l=s.getOtherAxis(o).getExtent();r=o["dataTo"+oo(o.dim)](e);var u=n.get("type");if(u&&"none"!==u){var h=mm(n),c=aN[u](o,s,r,l,h);c.style=h,t.graphicKey=c.type,t.pointer=c}vm(t,i,n,a,Hv(e,i,0,s,n.get("label.margin")))}}),aN={line:function(t,e,i,n,a){return"angle"===t.dim?{type:"Line",shape:bm(e.coordToPoint([n[0],i]),e.coordToPoint([n[1],i]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:i}}},shadow:function(t,e,i,n,a){var o=Math.max(1,t.getBandWidth()),r=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:Mm(e.cx,e.cy,n[0],n[1],(-i-o/2)*r,(o/2-i)*r)}:{type:"Sector",shape:Mm(e.cx,e.cy,i-o/2,i+o/2,0,2*Math.PI)}}};LD.registerAxisPointerClass("PolarAxisPointer",nN),Es(y((function(t,e,i){var n={},a=Pv(m(e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),r=Lv(t),s=a[kv(o)][r],l=s.offset,u=s.width,h=i.getOtherAxis(o),c=t.coordinateSystem.cx,d=t.coordinateSystem.cy,f=t.get("barMinHeight")||0,p=t.get("barMinAngle")||0;n[r]=n[r]||[];for(var g=e.mapDimension(h.dim),m=e.mapDimension(o.dim),v=cl(e,g),y=h.getExtent()[0],x=0,_=e.count();x<_;x++){var w=e.get(g,x),b=e.get(m,x);if(!isNaN(w)){var S,M,I,T,A=w>=0?"p":"n",D=y;if(v&&(n[r][b]||(n[r][b]={p:y,n:y}),D=n[r][b][A]),"radius"===h.dim){var C=h.dataToRadius(w)-y,L=o.dataToAngle(b);Math.abs(C)<f&&(C=(C<0?-1:1)*f),S=D,M=D+C,T=(I=L-l)-u,v&&(n[r][b][A]=M)}else{var k=h.dataToAngle(w,!0)-y,P=o.dataToRadius(b);Math.abs(k)<p&&(k=(k<0?-1:1)*p),M=(S=P+l)+u,I=D,T=D+k,v&&(n[r][b][A]=T)}e.setItemLayout(x,{cx:c,cy:d,r0:S,r:M,startAngle:-I*Math.PI/180,endAngle:-T*Math.PI/180})}}}}),this)}),"bar")),Fs({type:"polar"}),c(YM.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){YM.prototype.init.apply(this,arguments),Li(t,"label",["show"])},optionUpdated:function(){var t=this.option,e=this;t.regions=_C.getFilledRegions(t.regions,t.map,t.nameMap),this._optionModelMap=g(t.regions||[],(function(t,i){return i.name&&t.set(i.name,new La(i,e)),t}),z()),this.updateSelectedMap(t.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(t){return this._optionModelMap.get(t)||new La(null,this,this.ecModel)},getFormattedLabel:function(t,e){var i=this.getRegionModel(t).get("label."+e+".formatter"),n={name:t};return"function"==typeof i?(n.status=e,i(n)):"string"==typeof i?i.replace("{a}",null!=t?t:""):void 0},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}}),HD),Fs({type:"geo",init:function(t,e){var i=new wc(e,!0);this._mapDraw=i,this.group.add(i.group)},render:function(t,e,i,n){if(!n||"geoToggleSelect"!==n.type||n.from!==this.uid){var a=this._mapDraw;t.get("show")?a.draw(t,e,i,this,n):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}}),Uv("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),Uv("select",{type:"geoSelect",event:"geoselected"}),Uv("unSelect",{type:"geoUnSelect",event:"geounselected"});var oN=["rect","polygon","keep","clear"],rN=f,sN={lineX:Kv(0),lineY:Kv(1),rect:{point:function(t,e,i){return t&&i.boundingRect.contain(t[0],t[1])},rect:function(t,e,i){return t&&i.boundingRect.intersect(t)}},polygon:{point:function(t,e,i){return t&&i.boundingRect.contain(t[0],t[1])&&ql(i.range,t[0],t[1])},rect:function(t,e,i){var n=i.range;if(!t||n.length<=1)return!1;var a=t.x,o=t.y,r=t.width,s=t.height,l=n[0];return!!(ql(n,a,o)||ql(n,a+r,o)||ql(n,a,o+s)||ql(n,a+r,o+s)||he.create(t).contain(l[0],l[1])||Qv(a,o,a+r,o,n)||Qv(a,o,a,o+s,n)||Qv(a+r,o,a+r,o+s,n)||Qv(a,o+s,a+r,o+s,n))||void 0}}},lN=f,uN=u,hN=y,cN=["dataToPoint","pointToData"],dN=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],fN=ny.prototype;fN.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,(function(t,e,i){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var n=vN[t.brushType](0,i,e);t.__rangeOffset={offset:yN[t.brushType](n.values,t.range,[1,1]),xyMinMax:n.xyMinMax}}}))},fN.matchOutputRanges=function(t,e,i){lN(t,(function(t){var n=this.findTargetInfo(t,e);n&&!0!==n&&f(n.coordSyses,(function(n){var a=vN[t.brushType](1,n,t.range);i(t,a.values,n,e)}))}),this)},fN.setInputRanges=function(t,e){lN(t,(function(t){var i=this.findTargetInfo(t,e);if(t.range=t.range||[],i&&!0!==i){t.panelId=i.panelId;var n=vN[t.brushType](0,i.coordSys,t.coordRange),a=t.__rangeOffset;t.range=a?yN[t.brushType](n.values,a.offset,ly(n.xyMinMax,a.xyMinMax)):n.values}}),this)},fN.makePanelOpts=function(t,e){return p(this._targetInfoList,(function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:e&&e(i),clipPath:cp(n),isTargetByCursor:fp(n,t,i.coordSysModel),getLinearBrushOtherExtent:dp(n)}}))},fN.controlSeries=function(t,e,i){var n=this.findTargetInfo(t,i);return!0===n||n&&uN(n.coordSyses,e.coordinateSystem)>=0},fN.findTargetInfo=function(t,e){for(var i=this._targetInfoList,n=oy(e,t),a=0;a<i.length;a++){var o=i[a],r=t.panelId;if(r){if(o.panelId===r)return o}else for(a=0;a<gN.length;a++)if(gN[a](n,o))return o}return!0};var pN={grid:function(t,e){var i=t.xAxisModels,n=t.yAxisModels,a=t.gridModels,o=z(),r={},s={};(i||n||a)&&(lN(i,(function(t){var e=t.axis.grid.model;o.set(e.id,e),r[e.id]=!0})),lN(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0})),lN(a,(function(t){o.set(t.id,t),r[t.id]=!0,s[t.id]=!0})),o.each((function(t){var a=t.coordinateSystem,o=[];lN(a.getCartesians(),(function(t,e){(uN(i,t.getAxis("x").model)>=0||uN(n,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:mN.grid,xAxisDeclared:r[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){lN(t.geoModels,(function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:mN.geo})}))}},gN=[function(t,e){var i=t.xAxisModel,n=t.yAxisModel,a=t.gridModel;return!a&&i&&(a=i.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===e.gridModel},function(t,e){var i=t.geoModel;return i&&i===e.geoModel}],mN={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Ma(t)),e}},vN={lineX:hN(ry,0),lineY:hN(ry,1),rect:function(t,e,i){var n=e[cN[t]]([i[0][0],i[1][0]]),a=e[cN[t]]([i[0][1],i[1][1]]),o=[ay([n[0],a[0]]),ay([n[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,i){var n=[[1/0,-1/0],[1/0,-1/0]];return{values:p(i,(function(i){var a=e[cN[t]](i);return n[0][0]=Math.min(n[0][0],a[0]),n[1][0]=Math.min(n[1][0],a[1]),n[0][1]=Math.max(n[0][1],a[0]),n[1][1]=Math.max(n[1][1],a[1]),a})),xyMinMax:n}}},yN={lineX:hN(sy,0),lineY:hN(sy,1),rect:function(t,e,i){return[[t[0][0]-i[0]*e[0][0],t[0][1]-i[0]*e[0][1]],[t[1][0]-i[1]*e[1][0],t[1][1]-i[1]*e[1][1]]]},polygon:function(t,e,i){return p(t,(function(t,n){return[t[0]-i[0]*e[n][0],t[1]-i[1]*e[n][1]]}))}},xN=["inBrush","outOfBrush"],_N="__ecBrushSelect",wN="__ecInBrushSelectEvent",bN=IT.VISUAL.BRUSH;Es(bN,(function(t,e,i){t.eachComponent({mainType:"brush"},(function(e){i&&"takeGlobalCursor"===i.type&&e.setBrushOption("brush"===i.key?i.brushOption:{brushType:!1}),(e.brushTargetManager=new ny(e.option,t)).setInputRanges(e.areas,t)}))})),Rs(bN,(function(t,e,i){var a,o,r=[];t.eachComponent({mainType:"brush"},(function(e,i){function l(t){return"all"===m||v[t]}function u(t){return!!t.length}function h(t,e){var i=t.coordinateSystem;w|=i.hasAxisBrushed(),l(e)&&i.eachActiveState(t.getData(),(function(t,e){"active"===t&&(y[e]=1)}))}function c(i,n,a){var o=fy(i);if(o&&!py(e,n)&&(f(b,(function(n){o[n.brushType]&&e.brushTargetManager.controlSeries(n,i,t)&&a.push(n),w|=u(a)})),l(n)&&u(a))){var r=i.getData();r.each((function(t){dy(o,a,r,t)&&(y[t]=1)}))}}var d={brushId:e.id,brushIndex:i,brushName:e.name,areas:n(e.areas),selected:[]};r.push(d);var g=e.option,m=g.brushLink,v=[],y=[],_=[],w=0;i||(a=g.throttleType,o=g.throttleDelay);var b=p(e.areas,(function(t){return gy(s({boundingRect:SN[t.brushType](t)},t))})),S=Xv(e.option,xN,(function(t){t.mappingMethod="fixed"}));x(m)&&f(m,(function(t){v[t]=1})),t.eachSeries((function(t,e){var i=_[e]=[];"parallel"===t.subType?h(t,e):c(t,e,i)})),t.eachSeries((function(t,e){var i={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};d.selected.push(i);var n=fy(t),a=_[e],o=t.getData(),r=l(e)?function(t){return y[t]?(i.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(t){return dy(n,a,o,t)?(i.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"};(l(e)?w:u(a))&&qv(xN,S,o,r)}))})),hy(e,a,o,r,i)}));var SN={lineX:V,lineY:V,rect:function(t){return my(t.range)},polygon:function(t){for(var e,i=t.range,n=0,a=i.length;n<a;n++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=i[n];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&my(e)}},MN=["#ddd"];Vs({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var i=this.option;!e&&Yv(i,t,["inBrush","outOfBrush"]);var n=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:MN},n.hasOwnProperty("liftZ")||(n.liftZ=5)},setAreas:function(t){t&&(this.areas=p(t,(function(t){return vy(this.option,t)}),this))},setBrushOption:function(t){this.brushOption=vy(this.option,t),this.brushType=this.brushOption.brushType}}),Fs({type:"brush",init:function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new Lf(e.getZr())).on("brush",v(this._onBrush,this)).mount()},render:function(t){return this.model=t,yy.apply(this,arguments)},updateTransform:yy,updateView:yy,dispose:function(){this._brushController.dispose()},_onBrush:function(t,e){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:n(t),$from:i})}}),Ns({type:"brush",event:"brush"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),Ns({type:"brushSelect",event:"brushSelected",update:"none"},(function(){}));var IN={},TN=jI.toolbox.brush;wy.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:n(TN.title)};var AN=wy.prototype;AN.render=AN.updateView=function(t,e,i){var n,a,o;e.eachComponent({mainType:"brush"},(function(t){n=t.brushType,a=t.brushOption.brushMode||"single",o|=t.areas.length})),this._brushType=n,this._brushMode=a,f(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===a:"clear"===e?o:e===n)?"emphasis":"normal")}))},AN.getIcons=function(){var t=this.model,e=t.get("icon",!0),i={};return f(t.get("type",!0),(function(t){e[t]&&(i[t]=e[t])})),i},AN.onclick=function(t,e,i){var n=this._brushType,a=this._brushMode;"clear"===i?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===i?n:n!==i&&i,brushMode:"keep"===i?"multiple"===a?"single":"multiple":a}})},xy("brush",wy),ks((function(t,e){var i=t&&t.brush;if(x(i)||(i=i?[i]:[]),i.length){var n=[];f(i,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(n=n.concat(e))}));var a=t&&t.toolbox;x(a)&&(a=a[0]),a||(a={feature:{}},t.toolbox=[a]);var o=a.feature||(a.feature={}),r=o.brush||(o.brush={}),s=r.type||(r.type=[]);s.push.apply(s,n),Zv(s),e&&!s.length&&s.push.apply(s,oN)}})),by.prototype={constructor:by,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){var e=(t=Za(t)).getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var n=t.getDate();n=n<10?"0"+n:n;var a=t.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:e,m:i,d:n,day:a,time:t.getTime(),formatedDate:e+"-"+i+"-"+n,date:t}},getNextNDay:function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},update:function(t,e){function i(t,e){return null!=t[e]&&"auto"!==t[e]}this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,a=["width","height"],o=this._model.get("cellSize").slice(),r=this._model.getBoxLayoutParams(),s="horizontal"===this._orient?[n,7]:[7,n];f([0,1],(function(t){i(o,t)&&(r[a[t]]=o[t]*s[t])}));var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=lo(r,l);f([0,1],(function(t){i(o,t)||(o[t]=u[a[t]]/s[t])})),this._sw=o[0],this._sh=o[1]},dataToPoint:function(t,e){x(t)&&(t=t[0]),null==e&&(e=!0);var i=this.getDateInfo(t),n=this._rangeInfo,a=i.formatedDate;if(e&&!(i.time>=n.start.time&&i.time<n.end.time+864e5))return[NaN,NaN];var o=i.day,r=this._getRangeInfo([n.start.time,a]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+r*this._sh+this._sh/2]:[this._rect.x+r*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},pointToData:function(t){var e=this.pointToDate(t);return e&&e.time},dataToRect:function(t,e){var i=this.dataToPoint(t,e);return{contentShape:{x:i[0]-(this._sw-this._lineWidth)/2,y:i[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},pointToDate:function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,i=Math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(i,e-1,n):this._getDateByWeeksAndDay(e,i-1,n)},convertToPixel:y(Sy,"dataToPoint"),convertFromPixel:y(Sy,"pointToData"),_initRangeOption:function(){var t=this._model.get("range"),e=t;if(x(e)&&1===e.length&&(e=e[0]),/^\d{4}$/.test(e)&&(t=[e+"-01-01",e+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(e)){var i=this.getDateInfo(e),n=i.date;n.setMonth(n.getMonth()+1);var a=this.getNextNDay(n,-1);t=[i.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(e)&&(t=[e,e]);var o=this._getRangeInfo(t);return o.start.time>o.end.time&&t.reverse(),t},_getRangeInfo:function(t){var e;(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var i=Math.floor(t[1].time/864e5)-Math.floor(t[0].time/864e5)+1,n=new Date(t[0].time),a=n.getDate(),o=t[1].date.getDate();if(n.setDate(a+i-1),n.getDate()!==o)for(var r=n.getTime()-t[1].time>0?1:-1;n.getDate()!==o&&(n.getTime()-t[1].time)*r>0;)i-=r,n.setDate(a+i-1);var s=Math.floor((i+t[0].day+6)/7),l=e?1-s:s-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:s,nthWeek:l,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,i){var n=this._getRangeInfo(i);if(t>n.weeks||0===t&&e<n.fweek||t===n.weeks&&e>n.lweek)return!1;var a=7*(t-1)-n.fweek+e,o=new Date(n.start.time);return o.setDate(n.start.d+a),this.getDateInfo(o)}},by.dimensions=by.prototype.dimensions,by.getDimensionsInfo=by.prototype.getDimensionsInfo,by.create=function(t,e){var i=[];return t.eachComponent("calendar",(function(n){var a=new by(n,t,e);i.push(a),n.coordinateSystem=a})),t.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])})),i},Vo.register("calendar",by);var DN=YM.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,e,i,n){var a=fo(t);DN.superApply(this,"init",arguments),My(t,a)},mergeOption:function(t,e){DN.superApply(this,"mergeOption",arguments),My(this.option,t)}}),CN={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},LN={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]};Fs({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,i){var n=this.group;n.removeAll();var a=t.coordinateSystem,o=a.getRangeInfo(),r=a.getOrient();this._renderDayRect(t,o,n),this._renderLines(t,o,r,n),this._renderYearText(t,o,r,n),this._renderMonthText(t,r,n),this._renderWeekText(t,o,r,n)},_renderDayRect:function(t,e,i){for(var n=t.coordinateSystem,a=t.getModel("itemStyle").getItemStyle(),o=n.getCellWidth(),r=n.getCellHeight(),s=e.start.time;s<=e.end.time;s=n.getNextNDay(s,1).time){var l=n.dataToRect([s],!1).tl,u=new oM({shape:{x:l[0],y:l[1],width:o,height:r},cursor:"default",style:a});i.add(u)}},_renderLines:function(t,e,i,n){function a(e){o._firstDayOfMonth.push(r.getDateInfo(e)),o._firstDayPoints.push(r.dataToRect([e],!1).tl);var a=o._getLinePointsOfOneWeek(t,e,i);o._tlpoints.push(a[0]),o._blpoints.push(a[a.length-1]),l&&o._drawSplitline(a,s,n)}var o=this,r=t.coordinateSystem,s=t.getModel("splitLine.lineStyle").getLineStyle(),l=t.get("splitLine.show"),u=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=e.start,c=0;h.time<=e.end.time;c++){a(h.formatedDate),0===c&&(h=r.getDateInfo(e.start.y+"-"+e.start.m));var d=h.date;d.setMonth(d.getMonth()+1),h=r.getDateInfo(d)}a(r.getNextNDay(e.end.time,1).formatedDate),l&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,u,i),s,n),l&&this._drawSplitline(o._getEdgesPoints(o._blpoints,u,i),s,n)},_getEdgesPoints:function(t,e,i){var n=[t[0].slice(),t[t.length-1].slice()],a="horizontal"===i?0:1;return n[0][a]=n[0][a]-e/2,n[1][a]=n[1][a]+e/2,n},_drawSplitline:function(t,e,i){var n=new aM({z2:20,shape:{points:t},style:e});i.add(n)},_getLinePointsOfOneWeek:function(t,e,i){var n=t.coordinateSystem;e=n.getDateInfo(e);for(var a=[],o=0;o<7;o++){var r=n.getNextNDay(e.time,o),s=n.dataToRect([r.time],!1);a[2*r.day]=s.tl,a[2*r.day+1]=s["horizontal"===i?"bl":"tr"]}return a},_formatterLabel:function(t,e){return"string"==typeof t&&t?eo(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,i,n,a){e=e.slice();var o=["center","bottom"];"bottom"===n?(e[1]+=a,o=["center","top"]):"left"===n?e[0]-=a:"right"===n?(e[0]+=a,o=["center","top"]):e[1]-=a;var r=0;return"left"!==n&&"right"!==n||(r=Math.PI/2),{rotation:r,position:e,style:{textAlign:o[0],textVerticalAlign:o[1]}}},_renderYearText:function(t,e,i,n){var a=t.getModel("yearLabel");if(a.get("show")){var o=a.get("margin"),r=a.get("position");r||(r="horizontal"!==i?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,h="horizontal"===i?0:1,c={top:[l,s[h][1]],bottom:[l,s[1-h][1]],left:[s[1-h][0],u],right:[s[h][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var f=a.get("formatter"),p={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(f,p),m=new qS({z2:30});fa(m.style,a,{text:g}),m.attr(this._yearTextPositionControl(m,c[r],i,r,o)),n.add(m)}},_monthTextPositionControl:function(t,e,i,n,a){var o="left",r="top",s=t[0],l=t[1];return"horizontal"===i?(l+=a,e&&(o="center"),"start"===n&&(r="bottom")):(s+=a,e&&(r="middle"),"start"===n&&(o="right")),{x:s,y:l,textAlign:o,textVerticalAlign:r}},_renderMonthText:function(t,e,i){var n=t.getModel("monthLabel");if(n.get("show")){var a=n.get("nameMap"),o=n.get("margin"),s=n.get("position"),l=n.get("align"),u=[this._tlpoints,this._blpoints];w(a)&&(a=CN[a.toUpperCase()]||[]);var h="start"===s?0:1,c="horizontal"===e?0:1;o="start"===s?-o:o;for(var d="center"===l,f=0;f<u[h].length-1;f++){var p=u[h][f].slice(),g=this._firstDayOfMonth[f];if(d){var m=this._firstDayPoints[f];p[c]=(m[c]+u[0][f+1][c])/2}var v=n.get("formatter"),y=a[+g.m-1],x={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:y},_=this._formatterLabel(v,x),b=new qS({z2:30});r(fa(b.style,n,{text:_}),this._monthTextPositionControl(p,d,e,s,o)),i.add(b)}}},_weekTextPositionControl:function(t,e,i,n,a){var o="center",r="middle",s=t[0],l=t[1],u="start"===i;return"horizontal"===e?(s=s+n+(u?1:-1)*a[0]/2,o=u?"right":"left"):(l=l+n+(u?1:-1)*a[1]/2,r=u?"bottom":"top"),{x:s,y:l,textAlign:o,textVerticalAlign:r}},_renderWeekText:function(t,e,i,n){var a=t.getModel("dayLabel");if(a.get("show")){var o=t.coordinateSystem,s=a.get("position"),l=a.get("nameMap"),u=a.get("margin"),h=o.getFirstDayOfWeek();w(l)&&(l=LN[l.toUpperCase()]||[]);var c=o.getNextNDay(e.end.time,7-e.lweek).time,d=[o.getCellWidth(),o.getCellHeight()];u=Ra(u,d["horizontal"===i?0:1]),"start"===s&&(c=o.getNextNDay(e.start.time,-(7+e.fweek)).time,u=-u);for(var f=0;f<7;f++){var p=o.getNextNDay(c,f),g=o.dataToRect([p.time],!1).center,m=f;m=Math.abs((f+h)%7);var v=new qS({z2:30});r(fa(v.style,a,{text:l[m]}),this._weekTextPositionControl(g,i,s,u,d)),n.add(v)}}}}),Vs({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),Fs({type:"title",render:function(t,e,i){if(this.group.removeAll(),t.get("show")){var n=this.group,a=t.getModel("textStyle"),o=t.getModel("subtextStyle"),r=t.get("textAlign"),s=t.get("textBaseline"),l=new qS({style:fa({},a,{text:t.get("text"),textFill:a.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),h=t.get("subtext"),c=new qS({style:fa({},o,{text:h,textFill:o.getTextColor(),y:u.height+t.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),f=t.get("sublink"),p=t.get("triggerEvent",!0);l.silent=!d&&!p,c.silent=!f&&!p,d&&l.on("click",(function(){window.open(d,"_"+t.get("target"))})),f&&c.on("click",(function(){window.open(f,"_"+t.get("subtarget"))})),l.eventData=c.eventData=p?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(l),h&&n.add(c);var g=n.getBoundingRect(),m=t.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=lo(m,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));r||("middle"===(r=t.get("left")||t.get("right"))&&(r="center"),"right"===r?v.x+=v.width:"center"===r&&(v.x+=v.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),n.attr("position",[v.x,v.y]);var y={textAlign:r,textVerticalAlign:s};l.setStyle(y),c.setStyle(y),g=n.getBoundingRect();var x=v.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var w=new oM({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:_,silent:!0});Yn(w),n.add(w)}}}),YM.registerSubTypeDefaulter("dataZoom",(function(){return"slider"}));var kN=["cartesian2d","polar","singleAxis"],PN=function(t,e){var i=p(t=t.slice(),oo),n=p(e=(e||[]).slice(),oo);return function(a,o){f(t,(function(t,r){for(var s={name:t,capital:i[r]},l=0;l<e.length;l++)s[e[l]]=t+n[l];a.call(o,s)}))}}(["x","y","z","radius","angle","single"],["axisIndex","axis","index","id"]),NN=f,ON=Ba,EN=function(t,e,i,n){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=n,this._dataZoomModel=i};EN.prototype={constructor:EN,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries((function(i){if(Iy(i.get("coordinateSystem"))){var n=this._dimName,a=e.queryComponents({mainType:n+"Axis",index:i.get(n+"AxisIndex"),id:i.get(n+"AxisId")})[0];this._axisIndex===(a&&a.componentIndex)&&t.push(i)}}),this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,i,n=this._dimName,a=this.ecModel,o=this.getAxisModel();return"x"===n||"y"===n?(e="gridIndex",t="x"===n?"y":"x"):(e="polarIndex",t="angle"===n?"radius":"angle"),a.eachComponent(t+"Axis",(function(t){(t.get(e)||0)===(o.get(e)||0)&&(i=t)})),i},getMinMaxSpan:function(){return n(this._minMaxSpan)},calculateDataWindow:function(t){var e=this._dataExtent,i=this.getAxisModel().axis.scale,n=this._dataZoomModel.getRangePropMode(),a=[0,100],o=[t.start,t.end],r=[];return NN(["startValue","endValue"],(function(e){r.push(null!=t[e]?i.parse(t[e]):null)})),NN([0,1],(function(t){var s=r[t],l=o[t];"percent"===n[t]?(null==l&&(l=a[t]),s=i.parse(Ea(l,a,e,!0))):l=Ea(s,e,a,!0),r[t]=s,o[t]=l})),{valueWindow:ON(r),percentWindow:ON(o)}},reset:function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=Ay(this,this._dimName,e);var i=this.calculateDataWindow(t.option);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,Ly(this),Cy(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,Cy(this,!0))},filterData:function(t,e){function i(t){return t>=r[0]&&t<=r[1]}if(t===this._dataZoomModel){var n=this._dimName,a=this.getTargetSeriesModels(),o=t.get("filterMode"),r=this._valueWindow;"none"!==o&&NN(a,(function(t){var e=t.getData(),a=e.mapDimension(n,!0);a.length&&("weakFilter"===o?e.filterSelf((function(t){for(var i,n,o,s=0;s<a.length;s++){var l=e.get(a[s],t),u=!isNaN(l),h=l<r[0],c=l>r[1];if(u&&!h&&!c)return!0;u&&(o=!0),h&&(i=!0),c&&(n=!0)}return o&&i&&n})):NN(a,(function(n){if("empty"===o)t.setData(e.map(n,(function(t){return i(t)?t:NaN})));else{var a={};a[n]=r,e.selectRange(a)}})),NN(a,(function(t){e.setApproximateExtent(r,t)})))}))}}};var RN=f,zN=PN,BN=Vs({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(t,e,i){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var n=ky(t);this.mergeDefaultAndTheme(t,i),this.doInit(n)},mergeOption:function(t){var e=ky(t);a(this.option,t,!0),this.doInit(e)},doInit:function(t){var e=this.option;z_.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),Py(this,t),RN([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=null)}),this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis((function(e,i,n,a){var o=this.dependentModels[e.axis][i],r=o.__dzAxisProxy||(o.__dzAxisProxy=new EN(e.name,i,this,a));t[e.name+"_"+i]=r}),this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();zN((function(e){var i=e.axisIndex;t[i]=Ci(t[i])}),this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;zN((function(i){null!=t[i.axisIndex]&&(e=!0)}),this);var i=t.orient;return null==i&&e?"orient":e?void 0:(null==i&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),i=this.option,n=this.dependentModels;if(t){var a="vertical"===e?"y":"x";n[a+"Axis"].length?(i[a+"AxisIndex"]=[0],t=!1):RN(n.singleAxis,(function(n){t&&n.get("orient",!0)===e&&(i.singleAxisIndex=[n.componentIndex],t=!1)}))}t&&zN((function(e){if(t){var n=[],a=this.dependentModels[e.axis];if(a.length&&!n.length)for(var o=0,r=a.length;o<r;o++)"category"===a[o].get("type")&&n.push(o);i[e.axisIndex]=n,n.length&&(t=!1)}}),this),t&&this.ecModel.eachSeries((function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&zN((function(e){var n=i[e.axisIndex],a=t.get(e.axisIndex),o=t.get(e.axisId);u(n,a=t.ecModel.queryComponents({mainType:e.axis,index:a,id:o})[0].componentIndex)<0&&n.push(a)}))}),this)},_autoSetOrient:function(){var t;this.eachTargetAxis((function(e){!t&&(t=e.name)}),this),this.option.orient="y"===t?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(t,e){var i=!0;return zN((function(n){var a=t.get(n.axisIndex),o=this.dependentModels[n.axis][a];o&&o.get("type")===e||(i=!1)}),this),i},_setDefaultThrottle:function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var t;return zN((function(e){if(null==t){var i=this.get(e.axisIndex);i.length&&(t=this.dependentModels[e.axis][i[0]])}}),this),t},eachTargetAxis:function(t,e){var i=this.ecModel;zN((function(n){RN(this.get(n.axisIndex),(function(a){t.call(e,n,a,this,i)}),this)}),this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var i=this.getAxisProxy(t,e);return i&&i.getAxisModel()},setRawRange:function(t,e){var i=this.option;RN([["start","startValue"],["end","endValue"]],(function(e){null==t[e[0]]&&null==t[e[1]]||(i[e[0]]=t[e[0]],i[e[1]]=t[e[1]])}),this),!e&&Py(this,t)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var i in e)if(e.hasOwnProperty(i)&&e[i].hostedBy(this))return e[i];for(var i in e)if(e.hasOwnProperty(i)&&!e[i].hostedBy(this))return e[i]},getRangePropMode:function(){return this._rangePropMode.slice()}}),VN=EI.extend({type:"dataZoom",render:function(t,e,i,n){this.dataZoomModel=t,this.ecModel=e,this.api=i},getTargetCoordInfo:function(){function t(t,e,i,n){for(var a,o=0;o<i.length;o++)if(i[o].model===t){a=i[o];break}a||i.push(a={model:t,axisModels:[],coordIndex:n}),a.axisModels.push(e)}var e=this.dataZoomModel,i=this.ecModel,n={};return e.eachTargetAxis((function(e,a){var o=i.getComponent(e.axis,a);if(o){var r=o.getCoordSysModel();r&&t(r,o,n[r.mainType]||(n[r.mainType]=[]),r.componentIndex)}}),this),n}}),FN=(BN.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}}),oM),GN=Ea,WN=Ba,HN=v,UN=f,ZN="horizontal",jN=5,XN=["line","bar","candlestick","scatter"],YN=VN.extend({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,i,n){YN.superApply(this,"render",arguments),kr(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),!1!==this.dataZoomModel.get("show")?(n&&"dataZoom"===n.type&&n.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){YN.superApply(this,"remove",arguments),Pr(this,"_dispatchZoomAction")},dispose:function(){YN.superApply(this,"dispose",arguments),Pr(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new Uw;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,i=this._findCoordRect(),n={width:e.getWidth(),height:e.getHeight()},a=this._orient===ZN?{right:n.width-i.x-i.width,top:n.height-30-7,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},o=fo(t.option);f(["right","top","width","height"],(function(t){"ph"===o[t]&&(o[t]=a[t])}));var r=lo(o,n,t.padding);this._location={x:r.x,y:r.y},this._size=[r.width,r.height],"vertical"===this._orient&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),a=n&&n.get("inverse"),o=this._displayables.barGroup,r=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(i!==ZN||a?i===ZN&&a?{scale:r?[-1,1]:[-1,-1]}:"vertical"!==i||a?{scale:r?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:r?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:r?[1,1]:[1,-1]});var s=t.getBoundingRect([o]);t.attr("position",[e.x-s.x,e.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var t=this.dataZoomModel,e=this._size,i=this._displayables.barGroup;i.add(new FN({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),i.add(new FN({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:v(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,i=t.series,n=i.getRawData(),a=i.getShadowDim?i.getShadowDim():t.otherDim;if(null!=a){var o=n.getDataExtent(a),r=.3*(o[1]-o[0]);o=[o[0]-r,o[1]+r];var l,u=[0,e[1]],h=[0,e[0]],c=[[e[0],0],[0,0]],d=[],f=h[1]/(n.count()-1),p=0,g=Math.round(n.count()/e[0]);n.each([a],(function(t,e){if(g>0&&e%g)p+=f;else{var i=null==t||isNaN(t)||""===t,n=i?0:GN(t,o,u,!0);i&&!l&&e?(c.push([c[c.length-1][0],0]),d.push([d[d.length-1][0],0])):!i&&l&&(c.push([p,0]),d.push([p,0])),c.push([p,n]),d.push([p,n]),p+=f,l=i}}));var m=this.dataZoomModel;this._displayables.barGroup.add(new nM({shape:{points:c},style:s({fill:m.get("dataBackgroundColor")},m.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new aM({shape:{points:d},style:m.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var i,n=this.ecModel;return t.eachTargetAxis((function(a,o){f(t.getAxisProxy(a.name,o).getTargetSeriesModels(),(function(t){if(!(i||!0!==e&&u(XN,t.get("type"))<0)){var r,s=n.getComponent(a.axis,o).axis,l=Ny(a.name),h=t.coordinateSystem;null!=l&&h.getOtherAxis&&(r=h.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),i={thisAxis:s,series:t,thisDim:a.name,otherDim:l,otherAxisInverse:r}}}),this)}),this),i}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],i=t.handleLabels=[],n=this._displayables.barGroup,a=this._size,o=this.dataZoomModel;n.add(t.filler=new FN({draggable:!0,cursor:Oy(this._orient),drift:HN(this._onDragMove,this,"all"),onmousemove:function(t){lw(t.event)},ondragstart:HN(this._showDataInfo,this,!0),ondragend:HN(this._onDragEnd,this),onmouseover:HN(this._showDataInfo,this,!0),onmouseout:HN(this._showDataInfo,this,!1),style:{fill:o.get("fillerColor"),textPosition:"inside"}})),n.add(new FN(Yn({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}}))),UN([0,1],(function(t){var a=Ca(o.get("handleIcon"),{cursor:Oy(this._orient),draggable:!0,drift:HN(this._onDragMove,this,t),onmousemove:function(t){lw(t.event)},ondragend:HN(this._onDragEnd,this),onmouseover:HN(this._showDataInfo,this,!0),onmouseout:HN(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),r=a.getBoundingRect();this._handleHeight=Ra(o.get("handleSize"),this._size[1]),this._handleWidth=r.width/r.height*this._handleHeight,a.setStyle(o.getModel("handleStyle").getItemStyle());var s=o.get("handleColor");null!=s&&(a.style.fill=s),n.add(e[t]=a);var l=o.textStyleModel;this.group.add(i[t]=new qS({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:l.getTextColor(),textFont:l.getFont()},z2:10}))}),this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[GN(t[0],[0,100],e,!0),GN(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var i=this.dataZoomModel,n=this._handleEnds,a=this._getViewExtent(),o=i.findRepresentativeAxisProxy().getMinMaxSpan(),r=[0,100];EL(e,n,a,i.get("zoomLock")?"all":t,null!=o.minSpan?GN(o.minSpan,r,a,!0):null,null!=o.maxSpan?GN(o.maxSpan,r,a,!0):null);var s=this._range,l=this._range=WN([GN(n[0],a,r,!0),GN(n[1],a,r,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(t){var e=this._displayables,i=this._handleEnds,n=WN(i.slice()),a=this._size;UN([0,1],(function(t){var n=e.handles[t],o=this._handleHeight;n.attr({scale:[o/2,o/2],position:[i[t],a[1]/2-o/2]})}),this),e.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:a[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){function e(t){var e=Ma(n.handles[t].parent,this.group),i=Ta(0===t?"right":"left",e),s=this._handleWidth/2+jN,l=Ia([c[t]+(0===t?-s:s),this._size[1]/2],e);a[t].setStyle({x:l[0],y:l[1],textVerticalAlign:o===ZN?"middle":i,textAlign:o===ZN?i:"center",text:r[t]})}var i=this.dataZoomModel,n=this._displayables,a=n.handleLabels,o=this._orient,r=["",""];if(i.get("showDetail")){var s=i.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,u=this._range,h=t?s.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:s.getDataValueWindow();r=[this._formatLabel(h[0],l),this._formatLabel(h[1],l)]}}var c=WN(this._handleEnds.slice());e.call(this,0),e.call(this,1)},_formatLabel:function(t,e){var i=this.dataZoomModel,n=i.get("labelFormatter"),a=i.get("labelPrecision");null!=a&&"auto"!==a||(a=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(a,20));return _(n)?n(t,o):w(n)?n.replace("{value}",o):o},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,i){this._dragging=!0;var n=Ia([e,i],this._displayables.barGroup.getLocalTransform(),!0),a=this._updateInterval(t,n[0]),o=this.dataZoomModel.get("realtime");this._updateView(!o),a&&o&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,i=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0||i[0]>e[0]||i[1]<0||i[1]>e[1])){var n=this._handleEnds,a=(n[0]+n[1])/2,o=this._updateInterval("all",i[0]-a);this._updateView(),o&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t;if(UN(this.getTargetCoordInfo(),(function(e){if(!t&&e.length){var i=e[0].model.coordinateSystem;t=i.getRect&&i.getRect()}})),!t){var e=this.api.getWidth(),i=this.api.getHeight();t={x:.2*e,y:.2*i,width:.6*e,height:.6*i}}return t}});BN.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});var qN="\0_ec_dataZoom_roams",$N=v,KN=VN.extend({type:"dataZoom.inside",init:function(t,e){this._range},render:function(t,e,i,n){KN.superApply(this,"render",arguments),this._range=t.getPercentRange(),f(this.getTargetCoordInfo(),(function(e,n){var a=p(e,(function(t){return zy(t.model)}));f(e,(function(e){var o=e.model,r={};f(["pan","zoom","scrollMove"],(function(t){r[t]=$N(JN[t],this,e,n)}),this),Ey(i,{coordId:zy(o),allCoordIds:a,containsPoint:function(t,e,i){return o.coordinateSystem.containPoint([e,i])},dataZoomId:t.id,dataZoomModel:t,getRange:r})}),this)}),this)},dispose:function(){Ry(this.api,this.dataZoomModel.id),KN.superApply(this,"dispose",arguments),this._range=null}}),JN={zoom:function(t,e,i,n){var a=this._range,o=a.slice(),r=t.axisModels[0];if(r){var s=QN[e](null,[n.originX,n.originY],r,i,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/n.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return EL(0,o,[0,100],0,h.minSpan,h.maxSpan),this._range=o,a[0]!==o[0]||a[1]!==o[1]?o:void 0}},pan:Hy((function(t,e,i,n,a,o){var r=QN[n]([o.oldX,o.oldY],[o.newX,o.newY],e,a,i);return r.signal*(t[1]-t[0])*r.pixel/r.pixelLength})),scrollMove:Hy((function(t,e,i,n,a,o){return QN[n]([0,0],[o.scrollDelta,o.scrollDelta],e,a,i).signal*(t[1]-t[0])*o.scrollDelta}))},QN={grid:function(t,e,i,n,a){var o=i.axis,r={},s=a.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(r.pixel=e[0]-t[0],r.pixelLength=s.width,r.pixelStart=s.x,r.signal=o.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=s.height,r.pixelStart=s.y,r.signal=o.inverse?-1:1),r},polar:function(t,e,i,n,a){var o=i.axis,r={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===i.mainType?(r.pixel=e[0]-t[0],r.pixelLength=l[1]-l[0],r.pixelStart=l[0],r.signal=o.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=u[1]-u[0],r.pixelStart=u[0],r.signal=o.inverse?-1:1),r},singleAxis:function(t,e,i,n,a){var o=i.axis,r=a.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=r.width,s.pixelStart=r.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=r.height,s.pixelStart=r.y,s.signal=o.inverse?-1:1),s}};Ps({getTargetSeries:function(t){var e=z();return t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(t,i,n){f(n.getAxisProxy(t.name,i).getTargetSeriesModels(),(function(t){e.set(t.uid,t)}))}))})),e},modifyOutputEnd:!0,overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(t,i,n){n.getAxisProxy(t.name,i).reset(n,e)})),t.eachTargetAxis((function(t,i,n){n.getAxisProxy(t.name,i).filterData(n,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy(),i=e.getDataPercentWindow(),n=e.getDataValueWindow();t.setRawRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]},!0)}))}}),Ns("dataZoom",(function(t,e){var i=Ty(v(e.eachComponent,e,"dataZoom"),PN,(function(t,e){return t.get(e.axisIndex)})),n=[];e.eachComponent({mainType:"dataZoom",query:t},(function(t,e){n.push.apply(n,i(t).nodes)})),f(n,(function(e,i){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}));var tO=f,eO=function(t){var e=t&&t.visualMap;x(e)||(e=e?[e]:[]),tO(e,(function(t){if(t){Uy(t,"splitList")&&!Uy(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&x(e)&&tO(e,(function(t){b(t)&&(Uy(t,"start")&&!Uy(t,"min")&&(t.min=t.start),Uy(t,"end")&&!Uy(t,"max")&&(t.max=t.end))}))}}))};YM.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}));var iO=IT.VISUAL.COMPONENT;Rs(iO,{createOnAllSeries:!0,reset:function(t,e){var i=[];return e.eachComponent("visualMap",(function(e){var n=t.pipelineContext;!e.isTargetSeries(t)||n&&n.large||i.push($v(e.stateList,e.targetVisuals,v(e.getValueState,e),e.getDataDimension(t.getData())))})),i}}),Rs(iO,{createOnAllSeries:!0,reset:function(t,e){var i=t.getData(),n=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var a=e.getVisualMeta(v(Zy,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimension(i),r=i.getDimensionInfo(o);null!=r&&(a.dimension=r.index,n.push(a))}})),t.getData().setVisual("visualMeta",n)}});var nO={get:function(t,e,i){var a=n((aO[t]||{})[e]);return i&&x(a)?a[a.length-1]:a}},aO={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},oO=XC.mapVisual,rO=XC.eachVisual,sO=x,lO=f,uO=Ba,hO=Ea,cO=V,dO=Vs({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-1/0,1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(t,e,i){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(t,i)},optionUpdated:function(t,e){var i=this.option;z_.canvasSupported||(i.realtime=!1),!e&&Yv(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(t){var e=this.stateList;t=v(t,this),this.controllerVisuals=Xv(this.option.controller,e,t),this.targetVisuals=Xv(this.option.target,e,t)},getTargetSeriesIndices:function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,i){e.push(i)})):e=Ci(t),e},eachTargetSeries:function(t,e){f(this.getTargetSeriesIndices(),(function(i){t.call(e,this.ecModel.getSeriesByIndex(i))}),this)},isTargetSeries:function(t){var e=!1;return this.eachTargetSeries((function(i){i===t&&(e=!0)})),e},formatValueText:function(t,e,i){function n(t){return t===l[0]?"min":t===l[1]?"max":(+t).toFixed(Math.min(s,20))}var a,o,r=this.option,s=r.precision,l=this.dataBound,u=r.formatter;return i=i||["<",">"],x(t)&&(t=t.slice(),a=!0),o=e?t:a?[n(t[0]),n(t[1])]:n(t),w(u)?u.replace("{value}",a?o[0]:o).replace("{value2}",a?o[1]:o):_(u)?a?u(t[0],t[1]):u(t):a?t[0]===l[0]?i[0]+" "+o[1]:t[1]===l[1]?i[1]+" "+o[0]:o[0]+" - "+o[1]:o},resetExtent:function(){var t=this.option,e=uO([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension,i=t.dimensions;if(null!=e||i.length){if(null!=e)return t.getDimension(e);for(var n=t.dimensions,a=n.length-1;a>=0;a--){var o=n[a];if(!t.getDimensionInfo(o).isCalculationCoord)return o}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){function t(t){sO(i.color)&&!t.inRange&&(t.inRange={color:i.color.slice().reverse()}),t.inRange=t.inRange||{color:e.get("gradientColor")},lO(this.stateList,(function(e){var i=t[e];if(w(i)){var n=nO.get(i,"active",l);n?(t[e]={},t[e][i]=n):delete t[e]}}),this)}var e=this.ecModel,i=this.option,o={inRange:i.inRange,outOfRange:i.outOfRange},r=i.target||(i.target={}),s=i.controller||(i.controller={});a(r,o),a(s,o);var l=this.isCategory();t.call(this,r),t.call(this,s),function(t,e,i){var n=t[e],a=t[i];n&&!a&&(a=t[i]={},lO(n,(function(t,e){if(XC.isValidType(e)){var i=nO.get(e,"inactive",l);null!=i&&(a[e]=i,"color"!==e||a.hasOwnProperty("opacity")||a.hasOwnProperty("colorAlpha")||(a.opacity=[0,0]))}})))}.call(this,r,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,i=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,a=this.get("inactiveColor");lO(this.stateList,(function(o){var r=this.itemSize,s=t[o];s||(s=t[o]={color:l?a:[a]}),null==s.symbol&&(s.symbol=e&&n(e)||(l?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=i&&n(i)||(l?r[0]:[r[0],r[0]])),s.symbol=oO(s.symbol,(function(t){return"none"===t||"square"===t?"roundRect":t}));var u=s.symbolSize;if(null!=u){var h=-1/0;rO(u,(function(t){t>h&&(h=t)})),s.symbolSize=oO(u,(function(t){return hO(t,[0,h],[0,r[0]],!0)}))}}),this)}.call(this,s)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:cO,getValueState:cO,getVisualMeta:cO}),fO=[20,140],pO=dO.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(t,e){pO.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},resetItemSize:function(){pO.superApply(this,"resetItemSize",arguments);var t=this.itemSize;"horizontal"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=fO[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=fO[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):x(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){dO.prototype.completeVisualOption.apply(this,arguments),f(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)}),this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=Ba((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},getValueState:function(t){var e=this.option.range,i=this.getExtent();return(e[0]<=i[0]||e[0]<=t)&&(e[1]>=i[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(i){var n=[],a=i.getData();a.each(this.getDataDimension(a),(function(e,i){t[0]<=e&&e<=t[1]&&n.push(i)}),this),e.push({seriesId:i.id,dataIndex:n})}),this),e},getVisualMeta:function(t){function e(e,i){a.push({value:e,color:t(e,i)})}for(var i=jy(0,0,this.getExtent()),n=jy(0,0,this.option.range.slice()),a=[],o=0,r=0,s=n.length,l=i.length;r<l&&(!n.length||i[r]<=n[0]);r++)i[r]<n[o]&&e(i[r],"outOfRange");for(u=1;o<s;o++,u=0)u&&a.length&&e(n[o],"outOfRange"),e(n[o],"inRange");for(var u=1;r<l;r++)(!n.length||n[n.length-1]<i[r])&&(u&&(a.length&&e(a[a.length-1].value,"outOfRange"),u=0),e(i[r],"outOfRange"));var h=a.length;return{stops:a,outerColors:[h?a[0].color:"transparent",h?a[h-1].color:"transparent"]}}}),gO=Fs({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(t,e){this.ecModel=t,this.api=e,this.visualMapModel},render:function(t,e,i,n){this.visualMapModel=t,!1!==t.get("show")?this.doRender.apply(this,arguments):this.group.removeAll()},renderBackground:function(t){var e=this.visualMapModel,i=OM(e.get("padding")||0),n=t.getBoundingRect();t.add(new oM({z2:-1,silent:!0,shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[3]+i[1],height:n.height+i[0]+i[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},getControllerVisual:function(t,e,i){function n(t){return s[t]}function a(t,e){s[t]=e}var o=(i=i||{}).forceState,r=this.visualMapModel,s={};if("symbol"===e&&(s.symbol=r.get("itemSymbol")),"color"===e){var l=r.get("contentColor");s.color=l}var u=r.controllerVisuals[o||r.getValueState(t)];return f(XC.prepareVisualTypes(u),(function(o){var r=u[o];i.convertOpacityToAlpha&&"opacity"===o&&(o="colorAlpha",r=u.__alphaForOpacity),XC.dependsOn(o,e)&&r&&r.applyVisual(t,n,a)})),s[e]},positionGroup:function(t){var e=this.visualMapModel,i=this.api;uo(t,e.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},doRender:V}),mO=Ea,vO=f,yO=Math.min,xO=Math.max,_O=12,wO=6,bO=gO.extend({type:"visualMap.continuous",init:function(){bO.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(t,e,i,n){n&&"selectDataRange"===n.type&&n.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var i=t.get("text");this._renderEndsText(e,i,0),this._renderEndsText(e,i,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},_renderEndsText:function(t,e,i){if(e){var n=e[1-i];n=null!=n?n+"":"";var a=this.visualMapModel,o=a.get("textGap"),r=a.itemSize,s=this._shapes.barGroup,l=this._applyTransform([r[0]/2,0===i?-o:r[1]+o],s),u=this._applyTransform(0===i?"bottom":"top",s),h=this._orient,c=this.visualMapModel.textStyleModel;this.group.add(new qS({style:{x:l[0],y:l[1],textVerticalAlign:"horizontal"===h?"middle":u,textAlign:"horizontal"===h?u:"center",text:n,textFont:c.getFont(),textFill:c.getTextColor()}}))}},_renderBar:function(t){var e=this.visualMapModel,i=this._shapes,n=e.itemSize,a=this._orient,o=this._useHandle,r=Xy(e,this.api,n),s=i.barGroup=this._createBarGroup(r);s.add(i.outOfRange=qy()),s.add(i.inRange=qy(null,o?tx(this._orient):null,v(this._dragHandle,this,"all",!1),v(this._dragHandle,this,"all",!0)));var l=e.textStyleModel.getTextRect("国"),u=xO(l.width,l.height);o&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(s,0,n,u,a,r),this._createHandle(s,1,n,u,a,r)),this._createIndicator(s,n,u,a),t.add(s)},_createHandle:function(t,e,i,n,a){var o=v(this._dragHandle,this,e,!1),r=v(this._dragHandle,this,e,!0),s=qy($y(e,n),tx(this._orient),o,r);s.position[0]=i[0],t.add(s);var l=this.visualMapModel.textStyleModel,u=new qS({draggable:!0,drift:o,onmousemove:function(t){lw(t.event)},ondragend:r,style:{x:0,y:0,text:"",textFont:l.getFont(),textFill:l.getTextColor()}});this.group.add(u);var h=["horizontal"===a?n/2:1.5*n,"horizontal"===a?0===e?-1.5*n:1.5*n:0===e?-n/2:n/2],c=this._shapes;c.handleThumbs[e]=s,c.handleLabelPoints[e]=h,c.handleLabels[e]=u},_createIndicator:function(t,e,i,n){var a=qy([[0,0]],"move");a.position[0]=e[0],a.attr({invisible:!0,silent:!0}),t.add(a);var o=this.visualMapModel.textStyleModel,r=new qS({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:o.getFont(),textFill:o.getTextColor()}});this.group.add(r);var s=["horizontal"===n?i/2:wO+3,0],l=this._shapes;l.indicator=a,l.indicatorLabel=r,l.indicatorLabelPoint=s},_dragHandle:function(t,e,i,n){if(this._useHandle){if(this._dragging=!e,!e){var a=this._applyTransform([i,n],this._shapes.barGroup,!0);this._updateInterval(t,a[1]),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():Qy(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},_resetInterval:function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),i=t.getExtent(),n=[0,t.itemSize[1]];this._handleEnds=[mO(e[0],i,n,!0),mO(e[1],i,n,!0)]},_updateInterval:function(t,e){e=e||0;var i=this.visualMapModel,n=this._handleEnds,a=[0,i.itemSize[1]];EL(e,n,a,t,0);var o=i.getExtent();this._dataInterval=[mO(n[0],a,o,!0),mO(n[1],a,o,!0)]},_updateView:function(t){var e=this.visualMapModel,i=e.getExtent(),n=this._shapes,a=[0,e.itemSize[1]],o=t?a:this._handleEnds,r=this._createBarVisual(this._dataInterval,i,o,"inRange"),s=this._createBarVisual(i,i,a,"outOfRange");n.inRange.setStyle({fill:r.barColor,opacity:r.opacity}).setShape("points",r.barPoints),n.outOfRange.setStyle({fill:s.barColor,opacity:s.opacity}).setShape("points",s.barPoints),this._updateHandle(o,r)},_createBarVisual:function(t,e,i,n){var a={forceState:n,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,a),r=[this.getControllerVisual(t[0],"symbolSize",a),this.getControllerVisual(t[1],"symbolSize",a)],s=this._createBarPoints(i,r);return{barColor:new dM(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},_makeColorGradient:function(t,e){var i=[],n=(t[1]-t[0])/100;i.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var a=1;a<100;a++){var o=t[0]+n*a;if(o>t[1])break;i.push({color:this.getControllerVisual(o,"color",e),offset:a/100})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},_createBarPoints:function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,i=this.visualMapModel.get("inverse");return new Uw("horizontal"!==e||i?"horizontal"===e&&i?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||i?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,a=i.handleThumbs,o=i.handleLabels;vO([0,1],(function(r){var s=a[r];s.setStyle("fill",e.handlesColor[r]),s.position[1]=t[r];var l=Ia(i.handleLabelPoints[r],Ma(s,this.group));o[r].setStyle({x:l[0],y:l[1],text:n.formatValueText(this._dataInterval[r]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===r?"bottom":"top":"left",i.barGroup)})}),this)}},_showIndicator:function(t,e,i,n){var a=this.visualMapModel,o=a.getExtent(),r=a.itemSize,s=[0,r[1]],l=mO(t,o,s,!0),u=this._shapes,h=u.indicator;if(h){h.position[1]=l,h.attr("invisible",!1),h.setShape("points",Ky(!!i,n,l,r[1]));var c={convertOpacityToAlpha:!0},d=this.getControllerVisual(t,"color",c);h.setStyle("fill",d);var f=Ia(u.indicatorLabelPoint,Ma(h,this.group)),p=u.indicatorLabel;p.attr("invisible",!1);var g=this._applyTransform("left",u.barGroup),m=this._orient;p.setStyle({text:(i||"")+a.formatValueText(e),textVerticalAlign:"horizontal"===m?g:"middle",textAlign:"horizontal"===m?"center":g,x:f[0],y:f[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var i=t.visualMapModel.itemSize,n=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);n[1]=yO(xO(0,n[1]),i[1]),t._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var a=[0,n[1]],o=i.getExtent();t=yO(xO(a[0],t),a[1]);var r=Jy(i,o,a),s=[t-r,t+r],l=mO(t,a,o,!0),u=[mO(s[0],a,o,!0),mO(s[1],a,o,!0)];s[0]<a[0]&&(u[0]=-1/0),s[1]>a[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",r):u[1]===1/0?this._showIndicator(l,u[0],"> ",r):this._showIndicator(l,l,"≈ ",r));var h=this._hoverLinkDataIndices,c=[];(e||Qy(i))&&(c=this._hoverLinkDataIndices=i.findTargetDataIndices(u));var d=zi(h,c);this._dispatchHighDown("downplay",Yy(d[0])),this._dispatchHighDown("highlight",Yy(d[1]))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,i=this.visualMapModel;if(e&&null!=e.dataIndex){var n=this.ecModel.getSeriesByIndex(e.seriesIndex);if(i.isTargetSeries(n)){var a=n.getData(e.dataType),o=a.get(i.getDataDimension(a),e.dataIndex,!0);isNaN(o)||this._showIndicator(o,o)}}},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Yy(t)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(t,e,i,n){var a=Ma(e,n?null:this.group);return bM[x(t)?"applyTransform":"transformDirection"](t,a,i)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});Ns({type:"selectDataRange",event:"dataRangeSelected",update:"update"},(function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))})),ks(eO);var SO=dO.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(t,e){SO.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var i=this._mode=this._determineMode();MO[this._mode].call(this),this._resetSelected(t,e);var a=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=n(a)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=p(this._pieceList,(function(t){t=n(t);return"inRange"!==e&&(t.visual=null),t})))}))},completeVisualOption:function(){function t(t,e,i){return t&&t[e]&&(b(t[e])?t[e].hasOwnProperty(i):t[e]===i)}var e=this.option,i={},n=XC.listVisualTypes(),a=this.isCategory();f(e.pieces,(function(t){f(n,(function(e){t.hasOwnProperty(e)&&(i[e]=1)}))})),f(i,(function(i,n){var o=0;f(this.stateList,(function(i){o|=t(e,i,n)||t(e.target,i,n)}),this),!o&&f(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=nO.get(n,"inRange"===t?"active":"inactive",a)}))}),this),dO.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var i=this.option,n=this._pieceList,a=(e?i:t).selected||{};if(i.selected=a,f(n,(function(t,e){var i=this.getSelectedMapKey(t);a.hasOwnProperty(i)||(a[i]=!0)}),this),"single"===i.selectedMode){var o=!1;f(n,(function(t,e){var i=this.getSelectedMapKey(t);a[i]&&(o?a[i]=!1:o=!0)}),this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=n(t)},getValueState:function(t){var e=XC.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(i){var n=[],a=i.getData();a.each(this.getDataDimension(a),(function(e,i){XC.findPieceIndex(e,this._pieceList)===t&&n.push(i)}),this),e.push({seriesId:i.id,dataIndex:n})}),this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var i=t.interval||[];e=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return e},getVisualMeta:function(t){function e(e,o){var r=a.getRepresentValue({interval:e});o||(o=a.getValueState(r));var s=t(r,o);e[0]===-1/0?n[0]=s:e[1]===1/0?n[1]=s:i.push({value:e[0],color:s},{value:e[1],color:s})}if(!this.isCategory()){var i=[],n=[],a=this,o=this._pieceList.slice();if(o.length){var r=o[0].interval[0];r!==-1/0&&o.unshift({interval:[-1/0,r]}),(r=o[o.length-1].interval[1])!==1/0&&o.push({interval:[r,1/0]})}else o.push({interval:[-1/0,1/0]});var s=-1/0;return f(o,(function(t){var i=t.interval;i&&(i[0]>s&&e([s,i[0]],"outOfRange"),e(i.slice()),s=i[1])}),this),{stops:i,outerColors:n}}}}),MO={splitNumber:function(){var t=this.option,e=this._pieceList,i=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var o=(n[1]-n[0])/a;+o.toFixed(i)!==o&&i<5;)i++;t.precision=i,o=+o.toFixed(i);var r=0;t.minOpen&&e.push({index:r++,interval:[-1/0,n[0]],close:[0,0]});for(var s=n[0],l=r+a;r<l;s+=o){var u=r===a-1?n[1]:s+o;e.push({index:r++,interval:[s,u],close:[1,1]})}t.maxOpen&&e.push({index:r++,interval:[n[1],1/0],close:[0,0]}),qa(e),f(e,(function(t){t.text=this.formatValueText(t.interval)}),this)},categories:function(){var t=this.option;f(t.categories,(function(t){this._pieceList.push({text:this.formatValueText(t,!0),value:t})}),this),ex(t,this._pieceList)},pieces:function(){var t=this.option,e=this._pieceList;f(t.pieces,(function(t,i){b(t)||(t={value:t});var n={text:"",index:i};if(null!=t.label&&(n.text=t.label),t.hasOwnProperty("value")){var a=n.value=t.value;n.interval=[a,a],n.close=[1,1]}else{for(var o=n.interval=[],r=n.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],h=0;h<2;h++){for(var c=[["gte","gt","min"],["lte","lt","max"]][h],d=0;d<3&&null==o[h];d++)o[h]=t[c[d]],r[h]=s[d],u[h]=2===d;null==o[h]&&(o[h]=l[h])}u[0]&&o[1]===1/0&&(r[0]=0),u[1]&&o[0]===-1/0&&(r[1]=0),o[0]===o[1]&&r[0]&&r[1]&&(n.value=o[0])}n.visual=XC.retrieveVisuals(t),e.push(n)}),this),ex(t,e),qa(e),f(e,(function(t){var e=t.close,i=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,i)}),this)}};gO.extend({type:"visualMap.piecewise",doRender:function(){var t=this.group;t.removeAll();var e=this.visualMapModel,i=e.get("textGap"),n=e.textStyleModel,a=n.getFont(),o=n.getTextColor(),r=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,h=A(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,h,r),f(l.viewPieceList,(function(n){var l=n.piece,u=new Uw;u.onclick=v(this._onItemClick,this,l),this._enableHoverLink(u,n.indexInModelPieceList);var c=e.getRepresentValue(l);if(this._createItemSymbol(u,c,[0,0,s[0],s[1]]),h){var d=this.visualMapModel.getValueState(c);u.add(new qS({style:{x:"right"===r?-i:s[0]+i,y:s[1]/2,text:l.text,textVerticalAlign:"middle",textAlign:r,textFont:a,textFill:o,opacity:"outOfRange"===d?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,h,r),ZM(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(t,e){function i(t){var i=this.visualMapModel;i.option.hoverLink&&this.api.dispatchAction({type:t,batch:Yy(i.findTargetDataIndices(e))})}t.on("mouseover",v(i,this,"highlight")).on("mouseout",v(i,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return Xy(t,this.api,t.itemSize);var i=e.align;return i&&"auto"!==i||(i="left"),i},_renderEndsText:function(t,e,i,n,a){if(e){var o=new Uw,r=this.visualMapModel.textStyleModel;o.add(new qS({style:{x:n?"right"===a?i[0]:0:i[0]/2,y:i[1]/2,textVerticalAlign:"middle",textAlign:n?a:"center",text:e,textFont:r.getFont(),textFill:r.getTextColor()}})),t.add(o)}},_getViewData:function(){var t=this.visualMapModel,e=p(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),i=t.get("text"),n=t.get("orient"),a=t.get("inverse");return("horizontal"===n?a:!a)?e.reverse():i&&(i=i.slice().reverse()),{viewPieceList:e,endsText:i}},_createItemSymbol:function(t,e,i){t.add(Xl(this.getControllerVisual(e,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,i=e.option,a=n(i.selected),o=e.getSelectedMapKey(t);"single"===i.selectedMode?(a[o]=!0,f(a,(function(t,e){a[e]=e===o}))):a[o]=!a[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}}),ks(eO);var IO=Ka,TO=Qa,AO=Vs({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,i,n){this.mergeDefaultAndTheme(t,i),this.mergeOption(t,i,n.createdBySelf,!0)},isAnimationEnabled:function(){if(z_.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},mergeOption:function(t,e,i,n){var a=this.constructor,o=this.mainType+"Model";i||e.eachSeries((function(t){var i=t.get(this.mainType,!0),s=t[o];i&&i.data?(s?s.mergeOption(i,e,!0):(n&&ix(i),f(i.data,(function(t){t instanceof Array?(ix(t[0]),ix(t[1])):ix(t)})),r(s=new a(i,this,e),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),s.__hostSeries=t),t[o]=s):t[o]=null}),this)},formatTooltip:function(t){var e=this.getData(),i=this.getRawValue(t),n=x(i)?p(i,IO).join(", "):IO(i),a=e.getName(t),o=TO(this.name);return(null!=i||a)&&(o+="<br />"),a&&(o+=TO(a),null!=i&&(o+=" : ")),null!=i&&(o+=TO(n)),o},getData:function(){return this._data},setData:function(t){this._data=t}});c(AO,LI),AO.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});var DO=u,CO=y,LO={min:CO(ox,"min"),max:CO(ox,"max"),average:CO(ox,"average")},kO=Fs({type:"marker",init:function(){this.markerGroupMap=z()},render:function(t,e,i){var n=this.markerGroupMap;n.each((function(t){t.__keep=!1}));var a=this.type+"Model";e.eachSeries((function(t){var n=t[a];n&&this.renderSeries(t,n,e,i)}),this),n.each((function(t){!t.__keep&&this.group.remove(t.group)}),this)},renderSeries:function(){}});kO.extend({type:"markPoint",updateTransform:function(t,e,i){e.eachSeries((function(t){var e=t.markPointModel;e&&(dx(e.getData(),t,i),this.markerGroupMap.get(t.id).updateLayout(e))}),this)},renderSeries:function(t,e,i,n){var a=t.coordinateSystem,o=t.id,r=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new Mu),u=fx(a,t,e);e.setData(u),dx(e.getData(),t,n),u.each((function(t){var i=u.getItemModel(t),n=i.getShallow("symbolSize");"function"==typeof n&&(n=n(e.getRawValue(t),e.getDataParams(t))),u.setItemVisual(t,{symbolSize:n,color:i.get("itemStyle.color")||r.getVisual("color"),symbol:i.getShallow("symbol")})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){t.dataModel=e}))})),l.__keep=!0,l.group.silent=e.get("silent")||t.get("silent")}}),ks((function(t){t.markPoint=t.markPoint||{}})),AO.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end"},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});var PO=function(t,e,i,o){var s=t.getData(),l=o.type;if(!x(o)&&("min"===l||"max"===l||"average"===l||"median"===l||null!=o.xAxis||null!=o.yAxis)){var u,h;if(null!=o.yAxis||null!=o.xAxis)u=null!=o.yAxis?"y":"x",e.getAxis(u),h=A(o.yAxis,o.xAxis);else{var c=sx(o,s,e,t);u=c.valueDataDim,c.valueAxis,h=cx(s,u,l)}var d="x"===u?0:1,f=1-d,p=n(o),g={};p.type=null,p.coord=[],g.coord=[],p.coord[f]=-1/0,g.coord[f]=1/0;var m=i.get("precision");m>=0&&"number"==typeof h&&(h=+h.toFixed(Math.min(m,20))),p.coord[d]=g.coord[d]=h,o=[p,g,{type:l,valueIndex:o.valueIndex,value:h}]}return o=[rx(t,o[0]),rx(t,o[1]),r({},o[2])],o[2].type=o[2].type||"",a(o[2],o[0]),a(o[2],o[1]),o};kO.extend({type:"markLine",updateTransform:function(t,e,i){e.eachSeries((function(t){var e=t.markLineModel;if(e){var n=e.getData(),a=e.__from,o=e.__to;a.each((function(e){vx(a,e,!0,t,i),vx(o,e,!1,t,i)})),n.each((function(t){n.setItemLayout(t,[a.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},renderSeries:function(t,e,i,n){function a(e,i,a){var o=e.getItemModel(i);vx(e,i,a,t,n),e.setItemVisual(i,{symbolSize:o.get("symbolSize")||g[a?0:1],symbol:o.get("symbol",!0)||p[a?0:1],color:o.get("itemStyle.color")||s.getVisual("color")})}var o=t.coordinateSystem,r=t.id,s=t.getData(),l=this.markerGroupMap,u=l.get(r)||l.set(r,new Qd);this.group.add(u.group);var h=yx(o,t,e),c=h.from,d=h.to,f=h.line;e.__from=c,e.__to=d,e.setData(f);var p=e.get("symbol"),g=e.get("symbolSize");x(p)||(p=[p,p]),"number"==typeof g&&(g=[g,g]),h.from.each((function(t){a(c,t,!0),a(d,t,!1)})),f.each((function(t){var e=f.getItemModel(t).get("lineStyle.color");f.setItemVisual(t,{color:e||c.getItemVisual(t,"color")}),f.setItemLayout(t,[c.getItemLayout(t),d.getItemLayout(t)]),f.setItemVisual(t,{fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolSize:d.getItemVisual(t,"symbolSize"),toSymbol:d.getItemVisual(t,"symbol")})})),u.updateData(f),h.line.eachItemGraphicEl((function(t,i){t.traverse((function(t){t.dataModel=e}))})),u.__keep=!0,u.group.silent=e.get("silent")||t.get("silent")}}),ks((function(t){t.markLine=t.markLine||{}})),AO.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});var NO=function(t,e,i,n){var a=rx(t,n[0]),r=rx(t,n[1]),s=A,l=a.coord,u=r.coord;l[0]=s(l[0],-1/0),l[1]=s(l[1],-1/0),u[0]=s(u[0],1/0),u[1]=s(u[1],1/0);var h=o([{},a,r]);return h.coord=[a.coord,r.coord],h.x0=a.x,h.y0=a.y,h.x1=r.x,h.y1=r.y,h},OO=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];kO.extend({type:"markArea",updateTransform:function(t,e,i){e.eachSeries((function(t){var e=t.markAreaModel;if(e){var n=e.getData();n.each((function(e){var a=p(OO,(function(a){return Sx(n,e,a,t,i)}));n.setItemLayout(e,a),n.getItemGraphicEl(e).setShape("points",a)}))}}),this)},renderSeries:function(t,e,i,n){var a=t.coordinateSystem,o=t.id,r=t.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,{group:new Uw});this.group.add(u.group),u.__keep=!0;var h=Mx(a,t,e);e.setData(h),h.each((function(e){h.setItemLayout(e,p(OO,(function(i){return Sx(h,e,i,t,n)}))),h.setItemVisual(e,{color:r.getVisual("color")})})),h.diff(u.__data).add((function(t){var e=new nM({shape:{points:h.getItemLayout(t)}});h.setItemGraphicEl(t,e),u.group.add(e)})).update((function(t,i){var n=u.__data.getItemGraphicEl(i);ba(n,{shape:{points:h.getItemLayout(t)}},e,t),u.group.add(n),h.setItemGraphicEl(t,n)})).remove((function(t){var e=u.__data.getItemGraphicEl(t);u.group.remove(e)})).execute(),h.eachItemGraphicEl((function(t,i){var n=h.getItemModel(i),a=n.getModel("label"),o=n.getModel("emphasis.label"),r=h.getItemVisual(i,"color");t.useStyle(s(n.getModel("itemStyle").getItemStyle(),{fill:jt(r,.4),stroke:r})),t.hoverStyle=n.getModel("emphasis.itemStyle").getItemStyle(),da(t.style,t.hoverStyle,a,o,{labelFetcher:e,labelDataIndex:i,defaultText:h.getName(i)||"",isRectText:!0,autoColor:r}),ha(t,{}),t.dataModel=e})),u.__data=h,u.group.silent=e.get("silent")||t.get("silent")}}),ks((function(t){t.markArea=t.markArea||{}})),YM.registerSubTypeDefaulter("timeline",(function(){return"slider"})),Ns({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),e.resetOption("timeline"),s({currentIndex:i.option.currentIndex},t)})),Ns({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var i=e.getComponent("timeline");i&&null!=t.playState&&i.setPlayState(t.playState)}));var EO=YM.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(t,e,i){this._data,this._names,this.mergeDefaultAndTheme(t,i),this._initData()},mergeOption:function(t){EO.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],i=t.axisType,a=this._names=[];if("category"===i){var o=[];f(e,(function(t,e){var i,r=ki(t);b(t)?(i=n(t)).value=e:i=e,o.push(i),w(r)||null!=r&&!isNaN(r)||(r=""),a.push(r+"")})),e=o}var r={category:"ordinal",time:"time"}[i]||"number";(this._data=new eA([{name:"value",type:r}],this)).initData(e,a)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}});c(EO.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}}),LI);var RO=EI.extend({type:"timeline"}),zO=function(t,e,i,n){HA.call(this,t,e,i),this.type=n||"value",this.model=null};zO.prototype={constructor:zO,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},h(zO,HA);var BO=v,VO=f,FO=Math.PI;RO.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,i,n){if(this.model=t,this.api=i,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var a=this._layout(t,i),o=this._createGroup("mainGroup"),r=this._createGroup("labelGroup"),s=this._axis=this._createAxis(a,t);t.formatTooltip=function(t){return Qa(s.scale.getLabel(t))},VO(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](a,o,s,t)}),this),this._renderAxisLabel(a,r,s,t),this._position(a,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var i=t.get("label.position"),n=t.get("orient"),a=Dx(t,e);null==i||"auto"===i?i="horizontal"===n?a.y+a.height/2<e.getHeight()/2?"-":"+":a.x+a.width/2<e.getWidth()/2?"+":"-":isNaN(i)&&(i={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[n][i]);var o={horizontal:"center",vertical:i>=0||"+"===i?"left":"right"},r={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},s={horizontal:0,vertical:FO/2},l="vertical"===n?a.height:a.width,u=t.getModel("controlStyle"),h=u.get("show",!0),c=h?u.get("itemSize"):0,d=h?u.get("itemGap"):0,f=c+d,p=t.get("label.rotate")||0;p=p*FO/180;var g,m,v,y,x=u.get("position",!0),_=h&&u.get("showPlayBtn",!0),w=h&&u.get("showPrevBtn",!0),b=h&&u.get("showNextBtn",!0),S=0,M=l;return"left"===x||"bottom"===x?(_&&(g=[0,0],S+=f),w&&(m=[S,0],S+=f),b&&(v=[M-c,0],M-=f)):(_&&(g=[M-c,0],M-=f),w&&(m=[0,0],S+=f),b&&(v=[M-c,0],M-=f)),y=[S,M],t.get("inverse")&&y.reverse(),{viewRect:a,mainLength:l,orient:n,rotation:s[n],labelRotation:p,labelPosOpt:i,labelAlign:t.get("label.align")||o[n],labelBaseline:t.get("label.verticalAlign")||t.get("label.baseline")||r[n],playPosition:g,prevBtnPosition:m,nextBtnPosition:v,axisExtent:y,controlSize:c,controlGap:d}},_position:function(t,e){function i(t){var e=t.position;t.origin=[c[0][0]-e[0],c[1][0]-e[1]]}function n(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function a(t,e,i,n,a){t[n]+=i[n][a]-e[n][a]}var o=this._mainGroup,r=this._labelGroup,s=t.viewRect;if("vertical"===t.orient){var l=vt(),u=s.x,h=s.y+s.height;wt(l,l,[-u,-h]),bt(l,l,-FO/2),wt(l,l,[u,h]),(s=s.clone()).applyTransform(l)}var c=n(s),d=n(o.getBoundingRect()),f=n(r.getBoundingRect()),p=o.position,g=r.position;g[0]=p[0]=c[0][0];var m=t.labelPosOpt;if(isNaN(m))a(p,d,c,1,v="+"===m?0:1),a(g,f,c,1,1-v);else{var v=m>=0?0:1;a(p,d,c,1,v),g[1]=p[1]+m}o.attr("position",p),r.attr("position",g),o.rotation=r.rotation=t.rotation,i(o),i(r)},_createAxis:function(t,e){var i=e.getData(),n=e.get("axisType"),a=Fl(e,n);a.getTicks=function(){return i.mapArray(["value"],(function(t){return t}))};var o=i.getDataExtent("value");a.setExtent(o[0],o[1]),a.niceTicks();var r=new zO("value",a,t.axisExtent,n);return r.model=e,r},_createGroup:function(t){var e=this["_"+t]=new Uw;return this.group.add(e),e},_renderAxisLine:function(t,e,i,n){var a=i.getExtent();n.get("lineStyle.show")&&e.add(new rM({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:r({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,i,n){var a=n.getData(),o=i.scale.getTicks();VO(o,(function(t){var o=i.dataToCoord(t),r=a.getItemModel(t),s=r.getModel("itemStyle"),l=r.getModel("emphasis.itemStyle"),u={position:[o,0],onclick:BO(this._changeTimeline,this,t)},h=Lx(r,s,e,u);ha(h,l.getItemStyle()),r.get("tooltip")?(h.dataIndex=t,h.dataModel=n):h.dataIndex=h.dataModel=null}),this)},_renderAxisLabel:function(t,e,i,n){if(i.getLabelModel().get("show")){var a=n.getData(),o=i.getViewLabels();VO(o,(function(n){var o=n.tickValue,r=a.getItemModel(o),s=r.getModel("label"),l=r.getModel("emphasis.label"),u=i.dataToCoord(n.tickValue),h=new qS({position:[u,0],rotation:t.labelRotation-t.rotation,onclick:BO(this._changeTimeline,this,o),silent:!1});fa(h.style,s,{text:n.formattedLabel,textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(h),ha(h,fa({},l))}),this)}},_renderControl:function(t,e,i,n){function a(t,i,a,h){if(t){var c=Cx(n,i,u,{position:t,origin:[o/2,0],rotation:h?-r:0,rectHover:!0,style:s,onclick:a});e.add(c),ha(c,l)}}var o=t.controlSize,r=t.rotation,s=n.getModel("controlStyle").getItemStyle(),l=n.getModel("emphasis.controlStyle").getItemStyle(),u=[0,-o/2,o,o],h=n.getPlayState(),c=n.get("inverse",!0);a(t.nextBtnPosition,"controlStyle.nextIcon",BO(this._changeTimeline,this,c?"-":"+")),a(t.prevBtnPosition,"controlStyle.prevIcon",BO(this._changeTimeline,this,c?"+":"-")),a(t.playPosition,"controlStyle."+(h?"stopIcon":"playIcon"),BO(this._handlePlayClick,this,!h),!0)},_renderCurrentPointer:function(t,e,i,n){var a=n.getData(),o=n.getCurrentIndex(),r=a.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=BO(s._handlePointerDrag,s),t.ondragend=BO(s._handlePointerDragend,s),kx(t,o,i,n,!0)},onUpdate:function(t){kx(t,o,i,n)}};this._currentPointer=Lx(r,r,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var i=this._toAxisCoord(t)[0],n=Ba(this._axis.getExtent().slice());i>n[1]&&(i=n[1]),i<n[0]&&(i=n[0]),this._currentPointer.position[0]=i,this._currentPointer.dirty();var a=this._findNearestTick(i),o=this.model;(e||a!==o.getCurrentIndex()&&o.get("realtime"))&&this._changeTimeline(a)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(BO((function(){var t=this.model;this._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}),this),this.model.get("playInterval")))},_toAxisCoord:function(t){return Ia(t,this._mainGroup.getLocalTransform(),!0)},_findNearestTick:function(t){var e,i=this.model.getData(),n=1/0,a=this._axis;return i.each(["value"],(function(i,o){var r=a.dataToCoord(i),s=Math.abs(r-t);s<n&&(n=s,e=o)})),e},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})}}),ks((function(t){var e=t&&t.timeline;x(e)||(e=e?[e]:[]),f(e,(function(t){t&&Ix(t)}))}));var GO=Vs({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){GO.superApply(this,"optionUpdated",arguments),f(this.option.feature,(function(t,e){var i=_y(e);i&&a(t,i.defaultOption)}))},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}}}});Fs({type:"toolbox",render:function(t,e,i,n){function a(a,r){var s,c=h[a],d=h[r],f=new La(l[c],t,t.ecModel);if(c&&!d){if(Px(c))s={model:f,onclick:f.option.onclick,featureName:c};else{var p=_y(c);if(!p)return;s=new p(f,e,i)}u[c]=s}else{if(!(s=u[d]))return;s.model=f,s.ecModel=e,s.api=i}c||!d?f.get("show")&&!s.unusable?(o(f,s,c),f.setIconStatus=function(t,e){var i=this.option,n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,n[t]&&n[t].trigger(e)},s.render&&s.render(f,e,i,n)):s.remove&&s.remove(e,i):s.dispose&&s.dispose(e,i)}function o(n,a,o){var l=n.getModel("iconStyle"),u=n.getModel("emphasis.iconStyle"),h=a.getIcons?a.getIcons():n.get("icon"),c=n.get("title")||{};if("string"==typeof h){var d=h,p=c;c={},(h={})[o]=d,c[o]=p}var g=n.iconPaths={};f(h,(function(o,h){var d=Ca(o,{},{x:-s/2,y:-s/2,width:s,height:s});d.setStyle(l.getItemStyle()),d.hoverStyle=u.getItemStyle(),ha(d),t.get("showTitle")&&(d.__title=c[h],d.on("mouseover",(function(){var t=u.getItemStyle();d.setStyle({text:c[h],textPosition:t.textPosition||"bottom",textFill:t.fill||t.stroke||"#000",textAlign:t.textAlign||"center"})})).on("mouseout",(function(){d.setStyle({textFill:null})}))),d.trigger(n.get("iconStatus."+h)||"normal"),r.add(d),d.on("click",v(a.onclick,a,e,i,h)),g[h]=d}))}var r=this.group;if(r.removeAll(),t.get("show")){var s=+t.get("itemSize"),l=t.get("feature")||{},u=this._features||(this._features={}),h=[];f(l,(function(t,e){h.push(e)})),new Us(this._featureNames||[],h).add(a).update(a).remove(y(a,null)).execute(),this._featureNames=h,fv(r,t,i),r.add(pv(r.getBoundingRect(),t)),r.eachChild((function(t){var e=t.__title,n=t.hoverStyle;if(n&&e){var a=Ce(e,Ue(n)),o=t.position[0]+r.position[0],l=!1;t.position[1]+r.position[1]+s+a.height>i.getHeight()&&(n.textPosition="top",l=!0);var u=l?-5-a.height:s+8;o+a.width/2>i.getWidth()?(n.textPosition=["100%",u],n.textAlign="right"):o-a.width/2<0&&(n.textPosition=[0,u],n.textAlign="left")}}))}},updateView:function(t,e,i,n){f(this._features,(function(t){t.updateView&&t.updateView(t.model,e,i,n)}))},remove:function(t,e){f(this._features,(function(i){i.remove&&i.remove(t,e)})),this.group.removeAll()},dispose:function(t,e){f(this._features,(function(i){i.dispose&&i.dispose(t,e)}))}});var WO=jI.toolbox.saveAsImage;Nx.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:WO.title,type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:WO.lang.slice()},Nx.prototype.unusable=!z_.canvasSupported,Nx.prototype.onclick=function(t,e){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",a=document.createElement("a"),o=i.get("type",!0)||"png";a.download=n+"."+o,a.target="_blank";var r=e.getConnectedDataURL({type:o,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if(a.href=r,"function"!=typeof MouseEvent||z_.browser.ie||z_.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var s=atob(r.split(",")[1]),l=s.length,u=new Uint8Array(l);l--;)u[l]=s.charCodeAt(l);var h=new Blob([u]);window.navigator.msSaveOrOpenBlob(h,n+"."+o)}else{var c=i.get("lang"),d='<body style="margin:0;"><img src="'+r+'" style="max-width:100%;" title="'+(c&&c[0]||"")+'" /></body>';window.open().document.write(d)}else{var f=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});a.dispatchEvent(f)}},xy("saveAsImage",Nx);var HO=jI.toolbox.magicType;Ox.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:n(HO.title),option:{},seriesIndex:{}};var UO=Ox.prototype;UO.getIcons=function(){var t=this.model,e=t.get("icon"),i={};return f(t.get("type"),(function(t){e[t]&&(i[t]=e[t])})),i};var ZO={line:function(t,e,i,n){if("bar"===t)return a({id:e,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.line")||{},!0)},bar:function(t,e,i,n){if("line"===t)return a({id:e,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.bar")||{},!0)},stack:function(t,e,i,n){if("line"===t||"bar"===t)return a({id:e,stack:"__ec_magicType_stack__"},n.get("option.stack")||{},!0)},tiled:function(t,e,i,n){if("line"===t||"bar"===t)return a({id:e,stack:""},n.get("option.tiled")||{},!0)}},jO=[["line","bar"],["stack","tiled"]];UO.onclick=function(t,e,i){var n=this.model,a=n.get("seriesIndex."+i);if(ZO[i]){var o={series:[]};f(jO,(function(t){u(t,i)>=0&&f(t,(function(t){n.setIconStatus(t,"normal")}))})),n.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:null==a?null:{seriesIndex:a}},(function(e){var a=e.subType,r=e.id,l=ZO[i](a,r,e,n);l&&(s(l,e.option),o.series.push(l));var u=e.coordinateSystem;if(u&&"cartesian2d"===u.type&&("line"===i||"bar"===i)){var h=u.getAxesByScale("ordinal")[0];if(h){var c=h.dim+"Axis",d=t.queryComponents({mainType:c,index:e.get(name+"Index"),id:e.get(name+"Id")})[0].componentIndex;o[c]=o[c]||[];for(var f=0;f<=d;f++)o[c][d]=o[c][d]||{};o[c][d].boundaryGap="bar"===i}}})),e.dispatchAction({type:"changeMagicType",currentType:i,newOption:o})}},Ns({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)})),xy("magicType",Ox);var XO=jI.toolbox.dataView,YO=new Array(60).join("-"),qO="\t",$O=new RegExp("["+qO+"]+","g");Ux.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:n(XO.title),lang:n(XO.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},Ux.prototype.onclick=function(t,e){function i(){n.removeChild(o),x._dom=null}var n=e.getDom(),a=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",o.style.backgroundColor=a.get("backgroundColor")||"#fff";var r=document.createElement("h4"),s=a.get("lang")||[];r.innerHTML=s[0]||a.get("title"),r.style.cssText="margin: 10px 20px;",r.style.color=a.get("textColor");var l=document.createElement("div"),u=document.createElement("textarea");l.style.cssText="display:block;width:100%;overflow:auto;";var h=a.get("optionToContent"),c=a.get("contentToOption"),d=Bx(t);if("function"==typeof h){var f=h(e.getOption());"string"==typeof f?l.innerHTML=f:I(f)&&l.appendChild(f)}else l.appendChild(u),u.readOnly=a.get("readOnly"),u.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",u.style.color=a.get("textColor"),u.style.borderColor=a.get("textareaBorderColor"),u.style.backgroundColor=a.get("textareaColor"),u.value=d.value;var p=d.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:0;left:0;right:0;";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),y=document.createElement("div");m+=";background-color:"+a.get("buttonColor"),m+=";color:"+a.get("buttonTextColor");var x=this;ht(v,"click",i),ht(y,"click",(function(){var t;try{t="function"==typeof c?c(l,e.getOption()):Hx(u.value,p)}catch(t){throw i(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),i()})),v.innerHTML=s[1],y.innerHTML=s[2],y.style.cssText=m,v.style.cssText=m,!a.get("readOnly")&&g.appendChild(y),g.appendChild(v),ht(u,"keydown",(function(t){if(9===(t.keyCode||t.which)){var e=this.value,i=this.selectionStart,n=this.selectionEnd;this.value=e.substring(0,i)+qO+e.substring(n),this.selectionStart=this.selectionEnd=i+1,lw(t)}})),o.appendChild(r),o.appendChild(l),o.appendChild(g),l.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},Ux.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},Ux.prototype.dispose=function(t,e){this.remove(t,e)},xy("dataView",Ux),Ns({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var i=[];f(t.newOption.series,(function(t){var n=e.getSeriesByName(t.name)[0];if(n){var a=n.get("data");i.push({name:t.name,data:Zx(t.data,a)})}else i.push(r({type:"scatter"},t))})),e.mergeOption(s({series:i},t.newOption))}));var KO=f,JO="\0_ec_hist_store";BN.extend({type:"dataZoom.select"}),VN.extend({type:"dataZoom.select"});var QO=jI.toolbox.dataZoom,tE=f,eE="\0_ec_\0toolbox-dataZoom_";Kx.defaultOption={show:!0,icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:n(QO.title)};var iE=Kx.prototype;iE.render=function(t,e,i,n){this.model=t,this.ecModel=e,this.api=i,t_(t,e,this,n,i),Qx(t,e)},iE.onclick=function(t,e,i){nE[i].call(this)},iE.remove=function(t,e){this._brushController.unmount()},iE.dispose=function(t,e){this._brushController.dispose()};var nE={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(Xx(this.ecModel))}};iE._onBrush=function(t,e){function i(t,e,i){var r=e.getAxis(t),s=r.model,l=n(t,s,o),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(i=EL(0,i.slice(),r.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(a[l.id]={dataZoomId:l.id,startValue:i[0],endValue:i[1]})}function n(t,e,i){var n;return i.eachComponent({mainType:"dataZoom",subType:"select"},(function(i){i.getAxisModel(t,e.componentIndex)&&(n=i)})),n}if(e.isEnd&&t.length){var a={},o=this.ecModel;this._brushController.updateCovers([]),new ny(Jx(this.model.option),o,{include:["grid"]}).matchOutputRanges(t,o,(function(t,e,n){if("cartesian2d"===n.type){var a=t.brushType;"rect"===a?(i("x",n,e[0]),i("y",n,e[1])):i({lineX:"x",lineY:"y"}[a],n,e)}})),jx(o,a),this._dispatchZoomAction(a)}},iE._dispatchZoomAction=function(t){var e=[];tE(t,(function(t,i){e.push(n(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},xy("dataZoom",Kx),ks((function(t){function e(t,e){if(e){var a=t+"Index",o=e[a];null==o||"all"===o||x(o)||(o=!1===o||"none"===o?[]:[o]),i(t,(function(e,i){if(null==o||"all"===o||-1!==u(o,i)){var r={type:"select",$fromToolbox:!0,id:eE+t+i};r[a]=i,n.push(r)}}))}}function i(e,i){var n=t[e];x(n)||(n=n?[n]:[]),tE(n,i)}if(t){var n=t.dataZoom||(t.dataZoom=[]);x(n)||(t.dataZoom=n=[n]);var a=t.toolbox;if(a&&(x(a)&&(a=a[0]),a&&a.feature)){var o=a.feature.dataZoom;e("xAxis",o),e("yAxis",o)}}}));var aE=jI.toolbox.restore;e_.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:aE.title},e_.prototype.onclick=function(t,e,i){Yx(t),e.dispatchAction({type:"restore",from:this.uid})},xy("restore",e_),Ns({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var oE,rE="urn:schemas-microsoft-com:vml",sE="undefined"==typeof window?null:window,lE=!1,uE=sE&&sE.document;if(uE&&!z_.canvasSupported)try{!uE.namespaces.zrvml&&uE.namespaces.add("zrvml",rE),oE=function(t){return uE.createElement("<zrvml:"+t+' class="zrvml">')}}catch(e){oE=function(t){return uE.createElement("<"+t+' xmlns="'+rE+'" class="zrvml">')}}var hE=MS.CMD,cE=Math.round,dE=Math.sqrt,fE=Math.abs,pE=Math.cos,gE=Math.sin,mE=Math.max;if(!z_.canvasSupported){var vE=21600,yE=vE/2,xE=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=vE+","+vE,t.coordorigin="0,0"},_E=function(t){return String(t).replace(/&/g,"&").replace(/"/g,""")},wE=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},bE=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},SE=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},ME=function(t,e,i){return 1e5*(parseFloat(t)||0)+1e3*(parseFloat(e)||0)+i},IE=function(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t},TE=function(t,e,i){var n=Bt(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=wE(n[0],n[1],n[2]),t.opacity=i*n[3])},AE=function(t){var e=Bt(t);return[wE(e[0],e[1],e[2]),e[3]]},DE=function(t,e,i){var n=e.fill;if(null!=n)if(n instanceof cM){var a,o=0,r=[0,0],s=0,l=1,u=i.getBoundingRect(),h=u.width,c=u.height;if("linear"===n.type){a="gradient";var d=i.transform,f=[n.x*h,n.y*c],p=[n.x2*h,n.y2*c];d&&(tt(f,f,d),tt(p,p,d));var g=p[0]-f[0],m=p[1]-f[1];(o=180*Math.atan2(g,m)/Math.PI)<0&&(o+=360),o<1e-6&&(o=0)}else{a="gradientradial";f=[n.x*h,n.y*c],d=i.transform;var v=i.scale,y=h,x=c;r=[(f[0]-u.x)/y,(f[1]-u.y)/x],d&&tt(f,f,d),y/=v[0]*vE,x/=v[1]*vE;var _=mE(y,x);s=0/_,l=2*n.r/_-s}var w=n.colorStops.slice();w.sort((function(t,e){return t.offset-e.offset}));for(var b=w.length,S=[],M=[],I=0;I<b;I++){var T=w[I],A=AE(T.color);M.push(T.offset*l+s+" "+A[0]),0!==I&&I!==b-1||S.push(A)}if(b>=2){var D=S[0][0],C=S[1][0],L=S[0][1]*e.opacity,k=S[1][1]*e.opacity;t.type=a,t.method="none",t.focus="100%",t.angle=o,t.color=D,t.color2=C,t.colors=M.join(","),t.opacity=k,t.opacity2=L}"radial"===a&&(t.focusposition=r.join(","))}else TE(t,n,e.opacity)},CE=function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof cM||TE(t,e.stroke,e.opacity)},LE=function(t,e,i,n){var a="fill"==e,o=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(a||!a&&i.lineWidth)?(t[a?"filled":"stroked"]="true",i[e]instanceof cM&&SE(t,o),o||(o=i_(e)),a?DE(o,i,n):CE(o,i),bE(t,o)):(t[a?"filled":"stroked"]="false",SE(t,o))},kE=[[],[],[]],PE=function(t,e){var i,n,a,o,r,s,l=hE.M,u=hE.C,h=hE.L,c=hE.A,d=hE.Q,f=[],p=t.data,g=t.len();for(o=0;o<g;){switch(a=p[o++],n="",i=0,a){case l:n=" m ",i=1,r=p[o++],s=p[o++],kE[0][0]=r,kE[0][1]=s;break;case h:n=" l ",i=1,r=p[o++],s=p[o++],kE[0][0]=r,kE[0][1]=s;break;case d:case u:n=" c ",i=3;var m,v,y=p[o++],x=p[o++],_=p[o++],w=p[o++];a===d?(m=_,v=w,_=(_+2*y)/3,w=(w+2*x)/3,y=(r+2*y)/3,x=(s+2*x)/3):(m=p[o++],v=p[o++]),kE[0][0]=y,kE[0][1]=x,kE[1][0]=_,kE[1][1]=w,kE[2][0]=m,kE[2][1]=v,r=m,s=v;break;case c:var b=0,S=0,M=1,I=1,T=0;e&&(b=e[4],S=e[5],M=dE(e[0]*e[0]+e[1]*e[1]),I=dE(e[2]*e[2]+e[3]*e[3]),T=Math.atan2(-e[1]/I,e[0]/M));var A=p[o++],D=p[o++],C=p[o++],L=p[o++],k=p[o++]+T,P=p[o++]+k+T;o++;var N=p[o++],O=A+pE(k)*C,E=D+gE(k)*L,R=(y=A+pE(P)*C,x=D+gE(P)*L,N?" wa ":" at ");Math.abs(O-y)<1e-4&&(Math.abs(P-k)>.01?N&&(O+=.0125):Math.abs(E-D)<1e-4?N&&O<A||!N&&O>A?x-=.0125:x+=.0125:N&&E<D||!N&&E>D?y+=.0125:y-=.0125),f.push(R,cE(((A-C)*M+b)*vE-yE),",",cE(((D-L)*I+S)*vE-yE),",",cE(((A+C)*M+b)*vE-yE),",",cE(((D+L)*I+S)*vE-yE),",",cE((O*M+b)*vE-yE),",",cE((E*I+S)*vE-yE),",",cE((y*M+b)*vE-yE),",",cE((x*I+S)*vE-yE)),r=y,s=x;break;case hE.R:var z=kE[0],B=kE[1];z[0]=p[o++],z[1]=p[o++],B[0]=z[0]+p[o++],B[1]=z[1]+p[o++],e&&(tt(z,z,e),tt(B,B,e)),z[0]=cE(z[0]*vE-yE),B[0]=cE(B[0]*vE-yE),z[1]=cE(z[1]*vE-yE),B[1]=cE(B[1]*vE-yE),f.push(" m ",z[0],",",z[1]," l ",B[0],",",z[1]," l ",B[0],",",B[1]," l ",z[0],",",B[1]);break;case hE.Z:f.push(" x ")}if(i>0){f.push(n);for(var V=0;V<i;V++){var F=kE[V];e&&tt(F,F,e),f.push(cE(F[0]*vE-yE),",",cE(F[1]*vE-yE),V<i-1?",":"")}}}return f.join("")};Pn.prototype.brushVML=function(t){var e=this.style,i=this._vmlEl;i||(i=i_("shape"),xE(i),this._vmlEl=i),LE(i,"fill",e,this),LE(i,"stroke",e,this);var n=this.transform,a=null!=n,o=i.getElementsByTagName("stroke")[0];if(o){var r=e.lineWidth;if(a&&!e.strokeNoScale){var s=n[0]*n[3]-n[1]*n[2];r*=dE(fE(s))}o.weight=r+"px"}var l=this.path||(this.path=new MS);this.__dirtyPath&&(l.beginPath(),this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),i.path=PE(l,this.transform),i.style.zIndex=ME(this.zlevel,this.z,this.z2),bE(t,i),null!=e.text?this.drawRectText(t,this.getBoundingRect()):this.removeRectText(t)},Pn.prototype.onRemove=function(t){SE(t,this._vmlEl),this.removeRectText(t)},Pn.prototype.onAdd=function(t){bE(t,this._vmlEl),this.appendRectText(t)};var NE=function(t){return"object"==typeof t&&t.tagName&&"IMG"===t.tagName.toUpperCase()};ci.prototype.brushVML=function(t){var e,i,n=this.style,a=n.image;if(NE(a)){var o=a.src;if(o===this._imageSrc)e=this._imageWidth,i=this._imageHeight;else{var r=a.runtimeStyle,s=r.width,l=r.height;r.width="auto",r.height="auto",e=a.width,i=a.height,r.width=s,r.height=l,this._imageSrc=o,this._imageWidth=e,this._imageHeight=i}a=o}else a===this._imageSrc&&(e=this._imageWidth,i=this._imageHeight);if(a){var u=n.x||0,h=n.y||0,c=n.width,d=n.height,f=n.sWidth,p=n.sHeight,g=n.sx||0,m=n.sy||0,v=f&&p,y=this._vmlEl;y||(y=uE.createElement("div"),xE(y),this._vmlEl=y);var x,_=y.style,w=!1,b=1,S=1;if(this.transform&&(x=this.transform,b=dE(x[0]*x[0]+x[1]*x[1]),S=dE(x[2]*x[2]+x[3]*x[3]),w=x[1]||x[2]),w){var M=[u,h],I=[u+c,h],T=[u,h+d],A=[u+c,h+d];tt(M,M,x),tt(I,I,x),tt(T,T,x),tt(A,A,x);var D=mE(M[0],I[0],T[0],A[0]),C=mE(M[1],I[1],T[1],A[1]),L=[];L.push("M11=",x[0]/b,",","M12=",x[2]/S,",","M21=",x[1]/b,",","M22=",x[3]/S,",","Dx=",cE(u*b+x[4]),",","Dy=",cE(h*S+x[5])),_.padding="0 "+cE(D)+"px "+cE(C)+"px 0",_.filter="progid:DXImageTransform.Microsoft.Matrix("+L.join("")+", SizingMethod=clip)"}else x&&(u=u*b+x[4],h=h*S+x[5]),_.filter="",_.left=cE(u)+"px",_.top=cE(h)+"px";var k=this._imageEl,P=this._cropEl;k||(k=uE.createElement("div"),this._imageEl=k);var N=k.style;if(v){if(e&&i)N.width=cE(b*e*c/f)+"px",N.height=cE(S*i*d/p)+"px";else{var O=new Image,E=this;O.onload=function(){O.onload=null,e=O.width,i=O.height,N.width=cE(b*e*c/f)+"px",N.height=cE(S*i*d/p)+"px",E._imageWidth=e,E._imageHeight=i,E._imageSrc=a},O.src=a}P||((P=uE.createElement("div")).style.overflow="hidden",this._cropEl=P);var R=P.style;R.width=cE((c+g*c/f)*b),R.height=cE((d+m*d/p)*S),R.filter="progid:DXImageTransform.Microsoft.Matrix(Dx="+-g*c/f*b+",Dy="+-m*d/p*S+")",P.parentNode||y.appendChild(P),k.parentNode!=P&&P.appendChild(k)}else N.width=cE(b*c)+"px",N.height=cE(S*d)+"px",y.appendChild(k),P&&P.parentNode&&(y.removeChild(P),this._cropEl=null);var z="",B=n.opacity;B<1&&(z+=".Alpha(opacity="+cE(100*B)+") "),z+="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+a+", SizingMethod=scale)",N.filter=z,y.style.zIndex=ME(this.zlevel,this.z,this.z2),bE(t,y),null!=n.text&&this.drawRectText(t,this.getBoundingRect())}},ci.prototype.onRemove=function(t){SE(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},ci.prototype.onAdd=function(t){bE(t,this._vmlEl),this.appendRectText(t)};var OE,EE={},RE=0,zE=document.createElement("div"),BE=function(t){var e=EE[t];if(!e){RE>100&&(RE=0,EE={});var i,n=zE.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(t){}e={style:n.fontStyle||"normal",variant:n.fontVariant||"normal",weight:n.fontWeight||"normal",size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},EE[t]=e,RE++}return e};!function(t,e){hb[t]=e}("measureText",(function(t,e){var i=uE;OE||((OE=i.createElement("div")).style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",uE.body.appendChild(OE));try{OE.style.font=e}catch(t){}return OE.innerHTML="",OE.appendChild(i.createTextNode(t)),{width:OE.offsetWidth}}));for(var VE=new he,FE=[gb,hi,ci,Pn,qS],GE=0;GE<FE.length;GE++){var WE=FE[GE].prototype;WE.drawRectText=function(t,e,i,n){var a=this.style;this.__dirty&&je(a);var o=a.text;if(null!=o&&(o+=""),o){if(a.rich){var r=We(o,a);o=[];for(var s=0;s<r.lines.length;s++){for(var l=r.lines[s].tokens,u=[],h=0;h<l.length;h++)u.push(l[h].text);o.push(u.join(""))}o=o.join("\n")}var c,d,f=a.textAlign,p=a.textVerticalAlign,g=BE(a.font),m=g.style+" "+g.variant+" "+g.weight+" "+g.size+'px "'+g.family+'"';i=i||Ce(o,m,f,p);var v=this.transform;if(v&&!n&&(VE.copy(e),VE.applyTransform(v),e=VE),n)c=e.x,d=e.y;else{var y=a.textPosition,x=a.textDistance;if(y instanceof Array)c=e.x+IE(y[0],e.width),d=e.y+IE(y[1],e.height),f=f||"left";else{var _=Oe(y,e,x);c=_.x,d=_.y,f=f||_.textAlign,p=p||_.textVerticalAlign}}c=Pe(c,i.width,f),d=Ne(d,i.height,p),d+=i.height/2;var w,b,S,M=i_,I=this._textVmlEl;I?b=(w=(S=I.firstChild).nextSibling).nextSibling:(I=M("line"),w=M("path"),b=M("textpath"),S=M("skew"),b.style["v-text-align"]="left",xE(I),w.textpathok=!0,b.on=!0,I.from="0 0",I.to="1000 0.05",bE(I,S),bE(I,w),bE(I,b),this._textVmlEl=I);var T=[c,d],A=I.style;v&&n?(tt(T,T,v),S.on=!0,S.matrix=v[0].toFixed(3)+","+v[2].toFixed(3)+","+v[1].toFixed(3)+","+v[3].toFixed(3)+",0,0",S.offset=(cE(T[0])||0)+","+(cE(T[1])||0),S.origin="0 0",A.left="0px",A.top="0px"):(S.on=!1,A.left=cE(c)+"px",A.top=cE(d)+"px"),b.string=_E(o);try{b.style.font=m}catch(t){}LE(I,"fill",{fill:a.textFill,opacity:a.opacity},this),LE(I,"stroke",{stroke:a.textStroke,opacity:a.opacity,lineDash:a.lineDash},this),I.style.zIndex=ME(this.zlevel,this.z,this.z2),bE(t,I)}},WE.removeRectText=function(t){SE(t,this._textVmlEl),this._textVmlEl=null},WE.appendRectText=function(t){bE(t,this._textVmlEl)}}qS.prototype.brushVML=function(t){var e=this.style;null!=e.text?this.drawRectText(t,{x:e.x||0,y:e.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(t)},qS.prototype.onRemove=function(t){this.removeRectText(t)},qS.prototype.onAdd=function(t){this.appendRectText(t)}}o_.prototype={constructor:o_,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0,!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,i=0;i<t.length;i++){var n=t[i];n.invisible||n.ignore?(n.__alreadyNotVisible||n.onRemove(e),n.__alreadyNotVisible=!0):(n.__alreadyNotVisible&&n.onAdd(e),n.__alreadyNotVisible=!1,n.__dirty&&(n.beforeBrush&&n.beforeBrush(),(n.brushVML||n.brush).call(n,e),n.afterBrush&&n.afterBrush())),n.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(e),this._firstPaint=!1)},resize:function(t,e){t=null==t?this._getWidth():t,e=null==e?this._getHeight():e;if(this._width!=t||this._height!=e){this._width=t,this._height=e;var i=this._vmlViewport.style;i.width=t+"px",i.height=e+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var t=this.root,e=t.currentStyle;return(t.clientWidth||a_(e.width))-a_(e.paddingLeft)-a_(e.paddingRight)|0},_getHeight:function(){var t=this.root,e=t.currentStyle;return(t.clientHeight||a_(e.height))-a_(e.paddingTop)-a_(e.paddingBottom)|0}},f(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],(function(t){o_.prototype[t]=r_(t)})),Ai("vml",o_);var HE="http://www.w3.org/2000/svg",UE=MS.CMD,ZE=Array.prototype.join,jE="none",XE=Math.round,YE=Math.sin,qE=Math.cos,$E=Math.PI,KE=2*Math.PI,JE=180/$E,QE=1e-4,tR={brush:function(t){var e=t.style,i=t.__svgEl;i||(i=s_("path"),t.__svgEl=i),t.path||t.createPathProxy();var n=t.path;if(t.__dirtyPath){n.beginPath(),t.buildPath(n,t.shape),t.__dirtyPath=!1;var a=m_(n);a.indexOf("NaN")<0&&f_(i,"d",a)}g_(i,e,!1,t),d_(i,t.transform),null!=e.text&&aR(t,t.getBoundingRect())}},eR={brush:function(t){var e=t.style,i=e.image;if(i instanceof HTMLImageElement&&(i=i.src),i){var n=e.x||0,a=e.y||0,o=e.width,r=e.height,s=t.__svgEl;s||(s=s_("image"),t.__svgEl=s),i!==t.__imageSrc&&(p_(s,"href",i),t.__imageSrc=i),f_(s,"width",o),f_(s,"height",r),f_(s,"x",n),f_(s,"y",a),d_(s,t.transform),null!=e.text&&aR(t,t.getBoundingRect())}}},iR={},nR=new he,aR=function(t,e,i){var n=t.style;t.__dirty&&je(n);var a=n.text;if(null!=a){a+="";var o=t.__textSvgEl;o||(o=s_("text"),t.__textSvgEl=o);var r,s,l=n.textPosition,u=n.textDistance,h=n.textAlign||"left";"number"==typeof n.fontSize&&(n.fontSize+="px");var c=n.font||[n.fontStyle||"",n.fontWeight||"",n.fontSize||"",n.fontFamily||""].join(" ")||ub,d=v_(n.textVerticalAlign),f=(i=Ce(a,c,h,d)).lineHeight;if(l instanceof Array)r=e.x+l[0],s=e.y+l[1];else{var p=Oe(l,e,u);r=p.x,s=p.y,d=v_(p.textVerticalAlign),h=p.textAlign}f_(o,"alignment-baseline",d),c&&(o.style.font=c);var g=n.textPadding;if(f_(o,"x",r),f_(o,"y",s),g_(o,n,!0,t),t instanceof qS||t.style.transformText)d_(o,t.transform);else{if(t.transform)nR.copy(e),nR.applyTransform(t.transform),e=nR;else{var m=t.transformCoordToGlobal(e.x,e.y);e.x=m[0],e.y=m[1],t.transform=yt(vt())}var v=n.textOrigin;"center"===v?(r=i.width/2+r,s=i.height/2+s):v&&(r=v[0]+r,s=v[1]+s);var y=-n.textRotation||0,x=vt();bt(x,x,y),wt(x,x,m=[t.transform[4],t.transform[5]]),d_(o,x)}var _=a.split("\n"),w=_.length,b=h;"left"===b?(b="start",g&&(r+=g[3])):"right"===b?(b="end",g&&(r-=g[1])):"center"===b&&(b="middle",g&&(r+=(g[3]-g[1])/2));var S=0;if("after-edge"===d?(S=-i.height+f,g&&(S-=g[2])):"middle"===d?(S=(-i.height+f)/2,g&&(s+=(g[0]-g[2])/2)):g&&(S+=g[0]),t.__text!==a||t.__textFont!==c){var M=t.__tspanList||[];for(t.__tspanList=M,T=0;T<w;T++)(A=M[T])?A.innerHTML="":(A=M[T]=s_("tspan"),o.appendChild(A),f_(A,"alignment-baseline",d),f_(A,"text-anchor",b)),f_(A,"x",r),f_(A,"y",s+T*f+S),A.appendChild(document.createTextNode(_[T]));for(;T<M.length;T++)o.removeChild(M[T]);M.length=w,t.__text=a,t.__textFont=c}else if(t.__tspanList.length)for(var I=t.__tspanList.length,T=0;T<I;++T){var A=t.__tspanList[T];A&&(f_(A,"x",r),f_(A,"y",s+T*f+S))}}};iR.drawRectText=aR,iR.brush=function(t){var e=t.style;null!=e.text&&(e.textPosition=[0,0],aR(t,{x:e.x||0,y:e.y||0,width:0,height:0},t.getBoundingRect()))},y_.prototype={diff:function(t,e,i){i||(i=function(t,e){return t===e}),this.equals=i;var n=this;t=t.slice();var a=(e=e.slice()).length,o=t.length,r=1,s=a+o,l=[{newPos:-1,components:[]}],u=this.extractCommon(l[0],e,t,0);if(l[0].newPos+1>=a&&u+1>=o){for(var h=[],c=0;c<e.length;c++)h.push(c);return[{indices:h,count:e.length}]}for(;r<=s;){var d=function(){for(var i=-1*r;i<=r;i+=2){var s,u=l[i-1],h=l[i+1],c=(h?h.newPos:0)-i;u&&(l[i-1]=void 0);var d=u&&u.newPos+1<a,f=h&&0<=c&&c<o;if(d||f){if(!d||f&&u.newPos<h.newPos?(s=__(h),n.pushComponent(s.components,void 0,!0)):((s=u).newPos++,n.pushComponent(s.components,!0,void 0)),c=n.extractCommon(s,e,t,i),s.newPos+1>=a&&c+1>=o)return x_(0,s.components);l[i]=s}else l[i]=void 0}r++}();if(d)return d}},pushComponent:function(t,e,i){var n=t[t.length-1];n&&n.added===e&&n.removed===i?t[t.length-1]={count:n.count+1,added:e,removed:i}:t.push({count:1,added:e,removed:i})},extractCommon:function(t,e,i,n){for(var a=e.length,o=i.length,r=t.newPos,s=r-n,l=0;r+1<a&&s+1<o&&this.equals(e[r+1],i[s+1]);)r++,s++,l++;return l&&t.components.push({count:l}),t.newPos=r,s},tokenize:function(t){return t.slice()},join:function(t){return t.slice()}};var oR=new y_,rR=function(t,e,i){return oR.diff(t,e,i)};w_.prototype.createElement=s_,w_.prototype.getDefs=function(t){var e=this._svgRoot,i=this._svgRoot.getElementsByTagName("defs");return 0===i.length?t?((i=e.insertBefore(this.createElement("defs"),e.firstChild)).contains||(i.contains=function(t){var e=i.children;if(!e)return!1;for(var n=e.length-1;n>=0;--n)if(e[n]===t)return!0;return!1}),i):null:i[0]},w_.prototype.update=function(t,e){if(t){var i=this.getDefs(!1);if(t[this._domName]&&i.contains(t[this._domName]))"function"==typeof e&&e(t);else{var n=this.add(t);n&&(t[this._domName]=n)}}},w_.prototype.addDom=function(t){this.getDefs(!0).appendChild(t)},w_.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},w_.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return f(this._tagNames,(function(i){var n=t.getElementsByTagName(i);e=e.concat([].slice.call(n))})),e},w_.prototype.markAllUnused=function(){var t=this;f(this.getDoms(),(function(e){e[t._markLabel]="0"}))},w_.prototype.markUsed=function(t){t&&(t[this._markLabel]="1")},w_.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var e=this;f(this.getDoms(),(function(i){"1"!==i[e._markLabel]&&t.removeChild(i)}))}},w_.prototype.getSvgProxy=function(t){return t instanceof Pn?tR:t instanceof ci?eR:t instanceof qS?iR:tR},w_.prototype.getTextSvgElement=function(t){return t.__textSvgEl},w_.prototype.getSvgElement=function(t){return t.__svgEl},h(b_,w_),b_.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var i=this;f(["fill","stroke"],(function(n){if(e.style[n]&&("linear"===e.style[n].type||"radial"===e.style[n].type)){var a,o=e.style[n],r=i.getDefs(!0);o._dom?(a=o._dom,r.contains(o._dom)||i.addDom(a)):a=i.add(o),i.markUsed(e);var s=a.getAttribute("id");t.setAttribute(n,"url(#"+s+")")}}))}},b_.prototype.add=function(t){var e;if("linear"===t.type)e=this.createElement("linearGradient");else{if("radial"!==t.type)return Bw("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},b_.prototype.update=function(t){var e=this;w_.prototype.update.call(this,t,(function(){var i=t.type,n=t._dom.tagName;"linear"===i&&"linearGradient"===n||"radial"===i&&"radialGradient"===n?e.updateDom(t,t._dom):(e.removeDom(t),e.add(t))}))},b_.prototype.updateDom=function(t,e){if("linear"===t.type)e.setAttribute("x1",t.x),e.setAttribute("y1",t.y),e.setAttribute("x2",t.x2),e.setAttribute("y2",t.y2);else{if("radial"!==t.type)return void Bw("Illegal gradient type.");e.setAttribute("cx",t.x),e.setAttribute("cy",t.y),e.setAttribute("r",t.r)}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var i=t.colorStops,n=0,a=i.length;n<a;++n){var o=this.createElement("stop");o.setAttribute("offset",100*i[n].offset+"%"),o.setAttribute("stop-color",i[n].color),e.appendChild(o)}t._dom=e},b_.prototype.markUsed=function(t){if(t.style){var e=t.style.fill;e&&e._dom&&w_.prototype.markUsed.call(this,e._dom),(e=t.style.stroke)&&e._dom&&w_.prototype.markUsed.call(this,e._dom)}},h(S_,w_),S_.prototype.update=function(t){var e=this.getSvgElement(t);e&&this.updateDom(e,t.__clipPaths,!1);var i=this.getTextSvgElement(t);i&&this.updateDom(i,t.__clipPaths,!0),this.markUsed(t)},S_.prototype.updateDom=function(t,e,i){if(e&&e.length>0){var n,a,o=this.getDefs(!0),r=e[0],s=i?"_textDom":"_dom";r[s]?(a=r[s].getAttribute("id"),n=r[s],o.contains(n)||o.appendChild(n)):(a="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(n=this.createElement("clipPath")).setAttribute("id",a),o.appendChild(n),r[s]=n);var l=this.getSvgProxy(r);if(r.transform&&r.parent.invTransform&&!i){var u=Array.prototype.slice.call(r.transform);_t(r.transform,r.parent.invTransform,r.transform),l.brush(r),r.transform=u}else l.brush(r);var h=this.getSvgElement(r);n.innerHTML="",n.appendChild(h.cloneNode()),t.setAttribute("clip-path","url(#"+a+")"),e.length>1&&this.updateDom(n,e.slice(1),i)}else t&&t.setAttribute("clip-path","none")},S_.prototype.markUsed=function(t){var e=this;t.__clipPaths&&t.__clipPaths.length>0&&f(t.__clipPaths,(function(t){t._dom&&w_.prototype.markUsed.call(e,t._dom),t._textDom&&w_.prototype.markUsed.call(e,t._textDom)}))},h(M_,w_),M_.prototype.addWithoutUpdate=function(t,e){if(e&&I_(e.style)){var i,n=e.style;n._shadowDom?(i=n._shadowDom,this.getDefs(!0).contains(n._shadowDom)||this.addDom(i)):i=this.add(e),this.markUsed(e);var a=i.getAttribute("id");t.style.filter="url(#"+a+")"}},M_.prototype.add=function(t){var e=this.createElement("filter"),i=t.style;return i._shadowDomId=i._shadowDomId||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-shadow-"+i._shadowDomId),this.updateDom(t,e),this.addDom(e),e},M_.prototype.update=function(t,e){var i=e.style;if(I_(i)){var n=this;w_.prototype.update.call(this,e,(function(t){n.updateDom(e,t._shadowDom)}))}else this.remove(t,i)},M_.prototype.remove=function(t,e){null!=e._shadowDomId&&(this.removeDom(e),t.style.filter="")},M_.prototype.updateDom=function(t,e){var i=e.getElementsByTagName("feDropShadow");i=0===i.length?this.createElement("feDropShadow"):i[0];var n,a,o,r,s=t.style,l=t.scale&&t.scale[0]||1,u=t.scale&&t.scale[1]||1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)n=s.shadowOffsetX||0,a=s.shadowOffsetY||0,o=s.shadowBlur,r=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(e,s);n=s.textShadowOffsetX||0,a=s.textShadowOffsetY||0,o=s.textShadowBlur,r=s.textShadowColor}i.setAttribute("dx",n/l),i.setAttribute("dy",a/u),i.setAttribute("flood-color",r);var h=o/2/l+" "+o/2/u;i.setAttribute("stdDeviation",h),e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width",Math.ceil(o/2*200)+"%"),e.setAttribute("height",Math.ceil(o/2*200)+"%"),e.appendChild(i),s._shadowDom=e},M_.prototype.markUsed=function(t){var e=t.style;e&&e._shadowDom&&w_.prototype.markUsed.call(this,e._shadowDom)};var sR=function(t,e,i,n){this.root=t,this.storage=e,this._opts=i=r({},i||{});var a=s_("svg");a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a.setAttribute("version","1.1"),a.setAttribute("baseProfile","full"),a.style.cssText="user-select:none;position:absolute;left:0;top:0;",this.gradientManager=new b_(n,a),this.clipPathManager=new S_(n,a),this.shadowManager=new M_(n,a);var o=document.createElement("div");o.style.cssText="overflow:hidden;position:relative",this._svgRoot=a,this._viewport=o,t.appendChild(o),o.appendChild(a),this.resize(i.width,i.height),this._visibleList=[]};sR.prototype={constructor:sR,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},setBackgroundColor:function(t){this._viewport.style.background=t},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var e,i=this._svgRoot,n=this._visibleList,a=t.length,o=[];for(e=0;e<a;e++){var r=A_(f=t[e]),s=N_(f)||P_(f);f.invisible||(f.__dirty&&(r&&r.brush(f),this.clipPathManager.update(f),f.style&&(this.gradientManager.update(f.style.fill),this.gradientManager.update(f.style.stroke),this.shadowManager.update(s,f)),f.__dirty=!1),o.push(f))}var l,u=rR(n,o);for(e=0;e<u.length;e++)if((c=u[e]).removed)for(d=0;d<c.count;d++){s=N_(f=n[c.indices[d]]);var h=P_(f);k_(i,s),k_(i,h)}for(e=0;e<u.length;e++){var c=u[e];if(c.added)for(d=0;d<c.count;d++){s=N_(f=o[c.indices[d]]),h=P_(f);l?C_(i,s,l):L_(i,s),s?C_(i,h,s):l?C_(i,h,l):L_(i,h),C_(i,h,s),l=h||s||l,this.gradientManager.addWithoutUpdate(s,f),this.shadowManager.addWithoutUpdate(l,f),this.clipPathManager.markUsed(f)}else if(!c.removed)for(var d=0;d<c.count;d++){var f=o[c.indices[d]];l=s=P_(f)||N_(f)||l,this.gradientManager.markUsed(f),this.gradientManager.addWithoutUpdate(s,f),this.shadowManager.markUsed(f),this.shadowManager.addWithoutUpdate(s,f),this.clipPathManager.markUsed(f)}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=o},_getDefs:function(t){var e=this._svgRoot,i=this._svgRoot.getElementsByTagName("defs");return 0===i.length?t?((i=e.insertBefore(s_("defs"),e.firstChild)).contains||(i.contains=function(t){var e=i.children;if(!e)return!1;for(var n=e.length-1;n>=0;--n)if(e[n]===t)return!0;return!1}),i):null:i[0]},resize:function(t,e){var i=this._viewport;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!==t||this._height!==e){this._width=t,this._height=e;var a=i.style;a.width=t+"px",a.height=e+"px";var o=this._svgRoot;o.setAttribute("width",t),o.setAttribute("height",e)}},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[i]&&"auto"!==e[i])return parseFloat(e[i]);var r=this.root,s=document.defaultView.getComputedStyle(r);return(r[n]||T_(s[i])||T_(r.style[i]))-(T_(s[a])||0)-(T_(s[o])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},pathToDataUrl:function(){return this.refresh(),"data:image/svg+xml;charset=UTF-8,"+this._svgRoot.outerHTML}},f(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],(function(t){sR.prototype[t]=O_(t)})),Ai("svg",sR),e.version="4.2.0",e.dependencies=wT,e.PRIORITY=IT,e.init=function(t,e,i){var n=Cs(t);if(n)return n;var a=new ss(t,e,i);return a.id="ec_"+WT++,FT[a.id]=a,Wi(t,UT,a.id),As(a),a},e.connect=function(t){if(x(t)){var e=t;t=null,vT(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+HT++,vT(e,(function(e){e.group=t}))}return GT[t]=!0,t},e.disConnect=Ds,e.disconnect=ZT,e.dispose=function(t){"string"==typeof t?t=FT[t]:t instanceof ss||(t=Cs(t)),t instanceof ss&&!t.isDisposed()&&t.dispose()},e.getInstanceByDom=Cs,e.getInstanceById=function(t){return FT[t]},e.registerTheme=Ls,e.registerPreprocessor=ks,e.registerProcessor=Ps,e.registerPostUpdate=function(t){RT.push(t)},e.registerAction=Ns,e.registerCoordinateSystem=Os,e.getCoordinateSystemDimensions=function(t){var e=Vo.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()},e.registerLayout=Es,e.registerVisual=Rs,e.registerLoading=Bs,e.extendComponentModel=Vs,e.extendComponentView=Fs,e.extendSeriesModel=Gs,e.extendChartView=Ws,e.setCanvasCreator=function(t){i("createCanvas",t)},e.registerMap=function(t,e,i){pT.registerMap(t,e,i)},e.getMap=function(t){var e=pT.retrieveMap(t);return e&&e[0]&&{geoJson:e[0].geoJSON,specialAreas:e[0].specialAreas}},e.dataTool=jT,e.zrender=Pb,e.number=NM,e.format=GM,e.throttle=Lr,e.helper=BA,e.matrix=fw,e.vector=nw,e.color=Pw,e.parseGeoJSON=FA,e.parseGeoJson=UA,e.util=ZA,e.graphic=jA,e.List=eA,e.Model=La,e.Axis=HA,e.env=z_}))}).call(this,i("5a52")["default"])},f29f:function(t,e,i){"use strict";i.r(e);var n=i("faf3"),a=i("108d");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);var r=i("baf3");for(var o in r)"default"!==o&&function(t){i.d(e,t,(function(){return r[t]}))}(o);i("219a");var s=i("f0c5");a["default"].__module="echarts";var l=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"0595e46c",null,!1,n["a"],a["default"]);e["default"]=l.exports},faf3:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"content"},[i("v-uni-view",{staticClass:"echarts",attrs:{"change:prop":t.echarts.updateEcharts,id:"echarts"},on:{click:function(e){e=t.$handleWxsEvent(e),t.echarts.onClick(e,t.$getComponentDescriptor())}}})],1)},o=[]},fb2c:function(t,e,i){var n=i("74e8");n("Uint32",(function(t){return function(e,i,n){return t(this,e,i,n)}}))}}]);
|