@xysfe/actui 1.6.54-beta.11 → 1.6.54-beta.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/BScroll/index.js"),require("@xysfe/actui/es/assets/img/redCircle.png"),require("@xysfe/actui/es/assets/img/purpleCircle.png"),require("@xysfe/actui/es/assets/img/grayCircle.png"),require("@xysfe/actui/es/assets/img/cps-orangeCircle.png"),require("@xysfe/actui/es/assets/img/cps-redCircle.png"),require("@xysfe/actui/es/assets/img/cps-grayCircle.png")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/create/index.js","@xysfe/actui/es/BScroll/index.js","@xysfe/actui/es/assets/img/redCircle.png","@xysfe/actui/es/assets/img/purpleCircle.png","@xysfe/actui/es/assets/img/grayCircle.png","@xysfe/actui/es/assets/img/cps-orangeCircle.png","@xysfe/actui/es/assets/img/cps-redCircle.png","@xysfe/actui/es/assets/img/cps-grayCircle.png"],e):"object"==typeof exports?exports.GoldFinanceChart=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/BScroll/index.js"),require("@xysfe/actui/es/assets/img/redCircle.png"),require("@xysfe/actui/es/assets/img/purpleCircle.png"),require("@xysfe/actui/es/assets/img/grayCircle.png"),require("@xysfe/actui/es/assets/img/cps-orangeCircle.png"),require("@xysfe/actui/es/assets/img/cps-redCircle.png"),require("@xysfe/actui/es/assets/img/cps-grayCircle.png")):t.GoldFinanceChart=e(t["@xysfe/actui/es/assets/utils/create/index.js"],t["@xysfe/actui/es/BScroll/index.js"],t["@xysfe/actui/es/assets/img/redCircle.png"],t["@xysfe/actui/es/assets/img/purpleCircle.png"],t["@xysfe/actui/es/assets/img/grayCircle.png"],t["@xysfe/actui/es/assets/img/cps-orangeCircle.png"],t["@xysfe/actui/es/assets/img/cps-redCircle.png"],t["@xysfe/actui/es/assets/img/cps-grayCircle.png"])}("undefined"!=typeof self?self:this,function(t,e,n,i,r,o,a,s){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../es",e(e.s=1933)}({0:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},1:function(t,e,n){var i=n(27)("wks"),r=n(24),o=n(0).Symbol,a="function"==typeof o;(t.exports=function(t){return i[t]||(i[t]=a&&o[t]||(a?o:r)("Symbol."+t))}).store=i},10:function(t,e,n){var i=n(0),r=n(2),o=n(17),a=n(5),s=n(7),l=function(t,e,n){var u,c,h,p=t&l.F,f=t&l.G,d=t&l.S,g=t&l.P,y=t&l.B,v=t&l.W,m=f?r:r[e]||(r[e]={}),_=m.prototype,x=f?i:d?i[e]:(i[e]||{}).prototype;f&&(n=e);for(u in n)(c=!p&&x&&void 0!==x[u])&&s(m,u)||(h=c?x[u]:n[u],m[u]=f&&"function"!=typeof x[u]?n[u]:y&&c?o(h,i):v&&x[u]==h?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):g&&"function"==typeof h?o(Function.call,h):h,g&&((m.virtual||(m.virtual={}))[u]=h,t&l.R&&_&&!_[u]&&a(_,u,h)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},108:function(t,e,n){t.exports={default:n(115),__esModule:!0}},109:function(t,e,n){e.f=n(1)},11:function(t,e){t.exports={}},110:function(t,e,n){var i=n(0),r=n(2),o=n(18),a=n(109),s=n(9).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},115:function(t,e,n){n(47),n(43),t.exports=n(116)},1158:function(t,e,n){"use strict";var i=n(133),r=n.n(i),o=n(108),a=n.n(o),s=n(200),l=n(1935),u=n(1942),c=n(1949);e.a={name:"ActGoldFinanceChart",data:function(){return{costTableVisible:!1,isShowChart:!0,renderData:{}}},components:{benefit:u.a,GoldCostTable:c.a},props:{tables:{default:function(){return{}},type:Object},brandColor:{default:"#8c7fee",type:String},btnColor:{default:"#8c7fee",type:String},chartConfig:{default:function(){return[]},type:Array},isOutSideTable:{default:!1,type:Boolean}},computed:{realTheme:function(){var t={brandColor:window.g_agentShowCfg&&window.g_agentShowCfg.brandcolor||"#8c7fee",btnColor:window.g_agentShowCfg&&window.g_agentShowCfg.btncolor||"#8c7fee"};return this.brandColor&&(t.brandColor=this.brandColor,t.btnColor=this.brandColor),t},isCps:function(){return"#8c7fee"!==this.brandColor}},methods:{showCostTable:function(){this.isOutSideTable?this.$emit("showOutSideTable"):this.costTableVisible=!0},validateData:function(){if(!(this.tables&&this.tables.colsType&&this.chartConfig&&Object(s.e)(this.chartConfig)))return!1;for(var t=0,e=0,n=0,i=0;i<this.chartConfig.length;i++){var r=this.chartConfig[i];if(!r.colsType)return!1;(this.tables.colsType.includes(r.colsType)||this.tables.colsType.includes(r.colsType+""))&&(1==~~r.showType&&(t+=1),2==~~r.showType&&(e+=1),3==~~r.showType&&(n+=1))}return 1===t&&e>=1&&1===n},findTablesIndex:function(t,e){if(Object(s.e)(e))for(var n=0;n<e.length;n++)if(Number(e[n])===Number(t))return n},analysisExpression:function(t){if(!/([1-9]+)([+*/-])([1-9]+)/g.test(t))return{};var e=void 0,n=void 0,i=void 0;return t.replace(/([1-9]+)([+*/-])([1-9]+)/g,function(t,r,o,a){e=r,n=a,i=o}),{firstParamColsType:e,secondParamColsType:n,operator:i}},getExpressionData:function(t,e,n){var i=this.analysisExpression(t),r=i.firstParamColsType,o=i.secondParamColsType,a=i.operator;if(void 0!==r&&void 0!==o&&["+","-","/","*"].includes(a)){var s=void 0,l=void 0,u=[];if(n.colsType.forEach(function(t,e){Number(t)===Number(r)&&(s=e),Number(t)===Number(o)&&(l=e)}),void 0!==s&&void 0!==l)return n.rows.forEach(function(t,e){var n=void 0;switch(a){case"+":n=t[s]+t[l];break;case"-":n=t[s]-t[l];break;case"/":n=t[s]/t[l];break;case"*":n=t[s]*t[l]}u.push(Number(n).toFixed(1))}),u}},initConfig:function(t,e){if(t&&e){for(var n=[],i=[],r=[],o=this.isCps?Object(s.b)(l.b):Object(s.b)(l.a),u=Object(s.b)(o.showType2),c=Object(s.b)(o.showType3),h=t,p=Array.isArray(h),f=0,h=p?h:a()(h);;){var d;if(p){if(f>=h.length)break;d=h[f++]}else{if(f=h.next(),f.done)break;d=f.value}var g=d,y=void 0,v=g.colsType,m=this.findTablesIndex(v,e.colsType);if(m){var _=Number(g.showType),x=g.name||l.c[v],b=g.titleName||g.name||l.c[v],w=this.getExpressionData(g.tipsExpression,t,e),S=g.lineStyle,C=g.boxConfig;if(!(2!==_||S&&C)){u.length||(u=Object(s.b)(o.showType2));var T=u.shift();S=T.lineStyle,C=T.boxConfig}if(3===_&&!S){c.length||(c=Object(s.b)(o.showType3));S=c.shift().lineStyle}r.push(x),y={showType:_,colsType:v,name:x,titleName:b,problemText:g.problemText,tableRowIndex:m,lineStyle:S,boxConfig:C,tipsText:g.tipsText},w&&(y.expressionData=w),n.push(y)}}var M=e.rows.map(function(t){for(var e=[],r=n,o=Array.isArray(r),s=0,r=o?r:a()(r);;){var l;if(o){if(s>=r.length)break;l=r[s++]}else{if(s=r.next(),s.done)break;l=s.value}var u=l;1===u.showType&&i.push(t[u.tableRowIndex]),e.push(t[u.tableRowIndex])}return e});return M.unshift(r),{chartConfig:n,dataSource:M,xAxisData:i}}}},watch:{tables:{handler:function(t){if(t&&r()(t).length&&this.chartConfig){this.validateData()?(this.renderData=this.initConfig(this.chartConfig,t),this.isShowChart=!0):this.isShowChart=!1}},immediate:!0}}}},1159:function(t,e,n){"use strict";var i=n(133),r=n.n(i),o=n(1944),a=n(200);e.a={name:"Benefit",data:function(){return{selectIndex:10,chartConfig:[],dataSource:[],xAxisData:[],dialog:null,agePicker:null,numFontSizeFixDebounceFunc:Object(a.a)(this.numFontSizeFix,500),preNumFontSize:"2.8rem"}},components:{chart:o.a},props:{renderData:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}},isCps:{type:Boolean,default:!1}},computed:{agePickerData:function(){for(var t=[],e=0;e<this.xAxisData.length;e++)t.push({text:this.xAxisData[e],value:this.xAxisData[e]});return t},showType2Length:function(){for(var t=0,e=0;e<this.chartConfig.length;e++)2==~~this.chartConfig[e].showType&&(t+=1);return t},pureDataSource:function(){return this.dataSource.slice(1)}},methods:{showCostTable:function(){this.$emit("showCostTable")},setSelectIndex:function(t){this.selectIndex=t},showAgePicker:function(){var t=this;this.agePicker?this.agePicker.setData([this.agePickerData],[this.selectIndex]):this.agePicker=this.$createPicker({data:[this.agePickerData],onSelect:function(e,n){t.setSelectIndex(n[0])},selectedIndex:[this.selectIndex],confirmColor:this.theme.btnColor}),this.agePicker.show()},showProblemDialog:function(t){this.dialog?this.dialog.setData("",t):this.dialog=this.$createGoldDialog({content:t,showConfirmButton:!1,maskClosable:!0}),this.dialog.show()},numFontSizeFix:function(){for(var t=this.$refs.num?this.$refs.num.length:0,e=0;e<t;e++){var n=this.$refs.num[e],i=this.$refs.colorBlock[e];for(n.style.fontSize=this.preNumFontSize;;){if(!(parseInt(getComputedStyle(n).width)>parseInt(getComputedStyle(i).width)+10))break;var r=parseInt(getComputedStyle(n).fontSize);if(r<=12)break;n.style.fontSize=r-1+"px"}}}},watch:{renderData:{handler:function(t){if(t&&r()(t).length){var e=t.chartConfig,n=t.dataSource,i=t.xAxisData;this.chartConfig=e,this.dataSource=n,this.xAxisData=i,this.selectIndex>this.pureDataSource.length&&(this.selectIndex=10)}},immediate:!0},selectIndex:{handler:function(){this.numFontSizeFixDebounceFunc()}}}}},116:function(t,e,n){var i=n(4),r=n(49);t.exports=n(2).getIterator=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return i(e.call(t))}},1160:function(t,e,n){"use strict";var i=n(133),r=n.n(i),o=n(108),a=n.n(o),s=n(200),l=n(1946);e.a={data:function(){return{chart:null}},props:{index:{type:Number,default:10},dataSource:{type:Array,default:function(){return[]}},chartConfig:{type:Array,default:function(){return[]}}},methods:{setIndex:function(t){this.$emit("setIndex",t)},remToPxBased10Px:function(t){var e=window.document.documentElement||document.getElementsByTagName("html")[0],n=parseFloat(getComputedStyle(e,null).fontSize);if(n>12)return t*n;var i=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,r=i/375*10;return i?t*r:10*t},getXAxisName:function(){for(var t=0;t<this.chartConfig.length;t++)if(1===this.chartConfig[t].showType)return this.chartConfig[t].name;return""},getTooltipName:function(){for(var t=0;t<this.chartConfig.length;t++)if(3===this.chartConfig[t].showType)return this.chartConfig[t].name;return""},setEcharts:function(){for(var t=[],e=[],n=this.getXAxisName(),i=this.getTooltipName(),r=0;r<this.chartConfig.length;r++){var o=this.chartConfig[r];if([2,3].includes(o.showType)){var u={};Object(s.e)(o.lineStyle.areaStyleColor)?u.color=new l.graphic.LinearGradient(0,0,0,1,o.lineStyle.areaStyleColor):Object(s.i)(o.lineStyle.areaStyleColor)&&(u.color=o.lineStyle.areaStyleColor),t.push({name:o.name,type:"line",smooth:!0,symbol:o.lineStyle.legendImg?"image://"+o.lineStyle.legendImg:"circle",showSymbol:!1,symbolSize:this.remToPxBased10Px(1.4),silent:!0,encode:{x:n,y:o.name},lineStyle:{width:1,color:o.lineStyle.lineColor},emphasis:{lineStyle:{color:o.lineStyle.lineColor}},z:o.lineStyle.zIndex,areaStyle:u.color?u:void 0}),e.push({name:o.name,icon:o.lineStyle.legendImg?"image://"+o.lineStyle.legendImg:"circle"})}}var c={dataset:{source:this.dataSource},grid:{containLabel:!1,borderColor:"red",top:"5%",right:"10%",left:"10%"},legend:{textStyle:{fontSize:this.remToPxBased10Px(1.2),opacity:1,fontWeight:400,fontFamily:"SourceHanSansSC, SourceHanSansSC-Regular",color:"#999",lineHeight:this.remToPxBased10Px(1.8)},selectedMode:!1,itemWidth:this.remToPxBased10Px(1.4),itemHeight:this.remToPxBased10Px(1.4),data:e,bottom:0},tooltip:{trigger:"axis",triggerOn:"none",backgroundColor:"rgba(255,255,255,0.8)",textStyle:{fontSize:this.remToPxBased10Px(1.2),fontFamily:"SourceHanSansSC, SourceHanSansSC-Regular",fontWeight:400,lineHeight:16,color:"#333"},extraCssText:"box-shadow: 0rem 0.2rem 1.4rem 0rem rgba(211,217,240,0.80);z-index: 2;",showContent:!0,padding:[7,10,6,10],position:function(t,e,n,i,r){return t[0]>r.viewSize[0]/2?{left:20,top:"30%"}:{right:20,top:"30%"}},axisPointer:{lineStyle:{type:"solid",color:"#EEE"},z:0},formatter:function(t){for(var e=t,n=Array.isArray(e),r=0,e=n?e:a()(e);;){var o;if(n){if(r>=e.length)break;o=e[r++]}else{if(r=e.next(),r.done)break;o=r.value}var s=o;if(s.seriesName===i){var l=s.encode.y[0],u=s.value[l];return i+"<br>"+u+"元"}}}},axixPointer:{triggerOn:"none"},xAxis:{type:"category",axisTick:{inside:!0,length:2,lineStyle:{color:"#EEE"}},axisLine:{lineStyle:{color:"#F5F5F5"}},axisLabel:{textStyle:{color:"#E2E5E7"},fontSize:this.remToPxBased10Px(1.2)},nameTextStyle:{color:"red"}},yAxis:{show:!0,axisLine:{show:!1},axisLabel:{show:!1},splitLine:{show:!0,lineStyle:{color:"#f5f5f5",width:.5}}},series:t};this.chart.setOption(c),this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:this.index-1}),this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:this.index})}},mounted:function(){var t=this;this.chart=l.init(this.$refs.chart,null,{renderer:"svg"}),this.chart.getZr().on("mousemove",function(e){var n=[e.offsetX,e.offsetY],i=t.chart.convertFromPixel("grid",n);t.chart.containPixel("grid",n)&&t.index!==Math.round(i[0])&&t.setIndex(Math.round(i[0]))})},watch:{dataSource:{handler:function(t){var e=this;r()(t).length&&this.$nextTick(function(){e.setEcharts()})},immediate:!0},index:{handler:function(t){this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:t})}}}}},1161:function(t,e,n){"use strict";var i=n(143),r=n.n(i);e.a={name:"ActGoldCostTable",data:function(){return{scroller:null}},props:{visible:{type:Boolean,default:!1},tables:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}}},computed:{title:function(){return this.tables.title||"现金价值表"},styleOption:function(){return this.theme&&this.theme.brandColor?{backgroundColor:this.theme.brandColor}:{}}},methods:{showCol:function(t){var e=this.tables.display||[];return void 0!==e[t]&&1==~~e[t]},cancel:function(){this.$emit("cancelCost")},preventMove:function(t){t._prevent=!0}},watch:{visible:function(t){var e=this;if(t){var n=document.querySelector(".cost-scroll");n&&this.$nextTick(function(){e.scroller?e.scroller.refresh():e.scroller=new r.a(n,{})})}}}}},12:function(t,e,n){var i=n(30),r=n(16);t.exports=function(t){return i(r(t))}},124:function(t,e,n){var i=n(37),r=n(28).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},13:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},132:function(t,e,n){var i=n(24)("meta"),r=n(6),o=n(7),a=n(9).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(13)(function(){return l(Object.preventExtensions({}))}),c=function(t){a(t,i,{value:{i:"O"+ ++s,w:{}}})},h=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,i)){if(!l(t))return"F";if(!e)return"E";c(t)}return t[i].i},p=function(t,e){if(!o(t,i)){if(!l(t))return!0;if(!e)return!1;c(t)}return t[i].w},f=function(t){return u&&d.NEED&&l(t)&&!o(t,i)&&c(t),t},d=t.exports={KEY:i,NEED:!1,fastKey:h,getWeak:p,onFreeze:f}},133:function(t,e,n){t.exports={default:n(159),__esModule:!0}},14:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},143:function(t,n){t.exports=e},144:function(t,e,n){var i=n(10),r=n(2),o=n(13);t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),i(i.S+i.F*o(function(){n(1)}),"Object",a)}},145:function(t,e,n){var i=n(14);t.exports=Array.isArray||function(t){return"Array"==i(t)}},15:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},159:function(t,e,n){n(160),t.exports=n(2).Object.keys},16:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},160:function(t,e,n){var i=n(29),r=n(26);n(144)("keys",function(){return function(t){return r(i(t))}})},163:function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(164),o=i(r),a=n(166),s=i(a),l="function"==typeof s.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===l(o.default)?function(t){return void 0===t?"undefined":l(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":l(t)}},164:function(t,e,n){t.exports={default:n(165),__esModule:!0}},165:function(t,e,n){n(43),n(47),t.exports=n(109).f("iterator")},166:function(t,e,n){t.exports={default:n(167),__esModule:!0}},167:function(t,e,n){n(168),n(70),n(172),n(173),t.exports=n(2).Symbol},168:function(t,e,n){"use strict";var i=n(0),r=n(7),o=n(3),a=n(10),s=n(46),l=n(132).KEY,u=n(13),c=n(27),h=n(25),p=n(24),f=n(1),d=n(109),g=n(110),y=n(169),v=n(145),m=n(4),_=n(6),x=n(29),b=n(12),w=n(34),S=n(23),C=n(45),T=n(170),M=n(171),I=n(50),k=n(9),D=n(26),A=M.f,O=k.f,P=T.f,L=i.Symbol,R=i.JSON,E=R&&R.stringify,N=f("_hidden"),B=f("toPrimitive"),z={}.propertyIsEnumerable,F=c("symbol-registry"),V=c("symbols"),H=c("op-symbols"),G=Object.prototype,W="function"==typeof L&&!!I.f,j=i.QObject,U=!j||!j.prototype||!j.prototype.findChild,X=o&&u(function(){return 7!=C(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=A(G,e);i&&delete G[e],O(t,e,n),i&&t!==G&&O(G,e,i)}:O,Y=function(t){var e=V[t]=C(L.prototype);return e._k=t,e},q=W&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},Z=function(t,e,n){return t===G&&Z(H,e,n),m(t),e=w(e,!0),m(n),r(V,e)?(n.enumerable?(r(t,N)&&t[N][e]&&(t[N][e]=!1),n=C(n,{enumerable:S(0,!1)})):(r(t,N)||O(t,N,S(1,{})),t[N][e]=!0),X(t,e,n)):O(t,e,n)},$=function(t,e){m(t);for(var n,i=y(e=b(e)),r=0,o=i.length;o>r;)Z(t,n=i[r++],e[n]);return t},K=function(t,e){return void 0===e?C(t):$(C(t),e)},J=function(t){var e=z.call(this,t=w(t,!0));return!(this===G&&r(V,t)&&!r(H,t))&&(!(e||!r(this,t)||!r(V,t)||r(this,N)&&this[N][t])||e)},Q=function(t,e){if(t=b(t),e=w(e,!0),t!==G||!r(V,e)||r(H,e)){var n=A(t,e);return!n||!r(V,e)||r(t,N)&&t[N][e]||(n.enumerable=!0),n}},tt=function(t){for(var e,n=P(b(t)),i=[],o=0;n.length>o;)r(V,e=n[o++])||e==N||e==l||i.push(e);return i},et=function(t){for(var e,n=t===G,i=P(n?H:b(t)),o=[],a=0;i.length>a;)!r(V,e=i[a++])||n&&!r(G,e)||o.push(V[e]);return o};W||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===G&&e.call(H,n),r(this,N)&&r(this[N],t)&&(this[N][t]=!1),X(this,t,S(1,n))};return o&&U&&X(G,t,{configurable:!0,set:e}),Y(t)},s(L.prototype,"toString",function(){return this._k}),M.f=Q,k.f=Z,n(124).f=T.f=tt,n(44).f=J,I.f=et,o&&!n(18)&&s(G,"propertyIsEnumerable",J,!0),d.f=function(t){return Y(f(t))}),a(a.G+a.W+a.F*!W,{Symbol:L});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),it=0;nt.length>it;)f(nt[it++]);for(var rt=D(f.store),ot=0;rt.length>ot;)g(rt[ot++]);a(a.S+a.F*!W,"Symbol",{for:function(t){return r(F,t+="")?F[t]:F[t]=L(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!1}}),a(a.S+a.F*!W,"Object",{create:K,defineProperty:Z,defineProperties:$,getOwnPropertyDescriptor:Q,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=u(function(){I.f(1)});a(a.S+a.F*at,"Object",{getOwnPropertySymbols:function(t){return I.f(x(t))}}),R&&a(a.S+a.F*(!W||u(function(){var t=L();return"[null]"!=E([t])||"{}"!=E({a:t})||"{}"!=E(Object(t))})),"JSON",{stringify:function(t){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=e=i[1],(_(e)||void 0!==t)&&!q(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!q(e))return e}),i[1]=e,E.apply(R,i)}}),L.prototype[B]||n(5)(L.prototype,B,L.prototype.valueOf),h(L,"Symbol"),h(Math,"Math",!0),h(i.JSON,"JSON",!0)},169:function(t,e,n){var i=n(26),r=n(50),o=n(44);t.exports=function(t){var e=i(t),n=r.f;if(n)for(var a,s=n(t),l=o.f,u=0;s.length>u;)l.call(t,a=s[u++])&&e.push(a);return e}},17:function(t,e,n){var i=n(20);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},170:function(t,e,n){var i=n(12),r=n(124).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):r(i(t))}},171:function(t,e,n){var i=n(44),r=n(23),o=n(12),a=n(34),s=n(7),l=n(36),u=Object.getOwnPropertyDescriptor;e.f=n(3)?u:function(t,e){if(t=o(t),e=a(e,!0),l)try{return u(t,e)}catch(t){}if(s(t,e))return r(!i.f.call(t,e),t[e])}},172:function(t,e,n){n(110)("asyncIterator")},173:function(t,e,n){n(110)("observable")},18:function(t,e){t.exports=!0},19:function(t,e,n){var i=n(27)("keys"),r=n(24);t.exports=function(t){return i[t]||(i[t]=r(t))}},1933:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(22),r=n.n(i),o=n(1934);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createGoldFinanceChart=r()(o.a,t)},e.default=o.a},1934:function(t,e,n){"use strict";var i=n(1158),r=n(1952),o=n(8),a=Object(o.a)(i.a,r.a,r.b,!1,null,null,null);a.options.__file="src\\components\\GoldFinanceChart\\src\\index.vue",e.a=a.exports},1935:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return o});var i={showType2:[{boxConfig:{iconColor:"#E13046",titleColor:"#E13046",blockColor:"rgba(255, 90, 110, 0.1)",tipsColor:"#ff5a63"},lineStyle:{lineColor:"#ff5a6e",legendImg:n(1936),zIndex:1}},{boxConfig:{iconColor:"#7363E7",titleColor:"#7363E7",blockColor:"rgba(115,99,231,0.1)",tipsColor:"#8c7FEE"},lineStyle:{lineColor:"#8c7fee",legendImg:n(1937),areaStyleColor:[{offset:0,color:"#E7E3FF"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:n(1938),zIndex:3}}]},r={showType2:[{boxConfig:{iconColor:"#FF8D35",titleColor:"#FF8D35",blockColor:"rgba(255,141,53,0.1)",tipsColor:"#FF8D35"},lineStyle:{lineColor:"#FF8D35",legendImg:n(1939),zIndex:1}},{boxConfig:{iconColor:"#F05A4B",titleColor:"#FC7468",blockColor:"rgba(252,116,104,0.1)",tipsColor:"#F05A4B"},lineStyle:{lineColor:"#F05A4B",legendImg:n(1940),areaStyleColor:[{offset:0,color:"#FFE0DD"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:n(1941),zIndex:3}}]},o={1:"有效保额",2:"已交保费系数金额",3:"现金价值",4:"身故全残金",5:"年龄",6:"累计已交保费",7:"累计保费*给付系数(主险)",8:"当前年龄与61岁的比值",9:"当前年龄与41岁的比值",10:"当前年龄与18岁的比值",11:"当前年龄的给付数值",12:"保额",13:"保单年份与缴费期间的比值",14:"保单年份",15:"长期护理保险金(元)",16:"疾病身故保险金或长期护理保险金"}},1936:function(t,e){t.exports=n},1937:function(t,e){t.exports=i},1938:function(t,e){t.exports=r},1939:function(t,e){t.exports=o},1940:function(t,e){t.exports=a},1941:function(t,e){t.exports=s},1942:function(t,e,n){"use strict";function i(t){s||n(1943)}var r=n(1159),o=n(1948),a=n(8),s=!1,l=i,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-8a13b6be",null);u.options.__file="src\\components\\GoldFinanceChart\\src\\components\\benefit.vue",e.a=u.exports},1943:function(t,e){},1944:function(t,e,n){"use strict";function i(t){s||n(1945)}var r=n(1160),o=n(1947),a=n(8),s=!1,l=i,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-5bf23e30",null);u.options.__file="src\\components\\GoldFinanceChart\\src\\components\\chart.vue",e.a=u.exports},1945:function(t,e){},1946:function(t,e,n){!function(t,n){n(e)}(0,function(t){"use strict";function e(t,e){function n(){this.constructor=t}if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");py(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function n(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;o>r;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||e)}function i(t,e){My[t]=e}function r(){return Iy++}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function a(t){if(null==t||"object"!=typeof t)return t;var e=t,n=my.call(t);if("[object Array]"===n){if(!j(t)){e=[];for(var i=0,r=t.length;r>i;i++)e[i]=a(t[i])}}else if(vy[n]){if(!j(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(var i=0,r=t.length;r>i;i++)e[i]=a(t[i])}}}else if(!yy[n]&&!j(t)&&!O(t)){e={};for(var s in t)t.hasOwnProperty(s)&&(e[s]=a(t[s]))}return e}function s(t,e,n){if(!k(e)||!k(t))return n?a(e):t;for(var i in e)if(e.hasOwnProperty(i)){var r=t[i],o=e[i];!k(o)||!k(r)||S(o)||S(r)||O(o)||O(r)||D(o)||D(r)||j(o)||j(r)?!n&&i in t||(t[i]=a(e[i])):s(r,o,n)}return t}function l(t,e){for(var n=t[0],i=1,r=t.length;r>i;i++)n=s(n,t[i],e);return n}function u(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function c(t,e,n){for(var i=x(e),r=0;r<i.length;r++){var o=i[r];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}function h(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return n}return-1}function p(t,e){function n(){}var i=t.prototype;n.prototype=e.prototype,t.prototype=new n;for(var r in i)i.hasOwnProperty(r)&&(t.prototype[r]=i[r]);t.prototype.constructor=t,t.superClass=e}function f(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else c(t,e,n)}function d(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function g(t,e,n){if(t&&e)if(t.forEach&&t.forEach===xy)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;r>i;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function y(t,e,n){if(!t)return[];if(!e)return F(t);if(t.map&&t.map===Sy)return t.map(e,n);for(var i=[],r=0,o=t.length;o>r;r++)i.push(e.call(n,t[r],r,t));return i}function v(t,e,n,i){if(t&&e){for(var r=0,o=t.length;o>r;r++)n=e.call(i,n,t[r],r,t);return n}}function m(t,e,n){if(!t)return[];if(!e)return F(t);if(t.filter&&t.filter===by)return t.filter(e,n);for(var i=[],r=0,o=t.length;o>r;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function _(t,e,n){if(t&&e)for(var i=0,r=t.length;r>i;i++)if(e.call(n,t[i],i,t))return t[i]}function x(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function b(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(wy.call(arguments)))}}function w(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(wy.call(arguments)))}}function S(t){return Array.isArray?Array.isArray(t):"[object Array]"===my.call(t)}function C(t){return"function"==typeof t}function T(t){return"string"==typeof t}function M(t){return"[object String]"===my.call(t)}function I(t){return"number"==typeof t}function k(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function D(t){return!!yy[my.call(t)]}function A(t){return!!vy[my.call(t)]}function O(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function P(t){return null!=t.colorStops}function L(t){return null!=t.image}function R(t){return"[object RegExp]"===my.call(t)}function E(t){return t!==t}function N(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;i>n;n++)if(null!=t[n])return t[n]}function B(t,e){return null!=t?t:e}function z(t,e,n){return null!=t?t:null!=e?e:n}function F(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return wy.apply(t,e)}function V(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 H(t,e){if(!t)throw new Error(e)}function G(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function W(t){t[Ay]=!0}function j(t){return t[Ay]}function U(t){return new Oy(t)}function X(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];for(var r=t.length,i=0;i<e.length;i++)n[i+r]=e[i];return n}function Y(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&u(n,e),n}function q(t,e){return t.hasOwnProperty(e)}function Z(){}function $(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function K(t,e){return t[0]=e[0],t[1]=e[1],t}function J(t){return[t[0],t[1]]}function Q(t,e,n){return t[0]=e,t[1]=n,t}function tt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function et(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function nt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function it(t){return Math.sqrt(rt(t))}function rt(t){return t[0]*t[0]+t[1]*t[1]}function ot(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function at(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function st(t,e){return t[0]*e[0]+t[1]*e[1]}function lt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function ut(t,e){var n=it(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function ct(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function ht(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function pt(t,e){return t[0]=-e[0],t[1]=-e[1],t}function ft(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function dt(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function gt(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function yt(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function vt(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/Hy);return t[n][l]}for(var u=i|1<<n,c=n+1;i&1<<c;)c++;for(var h=0,p=0,f=0;s>p;p++){var d=1<<p;d&r||(h+=(f%2?-1:1)*t[n][p]*vt(t,e-1,c,u,r|d,o),f++)}return o[a]=h,h}function mt(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=vt(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;8>a;a++)for(var s=0;8>s;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*vt(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}function _t(t,e,n,i,r){return xt(Wy,e,i,r,!0)&&xt(t,n,Wy[0],Wy[1])}function xt(t,e,n,i,r){if(e.getBoundingClientRect&&gy.domSupported&&!St(e)){var o=e[Gy]||(e[Gy]={}),a=bt(e,o),s=wt(a,o,r);if(s)return s(t,n,i),!0}return!1}function bt(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;4>o;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function wt(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;4>u;u++){var c=t[u].getBoundingClientRect(),h=2*u,p=c.left,f=c.top;a.push(p,f),l=l&&o&&p===o[h]&&f===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?mt(s,a):mt(a,s))}function St(t){return"CANVAS"===t.nodeName.toUpperCase()}function Ct(t,e,n,i){return n=n||{},i||!gy.canvasSupported?Tt(t,e,n):gy.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):Tt(t,e,n),n}function Tt(t,e,n){if(gy.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(St(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(xt(Xy,t,i,r))return n.zrX=Xy[0],void(n.zrY=Xy[1])}n.zrX=n.zrY=0}function Mt(t){return t||window.event}function It(t,e,n){if(e=Mt(e),null!=e.zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&Ct(t,r,e,n)}else{Ct(t,e,e,n);var o=kt(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&Uy.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function kt(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*Math.abs(0!==i?i:n)*(i>0?-1:0>i?1:n>0?-1:1)}function Dt(t,e,n,i){jy?t.addEventListener(e,n,i):t.attachEvent("on"+e,n)}function At(t,e,n,i){jy?t.removeEventListener(e,n,i):t.detachEvent("on"+e,n)}function Ot(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function Pt(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function Lt(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Rt}}function Rt(){Yy(this.event)}function Et(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s||i.parent}return!r||$y}return!1}function Nt(t,e,n){var i=t.painter;return 0>e||e>i.getWidth()||0>n||n>i.getHeight()}function Bt(t){for(var e=0;t>=nv;)e|=1&t,t>>=1;return t+e}function zt(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;n>r&&i(t[r],t[r-1])<0;)r++;Ft(t,e,r)}else for(;n>r&&i(t[r],t[r-1])>=0;)r++;return r-e}function Ft(t,e,n){for(n--;n>e;){var i=t[e];t[e++]=t[n],t[n--]=i}}function Vt(t,e,n,i,r){for(i===e&&i++;n>i;i++){for(var o,a=t[i],s=e,l=i;l>s;)o=s+l>>>1,r(a,t[o])<0?l=o:s=o+1;var u=i-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]=a}}function Ht(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;s>l&&o(t,e[n+r+l])>0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;s>l&&o(t,e[n+r-l])<=0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;l>a;){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function Gt(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;s>l&&o(t,e[n+r-l])<0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;s>l&&o(t,e[n+r+l])>=0;)a=l,0>=(l=1+(l<<1))&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;l>a;){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function Wt(t,e){function n(t,e){l[h]=t,u[h]=e,h+=1}function i(){for(;h>1;){var t=h-2;if(t>=1&&u[t-1]<=u[t]+u[t+1]||t>=2&&u[t-2]<=u[t]+u[t-1])u[t-1]<u[t+1]&&t--;else if(u[t]>u[t+1])break;o(t)}}function r(){for(;h>1;){var t=h-2;t>0&&u[t-1]<u[t+1]&&t--,o(t)}}function o(n){var i=l[n],r=u[n],o=l[n+1],c=u[n+1];u[n]=r+c,n===h-3&&(l[n+1]=l[n+2],u[n+1]=u[n+2]),h--;var p=Gt(t[o],t,i,r,0,e);i+=p,0!==(r-=p)&&0!==(c=Ht(t[i+r-1],t,o,c,c-1,e))&&(c>=r?a(i,r,o,c):s(i,r,o,c))}function a(n,i,r,o){var a=0;for(a=0;i>a;a++)p[a]=t[n+a];var s=0,l=r,u=n;if(t[u++]=t[l++],0!=--o){if(1===i){for(a=0;o>a;a++)t[u+a]=t[l+a];return void(t[u+o]=p[s])}for(var h,f,d,g=c;;){h=0,f=0,d=!1;do{if(e(t[l],p[s])<0){if(t[u++]=t[l++],f++,h=0,0==--o){d=!0;break}}else if(t[u++]=p[s++],h++,f=0,1==--i){d=!0;break}}while(g>(h|f));if(d)break;do{if(0!==(h=Gt(t[l],p,s,i,0,e))){for(a=0;h>a;a++)t[u+a]=p[s+a];if(u+=h,s+=h,1>=(i-=h)){d=!0;break}}if(t[u++]=t[l++],0==--o){d=!0;break}if(0!==(f=Ht(p[s],t,l,o,0,e))){for(a=0;f>a;a++)t[u+a]=t[l+a];if(u+=f,l+=f,0===(o-=f)){d=!0;break}}if(t[u++]=p[s++],1==--i){d=!0;break}g--}while(h>=iv||f>=iv);if(d)break;0>g&&(g=0),g+=2}if(c=g,1>c&&(c=1),1===i){for(a=0;o>a;a++)t[u+a]=t[l+a];t[u+o]=p[s]}else{if(0===i)throw new Error;for(a=0;i>a;a++)t[u+a]=p[s+a]}}else for(a=0;i>a;a++)t[u+a]=p[s+a]}function s(n,i,r,o){var a=0;for(a=0;o>a;a++)p[a]=t[r+a];var s=n+i-1,l=o-1,u=r+o-1,h=0,f=0;if(t[u--]=t[s--],0!=--i){if(1===o){for(u-=i,s-=i,f=u+1,h=s+1,a=i-1;a>=0;a--)t[f+a]=t[h+a];return void(t[u]=p[l])}for(var d=c;;){var g=0,y=0,v=!1;do{if(e(p[l],t[s])<0){if(t[u--]=t[s--],g++,y=0,0==--i){v=!0;break}}else if(t[u--]=p[l--],y++,g=0,1==--o){v=!0;break}}while(d>(g|y));if(v)break;do{if(0!==(g=i-Gt(p[l],t,n,i,i-1,e))){for(u-=g,s-=g,i-=g,f=u+1,h=s+1,a=g-1;a>=0;a--)t[f+a]=t[h+a];if(0===i){v=!0;break}}if(t[u--]=p[l--],1==--o){v=!0;break}if(0!==(y=o-Ht(t[s],p,0,o,o-1,e))){for(u-=y,l-=y,o-=y,f=u+1,h=l+1,a=0;y>a;a++)t[f+a]=p[h+a];if(1>=o){v=!0;break}}if(t[u--]=t[s--],0==--i){v=!0;break}d--}while(g>=iv||y>=iv);if(v)break;0>d&&(d=0),d+=2}if(c=d,1>c&&(c=1),1===o){for(u-=i,s-=i,f=u+1,h=s+1,a=i-1;a>=0;a--)t[f+a]=t[h+a];t[u]=p[l]}else{if(0===o)throw new Error;for(h=u-(o-1),a=0;o>a;a++)t[h+a]=p[a]}}else for(h=u-(o-1),a=0;o>a;a++)t[h+a]=p[a]}var l,u,c=iv,h=0,p=[];return l=[],u=[],{mergeRuns:i,forceMergeRuns:r,pushRun:n}}function jt(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(2>r)){var o=0;if(nv>r)return o=zt(t,n,i,e),void Vt(t,n,i,n+o,e);var a=Wt(t,e),s=Bt(r);do{if(o=zt(t,n,i,e),s>o){var l=r;l>s&&(l=s),Vt(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}function Ut(){av||(av=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Xt(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function Yt(t){return t=Math.round(t),0>t?0:t>255?255:t}function qt(t){return t=Math.round(t),0>t?0:t>360?360:t}function Zt(t){return 0>t?0:t>1?1:t}function $t(t){var e=t;return Yt(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function Kt(t){var e=t;return Zt(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100:parseFloat(e))}function Jt(t,e,n){return 0>n?n+=1:n>1&&(n-=1),1>6*n?t+(e-t)*n*6:1>2*n?e:2>3*n?t+(e-t)*(2/3-n)*6:t}function Qt(t,e,n){return t+(e-t)*n}function te(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function ee(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function ne(t,e){yv&&ee(yv,e),yv=gv.put(t,yv||e.slice())}function ie(t,e){if(t){e=e||[];var n=gv.get(t);if(n)return ee(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in dv)return ee(e,dv[i]),ne(t,e),e;var r=i.length;if("#"!==i.charAt(0)){var o=i.indexOf("("),a=i.indexOf(")");if(-1!==o&&a+1===r){var s=i.substr(0,o),l=i.substr(o+1,a-(o+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return 3===l.length?te(e,+l[0],+l[1],+l[2],1):te(e,0,0,0,1);u=Kt(l.pop());case"rgb":return 3!==l.length?void te(e,0,0,0,1):(te(e,$t(l[0]),$t(l[1]),$t(l[2]),u),ne(t,e),e);case"hsla":return 4!==l.length?void te(e,0,0,0,1):(l[3]=Kt(l[3]),re(l,e),ne(t,e),e);case"hsl":return 3!==l.length?void te(e,0,0,0,1):(re(l,e),ne(t,e),e);default:return}}te(e,0,0,0,1)}else{if(4===r||5===r){var c=parseInt(i.slice(1,4),16);return c>=0&&4095>=c?(te(e,(3840&c)>>4|(3840&c)>>8,240&c|(240&c)>>4,15&c|(15&c)<<4,5===r?parseInt(i.slice(4),16)/15:1),ne(t,e),e):void te(e,0,0,0,1)}if(7===r||9===r){var c=parseInt(i.slice(1,7),16);return c>=0&&16777215>=c?(te(e,(16711680&c)>>16,(65280&c)>>8,255&c,9===r?parseInt(i.slice(7),16)/255:1),ne(t,e),e):void te(e,0,0,0,1)}}}}function re(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Kt(t[1]),r=Kt(t[2]),o=.5>=r?r*(i+1):r+i-r*i,a=2*r-o;return e=e||[],te(e,Yt(255*Jt(a,o,n+1/3)),Yt(255*Jt(a,o,n)),Yt(255*Jt(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function oe(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=.5>u?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===s?e=p-h:r===s?e=1/3+c-p:o===s&&(e=2/3+h-c),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}function ae(t,e){var n=ie(t);if(n){for(var i=0;3>i;i++)n[i]=0>e?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return pe(n,4===n.length?"rgba":"rgb")}}function se(t){var e=ie(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function le(t,e,n){if(e&&e.length&&t>=0&&1>=t){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=Yt(Qt(a[0],s[0],l)),n[1]=Yt(Qt(a[1],s[1],l)),n[2]=Yt(Qt(a[2],s[2],l)),n[3]=Zt(Qt(a[3],s[3],l)),n}}function ue(t,e,n){if(e&&e.length&&t>=0&&1>=t){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=ie(e[r]),s=ie(e[o]),l=i-r,u=pe([Yt(Qt(a[0],s[0],l)),Yt(Qt(a[1],s[1],l)),Yt(Qt(a[2],s[2],l)),Zt(Qt(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}function ce(t,e,n,i){var r=ie(t);return t?(r=oe(r),null!=e&&(r[0]=qt(e)),null!=n&&(r[1]=Kt(n)),null!=i&&(r[2]=Kt(i)),pe(re(r),"rgba")):void 0}function he(t,e){var n=ie(t);return n&&null!=e?(n[3]=Zt(e),pe(n,"rgba")):void 0}function pe(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(n+=","+t[3]),e+"("+n+")"}}function fe(t,e){var n=ie(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function de(){return"rgb("+Math.round(255*Math.random())+","+Math.round(255*Math.random())+","+Math.round(255*Math.random())+")"}function ge(t,e,n){return(e-t)*n+t}function ye(t,e,n){return n>.5?e:t}function ve(t,e,n,i){for(var r=e.length,o=0;r>o;o++)t[o]=ge(e[o],n[o],i)}function me(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=ge(e[a][s],n[a][s],i)}}function _e(t,e,n,i){for(var r=e.length,o=0;r>o;o++)t[o]=e[o]+n[o]*i;return t}function xe(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function be(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a){if(o>a)i.length=a;else for(var s=o;a>s;s++)i.push(1===n?r[s]:xv.call(r[s]))}for(var l=i[0]&&i[0].length,s=0;s<i.length;s++)if(1===n)isNaN(i[s])&&(i[s]=r[s]);else for(var u=0;l>u;u++)isNaN(i[s][u])&&(i[s][u]=r[s][u])}}function we(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;n>i;i++)if(t[i]!==e[i])return!1;return!0}function Se(t,e,n,i,r,o,a){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*a+(-3*(e-n)-2*s-l)*o+s*r+e}function Ce(t,e,n,i,r,o,a,s){for(var l=e.length,u=0;l>u;u++)t[u]=Se(e[u],n[u],i[u],r[u],o,a,s)}function Te(t,e,n,i,r,o,a,s){for(var l=e.length,u=e[0].length,c=0;l>c;c++){t[c]||(t[1]=[]);for(var h=0;u>h;h++)t[c][h]=Se(e[c][h],n[c][h],i[c][h],r[c][h],o,a,s)}}function Me(t){if(d(t)){var e=t.length;if(d(t[0])){for(var n=[],i=0;e>i;i++)n.push(xv.call(t[i]));return n}return xv.call(t)}return t}function Ie(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function ke(t){return d(t&&t[0])?2:1}function De(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Ae(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Oe(t){t&&(t.zrByTouch=!0)}function Pe(t,e){return It(t.dom,new Dv(t,e),!0)}function Le(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}function Re(t,e){var n=e.domHandlers;gy.pointerEventsSupported?g(Mv.pointer,function(i){Ne(e,i,function(e){n[i].call(t,e)})}):(gy.touchEventsSupported&&g(Mv.touch,function(i){Ne(e,i,function(r){n[i].call(t,r),Ae(e)})}),g(Mv.mouse,function(i){Ne(e,i,function(r){r=Mt(r),e.touching||n[i].call(t,r)})}))}function Ee(t,e){function n(n){function i(i){i=Mt(i),Le(t,i.target)||(i=Pe(t,i),e.domHandlers[n].call(t,i))}Ne(e,n,i,{capture:!0})}gy.pointerEventsSupported?g(Iv.pointer,n):gy.touchEventsSupported||g(Iv.mouse,n)}function Ne(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,Dt(t.domTarget,e,n,i)}function Be(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&At(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}function ze(){return[1,0,0,1,0,0]}function Fe(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ve(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 He(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Ge(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function We(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=i*c+a*u,t[1]=-i*u+a*c,t[2]=r*c+s*u,t[3]=-r*u+c*s,t[4]=c*o+u*l,t[5]=c*l-u*o,t}function je(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function Ue(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function Xe(t){var e=ze();return Ve(e,t),e}function Ye(t){return t>Wv||-Wv>t}function qe(t,e){return Ev||(Ev=ky().getContext("2d")),Nv!==e&&(Nv=Ev.font=e||sm),Ev.measureText(t)}function Ze(t,e){e=e||sm;var n=am[e];n||(n=am[e]=new fv(500));var i=n.get(t);return null==i&&(i=lm.measureText(t,e).width,n.put(t,i)),i}function $e(t,e,n,i){var r=Ze(t,e),o=tn(e),a=Je(0,r,n),s=Qe(0,o,i);return new om(a,s,r,o)}function Ke(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return $e(r[0],e,n,i);for(var o=new om(0,0,0,0),a=0;a<r.length;a++){var s=$e(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function Je(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Qe(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function tn(t){return Ze("国",t)}function en(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function nn(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=en(i[0],n.width),u+=en(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom"}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=h,t}function rn(t,e,n,i,r){n=n||{};var o=[];ln(t,"",t,e,n,i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,0>=--a&&(s?l&&l():u&&u())},h=function(){0>=--a&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var p=0;p<o.length;p++){var f=o[p];c&&f.done(c),h&&f.aborted(h),f.start(n.easing,n.force)}return o}function on(t,e,n){for(var i=0;n>i;i++)t[i]=e[i]}function an(t){return d(t[0])}function sn(t,e,n){if(d(e[n]))if(d(t[n])||(t[n]=[]),A(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),on(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(an(r))for(var s=r[0].length,l=0;a>l;l++)o[l]?on(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else on(o,r,a);o.length=r.length}else t[n]=e[n]}function ln(t,e,n,i,r,o,a,s){for(var l=[],u=[],c=x(i),p=r.duration,f=r.delay,g=r.additive,y=r.setToFinal,v=!k(o),m=0;m<c.length;m++){var _=c[m];if(null!=n[_]&&null!=i[_]&&(v||o[_]))if(k(i[_])&&!d(i[_])){if(e){s||(n[_]=i[_],t.updateDuringAnimation(e));continue}ln(t,_,n[_],i[_],r,o&&o[_],a,s)}else l.push(_),u.push(_);else s||(n[_]=i[_],t.updateDuringAnimation(e),u.push(_))}var b=l.length;if(b>0||r.force&&!a.length){for(var w=t.animators,S=[],C=0;C<w.length;C++)w[C].targetName===e&&S.push(w[C]);if(!g&&S.length)for(var C=0;C<S.length;C++){var T=S[C].stopTracks(u);if(T){var M=h(w,S[C]);w.splice(M,1)}}var I=void 0,D=void 0,A=void 0;if(s){D={},y&&(I={});for(var C=0;b>C;C++){var _=l[C];D[_]=n[_],y?I[_]=i[_]:n[_]=i[_]}}else if(y){A={};for(var C=0;b>C;C++){var _=l[C];A[_]=Me(n[_]),sn(n,i,_)}}var O=new Sv(n,!1,g?S:null);O.targetName=e,r.scope&&(O.scope=r.scope),y&&I&&O.whenWithKeys(0,I,l),A&&O.whenWithKeys(0,A,l),O.whenWithKeys(null==p?500:p,s?D:i,l).delay(f||0),t.addAnimator(O,e),a.push(O)}}function un(t){delete mm[t]}function cn(t){if(!t)return!1;if("string"==typeof t)return fe(t,1)<zv;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;i>r;r++)n+=fe(e[r].color,1);return n/=i,zv>n}return!1}function hn(t,e){var n=new _m(r(),t,e);return mm[n.id]=n,n}function pn(t){t.dispose()}function fn(){for(var t in mm)mm.hasOwnProperty(t)&&mm[t].dispose();mm={}}function dn(t){return mm[t]}function gn(t,e){vm[t]=e}function yn(t){return t.replace(/^\s+|\s+$/g,"")}function vn(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(r>=t)return a;if(t>=o)return s}else{if(t>=r)return a;if(o>=t)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function mn(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?yn(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function _n(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),wm),t=(+t).toFixed(e),n?t:+t}function xn(t){return t.sort(function(t,e){return t-e}),t}function bn(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;15>n;n++,e*=10)if(Math.round(t*e)/e===t)return n;return wn(t)}function wn(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=0>o?0:r-1-o;return Math.max(0,a-i)}function Sn(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Cn(t,e,n){if(!t[e])return 0;var i=v(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var r=Math.pow(10,n),o=y(t,function(t){return(isNaN(t)?0:t)/i*r*100}),a=100*r,s=y(o,function(t){return Math.floor(t)}),l=v(s,function(t,e){return t+e},0),u=y(o,function(t,e){return t-s[e]});a>l;){for(var c=Number.NEGATIVE_INFINITY,h=null,p=0,f=u.length;f>p;++p)u[p]>c&&(c=u[p],h=p);++s[h],u[h]=0,++l}return s[e]/r}function Tn(t,e){var n=Math.max(bn(t),bn(e)),i=t+e;return n>wm?i:_n(i,n)}function Mn(t){var e=2*Math.PI;return(t%e+e)%e}function In(t){return t>-bm&&bm>t}function kn(t){if(t instanceof Date)return t;if("string"==typeof t){var e=Sm.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return new Date(null==t?NaN:Math.round(t))}function Dn(t){return Math.pow(10,An(t))}function An(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function On(t,e){var n,i=An(t),r=Math.pow(10,i),o=t/r;return n=e?1.5>o?1:2.5>o?2:4>o?3:7>o?5:10:1>o?1:2>o?2:3>o?3:5>o?5:10,t=n*r,i>=-20?+t.toFixed(0>i?-i:0):t}function Pn(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function Ln(t){function e(t,n,i){return t.interval[i]<n.interval[i]||t.interval[i]===n.interval[i]&&(t.close[i]-n.close[i]==(i?-1:1)||!i&&e(t,n,1))}t.sort(function(t,n){return e(t,n,0)?-1:1});for(var n=-1/0,i=1,r=0;r<t.length;){for(var o=t[r].interval,a=t[r].close,s=0;2>s;s++)o[s]<=n&&(o[s]=n,a[s]=s?1:1-i),n=o[s],i=a[s];o[0]===o[1]&&a[0]*a[1]!=1?t.splice(r,1):r++}return t}function Rn(t){var e=parseFloat(t);return e==t&&(0!==e||"string"!=typeof t||t.indexOf("x")<=0)?e:NaN}function En(t){return!isNaN(Rn(t))}function Nn(){return Math.round(9*Math.random())}function Bn(t,e){return 0===e?t:Bn(e,t%e)}function zn(t,e){return null==t?e:null==e?t:t*e/Bn(t,e)}function Fn(t){throw new Error(t)}function Vn(t){return t instanceof Array?t:null==t?[]:[t]}function Hn(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;r>i;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function Gn(t){return!k(t)||S(t)||t instanceof Date?t:t.value}function Wn(t){return k(t)&&!(t instanceof Array)}function jn(t,e,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=U();g(e,function(t,n){return k(t)?void 0:void(e[n]=null)});var s=Un(t,a,n);return(i||r)&&Xn(s,t,a,e),i&&Yn(s,e),i||r?qn(s,e,r):o&&Zn(s,e),$n(s),s}function Un(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||ei(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}function Xn(t,e,n,i){g(i,function(r,o){if(r&&null!=r.id){var a=Jn(r.id),s=n.get(a);if(null!=s){var l=t[s];H(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],i[o]=null}}})}function Yn(t,e){g(e,function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==n.id)&&!ei(n)&&!ei(o)&&Kn("name",o,n))return t[r].newOption=n,void(e[i]=null)}})}function qn(t,e,n){g(e,function(e){if(e){for(var i,r=0;(i=t[r])&&(i.newOption||ei(i.existing)||i.existing&&null!=e.id&&!Kn("id",e,i.existing));)r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}})}function Zn(t,e){g(e,function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function $n(t){var e=U();g(t,function(t){var n=t.existing;n&&e.set(n.id,t)}),g(t,function(t){var n=t.newOption;H(!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={})}),g(t,function(t,n){var i=t.existing,r=t.newOption,o=t.keyInfo;if(k(r)){if(o.name=null!=r.name?Jn(r.name):i?i.name:Cm+n,i)o.id=Jn(i.id);else if(null!=r.id)o.id=Jn(r.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(e.get(o.id))}e.set(o.id,t)}})}function Kn(t,e,n){var i=Qn(e[t],null),r=Qn(n[t],null);return null!=i&&null!=r&&i===r}function Jn(t){return Qn(t,"")}function Qn(t,e){if(null==t)return e;var n=typeof t;return"string"===n?t:"number"===n||M(t)?t+"":e}function ti(t){var e=t.name;return!(!e||!e.indexOf(Cm))}function ei(t){return t&&null!=t.id&&0===Jn(t.id).indexOf(Tm)}function ni(t,e,n){g(t,function(t){var i=t.newOption;k(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=ii(e,i,t.existing,n))})}function ii(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}function ri(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?S(e.dataIndex)?y(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?S(e.name)?y(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function oi(){var t="__ec_inner_"+Im++;return function(e){return e[t]||(e[t]={})}}function ai(t,e,n){var i=si(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=a,l=n?n.defaultMainType:null;return!r&&l&&o.set(l,{}),o.each(function(e,i){var r=li(t,i,e,{useDefault:l===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[i+"Models"]=r.models,s[i+"Model"]=r.models[0]}),s}function si(t,e){var n;if(T(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var r=U(),o={},a=!1;return g(n,function(t,n){if("dataIndex"===n||"dataIndexInside"===n)return void(o[n]=t);var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&h(e.includeMainTypes,s)<0)){a=a||!!s;(r.get(s)||r.set(s,{}))[l]=t}}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}function li(t,e,n,i){i=i||km;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===r||!1===r?(H(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===r&&(H(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s)}function ui(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function ci(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function hi(t){return"auto"===t?gy.domSupported?"html":"richText":t||"html"}function pi(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if("number"==typeof i){var a=ge(n||0,i,r);return _n(a,o?Math.max(bn(n||0),bn(i)):e)}if("string"==typeof i)return 1>r?n:i;for(var s=[],l=n,u=i,c=Math.max(l?l.length:0,u.length),h=0;c>h;++h){var p=t.getDimensionInfo(h);if(p&&"ordinal"===p.type)s[h]=(1>r&&l?l:u)[h];else{var f=l&&l[h]?l[h]:0,d=u[h],a=ge(f,d,r);s[h]=_n(a,o?Math.max(bn(f),bn(d)):e)}}return s}function fi(t){var e={main:"",sub:""};if(t){var n=t.split(Dm);e.main=n[0]||"",e.sub=n[1]||""}return e}function di(t){H(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function gi(t){return!(!t||!t[Om])}function yi(t){t.$constructor=t,t.extend=function(t){function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(t.$constructor)t.$constructor.apply(this,arguments);else{if(vi(i)){return Y(e.prototype,new(i.bind.apply(i,n([void 0],r))))}i.apply(this,arguments)}}var i=this;return e[Om]=!0,u(e.prototype,t),e.extend=this.extend,e.superCall=_i,e.superApply=xi,p(e,this),e.superClass=i,e}}function vi(t){return"function"==typeof t&&/^class\s/.test(Function.prototype.toString.call(t))}function mi(t,e){t.extend=e.extend}function _i(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function xi(t,e,n){return this.superClass.prototype[e].apply(t,n)}function bi(t){function e(t){var e=n[t.main];return e&&e[Am]||(e=n[t.main]={},e[Am]=!0),e}var n={};t.registerClass=function(t){var i=t.type||t.prototype.type;if(i){di(i),t.prototype.type=i;var r=fi(i);if(r.sub){if(r.sub!==Am){var o=e(r);o[r.sub]=t}}else n[r.main]=t}return t},t.getClass=function(t,e,i){var r=n[t];if(r&&r[Am]&&(r=e?r[e]:null),i&&!r)throw new Error(e?"Component "+t+"."+(e||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var e=fi(t),i=[],r=n[e.main];return r&&r[Am]?g(r,function(t,e){e!==Am&&i.push(t)}):i.push(r),i},t.hasClass=function(t){var e=fi(t);return!!n[e.main]},t.getAllClassMainTypes=function(){var t=[];return g(n,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){var e=fi(t),i=n[e.main];return i&&i[Am]}}function wi(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(i&&h(i,s)>=0||r&&h(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}function Si(t){if("string"==typeof t){var e=Nm.get(t);return e&&e.image}return t}function Ci(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Nm.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?(e=o.image,!Mi(e)&&o.pending.push(a)):(e=new Image,e.onload=e.onerror=Ti,Nm.put(t,e.__cachedImgObj={image:e,pending:[a]}),e.src=e.__zrImageSrc=t),e}return t}return e}function Ti(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Mi(t){return t&&t.width&&t.height}function Ii(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=ki(e,n,i,r);for(var a=0,s=o.length;s>a;a++)o[a]=Di(o[a],r);return o.join("\n")}function ki(t,e,n,i){i=i||{};var r=u({},i);r.font=e,n=B(n,"..."),r.maxIterations=B(i.maxIterations,2);var o=r.minChar=B(i.minChar,0);r.cnCharWidth=Ze("国",e);var a=r.ascCharWidth=Ze("a",e);r.placeholder=B(i.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;o>l&&s>=a;l++)s-=a;var c=Ze(n,e);return c>s&&(n="",c=0),s=t-c,r.ellipsis=n,r.ellipsisWidth=c,r.contentWidth=s,r.containerWidth=t,r}function Di(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=Ze(t,i);if(n>=o)return t;for(var a=0;;a++){if(r>=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Ai(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,s),o=Ze(t,i)}return""===t&&(t=e.placeholder),t}function Ai(t,e,n,i){for(var r=0,o=0,a=t.length;a>o&&e>r;o++){var s=t.charCodeAt(o);r+=s>=0&&127>=s?n:i}return o}function Oi(t,e){null!=t&&(t+="");var n,i=e.overflow,r=e.padding,o=e.font,a="truncate"===i,s=tn(o),l=B(e.lineHeight,s),u="truncate"===e.lineOverflow,c=e.width;n=null!=c&&"break"===i||"breakAll"===i?t?Ni(t,e.font,c,"breakAll"===i,0).lines:[]:t?t.split("\n"):[];var h=n.length*l,p=B(e.height,h);if(h>p&&u){var f=Math.floor(p/l);n=n.slice(0,f)}var d=p,g=c;if(r&&(d+=r[0]+r[2],null!=g&&(g+=r[1]+r[3])),t&&a&&null!=g)for(var y=ki(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v<n.length;v++)n[v]=Di(n[v],y);if(null==c){for(var m=0,v=0;v<n.length;v++)m=Math.max(Ze(n[v],o),m);c=m}return{lines:n,height:p,outerHeight:d,lineHeight:l,calculatedLineHeight:s,contentHeight:h,width:c}}function Pi(t,e){function n(t,e,n){t.width=e,t.lineHeight=n,p+=n,f=Math.max(f,e)}var i=new Vm;if(null!=t&&(t+=""),!t)return i;for(var r,o=e.width,a=e.height,s=e.overflow,l="break"!==s&&"breakAll"!==s||null==o?null:{width:o,accumWidth:0,breakAll:"breakAll"===s},u=Bm.lastIndex=0;null!=(r=Bm.exec(t));){var c=r.index;c>u&&Li(i,t.substring(u,c),e,l),Li(i,r[2],e,l,r[1]),u=Bm.lastIndex}u<t.length&&Li(i,t.substring(u,t.length),e,l);var h=[],p=0,f=0,d=e.padding,g="truncate"===s,y="truncate"===e.lineOverflow;t:for(var v=0;v<i.lines.length;v++){for(var m=i.lines[v],_=0,x=0,b=0;b<m.tokens.length;b++){var w=m.tokens[b],S=w.styleName&&e.rich[w.styleName]||{},C=w.textPadding=S.padding,T=C?C[1]+C[3]:0,M=w.font=S.font||e.font;w.contentHeight=tn(M);var I=B(S.height,w.contentHeight);if(w.innerHeight=I,C&&(I+=C[0]+C[2]),w.height=I,w.lineHeight=z(S.lineHeight,e.lineHeight,I),w.align=S&&S.align||e.align,w.verticalAlign=S&&S.verticalAlign||"middle",y&&null!=a&&p+w.lineHeight>a){b>0?(m.tokens=m.tokens.slice(0,b),n(m,x,_),i.lines=i.lines.slice(0,v+1)):i.lines=i.lines.slice(0,v);break t}var k=S.width,D=null==k||"auto"===k;if("string"==typeof k&&"%"===k.charAt(k.length-1))w.percentWidth=k,h.push(w),w.contentWidth=Ze(w.text,M);else{if(D){var A=S.backgroundColor,O=A&&A.image;O&&(O=Si(O),Mi(O)&&(w.width=Math.max(w.width,O.width*I/O.height)))}var P=g&&null!=o?o-x:null;null!=P&&P<w.width?!D||T>P?(w.text="",w.width=w.contentWidth=0):(w.text=Ii(w.text,P-T,M,e.ellipsis,{minChar:e.truncateMinChar}),w.width=w.contentWidth=Ze(w.text,M)):w.contentWidth=Ze(w.text,M)}w.width+=T,x+=w.width,S&&(_=Math.max(_,w.lineHeight))}n(m,x,_)}i.outerWidth=i.width=B(o,f),i.outerHeight=i.height=B(a,p),i.contentHeight=p,i.contentWidth=f,d&&(i.outerWidth+=d[1]+d[3],i.outerHeight+=d[0]+d[2]);for(var v=0;v<h.length;v++){var w=h[v],L=w.percentWidth;w.width=parseInt(L,10)/100*i.width}return i}function Li(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},u=t.lines,c=l.font||n.font,h=!1;if(i){var p=l.padding,f=p?p[1]+p[3]:0;if(null!=l.width&&"auto"!==l.width){var d=en(l.width,i.width)+f;u.length>0&&d+i.accumWidth>i.width&&(o=e.split("\n"),h=!0),i.accumWidth=d}else{var g=Ni(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+f,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var y=0;y<o.length;y++){var v=o[y],m=new zm;if(m.styleName=r,m.text=v,m.isLineHolder=!v&&!s,m.width="number"==typeof l.width?l.width:a?a[y]:Ze(v,c),y||h)u.push(new Fm([m]));else{var _=(u[u.length-1]||(u[0]=new Fm)).tokens,x=_.length;1===x&&_[0].isLineHolder?_[0]=m:(v||!x||s)&&_.push(m)}}}function Ri(t){var e=t.charCodeAt(0);return e>=33&&255>=e}function Ei(t){return!Ri(t)||!!Hm[t]}function Ni(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;h<t.length;h++){var p=t.charAt(h);if("\n"!==p){var f=Ze(p,e),d=!i&&!Ei(p);(o.length?c+f>n:r+c+f>n)?c?(s||l)&&(d?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=p,u+=f,s="",c=u):(l&&(s+=l,c+=u,l="",u=0),o.push(s),a.push(c),s=p,c=f)):d?(o.push(l),a.push(u),l=p,u=f):(o.push(p),a.push(f)):(c+=f,d?(l+=p,u+=f):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}function Bi(t,e,n){return qm.copy(t.getBoundingRect()),t.transform&&qm.applyTransform(t.transform),Zm.width=e,Zm.height=n,!qm.intersect(Zm)}function zi(t){return t>-Jm&&Jm>t}function Fi(t){return t>Jm||-Jm>t}function Vi(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function Hi(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Gi(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,p=l*l-3*s*u,f=0;if(zi(c)&&zi(h))if(zi(s))o[0]=0;else{var d=-l/s;d>=0&&1>=d&&(o[f++]=d)}else{var g=h*h-4*c*p;if(zi(g)){var y=h/c,d=-s/a+y,v=-y/2;d>=0&&1>=d&&(o[f++]=d),v>=0&&1>=v&&(o[f++]=v)}else if(g>0){var m=Km(g),_=c*s+1.5*a*(-h+m),x=c*s+1.5*a*(-h-m);_=0>_?-$m(-_,e_):$m(_,e_),x=0>x?-$m(-x,e_):$m(x,e_);var d=(-s-(_+x))/(3*a);d>=0&&1>=d&&(o[f++]=d)}else{var b=(2*c*s-3*a*h)/(2*Km(c*c*c)),w=Math.acos(b)/3,S=Km(c),C=Math.cos(w),d=(-s-2*S*C)/(3*a),v=(-s+S*(C+t_*Math.sin(w)))/(3*a),T=(-s+S*(C-t_*Math.sin(w)))/(3*a);d>=0&&1>=d&&(o[f++]=d),v>=0&&1>=v&&(o[f++]=v),T>=0&&1>=T&&(o[f++]=T)}}return f}function Wi(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(zi(a)){if(Fi(o)){var u=-s/o;u>=0&&1>=u&&(r[l++]=u)}}else{var c=o*o-4*a*s;if(zi(c))r[0]=-o/(2*a);else if(c>0){var h=Km(c),u=(-o+h)/(2*a),p=(-o-h)/(2*a);u>=0&&1>=u&&(r[l++]=u),p>=0&&1>=p&&(r[l++]=p)}}return l}function ji(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function Ui(t,e,n,i,r,o,a,s,l,u,c){var h,p,f,d,g,y=.005,v=1/0;n_[0]=l,n_[1]=u;for(var m=0;1>m;m+=.05)i_[0]=Vi(t,n,r,a,m),i_[1]=Vi(e,i,o,s,m),d=Ny(n_,i_),v>d&&(h=m,v=d);v=1/0;for(var _=0;32>_&&!(Qm>y);_++)p=h-y,f=h+y,i_[0]=Vi(t,n,r,a,p),i_[1]=Vi(e,i,o,s,p),d=Ny(i_,n_),p>=0&&v>d?(h=p,v=d):(r_[0]=Vi(t,n,r,a,f),r_[1]=Vi(e,i,o,s,f),g=Ny(r_,n_),1>=f&&v>g?(h=f,v=g):y*=.5);return c&&(c[0]=Vi(t,n,r,a,h),c[1]=Vi(e,i,o,s,h)),Km(v)}function Xi(t,e,n,i,r,o,a,s,l){for(var u=t,c=e,h=0,p=1/l,f=1;l>=f;f++){var d=f*p,g=Vi(t,n,r,a,d),y=Vi(e,i,o,s,d),v=g-u,m=y-c;h+=Math.sqrt(v*v+m*m),u=g,c=y}return h}function Yi(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function qi(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function Zi(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(zi(o)){if(Fi(a)){var u=-s/a;u>=0&&1>=u&&(r[l++]=u)}}else{var c=a*a-4*o*s;if(zi(c)){var u=-a/(2*o);u>=0&&1>=u&&(r[l++]=u)}else if(c>0){var h=Km(c),u=(-a+h)/(2*o),p=(-a-h)/(2*o);u>=0&&1>=u&&(r[l++]=u),p>=0&&1>=p&&(r[l++]=p)}}return l}function $i(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function Ki(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function Ji(t,e,n,i,r,o,a,s,l){var u,c=.005,h=1/0;n_[0]=a,n_[1]=s;for(var p=0;1>p;p+=.05){i_[0]=Yi(t,n,r,p),i_[1]=Yi(e,i,o,p);var f=Ny(n_,i_);h>f&&(u=p,h=f)}h=1/0;for(var d=0;32>d&&!(Qm>c);d++){var g=u-c,y=u+c;i_[0]=Yi(t,n,r,g),i_[1]=Yi(e,i,o,g);var f=Ny(i_,n_);if(g>=0&&h>f)u=g,h=f;else{r_[0]=Yi(t,n,r,y),r_[1]=Yi(e,i,o,y);var v=Ny(r_,n_);1>=y&&h>v?(u=y,h=v):c*=.5}}return l&&(l[0]=Yi(t,n,r,u),l[1]=Yi(e,i,o,u)),Km(h)}function Qi(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;a>=h;h++){var p=h*c,f=Yi(t,n,r,p),d=Yi(e,i,o,p),g=f-s,y=d-l;u+=Math.sqrt(g*g+y*y),s=f,l=d}return u}function tr(t,e,n){if(0!==t.length){for(var i=t[0],r=i[0],o=i[0],a=i[1],s=i[1],l=1;l<t.length;l++)i=t[l],r=o_(r,i[0]),o=a_(o,i[0]),a=o_(a,i[1]),s=a_(s,i[1]);e[0]=r,e[1]=a,n[0]=o,n[1]=s}}function er(t,e,n,i,r,o){r[0]=o_(t,n),r[1]=o_(e,i),o[0]=a_(t,n),o[1]=a_(e,i)}function nr(t,e,n,i,r,o,a,s,l,u){var c=Wi,h=Vi,p=c(t,n,r,a,f_);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var f=0;p>f;f++){var d=h(t,n,r,a,f_[f]);l[0]=o_(d,l[0]),u[0]=a_(d,u[0])}p=c(e,i,o,s,d_);for(var f=0;p>f;f++){var g=h(e,i,o,s,d_[f]);l[1]=o_(g,l[1]),u[1]=a_(g,u[1])}l[0]=o_(t,l[0]),u[0]=a_(t,u[0]),l[0]=o_(a,l[0]),u[0]=a_(a,u[0]),l[1]=o_(e,l[1]),u[1]=a_(e,u[1]),l[1]=o_(s,l[1]),u[1]=a_(s,u[1])}function ir(t,e,n,i,r,o,a,s){var l=$i,u=Yi,c=a_(o_(l(t,n,r),1),0),h=a_(o_(l(e,i,o),1),0),p=u(t,n,r,c),f=u(e,i,o,h);a[0]=o_(t,r,p),a[1]=o_(e,o,f),s[0]=a_(t,r,p),s[1]=a_(e,o,f)}function rr(t,e,n,i,r,o,a,s,l){var u=gt,c=yt,h=Math.abs(r-o);if(1e-4>h%u_&&h>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(c_[0]=l_(r)*n+t,c_[1]=s_(r)*i+e,h_[0]=l_(o)*n+t,h_[1]=s_(o)*i+e,u(s,c_,h_),c(l,c_,h_),r%=u_,0>r&&(r+=u_),o%=u_,0>o&&(o+=u_),r>o&&!a?o+=u_:o>r&&a&&(r+=u_),a){var p=o;o=r,r=p}for(var f=0;o>f;f+=Math.PI/2)f>r&&(p_[0]=l_(f)*n+t,p_[1]=s_(f)*i+e,u(s,p_,s),c(l,p_,l))}function or(t){return Math.round(t/k_*1e8)/1e8%2*k_}function ar(t,e){var n=or(t[0]);0>n&&(n+=D_);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=D_?r=n+D_:e&&n-r>=D_?r=n-D_:!e&&n>r?r=n+(D_-or(n-r)):e&&r>n&&(r=n-(D_-or(r-n))),t[0]=n,t[1]=r}function sr(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0,u=t;if(a>e+s&&a>i+s||e-s>a&&i-s>a||o>t+s&&o>n+s||t-s>o&&n-s>o)return!1;if(t===n)return Math.abs(o-t)<=s/2;l=(e-i)/(t-n),u=(t*i-n*e)/(t-n);var c=l*o-a+u;return s/2*s/2>=c*c/(l*l+1)}function lr(t,e,n,i,r,o,a,s,l,u,c){if(0===l)return!1;var h=l;return!(c>e+h&&c>i+h&&c>o+h&&c>s+h||e-h>c&&i-h>c&&o-h>c&&s-h>c||u>t+h&&u>n+h&&u>r+h&&u>a+h||t-h>u&&n-h>u&&r-h>u&&a-h>u)&&h/2>=Ui(t,e,n,i,r,o,a,s,u,c,null)}function ur(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;return!(l>e+u&&l>i+u&&l>o+u||e-u>l&&i-u>l&&o-u>l||s>t+u&&s>n+u&&s>r+u||t-u>s&&n-u>s&&r-u>s)&&u/2>=Ji(t,e,n,i,r,o,s,l,null)}function cr(t){return t%=L_,0>t&&(t+=L_),t}function hr(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||n>c+u)return!1;if(Math.abs(i-r)%R_<1e-4)return!0;if(o){var h=i;i=cr(r),r=cr(h)}else i=cr(i),r=cr(r);i>r&&(r+=R_);var p=Math.atan2(l,s);return 0>p&&(p+=R_),p>=i&&r>=p||p+R_>=i&&r>=p+R_}function pr(t,e,n,i,r,o){if(o>e&&o>i||e>o&&i>o)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=e>i?1:-1;(1===a||0===a)&&(s=e>i?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}function fr(t,e){return Math.abs(t-e)<B_}function dr(){var t=F_[0];F_[0]=F_[1],F_[1]=t}function gr(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||e>u&&i>u&&o>u&&s>u)return 0;var c=Gi(e,i,o,s,u,z_);if(0===c)return 0;for(var h=0,p=-1,f=void 0,d=void 0,g=0;c>g;g++){var y=z_[g],v=0===y||1===y?.5:1;l>Vi(t,n,r,a,y)||(0>p&&(p=Wi(e,i,o,s,F_),F_[1]<F_[0]&&p>1&&dr(),f=Vi(e,i,o,s,F_[0]),p>1&&(d=Vi(e,i,o,s,F_[1]))),h+=2===p?y<F_[0]?e>f?v:-v:y<F_[1]?f>d?v:-v:d>s?v:-v:y<F_[0]?e>f?v:-v:f>s?v:-v)}return h}function yr(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||e>s&&i>s&&o>s)return 0;var l=Zi(e,i,o,s,z_);if(0===l)return 0;var u=$i(e,i,o);if(u>=0&&1>=u){for(var c=0,h=Yi(e,i,o,u),p=0;l>p;p++){var f=0===z_[p]||1===z_[p]?.5:1,d=Yi(t,n,r,z_[p]);a>d||(c+=z_[p]<u?e>h?f:-f:h>o?f:-f)}return c}var f=0===z_[0]||1===z_[0]?.5:1,d=Yi(t,n,r,z_[0]);return a>d?0:e>o?f:-f}function vr(t,e,n,i,r,o,a,s){if((s-=e)>n||-n>s)return 0;var l=Math.sqrt(n*n-s*s);z_[0]=-l,z_[1]=l;var u=Math.abs(i-r);if(1e-4>u)return 0;if(u>=N_-1e-4){i=0,r=N_;var c=o?1:-1;return a>=z_[0]+t&&a<=z_[1]+t?c:0}if(i>r){var h=i;i=r,r=h}0>i&&(i+=N_,r+=N_);for(var p=0,f=0;2>f;f++){var d=z_[f];if(d+t>a){var g=Math.atan2(s,d),c=o?1:-1;0>g&&(g=N_+g),(g>=i&&r>=g||g+N_>=i&&r>=g+N_)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),p+=c)}}return p}function mr(t,e,n,i,r){for(var o,a,s=t.data,l=t.len(),u=0,c=0,h=0,p=0,f=0,d=0;l>d;){var g=s[d++],y=1===d;switch(g===E_.M&&d>1&&(n||(u+=pr(c,h,p,f,i,r))),y&&(c=s[d],h=s[d+1],p=c,f=h),g){case E_.M:p=s[d++],f=s[d++],c=p,h=f;break;case E_.L:if(n){if(sr(c,h,s[d],s[d+1],e,i,r))return!0}else u+=pr(c,h,s[d],s[d+1],i,r)||0;c=s[d++],h=s[d++];break;case E_.C:if(n){if(lr(c,h,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],e,i,r))return!0}else u+=gr(c,h,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],i,r)||0;c=s[d++],h=s[d++];break;case E_.Q:if(n){if(ur(c,h,s[d++],s[d++],s[d],s[d+1],e,i,r))return!0}else u+=yr(c,h,s[d++],s[d++],s[d],s[d+1],i,r)||0;c=s[d++],h=s[d++];break;case E_.A:var v=s[d++],m=s[d++],_=s[d++],x=s[d++],b=s[d++],w=s[d++];d+=1;var S=!!(1-s[d++]);o=Math.cos(b)*_+v,a=Math.sin(b)*x+m,y?(p=o,f=a):u+=pr(c,h,o,a,i,r);var C=(i-v)*x/_+v;if(n){if(hr(v,m,x,b,b+w,S,e,C,r))return!0}else u+=vr(v,m,x,b,b+w,S,C,r);c=Math.cos(b+w)*_+v,h=Math.sin(b+w)*x+m;break;case E_.R:p=c=s[d++],f=h=s[d++];var T=s[d++],M=s[d++];if(o=p+T,a=f+M,n){if(sr(p,f,o,f,e,i,r)||sr(o,f,o,a,e,i,r)||sr(o,a,p,a,e,i,r)||sr(p,a,p,f,e,i,r))return!0}else u+=pr(o,f,o,a,i,r),u+=pr(p,a,p,f,i,r);break;case E_.Z:if(n){if(sr(c,h,p,f,e,i,r))return!0}else u+=pr(c,h,p,f,i,r);c=p,h=f}}return n||fr(h,f)||(u+=pr(c,h,p,f,i,r)||0),0!==u}function _r(t,e,n){return mr(t,0,!1,e,n)}function xr(t,e,n,i){return mr(t,e,!0,n,i)}function br(t){return!!(t&&"string"!=typeof t&&t.width&&t.height)}function wr(t,e){var n,i,r,o,a=e.x,s=e.y,l=e.width,u=e.height,c=e.r;0>l&&(a+=l,l=-l),0>u&&(s+=u,u=-u),"number"==typeof c?n=i=r=o=c:c instanceof Array?1===c.length?n=i=r=o=c[0]:2===c.length?(n=r=c[0],i=o=c[1]):3===c.length?(n=c[0],i=o=c[1],r=c[2]):(n=c[0],i=c[1],r=c[2],o=c[3]):n=i=r=o=0;var h;n+i>l&&(h=n+i,n*=l/h,i*=l/h),r+o>l&&(h=r+o,r*=l/h,o*=l/h),i+r>u&&(h=i+r,i*=u/h,r*=u/h),n+o>u&&(h=n+o,n*=u/h,o*=u/h),t.moveTo(a+n,s),t.lineTo(a+l-i,s),0!==i&&t.arc(a+l-i,s+i,i,-Math.PI/2,0),t.lineTo(a+l,s+u-r),0!==r&&t.arc(a+l-r,s+u-r,r,0,Math.PI/2),t.lineTo(a+o,s+u),0!==o&&t.arc(a+o,s+u-o,o,Math.PI/2,Math.PI),t.lineTo(a,s+n),0!==n&&t.arc(a+n,s+n,n,Math.PI,1.5*Math.PI)}function Sr(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(Z_(2*i)===Z_(2*r)&&(t.x1=t.x2=Tr(i,s,!0)),Z_(2*o)===Z_(2*a)&&(t.y1=t.y2=Tr(o,s,!0)),t):t}}function Cr(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=Tr(i,s,!0),t.y=Tr(r,s,!0),t.width=Math.max(Tr(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Tr(r+a,s,!1)-t.y,0===a?0:1),t):t}}function Tr(t,e,n){if(!e)return t;var i=Z_(2*t);return(i+Z_(e))%2==0?i/2:(i+(n?1:-1))/2}function Mr(t){return Ir(t),g(t.rich,Ir),t}function Ir(t){if(t){t.font=ex.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||nx[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||ix[n]?n:"top";t.padding&&(t.padding=V(t.padding))}}function kr(t,e){return null==t||0>=e||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Dr(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Ar(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Or(t){var e=t.text;return null!=e&&(e+=""),e}function Pr(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function Lr(t){return null!=t&&"none"!==t}function Rr(t){if("string"!=typeof t)return t;var e=bx.get(t);return e||(e=ae(t,-.1),bx.put(t,e)),e}function Er(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Nr(t){Er(t,"emphasis",hx)}function Br(t){t.hoverState===hx&&Er(t,"normal",ux)}function zr(t){Er(t,"blur",cx)}function Fr(t){t.hoverState===cx&&Er(t,"normal",ux)}function Vr(t){t.selected=!0}function Hr(t){t.selected=!1}function Gr(t,e,n){e(t,n)}function Wr(t,e,n){Gr(t,e,n),t.isGroup&&t.traverse(function(t){Gr(t,e,n)})}function jr(t,e){switch(e){case"emphasis":t.hoverState=hx;break;case"normal":t.hoverState=ux;break;case"blur":t.hoverState=cx;break;case"select":t.selected=!0}}function Ur(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(var a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveFinalToTarget(o,e)}return o}function Xr(t,e,n,i){var r=n&&h(n,"select")>=0,o=!1;if(t instanceof W_){var a=lx(t),s=r?a.selectFill||a.normalFill:a.normalFill,l=r?a.selectStroke||a.normalStroke:a.normalStroke;if(Lr(s)||Lr(l)){i=i||{};var c=i.style||{};"inherit"===c.fill?(o=!0,i=u({},i),c=u({},c),c.fill=s):!Lr(c.fill)&&Lr(s)?(o=!0,i=u({},i),c=u({},c),c.fill=Rr(s)):!Lr(c.stroke)&&Lr(l)&&(o||(i=u({},i),c=u({},c)),c.stroke=Rr(l)),i.style=c}}if(i&&null==i.z2){o||(i=u({},i));var p=t.z2EmphasisLift;i.z2=t.z2+(null!=p?p:dx)}return i}function Yr(t,e,n){if(n&&null==n.z2){n=u({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:gx)}return n}function qr(t,e,n){var i=h(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:Ur(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=u({},n),a=u({opacity:i?r:.1*o.opacity},a),n.style=a),n}function Zr(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return Xr(this,t,e,n);if("blur"===t)return qr(this,t,n);if("select"===t)return Yr(this,t,n)}return n}function $r(t){t.stateProxy=Zr;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=Zr),n&&(n.stateProxy=Zr)}function Kr(t,e){!oo(t,e)&&!t.__highByOuter&&Wr(t,Nr)}function Jr(t,e){!oo(t,e)&&!t.__highByOuter&&Wr(t,Br)}function Qr(t,e){t.__highByOuter|=1<<(e||0),Wr(t,Nr)}function to(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Wr(t,Br)}function eo(t){Wr(t,zr)}function no(t){Wr(t,Fr)}function io(t){Wr(t,Vr)}function ro(t){Wr(t,Hr)}function oo(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function ao(t){t.getModel().eachComponent(function(e,n){("series"===e?t.getViewOfSeriesModel(n):t.getViewOfComponentModel(n)).group.traverse(function(t){Fr(t)})})}function so(t,e,n,i){function r(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&no(i)}}var o=i.getModel();if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=o.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];o.eachSeries(function(t){var o=a===t,u=t.coordinateSystem;u&&u.master&&(u=u.master);var c=u&&s?u===s:o;if(!("series"===n&&!o||"coordinateSystem"===n&&!c||"series"===e&&o)){if(i.getViewOfSeriesModel(t).group.traverse(function(t){zr(t)}),d(e))r(t.getData(),e);else if(k(e))for(var h=x(e),p=0;p<h.length;p++)r(t.getData(h[p]),e[h[p]]);l.push(t)}}),o.eachComponent(function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.blurSeries&&n.blurSeries(l,o)}})}}function lo(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse(function(t){zr(t)})}}}function uo(t,e,n){var i=t.seriesIndex,r=t.getData(e.dataType),o=ri(r,e);o=(S(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var s=r.count(),l=0;!a&&s>l;)a=r.getItemGraphicEl(l++);if(a){var u=rx(a);so(i,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&so(i,c,h,n)}}function co(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;var o=i.getModel().getComponent(t,e);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===rx(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function ho(t,e,n){var i=rx(t),r=co(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=r.dispatchers,a=r.focusSelf;o?(a&&lo(i.componentMainType,i.componentIndex,n),g(o,function(t){return Kr(t,e)})):(so(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&lo(i.componentMainType,i.componentIndex,n),Kr(t,e))}function po(t,e,n){ao(n);var i=rx(t),r=co(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?g(r,function(t){return Jr(t,e)}):Jr(t,e)}function fo(t,e){if(So(e)){var n=e.dataType,i=t.getData(n),r=ri(i,e);S(r)||(r=[r]),t[e.type===xx?"toggleSelect":e.type===mx?"select":"unselect"](r,n)}}function go(t){g(t.getAllData(),function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(e,n){t.isSelected(n,i)?io(e):ro(e)})})}function yo(t){var e=[];return t.eachSeries(function(t){g(t.getAllData(),function(n){var i=(n.data,n.type),r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}})}),e}function vo(t,e,n){xo(t,!0),Wr(t,$r),mo(t,e,n)}function mo(t,e,n){var i=rx(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}function _o(t,e,n,i){n=n||"itemStyle";for(var r=0;r<Sx.length;r++){var o=Sx[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[Cx[n]]()}}function xo(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function bo(t){return!(!t||!t.__highDownDispatcher)}function wo(t){var e=sx[t];return null==e&&32>=ax&&(e=sx[t]=ax++),e}function So(t){var e=t.type;return e===mx||e===_x||e===xx}function Co(t){var e=t.type;return e===yx||e===vx}function To(t){var e=lx(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}function Mo(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),c=Tx.M,h=Tx.C,p=Tx.L,f=Tx.R,d=Tx.A,g=Tx.Q;for(r=0,o=0;u>r;){switch(n=l[r++],o=r,i=0,n){case c:case p:i=1;break;case h:i=3;break;case g:i=2;break;case d:var y=e[4],v=e[5],m=Ix(e[0]*e[0]+e[1]*e[1]),_=Ix(e[2]*e[2]+e[3]*e[3]),x=kx(-e[1]/_,e[0]/m);l[r]*=m,l[r++]+=y,l[r]*=_,l[r++]+=v,l[r++]*=m,l[r++]*=_,l[r++]+=x,l[r++]+=x,r+=2,o=r;break;case f:s[0]=l[r++],s[1]=l[r++],dt(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],dt(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;i>a;a++){var b=Mx[a];b[0]=l[r++],b[1]=l[r++],dt(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}}function Io(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ko(t,e){return(t[0]*e[0]+t[1]*e[1])/(Io(t)*Io(e))}function Do(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(ko(t,e))}function Ao(t,e,n,i,r,o,a,s,l,u,c){var h=l*(Px/180),p=Ox(h)*(t-n)/2+Ax(h)*(e-i)/2,f=-1*Ax(h)*(t-n)/2+Ox(h)*(e-i)/2,d=p*p/(a*a)+f*f/(s*s);d>1&&(a*=Dx(d),s*=Dx(d));var g=(r===o?-1:1)*Dx((a*a*s*s-a*a*f*f-s*s*p*p)/(a*a*f*f+s*s*p*p))||0,y=g*a*f/s,v=g*-s*p/a,m=(t+n)/2+Ox(h)*y-Ax(h)*v,_=(e+i)/2+Ax(h)*y+Ox(h)*v,x=Do([1,0],[(p-y)/a,(f-v)/s]),b=[(p-y)/a,(f-v)/s],w=[(-1*p-y)/a,(-1*f-v)/s],S=Do(b,w);if(ko(b,w)<=-1&&(S=Px),ko(b,w)>=1&&(S=0),0>S){var C=Math.round(S/Px*1e6)/1e6;S=2*Px+C%2*Px}c.addData(u,m,_,a,s,x,S,h,o)}function Oo(t){var e=new P_;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=P_.CMD,l=t.match(Lx);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),p=void 0,f=c.match(Rx)||[],d=f.length,g=0;d>g;g++)f[g]=parseFloat(f[g]);for(var y=0;d>y;){var v=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,C=i,T=r,M=void 0,I=void 0;switch(h){case"l":i+=f[y++],r+=f[y++],p=s.L,e.addData(p,i,r);break;case"L":i=f[y++],r=f[y++],p=s.L,e.addData(p,i,r);break;case"m":i+=f[y++],r+=f[y++],p=s.M,e.addData(p,i,r),o=i,a=r,h="l";break;case"M":i=f[y++],r=f[y++],p=s.M,e.addData(p,i,r),o=i,a=r,h="L";break;case"h":i+=f[y++],p=s.L,e.addData(p,i,r);break;case"H":i=f[y++],p=s.L,e.addData(p,i,r);break;case"v":r+=f[y++],p=s.L,e.addData(p,i,r);break;case"V":r=f[y++],p=s.L,e.addData(p,i,r);break;case"C":p=s.C,e.addData(p,f[y++],f[y++],f[y++],f[y++],f[y++],f[y++]),i=f[y-2],r=f[y-1];break;case"c":p=s.C,e.addData(p,f[y++]+i,f[y++]+r,f[y++]+i,f[y++]+r,f[y++]+i,f[y++]+r),i+=f[y-2],r+=f[y-1];break;case"S":v=i,m=r,M=e.len(),I=e.data,n===s.C&&(v+=i-I[M-4],m+=r-I[M-3]),p=s.C,C=f[y++],T=f[y++],i=f[y++],r=f[y++],e.addData(p,v,m,C,T,i,r);break;case"s":v=i,m=r,M=e.len(),I=e.data,n===s.C&&(v+=i-I[M-4],m+=r-I[M-3]),p=s.C,C=i+f[y++],T=r+f[y++],i+=f[y++],r+=f[y++],e.addData(p,v,m,C,T,i,r);break;case"Q":C=f[y++],T=f[y++],i=f[y++],r=f[y++],p=s.Q,e.addData(p,C,T,i,r);break;case"q":C=f[y++]+i,T=f[y++]+r,i+=f[y++],r+=f[y++],p=s.Q,e.addData(p,C,T,i,r);break;case"T":v=i,m=r,M=e.len(),I=e.data,n===s.Q&&(v+=i-I[M-4],m+=r-I[M-3]),i=f[y++],r=f[y++],p=s.Q,e.addData(p,v,m,i,r);break;case"t":v=i,m=r,M=e.len(),I=e.data,n===s.Q&&(v+=i-I[M-4],m+=r-I[M-3]),i+=f[y++],r+=f[y++],p=s.Q,e.addData(p,v,m,i,r);break;case"A":_=f[y++],x=f[y++],b=f[y++],w=f[y++],S=f[y++],C=i,T=r,i=f[y++],r=f[y++],p=s.A,Ao(C,T,i,r,w,S,_,x,b,p,e);break;case"a":_=f[y++],x=f[y++],b=f[y++],w=f[y++],S=f[y++],C=i,T=r,i+=f[y++],r+=f[y++],p=s.A,Ao(C,T,i,r,w,S,_,x,b,p,e)}}("z"===h||"Z"===h)&&(p=s.Z,e.addData(p),i=o,r=a),n=p}return e.toStatic(),e}function Po(t){return null!=t.setData}function Lo(t,e){var n=Oo(t),i=u({},e);return i.buildPath=function(t){if(Po(t)){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},i.applyTransform=function(t){Mo(n,t),this.dirtyShape()},i}function Ro(t,e){return new Ex(Lo(t,e))}function Eo(t,n){var i=Lo(t,n);return function(t){function n(e){var n=t.call(this,e)||this;return n.applyTransform=i.applyTransform,n.buildPath=i.buildPath,n}return e(n,t),n}(Ex)}function No(t,e){for(var n=[],i=t.length,r=0;i>r;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}var a=new W_(e);return a.createPathProxy(),a.buildPath=function(t){if(Po(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}function Bo(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,c=a-r,h=s-o,p=h*l-c*u;return $x>p*p?void 0:(p=(c*(e-o)-h*(t-r))/p,[t+p*l,e+p*u])}function zo(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/Yx(s*s+l*l),c=u*l,h=-u*s,p=t+c,f=e+h,d=n+c,g=i+h,y=(p+d)/2,v=(f+g)/2,m=d-p,_=g-f,x=m*m+_*_,b=r-o,w=p*g-d*f,S=(0>_?-1:1)*Yx(qx(0,b*b*x-w*w)),C=(w*_-m*S)/x,T=(-w*m-_*S)/x,M=(w*_+m*S)/x,I=(-w*m+_*S)/x,k=C-y,D=T-v,A=M-y,O=I-v;return k*k+D*D>A*A+O*O&&(C=M,T=I),{cx:C,cy:T,x01:-c,y01:-h,x11:C*(r/b-1),y11:T*(r/b-1)}}function Fo(t,e){var n=qx(e.r,0),i=qx(e.r0||0,0),r=n>0,o=i>0;if(r||o){if(r||(n=i,i=0),i>n){var a=n;n=i,i=a}var s,l=!!e.clockwise,u=e.startAngle,c=e.endAngle;if(u===c)s=0;else{var h=[u,c];ar(h,!l),s=Xx(h[0]-h[1])}var p=e.cx,f=e.cy,d=e.cornerRadius||0,g=e.innerCornerRadius||0;if(n>$x)if(s>Hx-$x)t.moveTo(p+n*Wx(u),f+n*Gx(u)),t.arc(p,f,n,u,c,!l),i>$x&&(t.moveTo(p+i*Wx(c),f+i*Gx(c)),t.arc(p,f,i,c,u,l));else{var y=Xx(n-i)/2,v=Zx(y,d),m=Zx(y,g),_=m,x=v,b=n*Wx(u),w=n*Gx(u),S=i*Wx(c),C=i*Gx(c),T=void 0,M=void 0,I=void 0,k=void 0;if((v>$x||m>$x)&&(T=n*Wx(c),M=n*Gx(c),I=i*Wx(u),k=i*Gx(u),Vx>s)){var D=Bo(b,w,I,k,T,M,S,C);if(D){var A=b-D[0],O=w-D[1],P=T-D[0],L=M-D[1],R=1/Gx(jx((A*P+O*L)/(Yx(A*A+O*O)*Yx(P*P+L*L)))/2),E=Yx(D[0]*D[0]+D[1]*D[1]);_=Zx(m,(i-E)/(R-1)),x=Zx(v,(n-E)/(R+1))}}if(s>$x)if(x>$x){var N=zo(I,k,b,w,n,x,l),B=zo(T,M,S,C,n,x,l);t.moveTo(p+N.cx+N.x01,f+N.cy+N.y01),v>x?t.arc(p+N.cx,f+N.cy,x,Ux(N.y01,N.x01),Ux(B.y01,B.x01),!l):(t.arc(p+N.cx,f+N.cy,x,Ux(N.y01,N.x01),Ux(N.y11,N.x11),!l),t.arc(p,f,n,Ux(N.cy+N.y11,N.cx+N.x11),Ux(B.cy+B.y11,B.cx+B.x11),!l),t.arc(p+B.cx,f+B.cy,x,Ux(B.y11,B.x11),Ux(B.y01,B.x01),!l))}else t.moveTo(p+b,f+w),t.arc(p,f,n,u,c,!l);else t.moveTo(p+b,f+w);if(i>$x&&s>$x)if(_>$x){var N=zo(S,C,T,M,i,-_,l),B=zo(b,w,I,k,i,-_,l);t.lineTo(p+N.cx+N.x01,f+N.cy+N.y01),m>_?t.arc(p+N.cx,f+N.cy,_,Ux(N.y01,N.x01),Ux(B.y01,B.x01),!l):(t.arc(p+N.cx,f+N.cy,_,Ux(N.y01,N.x01),Ux(N.y11,N.x11),!l),t.arc(p,f,i,Ux(N.cy+N.y11,N.cx+N.x11),Ux(B.cy+B.y11,B.cx+B.x11),l),t.arc(p+B.cx,f+B.cy,_,Ux(B.y11,B.x11),Ux(B.y01,B.x01),!l))}else t.lineTo(p+S,f+C),t.arc(p,f,i,c,u,l);else t.lineTo(p+S,f+C)}else t.moveTo(p,f);t.closePath()}}function Vo(t,e,n,i,r,o,a){var s=.5*(n-t),l=.5*(i-e);return(2*(e-n)+s+l)*a+(-3*(e-n)-2*s-l)*o+s*r+e}function Ho(t,e){for(var n=t.length,i=[],r=0,o=1;n>o;o++)r+=ct(t[o-1],t[o]);var a=r/2;a=n>a?n:a;for(var o=0;a>o;o++){var s=o/(a-1)*(e?n:n-1),l=Math.floor(s),u=s-l,c=void 0,h=t[l%n],p=void 0,f=void 0;e?(c=t[(l-1+n)%n],p=t[(l+1)%n],f=t[(l+2)%n]):(c=t[0===l?l:l-1],p=t[l>n-2?n-1:l+1],f=t[l>n-3?n-1:l+2]);var d=u*u,g=u*d;i.push([Vo(c[0],h[0],p[0],f[0],u,d,g),Vo(c[1],h[1],p[1],f[1],u,d,g)])}return i}function Go(t,e,n,i){var r,o,a,s,l=[],u=[],c=[],h=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,f=t.length;f>p;p++)gt(a,a,t[p]),yt(s,s,t[p]);gt(a,a,i[0]),yt(s,s,i[1])}for(var p=0,f=t.length;f>p;p++){var d=t[p];if(n)r=t[p?p-1:f-1],o=t[(p+1)%f];else{if(0===p||p===f-1){l.push(J(t[p]));continue}r=t[p-1],o=t[p+1]}nt(u,o,r),lt(u,u,e);var g=ct(d,r),y=ct(d,o),v=g+y;0!==v&&(g/=v,y/=v),lt(c,u,-g),lt(h,u,y);var m=tt([],d,c),_=tt([],d,h);i&&(yt(m,m,a),gt(m,m,s),yt(_,_,a),gt(_,_,s)),l.push(m),l.push(_)}return n&&l.push(l.shift()),l}function Wo(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i&&"spline"!==i){var o=Go(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;(n?a:a-1)>s;s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{"spline"===i&&(r=Ho(r,n)),t.moveTo(r[0][0],r[0][1]);for(var s=1,h=r.length;h>s;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}function jo(t,e,n){var i=t.cpx2,r=t.cpy2;return null===i||null===r?[(n?Hi:Vi)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Hi:Vi)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?qi:Yi)(t.x1,t.cpx1,t.x2,e),(n?qi:Yi)(t.y1,t.cpy1,t.y2,e)]}function Uo(t,e,n,i,r){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(s){var u=void 0,c=void 0,h=void 0;i?(u=B(i.duration,200),c=B(i.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(c=o.easing),null!=o.delay&&(h=o.delay)),"function"==typeof h&&(h=h(n,r)),"function"==typeof u&&(u=u(n));return{duration:u||0,delay:h,easing:c}}return null}function Xo(t,e,n,i,r,o,a){var s,l=!1;"function"==typeof r?(a=o,o=r,r=null):k(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="remove"===t;u||e.stopAnimation("remove");var c=Uo(t,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(c&&c.duration>0){var h=c.duration,p=c.delay,f=c.easing,d={duration:h,delay:p||0,easing:f,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,d):e.animateTo(n,d)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function Yo(t,e,n,i,r,o){Xo("update",t,e,n,i,r,o)}function qo(t,e,n,i,r,o){Xo("init",t,e,n,i,r,o)}function Zo(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){if("remove"===t.animators[e].scope)return!0}return!1}function $o(t,e,n,i,r,o){Zo(t)||Xo("remove",t,e,n,i,r,o)}function Ko(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),$o(t,{style:{opacity:0}},e,n,i)}function Jo(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||Ko(t,e,n,i)}):Ko(t,e,n,i)}function Qo(t){Cb(t).oldStyle=t.style}function ta(t){return W_.extend(t)}function ea(t,e){return kb(t,e)}function na(t,e){Ib[t]=e}function ia(t){return Ib.hasOwnProperty(t)?Ib[t]:void 0}function ra(t,e,n,i){var r=Ro(t,e);return n&&("center"===i&&(n=aa(n,r.getBoundingRect())),sa(r,n)),r}function oa(t,e,n){var i=new q_({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(aa(e,r))}}});return i}function aa(t,e){var n,i=e.width/e.height,r=t.height*i;return r<=t.width?n=t.height:(r=t.width,n=r/i),{x:t.x+t.width/2-r/2,y:t.y+t.height/2-n/2,width:r,height:n}}function sa(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}}function la(t){return Sr(t.shape,t.shape,t.style),t}function ua(t){return Cr(t.shape,t.shape,t.style),t}function ca(t,e){for(var n=Fe([]);t&&t!==e;)He(n,t.getLocalTransform(),n),t=t.parent;return n}function ha(t,e,n){return e&&!d(e)&&(e=qv.getLocalTransform(e)),n&&(e=Ue([],e)),dt([],t,e)}function pa(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=ha(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function fa(t){return!t.isGroup}function da(t){return null!=t.shape}function ga(t,e,n){function i(t){var e={x:t.x,y:t.y,rotation:t.rotation};return da(t)&&(e.shape=u({},t.shape)),e}if(t&&e){var r=function(t){var e={};return t.traverse(function(t){fa(t)&&t.anid&&(e[t.anid]=t)}),e}(t);e.traverse(function(t){if(fa(t)&&t.anid){var e=r[t.anid];if(e){var o=i(t);t.attr(i(e)),Yo(t,o,n,rx(t).dataIndex)}}})}}function ya(t,e){return y(t,function(t){var n=t[0];n=Tb(n,e.x),n=Mb(n,e.x+e.width);var i=t[1];return i=Tb(i,e.y),i=Mb(i,e.y+e.height),[n,i]})}function va(t,e){var n=Tb(t.x,e.x),i=Mb(t.x+t.width,e.x+e.width),r=Tb(t.y,e.y),o=Mb(t.y+t.height,e.y+e.height);return i>=n&&o>=r?{x:n,y:r,width:i-n,height:o-r}:void 0}function ma(t,e,n){var i=u({rectHover:!0},e),r=i.style={strokeNoScale:!0};return n=n||{x:-1,y:-1,width:2,height:2},t?0===t.indexOf("image://")?(r.image=t.slice(8),c(r,n),new q_(i)):ra(t.replace("path://",""),i,n,"center"):void 0}function _a(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(xa(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function xa(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,c=a-r,h=s-o,p=ba(c,h,l,u);if(wa(p))return!1;var f=t-r,d=e-o,g=ba(f,d,l,u)/p;if(0>g||g>1)return!1;var y=ba(f,d,c,h)/p;return!(0>y||y>1)}function ba(t,e,n,i){return t*i-n*e}function wa(t){return 1e-6>=t&&t>=-1e-6}function Sa(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=T(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&g(x(l),function(t){q(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=rx(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:c({content:i,formatterParams:s},r)}}function Ca(t,e){for(var n=0;n<px.length;n++){var i=px[n],r=e[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function Ta(t,e,n){var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=C(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:i},u=0;u<px.length;u++){var c=px[u],h=e[c];l[c]=B(r?r.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,i)}return l}function Ma(t,e,n,i){n=n||Pb;for(var r=t instanceof ex,o=!1,a=0;a<fx.length;a++){var s=e[fx[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=r?t:t.getTextContent();if(o){r||(l||(l=new ex,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=Ta(n,e),c=e.normal,h=!!c.getShallow("show"),p=ka(c,i&&i.normal,n,!1,!r);p.text=u.normal,r||t.setTextConfig(Da(c,n,!1));for(var a=0;a<px.length;a++){var f=px[a],s=e[f];if(s){var d=l.ensureState(f),g=!!B(s.getShallow("show"),h);if(g!==h&&(d.ignore=!g),d.style=ka(s,i&&i[f],n,!0,!r),d.style.text=u[f],!r){t.ensureState(f).textConfig=Da(s,n,!0)}}}l.silent=!!c.getShallow("silent"),null!=l.style.x&&(p.x=l.style.x),null!=l.style.y&&(p.y=l.style.y),l.ignore=!h,l.useStyle(p),l.dirty(),n.enableTextSetter&&(Nb(l).setLabelText=function(t){var i=Ta(n,e,t);Ca(l,i)})}else l&&(l.ignore=!0);t.dirty()}function Ia(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<px.length;i++){var r=px[i];n[r]=t.getModel([r,e])}return n}function ka(t,e,n,i,r){var o={};return Aa(o,t,n,i,r),e&&u(o,e),o}function Da(t,e,n){e=e||{};var i,r={},o=t.getShallow("rotate"),a=B(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(n?null:"inside"),"outside"===i&&(i=e.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",r}function Aa(t,e,n,i,r){n=n||Pb;var o,a=e.ecModel,s=a&&a.option.textStyle,l=Oa(e);if(l){o={};for(var u in l)if(l.hasOwnProperty(u)){var c=e.getModel(["rich",u]);Pa(o[u]={},c,s,n,i,r,!1,!0)}}o&&(t.rich=o);var h=e.get("overflow");h&&(t.overflow=h);var p=e.get("minMargin");null!=p&&(t.margin=p),Pa(t,e,s,n,i,r,!0,!1)}function Oa(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||Pb).rich;if(n){e=e||{};for(var i=x(n),r=0;r<i.length;r++){e[i[r]]=1}}t=t.parentModel}return e}function Pa(t,e,n,i,r,o,a,s){n=!r&&n||Pb;var l=i&&i.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=B(e.getShallow("opacity"),n.opacity);("inherit"===u||"auto"===u)&&(u=l||null),("inherit"===c||"auto"===c)&&(c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(t.fill=u),null!=c&&(t.stroke=c);var p=B(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(t.lineWidth=p);var f=B(e.getShallow("textBorderType"),n.textBorderType);null!=f&&(t.lineDash=f);var d=B(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=d&&(t.lineDashOffset=d),r||null!=h||s||(h=i&&i.defaultOpacity),null!=h&&(t.opacity=h),r||o||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var g=0;g<Lb.length;g++){var y=Lb[g],v=B(e.getShallow(y),n[y]);null!=v&&(t[y]=v)}for(var g=0;g<Rb.length;g++){var y=Rb[g],v=e.getShallow(y);null!=v&&(t[y]=v)}if(null==t.verticalAlign){var m=e.getShallow("baseline");null!=m&&(t.verticalAlign=m)}if(!a||!i.disableBox){for(var g=0;g<Eb.length;g++){var y=Eb[g],v=e.getShallow(y);null!=v&&(t[y]=v)}var _=e.getShallow("borderType");null!=_&&(t.borderDash=_),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function La(t,e){var n=e&&e.getModel("textStyle");return G([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}function Ra(t,e,n,i,r){function o(i){var o=pi(n,a.precision,l,u,i);a.interpolatedValue=1===i?null:o;var c=Ta({labelDataIndex:e,labelFetcher:r,defaultText:s?s(o):o+""},a.statesModels,o);Ca(t,c)}var a=Nb(t);if(a.valueAnimation){var s=a.defaultInterpolatedText,l=B(a.interpolatedValue,a.prevValue),u=a.value;(null==a.prevValue?qo:Yo)(t,{},i,e,null,o)}}function Ea(t){return[t||"",Yb++].join("_")}function Na(t,e){return s(s({},t,!0),e,!0)}function Ba(t,e){t=t.toUpperCase(),tw[t]=new Xb(e),Qb[t]=e}function za(t){if(T(t)){var e=Qb[t.toUpperCase()]||{};return t===$b||t===Kb?a(e):s(a(e),a(Qb[Jb]),!1)}return s(a(t),a(Qb[Jb]),!1)}function Fa(t){return tw[t]}function Va(){return tw[Jb]}function Ha(t,e){return t+="","0000".substr(0,e-t.length)+t}function Ga(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Wa(t){return t===Ga(t)}function ja(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ua(t,e,n,i){var r=kn(t),o=r[Za(n)](),a=r[$a(n)]()+1,s=Math.floor((a-1)/4)+1,l=r[Ka(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[Ja(n)](),h=(c-1)%12+1,p=r[Qa(n)](),f=r[ts(n)](),d=r[es(n)](),g=i instanceof Xb?i:Fa(i||ew)||Va(),y=g.getModel("time"),v=y.get("month"),m=y.get("monthAbbr"),_=y.get("dayOfWeek"),x=y.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,Ha(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Ha(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ha(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ha(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Ha(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Ha(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,Ha(d,3)).replace(/{S}/g,d+"")}function Xa(t,e,n,i,r){var o=null;if("string"==typeof n)o=n;else if("function"==typeof n)o=n(t.value,e,{level:t.level});else{var a=u({},sw);if(t.level>0)for(var s=0;s<cw.length;++s)a[cw[s]]="{primary|"+a[cw[s]]+"}";var l=n?!1===n.inherit?n:c(n,a):a,h=Ya(t.value,r);if(l[h])o=l[h];else if(l.inherit){for(var p=hw.indexOf(h),s=p-1;s>=0;--s)if(l[h]){o=l[h];break}o=o||a.none}if(S(o)){var f=null==t.level?0:t.level>=0?t.level:o.length+t.level;f=Math.min(f,o.length-1),o=o[f]}}return Ua(new Date(t.value),o,r,i)}function Ya(t,e){var n=kn(t),i=n[$a(e)]()+1,r=n[Ka(e)](),o=n[Ja(e)](),a=n[Qa(e)](),s=n[ts(e)](),l=n[es(e)](),u=0===l,c=u&&0===s,h=c&&0===a,p=h&&0===o,f=p&&1===r;return f&&1===i?"year":f?"month":p?"day":h?"hour":c?"minute":u?"second":"millisecond"}function qa(t,e,n){var i="number"==typeof t?kn(t):t;switch(e=e||Ya(t,n)){case"year":return i[Za(n)]();case"half-year":return i[$a(n)]()>=6?1:0;case"quarter":return Math.floor((i[$a(n)]()+1)/4);case"month":return i[$a(n)]();case"day":return i[Ka(n)]();case"half-day":return i[Ja(n)]()/24;case"hour":return i[Ja(n)]();case"minute":return i[Qa(n)]();case"second":return i[ts(n)]();case"millisecond":return i[es(n)]()}}function Za(t){return t?"getUTCFullYear":"getFullYear"}function $a(t){return t?"getUTCMonth":"getMonth"}function Ka(t){return t?"getUTCDate":"getDate"}function Ja(t){return t?"getUTCHours":"getHours"}function Qa(t){return t?"getUTCMinutes":"getMinutes"}function ts(t){return t?"getUTCSeconds":"getSeconds"}function es(t){return t?"getUTCMilliseconds":"getMilliseconds"}function ns(t){return t?"setUTCFullYear":"setFullYear"}function is(t){return t?"setUTCMonth":"setMonth"}function rs(t){return t?"setUTCDate":"setDate"}function os(t){return t?"setUTCHours":"setHours"}function as(t){return t?"setUTCMinutes":"setMinutes"}function ss(t){return t?"setUTCSeconds":"setSeconds"}function ls(t){return t?"setUTCMilliseconds":"setMilliseconds"}function us(t,e,n,i,r,o,a,s){return new ex({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}function cs(t){if(!En(t))return T(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function hs(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 ps(t){return null==t?"":(t+"").replace(fw,function(t,e){return dw[e]})}function fs(t,e,n){function i(t){return t&&G(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?kn(t):t;if(!isNaN(+s))return Ua(s,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return M(t)?i(t):I(t)&&r(t)?t+"":"-";var l=Rn(t);return r(l)?cs(l):M(t)?i(t):"-"}function ds(t,e,n){S(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=gw[o];t=t.replace(yw(a),yw(a,0))}for(var s=0;i>s;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(yw(gw[l],s),n?ps(u):u)}return t}function gs(t,e){var n=T(t)?{color:t,extraCssText:e}:t||{},i=n.color,r=n.type;e=n.extraCssText;var o=n.renderMode||"html";return i?"html"===o?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ps(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ps(i)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function ys(t,e,n){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var i=kn(e),r=n?"UTC":"",o=i["get"+r+"FullYear"](),a=i["get"+r+"Month"]()+1,s=i["get"+r+"Date"](),l=i["get"+r+"Hours"](),u=i["get"+r+"Minutes"](),c=i["get"+r+"Seconds"](),h=i["get"+r+"Milliseconds"]();return t=t.replace("MM",Ha(a,2)).replace("M",a).replace("yyyy",o).replace("yy",o%100+"").replace("dd",Ha(s,2)).replace("d",s).replace("hh",Ha(l,2)).replace("h",l).replace("mm",Ha(u,2)).replace("m",u).replace("ss",Ha(c,2)).replace("s",c).replace("SSS",Ha(h,3))}function vs(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function ms(t,e){return e=e||"transparent",T(t)?t:k(t)?t.colorStops&&(t.colorStops[0]||{}).color||e:e}function _s(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var c,h,p=l.getBoundingRect(),f=e.childAt(u+1),d=f&&f.getBoundingRect();if("horizontal"===t){var g=p.width+(d?-d.x+p.x:0);c=o+g,c>i||l.newline?(o=0,c=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var y=p.height+(d?-d.y+p.y:0);h=a+y,h>r||l.newline?(o+=s+n,a=0,h=y,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)})}function xs(t,e,n){n=pw(n||0);var i=e.width,r=e.height,o=mn(t.left,i),a=mn(t.top,r),s=mn(t.right,i),l=mn(t.bottom,r),u=mn(t.width,i),c=mn(t.height,r),h=n[2]+n[0],p=n[1]+n[3],f=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(c)&&(c=r-l-h-a),null!=f&&(isNaN(u)&&isNaN(c)&&(f>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-c-h),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-h}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var d=new om(o+n[3],a+n[0],u,c);return d.margin=n,d}function bs(t){var e=t.layoutMode||t.constructor.layoutMode;return k(e)?e:e?{type:e}:null}function ws(t,e,n){function i(n,i){var a={},l=0,u={},c=0;if(vw(n,function(e){u[e]=t[e]}),vw(n,function(t){r(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&c++}),s[i])return o(e,n[1])?u[n[2]]=null:o(e,n[2])&&(u[n[1]]=null),u;if(2!==c&&l){if(l>=2)return a;for(var h=0;h<n.length;h++){var p=n[h];if(!r(a,p)&&r(t,p)){a[p]=t[p];break}}return a}return u}function r(t,e){return t.hasOwnProperty(e)}function o(t,e){return null!=t[e]&&"auto"!==t[e]}function a(t,e,n){vw(t,function(t){e[t]=n[t]})}var s=n&&n.ignoreSize;!S(s)&&(s=[s,s]);var l=i(_w[0],0),u=i(_w[1],1);a(_w[0],t,l),a(_w[1],t,u)}function Ss(t){return Cs({},t)}function Cs(t,e){return e&&t&&vw(mw,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function Ts(t){var e=[];return g(ww.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=y(e,function(t){return fi(t).main}),"dataset"!==t&&h(e,"dataset")<=0&&e.unshift("dataset"),e}function Ms(t){zw(t).datasetMap=U()}function Is(t,e,n){function i(t,e,n){for(var i=0;n>i;i++)t.push(e+i)}function r(t){var e=t.dimsDef;return e?e.length:1}var o={},a=ks(e);if(!a||!t)return o;var s,l,u=[],c=[],h=e.ecModel,p=zw(h).datasetMap,f=a.uid+"_"+n.seriesLayoutBy;t=t.slice(),g(t,function(e,n){var i=k(e)?e:t[n]={name:e};"ordinal"===i.type&&null==s&&(s=n,l=r(i)),o[i.name]=[]});var d=p.get(f)||p.set(f,{categoryWayDim:l,valueWayDim:0});return g(t,function(t,e){var n=t.name,a=r(t);if(null==s){var l=d.valueWayDim;i(o[n],l,a),i(c,l,a),d.valueWayDim+=a}else if(s===e)i(o[n],0,a),i(u,0,a);else{var l=d.categoryWayDim;i(o[n],l,a),i(c,l,a),d.categoryWayDim+=a}}),u.length&&(o.itemName=u),c.length&&(o.seriesName=c),o}function ks(t){return t.get("data",!0)?void 0:li(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},km).models[0]}function Ds(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?li(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},km).models:[]}function As(t,e){return Os(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Os(t,e,n,i,r,o){function a(t){var e=T(t);return null!=t&&isFinite(t)&&""!==t?e?Bw.Might:Bw.Not:e&&"-"!==t?Bw.Must:void 0}var s;if(A(t))return Bw.Not;var l,u;if(i){var c=i[o];k(c)?(l=c.name,u=c.type):T(c)&&(l=c)}if(null!=u)return"ordinal"===u?Bw.Must:Bw.Not;if(e===Aw){var h=t;if(n===Nw){for(var p=h[o],f=0;f<(p||[]).length&&5>f;f++)if(null!=(s=a(p[r+f])))return s}else for(var f=0;f<h.length&&5>f;f++){var d=h[r+f];if(d&&null!=(s=a(d[o])))return s}}else if(e===Ow){var g=t;if(!l)return Bw.Not;for(var f=0;f<g.length&&5>f;f++){var y=g[f];if(y&&null!=(s=a(y[l])))return s}}else if(e===Pw){var v=t;if(!l)return Bw.Not;var p=v[l];if(!p||A(p))return Bw.Not;for(var f=0;f<p.length&&5>f;f++)if(null!=(s=a(p[f])))return s}else if(e===Dw)for(var m=t,f=0;f<m.length&&5>f;f++){var y=m[f],_=Gn(y);if(!S(_))return Bw.Not;if(null!=(s=a(_[o])))return s}return Bw.Not}function Ps(t,e,n){var i=Fw.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}function Ls(t,e){for(var n=t.length,i=0;n>i;i++)if(t[i].length>e)return t[i];return t[n-1]}function Rs(t,e,n,i,r,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&i?Ls(i,a):n;if((c=c||n)&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}function Es(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}function Ns(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}function Bs(t,e){var n=t.color&&!t.colorLayer;g(e,function(e,i){"colorLayer"===i&&n||ww.hasClass(i)||("object"==typeof e?t[i]=t[i]?s(t[i],e,!1):a(e):null==t[i]&&(t[i]=e))})}function zs(t,e,n){if(S(e)){var i=U();return g(e,function(t){if(null!=t){null!=Qn(t,null)&&i.set(t,!0)}}),m(n,function(e){return e&&i.get(e[t])})}var r=Qn(e,null);return m(n,function(e){return e&&null!=r&&e[t]===r})}function Fs(t,e){return e.hasOwnProperty("subType")?m(t,function(t){return t&&t.subType===e.subType}):t}function Vs(t){var e=U();return t&&g(Vn(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}function Hs(t,e,n){function i(t){g(e,function(e){e(t,n)})}var r,o,a=[],s=t.baseOption,l=t.timeline,u=t.options,c=t.media,h=!!t.media,p=!!(u||l||s&&s.timeline);return s?(o=s,o.timeline||(o.timeline=l)):((p||h)&&(t.options=t.media=null),o=t),h&&S(c)&&g(c,function(t){t&&t.option&&(t.query?a.push(t):r||(r=t))}),i(o),g(u,function(t){return i(t)}),g(a,function(t){return i(t.option)}),{baseOption:o,timelineOptions:u||[],mediaDefault:r,mediaList:a}}function Gs(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return g(t,function(t,e){var n=e.match(tS);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();Ws(i[a],t,o)||(r=!1)}}),r}function Ws(t,e,n){return"min"===n?t>=e:"max"===n?e>=t:t===e}function js(t,e){return t.join(",")===e.join(",")}function Us(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=rS.length;i>n;n++){var r=rS[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?s(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?s(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function Xs(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,c(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function Ys(t){Xs(t,"itemStyle"),Xs(t,"lineStyle"),Xs(t,"areaStyle"),Xs(t,"label"),Xs(t,"labelLine"),Xs(t,"upperLabel"),Xs(t,"edgeLabel")}function qs(t,e){var n=iS(t)&&t[e],i=iS(n)&&n.textStyle;if(i)for(var r=0,o=Mm.length;o>r;r++){var a=Mm[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function Zs(t){t&&(Ys(t),qs(t,"label"),t.emphasis&&qs(t.emphasis,"label"))}function $s(t){if(iS(t)){Us(t),Ys(t),qs(t,"label"),qs(t,"upperLabel"),qs(t,"edgeLabel"),t.emphasis&&(qs(t.emphasis,"label"),qs(t.emphasis,"upperLabel"),qs(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Us(e),Zs(e));var n=t.markLine;n&&(Us(n),Zs(n));var i=t.markArea;i&&Zs(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!A(o))for(var a=0;a<o.length;a++)Zs(o[a]);g(t.categories,function(t){Ys(t)})}if(r&&!A(r))for(var a=0;a<r.length;a++)Zs(r[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)Zs(s[a]);if((n=t.markLine)&&n.data)for(var l=n.data,a=0;a<l.length;a++)S(l[a])?(Zs(l[a][0]),Zs(l[a][1])):Zs(l[a]);"gauge"===t.type?(qs(t,"axisLabel"),qs(t,"title"),qs(t,"detail")):"treemap"===t.type?(Xs(t.breadcrumb,"itemStyle"),g(t.levels,function(t){Ys(t)})):"tree"===t.type&&Ys(t.leaves)}}function Ks(t){return S(t)?t:t?[t]:[]}function Js(t){return(S(t)?t[0]:t)||{}}function Qs(t,e){nS(Ks(t.series),function(t){iS(t)&&$s(t)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),nS(n,function(e){nS(Ks(t[e]),function(t){t&&(qs(t,"axisLabel"),qs(t.axisPointer,"label"))})}),nS(Ks(t.parallel),function(t){var e=t&&t.parallelAxisDefault;qs(e,"axisLabel"),qs(e&&e.axisPointer,"label")}),nS(Ks(t.calendar),function(t){Xs(t,"itemStyle"),qs(t,"dayLabel"),qs(t,"monthLabel"),qs(t,"yearLabel")}),nS(Ks(t.radar),function(t){qs(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),nS(Ks(t.geo),function(t){iS(t)&&(Zs(t),nS(Ks(t.regions),function(t){Zs(t)}))}),nS(Ks(t.timeline),function(t){Zs(t),Xs(t,"label"),Xs(t,"itemStyle"),Xs(t,"controlStyle",!0);var e=t.data;S(e)&&g(e,function(t){k(t)&&(Xs(t,"label"),Xs(t,"itemStyle"))})}),nS(Ks(t.toolbox),function(t){Xs(t,"iconStyle"),nS(t.feature,function(t){Xs(t,"iconStyle")})}),qs(Js(t.axisPointer),"label"),qs(Js(t.tooltip).axisPointer,"label")}function tl(t,e){for(var n=e.split(","),i=t,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}function el(t,e,n,i){for(var r,o=e.split(","),a=t,s=0;s<o.length-1;s++)r=o[s],null==a[r]&&(a[r]={}),a=a[r];(i||null==a[o[s]])&&(a[o[s]]=n)}function nl(t){t&&g(oS,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function il(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<sS.length;n++){var i=sS[n][1],r=sS[n][0];null!=e[i]&&(e[r]=e[i])}}function rl(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function ol(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function al(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}function sl(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&sl(t[n].children,e)}function ll(t,e){Qs(t,e),t.series=Vn(t.series),g(t.series,function(t){if(k(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),rl(t.label);var n=t.data;if(n&&!A(n))for(var i=0;i<n.length;i++)rl(n[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var r=tl(t,"pointer.color");null!=r&&el(t,"itemStyle.color",r)}else if("bar"===e){il(t),il(t.backgroundStyle),il(t.emphasis);var n=t.data;if(n&&!A(n))for(var i=0;i<n.length;i++)"object"==typeof n[i]&&(il(n[i]),il(n[i]&&n[i].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),ol(t),sl(t.data,ol)}else"graph"===e||"sankey"===e?al(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&c(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),nl(t)}}),t.dataRange&&(t.visualMap=t.dataRange),g(aS,function(e){var n=t[e];n&&(S(n)||(n=[n]),g(n,function(t){nl(t)}))})}function ul(t){var e=U();t.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each(cl)}function cl(t){g(t,function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex;a.modify(o,function(o,l,u){var c=a.get(e.stackedDimension,u);if(isNaN(c))return r;var h,p;s?p=a.getRawIndex(u):h=a.get(e.stackedByDimension,u);for(var f=NaN,d=n-1;d>=0;d--){var g=t[d];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,h)),p>=0){var y=g.data.getByRawIndex(g.stackResultDimension,p);if(c>=0&&y>0||0>=c&&0>y){c=Tn(c,y),f=y;break}}}return i[0]=c,i[1]=f,i})})}function hl(t){return t instanceof lS}function pl(t,e,n){n=n||gl(t);var i=e.seriesLayoutBy,r=yl(t,n,i,e.sourceHeader,e.dimensions);return new lS({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:a(e)})}function fl(t){return new lS({data:t,sourceFormat:A(t)?Lw:Dw})}function dl(t){return new lS({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:a(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function gl(t){var e=Rw;if(A(t))e=Lw;else if(S(t)){0===t.length&&(e=Aw);for(var n=0,i=t.length;i>n;n++){var r=t[n];if(null!=r){if(S(r)){e=Aw;break}if(k(r)){e=Ow;break}}}}else if(k(t))for(var o in t)if(q(t,o)&&d(t[o])){e=Pw;break}return e}function yl(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:ml(r),startIndex:a,dimensionsDetectedCount:o};if(e===Aw){var s=t;"auto"===i||null==i?_l(function(t){null!=t&&"-"!==t&&(T(t)?null==a&&(a=1):a=0)},n,s,10):a=I(i)?i:i?1:0,r||1!==a||(r=[],_l(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===Nw?s.length:s[0]?s[0].length:null}else if(e===Ow)r||(r=vl(t));else if(e===Pw)r||(r=[],g(t,function(t,e){r.push(e)}));else if(e===Dw){var l=Gn(t[0]);o=S(l)&&l.length||1}return{startIndex:a,dimensionsDefine:ml(r),dimensionsDetectedCount:o}}function vl(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e){var i=[];return g(e,function(t,e){i.push(e)}),i}}function ml(t){if(t){var e=U();return y(t,function(t){t=k(t)?t:{name:t};var n={name:t.name,displayName:t.displayName,type:t.type};if(null==n.name)return n;n.name+="",null==n.displayName&&(n.displayName=n.name);var i=e.get(n.name);return i?n.name+="-"+i.count++:e.set(n.name,{count:1}),n})}}function _l(t,e,n,i){if(e===Nw)for(var r=0;r<n.length&&i>r;r++)t(n[r]?n[r][0]:null,r);else for(var o=n[0]||[],r=0;r<o.length&&i>r;r++)t(o[r],r)}function xl(t){var e=t.sourceFormat;return e===Ow||e===Pw}function bl(t,e){return hS[Cl(t,e)]}function wl(t,e){return fS[Cl(t,e)]}function Sl(t){return gS[t]}function Cl(t,e){return t===Aw?t+"_"+e:t}function Tl(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return Sl(o)(i,a,s)}var l=i;return o===Dw&&(l=Gn(i)),l}}}function Ml(t){var e,n;return k(t)?t.type&&(n=t):e=t,{markupText:e,markupFragment:n}}function Il(t){return new mS(t)}function kl(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"===n&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+kn(t)),null==t||""===t?NaN:+t)}function Dl(t,e){var n=new wS,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==Ew&&Fn("");var a=[],s={},l=t.dimensionsDefine;if(l)g(l,function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};if(a.push(i),null!=n){q(s,n)&&Fn(""),s[n]=i}});else for(var u=0;u<t.dimensionsDetectedCount;u++)a.push({index:u});var c=bl(r,Ew);e.__isBuiltIn&&(n.getRawDataItem=function(t){return c(i,o,a,t)},n.getRawData=Dy(Al,null,t)),n.cloneRawData=Dy(Ol,null,t);var h=wl(r,Ew);n.count=Dy(h,null,i,o,a);var p=Sl(r);n.retrieveValue=function(t,e){var n=c(i,o,a,t);return f(n,e)};var f=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=a[e];return n?p(t,e,n.name):void 0}};return n.getDimensionInfo=Dy(Pl,null,a,s),n.cloneAllDimensionInfo=Dy(Ll,null,a),n}function Al(t){Bl(t.sourceFormat)||Fn("");return t.data}function Ol(t){var e=t.sourceFormat,n=t.data;if(!Bl(e)){Fn("")}if(e===Aw){for(var i=[],r=0,o=n.length;o>r;r++)i.push(n[r].slice());return i}if(e===Ow){for(var i=[],r=0,o=n.length;o>r;r++)i.push(u({},n[r]));return i}}function Pl(t,e,n){return null!=n?"number"==typeof n||!isNaN(n)&&!q(e,n)?t[n]:q(e,n)?e[n]:void 0:void 0}function Ll(t){return a(t)}function Rl(t){t=a(t);var e=t.type;e||Fn("");var n=e.split(":");2!==n.length&&Fn("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,SS.set(e,t)}function El(t,e,n){var i=Vn(t),r=i.length;r||Fn("");for(var o=0,a=r;a>o;o++){e=Nl(i[o],e),o!==a-1&&(e.length=Math.max(e.length,1))}return e}function Nl(t,e){e.length||Fn(""),k(t)||Fn("");var n=t.type,i=SS.get(n);i||Fn("");var r=y(e,function(t){return Dl(t,i)});return y(Vn(i.transform({upstream:r[0],upstreamList:r,config:a(t.config)})),function(t,n){k(t)||Fn(""),t.data||Fn(""),Bl(gl(t.data))||Fn("");var i,r=e[0];if(r&&0===n&&!t.dimensions){var o=r.startIndex;o&&(t.data=r.data.slice(0,o).concat(t.data)),i={seriesLayoutBy:Ew,sourceHeader:o,dimensions:r.metaRawOption.dimensions}}else i={seriesLayoutBy:Ew,sourceHeader:0,dimensions:t.dimensions};return pl(t.data,i,null)})}function Bl(t){return t===Aw||t===Ow}function zl(t){return t>65535?TS:MS}function Fl(){return[1/0,-1/0]}function Vl(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Hl(t,e,n,i,r){var o=DS[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;s>u;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(i)}function Gl(t){t.option.transform&&W(t.option.transform)}function Wl(t){return"series"===t.mainType}function jl(t){throw new Error(t)}function Ul(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+ps(i+"")+"px;color:"+ps(n)+";font-weight:"+ps(r+""),valueStyle:"font-size:"+ps(a+"")+"px;color:"+ps(o)+";font-weight:"+ps(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}function Xl(t,e){return e.type=t,e}function Yl(t){return q(ES,t.type)&&ES[t.type]}function ql(t,e,n,i){var r=[],o=e.blocks||[];H(!o||S(o)),o=o||[];var a=t.orderMode;if(e.sortBlocks&&a){o=o.slice();var s={valueAsc:"asc",valueDesc:"desc"};if(q(s,a)){var l=new bS(s[a],null);o.sort(function(t,e){return l.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===a&&o.reverse()}var u=$l(e);return g(o,function(e,n){var o=Yl(e).build(t,e,n>0?u.html:0,i);null!=o&&r.push(o)}),r.length?"richText"===t.renderMode?r.join(u.richText):Kl(r.join(""),n):void 0}function Zl(t,e,n,i,r,o){if(t){var a=Yl(t);a.planLayout(t);var s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e};return a.build(s,t,0,o)}}function $l(t){var e=t.__gapLevelBetweenSubBlocks;return{html:LS[e],richText:RS[e]}}function Kl(t,e){return'<div style="margin: '+e+"px 0 0;"+PS+';">'+t+'<div style="clear:both"></div></div>'}function Jl(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+ps(t)+"</span>"}function Ql(t,e,n,i){var r=n?"10px":"20px";return'<span style="'+(e?"float:right;margin-left:"+r:"")+";"+i+'">'+y(t,function(t){return ps(t)}).join("&nbsp;&nbsp;")+"</span>"}function tu(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function eu(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(e.join(" "),o)}function nu(t,e){return ms(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function iu(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}function ru(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),p=S(h),f=nu(o,a);if(c>1||p&&!c){var d=ou(h,o,a,u,f);e=d.inlineValues,n=d.inlineValueTypes,i=d.blocks,r=d.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=e=Tl(l,a,u[0]),n=g.type}else r=e=p?h[0]:h;var y=ti(o),v=y&&o.name||"",m=l.getName(a),_=s?v:m;return Xl("section",{header:v,noHeader:s||!y,sortParam:r,blocks:[Xl("nameValue",{markerType:"item",markerColor:f,name:_,noName:!G(_),value:e,valueType:n})].concat(i||[])})}function ou(t,e,n,i,r){function o(t,e){var n=a.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(s?c.push(Xl("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(l.push(t),u.push(n.type)))}var a=e.getData(),s=v(t,function(t,e,n){var i=a.getDimensionInfo(n);return t=t||i&&!1!==i.tooltip&&null!=i.displayName},!1),l=[],u=[],c=[];return i.length?g(i,function(t){o(Tl(a,n,t),t)}):g(t,o),{inlineValues:l,inlineValueTypes:u,blocks:c}}function au(t,e){return t.getName(e)||t.getId(e)}function su(t){var e=t.name;ti(t)||(t.name=lu(t)||e)}function lu(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return g(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")}function uu(t){return t.model.getRawData().count()}function cu(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),hu}function hu(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function pu(t,e){g(X(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,w(fu,e))})}function fu(t,e){var n=du(t);return n&&n.setOutputEnd((e||this).count()),e}function du(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}function gu(){var t=oi();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}function yu(t,e,n){t&&("emphasis"===e?Qr:to)(t,n)}function vu(t,e,n){var i=ri(t,e),r=e&&null!=e.highlightKey?wo(e.highlightKey):null;null!=i?g(Vn(i),function(e){yu(t.getItemGraphicEl(e),n,r)}):t.eachItemGraphicEl(function(t){yu(t,n,r)})}function mu(t){return HS(t.model)}function _u(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&VS(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),jS[l]}function xu(t,e,n){function i(){c=(new Date).getTime(),h=null,t.apply(a,s||[])}var r,o,a,s,l,u=0,c=0,h=null;e=e||0;var p=function(){for(var t=[],p=0;p<arguments.length;p++)t[p]=arguments[p];r=(new Date).getTime(),a=this,s=t;var f=l||e,d=l||n;l=null,o=r-(d?u:c)-f,clearTimeout(h),d?h=setTimeout(i,f):o>=0?i():h=setTimeout(i,-o),u=r};return p.clear=function(){h&&(clearTimeout(h),h=null)},p.debounceNextCall=function(t){l=t},p}function bu(t,e,n,i){var r=t[e];if(r){var o=r[US]||r,a=r[YS];if(r[XS]!==n||a!==i){if(null==n||!i)return t[e]=o;r=t[e]=xu(o,n,"debounce"===i),r[US]=o,r[YS]=i,r[XS]=n}return r}}function wu(t,e){var n=t.visualStyleMapper||ZS[e];return n||(console.warn("Unkown style type '"+e+"'."),ZS.itemStyle)}function Su(t,e){var n=t.visualDrawType||$S[e];return n||(console.warn("Unkown style type '"+e+"'."),"fill")}function Cu(t,e){e=e||{},c(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new gm,i=new J_({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r=new ex({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),o=new J_({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});n.add(o);var a;return e.showSpinner&&(a=new pb({shape:{startAngle:-eC/2,endAngle:-eC/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:3*eC/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*eC/2}).delay(300).start("circularInOut"),n.add(a)),n.resize=function(){var n=r.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&a.setShape({cx:l,cy:u}),o.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}function Tu(t){t.overallReset(t.ecModel,t.api,t.payload)}function Mu(t){return t.overallProgress&&Iu}function Iu(){this.agent.dirty(),this.getDownstream().dirty()}function ku(){this.agent&&this.agent.dirty()}function Du(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Au(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Vn(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?y(e,function(t,e){return Ou(e)}):iC}function Ou(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function Pu(t){return t.data.count()}function Lu(t){WS=null;try{t(rC,oC)}catch(t){}return WS}function Ru(t,e){for(var n in e.prototype)t[n]=Z}function Eu(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function Nu(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Bu(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,i=r.selected,a=0;a<i.length;a++)if(i[a].seriesIndex===e){var s=t.getData(),l=ri(s,r.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:s.getName(S(l)?l[0]:l),selected:u({},t.option.selectedMap)})}})}function zu(t,e,n){t.on("selectchanged",function(t){var i=n.getModel();t.isFromClick?(Bu("map","selectchanged",e,i,t),Bu("pie","selectchanged",e,i,t)):"select"===t.fromAction?(Bu("map","selected",e,i,t),Bu("pie","selected",e,i,t)):"unselect"===t.fromAction&&(Bu("map","unselected",e,i,t),Bu("pie","unselected",e,i,t))})}function Fu(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}function Vu(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function Hu(t,e,n,i,r,o,a){var s=0===t.indexOf("empty");s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return l=0===t.indexOf("image://")?oa(t.slice(8),new om(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?ra(t.slice(7),{},new om(e,n,i,r),a?"center":"cover"):new IC({shape:{symbolType:t,x:e,y:n,width:i,height:r}}),l.__isEmptyBrush=s,l.setColor=Vu,o&&l.setColor(o),l}function Gu(t){return S(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function Wu(t,e){return null!=t?(S(t)||(t=[t,t]),[mn(t[0],e[0])||0,mn(B(t[1],t[0]),e[1])||0]):void 0}function ju(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=isNaN(i)?0:i,r=isNaN(r)?1:r,o=isNaN(o)?0:o,a=isNaN(a)?0:a,t.createLinearGradient(i,o,r,a)}function Uu(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*i+n.x,s=s*r+n.y,l*=o),t.createRadialGradient(a,s,0,a,s,l)}function Xu(t,e,n){for(var i="radial"===e.type?Uu(t,e,n):ju(t,e,n),r=e.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function Yu(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function qu(t,e){return t&&"solid"!==t&&e>0?(e=e||1,"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:I(t)?[t]:S(t)?t:null):null}function Zu(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function $u(t){return"string"==typeof t&&"none"!==t}function Ku(t){var e=t.fill;return null!=e&&"none"!==e}function Ju(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Qu(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function tc(t,e,n){var i=Ci(e.image,e.__image,n);if(Mi(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r.setTransform){var o=new DOMMatrix;o.rotateSelf(0,0,(e.rotation||0)/Math.PI*180),o.scaleSelf(e.scaleX||1,e.scaleY||1),o.translateSelf(e.x||0,e.y||0),r.setTransform(o)}return r}}function ec(t,e,n,i){var r=Zu(n),o=Ku(n),a=n.strokePercent,s=1>a,l=!e.path;e.silent&&!s||!l||e.createPathProxy();var u=e.path||kC;if(!i){var c=n.fill,h=n.stroke,p=o&&!!c.colorStops,f=r&&!!h.colorStops,d=o&&!!c.image,g=r&&!!h.image,v=void 0,m=void 0,_=void 0,x=void 0,b=void 0;(p||f)&&(b=e.getBoundingRect()),p&&(v=e.__dirty?Xu(t,c,b):e.__canvasFillGradient,e.__canvasFillGradient=v),f&&(m=e.__dirty?Xu(t,h,b):e.__canvasStrokeGradient,e.__canvasStrokeGradient=m),d&&(_=e.__dirty||!e.__canvasFillPattern?tc(t,c,e):e.__canvasFillPattern,e.__canvasFillPattern=_),g&&(x=e.__dirty||!e.__canvasStrokePattern?tc(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),p?t.fillStyle=v:d&&(_?t.fillStyle=_:o=!1),f?t.strokeStyle=m:g&&(x?t.strokeStyle=x:r=!1)}var w=n.lineDash&&n.lineWidth>0&&qu(n.lineDash,n.lineWidth),S=n.lineDashOffset,C=!!t.setLineDash,T=e.getGlobalScale();if(u.setScale(T[0],T[1],e.segmentIgnoreThreshold),w){var M=n.strokeNoScale&&e.getLineScale?e.getLineScale():1;M&&1!==M&&(w=y(w,function(t){return t/M}),S/=M)}var I=!0;(l||e.__dirty&ov||w&&!C&&r)&&(u.setDPR(t.dpr),s?u.setContext(null):(u.setContext(t),I=!1),u.reset(),w&&!C&&(u.setLineDash(w),u.setLineDashOffset(S)),e.buildPath(u,e.shape,i),u.toStatic(),e.pathUpdated()),I&&u.rebuildPath(t,s?a:1),w&&C&&(t.setLineDash(w),t.lineDashOffset=S),i||(n.strokeFirst?(r&&Qu(t,n),o&&Ju(t,n)):(o&&Ju(t,n),r&&Qu(t,n))),w&&C&&t.setLineDash([])}function nc(t,e,n){var i=e.__image=Ci(n.image,e.__image,e,e.onload);if(i&&Mi(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(i,u,c,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,h=a-u,p=s-c;t.drawImage(i,u,c,h,p,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}function ic(t,e,n){var i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||sm,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var r=void 0;if(t.setLineDash){var o=n.lineDash&&n.lineWidth>0&&qu(n.lineDash,n.lineWidth),a=n.lineDashOffset;if(o){var s=n.strokeNoScale&&e.getLineScale?e.getLineScale():1;s&&1!==s&&(o=y(o,function(t){return t/s}),a/=s),t.setLineDash(o),t.lineDashOffset=a,r=!0}}n.strokeFirst?(Zu(n)&&t.strokeText(i,n.x,n.y),Ku(n)&&t.fillText(i,n.x,n.y)):(Ku(n)&&t.fillText(i,n.x,n.y),Zu(n)&&t.strokeText(i,n.x,n.y)),r&&t.setLineDash([])}}function rc(t,e,n,i,r){var o=!1;if(!i&&(n=n||{},e===n))return!1;if(i||e.opacity!==n.opacity){o||(hc(t,r),o=!0);var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Wm.opacity:a}(i||e.blend!==n.blend)&&(o||(hc(t,r),o=!0),t.globalCompositeOperation=e.blend||Wm.blend);for(var s=0;s<DC.length;s++){var l=DC[s];(i||e[l]!==n[l])&&(o||(hc(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==n.shadowColor)&&(o||(hc(t,r),o=!0),t.shadowColor=e.shadowColor||Wm.shadowColor),o}function oc(t,e,n,i,r){var o=pc(e,r.inHover),a=i?null:n&&pc(n,r.inHover)||{};if(o===a)return!1;var s=rc(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(hc(t,r),s=!0),$u(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(hc(t,r),s=!0),$u(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(hc(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(hc(t,r),s=!0),t.lineWidth=u)}for(var c=0;c<AC.length;c++){var h=AC[c],p=h[0];(i||o[p]!==a[p])&&(s||(hc(t,r),s=!0),t[p]=o[p]||h[1])}return s}function ac(t,e,n,i,r){return rc(t,pc(e,r.inHover),n&&pc(n,r.inHover),i,r)}function sc(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function lc(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];i=i||o.isZeroArea(),sc(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=i}function uc(t,e){return t&&e?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&&!e)}function cc(t){var e=Ku(t),n=Zu(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function hc(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function pc(t,e){return e?t.__hoverStyle||t.style:t.style}function fc(t,e){dc(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function dc(t,e,n,i){var r=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~rv,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if((!a||Yu(o,a))&&(a&&a.length&&(hc(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(hc(t,n),t.save(),lc(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)return void(e.__isRendered=!1);e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=e instanceof W_&&e.autoBatch&&cc(e.style);s||uc(r,u.transform)?(hc(t,n),sc(t,e)):c||hc(t,n);var h=pc(e,n.inHover);e instanceof W_?(n.lastDrawType!==OC&&(l=!0,n.lastDrawType=OC),oc(t,e,u,l,n),c&&(n.batchFill||n.batchStroke)||t.beginPath(),ec(t,e,h,c),c&&(n.batchFill=h.fill||"",n.batchStroke=h.stroke||"")):e instanceof U_?(n.lastDrawType!==LC&&(l=!0,n.lastDrawType=LC),oc(t,e,u,l,n),ic(t,e,h)):e instanceof q_?(n.lastDrawType!==PC&&(l=!0,n.lastDrawType=PC),ac(t,e,u,l,n),nc(t,e,h)):e instanceof Sb&&(n.lastDrawType!==RC&&(l=!0,n.lastDrawType=RC),gc(t,e,n)),c&&i&&hc(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}function gc(t,e,n){var i=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=i.length;a>o;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),dc(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=r.length;c>u;u++){var l=r[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),dc(t,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}function yc(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&EC.delete(t);var o=EC.get(t);if(o)return o;var a=c(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e=[n],o=!0,s=0;s<BC.length;++s){var l=a[BC[s]],u=typeof l;if(null!=l&&!S(l)&&"string"!==u&&"number"!==u&&"boolean"!==u){o=!1;break}e.push(l)}var c;if(o){c=e.join(",")+(r?"-svg":"");var h=NC.get(c);h&&(r?t.svgElement=h:t.image=h)}var p,f=mc(a.dashArrayX),d=_c(a.dashArrayY),g=vc(a.symbol),y=xc(f),v=bc(d),m=!r&&ky(),_=r&&i.painter.createSVGElement("g"),x=function(){for(var t=1,e=0,n=y.length;n>e;++e)t=zn(t,y[e]);for(var i=1,e=0,n=g.length;n>e;++e)i=zn(i,g[e].length);t*=i;var r=v*y.length*g.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();m&&(m.width=x.width*n,m.height=x.height*n,p=m.getContext("2d")),function(){p&&(p.clearRect(0,0,m.width,m.height),a.backgroundColor&&(p.fillStyle=a.backgroundColor,p.fillRect(0,0,m.width,m.height)));for(var t=0,e=0;e<d.length;++e)t+=d[e];if(!(0>=t))for(var o=-v,s=0,l=0,u=0;o<x.height;){if(s%2==0){for(var c=l/2%g.length,h=0,y=0,b=0;h<2*x.width;){for(var w=0,e=0;e<f[u].length;++e)w+=f[u][e];if(0>=w)break;if(y%2==0){var S=.5*(1-a.symbolSize),C=h+f[u][y]*S,T=o+d[s]*S,M=f[u][y]*a.symbolSize,I=d[s]*a.symbolSize,k=b/2%g[c].length;!function(t,e,o,s,l){var u=r?1:n,c=Hu(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);r?_.appendChild(i.painter.paintOne(c)):fc(p,c)}(C,T,M,I,g[c][k])}h+=f[u][y],++b,++y===f[u].length&&(y=0)}++u===f.length&&(u=0)}o+=d[s],++l,++s===d.length&&(s=0)}}(),o&&NC.put(c,m||_),t.image=m,t.svgElement=_,t.svgWidth=x.width,t.svgHeight=x.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,EC.set(t,s),t.dirty=!1,s}function vc(t){if(!t||0===t.length)return[["rect"]];if("string"==typeof t)return[[t]];for(var e=!0,n=0;n<t.length;++n)if("string"!=typeof t[n]){e=!1;break}if(e)return vc([t]);for(var i=[],n=0;n<t.length;++n)i.push("string"==typeof t[n]?[t[n]]:t[n]);return i}function mc(t){if(!t||0===t.length)return[[0,0]];if("number"==typeof t){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,i=0;i<t.length;++i)if("number"!=typeof t[i]){n=!1;break}if(n)return mc([t]);for(var r=[],i=0;i<t.length;++i)if("number"==typeof t[i]){var e=Math.ceil(t[i]);r.push([e,e])}else{var e=y(t[i],function(t){return Math.ceil(t)});r.push(e.length%2==1?e.concat(e):e)}return r}function _c(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if("number"==typeof t){var e=Math.ceil(t);return[e,e]}var n=y(t,function(t){return Math.ceil(t)});return t.length%2?n.concat(n):n}function xc(t){return y(t,function(t){return bc(t)})}function bc(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}function wc(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each(function(t){var n=i.getItemVisual(t,"decal");if(n){i.ensureUniqueItemVisual(t,"style").decal=yc(n,e)}});var r=i.getVisual("decal");if(r){i.getVisual("style").decal=yc(r,e)}}})}function Sc(t){if(T(t)){t=(new DOMParser).parseFromString(t,"text/xml")}var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}function Cc(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function Tc(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};Rc(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function Mc(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),c(e.__inheritedStyle,t.__inheritedStyle))}function Ic(t){for(var e=Pc(t),n=[],i=0;i<e.length;i+=2){var r=parseFloat(e[i]),o=parseFloat(e[i+1]);n.push([r,o])}return n}function kc(t,e,n,i,r){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===t.nodeType&&(Lc(t,e),Rc(t,a,s),i||Ec(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=Ac(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=Ac(o,"stroke",a.stroke,n)),g(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))}),g(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(t){null!=a[t]&&(o.style[t]=a[t])}),r&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=y(Pc(a.lineDash),function(t){return parseFloat(t)})),("hidden"===a.visibility||"collapse"===a.visibility)&&(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}function Dc(t,e){var n=e.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":("central"===i||"mathematical"===i)&&(r="middle"):r="alphabetic",t.style.textBaseline=r}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}function Ac(t,e,n,i){var r=n&&n.match(jC);if(r){var o=G(r[1]);return void i.push([t,e,o])}return"none"===n&&(n=null),n}function Oc(t,e){for(var n=0;n<e.length;n++){var i=e[n];i[0].style[i[1]]=t[i[2]]}}function Pc(t){return t.match(UC)||[]}function Lc(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=[],r=null;n.replace(XC,function(t,e,n){return i.push(e,n),""});for(var o=i.length-1;o>0;o-=2){var a=i[o],s=i[o-1],l=Pc(a);switch(r=r||ze(),s){case"translate":Ge(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":je(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":We(r,r,-parseFloat(l[0])*YC);break;case"skewX":He(r,[1,0,Math.tan(parseFloat(l[0])*YC),1,0,0],r);break;case"skewY":He(r,[1,Math.tan(parseFloat(l[0])*YC),0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5])}}e.setLocalTransform(r)}}function Rc(t,e,n){var i=t.getAttribute("style");if(i){qC.lastIndex=0;for(var r;null!=(r=qC.exec(i));){var o=r[1],a=q(zC,o)?zC[o]:null;a&&(e[a]=r[2]);var s=q(VC,o)?VC[o]:null;s&&(n[s]=r[2])}}}function Ec(t,e,n){for(var i=0;i<FC.length;i++){var r=FC[i],o=t.getAttribute(r);null!=o&&(e[zC[r]]=o)}for(var i=0;i<HC.length;i++){var r=HC[i],o=t.getAttribute(r);null!=o&&(n[VC[r]]=o)}}function Nc(t,e){var n=e.width/t.width,i=e.height/t.height,r=Math.min(n,i);return{scale:r,x:-(t.x+t.width/2)*r+(e.x+e.width/2),y:-(t.y+t.height/2)*r+(e.y+e.height/2)}}function Bc(t,e){return(new GC).parse(t,e)}function zc(t,e){return Math.abs(t-e)<ZC}function Fc(t,e,n){var i=0,r=t[0];if(!r)return!1;for(var o=1;o<t.length;o++){var a=t[o];i+=pr(r[0],r[1],a[0],a[1],e,n),r=a}var s=t[0];return zc(r[0],s[0])&&zc(r[1],s[1])||(i+=pr(r[0],r[1],s[0],s[1],e,n)),0!==i}function Vc(t){t.silent=!1,t.isGroup&&t.traverse(function(t){t.silent=!1})}function Hc(t){var e=[],n=U();return g(t,function(t){if(null==t.namedFrom){var i=new QC(t.name,t.el);e.push(i),n.set(t.name,i)}}),{regions:e,regionsMap:n}}function Gc(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);for(var i=e.features,r=0;r<i.length;r++){var o=i[r],a=o.geometry;if("Polygon"===a.type)for(var s=a.coordinates,l=0;l<s.length;l++)s[l]=Wc(s[l],a.encodeOffsets[l],n);else if("MultiPolygon"===a.type)for(var s=a.coordinates,l=0;l<s.length;l++)for(var u=s[l],c=0;c<u.length;c++)u[c]=Wc(u[c],a.encodeOffsets[l][c],n)}return e.UTF8Encoding=!1,e}function Wc(t,e,n){for(var i=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,i.push([s/n,l/n])}return i}function jc(t,e){return t=Gc(t),y(m(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,i=t.geometry,r=[];if("Polygon"===i.type){var o=i.coordinates;r.push({type:"polygon",exterior:o[0],interiors:o.slice(1)})}if("MultiPolygon"===i.type){var o=i.coordinates;g(o,function(t){t[0]&&r.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})})}var a=new JC(n[e||"name"],r,n.cp);return a.properties=n,a})}function Uc(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===iT)return;e.push(new JC(iT,y(rT,function(t){return{type:"polygon",exterior:t}}),nT))}}function Xc(t,e){if("china"===t){var n=sT[e.name];if(n){var i=e.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,e.setCenter(i)}}}function Yc(t,e){if("world"===t){var n=lT[e.name];if(n){var i=[n[0],n[1]];e.setCenter(i)}}}function qc(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:uT[0]})}function Zc(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();e=e||i.clone(),e.union(i)}return e}function $c(t){return T(t)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}function Kc(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.isDisposed()?void 0:Qc(this,t,e)}}function Jc(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Qc(this,t,e)}}function Qc(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),Vy.prototype[e].apply(t,n)}function th(t,e,n){var i=rh(t);if(i)return i;var r=new XT(t,e,n);return r.id="ec_"+rM++,nM[r.id]=r,ui(t,aM,r.id),WT(r),fT.trigger("afterinit",r),r}function eh(t){if(S(t)){var e=t;t=null,g(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+oM++,g(e,function(e){e.group=t})}return iM[t]=!0,t}function nh(t){iM[t]=!1}function ih(t){"string"==typeof t?t=nM[t]:t instanceof XT||(t=rh(t)),t instanceof XT&&!t.isDisposed()&&t.dispose()}function rh(t){return nM[ci(t,aM)]}function oh(t){return nM[t]}function ah(t,e){tM[t]=e}function sh(t){h(JT,t)<0&&JT.push(t)}function lh(t,e){vh(KT,t,e,yT)}function uh(t){hh("afterinit",t)}function ch(t){hh("afterupdate",t)}function hh(t,e){fT.on(t,e)}function ph(t,e,n){"function"==typeof e&&(n=e,e="");var i=k(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,$T[e]||(H(ST.test(i)&&ST.test(e)),ZT[i]||(ZT[i]={action:n,actionInfo:t}),$T[e]=i)}function fh(t,e){Qw.register(t,e)}function dh(t){var e=Qw.get(t);return e?e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice():void 0}function gh(t,e){vh(QT,t,e,vT,"layout")}function yh(t,e){vh(QT,t,e,mT,"visual")}function vh(t,e,n,i,r){if((C(e)||k(e))&&(n=e,e=i),!(h(lM,n)>=0)){lM.push(n);var o=nC.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function mh(t,e){eM[t]=e}function _h(t){i("createCanvas",t)}function xh(t,e,n){pT.registerMap(t,e,n)}function bh(t){return pT.getMapForUser(t)}function wh(t){return null==t?0:t.length||1}function Sh(t){return t}function Ch(t,e){var n={},i=n.encode={},r=U(),o=[],a=[],s={};g(t.dimensions,function(e){var n=t.getDimensionInfo(e),l=n.coordDim;if(l){var u=n.coordDimIndex;Th(i,l)[u]=e,n.isExtraCoord||(r.set(l,1),Ih(n.type)&&(o[0]=e),Th(s,l)[u]=t.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(e)}kw.each(function(t,e){var r=Th(i,e),o=n.otherDims[e];null!=o&&!1!==o&&(r[o]=n.name)})});var l=[],u={};r.each(function(t,e){var n=i[e];u[e]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=y(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=i.label;c&&c.length&&(o=c.slice());var h=i.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new _M(s,e),n}function Th(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Mh(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function Ih(t){return!("ordinal"===t||"time"===t)}function kh(t){return t instanceof SM}function Dh(t){for(var e=U(),n=0;n<(t||[]).length;n++){var i=t[n],r=k(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function Ah(t){var e=bM(t);return e.dimNameMap||(e.dimNameMap=Dh(t.dimensionsDefine))}function Oh(t){return t>30}function Ph(t,e){return Lh(t,e).dimensions}function Lh(t,e){function n(t){var e=m[t];if(0>e){var n=a[t],i=k(n)?n:{name:n},r=new xM,o=i.name;null!=o&&null!=d.get(o)&&(r.name=r.displayName=o),null!=i.type&&(r.type=i.type),null!=i.displayName&&(r.displayName=i.displayName);var s=l.length;return m[t]=s,r.storeDimIndex=t,l.push(r),r}return l[e]}function i(t,e,n){null!=kw.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,s.set(e,!0))}function r(t){null==t.name&&(t.name=t.coordDim)}hl(t)||(t=fl(t)),e=e||{};var o=e.coordDimensions||[],a=e.dimensionsDefine||t.dimensionsDefine||[],s=U(),l=[],h=Eh(t,o,a,e.dimensionsCount),p=e.canOmitUnusedDimensions&&Oh(h),f=a===t.dimensionsDefine,d=f?Ah(t):Dh(a),y=e.encodeDefine;!y&&e.encodeDefaulter&&(y=e.encodeDefaulter(t,h));for(var v=U(y),m=new IS(h),_=0;_<m.length;_++)m[_]=-1;if(!p)for(var _=0;h>_;_++)n(_);v.each(function(t,e){var r=Vn(t).slice();if(1===r.length&&!T(r[0])&&r[0]<0)return void v.set(e,!1);var o=v.set(e,[]);g(r,function(t,r){var a=T(t)?d.get(t):t;null!=a&&h>a&&(o[r]=a,i(n(a),e,r))})});var x=0;g(o,function(t){var e,r,o,a;if(T(t))e=t,a={};else{a=t,e=a.name;var s=a.ordinalMeta;a.ordinalMeta=null,a=u({},a),a.ordinalMeta=s,r=a.dimsDef,o=a.otherDims,a.name=a.coordDim=a.coordDimIndex=a.dimsDef=a.otherDims=null}var l=v.get(e);if(!1!==l){if(l=Vn(l),!l.length)for(var p=0;p<(r&&r.length||1);p++){for(;h>x&&null!=n(x).coordDim;)x++;h>x&&l.push(x++)}g(l,function(t,s){var l=n(t);if(f&&null!=a.type&&(l.type=a.type),i(c(l,a),e,s),null==l.name&&r){var u=r[s];!k(u)&&(u={name:u}),l.name=l.displayName=u.name,l.defaultTooltip=u.defaultTooltip}o&&c(l.otherDims,o)})}});var b=e.generateCoord,w=e.generateCoordCount,S=null!=w;w=b?w||1:0;var C=b||"value";if(p)g(l,function(t){r(t)}),l.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var M=0;h>M;M++){var I=n(M),D=I.coordDim;null==D&&(I.coordDim=Nh(C,s,S),I.coordDimIndex=0,(!b||0>=w)&&(I.isExtraCoord=!0),w--),r(I),null!=I.type||As(t,M)!==Bw.Must&&(!I.isExtraCoord||null==I.otherDims.itemName&&null==I.otherDims.seriesName)||(I.type="ordinal")}return Rh(l),new SM({source:t,dimensions:l,fullDimensionCount:h,dimensionOmitted:p})}function Rh(t){for(var e=U(),n=0;n<t.length;n++){var i=t[n],r=i.name,o=e.get(r)||0;o>0&&(i.name=r+(o-1)),o++,e.set(r,o)}}function Eh(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return g(e,function(t){var e;k(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))}),r}function Nh(t,e,n){var i=e.data;if(n||i.hasOwnProperty(t)){for(var r=0;i.hasOwnProperty(t+r);)r++;t+=r}return e.set(t,!0),t}function Bh(t){var e=t.get("coordinateSystem"),n=new AM(e),i=OM[e];return i?(i(t,n,n.axisMap,n.categoryAxisMap),n):void 0}function zh(t){return"category"===t.get("type")}function Fh(t,e,n){n=n||{};var i,r,o,a=n.byIndex,s=n.stackedCoordDimension;Vh(e)?i=e:(r=e.schema,i=r.dimensions,o=e.store);var l,u,c,h,p=!(!t||!t.get("stack"));if(g(i,function(t,e){T(t)&&(i[e]=t={name:t}),p&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))}),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var f=u.coordDim,d=u.type,y=0;g(i,function(t){t.coordDim===f&&y++});var v={name:c,coordDim:f,coordDimIndex:y,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:h,coordDim:h,coordDimIndex:y+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(h,d),m.storeDimIndex=o.ensureCalculationDimension(c,d)),r.appendCalculationDimension(v),r.appendCalculationDimension(m)):(i.push(v),i.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function Vh(t){return!kh(t.schema)}function Hh(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Gh(t,e){return Hh(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Wh(t,e){var n,i=t.get("coordinateSystem"),r=Qw.get(i);return e&&e.coordSysDims&&(n=y(e.coordSysDims,function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=Mh(r)}return n})),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}function jh(t,e,n){var i,r;return n&&g(t,function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)}),r||null==i||(t[i].otherDims.itemName=0),i}function Uh(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=fl(t)):(i=r.getSource(),o=i.sourceFormat===Dw);var a=Bh(e),s=Wh(e,a),l=n.useEncodeDefaulter,u=C(l)?l:l?w(Is,s,e):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},h=Lh(i,c),p=jh(h.dimensions,n.createInvertedIndices,a),f=o?null:r.getSharedDataStore(h),d=Fh(e,{schema:h,store:f}),g=new DM(h,e);g.setCalculationInfo(d);var y=null!=p&&Xh(i)?function(t,e,n,i){return i===p?n:this.defaultDimValueGetter(t,e,n,i)}:null;return g.hasItemOption=!1,g.initData(o?i:f,null,y),g}function Xh(t){if(t.sourceFormat===Dw){var e=Yh(t.data||[]);return null!=e&&!S(Gn(e))}}function Yh(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}function qh(t){return k(t)&&null!=t.value?t.value:t+""}function Zh(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=On(o/e,!0);null!=n&&n>a&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=$h(a);return Jh(r.niceTickExtent=[EM(Math.ceil(t[0]/a)*a,s),EM(Math.floor(t[1]/a)*a,s)],t),r}function $h(t){return bn(t)+2}function Kh(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Jh(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Kh(t,0,e),Kh(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Qh(t,e){return t>=e[0]&&t<=e[1]}function tp(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function ep(t,e){return t*(e[1]-e[0])+e[0]}function np(t){return t.get("stack")||FM+t.seriesIndex}function ip(t){return t.dim+t.index}function rp(t,e){var n=[];return e.eachSeriesByType(t,function(t){up(t)&&!cp(t)&&n.push(t)}),n}function op(t){var e={};g(t,function(t){var n=t.coordinateSystem,i=n.getBaseAxis();if("time"===i.type||"value"===i.type)for(var r=t.getData(),o=i.dim+"_"+i.index,a=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getStore(),l=0,u=s.count();u>l;++l){var c=s.get(a,l);e[o]?e[o].push(c):e[o]=[c]}});var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r){r.sort(function(t,e){return t-e});for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}function ap(t){var e=op(t),n=[];return g(t,function(t){var i,r=t.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),h=Math.abs(c[1]-c[0]);i=l?u/h*l:u}else{var p=t.getData();i=Math.abs(a[1]-a[0])/p.count()}var f=mn(t.get("barWidth"),i),d=mn(t.get("barMaxWidth"),i),g=mn(t.get("barMinWidth")||1,i),y=t.get("barGap"),v=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:f,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:v,axisKey:ip(o),stackId:np(t)})}),sp(n)}function sp(t){var e={};g(t,function(t){var n=t.axisKey,i=t.bandWidth,r=e[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=r.stacks;e[n]=r;var a=t.stackId;o[a]||r.autoWidthCount++,o[a]=o[a]||{width:0,maxWidth:0};var s=t.barWidth;s&&!o[a].width&&(o[a].width=s,s=Math.min(r.remainedWidth,s),r.remainedWidth-=s);var l=t.barMaxWidth;l&&(o[a].maxWidth=l);var u=t.barMinWidth;u&&(o[a].minWidth=u);var c=t.barGap;null!=c&&(r.gap=c);var h=t.barCategoryGap;null!=h&&(r.categoryGap=h)});var n={};return g(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=x(i).length;o=Math.max(35-4*a,15)+"%"}var s=mn(o,r),l=mn(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),g(i,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){var i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,c--}else{var i=h;e&&i>e&&(i=Math.min(e,u)),n&&n>i&&(i=n),i!==h&&(t.width=i,u-=i+l*i,c--)}}),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var p,f=0;g(i,function(t){t.width||(t.width=h),p=t,f+=t.width*(1+l)}),p&&(f-=p.width*l);var d=-f/2;g(i,function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:d,width:t.width},d+=t.width*(1+l)})}),n}function lp(t,e,n){if(t&&e){var i=t[ip(e)];return null!=i&&null!=n?i[np(n)]:i}}function up(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function cp(t){return t.pipelineContext&&t.pipelineContext.large}function hp(t,e,n,i){var r=kn(e),o=kn(n),a=function(t){return qa(r,t,i)===qa(o,t,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},p=function(){return h()&&a("second")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return p();case"millisecond":return function(){return p()&&a("millisecond")}()}}function pp(t){return t/=ow,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function fp(t){return t/=30*ow,t>6?6:t>3?3:t>2?2:1}function dp(t){return t/=rw,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function gp(t,e){return t/=e?iw:nw,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function yp(t){return On(t,!0)}function vp(t,e,n){var i=new Date(t);switch(Ga(e)){case"year":case"month":i[is(n)](0);case"day":i[rs(n)](1);case"hour":i[os(n)](0);case"minute":i[as(n)](0);case"second":i[ss(n)](0),i[ls(n)](0)}return i.getTime()}function mp(t,e,n,i){function r(t,e,n,r,o,a,s){for(var l=new Date(e),u=e,c=l[r]();n>u&&u<=i[1];)s.push({value:u}),c+=t,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}for(var o=hw,a=0,s=[],l=[],u=0,c=0,h=0;h<o.length&&a++<1e4;++h){var p=Ga(o[h]);if(Wa(o[h])){!function(t,o,a){var s=[],l=!o.length;if(!hp(Ga(t),i[0],i[1],n)){l&&(o=[{value:vp(new Date(i[0]),t,n)},{value:i[1]}]);for(var u=0;u<o.length-1;u++){var c=o[u].value,h=o[u+1].value;if(c!==h){var p=void 0,f=void 0,d=void 0,g=!1;switch(t){case"year":p=Math.max(1,Math.round(e/ow/365)),f=Za(n),d=ns(n);break;case"half-year":case"quarter":case"month":p=fp(e),f=$a(n),d=is(n);break;case"week":case"half-week":case"day":p=pp(e,31),f=Ka(n),d=rs(n),g=!0;break;case"half-day":case"quarter-day":case"hour":p=dp(e),f=Ja(n),d=os(n);break;case"minute":p=gp(e,!0),f=Qa(n),d=as(n);break;case"second":p=gp(e,!1),f=ts(n),d=ss(n);break;case"millisecond":p=yp(e),f=es(n),d=ls(n)}r(p,c,h,f,d,g,s),"year"===t&&a.length>1&&0===u&&a.unshift({value:a[0].value-p})}}for(var u=0;u<s.length;u++)a.push(s[u])}}(o[h],s[s.length-1]||[],l);if(p!==(o[h+1]?Ga(o[h+1]):null)){if(l.length){c=u,l.sort(function(t,e){return t.value-e.value});for(var f=[],d=0;d<l.length;++d){var g=l[d].value;(0===d||l[d-1].value!==g)&&(f.push(l[d]),g>=i[0]&&g<=i[1]&&u++)}var v=(i[1]-i[0])/e;if(u>1.5*v&&c>v/1.5)break;if(s.push(f),u>v||t===o[h])break}l=[]}}}for(var _=m(y(s,function(t){return m(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return t.length>0}),x=[],b=_.length-1,h=0;h<_.length;++h)for(var w=_[h],S=0;S<w.length;++S)x.push({value:w[S].value,level:b-h});x.sort(function(t,e){return t.value-e.value});for(var C=[],h=0;h<x.length;++h)(0===h||x[h].value!==x[h-1].value)&&C.push(x[h]);return C}function _p(t,e){return UM(t,bn(e))}function xp(t,e,n){var i=t.rawExtentInfo;return i||(i=new JM(t,e,n),t.rawExtentInfo=i,i)}function bp(t,e){return null==e?null:E(e)?NaN:t.parse(e)}function wp(t,e){var n=t.type,i=xp(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=rp("bar",a),l=!1;if(g(s,function(t){l=l||t.getBaseAxis()===e.axis}),l){var u=ap(s),c=Sp(r,o,e,u);r=c.min,o=c.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function Sp(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=lp(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;g(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;g(a,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=1-(s+l)/o,p=c/h-c;return e+=p*(l/u),t-=p*(s/u),{min:t,max:e}}function Cp(t,e){var n=wp(t,e),i=n.extent,r=e.get("splitNumber");t instanceof $M&&(t.base=e.get("logBase"));var o=t.type;t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===o||"time"===o?e.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?e.get("maxInterval"):null});var a=e.get("interval");null!=a&&t.setInterval&&t.setInterval(a)}function Tp(t,e){if(e=e||t.get("type"))switch(e){case"category":return new NM({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new HM({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(PM.getClass(e)||zM)}}function Mp(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||0>n&&0>i)}function Ip(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,i){return t.scale.getFormattedLabel(n,i,e)}}(e):"string"==typeof e?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(e):"function"==typeof e?function(e){return function(i,r){return null!=n&&(r=i.value-n),e(kp(t,i),r,null!=i.level?{level:i.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function kp(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Dp(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();n instanceof NM?r=n.count():(i=n.getTicks(),r=i.length);var a,s=t.getLabelModel(),l=Ip(t),u=1;r>40&&(u=Math.ceil(r/40));for(var c=0;r>c;c+=u){var h=i?i[c]:{value:o[0]+c},p=l(h,c),f=s.getTextRect(p),d=Ap(f,s.get("rotate")||0);a?a.union(d):a=d}return a}}function Ap(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n));return new om(t.x,t.y,o,a)}function Op(t){var e=t.get("interval");return null==e?"auto":e}function Pp(t){return"category"===t.type&&0===Op(t.getLabelModel())}function Lp(t,e){var n={};return g(t.mapDimensionsAll(e),function(e){n[Gh(t,e)]=!0}),x(n)}function Rp(t){return Uh(null,t)}function Ep(t,e){var n=e;e instanceof Xb||(n=new Xb(e));var i=Tp(n);return i.setExtent(t[0],t[1]),Cp(i,n),i}function Np(t){f(t,eI)}function Bp(t,e){return e=e||{},ka(t,null,null,"normal"!==e.state)}function zp(t){return S(t)?void g(t,function(t){zp(t)}):void(h(rI,t)>=0||(rI.push(t),C(t)&&(t={install:t}),t.install(oI)))}function Fp(t){return"category"===t.type?Hp(t):jp(t)}function Vp(t,e){return"category"===t.type?Wp(t,e):{ticks:y(t.scale.getTicks(),function(t){return t.value})}}function Hp(t){var e=t.getLabelModel(),n=Gp(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Gp(t,e){var n=Up(t,"labels"),i=Op(e),r=Xp(n,i);if(r)return r;var o,a;return C(i)?o=Jp(t,i):(a="auto"===i?qp(t):i,o=Kp(t,a)),Yp(n,i,{labels:o,labelCategoryInterval:a})}function Wp(t,e){var n=Up(t,"ticks"),i=Op(e),r=Xp(n,i);if(r)return r;var o,a;if((!e.get("show")||t.scale.isBlank())&&(o=[]),C(i))o=Jp(t,i,!0);else if("auto"===i){var s=Gp(t,t.getLabelModel());a=s.labelCategoryInterval,o=y(s.labels,function(t){return t.tickValue})}else a=i,o=Kp(t,a,!0);return Yp(n,i,{ticks:o,tickCategoryInterval:a})}function jp(t){var e=t.scale.getTicks(),n=Ip(t);return{labels:y(e,function(e,i){return{formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}})}}function Up(t,e){return hI(t)[e]||(hI(t)[e]=[])}function Xp(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function Yp(t,e,n){return t.push({key:e,value:n}),n}function qp(t){var e=hI(t).autoInterval;return null!=e?e:hI(t).autoInterval=t.calculateCategoryInterval()}function Zp(t){var e=$p(t),n=Ip(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),p=0,f=0;l<=o[1];l+=s){var d=0,g=0,y=Ke(n({value:l}),e.font,"center","top");d=1.3*y.width,g=1.3*y.height,p=Math.max(p,d,7),f=Math.max(f,g,7)}var v=p/c,m=f/h;isNaN(v)&&(v=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(v,m))),x=hI(t.model),b=t.getExtent(),w=x.lastAutoInterval,S=x.lastTickCount;return null!=w&&null!=S&&Math.abs(w-_)<=1&&Math.abs(S-a)<=1&&w>_&&x.axisExtent0===b[0]&&x.axisExtent1===b[1]?_=w:(x.lastTickCount=a,x.lastAutoInterval=_,x.axisExtent0=b[0],x.axisExtent1=b[1]),_}function $p(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 Kp(t,e,n){function i(t){var e={value:t};l.push(n?t:{formattedLabel:r(e),rawLabel:o.getLabel(e),tickValue:t})}var r=Ip(t),o=t.scale,a=o.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),c=a[0],h=o.count();0!==c&&u>1&&h/u>2&&(c=Math.round(Math.ceil(c/u)*u));var p=Pp(t),f=s.get("showMinLabel")||p,d=s.get("showMaxLabel")||p;f&&c!==a[0]&&i(a[0]);for(var g=c;g<=a[1];g+=u)i(g);return d&&g-u!==a[1]&&i(a[1]),l}function Jp(t,e,n){var i=t.scale,r=Ip(t),o=[];return g(i.getTicks(),function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})}),o}function Qp(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}function tf(t,e,n,i){function r(t,e){return t=_n(t),e=_n(e),h?t>e:e>t}var o=e.length;if(t.onBand&&!n&&o){var a,s,l=t.getExtent();if(1===o)e[0].coord=l[0],a=e[1]={coord:l[0]};else{var u=e[o-1].tickValue-e[0].tickValue,c=(e[o-1].coord-e[0].coord)/u;g(e,function(t){t.coord-=c/2});s=1+t.scale.getExtent()[1]-e[o-1].tickValue,a={coord:e[o-1].coord+c*s},e.push(a)}var h=l[0]>l[1];r(e[0].coord,l[0])&&(i?e[0].coord=l[0]:e.shift()),i&&r(l[0],e[0].coord)&&e.unshift({coord:l[0]}),r(l[1],a.coord)&&(i?a.coord=l[1]:e.pop()),i&&r(a.coord,l[1])&&e.push({coord:l[1]})}}function ef(t){var e=ww.extend(t);return ww.registerClass(e),e}function nf(t){var e=FS.extend(t);return FS.registerClass(e),e}function rf(t){var e=zS.extend(t);return zS.registerClass(e),e}function of(t){var e=GS.extend(t);return GS.registerClass(e),e}function af(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+e,n.y+a/2),r.set(1,0)}}function sf(t,e,n,i,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var c=a*n+t,h=s*n+e;if(Math.abs(i-r)%dI<1e-4)return l[0]=c,l[1]=h,u-n;if(o){var p=i;i=cr(r),r=cr(p)}else i=cr(i),r=cr(r);i>r&&(r+=dI);var f=Math.atan2(s,a);if(0>f&&(f+=dI),f>=i&&r>=f||f+dI>=i&&r>=f+dI)return l[0]=c,l[1]=h,u-n;var d=n*Math.cos(i)+t,g=n*Math.sin(i)+e,y=n*Math.cos(r)+t,v=n*Math.sin(r)+e,m=(d-a)*(d-a)+(g-s)*(g-s),_=(y-a)*(y-a)+(v-s)*(v-s);return _>m?(l[0]=d,l[1]=g,Math.sqrt(m)):(l[0]=y,l[1]=v,Math.sqrt(_))}function lf(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,c=n-t,h=i-e,p=Math.sqrt(c*c+h*h);c/=p,h/=p;var f=l*c+u*h,d=f/p;s&&(d=Math.min(Math.max(d,0),1)),d*=p;var g=a[0]=t+d*c,y=a[1]=e+d*h;return Math.sqrt((g-r)*(g-r)+(y-o)*(y-o))}function uf(t,e,n,i,r,o,a){0>n&&(t+=n,n=-n),0>i&&(e+=i,i=-i);var s=t+n,l=e+i,u=a[0]=Math.min(Math.max(r,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(c-o)*(c-o))}function cf(t,e,n){var i=uf(e.x,e.y,e.width,e.height,t.x,t.y,vI);return n.set(vI[0],vI[1]),i}function hf(t,e,n){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,c=e.data,h=t.x,p=t.y,f=0;f<c.length;){var d=c[f++];1===f&&(o=c[f],a=c[f+1],s=o,l=a);var g=u;switch(d){case gI.M:s=c[f++],l=c[f++],o=s,a=l;break;case gI.L:g=lf(o,a,c[f],c[f+1],h,p,vI,!0),o=c[f++],a=c[f++];break;case gI.C:g=Ui(o,a,c[f++],c[f++],c[f++],c[f++],c[f],c[f+1],h,p,vI),o=c[f++],a=c[f++];break;case gI.Q:g=Ji(o,a,c[f++],c[f++],c[f],c[f+1],h,p,vI),o=c[f++],a=c[f++];break;case gI.A:var y=c[f++],v=c[f++],m=c[f++],_=c[f++],x=c[f++],b=c[f++];f+=1;var w=!!(1-c[f++]);i=Math.cos(x)*m+y,r=Math.sin(x)*_+v,1>=f&&(s=i,l=r);g=sf(y,v,_,x,x+b,w,(h-y)*_/m+y,p,vI),o=Math.cos(x+b)*m+y,a=Math.sin(x+b)*_+v;break;case gI.R:s=o=c[f++],l=a=c[f++];g=uf(s,l,c[f++],c[f++],h,p,vI);break;case gI.Z:g=lf(o,a,s,l,h,p,vI,!0),o=s,a=l}u>g&&(u=g,n.set(vI[0],vI[1]))}return u}function pf(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||yI,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,c=t.getComputedTransform(),h=c&&Ue([],c),p=e.get("length2")||0;u&&xI.copy(u);for(var f=0;f<a.length;f++){af(a[f],0,s,mI,bI),$v.scaleAndAdd(_I,mI,bI,p),_I.transform(h);var d=t.getBoundingRect(),g=u?u.distance(_I):t instanceof W_?hf(_I,t.path,xI):cf(_I,d,xI);l>g&&(l=g,_I.transform(c),xI.transform(c),xI.toArray(o[0]),_I.toArray(o[1]),mI.toArray(o[2]))}ff(o,e.get("minTurnAngle")),n.setShape({points:o})}}}function ff(t,e){if(180>=e&&e>0){e=e/180*Math.PI,mI.fromArray(t[0]),_I.fromArray(t[1]),xI.fromArray(t[2]),$v.sub(bI,mI,_I),$v.sub(wI,xI,_I);var n=bI.len(),i=wI.len();if(!(.001>n||.001>i)){bI.scale(1/n),wI.scale(1/i);if(bI.dot(wI)>Math.cos(e)){var r=lf(_I.x,_I.y,xI.x,xI.y,mI.x,mI.y,SI,!1);CI.fromArray(SI),CI.scaleAndAdd(wI,r/Math.tan(Math.PI-e));var o=xI.x!==_I.x?(CI.x-_I.x)/(xI.x-_I.x):(CI.y-_I.y)/(xI.y-_I.y);if(isNaN(o))return;0>o?$v.copy(CI,_I):o>1&&$v.copy(CI,xI),CI.toArray(t[1])}}}}function df(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function gf(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=Ey(i[0],i[1]),o=Ey(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=ft([],i[1],i[0],a/r),l=ft([],i[1],i[2],a/o),u=ft([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)t.lineTo(i[c][0],i[c][1])}function yf(t,e,n){var i=t.getTextGuideLine(),r=t.getTextContent();if(!r)return void(i&&t.removeTextGuideLine());for(var o=e.normal,a=o.get("show"),s=r.ignore,l=0;l<fx.length;l++){var u=fx[l],h=e[u],p="normal"===u;if(h){var f=h.get("show");if((p?s:B(r.states[u]&&r.states[u].ignore,s))||!B(f,a)){var d=p?i:i&&i.states.normal;d&&(d.ignore=!0);continue}i||(i=new rb,t.setTextGuideLine(i),p||!s&&a||df(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),df(i,!1,u,h)}}if(i){c(i.style,n),i.style.fill=null;var g=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=g||!1,i.buildPath=gf}}function vf(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<px.length;i++){var r=px[i];n[r]=t.getModel([r,e])}return n}function mf(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(!i.defaultAttr.ignore){var r=i.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new bb(a,o):null;e.push({label:r,labelLine:i.labelLine,rect:u,localRect:a,obb:c,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:o})}}return e}function _f(t,e,n,i,r,o){function a(){b=S.rect[e]-i,w=r-C.rect[e]-C.rect[n]}function s(t,e,n){if(0>t){var i=Math.min(e,-t);if(i>0){l(i*n,0,h);var r=i+t;0>r&&u(-r*n,1)}else u(-t*n,1)}}function l(n,i,r){0!==n&&(d=!0);for(var o=i;r>o;o++){var a=t[o];a.rect[e]+=n,a.label[e]+=n}}function u(i,r){for(var o=[],a=0,s=1;h>s;s++){var u=t[s-1].rect,c=Math.max(t[s].rect[e]-u[e]-u[n],0);o.push(c),a+=c}if(a){var p=Math.min(Math.abs(i)/a,r);if(i>0)for(var s=0;h-1>s;s++){var f=o[s]*p;l(f,0,s+1)}else for(var s=h-1;s>0;s--){var f=o[s-1]*p;l(-f,s,h)}}}function c(t){var e=0>t?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(h-1)),i=0;h-1>i;i++)if(e>0?l(n,0,i+1):l(-n,h-i-1,h),0>=(t-=n))return}var h=t.length;if(!(2>h)){t.sort(function(t,n){return t.rect[e]-n.rect[e]});for(var p,f=0,d=!1,g=[],y=0,v=0;h>v;v++){var m=t[v],_=m.rect;0>(p=_[e]-f)&&(_[e]-=p,m.label[e]-=p,d=!0);var x=Math.max(-p,0);g.push(x),y+=x,f=_[e]+_[n]}y>0&&o&&l(-y/h,0,h);var b,w,S=t[0],C=t[h-1];return a(),0>b&&u(-b,.8),0>w&&u(w,.8),a(),s(b,w,1),s(w,b,-1),a(),0>b&&c(-b),0>w&&c(w),d}}function xf(t,e,n,i){return _f(t,"x","width",e,n,i)}function bf(t,e,n,i){return _f(t,"y","height",e,n,i)}function wf(t){function e(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}var n=[];t.sort(function(t,e){return e.priority-t.priority});for(var i=new om(0,0,0,0),r=0;r<t.length;r++){var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;i.copy(o.rect),i.width-=.1,i.height-=.1,i.x+=.05,i.y+=.05;for(var h=o.obb,p=!1,f=0;f<n.length;f++){var d=n[f];if(i.intersect(d.rect)){if(a&&d.axisAligned){p=!0;break}if(d.obb||(d.obb=new bb(d.localRect,d.transform)),h||(h=new bb(s,l)),h.intersect(d.obb)){p=!0;break}}}p?(e(u),c&&e(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),n.push(o))}}function Sf(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function Cf(t,e){var n=t.label,i=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:Sf(i&&i.shape.points)}}function Tf(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null!=e[r]&&(t[r]=e[r])}}function Mf(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e){var n=OI(e).labelManager;n||(n=OI(e).labelManager=new AI),n.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=OI(e).labelManager;n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}function If(){return!1}function kf(t,e,n){var i=ky(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}function Df(t){return parseInt(t,10)}function Af(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}function Of(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}function Pf(t){t.registerPainter("canvas",RI)}function Lf(t){t.registerComponentModel(EI),t.registerComponentView(NI)}function Rf(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=Tl(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(Tl(t,e,n[a]));return o.join(" ")}}function Ef(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!S(e))return e+"";for(var i=[],r=0;r<n.length;r++){var o=t.getDimensionIndex(n[r]);o>=0&&i.push(e[o])}return i.join(" ")}function Nf(t,e){this.parent.drift(t,e)}function Bf(t,e,n,i){return!(!e||isNaN(e[0])||isNaN(e[1])||i.isIgnore&&i.isIgnore(n)||i.clipShape&&!i.clipShape.contain(e[0],e[1])||"none"===t.getItemVisual(n,"symbol"))}function zf(t){return null==t||k(t)||(t={isIgnore:t}),t||{}}function Ff(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),hoverScale:n.get("scale"),labelStatesModels:Ia(e),cursorStyle:e.get("cursor")}}function Vf(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),o=Hf(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=y(t.dimensions,function(t){return e.mapDimension(t)}),p=!1,f=e.getCalculationInfo("stackResultDimension");return Hh(e,h[0])&&(p=!0,h[0]=f),Hh(e,h[1])&&(p=!0,h[1]=f),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Hf(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function Gf(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}function Wf(t){return S(t)?VI?new Float32Array(t):t:new HI(t)}function jf(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}function Uf(t,e,n,i,r,o,a){for(var s=jf(t,e),l=[],u=[],c=[],h=[],p=[],f=[],d=[],g=Vf(r,e,a),y=t.getLayout("points")||[],v=e.getLayout("points")||[],m=0;m<s.length;m++){var _=s[m],x=!0,b=void 0,w=void 0;switch(_.cmd){case"=":b=2*_.idx,w=2*_.idx1;var S=y[b],C=y[b+1],T=v[w],M=v[w+1];(isNaN(S)||isNaN(C))&&(S=T,C=M),l.push(S,C),u.push(T,M),c.push(n[b],n[b+1]),h.push(i[w],i[w+1]),d.push(e.getRawIndex(_.idx1));break;case"+":var I=_.idx,k=g.dataDimsForPoint,D=r.dataToPoint([e.get(k[0],I),e.get(k[1],I)]);w=2*I,l.push(D[0],D[1]),u.push(v[w],v[w+1]);var A=Gf(g,r,e,I);c.push(A[0],A[1]),h.push(i[w],i[w+1]),d.push(e.getRawIndex(I));break;case"-":x=!1}x&&(p.push(_),f.push(f.length))}f.sort(function(t,e){return d[t]-d[e]});for(var O=l.length,P=Wf(O),L=Wf(O),R=Wf(O),E=Wf(O),N=[],m=0;m<f.length;m++){var B=f[m],z=2*m,F=2*B;P[z]=l[F],P[z+1]=l[F+1],L[z]=u[F],L[z+1]=u[F+1],R[z]=c[F],R[z+1]=c[F+1],E[z]=h[F],E[z+1]=h[F+1],N[m]=p[B]}return{current:P,next:L,stackedOnCurrent:R,stackedOnNext:E,status:N}}function Xf(t,e){return isNaN(t)||isNaN(e)}function Yf(t,e,n,i,r,o,a,s,l){for(var u,c,h,p,f,d,g=n,y=0;i>y;y++){var v=e[2*g],m=e[2*g+1];if(g>=r||0>g)break;if(Xf(v,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](v,m),h=v,p=m;else{var _=v-u,x=m-c;if(.5>_*_+x*x){g+=o;continue}if(a>0){var b=g+o,w=e[2*b],S=e[2*b+1],C=y+1;if(l)for(;Xf(w,S)&&i>C;)C++,b+=o,w=e[2*b],S=e[2*b+1];var T=.5,M=0,I=0,k=void 0,D=void 0;if(C>=i||Xf(w,S))f=v,d=m;else{M=w-u,I=S-c;var A=v-u,O=w-v,P=m-c,L=S-m,R=void 0,E=void 0;"x"===s?(R=Math.abs(A),E=Math.abs(O),f=v-R*a,d=m,k=v+R*a,D=m):"y"===s?(R=Math.abs(P),E=Math.abs(L),f=v,d=m-R*a,k=v,D=m+R*a):(R=Math.sqrt(A*A+P*P),E=Math.sqrt(O*O+L*L),T=E/(E+R),f=v-M*a*(1-T),d=m-I*a*(1-T),k=v+M*a*T,D=m+I*a*T,k=GI(k,WI(w,v)),D=GI(D,WI(S,m)),k=WI(k,GI(w,v)),D=WI(D,GI(S,m)),M=k-v,I=D-m,f=v-M*R/E,d=m-I*R/E,f=GI(f,WI(u,v)),d=GI(d,WI(c,m)),f=WI(f,GI(u,v)),d=WI(d,GI(c,m)),M=v-f,I=m-d,k=v+M*E/R,D=m+I*E/R)}t.bezierCurveTo(h,p,f,d,v,m),h=k,p=D}else t.lineTo(v,m)}u=v,c=m,g+=o}return y}function qf(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,a=Math.floor(a),l=Math.round(l);var h=new J_({shape:{x:a,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),f=p.isHorizontal(),d=p.inverse;f?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);qo(h,{shape:{width:l,height:u,x:a,y:s}},n,null,i,"function"==typeof r?function(t){r(t,h)}:null)}return h}function Zf(t,e,n){var i=t.getArea(),r=_n(i.r0,1),o=_n(i.r,1),a=new Jx({shape:{cx:_n(t.cx,1),cy:_n(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){"angle"===t.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=r,qo(a,{shape:{endAngle:i.endAngle,r:o}},n)}return a}function $f(t,e){return t.type===e}function Kf(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function Jf(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function Qf(t,e){var n=Jf(t),i=n[0],r=n[1],o=Jf(e),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function td(t){return"number"==typeof t?t:t?.5:0}function ed(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=Wf(2*i),o=0;i>o;o++){var a=Gf(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}function nd(t,e,n){for(var i=e.getBaseAxis(),r="x"===i.dim||"radius"===i.dim?0:1,o=[],a=0,s=[],l=[],u=[];a<t.length-2;a+=2)switch(u[0]=t[a+2],u[1]=t[a+3],l[0]=t[a],l[1]=t[a+1],o.push(l[0],l[1]),n){case"end":s[r]=u[r],s[1-r]=l[1-r],o.push(s[0],s[1]);break;case"middle":var c=(l[r]+u[r])/2,h=[];s[r]=h[r]=c,s[1-r]=l[1-r],h[1-r]=u[1-r],o.push(s[0],s[1]),o.push(h[0],h[1]);break;default:s[r]=l[r],s[1-r]=u[1-r],o.push(s[0],s[1])}return o.push(t[a++],t[a++]),o}function id(t,e){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var i,r,o=n.length-1;o>=0;o--){var a=t.getDimensionInfo(n[o].dimension);if("x"===(i=a&&a.coordDim)||"y"===i){r=n[o];break}}if(r){var s=e.getAxis(i),l=s.scale.getExtent(),u=y(r.stops,function(t){var e=s.toGlobalCoord(s.dataToCoord(t.value));return isNaN(e)||isFinite(e)||(e=s.toGlobalCoord(s.dataToCoord(l[+(0>e)]))),{offset:0,coord:e,color:t.color}}),c=u.length,h=r.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var p=u[0].coord-10,f=u[c-1].coord+10,d=f-p;if(.001>d)return"transparent";g(u,function(t){t.offset=(t.coord-p)/d}),u.push({offset:c?u[c-1].offset:.5,color:h[1]||"transparent"}),u.unshift({offset:c?u[0].offset:.5,color:h[0]||"transparent"});var v=new gb(0,0,0,0,u,!0);return v[i]=p,v[i+"2"]=f,v}}}function rd(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!od(o,e))){var a=e.mapDimension(o.dim),s={};return g(o.getViewLabels(),function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function od(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;r>a;a+=o)if(1.5*zI.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}function ad(t,e){return isNaN(t)||isNaN(e)}function sd(t){for(var e=t.length/2;e>0&&ad(t[2*e-2],t[2*e-1]);e--);return e-1}function ld(t,e){return[t[2*e],t[2*e+1]]}function ud(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;o>u;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a]))if(0!==u){if(e>=i&&r>=e||i>=e&&e>=r){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}function cd(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<px.length;e++)if(t.get([px[e],"endLabel","show"]))return!0;return!1}function hd(t,e,n,i){if($f(e,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=cd(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,u=e.getBaseAxis().isHorizontal(),c=qf(e,n,i,function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var h=c.shape,p=Math.max(h.width,h.height);u?(h.y-=p,h.height+=2*p):(h.x-=p,h.width+=2*p)}return l&&l(1,c),c}return Zf(e,n,i)}function pd(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}function fd(t,e){return{seriesType:t,plan:gu(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(i){var a=y(i.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");Hh(n,a[0])&&(a[0]=l),Hh(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),h=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,r=o&&Wf(n*s),a=[],l=[],p=t.start,f=0;p<t.end;p++){var d=void 0;if(1===s){var g=u.get(c,p);d=i.dataToPoint(g,null,l)}else a[0]=u.get(c,p),a[1]=u.get(h,p),d=i.dataToPoint(a,null,l);o?(r[f++]=d[0],r[f++]=d[1]):e.setItemLayout(p,d.slice())}o&&e.setLayout("points",r)}}}}}}function dd(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),p=Math.round(a/h);if(p>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/p));var f=void 0;"string"==typeof r?f=ZI[r]:"function"==typeof r&&(f=r),f&&t.setData(i.downSample(i.mapDimension(l.dim),1/p,f,$I))}}}}}function gd(t){t.registerChartView(qI),t.registerSeriesModel(BI),t.registerLayout(fd("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,dd("line"))}function yd(t,n,i,r){g(ok,function(o,a){var l=s(s({},rk[a],!0),r,!0),u=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n+"Axis."+a,e}return e(i,t),i.prototype.mergeDefaultAndTheme=function(t,e){var n=bs(this),i=n?Ss(t):{};s(t,e.getTheme().get(a+"Axis")),s(t,this.getDefaultOption()),t.type=vd(t),n&&ws(t,i,n)},i.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=RM.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;return"category"===e.type?t?e.data:this.__ordinalMeta.categories:void 0},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.type=n+"Axis."+a,i.defaultOption=l,i}(i);t.registerComponentModel(u)}),t.registerSubTypeDefaulter(n+"Axis",vd)}function vd(t){return t.type||(t.data?"category":"value")}function md(t){return"interval"===t.type||"time"===t.type}function _d(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,c=i.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],p={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,d="x"===u?[h[2]-f,h[3]+f]:[h[0]-f,h[1]+f];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));d[p.onZero]=Math.max(Math.min(g,d[1]),d[0])}o.position=["y"===u?d[p[l]]:h[0],"x"===u?d[p[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1);var y={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=y[s],o.labelOffset=a?d[p[s]]-d[p.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),N(n.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 xd(t){return"cartesian2d"===t.get("coordinateSystem")}function bd(t){var e={xAxisModel:null,yAxisModel:null};return g(e,function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,km).models[0];e[i]=o}),e}function wd(t,e){return t.getCoordSysModel()===e}function Sd(t,e,n,i){function r(t){return t.dim+"_"+t.index}n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],s=n.model,l=s.get(["axisLine","onZero"]),u=s.get(["axisLine","onZeroAxisIndex"]);if(l){if(null!=u)Cd(a[u])&&(o=a[u]);else for(var c in a)if(a.hasOwnProperty(c)&&Cd(a[c])&&!i[r(a[c])]){o=a[c];break}o&&(i[r(o)]=!0)}}function Cd(t){return t&&"category"!==t.type&&"time"!==t.type&&Mp(t)}function Td(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}function Md(t,e,n,i){var r,o,a=Mn(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return In(a-hk/2)?(o=l?"bottom":"top",r="center"):In(a-1.5*hk)?(o=l?"top":"bottom",r="center"):(o="middle",r=1.5*hk>a&&a>hk/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function Id(t,e,n){if(!Pp(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],p=n[n.length-2];!1===i?(kd(o),kd(u)):Dd(o,a)&&(i?(kd(a),kd(c)):(kd(o),kd(u))),!1===r?(kd(s),kd(h)):Dd(l,s)&&(r?(kd(l),kd(p)):(kd(s),kd(h)))}}function kd(t){t&&(t.ignore=!0)}function Dd(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=Fe([]);return We(r,r,-t.rotation),n.applyTransform(He([],r,t.getLocalTransform())),i.applyTransform(He([],r,e.getLocalTransform())),n.intersect(i)}}function Ad(t){return"middle"===t||"center"===t}function Od(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(dt(a,a,e),dt(s,s,e));var c=new sb({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});c.anid=r+"_"+t[l].tickValue,o.push(c)}return o}function Pd(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=r.getTicksCoords(),h=Od(u,e.transform,l,c(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),p=0;p<h.length;p++)t.add(h[p]);return h}}function Ld(t,e,n,i){var r=n.axis,o=n.getModel("minorTick");if(o.get("show")&&!r.scale.isBlank()){var a=r.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=i*o.get("length"),u=c(s.getLineStyle(),c(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<a.length;h++)for(var p=Od(a[h],e.transform,l,u,"minorticks_"+h),f=0;f<p.length;f++)t.add(p[f])}}function Rd(t,e,n,i){var r=n.axis;if(N(i.axisLabelShow,n.get(["axisLabel","show"]))&&!r.scale.isBlank()){var o=n.getModel("axisLabel"),a=o.get("margin"),s=r.getViewLabels(),l=(N(i.labelRotate,o.get("rotate"))||0)*hk/180,u=pk.innerTextLayout(i.rotation,l,i.labelDirection),c=n.getCategories&&n.getCategories(!0),h=[],p=pk.isLabelSilent(n),f=n.get("triggerEvent");return g(s,function(s,l){var d="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(s.tickValue):s.tickValue,g=s.formattedLabel,y=s.rawLabel,v=o;if(c&&c[d]){var m=c[d];k(m)&&m.textStyle&&(v=new Xb(m.textStyle,o,n.ecModel))}var _=v.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=r.dataToCoord(d),b=new ex({x:x,y:i.labelOffset+i.labelDirection*a,rotation:u.rotation,silent:p,z2:10,style:ka(v,{text:g,align:v.getShallow("align",!0)||u.textAlign,verticalAlign:v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||u.textVerticalAlign,fill:"function"==typeof _?_("category"===r.type?y:"value"===r.type?d+"":d,l):_})});if(b.anid="label_"+d,f){var w=pk.makeAxisEventDataBase(n);w.targetType="axisLabel",w.value=y,rx(b).eventData=w}e.add(b),b.updateTransform(),h.push(b),t.add(b),b.decomposeTransform()}),h}}function Ed(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Nd(n,t,e),n.seriesInvolved&&zd(n,t),n}function Nd(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];g(n.getCoordinateSystems(),function(n){function s(i,s,l){var c=l.model.getModel("axisPointer",r),p=c.get("show");if(p&&("auto"!==p||i||jd(c))){null==s&&(s=c.get("triggerTooltip")),c=i?Bd(l,h,r,e,i,s):c;var f=c.get("snap"),d=Ud(l.model),g=s||f||"category"===l.type,y=t.axesInfo[d]={key:d,axis:l,coordSys:n,axisPointerModel:c,triggerTooltip:s,involveSeries:g,snap:f,useHandle:jd(c),seriesModels:[],linkGroup:null};u[d]=y,t.seriesInvolved=t.seriesInvolved||g;var v=Fd(o,l);if(null!=v){var m=a[v]||(a[v]={axesInfo:{}});m.axesInfo[d]=y,m.mapper=o[v].mapper,y.linkGroup=m}}}if(n.axisPointerEnabled){var l=Ud(n.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=n;var c=n.model,h=c.getModel("tooltip",i);if(g(n.getAxes(),w(s,!1,null)),n.getTooltipAxes&&i&&h.get("show")){var p="axis"===h.get("trigger"),f="cross"===h.get(["axisPointer","type"]),d=n.getTooltipAxes(h.get(["axisPointer","axis"]));(p||f)&&g(d.baseAxes,w(s,!f||"cross",p)),f&&g(d.otherAxes,w(s,"cross",!1))}}})}function Bd(t,e,n,i,r,o){var s=e.getModel("axisPointer"),l=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};g(l,function(t){u[t]=a(s.get(t))}),u.snap="category"!==t.type&&!!o,"cross"===s.get("type")&&(u.type="line");var h=u.label||(u.label={});if(null==h.show&&(h.show=!1),"cross"===r){var p=s.get(["label","show"]);if(h.show=null==p||p,!o){var f=u.lineStyle=s.get("crossStyle");f&&c(h,f.textStyle)}}return t.model.getModel("axisPointer",new Xb(u,n,i))}function zd(t,e){e.eachSeries(function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&g(t.coordSysAxesInfo[Ud(n.model)],function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})})}function Fd(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(Vd(o[i+"AxisId"],n.id)||Vd(o[i+"AxisIndex"],n.componentIndex)||Vd(o[i+"AxisName"],n.name))return r}}function Vd(t,e){return"all"===t||S(t)&&h(t,e)>=0||t===e}function Hd(t){var e=Gd(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=jd(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function Gd(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Ud(t)]}function Wd(t){var e=Gd(t);return e&&e.axisPointerModel}function jd(t){return!!t.get(["handle","show"])}function Ud(t){return t.type+"||"+t.id}function Xd(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var h=s.length,p=yk(t).splitAreaColors,f=U(),d=0;if(p)for(var g=0;g<u.length;g++){var y=p.get(u[g].tickValue);if(null!=y){d=(y+(h-1)*g)%h;break}}var v=r.toGlobalCoord(u[0].coord),m=a.getAreaStyle();s=S(s)?s:[s];for(var g=1;g<u.length;g++){var _=r.toGlobalCoord(u[g].coord),x=void 0,b=void 0,w=void 0,C=void 0;r.isHorizontal()?(x=v,b=l.y,w=_-x,C=l.height,v=x+w):(x=l.x,b=v,w=l.width,C=_-b,v=b+C);var T=u[g-1].tickValue;null!=T&&f.set(T,d),e.add(new J_({anid:null!=T?"area_"+T:null,shape:{x:x,y:b,width:w,height:C},style:c({fill:s[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%h}yk(t).splitAreaColors=f}}}function Yd(t){yk(t).splitAreaColors=null}function qd(t){t.registerComponentView(Sk),t.registerComponentModel(KI),t.registerCoordinateSystem("cartesian2d",ck),yd(t,"x",JI,Ck),yd(t,"y",JI,Ck),t.registerComponentView(bk),t.registerComponentView(wk),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function Zd(t,e){var n=pw(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new J_({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}function $d(t,e,n,i,r,o,a){for(var s=e.getModel("itemStyle"),l=Wb.concat([["decal"]]),u={},c=0;c<l.length;++c){var h=l[c][l[c].length-1],p=l[c][0],f=s.getShallow(h);if("inherit"===f)switch(p){case"fill":u.fill=r[o];break;case"stroke":u.stroke=r[0===t.lastIndexOf("empty",0)?"fill":"stroke"];break;case"opacity":u.opacity=("fill"===o?r:i).opacity;break;default:u[p]=r[p]}else"auto"===f&&"lineWidth"===p?u.lineWidth=r.lineWidth>0?2:0:u[p]=f}for(var d=e.getModel("lineStyle"),g=Vb.concat([["inactiveColor"],["inactiveWidth"]]),y={},c=0;c<g.length;++c){var h=g[c][1],p=g[c][0],f=d.getShallow(h);"inherit"===f?y[p]=i[p]:"auto"===f&&"lineWidth"===p?y.lineWidth=i.lineWidth>0?2:0:y[p]=f}if("auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===y.stroke&&(y.stroke=r.fill),!a){var v=e.get("inactiveBorderWidth"),m=u[t.indexOf("empty")>-1?"fill":"stroke"];u.lineWidth="auto"===v?r.lineWidth>0&&m?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),y.stroke=n.get("inactiveColor"),y.lineWidth=n.get("inactiveWidth")}return{itemStyle:u,lineStyle:y}}function Kd(t){var e=t.icon||"roundRect",n=Hu(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function Jd(t,e,n,i){eg(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),tg(t,e,n,i)}function Qd(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;r>i&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function tg(t,e,n,i){Qd(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function eg(t,e,n,i){Qd(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}function ng(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function ig(t,e,n){var i,r={},o="toggleSelected"===t;return n.eachComponent("legend",function(n){o&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name)),g(n.getData(),function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);r[e]=r.hasOwnProperty(e)?r[e]&&i:i}})}),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function rg(t){t.registerAction("legendToggleSelect","legendselectchanged",w(ig,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",w(ig,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",w(ig,"inverseSelect")),t.registerAction("legendSelect","legendselected",w(ig,"select")),t.registerAction("legendUnSelect","legendunselected",w(ig,"unSelect"))}function og(t){t.registerComponentModel(Mk),t.registerComponentView(Ak),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,ng),t.registerSubTypeDefaulter("legend",function(){return"plain"}),rg(t)}function ag(t,e,n){var i=t.getOrient(),r=[1,1];r[i.index]=0,ws(e,n,{type:"box",ignoreSize:!!r})}function sg(t){t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})}function lg(t){zp(og),t.registerComponentModel(Ok),t.registerComponentView(Ek),sg(t)}function ug(t,e,n,i){cg(Nk(n).lastProp,i)||(Nk(n).lastProp=i,e?Yo(n,i,t):(n.stopAnimation(),n.attr(i)))}function cg(t,e){if(k(t)&&k(e)){var n=!0;return g(e,function(e,i){n=n&&cg(t[i],e)}),!!n}return t===e}function hg(t,e){t[e.get(["label","show"])?"show":"hide"]()}function pg(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function fg(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function dg(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle(),e.fill=null):"shadow"===n&&(e=i.getAreaStyle(),e.stroke=null),e}function gg(t,e,n,i,r){var o=n.get("value"),a=vg(o,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=pw(s.get("padding")||0),u=s.getFont(),c=Ke(a,u),h=r.position,p=c.width+l[1]+l[3],f=c.height+l[0]+l[2],d=r.align;"right"===d&&(h[0]-=p),"center"===d&&(h[0]-=p/2);var g=r.verticalAlign;"bottom"===g&&(h[1]-=f),"middle"===g&&(h[1]-=f/2),yg(h,p,f,i);var y=s.get("backgroundColor");y&&"auto"!==y||(y=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:ka(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function yg(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function vg(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:kp(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};g(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)}),T(a)?o=a.replace("{value}",o):C(a)&&(o=a(s))}return o}function mg(t,e,n){var i=ze();return We(i,i,n.rotation),Ge(i,i,n.position),ha([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function _g(t,e,n,i,r,o){var a=pk.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),gg(e,i,r,o,{position:mg(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function xg(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function bg(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function wg(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}function Sg(t){return"x"===t.dim?0:1}function Cg(t,e,n){if(!gy.node){var i=e.getZr();Wk(i).records||(Wk(i).records={}),Tg(i,e);(Wk(i).records[t]||(Wk(i).records[t]={})).handler=n}}function Tg(t,e){function n(n,i){t.on(n,function(n){var r=Dg(e);jk(Wk(t).records,function(t){t&&i(t,n,r.dispatchAction)}),Mg(r.pendings,e)})}Wk(t).initialized||(Wk(t).initialized=!0,n("click",w(kg,"click")),n("mousemove",w(kg,"mousemove")),n("globalout",Ig))}function Mg(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function Ig(t,e,n){t.handler("leave",null,n)}function kg(t,e,n,i){e.handler(t,n,i)}function Dg(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function Ag(t,e){if(!gy.node){var n=e.getZr();(Wk(n).records||{})[t]&&(Wk(n).records[t]=null)}}function Og(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=ri(o,t);if(null==a||0>a||S(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,p=u.dim,f="x"===h||"radius"===h?1:0,d=o.mapDimension(p),g=[];g[f]=o.get(d,a),g[1-f]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(g)||[]}else i=l.dataToPoint(o.getValues(y(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),i=[v.x+v.width/2,v.y+v.height/2]}return{point:i,el:s}}function Pg(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||Dy(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Gg(r)&&(r=Og({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=Gg(r),u=o.axesInfo,c=s.axesInfo,h="leave"===i||Gg(r),p={},f={},d={list:[],map:{}},y={showPointer:w(Eg,f),showTooltip:w(Ng,d)};g(s.coordSysMap,function(t,e){var n=l||t.containPoint(r);g(s.coordSysAxesInfo[e],function(t){var e=t.axis,i=Vg(u,t);if(!h&&n&&(!u||i)){var o=i&&i.value;null!=o||l||(o=e.pointToData(r)),null!=o&&Lg(t,o,y,!1,p)}})});var v={};return g(c,function(t,e){var n=t.linkGroup;n&&!f[e]&&g(n.axesInfo,function(e,i){var r=f[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,Hg(e),Hg(t)))),v[t.key]=o}})}),g(v,function(t,e){Lg(c[e],t,y,!0,p)}),Bg(f,c,p),zg(d,r,t,a),Fg(c,a,n),p}}function Lg(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void n.showPointer(t,e);var a=Rg(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&u(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}}function Rg(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return g(e.seriesModels,function(e){var l,u,c=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var h=e.getAxisTooltipData(c,t,n);u=h.dataIndices,l=h.nestestValue}else{if(u=e.getData().indicesOfNearest(c[0],t,"category"===n.type?.5:null),!u.length)return;l=e.getData().get(c[0],u[0])}if(null!=l&&isFinite(l)){var p=t-l,f=Math.abs(p);a>=f&&((a>f||p>=0&&0>s)&&(a=f,s=p,r=l,o.length=0),g(u,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}function Eg(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function Ng(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=Ud(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function Bg(t,e,n){var i=n.axesInfo=[];g(e,function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}function zg(t,e,n,i){if(Gg(e)||!t.list.length)return void i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}function Fg(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=Xk(i)[r]||{},a=Xk(i)[r]={};g(t,function(t){var e=t.axisPointerModel.option;"show"===e.status&&g(e.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t})});var s=[],l=[];g(o,function(t,e){!a[e]&&l.push(t)}),g(a,function(t,e){!o[e]&&s.push(t)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Vg(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function Hg(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function Gg(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Wg(t){gk.registerAxisPointerClass("CartesianAxisPointer",Vk),t.registerComponentModel(Gk),t.registerComponentView(Uk),t.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!S(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Ed(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Pg)}function jg(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function Ug(t){if(gy.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;i>n;n++)if(t[n]in e)return t[n]}function Xg(t,e){if(!t)return e;e=hs(e,!0);var n=t.indexOf(e);return t=-1===n?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function Yg(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}function qg(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top"}function Zg(t,e,n){if(!T(n)||"inside"===n)return"";var i=t.get("backgroundColor"),r=t.get("borderWidth");e=ms(e);var o,a=qg(n),s=Math.max(1.5*Math.round(r),6),l="",u=Kk+":";h(["left","right"],a)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var c=o*Math.PI/180,p=s+r,f=p*Math.abs(Math.cos(c))+p*Math.abs(Math.sin(c));l+=";"+a+":-"+Math.round(100*((f-Math.SQRT2*r)/2+Math.SQRT2*r-(f-p)/2))/100+"px";var d=e+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+s+"px;height:"+s+"px;",l+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"].join("")+'"></div>'}function $g(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,r="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,r+=gy.transformSupported?","+Kk+i:",left"+i+",top"+i),$k+":"+r}function Kg(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!gy.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=gy.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+Kk+":"+a+";":[["top",0],["left",0],[qk,a]]}function Jg(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var r=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return r&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),g(["decoration","align"],function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)}),e.join(";")}function Qg(t,e,n){var i=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=iu(t,"html"),p=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+p),e&&r&&i.push($g(r,n)),o&&(gy.canvasSupported?i.push("background-color:"+o):(i.push("background-color:#"+se(o)),i.push("filter:alpha(opacity=70)"))),g(["width","color","radius"],function(e){var n="border-"+e,r=hs(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))}),i.push(Jg(c)),null!=h&&i.push("padding:"+pw(h).join("px ")+"px"),i.join(";")+";"}function ty(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&_t(t,a,document.body,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function ey(t){return Math.max(0,t)}function ny(t){var e=ey(t.shadowBlur||0),n=ey(t.shadowOffsetX||0),i=ey(t.shadowOffsetY||0);return{left:ey(e-n),right:ey(e+n),top:ey(e-i),bottom:ey(e+i)}}function iy(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function ry(t,e,n){var i,r=e.ecModel;n?(i=new Xb(n,r,r),i=new Xb(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Xb&&(a=a.get("tooltip",!0)),T(a)&&(a={formatter:a}),a&&(i=new Xb(a,i,r)))}return i}function oy(t,e){return t.dispatchAction||Dy(e.dispatchAction,e)}function ay(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function sy(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function ly(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+c+a;break;case"left":s=e.x-r-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}function uy(t){return"center"===t||"middle"===t}function cy(t,e,n){var i=si(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o=li(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s;return n.getViewOfComponentModel(a).group.traverse(function(e){var n=rx(e).tooltipConfig;return n&&n.name===t.name?(s=e,!0):void 0}),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}function hy(t){zp(Wg),t.registerComponentModel(Yk),t.registerComponentView(oD),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})}var py=function(t,e){return(py=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},fy=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),dy=function(){function t(){this.browser=new fy,this.node=!1,this.wxa=!1,this.worker=!1,this.canvasSupported=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1}return t}(),gy=new dy;"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(gy.wxa=!0,gy.canvasSupported=!0,gy.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?(gy.worker=!0,gy.canvasSupported=!0):"undefined"==typeof navigator?(gy.node=!0,gy.canvasSupported=!0,gy.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.canvasSupported=!!document.createElement("canvas").getContext,e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,gy);var yy={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},vy={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},my=Object.prototype.toString,_y=Array.prototype,xy=_y.forEach,by=_y.filter,wy=_y.slice,Sy=_y.map,Cy=function(){}.constructor,Ty=Cy?Cy.prototype:null,My={},Iy=2311,ky=function(){return My.createCanvas()};My.createCanvas=function(){return document.createElement("canvas")};var Dy=Ty&&C(Ty.bind)?Ty.call.bind(Ty.bind):b,Ay="__ec_primitive__",Oy=function(){function t(e){function n(t,e){i?r.set(t,e):r.set(e,t)}this.data={};var i=S(e);this.data={};var r=this;e instanceof t?e.each(n):e&&g(e,n)}return t.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},t.prototype.set=function(t,e){return this.data[t]=e},t.prototype.each=function(t,e){for(var n in this.data)this.data.hasOwnProperty(n)&&t.call(e,this.data[n],n)},t.prototype.keys=function(){return x(this.data)},t.prototype.removeKey=function(t){delete this.data[t]},t}(),Py=(Object.freeze||Object)({$override:i,guid:r,logError:o,clone:a,merge:s,mergeAll:l,extend:u,defaults:c,createCanvas:ky,indexOf:h,inherits:p,mixin:f,isArrayLike:d,each:g,map:y,reduce:v,filter:m,find:_,keys:x,bind:Dy,curry:w,isArray:S,isFunction:C,isString:T,isStringSafe:M,isNumber:I,isObject:k,isBuiltInObject:D,isTypedArray:A,isDom:O,isGradientObject:P,isImagePatternObject:L,isRegExp:R,eqNaN:E,retrieve:N,retrieve2:B,retrieve3:z,slice:F,normalizeCssArray:V,assert:H,trim:G,setAsPrimitive:W,isPrimitive:j,HashMap:Oy,createHashMap:U,concatArray:X,createObject:Y,hasOwn:q,noop:Z}),Ly=it,Ry=rt,Ey=ct,Ny=ht,By=(Object.freeze||Object)({create:$,copy:K,clone:J,set:Q,add:tt,scaleAndAdd:et,sub:nt,len:it,length:Ly,lenSquare:rt,lengthSquare:Ry,mul:ot,div:at,dot:st,scale:lt,normalize:ut,distance:ct,dist:Ey,distanceSquare:ht,distSquare:Ny,negate:pt,lerp:ft,applyTransform:dt,min:gt,max:yt}),zy=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),Fy=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new zy(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new zy(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new zy(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new zy(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new zy(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new zy(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),Vy=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;o>r;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;a>s;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;s>l;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),Hy=Math.log(2),Gy="___zrEVENTSAVED",Wy=[],jy="undefined"!=typeof window&&!!window.addEventListener,Uy=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Xy=[],Yy=jy?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0},qy=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;a>o;o++){var s=i[o],l=Ct(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in Zy)if(Zy.hasOwnProperty(e)){var n=Zy[e](this._track,t);if(n)return n}},t}(),Zy={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,r=(t[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=Ot(i)/Ot(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=Pt(i);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},$y="silent",Ky=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return e(n,t),n.prototype.dispose=function(){},n.prototype.setCursor=function(){},n}(Vy),Jy=function(){function t(t,e){this.x=t,this.y=e}return t}(),Qy=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],tv=function(t){function n(e,n,i,r){var o=t.call(this)||this;return o._hovered=new Jy(0,0),o.storage=e,o.painter=n,o.painterRoot=r,i=i||new Ky,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new Fy(o),o}return e(n,t),n.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(g(Qy,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},n.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Nt(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=i?new Jy(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},n.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},n.prototype.resize=function(){this._hovered=new Jy(0,0)},n.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},n.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},n.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},n.prototype.dispatchToElement=function(t,e,n){t=t||{};var i=t.target;if(!i||!i.silent){for(var r="on"+e,o=Lt(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},n.prototype.findHover=function(t,e,n){for(var i=this.storage.getDisplayList(),r=new Jy(t,e),o=i.length-1;o>=0;o--){var a=void 0;if(i[o]!==n&&!i[o].ignore&&(a=Et(i[o],t,e))&&(!r.topTarget&&(r.topTarget=i[o]),a!==$y)){r.target=i[o];break}}return r},n.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new qy);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new Jy;o.target=i.target,this.dispatchToElement(o,r,i.event)}},n}(Vy);g(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){tv.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=Nt(this,r,o);if("mouseup"===t&&a||(n=this.findHover(r,o),i=n.target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Ey(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var ev,nv=32,iv=7,rv=1,ov=4,av=!1,sv=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Xt}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;r>i;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,gy.canvasSupported&&jt(n,Xt)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var r=i,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=rv),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(Ut(),u.z=0),isNaN(u.z2)&&(Ut(),u.z2=0),isNaN(u.zlevel)&&(Ut(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;n>e;e++)this.delRoot(t[e]);else{var i=h(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();ev="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var lv=ev,uv={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,n=.1;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4):n*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*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?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-uv.bounceOut(1-t)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return.5>t?.5*uv.bounceIn(2*t):.5*uv.bounceOut(2*t-1)+.5}},cv=function(){function t(t){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,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}return t.prototype.step=function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)return void(this._pausedTime+=e);var n=(t-this._startTime-this._pausedTime)/this._life;0>n&&(n=0),n=Math.min(n,1);var i=this.easing,r="string"==typeof i?uv[i]:i,o="function"==typeof r?r(n):n;if(this.onframe&&this.onframe(o),1===n){if(!this.loop)return!0;this._restart(t),this.onrestart&&this.onrestart()}return!1},t.prototype._restart=function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t}(),hv=function(){function t(t){this.value=t}return t}(),pv=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new hv(t);return this.insertEntry(e),e},t.prototype.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++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),fv=function(){function t(t){this._list=new pv,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new hv(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;return null!=e?(e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value):void 0},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),dv={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]},gv=new fv(20),yv=null,vv=le,mv=ue,_v=(Object.freeze||Object)({parse:ie,lift:ae,toHex:se,fastLerp:le,fastMapToColor:vv,lerp:ue,mapToColor:mv,modifyHSL:ce,modifyAlpha:he,stringify:pe,lum:fe,random:de}),xv=Array.prototype.slice,bv=[0,0,0,0],wv=function(){function t(t){this.keyframes=[],this.maxTime=0,this.arrDim=0,this.interpolable=!0,this._needsSort=!1,this._isAllValueEqual=!0,this._lastFrame=0,this._lastFramePercent=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return!this._isAllValueEqual&&this.keyframes.length>=2&&this.interpolable&&this.maxTime>0},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e){t>=this.maxTime?this.maxTime=t:this._needsSort=!0;var n=this.keyframes,i=n.length;if(this.interpolable)if(d(e)){var r=ke(e);if(i>0&&this.arrDim!==r)return void(this.interpolable=!1);if(1===r&&"number"!=typeof e[0]||2===r&&"number"!=typeof e[0][0])return void(this.interpolable=!1);if(i>0){var o=n[i-1];this._isAllValueEqual&&(1===r?we(e,o.value)||(this._isAllValueEqual=!1):this._isAllValueEqual=!1)}this.arrDim=r}else{if(this.arrDim>0)return void(this.interpolable=!1);if("string"==typeof e){var a=ie(e);a?(e=a,this.isValueColor=!0):this.interpolable=!1}else if("number"!=typeof e||isNaN(e))return void(this.interpolable=!1);if(this._isAllValueEqual&&i>0){var o=n[i-1];this.isValueColor&&!we(o.value,e)?this._isAllValueEqual=!1:o.value!==e&&(this._isAllValueEqual=!1)}}var s={time:t,value:e,percent:0};return this.keyframes.push(s),s},t.prototype.prepare=function(t){var e=this.keyframes;this._needsSort&&e.sort(function(t,e){return t.time-e.time});for(var n=this.arrDim,i=e.length,r=e[i-1],o=0;i>o;o++)e[o].percent=e[o].time/this.maxTime,n>0&&o!==i-1&&be(e[o].value,r.value,n);if(t&&this.needsAnimate()&&t.needsAnimate()&&n===t.arrDim&&this.isValueColor===t.isValueColor&&!t._finished){this._additiveTrack=t;for(var a=e[0].value,o=0;i>o;o++)0===n?e[o].additiveValue=this.isValueColor?_e([],e[o].value,a,-1):e[o].value-a:1===n?e[o].additiveValue=_e([],e[o].value,a,-1):2===n&&(e[o].additiveValue=xe([],e[o].value,a,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i=null!=this._additiveTrack,r=i?"additiveValue":"value",o=this.keyframes,a=this.keyframes.length,s=this.propName,l=this.arrDim,u=this.isValueColor;if(0>e)n=0;else if(e<this._lastFramePercent){var c=Math.min(this._lastFrame+1,a-1);for(n=c;n>=0&&!(o[n].percent<=e);n--);n=Math.min(n,a-2)}else{for(n=this._lastFrame;a>n&&!(o[n].percent>e);n++);n=Math.min(n-1,a-2)}var h=o[n+1],p=o[n];if(p&&h){this._lastFrame=n,this._lastFramePercent=e;var f=h.percent-p.percent;if(0!==f){var d=(e-p.percent)/f,g=i?this._additiveValue:u?bv:t[s];if((l>0||u)&&!g&&(g=this._additiveValue=[]),this.useSpline){var y=o[n][r],v=o[0===n?n:n-1][r],m=o[n>a-2?a-1:n+1][r],_=o[n>a-3?a-1:n+2][r];if(l>0)1===l?Ce(g,v,y,m,_,d,d*d,d*d*d):Te(g,v,y,m,_,d,d*d,d*d*d);else if(u)Ce(g,v,y,m,_,d,d*d,d*d*d),i||(t[s]=Ie(g));else{var x=void 0;x=this.interpolable?Se(v,y,m,_,d,d*d,d*d*d):m,i?this._additiveValue=x:t[s]=x}}else if(l>0)1===l?ve(g,p[r],h[r],d):me(g,p[r],h[r],d);else if(u)ve(g,p[r],h[r],d),i||(t[s]=Ie(g));else{var x=void 0;x=this.interpolable?ge(p[r],h[r],d):ye(p[r],h[r],d),i?this._additiveValue=x:t[s]=x}i&&this._addToTarget(t)}}}},t.prototype._addToTarget=function(t){var e=this.arrDim,n=this.propName,i=this._additiveValue;0===e?this.isValueColor?(ie(t[n],bv),_e(bv,bv,i,1),t[n]=Ie(bv)):t[n]=t[n]+i:1===e?_e(t[n],t[n],i,1):2===e&&xe(t[n],t[n],i,1)},t}(),Sv=function(){function t(t,e,n){return this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n?void o("Can' use additive animation on looped animation."):void(this._additiveAnimators=n)}return t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e){return this.whenWithKeys(t,e,x(e))},t.prototype.whenWithKeys=function(t,e,n){for(var i=this._tracks,r=0;r<n.length;r++){var o=n[r],a=i[o];if(!a){a=i[o]=new wv(o);var s=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes[l.keyframes.length-1];s=u&&u.value,l.isValueColor&&s&&(s=Ie(s))}else s=this._target[o];if(null==s)continue;0!==t&&a.addKeyframe(0,Me(s)),this._trackKeys.push(o)}a.addKeyframe(t,Me(e[o]))}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;e>n;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t,e){if(!(this._started>0)){this._started=1;for(var n=this,i=[],r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes;if(a.prepare(s),a.needsAnimate())i.push(a);else if(!a.interpolable){var u=l[l.length-1];u&&(n._target[a.propName]=u.value)}}if(i.length||e){var c=new cv({life:this._maxTime,loop:this._loop,delay:this._delay,onframe:function(t){n._started=2;var e=n._additiveAnimators;if(e){for(var r=!1,o=0;o<e.length;o++)if(e[o]._clip){r=!0;break}r||(n._additiveAnimators=null)}for(var o=0;o<i.length;o++)i[o].step(n._target,t);var a=n._onframeCbs;if(a)for(var o=0;o<a.length;o++)a[o](n._target,t)},ondestroy:function(){n._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&"spline"!==t&&(c.easing=t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}for(var a=!0,r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveFinalToTarget=function(t,e){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r&&!r.isFinished()){var o=r.keyframes,a=o[o.length-1];if(a){var s=Me(a.value);r.isValueColor&&(s=Ie(s)),t[i]=s}}}}},t.prototype.__changeFinalValue=function(t,e){e=e||x(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(r.getAdditiveTrack())}}}},t}(),Cv=function(t){function n(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n.onframe=e.onframe||function(){},n}return e(n,t),n.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._clipsHead?(this._clipsTail.next=t,t.prev=this._clipsTail,t.next=null,this._clipsTail=t):this._clipsHead=this._clipsTail=t,t.animation=this},n.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},n.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._clipsHead=n,n?n.prev=e:this._clipsTail=e,t.next=t.prev=t.animation=null}},n.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},n.prototype.update=function(t){for(var e=(new Date).getTime()-this._pausedTime,n=e-this._time,i=this._clipsHead;i;){var r=i.next;i.step(e,n)?(i.ondestroy&&i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.onframe(n),this.trigger("frame",n),this.stage.update&&this.stage.update())},n.prototype._startLoop=function(){function t(){e._running&&(lv(t),!e._paused&&e.update())}var e=this;this._running=!0,lv(t)},n.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},n.prototype.stop=function(){this._running=!1},n.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},n.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},n.prototype.clear=function(){for(var t=this._clipsHead;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._clipsHead=this._clipsTail=null},n.prototype.isFinished=function(){return null==this._clipsHead},n.prototype.animate=function(t,e){e=e||{},this.start();var n=new Sv(t,e.loop);return this.addAnimator(n),n},n}(Vy),Tv=gy.domSupported,Mv=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:t,touch:["touchstart","touchend","touchmove"],pointer:y(t,function(t){var n=t.replace("mouse","pointer");return e.hasOwnProperty(n)?n:t})}}(),Iv={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},kv=!1,Dv=function(){function t(t,e){this.stopPropagation=Z,this.stopImmediatePropagation=Z,this.preventDefault=Z,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),Av={mousedown:function(t){t=It(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=It(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=It(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=It(this.dom,t),Le(this,t.toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){kv=!0,t=It(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){kv||(t=It(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=It(this.dom,t),Oe(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Av.mousemove.call(this,t),Av.mousedown.call(this,t)},touchmove:function(t){t=It(this.dom,t),Oe(t),this.handler.processGesture(t,"change"),Av.mousemove.call(this,t)},touchend:function(t){t=It(this.dom,t),Oe(t),this.handler.processGesture(t,"end"),Av.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Av.click.call(this,t)},pointerdown:function(t){Av.mousedown.call(this,t)},pointermove:function(t){De(t)||Av.mousemove.call(this,t)},pointerup:function(t){Av.mouseup.call(this,t)},pointerout:function(t){De(t)||Av.mouseout.call(this,t)}};g(["click","dblclick","contextmenu"],function(t){Av[t]=function(e){e=It(this.dom,e),this.trigger(t,e)}});var Ov={pointermove:function(t){De(t)||Ov.mousemove.call(this,t)},pointerup:function(t){Ov.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}},Pv=function(){function t(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return t}(),Lv=function(t){function n(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new Pv(e,Av),Tv&&(i._globalHandlerScope=new Pv(document,Ov)),Re(i,i._localHandlerScope),i}return e(n,t),n.prototype.dispose=function(){Be(this._localHandlerScope),Tv&&Be(this._globalHandlerScope)},n.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},n.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Tv&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?Ee(this,e):Be(e)}},n}(Vy),Rv=1;"undefined"!=typeof window&&(Rv=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ev,Nv,Bv=Rv,zv=.4,Fv="#333",Vv="#ccc",Hv=(Object.freeze||Object)({create:ze,identity:Fe,copy:Ve,mul:He,translate:Ge,rotate:We,scale:je,invert:Ue,clone:Xe}),Gv=Fe,Wv=5e-5,jv=[],Uv=[],Xv=ze(),Yv=Math.abs,qv=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return Ye(this.rotation)||Ye(this.x)||Ye(this.y)||Ye(this.scaleX-1)||Ye(this.scaleY-1)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;return e||t?(n=n||ze(),e?this.getLocalTransform(n):Gv(n),t&&(e?He(n,t,n):Ve(n,t)),this.transform=n,void this._resolveGlobalScaleRatio(n)):void(n&&Gv(n))},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(jv);var n=jv[0]<0?-1:1,i=jv[1]<0?-1:1,r=((jv[0]-n)*e+n)/jv[0]||0,o=((jv[1]-i)*e+i)/jv[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||ze(),Ue(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(He(Uv,t.invTransform,e),e=Uv);var n=this.originX,i=this.originY;(n||i)&&(Xv[4]=n,Xv[5]=i,He(Uv,e,Xv),Uv[4]-=n,Uv[5]-=i,e=Uv),this.setLocalTransform(e)}},t.prototype.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)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&dt(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&dt(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Yv(t[0]-1)>1e-10&&Yv(t[3]-1)>1e-10?Math.sqrt(Yv(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){for(var e=this,n=0;n<Zv.length;n++){var i=Zv[n];e[i]=t[i]}},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.rotation||0,s=t.x,l=t.y,u=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;return n||i?(e[4]=-n*r-u*i*o,e[5]=-i*o-c*n*r):e[4]=e[5]=0,e[0]=r,e[3]=o,e[1]=c*r,e[2]=u*o,a&&We(e,e,a),e[4]+=n+s,e[5]+=i+l,e},t.initDefaultProps=function(){var e=t.prototype;e.x=0,e.y=0,e.scaleX=1,e.scaleY=1,e.originX=0,e.originY=0,e.skewX=0,e.skewY=0,e.rotation=0,e.globalScaleRatio=1}(),t}(),Zv=["x","y","originX","originY","rotation","scaleX","scaleY","skewX","skewY"],$v=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),Kv=Math.min,Jv=Math.max,Qv=new $v,tm=new $v,em=new $v,nm=new $v,im=new $v,rm=new $v,om=function(){function t(t,e,n,i){0>n&&(t+=n,n=-n),0>i&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=Kv(t.x,this.x),n=Kv(t.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?Jv(t.x+t.width,this.x+this.width)-e:t.width,this.height=isFinite(this.y)&&isFinite(this.height)?Jv(t.y+t.height,this.y+this.height)-n:t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=ze();return Ge(r,r,[-e.x,-e.y]),je(r,r,[n,i]),Ge(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,p=!(l>o||r>u||c>s||a>h);if(n){var f=1/0,d=0,g=Math.abs(o-l),y=Math.abs(u-r),v=Math.abs(s-c),m=Math.abs(h-a),_=Math.min(g,y),x=Math.min(v,m);l>o||r>u?_>d&&(d=_,y>g?$v.set(rm,-g,0):$v.set(rm,y,0)):f>_&&(f=_,y>g?$v.set(im,g,0):$v.set(im,-y,0)),c>s||a>h?x>d&&(d=x,m>v?$v.set(rm,0,-v):$v.set(rm,0,m)):f>_&&(f=_,m>v?$v.set(im,0,v):$v.set(im,0,-m))}return n&&$v.copy(n,p?im:rm),p},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(!i)return void(e!==n&&t.copy(e,n));if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Qv.x=em.x=n.x,Qv.y=nm.y=n.y,tm.x=nm.x=n.x+n.width,tm.y=em.y=n.y+n.height,Qv.transform(i),nm.transform(i),tm.transform(i),em.transform(i),e.x=Kv(Qv.x,tm.x,em.x,nm.x),e.y=Kv(Qv.y,tm.y,em.y,nm.y);var l=Jv(Qv.x,tm.x,em.x,nm.x),u=Jv(Qv.y,tm.y,em.y,nm.y);e.width=l-e.x,e.height=u-e.y},t}(),am={},sm="12px sans-serif",lm={measureText:qe},um="__zr_normal__",cm=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],hm={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},pm={},fm=new om(0,0,0,0),dm=function(){function t(t){this.id=r(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var u=fm;u.copy(n.layoutRect?n.layoutRect:this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(pm,n,u):nn(pm,n,u),r.x=pm.x,r.y=pm.y,o=pm.align,a=pm.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,p=void 0;"center"===c?(h=.5*u.width,p=.5*u.height):(h=en(c[0],u.width),p=en(c[1],u.height)),l=!0,r.originX=-r.x+h+(i?0:u.x),r.originY=-r.y+p+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var f=n.offset;f&&(r.x+=f[0],r.y+=f[1],l||(r.originX=-f[0],r.originY=-f[1]));var d=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,v=void 0,m=void 0;d&&this.canBeInsideText()?(y=n.insideFill,v=n.insideStroke,(null==y||"auto"===y)&&(y=this.getInsideTextFill()),(null==v||"auto"===v)&&(v=this.getInsideTextStroke(y),m=!0)):(y=n.outsideFill,v=n.outsideStroke,(null==y||"auto"===y)&&(y=this.getOutsideFill()),(null==v||"auto"===v)&&(v=this.getOutsideStroke(y),m=!0)),y=y||"#000",(y!==g.fill||v!==g.stroke||m!==g.autoStroke||o!==g.align||a!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=v,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=rv,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Vv:Fv},t.prototype.getOutsideStroke=function(){var t=this.__zr&&this.__zr.getBackgroundColor(),e="string"==typeof t&&ie(t);e||(e=[255,255,255,1]);for(var n=e[3],i=this.__zr.isDarkMode(),r=0;3>r;r++)e[r]=e[r]*n+(i?0:255)*(1-n);return e[3]=1,pe(e,"rgba")},t.prototype.traverse=function(){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},u(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(k(t))for(var n=t,i=x(n),r=0;r<i.length;r++){var o=i[r];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!r||r===um){var o=i.targetName,a=o?e[o]:e;i.saveFinalToTarget(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,cm)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(um,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===um;if(this.hasState()||!r){var a=this.currentStates,s=this.stateTransition;if(!(h(a,t)>=0)||!e&&1!==a.length){var l;if(this.stateProxy&&!r&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!r)return void o("State "+t+" not exists.");r||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||i);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var c=this._textContent,p=this._textGuide;return c&&c.useState(t,e,n,u),p&&p.useState(t,e,n,u),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~rv),l}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;o>s;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(var s=0;o>s;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var c=i[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(i),f=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,!e&&!this.__inHover&&f&&f.duration>0,f);var d=this._textContent,g=this._textGuide;d&&d.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~rv)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=h(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=h(i,t),o=h(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];u(n,r),r.textConfig&&(e=e||{},u(e,r.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=u({},i?this.textConfig:n.textConfig),u(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,c=0;c<cm.length;c++){var h=cm[c],p=r&&hm[h];e&&null!=e[h]?p?(l=!0,s[h]=e[h]):this[h]=e[h]:a&&null!=n[h]&&(p?(l=!0,s[h]=n[h]):this[h]=n[h])}if(!r)for(var c=0;c<this.animators.length;c++){var f=this.animators[c],d=f.targetName;f.__changeFinalValue(d?(e||n)[d]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");if(t===this)throw new Error("Recursive component attachment.");var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;if(e!==t){if(e&&e!==t&&this.removeTextContent(),t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.innerTransformable=new qv,this._attachComponent(t),this._textContent=t,this.markRedraw()}},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),u(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=rv;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e){var n=t?this[t]:this;if(!n)return void o('Property "'+t+'" is not existed in element '+this.id);var i=new Sv(n,e);return this.addAnimator(i,t),i},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var e=i.animators,n=h(e,t);n>=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;i>o;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){rn(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){rn(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=rn(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){function e(t,e,n){r[t+e+n]||(console.warn("DEPRECATED: '"+t+"' has been deprecated. use '"+e+"', '"+n+"' instead"),r[t+e+n]=!0)}function n(t,n,r,o){function a(t,e){Object.defineProperty(e,0,{get:function(){return t[r]},set:function(e){t[r]=e}}),Object.defineProperty(e,1,{get:function(){return t[o]},set:function(e){t[o]=e}})}Object.defineProperty(i,t,{get:function(){if(e(t,r,o),!this[n]){a(this,this[n]=[])}return this[n]},set:function(i){e(t,r,o),this[r]=i[0],this[o]=i[1],this[n]=i,a(this,i)}})}var i=t.prototype;i.type="element",i.name="",i.ignore=!1,i.silent=!1,i.isGroup=!1,i.draggable=!1,i.dragging=!1,i.ignoreClip=!1,i.__inHover=!1,i.__dirty=rv;var r={};Object.defineProperty&&(!gy.browser.ie||gy.browser.version>8)&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();f(dm,Vy),f(dm,qv);var gm=function(t){function n(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return e(n,t),n.prototype.childrenRef=function(){return this._children},n.prototype.children=function(){return this._children.slice()},n.prototype.childAt=function(t){return this._children[t]},n.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},n.prototype.childCount=function(){return this._children.length},n.prototype.add=function(t){if(t&&(t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),t.__hostTarget))throw"This elemenet has been used as an attachment";return this},n.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},n.prototype.replace=function(t,e){var n=h(this._children,t);return n>=0&&this.replaceAt(e,n),this},n.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},n.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},n.prototype.remove=function(t){var e=this.__zr,n=this._children,i=h(n,t);return 0>i?this:(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh(),this)},n.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},n.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},n.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},n.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(e)}},n.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(e)}},n.prototype.getBoundingRect=function(t){for(var e=new om(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(om.applyTransform(e,s,l),r=r||e.clone(),r.union(e)):(r=r||s.clone(),r.union(s))}}return r||e},n}(dm);gm.prototype.type="group";var ym=!gy.canvasSupported,vm={},mm={},_m=function(){function t(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var r=new sv,o=n.renderer||"canvas";if(ym)throw new Error("IE8 support has been dropped since 5.0");if(vm[o]||(o=x(vm)[0]),!vm[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new vm[o](e,r,n,t);this.storage=r,this.painter=a;var s=gy.node||gy.worker?null:new Lv(a.getViewportRoot(),a.root);this.handler=new tv(r,a,s,a.root),this.animation=new Cv({stage:{update:function(){return i._flush(!0)}}}),this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=cn(t)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(t){var e,n=(new Date).getTime();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=(new Date).getTime();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&++this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop()},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.addHover=function(){},t.prototype.removeHover=function(){},t.prototype.clearHover=function(){},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.pathToImage=function(t,e){return this.painter.pathToImage?this.painter.pathToImage(t,e):void 0},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof gm&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.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,un(this.id)},t}(),xm=(Object.freeze||Object)({init:hn,dispose:pn,disposeAll:fn,getInstance:dn,registerPainter:gn,version:"5.2.0"}),bm=1e-4,wm=20,Sm=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,Cm=("undefined"!=typeof console&&console.warn&&console.log,"series\0"),Tm="\0_ec_\0",Mm=["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"],Im=Nn(),km={useDefault:!0,enableAll:!1,enableNone:!1},Dm=".",Am="___EC__COMPONENT__CONTAINER___",Om="___EC__EXTENDED_CLASS___",Pm=Math.round(10*Math.random()),Lm=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Rm=wi(Lm),Em=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Rm(this,t,e)},t}(),Nm=new fv(50),Bm=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,zm=function(){function t(){}return t}(),Fm=function(){function t(t){this.tokens=[],t&&(this.tokens=t)}return t}(),Vm=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}(),Hm=v(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{}),Gm="__zr_style_"+Math.round(10*Math.random()),Wm={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},jm={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Wm[Gm]=!0;var Um=["z","z2","invisible"],Xm=["invisible"],Ym=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype._init=function(e){for(var n=x(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},n.prototype.beforeBrush=function(){},n.prototype.afterBrush=function(){},n.prototype.innerBeforeBrush=function(){},n.prototype.innerAfterBrush=function(){},n.prototype.shouldBePainted=function(t,e,n,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&Bi(this,t,e)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(i&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},n.prototype.contain=function(t,e){return this.rectContain(t,e)},n.prototype.traverse=function(t,e){t.call(e,this)},n.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},n.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new om(0,0,0,0)),e?om.applyTransform(t,n,e):t.copy(n),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},n.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new om(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},n.prototype.getPrevPaintRect=function(){return this._prevPaintRect},n.prototype.animateStyle=function(t){return this.animate("style",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},n.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},n.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:u(this.style,t),this.dirtyStyle(),this},n.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},n.prototype.dirty=function(){this.dirtyStyle()},n.prototype.styleChanged=function(){return!!(2&this.__dirty)},n.prototype.styleUpdated=function(){this.__dirty&=-3},n.prototype.createStyle=function(t){return Y(Wm,t)},n.prototype.useStyle=function(t){t[Gm]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},n.prototype.isStyleObject=function(t){return t[Gm]},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,Um)},n.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.style?o?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=x(u),h=0;h<c.length;h++){var p=c[h];p in s&&(s[p]=s[p],this.style[p]=u[p])}for(var f=x(s),h=0;h<f.length;h++){var p=f[h];this.style[p]=this.style[p]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);for(var d=this.__inHover?Xm:Um,h=0;h<d.length;h++){var p=d[h];n&&null!=n[p]?this[p]=n[p]:l&&null!=i[p]&&(this[p]=i[p])}},n.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},n.prototype._mergeStyle=function(t,e){return u(t,e),t},n.prototype.getAnimationStyleProps=function(){return jm},n.initDefaultProps=function(){var t=n.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=2|rv}(),n}(dm),qm=new om(0,0,0,0),Zm=new om(0,0,0,0),$m=Math.pow,Km=Math.sqrt,Jm=1e-8,Qm=1e-4,t_=Km(3),e_=1/3,n_=$(),i_=$(),r_=$(),o_=Math.min,a_=Math.max,s_=Math.sin,l_=Math.cos,u_=2*Math.PI,c_=$(),h_=$(),p_=$(),f_=[],d_=[],g_={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},y_=[],v_=[],m_=[],__=[],x_=[],b_=[],w_=Math.min,S_=Math.max,C_=Math.cos,T_=Math.sin,M_=Math.sqrt,I_=Math.abs,k_=Math.PI,D_=2*k_,A_="undefined"!=typeof Float32Array,O_=[],P_=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=I_(n/Bv/t)||0,this._uy=I_(n/Bv/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(g_.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=I_(t-this._xi),i=I_(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(g_.L,t,e),this._ctx&&r&&(this._needsDash?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(g_.C,t,e,n,i,r,o),this._ctx&&(this._needsDash?this._dashedBezierTo(t,e,n,i,r,o):this._ctx.bezierCurveTo(t,e,n,i,r,o)),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(g_.Q,t,e,n,i),this._ctx&&(this._needsDash?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),O_[0]=i,O_[1]=r,ar(O_,o),i=O_[0],r=O_[1];var a=r-i;return this.addData(g_.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=C_(r)*n+t,this._yi=T_(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(g_.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(g_.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.setLineDash=function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;n<t.length;n++)e+=t[n];this._dashSum=e,this._needsDash=!0}else this._lineDash=null,this._needsDash=!1;return this},t.prototype.setLineDashOffset=function(t){return this._dashOffset=t,this},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!A_||(this.data=new Float32Array(e));for(var n=0;e>n;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;e>r;r++)n+=t[r].len();A_&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var r=0;e>r;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},t.prototype.addData=function(){if(this._saveData){var t=this.data;this._len+arguments.length>t.length&&(this._expandData(),t=this.data);for(var e=0;e<arguments.length;e++)t[this._len++]=arguments[e]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype._dashedLineTo=function(t,e){var n,i,r=this._dashSum,o=this._lineDash,a=this._ctx,s=this._dashOffset,l=this._xi,u=this._yi,c=t-l,h=e-u,p=M_(c*c+h*h),f=l,d=u,g=o.length;for(c/=p,h/=p,0>s&&(s=r+s),s%=r,f-=s*c,d-=s*h;c>0&&t>=f||0>c&&f>=t||0===c&&(h>0&&e>=d||0>h&&d>=e);)i=this._dashIdx,n=o[i],f+=c*n,d+=h*n,this._dashIdx=(i+1)%g,c>0&&l>f||0>c&&f>l||h>0&&u>d||0>h&&d>u||a[i%2?"moveTo":"lineTo"](c>=0?w_(f,t):S_(f,t),h>=0?w_(d,e):S_(d,e));c=f-t,h=d-e,this._dashOffset=-M_(c*c+h*h)},t.prototype._dashedBezierTo=function(t,e,n,i,r,o){var a,s,l,u,c,h=this._ctx,p=this._dashSum,f=this._dashOffset,d=this._lineDash,g=this._xi,y=this._yi,v=0,m=this._dashIdx,_=d.length,x=0;for(0>f&&(f=p+f),f%=p,a=0;1>a;a+=.1)s=Vi(g,t,n,r,a+.1)-Vi(g,t,n,r,a),l=Vi(y,e,i,o,a+.1)-Vi(y,e,i,o,a),v+=M_(s*s+l*l);for(;_>m&&!((x+=d[m])>f);m++);for(a=(x-f)/v;1>=a;)u=Vi(g,t,n,r,a),c=Vi(y,e,i,o,a),m%2?h.moveTo(u,c):h.lineTo(u,c),a+=d[m]/v,m=(m+1)%_;m%2!=0&&h.lineTo(r,o),s=r-u,l=o-c,this._dashOffset=-M_(s*s+l*l)},t.prototype._dashedQuadraticTo=function(t,e,n,i){var r=n,o=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,o)},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,A_&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){m_[0]=m_[1]=x_[0]=x_[1]=Number.MAX_VALUE,__[0]=__[1]=b_[0]=b_[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(n=e[t],i=e[t+1],r=n,o=i),a){case g_.M:n=r=e[t++],i=o=e[t++],x_[0]=r,x_[1]=o,b_[0]=r,b_[1]=o;break;case g_.L:er(n,i,e[t],e[t+1],x_,b_),n=e[t++],i=e[t++];break;case g_.C:nr(n,i,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],x_,b_),n=e[t++],i=e[t++];break;case g_.Q:ir(n,i,e[t++],e[t++],e[t],e[t+1],x_,b_),n=e[t++],i=e[t++];break;case g_.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],p=e[t++],f=e[t++]+p;t+=1;var d=!e[t++];s&&(r=C_(p)*c+l,o=T_(p)*h+u),rr(l,u,c,h,p,f,d,x_,b_),n=C_(f)*c+l,i=T_(f)*h+u;break;case g_.R:r=n=e[t++],o=i=e[t++];er(r,o,r+e[t++],o+e[t++],x_,b_);break;case g_.Z:n=r,i=o}gt(m_,m_,x_),yt(__,__,b_)}return 0===t&&(m_[0]=m_[1]=__[0]=__[1]=0),new om(m_[0],m_[1],__[0]-m_[0],__[1]-m_[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;e>h;){var p=t[h++],f=1===h;f&&(r=t[h],o=t[h+1],a=r,s=o);var d=-1;switch(p){case g_.M:r=a=t[h++],o=s=t[h++];break;case g_.L:var g=t[h++],y=t[h++],v=g-r,m=y-o;(I_(v)>n||I_(m)>i||h===e-1)&&(d=Math.sqrt(v*v+m*m),r=g,o=y);break;case g_.C:var _=t[h++],x=t[h++],g=t[h++],y=t[h++],b=t[h++],w=t[h++];d=Xi(r,o,_,x,g,y,b,w,10),r=b,o=w;break;case g_.Q:var _=t[h++],x=t[h++],g=t[h++],y=t[h++];d=Qi(r,o,_,x,g,y,10),r=g,o=y;break;case g_.A:var S=t[h++],C=t[h++],T=t[h++],M=t[h++],I=t[h++],k=t[h++],D=k+I;h+=1,t[h++],f&&(a=C_(I)*T+S,s=T_(I)*M+C),d=S_(T,M)*w_(D_,Math.abs(k)),r=C_(D)*T+S,o=T_(D)*M+C;break;case g_.R:a=r=t[h++],s=o=t[h++];d=2*t[h++]+2*t[h++];break;case g_.Z:var v=a-r,m=s-o;d=Math.sqrt(v*v+m*m),r=a,o=s}d>=0&&(l[c++]=d,u+=d)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,c,h,p,f=this.data,d=this._ux,g=this._uy,y=this._len,v=1>e,m=0,_=0,x=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=e*u))t:for(var b=0;y>b;){var w=f[b++],S=1===b;switch(S&&(r=f[b],o=f[b+1],n=r,i=o),w!==g_.L&&x>0&&(t.lineTo(h,p),x=0),w){case g_.M:n=r=f[b++],i=o=f[b++],t.moveTo(r,o);break;case g_.L:a=f[b++],s=f[b++];var C=I_(a-r),T=I_(s-o);if(C>d||T>g){if(v){var M=l[_++];if(m+M>c){var I=(c-m)/M;t.lineTo(r*(1-I)+a*I,o*(1-I)+s*I);break t}m+=M}t.lineTo(a,s),r=a,o=s,x=0}else{var k=C*C+T*T;k>x&&(h=a,p=s,x=k)}break;case g_.C:var D=f[b++],A=f[b++],O=f[b++],P=f[b++],L=f[b++],R=f[b++];if(v){var M=l[_++];if(m+M>c){var I=(c-m)/M;ji(r,D,O,L,I,y_),ji(o,A,P,R,I,v_),t.bezierCurveTo(y_[1],v_[1],y_[2],v_[2],y_[3],v_[3]);break t}m+=M}t.bezierCurveTo(D,A,O,P,L,R),r=L,o=R;break;case g_.Q:var D=f[b++],A=f[b++],O=f[b++],P=f[b++];if(v){var M=l[_++];if(m+M>c){var I=(c-m)/M;Ki(r,D,O,I,y_),Ki(o,A,P,I,v_),t.quadraticCurveTo(y_[1],v_[1],y_[2],v_[2]);break t}m+=M}t.quadraticCurveTo(D,A,O,P),r=O,o=P;break;case g_.A:var E=f[b++],N=f[b++],B=f[b++],z=f[b++],F=f[b++],V=f[b++],H=f[b++],G=!f[b++],W=B>z?B:z,j=I_(B-z)>.001,U=F+V,X=!1;if(v){var M=l[_++];m+M>c&&(U=F+V*(c-m)/M,X=!0),m+=M}if(j&&t.ellipse?t.ellipse(E,N,B,z,H,F,U,G):t.arc(E,N,W,F,U,G),X)break t;S&&(n=C_(F)*B+E,i=T_(F)*z+N),r=C_(U)*B+E,o=T_(U)*z+N;break;case g_.R:n=r=f[b],i=o=f[b+1],a=f[b++],s=f[b++];var Y=f[b++],q=f[b++];if(v){var M=l[_++];if(m+M>c){var Z=c-m;t.moveTo(a,s),t.lineTo(a+w_(Z,Y),s),Z-=Y,Z>0&&t.lineTo(a+Y,s+w_(Z,q)),Z-=q,Z>0&&t.lineTo(a+S_(Y-Z,0),s+q),(Z-=Y)>0&&t.lineTo(a,s+S_(q-Z,0));break t}m+=M}t.rect(a,s,Y,q);break;case g_.Z:if(v){var M=l[_++];if(m+M>c){var I=(c-m)/M;t.lineTo(r*(1-I)+n*I,o*(1-I)+i*I);break t}m+=M}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=g_,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._needsDash=!1,e._dashOffset=0,e._dashIdx=0,e._dashSum=0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),L_=2*Math.PI,R_=2*Math.PI,E_=P_.CMD,N_=2*Math.PI,B_=1e-4,z_=[-1,-1,-1],F_=[-1,-1],V_=c({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Wm),H_={style:c({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},jm.style)},G_=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],W_=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.update=function(){var e=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new n;r.buildPath===n.prototype.buildPath&&(r.buildPath=function(t){e.buildPath(t,e.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<G_.length;++s)r[G_[s]]=this[G_[s]];r.__dirty|=rv}else this._decalEl&&(this._decalEl=null)},n.prototype.getDecalElement=function(){return this._decalEl},n.prototype._init=function(e){var n=x(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?u(this.style,a):this.useStyle(a):"shape"===o?u(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},n.prototype.getDefaultStyle=function(){return null},n.prototype.getDefaultShape=function(){return{}},n.prototype.canBeInsideText=function(){return this.hasFill()},n.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(T(t)){var e=fe(t,0);return e>.5?Fv:e>.2?"#eee":Vv}if(t)return Vv}return Fv},n.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(T(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===fe(t,0)<zv)return e}},n.prototype.buildPath=function(){},n.prototype.pathUpdated=function(){this.__dirty&=~ov},n.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},n.prototype.createPathProxy=function(){this.path=new P_(!1)},n.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},n.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},n.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&ov)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),xr(o,a/s,t,e)))return!0}if(this.hasFill())return _r(o,t,e)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=ov,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(t){return this.animate("shape",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},n.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:u(n,t),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(this.__dirty&ov)},n.prototype.createStyle=function(t){return Y(V_,t)},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=u({},this.shape))},n.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=u({},i.shape),u(s,n.shape)):(s=u({},r?this.shape:i.shape),u(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=u({},this.shape);for(var c={},h=x(s),p=0;p<h.length;p++){var f=h[p];"object"==typeof s[f]?this.shape[f]=s[f]:c[f]=s[f]}this._transitionState(e,{shape:c},a)}else this.shape=s,this.dirtyShape()},n.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},n.prototype.getAnimationStyleProps=function(){return H_},n.prototype.isZeroArea=function(){return!1},n.extend=function(t){var i=function(n){function i(e){var i=n.call(this,e)||this;return t.init&&t.init.call(i,e),i}return e(i,n),i.prototype.getDefaultStyle=function(){return a(t.style)},i.prototype.getDefaultShape=function(){return a(t.shape)},i}(n);for(var r in t)"function"==typeof t[r]&&(i.prototype[r]=t[r]);return i},n.initDefaultProps=function(){var t=n.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=2|rv|ov}(),n}(Ym),j_=c({strokeFirst:!0,font:sm,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},V_),U_=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},n.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},n.prototype.createStyle=function(t){return Y(j_,t)},n.prototype.setBoundingRect=function(t){this._rect=t},n.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=Ke(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},n.initDefaultProps=function(){n.prototype.dirtyRectTolerance=10}(),n}(Ym);U_.prototype.type="tspan";var X_=c({x:0,y:0},Wm),Y_={style:c({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},jm.style)},q_=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.createStyle=function(t){return Y(X_,t)},n.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i=br(e.image)?e.image:this.__image;if(!i)return 0;var r="width"===t?"height":"width",o=e[r];return null==o?i[t]:i[t]/i[r]*o},n.prototype.getWidth=function(){return this._getSize("width")},n.prototype.getHeight=function(){return this._getSize("height")},n.prototype.getAnimationStyleProps=function(){return Y_},n.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new om(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},n}(Ym);q_.prototype.type="image";var Z_=Math.round,$_=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),K_={},J_=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new $_},n.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Cr(K_,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?wr(t,e):t.rect(n,i,r,o)},n.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},n}(W_);J_.prototype.type="rect";var Q_={fill:"#000"},tx={style:c({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},jm.style)},ex=function(t){function n(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Q_,n.attr(e),n}return e(n,t),n.prototype.childrenRef=function(){return this._children},n.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},n.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},n.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},n.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},n.prototype._updateSubTexts=function(){this._childCursor=0,Mr(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},n.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},n.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},n.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new om(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),i=i||t.clone(),i.union(t)):(i=i||a.clone(),i.union(a))}this._rect=i||t}return this._rect},n.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Q_},n.prototype.setTextContent=function(){throw new Error("Can't attach text on another text")},n.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return u(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},n.prototype._mergeRich=function(t,e){for(var n=x(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},u(t[r],e[r])}},n.prototype.getAnimationStyleProps=function(){return tx},n.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},n.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||sm,n=t.padding,i=Or(t),r=Oi(i,t),o=Pr(t),a=!!t.backgroundColor,s=r.outerHeight,l=r.lines,u=r.lineHeight,c=this._defaultStyle,h=t.x||0,p=t.y||0,f=t.align||c.align||"left",d=t.verticalAlign||c.verticalAlign||"top",g=h,y=Qe(p,r.contentHeight,d);if(o||n){var v=r.width;n&&(v+=n[1]+n[3]);var m=Je(h,v,f),_=Qe(p,s,d);o&&this._renderBackground(t,t,m,_,v,s)}y+=u/2,n&&(g=Ar(h,f,n),"top"===d?y+=n[0]:"bottom"===d&&(y-=n[2]));for(var x=0,b=!1,w=(Dr("fill"in t?t.fill:(b=!0,c.fill))),S=(kr("stroke"in t?t.stroke:a||c.autoStroke&&!b?null:(x=2,c.stroke))),C=t.textShadowBlur>0,T=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),M=r.calculatedLineHeight,I=0;I<l.length;I++){var k=this._getOrCreateChild(U_),D=k.createStyle();k.useStyle(D),D.text=l[I],D.x=g,D.y=y,f&&(D.textAlign=f),D.textBaseline="middle",D.opacity=t.opacity,D.strokeFirst=!0,C&&(D.shadowBlur=t.textShadowBlur||0,D.shadowColor=t.textShadowColor||"transparent",D.shadowOffsetX=t.textShadowOffsetX||0,D.shadowOffsetY=t.textShadowOffsetY||0),S&&(D.stroke=S,D.lineWidth=t.lineWidth||x,D.lineDash=t.lineDash,D.lineDashOffset=t.lineDashOffset||0),w&&(D.fill=w),D.font=e,y+=u,T&&k.setBoundingRect(new om(Je(D.x,t.width,D.textAlign),Qe(D.y,M,D.textBaseline),t.width,M))}},n.prototype._updateRichTexts=function(){var t=this.style,e=Or(t),n=Pi(e,t),i=n.width,r=n.outerWidth,o=n.outerHeight,a=t.padding,s=t.x||0,l=t.y||0,u=this._defaultStyle,c=t.align||u.align,h=t.verticalAlign||u.verticalAlign,p=Je(s,r,c),f=Qe(l,o,h),d=p,g=f;a&&(d+=a[3],g+=a[0]);var y=d+i;Pr(t)&&this._renderBackground(t,t,p,f,r,o);for(var v=!!t.backgroundColor,m=0;m<n.lines.length;m++){for(var _=n.lines[m],x=_.tokens,b=x.length,w=_.lineHeight,S=_.width,C=0,T=d,M=y,I=b-1,k=void 0;b>C&&(k=x[C],!k.align||"left"===k.align);)this._placeToken(k,t,w,g,T,"left",v),S-=k.width,T+=k.width,C++;for(;I>=0&&(k=x[I],"right"===k.align);)this._placeToken(k,t,w,g,M,"right",v),S-=k.width,M-=k.width,I--;for(T+=(i-(T-d)-(y-M)-S)/2;I>=C;)k=x[C],this._placeToken(k,t,w,g,T+k.width/2,"center",v),T+=k.width,C++;g+=w}},n.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&Pr(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,h=t.textPadding;h&&(r=Ar(r,o,h),u-=t.height/2-h[0]-t.innerHeight/2);var p=this._getOrCreateChild(U_),f=p.createStyle();p.useStyle(f);var d=this._defaultStyle,g=!1,y=0,v=Dr("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,d.fill)),m=kr("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||d.autoStroke&&!g?null:(y=2,d.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=r,f.y=u,_&&(f.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,f.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=t.font||sm,f.opacity=z(s.opacity,e.opacity,1),m&&(f.lineWidth=z(s.lineWidth,e.lineWidth,y),f.lineDash=B(s.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=m),v&&(f.fill=v);var x=t.contentWidth,b=t.contentHeight;p.setBoundingRect(new om(Je(f.x,x,f.textAlign),Qe(f.y,b,f.textBaseline),x,b))},n.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,h=l&&l.image,p=l&&!h,f=t.borderRadius,d=this;if(p||t.lineHeight||u&&c){a=this._getOrCreateChild(J_),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=i,g.width=r,g.height=o,g.r=f,a.dirtyShape()}if(p){var y=a.style;y.fill=l||null,y.fillOpacity=B(t.fillOpacity,1)}else if(h){s=this._getOrCreateChild(q_),s.onload=function(){d.dirtyStyle()};var v=s.style;v.image=l.image,v.x=n,v.y=i,v.width=r,v.height=o}if(u&&c){var y=a.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=B(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=z(t.opacity,e.opacity,1)},n.makeFont=function(t){var e="";if(t.fontSize||t.fontFamily||t.fontWeight){var n="";n="string"!=typeof t.fontSize||-1===t.fontSize.indexOf("px")&&-1===t.fontSize.indexOf("rem")&&-1===t.fontSize.indexOf("em")?isNaN(+t.fontSize)?"12px":t.fontSize+"px":t.fontSize,e=[t.fontStyle,t.fontWeight,n,t.fontFamily||"sans-serif"].join(" ")}return e&&G(e)||t.textFont||t.font},n}(Ym),nx={left:!0,right:1,center:1},ix={top:1,bottom:1,middle:1},rx=oi(),ox=function(t,e,n,i){if(i){var r=rx(i);r.dataIndex=n,r.dataType=e,r.seriesIndex=t,"group"===i.type&&i.traverse(function(i){var r=rx(i);r.seriesIndex=t,r.dataIndex=n,r.dataType=e})}},ax=1,sx={},lx=oi(),ux=0,cx=1,hx=2,px=["emphasis","blur","select"],fx=["normal","emphasis","blur","select"],dx=10,gx=9,yx="highlight",vx="downplay",mx="select",_x="unselect",xx="toggleSelect",bx=new fv(100),Sx=["emphasis","blur","select"],Cx={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"},Tx=P_.CMD,Mx=[[],[],[]],Ix=Math.sqrt,kx=Math.atan2,Dx=Math.sqrt,Ax=Math.sin,Ox=Math.cos,Px=Math.PI,Lx=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Rx=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Ex=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.applyTransform=function(){},n}(W_),Nx=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),Bx=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new Nx},n.prototype.buildPath=function(t,e,n){n&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},n}(W_);Bx.prototype.type="circle";var zx=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),Fx=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new zx},n.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},n}(W_);Fx.prototype.type="ellipse";var Vx=Math.PI,Hx=2*Vx,Gx=Math.sin,Wx=Math.cos,jx=Math.acos,Ux=Math.atan2,Xx=Math.abs,Yx=Math.sqrt,qx=Math.max,Zx=Math.min,$x=1e-4,Kx=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0,this.innerCornerRadius=0}return t}(),Jx=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new Kx},n.prototype.buildPath=function(t,e){Fo(t,e)},n.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},n}(W_);Jx.prototype.type="sector";var Qx=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),tb=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new Qx},n.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},n}(W_);tb.prototype.type="ring";var eb=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),nb=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new eb},n.prototype.buildPath=function(t,e){Wo(t,e,!0)},n}(W_);nb.prototype.type="polygon";var ib=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),rb=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new ib},n.prototype.buildPath=function(t,e){Wo(t,e,!1)},n}(W_);rb.prototype.type="polyline";var ob={},ab=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),sb=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new ab},n.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Sr(ob,e,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=e.x1,i=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,i),1>s&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),t.lineTo(r,o))},n.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},n}(W_);sb.prototype.type="line";var lb=[],ub=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}(),cb=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new ub},n.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,i),null==l||null==u?(1>c&&(Ki(n,a,r,c,lb),a=lb[1],r=lb[2],Ki(i,s,o,c,lb),s=lb[1],o=lb[2]),t.quadraticCurveTo(a,s,r,o)):(1>c&&(ji(n,a,l,r,c,lb),a=lb[1],l=lb[2],r=lb[3],ji(i,s,u,o,c,lb),s=lb[1],u=lb[2],o=lb[3]),t.bezierCurveTo(a,s,l,u,r,o)))},n.prototype.pointAt=function(t){return jo(this.shape,t,!1)},n.prototype.tangentAt=function(t){var e=jo(this.shape,t,!0);return ut(e,e)},n}(W_);cb.prototype.type="bezier-curve";var hb=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),pb=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new hb},n.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},n}(W_);pb.prototype.type="arc";var fb=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return e(n,t),n.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},n.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},n.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},n.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},n.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),W_.prototype.getBoundingRect.call(this)},n}(W_),db=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),gb=function(t){function n(e,n,i,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return e(n,t),n}(db),yb=function(t){function n(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return e(n,t),n}(db),vb=[0,0],mb=[0,0],_b=new $v,xb=new $v,bb=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;4>n;n++)this._corners[n]=new $v;for(var n=0;2>n;n++)this._axes[n]=new $v;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),e)for(var l=0;4>l;l++)n[l].transform(e);$v.sub(i[0],n[1],n[0]),$v.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var l=0;2>l;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,i=!e;return _b.set(1/0,1/0),xb.set(0,0),!this._intersectCheckOneSide(this,t,_b,xb,i,1)&&(n=!1,i)?n:!this._intersectCheckOneSide(t,this,_b,xb,i,-1)&&(n=!1,i)?n:(i||$v.copy(e,n?_b:xb),n)},t.prototype._intersectCheckOneSide=function(t,e,n,i,r,o){for(var a=!0,s=0;2>s;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,vb),this._getProjMinMaxOnAxis(s,e._corners,mb),vb[1]<mb[0]||vb[0]>mb[1]){if(a=!1,r)return a;var u=Math.abs(mb[0]-vb[1]),c=Math.abs(vb[0]-mb[1]);Math.min(u,c)>i.len()&&(c>u?$v.scale(i,l,-u*o):$v.scale(i,l,c*o))}else if(n){var u=Math.abs(mb[0]-vb[1]),c=Math.abs(vb[0]-mb[1]);Math.min(u,c)<n.len()&&(c>u?$v.scale(n,l,u*o):$v.scale(n,l,-c*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(i)+r[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}(),wb=[],Sb=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return e(n,t),n.prototype.traverse=function(t,e){t.call(e,this)},n.prototype.useStyle=function(){this.style={}},n.prototype.getCursor=function(){return this._cursor},n.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},n.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},n.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},n.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},n.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},n.prototype.getDisplayables=function(){return this._displayables},n.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},n.prototype.eachPendingDisplayable=function(t){for(var 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])},n.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.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}},n.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new om(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(wb)),t.union(i)}this._rect=t}return this._rect},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){var r=this._displayables[i];if(r.contain(t,e))return!0}return!1},n}(Ym),Cb=oi(),Tb=Math.max,Mb=Math.min,Ib={},kb=Eo,Db=No,Ab=Tr;na("circle",Bx),na("ellipse",Fx),na("sector",Jx),na("ring",tb),na("polygon",nb),na("polyline",rb),na("rect",J_),na("line",sb),na("bezierCurve",cb),na("arc",pb);var Ob=(Object.freeze||Object)({updateProps:Yo,initProps:qo,removeElement:$o,removeElementWithFadeOut:Jo,isElementRemoved:Zo,extendShape:ta,extendPath:ea,registerShape:na,getShapeClass:ia,makePath:ra,makeImage:oa,mergePath:Db,resizePath:sa,subPixelOptimizeLine:la,subPixelOptimizeRect:ua,subPixelOptimize:Ab,getTransform:ca,applyTransform:ha,transformDirection:pa,groupTransition:ga,clipPointsByRect:ya,clipRectByRect:va,createIcon:ma,linePolygonIntersect:_a,lineLineIntersect:xa,setTooltipConfig:Sa,Group:gm,Image:q_,Text:ex,Circle:Bx,Ellipse:Fx,Sector:Jx,Ring:tb,Polygon:nb,Polyline:rb,Rect:J_,Line:sb,BezierCurve:cb,Arc:pb,IncrementalDisplayable:Sb,CompoundPath:fb,LinearGradient:gb,RadialGradient:yb,BoundingRect:om,OrientedBoundingRect:bb,Point:$v,Path:W_}),Pb={},Lb=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Rb=["align","lineHeight","width","height","tag","verticalAlign"],Eb=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],Nb=oi(),Bb=["textStyle","color"],zb=new ex,Fb=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Bb):null)},t.prototype.getFont=function(){return La({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){return zb.useStyle({text:t,fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily"),verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline"),padding:this.getShallow("padding"),lineHeight:this.getShallow("lineHeight"),rich:this.getShallow("rich")}),zb.update(),zb.getBoundingRect()},t}(),Vb=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Hb=wi(Vb),Gb=function(){function t(){}return t.prototype.getLineStyle=function(t){return Hb(this,t)},t}(),Wb=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],jb=wi(Wb),Ub=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return jb(this,t,e)},t}(),Xb=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(){for(var t=[],e=3;e<arguments.length;e++)t[e-3]=arguments[e]},t.prototype.mergeOption=function(t){s(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null,o=i?this._doGet(r):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),new t(o,n,this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(a(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!gy.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();yi(Xb),function(t){var e=["__\0is_clz",Pm++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}(Xb),f(Xb,Gb),f(Xb,Ub),f(Xb,Em),f(Xb,Fb);var Yb=Math.round(10*Math.random()),qb={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Zb={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},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:""}}}},$b="ZH",Kb="EN",Jb=Kb,Qb={},tw={},ew=gy.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf($b)>-1?$b:Jb}():Jb;Ba(Kb,qb),Ba($b,Zb);var nw=1e3,iw=60*nw,rw=60*iw,ow=24*rw,aw=365*ow,sw={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},lw="{yyyy}-{MM}-{dd}",uw={year:"{yyyy}",month:"{yyyy}-{MM}",day:lw,hour:lw+" "+sw.hour,minute:lw+" "+sw.minute,second:lw+" "+sw.second,millisecond:sw.none},cw=["year","month","day","hour","minute","second","millisecond"],hw=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],pw=V,fw=/([&<>"'])/g,dw={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},gw=["a","b","c","d","e","f","g"],yw=function(t,e){return"{"+t+(null==e?"":e)+"}"},vw=g,mw=["left","right","top","bottom","width","height"],_w=[["width","left","right"],["height","top","bottom"]],xw=_s,bw=(w(_s,"vertical"),w(_s,"horizontal"),oi()),ww=function(t){function n(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=Ea("ec_cpt_model"),r}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=bs(this),i=n?Ss(t):{};s(t,e.getTheme().get(this.mainType)),s(t,this.getDefaultOption()),n&&ws(t,i,n)},n.prototype.mergeOption=function(t){s(this.option,t,!0);var e=bs(this);e&&ws(this.option,t,e)},n.prototype.optionUpdated=function(){},n.prototype.getDefaultOption=function(){var t=this.constructor;if(!gi(t))return t.defaultOption;var e=bw(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=s(o,n[a],!0);e.defaultOption=o}return e.defaultOption},n.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return li(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},n.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},n.protoInitialize=function(){var t=n.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),n}(Xb);mi(ww,Xb),bi(ww),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=fi(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=fi(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(ww),function(t,e){function n(t){var n={},o=[];return g(t,function(a){var s=i(n,a),l=s.originalDeps=e(a),u=r(l,t);s.entryCount=u.length,0===s.entryCount&&o.push(a),g(u,function(t){h(s.predecessor,t)<0&&s.predecessor.push(t);var e=i(n,t);h(e.successor,t)<0&&e.successor.push(a)})}),{graph:n,noEntryList:o}}function i(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function r(t,e){var n=[];return g(t,function(t){h(e,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,e,i,r){function o(t){0===--l[t].entryCount&&u.push(t)}function a(t){c[t]=!0,o(t)}if(t.length){var s=n(e),l=s.graph,u=s.noEntryList,c={};for(g(t,function(t){c[t]=!0});u.length;){var h=u.pop(),p=l[h],f=!!c[h];f&&(i.call(r,h,p.originalDeps.slice()),delete c[h]),g(p.successor,f?a:o)}g(c,function(){throw new Error("")})}}}(ww,Ts);var Sw="";"undefined"!=typeof navigator&&(Sw=navigator.platform||"");var Cw,Tw,Mw="rgba(0, 0, 0, 0.2)",Iw={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Mw,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Mw,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Mw,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Mw,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Mw,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Mw,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Sw.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},kw=U(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Dw="original",Aw="arrayRows",Ow="objectRows",Pw="keyedColumns",Lw="typedArray",Rw="unknown",Ew="column",Nw="row",Bw={Must:1,Might:2,Not:3},zw=oi(),Fw=U(),Vw=oi(),Hw=(oi(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var i=Vn(this.get("color",!0)),r=this.get("colorLayer",!0);return Rs(this,Vw,i,r,t,e,n)},t.prototype.clearColorPalette=function(){Es(this,Vw)},t}()),Gw="\0_ec_inner",Ww=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new Xb(i),this._locale=new Xb(r),this._optionManager=o},n.prototype.setOption=function(t,e,n){var i=Vs(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},n.prototype.resetOption=function(t,e){return this._resetOption(t,Vs(e))},n.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):Tw(this,r),n=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&g(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},n.prototype.mergeOption=function(t){this._mergeOption(t,null)},n.prototype._mergeOption=function(t,e){function n(e){var n=Ps(this,e,Vn(t[e])),a=r.get(e),s=a?h&&h.get(e)?"replaceMerge":"normalMerge":"replaceAll",l=jn(a,n,s);ni(l,e,ww),i[e]=null,r.set(e,null),o.set(e,0);var c=[],p=[],f=0;g(l,function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=ww.getClass(e,t.keyInfo.subType,!o);if(!a)return;if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=u({componentIndex:n},t.keyInfo);i=new a(r,this,this,s),u(i,s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(c.push(i.option),p.push(i),f++):(c.push(void 0),p.push(void 0))},this),i[e]=c,r.set(e,p),o.set(e,f),"series"===e&&Cw(this)}var i=this.option,r=this._componentsMap,o=this._componentsCount,l=[],c=U(),h=e&&e.replaceMergeMainTypeMap;Ms(this),g(t,function(t,e){null!=t&&(ww.hasClass(e)?e&&(l.push(e),c.set(e,!0)):i[e]=null==i[e]?a(t):s(i[e],t,!0))}),h&&h.each(function(t,e){ww.hasClass(e)&&!c.get(e)&&(l.push(e),c.set(e,!0))}),ww.topologicalTravel(l,ww.getAllClassMainTypes(),n,this),this._seriesIndices||Cw(this)},n.prototype.getOption=function(){var t=a(this.option);return g(t,function(e,n){if(ww.hasClass(n)){for(var i=Vn(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!ei(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}}),delete t[Gw],t},n.prototype.getTheme=function(){return this._theme},n.prototype.getLocaleModel=function(){return this._locale},n.prototype.setUpdatePayload=function(t){this._payload=t},n.prototype.getUpdatePayload=function(){return this._payload},n.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},n.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n=t.index,i=t.id,r=t.name,o=this._componentsMap.get(e);if(!o||!o.length)return[];var a;return null!=n?(a=[],g(Vn(n),function(t){o[t]&&a.push(o[t])})):a=null!=i?zs("id",i,o):null!=r?zs("name",r,o):m(o,function(t){return!!t}),Fs(a,t)},n.prototype.findComponents=function(t){var e=t.query,n=t.mainType,i=function(t){var e=n+"Index",i=n+"Id",r=n+"Name";return!t||null==t[e]&&null==t[i]&&null==t[r]?null:{mainType:n,index:t[e],id:t[i],name:t[r]}}(e),r=i?this.queryComponents(i):m(this._componentsMap.get(n),function(t){return!!t});return function(e){return t.filter?m(e,t.filter):e}(Fs(r,t))},n.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(C(t)){var r=e,o=t;i.each(function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&o.call(r,e,i,i.componentIndex)}})}else for(var a=T(t)?i.get(t):k(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},n.prototype.getSeriesByName=function(t){var e=Qn(t,null);return m(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},n.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},n.prototype.getSeriesByType=function(t){return m(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},n.prototype.getSeries=function(){return m(this._componentsMap.get("series"),function(t){return!!t})},n.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},n.prototype.eachSeries=function(t,e){g(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},n.prototype.eachRawSeries=function(t,e){g(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},n.prototype.eachSeriesByType=function(t,e,n){g(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)},this)},n.prototype.eachRawSeriesByType=function(t,e,n){return g(this.getSeriesByType(t),e,n)},n.prototype.isSeriesFiltered=function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},n.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},n.prototype.filterSeries=function(t,e){var n=[];g(this._seriesIndices,function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=U(n)},n.prototype.restoreData=function(t){Cw(this);var e=this._componentsMap,n=[];e.each(function(t,e){ww.hasClass(e)&&n.push(e)}),ww.topologicalTravel(n,ww.getAllClassMainTypes(),function(n){g(e.get(n),function(e){!e||"series"===n&&Ns(e,t)||e.restoreData()})})},n.internalField=function(){Cw=function(t){var e=t._seriesIndices=[];g(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=U(e)},Tw=function(t,e){t.option={},t.option[Gw]=1,t._componentsMap=U({series:[]}),t._componentsCount=U();var n=e.aria;k(n)&&null==n.enabled&&(n.enabled=!0),Bs(e,t._theme.option),s(e,Iw,!1),t._mergeOption(e,null)}}(),n}(Xb);f(Ww,Hw);var jw,Uw,Xw,Yw,qw,Zw,$w=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Kw=function(){function t(t){g($w,function(e){this[e]=Dy(t[e],t)},this)}return t}(),Jw={},Qw=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];g(Jw,function(i){var r=i.create(t,e);n=n.concat(r||[])}),this._coordinateSystems=n},t.prototype.update=function(t,e){g(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){Jw[t]=e},t.get=function(t){return Jw[t]},t}(),tS=/^(min|max)?(.+)$/,eS=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e){t&&(g(Vn(t.series),function(t){t&&t.data&&A(t.data)&&W(t.data)}),g(Vn(t.dataset),function(t){t&&t.source&&A(t.source)&&W(t.source)})),t=a(t);var n=this._optionBackup,i=Hs(t,e,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],a(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=a(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(){var t=this._api.getWidth(),e=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,r=[],o=[];if(!n.length&&!i)return o;for(var s=0,l=n.length;l>s;s++)Gs(n[s].query,t,e)&&r.push(s);return!r.length&&i&&(r=[-1]),r.length&&!js(r,this._currentMediaIndices)&&(o=y(r,function(t){return a(-1===t?i.option:n[t].option)})),this._currentMediaIndices=r,o},t}(),nS=g,iS=k,rS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],oS=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],aS=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],sS=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]],lS=function(){function t(t){this.data=t.data||(t.sourceFormat===Pw?{}:[]),this.sourceFormat=t.sourceFormat||Rw,this.seriesLayoutBy=t.seriesLayoutBy||Ew,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&As(this,n)===Bw.Must&&(i.type="ordinal")}}return t}(),uS=function(){function t(t,e){var n=hl(t)?t:fl(t);this._source=n;var i=this._data=n.data;n.sourceFormat===Lw&&(this._offset=0,this._dimSize=e,this._data=i),qw(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(){},t.prototype.appendData=function(){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){function t(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}var e;qw=function(t,e,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,c=o.dimensionsDefine;if(u(t,Yw[Cl(a,s)]),a===Lw)t.getItem=n,t.count=r,t.fillStorage=i;else{var h=bl(a,s);t.getItem=Dy(h,null,e,l,c);var p=wl(a,s);t.count=Dy(p,null,e,l,c)}};var n=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;i>o;o++)e[o]=n[r+o];return e},i=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;o>a;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],p=0;c>p;p++){var f=r[p*o+a];h[t+p]=f,l>f&&(l=f),f>u&&(u=f)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};e={},e[Aw+"_"+Ew]={pure:!0,appendData:t},e[Aw+"_"+Nw]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Ow]={pure:!0,appendData:t},e[Pw]={pure:!0,appendData:function(t){var e=this._data;g(t,function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])})}},e[Dw]={appendData:t},e[Lw]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},Yw=e}(),t}(),cS=function(t,e,n,i){return t[i]},hS=(jw={},jw[Aw+"_"+Ew]=function(t,e,n,i){return t[i+e]},jw[Aw+"_"+Nw]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},jw[Ow]=cS,jw[Pw]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=n[a].name,l=t[s];o[a]=l?l[i]:null}return o},jw[Dw]=cS,jw),pS=function(t){return t.length},fS=(Uw={},Uw[Aw+"_"+Ew]=function(t,e){return Math.max(0,t.length-e)},Uw[Aw+"_"+Nw]=function(t,e){var n=t[0];return n?Math.max(0,n.length-e):0},Uw[Ow]=pS,Uw[Pw]=function(t,e,n){var i=n[0].name,r=t[i];return r?r.length:0},Uw[Dw]=pS,Uw),dS=function(t,e){return t[e]},gS=(Xw={},Xw[Aw]=dS,Xw[Ow]=function(t,e,n){return t[n]},Xw[Pw]=dS,Xw[Dw]=function(t,e){var n=Gn(t);return n instanceof Array?n[e]:n},Xw[Lw]=dS,Xw),yS=/\{@(.+?)\}/g,vS=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,p=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:l,borderColor:u,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,i,r,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);if(o&&(s.value=o.interpolatedValue),null!=i&&S(s.value)&&(s.value=s.value[i]),!r){r=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if("function"==typeof r)return s.status=e,s.dimensionIndex=i,r(s);if("string"==typeof r){return ds(r,s).replace(yS,function(e,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1));var s=Tl(a,t,r);if(o&&S(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})}},t.prototype.getRawValue=function(t,e){return Tl(this.getData(e),t)},t.prototype.formatTooltip=function(){},t}(),mS=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){function e(t){return!(t>=1)&&(t=1),t}var n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!i&&(o=this._plan(this.context));var a=e(this._modBy),s=this._modDataCount||0,l=e(t&&t.modBy),u=t&&t.modDataCount||0;(a!==l||s!==u)&&(o="reset");var c;(this._dirty||"reset"===o)&&(this._dirty=!1,c=this._doReset(i)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(c||f>p)){var d=this._progress;if(S(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],p,f,l,u);else this._doProgress(d,p,f,l,u)}this._dueIndex=f;var y=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,i,r){_S.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:_S.next},this.context)},t.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,n;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),S(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),_S=function(){function t(){return n>i?i++:null}function e(){var t=i%a*r+Math.ceil(i/a),e=i>=n?null:o>t?t:i;return i++,e}var n,i,r,o,a,s={reset:function(l,u,c,h){i=l,n=u,r=c,o=h,a=Math.ceil(o/r),s.next=r>1&&o>0?e:t}};return s}(),xS=(U({number:function(t){return parseFloat(t)},time:function(t){return+kn(t)},trim:function(t){return"string"==typeof t?G(t):t}}),{lt:function(t,e){return e>t},lte:function(t,e){return e>=t},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}}),bS=(function(){function t(t,e){if("number"!=typeof e){Fn("")}this._opFn=xS[t],this._rvalFloat=Rn(e)}t.prototype.evaluate=function(t){return"number"==typeof t?this._opFn(t,this._rvalFloat):this._opFn(Rn(t),this._rvalFloat)}}(),function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=typeof t,i=typeof e,r="number"===n?t:Rn(t),o="number"===i?e:Rn(e),a=isNaN(r),s=isNaN(o);if(a&&(r=this._incomparable),s&&(o=this._incomparable),a&&s){var l="string"===n,u="string"===i;l&&(r=u?t:0),u&&(o=l?e:0)}return o>r?this._resultLT:r>o?-this._resultLT:0},t}()),wS=(function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Rn(e)}t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Rn(t)===this._rvalFloat)}return this._isEQ?e:!e}}(),function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(){},t.prototype.retrieveValueFromItem=function(){},t.prototype.convertValue=function(t,e){return kl(t,e)},t}()),SS=U(),CS="undefined",TS=typeof Uint32Array===CS?Array:Uint32Array,MS=typeof Uint16Array===CS?Array:Uint16Array,IS=typeof Int32Array===CS?Array:Int32Array,kS=typeof Float64Array===CS?Array:Float64Array,DS={float:kS,int:IS,ordinal:Array,number:Array,time:kS},AS=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=U()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=Zw[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[],xl(i),this._dimensions=y(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new DS[e||"float"](this._rawCount),this._rawExtent[r]=Fl(),r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=Fl());for(var s=r[t],l=o;a>l;l++){var u=n[l]=e.parseAndCollect(n[l]);s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1])}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),i>n&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;r>l;l++){var u=i[l];Hl(n,l,u.type,s,!0)}for(var c=[],h=a;s>h;h++)for(var p=h-a,f=0;r>f;f++){var u=i[f],d=Zw.arrayRows.call(this,t[p]||c,u.property,p,f);n[f][h]=d;var g=o[f];d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=y(o,function(t){return t.property}),u=0;a>u;u++){var c=o[u];s[u]||(s[u]=Fl()),Hl(r,u,c.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var h=[],p=t;e>p;p++){h=i.getItem(p,h);for(var f=0;a>f;f++){var d=r[f],g=this._dimValueGetter(h,l[f],p,f);d[p]=g;var v=s[f];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;for(var r=0,o=i.length;o>r;r++)n.push(this.get(i[r],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var i=0,r=this.count();r>i;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)});var n=e.sort(function(t,e){return t-e}),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||0>t)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;r>=i;){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,r=i[t],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();c>u;u++){var h=this.getRawIndex(u),p=e-r[h],f=Math.abs(p);n>=f&&((a>f||f===a&&p>=0&&0>s)&&(a=f,s=p,l=0),p===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;i>r;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else{var n=zl(this._rawCount);t=new n(this.count());for(var r=0;r<t.length;r++)t[r]=r}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=zl(n._rawCount),o=new r(i),a=[],s=t.length,l=0,u=t[0],c=n._chunks,h=0;i>h;h++){var p=void 0,f=n.getRawIndex(h);if(0===s)p=e(h);else if(1===s){var d=c[u][f];p=e(d,h)}else{for(var g=0;s>g;g++)a[g]=c[t[g]][f];a[g]=h,p=e.apply(null,a)}p&&(o[l++]=f)}return i>l&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=x(t),r=i.length;if(!r)return this;var o=e.count(),a=zl(e._rawCount),s=new a(o),l=0,u=i[0],c=t[u][0],h=t[u][1],p=e._chunks,f=!1;if(!e._indices){var d=0;if(1===r){for(var g=p[i[0]],y=0;n>y;y++){var v=g[y];(v>=c&&h>=v||isNaN(v))&&(s[l++]=d),d++}f=!0}else if(2===r){for(var g=p[i[0]],m=p[i[1]],_=t[i[1]][0],b=t[i[1]][1],y=0;n>y;y++){var v=g[y],w=m[y];(v>=c&&h>=v||isNaN(v))&&(w>=_&&b>=w||isNaN(w))&&(s[l++]=d),d++}f=!0}}if(!f)if(1===r)for(var y=0;o>y;y++){var S=e.getRawIndex(y),v=p[i[0]][S];(v>=c&&h>=v||isNaN(v))&&(s[l++]=S)}else for(var y=0;o>y;y++){for(var C=!0,S=e.getRawIndex(y),T=0;r>T;T++){var M=i[T],v=p[M][S];(v<t[M][0]||v>t[M][1])&&(C=!1)}C&&(s[l++]=e.getRawIndex(y))}return o>l&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=Fl();for(var c=0;a>c;c++){for(var h=t.getRawIndex(c),p=0;o>p;p++)s[p]=i[e[p]][h];s[o]=c;var f=n&&n.apply(null,s);if(null!=f){"object"!=typeof f&&(r[0]=f,f=r);for(var u=0;u<f.length;u++){var d=e[u],g=f[u],y=l[d],v=i[d];v&&(v[h]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,c=Math.floor(1/e),h=this.getRawIndex(0),p=new(zl(this._rawCount))(Math.ceil(l/c)+2);p[u++]=h;for(var f=1;l-1>f;f+=c){for(var d=Math.min(f+c,l-1),g=Math.min(f+2*c,l),y=(g+d)/2,v=0,m=d;g>m;m++){var _=this.getRawIndex(m),x=s[_];isNaN(x)||(v+=x)}v/=g-d;var b=f,w=Math.min(f+c,l),S=f-1,C=s[h];n=-1,r=b;for(var m=b;w>m;m++){var _=this.getRawIndex(m),x=s[_];isNaN(x)||(i=Math.abs((S-y)*(x-C)-(S-m)*(v-C)))>n&&(n=i,r=_)}p[u++]=r,h=r}return p[u++]=this.getRawIndex(l-1),o._count=u,o._indices=p,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=r._rawExtent[t]=Fl(),h=new(zl(this._rawCount))(Math.ceil(u/s)),p=0,f=0;u>f;f+=s){s>u-f&&(s=u-f,a.length=s);for(var d=0;s>d;d++){var g=this.getRawIndex(f+d);a[d]=l[g]}var y=n(a),v=this.getRawIndex(Math.min(f+i(a,y)||0,u-1));l[v]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),h[p++]=v}return r._count=p,r._indices=h,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();o>r;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];n>s;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Fl();if(!e)return n;var i,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();i=n;for(var o=i[0],a=i[1],s=0;r>s;s++){var l=this.getRawIndex(s),u=e[l];o>u&&(o=u),u>a&&(a=u)}return i=[o,a],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},t.prototype.clone=function(e,n){var i=new t,r=this._chunks,o=e&&v(e,function(t,e){return t[e]=!0,t},{});if(o)for(var a=0;a<r.length;a++)i._chunks[a]=o[a]?Vl(r[a]):r[a];else i._chunks=r;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=a(this._extent),t._rawExtent=a(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;n>i;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return kl(t[i],this._dimensions[i])}Zw={arrayRows:t,objectRows:function(t,e,n,i){return kl(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return kl(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),OS=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,++this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(Wl(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),s=A(a)?Lw:Dw,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},p=B(c.seriesLayoutBy,h.seriesLayoutBy)||null,f=B(c.sourceHeader,h.sourceHeader)||null,d=B(c.dimensions,h.dimensions);t=p!==h.seriesLayoutBy||!!f!=!!h.sourceHeader||d?[pl(a,{seriesLayoutBy:p,sourceHeader:f,dimensions:d},s)]:[]}else{var g=n;if(r){var y=this._applyTransform(i);t=y.sourceList,e=y.upstreamSignList}else{t=[pl(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(null!=i){1!==t.length&&jl("")}var r,o=[],a=[];return g(t,function(t){t.prepareSource();var e=t.getSource(i||0);null==i||e||jl(""),o.push(e),a.push(t._getVersionSign())}),n?r=El(n,o,{datasetIndex:e.componentIndex}):null!=i&&(r=[dl(o[0])]),{sourceList:r,upstreamSignList:a}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var i=this._storeList,r=i[0];r||(r=i[0]={});var o=r[n];if(!o){var a=this._getUpstreamSourceManagers()[0];Wl(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new AS,o.initData(new uS(e,t.length),t)),r[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Wl(t)){var e=ks(t);return e?[e.getSourceManager()]:[]}return y(Ds(t),function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(Wl(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}(),PS="line-height:1",LS=[0,10,20,30],RS=["","\n","\n\n","\n\n\n"],ES={section:{planLayout:function(t){var e=t.blocks.length,n=e>1||e>0&&!t.noHeader,i=0;g(t.blocks,function(t){Yl(t).planLayout(t);var e=t.__gapLevelBetweenSubBlocks;e>=i&&(i=e+(!n||e&&("section"!==t.type||t.noHeader)?0:1))}),t.__gapLevelBetweenSubBlocks=i},build:function(t,e,n,i){var r=e.noHeader,o=$l(e),a=ql(t,e,r?n:o.html,i);if(r)return a;var s=fs(e.header,"ordinal",t.useUTC),l=Ul(i,t.renderMode).nameStyle;return"richText"===t.renderMode?tu(t,s,l)+o.richText+a:Kl('<div style="'+l+";"+PS+';">'+ps(s)+"</div>"+a,n)}},nameValue:{planLayout:function(t){t.__gapLevelBetweenSubBlocks=0},build:function(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=e.value,c=t.useUTC;if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),p=o?"":fs(l,"ordinal",c),f=e.valueType,d=a?[]:S(u)?y(u,function(t,e){return fs(t,S(f)?f[e]:f,c)}):[fs(u,S(f)?f[0]:f,c)],g=!s||!o,v=!s&&o,m=Ul(i,r),_=m.nameStyle,x=m.valueStyle;return"richText"===r?(s?"":h)+(o?"":tu(t,p,_))+(a?"":eu(t,d,g,v,x)):Kl((s?"":h)+(o?"":Jl(p,!s,_))+(a?"":Ql(d,g,v,x)),n)}}}},NS=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Nn()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=gs({color:e,type:t,renderMode:n,markerId:i});return T(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};S(e)?g(e,function(t){return u(n,t)}):u(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}(),BS=oi(),zS=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return e(n,t),n.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Il({count:uu,reset:cu}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(BS(this).sourceManager=new OS(this)).prepareSource();var i=this.getInitialData(t,n);pu(i,this),this.dataTask.context.data=i,BS(this).dataBeforeProcessed=i,su(this),this._initSelectedMapFromData(i)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=bs(this),i=n?Ss(t):{},r=this.subType;ww.hasClass(r)&&(r+="Series"),s(t,e.getTheme().get(this.subType)),s(t,this.getDefaultOption()),Hn(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&ws(t,i,n)},n.prototype.mergeOption=function(t,e){t=s(this.option,t,!0),this.fillDataTextStyle(t.data);var n=bs(this);n&&ws(this.option,t,n);var i=BS(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);pu(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,BS(this).dataBeforeProcessed=r,su(this),this._initSelectedMapFromData(r)},n.prototype.fillDataTextStyle=function(t){if(t&&!A(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Hn(t[n],"label",e)},n.prototype.getInitialData=function(){},n.prototype.appendData=function(t){this.getRawData().appendData(t.data)},n.prototype.getData=function(t){var e=du(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return BS(this).data},n.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},n.prototype.setData=function(t){var e=du(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}BS(this).data=t},n.prototype.getEncode=function(){var t=this.get("encode",!0);return t?U(t):void 0},n.prototype.getSourceManager=function(){return BS(this).sourceManager},n.prototype.getSource=function(){return this.getSourceManager().getSource()},n.prototype.getRawData=function(){return BS(this).dataBeforeProcessed},n.prototype.getColorBy=function(){return this.get("colorBy")||"series"},n.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},n.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},n.prototype.formatTooltip=function(t,e){return ru({series:this,dataIndex:t,multipleSeries:e})},n.prototype.isAnimationEnabled=function(){if(gy.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=Hw.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},n.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},n.prototype.getProgressive=function(){return this.get("progressive")},n.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},n.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},n.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n)for(var i=this.getData(e),r=0;r<t.length;r++){var o=t[r],a=au(i,o);n[a]=!1,this._selectedDataIndicesMap[a]=-1}},n.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},n.prototype.getSelectedDataIndices=function(){for(var t=this._selectedDataIndicesMap,e=x(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];r>=0&&n.push(r)}return n},n.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return!!n&&(n[au(this.getData(e),t)]||!1)},n.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},n.prototype._innerSelect=function(t,e){var n,i,r=this.option.selectedMode,o=e.length;if(r&&o)if("multiple"===r)for(var a=this.option.selectedMap||(this.option.selectedMap={}),s=0;o>s;s++){var l=e[s],u=au(t,l);a[u]=!0,this._selectedDataIndicesMap[u]=t.getRawIndex(l)}else if("single"===r||!0===r){var c=e[o-1],u=au(t,c);this.option.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(i={},i[u]=t.getRawIndex(c),i)}},n.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)}),e.length>0&&this._innerSelect(t,e)}},n.registerClass=function(t){return ww.registerClass(t)},n.protoInitialize=function(){var t=n.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),n}(ww);f(zS,vS),f(zS,Hw),mi(zS,ww);var FS=function(){function t(){this.group=new gm,this.uid=Ea("viewComponent")}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.dispose=function(){},t.prototype.updateView=function(){},t.prototype.updateLayout=function(){},t.prototype.updateVisual=function(){},t.prototype.blurSeries=function(){},t}();yi(FS),bi(FS);var VS=oi(),HS=gu(),GS=function(){function t(){this.group=new gm,this.uid=Ea("viewChart"),this.renderTask=Il({plan:mu,reset:_u}),this.renderTask.context={view:this}}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.highlight=function(t,e,n,i){vu(t.getData(),i,"emphasis")},t.prototype.downplay=function(t,e,n,i){vu(t.getData(),i,"normal")},t.prototype.remove=function(){this.group.removeAll()},t.prototype.dispose=function(){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.markUpdateMethod=function(t,e){VS(t).updateMethod=e},t.protoInitialize=function(){t.prototype.type="chart"}(),t}();yi(GS),bi(GS);var WS,jS={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)}}},US="\0__throttleOriginMethod",XS="\0__throttleRate",YS="\0__throttleType",qS=oi(),ZS={itemStyle:wi(Wb,!0),lineStyle:wi(Vb,!0)},$S={lineStyle:"stroke",itemStyle:"fill"},KS={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=wu(t,i),a=o(r),s=r.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=Su(t,i),c=a[l],h=C(c)?c:null,p="auto"===a.fill||"auto"===a.stroke;if(!a[l]||h||p){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=f,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||"function"==typeof a.fill?f:a.fill,a.stroke="auto"===a.stroke||"function"==typeof a.stroke?f:a.stroke}return n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&h?(n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=u({},a);r[l]=h(i),e.setItemVisual(n,"style",r)}}):void 0}},JS=new Xb,QS={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=wu(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){JS.option=n[i];var a=r(JS);u(t.ensureUniqueItemVisual(e,"style"),a),JS.option.decal&&(t.setItemVisual(e,"decal",JS.option.decal),JS.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},tC={performRawSeries:!0,overallReset:function(t){var e=U();t.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),qS(t).scope=r}}),t.eachSeries(function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=qS(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Su(e,a);r.each(function(t){var e=r.getRawIndex(t);i[e]=t}),n.each(function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(u,o,c)}})}})}},eC=Math.PI,nC=function(){function t(t,e,n,i){this._stageTaskMap=U(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=r?n.step:null,a=i&&i.modDataCount;return{step:o,modBy:null!=a?Math.ceil(a/o):null,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),r=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=U();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;g(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{});H(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)},this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){function r(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}i=i||{};var o=!1,a=this;g(t,function(t){if(!i.visualType||i.visualType===t.visualType){var s=a._stageTaskMap.get(t.uid),l=s.seriesTaskMap,u=s.overallTask;if(u){var c,h=u.agentStubMap;h.each(function(t){r(i,t)&&(t.dirty(),c=!0)}),c&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,i.block);h.each(function(t){t.perform(p)}),u.perform(p)&&(o=!0)}else l&&l.each(function(s){r(i,s)&&s.dirty();var l=a.getPerformArgs(s,i.block);l.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(o=!0)})}}),this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.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)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){function r(e){var r=e.uid,l=s.set(r,a&&a.get(r)||Il({plan:Du,reset:Au,count:Pu}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,l)}var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=U(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(r):l?n.eachRawSeriesByType(l,r):u&&u(n,i).each(r)},t.prototype._createOverallStageTask=function(t,e,n,i){function r(t){var e=t.uid,n=l.set(e,s&&s.get(e)||(p=!0,Il({reset:Mu,onDirty:ku})));n.context={model:t,overallProgress:h},n.agent=a,n.__block=h,o._pipe(t,n)}var o=this,a=e.overallTask=e.overallTask||Il({reset:Tu});a.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=U(),u=t.seriesType,c=t.getTargetSeries,h=!0,p=!1;H(!t.createOnAllSeries,""),u?n.eachRawSeriesByType(u,r):c?c(n,i).each(r):(h=!1,g(n.getSeries(),r)),p&&a.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return C(t)&&(t={overallReset:t,seriesType:Lu(t)}),t.uid=Ea("stageHandler"),e&&(t.visualType=e),t},t}(),iC=Ou(0),rC={},oC={};Ru(rC,Ww),Ru(oC,Kw),rC.eachSeriesByType=rC.eachRawSeriesByType=function(t){WS=t},rC.eachComponent=function(t){"series"===t.mainType&&t.subType&&(WS=t.subType)};var aC=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],sC={color:aC,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],aC]},lC="#B9B8CE",uC="#100C2A",cC=function(){return{axisLine:{lineStyle:{color:lC}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},hC=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],pC={darkMode:!0,color:hC,backgroundColor:uC,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:lC}},textStyle:{color:lC},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:lC}},dataZoom:{borderColor:"#71708A",textStyle:{color:lC},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:lC}},timeline:{lineStyle:{color:lC},label:{color:lC},controlStyle:{color:lC,borderColor:lC}},calendar:{itemStyle:{color:uC},dayLabel:{color:lC},monthLabel:{color:lC},yearLabel:{color:lC}},timeAxis:cC(),logAxis:cC(),valueAxis:cC(),categoryAxis:cC(),line:{symbol:"circle"},graph:{color:hC},gauge:{title:{color:lC},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:lC},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};pC.categoryAxis.splitLine.show=!1;var fC=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(T(t)){var r=fi(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};g(t,function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){function n(t,e,n,i){return null==t[n]||e[i||n]===t[n]}var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return n(l,a,"mainType")&&n(l,a,"subType")&&n(l,a,"index","componentIndex")&&n(l,a,"name")&&n(l,a,"id")&&n(u,o,"name")&&n(u,o,"dataIndex")&&n(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o))},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),dC={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function n(e,n){var i=t.getRawValue(n),a=t.getDataParams(n);u&&e.setItemVisual(n,"symbol",r(i,a)),c&&e.setItemVisual(n,"symbolSize",o(i,a)),h&&e.setItemVisual(n,"symbolRotate",s(i,a)),p&&e.setItemVisual(n,"symbolOffset",l(i,a))}var i=t.getData();if(t.legendIcon&&i.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){var r=t.get("symbol"),o=t.get("symbolSize"),a=t.get("symbolKeepAspect"),s=t.get("symbolRotate"),l=t.get("symbolOffset"),u=C(r),c=C(o),h=C(s),p=C(l),f=u||c||h||p,d=!u&&r?r:t.defaultSymbol,g=c?null:o,y=h?null:s,v=p?null:l;if(i.setVisual({legendIcon:t.legendIcon||d,symbol:d,symbolSize:g,symbolKeepAspect:a,symbolRotate:y,symbolOffset:v}),!e.isSeriesFiltered(t))return{dataEach:f?n:null}}}},gC={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function n(t,e){var n=t.getItemModel(e),i=n.getShallow("symbol",!0),r=n.getShallow("symbolSize",!0),o=n.getShallow("symbolRotate",!0),a=n.getShallow("symbolOffset",!0),s=n.getShallow("symbolKeepAspect",!0);null!=i&&t.setItemVisual(e,"symbol",i),null!=r&&t.setItemVisual(e,"symbolSize",r),null!=o&&t.setItemVisual(e,"symbolRotate",o),null!=a&&t.setItemVisual(e,"symbolOffset",a),null!=s&&t.setItemVisual(e,"symbolKeepAspect",s)}if(t.hasSymbolVisual&&!e.isSeriesFiltered(t)){return{dataEach:t.getData().hasItemOption?n:null}}}},yC=Math.round(9*Math.random()),vC="function"==typeof Object.defineProperty,mC=function(){function t(){this._id="__ec_inner_"+yC++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return vC?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),_C=W_.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),xC=W_.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),bC=W_.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),p=Math.cos(u),f=.6*a,d=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*f,l+s+p*f,n,i-d,n,i),t.bezierCurveTo(n,i-d,n-c+h*f,l+s+p*f,n-c,l+s),t.closePath()}}),wC=W_.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),SC={line:sb,rect:J_,roundRect:J_,square:J_,circle:Bx,diamond:xC,pin:bC,arrow:wC,triangle:_C},CC={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},TC={};g(SC,function(t,e){TC[e]=new t});for(var MC,IC=W_.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=nn(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=TC[i];r||(i="rect",r=TC[i]),CC[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}}),kC=new P_(!0),DC=["shadowBlur","shadowOffsetX","shadowOffsetY"],AC=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],OC=1,PC=2,LC=3,RC=4,EC=new mC,NC=new fv(100),BC=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"],zC={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-anchor":"textAlign",visibility:"visibility",display:"display"},FC=x(zC),VC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},HC=x(VC),GC=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=Sc(t);if(!n)throw new Error("Illegal svg");this._defsUsePending=[];var i=new gm;this._root=i;var r=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),kc(n,i,null,!0,!1);for(var l=n.firstChild;l;)this._parseNode(l,i,r,null,!1,!1),l=l.nextSibling;Oc(this._defs,this._defsUsePending),this._defsUsePending=[];var u,c;if(o){var h=Pc(o);h.length>=4&&(u={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(u&&null!=a&&null!=s&&(c=Nc(u,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var p=i;i=new gm,i.add(p),p.scaleX=p.scaleY=c.scale,p.x=c.x,p.y=c.y}return e.ignoreRootClip||null==a||null==s||i.setClipPath(new J_({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:u,viewBoxTransform:c,named:r}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!r){var u=MC[s];if(u&&q(MC,s)){a=u.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(h),"g"===s&&(l=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});e.add(a)}}var p=WC[s];if(p&&q(WC,s)){var f=p.call(this,t),d=t.getAttribute("id");d&&(this._defs[d]=f)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new U_({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Mc(e,n),kc(t,n,this._defsUsePending,!1,!1),Dc(n,e);var i=n.style,r=i.fontSize;r&&9>r&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=function(){MC={g:function(t,e){var n=new gm;return Mc(e,n),kc(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new J_;return Mc(e,n),kc(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},circle:function(t,e){var n=new Bx;return Mc(e,n),kc(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new sb;return Mc(e,n),kc(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},ellipse:function(t,e){var n=new Fx;return Mc(e,n),kc(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=Ic(i));var r=new nb({shape:{points:n||[]},silent:!0});return Mc(e,r),kc(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=Ic(i));var r=new rb({shape:{points:n||[]},silent:!0});return Mc(e,r),kc(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new q_;return Mc(e,n),kc(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new gm;return Mc(e,a),kc(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new gm;return Mc(e,a),kc(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=t.getAttribute("d")||"",i=Ro(n);return Mc(e,i),kc(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),t}(),WC={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),o=new gb(e,n,i,r);return Cc(t,o),Tc(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),r=new yb(e,n,i);return Cc(t,r),Tc(t,r),r}},jC=/^url\(\s*#(.*?)\)/,UC=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,XC=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,YC=Math.PI/180,qC=/([^\s:;]+)\s*:\s*([^:;]+)/g,ZC=1e-8,$C=[],KC=function(){function t(t){this.name=t}return t.prototype.getCenter=function(){},t}(),JC=function(t){function n(e,n,i){var r=t.call(this,e)||this;if(r.type="geoJSON",r.geometries=n,i)i=[i[0],i[1]];else{var o=r.getBoundingRect();i=[o.x+o.width/2,o.y+o.height/2]}return r._center=i,r}return e(n,t),n.prototype.getBoundingRect=function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,n=[e,e],i=[-e,-e],r=[],o=[],a=this.geometries,s=0;s<a.length;s++)if("polygon"===a[s].type){var l=a[s].exterior;tr(l,r,o),gt(n,n,r),yt(i,i,o)}return 0===s&&(n[0]=n[1]=i[0]=i[1]=0),this._rect=new om(n[0],n[1],i[0]-n[0],i[1]-n[1])},n.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;r>i;i++)if("polygon"===n[i].type){var o=n[i].exterior,a=n[i].interiors;if(Fc(o,t[0],t[1])){for(var s=0;s<(a?a.length:0);s++)if(Fc(a[s],t[0],t[1]))continue t;return!0}}return!1},n.prototype.transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new om(t,e,n,i),s=r.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++)if("polygon"===l[u].type){for(var c=l[u].exterior,h=l[u].interiors,p=0;p<c.length;p++)dt(c[p],c[p],s);for(var f=0;f<(h?h.length:0);f++)for(var p=0;p<h[f].length;p++)dt(h[f][p],h[f][p],s)}r=this._rect,r.copy(a),this._center=[r.x+r.width/2,r.y+r.height/2]},n.prototype.cloneShallow=function(t){null==t&&(t=this.name);var e=new n(t,this.geometries,this._center);return e._rect=this._rect,e.transformTo=null,e},n.prototype.getCenter=function(){return this._center},n.prototype.setCenter=function(t){this._center=t},n}(KC),QC=function(t){function n(e,n){var i=t.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return e(n,t),n.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this._calculateCenter()),t},n.prototype._calculateCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],i=Fe($C),r=t;r&&!r.isGeoSVGGraphicRoot;)He(i,r.getLocalTransform(),i),r=r.parent;return Ue(i,i),dt(n,n,i),n},n}(KC),tT=U(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),eT=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=U(),this._freedGraphics=[],this._mapName=t,this._parsedXML=Sc(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=Hc(t.named),n=e.regions,i=e.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n;try{e=t&&Bc(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,H(null!=n)}catch(t){throw new Error("Invalid svg format\n"+t.message)}var i=new gm;i.add(n),i.isGeoSVGGraphicRoot=!0;var r=e.width,o=e.height,a=e.viewBoxRect,s=this._boundingRect;if(!s){var l=void 0,u=void 0,c=void 0,h=void 0;if(null!=r?(l=0,c=r):a&&(l=a.x,c=a.width),null!=o?(u=0,h=o):a&&(u=a.y,h=a.height),null==l||null==u){var p=n.getBoundingRect();null==l&&(l=p.x,c=p.width),null==u&&(u=p.y,h=p.height)}s=this._boundingRect=new om(l,u,c,h)}if(a){var f=Nc(a,s);n.scaleX=n.scaleY=f.scale,n.x=f.x,n.y=f.y}i.setClipPath(new J_({shape:s.plain()}));var d=[];return g(e.named,function(t){null!=tT.get(t.svgNodeTagLower)&&(d.push(t),Vc(t.el))}),{root:i,boundingRect:s,named:d}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}(),nT=[126,25],iT="南海诸岛",rT=[[[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]]],oT=0;oT<rT.length;oT++)for(var aT=0;aT<rT[oT].length;aT++)rT[oT][aT][0]/=10.5,rT[oT][aT][1]/=-14,rT[oT][aT][0]+=nT[0],rT[oT][aT][1]+=nT[1];var sT={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]},lT={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]},uT=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]],cT=function(){function t(t,e,n){this.type="geoJSON",this._parsedMap=U(),this._mapName=t,this._specialAreas=n,this._geoJSON=$c(e)}return t.prototype.load=function(t,e){e=e||"name";var n=this._parsedMap.get(e);if(!n){var i=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:i,boundingRect:Zc(i)})}var r=U(),o=[];return g(n.regions,function(e){var n=e.name;t&&t.hasOwnProperty(n)&&(e=e.cloneShallow(n=t[n])),o.push(e),r.set(n,e)}),{regions:o,boundingRect:n.boundingRect||new om(0,0,0,0),regionsMap:r}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,i=this._geoJSON;try{e=i?jc(i,t):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return Uc(n,e),g(e,function(t){var e=t.name;Xc(n,t),Yc(n,t),qc(n,t);var i=this._specialAreas&&this._specialAreas[e];i&&t.transformTo(i.left,i.top,i.width,i.height)},this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}(),hT=U(),pT={registerMap:function(t,e,n){if(e.svg){var i=new eT(t,e.svg);hT.set(t,i)}else{var r=e.geoJson||e.geoJSON;r&&!e.features?n=e.specialAreas:r=e;var i=new cT(t,r,n);hT.set(t,i)}},getGeoResource:function(t){return hT.get(t)},getMapForUser:function(t){var e=hT.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},load:function(t,e,n){var i=hT.get(t);if(i)return i.load(e,n)}},fT=new Vy,dT="undefined"!=typeof window,gT={zrender:"5.2.0"},yT=2e3,vT=1e3,mT=3e3,_T={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:vT,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:mT,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},xT="__flagInMainProcess",bT="__pendingUpdate",wT="__needsUpdateStatus",ST=/^[a-zA-Z0-9_]+$/,CT="__connectUpdateStatus",TT=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(Vy),MT=TT.prototype;MT.on=Jc("on"),MT.off=Jc("off");var IT,kT,DT,AT,OT,PT,LT,RT,ET,NT,BT,zT,FT,VT,HT,GT,WT,jT,UT,XT=function(t){function n(e,n,i){function r(t,e){return t.__prio-e.__prio}var o=t.call(this,new fC)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],i=i||{},"string"==typeof n&&(n=tM[n]),o._dom=e;var s=o._zr=hn(e,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,useDirtyRect:null!=i.useDirtyRect&&i.useDirtyRect});o._throttledZrFlush=xu(Dy(s.flush,s),17),n=a(n),n&&ll(n,!0),o._theme=n,o._locale=za(i.locale||ew),o._coordSysMgr=new Qw;var l=o._api=GT(o);return jt(QT,r),jt(KT,r),o._scheduler=new nC(o,l,KT,QT),o._messageCenter=new TT,o._initEvents(),o.resize=Dy(o.resize,o),s.animation.on("frame",o._onframe,o),NT(s,o),BT(s,o),W(o),o}return e(n,t),n.prototype._onframe=function(){if(!this._disposed){UT(this);var t=this._scheduler;if(this[bT]){var e=this[bT].silent;this[xT]=!0,IT(this),AT.update.call(this,null,this[bT].updateParams),this._zr.flush(),this[xT]=!1,this[bT]=null,RT.call(this,e),ET.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),PT(this,i),t.performVisualTasks(i),HT(this,this._model,r,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},n.prototype.getDom=function(){return this._dom},n.prototype.getId=function(){return this.id},n.prototype.getZr=function(){return this._zr},n.prototype.setOption=function(t,e,n){if(!this._disposed){var i,r,o;if(k(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[xT]=!0,!this._model||e){var a=new eS(this._api),s=this._theme,l=this._model=new Ww;l.scheduler=this._scheduler,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},JT);var u={seriesTransition:o,optionChanged:!0};n?(this[bT]={silent:i,updateParams:u},this[xT]=!1,this.getZr().wakeUp()):(IT(this),AT.update.call(this,null,u),this._zr.flush(),this[bT]=null,this[xT]=!1,RT.call(this,i),ET.call(this,i))}},n.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},n.prototype.getModel=function(){return this._model},n.prototype.getOption=function(){return this._model&&this._model.getOption()},n.prototype.getWidth=function(){return this._zr.getWidth()},n.prototype.getHeight=function(){return this._zr.getHeight()},n.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||dT&&window.devicePixelRatio||1},n.prototype.getRenderedCanvas=function(t){return gy.canvasSupported?(t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})):void 0},n.prototype.getSvgDataURL=function(){if(gy.svgSupported){var t=this._zr;return g(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},n.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;g(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.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 g(i,function(t){t.group.ignore=!1}),o}},n.prototype.getConnectedDataURL=function(t){if(!this._disposed&&gy.canvasSupported){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(iM[n]){var s=o,l=o,u=-o,c=-o,h=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();g(nM,function(o){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.getRenderedCanvas(a(t)),f=o.getDom().getBoundingClientRect();s=i(f.left,s),l=i(f.top,l),u=r(f.right,u),c=r(f.bottom,c),h.push({dom:p,left:f.left,top:f.top})}}),s*=p,l*=p,u*=p,c*=p;var f=u-s,d=c-l,y=ky(),v=hn(y,{renderer:e?"svg":"canvas"});if(v.resize({width:f,height:d}),e){var m="";return g(h,function(t){var e=t.left-s,n=t.top-l;m+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),v.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new J_({shape:{x:0,y:0,width:f,height:d},style:{fill:t.connectedBackgroundColor}})),g(h,function(t){var e=new q_({style:{x:t.left*p-s,y:t.top*p-l,image:t.dom}});v.add(e)}),v.refreshImmediately(),y.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},n.prototype.convertToPixel=function(t,e){return OT(this,"convertToPixel",t,e)},n.prototype.convertFromPixel=function(t,e){return OT(this,"convertFromPixel",t,e)},n.prototype.containPixel=function(t,e){if(!this._disposed){var n;return g(ai(this._model,t),function(t,i){i.indexOf("Models")>=0&&g(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n}},n.prototype.getVisual=function(t,e){var n=this._model,i=ai(n,t,{defaultMainType:"series"}),r=i.seriesModel,o=r.getData(),a=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return null!=a?Eu(o,a,e):Nu(o,e)},n.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},n.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},n.prototype._initEvents=function(){var t=this;g(qT,function(e){var n=function(n){var i,r=t.getModel(),o=n.target;if("globalout"===e?i={}:o&&Fu(o,function(t){var e=rx(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}return e.eventData?(i=u({},e.eventData),!0):void 0},!0),i){var a=i.componentType,s=i.componentIndex;("markLine"===a||"markPoint"===a||"markArea"===a)&&(a="series",s=i.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),c=l&&t["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:l,view:c},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)}),g($T,function(e,n){t._messageCenter.on(n,function(t){this.trigger(n,t)},t)}),g(["selectchanged"],function(e){t._messageCenter.on(e,function(t){this.trigger(e,t)},t)}),zu(this._messageCenter,this,this._api)},n.prototype.isDisposed=function(){return this._disposed},n.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},n.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,ui(this.getDom(),aM,"");var t=this,e=t._api,n=t._model;g(t._componentsViews,function(t){t.dispose(n,e)}),g(t._chartsViews,function(t){t.dispose(n,e)}),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete nM[t.id]}},n.prototype.resize=function(t){if(!this._disposed){this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[bT]&&(null==i&&(i=this[bT].silent),n=!0,this[bT]=null),this[xT]=!0,n&&IT(this),AT.update.call(this,{type:"resize",animation:u({duration:0},t&&t.animation)}),this[xT]=!1,RT.call(this,i),ET.call(this,i)}}},n.prototype.showLoading=function(t,e){if(!this._disposed&&(k(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),eM[t])){var n=eM[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},n.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},n.prototype.makeActionFromEvent=function(t){var e=u({},t);return e.type=$T[t.type],e},n.prototype.dispatchAction=function(t,e){if(!this._disposed&&(k(e)||(e={silent:!!e}),ZT[t.type]&&this._model)){if(this[xT])return void this._pendingActions.push(t);var n=e.silent;LT.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&gy.browser.weChat&&this._throttledZrFlush(),RT.call(this,n),ET.call(this,n)}},n.prototype.updateLabelLayout=function(){fT.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},n.prototype.appendData=function(t){if(!this._disposed){var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},n.internalField=function(){function t(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===hx&&t.states.emphasis?e.push("emphasis"):t.hoverState===cx&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){var n=t._zr,i=n.storage,r=0;i.traverse(function(t){t.isGroup||r++}),r>e.get("hoverLayerThreshold")&&!gy.node&&!gy.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.group.traverse(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}function i(t,e){var n=t.get("blendMode")||null;e.group.traverse(function(t){t.isGroup||(t.style.blend=n),t.eachPendingDisplayable&&t.eachPendingDisplayable(function(t){t.style.blend=n})})}function r(t,e){t.preventAutoZ||o(e.group,t.get("z")||0,t.get("zlevel")||0,-1/0)}function o(t,e,n,i){var r=t.getTextContent(),a=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=Math.max(o(s[l],e,n,i),i);else t.z=e,t.zlevel=n,i=Math.max(t.z2,i);if(r&&(r.z=e,r.zlevel=n,isFinite(i)&&(r.z2=i+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=n,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function a(t,e){e.group.traverse(function(t){if(!Zo(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function s(e,n){var i=e.getModel("stateAnimation"),r=e.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.group.traverse(function(e){if(e.states&&e.states.emphasis){if(Zo(e))return;if(e instanceof W_&&To(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(r){e.stateTransition=a;var i=e.getTextContent(),o=e.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&t(e)}})}IT=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),kT(t,!0),kT(t,!1),e.plan()},kT=function(t,e){function n(t){var n=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!n&&a[u];if(!c){var h=fi(t.type);c=new(e?FS.getClass(h.main,h.sub):GS.getClass(h.sub)),c.init(i,l),a[u]=c,o.push(c),s.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(c,t,i,l)}for(var i=t._model,r=t._scheduler,o=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;u<o.length;u++)o[u].__alive=!1;e?i.eachComponent(function(t,e){"series"!==t&&n(e)}):i.eachSeries(n);for(var u=0;u<o.length;){var c=o[u];c.__alive?u++:(!e&&c.renderTask.dispose(),s.remove(c.group),c.dispose(i,l),o.splice(u,1),a[c.__id]===c&&delete a[c.__id],c.__id=c.group.__ecComponentInfo=null)}},DT=function(t,e,n,i,r){function o(i){i&&i.__alive&&i[e]&&i[e](i.__model,a,t._api,n)}var a=t._model;if(a.setUpdatePayload(n),!i)return void g([].concat(t._componentsViews).concat(t._chartsViews),o);var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r);var u,c=n.excludeSeriesId;null!=c&&(u=U(),g(Vn(c),function(t){var e=Qn(t,null);null!=e&&u.set(e,!0)})),Co(n)&&ao(t._api),a&&a.eachComponent(l,function(e){if(!u||null===u.get(e.id))if(Co(n))if(e instanceof zS)n.type!==yx||n.notBlur||uo(e,n,t._api);else{var i=co(e.mainType,e.componentIndex,n.name,t._api),r=i.focusSelf,o=i.dispatchers;n.type===yx&&r&&!n.notBlur&&lo(e.mainType,e.componentIndex,t._api),o&&g(o,function(t){n.type===yx?Qr(t):to(t)})}else So(n)&&e instanceof zS&&(fo(e,n,t._api),go(e),jT(t))},t),a&&a.eachComponent(l,function(e){u&&null!==u.get(e.id)||o(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)},AT={prepareAndUpdate:function(t){IT(this),AT.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(t,e){var n=this._model,i=this._api,r=this._zr,o=this._coordSysMgr,a=this._scheduler;if(n){n.setUpdatePayload(t),a.restoreData(n,t),a.performSeriesTasks(n),o.create(n,i),a.performDataProcessorTasks(n,t),PT(this,n),o.update(n,i),zT(n),a.performVisualTasks(n,t),FT(this,n,i,t,e);var s=n.get("backgroundColor")||"transparent",l=n.get("darkMode");if(gy.canvasSupported)r.setBackgroundColor(s),null!=l&&"auto"!==l&&r.setDarkMode(l);else{var u=ie(s);s=pe(u,"rgb"),0===u[3]&&(s="transparent")}fT.trigger("afterupdate",n,i)}},updateTransform:function(t){var e=this,n=this._model,i=this._api;if(n){n.setUpdatePayload(t);var r=[];n.eachComponent(function(o,a){if("series"!==o){var s=e.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,n,i,t);l&&l.update&&r.push(s)}else r.push(s)}});var o=U();n.eachSeries(function(r){var a=e._chartsMap[r.__viewId];if(a.updateTransform){var s=a.updateTransform(r,n,i,t);s&&s.update&&o.set(r.uid,1)}else o.set(r.uid,1)}),zT(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0,dirtyMap:o}),HT(this,n,i,t,{},o),fT.trigger("afterupdate",n,i)}},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),GS.markUpdateMethod(t,"updateView"),zT(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),FT(this,e,this._api,t,{}),fT.trigger("afterupdate",e,this._api))},updateVisual:function(t){var e=this,n=this._model;n&&(n.setUpdatePayload(t),n.eachSeries(function(t){t.getData().clearAllVisual()}),GS.markUpdateMethod(t,"updateVisual"),zT(n),this._scheduler.performVisualTasks(n,t,{visualType:"visual",setDirty:!0}),n.eachComponent(function(i,r){if("series"!==i){var o=e.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,n,e._api,t)}}),n.eachSeries(function(i){e._chartsMap[i.__viewId].updateVisual(i,n,e._api,t)}),fT.trigger("afterupdate",n,this._api))},updateLayout:function(t){AT.update.call(this,t)}},OT=function(t,e,n,i){if(!t._disposed)for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=ai(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(r=u[e](o,s,i)))return r}},PT=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},LT=function(t,e){var n=this,i=this.getModel(),r=t.type,o=t.escapeConnect,a=ZT[r],s=a.actionInfo,l=(s.update||"update").split(":"),h=l.pop(),p=null!=l[0]&&fi(l[0]);this[xT]=!0;var f=[t],d=!1;t.batch&&(d=!0,f=y(t.batch,function(e){return e=c(u({},e),t),e.batch=null,e}));var v,m=[],_=So(t),x=Co(t);if(g(f,function(e){if(v=a.action(e,n._model,n._api),v=v||u({},e),v.type=s.event||v.type,m.push(v),x){var i=si(t),r=i.queryOptionMap,o=i.mainTypeSpecified,l=o?r.keys()[0]:"series";DT(n,h,e,l),jT(n)}else _?(DT(n,h,e,"series"),jT(n)):p&&DT(n,h,e,p.main,p.sub)}),"none"===h||x||_||p||(this[bT]?(IT(this),AT.update.call(this,t),this[bT]=null):AT[h].call(this,t)),v=d?{type:s.event||r,escapeConnect:o,batch:m}:m[0],this[xT]=!1,!e){var b=this._messageCenter;if(b.trigger(v.type,v),_){var w={type:"selectchanged",escapeConnect:o,selected:yo(i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};b.trigger(w.type,w)}}},RT=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();LT.call(this,n,t)}},ET=function(t){!t&&this.trigger("updated")},NT=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[bT]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},BT=function(t,e){t.on("mouseover",function(t){var n=t.target,i=Fu(n,bo);i&&(ho(i,t,e._api),jT(e))}).on("mouseout",function(t){var n=t.target,i=Fu(n,bo);i&&(po(i,t,e._api),jT(e))}).on("click",function(t){var n=t.target,i=Fu(n,function(t){return null!=rx(t).dataIndex},!0);if(i){var r=i.selected?"unselect":"select",o=rx(i);e._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}})},zT=function(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})},FT=function(t,e,n,i,r){VT(t,e,n,i,r),g(t._chartsViews,function(t){t.__alive=!1}),HT(t,e,n,i,r),g(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},VT=function(t,e,n,i,o,l){g(l||t._componentsViews,function(t){var o=t.__model;a(o,t),t.render(o,e,n,i),r(o,t),s(o,t)})},HT=function(t,e,o,l,c,h){var p=t._scheduler;c=u(c||{},{updatedSeries:e.getSeries()}),fT.trigger("series:beforeupdate",e,o,c);var f=!1;e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;p.updatePayload(r,l),a(e,n),h&&h.get(e.uid)&&r.dirty(),r.perform(p.getPerformArgs(r))&&(f=!0),n.group.silent=!!e.get("silent"),i(e,n),go(e)}),p.unfinished=f||p.unfinished,fT.trigger("series:layoutlabels",e,o,c),fT.trigger("series:transition",e,o,c),e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];r(e,n),s(e,n)}),n(t,e),fT.trigger("series:afterupdate",e,o,c)},jT=function(t){t[wT]=!0,t.getZr().wakeUp()},UT=function(e){e[wT]&&(e.getZr().storage.traverse(function(e){Zo(e)||t(e)}),e[wT]=!1)},GT=function(t){return new(function(n){function i(){return null!==n&&n.apply(this,arguments)||this}return e(i,n),i.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},i.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},i.prototype.enterEmphasis=function(e,n){Qr(e,n),jT(t)},i.prototype.leaveEmphasis=function(e,n){to(e,n),jT(t)},i.prototype.enterBlur=function(e){eo(e),jT(t)},i.prototype.leaveBlur=function(e){no(e),jT(t)},i.prototype.enterSelect=function(e){io(e),jT(t)},i.prototype.leaveSelect=function(e){ro(e),jT(t)},i.prototype.getModel=function(){return t.getModel()},i.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},i.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},i}(Kw))(t)},WT=function(t){function e(t,e){for(var n=0;n<t.length;n++){t[n][CT]=e}}g($T,function(n,i){t._messageCenter.on(i,function(n){if(iM[t.group]&&0!==t[CT]){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),r=[];g(nM,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),g(r,function(t){1!==t[CT]&&t.dispatchAction(i)}),e(r,2)}})})}}(),n}(Vy),YT=XT.prototype;YT.on=Kc("on"),YT.off=Kc("off"),YT.one=function(t,e,n){function i(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];e&&e.apply&&e.apply(this,n),r.off(t,i)}var r=this;this.on.call(this,t,i,n)};var qT=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],ZT={},$T={},KT=[],JT=[],QT=[],tM={},eM={},nM={},iM={},rM=+new Date-0,oM=+new Date-0,aM="_echarts_instance_",sM=nh,lM=[],uM=Rl;yh(2e3,KS),yh(4500,QS),yh(4500,tC),yh(2e3,dC),yh(4500,gC),yh(7e3,wc),sh(ll),lh(900,ul),mh("default",Cu),ph({type:yx,event:yx,update:yx},Z),ph({type:vx,event:vx,update:vx},Z),ph({type:mx,event:mx,update:mx},Z),ph({type:_x,event:_x,update:_x},Z),ph({type:xx,event:xx,update:xx},Z),ah("light",sC),ah("dark",pC);var cM,hM,pM,fM,dM,gM,yM,vM={},mM=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||Sh,this._newKeyGetter=i||Sh,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=i[o],s=n[a],l=wh(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],c=wh(l),h=wh(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),i[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var p=0;c>p;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=wh(r);if(o>1)for(var a=0;o>a;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[i](t[o],o);if(r||(n[o]=a),e){var s=e[a],l=wh(s);0===l?(e[a]=o,r&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),_M=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}(),xM=function(){function t(t){this.otherDims={},null!=t&&u(this,t)}return t}(),bM=oi(),wM={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},SM=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Ah(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return B(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;return e?e[t]:void 0},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=xl(this.source),n=!Oh(t),i="",r=[],o=0,a=0;t>o;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=e?h.name:null,l=h.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=wM[l]||"f",u&&(i+=u.uid),i+="$"}var p=this.source;return{dimensions:r,hash:[p.seriesLayoutBy,p.startIndex,i].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}(),CM=k,TM=y,MM="undefined"==typeof Int32Array?Array:Int32Array,IM=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],kM=["_approximateExtent"],DM=function(){function t(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;kh(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=T(c)?new xM({name:c}):c instanceof xM?c:new xM(c),p=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=p,h.coordDimIndex=0);var f=h.otherDims=h.otherDims||{};o.push(p),r[p]=h,null!=l[p]&&(s=!0),h.createInvertedIndices&&(a[p]=[]),0===f.itemName&&(this._nameDimIdx=u),0===f.itemId&&(this._idDimIdx=u),i&&(h.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var d=this._dimIdxToName=U();g(o,function(t){d.set(r[t].storeDimIndex,t)})}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var i=this._schema.getSourceDimension(e);return i?i.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){return"number"==typeof t||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0)?+t:void 0},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var i,r=this;if(t instanceof AS&&(i=t),!i){var o=this.dimensions,a=hl(t)||d(t)?new uS(t,o.length):t;i=new AS;var s=TM(o,function(t){return{type:r._dimInfos[t].type,property:t}});i.initData(a,s,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=Ch(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;r>a;a++){var s=a-i;this._nameList[a]=e[s],o&&yM(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Lw&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList;if(i.getSource().sourceFormat===Dw&&!i.pure)for(var a=[],s=t;e>s;s++){var l=i.getItem(s,a);if(!this.hasItemOption&&Wn(l)&&(this.hasItemOption=!0),l){var u=l.name;null==r[s]&&null!=u&&(r[s]=Qn(u,null));var c=l.id;null==o[s]&&null!=c&&(o[s]=Qn(c,null))}}if(this._shouldMakeIdFromName())for(var s=t;e>s;s++)yM(this,s);cM(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){CM(t)?u(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=pM(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return hM(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];return i?n.get(i.storeDimIndex,e):void 0},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];return i?n.getByRawIndex(i.storeDimIndex,e):void 0},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return S(t)?i.getValues(TM(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;i>n;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();n>e;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n[e];return null==i||isNaN(i)?-1:i},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){"function"==typeof t&&(n=e,e=t,t=[]);var i=n||this,r=TM(fM(t),this._getStoreDimIndex,this);this._store.each(r,i?Dy(e,i):e)},t.prototype.filterSelf=function(t,e,n){"function"==typeof t&&(n=e,e=t,t=[]);var i=n||this,r=TM(fM(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?Dy(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=[];return g(x(t),function(r){var o=e._getStoreDimIndex(r);n[o]=t[r],i.push(o)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){"function"==typeof t&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=TM(fM(t),this._getStoreDimIndex,this),a=gM(this);return a._store=this._store.map(o,r?Dy(e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=n||i||this,o=TM(fM(t),this._getStoreDimIndex,this);this._store.modify(o,r?Dy(e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=gM(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.lttbDownSample=function(t,e){var n=gM(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Xb(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new mM(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return hM(t,e)},function(t){return hM(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},CM(t)?u(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(r=this.getVisual(e),S(r)?r=r.slice():CM(r)&&(r=u({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,CM(e)?u(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){if(CM(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?u(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;ox(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){g(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:TM(this.dimensions,this._getDimInfo,this),this.hostModel)),dM(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];"function"==typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(F(arguments)))})},t.internalField=function(){cM=function(t){var e=t._invertedIndicesMap;g(e,function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new MM(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(var s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}})},pM=function(t,e,n){return Qn(t._getCategory(e,n),null)},hM=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=pM(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},fM=function(t){return S(t)||(t=null!=t?[t]:[]),t},gM=function(e){var n=new t(e._schema?e._schema:TM(e.dimensions,e._getDimInfo,e),e.hostModel);return dM(n,e),n},dM=function(t,e){g(IM.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,g(kM,function(n){t[n]=a(e[n])}),t._calculationInfo=u({},e._calculationInfo)},yM=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=r&&(n[e]=a=pM(t,r,e)),null==s&&null!=o&&(i[e]=s=pM(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[e]=s}}}(),t}(),AM=function(){function t(t){this.coordSysDims=[],this.axisMap=U(),this.categoryAxisMap=U(),this.coordSysName=t}return t}(),OM={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",km).models[0],o=t.getReferringComponents("yAxis",km).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),zh(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),zh(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",km).models[0];e.coordSysDims=["single"],n.set("single",r),zh(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",km).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),zh(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),zh(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();g(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),zh(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})}},PM=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();bi(PM);var LM=0,RM=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++LM}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&y(i,qh);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if("string"!=typeof t&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=U(this.categories))},t}(),EM=_n,NM=function(t){function n(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new RM({})),S(i)&&(i=new RM({categories:y(i,function(t){return k(t)?t.value:t})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return e(n,t),n.prototype.parse=function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},n.prototype.contain=function(t){return t=this.parse(t),Qh(t,this._extent)&&null!=this._ordinalMeta.categories[t]},n.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),tp(t,this._extent)},n.prototype.scale=function(t){return t=Math.round(ep(t,this._extent)),this.getRawOrdinalNumber(t)},n.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},n.prototype.getMinorTicks=function(){},n.prototype.setSortInfo=function(t){if(null==t)return void(this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null);for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);a>r;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;o>r;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}},n.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},n.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},n.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},n.prototype.count=function(){return this._extent[1]-this._extent[0]+1},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},n.prototype.getOrdinalMeta=function(){return this._ordinalMeta},n.prototype.niceTicks=function(){},n.prototype.niceExtent=function(){},n.type="ordinal",n}(PM);PM.registerClass(NM);var BM=_n,zM=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return e(n,t),n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return Qh(t,this._extent)},n.prototype.normalize=function(t){return tp(t,this._extent)},n.prototype.scale=function(t){return ep(t,this._extent)},n.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},n.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},n.prototype.getInterval=function(){return this._interval},n.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=$h(t)},n.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]<i[0]&&o.push(t?{value:BM(i[0]-e,r)}:{value:n[0]});for(var a=i[0];a<=i[1]&&(o.push({value:a}),(a=BM(a+e,r))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&o.push(t?{value:BM(s+e,r)}:{value:n[1]}),o},n.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,l=[],u=o.value-a.value,c=u/t;t-1>s;){var h=BM(a.value+(s+1)*c);h>i[0]&&h<i[1]&&l.push(h),s++}n.push(l)}return n},n.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=bn(t.value)||0:"auto"===n&&(n=this._intervalPrecision),cs(BM(t.value,n,!0))},n.prototype.niceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){0>r&&(r=-r,i.reverse());var o=Zh(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},n.prototype.niceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax?e[0]-=n/2:(e[1]+=n/2,e[0]-=n/2)}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=BM(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=BM(Math.ceil(e[1]/r)*r))},n.type="interval",n}(PM);PM.registerClass(zM);var FM="__ec_stack_",VM=("undefined"!=typeof Float32Array?Float32Array:Array,gu(),function(t,e,n,i){for(;i>n;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n}),HM=function(t){function n(e){var n=t.call(this,e)||this;return n.type="time",n}return e(n,t),n.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Ua(t.value,uw[ja(Ga(this._minLevelUnit))]||uw.second,e,this.getSetting("locale"))},n.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC");return Xa(t,e,n,this.getSetting("locale"),i)},n.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=mp(this._minLevelUnit,this._approxInterval,i,e);return n=n.concat(r),n.push({value:e[1],level:0}),n},n.prototype.niceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=ow,e[1]+=ow),e[1]===-1/0&&1/0===e[0]){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-ow}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval)},n.prototype.niceTicks=function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=GM.length,a=Math.min(VM(GM,this._approxInterval,0,o),o-1);this._interval=GM[a][1],this._minLevelUnit=GM[Math.max(a-1,0)][0]},n.prototype.parse=function(t){return"number"==typeof t?t:+kn(t)},n.prototype.contain=function(t){return Qh(this.parse(t),this._extent)},n.prototype.normalize=function(t){return tp(this.parse(t),this._extent)},n.prototype.scale=function(t){return ep(t,this._extent)},n.type="time",n}(zM),GM=[["second",nw],["minute",iw],["hour",rw],["quarter-day",6*rw],["half-day",12*rw],["day",1.2*ow],["half-week",3.5*ow],["week",7*ow],["month",31*ow],["quarter",95*ow],["half-year",aw/2],["year",aw]];PM.registerClass(HM);var WM=PM.prototype,jM=zM.prototype,UM=_n,XM=Math.floor,YM=Math.ceil,qM=Math.pow,ZM=Math.log,$M=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new zM,e._interval=0,e}return e(n,t),n.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return y(jM.getTicks.call(this,t),function(t){var e=t.value,r=_n(qM(this.base,e));return r=e===n[0]&&this._fixMin?_p(r,i[0]):r,r=e===n[1]&&this._fixMax?_p(r,i[1]):r,{value:r}},this)},n.prototype.setExtent=function(t,e){var n=this.base;t=ZM(t)/ZM(n),e=ZM(e)/ZM(n),jM.setExtent.call(this,t,e)},n.prototype.getExtent=function(){var t=this.base,e=WM.getExtent.call(this);e[0]=qM(t,e[0]),e[1]=qM(t,e[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(e[0]=_p(e[0],i[0])),this._fixMax&&(e[1]=_p(e[1],i[1])),e},n.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=ZM(t[0])/ZM(e),t[1]=ZM(t[1])/ZM(e),WM.unionExtent.call(this,t)},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.niceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(1/0===n||0>=n)){var i=Dn(n),r=t/n*i;for(.5>=r&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[_n(YM(e[0]/i)*i),_n(XM(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},n.prototype.niceExtent=function(t){jM.niceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return t=ZM(t)/ZM(this.base),Qh(t,this._extent)},n.prototype.normalize=function(t){return t=ZM(t)/ZM(this.base),tp(t,this._extent)},n.prototype.scale=function(t){return t=ep(t,this._extent),qM(this.base,t)},n.type="log",n}(PM),KM=$M.prototype;KM.getMinorTicks=jM.getMinorTicks,KM.getLabel=jM.getLabel,PM.registerClass($M);var JM=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type;this._needCrossZero=e.getNeedCrossZero&&e.getNeedCrossZero();var r=this._modelMinRaw=e.get("min",!0);C(r)?this._modelMinNum=bp(t,r({min:n[0],max:n[1]})):"dataMin"!==r&&(this._modelMinNum=bp(t,r));var o=this._modelMaxRaw=e.get("max",!0);if(C(o)?this._modelMaxNum=bp(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=bp(t,o)),i)this._axisDataLen=e.getCategories().length;else{var a=e.get("boundaryGap"),s=S(a)?a:[a||0,a||0];this._boundaryGapInner="boolean"==typeof s[0]||"boolean"==typeof s[1]?[0,0]:[en(s[0],1),en(s[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?i?0:NaN:e-r[0]*o),null==s&&(s=t?i?i-1:NaN:n+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN),a>s&&(a=NaN,s=NaN);var c=E(a)||E(s)||t&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),0>a&&0>s&&!u&&(s=0));var h=this._determinedMin,p=this._determinedMax;return null!=h&&(a=h,l=!0),null!=p&&(s=p,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[tI[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[QM[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),QM={min:"_determinedMin",max:"_determinedMax"},tI={min:"_dataMin",max:"_dataMax"},eI=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),nI={isDimensionStacked:Hh,enableDataStack:Fh,getStackedDimension:Gh},iI=(Object.freeze||Object)({createList:Rp,getLayoutRect:xs,dataStack:nI,createScale:Ep,mixinAxisModelCommonMethods:Np,getECData:rx,createTextStyle:Bp,createDimensions:Ph,createSymbol:Hu,enableHoverEmphasis:vo}),rI=[],oI={registerPreprocessor:sh,registerProcessor:lh,registerPostInit:uh,registerPostUpdate:ch,registerUpdateLifecycle:hh,registerAction:ph,registerCoordinateSystem:fh,registerLayout:gh,registerVisual:yh,registerTransform:uM,registerLoading:mh,registerMap:xh,PRIORITY:_T,ComponentModel:ww,ComponentView:FS,SeriesModel:zS,ChartView:GS,registerComponentModel:function(t){ww.registerClass(t)},registerComponentView:function(t){FS.registerClass(t)},registerSeriesModel:function(t){zS.registerClass(t)},registerChartView:function(t){GS.registerClass(t)},registerSubTypeDefaulter:function(t,e){ww.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){gn(t,e)}},aI=(Object.freeze||Object)({linearMap:vn,round:_n,asc:xn,getPrecision:bn,getPrecisionSafe:wn,getPixelPrecision:Sn,getPercentWithPrecision:Cn,MAX_SAFE_INTEGER:9007199254740991,remRadian:Mn,isRadianAroundZero:In,parseDate:kn,quantity:Dn,quantityExponent:An,nice:On,quantile:Pn,reformIntervals:Ln,isNumeric:En,numericToNumber:Rn}),sI=(Object.freeze||Object)({parse:kn,format:Ua}),lI=(Object.freeze||Object)({extendShape:ta,extendPath:ea,makePath:ra,makeImage:oa,mergePath:Db,resizePath:sa,createIcon:ma,updateProps:Yo,initProps:qo,getTransform:ca,clipPointsByRect:ya,clipRectByRect:va,registerShape:na,getShapeClass:ia,Group:gm,Image:q_,Text:ex,Circle:Bx,Ellipse:Fx,Sector:Jx,Ring:tb,Polygon:nb,Polyline:rb,Rect:J_,Line:sb,BezierCurve:cb,Arc:pb,IncrementalDisplayable:Sb,CompoundPath:fb,LinearGradient:gb,RadialGradient:yb,BoundingRect:om}),uI=(Object.freeze||Object)({addCommas:cs,toCamelCase:hs,normalizeCssArray:pw,encodeHTML:ps,formatTpl:ds,getTooltipMarker:gs,formatTime:ys,capitalFirst:vs,truncateText:Ii,getTextRect:us}),cI=(Object.freeze||Object)({map:y,each:g,indexOf:h,inherits:p,reduce:v,filter:m,bind:Dy,curry:w,isArray:S,isString:T,isObject:k,isFunction:C,extend:u,defaults:c,clone:a,merge:s}),hI=oi(),pI=[0,1],fI=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&i>=t},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return Sn(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&(n=n.slice(),Qp(n,i.count())),vn(t,pI,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),Qp(n,i.count()));var r=vn(t,n,pI,e);return this.scale.scale(r)},t.prototype.pointToData=function(){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=Vp(this,e),i=n.ticks,r=y(i,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return tf(this,r,e.get("alignWithLabel"),t.clamp),r},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");return e>0&&100>e||(e=5),y(this.scale.getMinorTicks(e),function(t){return y(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(){return Fp(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return Zp(this)},t}(),dI=2*Math.PI,gI=P_.CMD,yI=["top","right","bottom","left"],vI=[],mI=new $v,_I=new $v,xI=new $v,bI=new $v,wI=new $v,SI=[],CI=new $v,TI=["align","verticalAlign","width","height","fontSize"],MI=new qv,II=oi(),kI=oi(),DI=["x","y","rotation"],AI=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,i,r){var o=i.style,a=i.__hostTarget,s=a.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain();om.applyTransform(u,u,l),l?MI.setLocalTransform(l):(MI.x=MI.y=MI.rotation=MI.originX=MI.originY=0,MI.scaleX=MI.scaleY=1);var c,h=i.__hostTarget;if(h){c=h.getBoundingRect().plain();var p=h.getComputedTransform();om.applyTransform(c,c,p)}var f=c&&h.getTextGuideLine();this._labelList.push({label:i,labelLine:f,seriesModel:n,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:f&&f.ignore,x:MI.x,y:MI.y,scaleX:MI.scaleX,scaleY:MI.scaleY,rotation:MI.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(C(i)||x(i).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var r=t.getTextContent(),o=rx(t);r&&!r.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,r,i)})},t.prototype.updateLayoutConfig=function(t){for(var e=t.getWidth(),n=t.getHeight(),i=0;i<this._labelList.length;i++){var r=this._labelList[i],o=r.label,a=o.__hostTarget,s=r.defaultAttr,l=void 0;l="function"==typeof r.layoutOption?r.layoutOption(Cf(r,a)):r.layoutOption,l=l||{},r.computedLayoutOption=l;var u=Math.PI/180;a&&a.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*u:s.attachedRot,offset:[l.dx||0,l.dy||0]});var c=!1;if(null!=l.x?(o.x=mn(l.x,e),o.setStyle("x",0),c=!0):(o.x=s.x,o.setStyle("x",s.style.x)),null!=l.y?(o.y=mn(l.y,n),o.setStyle("y",0),c=!0):(o.y=s.y,o.setStyle("y",s.style.y)),l.labelLinePoints){var h=a.getTextGuideLine();h&&(h.setShape({points:l.labelLinePoints}),c=!1)}II(o).needsUpdateLabelLine=c,o.rotation=null!=l.rotate?l.rotate*u:s.rotation,o.scaleX=s.scaleX,o.scaleY=s.scaleY;for(var p=0;p<TI.length;p++){var f=TI[p];o.setStyle(f,null!=l[f]?l[f]:s.style[f])}if(l.draggable){if(o.draggable=!0,o.cursor="move",a){var d=r.seriesModel;if(null!=r.dataIndex){var g=r.seriesModel.getData(r.dataType);d=g.getItemModel(r.dataIndex)}o.on("drag",function(t,e){return function(){pf(t,e)}}(a,d.getModel("labelLine")))}}else o.off("drag"),o.cursor=s.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),i=mf(this._labelList),r=m(i,function(t){return"shiftX"===t.layoutOption.moveOverlap}),o=m(i,function(t){return"shiftY"===t.layoutOption.moveOverlap});xf(r,0,e),bf(o,0,n),wf(m(i,function(t){return t.layoutOption.hideOverlap}))},t.prototype.processLabelsOverall=function(){var t=this;g(this._chartViewList,function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,r=n.isAnimationEnabled();e.group.traverse(function(e){if(e.ignore)return!0;var o=!i,a=e.getTextContent();!o&&a&&(o=II(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),r&&t._animateLabels(e,n)})})},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=rx(t),r=i.dataIndex;if(n&&null!=r){var o=e.getData(i.dataType),a=o.getItemModel(r),s={},l=o.getItemVisual(r,"style"),u=o.getVisual("drawType");s.stroke=l[u];var c=a.getModel("labelLine");yf(t,vf(a),s),pf(t,c)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Zo(t)){var r=II(n),o=r.oldLayout,a=rx(t),s=a.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=e.getData(a.dataType);if(o){n.attr(o);var c=t.prevStates;c&&(h(c,"select")>=0&&n.attr(r.oldLayoutSelect),h(c,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),Yo(n,l,e,s)}else if(n.attr(l),!Nb(n).valueAnimation){var p=B(n.style.opacity,1);n.style.opacity=0,qo(n,{style:{opacity:p}},e,s)}if(r.oldLayout=l,n.states.select){var f=r.oldLayoutSelect={};Tf(f,l,DI),Tf(f,n.states.select,DI)}if(n.states.emphasis){var d=r.oldLayoutEmphasis={};Tf(d,l,DI),Tf(d,n.states.emphasis,DI)}Ra(n,s,u,e,e)}if(i&&!i.ignore&&!i.invisible){var r=kI(i),o=r.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),Yo(i,{shape:g},e)):(i.setShape(g),i.style.strokePercent=0,qo(i,{style:{strokePercent:1}},e)),r.oldLayout=g}},t}(),OI=oi();zp(Mf);var PI=function(t){function n(e,n,i){var r=t.call(this)||this;r.motionBlur=!1,r.lastFrameAlpha=.7,r.dpr=1,r.virtual=!1,r.config={},r.incremental=!1,r.zlevel=0,r.maxRepaintRectCount=5,r.__dirty=!0,r.__firstTimePaint=!0,r.__used=!1,r.__drawIndex=0,r.__startIndex=0,r.__endIndex=0,r.__prevStartIndex=null,r.__prevEndIndex=null;var o;i=i||Bv,"string"==typeof e?o=kf(e,n,i):k(e)&&(o=e,e=o.id),r.id=e,r.dom=o;var a=o.style;return a&&(o.onselectstart=If,a.webkitUserSelect="none",a.userSelect="none",a.webkitTapHighlightColor="rgba(0,0,0,0)",a["-webkit-touch-callout"]="none",a.padding="0",a.margin="0",a.borderWidth="0"),r.domBack=null,r.ctxBack=null,r.painter=n,r.config=null,r.dpr=i,r}return e(n,t),n.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},n.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},n.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},n.prototype.setUnpainted=function(){this.__firstTimePaint=!0},n.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=kf("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},n.prototype.createRepaintRects=function(t,e,n,i){function r(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new om(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,i=1/0,r=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new om(0,0,0,0);h.copy(c),h.union(t),o[u]=h,n=!0;break}if(s){l.copy(t),l.union(c);var p=t.width*t.height,f=c.width*c.height,d=l.width*l.height,g=d-p-f;i>g&&(i=g,r=u)}}if(s&&(o[r].union(t),n=!0),!n){var e=new om(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;for(var o=[],a=this.maxRepaintRectCount,s=!1,l=new om(0,0,0,0),u=this.__startIndex;u<this.__endIndex;++u){var c=t[u];if(c){var h=c.shouldBePainted(n,i,!0,!0),p=c.__isRendered&&(c.__dirty&rv||!h)?c.getPrevPaintRect():null;p&&r(p);var f=h&&(c.__dirty&rv||!c.__isRendered)?c.getPaintRect():null;f&&r(f)}}for(var u=this.__prevStartIndex;u<this.__prevEndIndex;++u){var c=e[u],h=c.shouldBePainted(n,i,!0,!0);if(c&&(!h||!c.__zr)&&c.__isRendered){var p=c.getPrevPaintRect();p&&r(p)}}var d;do{d=!1;for(var u=0;u<o.length;)if(o[u].isZero())o.splice(u,1);else{for(var g=u+1;g<o.length;)o[u].intersect(o[g])?(d=!0,o[u].union(o[g]),o.splice(g,1)):g++;u++}}while(d);return this._paintRects=o,o},n.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},n.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},n.prototype.clear=function(t,e,n){function i(t,n,i,r){if(o.clearRect(t,n,i,r),e&&"transparent"!==e){var a=void 0;P(e)?(a=e.__canvasGradient||Xu(o,e,{x:0,y:0,width:i,height:r}),e.__canvasGradient=a):L(e)&&(a=tc(o,e,{dirty:function(){h.setUnpainted(),h.__painter.refresh()}})),o.save(),o.fillStyle=a||e,o.fillRect(t,n,i,r),o.restore()}l&&(o.save(),o.globalAlpha=u,o.drawImage(p,t,n,i,r),o.restore())}var r=this.dom,o=this.ctx,a=r.width,s=r.height;e=e||this.clearColor;var l=this.motionBlur&&!t,u=this.lastFrameAlpha,c=this.dpr,h=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/c,s/c));var p=this.domBack;!n||l?i(0,0,a,s):n.length&&g(n,function(t){i(t.x*c,t.y*c,t.width*c,t.height*c)})},n}(Vy),LI=314159,RI=function(){function t(t,e,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=u({},n||{}),this.dpr=n.devicePixelRatio||Bv,this._singleCanvas=i,this.root=t;var r=t.style;r&&(r.webkitTapHighlightColor="transparent",r.webkitUserSelect="none",r.userSelect="none",r["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(i){var s=t,l=s.width,c=s.height;null!=n.width&&(l=n.width),null!=n.height&&(c=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=c*this.dpr,this._width=l,this._height=c;var h=new PI(s,this,this.dpr);h.__builtin__=!0,h.initContext(),a[LI]=h,h.zlevel=LI,o.push(LI),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var p=this._domRoot=Of(this._width,this._height);t.appendChild(p)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();return t?{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}:void 0},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;e>o;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(1e5)),i||(i=n.ctx,i.save()),dc(i,a,r,o===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(1e5)},t.prototype.paintOne=function(t,e){fc(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer(function(t){t.afterBrush&&t.afterBrush()});else{var s=this;lv(function(){s._paintList(t,e,n,i)})}}},t.prototype._compositeManually=function(){var t=this.getLayer(LI).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},t.prototype._doPaintList=function(t,e,n){for(var i=this,r=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&r.push(l)}for(var u=!0,c=!1,h=this,p=0;p<r.length;p++)!function(a){var s=r[a],l=s.ctx,p=o&&s.createRepaintRects(t,e,h._width,h._height),f=n?s.__startIndex:s.__drawIndex,d=!n&&s.incremental&&Date.now,g=d&&Date.now(),y=s.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(s.__startIndex===s.__endIndex)s.clear(!1,y,p);else if(f===s.__startIndex){var v=t[f];v.incremental&&v.notClear&&!n||s.clear(!1,y,p)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=s.__startIndex);var m,_=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(m=f;m<s.__endIndex;m++){var r=t[m];if(r.__inHover&&(c=!0),i._doPaintEl(r,s,o,e,n,m===s.__endIndex-1),d){if(Date.now()-g>15)break}}n.prevElClipPaths&&l.restore()};if(p)if(0===p.length)m=s.__endIndex;else for(var x=h.dpr,b=0;b<p.length;++b){var w=p[b];l.save(),l.beginPath(),l.rect(w.x*x,w.y*x,w.width*x,w.height*x),l.clip(),_(w),l.restore()}else l.save(),_(),l.restore();s.__drawIndex=m,s.__drawIndex<s.__endIndex&&(u=!1)}(p);return gy.wxa&&g(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:u,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,n,i,r,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!i||s&&s.intersect(i))&&(dc(a,t,r,o),t.setPrevPaintRect(s))}else dc(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=LI);var n=this._layers[t];return n||(n=new PI("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?s(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&s(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,a=this._domRoot,s=null,l=-1;if(n[t])return void o("ZLevel "+t+" has been used already");if(!Af(e))return void o("Layer of zlevel "+t+" is not valid");if(r>0&&t>i[0]){for(l=0;r-1>l&&!(i[l]<t&&i[l+1]>t);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?a.insertBefore(e.dom,u.nextSibling):a.appendChild(e.dom)}else a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom);e.__painter=this},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){s&&(s.__endIndex!==t&&(s.__dirty=!0),s.__endIndex=t)}if(this.eachBuiltinLayer(function(t){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var r,a,s=null,l=0;for(a=0;a<t.length;a++){var i=t[a],u=i.zlevel,c=void 0;r!==u&&(r=u,l=0),i.incremental?(c=this.getLayer(u+.001,this._needsManuallyCompositing),c.incremental=!0,l=1):c=this.getLayer(u+(l>0?.01:0),this._needsManuallyCompositing),c.__builtin__||o("ZLevel "+u+" has been used by unkown layer "+c.id),c!==s&&(c.__used=!0,c.__startIndex!==a&&(c.__dirty=!0),c.__startIndex=a,c.__drawIndex=c.incremental?-1:a,e(a),s=c),i.__dirty&rv&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=a))}e(a),this.eachBuiltinLayer(function(t){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,g(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?s(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];if(r===t||r===t+.01){s(this._layers[r],n[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(h(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||e!==this._height){n.style.width=t+"px",n.style.height=e+"px";for(var r in this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].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(LI).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[LI].dom;var e=new PI("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,r=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;l>s;s++){var u=a[s];dc(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype._getSize=function(t){var e=this._opts,n=["width","height"][t],i=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[i]||Df(s[n])||Df(a.style[n]))-(Df(s[r])||0)-(Df(s[o])||0)|0},t.prototype.pathToImage=function(t,e){e=e||this.dpr;var n=document.createElement("canvas"),i=n.getContext("2d"),r=t.getBoundingRect(),o=t.style,a=o.shadowBlur*e,s=o.shadowOffsetX*e,l=o.shadowOffsetY*e,c=t.hasStroke()?o.lineWidth:0,h=Math.max(c/2,-s+a),p=Math.max(c/2,s+a),f=Math.max(c/2,-l+a),d=Math.max(c/2,l+a),g=r.width+h+p,y=r.height+f+d;n.width=g*e,n.height=y*e,i.scale(e,e),i.clearRect(0,0,g,y),i.dpr=e;var v={x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY,rotation:t.rotation,originX:t.originX,originY:t.originY};t.x=h-r.x,t.y=f-r.y,t.rotation=0,t.scaleX=1,t.scaleY=1,t.updateTransform(),t&&dc(i,t,{inHover:!1,viewWidth:this._width,viewHeight:this._height},!0);var m=new q_({style:{x:0,y:0,image:n}});return u(t,v),m},t}(),EI=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(n,t),n.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new OS(this),Gl(this)},n.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),Gl(this)},n.prototype.optionUpdated=function(){this._sourceManager.dirty()},n.prototype.getSourceManager=function(){return this._sourceManager},n.type="dataset",n.defaultOption={seriesLayoutBy:Ew},n}(ww),NI=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(n,t),n.type="dataset",n}(FS);zp([Pf,Lf]),zp(Mf);var BI=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.hasSymbolVisual=!0,e}return e(n,t),n.prototype.getInitialData=function(){return Uh(null,this,{useEncodeDefaulter:!0})},n.prototype.getLegendIcon=function(t){var e=new gm,n=Hu("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*t.itemHeight,s=Hu(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},n.type="series.line",n.dependencies=["grid","polar"],n.defaultOption={zlevel:0,z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0,lineStyle:{width:"bolder"}},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,universalTransition:{divideShape:"clone"}},n}(zS),zI=function(t){function n(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return e(n,t),n.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=Hu(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=Nf,this._symbolType=t,this.add(o)},n.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},n.prototype.getSymbolType=function(){return this._symbolType},n.prototype.getSymbolPath=function(){return this.childAt(0)},n.prototype.highlight=function(){Qr(this.childAt(0))},n.prototype.downplay=function(){to(this.childAt(0))},n.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},n.prototype.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},n.prototype.updateData=function(t,e,i,r){this.silent=!1;var o=t.getItemVisual(e,"symbol")||"circle",a=t.hostModel,s=n.getSymbolSize(t,e),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var c=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(o,t,e,s,c)}else{var h=this.childAt(0);h.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?h.attr(p):Yo(h,p,a,e),Qo(h)}if(this._updateCommon(t,e,s,i,r),l){var h=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,qo(h,p,a,e)}}u&&this.childAt(0).stopAnimation("remove"),this._seriesModel=a},n.prototype._updateCommon=function(t,e,n,i,r){function o(e){return M?t.getName(e):Rf(t,e)}var a,s,l,c,h,p,f,d,g=this.childAt(0),y=t.hostModel;if(i&&(a=i.emphasisItemStyle,s=i.blurItemStyle,l=i.selectItemStyle,c=i.focus,h=i.blurScope,p=i.labelStatesModels,f=i.hoverScale,d=i.cursorStyle),!i||t.hasItemOption){var v=i&&i.itemModel?i.itemModel:t.getItemModel(e),m=v.getModel("emphasis");a=m.getModel("itemStyle").getItemStyle(),l=v.getModel(["select","itemStyle"]).getItemStyle(),s=v.getModel(["blur","itemStyle"]).getItemStyle(),c=m.get("focus"),h=m.get("blurScope"),p=Ia(v),f=m.getShallow("scale"),d=v.getShallow("cursor")}var _=t.getItemVisual(e,"symbolRotate");g.attr("rotation",(_||0)*Math.PI/180||0);var x=Wu(t.getItemVisual(e,"symbolOffset"),n);x&&(g.x=x[0],g.y=x[1]),d&&g.attr("cursor",d);var b=t.getItemVisual(e,"style"),w=b.fill;if(g instanceof q_){var S=g.style;g.useStyle(u({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else g.useStyle(g.__isEmptyBrush?u({},b):b),g.style.decal=null,g.setColor(w,r&&r.symbolInnerColor),g.style.strokeNoScale=!0;var C=t.getItemVisual(e,"liftZ"),T=this._z2;null!=C?null==T&&(this._z2=g.z2,g.z2+=C):null!=T&&(g.z2=T,this._z2=null);var M=r&&r.useNameLabel;Ma(g,p,{labelFetcher:y,labelDataIndex:e,defaultText:o,inheritColor:w,defaultOpacity:b.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=g.ensureState("emphasis");if(I.style=a,g.ensureState("select").style=l,g.ensureState("blur").style=s,f){var k=Math.max(1.1,3/this._sizeY);I.scaleX=this._sizeX*k,I.scaleY=this._sizeY*k}this.setSymbolScale(1),vo(this,c,h)},n.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},n.prototype.fadeOut=function(t,e){var n=this.childAt(0),i=this._seriesModel,r=rx(this).dataIndex,o=e&&e.animation;if(this.silent=n.silent=!0,e&&e.fadeLabel){var a=n.getTextContent();a&&$o(a,{style:{opacity:0}},i,{dataIndex:r,removeOpt:o,cb:function(){n.removeTextContent()}})}else n.removeTextContent();$o(n,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:r,cb:t,removeOpt:o})},n.getSymbolSize=function(t,e){return Gu(t.getItemVisual(e,"symbolSize"))},n}(gm),FI=function(){function t(t){this.group=new gm,this._SymbolCtor=t||zI}return t.prototype.updateData=function(t,e){e=zf(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=Ff(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add(function(i){var r=u(i);if(Bf(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}}).update(function(c,h){var p=r.getItemGraphicEl(h),f=u(c);if(!Bf(t,f,c,e))return void n.remove(p);var d=t.getItemVisual(c,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==d)n.remove(p),p=new o(t,c,s,l),p.setPosition(f);else{p.updateData(t,c,s,l);var y={x:f[0],y:f[1]};a?p.attr(y):Yo(p,y,i)}n.add(p),t.setItemGraphicEl(c,p)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)})}).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.isPersistent=function(){return!0},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Ff(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}n=zf(n);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(Bf(e,o,r,n)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a)}}},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll()},t}(),VI="undefined"!=typeof Float32Array,HI=VI?Float32Array:Array,GI=Math.min,WI=Math.max,jI=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),UI=function(t){function n(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},n.prototype.getDefaultShape=function(){return new jI},n.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&Xf(n[2*r-2],n[2*r-1]);r--);for(;r>i&&Xf(n[2*i],n[2*i+1]);i++);}for(;r>i;)i+=Yf(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},n.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path,o=r.data,a=P_.CMD,s="x"===e,l=[],u=0;u<o.length;){var c=o[u++],h=void 0,p=void 0,f=void 0,d=void 0,g=void 0,y=void 0,v=void 0;switch(c){case a.M:n=o[u++],i=o[u++];break;case a.L:if(h=o[u++],p=o[u++],1>=(v=s?(t-n)/(h-n):(t-i)/(p-i))&&v>=0){var m=s?(p-i)*v+i:(h-n)*v+n;return s?[t,m]:[m,t]}n=h,i=p;break;case a.C:h=o[u++],p=o[u++],f=o[u++],d=o[u++],g=o[u++],y=o[u++];var _=s?Gi(n,h,f,g,t,l):Gi(i,p,d,y,t,l);if(_>0)for(var x=0;_>x;x++){var b=l[x];if(1>=b&&b>=0){var m=s?Vi(i,p,d,y,b):Vi(n,h,f,g,b);return s?[t,m]:[m,t]}}n=g,i=y}}},n}(W_),XI=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(jI),YI=function(t){function n(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return e(n,t),n.prototype.getDefaultShape=function(){return new XI},n.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&Xf(n[2*o-2],n[2*o-1]);o--);for(;o>r&&Xf(n[2*r],n[2*r+1]);r++);}for(;o>r;){var s=Yf(t,n,r,o,o,1,e.smooth,a,e.connectNulls);Yf(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},n}(W_),qI=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(){var t=new gm,e=new FI;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},n.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],h="polar"===r.type,p=this._coordSys,f=this._symbolDraw,d=this._polyline,g=this._polygon,y=this._lineGroup,v=t.get("animation"),m=!l.isEmpty(),_=l.get("origin"),x=Vf(r,a,_),b=m&&ed(r,a,x),w=t.get("showSymbol"),S=w&&!h&&rd(t,a,r),C=this._data;C&&C.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),C.setItemGraphicEl(e,null))}),w||f.remove(),o.add(y);var T,M=!h&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(T=r.getArea(),null!=T.width?(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2):T.r0&&(T.r0-=.5,T.r+=.5)),this._clipShapeForSymbol=T;var I=id(a,r)||a.getVisual("style")[a.getVisual("drawType")];d&&p.type===r.type&&M===this._step?(m&&!g?g=this._newPolygon(u,b):g&&!m&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(t,r,ms(I)),y.setClipPath(hd(this,r,!1,t)),w&&f.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),Kf(this._stackedOnPoints,b)&&Kf(this._points,u)||(v?this._doUpdateAnimation(a,b,r,n,M,_):(M&&(u=nd(u,r,M),b&&(b=nd(b,r,M))),d.setShape({points:u}),g&&g.setShape({points:u,stackedOnPoints:b})))):(w&&f.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),v&&this._initSymbolLabelAnimation(a,r,T),M&&(u=nd(u,r,M),b&&(b=nd(b,r,M))),d=this._newPolyline(u),m&&(g=this._newPolygon(u,b)),h||this._initOrUpdateEndLabel(t,r,ms(I)),y.setClipPath(hd(this,r,!0,t)));var k=t.get(["emphasis","focus"]),D=t.get(["emphasis","blurScope"]);if(d.useStyle(c(s.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),_o(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])){d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1}rx(d).seriesIndex=t.seriesIndex,vo(d,k,D);var A=td(t.get("smooth")),O=t.get("smoothMonotone"),P=t.get("connectNulls");if(d.setShape({smooth:A,smoothMonotone:O,connectNulls:P}),g){var L=a.getCalculationInfo("stackedOnSeries"),R=0;g.useStyle(c(l.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),L&&(R=td(L.get("smooth"))),g.setShape({smooth:A,stackedOnSmooth:R,smoothMonotone:O,connectNulls:P}),_o(g,t,"areaStyle"),rx(g).seriesIndex=t.seriesIndex,vo(g,k,D)}var E=function(t){i._changePolyState(t)};a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=E)}),this._polyline.onHoverStateChange=E,this._data=a,this._coordSys=r,this._stackedOnPoints=b,this._points=u,this._step=M,this._valueOrigin=_},n.prototype.dispose=function(){},n.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=ri(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel"),h=t.get("z");s=new zI(r,o),s.x=l,s.y=u,s.setZ(c,h);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=c,p.z=h,p.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else GS.prototype.highlight.call(this,t,e,n,i)},n.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=ri(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else GS.prototype.downplay.call(this,t,e,n,i)},n.prototype._changePolyState=function(t){var e=this._polygon;jr(this._polyline,t),e&&jr(e,t)},n.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new UI({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},n.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new YI({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},n.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");"function"==typeof l&&(l=l(null));var u=s.get("animationDelay")||0,c="function"==typeof u?u(null):u;t.eachItemGraphicEl(function(t,o){var s=t;if(s){var h=[t.x,t.y],p=void 0,f=void 0,d=void 0;if(n)if(r){var g=n,y=e.pointToCoord(h);i?(p=g.startAngle,f=g.endAngle,d=-y[1]/180*Math.PI):(p=g.r0,f=g.r,d=y[0])}else{var v=n;i?(p=v.x,f=v.x+v.width,d=t.x):(p=v.y+v.height,f=v.y,d=t.y)}var m=f===p?0:(d-p)/(f-p);a&&(m=1-m);var _="function"==typeof u?u(o):l*m+c,x=s.getSymbolPath(),b=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}})},n.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(cd(t)){var r=t.getData(),o=this._polyline,a=this._endLabel;a||(a=this._endLabel=new ex({z2:200}),a.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var s=sd(r.getLayout("points"));s>=0&&(Ma(o,Ia(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:s,defaultText:function(t,e,n){return null!=n?Ef(r,n):Rf(r,t)},enableTextSetter:!0},pd(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},n.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){1>t&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),p=o.get("precision"),f=o.get("distance")||0,d=a.getBaseAxis(),g=d.isHorizontal(),y=d.inverse,v=e.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,_=(g?f:0)*(y?-1:1),x=(g?0:-f)*(y?-1:1),b=g?"x":"y",w=ud(u,m,b),S=w.range,C=S[1]-S[0],T=void 0;if(C>=1){if(C>1&&!h){var M=ld(u,S[0]);s.attr({x:M[0]+_,y:M[1]+x}),r&&(T=c.getRawValue(S[0]))}else{var M=l.getPointOn(m,b);M&&s.attr({x:M[0]+_,y:M[1]+x});var I=c.getRawValue(S[0]),k=c.getRawValue(S[1]);r&&(T=pi(n,p,I,k,w.t))}i.lastFrameIndex=S[0]}else{var D=1===t||i.lastFrameIndex>0?S[0]:0,M=ld(u,D);r&&(T=c.getRawValue(D)),s.attr({x:M[0]+_,y:M[1]+x})}r&&Nb(s).setLabelText(T)}},n.prototype._doUpdateAnimation=function(t,e,n,i,r,o){var a=this._polyline,s=this._polygon,l=t.hostModel,u=Uf(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin),c=u.current,h=u.stackedOnCurrent,p=u.next,f=u.stackedOnNext;if(r&&(c=nd(u.current,n,r),h=nd(u.stackedOnCurrent,n,r),p=nd(u.next,n,r),f=nd(u.stackedOnNext,n,r)),Qf(c,p)>3e3||s&&Qf(h,f)>3e3)return a.setShape({points:p}),void(s&&s.setShape({points:p,stackedOnPoints:f}));a.shape.__points=u.current,a.shape.points=c;var d={shape:{points:p}};u.current!==c&&(d.shape.__points=u.next),a.stopAnimation(),Yo(a,d,l),s&&(s.setShape({points:c,stackedOnPoints:h}),s.stopAnimation(),Yo(s,{shape:{stackedOnPoints:f}},l),a.shape.points!==s.shape.points&&(s.shape.points=a.shape.points));for(var g=[],y=u.status,v=0;v<y.length;v++){if("="===y[v].cmd){var m=t.getItemGraphicEl(y[v].idx1);m&&g.push({el:m,ptIdx:v})}}a.animators&&a.animators.length&&a.animators[0].during(function(){s&&s.dirtyShape();for(var t=a.shape.__points,e=0;e<g.length;e++){var n=g[e].el,i=2*g[e].ptIdx;n.x=t[i],n.y=t[i+1],n.markRedraw()}})},n.prototype.remove=function(){var t=this.group,e=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),e&&e.eachItemGraphicEl(function(n,i){n.__temp&&(t.remove(n),e.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},n.type="line",n}(GS),ZI={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},$I=function(t){return Math.round(t.length/2)};zp(gd);var KI=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.type="grid",n.dependencies=["xAxis","yAxis"],n.layoutMode="box",n.defaultOption={show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},n}(ww),JI=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",km).models[0]},n.type="cartesian2dAxis",n}(ww);f(JI,eI);var QI={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:"#6E7079",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:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},tk=s({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},QI),ek=s({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},QI),nk=s({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ek),ik=c({scale:!0,logBase:10},ek),rk={category:tk,value:ek,time:nk,log:ik},ok={value:1,category:1,time:1,log:1},ak=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return y(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),m(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),sk=["x","y"],lk=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=sk,e}return e(n,t),n.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(md(t)&&md(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,h=r[1]-i[0]*u,p=this._transform=[l,0,0,u,c,h];this._invTransform=Ue([],p)}}},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},n.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},n.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},n.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return dt(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},n.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},n.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return dt(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},n.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},n.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-i;return new om(n,i,r,o)},n}(ak),uk=function(t){function n(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return e(n,t),n.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},n.prototype.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},n.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},n.prototype.setCategorySortInfo=function(t){return"category"===this.type&&(this.model.option.categorySortInfo=t,void this.scale.setSortInfo(t))},n}(fI),ck=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=sk,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model),g(n.x,function(t){Cp(t.scale,t.model)}),g(n.y,function(t){Cp(t.scale,t.model)});var i={};g(n.x,function(t){Sd(n,"y",t,i)}),g(n.y,function(t){Sd(n,"x",t,i)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){function i(){g(s,function(t){var e=t.isHorizontal(),n=e?[0,a.width]:[0,a.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),Td(t,e?a.x:a.y)})}var r=t.getBoxLayoutParams(),o=!n&&t.get("containLabel"),a=xs(r,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var s=this._axesList;i(),o&&(g(s,function(t){if(!t.model.get(["axisLabel","inside"])){var e=Dp(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);a[n]-=e[n]+i,"top"===t.position?a.y+=e.height+i:"left"===t.position&&(a.x+=e.width+i)}}}),i()),g(this._coordsList,function(t){t.calcAffineTransform()})},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];return null!=n?n[e||0]:void 0},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}k(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",km).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",km).models[0],a=t.gridModel,s=this._coordsList;if(i)e=i.coordinateSystem,h(s,e)<0&&(e=null);else if(r&&o)e=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)n=this.getAxis("x",r.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];return e?e.containPoint(t):void 0},t.prototype._initCartesian=function(t,e){function n(e){return function(n,i){if(wd(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new uk(e,Tp(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),a[e][i]=u,s[e]++}}}var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};return e.eachComponent("xAxis",n("x"),this),e.eachComponent("yAxis",n("y"),this),s.x&&s.y?(this._axesMap=a,void g(a.x,function(e,n){g(a.y,function(r,o){var a="x"+n+"y"+o,s=new lk(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)})})):(this._axesMap={},void(this._axesList=[]))},t.prototype._updateScale=function(t,e){function n(t,e){g(Lp(t,e.dim),function(n){e.scale.unionExtentFromData(t,n)})}g(this._axesList,function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}}),t.eachSeries(function(t){if(xd(t)){var i=bd(t),r=i.xAxisModel,o=i.yAxisModel;if(!wd(r,e)||!wd(o,e))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");"list"===s.type&&(n(s,l),n(s,u))}},this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return g(this.getCartesians(),function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);h(e,r)<0&&e.push(r),h(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)}),e.eachSeries(function(t){if(xd(t)){var e=bd(t),n=e.xAxisModel,i=e.yAxisModel,r=n.getCoordSysModel(),o=r.coordinateSystem;t.coordinateSystem=o.getCartesian(n.componentIndex,i.componentIndex)}}),i},t.dimensions=sk,t}(),hk=Math.PI,pk=function(){function t(t,e){this.group=new gm,this.opt=e,this.axisModel=t,c(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new gm({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!fk[t]},t.prototype.add=function(t){fk[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=Mn(e-t);return In(o)?(r=n>0?"top":"bottom",i="center"):In(o-hk)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&hk>o?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),fk={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0];a&&(dt(s,s,a),dt(l,l,a));var c=u({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new sb({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});h.anid="line",n.add(h);var p=e.get(["axisLine","symbol"]);if(null!=p){var f=e.get(["axisLine","symbolSize"]);"string"==typeof p&&(p=[p,p]),("string"==typeof f||"number"==typeof f)&&(f=[f,f]);var d=Wu(e.get(["axisLine","symbolOffset"])||0,f),y=f[0],v=f[1];g([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(e,i){if("none"!==p[i]&&null!=p[i]){var r=Hu(p[i],-y/2,-v/2,y,v,c.stroke,!0),o=e.r+e.offset;r.attr({rotation:e.rotate,x:s[0]+o*Math.cos(t.rotation),y:s[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}})}}},axisTickLabel:function(t,e,n,i){var r=Pd(n,i,e,t);Id(e,Rd(n,i,e,t),r),Ld(n,i,e,t.tickDirection)},axisName:function(t,e,n,i){var r=N(t.axisName,e.get("name"));if(r){var o,a=e.get("nameLocation"),s=t.nameDirection,l=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,c=e.axis.getExtent(),h=c[0]>c[1]?-1:1,p=["start"===a?c[0]-h*u:"end"===a?c[1]+h*u:(c[0]+c[1])/2,Ad(a)?t.labelOffset+s*u:0],f=e.get("nameRotate");null!=f&&(f=f*hk/180);var d;Ad(a)?o=pk.innerTextLayout(t.rotation,null!=f?f:t.rotation,s):(o=Md(t.rotation,a,f||0,c),null!=(d=t.axisNameAvailableWidth)&&(d=Math.abs(d/Math.sin(o.rotation)),!isFinite(d)&&(d=null)));var g=l.getFont(),y=e.get("nameTruncate",!0)||{},v=y.ellipsis,m=N(t.nameTruncateMaxWidth,y.maxWidth,d),_=new ex({x:p[0],y:p[1],rotation:o.rotation,silent:pk.isLabelSilent(e),style:ka(l,{text:r,font:g,overflow:"truncate",width:m,ellipsis:v,fill:l.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:l.get("align")||o.textAlign,verticalAlign:l.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Sa({el:_,componentModel:e,itemName:r}),_.__fullText=r,_.anid="name",e.get("triggerEvent")){var x=pk.makeAxisEventDataBase(e);x.targetType="axisName",x.name=r,rx(_).eventData=x}i.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}},dk={},gk=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(e,n,i){this.axisPointerClass&&Hd(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},n.prototype.updateAxisPointer=function(t,e,n){this._doUpdateAxisPointerClass(t,n,!1)},n.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},n.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},n.prototype._doUpdateAxisPointerClass=function(t,e,i){var r=n.getAxisPointerClass(this.axisPointerClass);if(r){var o=Wd(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,e,i):this._disposeAxisPointer(e)}},n.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},n.registerAxisPointerClass=function(t,e){dk[t]=e},n.getAxisPointerClass=function(t){return t&&dk[t]},n.type="axis",n}(FS),yk=oi(),vk=["axisLine","axisTickLabel","axisName"],mk=["splitArea","splitLine","minorSplitLine"],_k=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.axisPointerClass="CartesianAxisPointer",e}return e(n,t),n.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new gm,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=_d(a,e),l=new pk(e,u({handleAutoShown:function(){for(var t=a.coordinateSystem.getCartesians(),n=0;n<t.length;n++){var i=t[n].getOtherAxis(e.axis).type;if("value"===i||"log"===i)return!0}return!1}},s));g(vk,l.add,l),this._axisGroup.add(l.getGroup()),g(mk,function(t){e.get([t,"show"])&&xk[t](this,this._axisGroup,e,a)},this);r&&"changeAxisOrder"===r.type&&r.isInitSort||ga(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)}},n.prototype.remove=function(){Yd(this)},n.type="cartesianAxis",n}(gk),xk={splitLine:function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=S(s)?s:[s];for(var l=i.coordinateSystem.getRect(),u=r.isHorizontal(),h=0,p=r.getTicksCoords({tickModel:o}),f=[],d=[],g=a.getLineStyle(),y=0;y<p.length;y++){var v=r.toGlobalCoord(p[y].coord);u?(f[0]=v,f[1]=l.y,d[0]=v,d[1]=l.y+l.height):(f[0]=l.x,f[1]=v,d[0]=l.x+l.width,d[1]=v);var m=h++%s.length,_=p[y].tickValue;e.add(new sb({anid:null!=_?"line_"+p[y].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:d[0],y2:d[1]},style:c({stroke:s[m]},g),silent:!0}))}}},minorSplitLine:function(t,e,n,i){var r=n.axis,o=n.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=r.isHorizontal(),u=r.getMinorTicksCoords();if(u.length)for(var c=[],h=[],p=a.getLineStyle(),f=0;f<u.length;f++)for(var d=0;d<u[f].length;d++){var g=r.toGlobalCoord(u[f][d].coord);l?(c[0]=g,c[1]=s.y,h[0]=g,h[1]=s.y+s.height):(c[0]=s.x,c[1]=g,h[0]=s.x+s.width,h[1]=g),e.add(new sb({anid:"minor_line_"+u[f][d].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:p,silent:!0}))}},splitArea:function(t,e,n,i){Xd(t,e,n,i)}},bk=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="xAxis",n}(_k),wk=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=bk.type,e}return e(n,t),n.type="yAxis",n}(_k),Sk=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return e(n,t),n.prototype.render=function(t){this.group.removeAll(),t.get("show")&&this.group.add(new J_({shape:t.coordinateSystem.getRect(),style:c({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},n.type="grid",n}(FS),Ck={offset:0};zp(qd);var Tk=function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0},Mk=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.layoutMode={type:"box",ignoreSize:!0},e}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},n.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},n.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),S(e)&&g(e,function(t,i){T(t)&&(t={type:t}),e[i]=s(t,Tk(n,t.type))})},n.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},n.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries(function(i){var r=i.name;n.push(r);var o;if(i.legendVisualProvider){var a=i.legendVisualProvider,s=a.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(s)),s.length?e=e.concat(s):o=!0}else o=!0;o&&ti(i)&&e.push(i.name)}),this._availableNames=n;var i=this.get("data")||e,r=y(i,function(t){return("string"==typeof t||"number"==typeof t)&&(t={name:t}),new Xb(t,this,this.ecModel)},this);this._data=r},n.prototype.getData=function(){return this._data},n.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&g(this._data,function(t){e[t.get("name")]=!1});e[t]=!0},n.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},n.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},n.prototype.allSelect=function(){var t=this._data,e=this.option.selected;g(t,function(t){e[t.get("name",!0)]=!0})},n.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;g(t,function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]})},n.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&h(this._availableNames,t)>=0},n.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},n.type="legend.plain",n.dependencies=["series"],n.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,symbolRotate:"inherit",inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",decal:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},n}(ww),Ik=w,kk=g,Dk=gm,Ak=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.newlineDisabled=!1,e}return e(n,t),n.prototype.init=function(){this.group.add(this._contentGroup=new Dk),this.group.add(this._selectorGroup=new Dk),this._isFirstRender=!0},n.prototype.getContentGroup=function(){return this._contentGroup},n.prototype.getSelectorGroup=function(){return this._selectorGroup},n.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),p=xs(l,u,h),f=this.layoutInner(t,r,p,i,a,s),d=xs(c({width:f.width,height:f.height},l),u,h);this.group.x=d.x-f.x,this.group.y=d.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Zd(f,t))}},n.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},n.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=U(),u=e.get("selectedMode"),c=[];n.eachRawSeries(function(t){!t.get("legendHoverLink")&&c.push(t.id)}),kk(e.getData(),function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new Dk;return h.newline=!0,void s.add(h)}var p=n.getSeriesByName(a)[0];if(!l.get(a))if(p){var f=p.getData(),d=f.getVisual("legendLineStyle")||{},g=f.getVisual("legendIcon"),y=f.getVisual("style"),v=this._createItem(p,a,o,r,e,t,d,y,g,u);v.on("click",Ik(Jd,a,null,i,c)).on("mouseover",Ik(tg,p.name,null,i,c)).on("mouseout",Ik(eg,p.name,null,i,c)),l.set(a,!0)}else n.eachRawSeries(function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var h=s.indexOfName(a),p=s.getItemVisual(h,"style"),f=s.getItemVisual(h,"legendIcon"),d=ie(p.fill);d&&0===d[3]&&(d[3]=.2,p.fill=pe(d,"rgba"));this._createItem(n,a,o,r,e,t,{},p,f,u).on("click",Ik(Jd,null,a,i,c)).on("mouseover",Ik(tg,null,a,i,c)).on("mouseout",Ik(eg,null,a,i,c)),l.set(a,!0)}},this)},this),r&&this._createSelector(r,e,i,o,a)},n.prototype._createSelector=function(t,e,n){var i=this.getSelectorGroup();kk(t,function(t){var r=t.type,o=new ex({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});i.add(o),Ma(o,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),vo(o)})},n.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u){var c=t.visualDrawType,h=r.get("itemWidth"),p=r.get("itemHeight"),f=r.isSelected(e),d=i.get("symbolRotate"),g=i.get("icon");l=g||l||"roundRect";var y=r.getModel("lineStyle"),v=$d(l,i,y,a,s,c,f),m=new Dk,_=i.getModel("textStyle");if("function"!=typeof t.getLegendIcon||g&&"inherit"!==g){var x="inherit"===g&&t.getData().getVisual("symbol")?"inherit"===d?t.getData().getVisual("symbolRotate"):d:0;m.add(Kd({itemWidth:h,itemHeight:p,icon:l,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle}))}else m.add(t.getLegendIcon({itemWidth:h,itemHeight:p,icon:l,iconRotate:d,itemStyle:v.itemStyle,lineStyle:v.lineStyle}));var b="left"===o?h+5:-5,w=o,S=r.get("formatter"),C=e;"string"==typeof S&&S?C=S.replace("{name}",null!=e?e:""):"function"==typeof S&&(C=S(e));var T=i.get("inactiveColor");m.add(new ex({style:ka(_,{text:C,x:b,y:p/2,fill:f?_.getTextColor():T,align:w,verticalAlign:"middle"})}));var M=new J_({shape:m.getBoundingRect(),invisible:!0}),I=i.getModel("tooltip");return I.get("show")&&Sa({el:M,componentModel:r,itemName:e,itemTooltipOption:I.option}),m.add(M),m.eachChild(function(t){t.silent=!0}),M.silent=!u,this.getContentGroup().add(m),vo(m),m.__legendDataIndex=n,m},n.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();xw(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){xw("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],p=t.get("selectorButtonGap",!0),f=t.getOrient().index,d=0===f?"width":"height",g=0===f?"height":"width",y=0===f?"y":"x";"end"===o?h[f]+=l[d]+p:u[f]+=c[d]+p,h[1-f]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[d]=l[d]+p+c[d],v[g]=Math.max(l[g],c[g]),v[y]=Math.min(0,c[y]+h[1-f]),v}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},n.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},n.type="legend.plain",n}(FS),Ok=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},n.prototype.init=function(e,n,i){var r=Ss(e);t.prototype.init.call(this,e,n,i),ag(this,e,r)},n.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),ag(this,this.option,e)},n.type="legend.scroll",n.defaultOption=Na(Mk.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}),n}(Mk),Pk=gm,Lk=["width","height"],Rk=["x","y"],Ek=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.newlineDisabled=!0,e._currentIndex=0,e}return e(n,t),n.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new Pk),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Pk)},n.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},n.prototype.renderInner=function(e,n,i,r,o,a,s){function l(t,e){var i=t+"DataIndex",o=ma(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:Dy(u._pageGo,u,i,n,r)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});o.name=t,c.add(o)}var u=this;t.prototype.renderInner.call(this,e,n,i,r,o,a,s);var c=this._controllerGroup,h=n.get("pageIconSize",!0),p=S(h)?h:[h,h];l("pagePrev",0);var f=n.getModel("pageTextStyle");c.add(new ex({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),l("pageNext",1)},n.prototype.layoutInner=function(t,e,n,i,r,o){var s=this.getSelectorGroup(),l=t.getOrient().index,u=Lk[l],c=Rk[l],h=Lk[1-l],p=Rk[1-l];r&&xw("horizontal",s,t.get("selectorItemGap",!0));var f=t.get("selectorButtonGap",!0),d=s.getBoundingRect(),g=[-d.x,-d.y],y=a(n);r&&(y[u]=n[u]-d[u]-f);var v=this._layoutContentAndController(t,i,y,l,u,h,p,c);if(r){if("end"===o)g[l]+=v[u]+f;else{var m=d[u]+f;g[l]-=m,v[c]-=m}v[u]+=d[u]+f,g[1-l]+=v[p]+v[h]/2-d[h]/2,v[h]=Math.max(v[h],d[h]),v[p]=Math.min(v[p],d[p]+g[1-l]),s.x=g[0],s.y=g[1],s.markRedraw()}return v},n.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;xw(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),xw("horizontal",c,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),p=c.getBoundingRect(),f=this._showController=h[r]>n[r],d=[-h.x,-h.y];e||(d[i]=l[s]);var g=[0,0],y=[-p.x,-p.y],v=B(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(f){"end"===t.get("pageButtonPosition",!0)?y[i]+=n[r]-p[r]:g[i]+=p[r]+v}y[1-i]+=h[o]/2-p[o]/2,l.setPosition(d),u.setPosition(g),c.setPosition(y);var m={x:0,y:0};if(m[r]=f?n[r]:h[r],m[o]=Math.max(h[o],p[o]),m[a]=Math.min(0,p[a]+y[1-i]),u.__rectSize=n[r],f){var _={x:0,y:0};_[r]=Math.max(n[r]-p[r]-v,0),_[o]=m[o],u.setClipPath(new J_({shape:_})),u.__rectSize=_[r]}else c.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(t);return null!=x.pageIndex&&Yo(l,{x:x.contentPosition[0],y:x.contentPosition[1]},f?t:null),this._updatePageInfoView(t,x),m},n.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},n.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;g(["pagePrev","pageNext"],function(i){var r=i+"DataIndex",o=null!=e[r],a=n.childOfName(i);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")});var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",T(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},n.prototype._getPageInfo=function(t){function e(t){if(t){var e=t.getBoundingRect(),n=e[l]+t[l];return{s:n,e:n+e[s],i:t.__legendDataIndex}}}function n(t,e){return t.e>=e&&t.s<=e+o}var i=t.get("scrollDataIndex",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,a=t.getOrient().index,s=Lk[a],l=Rk[a],u=this._findTargetItemIndex(i),c=r.children(),h=c[u],p=c.length,f=p?1:0,d={contentPosition:[r.x,r.y],pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var g=e(h);d.contentPosition[a]=-g.s;for(var y=u+1,v=g,m=g,_=null;p>=y;++y)_=e(c[y]),(!_&&m.e>v.s+o||_&&!n(_,v.s))&&(v=m.i>v.i?m:_)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=v.i),++d.pageCount),m=_;for(var y=u-1,v=g,m=g,_=null;y>=-1;--y)_=e(c[y]),_&&n(m,_.s)||!(v.i<m.i)||(m=v,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=v.i),++d.pageCount,++d.pageIndex),v=_;return d},n.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n;return this.getContentGroup().eachChild(function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)}),null!=e?e:n},n.type="legend.scroll",n}(Ak);zp(lg);var Nk=oi(),Bk=a,zk=Dy,Fk=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=w(ug,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new gm,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);fg(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=Gd(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(){},t.prototype.createPointerEl=function(t,e){var n=e.pointer;if(n){var i=Nk(t).pointerEl=new Ob[n.type](Bk(e.pointer));t.add(i)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=Nk(t).labelEl=new ex(Bk(e.label));t.add(r),hg(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=Nk(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=Nk(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),hg(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,r=e.getModel("handle"),o=e.get("status");if(!r.get("show")||!o||"hide"===o)return i&&n.remove(i),void(this._handle=null);var a;this._handle||(a=!0,i=this._handle=ma(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Yy(t.event)},onmousedown:zk(this._onHandleDragMove,this,0,0),drift:zk(this._onHandleDragMove,this),ondragend:zk(this._onHandleDragEnd,this)}),n.add(i)),fg(i,e,!1),i.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=r.get("size");S(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,bu(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,a)}},t.prototype._moveHandleToValue=function(t,e){ug(this._axisPointerModel,!e&&this._moveAnimation,this._handle,pg(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(pg(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(pg(i)),Nk(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._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}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}(),Vk=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=wg(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=dg(i),h=Hk[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}_g(e,t,_d(a.model,n),n,i,r)},n.prototype.getHandleTransform=function(t,e,n){var i=_d(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=mg(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},n.prototype.updateHandleTransform=function(t,e,n){var i=n.axis,r=i.grid,o=i.getGlobalExtent(!0),a=wg(r,i).getOtherAxis(i).getGlobalExtent(),s="x"===i.dim?0:1,l=[t.x,t.y];l[s]+=e[s],l[s]=Math.min(o[1],l[s]),l[s]=Math.max(o[0],l[s]);var u=(a[1]+a[0])/2,c=[u,u];c[s]=l[s];var h=[{verticalAlign:"middle"},{align:"center"}];return{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:c,tooltipOption:h[s]}},n}(Fk),Hk={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:xg([e,n[0]],[e,n[1]],Sg(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:bg([e-i/2,n[0]],[i,r],Sg(t))}}},Gk=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="axisPointer",n.defaultOption={show:"auto",zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},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}},n}(ww),Wk=oi(),jk=g,Uk=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Cg("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},n.prototype.remove=function(t,e){Ag("axisPointer",e)},n.prototype.dispose=function(t,e){Ag("axisPointer",e)},n.type="axisPointer",n}(FS),Xk=oi(),Yk=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type="tooltip",n.dependencies=["axisPointer"],n.defaultOption={zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},n}(ww),qk=Ug(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Zk=Ug(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),$k=Xg(Zk,"transition"),Kk=Xg(qk,"transform"),Jk="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(gy.transform3dSupported?"will-change:transform;":""),Qk=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,gy.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;ty(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler;It(r.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=Yg(e,"position"),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative"),t.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=Jk+Qg(t,!this._firstShow,this._longHide)+Kg(r[0],r[1],!0)+"border-color:"+ms(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null==t)return void(o.innerHTML="");var a="";if(T(r)&&"item"===n.get("trigger")&&!jg(n)&&(a=Zg(n,i,r)),T(t))o.innerHTML=t+a;else if(t){o.innerHTML="",S(t)||(t=[t]);for(var s=0;s<t.length;s++)O(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(ty(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style;g(Kg(n[0],n[1]),function(t){i[t[0]]=t[1]})}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",gy.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Dy(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}(),tD=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),iy(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){t.get("alwaysShowContent")&&this._moveIfResized()},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i){k(t)&&Fn(""),this.el&&this._zr.remove(this.el);var r=n.getModel("textStyle");this.el=new ex({style:{rich:e.richTextStyles,text:t,lineHeight:22,backgroundColor:n.get("backgroundColor"),borderRadius:n.get("borderRadius"),borderWidth:1,borderColor:i,shadowColor:n.get("shadowColor"),shadowBlur:n.get("shadowBlur"),shadowOffsetX:n.get("shadowOffsetX"),shadowOffsetY:n.get("shadowOffsetY"),textShadowColor:r.get("textShadowColor"),textShadowBlur:r.get("textShadowBlur")||0,textShadowOffsetX:r.get("textShadowOffsetX")||0,textShadowOffsetY:r.get("textShadowOffsetY")||0,fill:n.get(["textStyle","color"]),padding:iu(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),this._zr.add(this.el);var o=this;this.el.on("mouseover",function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0}),this.el.on("mouseout",function(){o._enterable&&o._show&&o.hideLater(o._hideDelay),o._inContent=!1})},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=ny(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;iy(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=ey(r.borderWidth||0),a=ny(r);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Dy(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}(),eD=Dy,nD=g,iD=mn,rD=new J_({shape:{x:-1,y:-1,width:2,height:2}}),oD=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(t,e){if(!gy.node){var n=t.getComponent("tooltip"),i=n.get("renderMode");this._renderMode=hi(i),this._tooltipContent="richText"===this._renderMode?new tD(e):new Qk(e.getDom(),e,{appendToBody:n.get("appendToBody",!0)})}},n.prototype.render=function(t,e,n){if(!gy.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},n.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");Cg("itemTooltip",this._api,eD(function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))},this))},n.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},n.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!gy.node){var r=oy(i,n);this._ticket="";var o=i.dataByCoordSys,a=cy(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=rD;l.x=i.x,l.y=i.y,l.update(),rx(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=Og(i,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},n.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(oy(i,n))},n.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s){if("axis"===ry([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},n.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){this._lastDataByCoordSys=null;var r,o;Fu(n,function(t){return null!=rx(t).dataIndex?(r=t,!0):null!=rx(t).tooltipConfig?(o=t,!0):void 0},!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},n.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Dy(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},n.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=ry([e.tooltipOption],i),a=this._renderMode,s=[],l=Xl("section",{blocks:[],noHeader:!0}),u=[],c=new NS;nD(t,function(t){nD(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var r=vg(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),o=Xl("section",{header:r,noHeader:!G(r),sortBlocks:!0,blocks:[]});l.blocks.push(o),g(t.seriesDataIndices,function(l){var h=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=h.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=kp(e.axis,{value:i}),f.axisValueLabel=r,f.marker=c.makeTooltipMarker("item",ms(f.color),a);var d=Ml(h.formatTooltip(p,!0,null));d.markupFragment&&o.blocks.push(d.markupFragment),d.markupText&&u.push(d.markupText),s.push(f)}})}})}),l.blocks.reverse(),u.reverse();var h=e.position,p=o.get("order"),f=Zl(l,c,a,p,n.get("useUTC"),o.get("textStyle"));f&&u.unshift(f);var d="richText"===a?"\n\n":"<br/>",y=u.join(d);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,y,s,Math.random()+"",r[0],r[1],h,null,c)})},n.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=rx(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),h=this._renderMode,p=t.positionDefault,f=ry([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),d=f.get("trigger");if(null==d||"item"===d){var g=s.getDataParams(l,u),y=new NS;g.marker=y.makeTooltipMarker("item",ms(g.color),h);var v=Ml(s.formatTooltip(l,!1,u)),m=f.get("order"),_=v.markupFragment?Zl(v.markupFragment,y,h,m,i.get("useUTC"),f.get("textStyle")):v.markupText,x="item_"+s.name+"_"+l;this._showOrMove(f,function(){this._showTooltipContent(f,_,g,x,t.offsetX,t.offsetY,t.position,t.target,y)}),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},n.prototype._showComponentItemTooltip=function(t,e,n){var i=rx(e),r=i.tooltipConfig,o=r.option||{};if(T(o)){var s=o;o={content:s,formatter:s}}var l=[o],u=this._ecModel.getComponent(i.componentMainType,i.componentIndex);u&&l.push(u),l.push({formatter:o.content});var c=t.positionDefault,h=ry(l,this._tooltipModel,c?{position:c}:null),p=h.get("content"),f=Math.random()+"",d=new NS;this._showOrMove(h,function(){var n=a(h.get("formatterParams")||{});this._showTooltipContent(h,p,n,f,t.offsetX,t.offsetY,t.position,e,d)}),n({type:"showTip",from:this.uid})},n.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,c=t.get("formatter");a=a||t.get("position");var h=e,p=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")),f=p.color;if(c)if(T(c)){var d=t.ecModel.get("useUTC"),g=S(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,y&&(h=Ua(g.axisValue,h,d)),h=ds(h,n,!0)}else if(C(c)){var v=eD(function(e,i){e===this._ticket&&(u.setContent(i,l,t,f,a),this._updatePosition(t,a,r,o,u,n,s))},this);this._ticket=i,h=c(n,i,v)}else h=c;u.setContent(h,l,t,f,a),u.show(t,f),this._updatePosition(t,a,r,o,u,n,s)}},n.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||S(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:S(e)?void 0:{color:i||e.color||e.borderColor}},n.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),c=t.get("align"),h=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),C(e)&&(e=e([n,i],o,r.el,p,{viewSize:[s,l],contentSize:u.slice()})),S(e))n=iD(e[0],s),i=iD(e[1],l);else if(k(e)){var f=e;f.width=u[0],f.height=u[1];var d=xs(f,{width:s,height:l});n=d.x,i=d.y,c=null,h=null}else if(T(e)&&a){var g=ly(e,p,u,t.get("borderWidth"));n=g[0],i=g[1]}else{var g=ay(n,i,r,s,l,c?null:20,h?null:20);n=g[0],i=g[1]}if(c&&(n-=uy(c)?u[0]/2:"right"===c?u[0]:0),h&&(i-=uy(h)?u[1]/2:"bottom"===h?u[1]:0),jg(t)){var g=sy(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},n.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&nD(n,function(n,o){var a=n.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];(r=r&&a.length===l.length)&&nD(a,function(t,n){var o=l[n]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,r&&nD(a,function(t,e){var n=s[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}),i&&g(t.seriesDataIndices,function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},n.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},n.prototype.dispose=function(t,e){gy.node||(this._tooltipContent.dispose(),Ag("itemTooltip",e))},n.type="tooltip",n}(FS);zp(hy),t.version="5.2.0",t.dependencies=gT,t.PRIORITY=_T,t.init=th,t.connect=eh,t.disConnect=nh,t.disconnect=sM,t.dispose=ih,t.getInstanceByDom=rh,t.getInstanceById=oh,t.registerTheme=ah,t.registerPreprocessor=sh,t.registerProcessor=lh,t.registerPostInit=uh,t.registerPostUpdate=ch,t.registerUpdateLifecycle=hh,t.registerAction=ph,t.registerCoordinateSystem=fh,t.getCoordinateSystemDimensions=dh,t.registerLayout=gh,t.registerVisual=yh,t.registerLoading=mh,t.setCanvasCreator=_h,t.registerMap=xh,t.getMap=bh,t.registerTransform=uM,t.dataTool=vM,t.registerLocale=Ba,t.zrender=xm,t.matrix=Hv,t.vector=By,t.zrUtil=Py,t.color=_v,t.helper=iI,t.number=aI,t.time=sI,t.graphic=lI,t.format=uI,t.util=cI,t.List=DM,t.ComponentModel=ww,t.ComponentView=FS,t.SeriesModel=zS,t.ChartView=GS,t.extendComponentModel=ef,t.extendComponentView=nf,t.extendSeriesModel=rf,t.extendChartView=of,t.throttle=xu,t.use=zp,t.parseGeoJSON=jc,t.parseGeoJson=jc,t.env=gy,t.Model=Xb,t.Axis=fI,t.innerDrawElementOnCanvas=fc})},1947:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"chart",staticClass:"chart"})},r=[];i._withStripped=!0},1948:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"chartContainer"},[n("div",{staticClass:"dataDisplay"},[n("div",{staticClass:"selectAge"},[n("div",{staticClass:"leftSelectAge"},[n("span",{staticClass:"agetext"},[t._v("至")]),t._v(" "),n("div",{class:["selectInputAge","agetext",{isCps:t.isCps}],on:{click:t.showAgePicker}},[n("div",{staticClass:"selectedAgeText"},[t._v("\n "+t._s(t.xAxisData[t.selectIndex])+"岁\n ")]),t._v(" "),n("i",{staticClass:"dropDown"})]),t._v(" "),n("span",{staticClass:"agetext"},[t._v("可获得")])]),t._v(" "),n("div",{class:["benefitShowBtn",{isCps:t.isCps}],on:{click:t.showCostTable}},[t._v("\n 利益演示\n ")])]),t._v(" "),1===t.showType2Length?[t._l(t.chartConfig,function(e,i){return[2===e.showType?n("div",{key:i,staticClass:"specialShowBox"},[n("div",{staticClass:"numShow"},[n("div",{staticClass:"num",style:{color:e.boxConfig.titleColor}},[t._v("\n "+t._s(Math.round(100*t.pureDataSource[t.selectIndex][i])/100)+"\n ")]),t._v(" "),n("div",{staticClass:"colorBlock",style:{background:e.boxConfig.blockColor}})]),t._v(" "),n("div",{staticClass:"titleShow"},[n("div",{staticClass:"text"},[n("span",[t._v(t._s(e.titleName))]),t._v(" "),e.problemText?n("i",{staticClass:"question",on:{click:function(n){return t.showProblemDialog(e.problemText)}}}):t._e()]),t._v(" "),e.tipsText?n("div",{staticClass:"multipleShow",style:{color:e.boxConfig.tipsColor}},[t._v("\n "+t._s(e.tipsText[0])),n("span",{staticClass:"multipleNum"},[t._v(t._s(e.expressionData[t.selectIndex]))]),t._v(t._s(e.tipsText[1])+"\n ")]):t._e()])]):t._e()]})]:[n("div",{staticClass:"textShow"},[t._l(t.chartConfig,function(e,i){return[2===e.showType?n("div",{key:i,staticClass:"textShowBox"},[n("div",{staticClass:"iconblock"},[n("i",{staticClass:"iconColorBlock",style:{background:e.boxConfig.iconColor}})]),t._v(" "),n("div",{staticClass:"text"},[n("span",[t._v(t._s(e.titleName))]),t._v(" "),e.problemText?n("i",{staticClass:"question",on:{click:function(n){return t.showProblemDialog(e.problemText)}}}):t._e()])]):t._e()]})],2),t._v(" "),n("div",{staticClass:"moneyShow"},[t._l(t.chartConfig,function(e,i){return[2===e.showType?n("div",{key:i,staticClass:"moneyShowBox"},[n("div",{staticClass:"numShow"},[n("div",{ref:"num",refInFor:!0,staticClass:"num",style:{color:e.boxConfig.titleColor}},[t._v("\n "+t._s(Math.round(100*t.pureDataSource[t.selectIndex][i])/100)+"\n ")]),t._v(" "),n("div",{ref:"colorBlock",refInFor:!0,staticClass:"colorBlock",style:{background:e.boxConfig.blockColor}})]),t._v(" "),e.tipsText&&e.expressionData?n("div",{staticClass:"multipleShow",style:{color:e.boxConfig.tipsColor}},[t._v("\n "+t._s(e.tipsText[0])),n("span",{staticClass:"multipleNum"},[t._v(t._s(e.expressionData[t.selectIndex]))]),t._v(t._s(e.tipsText[1])+"\n ")]):t._e()]):t._e()]})],2)]],2),t._v(" "),n("div",{class:["flowerTexture",{isCps:t.isCps}]}),t._v(" "),n("chart",{attrs:{chartConfig:t.chartConfig,dataSource:t.dataSource,index:t.selectIndex},on:{setIndex:t.setSelectIndex}})],1)},r=[];i._withStripped=!0},1949:function(t,e,n){"use strict";function i(t){s||n(1950)}var r=n(1161),o=n(1951),a=n(8),s=!1,l=i,u=Object(a.a)(r.a,o.a,o.b,!1,l,"data-v-4eebaa8b",null);u.options.__file="src\\components\\GoldFinanceChart\\src\\components\\costTable.vue",e.a=u.exports},1950:function(t,e){},1951:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"layer-finance",on:{touchmove:t.preventMove}},[n("div",{staticClass:"layer-finance-mask",on:{click:function(e){return e.stopPropagation(),t.cancel(e)}}}),t._v(" "),n("div",{staticClass:"layer-finance-box layer_animate cost iphonex_padding"},[n("span",{staticClass:"layer-close",on:{click:function(e){return e.stopPropagation(),t.cancel(e)}}}),t._v(" "),n("p",{staticClass:"main-title"},[t._v("\n 保单利益演示表\n ")]),t._v(" "),n("p",{staticClass:"cost-title"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("p",{staticClass:"cost-table-head"},[t._v("\n 基于用户所选信息的保单利益演示如下:\n ")]),t._v(" "),t.tables.cols&&t.tables.rows&&t.tables.rows.length?[n("div",[n("div",{staticClass:"table-tr thead"},[t._l(t.tables.cols,function(e,i){return[t.showCol(i)?n("span",{key:"head-"+i,staticClass:"table-item",style:t.styleOption},[t._v("\n "+t._s(e)+"\n ")]):t._e()]})],2),t._v(" "),n("div",{staticClass:"cost-scroll"},[n("table",{staticClass:"table-body"},[t.tables.rows&&t.tables.rows.length?n("tbody",t._l(t.tables.rows,function(e,i){return n("tr",{key:"tr-"+i,staticClass:"table-tr "},[t._l(e,function(e,r){return[t.showCol(r)?n("td",{key:"td-"+i+"-"+r,staticClass:"table-item"},[t._v("\n "+t._s(Math.round(100*e)/100)+"\n ")]):t._e()]})],2)}),0):t._e()])])])]:[n("div",{staticClass:"no-data"},[t._v("\n 暂时无法展示\n ")])]],2)])},r=[];i._withStripped=!0},1952:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isShowChart?n("div",[n("benefit",{attrs:{renderData:t.renderData,theme:t.realTheme,isCps:t.isCps},on:{showCostTable:t.showCostTable}}),t._v(" "),n("gold-cost-table",{attrs:{visible:t.costTableVisible,tables:t.tables,theme:t.realTheme},on:{cancelCost:function(e){t.costTableVisible=!1}}})],1):t._e()},r=[];i._withStripped=!0},2:function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},20:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},200:function(t,e,n){"use strict";function i(t,e){if(t.findIndex)return t.findIndex(e);var n=-1;return t.some(function(t,i,r){var o=e.call(this,t,i,r);if(o)return n=i,o}),n}function r(t){return t?JSON.parse(y()(t)):t}function o(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function a(t){return"[object String]"===Object.prototype.toString.call(t)}function s(t){return"[object Number]"===Object.prototype.toString.call(t)}function l(t){return"[object Object]"===Object.prototype.toString.call(t)}function u(t){return void 0!==t&&null!==t}function c(t){return"function"==typeof t}function h(t,e,n){function i(e){var n=y,i=v;return y=v=void 0,w=e,_=t.apply(i,n)}function r(t,e){return M?(window.cancelAnimationFrame(x),window.requestAnimationFrame(t)):setTimeout(t,e)}function o(t){if(M)return window.cancelAnimationFrame(t);clearTimeout(t)}function a(t){return w=t,x=r(c,e),S?i(t):_}function s(t){var n=t-b,i=t-w,r=e-n;return C?Math.min(r,m-i):r}function u(t){var n=t-b,i=t-w;return void 0===b||n>=e||n<0||C&&i>=m}function c(){var t=Date.now();if(u(t))return h(t);x=r(c,s(t))}function h(t){return x=void 0,T&&y?i(t):(y=v=void 0,_)}function p(){void 0!==x&&o(x),w=0,y=b=v=x=void 0}function f(){return void 0===x?_:h(Date.now())}function d(){return void 0!==x}function g(){for(var t=Date.now(),n=u(t),o=arguments.length,s=Array(o),l=0;l<o;l++)s[l]=arguments[l];if(y=s,v=this,b=t,n){if(void 0===x)return a(b);if(C)return x=r(c,e),i(b)}return void 0===x&&(x=r(c,e)),_}var y=void 0,v=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=0,S=!1,C=!1,T=!0,M=!e&&0!==e&&"function"==typeof window.requestAnimationFrame;if("function"!=typeof t)throw new TypeError("Expected a function");return e=+e||0,l(n)&&(S=!!n.leading,C="maxWait"in n,m=C?Math.max(+n.maxWait||0,e):m,T="trailing"in n?!!n.trailing:T),g.cancel=p,g.flush=f,g.pending=d,g}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e=e||window.location.href;var n=new RegExp("(\\?|#|&)"+t+"=([^&#]*)(&|#|$)"),i=e.match(n);return decodeURIComponent(i?i[2]:"")}n.d(e,"j",function(){return P}),e.c=i,e.b=r,e.e=o,e.i=a,e.h=s,e.f=u,e.g=c,e.a=h,e.d=p;var f=n(65),d=(n.n(f),n(163)),g=(n.n(d),n(89)),y=n.n(g),v="undefined"!=typeof window,m=v&&window.navigator.userAgent.toLowerCase(),_=m&&/msie|trident/.test(m),x=m&&m.indexOf("msie 9.0")>0,b=m&&m.indexOf("edge/")>0,w=m&&m.indexOf("android")>0,S=m&&/iphone|ipad|ipod|ios/.test(m),C=m&&/chrome\/\d+/.test(m)&&!b,T=m&&/MicroMessenger/i.test(m),M=m&&/wxwork/i.test(m),I=m&&/mucxiaoyusan/i.test(m),k=m&&/muckacabao/i.test(m),D=m&&/mucyanxuan/i.test(m),A=I||k,O=m&&/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(m),P={isIE:_,isMobile:O,isIE9:x,isEdge:b,isAndroid:w,isIOS:S,isChrome:C,isWx:T,isWxWork:M,isApp:A,isXysApp:I,isKcbApp:k,isYxApp:D};/MucWebAutoTester/.test(window.navigator.userAgent)},21:function(t,e,n){var i=n(6),r=n(0).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},22:function(e,n){e.exports=t},23:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},24:function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},25:function(t,e,n){var i=n(9).f,r=n(7),o=n(1)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},26:function(t,e,n){var i=n(37),r=n(28);t.exports=Object.keys||function(t){return i(t,r)}},27:function(t,e,n){var i=n(2),r=n(0),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n(18)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},28:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},29:function(t,e,n){var i=n(16);t.exports=function(t){return Object(i(t))}},3:function(t,e,n){t.exports=!n(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},30:function(t,e,n){var i=n(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},31:function(t,e,n){var i=n(15),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},33:function(t,e,n){"use strict";var i=n(18),r=n(10),o=n(46),a=n(5),s=n(11),l=n(52),u=n(25),c=n(54),h=n(1)("iterator"),p=!([].keys&&"next"in[].keys()),f=function(){return this};t.exports=function(t,e,n,d,g,y,v){l(n,e,d);var m,_,x,b=function(t){if(!p&&t in T)return T[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",S="values"==g,C=!1,T=t.prototype,M=T[h]||T["@@iterator"]||g&&T[g],I=M||b(g),k=g?S?b("entries"):I:void 0,D="Array"==e?T.entries||M:M;if(D&&(x=c(D.call(new t)))!==Object.prototype&&x.next&&(u(x,w,!0),i||"function"==typeof x[h]||a(x,h,f)),S&&M&&"values"!==M.name&&(C=!0,I=function(){return M.call(this)}),i&&!v||!p&&!C&&T[h]||a(T,h,I),s[e]=I,s[w]=f,g)if(m={values:S?I:b("values"),keys:y?I:b("keys"),entries:k},v)for(_ in m)_ in T||o(T,_,m[_]);else r(r.P+r.F*(p||C),e,m);return m}},34:function(t,e,n){var i=n(6);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},36:function(t,e,n){t.exports=!n(3)&&!n(13)(function(){return 7!=Object.defineProperty(n(21)("div"),"a",{get:function(){return 7}}).a})},37:function(t,e,n){var i=n(7),r=n(12),o=n(41)(!1),a=n(19)("IE_PROTO");t.exports=function(t,e){var n,s=r(t),l=0,u=[];for(n in s)n!=a&&i(s,n)&&u.push(n);for(;e.length>l;)i(s,n=e[l++])&&(~o(u,n)||u.push(n));return u}},38:function(t,e,n){var i=n(0).document;t.exports=i&&i.documentElement},4:function(t,e,n){var i=n(6);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},40:function(t,e,n){var i=n(14),r=n(1)("toStringTag"),o="Arguments"==i(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),r))?n:o?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}},41:function(t,e,n){var i=n(12),r=n(31),o=n(42);t.exports=function(t){return function(e,n,a){var s,l=i(e),u=r(l.length),c=o(a,u);if(t&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},42:function(t,e,n){var i=n(15),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},43:function(t,e,n){"use strict";var i=n(51)(!0);n(33)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},44:function(t,e){e.f={}.propertyIsEnumerable},45:function(t,e,n){var i=n(4),r=n(53),o=n(28),a=n(19)("IE_PROTO"),s=function(){},l=function(){var t,e=n(21)("iframe"),i=o.length;for(e.style.display="none",n(38).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;i--;)delete l.prototype[o[i]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=i(t),n=new s,s.prototype=null,n[a]=t):n=l(),void 0===e?n:r(n,e)}},46:function(t,e,n){t.exports=n(5)},47:function(t,e,n){n(63);for(var i=n(0),r=n(5),o=n(11),a=n(1)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var u=s[l],c=i[u],h=c&&c.prototype;h&&!h[a]&&r(h,a,u),o[u]=o.Array}},49:function(t,e,n){var i=n(40),r=n(1)("iterator"),o=n(11);t.exports=n(2).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[i(t)]}},5:function(t,e,n){var i=n(9),r=n(23);t.exports=n(3)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},50:function(t,e){e.f=Object.getOwnPropertySymbols},51:function(t,e,n){var i=n(15),r=n(16);t.exports=function(t){return function(e,n){var o,a,s=String(r(e)),l=i(n),u=s.length;return l<0||l>=u?t?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},52:function(t,e,n){"use strict";var i=n(45),r=n(23),o=n(25),a={};n(5)(a,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),o(t,e+" Iterator")}},53:function(t,e,n){var i=n(9),r=n(4),o=n(26);t.exports=n(3)?Object.defineProperties:function(t,e){r(t);for(var n,a=o(e),s=a.length,l=0;s>l;)i.f(t,n=a[l++],e[n]);return t}},54:function(t,e,n){var i=n(7),r=n(29),o=n(19)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},57:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},63:function(t,e,n){"use strict";var i=n(64),r=n(57),o=n(11),a=n(12);t.exports=n(33)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,n):"values"==e?r(0,t[n]):r(0,[n,t[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},64:function(t,e){t.exports=function(){}},65:function(t,e,n){t.exports={default:n(67),__esModule:!0}},67:function(t,e,n){n(68),t.exports=n(2).Object.assign},68:function(t,e,n){var i=n(10);i(i.S+i.F,"Object",{assign:n(69)})},69:function(t,e,n){"use strict";var i=n(3),r=n(26),o=n(50),a=n(44),s=n(29),l=n(30),u=Object.assign;t.exports=!u||n(13)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=i})?function(t,e){for(var n=s(t),u=arguments.length,c=1,h=o.f,p=a.f;u>c;)for(var f,d=l(arguments[c++]),g=h?r(d).concat(h(d)):r(d),y=g.length,v=0;y>v;)f=g[v++],i&&!p.call(d,f)||(n[f]=d[f]);return n}:u},7:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},70:function(t,e){},8:function(t,e,n){"use strict";function i(t,e,n,i,r,o,a,s){t=t||{};var l=typeof t.default;"object"!==l&&"function"!==l||(t=t.default);var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId=o);var c;if(a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):r&&(c=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),c)if(u.functional){u._injectStyles=c;var h=u.render;u.render=function(t,e){return c.call(e),h(t,e)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,c):[c]}return{exports:t,options:u}}e.a=i},89:function(t,e,n){t.exports={default:n(93),__esModule:!0}},9:function(t,e,n){var i=n(4),r=n(36),o=n(34),a=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},93:function(t,e,n){var i=n(2),r=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}}})});
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/BScroll/index.js"),require("@xysfe/actui/es/assets/img/redCircle.png"),require("@xysfe/actui/es/assets/img/purpleCircle.png"),require("@xysfe/actui/es/assets/img/grayCircle.png"),require("@xysfe/actui/es/assets/img/cps-orangeCircle.png"),require("@xysfe/actui/es/assets/img/cps-redCircle.png"),require("@xysfe/actui/es/assets/img/cps-grayCircle.png")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/create/index.js","@xysfe/actui/es/BScroll/index.js","@xysfe/actui/es/assets/img/redCircle.png","@xysfe/actui/es/assets/img/purpleCircle.png","@xysfe/actui/es/assets/img/grayCircle.png","@xysfe/actui/es/assets/img/cps-orangeCircle.png","@xysfe/actui/es/assets/img/cps-redCircle.png","@xysfe/actui/es/assets/img/cps-grayCircle.png"],e):"object"==typeof exports?exports.GoldFinanceChart=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/BScroll/index.js"),require("@xysfe/actui/es/assets/img/redCircle.png"),require("@xysfe/actui/es/assets/img/purpleCircle.png"),require("@xysfe/actui/es/assets/img/grayCircle.png"),require("@xysfe/actui/es/assets/img/cps-orangeCircle.png"),require("@xysfe/actui/es/assets/img/cps-redCircle.png"),require("@xysfe/actui/es/assets/img/cps-grayCircle.png")):t.GoldFinanceChart=e(t["@xysfe/actui/es/assets/utils/create/index.js"],t["@xysfe/actui/es/BScroll/index.js"],t["@xysfe/actui/es/assets/img/redCircle.png"],t["@xysfe/actui/es/assets/img/purpleCircle.png"],t["@xysfe/actui/es/assets/img/grayCircle.png"],t["@xysfe/actui/es/assets/img/cps-orangeCircle.png"],t["@xysfe/actui/es/assets/img/cps-redCircle.png"],t["@xysfe/actui/es/assets/img/cps-grayCircle.png"])}("undefined"!=typeof self?self:this,function(t,e,n,i,o,r,a,s){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../es",e(e.s=1933)}({0:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},1:function(t,e,n){var i=n(27)("wks"),o=n(24),r=n(0).Symbol,a="function"==typeof r;(t.exports=function(t){return i[t]||(i[t]=a&&r[t]||(a?r:o)("Symbol."+t))}).store=i},10:function(t,e,n){var i=n(0),o=n(2),r=n(17),a=n(5),s=n(7),l=function(t,e,n){var u,h,c,p=t&l.F,d=t&l.G,f=t&l.S,g=t&l.P,y=t&l.B,m=t&l.W,v=d?o:o[e]||(o[e]={}),_=v.prototype,x=d?i:f?i[e]:(i[e]||{}).prototype;d&&(n=e);for(u in n)(h=!p&&x&&void 0!==x[u])&&s(v,u)||(c=h?x[u]:n[u],v[u]=d&&"function"!=typeof x[u]?n[u]:y&&h?r(c,i):m&&x[u]==c?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(c):g&&"function"==typeof c?r(Function.call,c):c,g&&((v.virtual||(v.virtual={}))[u]=c,t&l.R&&_&&!_[u]&&a(_,u,c)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},108:function(t,e,n){t.exports={default:n(115),__esModule:!0}},109:function(t,e,n){e.f=n(1)},11:function(t,e){t.exports={}},110:function(t,e,n){var i=n(0),o=n(2),r=n(18),a=n(109),s=n(9).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=r?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},115:function(t,e,n){n(47),n(43),t.exports=n(116)},1158:function(t,e,n){"use strict";var i=n(133),o=n.n(i),r=n(108),a=n.n(r),s=n(200),l=n(1935),u=n(1942),h=n(1949);e.a={name:"ActGoldFinanceChart",data:function(){return{costTableVisible:!1,isShowChart:!0,renderData:{}}},components:{benefit:u.a,GoldCostTable:h.a},props:{tables:{default:function(){return{}},type:Object},brandColor:{default:"#8c7fee",type:String},btnColor:{default:"#8c7fee",type:String},chartConfig:{default:function(){return[]},type:Array},isOutSideTable:{default:!1,type:Boolean}},computed:{realTheme:function(){var t={brandColor:window.g_agentShowCfg&&window.g_agentShowCfg.brandcolor||"#8c7fee",btnColor:window.g_agentShowCfg&&window.g_agentShowCfg.btncolor||"#8c7fee"};return this.brandColor&&(t.brandColor=this.brandColor,t.btnColor=this.brandColor),t},isCps:function(){return"#8c7fee"!==this.brandColor}},methods:{showCostTable:function(){this.isOutSideTable?this.$emit("showOutSideTable"):this.costTableVisible=!0},validateData:function(){if(!(this.tables&&this.tables.colsType&&this.chartConfig&&Object(s.e)(this.chartConfig)))return!1;for(var t=0,e=0,n=0,i=0;i<this.chartConfig.length;i++){var o=this.chartConfig[i];if(!o.colsType)return!1;(this.tables.colsType.includes(o.colsType)||this.tables.colsType.includes(o.colsType+""))&&(1==~~o.showType&&(t+=1),2==~~o.showType&&(e+=1),3==~~o.showType&&(n+=1))}return 1===t&&e>=1&&1===n},findTablesIndex:function(t,e){if(Object(s.e)(e))for(var n=0;n<e.length;n++)if(Number(e[n])===Number(t))return n},analysisExpression:function(t){if(!/([1-9]+)([+*/-])([1-9]+)/g.test(t))return{};var e=void 0,n=void 0,i=void 0;return t.replace(/([1-9]+)([+*/-])([1-9]+)/g,function(t,o,r,a){e=o,n=a,i=r}),{firstParamColsType:e,secondParamColsType:n,operator:i}},getExpressionData:function(t,e,n){var i=this.analysisExpression(t),o=i.firstParamColsType,r=i.secondParamColsType,a=i.operator;if(void 0!==o&&void 0!==r&&["+","-","/","*"].includes(a)){var s=void 0,l=void 0,u=[];if(n.colsType.forEach(function(t,e){Number(t)===Number(o)&&(s=e),Number(t)===Number(r)&&(l=e)}),void 0!==s&&void 0!==l)return n.rows.forEach(function(t,e){var n=void 0;switch(a){case"+":n=t[s]+t[l];break;case"-":n=t[s]-t[l];break;case"/":n=t[s]/t[l];break;case"*":n=t[s]*t[l]}u.push(Number(n).toFixed(1))}),u}},initConfig:function(t,e){if(t&&e){for(var n=[],i=[],o=[],r=this.isCps?Object(s.b)(l.b):Object(s.b)(l.a),u=Object(s.b)(r.showType2),h=Object(s.b)(r.showType3),c=t,p=Array.isArray(c),d=0,c=p?c:a()(c);;){var f;if(p){if(d>=c.length)break;f=c[d++]}else{if(d=c.next(),d.done)break;f=d.value}var g=f,y=void 0,m=g.colsType,v=this.findTablesIndex(m,e.colsType);if(v){var _=Number(g.showType),x=g.name||l.c[m],b=g.titleName||g.name||l.c[m],w=this.getExpressionData(g.tipsExpression,t,e),S=g.lineStyle,C=g.boxConfig;if(!(2!==_||S&&C)){u.length||(u=Object(s.b)(r.showType2));var T=u.shift();S=T.lineStyle,C=T.boxConfig}if(3===_&&!S){h.length||(h=Object(s.b)(r.showType3));S=h.shift().lineStyle}o.push(x),y={showType:_,colsType:m,name:x,titleName:b,problemText:g.problemText,tableRowIndex:v,lineStyle:S,boxConfig:C,tipsText:g.tipsText},w&&(y.expressionData=w),n.push(y)}}var M=e.rows.map(function(t){for(var e=[],o=n,r=Array.isArray(o),s=0,o=r?o:a()(o);;){var l;if(r){if(s>=o.length)break;l=o[s++]}else{if(s=o.next(),s.done)break;l=s.value}var u=l;1===u.showType&&i.push(t[u.tableRowIndex]),e.push(t[u.tableRowIndex])}return e});return M.unshift(o),{chartConfig:n,dataSource:M,xAxisData:i}}}},watch:{tables:{handler:function(t){if(t&&o()(t).length&&this.chartConfig){this.validateData()?(this.renderData=this.initConfig(this.chartConfig,t),this.isShowChart=!0):this.isShowChart=!1}},immediate:!0}}}},1159:function(t,e,n){"use strict";var i=n(133),o=n.n(i),r=n(1944),a=n(200);e.a={name:"Benefit",data:function(){return{selectIndex:10,chartConfig:[],dataSource:[],xAxisData:[],dialog:null,agePicker:null,numFontSizeFixDebounceFunc:Object(a.a)(this.numFontSizeFix,500),preNumFontSize:"2.8rem"}},components:{chart:r.a},props:{renderData:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}},isCps:{type:Boolean,default:!1}},computed:{agePickerData:function(){for(var t=[],e=0;e<this.xAxisData.length;e++)t.push({text:this.xAxisData[e],value:this.xAxisData[e]});return t},showType2Length:function(){for(var t=0,e=0;e<this.chartConfig.length;e++)2==~~this.chartConfig[e].showType&&(t+=1);return t},pureDataSource:function(){return this.dataSource.slice(1)}},methods:{showCostTable:function(){this.$emit("showCostTable")},setSelectIndex:function(t){this.selectIndex=t},showAgePicker:function(){var t=this;this.agePicker?this.agePicker.setData([this.agePickerData],[this.selectIndex]):this.agePicker=this.$createPicker({data:[this.agePickerData],onSelect:function(e,n){t.setSelectIndex(n[0])},selectedIndex:[this.selectIndex],confirmColor:this.theme.btnColor}),this.agePicker.show()},showProblemDialog:function(t){this.dialog?this.dialog.setData("",t):this.dialog=this.$createGoldDialog({content:t,showConfirmButton:!1,maskClosable:!0}),this.dialog.show()},numFontSizeFix:function(){for(var t=this.$refs.num?this.$refs.num.length:0,e=0;e<t;e++){var n=this.$refs.num[e],i=this.$refs.colorBlock[e];for(n.style.fontSize=this.preNumFontSize;;){if(!(parseInt(getComputedStyle(n).width)>parseInt(getComputedStyle(i).width)+10))break;var o=parseInt(getComputedStyle(n).fontSize);if(o<=12)break;n.style.fontSize=o-1+"px"}}}},watch:{renderData:{handler:function(t){if(t&&o()(t).length){var e=t.chartConfig,n=t.dataSource,i=t.xAxisData;this.chartConfig=e,this.dataSource=n,this.xAxisData=i,this.selectIndex>this.pureDataSource.length&&(this.selectIndex=10)}},immediate:!0},selectIndex:{handler:function(){this.numFontSizeFixDebounceFunc()}}}}},116:function(t,e,n){var i=n(4),o=n(49);t.exports=n(2).getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return i(e.call(t))}},1160:function(t,e,n){"use strict";var i=n(133),o=n.n(i),r=n(108),a=n.n(r),s=n(200),l=n(1946);e.a={data:function(){return{chart:null}},props:{index:{type:Number,default:10},dataSource:{type:Array,default:function(){return[]}},chartConfig:{type:Array,default:function(){return[]}}},methods:{setIndex:function(t){this.$emit("setIndex",t)},remToPxBased10Px:function(t){var e=window.document.documentElement||document.getElementsByTagName("html")[0],n=parseFloat(getComputedStyle(e,null).fontSize);if(n>12)return t*n;var i=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,o=i/375*10;return i?t*o:10*t},getXAxisName:function(){for(var t=0;t<this.chartConfig.length;t++)if(1===this.chartConfig[t].showType)return this.chartConfig[t].name;return""},getTooltipName:function(){for(var t=0;t<this.chartConfig.length;t++)if(3===this.chartConfig[t].showType)return this.chartConfig[t].name;return""},setEcharts:function(){for(var t=[],e=[],n=this.getXAxisName(),i=this.getTooltipName(),o=0;o<this.chartConfig.length;o++){var r=this.chartConfig[o];if([2,3].includes(r.showType)){var u={};Object(s.e)(r.lineStyle.areaStyleColor)?u.color=new l.graphic.LinearGradient(0,0,0,1,r.lineStyle.areaStyleColor):Object(s.i)(r.lineStyle.areaStyleColor)&&(u.color=r.lineStyle.areaStyleColor),t.push({name:r.name,type:"line",smooth:!0,symbol:r.lineStyle.legendImg?"image://"+r.lineStyle.legendImg:"circle",showSymbol:!1,symbolSize:this.remToPxBased10Px(1.4),silent:!0,encode:{x:n,y:r.name},lineStyle:{width:1,color:r.lineStyle.lineColor},emphasis:{lineStyle:{color:r.lineStyle.lineColor}},z:r.lineStyle.zIndex,areaStyle:u.color?u:void 0}),e.push({name:r.name,icon:r.lineStyle.legendImg?"image://"+r.lineStyle.legendImg:"circle"})}}var h={dataset:{source:this.dataSource},grid:{containLabel:!1,borderColor:"red",top:"5%",right:"10%",left:"10%"},legend:{textStyle:{fontSize:this.remToPxBased10Px(1.2),opacity:1,fontWeight:400,fontFamily:"SourceHanSansSC, SourceHanSansSC-Regular",color:"#999",lineHeight:this.remToPxBased10Px(1.8)},selectedMode:!1,itemWidth:this.remToPxBased10Px(1.4),itemHeight:this.remToPxBased10Px(1.4),data:e,bottom:0},tooltip:{trigger:"axis",triggerOn:"none",backgroundColor:"rgba(255,255,255,0.8)",textStyle:{fontSize:this.remToPxBased10Px(1.2),fontFamily:"SourceHanSansSC, SourceHanSansSC-Regular",fontWeight:400,lineHeight:16,color:"#333"},extraCssText:"box-shadow: 0rem 0.2rem 1.4rem 0rem rgba(211,217,240,0.80);z-index: 2;",showContent:!0,padding:[7,10,6,10],position:function(t,e,n,i,o){return t[0]>o.viewSize[0]/2?{left:20,top:"30%"}:{right:20,top:"30%"}},axisPointer:{lineStyle:{type:"solid",color:"#EEE"},z:0},formatter:function(t){for(var e=t,n=Array.isArray(e),o=0,e=n?e:a()(e);;){var r;if(n){if(o>=e.length)break;r=e[o++]}else{if(o=e.next(),o.done)break;r=o.value}var s=r;if(s.seriesName===i){var l=s.encode.y[0],u=s.value[l];return i+"<br>"+u+"元"}}}},axixPointer:{triggerOn:"none"},xAxis:{type:"category",axisTick:{inside:!0,length:2,lineStyle:{color:"#EEE"}},axisLine:{lineStyle:{color:"#F5F5F5"}},axisLabel:{textStyle:{color:"#E2E5E7"},fontSize:this.remToPxBased10Px(1.2)},nameTextStyle:{color:"red"}},yAxis:{show:!0,axisLine:{show:!1},axisLabel:{show:!1},splitLine:{show:!0,lineStyle:{color:"#f5f5f5",width:.5}}},series:t};this.chart.setOption(h),this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:this.index-1}),this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:this.index})}},mounted:function(){var t=this;this.chart=l.init(this.$refs.chart,null,{renderer:"svg"}),this.chart.getZr().on("mousemove",function(e){var n=[e.offsetX,e.offsetY],i=t.chart.convertFromPixel("grid",n);t.chart.containPixel("grid",n)&&t.index!==Math.round(i[0])&&t.setIndex(Math.round(i[0]))})},watch:{dataSource:{handler:function(t){var e=this;o()(t).length&&this.$nextTick(function(){e.setEcharts()})},immediate:!0},index:{handler:function(t){this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:t})}}}}},1161:function(t,e,n){"use strict";var i=n(143),o=n.n(i);e.a={name:"ActGoldCostTable",data:function(){return{scroller:null}},props:{visible:{type:Boolean,default:!1},tables:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}}},computed:{title:function(){return this.tables.title||"现金价值表"},styleOption:function(){return this.theme&&this.theme.brandColor?{backgroundColor:this.theme.brandColor}:{}}},methods:{showCol:function(t){var e=this.tables.display||[];return void 0!==e[t]&&1==~~e[t]},cancel:function(){this.$emit("cancelCost")},preventMove:function(t){t._prevent=!0}},watch:{visible:function(t){var e=this;if(t){var n=document.querySelector(".cost-scroll");n&&this.$nextTick(function(){e.scroller?e.scroller.refresh():e.scroller=new o.a(n,{})})}}}}},12:function(t,e,n){var i=n(30),o=n(16);t.exports=function(t){return i(o(t))}},124:function(t,e,n){var i=n(37),o=n(28).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,o)}},13:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},132:function(t,e,n){var i=n(24)("meta"),o=n(6),r=n(7),a=n(9).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(13)(function(){return l(Object.preventExtensions({}))}),h=function(t){a(t,i,{value:{i:"O"+ ++s,w:{}}})},c=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!r(t,i)){if(!l(t))return"F";if(!e)return"E";h(t)}return t[i].i},p=function(t,e){if(!r(t,i)){if(!l(t))return!0;if(!e)return!1;h(t)}return t[i].w},d=function(t){return u&&f.NEED&&l(t)&&!r(t,i)&&h(t),t},f=t.exports={KEY:i,NEED:!1,fastKey:c,getWeak:p,onFreeze:d}},133:function(t,e,n){t.exports={default:n(159),__esModule:!0}},14:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},143:function(t,n){t.exports=e},144:function(t,e,n){var i=n(10),o=n(2),r=n(13);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),i(i.S+i.F*r(function(){n(1)}),"Object",a)}},145:function(t,e,n){var i=n(14);t.exports=Array.isArray||function(t){return"Array"==i(t)}},15:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},159:function(t,e,n){n(160),t.exports=n(2).Object.keys},16:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},160:function(t,e,n){var i=n(29),o=n(26);n(144)("keys",function(){return function(t){return o(i(t))}})},163:function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(164),r=i(o),a=n(166),s=i(a),l="function"==typeof s.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===l(r.default)?function(t){return void 0===t?"undefined":l(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":l(t)}},164:function(t,e,n){t.exports={default:n(165),__esModule:!0}},165:function(t,e,n){n(43),n(47),t.exports=n(109).f("iterator")},166:function(t,e,n){t.exports={default:n(167),__esModule:!0}},167:function(t,e,n){n(168),n(70),n(172),n(173),t.exports=n(2).Symbol},168:function(t,e,n){"use strict";var i=n(0),o=n(7),r=n(3),a=n(10),s=n(46),l=n(132).KEY,u=n(13),h=n(27),c=n(25),p=n(24),d=n(1),f=n(109),g=n(110),y=n(169),m=n(145),v=n(4),_=n(6),x=n(29),b=n(12),w=n(34),S=n(23),C=n(45),T=n(170),M=n(171),k=n(50),I=n(9),D=n(26),A=M.f,P=I.f,O=T.f,L=i.Symbol,R=i.JSON,N=R&&R.stringify,E=d("_hidden"),B=d("toPrimitive"),z={}.propertyIsEnumerable,F=h("symbol-registry"),V=h("symbols"),H=h("op-symbols"),G=Object.prototype,W="function"==typeof L&&!!k.f,U=i.QObject,j=!U||!U.prototype||!U.prototype.findChild,X=r&&u(function(){return 7!=C(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=A(G,e);i&&delete G[e],P(t,e,n),i&&t!==G&&P(G,e,i)}:P,Y=function(t){var e=V[t]=C(L.prototype);return e._k=t,e},q=W&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},Z=function(t,e,n){return t===G&&Z(H,e,n),v(t),e=w(e,!0),v(n),o(V,e)?(n.enumerable?(o(t,E)&&t[E][e]&&(t[E][e]=!1),n=C(n,{enumerable:S(0,!1)})):(o(t,E)||P(t,E,S(1,{})),t[E][e]=!0),X(t,e,n)):P(t,e,n)},$=function(t,e){v(t);for(var n,i=y(e=b(e)),o=0,r=i.length;r>o;)Z(t,n=i[o++],e[n]);return t},K=function(t,e){return void 0===e?C(t):$(C(t),e)},J=function(t){var e=z.call(this,t=w(t,!0));return!(this===G&&o(V,t)&&!o(H,t))&&(!(e||!o(this,t)||!o(V,t)||o(this,E)&&this[E][t])||e)},Q=function(t,e){if(t=b(t),e=w(e,!0),t!==G||!o(V,e)||o(H,e)){var n=A(t,e);return!n||!o(V,e)||o(t,E)&&t[E][e]||(n.enumerable=!0),n}},tt=function(t){for(var e,n=O(b(t)),i=[],r=0;n.length>r;)o(V,e=n[r++])||e==E||e==l||i.push(e);return i},et=function(t){for(var e,n=t===G,i=O(n?H:b(t)),r=[],a=0;i.length>a;)!o(V,e=i[a++])||n&&!o(G,e)||r.push(V[e]);return r};W||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===G&&e.call(H,n),o(this,E)&&o(this[E],t)&&(this[E][t]=!1),X(this,t,S(1,n))};return r&&j&&X(G,t,{configurable:!0,set:e}),Y(t)},s(L.prototype,"toString",function(){return this._k}),M.f=Q,I.f=Z,n(124).f=T.f=tt,n(44).f=J,k.f=et,r&&!n(18)&&s(G,"propertyIsEnumerable",J,!0),f.f=function(t){return Y(d(t))}),a(a.G+a.W+a.F*!W,{Symbol:L});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),it=0;nt.length>it;)d(nt[it++]);for(var ot=D(d.store),rt=0;ot.length>rt;)g(ot[rt++]);a(a.S+a.F*!W,"Symbol",{for:function(t){return o(F,t+="")?F[t]:F[t]=L(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){j=!0},useSimple:function(){j=!1}}),a(a.S+a.F*!W,"Object",{create:K,defineProperty:Z,defineProperties:$,getOwnPropertyDescriptor:Q,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=u(function(){k.f(1)});a(a.S+a.F*at,"Object",{getOwnPropertySymbols:function(t){return k.f(x(t))}}),R&&a(a.S+a.F*(!W||u(function(){var t=L();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))})),"JSON",{stringify:function(t){for(var e,n,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(n=e=i[1],(_(e)||void 0!==t)&&!q(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!q(e))return e}),i[1]=e,N.apply(R,i)}}),L.prototype[B]||n(5)(L.prototype,B,L.prototype.valueOf),c(L,"Symbol"),c(Math,"Math",!0),c(i.JSON,"JSON",!0)},169:function(t,e,n){var i=n(26),o=n(50),r=n(44);t.exports=function(t){var e=i(t),n=o.f;if(n)for(var a,s=n(t),l=r.f,u=0;s.length>u;)l.call(t,a=s[u++])&&e.push(a);return e}},17:function(t,e,n){var i=n(20);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,o){return t.call(e,n,i,o)}}return function(){return t.apply(e,arguments)}}},170:function(t,e,n){var i=n(12),o=n(124).f,r={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==r.call(t)?s(t):o(i(t))}},171:function(t,e,n){var i=n(44),o=n(23),r=n(12),a=n(34),s=n(7),l=n(36),u=Object.getOwnPropertyDescriptor;e.f=n(3)?u:function(t,e){if(t=r(t),e=a(e,!0),l)try{return u(t,e)}catch(t){}if(s(t,e))return o(!i.f.call(t,e),t[e])}},172:function(t,e,n){n(110)("asyncIterator")},173:function(t,e,n){n(110)("observable")},18:function(t,e){t.exports=!0},19:function(t,e,n){var i=n(27)("keys"),o=n(24);t.exports=function(t){return i[t]||(i[t]=o(t))}},1933:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(22),o=n.n(i),r=n(1934);r.a.install=function(t){t.component(r.a.name,r.a),t.prototype.$createGoldFinanceChart=o()(r.a,t)},e.default=r.a},1934:function(t,e,n){"use strict";var i=n(1158),o=n(1952),r=n(8),a=Object(r.a)(i.a,o.a,o.b,!1,null,null,null);a.options.__file="src\\components\\GoldFinanceChart\\src\\index.vue",e.a=a.exports},1935:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o}),n.d(e,"c",function(){return r});var i={showType2:[{boxConfig:{iconColor:"#E13046",titleColor:"#E13046",blockColor:"rgba(255, 90, 110, 0.1)",tipsColor:"#ff5a63"},lineStyle:{lineColor:"#ff5a6e",legendImg:n(1936),zIndex:1}},{boxConfig:{iconColor:"#7363E7",titleColor:"#7363E7",blockColor:"rgba(115,99,231,0.1)",tipsColor:"#8c7FEE"},lineStyle:{lineColor:"#8c7fee",legendImg:n(1937),areaStyleColor:[{offset:0,color:"#E7E3FF"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:n(1938),zIndex:3}}]},o={showType2:[{boxConfig:{iconColor:"#FF8D35",titleColor:"#FF8D35",blockColor:"rgba(255,141,53,0.1)",tipsColor:"#FF8D35"},lineStyle:{lineColor:"#FF8D35",legendImg:n(1939),zIndex:1}},{boxConfig:{iconColor:"#F05A4B",titleColor:"#FC7468",blockColor:"rgba(252,116,104,0.1)",tipsColor:"#F05A4B"},lineStyle:{lineColor:"#F05A4B",legendImg:n(1940),areaStyleColor:[{offset:0,color:"#FFE0DD"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:n(1941),zIndex:3}}]},r={1:"有效保额",2:"已交保费系数金额",3:"现金价值",4:"身故全残金",5:"年龄",6:"累计已交保费",7:"累计保费*给付系数(主险)",8:"当前年龄与61岁的比值",9:"当前年龄与41岁的比值",10:"当前年龄与18岁的比值",11:"当前年龄的给付数值",12:"保额",13:"保单年份与缴费期间的比值",14:"保单年份",15:"长期护理保险金(元)",16:"疾病身故保险金或长期护理保险金"}},1936:function(t,e){t.exports=n},1937:function(t,e){t.exports=i},1938:function(t,e){t.exports=o},1939:function(t,e){t.exports=r},1940:function(t,e){t.exports=a},1941:function(t,e){t.exports=s},1942:function(t,e,n){"use strict";function i(t){s||n(1943)}var o=n(1159),r=n(1948),a=n(8),s=!1,l=i,u=Object(a.a)(o.a,r.a,r.b,!1,l,"data-v-8a13b6be",null);u.options.__file="src\\components\\GoldFinanceChart\\src\\components\\benefit.vue",e.a=u.exports},1943:function(t,e){},1944:function(t,e,n){"use strict";function i(t){s||n(1945)}var o=n(1160),r=n(1947),a=n(8),s=!1,l=i,u=Object(a.a)(o.a,r.a,r.b,!1,l,"data-v-5bf23e30",null);u.options.__file="src\\components\\GoldFinanceChart\\src\\components\\chart.vue",e.a=u.exports},1945:function(t,e){},1946:function(t,e,n){!function(t,n){n(e)}(0,function(t){"use strict";function e(t,e){function n(){this.constructor=t}if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Nd(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function n(t,e){qd[t]=e}function i(){return Zd++}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function r(t){if(null==t||"object"!=typeof t)return t;var e=t,n=Vd.call(t);if("[object Array]"===n){if(!V(t))for(var e=[],i=0,o=t.length;i<o;i++)e[i]=r(t[i])}else if(Fd[n]){if(!V(t)){var a=t.constructor;if(a.from)e=a.from(t);else for(e=new a(t.length),i=0,o=t.length;i<o;i++)e[i]=r(t[i])}}else if(!zd[n]&&!V(t)&&!k(t))for(var s in e={},t)t.hasOwnProperty(s)&&(e[s]=r(t[s]));return e}function a(t,e,n){if(!C(e)||!C(t))return n?r(e):t;for(var i in e){var o,s;e.hasOwnProperty(i)&&(o=t[i],!C(s=e[i])||!C(o)||_(s)||_(o)||k(s)||k(o)||T(s)||T(o)||V(s)||V(o)?!n&&i in t||(t[i]=r(e[i])):a(o,s,n))}return t}function s(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function l(t,e,n){for(var i=m(e),o=0;o<i.length;o++){var r=i[o];(n?null!=e[r]:null==t[r])&&(t[r]=e[r])}return t}function u(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function h(t,e){function n(){}var i,o=t.prototype;for(i in n.prototype=e.prototype,t.prototype=new n,o)o.hasOwnProperty(i)&&(t.prototype[i]=o[i]);(t.prototype.constructor=t).superClass=e}function c(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),o=0;o<i.length;o++){var r=i[o];"constructor"!==r&&(n?null!=e[r]:null==t[r])&&(t[r]=e[r])}else l(t,e,n)}function p(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function d(t,e,n){if(t&&e)if(t.forEach&&t.forEach===Gd)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t);else for(var r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function f(t,e,n){if(!t)return[];if(!e)return N(t);if(t.map&&t.map===jd)return t.map(e,n);for(var i=[],o=0,r=t.length;o<r;o++)i.push(e.call(n,t[o],o,t));return i}function g(t,e,n,i){if(t&&e){for(var o=0,r=t.length;o<r;o++)n=e.call(i,n,t[o],o,t);return n}}function y(t,e,n){if(!t)return[];if(!e)return N(t);if(t.filter&&t.filter===Wd)return t.filter(e,n);for(var i=[],o=0,r=t.length;o<r;o++)e.call(n,t[o],o,t)&&i.push(t[o]);return i}function m(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(e);return n}function v(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(Ud.call(arguments)))}}function _(t){return Array.isArray?Array.isArray(t):"[object Array]"===Vd.call(t)}function x(t){return"function"==typeof t}function b(t){return"string"==typeof t}function w(t){return"[object String]"===Vd.call(t)}function S(t){return"number"==typeof t}function C(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function T(t){return!!zd[Vd.call(t)]}function M(t){return!!Fd[Vd.call(t)]}function k(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function I(t){return null!=t.colorStops}function D(t){return null!=t.image}function A(t){return"[object RegExp]"===Vd.call(t)}function P(t){return t!=t}function O(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function L(t,e){return null!=t?t:e}function R(t,e,n){return null!=t?t:null!=e?e:n}function N(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Ud.apply(t,e)}function E(t){var e;return"number"==typeof t?[t,t,t,t]:2===(e=t.length)?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function B(t,e){if(!t)throw new Error(e)}function z(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function F(t){t[Jd]=!0}function V(t){return t[Jd]}function H(t){function e(t,e){n?i.set(t,e):i.set(e,t)}this.data={};var n=_(t),i=(this.data={},this);t instanceof H?t.each(e):t&&d(t,e)}function G(t){return new Qd(t)}function W(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];for(var o=t.length,i=0;i<e.length;i++)n[i+o]=e[i];return n}function U(t,e){var n,t=Object.create?Object.create(t):((n=function(){}).prototype=t,new n);return e&&s(t,e),t}function j(t,e){return t.hasOwnProperty(e)}function X(){}function Y(t,e){return[t=null==t?0:t,e=null==e?0:e]}function q(t){return[t[0],t[1]]}function Z(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function $(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function K(t){return Math.sqrt(J(t))}function J(t){return t[0]*t[0]+t[1]*t[1]}function Q(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function tt(t,e){var n=K(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function et(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function nt(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function it(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function ot(t,e,n){var i=e[0],e=e[1];return t[0]=n[0]*i+n[2]*e+n[4],t[1]=n[1]*i+n[3]*e+n[5],t}function rt(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function at(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function st(t){(this.handler=t).on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}function lt(t){t&&(this._$eventProcessor=t)}function ut(t,e,n,i,o,r){var a,s=i+"-"+o,l=t.length;if(r.hasOwnProperty(s))return r[s];if(1===e)return a=Math.round(Math.log((1<<l)-1&~o)/lf),t[n][a];for(var u=i|1<<n,h=n+1;i&1<<h;)h++;for(var c=0,p=0,d=0;p<l;p++){var f=1<<p;f&o||(c+=(d%2?-1:1)*t[n][p]*ut(t,e-1,h,u,o|f,r),d++)}return r[s]=c}function ht(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},o=ut(n,8,0,0,0,i);if(0!==o){for(var r=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==r[s]&&(r[s]=0),r[s]+=((a+s)%2?-1:1)*ut(n,7,0===a?1:0,1<<a,1<<s,i)/o*e[a];return function(t,e,n){var i=e*r[6]+n*r[7]+1;t[0]=(e*r[0]+n*r[1]+r[2])/i,t[1]=(e*r[3]+n*r[4]+r[5])/i}}}function ct(t,e,n,i,o){if(e.getBoundingClientRect&&Bd.domSupported&&!pt(e)){var r=e[uf]||(e[uf]={}),e=function(t,e,n){for(var i=n?"invTrans":"trans",o=e[i],r=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,h=h.top;a.push(p,h),l=l&&r&&p===r[c]&&h===r[1+c],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&o?o:(e.srcCoords=a,e[i]=n?ht(s,a):ht(a,s))}(function(t,e){var n=e.markers;if(!n){n=e.markers=[];for(var i=["left","right"],o=["top","bottom"],r=0;r<4;r++){var a=document.createElement("div"),s=a.style,l=r%2,u=(r>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",o[u]+":0",i[1-l]+":auto",o[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}}return n}(e,r),r,o);if(e)return e(t,n,i),!0}return!1}function pt(t){return"CANVAS"===t.nodeName.toUpperCase()}function dt(t,e,n,i){return n=n||{},i||!Bd.canvasSupported?ft(t,e,n):Bd.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):ft(t,e,n),n}function ft(t,e,n){if(Bd.domSupported&&t.getBoundingClientRect){var i,o=e.clientX,e=e.clientY;if(pt(t))return i=t.getBoundingClientRect(),n.zrX=o-i.left,void(n.zrY=e-i.top);if(ct(df,t,o,e))return n.zrX=df[0],void(n.zrY=df[1])}n.zrX=n.zrY=0}function gt(t){return t||window.event}function yt(t,e,n){var i;return null==(e=gt(e)).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&dt(t,i,e,n):(dt(t,e,e,n),i=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,t=t.deltaY;return null!=n&&null!=t?3*(0!==t?Math.abs(t):Math.abs(n))*(0<t||!(t<0)&&0<n?-1:1):e}(e),e.zrDelta=i?i/120:-(e.detail||0)/3),t=e.button,null==e.which&&void 0!==t&&pf.test(e.type))&&(e.which=1&t?1:2&t?3:4&t?2:0),e}function mt(){this._track=[]}function vt(t){var e=t[1][0]-t[0][0],t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}function _t(){ff(this.event)}function xt(){var t=null!==mf&&mf.apply(this,arguments)||this;return t.handler=null,t}function bt(t,e,n,i){var o=vf.call(this)||this;return o._hovered=new xf(0,0),o.storage=t,o.painter=e,o.painterRoot=i,n=n||new _f,o.proxy=null,o.setHandlerProxy(n),o._draggingMgr=new af(o),o}function wt(t,e,n){return t=t.painter,e<0||e>t.getWidth()||n<0||n>t.getHeight()}function St(t,e,n,i){var o=e+1;if(o===n)return 1;if(i(t[o++],t[e])<0){for(;o<n&&i(t[o],t[o-1])<0;)o++;var r=t,a=e,s=o;for(s--;a<s;){var l=r[a];r[a++]=r[s],r[s--]=l}}else for(;o<n&&0<=i(t[o],t[o-1]);)o++;return o-e}function Ct(t,e,n,i,o){for(i===e&&i++;i<n;i++){for(var r,a=t[i],s=e,l=i;s<l;)o(a,t[r=s+l>>>1])<0?l=r:s=1+r;var u=i-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(;0<u;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Tt(t,e,n,i,o,r){var a=0,s=0,l=1;if(0<r(t,e[n+o])){for(s=i-o;l<s&&0<r(t,e[n+o+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=o,l+=o}else{for(s=o+1;l<s&&r(t,e[n+o-l])<=0;)(l=1+((a=l)<<1))<=0&&(l=s);i=a,a=o-(l=s<l?s:l),l=o-i}for(a++;a<l;){var u=a+(l-a>>>1);0<r(t,e[n+u])?a=u+1:l=u}return l}function Mt(t,e,n,i,o,r){var a=0,s=0,l=1;if(r(t,e[n+o])<0){for(s=o+1;l<s&&r(t,e[n+o-l])<0;)(l=1+((a=l)<<1))<=0&&(l=s);var u=a,a=o-(l=s<l?s:l),l=o-u}else{for(s=i-o;l<s&&0<=r(t,e[n+o+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=o,l+=o}for(a++;a<l;){var h=a+(l-a>>>1);r(t,e[n+h])<0?l=h:a=h+1}return l}function kt(t,e){function n(n){var l=i[n],u=o[n],h=i[n+1],c=o[n+1],n=(o[n]=u+c,n===a-3&&(i[n+1]=i[n+2],o[n+1]=o[n+2]),a--,Mt(t[h],t,l,u,0,e));if(l+=n,0!=(u-=n)&&0!==(c=Tt(t[l+u-1],t,h,c,c-1,e)))if(u<=c){var p=l,d=u,n=h,f=c,g=0;for(g=0;g<d;g++)s[g]=t[p+g];var y=0,m=n,v=p;if(t[v++]=t[m++],0==--f)for(g=0;g<d;g++)t[v+g]=s[y+g];else if(1===d){for(g=0;g<f;g++)t[v+g]=t[m+g];t[v+f]=s[y]}else{for(var _,x,b,w=r;;){x=_=0,b=!1;do{if(e(t[m],s[y])<0){if(t[v++]=t[m++],x++,(_=0)==--f){b=!0;break}}else if(t[v++]=s[y++],_++,x=0,1==--d){b=!0;break}}while((_|x)<w);if(b)break;do{if(0!==(_=Mt(t[m],s,y,d,0,e))){for(g=0;g<_;g++)t[v+g]=s[y+g];if(v+=_,y+=_,(d-=_)<=1){b=!0;break}}if(t[v++]=t[m++],0==--f){b=!0;break}if(0!==(x=Tt(s[y],t,m,f,0,e))){for(g=0;g<x;g++)t[v+g]=t[m+g];if(v+=x,m+=x,0==(f-=x)){b=!0;break}}if(t[v++]=s[y++],1==--d){b=!0;break}}while(w--,Cf<=_||Cf<=x);if(b)break;w<0&&(w=0),w+=2}if((r=w)<1&&(r=1),1===d){for(g=0;g<f;g++)t[v+g]=t[m+g];t[v+f]=s[y]}else{if(0===d)throw new Error;for(g=0;g<d;g++)t[v+g]=s[y+g]}}}else{var S=l,C=u,T=h,M=c,k=0;for(k=0;k<M;k++)s[k]=t[T+k];var I=S+C-1,D=M-1,A=T+M-1,P=0,O=0;if(t[A--]=t[I--],0==--C)for(P=A-(M-1),k=0;k<M;k++)t[P+k]=s[k];else if(1===M){for(O=1+(A-=C),P=1+(I-=C),k=C-1;0<=k;k--)t[O+k]=t[P+k];t[A]=s[D]}else{for(var L=r;;){var R=0,N=0,E=!1;do{if(e(s[D],t[I])<0){if(t[A--]=t[I--],R++,(N=0)==--C){E=!0;break}}else if(t[A--]=s[D--],N++,R=0,1==--M){E=!0;break}}while((R|N)<L);if(E)break;do{if(0!=(R=C-Mt(s[D],t,S,C,C-1,e))){for(C-=R,O=1+(A-=R),P=1+(I-=R),k=R-1;0<=k;k--)t[O+k]=t[P+k];if(0===C){E=!0;break}}if(t[A--]=s[D--],1==--M){E=!0;break}if(0!=(N=M-Tt(t[I],s,0,M,M-1,e))){for(M-=N,O=1+(A-=N),P=1+(D-=N),k=0;k<N;k++)t[O+k]=s[P+k];if(M<=1){E=!0;break}}if(t[A--]=t[I--],0==--C){E=!0;break}}while(L--,Cf<=R||Cf<=N);if(E)break;L<0&&(L=0),L+=2}if((r=L)<1&&(r=1),1===M){for(O=1+(A-=C),P=1+(I-=C),k=C-1;0<=k;k--)t[O+k]=t[P+k];t[A]=s[D]}else{if(0===M)throw new Error;for(P=A-(M-1),k=0;k<M;k++)t[P+k]=s[k]}}}}var i,o,r=Cf,a=0,s=(t.length,[]);return i=[],o=[],{mergeRuns:function(){for(;1<a;){var t=a-2;if(1<=t&&o[t-1]<=o[t]+o[t+1]||2<=t&&o[t-2]<=o[t]+o[t-1])o[t-1]<o[t+1]&&t--;else if(o[t]>o[t+1])break;n(t)}},forceMergeRuns:function(){for(;1<a;){var t=a-2;0<t&&o[t-1]<o[t+1]&&t--,n(t)}},pushRun:function(t,e){i[a]=t,o[a]=e,a+=1}}}function It(t,e,n,i){var o=(i=i||t.length)-(n=n||0);if(!(o<2)){var r=0;if(o<Sf)Ct(t,n,i,n+(r=St(t,n,i,e)),e);else{var a,s=kt(t,e),l=function(t){for(var e=0;Sf<=t;)e|=1&t,t>>=1;return t+e}(o);do{}while((r=St(t,n,i,e))<l&&(Ct(t,n,n+(a=l<(a=o)?l:o),n+r,e),r=a),s.pushRun(n,r),s.mergeRuns(),n+=r,0!=(o-=r));s.forceMergeRuns()}}}function Dt(){kf||(kf=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function At(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function Pt(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=At}function Ot(t){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,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}function Lt(){this._len=0}function Rt(t){this._list=new Lf,this._maxSize=10,this._map={},this._maxSize=t}function Nt(t){return(t=Math.round(t))<0?0:255<t?255:t}function Et(t){return t<0?0:1<t?1:t}function Bt(t){return Nt(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function zt(t){return Et(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function Ft(t,e,n){return n<0?n+=1:1<n&&--n,6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function Vt(t,e,n){return t+(e-t)*n}function Ht(t,e,n,i,o){return t[0]=e,t[1]=n,t[2]=i,t[3]=o,t}function Gt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function Wt(t,e){Bf&&Gt(Bf,e),Bf=Ef.put(t,Bf||e.slice())}function Ut(t,e){if(t){e=e||[];var n=Ef.get(t);if(n)return Gt(e,n);if((n=(t+="").replace(/ /g,"").toLowerCase())in Nf)return Gt(e,Nf[n]),Wt(t,e),e;var i=n.length;if("#"===n.charAt(0))return 4===i||5===i?0<=(o=parseInt(n.slice(1,4),16))&&o<=4095?(Ht(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===i?parseInt(n.slice(4),16)/15:1),Wt(t,e),e):void Ht(e,0,0,0,1):7===i||9===i?0<=(o=parseInt(n.slice(1,7),16))&&o<=16777215?(Ht(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===i?parseInt(n.slice(7),16)/255:1),Wt(t,e),e):void Ht(e,0,0,0,1):void 0;var o=n.indexOf("("),r=n.indexOf(")");if(-1!==o&&r+1===i){var i=n.substr(0,o),a=n.substr(o+1,r-(o+1)).split(","),s=1;switch(i){case"rgba":if(4!==a.length)return 3===a.length?Ht(e,+a[0],+a[1],+a[2],1):Ht(e,0,0,0,1);s=zt(a.pop());case"rgb":return 3!==a.length?void Ht(e,0,0,0,1):(Ht(e,Bt(a[0]),Bt(a[1]),Bt(a[2]),s),Wt(t,e),e);case"hsla":return 4!==a.length?void Ht(e,0,0,0,1):(a[3]=zt(a[3]),jt(a,e),Wt(t,e),e);case"hsl":return 3!==a.length?void Ht(e,0,0,0,1):(jt(a,e),Wt(t,e),e);default:return}}Ht(e,0,0,0,1)}}function jt(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=zt(t[1]),o=zt(t[2]),i=o<=.5?o*(i+1):o+i-o*i,o=2*o-i;return Ht(e=e||[],Nt(255*Ft(o,i,n+1/3)),Nt(255*Ft(o,i,n)),Nt(255*Ft(o,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Xt(t,e){var n=Ut(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,255<n[i]?n[i]=255:n[i]<0&&(n[i]=0);return $t(n,4===n.length?"rgba":"rgb")}}function Yt(t){if(t=Ut(t))return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function qt(t,e,n){var i,o,r;if(e&&e.length&&0<=t&&t<=1)return n=n||[],t*=e.length-1,i=Math.floor(t),r=Math.ceil(t),o=e[i],e=e[r],n[0]=Nt(Vt(o[0],e[0],r=t-i)),n[1]=Nt(Vt(o[1],e[1],r)),n[2]=Nt(Vt(o[2],e[2],r)),n[3]=Et(Vt(o[3],e[3],r)),n}function Zt(t,e,n){var i,o,r,a;if(e&&e.length&&0<=t&&t<=1)return t*=e.length-1,i=Math.floor(t),o=Math.ceil(t),a=Ut(e[i]),e=Ut(e[o]),a=$t([Nt(Vt(a[0],e[0],r=t-i)),Nt(Vt(a[1],e[1],r)),Nt(Vt(a[2],e[2],r)),Et(Vt(a[3],e[3],r))],"rgba"),n?{color:a,leftIndex:i,rightIndex:o,value:t}:a}function $t(t,e){var n;if(t&&t.length)return n=t[0]+","+t[1]+","+t[2],"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}function Kt(t,e){return t=Ut(t),t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function Jt(t,e,n){return(e-t)*n+t}function Qt(t,e,n,i){for(var o=e.length,r=0;r<o;r++)t[r]=Jt(e[r],n[r],i)}function te(t,e,n,i){for(var o=e.length,r=0;r<o;r++)t[r]=e[r]+n[r]*i;return t}function ee(t,e,n,i){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){t[a]||(t[a]=[]);for(var s=0;s<r;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function ne(t,e){var n=t.length;if(n===e.length){for(var i=0;i<n;i++)if(t[i]!==e[i])return;return 1}}function ie(t,e,n,i,o,r,a){return t=.5*(n-t),i=.5*(i-e),(2*(e-n)+t+i)*a+(-3*(e-n)-2*t-i)*r+t*o+e}function oe(t,e,n,i,o,r,a,s){for(var l=e.length,u=0;u<l;u++)t[u]=ie(e[u],n[u],i[u],o[u],r,a,s)}function re(t){if(p(t)){var e=t.length;if(p(t[0])){for(var n=[],i=0;i<e;i++)n.push(Ff.call(t[i]));return n}return Ff.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 se(t){this.keyframes=[],this.maxTime=0,this.arrDim=0,this.interpolable=!0,this._needsSort=!1,this._isAllValueEqual=!0,this._lastFrame=0,this._lastFramePercent=0,this.propName=t}function le(t,e,n){this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=t,(this._loop=e)&&n?o("Can' use additive animation on looped animation."):this._additiveAnimators=n}function ue(t){var e=Wf.call(this)||this;return e._running=!1,e._time=0,e._pausedTime=0,e._pauseStart=0,e._paused=!1,e.stage=(t=t||{}).stage||{},e.onframe=t.onframe||function(){},e}function he(t){return"pen"===(t=t.pointerType)||"touch"===t}function ce(t){t&&(t.zrByTouch=!0)}function pe(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}function de(t,e){var n=e.domHandlers;Bd.pointerEventsSupported?d(Jf.pointer,function(i){ge(e,i,function(e){n[i].call(t,e)})}):(Bd.touchEventsSupported&&d(Jf.touch,function(i){ge(e,i,function(o){var r;n[i].call(t,o),(r=e).touching=!0,null!=r.touchTimer&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)})}),d(Jf.mouse,function(i){ge(e,i,function(o){o=gt(o),e.touching||n[i].call(t,o)})}))}function fe(t,e){function n(n){ge(e,n,function(i){var o;i=gt(i),pe(t,i.target)||(o=i,i=yt(t.dom,new ng(t,o),!0),e.domHandlers[n].call(t,i))},{capture:!0})}Bd.pointerEventsSupported?d(tg,n):Bd.touchEventsSupported||d(Qf,n)}function ge(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,t=t.domTarget,e=e,n=n,i=i,cf?t.addEventListener(e,n,i):t.attachEvent("on"+e,n)}function ye(t){var e,n,i,o,r,a=t.mounted;for(e in a)a.hasOwnProperty(e)&&(n=t.domTarget,o=a[i=e],r=t.listenerOpts[e],cf?n.removeEventListener(i,o,r):n.detachEvent("on"+i,o));t.mounted={}}function me(t,e){var n=jf.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=e,n._localHandlerScope=new rg(t,ig),Kf&&(n._globalHandlerScope=new rg(document,og)),de(n,n._localHandlerScope),n}function ve(){return[1,0,0,1,0,0]}function _e(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function xe(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 be(t,e,n){var i=e[0]*n[0]+e[2]*n[1],o=e[1]*n[0]+e[3]*n[1],r=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],n=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=o,t[2]=r,t[3]=a,t[4]=s,t[5]=n,t}function we(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Se(t,e,n){var i=e[0],o=e[2],r=e[4],a=e[1],s=e[3],e=e[5],l=Math.sin(n),n=Math.cos(n);return t[0]=i*n+a*l,t[1]=-i*l+a*n,t[2]=o*n+s*l,t[3]=-o*l+n*s,t[4]=n*r+l*e,t[5]=n*e-l*r,t}function Ce(t,e,n){var i=n[0],n=n[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function Te(t,e){var n=e[0],i=e[2],o=e[4],r=e[1],a=e[3],e=e[5],s=n*a-r*i;return s?(t[0]=a*(s=1/s),t[1]=-r*s,t[2]=-i*s,t[3]=n*s,t[4]=(i*e-a*o)*s,t[5]=(r*o-n*e)*s,t):null}function Me(t){return 5e-5<t||t<-5e-5}function ke(){}function Ie(t,e){this.x=t||0,this.y=e||0}function De(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}function Ae(t,e){var n=Ig[e=e||Dg],i=(n=n||(Ig[e]=new Rf(500))).get(t);return null==i&&(i=Ag.measureText(t,e).width,n.put(t,i)),i}function Pe(t,e,n,i){return t=Ae(t,e),e=Ne(e),n=Le(0,t,n),i=Re(0,e,i),new kg(n,i,t,e)}function Oe(t,e,n,i){var o=((t||"")+"").split("\n");if(1===o.length)return Pe(o[0],e,n,i);for(var r=new kg(0,0,0,0),a=0;a<o.length;a++){var s=Pe(o[a],e,n,i);0===a?r.copy(s):r.union(s)}return r}function Le(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Re(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function Ne(t){return Ae("国",t)}function Ee(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function Be(t,e,n){var i=e.position||"inside",o=null!=e.distance?e.distance:5,r=n.height,a=n.width,s=r/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=Ee(i[0],n.width),u+=Ee(i[1],n.height),c=h=null;else switch(i){case"left":l-=o,u+=s,h="right",c="middle";break;case"right":l+=o+a,u+=s,c="middle";break;case"top":l+=a/2,u-=o,h="center",c="bottom";break;case"bottom":l+=a/2,u+=r+o,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=o,u+=s,c="middle";break;case"insideRight":l+=a-o,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=o,h="center";break;case"insideBottom":l+=a/2,u+=r-o,h="center",c="bottom";break;case"insideTopLeft":l+=o,u+=o;break;case"insideTopRight":l+=a-o,u+=o,h="right";break;case"insideBottomLeft":l+=o,u+=r-o,c="bottom";break;case"insideBottomRight":l+=a-o,u+=r-o,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}function ze(t){this.id=Zd++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}function Fe(t,e,n){Zf[t+e+n]||(console.warn("DEPRECATED: '"+t+"' has been deprecated. use '"+e+"', '"+n+"' instead"),Zf[t+e+n]=!0)}function Ve(t,e,n,i){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[n]},set:function(e){t[n]=e}}),Object.defineProperty(e,1,{get:function(){return t[i]},set:function(e){t[i]=e}})}Object.defineProperty(qf,t,{get:function(){var r;return Fe(t,n,i),this[e]||(r=this[e]=[],o(this,r)),this[e]},set:function(r){Fe(t,n,i),this[n]=r[0],this[i]=r[1],this[e]=r,o(this,r)}})}function He(t,e,n,i,o){function r(){h=!0,--l<=0&&(h?c&&c():d&&d())}function a(){--l<=0&&(h?c&&c():d&&d())}var s=[],l=(function t(e,n,i,o,r,a,s,l){for(var h=[],c=[],d=m(o),f=r.duration,g=r.delay,y=r.additive,v=r.setToFinal,_=!C(a),x=0;x<d.length;x++){var b=d[x];null!=i[b]&&null!=o[b]&&(_||a[b])?C(o[b])&&!p(o[b])?n?l||(i[b]=o[b],e.updateDuringAnimation(n)):t(e,b,i[b],o[b],r,a&&a[b],s,l):(h.push(b),c.push(b)):l||(i[b]=o[b],e.updateDuringAnimation(n),c.push(b))}var w=h.length;if(0<w||r.force&&!s.length){for(var S=e.animators,T=[],M=0;M<S.length;M++)S[M].targetName===n&&T.push(S[M]);if(!y&&T.length)for(M=0;M<T.length;M++){var k=T[M].stopTracks(c);k&&(k=u(S,T[M]),S.splice(k,1))}var I=void 0,D=void 0,A=void 0;if(l)for(D={},v&&(I={}),M=0;M<w;M++)D[b=h[M]]=i[b],v?I[b]=o[b]:i[b]=o[b];else if(v)for(A={},M=0;M<w;M++)A[b=h[M]]=re(i[b]),We(i,o,b);y=new Gf(i,!1,y?T:null),y.targetName=n,r.scope&&(y.scope=r.scope),v&&I&&y.whenWithKeys(0,I,h),A&&y.whenWithKeys(0,A,h),y.whenWithKeys(null==f?500:f,l?D:o,h).delay(g||0),e.addAnimator(y,n),s.push(y)}}(t,"",t,e,n=n||{},i,s,o),s.length),h=!1,c=n.done,d=n.aborted;l||c&&c(),0<s.length&&n.during&&s[0].during(function(t,e){n.during(e)});for(var f=0;f<s.length;f++){var g=s[f];g.done(r),g.aborted(a),g.start(n.easing,n.force)}return s}function Ge(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function We(t,e,n){if(p(e[n]))if(p(t[n])||(t[n]=[]),M(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),Ge(t[n],e[n],i))}else{var o=e[n],r=t[n],a=o.length;if(p(o[0]))for(var s=o[0].length,l=0;l<a;l++)r[l]?Ge(r[l],o[l],s):r[l]=Array.prototype.slice.call(o[l]);else Ge(r,o,a);r.length=o.length}else t[n]=e[n]}function Ue(t){var e=Bg.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}function je(t,e,n){var i=this,o=(this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t,new If),r=n.renderer||"canvas";if(Fg)throw new Error("IE8 support has been dropped since 5.0");if(Vg[r]||(r=m(Vg)[0]),!Vg[r])throw new Error("Renderer '"+r+"' is not imported. Please import it first.");n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect,r=new Vg[r](e,o,n,t),this.storage=o,this.painter=r,e=Bd.node||Bd.worker?null:new ag(r.getViewportRoot(),r.root),this.handler=new wf(o,r,e,r.root),this.animation=new $f({stage:{update:function(){return i._flush(!0)}}}),this.animation.start()}function Xe(t,e){return t=new Wg(Zd++,t,e),Hg[t.id]=t}function Ye(t,e){Vg[t]=e}function qe(t,e,n,i){var o=e[0],e=e[1],r=n[0],n=n[1],a=e-o,s=n-r;if(0==a)return 0==s?r:(r+n)/2;if(i)if(0<a){if(t<=o)return r;if(e<=t)return n}else{if(o<=t)return r;if(t<=e)return n}else{if(t===o)return r;if(t===e)return n}return(t-o)/a*s+r}function Ze(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?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function $e(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),jg),t=(+t).toFixed(e),n?t:+t}function Ke(t){if(t=+t,isNaN(t))return 0;if(1e-14<t)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Je(t)}function Je(t){var t=t.toString().toLowerCase(),e=t.indexOf("e"),n=0<e?+t.slice(e+1):0,e=0<e?e:t.length,t=t.indexOf(".");return Math.max(0,(t<0?0:e-1-t)-n)}function Qe(t,e){var n=Math.log,i=Math.LN10,t=Math.floor(n(t[1]-t[0])/i),n=Math.round(n(Math.abs(e[1]-e[0]))/i),e=Math.min(Math.max(-t+n,0),20);return isFinite(e)?e:20}function tn(t){var e=2*Math.PI;return(t%e+e)%e}function en(t){return-1e-4<t&&t<1e-4}function nn(t){var e,n;return t instanceof Date?t:"string"==typeof t?(e=Xg.exec(t))?e[8]?(n=+e[4]||0,"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))):new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0):new Date(NaN):null==t?new Date(NaN):new Date(Math.round(t))}function on(t){return Math.pow(10,rn(t))}function rn(t){var e;return 0===t?0:(e=Math.floor(Math.log(t)/Math.LN10),10<=t/Math.pow(10,e)&&e++,e)}function an(t,e){var n=rn(t),i=Math.pow(10,n),o=t/i,e=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;return t=e*i,-20<=n?+t.toFixed(n<0?-n:0):t}function sn(t){var e=parseFloat(t);return e==t&&(0!==e||"string"!=typeof t||t.indexOf("x")<=0)?e:NaN}function ln(t){return!isNaN(sn(t))}function un(){return Math.round(9*Math.random())}function hn(t,e){return null==t?e:null==e?t:t*e/function t(e,n){return 0===n?e:t(n,e%n)}(t,e)}function cn(t){throw new Error(t)}function pn(t){return t instanceof Array?t:null==t?[]:[t]}function dn(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,o=n.length;i<o;i++){var r=n[i];!t.emphasis[e].hasOwnProperty(r)&&t[e].hasOwnProperty(r)&&(t.emphasis[e][r]=t[e][r])}}}function fn(t){return!C(t)||_(t)||t instanceof Date?t:t.value}function gn(t,e,n){var i,o,r,a,s,l,u,h,c,p,f="normalMerge"===n,g="replaceMerge"===n,y="replaceAll"===n,m=(t=t||[],e=(e||[]).slice(),G()),n=(d(e,function(t,n){C(t)||(e[n]=null)}),function(t,e,n){var i=[];if("replaceAll"!==n)for(var o=0;o<t.length;o++){var r=t[o];r&&null!=r.id&&e.set(r.id,o),i.push({existing:"replaceMerge"===n||xn(r)?null:r,newOption:null,keyInfo:null,brandNew:null})}return i}(t,m,n));return(f||g)&&(i=n,o=t,r=m,d(a=e,function(t,e){var n,s,l;t&&null!=t.id&&(n=mn(t.id),null!=(s=r.get(n)))&&(B(!(l=i[s]).newOption,'Duplicated option on id "'+n+'".'),l.newOption=t,l.existing=o[s],a[e]=null)})),f&&(s=n,d(l=e,function(t,e){if(t&&null!=t.name)for(var n=0;n<s.length;n++){var i=s[n].existing;if(!s[n].newOption&&i&&(null==i.id||null==t.id)&&!xn(t)&&!xn(i)&&yn("name",i,t))return s[n].newOption=t,void(l[e]=null)}})),f||g?(h=n,c=g,d(e,function(t){if(t){for(var e,n=0;(e=h[n])&&(e.newOption||xn(e.existing)||e.existing&&null!=t.id&&!yn("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=c):h.push({newOption:t,brandNew:c,existing:null,keyInfo:null}),n++}})):y&&(u=n,d(e,function(t){u.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),t=n,p=G(),d(t,function(t){var e=t.existing;e&&p.set(e.id,t)}),d(t,function(t){var e=t.newOption;B(!e||null==e.id||!p.get(e.id)||p.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&p.set(e.id,t),t.keyInfo||(t.keyInfo={})}),d(t,function(t,e){var n=t.existing,i=t.newOption,o=t.keyInfo;if(C(i)){if(o.name=null!=i.name?mn(i.name):n?n.name:Yg+e,n)o.id=mn(n.id);else if(null!=i.id)o.id=mn(i.id);else for(var r=0;o.id="\0"+o.name+"\0"+r++,p.get(o.id););p.set(o.id,t)}}),n}function yn(t,e,n){return e=vn(e[t],null),n=vn(n[t],null),null!=e&&null!=n&&e===n}function mn(t){return vn(t,"")}function vn(t,e){var n;return null==t?e:"string"==(n=typeof t)?t:"number"==n||w(t)?t+"":e}function _n(t){return!(!(t=t.name)||!t.indexOf(Yg))}function xn(t){return t&&null!=t.id&&0===mn(t.id).indexOf("\0_ec_\0")}function bn(t,e,n){d(t,function(t){var i,o,r=t.newOption;C(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=(i=e,r=r,t=t.existing,o=n,r.type||(t?t.subType:o.determineSubType(i,r))))})}function wn(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?_(e.dataIndex)?f(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?_(e.name)?f(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function Sn(){var t="__ec_inner_"+Zg++;return function(e){return e[t]||(e[t]={})}}function Cn(t,e,n){var e=Tn(e,n),i=e.mainTypeSpecified,o=e.queryOptionMap,r=e.others,a=n?n.defaultMainType:null;return!i&&a&&o.set(a,{}),o.each(function(e,i){e=Mn(t,i,e,{useDefault:a===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone}),r[i+"Models"]=e.models,r[i+"Model"]=e.models[0]}),r}function Tn(t,e){var n=b(t)?((n={})[t+"Index"]=0,n):t,i=G(),o={},r=!1;return d(n,function(t,n){var a;"dataIndex"===n||"dataIndexInside"===n?o[n]=t:(a=(n=n.match(/^(\w+)(Index|Id|Name)$/)||[])[1],n=(n[2]||"").toLowerCase(),!a||!n||e&&e.includeMainTypes&&u(e.includeMainTypes,a)<0||(r=r||!!a,(i.get(a)||i.set(a,{}))[n]=t))}),{mainTypeSpecified:r,queryOptionMap:i,others:o}}function Mn(t,e,n,i){i=i||$g;var o=n.index,r=n.id,n=n.name,a={models:null,specified:null!=o||null!=r||null!=n};return a.specified?"none"===o||!1===o?(B(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),a.models=[]):("all"===o&&(B(i.enableAll,'`"all"` is not a valid value on index option.'),o=r=n=null),a.models=t.queryComponents({mainType:e,index:o,id:r,name:n})):(o=void 0,a.models=i.useDefault&&(o=t.getComponent(e))?[o]:[]),a}function kn(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function In(t,e,n,i,o){var r=null==e||"auto"===e;if(null==i)return i;if("number"==typeof i)return $e(p=Jt(n||0,i,o),r?Math.max(Ke(n||0),Ke(i)):e);if("string"==typeof i)return o<1?n:i;for(var a=[],s=n,l=i,u=Math.max(s?s.length:0,l.length),h=0;h<u;++h){var c,p,d=t.getDimensionInfo(h);d&&"ordinal"===d.type?a[h]=(o<1&&s?s:l)[h]:(p=Jt(d=s&&s[h]?s[h]:0,c=l[h],o),a[h]=$e(p,r?Math.max(Ke(d),Ke(c)):e))}return a}function Dn(t){var e={main:"",sub:""};return t&&(t=t.split(Kg),e.main=t[0]||"",e.sub=t[1]||""),e}function An(t){(t.$constructor=t).extend=function(t){function e(){for(var i,o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(t.$constructor)t.$constructor.apply(this,arguments);else{if("function"==typeof(i=n)&&/^class\s/.test(Function.prototype.toString.call(i)))return U(e.prototype,new(n.bind.apply(n,function(t,e,n){if(n||2===arguments.length)for(var i,o=0,r=e.length;o<r;o++)!i&&o in e||((i=i||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(i||e)}([void 0],o))));n.apply(this,arguments)}}var n=this;return e[Qg]=!0,s(e.prototype,t),e.extend=this.extend,e.superCall=On,e.superApply=Ln,h(e,this),e.superClass=n,e}}function Pn(t,e){t.extend=e.extend}function On(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function Ln(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Rn(t){var e={};t.registerClass=function(t){var n,i=t.type||t.prototype.type;return i&&(B(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=i),'componentType "'+n+'" illegal'),(n=Dn(t.prototype.type=i)).sub?n.sub!==Jg&&((function(t){var n=e[t.main];return n&&n[Jg]||(n=e[t.main]={___EC__COMPONENT__CONTAINER___:!0}),n}(n))[n.sub]=t):e[n.main]=t),t},t.getClass=function(t,n,i){var o=e[t];if(o&&o[Jg]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return o},t.getClassesByMainType=function(t){var t=Dn(t),n=[],t=e[t.main];return t&&t[Jg]?d(t,function(t,e){e!==Jg&&n.push(t)}):n.push(t),n},t.hasClass=function(t){return t=Dn(t),!!e[t.main]},t.getAllClassMainTypes=function(){var t=[];return d(e,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){return t=Dn(t),(t=e[t.main])&&t[Jg]}}function Nn(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,o){for(var r={},a=0;a<t.length;a++){var s=t[a][1];i&&0<=u(i,s)||o&&u(o,s)<0||null!=(s=n.getShallow(s,e))&&(r[t[a][0]]=s)}return r}}function En(){}function Bn(t,e,n,i,o){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!n||(n={hostEl:n,cb:i,cbPayload:o},(i=iy.get(t))?Fn(e=i.image)||i.pending.push(n):((e=new Image).onload=e.onerror=zn,iy.put(t,e.__cachedImgObj={image:e,pending:[n]}),e.src=e.__zrImageSrc=t)),e):t:e}function zn(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Fn(t){return t&&t.width&&t.height}function Vn(t,e,n,i,o){if(!e)return"";var r=(t+"").split("\n");o=Hn(e,n,i,o);for(var a=0,s=r.length;a<s;a++)r[a]=Gn(r[a],o);return r.join("\n")}function Hn(t,e,n,i){for(var o=s({},i=i||{}),r=(o.font=e,n=L(n,"..."),o.maxIterations=L(i.maxIterations,2),o.minChar=L(i.minChar,0)),a=(o.cnCharWidth=Ae("国",e),o.ascCharWidth=Ae("a",e)),l=(o.placeholder=L(i.placeholder,""),t=Math.max(0,t-1)),u=0;u<r&&a<=l;u++)l-=a;return i=Ae(n,e),l<i&&(n="",i=0),l=t-i,o.ellipsis=n,o.ellipsisWidth=i,o.contentWidth=l,o.containerWidth=t,o}function Gn(t,e){var n=e.containerWidth,i=e.font,o=e.contentWidth;if(!n)return"";var r=Ae(t,i);if(!(r<=n)){for(var a=0;;a++){if(r<=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?function(t,e,n,i){for(var o=0,r=0,a=t.length;r<a&&o<e;r++){var s=t.charCodeAt(r);o+=0<=s&&s<=127?n:i}return r}(t,o,e.ascCharWidth,e.cnCharWidth):0<r?Math.floor(t.length*o/r):0,r=Ae(t=t.substr(0,s),i)}""===t&&(t=e.placeholder)}return t}function Wn(t,e){function n(t,e,n){t.width=e,t.lineHeight=n,d+=n,f=Math.max(f,e)}var i=new sy;if(null!=t&&(t+=""),t){for(var o,r=e.width,a=e.height,s=e.overflow,l="break"!==s&&"breakAll"!==s||null==r?null:{width:r,accumWidth:0,breakAll:"breakAll"===s},u=oy.lastIndex=0;null!=(o=oy.exec(t));){var h=o.index;u<h&&Un(i,t.substring(u,h),e,l),Un(i,o[2],e,l,o[1]),u=oy.lastIndex}u<t.length&&Un(i,t.substring(u,t.length),e,l);var c,p=[],d=0,f=0,g=e.padding,y="truncate"===s,m="truncate"===e.lineOverflow;t:for(var v=0;v<i.lines.length;v++){for(var _=i.lines[v],x=0,b=0,w=0;w<_.tokens.length;w++){var S=(A=_.tokens[w]).styleName&&e.rich[A.styleName]||{},C=A.textPadding=S.padding,T=C?C[1]+C[3]:0,M=A.font=S.font||e.font,k=(A.contentHeight=Ne(M),L(S.height,A.contentHeight));if(A.innerHeight=k,C&&(k+=C[0]+C[2]),A.height=k,A.lineHeight=R(S.lineHeight,e.lineHeight,k),A.align=S&&S.align||e.align,A.verticalAlign=S&&S.verticalAlign||"middle",m&&null!=a&&d+A.lineHeight>a){0<w?(_.tokens=_.tokens.slice(0,w),n(_,b,x),i.lines=i.lines.slice(0,v+1)):i.lines=i.lines.slice(0,v);break t}var I,C=S.width,D=null==C||"auto"===C;"string"==typeof C&&"%"===C.charAt(C.length-1)?(A.percentWidth=C,p.push(A),A.contentWidth=Ae(A.text,M)):(D&&(C=(C=S.backgroundColor)&&C.image)&&(I=void 0,Fn(C="string"==typeof(c=C)?(I=iy.get(c))&&I.image:c))&&(A.width=Math.max(A.width,C.width*k/C.height)),null!=(I=y&&null!=r?r-b:null)&&I<A.width?!D||I<T?(A.text="",A.width=A.contentWidth=0):(A.text=Vn(A.text,I-T,M,e.ellipsis,{minChar:e.truncateMinChar}),A.width=A.contentWidth=Ae(A.text,M)):A.contentWidth=Ae(A.text,M)),A.width+=T,b+=A.width,S&&(x=Math.max(x,A.lineHeight))}n(_,b,x)}for(i.outerWidth=i.width=L(r,f),i.outerHeight=i.height=L(a,d),i.contentHeight=d,i.contentWidth=f,g&&(i.outerWidth+=g[1]+g[3],i.outerHeight+=g[0]+g[2]),v=0;v<p.length;v++){var A,P=(A=p[v]).percentWidth;A.width=parseInt(P,10)/100*i.width}}return i}function Un(t,e,n,i,o){var r,a,s=""===e,l=o&&n.rich[o]||{},u=t.lines,h=l.font||n.font,c=!1;i?(n=(t=l.padding)?t[1]+t[3]:0,null!=l.width&&"auto"!==l.width?(t=Ee(l.width,i.width)+n,0<u.length&&t+i.accumWidth>i.width&&(r=e.split("\n"),c=!0),i.accumWidth=t):(t=jn(e,h,i.width,i.breakAll,i.accumWidth),i.accumWidth=t.accumWidth+n,a=t.linesWidths,r=t.lines)):r=e.split("\n");for(var p=0;p<r.length;p++){var d,f,g=r[p],y=new ry;y.styleName=o,y.text=g,y.isLineHolder=!g&&!s,y.width="number"==typeof l.width?l.width:a?a[p]:Ae(g,h),p||c?u.push(new ay([y])):1===(f=(d=(u[u.length-1]||(u[0]=new ay)).tokens).length)&&d[0].isLineHolder?d[0]=y:!g&&f&&!s||d.push(y)}}function jn(t,e,n,i,o){for(var r,a=[],s=[],l="",u="",h=0,c=0,p=0;p<t.length;p++){var d,f,g=t.charAt(p);"\n"===g?(u&&(l+=u,c+=h),a.push(l),s.push(c),u=l="",c=h=0):(d=Ae(g,e),f=!(i||(f=void 0,!(33<=(f=(f=r=g).charCodeAt(0))&&f<=255)||ly[r])),(a.length?n<c+d:n<o+c+d)?c?(l||u)&&(c=f?(l||(l=u,u="",c=h=0),a.push(l),s.push(c-h),u+=g,l="",h+=d):(u&&(l+=u,c+=h,u="",h=0),a.push(l),s.push(c),l=g,d)):f?(a.push(u),s.push(h),u=g,h=d):(a.push(g),s.push(d)):(c+=d,f?(u+=g,h+=d):(u&&(l+=u,u="",h=0),l+=g)))}return a.length||l||(l=t,u="",h=0),u&&(l+=u),l&&(a.push(l),s.push(c)),1===a.length&&(c+=o),{accumWidth:c,lines:a,linesWidths:s}}function Xn(t){return Gg.call(this,t)||this}function Yn(t){return-vy<t&&t<vy}function qn(t){return vy<t||t<-vy}function Zn(t,e,n,i,o){var r=1-o;return r*r*(r*t+3*o*e)+o*o*(o*i+3*r*n)}function $n(t,e,n,i,o){var r=1-o;return 3*(((e-t)*r+2*(n-e)*o)*r+(i-n)*o*o)}function Kn(t,e,n,i,o,r){var a,s,i=i+3*(e-n)-t,n=3*(n-2*e+t),e=3*(e-t),t=t-o,o=n*n-3*i*e,l=n*e-9*i*t,t=e*e-3*n*t,u=0;return Yn(o)&&Yn(l)?Yn(n)?r[0]=0:0<=(a=-e/n)&&a<=1&&(r[u++]=a):Yn(e=l*l-4*o*t)?(s=-(t=l/o)/2,0<=(a=-n/i+t)&&a<=1&&(r[u++]=a),0<=s&&s<=1&&(r[u++]=s)):0<e?(e=o*n+1.5*i*(-l-(t=my(e))),0<=(a=(-n-((t=(t=o*n+1.5*i*(-l+t))<0?-yy(-t,1/3):yy(t,1/3))+(e=e<0?-yy(-e,1/3):yy(e,1/3))))/(3*i))&&a<=1&&(r[u++]=a)):(t=(2*o*n-3*i*l)/(2*my(o*o*o)),e=Math.acos(t)/3,a=(-n-2*(l=my(o))*(t=Math.cos(e)))/(3*i),s=(-n+l*(t+_y*Math.sin(e)))/(3*i),o=(-n+l*(t-_y*Math.sin(e)))/(3*i),0<=a&&a<=1&&(r[u++]=a),0<=s&&s<=1&&(r[u++]=s),0<=o&&o<=1&&(r[u++]=o)),u}function Jn(t,e,n,i,o){var r,a=6*n-12*e+6*t,i=9*e+3*i-3*t-9*n,n=3*e-3*t,e=0;return Yn(i)?qn(a)&&0<=(r=-n/a)&&r<=1&&(o[e++]=r):Yn(t=a*a-4*i*n)?o[0]=-a/(2*i):0<t&&(t=(-a-(n=my(t)))/(2*i),0<=(r=(-a+n)/(2*i))&&r<=1&&(o[e++]=r),0<=t)&&t<=1&&(o[e++]=t),e}function Qn(t,e,n,i,o,r){var a=(e-t)*o+t,e=(n-e)*o+e,n=(i-n)*o+n,s=(e-a)*o+a,e=(n-e)*o+e,o=(e-s)*o+s;r[0]=t,r[1]=a,r[2]=s,r[3]=o,r[4]=o,r[5]=e,r[6]=n,r[7]=i}function ti(t,e,n,i,o,r,a,s,l,u,h){var c,p,d,f,g=.005,y=1/0;xy[0]=l,xy[1]=u;for(var m=0;m<1;m+=.05)by[0]=Zn(t,n,o,a,m),by[1]=Zn(e,i,r,s,m),(d=nf(xy,by))<y&&(c=m,y=d);for(var y=1/0,v=0;v<32&&!(g<1e-4);v++)p=c+g,by[0]=Zn(t,n,o,a,f=c-g),by[1]=Zn(e,i,r,s,f),d=nf(by,xy),0<=f&&d<y?(c=f,y=d):(wy[0]=Zn(t,n,o,a,p),wy[1]=Zn(e,i,r,s,p),f=nf(wy,xy),p<=1&&f<y?(c=p,y=f):g*=.5);return h&&(h[0]=Zn(t,n,o,a,c),h[1]=Zn(e,i,r,s,c)),my(y)}function ei(t,e,n,i){var o=1-i;return o*(o*t+2*i*e)+i*i*n}function ni(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function ii(t,e,n){return n=t+n-2*e,0==n?.5:(t-e)/n}function oi(t,e,n,i,o){var r=(e-t)*i+t,e=(n-e)*i+e,i=(e-r)*i+r;o[0]=t,o[1]=r,o[2]=i,o[3]=i,o[4]=e,o[5]=n}function ri(t,e,n,i,o,r,a,s,l){var u,h=.005,c=1/0;xy[0]=a,xy[1]=s;for(var p=0;p<1;p+=.05)by[0]=ei(t,n,o,p),by[1]=ei(e,i,r,p),(y=nf(xy,by))<c&&(u=p,c=y);for(var c=1/0,d=0;d<32&&!(h<1e-4);d++){var f=u-h,g=u+h,y=(by[0]=ei(t,n,o,f),by[1]=ei(e,i,r,f),nf(by,xy));0<=f&&y<c?(u=f,c=y):(wy[0]=ei(t,n,o,g),wy[1]=ei(e,i,r,g),f=nf(wy,xy),g<=1&&f<c?(u=g,c=f):h*=.5)}return l&&(l[0]=ei(t,n,o,u),l[1]=ei(e,i,r,u)),my(c)}function ai(t,e,n,i,o,r){o[0]=Sy(t,n),o[1]=Sy(e,i),r[0]=Cy(t,n),r[1]=Cy(e,i)}function si(t){return Math.round(t/Xy*1e8)/1e8%2*Xy}function li(t,e){var n=si(t[0]),i=(n<0&&(n+=Yy),n-t[0]),o=t[1];o+=i,!e&&Yy<=o-n?o=n+Yy:e&&Yy<=n-o?o=n-Yy:!e&&o<n?o=n+(Yy-si(n-o)):e&&n<o&&(o=n-(Yy-si(o-n))),t[0]=n,t[1]=o}function ui(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}function hi(t,e,n,i,o,r,a){var s;if(0!==o)return s=0,!(e+(o=o)<a&&i+o<a||a<e-o&&a<i-o||t+o<r&&n+o<r||r<t-o&&r<n-o)&&(t===n?Math.abs(r-t)<=o/2:(r=(s=(e-i)/(t-n))*r-a+(t*i-n*e)/(t-n))*r/(s*s+1)<=o/2*o/2)}function ci(t){return(t%=Qy)<0&&(t+=Qy),t}function pi(t,e,n,i,o,r){return e<r&&i<r||r<e&&r<i||i===e?0:(n=(r=(r-e)/(i-e))*(n-t)+t)===o?1/0:o<n?1!=r&&0!=r?i<e?1:-1:i<e?.5:-.5:0}function di(t,e,n,i,o,r,a,s,l,u){if(e<u&&i<u&&r<u&&s<u||u<e&&u<i&&u<r&&u<s)return 0;var h=Kn(e,i,r,s,u,om);if(0===h)return 0;for(var c,p=0,d=-1,f=void 0,g=void 0,y=0;y<h;y++){var m=om[y],v=0===m||1===m?.5:1;Zn(t,n,o,a,m)<l||(d<0&&(d=Jn(e,i,r,s,rm),rm[1]<rm[0]&&1<d&&(c=void 0,c=rm[0],rm[0]=rm[1],rm[1]=c),f=Zn(e,i,r,s,rm[0]),1<d)&&(g=Zn(e,i,r,s,rm[1])),2===d?m<rm[0]?p+=f<e?v:-v:m<rm[1]?p+=g<f?v:-v:p+=s<g?v:-v:m<rm[0]?p+=f<e?v:-v:p+=s<f?v:-v)}return p}function fi(t,e,n,i,o,r,a,s){if(e<s&&i<s&&r<s||s<e&&s<i&&s<r)return 0;c=om,h=(l=e)-2*(u=i)+(h=r),u=2*(u-l),l-=s=s,s=0,Yn(h)?qn(u)&&0<=(p=-l/u)&&p<=1&&(c[s++]=p):Yn(l=u*u-4*h*l)?0<=(p=-u/(2*h))&&p<=1&&(c[s++]=p):0<l&&(d=(-u-(l=my(l)))/(2*h),0<=(p=(-u+l)/(2*h))&&p<=1&&(c[s++]=p),0<=d)&&d<=1&&(c[s++]=d);var l,u,h,c,p,d,f=s;if(0===f)return 0;var g=ii(e,i,r);if(0<=g&&g<=1){for(var y=0,m=ei(e,i,r,g),v=0;v<f;v++){var _=0===om[v]||1===om[v]?.5:1;ei(t,n,o,om[v])<a||(om[v]<g?y+=m<e?_:-_:y+=r<m?_:-_)}return y}return _=0===om[0]||1===om[0]?.5:1,ei(t,n,o,om[0])<a?0:r<e?_:-_}function gi(t,e,n,i,o){for(var r,a=t.data,s=t.len(),l=0,u=0,h=0,c=0,p=0,d=0;d<s;){var f=a[d++],g=1===d;switch(f===em.M&&1<d&&(n||(l+=pi(u,h,c,p,i,o))),g&&(c=u=a[d],p=h=a[d+1]),f){case em.M:u=c=a[d++],h=p=a[d++];break;case em.L:if(n){if(hi(u,h,a[d],a[d+1],e,i,o))return!0}else l+=pi(u,h,a[d],a[d+1],i,o)||0;u=a[d++],h=a[d++];break;case em.C:if(n){if(function(t,e,n,i,o,r,a,s,l,u,h){if(0!==l)return!(e+(l=l)<h&&i+l<h&&r+l<h&&s+l<h||h<e-l&&h<i-l&&h<r-l&&h<s-l||t+l<u&&n+l<u&&o+l<u&&a+l<u||u<t-l&&u<n-l&&u<o-l&&u<a-l)&&ti(t,e,n,i,o,r,a,s,u,h,null)<=l/2}(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,i,o))return!0}else l+=di(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,o)||0;u=a[d++],h=a[d++];break;case em.Q:if(n){if(function(t,e,n,i,o,r,a,s,l){if(0!==a)return!(e+(a=a)<l&&i+a<l&&r+a<l||l<e-a&&l<i-a&&l<r-a||t+a<s&&n+a<s&&o+a<s||s<t-a&&s<n-a&&s<o-a)&&ri(t,e,n,i,o,r,s,l,null)<=a/2}(u,h,a[d++],a[d++],a[d],a[d+1],e,i,o))return!0}else l+=fi(u,h,a[d++],a[d++],a[d],a[d+1],i,o)||0;u=a[d++],h=a[d++];break;case em.A:var y=a[d++],m=a[d++],v=a[d++],_=a[d++],x=a[d++],b=a[d++],w=(d+=1,!!(1-a[d++])),S=Math.cos(x)*v+y,C=Math.sin(x)*_+m,T=(g?(c=S,p=C):l+=pi(u,h,S,C,i,o),(i-y)*_/v+y);if(n){if(function(t,e,n,i,o,r,a,s,l){if(0!==a)return a=a,s-=t,l-=e,!(n<(t=Math.sqrt(s*s+l*l))-a||t+a<n)&&(Math.abs(i-o)%tm<1e-4||((o=r?(e=i,i=ci(o),ci(e)):(i=ci(i),ci(o)))<i&&(o+=tm),(t=Math.atan2(l,s))<0&&(t+=tm),i<=t&&t<=o)||i<=t+tm&&t+tm<=o)}(y,m,_,x,x+b,w,e,T,o))return!0}else l+=function(t,e,n,i,o,r,a,s){if(n<(s-=e)||s<-n)return 0;var e=Math.sqrt(n*n-s*s);if(om[0]=-e,om[1]=e,(n=Math.abs(i-o))<1e-4)return 0;if(nm-1e-4<=n)return o=nm,h=r?1:-1,a>=om[i=0]+t&&a<=om[1]+t?h:0;o<i&&(e=i,i=o,o=e),i<0&&(i+=nm,o+=nm);for(var l=0,u=0;u<2;u++){var h,c=om[u];a<c+t&&(h=r?1:-1,i<=(c=(c=Math.atan2(s,c))<0?nm+c:c)&&c<=o||i<=c+nm&&c+nm<=o)&&(l+=h=c>Math.PI/2&&c<1.5*Math.PI?-h:h)}return l}(y,m,_,x,x+b,w,T,o);u=Math.cos(x+b)*v+y,h=Math.sin(x+b)*_+m;break;case em.R:if(c=u=a[d++],p=h=a[d++],S=c+a[d++],C=p+a[d++],n){if(hi(c,p,S,p,e,i,o)||hi(S,p,S,C,e,i,o)||hi(S,C,c,C,e,i,o)||hi(c,C,c,p,e,i,o))return!0}else l=(l+=pi(S,p,S,C,i,o))+pi(c,C,c,p,i,o);break;case em.Z:if(n){if(hi(u,h,c,p,e,i,o))return!0}else l+=pi(u,h,c,p,i,o);u=c,h=p}}return n||(t=h,r=p,Math.abs(t-r)<im)||(l+=pi(u,h,c,p,i,o)||0),0!==l}function yi(t){return $y.call(this,t)||this}function mi(){return null!==Ky&&Ky.apply(this,arguments)||this}function vi(){return null!==fm&&fm.apply(this,arguments)||this}function _i(t,e,n){var i,o,r;if(e)return i=e.x1,o=e.x2,r=e.y1,e=e.y2,t.x1=i,t.x2=o,t.y1=r,t.y2=e,(n=n&&n.lineWidth)&&(mm(2*i)===mm(2*o)&&(t.x1=t.x2=bi(i,n,!0)),mm(2*r)===mm(2*e))&&(t.y1=t.y2=bi(r,n,!0)),t}function xi(t,e,n){var i,o,r;if(e)return i=e.x,o=e.y,r=e.width,e=e.height,t.x=i,t.y=o,t.width=r,t.height=e,(n=n&&n.lineWidth)&&(t.x=bi(i,n,!0),t.y=bi(o,n,!0),t.width=Math.max(bi(i+r,n,!1)-t.x,0===r?0:1),t.height=Math.max(bi(o+e,n,!1)-t.y,0===e?0:1)),t}function bi(t,e,n){var i;return e?((i=mm(2*t))+mm(e))%2==0?i/2:(i+(n?1:-1))/2:t}function wi(t){return ym.call(this,t)||this}function Si(t){var e=bm.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=wm,e.attr(t),e}function Ci(t){var e;t&&(t.font=Cm.makeFont(t),e=t.align,t.align=null==(e="middle"===e?"center":e)||Tm[e]?e:"left",e=t.verticalAlign,t.verticalAlign=null==(e="center"===e?"middle":e)||Mm[e]?e:"top",t.padding)&&(t.padding=E(t.padding))}function Ti(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Mi(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function ki(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Ii(t){return t=t.text,null!=t&&(t+=""),t}function Di(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function Ai(t){return null!=t&&"none"!==t}function Pi(t){var e;return"string"!=typeof t?t:((e=Hm.get(t))||(e=Xt(t,-.1),Hm.put(t,e)),e)}function Oi(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Li(t){Oi(t,"emphasis",Lm)}function Ri(t){t.hoverState===Lm&&Oi(t,"normal",Pm)}function Ni(t){Oi(t,"blur",Om)}function Ei(t){t.hoverState===Om&&Oi(t,"normal",Pm)}function Bi(t){t.selected=!0}function zi(t){t.selected=!1}function Fi(t,e,n){e(t,n)}function Vi(t,e,n){Fi(t,e,n),t.isGroup&&t.traverse(function(t){Fi(t,e,n)})}function Hi(t,e){switch(e){case"emphasis":t.hoverState=Lm;break;case"normal":t.hoverState=Pm;break;case"blur":t.hoverState=Om;break;case"select":t.selected=!0}}function Gi(t,e,n){var i=0<=u(t.currentStates,e),o=t.style.opacity,t=i?null:function(t,e,n,i){for(var o=t.style,r={},a=0;a<e.length;a++){var s=e[a],l=o[s];r[s]=null==l?i&&i[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveFinalToTarget(r,e)}return r}(t,["opacity"],e,{opacity:1}),e=(n=n||{}).style||{};return null==e.opacity&&(n=s({},n),e=s({opacity:i?o:.1*t.opacity},e),n.style=e),n}function Wi(t,e){var n,i,o,r,a,l=this.states[t];if(this.style){if("emphasis"===t)return n=this,i=l,e=(e=e)&&0<=u(e,"select"),a=!1,n instanceof um&&(o=Am(n),r=e&&o.selectFill||o.normalFill,e=e&&o.selectStroke||o.normalStroke,Ai(r)||Ai(e))&&("inherit"===(o=(i=i||{}).style||{}).fill?(a=!0,i=s({},i),(o=s({},o)).fill=r):!Ai(o.fill)&&Ai(r)?(a=!0,i=s({},i),(o=s({},o)).fill=Pi(r)):!Ai(o.stroke)&&Ai(e)&&(a||(i=s({},i),o=s({},o)),o.stroke=Pi(e)),i.style=o),i&&null==i.z2&&(a||(i=s({},i)),r=n.z2EmphasisLift,i.z2=n.z2+(null!=r?r:10)),i;if("blur"===t)return Gi(this,t,l);if("select"===t)return e=this,(o=l)&&null==o.z2&&(o=s({},o),a=e.z2SelectLift,o.z2=e.z2+(null!=a?a:9)),o}return l}function Ui(t){t.stateProxy=Wi;var e=t.getTextContent(),t=t.getTextGuideLine();e&&(e.stateProxy=Wi),t&&(t.stateProxy=Wi)}function ji(t,e){Ji(t,e)||t.__highByOuter||Vi(t,Li)}function Xi(t,e){Ji(t,e)||t.__highByOuter||Vi(t,Ri)}function Yi(t,e){t.__highByOuter|=1<<(e||0),Vi(t,Li)}function qi(t,e){(t.__highByOuter&=~(1<<(e||0)))||Vi(t,Ri)}function Zi(t){Vi(t,Ei)}function $i(t){Vi(t,Bi)}function Ki(t){Vi(t,zi)}function Ji(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Qi(t){t.getModel().eachComponent(function(e,n){("series"===e?t.getViewOfSeriesModel(n):t.getViewOfComponentModel(n)).group.traverse(function(t){Ei(t)})})}function to(t,e,n,i){function o(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&Zi(i)}}var r,a,s,l=i.getModel();n=n||"coordinateSystem",null!=t&&e&&"none"!==e&&(r=l.getSeriesByIndex(t),(a=r.coordinateSystem)&&a.master&&(a=a.master),s=[],l.eachSeries(function(t){var l=r===t,u=t.coordinateSystem,u=(u=u&&u.master?u.master:u)&&a?u===a:l;if(!("series"===n&&!l||"coordinateSystem"===n&&!u||"series"===e&&l)){if(i.getViewOfSeriesModel(t).group.traverse(function(t){Ni(t)}),p(e))o(t.getData(),e);else if(C(e))for(var h=m(e),c=0;c<h.length;c++)o(t.getData(h[c]),e[h[c]]);s.push(t)}}),l.eachComponent(function(t,e){"series"!==t&&(t=i.getViewOfComponentModel(e))&&t.blurSeries&&t.blurSeries(s,l)}))}function eo(t,e,n){var i;null!=t&&null!=e&&(t=n.getModel().getComponent(t,e))&&(i=n.getViewOfComponentModel(t))&&i.focusBlurEnabled&&i.group.traverse(function(t){Ni(t)})}function no(t,e,n,i){var o={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return o;if(!(t=i.getModel().getComponent(t,e)))return o;if(!(e=i.getViewOfComponentModel(t))||!e.findHighDownDispatchers)return o;for(var r,a=e.findHighDownDispatchers(n),s=0;s<a.length;s++)if("self"===km(a[s]).focus){r=!0;break}return{focusSelf:r,dispatchers:a}}function io(t){d(t.getAllData(),function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(e,n){(t.isSelected(n,i)?$i:Ki)(e)})})}function oo(t,e,n){var i=t,o=!1==(o=!0),r=i,i=(i.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=i.highDownSilentOnTouch),o&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!o),Vi(t,Ui),t),r=e,o=n;i=km(i),null!=r?(i.focus=r,i.blurScope=o):i.focus&&(i.focus=null)}function ro(t,e,n,i){n=n||"itemStyle";for(var o=0;o<Gm.length;o++){var r=Gm[o],a=e.getModel([r,n]);t.ensureState(r).style=i?i(a):a[Wm[n]]()}}function ao(t){return!(!t||!t.__highDownDispatcher)}function so(t){return(t=t.type)===zm||t===Fm||t===Vm}function lo(t){return(t=t.type)===Em||t===Bm}function uo(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ho(t,e){return(t[0]*e[0]+t[1]*e[1])/(uo(t)*uo(e))}function co(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(ho(t,e))}function po(t,e,n,i,o,r,a,s,l,u,h){var l=l*(Km/180),c=$m(l)*(t-n)/2+Zm(l)*(e-i)/2,p=-1*Zm(l)*(t-n)/2+$m(l)*(e-i)/2,d=c*c/(a*a)+p*p/(s*s),d=(1<d&&(a*=qm(d),s*=qm(d)),(o===r?-1:1)*qm((a*a*(s*s)-a*a*(p*p)-s*s*(c*c))/(a*a*(p*p)+s*s*(c*c)))||0),o=d*a*p/s,d=d*-s*c/a,t=(t+n)/2+$m(l)*o-Zm(l)*d,n=(e+i)/2+Zm(l)*o+$m(l)*d,e=co([1,0],[(c-o)/a,(p-d)/s]),i=[(c-o)/a,(p-d)/s],c=[(-1*c-o)/a,(-1*p-d)/s],o=co(i,c);ho(i,c)<=-1&&(o=Km),(o=1<=ho(i,c)?0:o)<0&&(p=Math.round(o/Km*1e6)/1e6,o=2*Km+p%2*Km),h.addData(u,t,n,a,s,e,o,l,r)}function fo(){return null!==tv&&tv.apply(this,arguments)||this}function go(t){return null!=t.setData}function yo(t,e){var n=function(t){var e=new Jy;if(t){var n,i=0,o=0,r=i,a=o,s=Jy.CMD,l=t.match(Jm);if(l){for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),p=void 0,d=h.match(Qm)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var y=0;y<f;){var m=void 0,v=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,C=i,T=o,M=void 0,k=void 0;switch(c){case"l":i+=d[y++],o+=d[y++],p=s.L,e.addData(p,i,o);break;case"L":i=d[y++],o=d[y++],p=s.L,e.addData(p,i,o);break;case"m":i+=d[y++],o+=d[y++],p=s.M,e.addData(p,i,o),r=i,a=o,c="l";break;case"M":i=d[y++],o=d[y++],p=s.M,e.addData(p,i,o),r=i,a=o,c="L";break;case"h":i+=d[y++],p=s.L,e.addData(p,i,o);break;case"H":i=d[y++],p=s.L,e.addData(p,i,o);break;case"v":o+=d[y++],p=s.L,e.addData(p,i,o);break;case"V":o=d[y++],p=s.L,e.addData(p,i,o);break;case"C":p=s.C,e.addData(p,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),i=d[y-2],o=d[y-1];break;case"c":p=s.C,e.addData(p,d[y++]+i,d[y++]+o,d[y++]+i,d[y++]+o,d[y++]+i,d[y++]+o),i+=d[y-2],o+=d[y-1];break;case"S":m=i,v=o,M=e.len(),k=e.data,n===s.C&&(m+=i-k[M-4],v+=o-k[M-3]),p=s.C,C=d[y++],T=d[y++],i=d[y++],o=d[y++],e.addData(p,m,v,C,T,i,o);break;case"s":m=i,v=o,M=e.len(),k=e.data,n===s.C&&(m+=i-k[M-4],v+=o-k[M-3]),p=s.C,C=i+d[y++],T=o+d[y++],i+=d[y++],o+=d[y++],e.addData(p,m,v,C,T,i,o);break;case"Q":C=d[y++],T=d[y++],i=d[y++],o=d[y++],p=s.Q,e.addData(p,C,T,i,o);break;case"q":C=d[y++]+i,T=d[y++]+o,i+=d[y++],o+=d[y++],p=s.Q,e.addData(p,C,T,i,o);break;case"T":m=i,v=o,M=e.len(),k=e.data,n===s.Q&&(m+=i-k[M-4],v+=o-k[M-3]),i=d[y++],o=d[y++],p=s.Q,e.addData(p,m,v,i,o);break;case"t":m=i,v=o,M=e.len(),k=e.data,n===s.Q&&(m+=i-k[M-4],v+=o-k[M-3]),i+=d[y++],o+=d[y++],p=s.Q,e.addData(p,m,v,i,o);break;case"A":_=d[y++],x=d[y++],b=d[y++],w=d[y++],S=d[y++],po(C=i,T=o,i=d[y++],o=d[y++],w,S,_,x,b,p=s.A,e);break;case"a":_=d[y++],x=d[y++],b=d[y++],w=d[y++],S=d[y++],po(C=i,T=o,i+=d[y++],o+=d[y++],w,S,_,x,b,p=s.A,e)}}"z"!==c&&"Z"!==c||(p=s.Z,e.addData(p),i=r,o=a),n=p}e.toStatic()}}return e}(t),t=s({},e);return t.buildPath=function(t){var e;go(t)?(t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)):n.rebuildPath(e=t,1)},t.applyTransform=function(t){var e=n,i=t;if(i){for(var o,r,a,s,l=e.data,u=e.len(),h=Um.M,c=Um.C,p=Um.L,d=Um.R,f=Um.A,g=Um.Q,y=0,m=0;y<u;){switch(o=l[y++],m=y,r=0,o){case h:case p:r=1;break;case c:r=3;break;case g:r=2;break;case f:var v=i[4],_=i[5],x=Xm(i[0]*i[0]+i[1]*i[1]),b=Xm(i[2]*i[2]+i[3]*i[3]),w=Ym(-i[1]/b,i[0]/x);l[y]*=x,l[y++]+=v,l[y]*=b,l[y++]+=_,l[y++]*=x,l[y++]*=b,l[y++]+=w,l[y++]+=w,m=y+=2;break;case d:s[0]=l[y++],s[1]=l[y++],ot(s,s,i),l[m++]=s[0],l[m++]=s[1],s[0]+=l[y++],s[1]+=l[y++],ot(s,s,i),l[m++]=s[0],l[m++]=s[1]}for(a=0;a<r;a++){var S=jm[a];S[0]=l[y++],S[1]=l[y++],ot(S,S,i),l[m++]=S[0],l[m++]=S[1]}}e.increaseVersion()}this.dirtyShape()},t}function mo(t,e){return new nv(yo(t,e))}function vo(t){return ev.call(this,t)||this}function _o(t){return rv.call(this,t)||this}function xo(t,e,n,i,o,r,a){var s=t-n,l=e-i,a=(a?r:-r)/yv(s*s+l*l),l=a*l,a=-a*s,s=t+l,t=e+a,e=n+l,n=i+a,i=(s+e)/2,u=(t+n)/2,h=e-s,c=n-t,p=h*h+c*c,r=o-r,s=s*n-e*t,n=(c<0?-1:1)*yv(mv(0,r*r*p-s*s)),e=(s*c-h*n)/p,t=(-s*h-c*n)/p,d=(s*c+h*n)/p,s=(-s*h+c*n)/p,h=e-i,c=t-u,n=d-i,p=s-u;return n*n+p*p<h*h+c*c&&(e=d,t=s),{cx:e,cy:t,x01:-l,y01:-a,x11:e*(o/r-1),y11:t*(o/r-1)}}function bo(t,e){var n,i,o,r,a,s,l,u,h,c,p,d,f,g,y,m,v,_,x,b,w,S,C,T=mv(e.r,0),M=mv(e.r0||0,0),k=0<T;(k||0<M)&&(k||(T=M,M=0),T<M&&(k=T,T=M,M=k),k=!!e.clockwise,o=(n=e.startAngle)===(i=e.endAngle)?0:(li(o=[n,i],!k),gv(o[0]-o[1])),r=e.cx,a=e.cy,s=e.cornerRadius||0,e=e.innerCornerRadius||0,_v<T?hv-_v<o?(t.moveTo(r+T*pv(n),a+T*cv(n)),t.arc(r,a,T,n,i,!k),_v<M&&(t.moveTo(r+M*pv(i),a+M*cv(i)),t.arc(r,a,M,i,n,k))):(l=gv(T-M)/2,s=vv(l,s),e=l=vv(l,e),v=s,u=T*pv(n),h=T*cv(n),c=M*pv(i),p=M*cv(i),w=b=x=_=void 0,(_v<s||_v<l)&&(_=T*pv(i),x=T*cv(i),b=M*pv(n),w=M*cv(n),o<uv)&&(d=function(t,e,n,i,o,r,a,s){var l=(s-=r)*(n-=t)-(a-=o)*(i-=e);if(!(l*l<_v))return[t+(l=(a*(e-r)-s*(t-o))/l)*n,e+l*i]}(u,h,b,w,_,x,c,p))&&(y=u-d[0],m=h-d[1],f=_-d[0],g=x-d[1],y=1/cv(dv((y*f+m*g)/(yv(y*y+m*m)*yv(f*f+g*g)))/2),m=yv(d[0]*d[0]+d[1]*d[1]),e=vv(l,(M-m)/(y-1)),v=vv(s,(T-m)/(1+y))),_v<o?_v<v?(S=xo(b,w,u,h,T,v,k),C=xo(_,x,c,p,T,v,k),t.moveTo(r+S.cx+S.x01,a+S.cy+S.y01),v<s?t.arc(r+S.cx,a+S.cy,v,fv(S.y01,S.x01),fv(C.y01,C.x01),!k):(t.arc(r+S.cx,a+S.cy,v,fv(S.y01,S.x01),fv(S.y11,S.x11),!k),t.arc(r,a,T,fv(S.cy+S.y11,S.cx+S.x11),fv(C.cy+C.y11,C.cx+C.x11),!k),t.arc(r+C.cx,a+C.cy,v,fv(C.y11,C.x11),fv(C.y01,C.x01),!k))):(t.moveTo(r+u,a+h),t.arc(r,a,T,n,i,!k)):t.moveTo(r+u,a+h),_v<M&&_v<o?_v<e?(S=xo(c,p,_,x,M,-e,k),C=xo(u,h,b,w,M,-e,k),t.lineTo(r+S.cx+S.x01,a+S.cy+S.y01),e<l?t.arc(r+S.cx,a+S.cy,e,fv(S.y01,S.x01),fv(C.y01,C.x01),!k):(t.arc(r+S.cx,a+S.cy,e,fv(S.y01,S.x01),fv(S.y11,S.x11),!k),t.arc(r,a,M,fv(S.cy+S.y11,S.cx+S.x11),fv(C.cy+C.y11,C.cx+C.x11),k),t.arc(r+C.cx,a+C.cy,e,fv(C.y11,C.x11),fv(C.y01,C.x01),!k))):(t.lineTo(r+c,a+p),t.arc(r,a,M,i,n,k)):t.lineTo(r+c,a+p)):t.moveTo(r,a),t.closePath())}function wo(t){return lv.call(this,t)||this}function So(t){return wv.call(this,t)||this}function Co(t,e,n,i,o,r,a){return t=.5*(n-t),i=.5*(i-e),(2*(e-n)+t+i)*a+(-3*(e-n)-2*t-i)*r+t*o+e}function To(t,e,n){var i=e.smooth,o=e.points;if(o&&2<=o.length){if(i&&"spline"!==i)for(var r=function(t,e,n,i){var o,r,a=[],s=[],l=[],u=[];if(i){for(var h=[1/0,1/0],c=[-1/0,-1/0],p=0,d=t.length;p<d;p++)rt(h,h,t[p]),at(c,c,t[p]);rt(h,h,i[0]),at(c,c,i[1])}for(p=0,d=t.length;p<d;p++){var f=t[p];if(n)o=t[p?p-1:d-1],r=t[(p+1)%d];else{if(0===p||p===d-1){a.push(q(t[p]));continue}o=t[p-1],r=t[p+1]}$(s,r,o),Q(s,s,e);var g=et(f,o),y=et(f,r),m=g+y,m=(0!==m&&(g/=m,y/=m),Q(l,s,-g),Q(u,s,y),Z([],f,l)),g=Z([],f,u);i&&(at(m,m,h),rt(m,m,c),at(g,g,h),rt(g,g,c)),a.push(m),a.push(g)}return n&&a.push(a.shift()),a}(o,i,n,e.smoothConstraint),a=(t.moveTo(o[0][0],o[0][1]),o.length),s=0;s<(n?a:a-1);s++){var l=r[2*s],u=r[2*s+1],h=o[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}else{"spline"===i&&(o=function(t,e){for(var n=t.length,i=[],o=0,r=1;r<n;r++)o+=et(t[r-1],t[r]);for(var a=(a=o/2)<n?n:a,r=0;r<a;r++){var s=r/(a-1)*(e?n:n-1),l=Math.floor(s),s=s-l,u=void 0,h=t[l%n],c=void 0,p=void 0,p=e?(u=t[(l-1+n)%n],c=t[(l+1)%n],t[(l+2)%n]):(u=t[0===l?l:l-1],c=t[n-2<l?n-1:l+1],t[n-3<l?n-1:l+2]),l=s*s,d=s*l;i.push([Co(u[0],h[0],c[0],p[0],s,l,d),Co(u[1],h[1],c[1],p[1],s,l,d)])}return i}(o,n)),t.moveTo(o[0][0],o[0][1]);for(var s=1,c=o.length;s<c;s++)t.lineTo(o[s][0],o[s][1])}n&&t.closePath()}}function Mo(t){return Tv.call(this,t)||this}function ko(t){return Iv.call(this,t)||this}function Io(t){return Pv.call(this,t)||this}function Do(t,e,n){var i=t.cpx2,o=t.cpy2;return null===i||null===o?[(n?$n:Zn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?$n:Zn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?ni:ei)(t.x1,t.cpx1,t.x2,e),(n?ni:ei)(t.y1,t.cpy1,t.y2,e)]}function Ao(t){return Bv.call(this,t)||this}function Po(t){return Fv.call(this,t)||this}function Oo(){var t=null!==Gv&&Gv.apply(this,arguments)||this;return t.type="compound",t}function Lo(t){this.colorStops=t||[]}function Ro(t,e,n,i,o,r){return o=jv.call(this,o)||this,o.x=null==t?0:t,o.y=null==e?0:e,o.x2=null==n?1:n,o.y2=null==i?0:i,o.type="linear",o.global=r||!1,o}function No(t,e,n,i,o){return i=Yv.call(this,i)||this,i.x=null==t?.5:t,i.y=null==e?.5:e,i.r=null==n?.5:n,i.type="radial",i.global=o||!1,i}function Eo(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new vg;for(n=0;n<2;n++)this._axes[n]=new vg;t&&this.fromBoundingRect(t,e)}function Bo(){var t=null!==qv&&qv.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}function zo(t,e,n,i,o,r,a){var s,l,u,h,c,p,d=!1,f=("function"==typeof o?(a=r,r=o,o=null):C(o)&&(r=o.cb,a=o.during,d=o.isFrom,l=o.removeOpt,o=o.dataIndex),"remove"===t),g=(f||e.stopAnimation("remove"),p=t,s=o,l=f?l||{}:null,i=(g=i)&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,o):null,g&&g.ecModel&&(u=(u=g.ecModel.getUpdatePayload())&&u.animation),p="update"===p,g&&g.isAnimationEnabled()?(c=h=o=void 0,c=l?(o=L(l.duration,200),h=L(l.easing,"cubicOut"),0):(o=g.getShallow(p?"animationDurationUpdate":"animationDuration"),h=g.getShallow(p?"animationEasingUpdate":"animationEasing"),g.getShallow(p?"animationDelayUpdate":"animationDelay")),"function"==typeof(c=u&&(null!=u.duration&&(o=u.duration),null!=u.easing&&(h=u.easing),null!=u.delay)?u.delay:c)&&(c=c(s,i)),{duration:(o="function"==typeof o?o(s):o)||0,delay:c,easing:h}):null);g&&0<g.duration?(p={duration:g.duration,delay:g.delay||0,easing:g.easing,done:r,force:!!r||!!a,setToFinal:!f,scope:t,during:a},d?e.animateFrom(n,p):e.animateTo(n,p)):(e.stopAnimation(),d||e.attr(n),a&&a(1),r&&r())}function Fo(t,e,n,i,o,r){zo("update",t,e,n,i,o,r)}function Vo(t,e,n,i,o,r){zo("init",t,e,n,i,o,r)}function Ho(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("remove"===t.animators[e].scope)return!0;return!1}function Go(t,e,n,i,o,r){Ho(t)||zo("remove",t,e,n,i,o,r)}function Wo(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),Go(t,{style:{opacity:0}},e,n,i)}function Uo(t){return um.extend(t)}function jo(t,e){return s_(t,e)}function Xo(t,e){a_[t]=e}function Yo(t){if(a_.hasOwnProperty(t))return a_[t]}function qo(t,e,n,i){return t=mo(t,e),n&&("center"===i&&(n=$o(n,t.getBoundingRect())),Jo(t,n)),t}function Zo(t,e,n){var i=new gm({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){"center"===n&&(t={width:t.width,height:t.height},i.setStyle($o(e,t)))}});return i}function $o(t,e){var e=e.width/e.height,n=t.height*e,e=n<=t.width?t.height:(n=t.width)/e;return{x:t.x+t.width/2-n/2,y:t.y+t.height/2-e/2,width:n,height:e}}function Ko(t,e){for(var n=[],i=t.length,o=0;o<i;o++){var r=t[o];n.push(r.getUpdatedPathProxy(!0))}return(e=new um(e)).createPathProxy(),e.buildPath=function(t){var e;go(t)&&(t.appendPath(n),e=t.getContext())&&t.rebuildPath(e,1)},e}function Jo(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}function Qo(t,e){for(var n=_e([]);t&&t!==e;)be(n,t.getLocalTransform(),n),t=t.parent;return n}function tr(t,e,n){return e&&!p(e)&&(e=yg.getLocalTransform(e)),ot([],t,e=n?Te([],e):e)}function er(t){return!t.isGroup}function nr(t,e,n){function i(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=s({},t.shape)),e}var o,r;t&&e&&(r={},t.traverse(function(t){er(t)&&t.anid&&(r[t.anid]=t)}),o=r,e.traverse(function(t){var e,r;er(t)&&t.anid&&(e=o[t.anid])&&(r=i(t),t.attr(i(e)),Fo(t,r,n,km(t).dataIndex))}))}function ir(t,e){return f(t,function(t){var n=t[0],n=o_(n,e.x),t=(n=r_(n,e.x+e.width),t[1]),t=o_(t,e.y);return[n,r_(t,e.y+e.height)]})}function or(t,e){var n=o_(t.x,e.x),i=r_(t.x+t.width,e.x+e.width),o=o_(t.y,e.y),t=r_(t.y+t.height,e.y+e.height);if(n<=i&&o<=t)return{x:n,y:o,width:i-n,height:t-o}}function rr(t,e,n){var e=s({rectHover:!0},e),i=e.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),l(i,n),new gm(e)):qo(t.replace("path://",""),e,n,"center")}function ar(t,e,n,i,o,r,a,s){var l,n=n-t,i=i-e,a=a-o,s=s-r,u=a*i-n*s;return!((l=u)<=1e-6&&-1e-6<=l||(o=((l=t-o)*i-n*(t=e-r))/u)<0||1<o||(i=(l*s-a*t)/u)<0||1<i)}function sr(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,e=b(e)?{formatter:e}:e,o=n.mainType,n=n.componentIndex,r={componentType:o,name:i,$vars:["name"]},a=(r[o+"Index"]=n,t.formatterParamsExtra),t=(a&&d(m(a),function(t){j(r,t)||(r[t]=a[t],r.$vars.push(t))}),km(t.el));t.componentMainType=o,t.componentIndex=n,t.tooltipConfig={name:i,option:l({content:i,formatterParams:r},e)}}function lr(t,e){for(var n=0;n<Rm.length;n++){var i=Rm[n],o=e[i],i=t.ensureState(i);i.style=i.style||{},i.style.text=o}var r=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(r,!0)}function ur(t,e,n){for(var i,o=t.labelFetcher,r=t.labelDataIndex,a=t.labelDimIndex,s=e.normal,l={normal:i=null==(i=o?o.getFormattedLabel(r,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null):i)?x(t.defaultText)?t.defaultText(r,t,n):t.defaultText:i},u=0;u<Rm.length;u++){var h=Rm[u],c=e[h];l[h]=L(o?o.getFormattedLabel(r,h,null,a,c&&c.get("formatter")):null,i)}return l}function hr(t,e,n,i){n=n||u_;for(var o=t instanceof Cm,r=!1,a=0;a<Nm.length;a++)if((p=e[Nm[a]])&&p.getShallow("show")){r=!0;break}var s=o?t:t.getTextContent();if(r){o||(s||(s=new Cm,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=ur(n,e),u=e.normal,h=!!u.getShallow("show"),c=pr(u,i&&i.normal,n,!1,!o);for(c.text=l.normal,o||t.setTextConfig(dr(u,n,!1)),a=0;a<Rm.length;a++){var p,d,f,g=Rm[a];(p=e[g])&&(d=s.ensureState(g),(f=!!L(p.getShallow("show"),h))!=h&&(d.ignore=!f),d.style=pr(p,i&&i[g],n,!0,!o),d.style.text=l[g],o||(t.ensureState(g).textConfig=dr(p,n,!0)))}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(c.x=s.style.x),null!=s.style.y&&(c.y=s.style.y),s.ignore=!h,s.useStyle(c),s.dirty(),n.enableTextSetter&&(d_(s).setLabelText=function(t){t=ur(n,e,t),lr(s,t)})}else s&&(s.ignore=!0);t.dirty()}function cr(t,e){for(var n={normal:t.getModel(e=e||"label")},i=0;i<Rm.length;i++){var o=Rm[i];n[o]=t.getModel([o,e])}return n}function pr(t,e,n,i,o){var r,a={},l=a,u=t,h=n,c=i,p=o;h=h||u_;var d,t=u.ecModel,f=t&&t.option.textStyle,g=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||u_).rich;if(n){e=e||{};for(var i=m(n),o=0;o<i.length;o++){e[i[o]]=1}}t=t.parentModel}return e}(u);if(g)for(var y in d={},g)g.hasOwnProperty(y)&&(r=u.getModel(["rich",y]),fr(d[y]={},r,f,h,c,p,!1,!0));return d&&(l.rich=d),(t=u.get("overflow"))&&(l.overflow=t),null!=(t=u.get("minMargin"))&&(l.margin=t),fr(l,u,f,h,c,p,!0,!1),e&&s(a,e),a}function dr(t,e,n){e=e||{};var i={},o=t.getShallow("rotate"),r=L(t.getShallow("distance"),n?null:5),a=t.getShallow("offset"),n=t.getShallow("position")||(n?null:"inside");return null!=(n="outside"===n?e.defaultOutsidePosition||"top":n)&&(i.position=n),null!=a&&(i.offset=a),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=r&&(i.distance=r),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",i}function fr(t,e,n,i,o,r,a,s){n=!o&&n||u_;var l=i&&i.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),c=L(e.getShallow("opacity"),n.opacity),u=("inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==h&&"auto"!==h||(h=l||null),r||(u=u||n.color,h=h||n.textBorderColor),null!=u&&(t.fill=u),null!=h&&(t.stroke=h),L(e.getShallow("textBorderWidth"),n.textBorderWidth)),h=(null!=u&&(t.lineWidth=u),L(e.getShallow("textBorderType"),n.textBorderType)),u=(null!=h&&(t.lineDash=h),L(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset));null!=u&&(t.lineDashOffset=u),null!=(c=o||null!=c||s?c:i&&i.defaultOpacity)&&(t.opacity=c),o||r||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var p=0;p<h_.length;p++){var d=h_[p];null!=(f=L(e.getShallow(d),n[d]))&&(t[d]=f)}for(var p=0;p<c_.length;p++)d=c_[p],null!=(f=e.getShallow(d))&&(t[d]=f);if(null==t.verticalAlign&&null!=(h=e.getShallow("baseline"))&&(t.verticalAlign=h),!a||!i.disableBox){for(p=0;p<p_.length;p++){var f,d=p_[p];null!=(f=e.getShallow(d))&&(t[d]=f)}u=e.getShallow("borderType"),null!=u&&(t.borderDash=u),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function gr(t,e,n,i,o){var r,a,s,l=d_(t);l.valueAnimation&&(r=l.defaultInterpolatedText,a=L(l.interpolatedValue,l.prevValue),s=l.value,(null==l.prevValue?Vo:Fo)(t,{},i,e,null,function(i){var u=In(n,l.precision,a,s,i),i=(l.interpolatedValue=1===i?null:u,ur({labelDataIndex:e,labelFetcher:o,defaultText:r?r(u):u+""},l.statesModels,u));lr(t,i)}))}function yr(){}function mr(){}function vr(){}function _r(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function xr(t){return[t||"",S_++].join("_")}function br(t,e){t=t.toUpperCase(),I_[t]=new w_(e),k_[t]=e}function wr(t,e){return"0000".substr(0,e-(t+="").length)+t}function Sr(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Cr(t,e,n,i){var t=nn(t),o=t[kr(n)](),r=t[Ir(n)]()+1,a=Math.floor((r-1)/4)+1,s=t[Dr(n)](),l=t["get"+(n?"UTC":"")+"Day"](),u=t[Ar(n)](),h=(u-1)%12+1,c=t[Pr(n)](),p=t[Or(n)](),t=t[Lr(n)](),n=(i instanceof w_?i:I_[i||D_]||I_[M_]).getModel("time"),i=n.get("month"),d=n.get("monthAbbr"),f=n.get("dayOfWeek"),n=n.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,a+"").replace(/{MMMM}/g,i[r-1]).replace(/{MMM}/g,d[r-1]).replace(/{MM}/g,wr(r,2)).replace(/{M}/g,r+"").replace(/{dd}/g,wr(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,f[l]).replace(/{ee}/g,n[l]).replace(/{e}/g,l+"").replace(/{HH}/g,wr(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,wr(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,wr(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,wr(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,wr(t,3)).replace(/{S}/g,t+"")}function Tr(t,e){var t=nn(t),n=t[Ir(e)]()+1,i=t[Dr(e)](),o=t[Ar(e)](),r=t[Pr(e)](),a=t[Or(e)](),t=0===t[Lr(e)](),e=t&&0===a,a=e&&0===r,r=a&&0===o,o=r&&1===i;return o&&1===n?"year":o?"month":r?"day":a?"hour":e?"minute":t?"second":"millisecond"}function Mr(t,e,n){var i="number"==typeof t?nn(t):t;switch(e=e||Tr(t,n)){case"year":return i[kr(n)]();case"half-year":return 6<=i[Ir(n)]()?1:0;case"quarter":return Math.floor((i[Ir(n)]()+1)/4);case"month":return i[Ir(n)]();case"day":return i[Dr(n)]();case"half-day":return i[Ar(n)]()/24;case"hour":return i[Ar(n)]();case"minute":return i[Pr(n)]();case"second":return i[Or(n)]();case"millisecond":return i[Lr(n)]()}}function kr(t){return t?"getUTCFullYear":"getFullYear"}function Ir(t){return t?"getUTCMonth":"getMonth"}function Dr(t){return t?"getUTCDate":"getDate"}function Ar(t){return t?"getUTCHours":"getHours"}function Pr(t){return t?"getUTCMinutes":"getMinutes"}function Or(t){return t?"getUTCSeconds":"getSeconds"}function Lr(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Rr(t){return t?"setUTCMonth":"setMonth"}function Nr(t){return t?"setUTCDate":"setDate"}function Er(t){return t?"setUTCHours":"setHours"}function Br(t){return t?"setUTCMinutes":"setMinutes"}function zr(t){return t?"setUTCSeconds":"setSeconds"}function Fr(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Vr(t){var e;return ln(t)?(e=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<e.length?"."+e[1]:""):b(t)?t:"-"}function Hr(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),t=e?t&&t.charAt(0).toUpperCase()+t.slice(1):t}function Gr(t){return null==t?"":(t+"").replace(V_,function(t,e){return H_[e]})}function Wr(t,e,n){function i(t){return t&&z(t)?t:"-"}function o(t){return null!=t&&!isNaN(t)&&isFinite(t)}var r="time"===e,a=t instanceof Date;if(r||a){var r=r?nn(t):t;if(!isNaN(+r))return Cr(r,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",n);if(a)return"-"}return"ordinal"===e?w(t)?i(t):S(t)&&o(t)?t+"":"-":o(r=sn(t))?Vr(r):w(t)?i(t):"-"}function Ur(t,e){return"{"+t+(null==e?"":e)+"}"}function jr(t,e,n){var i=(e=_(e)?e:[e]).length;if(!i)return"";for(var o=e[0].$vars||[],r=0;r<o.length;r++){var a=G_[r];t=t.replace(Ur(a),Ur(a,0))}for(var s=0;s<i;s++)for(var l=0;l<o.length;l++){var u=e[s][o[l]];t=t.replace(Ur(G_[l],s),n?Gr(u):u)}return t}function Xr(t,e){var t=b(t)?{color:t,extraCssText:e}:t||{},n=t.color,i=t.type,o=(e=t.extraCssText,t.renderMode||"html");return n?"html"===o?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Gr(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Gr(n)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function Yr(t,e){return e=e||"transparent",b(t)?t:C(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function qr(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}function Zr(t,e,n,i,o){var r=0,a=0,s=(null==i&&(i=1/0),null==o&&(o=1/0),0);e.eachChild(function(l,u){var h,c,p,d=l.getBoundingRect(),u=e.childAt(u+1),u=u&&u.getBoundingRect();s="horizontal"===t?(c=d.width+(u?-u.x+d.x:0),i<(h=r+c)||l.newline?(r=0,h=c,a+=s+n,d.height):Math.max(s,d.height)):(c=d.height+(u?-u.y+d.y:0),o<(p=a+c)||l.newline?(r+=s+n,a=0,p=c,d.width):Math.max(s,d.width)),l.newline||(l.x=r,l.y=a,l.markRedraw(),"horizontal"===t?r=h+n:a=p+n)})}function $r(t,e,n){n=F_(n||0);var i=e.width,o=e.height,r=Ze(t.left,i),a=Ze(t.top,o),e=Ze(t.right,i),s=Ze(t.bottom,o),l=Ze(t.width,i),u=Ze(t.height,o),h=n[2]+n[0],c=n[1]+n[3],p=t.aspect;switch(isNaN(l)&&(l=i-e-c-r),isNaN(u)&&(u=o-s-h-a),null!=p&&(isNaN(l)&&isNaN(u)&&(i/o<p?l=.8*i:u=.8*o),isNaN(l)&&(l=p*u),isNaN(u))&&(u=l/p),isNaN(r)&&(r=i-e-l-c),isNaN(a)&&(a=o-s-u-h),t.left||t.right){case"center":r=i/2-l/2-n[3];break;case"right":r=i-l-c}switch(t.top||t.bottom){case"middle":case"center":a=o/2-u/2-n[0];break;case"bottom":a=o-u-h}return r=r||0,a=a||0,isNaN(l)&&(l=i-c-r-(e||0)),isNaN(u)&&(u=o-h-a-(s||0)),p=new kg(r+n[3],a+n[0],l,u),p.margin=n,p}function Kr(t){return t=t.layoutMode||t.constructor.layoutMode,C(t)?t:t?{type:t}:null}function Jr(t,e,n){function i(n,i){var a={},l=0,u={},h=0;if(W_(n,function(e){u[e]=t[e]}),W_(n,function(t){o(e,t)&&(a[t]=u[t]=e[t]),r(a,t)&&l++,r(u,t)&&h++}),s[i])r(e,n[1])?u[n[2]]=null:r(e,n[2])&&(u[n[1]]=null);else if(2!==h&&l){if(!(2<=l))for(var c=0;c<n.length;c++){var p=n[c];if(!o(a,p)&&o(t,p)){a[p]=t[p];break}}return a}return u}function o(t,e){return t.hasOwnProperty(e)}function r(t,e){return null!=t[e]&&"auto"!==t[e]}function a(t,e,n){W_(t,function(t){e[t]=n[t]})}var s=n&&n.ignoreSize,n=(_(s)||(s=[s,s]),i(j_[0],0)),l=i(j_[1],1);a(j_[0],t,n),a(j_[1],t,l)}function Qr(t){return e={},(n=t)&&e&&W_(U_,function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e;var e,n}function ta(t,e,n){return t=Y_.call(this,t,e,n)||this,t.uid=xr("ec_cpt_model"),t}function ea(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function na(t,e,n){function i(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function o(t){return t=t.dimsDef,t?t.length:1}var r,a,s,l,u,h={},c=ia(e);return c&&t&&(r=[],a=[],e=e.ecModel,e=fx(e).datasetMap,c=c.uid+"_"+n.seriesLayoutBy,d(t=t.slice(),function(e,n){e=C(e)?e:t[n]={name:e},"ordinal"===e.type&&null==s&&(s=n,l=o(e)),h[e.name]=[]}),u=e.get(c)||e.set(c,{categoryWayDim:l,valueWayDim:0}),d(t,function(t,e){var n,l=t.name,t=o(t);null==s?(n=u.valueWayDim,i(h[l],n,t),i(a,n,t),u.valueWayDim+=t):s===e?(i(h[l],0,t),i(r,0,t)):(n=u.categoryWayDim,i(h[l],n,t),i(a,n,t),u.categoryWayDim+=t)}),r.length&&(h.itemName=r),a.length)&&(h.seriesName=a),h}function ia(t){if(!t.get("data",!0))return Mn(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},$g).models[0]}function oa(t,e){function n(t){var e=b(t);return null!=t&&isFinite(t)&&""!==t?e?dx.Might:dx.Not:e&&"-"!==t?dx.Must:void 0}var i,o,r,a=t.data,s=t.sourceFormat,l=t.seriesLayoutBy,u=t.dimensionsDefine,h=t.startIndex,c=e;if(!M(a)){if(u&&(C(u=u[c])?(o=u.name,r=u.type):b(u)&&(o=u)),null!=r)return"ordinal"===r?dx.Must:dx.Not;if(s===ax){var p=a;if(l===px){for(var d=p[c],f=0;f<(d||[]).length&&f<5;f++)if(null!=(i=n(d[h+f])))return i}else for(f=0;f<p.length&&f<5;f++){var g=p[h+f];if(g&&null!=(i=n(g[c])))return i}}else if(s===sx){var y=a;if(!o)return dx.Not;for(f=0;f<y.length&&f<5;f++)if((v=y[f])&&null!=(i=n(v[o])))return i}else if(s===lx){if(u=a,!o)return dx.Not;if(!(d=u[o])||M(d))return dx.Not;for(f=0;f<d.length&&f<5;f++)if(null!=(i=n(d[f])))return i}else if(s===rx)for(var m=a,f=0;f<m.length&&f<5;f++){var v,x=fn(v=m[f]);if(!_(x))return dx.Not;if(null!=(i=n(x[c])))return i}}return dx.Not}function ra(){}function aa(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}function sa(){return null!==nx&&nx.apply(this,arguments)||this}function la(t,e,n){var i,o;return _(e)?(i=G(),d(e,function(t){null!=t&&null!=vn(t,null)&&i.set(t,!0)}),y(n,function(e){return e&&i.get(e[t])})):(o=vn(e,null),y(n,function(e){return e&&null!=o&&e[t]===o}))}function ua(t,e){return e.hasOwnProperty("subType")?y(t,function(t){return t&&t.subType===e.subType}):t}function ha(t){var e=G();return t&&d(pn(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}function ca(t){d(Sx,function(e){this[e]=Kd(t[e],t)},this)}function pa(){this._coordinateSystems=[]}function da(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}function fa(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=Ax.length;n<i;n++){var o=Ax[n],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 ga(t,e,n){var i,o;t&&t[e]&&(t[e].normal||t[e].emphasis)&&(i=t[e].normal,o=t[e].emphasis,i&&(n?(t[e].normal=t[e].emphasis=null,l(t[e],i)):t[e]=i),o)&&(t.emphasis=t.emphasis||{},(t.emphasis[e]=o).focus&&(t.emphasis.focus=o.focus),o.blurScope)&&(t.emphasis.blurScope=o.blurScope)}function ya(t){ga(t,"itemStyle"),ga(t,"lineStyle"),ga(t,"areaStyle"),ga(t,"label"),ga(t,"labelLine"),ga(t,"upperLabel"),ga(t,"edgeLabel")}function ma(t,e){var n=Dx(t)&&t[e],i=Dx(n)&&n.textStyle;if(i)for(var o=0,r=qg.length;o<r;o++){var a=qg[o];i.hasOwnProperty(a)&&(n[a]=i[a])}}function va(t){t&&(ya(t),ma(t,"label"),t.emphasis)&&ma(t.emphasis,"label")}function _a(t){return _(t)?t:t?[t]:[]}function xa(t){return(_(t)?t[0]:t)||{}}function ba(t,e){Ix(_a(t.series),function(t){if(Dx(t)&&Dx(t)){fa(t),ya(t),ma(t,"label"),ma(t,"upperLabel"),ma(t,"edgeLabel"),t.emphasis&&(ma(t.emphasis,"label"),ma(t.emphasis,"upperLabel"),ma(t.emphasis,"edgeLabel"));var e=t.markPoint,n=(e&&(fa(e),va(e)),t.markLine),i=(n&&(fa(n),va(n)),t.markArea),o=(i&&va(i),t.data);if("graph"===t.type){var o=o||t.nodes,r=t.links||t.edges;if(r&&!M(r))for(var a=0;a<r.length;a++)va(r[a]);d(t.categories,function(t){ya(t)})}if(o&&!M(o))for(a=0;a<o.length;a++)va(o[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)va(s[a]);if((n=t.markLine)&&n.data)for(var l=n.data,a=0;a<l.length;a++)_(l[a])?(va(l[a][0]),va(l[a][1])):va(l[a]);"gauge"===t.type?(ma(t,"axisLabel"),ma(t,"title"),ma(t,"detail")):"treemap"===t.type?(ga(t.breadcrumb,"itemStyle"),d(t.levels,function(t){ya(t)})):"tree"===t.type&&ya(t.leaves)}});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ix(n,function(e){Ix(_a(t[e]),function(t){t&&(ma(t,"axisLabel"),ma(t.axisPointer,"label"))})}),Ix(_a(t.parallel),function(t){t=t&&t.parallelAxisDefault,ma(t,"axisLabel"),ma(t&&t.axisPointer,"label")}),Ix(_a(t.calendar),function(t){ga(t,"itemStyle"),ma(t,"dayLabel"),ma(t,"monthLabel"),ma(t,"yearLabel")}),Ix(_a(t.radar),function(t){ma(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),Ix(_a(t.geo),function(t){Dx(t)&&(va(t),Ix(_a(t.regions),function(t){va(t)}))}),Ix(_a(t.timeline),function(t){va(t),ga(t,"label"),ga(t,"itemStyle"),ga(t,"controlStyle",!0),t=t.data,_(t)&&d(t,function(t){C(t)&&(ga(t,"label"),ga(t,"itemStyle"))})}),Ix(_a(t.toolbox),function(t){ga(t,"iconStyle"),Ix(t.feature,function(t){ga(t,"iconStyle")})}),ma(xa(t.axisPointer),"label"),ma(xa(t.tooltip).axisPointer,"label")}function wa(t){t&&d(Px,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function Sa(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Lx.length;n++){var i=Lx[n][1],o=Lx[n][0];null!=e[i]&&(e[o]=e[i])}}function Ca(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Ta(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Ma(t,e){ba(t,e),t.series=pn(t.series),d(t.series,function(t){if(C(t)){var e,n=t.type;if("line"===n)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===n||"gauge"===n){if(null!=t.clockWise&&(t.clockwise=t.clockWise),Ca(t.label),(e=t.data)&&!M(e))for(var i=0;i<e.length;i++)Ca(e[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset)}else if("gauge"===n){var o=function(t,e){for(var n=e.split(","),i=t,o=0;o<n.length&&null!=(i=i&&i[n[o]]);o++);return i}(t,"pointer.color");if(null!=o){for(var r,a=t,s="itemStyle.color",u=s.split(","),h=a,c=0;c<u.length-1;c++)null==h[r=u[c]]&&(h[r]={}),h=h[r];null!=h[u[c]]||(h[u[c]]=o)}}else if("bar"===n){if(Sa(t),Sa(t.backgroundStyle),Sa(t.emphasis),(e=t.data)&&!M(e))for(i=0;i<e.length;i++)"object"==typeof e[i]&&(Sa(e[i]),Sa(e[i]&&e[i].emphasis))}else"sunburst"===n?((s=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),Ta(t),function t(e,n){if(e)for(var i=0;i<e.length;i++)n(e[i]),e[i]&&t(e[i].children,n)}(t.data,Ta)):"graph"===n||"sankey"===n?(a=t)&&null!=a.focusNodeAdjacency&&(a.emphasis=a.emphasis||{},null==a.emphasis.focus)&&(a.emphasis.focus="adjacency"):"map"===n&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation)&&l(t,t.mapLocation);null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis)&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation),wa(t)}}),t.dataRange&&(t.visualMap=t.dataRange),d(Ox,function(e){(e=t[e])&&d(e=_(e)?e:[e],function(t){wa(t)})})}function ka(t){d(t,function(e,n){var i=[],o=[NaN,NaN],r=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex;a.modify(r,function(r,l,u){var h,c,p=a.get(e.stackedDimension,u);if(isNaN(p))return o;s?c=a.getRawIndex(u):h=a.get(e.stackedByDimension,u);for(var d,f,g,y=NaN,m=n-1;0<=m;m--){var v=t[m];if(0<=(c=s?c:v.data.rawIndexOf(v.stackedByDimension,h))&&(v=v.data.getByRawIndex(v.stackResultDimension,c),0<=p&&0<v||p<=0&&v<0)){d=p,f=v,g=void 0,g=Math.max(Ke(d),Ke(f)),d+=f,p=jg<g?d:$e(d,g),y=v;break}}return i[0]=p,i[1]=y,i})})}function Ia(t){return t instanceof Rx}function Da(t,e,n){n=n||Pa(t);var i=e.seriesLayoutBy,o=function(t,e,n,i,o){var r,a;if(!t)return{dimensionsDefine:Oa(o),startIndex:a,dimensionsDetectedCount:r};var s;return e===ax?(s=t,"auto"===i||null==i?La(function(t){null!=t&&"-"!==t&&(b(t)?null==a&&(a=1):a=0)},n,s,10):a=S(i)?i:i?1:0,o||1!==a||(o=[],La(function(t,e){o[e]=null!=t?t+"":""},n,s,1/0)),r=o?o.length:n===px?s.length:s[0]?s[0].length:null):e===sx?o=o||function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););var i;if(e)return i=[],d(e,function(t,e){i.push(e)}),i}(t):e===lx?o||(o=[],d(t,function(t,e){o.push(e)})):e===rx&&(i=fn(t[0]),r=_(i)&&i.length||1),{startIndex:a,dimensionsDefine:Oa(o),dimensionsDetectedCount:r}}(t,n,i,e.sourceHeader,e.dimensions);return new Rx({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:r(e)})}function Aa(t){return new Rx({data:t,sourceFormat:M(t)?ux:rx})}function Pa(t){var e=hx;if(M(t))e=ux;else if(_(t)){0===t.length&&(e=ax);for(var n=0,i=t.length;n<i;n++){var o=t[n];if(null!=o){if(_(o)){e=ax;break}if(C(o)){e=sx;break}}}}else if(C(t))for(var r in t)if(j(t,r)&&p(t[r])){e=lx;break}return e}function Oa(t){var e;if(t)return e=G(),f(t,function(t,n){var i,t={name:(t=C(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};return null!=t.name&&(t.name+="",null==t.displayName&&(t.displayName=t.name),(i=e.get(t.name))?t.name+="-"+i.count++:e.set(t.name,{count:1})),t})}function La(t,e,n,i){if(e===px)for(var o=0;o<n.length&&o<i;o++)t(n[o]?n[o][0]:null,o);else for(var r=n[0]||[],o=0;o<r.length&&o<i;o++)t(r[o],o)}function Ra(t){return(t=t.sourceFormat)===sx||t===lx}function Na(t,e){var t=Ia(t)?t:Aa(t),n=(this._source=t,this._data=t.data);t.sourceFormat===ux&&(this._offset=0,this._dimSize=e,this._data=n),bx(this,n,t)}function Ea(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function Ba(t,e,n,i){return t[i]}function za(t,e){return Fx[Wa(t,e)]}function Fa(t,e,n){return t.length}function Va(t,e){return Vx[Wa(t,e)]}function Ha(t,e,n){return t[e]}function Ga(t){return Hx[t]}function Wa(t,e){return t===ax?t+"_"+e:t}function Ua(t,e,n){if(t){var i,o,e=t.getRawDataItem(e);if(null!=e)return i=(o=t.getStore()).getSource().sourceFormat,null!=n?(t=t.getDimensionIndex(n),n=o.getDimensionProperty(t),Ga(i)(e,t,n)):(o=e,i===rx?fn(e):o)}}function ja(){}function Xa(t){var e,n;return C(t)?t.type&&(n=t):e=t,{markupText:e,markupFragment:n}}function Ya(t){return new Zx(t)}function qa(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}function Za(){return Ux<Wx?Ux++:null}function $a(){var t=Ux%Yx*jx+Math.ceil(Ux/Yx),t=Wx<=Ux?null:t<Xx?t:Ux;return Ux++,t}function Ka(t,e){return e=e&&e.type,"ordinal"===e?t:null==(t="time"===e&&"number"!=typeof t&&null!=t&&"-"!==t?+nn(t):t)||""===t?NaN:+t}function Ja(t){return Kx.get(t)}function Qa(t,e){"number"!=typeof e&&cn(""),this._opFn=Jx[t],this._rvalFloat=sn(e)}function ts(t,e){t="desc"===t,this._resultLT=t?1:-1,this._incomparable="min"===(e=null==e?t?"min":"max":e)?-1/0:1/0}function es(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=sn(e)}function ns(){}function is(t){return ls(t.sourceFormat)||cn(""),t.data}function os(t){var e=t.sourceFormat,n=t.data;if(ls(e)||cn(""),e===ax){for(var i=[],o=0,r=n.length;o<r;o++)i.push(n[o].slice());return i}if(e===sx){for(i=[],o=0,r=n.length;o<r;o++)i.push(s({},n[o]));return i}}function rs(t,e,n){if(null!=n)return"number"==typeof n||!isNaN(n)&&!j(e,n)?t[n]:j(e,n)?e[n]:void 0}function as(t){return r(t)}function ss(t,e){var n=pn(t),t=n.length;t||cn("");for(var i=0,o=t;i<o;i++)e=function(t,e){e.length||cn(""),C(t)||cn("");var n=t.type,i=ob.get(n);return i||cn(""),n=f(e,function(t){var e=t,t=i,n=new ib,o=e.data,r=n.sourceFormat=e.sourceFormat,a=e.startIndex,s=(e.seriesLayoutBy!==cx&&cn(""),[]),l={};if(c=e.dimensionsDefine)d(c,function(t,e){var n=t.name,e={index:e,name:n,displayName:t.displayName};s.push(e),null!=n&&(j(l,n)&&cn(""),l[n]=e)});else for(var u=0;u<e.dimensionsDetectedCount;u++)s.push({index:u});var h=za(r,cx),c=(t.__isBuiltIn&&(n.getRawDataItem=function(t){return h(o,a,s,t)},n.getRawData=Kd(is,null,e)),n.cloneRawData=Kd(os,null,e),Va(r,cx)),p=(n.count=Kd(c,null,o,a,s),Ga(r)),f=(n.retrieveValue=function(t,e){return t=h(o,a,s,t),f(t,e)},n.retrieveValueFromItem=function(t,e){var n;return null!=t&&(n=s[e])?p(t,e,n.name):void 0});return n.getDimensionInfo=Kd(rs,null,s,l),n.cloneAllDimensionInfo=Kd(as,null,s),n}),f(pn(i.transform({upstream:n[0],upstreamList:n,config:r(t.config)})),function(t,n){C(t)||cn(""),t.data||cn(""),ls(Pa(t.data))||cn("");var i=e[0],n=i&&0===n&&!t.dimensions?((n=i.startIndex)&&(t.data=i.data.slice(0,n).concat(t.data)),{seriesLayoutBy:cx,sourceHeader:n,dimensions:i.metaRawOption.dimensions}):{seriesLayoutBy:cx,sourceHeader:0,dimensions:t.dimensions};return Da(t.data,n,null)})}(n[i],e),i!==o-1&&(e.length=Math.max(e.length,1));return e}function ls(t){return t===ax||t===sx}function us(t){return 65535<t?rb:ab}function hs(){return[1/0,-1/0]}function cs(t,e,n,i,o){if(n=lb[n||"float"],o){var r=t[e],a=r&&r.length;if(a!==i){for(var s=new n(i),l=0;l<a;l++)s[l]=r[l];t[e]=s}}else t[e]=new n(i)}function ps(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=G()}function ds(t,e,n,i){return Ka(t[i],this._dimensions[i])}function fs(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}function gs(t){t.option.transform&&F(t.option.transform)}function ys(t){return"series"===t.mainType}function ms(t){throw new Error(t)}function vs(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,o=t.fontWeight||"400",r=t.color||"#464646",a=t.fontSize||14,t=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Gr(i+"")+"px;color:"+Gr(n)+";font-weight:"+Gr(o+""),valueStyle:"font-size:"+Gr(a+"")+"px;color:"+Gr(r)+";font-weight:"+Gr(t+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:o},valueStyle:{fontSize:a,fill:r,fontWeight:t}}}function _s(t,e){return e.type=t,e}function xs(t){return j(fb,t.type)&&fb[t.type]}function bs(t,e,n,i,o,r){var a;if(t)return(a=xs(t)).planLayout(t),a.build({useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:e},t,0,r)}function ws(t){return t=t.__gapLevelBetweenSubBlocks,{html:pb[t],richText:db[t]}}function Ss(t,e){return'<div style="margin: '+e+"px 0 0;"+cb+';">'+t+'<div style="clear:both"></div></div>'}function Cs(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Ts(t,e){return t=t.get("padding"),null!=t?t:"richText"===e?[8,10]:10}function Ms(){this.richTextStyles={},this._nextStyleNameId=un()}function ks(t){function e(t,e){(e=l.getDimensionInfo(e))&&!1!==e.otherDims.tooltip&&(u?p.push(_s("nameValue",{markerType:"subItem",markerColor:s,name:e.displayName,value:t,valueType:e.type})):(h.push(t),c.push(e.type)))}var n,i,o,r,a,s,l,u,h,c,p,f=t.series,y=t.dataIndex,t=t.multipleSeries,m=f.getData(),v=m.mapDimensionsAll("defaultedTooltip"),x=v.length,b=f.getRawValue(y),w=_(b),S=(S=y,Yr((C=f).getData().getItemVisual(S,"style")[C.visualDrawType]));1<x||w&&!x?(C=b,r=y,a=v,s=S,l=f.getData(),u=g(C,function(t,e,n){return n=l.getDimensionInfo(n),t||n&&!1!==n.tooltip&&null!=n.displayName},!1),h=[],c=[],p=[],a.length?d(a,function(t){e(Ua(l,r,t),t)}):d(C,e),n=(a={inlineValues:h,inlineValueTypes:c,blocks:p}).inlineValueTypes,i=a.blocks,o=(a=a.inlineValues)[0]):x?(C=m.getDimensionInfo(v[0]),o=a=Ua(m,y,v[0]),n=C.type):o=a=w?b[0]:b;var x=_n(f),v=x&&f.name||"",C=m.getName(y),w=t?v:C;return _s("section",{header:v,noHeader:t||!x,sortParam:o,blocks:[_s("nameValue",{markerType:"item",markerColor:S,name:w,noName:!z(w),value:a,valueType:n})].concat(i||[])})}function Is(t,e){return t.getName(e)||t.getId(e)}function Ds(){var t=null!==mb&&mb.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function As(t){var e,n,i=t.name;_n(t)||(t.name=(t=(e=(t=t).getRawData()).mapDimensionsAll("seriesName"),n=[],d(t,function(t){t=e.getDimensionInfo(t),t.displayName&&n.push(t.displayName)}),n.join(" ")||i))}function Ps(t){return t.model.getRawData().count()}function Os(t){return t=t.model,t.setData(t.getRawData().cloneShallow()),Ls}function Ls(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Rs(t,e){d(W(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,v(Ns,e))})}function Ns(t,e){return t=Es(t),t&&t.setOutputEnd((e||this).count()),e}function Es(t){var e,n=(t.ecModel||{}).scheduler,n=n&&n.getPipeline(t.uid);if(n)return(n=n.currentTask)&&(e=n.agentStubMap)?e.get(t.uid):n}function Bs(){this.group=new zg,this.uid=xr("viewComponent")}function zs(){var t=Sn();return function(e){var n=t(e),e=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,r=n.large=!(!e||!e.large),n=n.progressiveRender=!(!e||!e.progressiveRender);return!(i==r&&o==n)&&"reset"}}function Fs(){this.group=new zg,this.uid=xr("viewChart"),this.renderTask=Ya({plan:Gs,reset:Ws}),this.renderTask.context={view:this}}function Vs(t,e,n){t&&("emphasis"===e?Yi:qi)(t,n)}function Hs(t,e,n){var i,o=wn(t,e),r=e&&null!=e.highlightKey?(e=e.highlightKey,i=null==(i=Dm[e])&&Im<=32?Dm[e]=Im++:i):null;null!=o?d(pn(o),function(e){Vs(t.getItemGraphicEl(e),n,r)}):t.eachItemGraphicEl(function(t){Vs(t,n,r)})}function Gs(t){return bb(t.model)}function Ws(t){var e=t.model,n=t.ecModel,i=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,t=t.view,a=o&&xb(o).updateMethod,r=r?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==r&&t[r](e,n,i,o),Sb[r]}function Us(t,e,n){function i(){c=(new Date).getTime(),p=null,t.apply(s,l||[])}function o(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];r=(new Date).getTime(),s=this,l=t;var d=u||e,f=u||n;u=null,a=r-(f?h:c)-d,clearTimeout(p),f?p=setTimeout(i,d):0<=a?i():p=setTimeout(i,-a),h=r}var r,a,s,l,u,h=0,c=0,p=null;return e=e||0,o.clear=function(){p&&(clearTimeout(p),p=null)},o.debounceNextCall=function(t){u=t},o}function js(t,e){return(t=t.visualStyleMapper||Ib[e])||(console.warn("Unkown style type '"+e+"'."),Ib.itemStyle)}function Xs(t,e){return(t=t.visualDrawType||Db[e])||(console.warn("Unkown style type '"+e+"'."),"fill")}function Ys(t,e,n,i){this._stageTaskMap=G(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function qs(t){t.overallReset(t.ecModel,t.api,t.payload)}function Zs(t){return t.overallProgress&&$s}function $s(){this.agent.dirty(),this.getDownstream().dirty()}function Ks(){this.agent&&this.agent.dirty()}function Js(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Qs(t){return t.useClearVisual&&t.data.clearAllVisual(),t=t.resetDefines=pn(t.reset(t.model,t.ecModel,t.api,t.payload)),1<t.length?f(t,function(t,e){return tl(e)}):Rb}function tl(t){return function(e,n){var i=n.data,o=n.resetDefines[t];if(o&&o.dataEach)for(var r=e.start;r<e.end;r++)o.dataEach(i,r);else o&&o.progress&&o.progress(e,i)}}function el(t){return t.data.count()}function nl(t,e){for(var n in e.prototype)t[n]=X}function il(){return{axisLine:{lineStyle:{color:zb}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}}function ol(){}function rl(t,e,n,i,o){var r=t+e;n.isSilent(r)||i.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e,i,a=t.seriesIndex,l=o.selected,u=0;u<l.length;u++)l[u].seriesIndex===a&&(i=wn(e=t.getData(),o.fromActionPayload),n.trigger(r,{type:r,seriesId:t.id,name:_(i)?e.getName(i[0]):e.getName(i),selected:s({},t.option.selectedMap)}))})}function al(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}function sl(){this._id="__ec_inner_"+Gb++}function ll(t,e){var n;"image"!==this.type&&(n=this.style,this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw())}function ul(t,e,n,i,o,r,a){var s=0===t.indexOf("empty");return(a=0===(t=s?t.substr(5,1).toLowerCase()+t.substr(6):t).indexOf("image://")?Zo(t.slice(8),new kg(e,n,i,o),a?"center":"cover"):0===t.indexOf("path://")?qo(t.slice(7),{},new kg(e,n,i,o),a?"center":"cover"):new Kb({shape:{symbolType:t,x:e,y:n,width:i,height:o}})).__isEmptyBrush=s,a.setColor=ll,r&&a.setColor(r),a}function hl(t,e){if(null!=t)return[Ze((t=_(t)?t:[t,t])[0],e[0])||0,Ze(L(t[1],t[0]),e[1])||0]}function cl(t,e,n){for(var i,o,r,a,s,l,u,h,c,p="radial"===e.type?(i=t,o=e,a=(r=n).width,s=r.height,l=Math.min(a,s),u=null==o.x?.5:o.x,h=null==o.y?.5:o.y,c=null==o.r?.5:o.r,o.global||(u=u*a+r.x,h=h*s+r.y,c*=l),i.createRadialGradient(u,h,0,u,h,c)):(o=t,a=n,r=null==(s=e).x?0:s.x,l=null==s.x2?1:s.x2,i=null==s.y?0:s.y,u=null==s.y2?0:s.y2,s.global||(r=r*a.width+a.x,l=l*a.width+a.x,i=i*a.height+a.y,u=u*a.height+a.y),r=isNaN(r)?0:r,l=isNaN(l)?1:l,i=isNaN(i)?0:i,u=isNaN(u)?0:u,o.createLinearGradient(r,i,l,u)),d=e.colorStops,f=0;f<d.length;f++)p.addColorStop(d[f].offset,d[f].color);return p}function pl(t,e){if(t!==e&&(t||e)){if(!t||!e||t.length!==e.length)return 1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return 1}}function dl(t,e){return t&&"solid"!==t&&0<e?(e=e||1,"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:S(t)?[t]:_(t)?t:null):null}function fl(t){var e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))}function gl(t){return"string"==typeof t&&"none"!==t}function yl(t){return null!=(t=t.fill)&&"none"!==t}function ml(t,e){var n;null!=e.fillOpacity&&1!==e.fillOpacity?(n=t.globalAlpha,t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n):t.fill()}function vl(t,e){var n;null!=e.strokeOpacity&&1!==e.strokeOpacity?(n=t.globalAlpha,t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n):t.stroke()}function _l(t,e,n){var n=Bn(e.image,e.__image,n);if(Fn(n))return t=t.createPattern(n,e.repeat||"repeat"),"function"==typeof DOMMatrix&&t.setTransform&&((n=new DOMMatrix).rotateSelf(0,0,(e.rotation||0)/Math.PI*180),n.scaleSelf(e.scaleX||1,e.scaleY||1),n.translateSelf(e.x||0,e.y||0),t.setTransform(n)),t}function xl(t,e,n,i,o){var r,a=!1;if(!i&&e===(n=n||{}))return!1;!i&&e.opacity===n.opacity||(a||(Sl(t,o),a=!0),r=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(r)?hy.opacity:r),!i&&e.blend===n.blend||(a||(Sl(t,o),a=!0),t.globalCompositeOperation=e.blend||hy.blend);for(var s=0;s<Qb.length;s++){var l=Qb[s];!i&&e[l]===n[l]||(a||(Sl(t,o),a=!0),t[l]=t.dpr*(e[l]||0))}return!i&&e.shadowColor===n.shadowColor||(a||(Sl(t,o),a=!0),t.shadowColor=e.shadowColor||hy.shadowColor),a}function bl(t,e,n,i,o){var r=Cl(e,o.inHover),a=i?null:n&&Cl(n,o.inHover)||{};if(r!==a){var s=xl(t,r,a,i,o);(i||r.fill!==a.fill)&&(s||(Sl(t,o),s=!0),gl(r.fill))&&(t.fillStyle=r.fill),(i||r.stroke!==a.stroke)&&(s||(Sl(t,o),s=!0),gl(r.stroke))&&(t.strokeStyle=r.stroke),!i&&r.opacity===a.opacity||(s||(Sl(t,o),s=!0),t.globalAlpha=null==r.opacity?1:r.opacity),e.hasStroke()&&(n=r.lineWidth/(r.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1),t.lineWidth!==n)&&(s||(Sl(t,o),s=!0),t.lineWidth=n);for(var l=0;l<tw.length;l++){var u=tw[l],h=u[0];!i&&r[h]===a[h]||(s||(Sl(t,o),s=!0),t[h]=r[h]||u[1])}}}function wl(t,e){var e=e.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)}function Sl(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Cl(t,e){return e&&t.__hoverStyle||t.style}function Tl(t,e){Ml(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Ml(t,e,n,i){var o=e.transform;if(e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){var r=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(!a||pl(r,a)){if(a&&a.length&&(Sl(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),r&&r.length){Sl(t,n),t.save();for(var u=r,h=t,a=n,c=!1,p=0;p<u.length;p++){var d=u[p],c=c||d.isZeroArea();wl(h,d),h.beginPath(),d.buildPath(h,d.shape),h.clip()}a.allClipped=c,s=!0}n.prevElClipPaths=r}if(n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var g,y,m,v,_,x,b,w,S,C,T,M,k,I,D,A,P,O,L,R,N,E,a=n.prevEl,B=(a||(l=s=!0),e instanceof um&&e.autoBatch&&(r=e.style,B=yl(r),g=fl(r),!(r.lineDash||!(+B^+g)||B&&"string"!=typeof r.fill||g&&"string"!=typeof r.stroke||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1))),s=(s||(g=o,r=a.transform,g&&r?g[0]!==r[0]||g[1]!==r[1]||g[2]!==r[2]||g[3]!==r[3]||g[4]!==r[4]||g[5]!==r[5]:g||r)?(Sl(t,n),wl(t,e)):B||Sl(t,n),Cl(e,n.inHover));if(e instanceof um)n.lastDrawType!==ew&&(l=!0,n.lastDrawType=ew),bl(t,e,a,l,n),B&&(n.batchFill||n.batchStroke)||t.beginPath(),o=t,r=e,x=B,I=fl(_=s),D=yl(_),A=_.strokePercent,P=A<1,O=!r.path,r.silent&&!P||!O||r.createPathProxy(),L=r.path||Jb,x||(R=_.fill,G=_.stroke,N=D&&!!R.colorStops,b=I&&!!G.colorStops,w=D&&!!R.image,S=I&&!!G.image,H=M=T=C=E=void 0,(N||b)&&(H=r.getBoundingRect()),N&&(E=r.__dirty?cl(o,R,H):r.__canvasFillGradient,r.__canvasFillGradient=E),b&&(C=r.__dirty?cl(o,G,H):r.__canvasStrokeGradient,r.__canvasStrokeGradient=C),w&&(T=r.__dirty||!r.__canvasFillPattern?_l(o,R,r):r.__canvasFillPattern,r.__canvasFillPattern=T),S&&(M=r.__dirty||!r.__canvasStrokePattern?_l(o,G,r):r.__canvasStrokePattern,r.__canvasStrokePattern=T),N?o.fillStyle=E:w&&(T?o.fillStyle=T:D=!1),b?o.strokeStyle=C:S&&(M?o.strokeStyle=M:I=!1)),H=_.lineDash&&0<_.lineWidth&&dl(_.lineDash,_.lineWidth),R=_.lineDashOffset,G=!!o.setLineDash,N=r.getGlobalScale(),L.setScale(N[0],N[1],r.segmentIgnoreThreshold),H&&(k=_.strokeNoScale&&r.getLineScale?r.getLineScale():1)&&1!==k&&(H=f(H,function(t){return t/k}),R/=k),E=!0,(O||r.__dirty&Mf||H&&!G&&I)&&(L.setDPR(o.dpr),P?L.setContext(null):(L.setContext(o),E=!1),L.reset(),H&&!G&&(L.setLineDash(H),L.setLineDashOffset(R)),r.buildPath(L,r.shape,x),L.toStatic(),r.pathUpdated()),E&&L.rebuildPath(o,P?A:1),H&&G&&(o.setLineDash(H),o.lineDashOffset=R),x||(_.strokeFirst?(I&&vl(o,_),D&&ml(o,_)):(D&&ml(o,_),I&&vl(o,_))),H&&G&&o.setLineDash([]),B&&(n.batchFill=s.fill||"",n.batchStroke=s.stroke||"");else if(e instanceof cm)n.lastDrawType!==iw&&(l=!0,n.lastDrawType=iw),bl(t,e,a,l,n),w=t,T=e,null!=(C=(b=s).text)&&(C+=""),C&&(w.font=b.font||Dg,w.textAlign=b.textAlign,w.textBaseline=b.textBaseline,S=void 0,w.setLineDash&&(M=b.lineDash&&0<b.lineWidth&&dl(b.lineDash,b.lineWidth),N=b.lineDashOffset,M)&&((v=b.strokeNoScale&&T.getLineScale?T.getLineScale():1)&&1!==v&&(M=f(M,function(t){return t/v}),N/=v),w.setLineDash(M),w.lineDashOffset=N,S=!0),b.strokeFirst?(fl(b)&&w.strokeText(C,b.x,b.y),yl(b)&&w.fillText(C,b.x,b.y)):(yl(b)&&w.fillText(C,b.x,b.y),fl(b)&&w.strokeText(C,b.x,b.y)),S)&&w.setLineDash([]);else if(e instanceof gm)n.lastDrawType!==nw&&(l=!0,n.lastDrawType=nw),O=a,r=l,xl(t,Cl(e,(E=n).inHover),O&&Cl(O,E.inHover),r,E),L=t,P=s,(R=(A=e).__image=Bn(P.image,A.__image,A,A.onload))&&Fn(R)&&(x=P.x||0,D=P.y||0,I=A.getWidth(),A=A.getHeight(),_=R.width/R.height,null==I&&null!=A?I=A*_:null==A&&null!=I?A=I/_:null==I&&null==A&&(I=R.width,A=R.height),P.sWidth&&P.sHeight?(y=P.sx||0,m=P.sy||0,L.drawImage(R,y,m,P.sWidth,P.sHeight,x,D,I,A)):P.sx&&P.sy?(y=P.sx,m=P.sy,L.drawImage(R,y,m,I-y,A-m,x,D,I,A)):L.drawImage(R,x,D,I,A));else if(e instanceof n_){n.lastDrawType!==ow&&(l=!0,n.lastDrawType=ow);var z,F,V=t,H=e,G=n,W=H.getDisplayables(),U=H.getTemporalDisplayables(),j=(V.save(),{prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:G.viewWidth,viewHeight:G.viewHeight,inHover:G.inHover});for(z=H.getCursor(),F=W.length;z<F;z++)(X=W[z]).beforeBrush&&X.beforeBrush(),X.innerBeforeBrush(),Ml(V,X,j,z===F-1),X.innerAfterBrush(),X.afterBrush&&X.afterBrush(),j.prevEl=X;for(var X,Y=0,q=U.length;Y<q;Y++)(X=U[Y]).beforeBrush&&X.beforeBrush(),X.innerBeforeBrush(),Ml(V,X,j,Y===q-1),X.innerAfterBrush(),X.afterBrush&&X.afterBrush(),j.prevEl=X;H.clearTemporalDisplayables(),H.notClear=!0,V.restore()}B&&i&&Sl(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(n.prevEl=e).__dirty=0,e.__isRendered=!0}}else e.__dirty&=~Tf,e.__isRendered=!1}function kl(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),o="svg"===i.painter.type,e=(t.dirty&&rw.delete(t),rw.get(t));if(e)return e;for(var r,a=l(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512}),e=("none"===a.backgroundColor&&(a.backgroundColor=null),{repeat:"repeat"}),s=e,u=[n],h=!0,c=0;c<sw.length;++c){var p=a[sw[c]],d=typeof p;if(null!=p&&!_(p)&&"string"!=d&&"number"!=d&&"boolean"!=d){h=!1;break}u.push(p)}h&&(r=u.join(",")+(o?"-svg":""),w=aw.get(r))&&(o?s.svgElement=w:s.image=w);var g,y=function t(e){if(!e||0===e.length)return[[0,0]];if("number"==typeof e)return[[r=Math.ceil(e),r]];for(var n=!0,i=0;i<e.length;++i)if("number"!=typeof e[i]){n=!1;break}if(n)return t([e]);var o=[];for(i=0;i<e.length;++i){var r;"number"==typeof e[i]?(r=Math.ceil(e[i]),o.push([r,r])):(r=f(e[i],function(t){return Math.ceil(t)})).length%2==1?o.push(r.concat(r)):o.push(r)}return o}(a.dashArrayX),m=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if("number"==typeof t)return[e=Math.ceil(t),e];var e=f(t,function(t){return Math.ceil(t)});return t.length%2?e.concat(e):e}(a.dashArrayY),v=function t(e){if(!e||0===e.length)return[["rect"]];if("string"==typeof e)return[[e]];for(var n=!0,i=0;i<e.length;++i)if("string"!=typeof e[i]){n=!1;break}if(n)return t([e]);var o=[];for(i=0;i<e.length;++i)"string"==typeof e[i]?o.push([e[i]]):o.push(e[i]);return o}(a.symbol),x=function(t){return f(t,Il)}(y),b=Il(m),w=!o&&$d(),S=o&&i.painter.createSVGElement("g"),C=function(){for(var t=1,e=0,n=x.length;e<n;++e)t=hn(t,x[e]);for(var i=1,e=0,n=v.length;e<n;++e)i=hn(i,v[e].length);t*=i;var o=b*x.length*v.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(o,a.maxTileHeight))}}();w&&(w.width=C.width*n,w.height=C.height*n,g=w.getContext("2d")),g&&(g.clearRect(0,0,w.width,w.height),a.backgroundColor)&&(g.fillStyle=a.backgroundColor,g.fillRect(0,0,w.width,w.height));for(var T=0,M=0;M<m.length;++M)T+=m[M];if(!(T<=0))for(var k=-b,I=0,D=0,A=0;k<C.height;){if(I%2==0){for(var P=D/2%v.length,O=0,L=0,R=0;O<2*C.width;){for(var N,E,B,z,F,V=0,M=0;M<y[A].length;++M)V+=y[A][M];if(V<=0)break;L%2==0&&(E=.5*(1-a.symbolSize),N=O+y[A][L]*E,E=k+m[I]*E,B=y[A][L]*a.symbolSize,z=m[I]*a.symbolSize,F=R/2%v[P].length,function(t,e,r,s,l){var u=o?1:n,l=ul(l,t*u,e*u,r*u,s*u,a.color,a.symbolKeepAspect);o?S.appendChild(i.painter.paintOne(l)):Tl(g,l)}(N,E,B,z,v[P][F])),O+=y[A][L],++R,++L===y[A].length&&(L=0)}++A===y.length&&(A=0)}k+=m[I],++D,++I===m.length&&(I=0)}return h&&aw.put(r,w||S),s.image=w,s.svgElement=S,s.svgWidth=C.width,s.svgHeight=C.height,e.rotation=a.rotation,e.scaleX=e.scaleY=o?1:1/n,rw.set(t,e),t.dirty=!1,e}function Il(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}function Dl(t){var e=t=b(t)?(new DOMParser).parseFromString(t,"text/xml"):t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}function Al(){this._defs={},this._root=null}function Pl(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function Ol(t,e){for(var n,i,o=t.firstChild;o;)1===o.nodeType&&"stop"===o.nodeName.toLocaleLowerCase()&&(n=void 0,n=(i=o.getAttribute("offset"))&&0<i.indexOf("%")?parseInt(i,10)/100:i?parseFloat(i):0,zl(o,i={},i),i=i.stopColor||o.getAttribute("stop-color")||"#000000",e.colorStops.push({offset:n,color:i})),o=o.nextSibling}function Ll(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),l(e.__inheritedStyle,t.__inheritedStyle))}function Rl(t){for(var e=Bl(t),n=[],i=0;i<e.length;i+=2){var o=parseFloat(e[i]),r=parseFloat(e[i+1]);n.push([o,r])}return n}function Nl(t,e,n,i,o){var r=e,a=r.__inheritedStyle=r.__inheritedStyle||{},s={};if(1===t.nodeType){var l=t;if(l=l.getAttribute("transform")){l=l.replace(/,/g," ");var u=[],h=null;l.replace(yw,function(t,e,n){return u.push(e,n),""});for(var c=u.length-1;0<c;c-=2){var p=u[c-1],g=Bl(u[c]);switch(h=h||ve(),p){case"translate":we(h,h,[parseFloat(g[0]),parseFloat(g[1]||"0")]);break;case"scale":Ce(h,h,[parseFloat(g[0]),parseFloat(g[1]||g[0])]);break;case"rotate":Se(h,h,-parseFloat(g[0])*mw);break;case"skewX":var y=Math.tan(parseFloat(g[0])*mw);be(h,[1,0,y,1,0,0],h);break;case"skewY":y=Math.tan(parseFloat(g[0])*mw),be(h,[1,y,0,1,0,0],h);break;case"matrix":h[0]=parseFloat(g[0]),h[1]=parseFloat(g[1]),h[2]=parseFloat(g[2]),h[3]=parseFloat(g[3]),h[4]=parseFloat(g[4]),h[5]=parseFloat(g[5])}}e.setLocalTransform(h)}if(zl(t,a,s),!i){for(var m=t,v=a,_=s,x=0;x<uw.length;x++){var b=uw[x];null!=(w=m.getAttribute(b))&&(v[lw[b]]=w)}for(x=0;x<cw.length;x++){var w,b=cw[x];null!=(w=m.getAttribute(b))&&(_[hw[b]]=w)}}}r.style=r.style||{},null!=a.fill&&(r.style.fill=El(r,"fill",a.fill,n)),null!=a.stroke&&(r.style.stroke=El(r,"stroke",a.stroke,n)),d(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(t){null!=a[t]&&(r.style[t]=parseFloat(a[t]))}),d(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(t){null!=a[t]&&(r.style[t]=a[t])}),o&&(r.__selfStyle=s),a.lineDash&&(r.style.lineDash=f(Bl(a.lineDash),function(t){return parseFloat(t)})),"hidden"!==a.visibility&&"collapse"!==a.visibility||(r.invisible=!0),"none"===a.display&&(r.ignore=!0)}function El(t,e,n,i){var o=n&&n.match(fw);if(!o)return n="none"===n?null:n;n=z(o[1]),i.push([t,e,n])}function Bl(t){return t.match(gw)||[]}function zl(t,e,n){var i,o=t.getAttribute("style");if(o)for(vw.lastIndex=0;null!=(i=vw.exec(o));){var r=i[1],a=j(lw,r)?lw[r]:null,a=(a&&(e[a]=i[2]),j(hw,r)?hw[r]:null);a&&(n[a]=i[2])}}function Fl(t,e){var n=e.width/t.width,i=e.height/t.height,n=Math.min(n,i);return{scale:n,x:-(t.x+t.width/2)*n+(e.x+e.width/2),y:-(t.y+t.height/2)*n+(e.y+e.height/2)}}function Vl(t,e){return Math.abs(t-e)<_w}function Hl(t,e,n){var i=0,o=t[0];if(o){for(var r=1;r<t.length;r++){var a=t[r];i+=pi(o[0],o[1],a[0],a[1],e,n),o=a}var s=t[0];return Vl(o[0],s[0])&&Vl(o[1],s[1])||(i+=pi(o[0],o[1],s[0],s[1],e,n)),0!==i}}function Gl(t){this.name=t}function Wl(t,e,n){return t=bw.call(this,t)||this,t.type="geoJSON",t.geometries=e,n=n?[n[0],n[1]]:[(e=t.getBoundingRect()).x+e.width/2,e.y+e.height/2],t._center=n,t}function Ul(t,e){return t=Sw.call(this,t)||this,t.type="geoSVG",t._elOnlyForCalculate=e,t}function jl(t,e){this.type="geoSVG",this._usedGraphicMap=G(),this._freedGraphics=[],this._mapName=t,this._parsedXML=Dl(e)}function Xl(t,e,n){for(var i=[],o=e[0],r=e[1],a=0;a<t.length;a+=2){var s=(s=t.charCodeAt(a)-64)>>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);i.push([(o=s+=o)/n,(r=l+=r)/n])}return i}function Yl(t,e){return f(y((t=function(t){if(t.UTF8Encoding){for(var e=t.UTF8Scale,n=(null==e&&(e=1024),t.features),i=0;i<n.length;i++){var o=n[i].geometry;if("Polygon"===o.type)for(var r=o.coordinates,a=0;a<r.length;a++)r[a]=Xl(r[a],o.encodeOffsets[a],e);else if("MultiPolygon"===o.type)for(r=o.coordinates,a=0;a<r.length;a++)for(var s=r[a],l=0;l<s.length;l++)s[l]=Xl(s[l],o.encodeOffsets[a][l],e)}t.UTF8Encoding=!1}return t}(t)).features,function(t){return t.geometry&&t.properties&&0<t.geometry.coordinates.length}),function(t){var n,i=t.properties,t=t.geometry,o=[],t=("Polygon"===t.type&&(n=t.coordinates,o.push({type:"polygon",exterior:n[0],interiors:n.slice(1)})),"MultiPolygon"===t.type&&d(n=t.coordinates,function(t){t[0]&&o.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})}),new ww(i[e||"name"],o,i.cp));return t.properties=i,t})}function ql(t,e,n){this.type="geoJSON",this._parsedMap=G(),this._mapName=t,this._specialAreas=n,this._geoJSON=b(t=e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}function Zl(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return Kl(this,t,e);this.id}}function $l(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Kl(this,t,e)}}function Kl(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),sf.prototype[e].apply(t,n)}function Jl(){return null!==jw&&jw.apply(this,arguments)||this}function Ql(t,e,n){function i(t,e){return t.__prio-e.__prio}var o=cS.call(this,new Vb)||this,t=(o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],n=n||{},"string"==typeof e&&(e=xS[e]),o._dom=t,o._zr=Xe(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,useDirtyRect:null!=n.useDirtyRect&&n.useDirtyRect})),n=(o._throttledZrFlush=Us(Kd(t.flush,t),17),(e=r(e))&&Ma(e,!0),o._theme=e,o._locale=b(e=n.locale||D_)?(n=k_[e.toUpperCase()]||{},e===C_||e===T_?r(n):a(r(n),r(k_[M_]),!1)):a(r(e),r(k_[M_]),!1),o._coordSysMgr=new Tx,o._api=sS(o));return It(_S,i),It(mS,i),o._scheduler=new Lb(o,n,mS,_S),o._messageCenter=new pS,o._initEvents(),o.resize=Kd(o.resize,o),t.animation.on("frame",o._onframe,o),eS(t,o),nS(t,o),F(o),o}function tu(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var o=n[i];"emphasis"!==o&&"blur"!==o&&"select"!==o&&e.push(o)}t.selected&&t.states.select&&e.push("select"),t.hoverState===Lm&&t.states.emphasis?e.push("emphasis"):t.hoverState===Om&&t.states.blur&&e.push("blur"),t.useStates(e)}function eu(t,e){t.preventAutoZ||function t(e,n,i,o){var r=e.getTextContent(),a=e.getTextGuideLine(),s=e.isGroup;if(s)for(var l=e.childrenRef(),u=0;u<l.length;u++)o=Math.max(t(l[u],n,i,o),o);else e.z=n,e.zlevel=i,o=Math.max(e.z2,o);return r&&(r.z=n,r.zlevel=i,isFinite(o))&&(r.z2=o+2),a&&(s=e.textGuideLineConfig,a.z=n,a.zlevel=i,isFinite(o))&&(a.z2=o+(s&&s.showAbove?1:-1)),o}(e.group,t.get("z")||0,t.get("zlevel")||0,-1/0)}function nu(t,e){e.group.traverse(function(t){var e,n;Ho(t)||(e=t.getTextContent(),n=t.getTextGuideLine(),t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null))})}function iu(t,e){var n=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),t=n.get("duration"),o=0<t?{duration:t,delay:n.get("delay"),easing:n.get("easing")}:null;e.group.traverse(function(t){var e,n,r;t.states&&t.states.emphasis&&(Ho(t)||(t instanceof um&&((r=Am(n=t)).normalFill=n.style.fill,r.normalStroke=n.style.stroke,n=n.states.select||{},r.selectFill=n.style&&n.style.fill||null,r.selectStroke=n.style&&n.style.stroke||null),t.__dirty&&(r=t.prevStates)&&t.useStates(r),i&&(t.stateTransition=o,n=t.getTextContent(),e=t.getTextGuideLine(),n&&(n.stateTransition=o),e)&&(e.stateTransition=o),t.__dirty&&tu(t)))})}function ou(t){SS[t]=!1}function ru(t){return wS[(e=MS,(t=t).getAttribute?t.getAttribute(e):t[e])];var e}function au(t,e){xS[t]=e}function su(t){u(vS,t)<0&&vS.push(t)}function lu(t,e){yu(mS,t,e,2e3)}function uu(t){cu("afterinit",t)}function hu(t){cu("afterupdate",t)}function cu(t,e){zw.on(t,e)}function pu(t,e,n){"function"==typeof e&&(n=e,e="");var i=C(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,yS[e]||(B(Ww.test(i)&&Ww.test(e)),gS[i]||(gS[i]={action:n,actionInfo:t}),yS[e]=i)}function du(t,e){Tx.register(t,e)}function fu(t,e){yu(_S,t,e,1e3,"layout")}function gu(t,e){yu(_S,t,e,3e3,"visual")}function yu(t,e,n,i,o){(x(e)||C(e))&&(n=e,e=i),0<=u(kS,n)||(kS.push(n),(i=Lb.wrapStageHandler(n,o)).__prio=e,i.__raw=n,t.push(i))}function mu(t,e){bS[t]=e}function vu(t,e,n){Ew(t,e,n)}function _u(t){var e=(t=r(t)).type,n=(e||cn(""),e.split(":")),i=(2!==n.length&&cn(""),!1);"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,ob.set(e,t)}function xu(t){return null==t?0:t.length||1}function bu(t){return t}function wu(t,e,n,i,o,r){this._old=t,this._new=e,this._oldKeyGetter=n||bu,this._newKeyGetter=i||bu,this.context=o,this._diffModeMultiple="multiple"===r}function Su(t,e){this._encode=t,this._schema=e}function Cu(t,e){var n={},i=n.encode={},o=G(),r=[],a=[],s={},l=(d(t.dimensions,function(e){var n,l,u=t.getDimensionInfo(e),h=u.coordDim;h&&(n=u.coordDimIndex,Tu(i,h)[n]=e,u.isExtraCoord||(o.set(h,1),"ordinal"!==(l=u.type)&&"time"!==l&&(r[0]=e),Tu(s,h)[n]=t.getDimensionIndex(u.name)),u.defaultTooltip)&&a.push(e),ox.each(function(t,e){var n=Tu(i,e),e=u.otherDims[e];null!=e&&!1!==e&&(n[e]=u.name)})}),[]),u={},h=(o.each(function(t,e){var n=i[e];u[e]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=f(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),n.encodeFirstDimNotExtra=u,i.label),h=(h&&h.length&&(r=h.slice()),i.tooltip);return h&&h.length?a=h.slice():a.length||(a=r.slice()),i.defaultedLabel=r,i.defaultedTooltip=a,n.userOutput=new ES(s,e),n}function Tu(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Mu(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}function ku(t){return t instanceof VS}function Iu(t){for(var e=G(),n=0;n<(t||[]).length;n++){var i=t[n],i=C(i)?i.name:i;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function Du(t){var e=zS(t);return e.dimNameMap||(e.dimNameMap=Iu(t.dimensionsDefine))}function Au(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"];for(var n,i,o=!(this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"]),r=(ku(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(o=!0,n=t),n=n||["x","y"],{}),a=[],s={},l=!1,u={},h=0;h<n.length;h++){var c=n[h],c=b(c)?new BS({name:c}):c instanceof BS?c:new BS(c),p=c.name,f=(c.type=c.type||"float",c.coordDim||(c.coordDim=p,c.coordDimIndex=0),c.otherDims=c.otherDims||{});a.push(p),null!=u[p]&&(l=!0),(r[p]=c).createInvertedIndices&&(s[p]=[]),0===f.itemName&&(this._nameDimIdx=h),0===f.itemId&&(this._idDimIdx=h),o&&(c.storeDimIndex=h)}this.dimensions=a,this._dimInfos=r,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted&&(i=this._dimIdxToName=G(),d(a,function(t){i.set(r[t].storeDimIndex,t)}))}function Pu(t,e){function n(t){var e,n,i,o=x[t];return o<0?(e=C(e=h[t])?e:{name:e},n=new BS,null!=(i=e.name)&&null!=m.get(i)&&(n.name=n.displayName=i),null!=e.type&&(n.type=e.type),null!=e.displayName&&(n.displayName=e.displayName),x[t]=p.length,n.storeDimIndex=t,p.push(n),n):p[o]}function i(t,e,n){null!=ox.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,c.set(e,!0))}function o(t){null==t.name&&(t.name=t.coordDim)}Ia(t)||(t=Aa(t));for(var r,a,u=(e=e||{}).coordDimensions||[],h=e.dimensionsDefine||t.dimensionsDefine||[],c=G(),p=[],f=(g=t,r=u,v=e.dimensionsCount,a=Math.max(g.dimensionsDetectedCount||1,r.length,h.length,v||0),d(r,function(t){C(t)&&(t=t.dimsDef)&&(a=Math.max(a,t.length))}),a),g=e.canOmitUnusedDimensions&&30<f,y=h===t.dimensionsDefine,m=y?Du(t):Iu(h),v=e.encodeDefine,_=G(v=!v&&e.encodeDefaulter?e.encodeDefaulter(t,f):v),x=new sb(f),w=0;w<x.length;w++)x[w]=-1;if(!g)for(w=0;w<f;w++)n(w);_.each(function(t,e){var o,t=pn(t).slice();1===t.length&&!b(t[0])&&t[0]<0?_.set(e,!1):(o=_.set(e,[]),d(t,function(t,r){null!=(t=b(t)?m.get(t):t)&&t<f&&i(n(o[r]=t),e,r)}))});var S=0;d(u,function(t){b(t)?(a=t,r={}):(a=(r=t).name,t=r.ordinalMeta,r.ordinalMeta=null,(r=s({},r)).ordinalMeta=t,e=r.dimsDef,o=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null);var e,o,r,a,u=_.get(a);if(!1!==u){if(!(u=pn(u)).length)for(var h=0;h<(e&&e.length||1);h++){for(;S<f&&null!=n(S).coordDim;)S++;S<f&&u.push(S++)}d(u,function(t,s){t=n(t),y&&null!=r.type&&(t.type=r.type),i(l(t,r),a,s),null==t.name&&e&&(C(s=e[s])||(s={name:s}),t.name=t.displayName=s.name,t.defaultTooltip=s.defaultTooltip),o&&l(t.otherDims,o)})}});var T=e.generateCoord,M=null!=(k=e.generateCoordCount),k=T?k||1:0,I=T||"value";if(g)d(p,function(t){o(t)}),p.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var D=0;D<f;D++){var A=n(D);null==A.coordDim&&(A.coordDim=function(t,e,n){var i=e.data;if(n||i.hasOwnProperty(t)){for(var o=0;i.hasOwnProperty(t+o);)o++;t+=o}return e.set(t,!0),t}(I,c,M),A.coordDimIndex=0,(!T||k<=0)&&(A.isExtraCoord=!0),k--),o(A),null!=A.type||oa(t,D)!==dx.Must&&(!A.isExtraCoord||null==A.otherDims.itemName&&null==A.otherDims.seriesName)||(A.type="ordinal")}for(var P=p,O=G(),L=0;L<P.length;L++){var R=P[L],N=R.name,E=O.get(N)||0;0<E&&(R.name=N+(E-1)),E++,O.set(N,E)}return new VS({source:t,dimensions:p,fullDimensionCount:f,dimensionOmitted:g})}function Ou(t){return"category"===t.get("type")}function Lu(t,e,n){var i,o,r,a,s,l,u,h,c,p=(n=n||{}).byIndex,f=n.stackedCoordDimension,g=(ku(e.schema)?(o=e.schema,i=o.dimensions,r=e.store):i=e,!(!t||!t.get("stack")));return d(i,function(t,e){b(t)&&(i[e]=t={name:t}),g&&!t.isExtraCoord&&(p||a||!t.ordinalMeta||(a=t),s||"ordinal"===t.type||"time"===t.type||f&&f!==t.coordDim||(s=t))}),!s||p||a||(p=!0),s&&(l="__\0ecstackresult_"+t.id,u="__\0ecstackedover_"+t.id,a&&(a.createInvertedIndices=!0),h=s.coordDim,n=s.type,c=0,d(i,function(t){t.coordDim===h&&c++}),e={name:l,coordDim:h,coordDimIndex:c,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},t={name:u,coordDim:u,coordDimIndex:c+1,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1},o?(r&&(e.storeDimIndex=r.ensureCalculationDimension(u,n),t.storeDimIndex=r.ensureCalculationDimension(l,n)),o.appendCalculationDimension(e),o.appendCalculationDimension(t)):(i.push(e),i.push(t))),{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:p,stackedOverDimension:u,stackResultDimension:l}}function Ru(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Nu(t,e){return Ru(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Eu(t,e,n){n=n||{};var i,o,r,a,s,l,u=e.getSourceManager(),h=!1,t=(t?(h=!0,i=Aa(t)):h=(i=u.getSource()).sourceFormat===rx,function(t){var e=t.get("coordinateSystem"),n=new YS(e);if(e=qS[e])return e(t,n,n.axisMap,n.categoryAxisMap),n}(e)),c=(o=t,c=(c=e).get("coordinateSystem"),c=Tx.get(c),p=(p=o&&o.coordSysDims?f(o.coordSysDims,function(t){var e={name:t},t=o.axisMap.get(t);return t&&(t=t.get("type"),e.type="category"===(t=t)?"ordinal":"time"===t?"time":"float"),e}):p)||c&&(c.getDimensionsInfo?c.getDimensionsInfo():c.dimensions.slice())||["x","y"]),p=n.useEncodeDefaulter,p=x(p)?p:p?v(na,c,e):null,c=Pu(i,{coordDimensions:c,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!h}),g=(p=c.dimensions,r=n.createInvertedIndices,(a=t)&&d(p,function(t,e){var n=t.coordDim,n=a.categoryAxisMap.get(n);n&&(null==s&&(s=e),t.ordinalMeta=n.getOrdinalMeta(),r)&&(t.createInvertedIndices=!0),null!=t.otherDims.itemName&&(l=!0)}),l||null==s||(p[s].otherDims.itemName=0),s),n=h?null:u.getSharedDataStore(c),t=Lu(e,{schema:c,store:n}),p=new XS(c,e),u=(p.setCalculationInfo(t),null!=g&&function(t){if(t.sourceFormat===rx)return null!=(t=function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]))&&!_(fn(t))}(i)?function(t,e,n,i){return i===g?n:this.defaultDimValueGetter(t,e,n,i)}:null);return p.hasItemOption=!1,p.initData(h?i:n,null,u),p}function Bu(t){this._setting=t||{},this._extent=[1/0,-1/0]}function zu(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++$S}function Fu(t){return C(t)&&null!=t.value?t.value:t+""}function Vu(t,e,n,i){var o={},r=t[1]-t[0],r=o.interval=an(r/e,!0),e=(null!=n&&r<n&&(r=o.interval=n),null!=i&&i<r&&(r=o.interval=i),o.intervalPrecision=Hu(r)),n=o.niceTickExtent=[JS(Math.ceil(t[0]/r)*r,e),JS(Math.floor(t[1]/r)*r,e)];return i=n,r=t,isFinite(i[0])||(i[0]=r[0]),isFinite(i[1])||(i[1]=r[1]),Gu(i,0,r),Gu(i,1,r),i[0]>i[1]&&(i[0]=i[1]),o}function Hu(t){return Ke(t)+2}function Gu(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Wu(t,e){return t>=e[0]&&t<=e[1]}function Uu(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function ju(t,e){return t*(e[1]-e[0])+e[0]}function Xu(t){var t=QS.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return _(e=e||new KS({}))&&(e=new KS({categories:f(e,function(t){return C(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}function Yu(){var t=null!==eC&&eC.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}function qu(t){return t.get("stack")||oC+t.seriesIndex}function Zu(t){return t.dim+t.index}function $u(t){var e,n,i=function(t){var e,n={},i=(d(t,function(t){var e=t.coordinateSystem.getBaseAxis();if("time"===e.type||"value"===e.type)for(var t=t.getData(),i=e.dim+"_"+e.index,o=t.getDimensionIndex(t.mapDimension(e.dim)),r=t.getStore(),a=0,s=r.count();a<s;++a){var l=r.get(o,a);n[i]?n[i].push(l):n[i]=[l]}}),{});for(e in n)if(n.hasOwnProperty(e)){var o=n[e];if(o){o.sort(function(t,e){return t-e});for(var r=null,a=1;a<o.length;++a){var s=o[a]-o[a-1];0<s&&(r=null===r?s:Math.min(r,s))}i[e]=r}}return i}(t),o=[];return d(t,function(t){var e,n=t.coordinateSystem.getBaseAxis(),r=n.getExtent(),a=(e="category"===n.type?n.getBandWidth():"value"===n.type||"time"===n.type?(e=n.dim+"_"+n.index,e=i[e],a=Math.abs(r[1]-r[0]),s=n.scale.getExtent(),s=Math.abs(s[1]-s[0]),e?a/s*e:a):(s=t.getData(),Math.abs(r[1]-r[0])/s.count()),Ze(t.get("barWidth"),e)),r=Ze(t.get("barMaxWidth"),e),s=Ze(t.get("barMinWidth")||1,e),l=t.get("barGap"),u=t.get("barCategoryGap");o.push({bandWidth:e,barWidth:a,barMaxWidth:r,barMinWidth:s,barGap:l,barCategoryGap:u,axisKey:Zu(n),stackId:qu(t)})}),e={},d(o,function(t,n){var i=t.axisKey,o=t.bandWidth,o=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},r=o.stacks,i=(e[i]=o,t.stackId),a=(r[i]||o.autoWidthCount++,r[i]=r[i]||{width:0,maxWidth:0},t.barWidth),a=(a&&!r[i].width&&(r[i].width=a,a=Math.min(o.remainedWidth,a),o.remainedWidth-=a),t.barMaxWidth),a=(a&&(r[i].maxWidth=a),t.barMinWidth),r=(a&&(r[i].minWidth=a),t.barGap),i=(null!=r&&(o.gap=r),t.barCategoryGap);null!=i&&(o.categoryGap=i)}),n={},d(e,function(t,e){n[e]={};var i,o=t.stacks,r=t.bandWidth,a=t.categoryGap,s=(null==a&&(s=m(o).length,a=Math.max(35-4*s,15)+"%"),Ze(a,r)),l=Ze(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l),c=Math.max(c,0),p=(d(o,function(t){var e,n=t.maxWidth,i=t.minWidth;t.width?(e=t.width,n&&(e=Math.min(e,n)),i&&(e=Math.max(e,i)),t.width=e,u-=e+l*e,h--):(e=c,n&&n<e&&(e=Math.min(n,u)),(e=i&&e<i?i:e)!==c&&(t.width=e,u-=e+l*e,h--))}),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0),0),f=(d(o,function(t,e){t.width||(t.width=c),p+=(i=t).width*(1+l)}),i&&(p-=i.width*l),-p/2);d(o,function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:f,width:t.width},f+=t.width*(1+l)})}),n}function Ku(t,e,n){if(t&&e)return null!=(t=t[Zu(e)])&&null!=n?t[qu(n)]:t}function Ju(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function Qu(t){return t.pipelineContext&&t.pipelineContext.large}function th(t){return t=rC.call(this,t)||this,t.type="time",t}function eh(t,e){return 30<(t/=e?P_:A_)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}function nh(){var t=null!==lC&&lC.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new iC,t._interval=0,t}function ih(t,e){return cC(t,Ke(e))}function oh(t,e,n){this._prepareParams(t,e,n)}function rh(t,e){return null==e?null:P(e)?NaN:t.parse(e)}function ah(t,e){var n,i,o,r,a,s,l=t.type,u=(u=e,h=(c=t).getExtent(),(p=c.rawExtentInfo)||(p=new mC(c,u,h),c.rawExtentInfo=p),p.calculate()),h=(t.setBlank(u.isBlank),u.min),c=u.max,p=e.ecModel;return p&&"time"===l&&(t="bar",s=[],p.eachSeriesByType(t,function(t){Ju(t)&&!Qu(t)&&s.push(t)}),n=!1,d(l=s,function(t){n=n||t.getBaseAxis()===e.axis}),n)&&(p=$u(l),t=h,l=c,p=p,a=(a=(i=e).axis.getExtent())[1]-a[0],void 0!==(p=Ku(p,i.axis))&&(o=1/0,d(p,function(t){o=Math.min(t.offset,o)}),r=-1/0,d(p,function(t){r=Math.max(t.offset+t.width,r)}),o=Math.abs(o),r=Math.abs(r),l+=r/(i=o+r)*(a=(p=l-t)/(1-(o+r)/a)-p),t-=o/i*a),h=(p={min:t,max:l}).min,c=p.max),{extent:[h,c],fixMin:u.minFixed,fixMax:u.maxFixed}}function sh(t,e){var n=ah(t,e),i=n.extent,o=e.get("splitNumber"),r=(t instanceof yC&&(t.base=e.get("logBase")),t.type),i=(t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:o,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===r||"time"===r?e.get("minInterval"):null,maxInterval:"interval"===r||"time"===r?e.get("maxInterval"):null}),e.get("interval"));null!=i&&t.setInterval&&t.setInterval(i)}function lh(t,e){if(e=e||t.get("type"))switch(e){case"category":return new tC({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new aC({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(ZS.getClass(e)||iC)}}function uh(t){var e,n,i,o=t.getLabelModel().get("formatter"),r="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(i=o,function(e,n){return t.scale.getFormattedLabel(e,n,i)}):"string"==typeof o?(n=o,function(e){return e=t.scale.getLabel(e),n.replace("{value}",null!=e?e:"")}):"function"==typeof o?(e=o,function(n,i){return null!=r&&(i=n.value-r),e(hh(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function hh(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function ch(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,o,r=n.getExtent(),a=n instanceof tC?n.count():(i=n.getTicks()).length,s=t.getLabelModel(),l=uh(t),u=1;40<a&&(u=Math.ceil(a/40));for(var h,c,p,d=0;d<a;d+=u){var f=l(i?i[d]:{value:r[0]+d},d),f=s.getTextRect(f),g=(f=f,h=s.get("rotate")||0,c=p=g=c=void 0,h=h*Math.PI/180,c=f.width,g=f.height,p=c*Math.abs(Math.cos(h))+Math.abs(g*Math.sin(h)),c=c*Math.abs(Math.sin(h))+Math.abs(g*Math.cos(h)),new kg(f.x,f.y,p,c));o?o.union(g):o=g}return o}}function ph(t){return t=t.get("interval"),null==t?"auto":t}function dh(t){return"category"===t.type&&0===ph(t.getLabelModel())}function fh(){}function gh(t){_(t)?d(t,function(t){gh(t)}):0<=u(bC,t)||(bC.push(t),(t=x(t)?{install:t}:t).install(wC))}function yh(t){return"category"===t.type?(o=(i=t).getLabelModel(),r=vh(i,o),!o.get("show")||i.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r):(o=(e=t).scale.getTicks(),n=uh(e),{labels:f(o,function(t,i){return{formattedLabel:n(t,i),rawLabel:e.scale.getLabel(t),tickValue:t.value}})});var e,n,i,o,r}function mh(t,e){var n,i,o,r,a,s;return"category"===t.type?(e=e,r=_h(n=t,"ticks"),a=ph(e),(s=xh(r,a))||(e.get("show")&&!n.scale.isBlank()||(i=[]),i=x(a)?Sh(n,a,!0):"auto"===a?(s=vh(n,n.getLabelModel()),o=s.labelCategoryInterval,f(s.labels,function(t){return t.tickValue})):wh(n,o=a,!0),bh(r,a,{ticks:i,tickCategoryInterval:o}))):{ticks:f(t.scale.getTicks(),function(t){return t.value})}}function vh(t,e){var n,i=_h(t,"labels"),e=ph(e),o=xh(i,e);return o||bh(i,e,{labels:x(e)?Sh(t,e):wh(t,n="auto"===e?null!=(i=SC(o=t).autoInterval)?i:SC(o).autoInterval=o.calculateCategoryInterval():e),labelCategoryInterval:n})}function _h(t,e){return SC(t)[e]||(SC(t)[e]=[])}function xh(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function bh(t,e,n){return t.push({key:e,value:n}),n}function wh(t,e,n){function i(t){var e={value:t};l.push(n?t:{formattedLabel:o(e),rawLabel:r.getLabel(e),tickValue:t})}for(var o=uh(t),r=t.scale,a=r.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),e=a[0],h=r.count(),h=(0!==e&&1<u&&2<h/u&&(e=Math.round(Math.ceil(e/u)*u)),dh(t)),t=s.get("showMinLabel")||h,s=s.get("showMaxLabel")||h,c=(t&&e!==a[0]&&i(a[0]),e);c<=a[1];c+=u)i(c);return s&&c-u!==a[1]&&i(a[1]),l}function Sh(t,e,n){var i=t.scale,o=uh(t),r=[];return d(i.getTicks(),function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&r.push(n?s:{formattedLabel:o(t),rawLabel:a,tickValue:s})}),r}function Ch(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}function Th(t,e){e=(t[1]-t[0])/e/2,t[0]+=e,t[1]-=e}function Mh(t,e,n,i,o,r,a,s){var l=o-t,u=r-e,n=n-t,i=i-e,h=Math.sqrt(n*n+i*i),l=(l*(n/=h)+u*(i/=h))/h,u=(s&&(l=Math.min(Math.max(l,0),1)),a[0]=t+(l*=h)*n),s=a[1]=e+l*i;return Math.sqrt((u-o)*(u-o)+(s-r)*(s-r))}function kh(t,e,n,i,o,r,a){return n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),n=t+n,i=e+i,t=a[0]=Math.min(Math.max(o,t),n),n=a[1]=Math.min(Math.max(r,e),i),Math.sqrt((t-o)*(t-o)+(n-r)*(n-r))}function Ih(t,e,n){for(var i,o,r,a,s,l,u,h,c,p=0,d=0,f=0,g=0,y=1/0,m=e.data,v=t.x,_=t.y,x=0;x<m.length;){var b=m[x++],w=(1===x&&(f=p=m[x],g=d=m[x+1]),y);switch(b){case MC.M:p=f=m[x++],d=g=m[x++];break;case MC.L:w=Mh(p,d,m[x],m[x+1],v,_,IC,!0),p=m[x++],d=m[x++];break;case MC.C:w=ti(p,d,m[x++],m[x++],m[x++],m[x++],m[x],m[x+1],v,_,IC),p=m[x++],d=m[x++];break;case MC.Q:w=ri(p,d,m[x++],m[x++],m[x],m[x+1],v,_,IC),p=m[x++],d=m[x++];break;case MC.A:var S=m[x++],C=m[x++],T=m[x++],M=m[x++],k=m[x++],I=m[x++],D=(x+=1,!!(1-m[x++])),A=Math.cos(k)*T+S,P=Math.sin(k)*M+C;x<=1&&(f=A,g=P),P=(A=k)+I,D=D,a=(v-S)*(r=M)/T+S,s=_,l=IC,c=h=u=void 0,a-=i=S,s-=o=C,u=Math.sqrt(a*a+s*s),h=(a/=u)*r+i,c=(s/=u)*r+o,w=Math.abs(A-P)%TC<1e-4||((P=D?(D=A,A=ci(P),ci(D)):(A=ci(A),ci(P)))<A&&(P+=TC),(D=Math.atan2(s,a))<0&&(D+=TC),A<=D&&D<=P)||A<=D+TC&&D+TC<=P?(l[0]=h,l[1]=c,u-r):(c=((D=r*Math.cos(A)+i)-a)*(D-a)+((h=r*Math.sin(A)+o)-s)*(h-s))<(i=((u=r*Math.cos(P)+i)-a)*(u-a)+((A=r*Math.sin(P)+o)-s)*(A-s))?(l[0]=D,l[1]=h,Math.sqrt(c)):(l[0]=u,l[1]=A,Math.sqrt(i)),p=Math.cos(k+I)*T+S,d=Math.sin(k+I)*M+C;break;case MC.R:w=kh(f=p=m[x++],g=d=m[x++],m[x++],m[x++],v,_,IC);break;case MC.Z:w=Mh(p,d,f,g,v,_,IC,!0),p=f,d=g}w<y&&(y=w,n.set(IC[0],IC[1]))}return y}function Dh(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var o=t.textGuideLineConfig||{},r=[[0,0],[0,0],[0,0]],a=o.candidates||kC,s=i.getBoundingRect().clone(),l=(s.applyTransform(i.getComputedTransform()),1/0),u=o.anchor,h=t.getComputedTransform(),c=h&&Te([],h),p=e.get("length2")||0;u&&PC.copy(u);for(var d,f,g=0;g<a.length;g++){var y=a[g],m=(S=w=b=x=_=v=m=void 0,y),v=0,_=s,x=DC,b=OC,w=_.width,S=_.height;switch(m){case"top":x.set(_.x+w/2,_.y-v),b.set(0,-1);break;case"bottom":x.set(_.x+w/2,_.y+S+v),b.set(0,1);break;case"left":x.set(_.x-v,_.y+S/2),b.set(-1,0);break;case"right":x.set(_.x+w+v,_.y+S/2),b.set(1,0)}vg.scaleAndAdd(AC,DC,OC,p),AC.transform(c),y=t.getBoundingRect(),y=u?u.distance(AC):t instanceof um?Ih(AC,t.path,PC):(m=PC,d=kh((d=y).x,y.y,y.width,y.height,AC.x,AC.y,IC),m.set(IC[0],IC[1]),d),y<l&&(l=y,AC.transform(h),PC.transform(h),PC.toArray(r[0]),AC.toArray(r[1]),DC.toArray(r[2]))}i=r,(o=e.get("minTurnAngle"))<=180&&0<o&&(o=o/180*Math.PI,DC.fromArray(i[0]),AC.fromArray(i[1]),PC.fromArray(i[2]),vg.sub(OC,DC,AC),vg.sub(LC,PC,AC),e=OC.len(),f=LC.len(),e<.001||f<.001||(OC.scale(1/e),LC.scale(1/f),e=OC.dot(LC),Math.cos(o)<e&&(f=Mh(AC.x,AC.y,PC.x,PC.y,DC.x,DC.y,RC,!1),NC.fromArray(RC),NC.scaleAndAdd(LC,f/Math.tan(Math.PI-o)),e=PC.x!==AC.x?(NC.x-AC.x)/(PC.x-AC.x):(NC.y-AC.y)/(PC.y-AC.y),isNaN(e)||(e<0?vg.copy(NC,AC):1<e&&vg.copy(NC,PC),NC.toArray(i[1]))))),n.setShape({points:r})}}}function Ah(t,e,n,i){var o="normal"===n,n=o?t:t.ensureState(n),e=(n.ignore=e,i.get("smooth")),e=(e&&!0===e&&(e=.3),n.shape=n.shape||{},0<e&&(n.shape.smooth=e),i.getModel("lineStyle").getLineStyle());o?t.useStyle(e):n.style=e}function Ph(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),0<n&&3<=i.length){var e=ef(i[0],i[1]),o=ef(i[1],i[2]);e&&o?(n=Math.min(e,o)*n,e=it([],i[1],i[0],n/e),n=it([],i[1],i[2],n/o),o=it([],e,n,.5),t.bezierCurveTo(e[0],e[1],e[0],e[1],o[0],o[1]),t.bezierCurveTo(n[0],n[1],n[0],n[1],i[2][0],i[2][1])):(t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]))}else for(var r=1;r<i.length;r++)t.lineTo(i[r][0],i[r][1])}function Oh(t,e,n,i,o,r){function a(){_=b.rect[e]-i,x=o-w.rect[e]-w.rect[n]}function s(t,e,n){t<0&&(0<(e=Math.min(e,-t))?(l(e*n,0,c),(e+=t)<0&&u(-e*n,1)):u(-t*n,1))}function l(n,i,o){0!==n&&(d=!0);for(var r=i;r<o;r++){var a=t[r];a.rect[e]+=n,a.label[e]+=n}}function u(i,o){for(var r=[],a=0,s=1;s<c;s++){var u=t[s-1].rect,u=Math.max(t[s].rect[e]-u[e]-u[n],0);r.push(u),a+=u}if(a){var h=Math.min(Math.abs(i)/a,o);if(0<i)for(s=0;s<c-1;s++)l(r[s]*h,0,s+1);else for(s=c-1;0<s;s--)l(-r[s-1]*h,s,c)}}function h(t){for(var e=t<0?-1:1,n=(t=Math.abs(t),Math.ceil(t/(c-1))),i=0;i<c-1;i++)if(0<e?l(n,0,i+1):l(-n,c-i-1,c),(t-=n)<=0)return}var c=t.length;if(!(c<2)){t.sort(function(t,n){return t.rect[e]-n.rect[e]});for(var p=0,d=!1,f=0,g=0;g<c;g++){var y,m=t[g],v=m.rect;(y=v[e]-p)<0&&(v[e]-=y,m.label[e]-=y,d=!0),f+=Math.max(-y,0),p=v[e]+v[n]}0<f&&r&&l(-f/c,0,c);var _,x,b=t[0],w=t[c-1];return a(),_<0&&u(-_,.8),x<0&&u(x,.8),a(),s(_,x,1),s(x,_,-1),a(),_<0&&h(-_),x<0&&h(x),d}}function Lh(t,e){var n=t.label,e=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:function(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}(e&&e.shape.points)}}function Rh(t,e,n){for(var i=0;i<n.length;i++){var o=n[i];null!=e[o]&&(t[o]=e[o])}}function Nh(){this._labelList=[],this._chartViewList=[]}function Eh(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){(GC(e).labelManager||(GC(e).labelManager=new HC)).clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=GC(e).labelManager;n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}function Bh(){return!1}function zh(t,e,n){var i=$d(),o=e.getWidth(),e=e.getHeight(),r=i.style;return r&&(r.position="absolute",r.left="0",r.top="0",r.width=o+"px",r.height=e+"px",i.setAttribute("data-zr-dom-id",t)),i.width=o*n,i.height=e*n,i}function Fh(t,e,n){var i,o=WC.call(this)||this,t=(o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,n=n||lg,"string"==typeof t?i=zh(t,e,n):C(t)&&(t=(i=t).id),o.id=t,(o.dom=i).style);return t&&(i.onselectstart=Bh,t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none",t.padding="0",t.margin="0",t.borderWidth="0"),o.domBack=null,o.ctxBack=null,o.painter=e,o.config=null,o.dpr=n,o}function Vh(t){return parseInt(t,10)}function Hh(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o,r,a=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase(),l=(this._opts=n=s({},n||{}),this.dpr=n.devicePixelRatio||lg,this._singleCanvas=a,(this.root=t).style),l=(l&&(l.webkitTapHighlightColor="transparent",l.webkitUserSelect="none",l.userSelect="none",l["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e,this._zlevelList),e=(this._prevDisplayList=[],this._layers);a?(o=(a=t).width,r=a.height,null!=n.width&&(o=n.width),null!=n.height&&(r=n.height),this.dpr=n.devicePixelRatio||1,a.width=o*this.dpr,a.height=r*this.dpr,this._width=o,this._height=r,(n=new UC(a,this,this.dpr)).__builtin__=!0,n.initContext(),(e[jC]=n).zlevel=jC,l.push(jC),this._domRoot=t):(this._width=this._getSize(0),this._height=this._getSize(1),e=this._domRoot=(o=this._width,r=this._height,(a=document.createElement("div")).style.cssText=["position:relative","width:"+o+"px","height:"+r+"px","padding:0","margin:0","border-width:0"].join(";")+";",a),t.appendChild(e))}function Gh(){var t=null!==YC&&YC.apply(this,arguments)||this;return t.type="dataset",t}function Wh(){var t=null!==ZC&&ZC.apply(this,arguments)||this;return t.type="dataset",t}function Uh(t){t.registerComponentModel(qC),t.registerComponentView($C)}function jh(){var t=null!==KC&&KC.apply(this,arguments)||this;return t.type=jh.type,t.hasSymbolVisual=!0,t}function Xh(t,e){var n,i=t.mapDimensionsAll("defaultedLabel"),o=i.length;if(1===o)return null!=(n=Ua(t,e,i[0]))?n+"":null;if(o){for(var r=[],a=0;a<i.length;a++)r.push(Ua(t,e,i[a]));return r.join(" ")}}function Yh(t,e,n,i){var o=QC.call(this)||this;return o.updateData(t,e,n,i),o}function qh(t,e){this.parent.drift(t,e)}function Zh(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&(!i.isIgnore||!i.isIgnore(n))&&(!i.clipShape||i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function $h(t){return(t=null==t||C(t)?t:{isIgnore:t})||{}}function Kh(t){var t=t.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),hoverScale:e.get("scale"),labelStatesModels:cr(t),cursorStyle:t.get("cursor")}}function Jh(t){this.group=new zg,this._SymbolCtor=t||tT}function Qh(t,e,n){var i=t.getBaseAxis(),o=t.getOtherAxis(i),n=function(t,e){var n=0,t=t.scale.getExtent();return"start"===e?n=t[0]:"end"===e?n=t[1]:0<t[0]?n=t[0]:t[1]<0&&(n=t[1]),n}(o,n),i=i.dim,o=o.dim,r=e.mapDimension(o),a=e.mapDimension(i),s="x"===o||"radius"===o?1:0,t=f(t.dimensions,function(t){return e.mapDimension(t)}),l=!1,u=e.getCalculationInfo("stackResultDimension");return Ru(e,t[0])&&(l=!0,t[0]=u),Ru(e,t[1])&&(l=!0,t[1]=u),{dataDimsForPoint:t,valueStart:n,valueAxisDim:o,baseAxisDim:i,stacked:!!l,valueDim:r,baseDim:a,baseDataOffset:s,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function tc(t,e,n,i){var o=NaN,r=(t.stacked&&(o=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(o)&&(o=t.valueStart),t.baseDataOffset),a=[];return a[r]=n.get(t.baseDim,i),a[1-r]=o,e.dataToPoint(a)}function ec(t){return _(t)?iT?new Float32Array(t):t:new oT(t)}function nc(t,e){return isNaN(t)||isNaN(e)}function ic(t,e,n,i,o,r,a,s,l){for(var u,h,c,p,d,f,g=n,y=0;y<i;y++){var m=e[2*g],v=e[2*g+1];if(o<=g||g<0)break;if(nc(m,v)){if(l){g+=r;continue}break}if(g===n)t[0<r?"moveTo":"lineTo"](m,v),c=m,p=v;else{var _=m-u,x=v-h;if(_*_+x*x<.5){g+=r;continue}if(0<a){var b=g+r,w=e[2*b],S=e[2*b+1],C=y+1;if(l)for(;nc(w,S)&&C<i;)C++,w=e[2*(b+=r)],S=e[2*b+1];var T,M,k,I,D,A,_=0,x=0,P=void 0,O=void 0;i<=C||nc(w,S)?(d=m,f=v):(_=w-u,x=S-h,T=m-u,M=w-m,k=v-h,I=S-v,A=D=void 0,O="x"===s?(D=Math.abs(T),A=Math.abs(M),d=m-D*a,P=m+D*a,f=v):"y"===s?(D=Math.abs(k),A=Math.abs(I),f=v-D*a,P=d=m,v+D*a):(D=Math.sqrt(T*T+k*k),d=m-_*a*(1-(T=(A=Math.sqrt(M*M+I*I))/(A+D))),f=v-x*a*(1-T),O=v+x*a*T,P=rT(P=m+_*a*T,aT(w,m)),O=rT(O,aT(S,v)),P=aT(P,rT(w,m)),f=v-(x=(O=aT(O,rT(S,v)))-v)*D/A,d=rT(d=m-(_=P-m)*D/A,aT(u,m)),f=rT(f,aT(h,v)),P=m+(_=m-(d=aT(d,rT(u,m))))*A/D,v+(x=v-(f=aT(f,rT(h,v))))*A/D)),t.bezierCurveTo(c,p,d,f,m,v),c=P,p=O}else t.lineTo(m,v)}u=m,h=v,g+=r}return y}function oc(t){return t=eT.call(this,t)||this,t.type="ec-polyline",t}function rc(){return null!==uT&&uT.apply(this,arguments)||this}function ac(t){return t=cT.call(this,t)||this,t.type="ec-polygon",t}function sc(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return 1}}function lc(t){for(var e=1/0,n=1/0,i=-1/0,o=-1/0,r=0;r<t.length;){var a=t[r++],s=t[r++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),o=Math.max(s,o))}return[[e,n],[i,o]]}function uc(t,e){var t=lc(t),n=t[0],t=t[1],e=lc(e),i=e[0],e=e[1];return Math.max(Math.abs(n[0]-i[0]),Math.abs(n[1]-i[1]),Math.abs(t[0]-e[0]),Math.abs(t[1]-e[1]))}function hc(t){return"number"==typeof t?t:t?.5:0}function cc(t,e,n){for(var e=e.getBaseAxis(),i="x"===e.dim||"radius"===e.dim?0:1,o=[],r=0,a=[],s=[],l=[];r<t.length-2;r+=2)switch(l[0]=t[r+2],l[1]=t[r+3],s[0]=t[r],s[1]=t[r+1],o.push(s[0],s[1]),n){case"end":a[i]=l[i],a[1-i]=s[1-i],o.push(a[0],a[1]);break;case"middle":var u=[];a[i]=u[i]=(s[i]+l[i])/2,a[1-i]=s[1-i],u[1-i]=l[1-i],o.push(a[0],a[1]),o.push(u[0],u[1]);break;default:a[i]=s[i],a[1-i]=l[1-i],o.push(a[0],a[1])}return o.push(t[r++],t[r++]),o}function pc(t,e,n){var t=t.get("showAllSymbol"),i="auto"===t;if(!t||i){var o,r,a=n.getAxesByScale("ordinal")[0];if(a&&(!i||!function(t,e){for(var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count(),o=(isNaN(i)&&(i=0),e.count()),r=Math.max(1,Math.round(o/5)),a=0;a<o;a+=r)if(1.5*tT.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return;return 1}(a,e)))return o=e.mapDimension(a.dim),r={},d(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue),r[t]=1}),function(t){return!r.hasOwnProperty(e.get(o,t))}}}function dc(t){for(var e,n,i=t.length/2;0<i&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}function fc(t,e){return[t[2*e],t[2*e+1]]}function gc(t){if(t.get(["endLabel","show"]))return 1;for(var e=0;e<Rm.length;e++)if(t.get([Rm[e],"endLabel","show"]))return 1}function yc(t,e,n,i){var o,r,a,s,l,u,h,c,p,d,f,g,y,m,v,_,x;return x="cartesian2d",e.type===x?(o=i.getModel("endLabel"),r=o.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},x=gc(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,r,o,e)}:null,l=e.getBaseAxis().isHorizontal(),h=n,c=i,p=function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},d=x,f=(m=(u=e).getArea()).x,g=m.y,y=m.width,m=m.height,v=c.get(["lineStyle","width"])||2,f-=v/2,g-=v/2,y+=v,m+=v,f=Math.floor(f),y=Math.round(y),_=new xm({shape:{x:f,y:g,width:y,height:m}}),h&&(h=(v=u.getBaseAxis()).isHorizontal(),u=v.inverse,h?(u&&(_.shape.x+=y),_.shape.width=0):(u||(_.shape.y+=m),_.shape.height=0),Vo(_,{shape:{width:y,height:m,x:f,y:g}},c,null,p,"function"==typeof d?function(t){d(t,_)}:null)),v=_,i.get("clip",!0)||(h=v.shape,u=Math.max(h.width,h.height),l?(h.y-=u,h.height+=2*u):(h.x-=u,h.width+=2*u)),x&&x(1,v),v):(y=n,m=i,g=(f=e).getArea(),c=$e(g.r0,1),p=$e(g.r,1),l=new bv({shape:{cx:$e(f.cx,1),cy:$e(f.cy,1),r0:c,r:p,startAngle:g.startAngle,endAngle:g.endAngle,clockwise:g.clockwise}}),y&&("angle"===f.getBaseAxis().dim?l.shape.endAngle=g.startAngle:l.shape.r=c,Vo(l,{shape:{endAngle:g.endAngle,r:p}},m)),l)}function mc(){return null!==dT&&dT.apply(this,arguments)||this}function vc(){return null!==mT&&mT.apply(this,arguments)||this}function _c(){return null!==_T&&_T.apply(this,arguments)||this}function xc(t,n,i,o){d(wT,function(r,s){function l(){var t=null!==u&&u.apply(this,arguments)||this;return t.type=n+"Axis."+s,t}var u,h=a(a({},bT[s],!0),o,!0),h=(e(l,u=i),l.prototype.mergeDefaultAndTheme=function(t,e){var n=Kr(this),i=n?Qr(t):{};a(t,e.getTheme().get(s+"Axis")),a(t,this.getDefaultOption()),t.type=bc(t),n&&Jr(t,i,n)},l.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=KS.createByAxisModel(this))},l.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=n+"Axis."+s,l.defaultOption=h,l);t.registerComponentModel(h)}),t.registerSubTypeDefaulter(n+"Axis",bc)}function bc(t){return t.type||(t.data?"category":"value")}function wc(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}function Sc(t){return"interval"===t.type||"time"===t.type}function Cc(){var t=null!==CT&&CT.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=ST,t}function Tc(t,e,n,i,o){return t=MT.call(this,t,e,n)||this,t.index=0,t.type=i||"value",t.position=o||"bottom",t}function Mc(t,e,n){n=n||{};var t=t.coordinateSystem,i=e.axis,o={},r=i.getAxesOnZeroOf()[0],a=i.position,s=r?"onZero":a,i=i.dim,t=t.getRect(),t=[t.x,t.x+t.width,t.y,t.y+t.height],l={left:0,right:1,top:0,bottom:1,onZero:2},u=e.get("offset")||0,u="x"===i?[t[2]-u,t[3]+u]:[t[0]-u,t[1]+u],h=(r&&(h=r.toGlobalCoord(r.dataToCoord(0)),u[l.onZero]=Math.max(Math.min(h,u[1]),u[0])),o.position=["y"===i?u[l[s]]:t[0],"x"===i?u[l[s]]:t[3]],o.rotation=Math.PI/2*("x"===i?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],o.labelOffset=r?u[l[a]]-u[l.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),O(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection),e.get(["axisLabel","rotate"]));return o.labelRotate="top"===s?-h:h,o.z2=1,o}function kc(t){return"cartesian2d"===t.get("coordinateSystem")}function Ic(t){var e={xAxisModel:null,yAxisModel:null};return d(e,function(n,i){var o=i.replace(/Model$/,""),o=t.getReferringComponents(o,$g).models[0];e[i]=o}),e}function Dc(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ST,this._initCartesian(t,e,n),this.model=t}function Ac(t,e){return t.getCoordSysModel()===e}function Pc(t,e,n,i){function o(t){return t.dim+"_"+t.index}n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,a=t[e],t=n.model,e=t.get(["axisLine","onZero"]),n=t.get(["axisLine","onZeroAxisIndex"]);if(e){if(null!=n)Oc(a[n])&&(r=a[n]);else for(var s in a)if(a.hasOwnProperty(s)&&Oc(a[s])&&!i[o(a[s])]){r=a[s];break}r&&(i[o(r)]=!0)}}function Oc(t){return t&&"category"!==t.type&&"time"!==t.type&&(e=(t=(t=t).scale.getExtent())[0],t=t[1],!(0<e&&0<t||e<0&&t<0));var e}function Lc(t,e){this.group=new zg,this.opt=e,this.axisModel=t,l(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}}),t=new zg({x:e.position[0],y:e.position[1],rotation:e.rotation}),t.updateTransform(),this._transformGroup=t}function Rc(t){t&&(t.ignore=!0)}function Nc(t,e){var n,i=t&&t.getBoundingRect().clone(),o=e&&e.getBoundingRect().clone();if(i&&o)return Se(n=_e([]),n,-t.rotation),i.applyTransform(be([],n,t.getLocalTransform())),o.applyTransform(be([],n,e.getLocalTransform())),i.intersect(o)}function Ec(t){return"middle"===t||"center"===t}function Bc(t,e,n,i,o){for(var r=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord,u=(a[0]=u,s[a[1]=0]=u,s[1]=n,e&&(ot(a,a,e),ot(s,s,e)),new Rv({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0}));u.anid=o+"_"+t[l].tickValue,r.push(u)}return r}function zc(t,e){var n,i,o,a,s,u,h,c={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return n=c,e=e,o=(i=t).getComponent("tooltip"),a=i.getComponent("axisPointer"),s=a.get("link",!0)||[],u=[],d(e.getCoordinateSystems(),function(t){function e(e,o,p){var f,g=p.model.getModel("axisPointer",a),y=g.get("show");y&&("auto"!==y||e||Hc(g))&&(null==o&&(o=g.get("triggerTooltip")),y=(g=e?function(t,e,n,i,o,a){var s=e.getModel("axisPointer"),u={};return d(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){u[t]=r(s.get(t))}),u.snap="category"!==t.type&&!!a,"cross"===s.get("type")&&(u.type="line"),e=u.label||(u.label={}),null==e.show&&(e.show=!1),"cross"===o&&(o=s.get(["label","show"]),e.show=null==o||o,a||(o=u.lineStyle=s.get("crossStyle"))&&l(e,o.textStyle)),t.model.getModel("axisPointer",new w_(u,n,i))}(p,c,a,i,e,o):g).get("snap"),e=Gc(p.model),f=o||y||"category"===p.type,o=n.axesInfo[e]={key:e,axis:p,coordSys:t,axisPointerModel:g,triggerTooltip:o,involveSeries:f,snap:y,useHandle:Hc(g),seriesModels:[],linkGroup:null},h[e]=o,n.seriesInvolved=n.seriesInvolved||f,null!=(y=function(t,e){for(var n=e.model,i=e.dim,o=0;o<t.length;o++){var r=t[o]||{};if(Fc(r[i+"AxisId"],n.id)||Fc(r[i+"AxisIndex"],n.componentIndex)||Fc(r[i+"AxisName"],n.name))return o}}(s,p)))&&((g=u[y]||(u[y]={axesInfo:{}})).axesInfo[e]=o,g.mapper=s[y].mapper,o.linkGroup=g)}var h,c,p,f,g;t.axisPointerEnabled&&(p=Gc(t.model),h=n.coordSysAxesInfo[p]={},c=(n.coordSysMap[p]=t).model.getModel("tooltip",o),d(t.getAxes(),v(e,!1,null)),t.getTooltipAxes)&&o&&c.get("show")&&(p="axis"===c.get("trigger"),f="cross"===c.get(["axisPointer","type"]),g=t.getTooltipAxes(c.get(["axisPointer","axis"])),(p||f)&&d(g.baseAxes,v(e,!f||"cross",p)),f)&&d(g.otherAxes,v(e,"cross",!1))}),c.seriesInvolved&&(h=c,t.eachSeries(function(t){var e=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);e&&"none"!==n&&!1!==n&&"item"!==n&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&d(h.coordSysAxesInfo[Gc(e.model)],function(n){var i=n.axis;e.getAxis(i.dim)===i&&(n.seriesModels.push(t),null==n.seriesDataCount&&(n.seriesDataCount=0),n.seriesDataCount+=t.getData().count())})})),c}function Fc(t,e){return"all"===t||_(t)&&0<=u(t,e)||t===e}function Vc(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Gc(t)]}function Hc(t){return!!t.get(["handle","show"])}function Gc(t){return t.type+"||"+t.id}function Wc(){var t=null!==IT&&IT.apply(this,arguments)||this;return t.type=Wc.type,t}function Uc(){var t=null!==DT&&DT.apply(this,arguments)||this;return t.type=Uc.type,t.axisPointerClass="CartesianAxisPointer",t}function jc(){var t=null!==AT&&AT.apply(this,arguments)||this;return t.type=jc.type,t}function Xc(){var t=null!==GT&&GT.apply(this,arguments)||this;return t.type=HT.type,t}function Yc(){var t=null!==UT&&UT.apply(this,arguments)||this;return t.type="grid",t}function qc(){var t=null!==YT&&YT.apply(this,arguments)||this;return t.type=qc.type,t.layoutMode={type:"box",ignoreSize:!0},t}function Zc(){var t=null!==ZT&&ZT.apply(this,arguments)||this;return t.type=Zc.type,t}function $c(){var t=null!==KT&&KT.apply(this,arguments)||this;return t.type=$c.type,t.layoutMode={type:"box",ignoreSize:!0},t}function Kc(){var t=null!==JT&&JT.apply(this,arguments)||this;return t.type=Kc.type,t.newlineDisabled=!1,t}function Jc(t,e,n,i){ep(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),tp(t,e,n,i)}function Qc(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,o=n.length;i<o&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function tp(t,e,n,i){Qc(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function ep(t,e,n,i){Qc(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}function np(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function ip(t,e,n){var i,o={},r="toggleSelected"===t;return n.eachComponent("legend",function(n){r&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name)),d(n.getData(),function(t){var e,t=t.get("name");"\n"!==t&&""!==t&&(e=n.isSelected(t),o.hasOwnProperty(t)?o[t]=o[t]&&e:o[t]=e)})}),"allSelect"===t||"inverseSelect"===t?{selected:o}:{name:e.name,selected:o}}function op(t){t.registerComponentModel(QT),t.registerComponentView(iM),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,np),t.registerSubTypeDefaulter("legend",function(){return"plain"}),(t=t).registerAction("legendToggleSelect","legendselectchanged",v(ip,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",v(ip,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",v(ip,"inverseSelect")),t.registerAction("legendSelect","legendselected",v(ip,"select")),t.registerAction("legendUnSelect","legendunselected",v(ip,"unSelect"))}function rp(){var t=null!==oM&&oM.apply(this,arguments)||this;return t.type=rp.type,t}function ap(t,e,n){var i=[1,1];i[t.getOrient().index]=0,Jr(e,n,{type:"box",ignoreSize:!!i})}function sp(){var t=null!==rM&&rM.apply(this,arguments)||this;return t.type=sp.type,t.newlineDisabled=!0,t._currentIndex=0,t}function lp(){this._dragging=!1,this.animationThreshold=15}function up(t,e,n,i){!function t(e,n){var i;return C(e)&&C(n)?(i=!0,d(n,function(n,o){i=i&&t(e[o],n)}),!!i):e===n}(cM(n).lastProp,i)&&(cM(n).lastProp=i,e?Fo(n,i,t):(n.stopAnimation(),n.attr(i)))}function hp(t,e){t[e.get(["label","show"])?"show":"hide"]()}function cp(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function pp(t,e,n){var i=e.get("z"),o=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=o&&(t.zlevel=o),t.silent=n)})}function dp(t,e,n,i,o){var r=fp(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),n=n.getModel("label"),a=F_(n.get("padding")||0),s=n.getFont(),l=Oe(r,s),u=o.position,h=l.width+a[1]+a[3],l=l.height+a[0]+a[2],c=o.align,c=("right"===c&&(u[0]-=h),"center"===c&&(u[0]-=h/2),o.verticalAlign),i=("bottom"===c&&(u[1]-=l),"middle"===c&&(u[1]-=l/2),o=u,c=h,h=l,i=(l=i).getWidth(),l=l.getHeight(),o[0]=Math.min(o[0]+c,i)-c,o[1]=Math.min(o[1]+h,l)-h,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0),n.get("backgroundColor"));i&&"auto"!==i||(i=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:pr(n,{text:r,font:s,fill:n.getTextColor(),padding:a,backgroundColor:i}),z2:10}}function fp(t,e,n,i,o){t=e.scale.parse(t);var r,a=e.scale.getLabel({value:t},{precision:o.precision}),o=o.formatter;return o&&(r={value:hh(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},d(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&r.seriesData.push(e)}),b(o)?a=o.replace("{value}",a):x(o)&&(a=o(r))),a}function gp(t,e,n){var i=ve();return Se(i,i,n.rotation),we(i,i,n.position),tr([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function yp(){return null!==fM&&fM.apply(this,arguments)||this}function mp(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}function vp(t){return"x"===t.dim?0:1}function _p(){var t=null!==mM&&mM.apply(this,arguments)||this;return t.type=_p.type,t}function xp(t,e,n){function i(t,e){r.on(t,function(t){function n(t){var e=o[t.type];e?e.push(t):(t.dispatchAction=n,i.dispatchAction(t))}i=a;var i,o,s={dispatchAction:n,pendings:o={showTip:[],hideTip:[]}};xM(_M(r).records,function(n){n&&e(n,t,s.dispatchAction)});var l,u=s.pendings,h=a,c=u.showTip.length,p=u.hideTip.length;c?l=u.showTip[c-1]:p&&(l=u.hideTip[p-1]),l&&(l.dispatchAction=null,h.dispatchAction(l))})}var o,r,a;Bd.node||(o=e.getZr(),_M(o).records||(_M(o).records={}),a=e,_M(r=o).initialized||(_M(r).initialized=!0,i("click",v(wp,"click")),i("mousemove",v(wp,"mousemove")),i("globalout",bp)),(_M(o).records[t]||(_M(o).records[t]={})).handler=n)}function bp(t,e,n){t.handler("leave",null,n)}function wp(t,e,n,i){e.handler(t,n,i)}function Sp(t,e){Bd.node||(e=e.getZr(),(_M(e).records||{})[t]&&(_M(e).records[t]=null))}function Cp(){var t=null!==bM&&bM.apply(this,arguments)||this;return t.type=Cp.type,t}function Tp(t,e){var n,i,o,r,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=wn(n=e.getData(),t))||s<0||_(s)?{point:[]}:(i=n.getItemGraphicEl(s),o=e.coordinateSystem,e.getTooltipPosition?a=e.getTooltipPosition(s)||[]:o&&o.dataToPoint?a=t.isStacked?(e=o.getBaseAxis(),t=o.getOtherAxis(e).dim,e=e.dim,t="x"===t||"radius"===t?1:0,e=n.mapDimension(e),(r=[])[t]=n.get(e,s),r[1-t]=n.get(n.getCalculationInfo("stackResultDimension"),s),o.dataToPoint(r)||[]):o.dataToPoint(n.getValues(f(o.dimensions,function(t){return n.mapDimension(t)}),s))||[]:i&&((e=i.getBoundingRect().clone()).applyTransform(i.transform),a=[e.x+e.width/2,e.y+e.height/2]),{point:a,el:i})}function Mp(t,e,n){var i,o,r,a,s,l,u,h,c,p,f,g,y,m,_=t.currTrigger,x=[t.x,t.y],b=t,w=t.dispatchAction||Kd(n.dispatchAction,n),S=e.getComponent("axisPointer").coordSysAxesInfo;if(S)return Pp(x)&&(x=Tp({seriesIndex:b.seriesIndex,dataIndex:b.dataIndex},e).point),i=Pp(x),o=b.axesInfo,r=S.axesInfo,a="leave"===_||Pp(x),s={},e={list:[],map:{}},u={showPointer:v(Ip,l={}),showTooltip:v(Dp,e)},d(S.coordSysMap,function(t,e){var n=i||t.containPoint(x);d(S.coordSysAxesInfo[e],function(t,e){var r=t.axis,l=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(o,t);a||!n||o&&!l||null!=(l=null!=(l=l&&l.value)||i?l:r.pointToData(x))&&kp(t,l,u,!1,s)})}),h={},d(r,function(t,e){var n=t.linkGroup;n&&!l[e]&&d(n.axesInfo,function(e,i){var i=l[i];e!==t&&i&&(i=i.value,n.mapper&&(i=t.axis.scale.parse(n.mapper(i,Ap(e),Ap(t)))),h[t.key]=i)})}),d(h,function(t,e){kp(r[e],t,u,!0,s)}),c=l,b=r,p=s.axesInfo=[],d(b,function(t,e){var n=t.axisPointerModel.option,e=c[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&p.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),_=e,b=t,e=w,Pp(t=x)||!_.list.length?e({type:"hideTip"}):(w=((_.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:b.tooltipOption,position:b.position,dataIndexInside:w.dataIndexInside,dataIndex:w.dataIndex,seriesIndex:w.seriesIndex,dataByCoordSys:_.list})),e=r,b=(t=n).getZr(),w="axisPointerLastHighlights",f=SM(b)[w]||{},g=SM(b)[w]={},d(e,function(t,e){t=t.axisPointerModel.option,"show"===t.status&&d(t.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;g[e]=t})}),y=[],m=[],d(f,function(t,e){g[e]||m.push(t)}),d(g,function(t,e){f[e]||y.push(t)}),m.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:m}),y.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:y}),s}function kp(t,e,n,i,o){var r,a,l,u,h,c,p,f,g,y,m=t.axis;!m.scale.isBlank()&&m.containData(e)&&(t.involveSeries?(a=e,l=t.axis,u=l.dim,h=a,c=[],p=Number.MAX_VALUE,f=-1,d(t.seriesModels,function(t,e){var n,i=t.getData().mapDimensionsAll(u);if(t.getAxisTooltipData)var o=t.getAxisTooltipData(i,a,l),r=o.dataIndices,o=o.nestestValue;else{if(!(r=t.getData().indicesOfNearest(i[0],a,"category"===l.type?.5:null)).length)return;o=t.getData().get(i[0],r[0])}null!=o&&isFinite(o)&&(i=a-o,(n=Math.abs(i))<=p)&&((n<p||0<=i&&f<0)&&(p=n,f=i,h=o,c.length=0),d(r,function(e){c.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}),y=(r={payloadBatch:c,snapToValue:h}).snapToValue,(g=r.payloadBatch)[0]&&null==o.seriesIndex&&s(o,g[0]),!i&&t.snap&&m.containData(y)&&null!=y&&(e=y),n.showPointer(t,e,g),n.showTooltip(t,r,y)):n.showPointer(t,e))}function Ip(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function Dp(t,e,n,i){var o,r,n=n.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&n.length&&(o=Gc(e=e.coordSys.model),(r=t.map[o])||(r=t.map[o]={coordSysId:e.id,coordSysIndex:e.componentIndex,coordSysType:e.type,coordSysMainType:e.mainType,dataByAxis:[]},t.list.push(r)),r.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:n.slice()}))}function Ap(t){var e=t.axis.model,n={},t=n.axisDim=t.axis.dim;return n.axisIndex=n[t+"AxisIndex"]=e.componentIndex,n.axisName=n[t+"AxisName"]=e.name,n.axisId=n[t+"AxisId"]=e.id,n}function Pp(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Op(t){ET.registerAxisPointerClass("CartesianAxisPointer",gM),t.registerComponentModel(vM),t.registerComponentView(wM),t.registerPreprocessor(function(t){var e;t&&(t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={}),e=t.axisPointer.link)&&!_(e)&&(t.axisPointer.link=[e])}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=zc(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Mp)}function Lp(){var t=null!==CM&&CM.apply(this,arguments)||this;return t.type=Lp.type,t}function Rp(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function Np(t){if(Bd.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}function Ep(t,e){if(!t)return e;e=Hr(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}function Bp(t,e,n){var i,t=t.toFixed(0)+"px",e=e.toFixed(0)+"px";return Bd.transformSupported?(i="translate"+((i=Bd.transform3dSupported)?"3d":"")+"("+t+","+e+(i?",0":"")+")",n?"top:0;left:0;"+IM+":"+i+";":[["top",0],["left",0],[MM,i]]):n?"top:"+e+";left:"+t+";":[["top",e],["left",t]]}function zp(t,e,n){var i,o,r=[],a=t.get("transitionDuration"),s=t.get("backgroundColor"),l=t.get("shadowBlur"),u=t.get("shadowColor"),h=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),p=t.getModel("textStyle"),f=Ts(t,"html");return r.push("box-shadow:"+h+"px "+c+"px "+l+"px "+u),e&&a&&r.push((u="opacity"+(l=" "+(h=a)/2+"s "+(c="cubic-bezier(0.23,1,0.32,1)"))+",visibility"+l,n||(l=" "+h+"s "+c,u+=Bd.transformSupported?","+IM+l:",left"+l+",top"+l),kM+":"+u)),s&&(Bd.canvasSupported?r.push("background-color:"+s):(r.push("background-color:#"+Yt(s)),r.push("filter:alpha(opacity=70)"))),d(["width","color","radius"],function(e){var n="border-"+e,i=Hr(n),i=t.get(i);null!=i&&r.push(n+":"+i+("color"===e?"":"px"))}),r.push((o=[],e=(i=p).get("fontSize"),(a=i.getTextColor())&&o.push("color:"+a),o.push("font:"+i.getFont()),e&&o.push("line-height:"+Math.round(3*e/2)+"px"),a=i.get("textShadowColor"),e=i.get("textShadowBlur")||0,n=i.get("textShadowOffsetX")||0,h=i.get("textShadowOffsetY")||0,a&&e&&o.push("text-shadow:"+n+"px "+h+"px "+e+"px "+a),d(["decoration","align"],function(t){var e=i.get(t);e&&o.push("text-"+t+":"+e)}),o.join(";"))),null!=f&&r.push("padding:"+F_(f).join("px ")+"px"),r.join(";")+";"}function Fp(t,e,n,i,o){var r,a,s=e&&e.painter;n?(n=s&&s.getViewportRoot())&&(r=t,a=document.body,ct(hf,n,i,o,!0))&&ct(r,a,hf[0],hf[1]):(t[0]=i,t[1]=o,(n=s&&s.getViewportRootOffset())&&(t[0]+=n.offsetLeft,t[1]+=n.offsetTop)),t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function Vp(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,Bd.wxa)return null;var i=document.createElement("div"),o=(i.domBelongToZr=!0,this.el=i,this._zr=e.getZr()),n=this._appendToBody=n&&n.appendToBody,r=(Fp(this._styleCoord,o,n,e.getWidth()/2,e.getHeight()/2),(n?document.body:t).appendChild(i),this._container=t,this);i.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},i.onmousemove=function(t){var e;t=t||window.event,r._enterable||(e=o.handler,yt(o.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},i.onmouseleave=function(){r._inContent=!1,r._enterable&&r._show&&r.hideLater(r._hideDelay)}}function Hp(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),Up(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}function Gp(t){return Math.max(0,t)}function Wp(t){var e=Gp(t.shadowBlur||0),n=Gp(t.shadowOffsetX||0),t=Gp(t.shadowOffsetY||0);return{left:Gp(e-n),right:Gp(e+n),top:Gp(e-t),bottom:Gp(e+t)}}function Up(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function jp(){var t=null!==PM&&PM.apply(this,arguments)||this;return t.type=jp.type,t}function Xp(t,e,n){for(var i=e.ecModel,o=n?(o=new w_(n,i,i),new w_(e.option,o,i)):e,r=t.length-1;0<=r;r--){var a=t[r];(a=a&&(b(a=a instanceof w_?a.get("tooltip",!0):a)?{formatter:a}:a))&&(o=new w_(a,o,i))}return o}function Yp(t,e){return t.dispatchAction||Kd(e.dispatchAction,e)}function qp(t){return"center"===t||"middle"===t}function Zp(t){null==(this._condVal=b(t)?new RegExp(t):A(t)?t:null)&&cn("")}function $p(){}function Kp(){}function Jp(){}function Qp(){}function td(){}function ed(t,e){if(!0===t||!1===t)return(n=new VM).value=t,n;var n;if(id(t)||cn(""),t.and)return nd("and",t,e);if(t.or)return nd("or",t,e);if(t.not)return n=e,id(r=(r=t).not)||cn(""),(l=new WM).child=ed(r,n),l.child||cn(""),l;for(var i=t,o=e,r=o.prepareGetValue(i),a=[],s=m(i),l=i.parser,u=l?Ja(l):null,h=0;h<s.length;h++){var c,p=s[h];"parser"===p||o.valueGetterAttrMap.get(p)||(c=j(zM,p)?zM[p]:p,p=i[p],p=u?u(p):p,(c=function(t,e){return"eq"===t||"ne"===t?new eb("eq"===t,e):j(Jx,t)?new Qx(t,e):null}(c,p)||"reg"===c&&new FM(p))||cn(""),a.push(c))}return a.length||cn(""),(l=new UM).valueGetterParam=r,l.valueParser=u,l.getValue=o.getValue,l.subCondList=a,l}function nd(t,e,n){return e=e[t],_(e)||cn(""),e.length||cn(""),t=new("and"===t?HM:GM),t.children=f(e,function(t){return ed(t,n)}),t.children.length||cn(""),t}function id(t){return C(t)&&!p(t)}function od(t,e){this._cond=ed(t,e)}function rd(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ad(t){var e,n;return t&&"transparent"!==t?"string"==typeof t&&-1<t.indexOf("rgba")&&(n=Ut(t))&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3]):t="none",{color:t,opacity:null==e?1:e}}function sd(t,e,n){n=n||function(t,e){return t===e},t=t.slice();var i=(e=e.slice()).length,o=t.length,r=1,a=i+o,s=[{newPos:-1,components:[]}],l=ld(s[0],e,t,0,n);if(s[0].newPos+1>=i&&o<=l+1){for(var u=[],h=0;h<e.length;h++)u.push(h);return[{indices:u,count:e.length,added:!1,removed:!1}]}for(;r<=a;){var c=function(){for(var a=-1*r;a<=r;a+=2){var l,u=s[a-1],h=s[a+1],c=(h?h.newPos:0)-a,p=(u&&(s[a-1]=void 0),u&&u.newPos+1<i),d=h&&0<=c&&c<o;if(p||d){if(!p||d&&u.newPos<h.newPos?ud((l={newPos:(p=h).newPos,components:p.components.slice(0)}).components,!1,!0):((l=u).newPos++,ud(l.components,!0,!1)),c=ld(l,e,t,a,n),l.newPos+1>=i&&o<=c+1){for(var f=l.components,g=0,y=f.length,m=0,v=0;g<y;g++){var _=f[g];if(_.removed){for(b=v;b<v+_.count;b++)_.indices.push(b);v+=_.count}else{for(var x=[],b=m;b<m+_.count;b++)x.push(b);_.indices=x,m+=_.count,_.added||(v+=_.count)}}return f}s[a]=l}else s[a]=void 0}r++}();if(c)return c}}function ld(t,e,n,i,o){for(var r=e.length,a=n.length,s=t.newPos,l=s-i,u=0;s+1<r&&l+1<a&&o(e[s+1],n[l+1]);)s++,l++,u++;return u&&t.components.push({count:u,added:!1,removed:!1,indices:[]}),t.newPos=s,l}function ud(t,e,n){var i=t[t.length-1];i&&i.added===e&&i.removed===n?t[t.length-1]={count:i.count+1,added:e,removed:n,indices:[]}:t.push({count:1,added:e,removed:n,indices:[]})}function hd(t){return ZM(1e3*t)/1e3}function cd(t){return ZM(1e4*t)/1e4}function pd(t){return t<1e-4&&-1e-4<t}function dd(t,e){e&&fd(t,"transform","matrix("+hd(e[0])+","+hd(e[1])+","+hd(e[2])+","+hd(e[3])+","+cd(e[4])+","+cd(e[5])+")")}function fd(t,e,n){n&&("linear"===n.type||"radial"===n.type)||t.setAttribute(e,n)}function gd(t,e,n){var i,o,r,a=null==e.opacity?1:e.opacity;n instanceof gm?t.style.opacity=a+"":(null!=(r=(r=e).fill)&&r!==qM?(fd(t,"fill",(r=ad(e.fill)).color),fd(t,"fill-opacity",(null!=e.fillOpacity?e.fillOpacity*r.opacity*a:r.opacity*a)+"")):fd(t,"fill",qM),null!=(r=(r=e).stroke)&&r!==qM?(fd(t,"stroke",(r=ad(e.stroke)).color),i=e.lineWidth,fd(t,"stroke-width",((o=e.strokeNoScale?n.getLineScale():1)?i/o:0)+""),fd(t,"paint-order",e.strokeFirst?"stroke":"fill"),fd(t,"stroke-opacity",(null!=e.strokeOpacity?e.strokeOpacity*r.opacity*a:r.opacity*a)+""),(n=e.lineDash&&0<i&&dl(e.lineDash,i))?(r=e.lineDashOffset,o&&1!==o&&(n=f(n,function(t){return t/o}),r=r&&ZM(r/=o)),fd(t,"stroke-dasharray",n.join(",")),fd(t,"stroke-dashoffset",(r||0)+"")):fd(t,"stroke-dasharray",""),e.lineCap&&fd(t,"stroke-linecap",e.lineCap),e.lineJoin&&fd(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&fd(t,"stroke-miterlimit",e.miterLimit+"")):fd(t,"stroke",qM))}function yd(){}function md(t,e,n,i,o){this.nextId=0,this._domName="_dom",this.createElement=rd,this._zrId=t,this._svgRoot=e,this._tagNames="string"==typeof n?[n]:n,this._markLabel=i,o&&(this._domName=o)}function vd(t){return"linear"===t.type}function _d(t){return"radial"===t.type}function xd(t){return t&&("linear"===t.type||"radial"===t.type)}function bd(t,e){return ak.call(this,t,e,["linearGradient","radialGradient"],"__gradient_in_use__")||this}function wd(t){return t&&(t.image||t.svgElement)}function Sd(t,e){return sk.call(this,t,e,["pattern"],"__pattern_in_use__")||this}function Cd(t){return(t=t.__clipPaths)&&0<t.length}function Td(t,e){return t=ck.call(this,t,e,"clipPath","__clippath_in_use__")||this,t._refGroups={},t._keyDuplicateCount={},t}function Md(t,e){return t=dk.call(this,t,e,["filter"],"__filter_in_use__","_shadowDom")||this,t._shadowDomMap={},t._shadowDomPool=[],t}function kd(t){return parseInt(t,10)}function Id(t){return t instanceof um?nk:t instanceof gm?ik:t instanceof cm?rk:nk}function Dd(t,e){return e&&t&&e.parentNode!==t}function Ad(t,e,n){Dd(t,e)&&n&&((n=n.nextSibling)?t.insertBefore(e,n):t.appendChild(e))}function Pd(t,e){var n;Dd(t,e)&&((n=t.firstChild)?t.insertBefore(e,n):t.appendChild(e))}function Od(t){return t.__svgEl}function Ld(t,e,n,i){this.type="svg",this.refreshHover=Rd("refreshHover"),this.pathToImage=Rd("pathToImage"),this.configLayer=Rd("configLayer"),this.root=t,this.storage=e,this._opts=n=s({},n||{});var e=rd("svg"),o=(e.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),e.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),e.setAttribute("version","1.1"),e.setAttribute("baseProfile","full"),e.style.cssText="user-select:none;position:absolute;left:0;top:0;",rd("g")),r=(e.appendChild(o),rd("g")),i=(e.appendChild(r),this._gradientManager=new lk(i,r),this._patternManager=new hk(i,r),this._clipPathManager=new pk(i,r),this._shadowManager=new fk(i,r),document.createElement("div"));i.style.cssText="overflow:hidden;position:relative",this._svgDom=e,this._svgRoot=r,this._backgroundRoot=o,this._viewport=i,t.appendChild(i),i.appendChild(e),this.resize(n.width,n.height),this._visibleList=[]}function Rd(t){return function(){o('In SVG mode painter not support method "'+t+'"')}}var Nd=function(t,e){return(Nd=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},Ed=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},Bd=new function(){this.browser=new Ed,this.node=!1,this.wxa=!1,this.worker=!1,this.canvasSupported=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(Bd.wxa=!0,Bd.canvasSupported=!0,Bd.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?(Bd.worker=!0,Bd.canvasSupported=!0):"undefined"==typeof navigator?(Bd.node=!0,Bd.canvasSupported=!0,Bd.svgSupported=!0):(Yd=navigator.userAgent,zf=(of=Bd).browser,tf=Yd.match(/Firefox\/([\d.]+)/),Hd=Yd.match(/MSIE\s([\d.]+)/)||Yd.match(/Trident\/.+?rv:(([\d.]+))/),Xd=Yd.match(/Edge?\/([\d.]+)/),Yd=/micromessenger/i.test(Yd),tf&&(zf.firefox=!0,zf.version=tf[1]),Hd&&(zf.ie=!0,zf.version=Hd[1]),Xd&&(zf.edge=!0,zf.version=Xd[1],zf.newEdge=18<+Xd[1].split(".")[0]),Yd&&(zf.weChat=!0),of.canvasSupported=!!document.createElement("canvas").getContext,of.svgSupported="undefined"!=typeof SVGRect,of.touchEventsSupported="ontouchstart"in window&&!zf.ie&&!zf.edge,of.pointerEventsSupported="onpointerdown"in window&&(zf.edge||zf.ie&&11<=+zf.version),of.domSupported="undefined"!=typeof document,tf=document.documentElement.style,of.transform3dSupported=(zf.ie&&"transition"in tf||zf.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in tf)&&!("OTransition"in tf),of.transformSupported=of.transform3dSupported||zf.ie&&9<=+zf.version);var zd={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},Fd={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},Vd=Object.prototype.toString,Hd=Array.prototype,Gd=Hd.forEach,Wd=Hd.filter,Ud=Hd.slice,jd=Hd.map,Xd=function(){}.constructor,Yd=Xd?Xd.prototype:null,qd={},Zd=2311,$d=function(){return qd.createCanvas()};qd.createCanvas=function(){return document.createElement("canvas")};var Kd=Yd&&x(Yd.bind)?Yd.call.bind(Yd.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(Ud.call(arguments)))}},Jd="__ec_primitive__";H.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},H.prototype.set=function(t,e){return this.data[t]=e},H.prototype.each=function(t,e){for(var n in this.data)this.data.hasOwnProperty(n)&&t.call(e,this.data[n],n)},H.prototype.keys=function(){return m(this.data)},H.prototype.removeKey=function(t){delete this.data[t]};var Qd=H,tf=Object.freeze({__proto__:null,$override:n,HashMap:Qd,assert:B,bind:Kd,clone:r,concatArray:W,createCanvas:$d,createHashMap:G,createObject:U,curry:v,defaults:l,each:d,eqNaN:P,extend:s,filter:y,find:function(t,e,n){if(t&&e)for(var i=0,o=t.length;i<o;i++)if(e.call(n,t[i],i,t))return t[i]},guid:i,hasOwn:j,indexOf:u,inherits:h,isArray:_,isArrayLike:p,isBuiltInObject:T,isDom:k,isFunction:x,isGradientObject:I,isImagePatternObject:D,isNumber:S,isObject:C,isPrimitive:V,isRegExp:A,isString:b,isStringSafe:w,isTypedArray:M,keys:m,logError:o,map:f,merge:a,mergeAll:function(t,e){for(var n=t[0],i=1,o=t.length;i<o;i++)n=a(n,t[i],e);return n},mixin:c,noop:X,normalizeCssArray:E,reduce:g,retrieve:O,retrieve2:L,retrieve3:R,setAsPrimitive:F,slice:N,trim:z}),ef=et,nf=nt,of=Object.freeze({__proto__:null,add:Z,applyTransform:ot,clone:q,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},create:Y,dist:ef,distSquare:nf,distance:et,distanceSquare:nt,div:function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},len:K,lenSquare:J,length:K,lengthSquare:J,lerp:it,max:at,min:rt,mul:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:tt,scale:Q,scaleAndAdd:function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},set:function(t,e,n){return t[0]=e,t[1]=n,t},sub:$}),rf=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},af=(st.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent;e&&((this._draggingTarget=e).dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new rf(e,t),"dragstart",t.event))},st.prototype._drag=function(t){var e,n,i,o,r=this._draggingTarget;r&&(e=t.offsetX,n=t.offsetY,i=e-this._x,o=n-this._y,this._x=e,this._y=n,r.drift(i,o,t),this.handler.dispatchToElement(new rf(r,t),"drag",t.event),i=this.handler.findHover(e,n,r).target,o=this._dropTarget,r!==(this._dropTarget=i))&&(o&&i!==o&&this.handler.dispatchToElement(new rf(o,t),"dragleave",t.event),i)&&i!==o&&this.handler.dispatchToElement(new rf(i,t),"dragenter",t.event)},st.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new rf(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new rf(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},st);lt.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),n&&t){var r=this._$eventProcessor;null!=e&&r&&r.normalizeQuery&&(e=r.normalizeQuery(e)),o[t]||(o[t]=[]);for(var a=0;a<o[t].length;a++)if(o[t][a].h===n)return this;r={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},e=o[t].length-1,i=o[t][e],i&&i.callAtLast?o[t].splice(e,0,r):o[t].push(r)}return this},lt.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},lt.prototype.off=function(t,e){var n=this._$handlers;if(n)if(t)if(e){if(n[t]){for(var i=[],o=0,r=n[t].length;o<r;o++)n[t][o].h!==e&&i.push(n[t][o]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];else this._$handlers={};return this},lt.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var r=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!o||!o.filter||null==l.query||o.filter(t,l.query))switch(r){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}o&&o.afterTrigger&&o.afterTrigger(t)}return this},lt.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var r=e.length,a=e[r-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!o||!o.filter||null==u.query||o.filter(t,u.query))switch(r){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,r-1))}}o&&o.afterTrigger&&o.afterTrigger(t)}return this};var sf=lt,lf=Math.log(2),uf="___zrEVENTSAVED",hf=[],cf="undefined"!=typeof window&&!!window.addEventListener,pf=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,df=[],ff=cf?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0},gf=(mt.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},mt.prototype.clear=function(){return this._track.length=0,this},mt.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var o={points:[],touches:[],target:e,event:t},r=0,a=i.length;r<a;r++){var s=i[r],l=dt(n,s,{});o.points.push([l.zrX,l.zrY]),o.touches.push(s)}this._track.push(o)}},mt.prototype._recognize=function(t){for(var e in yf)if(yf.hasOwnProperty(e)&&(e=yf[e](this._track,t)))return e},mt),yf={pinch:function(t,e){var n,i=t.length;if(i)return n=(t[i-1]||{}).points,(i=(t[i-2]||{}).points||n)&&1<i.length&&n&&1<n.length?(i=vt(n)/vt(i),isFinite(i)||(i=1),e.pinchScale=i,i=[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2],e.pinchX=i[0],e.pinchY=i[1],{type:"pinch",target:t[0].target,event:e}):void 0}};e(xt,mf=sf),xt.prototype.dispose=function(){},xt.prototype.setCursor=function(){};var mf,vf,_f=xt,xf=function(t,e){this.x=t,this.y=e},bf=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],wf=(e(bt,vf=sf),bt.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(d(bf,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},bt.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=wt(this,e,n),o=this._hovered,r=o.target,i=(r&&!r.__zr&&(r=(o=this.findHover(o.x,o.y)).target),this._hovered=i?new xf(e,n):this.findHover(e,n)),e=i.target,n=this.proxy;n.setCursor&&n.setCursor(e?e.cursor:"default"),r&&e!==r&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(i,"mousemove",t),e&&e!==r&&this.dispatchToElement(i,"mouseover",t)},bt.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},bt.prototype.resize=function(){this._hovered=new xf(0,0)},bt.prototype.dispatch=function(t,e){(t=this[t])&&t.call(this,e)},bt.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},bt.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},bt.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var o="on"+e,r={type:e,event:n,target:(t=t).target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:_t};i&&(i[o]&&(r.cancelBubble=!!i[o].call(i,r)),i.trigger(e,r),i=i.__hostTarget||i.parent,!r.cancelBubble););r.cancelBubble||(this.trigger(e,r),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[o]&&t[o].call(t,r),t.trigger&&t.trigger(e,r)}))}},bt.prototype.findHover=function(t,e,n){for(var i=this.storage.getDisplayList(),o=new xf(t,e),r=i.length-1;0<=r;r--){var a=void 0;if(i[r]!==n&&!i[r].ignore&&(a=function(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,o=void 0,r=!1;i;){if(!(r=!!i.ignoreClip||r)){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(o=!0)}a=i.__hostTarget,i=a||i.parent}return!o||"silent"}return!1}(i[r],t,e))&&(o.topTarget||(o.topTarget=i[r]),"silent"!==a)){o.target=i[r];break}}return o},bt.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new gf);var n=this._gestureMgr,i=("start"===e&&n.clear(),n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom));"end"===e&&n.clear(),i&&(e=i.type,t.gestureEvent=e,(n=new xf).target=i.target,this.dispatchToElement(n,e,i.event))},bt);d(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){wf.prototype[t]=function(e){var n,i,o=e.zrX,r=e.zrY,a=wt(this,o,r);if("mouseup"===t&&a||(i=(n=this.findHover(o,r)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||4<ef(this._downPoint,[e.zrX,e.zrY]))return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var Sf=32,Cf=7,Tf=1,Mf=4,kf=!1;Pt.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},Pt.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},Pt.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,o=e.length;i<o;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,Bd.canvasSupported&&It(n,At)},Pt.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var o=i,r=t;o;)o.parent=r,o.updateTransform(),e.push(o),o=(r=o).getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=Tf),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else i=t,e&&e.length?i.__clipPaths=e:i.__clipPaths&&0<i.__clipPaths.length&&(i.__clipPaths=[]),isNaN(i.z)&&(Dt(),i.z=0),isNaN(i.z2)&&(Dt(),i.z2=0),isNaN(i.zlevel)&&(Dt(),i.zlevel=0),this._displayList[this._displayListLen++]=i;i=t.getDecalElement&&t.getDecalElement(),i&&this._updateAndAddDisplayable(i,e,n),i=t.getTextGuideLine(),i&&this._updateAndAddDisplayable(i,e,n),i=t.getTextContent(),i&&this._updateAndAddDisplayable(i,e,n)}},Pt.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},Pt.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=u(this._roots,t);0<=i&&this._roots.splice(i,1)}},Pt.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},Pt.prototype.getRoots=function(){return this._roots},Pt.prototype.dispose=function(){this._displayList=null,this._roots=null};var If=Pt,Df="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},Af={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,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((1+e)*t-e)*.5:.5*((t-=2)*t*((1+e)*t+e)+2)},bounceIn:function(t){return 1-Af.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*Af.bounceIn(2*t):.5*Af.bounceOut(2*t-1)+.5}},Pf=(Ot.prototype.step=function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),!this._paused){var n=(t-this._startTime-this._pausedTime)/this._life,i=(n<0&&(n=0),n=Math.min(n,1),this.easing),i="string"==typeof i?Af[i]:i,i="function"==typeof i?i(n):n;if(this.onframe&&this.onframe(i),1===n){if(!this.loop)return!0;this._restart(t),this.onrestart&&this.onrestart()}return!1}this._pausedTime+=e},Ot.prototype._restart=function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0},Ot.prototype.pause=function(){this._paused=!0},Ot.prototype.resume=function(){this._paused=!1},Ot),Of=function(t){this.value=t},Lf=(Lt.prototype.insert=function(t){return t=new Of(t),this.insertEntry(t),t},Lt.prototype.insertEntry=function(t){this.head?((this.tail.next=t).prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},Lt.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},Lt.prototype.len=function(){return this._len},Lt.prototype.clear=function(){this.head=this.tail=null,this._len=0},Lt);Rt.prototype.put=function(t,e){var n,i,o=this._list,r=this._map,a=null;return null==r[t]&&(i=o.len(),n=this._lastRemovedEntry,i>=this._maxSize&&0<i&&(i=o.head,o.remove(i),delete r[i.key],a=i.value,this._lastRemovedEntry=i),n?n.value=e:n=new Of(e),n.key=t,o.insertEntry(n),r[t]=n),a},Rt.prototype.get=function(t){var t=this._map[t],e=this._list;if(null!=t)return t!==e.tail&&(e.remove(t),e.insertEntry(t)),t.value},Rt.prototype.clear=function(){this._list.clear(),this._map={}},Rt.prototype.len=function(){return this._list.len()};var Rf=Rt,Nf={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]},Ef=new Rf(20),Bf=null,zf=Object.freeze({__proto__:null,fastLerp:qt,fastMapToColor:qt,lerp:Zt,lift:Xt,lum:Kt,mapToColor:Zt,modifyAlpha:function(t,e){if((t=Ut(t))&&null!=e)return t[3]=Et(e),$t(t,"rgba")},modifyHSL:function(t,e,n,i){var o=Ut(t);if(t)return o=function(t){var e,n,i,o,r,a,s,l,u,h;if(t)return h=t[0]/255,e=t[1]/255,n=t[2]/255,s=Math.min(h,e,n),o=((i=Math.max(h,e,n))+s)/2,0==(u=i-s)?a=r=0:(a=o<.5?u/(i+s):u/(2-i-s),s=((i-h)/6+u/2)/u,l=((i-e)/6+u/2)/u,u=((i-n)/6+u/2)/u,h===i?r=u-l:e===i?r=1/3+s-u:n===i&&(r=2/3+l-s),r<0&&(r+=1),1<r&&--r),h=[360*r,a,o],null!=t[3]&&h.push(t[3]),h}(o),null!=e&&(o[0]=(t=e,(t=Math.round(t))<0?0:360<t?360:t)),null!=n&&(o[1]=zt(n)),null!=i&&(o[2]=zt(i)),$t(jt(o),"rgba")},parse:Ut,random:function(){return"rgb("+Math.round(255*Math.random())+","+Math.round(255*Math.random())+","+Math.round(255*Math.random())+")"},stringify:$t,toHex:Yt}),Ff=Array.prototype.slice,Vf=[0,0,0,0],Hf=(se.prototype.isFinished=function(){return this._finished},se.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},se.prototype.needsAnimate=function(){return!this._isAllValueEqual&&2<=this.keyframes.length&&this.interpolable&&0<this.maxTime},se.prototype.getAdditiveTrack=function(){return this._additiveTrack},se.prototype.addKeyframe=function(t,e){t>=this.maxTime?this.maxTime=t:this._needsSort=!0;var n=this.keyframes,i=n.length;if(this.interpolable)if(p(e)){var o,r=p((r=e)&&r[0])?2:1;if(0<i&&this.arrDim!==r)return void(this.interpolable=!1);if(1==r&&"number"!=typeof e[0]||2==r&&"number"!=typeof e[0][0])return void(this.interpolable=!1);0<i&&(o=n[i-1],!this._isAllValueEqual||1==r&&ne(e,o.value)||(this._isAllValueEqual=!1)),this.arrDim=r}else{if(0<this.arrDim)return void(this.interpolable=!1);if("string"==typeof e)r=Ut(e),r?(e=r,this.isValueColor=!0):this.interpolable=!1;else if("number"!=typeof e||isNaN(e))return void(this.interpolable=!1);this._isAllValueEqual&&0<i&&(o=n[i-1],this.isValueColor&&!ne(o.value,e)||o.value!==e)&&(this._isAllValueEqual=!1)}return n={time:t,value:e,percent:0},this.keyframes.push(n),n},se.prototype.prepare=function(t){for(var e=this.keyframes,n=(this._needsSort&&e.sort(function(t,e){return t.time-e.time}),this.arrDim),i=e.length,o=e[i-1],r=0;r<i;r++)if(e[r].percent=e[r].time/this.maxTime,0<n&&r!==i-1){f=d=p=c=h=u=l=s=a=void 0;var a=e[r].value,s=o.value,l=n,u=a,h=s;if(u.push&&h.push){var a=u.length,c=h.length;if(a!==c)if(c<a)u.length=c;else for(var p=a;p<c;p++)u.push(1===l?h[p]:Ff.call(h[p]));for(var d=u[0]&&u[0].length,p=0;p<u.length;p++)if(1===l)isNaN(u[p])&&(u[p]=h[p]);else for(var f=0;f<d;f++)isNaN(u[p][f])&&(u[p][f]=h[p][f])}}if(t&&this.needsAnimate()&&t.needsAnimate()&&n===t.arrDim&&this.isValueColor===t.isValueColor&&!t._finished){this._additiveTrack=t;for(var g=e[0].value,r=0;r<i;r++)0===n?this.isValueColor?e[r].additiveValue=te([],e[r].value,g,-1):e[r].additiveValue=e[r].value-g:1===n?e[r].additiveValue=te([],e[r].value,g,-1):2===n&&(e[r].additiveValue=ee([],e[r].value,g,-1))}},se.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=null!=this._additiveTrack,i=n?"additiveValue":"value",o=this.keyframes,r=this.keyframes.length,a=this.propName,s=this.arrDim,l=this.isValueColor;if(e<0)u=0;else if(e<this._lastFramePercent){for(var u=Math.min(this._lastFrame+1,r-1);0<=u&&!(o[u].percent<=e);u--);u=Math.min(u,r-2)}else{for(u=this._lastFrame;u<r&&!(o[u].percent>e);u++);u=Math.min(u-1,r-2)}var h,c,p,d,f,g,y,m=o[u+1],v=o[u];v&&m&&(this._lastFrame=u,this._lastFramePercent=e,0!=(h=m.percent-v.percent))&&(h=(e-v.percent)/h,c=n?this._additiveValue:l?Vf:t[a],(0<s||l)&&!c&&(c=this._additiveValue=[]),this.useSpline?(y=o[u][i],g=o[0===u?u:u-1][i],p=o[r-2<u?r-1:u+1][i],d=o[r-3<u?r-1:u+2][i],0<s?(1===s?oe:function(t,e,n,i,o,r,a,s){for(var l=e.length,u=e[0].length,h=0;h<l;h++){t[h]||(t[1]=[]);for(var c=0;c<u;c++)t[h][c]=ie(e[h][c],n[h][c],i[h][c],o[h][c],r,a,s)}})(c,g,y,p,d,h,h*h,h*h*h):l?(oe(c,g,y,p,d,h,h*h,h*h*h),n||(t[a]=ae(c))):(f=void 0,f=this.interpolable?ie(g,y,p,d,h,h*h,h*h*h):p,n?this._additiveValue=f:t[a]=f)):0<s?(1===s?Qt:function(t,e,n,i){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){t[a]||(t[a]=[]);for(var s=0;s<r;s++)t[a][s]=Jt(e[a][s],n[a][s],i)}})(c,v[i],m[i],h):l?(Qt(c,v[i],m[i],h),n||(t[a]=ae(c))):(f=void 0,f=this.interpolable?Jt(v[i],m[i],h):(g=v[i],y=m[i],.5<h?y:g),n?this._additiveValue=f:t[a]=f),n)&&this._addToTarget(t)}},se.prototype._addToTarget=function(t){var e=this.arrDim,n=this.propName,i=this._additiveValue;0===e?this.isValueColor?(Ut(t[n],Vf),te(Vf,Vf,i,1),t[n]=ae(Vf)):t[n]=t[n]+i:1===e?te(t[n],t[n],i,1):2===e&&ee(t[n],t[n],i,1)},se);le.prototype.getTarget=function(){return this._target},le.prototype.changeTarget=function(t){this._target=t},le.prototype.when=function(t,e){return this.whenWithKeys(t,e,m(e))},le.prototype.whenWithKeys=function(t,e,n){for(var i=this._tracks,o=0;o<n.length;o++){var r=n[o];if(!(s=i[r])){var a,s=i[r]=new Hf(r),l=void 0,u=this._getAdditiveTrack(r);if(u?(l=(a=u.keyframes[u.keyframes.length-1])&&a.value,u.isValueColor&&(l=l&&ae(l))):l=this._target[r],null==l)continue;0!==t&&s.addKeyframe(0,re(l)),this._trackKeys.push(r)}s.addKeyframe(t,re(e[r]))}return this._maxTime=Math.max(this._maxTime,t),this},le.prototype.pause=function(){this._clip.pause(),this._paused=!0},le.prototype.resume=function(){this._clip.resume(),this._paused=!1},le.prototype.isPaused=function(){return!!this._paused},le.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},le.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},le.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},le.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var o=n[i].getTrack(t);o&&(e=o)}return e},le.prototype.start=function(t,e){if(!(0<this._started)){this._started=1;for(var n=this,i=[],o=0;o<this._trackKeys.length;o++){var r=this._trackKeys[o],a=this._tracks[r],r=this._getAdditiveTrack(r),s=a.keyframes;a.prepare(r),a.needsAnimate()?i.push(a):a.interpolable||(r=s[s.length-1])&&(n._target[a.propName]=r.value)}return i.length||e?(e=new Pf({life:this._maxTime,loop:this._loop,delay:this._delay,onframe:function(t){n._started=2;var e=n._additiveAnimators;if(e){for(var o=!1,r=0;r<e.length;r++)if(e[r]._clip){o=!0;break}o||(n._additiveAnimators=null)}for(r=0;r<i.length;r++)i[r].step(n._target,t);var a=n._onframeCbs;if(a)for(r=0;r<a.length;r++)a[r](n._target,t)},ondestroy:function(){n._doneCallback()}}),this._clip=e,this.animation&&this.animation.addClip(e),t&&"spline"!==t&&(e.easing=t)):this._doneCallback(),this}},le.prototype.stop=function(t){var e;this._clip&&(e=this._clip,t&&e.onframe(1),this._abortedCallback())},le.prototype.delay=function(t){return this._delay=t,this},le.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},le.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},le.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},le.prototype.getClip=function(){return this._clip},le.prototype.getTrack=function(t){return this._tracks[t]},le.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,o=0;o<t.length;o++){var r=n[t[o]];r&&(e?r.step(this._target,1):1===this._started&&r.step(this._target,0),r.setFinished())}for(var a=!0,o=0;o<i.length;o++)if(!n[i[o]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},le.prototype.saveFinalToTarget=function(t,e){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var i,o=e[n],r=this._tracks[o];r&&!r.isFinished()&&(i=(i=r.keyframes)[i.length-1])&&(i=re(i.value),r.isValueColor&&(i=ae(i)),t[o]=i)}}},le.prototype.__changeFinalValue=function(t,e){e=e||m(t);for(var n=0;n<e.length;n++){var i,o=e[n],r=this._tracks[o];r&&1<(i=r.keyframes).length&&(i=i.pop(),r.addKeyframe(i.time,t[o]),r.prepare(r.getAdditiveTrack()))}};var Gf=le;e(ue,Wf=sf),ue.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._clipsHead?((this._clipsTail.next=t).prev=this._clipsTail,t.next=null,this._clipsTail=t):this._clipsHead=this._clipsTail=t,t.animation=this},ue.prototype.addAnimator=function(t){t.animation=this,(t=t.getClip())&&this.addClip(t)},ue.prototype.removeClip=function(t){var e,n;t.animation&&(e=t.prev,n=t.next,e?e.next=n:this._clipsHead=n,n?n.prev=e:this._clipsTail=e,t.next=t.prev=t.animation=null)},ue.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},ue.prototype.update=function(t){for(var e=(new Date).getTime()-this._pausedTime,n=e-this._time,i=this._clipsHead;i;)var o=i.next,i=(i.step(e,n)&&(i.ondestroy&&i.ondestroy(),this.removeClip(i)),o);this._time=e,t||(this.onframe(n),this.trigger("frame",n),this.stage.update&&this.stage.update())},ue.prototype._startLoop=function(){var t=this;this._running=!0,Df(function e(){t._running&&(Df(e),t._paused||t.update())})},ue.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},ue.prototype.stop=function(){this._running=!1},ue.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},ue.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},ue.prototype.clear=function(){for(var t=this._clipsHead;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._clipsHead=this._clipsTail=null},ue.prototype.isFinished=function(){return null==this._clipsHead},ue.prototype.animate=function(t,e){return e=e||{},this.start(),t=new Gf(t,e.loop),this.addAnimator(t),t};var Wf,Uf,jf,Xf,Yf,qf,Zf,$f=ue,Kf=Bd.domSupported,Jf=(Uf={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:sg=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:f(sg,function(t){var e=t.replace("mouse","pointer");return Uf.hasOwnProperty(e)?e:t})}),Qf=["mousemove","mouseup"],tg=["pointermove","pointerup"],eg=!1,ng=function(t,e){this.stopPropagation=X,this.stopImmediatePropagation=X,this.preventDefault=X,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},ig={mousedown:function(t){t=yt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=yt(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=yt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){pe(this,(t=yt(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){eg=!0,t=yt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){eg||(t=yt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){ce(t=yt(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),ig.mousemove.call(this,t),ig.mousedown.call(this,t)},touchmove:function(t){ce(t=yt(this.dom,t)),this.handler.processGesture(t,"change"),ig.mousemove.call(this,t)},touchend:function(t){ce(t=yt(this.dom,t)),this.handler.processGesture(t,"end"),ig.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&ig.click.call(this,t)},pointerdown:function(t){ig.mousedown.call(this,t)},pointermove:function(t){he(t)||ig.mousemove.call(this,t)},pointerup:function(t){ig.mouseup.call(this,t)},pointerout:function(t){he(t)||ig.mouseout.call(this,t)}},og=(d(["click","dblclick","contextmenu"],function(t){ig[t]=function(e){e=yt(this.dom,e),this.trigger(t,e)}}),{pointermove:function(t){he(t)||og.mousemove.call(this,t)},pointerup:function(t){og.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}}),rg=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},ag=(e(me,jf=sf),me.prototype.dispose=function(){ye(this._localHandlerScope),Kf&&ye(this._globalHandlerScope)},me.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},me.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,Kf&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?fe(this,e):ye(e))},me),sg=1,lg=sg="undefined"!=typeof window?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):sg,ug="#333",hg="#ccc",sg=Object.freeze({__proto__:null,clone:function(t){var e=ve();return xe(e,t),e},copy:xe,create:ve,identity:_e,invert:Te,mul:be,rotate:Se,scale:Ce,translate:we}),cg=_e,pg=[],dg=[],fg=ve(),gg=Math.abs,yg=(ke.prototype.getLocalTransform=function(t){return ke.getLocalTransform(this,t)},ke.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},ke.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},ke.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},ke.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},ke.prototype.needLocalTransform=function(){return Me(this.rotation)||Me(this.x)||Me(this.y)||Me(this.scaleX-1)||Me(this.scaleY-1)},ke.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||ve(),e?this.getLocalTransform(n):cg(n),t&&(e?be(n,t,n):xe(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&cg(n)},ke.prototype._resolveGlobalScaleRatio=function(t){var e,n,i=this.globalScaleRatio;null!=i&&1!==i&&(this.getGlobalScale(pg),n=((pg[1]-(n=pg[1]<0?-1:1))*i+n)/pg[1]||0,t[0]*=i=((pg[0]-(e=pg[0]<0?-1:1))*i+e)/pg[0]||0,t[1]*=i,t[2]*=n,t[3]*=n),this.invTransform=this.invTransform||ve(),Te(this.invTransform,t)},ke.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},ke.prototype.setLocalTransform=function(t){var e,n,i,o;t&&(o=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],e=Math.atan2(t[1],t[0]),n=Math.PI/2+e-Math.atan2(t[3],t[2]),i=Math.sqrt(i)*Math.cos(n),o=Math.sqrt(o),this.skewX=n,this.skewY=0,this.rotation=-e,this.x=+t[4],this.y=+t[5],this.scaleX=o,this.scaleY=i,this.originX=0,this.originY=0)},ke.prototype.decomposeTransform=function(){var t,e,n;this.transform&&(e=this.parent,t=this.transform,e&&e.transform&&(be(dg,e.invTransform,t),t=dg),e=this.originX,n=this.originY,(e||n)&&(fg[4]=e,fg[5]=n,be(dg,t,fg),dg[4]-=e,dg[5]-=n,t=dg),this.setLocalTransform(t))},ke.prototype.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[0]=1,t[1]=1),t},ke.prototype.transformCoordToLocal=function(t,e){return t=[t,e],e=this.invTransform,e&&ot(t,t,e),t},ke.prototype.transformCoordToGlobal=function(t,e){return t=[t,e],e=this.transform,e&&ot(t,t,e),t},ke.prototype.getLineScale=function(){var t=this.transform;return t&&1e-10<gg(t[0]-1)&&1e-10<gg(t[3]-1)?Math.sqrt(gg(t[0]*t[3]-t[2]*t[1])):1},ke.prototype.copyTransform=function(t){for(var e=0;e<mg.length;e++){var n=mg[e];this[n]=t[n]}},ke.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,o=t.scaleX,r=t.scaleY,a=t.rotation||0,s=t.x,l=t.y,u=t.skewX?Math.tan(t.skewX):0,t=t.skewY?Math.tan(-t.skewY):0;return n||i?(e[4]=-n*o-u*i*r,e[5]=-i*r-t*n*o):e[4]=e[5]=0,e[0]=o,e[3]=r,e[1]=t*o,e[2]=u*r,a&&Se(e,e,a),e[4]+=n+s,e[5]+=i+l,e},ke.initDefaultProps=((Eg=ke.prototype).x=0,Eg.y=0,Eg.scaleX=1,Eg.scaleY=1,Eg.originX=0,Eg.originY=0,Eg.skewX=0,Eg.skewY=0,Eg.rotation=0,void(Eg.globalScaleRatio=1)),ke),mg=["x","y","originX","originY","rotation","scaleX","scaleY","skewX","skewY"],vg=(Ie.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},Ie.prototype.clone=function(){return new Ie(this.x,this.y)},Ie.prototype.set=function(t,e){return this.x=t,this.y=e,this},Ie.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},Ie.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},Ie.prototype.scale=function(t){this.x*=t,this.y*=t},Ie.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},Ie.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},Ie.prototype.dot=function(t){return this.x*t.x+this.y*t.y},Ie.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},Ie.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},Ie.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},Ie.prototype.distance=function(t){var e=this.x-t.x,t=this.y-t.y;return Math.sqrt(e*e+t*t)},Ie.prototype.distanceSquare=function(t){var e=this.x-t.x,t=this.y-t.y;return e*e+t*t},Ie.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},Ie.prototype.transform=function(t){var e,n;if(t)return e=this.x,n=this.y,this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this},Ie.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},Ie.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},Ie.set=function(t,e,n){t.x=e,t.y=n},Ie.copy=function(t,e){t.x=e.x,t.y=e.y},Ie.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},Ie.lenSquare=function(t){return t.x*t.x+t.y*t.y},Ie.dot=function(t,e){return t.x*e.x+t.y*e.y},Ie.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},Ie.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},Ie.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},Ie.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},Ie.lerp=function(t,e,n,i){var o=1-i;t.x=o*e.x+i*n.x,t.y=o*e.y+i*n.y},Ie),_g=Math.min,xg=Math.max,bg=new vg,wg=new vg,Sg=new vg,Cg=new vg,Tg=new vg,Mg=new vg,kg=(De.prototype.union=function(t){var e=_g(t.x,this.x),n=_g(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=xg(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=xg(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},De.prototype.applyTransform=function(t){De.applyTransform(this,this,t)},De.prototype.calculateTransform=function(t){var e=t.width/this.width,n=t.height/this.height,i=ve();return we(i,i,[-this.x,-this.y]),Ce(i,i,[e,n]),we(i,i,[t.x,t.y]),i},De.prototype.intersect=function(t,e){if(!t)return!1;t instanceof De||(t=De.create(t));var n,i,o,r,a,s,l,u,h=this,c=h.x,p=h.x+h.width,d=h.y,h=h.y+h.height,f=t.x,g=t.x+t.width,y=t.y,t=t.y+t.height,m=!(p<f||g<c||h<y||t<d);return e&&(n=1/0,i=0,o=Math.abs(p-f),r=Math.abs(g-c),a=Math.abs(h-y),s=Math.abs(t-d),l=Math.min(o,r),u=Math.min(a,s),p<f||g<c?i<l&&(i=l,o<r?vg.set(Mg,-o,0):vg.set(Mg,r,0)):l<n&&(n=l,o<r?vg.set(Tg,o,0):vg.set(Tg,-r,0)),h<y||t<d?i<u&&(i=u,a<s?vg.set(Mg,0,-a):vg.set(Mg,0,s)):l<n&&(n=l,a<s?vg.set(Tg,0,a):vg.set(Tg,0,-s))),e&&vg.copy(e,m?Tg:Mg),m},De.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},De.prototype.clone=function(){return new De(this.x,this.y,this.width,this.height)},De.prototype.copy=function(t){De.copy(this,t)},De.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},De.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},De.prototype.isZero=function(){return 0===this.width||0===this.height},De.create=function(t){return new De(t.x,t.y,t.width,t.height)},De.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},De.applyTransform=function(t,e,n){var i,o,r,a;n?n[1]<1e-5&&-1e-5<n[1]&&n[2]<1e-5&&-1e-5<n[2]?(i=n[0],o=n[3],r=n[4],a=n[5],t.x=e.x*i+r,t.y=e.y*o+a,t.width=e.width*i,t.height=e.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height)):(bg.x=Sg.x=e.x,bg.y=Cg.y=e.y,wg.x=Cg.x=e.x+e.width,wg.y=Sg.y=e.y+e.height,bg.transform(n),Cg.transform(n),wg.transform(n),Sg.transform(n),t.x=_g(bg.x,wg.x,Sg.x,Cg.x),t.y=_g(bg.y,wg.y,Sg.y,Cg.y),r=xg(bg.x,wg.x,Sg.x,Cg.x),a=xg(bg.y,wg.y,Sg.y,Cg.y),t.width=r-t.x,t.height=a-t.y):t!==e&&De.copy(t,e)},De),Ig={},Dg="12px sans-serif",Ag={measureText:function(t,e){return Xf=Xf||$d().getContext("2d"),Yf!==e&&(Yf=Xf.font=e||Dg),Xf.measureText(t)}},Pg="__zr_normal__",Og=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],Lg={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},Rg={},Ng=new kg(0,0,0,0),Eg=(ze.prototype._init=function(t){this.attr(t)},ze.prototype.drift=function(t,e,n){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]))[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},ze.prototype.beforeUpdate=function(){},ze.prototype.afterUpdate=function(){},ze.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},ze.prototype.updateInnerText=function(t){var e,n,i,o,r,a,s,l,u,h,c=this._textContent;!c||c.ignore&&!t||(this.textConfig||(this.textConfig={}),l=(t=this.textConfig).local,i=n=void 0,o=!1,(e=c.innerTransformable).parent=l?this:null,h=!1,e.copyTransform(c),null!=t.position&&(u=Ng,t.layoutRect?u.copy(t.layoutRect):u.copy(this.getBoundingRect()),l||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Rg,t,u):Be(Rg,t,u),e.x=Rg.x,e.y=Rg.y,n=Rg.align,i=Rg.verticalAlign,r=t.origin)&&null!=t.rotation&&(s=a=void 0,s="center"===r?(a=.5*u.width,.5*u.height):(a=Ee(r[0],u.width),Ee(r[1],u.height)),h=!0,e.originX=-e.x+a+(l?0:u.x),e.originY=-e.y+s+(l?0:u.y)),null!=t.rotation&&(e.rotation=t.rotation),(r=t.offset)&&(e.x+=r[0],e.y+=r[1],h||(e.originX=-r[0],e.originY=-r[1])),a=null==t.inside?"string"==typeof t.position&&0<=t.position.indexOf("inside"):t.inside,s=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),h=u=l=void 0,a&&this.canBeInsideText()?(l=t.insideFill,u=t.insideStroke,null!=l&&"auto"!==l||(l=this.getInsideTextFill()),null!=u&&"auto"!==u||(u=this.getInsideTextStroke(l),h=!0)):(l=t.outsideFill,u=t.outsideStroke,null!=l&&"auto"!==l||(l=this.getOutsideFill()),null!=u&&"auto"!==u||(u=this.getOutsideStroke(l),h=!0)),(l=l||"#000")===s.fill&&u===s.stroke&&h===s.autoStroke&&n===s.align&&i===s.verticalAlign||(o=!0,s.fill=l,s.stroke=u,s.autoStroke=h,s.align=n,s.verticalAlign=i,c.setDefaultTextStyle(s)),c.__dirty|=Tf,o&&c.dirtyStyle(!0))},ze.prototype.canBeInsideText=function(){return!0},ze.prototype.getInsideTextFill=function(){return"#fff"},ze.prototype.getInsideTextStroke=function(t){return"#000"},ze.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?hg:ug},ze.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&Ut(e),i=(n=n||[255,255,255,1])[3],o=this.__zr.isDarkMode(),r=0;r<3;r++)n[r]=n[r]*i+(o?0:255)*(1-i);return n[3]=1,$t(n,"rgba")},ze.prototype.traverse=function(t,e){},ze.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},s(this.extra,e)):this[t]=e},ze.prototype.hide=function(){this.ignore=!0,this.markRedraw()},ze.prototype.show=function(){this.ignore=!1,this.markRedraw()},ze.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(C(t))for(var n=m(t),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,t[o])}return this.markRedraw(),this},ze.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],o=i.__fromStateTransition;o&&o!==Pg||(o=(o=i.targetName)?e[o]:e,i.saveFinalToTarget(o))}},ze.prototype._innerSaveToNormal=function(t){var e=(e=this._normalState)||(this._normalState={});t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Og)},ze.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var o=n[i];null==t[o]||o in e||(e[o]=this[o])}},ze.prototype.hasState=function(){return 0<this.currentStates.length},ze.prototype.getState=function(t){return this.states[t]},ze.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},ze.prototype.clearStates=function(t){this.useState(Pg,!1,t)},ze.prototype.useState=function(t,e,n,i){var r=t===Pg,a=this.hasState();if(a||!r){var s,a=this.currentStates,l=this.stateTransition;if(!(0<=u(a,t))||!e&&1!==a.length){if((s=(s=this.stateProxy&&!r?this.stateProxy(t):s)||this.states&&this.states[t])||r)return r||this.saveCurrentToNormalState(s),(a=!!(s&&s.hoverLayer||i))&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&l&&0<l.duration,l),i=this._textContent,l=this._textGuide,i&&i.useState(t,e,n,a),l&&l.useState(t,e,n,a),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!a&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Tf),s;o("State "+t+" not exists.")}}},ze.prototype.useStates=function(t,e,n){if(t.length){var i=[],o=this.currentStates,r=t.length,a=r===o.length;if(a)for(var s=0;s<r;s++)if(t[s]!==o[s]){a=!1;break}if(!a){for(s=0;s<r;s++){var l=t[s],u=void 0;(u=(u=this.stateProxy?this.stateProxy(l,t):u)||this.states[l])&&i.push(u)}var h=i[r-1],h=!!(h&&h.hoverLayer||n),n=(h&&this._toggleHoverLayerFlag(!0),this._mergeStates(i)),c=this.stateTransition,n=(this.saveCurrentToNormalState(n),this._applyStateObj(t.join(","),n,this._normalState,!1,!e&&!this.__inHover&&c&&0<c.duration,c),this._textContent),c=this._textGuide;n&&n.useStates(t,e,h),c&&c.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Tf)}}else this.clearStates()},ze.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},ze.prototype.removeState=function(t){var e,t=u(this.currentStates,t);0<=t&&((e=this.currentStates.slice()).splice(t,1),this.useStates(e))},ze.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),t=u(i,t),o=0<=u(i,e);0<=t?o?i.splice(t,1):i[t]=e:n&&!o&&i.push(e),this.useStates(i)},ze.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},ze.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var o=t[i];s(n,o),o.textConfig&&s(e=e||{},o.textConfig)}return e&&(n.textConfig=e),n},ze.prototype._applyStateObj=function(t,e,n,i,o,r){for(var a=!(e&&i),l=(e&&e.textConfig?(this.textConfig=s({},(i?this:n).textConfig),s(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig),{}),u=!1,h=0;h<Og.length;h++){var c=Og[h],p=o&&Lg[c];e&&null!=e[c]?p?(u=!0,l[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(p?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!o)for(h=0;h<this.animators.length;h++){var d=this.animators[h],f=d.targetName;d.__changeFinalValue(f?(e||n)[f]:e||n)}u&&this._transitionState(t,l,r)},ze.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");if(t===this)throw new Error("Recursive component attachment.");var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this},ze.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},ze.prototype.getClipPath=function(){return this._clipPath},ze.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},ze.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},ze.prototype.getTextContent=function(){return this._textContent},ze.prototype.setTextContent=function(t){var e=this._textContent;if(e!==t){if(e&&e!==t&&this.removeTextContent(),t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.innerTransformable=new yg,this._attachComponent(t),this._textContent=t,this.markRedraw()}},ze.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),s(this.textConfig,t),this.markRedraw()},ze.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},ze.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},ze.prototype.getTextGuideLine=function(){return this._textGuide},ze.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},ze.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},ze.prototype.markRedraw=function(){this.__dirty|=Tf;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},ze.prototype.dirty=function(){this.markRedraw()},ze.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},ze.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},ze.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},ze.prototype.animate=function(t,e){var n=t?this[t]:this;if(n)return n=new Gf(n,e),this.addAnimator(n,t),n;o('Property "'+t+'" is not existed in element '+this.id)},ze.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var e=i.animators,n=u(e,t);0<=n&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},ze.prototype.updateDuringAnimation=function(t){this.markRedraw()},ze.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,o=[],r=0;r<i;r++){var a=n[r];t&&t!==a.scope?o.push(a):a.stop(e)}return this.animators=o,this},ze.prototype.animateTo=function(t,e,n){He(this,t,e,n)},ze.prototype.animateFrom=function(t,e,n){He(this,t,e,n,!0)},ze.prototype._transitionState=function(t,e,n,i){for(var o=He(this,e,n,i),r=0;r<o.length;r++)o[r].__fromStateTransition=t},ze.prototype.getBoundingRect=function(){return null},ze.prototype.getPaintRect=function(){return null},ze.initDefaultProps=((qf=ze.prototype).type="element",qf.name="",qf.ignore=!1,qf.silent=!1,qf.isGroup=!1,qf.draggable=!1,qf.dragging=!1,qf.ignoreClip=!1,qf.__inHover=!1,qf.__dirty=Tf,Zf={},void(Object.defineProperty&&(!Bd.browser.ie||8<Bd.browser.version)&&(Ve("position","_legacyPos","x","y"),Ve("scale","_legacyScale","scaleX","scaleY"),Ve("origin","_legacyOrigin","originX","originY")))),ze);c(Eg,sf),c(Eg,yg),e(Ue,Bg=Eg),Ue.prototype.childrenRef=function(){return this._children},Ue.prototype.children=function(){return this._children.slice()},Ue.prototype.childAt=function(t){return this._children[t]},Ue.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},Ue.prototype.childCount=function(){return this._children.length},Ue.prototype.add=function(t){if(t&&(t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),t.__hostTarget))throw"This elemenet has been used as an attachment";return this},Ue.prototype.addBefore=function(t,e){var n;return t&&t!==this&&t.parent!==this&&e&&e.parent===this&&0<=(e=(n=this._children).indexOf(e))&&(n.splice(e,0,t),this._doAdd(t)),this},Ue.prototype.replace=function(t,e){return t=u(this._children,t),0<=t&&this.replaceAt(e,t),this},Ue.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];return t&&t!==this&&t.parent!==this&&t!==i&&(n[e]=t,i.parent=null,(n=this.__zr)&&i.removeSelfFromZr(n),this._doAdd(t)),this},Ue.prototype._doAdd=function(t){t.parent&&t.parent.remove(t);var e=(t.parent=this).__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},Ue.prototype.remove=function(t){var e=this.__zr,n=this._children,i=u(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},Ue.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},Ue.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];t.call(e,o,i)}return this},Ue.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=t.call(e,i);i.isGroup&&!o&&i.traverse(t,e)}return this},Ue.prototype.addSelfToZr=function(t){Bg.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].addSelfToZr(t)},Ue.prototype.removeSelfFromZr=function(t){Bg.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].removeSelfFromZr(t)},Ue.prototype.getBoundingRect=function(t){for(var e=new kg(0,0,0,0),n=t||this._children,i=[],o=null,r=0;r<n.length;r++){var a,s=n[r];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(i))?(kg.applyTransform(e,a,s),(o=o||e.clone()).union(e)):(o=o||a.clone()).union(a))}return o||e};var Bg,zg=Ue;zg.prototype.type="group";var Fg=!Bd.canvasSupported,Vg={},Hg={};je.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},je.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},je.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},je.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(t){if("string"==typeof t)return Kt(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,o=0;o<i;o++)n+=Kt(e[o].color,1);return(n/=i)<.4}}return!1}(t)},je.prototype.getBackgroundColor=function(){return this._backgroundColor},je.prototype.setDarkMode=function(t){this._darkMode=t},je.prototype.isDarkMode=function(){return this._darkMode},je.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},je.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},je.prototype.flush=function(){this._flush(!1)},je.prototype._flush=function(t){var e,n=(new Date).getTime(),t=(this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),(new Date).getTime());e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:t-n})):0<this._sleepAfterStill&&++this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop()},je.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},je.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},je.prototype.addHover=function(t){},je.prototype.removeHover=function(t){},je.prototype.clearHover=function(){},je.prototype.refreshHover=function(){this._needsRefreshHover=!0},je.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},je.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},je.prototype.clearAnimation=function(){this.animation.clear()},je.prototype.getWidth=function(){return this.painter.getWidth()},je.prototype.getHeight=function(){return this.painter.getHeight()},je.prototype.pathToImage=function(t,e){if(this.painter.pathToImage)return this.painter.pathToImage(t,e)},je.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},je.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},je.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},je.prototype.off=function(t,e){this.handler.off(t,e)},je.prototype.trigger=function(t,e){this.handler.trigger(t,e)},je.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof zg&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},je.prototype.dispose=function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete Hg[t]};var Gg,Wg=je,Ug=Object.freeze({__proto__:null,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in Hg)Hg.hasOwnProperty(t)&&Hg[t].dispose();Hg={}},getInstance:function(t){return Hg[t]},init:Xe,registerPainter:Ye,version:"5.2.0"}),jg=20,Xg=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/,Yg="series\0",qg=["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"],Zg=un(),$g={useDefault:!0,enableAll:!1,enableNone:!1},Kg=".",Jg="___EC__COMPONENT__CONTAINER___",Qg="___EC__EXTENDED_CLASS___",ty=Math.round(10*Math.random()),ey=Nn([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),ny=(En.prototype.getAreaStyle=function(t,e){return ey(this,t,e)},En),iy=new Rf(50),oy=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,ry=function(){},ay=function(t){this.tokens=[],t&&(this.tokens=t)},sy=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]},ly=g(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{}),uy="__zr_style_"+Math.round(10*Math.random()),hy={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},cy={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},py=(hy[uy]=!0,["z","z2","invisible"]),dy=["invisible"],Eg=(e(Xn,Gg=Eg),Xn.prototype._init=function(t){for(var e=m(t),n=0;n<e.length;n++){var i=e[n];"style"===i?this.useStyle(t[i]):Gg.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},Xn.prototype.beforeBrush=function(){},Xn.prototype.afterBrush=function(){},Xn.prototype.innerBeforeBrush=function(){},Xn.prototype.innerAfterBrush=function(){},Xn.prototype.shouldBePainted=function(t,e,n,i){var o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){return fy.copy(t.getBoundingRect()),t.transform&&fy.applyTransform(t.transform),gy.width=e,gy.height=n,!fy.intersect(gy)}(this,t,e)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths)for(var r=0;r<this.__clipPaths.length;++r)if(this.__clipPaths[r].isZeroArea())return!1;if(i&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},Xn.prototype.contain=function(t,e){return this.rectContain(t,e)},Xn.prototype.traverse=function(t,e){t.call(e,this)},Xn.prototype.rectContain=function(t,e){return t=this.transformCoordToLocal(t,e),this.getBoundingRect().contain(t[0],t[1])},Xn.prototype.getPaintRect=function(){var t,e,n,i,o,r=this._paintRect;return this._paintRect&&!this.__dirty||(o=this.transform,t=this.getBoundingRect(),e=(i=this.style).shadowBlur||0,n=i.shadowOffsetX||0,i=i.shadowOffsetY||0,r=this._paintRect||(this._paintRect=new kg(0,0,0,0)),o?kg.applyTransform(r,t,o):r.copy(t),(e||n||i)&&(r.width+=2*e+Math.abs(n),r.height+=2*e+Math.abs(i),r.x=Math.min(r.x,r.x+n-e),r.y=Math.min(r.y,r.y+i-e)),o=this.dirtyRectTolerance,r.isZero())||(r.x=Math.floor(r.x-o),r.y=Math.floor(r.y-o),r.width=Math.ceil(r.width+1+2*o),r.height=Math.ceil(r.height+1+2*o)),r},Xn.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new kg(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},Xn.prototype.getPrevPaintRect=function(){return this._prevPaintRect},Xn.prototype.animateStyle=function(t){return this.animate("style",t)},Xn.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},Xn.prototype.attrKV=function(t,e){"style"!==t?Gg.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},Xn.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:s(this.style,t),this.dirtyStyle(),this},Xn.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},Xn.prototype.dirty=function(){this.dirtyStyle()},Xn.prototype.styleChanged=function(){return!!(2&this.__dirty)},Xn.prototype.styleUpdated=function(){this.__dirty&=-3},Xn.prototype.createStyle=function(t){return U(hy,t)},Xn.prototype.useStyle=function(t){t[uy]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},Xn.prototype.isStyleObject=function(t){return t[uy]},Xn.prototype._innerSaveToNormal=function(t){Gg.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.style&&!e.style&&(e.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,e,py)},Xn.prototype._applyStateObj=function(t,e,n,i,o,r){Gg.prototype._applyStateObj.call(this,t,e,n,i,o,r);var a,s=!(e&&i);if(e&&e.style?o?i?a=e.style:(a=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(a,e.style)):(a=this._mergeStyle(this.createStyle(),(i?this:n).style),this._mergeStyle(a,e.style)):s&&(a=n.style),a)if(o){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=m(l),h=0;h<u.length;h++)(p=u[h])in a&&(a[p]=a[p],this.style[p]=l[p]);for(var c=m(a),h=0;h<c.length;h++){var p=c[h];this.style[p]=this.style[p]}this._transitionState(t,{style:a},r,this.getAnimationStyleProps())}else this.useStyle(a);for(var d=this.__inHover?dy:py,h=0;h<d.length;h++)p=d[h],e&&null!=e[p]?this[p]=e[p]:s&&null!=n[p]&&(this[p]=n[p])},Xn.prototype._mergeStates=function(t){for(var e,n=Gg.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.style&&this._mergeStyle(e=e||{},o.style)}return e&&(n.style=e),n},Xn.prototype._mergeStyle=function(t,e){return s(t,e),t},Xn.prototype.getAnimationStyleProps=function(){return cy},Xn.initDefaultProps=((Eg=Xn.prototype).type="displayable",Eg.invisible=!1,Eg.z=0,Eg.z2=0,Eg.zlevel=0,Eg.culling=!1,Eg.cursor="pointer",Eg.rectHover=!1,Eg.incremental=!1,Eg._rect=null,Eg.dirtyRectTolerance=0,void(Eg.__dirty=2|Tf)),Xn),fy=new kg(0,0,0,0),gy=new kg(0,0,0,0),yy=Math.pow,my=Math.sqrt,vy=1e-8,_y=my(3),xy=Y(),by=Y(),wy=Y(),Sy=Math.min,Cy=Math.max,Ty=Math.sin,My=Math.cos,ky=2*Math.PI,Iy=Y(),Dy=Y(),Ay=Y(),Py=[],Oy=[],Ly={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ry=[],Ny=[],Ey=[],By=[],zy=[],Fy=[],Vy=Math.min,Hy=Math.max,Gy=Math.cos,Wy=Math.sin,Uy=Math.sqrt,jy=Math.abs,Xy=Math.PI,Yy=2*Xy,qy="undefined"!=typeof Float32Array,Zy=[];ui.prototype.increaseVersion=function(){this._version++},ui.prototype.getVersion=function(){return this._version},ui.prototype.setScale=function(t,e,n){0<(n=n||0)&&(this._ux=jy(n/lg/t)||0,this._uy=jy(n/lg/e)||0)},ui.prototype.setDPR=function(t){this.dpr=t},ui.prototype.setContext=function(t){this._ctx=t},ui.prototype.getContext=function(){return this._ctx},ui.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},ui.prototype.reset=function(){this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},ui.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Ly.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},ui.prototype.lineTo=function(t,e){var n=jy(t-this._xi),i=jy(e-this._yi),o=n>this._ux||i>this._uy;return this.addData(Ly.L,t,e),this._ctx&&o&&(this._needsDash?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),o?(this._xi=t,this._yi=e,this._pendingPtDist=0):(o=n*n+i*i)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o),this},ui.prototype.bezierCurveTo=function(t,e,n,i,o,r){return this._drawPendingPt(),this.addData(Ly.C,t,e,n,i,o,r),this._ctx&&(this._needsDash?this._dashedBezierTo(t,e,n,i,o,r):this._ctx.bezierCurveTo(t,e,n,i,o,r)),this._xi=o,this._yi=r,this},ui.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Ly.Q,t,e,n,i),this._ctx&&(this._needsDash?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},ui.prototype.arc=function(t,e,n,i,o,r){return this._drawPendingPt(),Zy[0]=i,Zy[1]=o,li(Zy,r),this.addData(Ly.A,t,e,n,n,i=Zy[0],(o=Zy[1])-i,0,r?0:1),this._ctx&&this._ctx.arc(t,e,n,i,o,r),this._xi=Gy(o)*n+t,this._yi=Wy(o)*n+e,this},ui.prototype.arcTo=function(t,e,n,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,o),this},ui.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Ly.R,t,e,n,i),this},ui.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ly.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},ui.prototype.fill=function(t){t&&t.fill(),this.toStatic()},ui.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},ui.prototype.setLineDash=function(t){if(t instanceof Array){this._lineDash=t;for(var e=this._dashIdx=0,n=0;n<t.length;n++)e+=t[n];this._dashSum=e,this._needsDash=!0}else this._lineDash=null,this._needsDash=!1;return this},ui.prototype.setLineDashOffset=function(t){return this._dashOffset=t,this},ui.prototype.len=function(){return this._len},ui.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!qy||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},ui.prototype.appendPath=function(t){for(var e=(t=t instanceof Array?t:[t]).length,n=0,i=this._len,o=0;o<e;o++)n+=t[o].len();for(qy&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n)),o=0;o<e;o++)for(var r=t[o].data,a=0;a<r.length;a++)this.data[i++]=r[a];this._len=i},ui.prototype.addData=function(t,e,n,i,o,r,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var h=0;h<arguments.length;h++)u[this._len++]=arguments[h]}},ui.prototype._drawPendingPt=function(){0<this._pendingPtDist&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},ui.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},ui.prototype._dashedLineTo=function(t,e){var n,i,o=this._dashSum,r=this._lineDash,a=this._ctx,s=this._dashOffset,l=this._xi,u=this._yi,h=t-l,c=e-u,p=Uy(h*h+c*c),d=l,f=u,g=r.length;for(s<0&&(s=o+s),d-=(s%=o)*(h/=p),f-=s*(c/=p);0<h&&d<=t||h<0&&t<=d||0===h&&(0<c&&f<=e||c<0&&e<=f);)d+=h*(n=r[i=this._dashIdx]),f+=c*n,this._dashIdx=(i+1)%g,0<h&&d<l||h<0&&l<d||0<c&&f<u||c<0&&u<f||a[i%2?"moveTo":"lineTo"]((0<=h?Vy:Hy)(d,t),(0<=c?Vy:Hy)(f,e));this._dashOffset=-Uy((h=d-t)*h+(c=f-e)*c)},ui.prototype._dashedBezierTo=function(t,e,n,i,o,r){var a,s,l,u,h,c=this._ctx,p=this._dashSum,d=this._dashOffset,f=this._lineDash,g=this._xi,y=this._yi,m=0,v=this._dashIdx,_=f.length,x=0;for(d<0&&(d=p+d),d%=p,a=0;a<1;a+=.1)s=Zn(g,t,n,o,a+.1)-Zn(g,t,n,o,a),l=Zn(y,e,i,r,a+.1)-Zn(y,e,i,r,a),m+=Uy(s*s+l*l);for(;v<_&&!(d<(x+=f[v]));v++);for(a=(x-d)/m;a<=1;)u=Zn(g,t,n,o,a),h=Zn(y,e,i,r,a),v%2?c.moveTo(u,h):c.lineTo(u,h),a+=f[v]/m,v=(v+1)%_;v%2!=0&&c.lineTo(o,r),this._dashOffset=-Uy((s=o-u)*s+(l=r-h)*l)},ui.prototype._dashedQuadraticTo=function(t,e,n,i){var o=n,r=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,o,r)},ui.prototype.toStatic=function(){var t;this._saveData&&(this._drawPendingPt(),(t=this.data)instanceof Array)&&(t.length=this._len,qy)&&11<this._len&&(this.data=new Float32Array(t))},ui.prototype.getBoundingRect=function(){Ey[0]=Ey[1]=zy[0]=zy[1]=Number.MAX_VALUE,By[0]=By[1]=Fy[0]=Fy[1]=-Number.MAX_VALUE;for(var t,e=this.data,n=0,i=0,o=0,r=0,a=0;a<this._len;){var s=e[a++],l=1===a;switch(l&&(o=n=e[a],r=i=e[a+1]),s){case Ly.M:n=o=e[a++],i=r=e[a++],zy[0]=o,zy[1]=r,Fy[0]=o,Fy[1]=r;break;case Ly.L:ai(n,i,e[a],e[a+1],zy,Fy),n=e[a++],i=e[a++];break;case Ly.C:C=S=w=b=x=_=v=m=y=g=f=d=p=c=h=u=void 0;var u=n,h=i,c=e[a++],p=e[a++],d=e[a++],f=e[a++],g=e[a],y=e[a+1],m=zy,v=Fy,_=Jn,x=Zn,b=_(u,c,d,g,Py);m[0]=1/0,m[1]=1/0,v[0]=-1/0,v[1]=-1/0;for(var w=0;w<b;w++){var S=x(u,c,d,g,Py[w]);m[0]=Sy(S,m[0]),v[0]=Cy(S,v[0])}for(b=_(h,p,f,y,Oy),w=0;w<b;w++){var C=x(h,p,f,y,Oy[w]);m[1]=Sy(C,m[1]),v[1]=Cy(C,v[1])}m[0]=Sy(u,m[0]),v[0]=Cy(u,v[0]),m[0]=Sy(g,m[0]),v[0]=Cy(g,v[0]),m[1]=Sy(h,m[1]),v[1]=Cy(h,v[1]),m[1]=Sy(y,m[1]),v[1]=Cy(y,v[1]),n=e[a++],i=e[a++];break;case Ly.Q:_=n,F=i,P=e[a++],k=e[a++],A=e[a],T=e[a+1],D=zy,O=Fy,t=I=t=M=void 0,M=ei,t=Cy(Sy((I=ii)(_,P,A),1),0),I=Cy(Sy(I(F,k,T),1),0),P=M(_,P,A,t),t=M(F,k,T,I),D[0]=Sy(_,A,P),D[1]=Sy(F,T,t),O[0]=Cy(_,A,P),O[1]=Cy(F,T,t),n=e[a++],i=e[a++];break;case Ly.A:var T,M=e[a++],k=e[a++],I=e[a++],D=e[a++],A=e[a++],P=e[a++]+A,O=(a+=1,!e[a++]),L=(l&&(o=Gy(A)*I+M,r=Wy(A)*D+k),U=T=W=G=H=V=F=z=B=E=N=R=L=void 0,M),R=k,N=I,E=D,B=A,z=P,F=O,V=zy,H=Fy,G=rt,W=at;if((T=Math.abs(B-z))%ky<1e-4&&1e-4<T)V[0]=L-N,V[1]=R-E,H[0]=L+N,H[1]=R+E;else{Iy[0]=My(B)*N+L,Iy[1]=Ty(B)*E+R,Dy[0]=My(z)*N+L,Dy[1]=Ty(z)*E+R,G(V,Iy,Dy),W(H,Iy,Dy),(B%=ky)<0&&(B+=ky),(z%=ky)<0&&(z+=ky),z<B&&!F?z+=ky:B<z&&F&&(B+=ky),F&&(T=z,z=B,B=T);for(var U=0;U<z;U+=Math.PI/2)B<U&&(Ay[0]=My(U)*N+L,Ay[1]=Ty(U)*E+R,G(V,Ay,V),W(H,Ay,H))}n=Gy(P)*I+M,i=Wy(P)*D+k;break;case Ly.R:ai(o=n=e[a++],r=i=e[a++],o+e[a++],r+e[a++],zy,Fy);break;case Ly.Z:n=o,i=r}rt(Ey,Ey,zy),at(By,By,Fy)}return 0===a&&(Ey[0]=Ey[1]=By[0]=By[1]=0),new kg(Ey[0],Ey[1],By[0]-Ey[0],By[1]-Ey[1])},ui.prototype._calculateLength=function(){for(var t=this.data,e=this._len,n=this._ux,i=this._uy,o=0,r=0,a=0,s=0,l=(this._pathSegLen||(this._pathSegLen=[]),this._pathSegLen),u=0,h=0,c=0;c<e;){var p=t[c++],d=1===c,f=(d&&(a=o=t[c],s=r=t[c+1]),-1);switch(p){case Ly.M:o=a=t[c++],r=s=t[c++];break;case Ly.L:var g=t[c++],y=(_=t[c++])-r;(jy(k=g-o)>n||jy(y)>i||c===e-1)&&(f=Math.sqrt(k*k+y*y),o=g,r=_);break;case Ly.C:var m=t[c++],v=t[c++],g=t[c++],_=t[c++],x=t[c++],b=t[c++],f=function(t,e,n,i,o,r,a,s,l){for(var u=t,h=e,c=0,p=1;p<=10;p++){var d=.1*p,f=Zn(t,n,o,a,d),d=Zn(e,i,r,s,d),g=f-u,y=d-h;c+=Math.sqrt(g*g+y*y),u=f,h=d}return c}(o,r,m,v,g,_,x,b),o=x,r=b;break;case Ly.Q:f=function(t,e,n,i,o,r,a){for(var s=t,l=e,u=0,h=1;h<=10;h++){var c=.1*h,p=ei(t,n,o,c),c=ei(e,i,r,c),d=p-s,f=c-l;u+=Math.sqrt(d*d+f*f),s=p,l=c}return u}(o,r,m=t[c++],v=t[c++],g=t[c++],_=t[c++]),o=g,r=_;break;case Ly.A:var x=t[c++],b=t[c++],w=t[c++],S=t[c++],C=t[c++],T=t[c++],M=T+C;c+=1,t[c++],d&&(a=Gy(C)*w+x,s=Wy(C)*S+b),f=Hy(w,S)*Vy(Yy,Math.abs(T)),o=Gy(M)*w+x,r=Wy(M)*S+b;break;case Ly.R:a=o=t[c++],s=r=t[c++],f=2*t[c++]+2*t[c++];break;case Ly.Z:var k=a-o,y=s-r;f=Math.sqrt(k*k+y*y),o=a,r=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},ui.prototype.rebuildPath=function(t,e){var n,i,o,r,a,s,l,u,h=this.data,c=this._ux,p=this._uy,d=this._len,f=e<1,g=0,y=0,m=0;if(!f||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var v=0;v<d;){var _=h[v++],x=1===v;switch(x&&(n=o=h[v],i=r=h[v+1]),_!==Ly.L&&0<m&&(t.lineTo(l,u),m=0),_){case Ly.M:n=o=h[v++],i=r=h[v++],t.moveTo(o,r);break;case Ly.L:var b=h[v++],w=h[v++],S=jy(b-o),C=jy(w-r);if(c<S||p<C){if(f){if(s<g+(G=a[y++])){var T=(s-g)/G;t.lineTo(o*(1-T)+b*T,r*(1-T)+w*T);break t}g+=G}t.lineTo(b,w),o=b,r=w,m=0}else S=S*S+C*C,m<S&&(l=b,u=w,m=S);break;case Ly.C:var M=h[v++],k=h[v++],I=h[v++],D=h[v++],C=h[v++],S=h[v++];if(f){if(s<g+(G=a[y++])){Qn(o,M,I,C,T=(s-g)/G,Ry),Qn(r,k,D,S,T,Ny),t.bezierCurveTo(Ry[1],Ny[1],Ry[2],Ny[2],Ry[3],Ny[3]);break t}g+=G}t.bezierCurveTo(M,k,I,D,C,S),o=C,r=S;break;case Ly.Q:if(M=h[v++],k=h[v++],I=h[v++],D=h[v++],f){if(s<g+(G=a[y++])){oi(o,M,I,T=(s-g)/G,Ry),oi(r,k,D,T,Ny),t.quadraticCurveTo(Ry[1],Ny[1],Ry[2],Ny[2]);break t}g+=G}t.quadraticCurveTo(M,k,I,D),o=I,r=D;break;case Ly.A:var A=h[v++],P=h[v++],O=h[v++],L=h[v++],R=h[v++],N=h[v++],E=h[v++],B=!h[v++],z=L<O?O:L,F=.001<jy(O-L),V=R+N,H=!1;if(f&&(s<g+(G=a[y++])&&(V=R+N*(s-g)/G,H=!0),g+=G),F&&t.ellipse?t.ellipse(A,P,O,L,E,R,V,B):t.arc(A,P,z,R,V,B),H)break t;x&&(n=Gy(R)*O+A,i=Wy(R)*L+P),o=Gy(V)*O+A,r=Wy(V)*L+P;break;case Ly.R:n=o=h[v],i=r=h[v+1],b=h[v++],w=h[v++];var G,N=h[v++],F=h[v++];if(f){if(s<g+(G=a[y++])){E=s-g,t.moveTo(b,w),t.lineTo(b+Vy(E,N),w),0<(E-=N)&&t.lineTo(b+N,w+Vy(E,F)),0<(E-=F)&&t.lineTo(b+Hy(N-E,0),w+F),0<(E-=N)&&t.lineTo(b,w+Hy(F-E,0));break t}g+=G}t.rect(b,w,N,F);break;case Ly.Z:if(f){if(s<g+(G=a[y++])){T=(s-g)/G,t.lineTo(o*(1-T)+n*T,r*(1-T)+i*T);break t}g+=G}t.closePath(),o=n,r=i}}},ui.prototype.clone=function(){var t=new ui,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},ui.CMD=Ly,ui.initDefaultProps=((Cv=ui.prototype)._saveData=!0,Cv._needsDash=!1,Cv._dashOffset=0,Cv._dashIdx=0,Cv._dashSum=0,Cv._ux=0,Cv._uy=0,Cv._pendingPtDist=0,void(Cv._version=0));var $y,Ky,Jy=ui,Qy=2*Math.PI,tm=2*Math.PI,em=Jy.CMD,nm=2*Math.PI,im=1e-4,om=[-1,-1,-1],rm=[-1,-1],am=l({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},hy),sm={style:l({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},cy.style)},lm=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],um=(e(yi,$y=Eg),yi.prototype.update=function(){var t=this,e=($y.prototype.update.call(this),this.style);if(e.decal){var n,i=this._decalEl=this._decalEl||new yi,o=(i.buildPath===yi.prototype.buildPath&&(i.buildPath=function(e){t.buildPath(e,t.shape)}),i.silent=!0,i.style);for(n in e)o[n]!==e[n]&&(o[n]=e[n]);o.fill=e.fill?e.decal:null,o.decal=null,o.shadowColor=null,e.strokeFirst&&(o.stroke=null);for(var r=0;r<lm.length;++r)i[lm[r]]=this[lm[r]];i.__dirty|=Tf}else this._decalEl&&(this._decalEl=null)},yi.prototype.getDecalElement=function(){return this._decalEl},yi.prototype._init=function(t){var e=m(t),n=(this.shape=this.getDefaultShape(),this.getDefaultStyle());n&&this.useStyle(n);for(var i=0;i<e.length;i++){var o=e[i],r=t[o];"style"===o?this.style?s(this.style,r):this.useStyle(r):"shape"===o?s(this.shape,r):$y.prototype.attrKV.call(this,o,r)}this.style||this.useStyle({})},yi.prototype.getDefaultStyle=function(){return null},yi.prototype.getDefaultShape=function(){return{}},yi.prototype.canBeInsideText=function(){return this.hasFill()},yi.prototype.getInsideTextFill=function(){var t,e=this.style.fill;if("none"!==e){if(b(e))return.5<(t=Kt(e,0))?ug:.2<t?"#eee":hg;if(e)return hg}return ug},yi.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(b(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==Kt(t,0)<.4)return e}},yi.prototype.buildPath=function(t,e,n){},yi.prototype.pathUpdated=function(){this.__dirty&=~Mf},yi.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},yi.prototype.createPathProxy=function(){this.path=new Jy(!1)},yi.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))},yi.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},yi.prototype.getBoundingRect=function(){var t,e,n=this._rect,i=this.style,o=!n;return o&&(t=!1,this.path||(t=!0,this.createPathProxy()),e=this.path,(t||this.__dirty&Mf)&&(e.beginPath(),this.buildPath(e,this.shape,!1),this.pathUpdated()),n=e.getBoundingRect()),this._rect=n,this.hasStroke()&&this.path&&0<this.path.len()?(t=this._rectWithStroke||(this._rectWithStroke=n.clone()),(this.__dirty||o)&&(t.copy(n),e=i.strokeNoScale?this.getLineScale():1,o=i.lineWidth,this.hasFill()||(i=this.strokeContainThreshold,o=Math.max(o,null==i?4:i)),1e-10<e)&&(t.width+=o/e,t.height+=o/e,t.x-=o/e/2,t.y-=o/e/2),t):n},yi.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),o=this.style;if(t=n[0],e=n[1],i.contain(t,e)){if(n=this.path,this.hasStroke()&&(i=o.lineWidth,1e-10<(o=o.strokeNoScale?this.getLineScale():1)&&(this.hasFill()||(i=Math.max(i,this.strokeContainThreshold)),gi(n,i/o,!0,t,e))))return!0;if(this.hasFill())return gi(n,0,!1,t,e)}return!1},yi.prototype.dirtyShape=function(){this.__dirty|=Mf,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},yi.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},yi.prototype.animateShape=function(t){return this.animate("shape",t)},yi.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},yi.prototype.attrKV=function(t,e){"shape"===t?this.setShape(e):$y.prototype.attrKV.call(this,t,e)},yi.prototype.setShape=function(t,e){var n=(n=this.shape)||(this.shape={});return"string"==typeof t?n[t]=e:s(n,t),this.dirtyShape(),this},yi.prototype.shapeChanged=function(){return!!(this.__dirty&Mf)},yi.prototype.createStyle=function(t){return U(am,t)},yi.prototype._innerSaveToNormal=function(t){$y.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.shape&&!e.shape&&(e.shape=s({},this.shape))},yi.prototype._applyStateObj=function(t,e,n,i,o,r){$y.prototype._applyStateObj.call(this,t,e,n,i,o,r);var a,l=!(e&&i);if(e&&e.shape?o?i?a=e.shape:(a=s({},n.shape),s(a,e.shape)):(a=s({},(i?this:n).shape),s(a,e.shape)):l&&(a=n.shape),a)if(o){this.shape=s({},this.shape);for(var u={},h=m(a),c=0;c<h.length;c++){var p=h[c];"object"==typeof a[p]?this.shape[p]=a[p]:u[p]=a[p]}this._transitionState(t,{shape:u},r)}else this.shape=a,this.dirtyShape()},yi.prototype._mergeStates=function(t){for(var e,n=$y.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.shape&&this._mergeStyle(e=e||{},o.shape)}return e&&(n.shape=e),n},yi.prototype.getAnimationStyleProps=function(){return sm},yi.prototype.isZeroArea=function(){return!1},yi.extend=function(t){function n(e){var n=i.call(this,e)||this;return t.init&&t.init.call(n,e),n}e(n,i=yi),n.prototype.getDefaultStyle=function(){return r(t.style)},n.prototype.getDefaultShape=function(){return r(t.shape)};var i,o,a=n;for(o in t)"function"==typeof t[o]&&(a.prototype[o]=t[o]);return a},yi.initDefaultProps=((Cv=yi.prototype).type="path",Cv.strokeContainThreshold=5,Cv.segmentIgnoreThreshold=0,Cv.subPixelOptimize=!1,Cv.autoBatch=!1,void(Cv.__dirty=2|Tf|Mf)),yi),hm=l({strokeFirst:!0,font:Dg,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},am),cm=(e(mi,Ky=Eg),mi.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth},mi.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},mi.prototype.createStyle=function(t){return U(hm,t)},mi.prototype.setBoundingRect=function(t){this._rect=t},mi.prototype.getBoundingRect=function(){var t,e=this.style;return this._rect||(null!=(t=e.text)?t+="":t="",(t=Oe(t,e.font,e.textAlign,e.textBaseline)).x+=e.x||0,t.y+=e.y||0,this.hasStroke()&&(e=e.lineWidth,t.x-=e/2,t.y-=e/2,t.width+=e,t.height+=e),this._rect=t),this._rect},mi.initDefaultProps=void(mi.prototype.dirtyRectTolerance=10),mi);cm.prototype.type="tspan";var pm=l({x:0,y:0},hy),dm={style:l({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},cy.style)};e(vi,fm=Eg),vi.prototype.createStyle=function(t){return U(pm,t)},vi.prototype._getSize=function(t){var e,n=this.style,i=n[t];return null!=i?i:(i=(i=n.image)&&"string"!=typeof i&&i.width&&i.height?n.image:this.__image)?null==(e=n[n="width"===t?"height":"width"])?i[t]:i[t]/i[n]*e:0},vi.prototype.getWidth=function(){return this._getSize("width")},vi.prototype.getHeight=function(){return this._getSize("height")},vi.prototype.getAnimationStyleProps=function(){return dm},vi.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new kg(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect};var fm,gm=vi;gm.prototype.type="image";var ym,mm=Math.round,vm=function(){this.x=0,this.y=0,this.width=0,this.height=0},_m={},xm=(e(wi,ym=um),wi.prototype.getDefaultShape=function(){return new vm},wi.prototype.buildPath=function(t,e){var n,i,o,r,a,s,l,u,h,c,p,d,f,g;this.subPixelOptimize?(n=(a=xi(_m,e,this.style)).x,i=a.y,o=a.width,r=a.height,a.r=e.r,e=a):(n=e.x,i=e.y,o=e.width,r=e.height),e.r?(a=t,p=(e=e).x,d=e.y,f=e.width,g=e.height,e=e.r,f<0&&(p+=f,f=-f),g<0&&(d+=g,g=-g),"number"==typeof e?s=l=u=h=e:e instanceof Array?1===e.length?s=l=u=h=e[0]:2===e.length?(s=u=e[0],l=h=e[1]):3===e.length?(s=e[0],l=h=e[1],u=e[2]):(s=e[0],l=e[1],u=e[2],h=e[3]):s=l=u=h=0,f<s+l&&(s*=f/(c=s+l),l*=f/c),f<u+h&&(u*=f/(c=u+h),h*=f/c),g<l+u&&(l*=g/(c=l+u),u*=g/c),g<s+h&&(s*=g/(c=s+h),h*=g/c),a.moveTo(p+s,d),a.lineTo(p+f-l,d),0!==l&&a.arc(p+f-l,d+l,l,-Math.PI/2,0),a.lineTo(p+f,d+g-u),0!==u&&a.arc(p+f-u,d+g-u,u,0,Math.PI/2),a.lineTo(p+h,d+g),0!==h&&a.arc(p+h,d+g-h,h,Math.PI/2,Math.PI),a.lineTo(p,d+s),0!==s&&a.arc(p+s,d+s,s,Math.PI,1.5*Math.PI)):t.rect(n,i,o,r)},wi.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},wi);xm.prototype.type="rect";var bm,wm={fill:"#000"},Sm={style:l({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},cy.style)},Cm=(e(Si,bm=Eg),Si.prototype.childrenRef=function(){return this._children},Si.prototype.update=function(){bm.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var e=this._children[t];e.zlevel=this.zlevel,e.z=this.z,e.z2=this.z2,e.culling=this.culling,e.cursor=this.cursor,e.invisible=this.invisible}},Si.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):bm.prototype.updateTransform.call(this)},Si.prototype.getLocalTransform=function(t){var e=this.innerTransformable;return e?e.getLocalTransform(t):bm.prototype.getLocalTransform.call(this,t)},Si.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),bm.prototype.getComputedTransform.call(this)},Si.prototype._updateSubTexts=function(){var t;this._childCursor=0,Ci(t=this.style),d(t.rich,Ci),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},Si.prototype.addSelfToZr=function(t){bm.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},Si.prototype.removeSelfFromZr=function(t){bm.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},Si.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new kg(0,0,0,0),e=this._children,n=[],i=null,o=0;o<e.length;o++){var r=e[o],a=r.getBoundingRect(),r=r.getLocalTransform(n);r?(t.copy(a),t.applyTransform(r),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},Si.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||wm},Si.prototype.setTextContent=function(t){throw new Error("Can't attach text on another text")},Si.prototype._mergeStyle=function(t,e){var n,i;return e&&(n=e.rich,i=t.rich||n&&{},s(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i)),t},Si.prototype._mergeRich=function(t,e){for(var n=m(e),i=0;i<n.length;i++){var o=n[i];t[o]=t[o]||{},s(t[o],e[o])}},Si.prototype.getAnimationStyleProps=function(){return Sm},Si.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),(this._children[this._childCursor++]=e).__zr=this.__zr,e.parent=this,e},Si.prototype._updatePlainTexts=function(){for(var t,e,n=this.style,i=n.font||Dg,o=n.padding,r=function(t,e){null!=t&&(t+="");var n,i=e.overflow,o=e.padding,r=e.font,a="truncate"===i,s=Ne(r),l=L(e.lineHeight,s),u="truncate"===e.lineOverflow,h=e.width,i=(n=null!=h&&"break"===i||"breakAll"===i?t?jn(t,e.font,h,"breakAll"===i,0).lines:[]:t?t.split("\n"):[]).length*l,c=L(e.height,i),u=(c<i&&u&&(u=Math.floor(c/l),n=n.slice(0,u)),c),p=h;if(o&&(u+=o[0]+o[2],null!=p)&&(p+=o[1]+o[3]),t&&a&&null!=p)for(var d=Hn(h,r,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),f=0;f<n.length;f++)n[f]=Gn(n[f],d);if(null==h){for(var g=0,f=0;f<n.length;f++)g=Math.max(Ae(n[f],r),g);h=g}return{lines:n,height:c,outerHeight:u,lineHeight:l,calculatedLineHeight:s,contentHeight:i,width:h}}(Ii(n),n),a=Di(n),s=!!n.backgroundColor,l=r.outerHeight,u=r.lines,h=r.lineHeight,c=this._defaultStyle,p=n.x||0,d=n.y||0,f=n.align||c.align||"left",g=n.verticalAlign||c.verticalAlign||"top",y=p,m=Re(d,r.contentHeight,g),v=((a||o)&&(t=r.width,o&&(t+=o[1]+o[3]),e=Le(p,t,f),d=Re(d,l,g),a)&&this._renderBackground(n,n,e,d,t,l),m+=h/2,o&&(y=ki(p,f,o),"top"===g?m+=o[0]:"bottom"===g&&(m-=o[2])),0),a=!1,_=(Mi(("fill"in n?n:(a=!0,c)).fill)),x=(Ti("stroke"in n?n.stroke:s||c.autoStroke&&!a?null:(v=2,c.stroke))),b=0<n.textShadowBlur,w=null!=n.width&&("truncate"===n.overflow||"break"===n.overflow||"breakAll"===n.overflow),S=r.calculatedLineHeight,C=0;C<u.length;C++){var T=this._getOrCreateChild(cm),M=T.createStyle();T.useStyle(M),M.text=u[C],M.x=y,M.y=m,f&&(M.textAlign=f),M.textBaseline="middle",M.opacity=n.opacity,M.strokeFirst=!0,b&&(M.shadowBlur=n.textShadowBlur||0,M.shadowColor=n.textShadowColor||"transparent",M.shadowOffsetX=n.textShadowOffsetX||0,M.shadowOffsetY=n.textShadowOffsetY||0),x&&(M.stroke=x,M.lineWidth=n.lineWidth||v,M.lineDash=n.lineDash,M.lineDashOffset=n.lineDashOffset||0),_&&(M.fill=_),M.font=i,m+=h,w&&T.setBoundingRect(new kg(Le(M.x,n.width,M.textAlign),Re(M.y,S,M.textBaseline),n.width,S))}},Si.prototype._updateRichTexts=function(){for(var t=this.style,e=Wn(Ii(t),t),n=e.width,i=e.outerWidth,o=e.outerHeight,r=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,u=t.align||l.align,l=t.verticalAlign||l.verticalAlign,a=Le(a,i,u),u=Re(s,o,l),h=a,c=u,p=(r&&(h+=r[3],c+=r[0]),h+n),d=(Di(t)&&this._renderBackground(t,t,a,u,i,o),!!t.backgroundColor),f=0;f<e.lines.length;f++){for(var g=e.lines[f],y=g.tokens,m=y.length,v=g.lineHeight,_=g.width,x=0,b=h,w=p,S=m-1,C=void 0;x<m&&(!(C=y[x]).align||"left"===C.align);)this._placeToken(C,t,v,c,b,"left",d),_-=C.width,b+=C.width,x++;for(;0<=S&&"right"===(C=y[S]).align;)this._placeToken(C,t,v,c,w,"right",d),_-=C.width,w-=C.width,S--;for(b+=(n-(b-h)-(p-w)-_)/2;x<=S;)C=y[x],this._placeToken(C,t,v,c,b+C.width/2,"center",d),b+=C.width,x++;c+=v}},Si.prototype._placeToken=function(t,e,n,i,o,r,a){var s=e.rich[t.styleName]||{},l=(s.text=t.text,t.verticalAlign),u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&Di(s)&&this._renderBackground(s,e,"right"===r?o-t.width:"center"===r?o-t.width/2:o,u-t.height/2,t.width,t.height);var l=!!s.backgroundColor,i=t.textPadding,n=(i&&(o=ki(o,r,i),u-=t.height/2-i[0]-t.innerHeight/2),this._getOrCreateChild(cm)),i=n.createStyle(),h=(n.useStyle(i),this._defaultStyle),c=!1,p=0,d=Mi(("fill"in s?s:"fill"in e?e:(c=!0,h)).fill),l=Ti("stroke"in s?s.stroke:"stroke"in e?e.stroke:l||a||h.autoStroke&&!c?null:(p=2,h.stroke)),a=0<s.textShadowBlur||0<e.textShadowBlur,c=(i.text=t.text,i.x=o,i.y=u,a&&(i.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,i.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",i.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,i.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),i.textAlign=r,i.textBaseline="middle",i.font=t.font||Dg,i.opacity=R(s.opacity,e.opacity,1),l&&(i.lineWidth=R(s.lineWidth,e.lineWidth,p),i.lineDash=L(s.lineDash,e.lineDash),i.lineDashOffset=e.lineDashOffset||0,i.stroke=l),d&&(i.fill=d),t.contentWidth),h=t.contentHeight;n.setBoundingRect(new kg(Le(i.x,c,i.textAlign),Re(i.y,h,i.textBaseline),c,h))},Si.prototype._renderBackground=function(t,e,n,i,o,r){var a,s,l,u,h=t.backgroundColor,c=t.borderWidth,p=t.borderColor,d=h&&h.image,f=h&&!d,g=t.borderRadius,y=this,g=((f||t.lineHeight||c&&p)&&((a=this._getOrCreateChild(xm)).useStyle(a.createStyle()),a.style.fill=null,(l=a.shape).x=n,l.y=i,l.width=o,l.height=r,l.r=g,a.dirtyShape()),f?((u=a.style).fill=h||null,u.fillOpacity=L(t.fillOpacity,1)):d&&((s=this._getOrCreateChild(gm)).onload=function(){y.dirtyStyle()},(l=s.style).image=h.image,l.x=n,l.y=i,l.width=o,l.height=r),c&&p&&((u=a.style).lineWidth=c,u.stroke=p,u.strokeOpacity=L(t.strokeOpacity,1),u.lineDash=t.borderDash,u.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill())&&a.hasStroke()&&(u.strokeFirst=!0,u.lineWidth*=2),(a||s).style);g.shadowBlur=t.shadowBlur||0,g.shadowColor=t.shadowColor||"transparent",g.shadowOffsetX=t.shadowOffsetX||0,g.shadowOffsetY=t.shadowOffsetY||0,g.opacity=R(t.opacity,e.opacity,1)},Si.makeFont=function(t){var e,n="";return(t.fontSize||t.fontFamily||t.fontWeight)&&(e="",e="string"!=typeof t.fontSize||-1===t.fontSize.indexOf("px")&&-1===t.fontSize.indexOf("rem")&&-1===t.fontSize.indexOf("em")?isNaN(+t.fontSize)?"12px":t.fontSize+"px":t.fontSize,n=[t.fontStyle,t.fontWeight,e,t.fontFamily||"sans-serif"].join(" ")),n&&z(n)||t.textFont||t.font},Si),Tm={left:!0,right:1,center:1},Mm={top:1,bottom:1,middle:1},km=Sn(),Im=1,Dm={},Am=Sn(),Pm=0,Om=1,Lm=2,Rm=["emphasis","blur","select"],Nm=["normal","emphasis","blur","select"],Em="highlight",Bm="downplay",zm="select",Fm="unselect",Vm="toggleSelect",Hm=new Rf(100),Gm=["emphasis","blur","select"],Wm={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"},Um=Jy.CMD,jm=[[],[],[]],Xm=Math.sqrt,Ym=Math.atan2,qm=Math.sqrt,Zm=Math.sin,$m=Math.cos,Km=Math.PI,Jm=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Qm=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;e(fo,tv=um),fo.prototype.applyTransform=function(t){};var tv,ev,nv=fo,iv=function(){this.cx=0,this.cy=0,this.r=0},ov=(e(vo,ev=um),vo.prototype.getDefaultShape=function(){return new iv},vo.prototype.buildPath=function(t,e,n){n&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},vo);ov.prototype.type="circle";var rv,av=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},sv=(e(_o,rv=um),_o.prototype.getDefaultShape=function(){return new av},_o.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=e.rx,e=e.ry,r=.5522848*o,a=.5522848*e;t.moveTo(n-o,i),t.bezierCurveTo(n-o,i-a,n-r,i-e,n,i-e),t.bezierCurveTo(n+r,i-e,n+o,i-a,n+o,i),t.bezierCurveTo(n+o,i+a,n+r,i+e,n,i+e),t.bezierCurveTo(n-r,i+e,n-o,i+a,n-o,i),t.closePath()},_o);sv.prototype.type="ellipse";var lv,uv=Math.PI,hv=2*uv,cv=Math.sin,pv=Math.cos,dv=Math.acos,fv=Math.atan2,gv=Math.abs,yv=Math.sqrt,mv=Math.max,vv=Math.min,_v=1e-4,xv=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0,this.innerCornerRadius=0},bv=(e(wo,lv=um),wo.prototype.getDefaultShape=function(){return new xv},wo.prototype.buildPath=function(t,e){bo(t,e)},wo.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},wo);bv.prototype.type="sector";var wv,Sv=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Cv=(e(So,wv=um),So.prototype.getDefaultShape=function(){return new Sv},So.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,o,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,o,!0)},So);Cv.prototype.type="ring";var Tv,Mv=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},kv=(e(Mo,Tv=um),Mo.prototype.getDefaultShape=function(){return new Mv},Mo.prototype.buildPath=function(t,e){To(t,e,!0)},Mo);kv.prototype.type="polygon";var Iv,Dv=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Av=(e(ko,Iv=um),ko.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},ko.prototype.getDefaultShape=function(){return new Dv},ko.prototype.buildPath=function(t,e){To(t,e,!1)},ko);Av.prototype.type="polyline";var Pv,Ov={},Lv=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Rv=(e(Io,Pv=um),Io.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Io.prototype.getDefaultShape=function(){return new Lv},Io.prototype.buildPath=function(t,e){r=(this.subPixelOptimize?(n=(r=_i(Ov,e,this.style)).x1,i=r.y1,o=r.x2,r):(n=e.x1,i=e.y1,o=e.x2,e)).y2;var n,i,o,r,e=e.percent;0!==e&&(t.moveTo(n,i),e<1&&(o=n*(1-e)+o*e,r=i*(1-e)+r*e),t.lineTo(o,r))},Io.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},Io);Rv.prototype.type="line";var Nv=[],Ev=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};e(Ao,Bv=um),Ao.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Ao.prototype.getDefaultShape=function(){return new Ev},Ao.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,o=e.x2,r=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,e=e.percent;0!==e&&(t.moveTo(n,i),null==l||null==u?(e<1&&(oi(n,a,o,e,Nv),a=Nv[1],o=Nv[2],oi(i,s,r,e,Nv),s=Nv[1],r=Nv[2]),t.quadraticCurveTo(a,s,o,r)):(e<1&&(Qn(n,a,l,o,e,Nv),a=Nv[1],l=Nv[2],o=Nv[3],Qn(i,s,u,r,e,Nv),s=Nv[1],u=Nv[2],r=Nv[3]),t.bezierCurveTo(a,s,l,u,o,r)))},Ao.prototype.pointAt=function(t){return Do(this.shape,t,!1)},Ao.prototype.tangentAt=function(t){return t=Do(this.shape,t,!0),tt(t,t)};var Bv,zv=Ao;zv.prototype.type="bezier-curve";var Fv,Vv=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Hv=(e(Po,Fv=um),Po.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Po.prototype.getDefaultShape=function(){return new Vv},Po.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=Math.max(e.r,0),r=e.startAngle,a=e.endAngle,e=e.clockwise,s=Math.cos(r),l=Math.sin(r);t.moveTo(s*o+n,l*o+i),t.arc(n,i,o,r,a,!e)},Po);Hv.prototype.type="arc",e(Oo,Gv=um),Oo.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},Oo.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},Oo.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},Oo.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},Oo.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),um.prototype.getBoundingRect.call(this)};var Gv,Wv=Oo;Lo.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})};var Uv=Lo;e(Ro,jv=Uv);var jv,Xv=Ro;e(No,Yv=Uv);var Yv,qv,Zv=No,$v=[0,0],Kv=[0,0],Jv=new vg,Qv=new vg,t_=(Eo.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,o=t.x,r=t.y,a=o+t.width,t=r+t.height;if(n[0].set(o,r),n[1].set(a,r),n[2].set(a,t),n[3].set(o,t),e)for(var s=0;s<4;s++)n[s].transform(e);for(vg.sub(i[0],n[1],n[0]),vg.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize(),s=0;s<2;s++)this._origin[s]=i[s].dot(n[0])},Eo.prototype.intersect=function(t,e){var n=!0,i=!e;return Jv.set(1/0,1/0),Qv.set(0,0),!this._intersectCheckOneSide(this,t,Jv,Qv,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Jv,Qv,i,-1)&&(n=!1,i)||i||vg.copy(e,n?Jv:Qv),n},Eo.prototype._intersectCheckOneSide=function(t,e,n,i,o,r){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,$v),this._getProjMinMaxOnAxis(s,e._corners,Kv),$v[1]<Kv[0]||Kv[1]<$v[0]){if(a=!1,o)return a;var u=Math.abs(Kv[0]-$v[1]),h=Math.abs($v[0]-Kv[1]);Math.min(u,h)>i.len()&&(u<h?vg.scale(i,l,-u*r):vg.scale(i,l,h*r))}else n&&(u=Math.abs(Kv[0]-$v[1]),h=Math.abs($v[0]-Kv[1]),Math.min(u,h)<n.len())&&(u<h?vg.scale(n,l,u*r):vg.scale(n,l,-h*r))}return a},Eo.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],o=this._origin,r=e[0].dot(i)+o[t],a=r,s=r,l=1;l<e.length;l++)var u=e[l].dot(i)+o[t],a=Math.min(u,a),s=Math.max(u,s);n[0]=a,n[1]=s},Eo),e_=[],n_=(e(Bo,qv=Eg),Bo.prototype.traverse=function(t,e){t.call(e,this)},Bo.prototype.useStyle=function(){this.style={}},Bo.prototype.getCursor=function(){return this._cursor},Bo.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},Bo.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},Bo.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},Bo.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},Bo.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},Bo.prototype.getDisplayables=function(){return this._displayables},Bo.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},Bo.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},Bo.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++)(e=this._displayables[t]).parent=this,e.update(),e.parent=null;for(var e,t=0;t<this._temporaryDisplayables.length;t++)(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null},Bo.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new kg(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(e_)),t.union(i)}this._rect=t}return this._rect},Bo.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(t,e))return!0;return!1},Bo),i_=Sn(),o_=Math.max,r_=Math.min,a_={},s_=function(t,n){function i(t){return t=o.call(this,t)||this,t.applyTransform=r.applyTransform,t.buildPath=r.buildPath,t}var o,r=yo(t,n);return e(i,o=nv),i};Uv=bi,Xo("circle",ov),Xo("ellipse",sv),Xo("sector",bv),Xo("ring",Cv),Xo("polygon",kv),Xo("polyline",Av),Xo("rect",xm),Xo("line",Rv),Xo("bezierCurve",zv),Xo("arc",Hv);var l_=Object.freeze({__proto__:null,Arc:Hv,BezierCurve:zv,BoundingRect:kg,Circle:ov,CompoundPath:Wv,Ellipse:sv,Group:zg,Image:gm,IncrementalDisplayable:n_,Line:Rv,LinearGradient:Xv,OrientedBoundingRect:t_,Path:um,Point:vg,Polygon:kv,Polyline:Av,RadialGradient:Zv,Rect:xm,Ring:Cv,Sector:bv,Text:Cm,applyTransform:tr,clipPointsByRect:ir,clipRectByRect:or,createIcon:rr,extendPath:jo,extendShape:Uo,getShapeClass:Yo,getTransform:Qo,groupTransition:nr,initProps:Vo,isElementRemoved:Ho,lineLineIntersect:ar,linePolygonIntersect:function(t,e,n,i,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(ar(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:Zo,makePath:qo,mergePath:Ko,registerShape:Xo,removeElement:Go,removeElementWithFadeOut:function(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||Wo(t,e,n,i)}):Wo(t,e,n,i)},resizePath:Jo,setTooltipConfig:sr,subPixelOptimize:Uv,subPixelOptimizeLine:function(t){return _i(t.shape,t.shape,t.style),t},subPixelOptimizeRect:function(t){return xi(t.shape,t.shape,t.style),t},transformDirection:function(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),o=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),i=tr(["left"===t?-i:"right"===t?i:0,"top"===t?-o:"bottom"===t?o:0],e,n);return Math.abs(i[0])>Math.abs(i[1])?0<i[0]?"right":"left":0<i[1]?"bottom":"top"},updateProps:Fo}),u_={},h_=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],c_=["align","lineHeight","width","height","tag","verticalAlign"],p_=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],d_=Sn(),f_=["textStyle","color"],g_=new Cm,Eg=(yr.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(f_):null)},yr.prototype.getFont=function(){return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},e=(e=this.ecModel)&&e.getModel("textStyle"),z([t.fontStyle||e&&e.getShallow("fontStyle")||"",t.fontWeight||e&&e.getShallow("fontWeight")||"",(t.fontSize||e&&e.getShallow("fontSize")||12)+"px",t.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "));var t,e},yr.prototype.getTextRect=function(t){return g_.useStyle({text:t,fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily"),verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline"),padding:this.getShallow("padding"),lineHeight:this.getShallow("lineHeight"),rich:this.getShallow("rich")}),g_.update(),g_.getBoundingRect()},yr),y_=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],m_=Nn(y_),Uv=(mr.prototype.getLineStyle=function(t){return m_(this,t)},mr),v_=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],__=Nn(v_),x_=(vr.prototype.getItemStyle=function(t,e){return __(this,t,e)},vr);_r.prototype.init=function(t,e,n){},_r.prototype.mergeOption=function(t,e){a(this.option,t,!0)},_r.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},_r.prototype.getShallow=function(t,e){var n=this.option,n=null==n?n:n[t];return null!=n||e||(e=this.parentModel)&&(n=e.getShallow(t)),n},_r.prototype.getModel=function(t,e){var n=null!=t,t=n?this.parsePath(t):null;return new _r(n?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},_r.prototype.isEmpty=function(){return null==this.option},_r.prototype.restoreData=function(){},_r.prototype.clone=function(){return new this.constructor(r(this.option))},_r.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},_r.prototype.resolveParentPath=function(t){return t},_r.prototype.isAnimationEnabled=function(){if(!Bd.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},_r.prototype._doGet=function(t,e){var n=this.option;if(t){for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel))}return n};var b_,w_=_r;An(w_),N_=w_,b_=["__\0is_clz",ty++].join("_"),N_.prototype[b_]=!0,N_.isInstance=function(t){return!(!t||!t[b_])},c(w_,Uv),c(w_,x_),c(w_,ny),c(w_,Eg);var S_=Math.round(10*Math.random()),C_="ZH",T_="EN",M_=T_,k_={},I_={},D_=Bd.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(C_)?C_:M_;br(T_,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),br(C_,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},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:""}}}});var A_=1e3,P_=60*A_,O_=60*P_,L_=24*O_,ty=365*L_,R_={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},N_="{yyyy}-{MM}-{dd}",E_={year:"{yyyy}",month:"{yyyy}-{MM}",day:N_,hour:N_+" "+R_.hour,minute:N_+" "+R_.minute,second:N_+" "+R_.second,millisecond:R_.none},B_=["year","month","day","hour","minute","second","millisecond"],z_=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],F_=E,V_=/([&<>"'])/g,H_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},G_=["a","b","c","d","e","f","g"],W_=d,U_=["left","right","top","bottom","width","height"],j_=[["width","left","right"],["height","top","bottom"]],X_=Zr;v(Zr,"vertical"),v(Zr,"horizontal");var Y_,q_,Z_,$_,K_=Sn(),J_=(e(ta,Y_=w_),ta.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},ta.prototype.mergeDefaultAndTheme=function(t,e){var n=Kr(this),i=n?Qr(t):{};a(t,e.getTheme().get(this.mainType)),a(t,this.getDefaultOption()),n&&Jr(t,i,n)},ta.prototype.mergeOption=function(t,e){a(this.option,t,!0);var n=Kr(this);n&&Jr(this.option,t,n)},ta.prototype.optionUpdated=function(t,e){},ta.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[Qg])return t.defaultOption;var e=K_(this);if(!e.defaultOption){for(var n=[],i=t;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var r={},s=n.length-1;0<=s;s--)r=a(r,n[s],!0);e.defaultOption=r}return e.defaultOption},ta.prototype.getReferringComponents=function(t,e){var n=t+"Id";return Mn(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(n,!0)},e)},ta.prototype.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")}},ta.protoInitialize=((Uv=ta.prototype).type="component",Uv.id="",Uv.name="",Uv.mainType="",Uv.subType="",void(Uv.componentIndex=0)),ta);Pn(J_,w_),Rn(J_),Z_={},(q_=J_).registerSubTypeDefaulter=function(t,e){t=Dn(t),Z_[t.main]=e},q_.determineSubType=function(t,e){var n,i=e.type;return i||(n=Dn(t).main,q_.hasSubTypes(t)&&Z_[n]&&(i=Z_[n](e))),i},$_=function(t){var e=[];return d(J_.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=f(e,function(t){return Dn(t).main}),"dataset"!==t&&u(e,"dataset")<=0&&e.unshift("dataset"),e},J_.topologicalTravel=function(t,e,n,i){function o(t){0===--h[t].entryCount&&c.push(t)}function r(t){p[t]=!0,o(t)}if(t.length){s={},l=[],d(a=e,function(t){var e,n,i=ea(s,t),o=i.originalDeps=$_(t),o=(e=a,n=[],d(o,function(t){0<=u(e,t)&&n.push(t)}),n);i.entryCount=o.length,0===i.entryCount&&l.push(t),d(o,function(e){u(i.predecessor,e)<0&&i.predecessor.push(e);var n=ea(s,e);u(n.successor,e)<0&&n.successor.push(t)})});var a,s,l,e={graph:s,noEntryList:l},h=e.graph,c=e.noEntryList,p={};for(d(t,function(t){p[t]=!0});c.length;){var f=c.pop(),g=h[f],y=!!p[f];y&&(n.call(i,f,g.originalDeps.slice()),delete p[f]),d(g.successor,y?r:o)}d(p,function(){throw new Error("")})}};var Q_,tx,ex,nx,x_="",ny=("undefined"!=typeof navigator&&(x_=navigator.platform||""),"rgba(0, 0, 0, 0.2)"),ix={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ny,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ny,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ny,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ny,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ny,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ny,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:x_.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},ox=G(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),rx="original",ax="arrayRows",sx="objectRows",lx="keyedColumns",ux="typedArray",hx="unknown",cx="column",px="row",dx={Must:1,Might:2,Not:3},fx=Sn(),gx=G(),yx=Sn(),mx=(Sn(),ra.prototype.getColorFromPalette=function(t,e,n){var i=pn(this.get("color",!0)),o=this.get("colorLayer",!0),r=this,a=yx;return a=a(e=e||r),r=a.paletteIdx||0,(e=a.paletteNameMap=a.paletteNameMap||{}).hasOwnProperty(t)?e[t]:(o=(o=null!=n&&o?aa(o,n):i)||i)&&o.length?(n=o[r],t&&(e[t]=n),a.paletteIdx=(r+1)%o.length,n):void 0},ra.prototype.clearColorPalette=function(){var t,e;(e=yx)(t=this).paletteIdx=0,e(t).paletteNameMap={}},ra),vx="\0_ec_inner",_x=(e(sa,nx=w_),sa.prototype.init=function(t,e,n,i,o,r){i=i||{},this.option=null,this._theme=new w_(i),this._locale=new w_(o),this._optionManager=r},sa.prototype.setOption=function(t,e,n){e=ha(e),this._optionManager.setOption(t,n,e),this._resetOption(null,e)},sa.prototype.resetOption=function(t,e){return this._resetOption(t,ha(e))},sa.prototype._resetOption=function(t,e){var n,i=!1,o=this._optionManager;return t&&"recreate"!==t||(n=o.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(n,e)):ex(this,n),i=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(n=o.getTimelineOption(this))&&(i=!0,this._mergeOption(n,e)),t&&"recreate"!==t&&"media"!==t||(n=o.getMediaOption(this)).length&&d(n,function(t){i=!0,this._mergeOption(t,e)},this),i},sa.prototype.mergeOption=function(t){this._mergeOption(t,null)},sa.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,o=this._componentsCount,l=[],u=G(),h=e&&e.replaceMergeMainTypeMap;fx(this).datasetMap=G(),d(t,function(t,e){null!=t&&(J_.hasClass(e)?e&&(l.push(e),u.set(e,!0)):n[e]=null==n[e]?r(t):a(n[e],t,!0))}),h&&h.each(function(t,e){J_.hasClass(e)&&!u.get(e)&&(l.push(e),u.set(e,!0))}),J_.topologicalTravel(l,J_.getAllClassMainTypes(),function(e){var r=function(t,e,n){return(e=(e=gx.get(e))&&e(t))?n.concat(e):n}(this,e,pn(t[e])),a=i.get(e),l=a?h&&h.get(e)?"replaceMerge":"normalMerge":"replaceAll",a=gn(a,r,l),u=(bn(a,e,J_),n[e]=null,i.set(e,null),o.set(e,0),[]),c=[],p=0;d(a,function(t,n){var i=t.existing,o=t.newOption;if(o){var r=J_.getClass(e,t.keyInfo.subType,!("series"===e));if(!r)return;i&&i.constructor===r?(i.name=t.keyInfo.name,i.mergeOption(o,this),i.optionUpdated(o,!1)):(n=s({componentIndex:n},t.keyInfo),s(i=new r(o,this,this,n),n),t.brandNew&&(i.__requireNewView=!0),i.init(o,this,this),i.optionUpdated(null,!0))}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(u.push(i.option),c.push(i),p++):(u.push(void 0),c.push(void 0))},this),n[e]=u,i.set(e,c),o.set(e,p),"series"===e&&Q_(this)},this),this._seriesIndices||Q_(this)},sa.prototype.getOption=function(){var t=r(this.option);return d(t,function(e,n){if(J_.hasClass(n)){for(var i=pn(e),o=i.length,r=!1,a=o-1;0<=a;a--)i[a]&&!xn(i[a])?r=!0:(i[a]=null,r||o--);i.length=o,t[n]=i}}),delete t[vx],t},sa.prototype.getTheme=function(){return this._theme},sa.prototype.getLocaleModel=function(){return this._locale},sa.prototype.setUpdatePayload=function(t){this._payload=t},sa.prototype.getUpdatePayload=function(){return this._payload},sa.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){if(t=n[e||0])return t;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},sa.prototype.queryComponents=function(t){var e,n,i,o,r,a=t.mainType;return a&&(e=t.index,n=t.id,i=t.name,o=this._componentsMap.get(a))&&o.length?(null!=e?(r=[],d(pn(e),function(t){o[t]&&r.push(o[t])})):r=null!=n?la("id",n,o):null!=i?la("name",i,o):y(o,function(t){return!!t}),ua(r,t)):[]},sa.prototype.findComponents=function(t){var e,n=t.query,i=t.mainType,o=(o=i+"Index",r=i+"Id",e=i+"Name",!(n=n)||null==n[o]&&null==n[r]&&null==n[e]?null:{mainType:i,index:n[o],id:n[r],name:n[e]}),r=o?this.queryComponents(o):y(this._componentsMap.get(i),function(t){return!!t});return n=ua(r,t),t.filter?y(n,t.filter):n},sa.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(x(t)){var o=e,r=t;i.each(function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&r.call(o,e,i,i.componentIndex)}})}else for(var a=b(t)?i.get(t):C(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},sa.prototype.getSeriesByName=function(t){var e=vn(t,null);return y(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},sa.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},sa.prototype.getSeriesByType=function(t){return y(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},sa.prototype.getSeries=function(){return y(this._componentsMap.get("series"),function(t){return!!t})},sa.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},sa.prototype.eachSeries=function(t,e){tx(this),d(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},sa.prototype.eachRawSeries=function(t,e){d(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},sa.prototype.eachSeriesByType=function(t,e,n){tx(this),d(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&e.call(n,o,i)},this)},sa.prototype.eachRawSeriesByType=function(t,e,n){return d(this.getSeriesByType(t),e,n)},sa.prototype.isSeriesFiltered=function(t){return tx(this),null==this._seriesIndicesMap.get(t.componentIndex)},sa.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},sa.prototype.filterSeries=function(t,e){tx(this);var n=[];d(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];t.call(e,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=G(n)},sa.prototype.restoreData=function(t){Q_(this);var e=this._componentsMap,n=[];e.each(function(t,e){J_.hasClass(e)&&n.push(e)}),J_.topologicalTravel(n,J_.getAllClassMainTypes(),function(n){d(e.get(n),function(e){!e||"series"===n&&function(t,e){var n,i;if(e)return n=e.seriesIndex,i=e.seriesId,e=e.seriesName,null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=e&&t.name!==e}(e,t)||e.restoreData()})})},sa.internalField=(Q_=function(t){var e=t._seriesIndices=[];d(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=G(e)},tx=function(t){},void(ex=function(t,e){t.option={},t.option[vx]=1,t._componentsMap=G({series:[]}),t._componentsCount=G();var n,i,o=e.aria;C(o)&&null==o.enabled&&(o.enabled=!0),n=e,o=t._theme.option,i=n.color&&!n.colorLayer,d(o,function(t,e){"colorLayer"===e&&i||J_.hasClass(e)||("object"==typeof t?n[e]=n[e]?a(n[e],t,!1):r(t):null==n[e]&&(n[e]=t))}),a(e,ix,!1),t._mergeOption(e,null)})),sa);c(_x,mx);var xx,bx,Sx=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Cx={},Tx=(pa.prototype.create=function(t,e){var n=[];d(Cx,function(i,o){i=i.create(t,e),n=n.concat(i||[])}),this._coordinateSystems=n},pa.prototype.update=function(t,e){d(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},pa.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},pa.register=function(t,e){Cx[t]=e},pa.get=function(t){return Cx[t]},pa),Mx=/^(min|max)?(.+)$/,kx=(da.prototype.setOption=function(t,e,n){t&&(d(pn(t.series),function(t){t&&t.data&&M(t.data)&&F(t.data)}),d(pn(t.dataset),function(t){t&&t.source&&M(t.source)&&F(t.source)})),t=r(t);var i=this._optionBackup,t=function(t,e,n){function i(t){d(e,function(e){e(t,n)})}var o,r,a=[],s=t.baseOption,l=t.timeline,u=t.options,h=t.media,c=!!t.media,p=!!(u||l||s&&s.timeline);return s?(r=s).timeline||(r.timeline=l):((p||c)&&(t.options=t.media=null),r=t),c&&_(h)&&d(h,function(t){t&&t.option&&(t.query?a.push(t):o=o||t)}),i(r),d(u,i),d(a,function(t){return i(t.option)}),{baseOption:r,timelineOptions:u||[],mediaDefault:o,mediaList:a}}(t,e,!i);this._newBaseOption=t.baseOption,i?(t.timelineOptions.length&&(i.timelineOptions=t.timelineOptions),t.mediaList.length&&(i.mediaList=t.mediaList),t.mediaDefault&&(i.mediaDefault=t.mediaDefault)):this._optionBackup=t},da.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],r(t?e.baseOption:this._newBaseOption)},da.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;return e=n.length&&(t=t.getComponent("timeline"))?r(n[t.getCurrentIndex()]):e},da.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,a=[],s=[];if(i.length||o){for(var l,u,h=0,c=i.length;h<c;h++)!function(t,e,n){var i={width:e,height:n,aspectratio:e/n},o=!0;return d(t,function(t,e){var n,e=e.match(Mx);e&&e[1]&&e[2]&&(n=e[1],e=e[2].toLowerCase(),e=i[e],t=t,("min"===(n=n)?t<=e:"max"===n?e<=t:e===t)||(o=!1))}),o}(i[h].query,e,n)||a.push(h);(a=!a.length&&o?[-1]:a).length&&(l=a,u=this._currentMediaIndices,l.join(",")!==u.join(","))&&(s=f(a,function(t){return r((-1===t?o:i[t]).option)})),this._currentMediaIndices=a}return s},da),Ix=d,Dx=C,Ax=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"],Px=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Ox=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Lx=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]],Rx=function(t){this.data=t.data||(t.sourceFormat===lx?{}:[]),this.sourceFormat=t.sourceFormat||hx,this.seriesLayoutBy=t.seriesLayoutBy||cx,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&oa(this,n)===dx.Must&&(i.type="ordinal")}};Na.prototype.getSource=function(){return this._source},Na.prototype.count=function(){return 0},Na.prototype.getItem=function(t,e){},Na.prototype.appendData=function(t){},Na.prototype.clean=function(){},Na.protoInitialize=((Eg=Na.prototype).pure=!1,void(Eg.persistent=!0)),Na.internalField=(bx=function(t,e,n){var i,o=n.sourceFormat,r=n.seriesLayoutBy,a=n.startIndex,n=n.dimensionsDefine;s(t,xx[Wa(o,r)]),o===ux?(t.getItem=Nx,t.count=Bx,t.fillStorage=Ex):(i=za(o,r),t.getItem=Kd(i,null,e,a,n),i=Va(o,r),t.count=Kd(i,null,e,a,n))},Nx=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,o=i*t,r=0;r<i;r++)e[r]=n[o+r];return e},Ex=function(t,e,n,i){for(var o=this._data,r=this._dimSize,a=0;a<r;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=n[a],p=0;p<h;p++){var d=o[p*r+a];(c[t+p]=d)<l&&(l=d),u<d&&(u=d)}s[0]=l,s[1]=u}},Bx=function(){return this._data?this._data.length/this._dimSize:0},(Eg={})[ax+"_"+cx]={pure:!0,appendData:Ea},Eg[ax+"_"+px]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},Eg[sx]={pure:!0,appendData:Ea},Eg[lx]={pure:!0,appendData:function(t){var e=this._data;d(t,function(t,n){for(var i=e[n]||(e[n]=[]),o=0;o<(t||[]).length;o++)i.push(t[o])})}},Eg[rx]={appendData:Ea},Eg[ux]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},void(xx=Eg));var Nx,Ex,Bx,zx=Na;(N_={})[ax+"_"+cx]=function(t,e,n,i){return t[i+e]},N_[ax+"_"+px]=function(t,e,n,i,o){i+=e;for(var r=o||[],a=t,s=0;s<a.length;s++){var l=a[s];r[s]=l?l[i]:null}return r},N_[sx]=Ba,N_[lx]=function(t,e,n,i,o){for(var r=o||[],a=0;a<n.length;a++){var s=t[n[a].name];r[a]=s?s[i]:null}return r},N_[rx]=Ba;var Fx=N_;(Uv={})[ax+"_"+cx]=function(t,e,n){return Math.max(0,t.length-e)},Uv[ax+"_"+px]=function(t,e,n){return t=t[0],t?Math.max(0,t.length-e):0},Uv[sx]=Fa,Uv[lx]=function(t,e,n){return t=t[n[0].name],t?t.length:0},Uv[rx]=Fa;var Vx=Uv;(ny={})[ax]=Ha,ny[sx]=function(t,e,n){return t[n]},ny[lx]=Ha,ny[rx]=function(t,e,n){return t=fn(t),t instanceof Array?t[e]:t},ny[ux]=Ha;var Hx=ny,Gx=/\{@(.+?)\}/g,x_=(ja.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),o=n.getRawIndex(t),r=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),t=s&&s[n.getItemVisual(t,"drawType")||"fill"],s=s&&s.stroke,l=this.mainType,u="series"===l,n=n.userOutput&&n.userOutput.get();return{componentType:l,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:u?this.subType:null,seriesIndex:this.seriesIndex,seriesId:u?this.id:null,seriesName:u?this.name:null,name:r,dataIndex:o,data:a,dataType:e,value:i,color:t,borderColor:s,dimensionNames:n?n.fullDimensions:null,encode:n?n.encode:null,$vars:["seriesName","name","value"]}},ja.prototype.getFormattedLabel=function(t,e,n,i,o,r){e=e||"normal";var a=this.getData(n),n=this.getDataParams(t,n);return r&&(n.value=r.interpolatedValue),null!=i&&_(n.value)&&(n.value=n.value[i]),"function"==typeof(o=o||a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]))?(n.status=e,n.dimensionIndex=i,o(n)):"string"==typeof o?jr(o,n).replace(Gx,function(e,n){var i=n.length,i=("["===n.charAt(0)&&"]"===n.charAt(i-1)&&(n=+n.slice(1,i-1)),Ua(a,t,n));return null!=(i=r&&_(r.interpolatedValue)&&0<=(n=a.getDimensionIndex(n))?r.interpolatedValue[n]:i)?i+"":""}):void 0},ja.prototype.getRawValue=function(t,e){return Ua(this.getData(e),t)},ja.prototype.formatTooltip=function(t,e,n){},ja);qa.prototype.perform=function(t){function e(t){return t=1<=t?t:1}var n,i,o=this._upstream,r=t&&t.skip,a=(this._dirty&&o&&((a=this.context).data=a.outputData=o.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(n=this._plan(this.context)),e(this._modBy)),s=this._modDataCount||0,l=e(t&&t.modBy),u=t&&t.modDataCount||0;if(a===l&&s===u||(n="reset"),!this._dirty&&"reset"!==n||(this._dirty=!1,i=this._doReset(r)),this._modBy=l,this._modDataCount=u,a=t&&t.step,this._dueEnd=o?o._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,c=Math.min(null!=a?this._dueIndex+a:1/0,this._dueEnd);if(!r&&(i||h<c)){var p=this._progress;if(_(p))for(var d=0;d<p.length;d++)this._doProgress(p[d],h,c,l,u);else this._doProgress(p,h,c,l,u)}this._dueIndex=c,s=null!=this._settedOutputEnd?this._settedOutputEnd:c,this._outputDueEnd=s}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},qa.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},qa.prototype._doProgress=function(t,e,n,i,o){$x.reset(e,n,i,o),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:$x.next},this.context)},qa.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),_(e))&&!e.length&&(e=null),this._progress=e,this._modBy=this._modDataCount=null;var e,n,t=this._downstream;return t&&t.dirty(),n},qa.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},qa.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},qa.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},qa.prototype.getUpstream=function(){return this._upstream},qa.prototype.getDownstream=function(){return this._downstream},qa.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var Wx,Ux,jx,Xx,Yx,qx,Zx=qa,$x=qx={reset:function(t,e,n,i){Ux=t,Wx=e,jx=n,Xx=i,Yx=Math.ceil(Xx/jx),qx.next=1<jx&&0<Xx?$a:Za}},Kx=G({number:function(t){return parseFloat(t)},time:function(t){return+nn(t)},trim:function(t){return"string"==typeof t?z(t):t}}),Jx={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return e<t},gte:function(t,e){return e<=t}},Qx=(Qa.prototype.evaluate=function(t){return"number"==typeof t?this._opFn(t,this._rvalFloat):this._opFn(sn(t),this._rvalFloat)},Qa);ts.prototype.evaluate=function(t,e){var n=typeof t,i=typeof e,o="number"==n?t:sn(t),r="number"==i?e:sn(e),a=isNaN(o),s=isNaN(r);return a&&(o=this._incomparable),s&&(r=this._incomparable),a&&s&&(a="string"==i,(s="string"==n)&&(o=a?t:0),a)&&(r=s?e:0),o<r?this._resultLT:r<o?-this._resultLT:0};var tb=ts;es.prototype.evaluate=function(t){var e,n=t===this._rval;return n||(e=typeof t)===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(n=sn(t)===this._rvalFloat),this._isEQ?n:!n};var eb=es;ns.prototype.getRawData=function(){throw new Error("not supported")},ns.prototype.getRawDataItem=function(t){throw new Error("not supported")},ns.prototype.cloneRawData=function(){},ns.prototype.getDimensionInfo=function(t){},ns.prototype.cloneAllDimensionInfo=function(){},ns.prototype.count=function(){},ns.prototype.retrieveValue=function(t,e){},ns.prototype.retrieveValueFromItem=function(t,e){},ns.prototype.convertValue=Ka;var nb,ib=ns,ob=G(),Eg="undefined",rb=typeof Uint32Array==Eg?Array:Uint32Array,ab=typeof Uint16Array==Eg?Array:Uint16Array,sb=typeof Int32Array==Eg?Array:Int32Array,N_=typeof Float64Array==Eg?Array:Float64Array,lb={float:N_,int:sb,ordinal:Array,number:Array,time:N_};ps.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),o=this.defaultDimValueGetter=nb[i.sourceFormat];this._dimValueGetter=n||o,this._rawExtent=[],Ra(i),this._dimensions=f(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},ps.prototype.getProvider=function(){return this._provider},ps.prototype.getSource=function(){return this._provider.getSource()},ps.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,o=n.get(t);if(null!=o){if(i[o].type===e)return o}else o=i.length;return i[o]={type:e},n.set(t,o),this._chunks[o]=new lb[e||"float"](this._rawCount),this._rawExtent[o]=hs(),o},ps.prototype.collectOrdinalMeta=function(t,e){for(var n=this._chunks[t],i=this._dimensions[t],o=this._rawExtent,r=i.ordinalOffset||0,a=n.length,s=(0===r&&(o[t]=hs()),o[t]),l=r;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1])}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},ps.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},ps.prototype.getDimensionProperty=function(t){return(t=this._dimensions[t])&&t.property},ps.prototype.appendData=function(t){var e=this._provider,n=this.count(),t=(e.appendData(t),e.count());return e.persistent||(t+=n),n<t&&this._initDataFromProvider(n,t,!0),[n,t]},ps.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,o=i.length,r=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<o;l++)cs(n,l,(d=i[l]).type,s,!0);for(var u=[],h=a;h<s;h++)for(var c=h-a,p=0;p<o;p++){var d=i[p],f=nb.arrayRows.call(this,t[c]||u,d.property,c,p),g=(n[p][h]=f,r[p]);f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},ps.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,o=this._chunks,r=this._dimensions,a=r.length,s=this._rawExtent,l=f(r,function(t){return t.property}),u=0;u<a;u++){var h=r[u];s[u]||(s[u]=hs()),cs(o,u,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,o,s);else for(var c=[],p=t;p<e;p++)for(var c=i.getItem(p,c),d=0;d<a;d++){var g=o[d],y=this._dimValueGetter(c,l[d],p,d),g=(g[p]=y,s[d]);y<g[0]&&(g[0]=y),y>g[1]&&(g[1]=y)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},ps.prototype.count=function(){return this._count},ps.prototype.get=function(t,e){return 0<=e&&e<this._count&&(t=this._chunks[t])?t[this.getRawIndex(e)]:NaN},ps.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var o=0;o<this._dimensions.length;o++)i.push(o)}else i=t;for(var o=0,r=i.length;o<r;o++)n.push(this.get(i[o],e));return n},ps.prototype.getByRawIndex=function(t,e){return 0<=e&&e<this._rawCount&&(t=this._chunks[t])?t[e]:NaN},ps.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var o=this.get(t,n);isNaN(o)||(e+=o)}return e},ps.prototype.getMedian=function(t){var e=[],t=(this.each([t],function(t){isNaN(t)||e.push(t)}),e.sort(function(t,e){return t-e})),n=this.count();return 0===n?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},ps.prototype.indexOfRawIndex=function(t){if(!(t>=this._rawCount||t<0)){if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,o=this._count-1;i<=o;){var r=(i+o)/2|0;if(e[r]<t)i=1+r;else{if(!(e[r]>t))return r;o=r-1}}}return-1},ps.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],o=[];if(i){null==n&&(n=1/0);for(var r=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var h=e-i[this.getRawIndex(l)],c=Math.abs(h);c<=n&&((c<r||c===r&&0<=h&&a<0)&&(r=c,a=h,s=0),h===a)&&(o[s++]=l)}o.length=s}return o},ps.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array)for(var i=new e(n),o=0;o<n;o++)i[o]=t[o];else i=new e(t.buffer,0,n)}else for(i=new(e=us(this._rawCount))(this.count()),o=0;o<i.length;o++)i[o]=o;return i},ps.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),o=new(us(n._rawCount))(i),r=[],a=t.length,s=0,l=t[0],u=n._chunks,h=0;h<i;h++){var c=void 0,p=n.getRawIndex(h);if(0===a)c=e(h);else if(1===a)c=e(u[l][p],h);else{for(var d=0;d<a;d++)r[d]=u[t[d]][p];r[d]=h,c=e.apply(null,r)}c&&(o[s++]=p)}return s<i&&(n._indices=o),n._count=s,n._extent=[],n._updateGetRawIdx(),n},ps.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=m(t),o=i.length;if(!o)return this;var r=e.count(),a=new(us(e._rawCount))(r),s=0,l=i[0],u=t[l][0],h=t[l][1],c=e._chunks,l=!1;if(!e._indices){var p=0;if(1===o){for(var d=c[i[0]],f=0;f<n;f++)(u<=(_=d[f])&&_<=h||isNaN(_))&&(a[s++]=p),p++;l=!0}else if(2===o){for(var d=c[i[0]],g=c[i[1]],y=t[i[1]][0],v=t[i[1]][1],f=0;f<n;f++){var _=d[f],x=g[f];(u<=_&&_<=h||isNaN(_))&&(y<=x&&x<=v||isNaN(x))&&(a[s++]=p),p++}l=!0}}if(!l)if(1===o)for(f=0;f<r;f++){var b=e.getRawIndex(f);(u<=(_=c[i[0]][b])&&_<=h||isNaN(_))&&(a[s++]=b)}else for(f=0;f<r;f++){for(var w=!0,b=e.getRawIndex(f),S=0;S<o;S++){var C=i[S];((_=c[C][b])<t[C][0]||_>t[C][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(f))}return s<r&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},ps.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},ps.prototype.modify=function(t,e){this._updateDims(this,t,e)},ps.prototype._updateDims=function(t,e,n){for(var i=t._chunks,o=[],r=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=hs();for(var h=0;h<a;h++){for(var c=t.getRawIndex(h),p=0;p<r;p++)s[p]=i[e[p]][c];s[r]=h;var d=n&&n.apply(null,s);if(null!=d)for("object"!=typeof d&&(o[0]=d,d=o),u=0;u<d.length;u++){var f=e[u],g=d[u],y=l[f],f=i[f];f&&(f[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}},ps.prototype.lttbDownSample=function(t,e){var n,i=this.clone([t],!0),o=i._chunks[t],r=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(us(this._rawCount))(Math.ceil(r/s)+2);u[a++]=l;for(var h=1;h<r-1;h+=s){for(var c=Math.min(h+s,r-1),p=Math.min(h+2*s,r),d=(p+c)/2,f=0,g=c;g<p;g++){var y=o[w=this.getRawIndex(g)];isNaN(y)||(f+=y)}f/=p-c;for(var c=h,m=Math.min(h+s,r),v=h-1,_=o[l],x=-1,b=c,g=c;g<m;g++){var w,y=o[w=this.getRawIndex(g)];isNaN(y)||x<(n=Math.abs((v-d)*(y-_)-(v-g)*(f-_)))&&(x=n,b=w)}l=u[a++]=b}return u[a++]=this.getRawIndex(r-1),i._count=a,i._indices=u,i.getRawIndex=this._getRawIdx,i},ps.prototype.downSample=function(t,e,n,i){for(var o=this.clone([t],!0),r=o._chunks,a=[],s=Math.floor(1/e),l=r[t],u=this.count(),h=o._rawExtent[t]=hs(),c=new(us(this._rawCount))(Math.ceil(u/s)),p=0,d=0;d<u;d+=s){u-d<s&&(a.length=s=u-d);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var y=n(a),m=this.getRawIndex(Math.min(d+i(a,y)||0,u-1));(l[m]=y)<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[p++]=m}return o._count=p,o._indices=c,o._updateGetRawIdx(),o},ps.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,o=0,r=this.count();o<r;o++){var a=this.getRawIndex(o);switch(n){case 0:e(o);break;case 1:e(i[t[0]][a],o);break;case 2:e(i[t[0]][a],i[t[1]][a],o);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=o,e.apply(null,l)}}},ps.prototype.getDataExtent=function(t){var e=this._chunks[t],n=hs();if(!e)return n;var i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(o=this._extent[t])return o.slice();for(var o,r=(o=n)[0],a=o[1],s=0;s<i;s++){var l=e[this.getRawIndex(s)];l<r&&(r=l),a<l&&(a=l)}return this._extent[t]=o=[r,a]},ps.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,o=0;o<i.length;o++)n.push(i[o][e]);return n},ps.prototype.clone=function(t,e){var n,i,o=new ps,r=this._chunks,a=t&&g(t,function(t,e){return t[e]=!0,t},{});if(a)for(var s=0;s<r.length;s++)o._chunks[s]=a[s]?(n=r[s],i=void 0,(i=n.constructor)===Array?n.slice():new i(n)):r[s];else o._chunks=r;return this._copyCommonProps(o),e||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},ps.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=r(this._extent),t._rawExtent=r(this._rawExtent)},ps.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array)for(var n=this._indices.length,e=new t(n),i=0;i<n;i++)e[i]=this._indices[i];else e=new t(this._indices);return e}return null},ps.prototype._getRawIdxIdentity=function(t){return t},ps.prototype._getRawIdx=function(t){return t<this._count&&0<=t?this._indices[t]:-1},ps.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},ps.internalField=void(nb={arrayRows:ds,objectRows:function(t,e,n,i){return Ka(t[e],this._dimensions[i])},keyedColumns:ds,original:function(t,e,n,i){return t=t&&(null==t.value?t:t.value),Ka(t instanceof Array?t[i]:t,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}});var ub=ps;fs.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},fs.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,9e10<++this._versionSignBase&&(this._versionSignBase=0)},fs.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},fs.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},fs.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n,i,o,r,a,s=this._sourceHost,l=this._getUpstreamSourceManagers(),u=!!l.length;ys(s)?(i=s,o=t=r=void 0,e=u?((e=l[0]).prepareSource(),r=(o=e.getSource()).data,t=o.sourceFormat,[e._getVersionSign()]):(t=M(r=i.get("data",!0))?ux:rx,[]),i=this._getSourceMetaRawOption()||{},o=o&&o.metaRawOption||{},a=L(i.seriesLayoutBy,o.seriesLayoutBy)||null,n=L(i.sourceHeader,o.sourceHeader)||null,i=L(i.dimensions,o.dimensions),o=a!==o.seriesLayoutBy||!!n!=!!o.sourceHeader||i?[Da(r,{seriesLayoutBy:a,sourceHeader:n,dimensions:i},t)]:[]):(r=s,e=u?(o=(a=this._applyTransform(l)).sourceList,a.upstreamSignList):(o=[Da(r.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(o,e)},fs.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),o=n.get("fromTransformResult",!0),a=(null!=o&&1!==t.length&&ms(""),[]),s=[];return d(t,function(t){t.prepareSource();var e=t.getSource(o||0);null==o||e||ms(""),a.push(e),s.push(t._getVersionSign())}),i?e=ss(i,a,n.componentIndex):null!=o&&(e=[new Rx({data:(t=a[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:r(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:e,upstreamSignList:s}},fs.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},fs.prototype.getSource=function(t){var e=this._sourceList[t=t||0];return e||(e=this._getUpstreamSourceManagers())[0]&&e[0].getSource(t)},fs.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},fs.prototype._innerGetDataStore=function(t,e,n){var i,o=this._storeList,r=o[0],o=(r=r||(o[0]={}))[n];return o||(i=this._getUpstreamSourceManagers()[0],ys(this._sourceHost)&&i?o=i._innerGetDataStore(t,e,n):(o=new ub).initData(new zx(e,t.length),t),r[n]=o),o},fs.prototype._getUpstreamSourceManagers=function(){var t,e=this._sourceHost;return ys(e)?(t=ia(e))?[t.getSourceManager()]:[]:f((t=e).get("transform",!0)||t.get("fromTransformResult",!0)?Mn(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},$g).models:[],function(t){return t.getSourceManager()})},fs.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;return ys(i)?(t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=(i=i).get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:n}};var hb=fs,cb="line-height:1",pb=[0,10,20,30],db=["","\n","\n\n","\n\n\n"],fb={section:{planLayout:function(t){var e=t.blocks.length,n=1<e||0<e&&!t.noHeader,i=0;d(t.blocks,function(t){xs(t).planLayout(t);var e=t.__gapLevelBetweenSubBlocks;i<=e&&(i=e+(!n||e&&("section"!==t.type||t.noHeader)?0:1))}),t.__gapLevelBetweenSubBlocks=i},build:function(t,e,n,i){var o=e.noHeader,r=ws(e),a=function(t,e,n,i){var o,r,a=[],s=e.blocks||[],l=(B(!s||_(s)),s=s||[],t.orderMode);e.sortBlocks&&l&&(s=s.slice(),j(o={valueAsc:"asc",valueDesc:"desc"},l)?(r=new tb(o[l],null),s.sort(function(t,e){return r.evaluate(t.sortParam,e.sortParam)})):"seriesDesc"===l&&s.reverse());var u=ws(e);if(d(s,function(e,n){var o=xs(e).build(t,e,n>0?u.html:0,i);null!=o&&a.push(o)}),a.length)return"richText"===t.renderMode?a.join(u.richText):Ss(a.join(""),n)}(t,e,o?n:r.html,i);return o?a:(o=Wr(e.header,"ordinal",t.useUTC),e=vs(i,t.renderMode).nameStyle,"richText"===t.renderMode?Cs(t,o,e)+r.richText+a:Ss('<div style="'+e+";"+cb+';">'+Gr(o)+"</div>"+a,n))}},nameValue:{planLayout:function(t){t.__gapLevelBetweenSubBlocks=0},build:function(t,e,n,i){var o,r,a,s,l=t.renderMode,u=e.noName,h=e.noValue,c=!e.markerType,p=e.name,d=e.value,g=t.useUTC;if(!u||!h)return o=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",l),p=u?"":Wr(p,"ordinal",g),r=e.valueType,e=h?[]:_(d)?f(d,function(t,e){return Wr(t,_(r)?r[e]:r,g)}):[Wr(d,_(r)?r[0]:r,g)],d=!c||!u,a=!c&&u,i=vs(i,l),s=i.nameStyle,i=i.valueStyle,"richText"===l?(c?"":o)+(u?"":Cs(t,p,s))+(h?"":function(t,e,n,i,o){return o=[o],i=i?10:20,n&&o.push({padding:[0,0,0,i],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(e.join(" "),o)}(t,e,d,a,i)):Ss((c?"":o)+(u?"":'<span style="'+s+";"+(c?"":"margin-left:2px")+'">'+Gr(p)+"</span>")+(h?"":function(t,e,n,i){return n=n?"10px":"20px",'<span style="'+(e?"float:right;margin-left:"+n:"")+";"+i+'">'+f(t,Gr).join("&nbsp;&nbsp;")+"</span>"}(e,d,a,i)),n)}}};Ms.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},Ms.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,e=Xr({color:e,type:t,renderMode:n,markerId:i});return b(e)?e:(this.richTextStyles[i]=e.style,e.content)},Ms.prototype.wrapRichTextStyle=function(t,e){var n={},e=(_(e)?d(e,function(t){return s(n,t)}):s(n,e),this._generateStyleName());return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var gb=Ms,yb=Sn();e(Ds,mb=J_),Ds.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Ya({count:Ps,reset:Os}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(yb(this).sourceManager=new hb(this)).prepareSource(),t=this.getInitialData(t,n),Rs(t,this),this.dataTask.context.data=t,yb(this).dataBeforeProcessed=t,As(this),this._initSelectedMapFromData(t)},Ds.prototype.mergeDefaultAndTheme=function(t,e){var n=Kr(this),i=n?Qr(t):{},o=this.subType;J_.hasClass(o),a(t,e.getTheme().get(this.subType)),a(t,this.getDefaultOption()),dn(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Jr(t,i,n)},Ds.prototype.mergeOption=function(t,e){t=a(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Kr(this),n=(n&&Jr(this.option,t,n),yb(this).sourceManager),n=(n.dirty(),n.prepareSource(),this.getInitialData(t,e));Rs(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,yb(this).dataBeforeProcessed=n,As(this),this._initSelectedMapFromData(n)},Ds.prototype.fillDataTextStyle=function(t){if(t&&!M(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&dn(t[n],"label",e)},Ds.prototype.getInitialData=function(t,e){},Ds.prototype.appendData=function(t){this.getRawData().appendData(t.data)},Ds.prototype.getData=function(t){var e=Es(this);return e?(e=e.context.data,null==t?e:e.getLinkedData(t)):yb(this).data},Ds.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},Ds.prototype.setData=function(t){var e,n=Es(this);n&&((e=n.context).outputData=t,n!==this.dataTask)&&(e.data=t),yb(this).data=t},Ds.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return G(t)},Ds.prototype.getSourceManager=function(){return yb(this).sourceManager},Ds.prototype.getSource=function(){return this.getSourceManager().getSource()},Ds.prototype.getRawData=function(){return yb(this).dataBeforeProcessed},Ds.prototype.getColorBy=function(){return this.get("colorBy")||"series"},Ds.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},Ds.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},Ds.prototype.formatTooltip=function(t,e,n){return ks({series:this,dataIndex:t,multipleSeries:e})},Ds.prototype.isAnimationEnabled=function(){var t;return!Bd.node&&!!(t=!((t=this.getShallow("animation"))&&this.getData().count()>this.getShallow("animationThreshold"))&&t)},Ds.prototype.restoreData=function(){this.dataTask.dirty()},Ds.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return mx.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},Ds.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},Ds.prototype.getProgressive=function(){return this.get("progressive")},Ds.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},Ds.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},Ds.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n)for(var i=this.getData(e),o=0;o<t.length;o++){var r=Is(i,t[o]);n[r]=!1,this._selectedDataIndicesMap[r]=-1}},Ds.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},Ds.prototype.getSelectedDataIndices=function(){for(var t=this._selectedDataIndicesMap,e=m(t),n=[],i=0;i<e.length;i++){var o=t[e[i]];0<=o&&n.push(o)}return n},Ds.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return n&&n[Is(this.getData(e),t)]||!1},Ds.prototype.isUniversalTransitionEnabled=function(){var t;return!!this.__universalTransitionEnabled||!!(t=this.option.universalTransition)&&(!0===t||t&&t.enabled)},Ds.prototype._innerSelect=function(t,e){var n,i=this.option.selectedMode,o=e.length;if(i&&o)if("multiple"===i)for(var r=this.option.selectedMap||(this.option.selectedMap={}),a=0;a<o;a++){var s,l=e[a];r[s=Is(t,l)]=!0,this._selectedDataIndicesMap[s]=t.getRawIndex(l)}else"single"!==i&&!0!==i||(s=Is(t,i=e[o-1]),this.option.selectedMap=((n={})[s]=!0,n),this._selectedDataIndicesMap=((n={})[s]=t.getRawIndex(i),n))},Ds.prototype._initSelectedMapFromData=function(t){var e;this.option.selectedMap||(e=[],t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)}),0<e.length&&this._innerSelect(t,e))},Ds.registerClass=function(t){return J_.registerClass(t)},Ds.protoInitialize=((Uv=Ds.prototype).type="series.__base__",Uv.seriesIndex=0,Uv.ignoreStyleOnData=!1,Uv.hasSymbolVisual=!1,Uv.defaultSymbol="circle",Uv.visualStyleAccessPath="itemStyle",void(Uv.visualDrawType="fill"));var mb,vb=Ds;c(vb,x_),c(vb,mx),Pn(vb,J_),Bs.prototype.init=function(t,e){},Bs.prototype.render=function(t,e,n,i){},Bs.prototype.dispose=function(t,e){},Bs.prototype.updateView=function(t,e,n,i){},Bs.prototype.updateLayout=function(t,e,n,i){},Bs.prototype.updateVisual=function(t,e,n,i){},Bs.prototype.blurSeries=function(t,e){};var _b=Bs;An(_b),Rn(_b);var xb=Sn(),bb=zs(),wb=(Fs.prototype.init=function(t,e){},Fs.prototype.render=function(t,e,n,i){},Fs.prototype.highlight=function(t,e,n,i){Hs(t.getData(),i,"emphasis")},Fs.prototype.downplay=function(t,e,n,i){Hs(t.getData(),i,"normal")},Fs.prototype.remove=function(t,e){this.group.removeAll()},Fs.prototype.dispose=function(t,e){},Fs.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},Fs.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},Fs.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},Fs.markUpdateMethod=function(t,e){xb(t).updateMethod=e},Fs.protoInitialize=void(Fs.prototype.type="chart"),Fs);An(wb),Rn(wb);var Sb={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)}}},Cb="\0__throttleOriginMethod",Tb="\0__throttleRate",Mb="\0__throttleType",kb=Sn(),Ib={itemStyle:Nn(v_,!0),lineStyle:Nn(y_,!0)},Db={lineStyle:"stroke",itemStyle:"fill"},ny={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",o=t.getModel(i),r=js(t,i)(o),o=o.getShallow("decal"),a=(o&&(n.setVisual("decal",o),o.dirty=!0),Xs(t,i)),o=r[a],l=x(o)?o:null,i="auto"===r.fill||"auto"===r.stroke;if(r[a]&&!l&&!i||(o=t.getColorFromPalette(t.name,null,e.getSeriesCount()),r[a]||(r[a]=o,n.setVisual("colorFromPalette",!0)),r.fill="auto"===r.fill||"function"==typeof r.fill?o:r.fill,r.stroke="auto"===r.stroke||"function"==typeof r.stroke?o:r.stroke),n.setVisual("style",r),n.setVisual("drawType",a),!e.isSeriesFiltered(t)&&l)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),o=s({},r);o[a]=l(i),e.setItemVisual(n,"style",o)}}}},Ab=new w_,Eg={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n,i,o;if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t))return e=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=js(t,n),o=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var r=t.getRawDataItem(e);r&&r[n]&&(Ab.option=r[n],r=i(Ab),s(t.ensureUniqueItemVisual(e,"style"),r),Ab.option.decal&&(t.setItemVisual(e,"decal",Ab.option.decal),Ab.option.decal.dirty=!0),o in r)&&t.setItemVisual(e,"colorFromPalette",!1)}:null}}},N_={performRawSeries:!0,overallReset:function(t){var e=G();t.eachSeries(function(t){var n,i=t.getColorBy();t.isColorBySeries()||(i=t.type+"-"+i,(n=e.get(i))||e.set(i,n={}),kb(t).scope=n)}),t.eachSeries(function(e){var n,i,o,r,a,s;e.isColorBySeries()||t.isSeriesFiltered(e)||(n=e.getRawData(),i={},o=e.getData(),r=kb(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Xs(e,a),o.each(function(t){var e=o.getRawIndex(t);i[e]=t}),n.each(function(t){var a,l=i[t];o.getItemVisual(l,"colorFromPalette")&&(l=o.ensureUniqueItemVisual(l,"style"),t=n.getName(t)||t+"",a=n.count(),l[s]=e.getColorFromPalette(t,r,a))}))})}},Pb=Math.PI;Ys.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){(t=t.overallTask)&&t.dirty()})},Ys.prototype.getPerformArgs=function(t,e){var n,i;if(t.__pipeline)return i=(n=this._pipelineMap.get(t.__pipeline.id)).context,{step:e=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,modBy:null!=(t=i&&i.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},Ys.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},Ys.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),e=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:i,large:o}},Ys.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=G();t.eachSeries(function(t){var i=t.getProgressive(),o=t.uid;n.set(o,{id:o,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)})},Ys.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;d(this._allHandlers,function(i){var o=t.get(i.uid)||t.set(i.uid,{});B(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,o,e,n),i.overallReset&&this._createOverallStageTask(i,o,e,n)},this)},Ys.prototype.prepareView=function(t,e,n,i){var o=t.renderTask,r=o.context;r.model=e,r.ecModel=n,r.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},Ys.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},Ys.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},Ys.prototype._performStageTasks=function(t,e,n,i){function o(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}i=i||{};var r=!1,a=this;d(t,function(t,s){var l,u,h,c,p;i.visualType&&i.visualType!==t.visualType||(l=(u=a._stageTaskMap.get(t.uid)).seriesTaskMap,(u=u.overallTask)?((c=u.agentStubMap).each(function(t){o(i,t)&&(t.dirty(),h=!0)}),h&&u.dirty(),a.updatePayload(u,n),p=a.getPerformArgs(u,i.block),c.each(function(t){t.perform(p)}),u.perform(p)&&(r=!0)):l&&l.each(function(s,l){o(i,s)&&s.dirty();var u=a.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(u)&&(r=!0)}))}),this.unfinished=r||this.unfinished},Ys.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},Ys.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}}while(e=e.getUpstream())})},Ys.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Ys.prototype._createSeriesStageTask=function(t,e,n,i){function o(e){var o=e.uid,o=s.set(o,a&&a.get(o)||Ya({plan:Js,reset:Qs,count:el}));o.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,o)}var r=this,a=e.seriesTaskMap,s=e.seriesTaskMap=G(),e=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(o):e?n.eachRawSeriesByType(e,o):l&&l(n,i).each(o)},Ys.prototype._createOverallStageTask=function(t,e,n,i){function o(t){var e=t.uid,e=l.set(e,s&&s.get(e)||(c=!0,Ya({reset:Zs,onDirty:Ks})));e.context={model:t,overallProgress:h},e.agent=a,e.__block=h,r._pipe(t,e)}var r=this,a=e.overallTask=e.overallTask||Ya({reset:qs}),s=(a.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r},a.agentStubMap),l=a.agentStubMap=G(),e=t.seriesType,u=t.getTargetSeries,h=!0,c=!1;B(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,o):u?u(n,i).each(o):(h=!1,d(n.getSeries(),o)),c&&a.dirty()},Ys.prototype._pipe=function(t,e){t=t.uid,t=this._pipelineMap.get(t),t.head||(t.head=e),t.tail&&t.tail.pipe(e),(t.tail=e).__idxInPipeline=t.count++,e.__pipeline=t},Ys.wrapStageHandler=function(t,e){return(t=x(t)?{overallReset:t,seriesType:function(t){Ob=null;try{t(Nb,Eb)}catch(t){}return Ob}(t)}:t).uid=xr("stageHandler"),e&&(t.visualType=e),t};var Ob,Lb=Ys,Rb=tl(0),Nb={},Eb={};nl(Nb,_x),nl(Eb,ca),Nb.eachSeriesByType=Nb.eachRawSeriesByType=function(t){Ob=t},Nb.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Ob=t.subType)};var Bb,Uv=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],x_={color:Uv,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Uv]},zb="#B9B8CE",Uv="#100C2A",Fb=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Uv={darkMode:!0,color:Fb,backgroundColor:Uv,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:zb}},textStyle:{color:zb},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:zb}},dataZoom:{borderColor:"#71708A",textStyle:{color:zb},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:zb}},timeline:{lineStyle:{color:zb},label:{color:zb},controlStyle:{color:zb,borderColor:zb}},calendar:{itemStyle:{color:Uv},dayLabel:{color:zb},monthLabel:{color:zb},yearLabel:{color:zb}},timeAxis:il(),logAxis:il(),valueAxis:il(),categoryAxis:il(),line:{symbol:"circle"},graph:{color:Fb},gauge:{title:{color:zb},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:zb},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}},Vb=(Uv.categoryAxis.splitLine.show=!1,ol.prototype.normalizeQuery=function(t){var e,n,i,o={},r={},a={};return b(t)?(e=Dn(t),o.mainType=e.main||null,o.subType=e.sub||null):(n=["Index","Name","Id"],i={name:1,dataIndex:1,dataType:1},d(t,function(t,e){for(var s=!1,l=0;l<n.length;l++){var u=n[l],h=e.lastIndexOf(u);0<h&&h===e.length-u.length&&"data"!==(h=e.slice(0,h))&&(o.mainType=h,o[u.toLowerCase()]=t,s=!0)}i.hasOwnProperty(e)&&(r[e]=t,s=!0),s||(a[e]=t)})),{cptQuery:o,dataQuery:r,otherQuery:a}},ol.prototype.filter=function(t,e){function n(t,e,n,i){return null==t[n]||e[i||n]===t[n]}var i,o,r,a,s,l=this.eventInfo;return!l||(i=l.targetEl,o=l.packedEvent,r=l.model,l=l.view,!r)||!l||(a=e.cptQuery,s=e.dataQuery,n(a,r,"mainType")&&n(a,r,"subType")&&n(a,r,"index","componentIndex")&&n(a,r,"name")&&n(a,r,"id")&&n(s,o,"name")&&n(s,o,"dataIndex")&&n(s,o,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(t,e.otherQuery,i,o)))},ol.prototype.afterTrigger=function(){this.eventInfo=null},ol),Fb={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){var i=t.get("symbol"),o=t.get("symbolSize"),r=t.get("symbolKeepAspect"),a=t.get("symbolRotate"),s=t.get("symbolOffset"),l=x(i),u=x(o),h=x(a),c=x(s),p=l||u||h||c,d=!l&&i?i:t.defaultSymbol,f=u?null:o,g=h?null:a,y=c?null:s;if(n.setVisual({legendIcon:t.legendIcon||d,symbol:d,symbolSize:f,symbolKeepAspect:r,symbolRotate:g,symbolOffset:y}),!e.isSeriesFiltered(t))return{dataEach:p?function(e,n){var r=t.getRawValue(n),p=t.getDataParams(n);l&&e.setItemVisual(n,"symbol",i(r,p)),u&&e.setItemVisual(n,"symbolSize",o(r,p)),h&&e.setItemVisual(n,"symbolRotate",a(r,p)),c&&e.setItemVisual(n,"symbolOffset",s(r,p))}:null}}}},Hb={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){var n=(a=t.getItemModel(e)).getShallow("symbol",!0),i=a.getShallow("symbolSize",!0),o=a.getShallow("symbolRotate",!0),r=a.getShallow("symbolOffset",!0),a=a.getShallow("symbolKeepAspect",!0);null!=n&&t.setItemVisual(e,"symbol",n),null!=i&&t.setItemVisual(e,"symbolSize",i),null!=o&&t.setItemVisual(e,"symbolRotate",o),null!=r&&t.setItemVisual(e,"symbolOffset",r),null!=a&&t.setItemVisual(e,"symbolKeepAspect",a)}:null}}},Gb=Math.round(9*Math.random()),Wb="function"==typeof Object.defineProperty,Ub=(sl.prototype.get=function(t){return this._guard(t)[this._id]},sl.prototype.set=function(t,e){return t=this._guard(t),Wb?Object.defineProperty(t,this._id,{value:e,enumerable:!1,configurable:!0}):t[this._id]=e,this},sl.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},sl.prototype.has=function(t){return!!this._guard(t)[this._id]},sl.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},sl),jb=um.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=e.width/2,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+o,i+e),t.lineTo(n-o,i+e),t.closePath()}}),Xb=um.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=e.width/2,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+o,i),t.lineTo(n,i+e),t.lineTo(n-o,i),t.closePath()}}),Yb=um.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,o=e.width/5*3,e=Math.max(o,e.height),o=o/2,r=o*o/(e-o),e=i-e+o+r,a=Math.asin(r/o),s=Math.cos(a)*o,l=Math.sin(a),u=Math.cos(a),h=.6*o,c=.7*o;t.moveTo(n-s,e+r),t.arc(n,e,o,Math.PI-a,2*Math.PI+a),t.bezierCurveTo(n+s-l*h,e+r+u*h,n,i-c,n,i),t.bezierCurveTo(n,i-c,n-s+l*h,e+r+u*h,n-s,e+r),t.closePath()}}),qb=um.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,o=e.x,e=e.y,i=i/3*2;t.moveTo(o,e),t.lineTo(o+i,e+n),t.lineTo(o,e+n/4*3),t.lineTo(o-i,e+n),t.lineTo(o,e),t.closePath()}}),Zb={line:function(t,e,n,i,o){o.x1=t,o.y1=e+i/2,o.x2=t+n,o.y2=e+i/2},rect:function(t,e,n,i,o){o.x=t,o.y=e,o.width=n,o.height=i},roundRect:function(t,e,n,i,o){o.x=t,o.y=e,o.width=n,o.height=i,o.r=Math.min(n,i)/4},square:function(t,e,n,i,o){n=Math.min(n,i),o.x=t,o.y=e,o.width=n,o.height=n},circle:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.r=Math.min(n,i)/2},diamond:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.width=n,o.height=i},pin:function(t,e,n,i,o){o.x=t+n/2,o.y=e+i/2,o.width=n,o.height=i},arrow:function(t,e,n,i,o){o.x=t+n/2,o.y=e+i/2,o.width=n,o.height=i},triangle:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.width=n,o.height=i}},$b={},Kb=(d({line:Rv,rect:xm,roundRect:xm,square:xm,circle:ov,diamond:Xb,pin:Yb,arrow:qb,triangle:jb},function(t,e){$b[e]=new t}),um.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var t=Be(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(t.y=n.y+.4*n.height),t},buildPath:function(t,e,n){var i,o=e.symbolType;"none"!==o&&(i=(i=$b[o])||$b[o="rect"],Zb[o](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n))}})),Jb=new Jy(!0),Qb=["shadowBlur","shadowOffsetX","shadowOffsetY"],tw=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],ew=1,nw=2,iw=3,ow=4,rw=new Ub,aw=new Rf(100),sw=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"],lw={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-anchor":"textAlign",visibility:"visibility",display:"display"},uw=m(lw),hw={"alignment-baseline":"textBaseline","stop-color":"stopColor"},cw=m(hw),pw=(Al.prototype.parse=function(t,e){if(e=e||{},!(t=Dl(t)))throw new Error("Illegal svg");this._defsUsePending=[];for(var n,i,o=new zg,r=(this._root=o,[]),a=t.getAttribute("viewBox")||"",s=parseFloat(t.getAttribute("width")||e.width),l=parseFloat(t.getAttribute("height")||e.height),u=(isNaN(s)&&(s=null),isNaN(l)&&(l=null),Nl(t,o,null,!0,!1),t.firstChild);u;)this._parseNode(u,o,r,null,!1,!1),u=u.nextSibling;for(var h=this._defs,c=this._defsUsePending,p=0;p<c.length;p++){var d=c[p];d[0].style[d[1]]=h[d[2]]}return this._defsUsePending=[],(n=a&&4<=(t=Bl(a)).length?{x:parseFloat(t[0]||0),y:parseFloat(t[1]||0),width:parseFloat(t[2]),height:parseFloat(t[3])}:n)&&null!=s&&null!=l&&(i=Fl(n,{x:0,y:0,width:s,height:l}),e.ignoreViewBox||(a=o,(o=new zg).add(a),a.scaleX=a.scaleY=i.scale,a.x=i.x,a.y=i.y)),e.ignoreRootClip||null==s||null==l||o.setClipPath(new xm({shape:{x:0,y:0,width:s,height:l}})),{root:o,width:s,height:l,viewBoxRect:n,viewBoxTransform:i,named:r}},Al.prototype._parseNode=function(t,e,n,i,o,r){var a,s,l=t.nodeName.toLowerCase(),u=i;if("defs"===l&&(o=!0),"text"===l&&(r=!0),"defs"===l||"switch"===l?a=e:(o||(s=Bb[l])&&j(Bb,l)&&(a=s.call(this,t,e),(s=t.getAttribute("name"))?(n.push(s={name:s,namedFrom:null,svgNodeTagLower:l,el:a}),"g"===l&&(u=s)):i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:l,el:a}),e.add(a)),(s=dw[l])&&j(dw,l)&&(i=s.call(this,t),e=t.getAttribute("id"))&&(this._defs[e]=i)),a&&a.isGroup)for(var h=t.firstChild;h;)1===h.nodeType?this._parseNode(h,a,n,u,o,r):3===h.nodeType&&r&&this._parseText(h,a),h=h.nextSibling},Al.prototype._parseText=function(t,e){var n=new cm({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0}),t=(Ll(e,n),Nl(t,n,this._defsUsePending,!1,!1),n),i=e,o=i.__selfStyle,o=(o&&(o=o.textBaseline,(r=o)&&"auto"!==o&&"baseline"!==o?"before-edge"===o||"text-before-edge"===o?r="top":"after-edge"===o||"text-after-edge"===o?r="bottom":"central"!==o&&"mathematical"!==o||(r="middle"):r="alphabetic",t.style.textBaseline=r),(o=i.__inheritedStyle)&&(r=o.textAlign,i=r)&&("middle"===r&&(i="center"),t.style.textAlign=i),n.style),r=o.fontSize,t=(r&&r<9&&(o.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9),(o.fontSize||o.fontFamily)&&[o.fontStyle,o.fontWeight,(o.fontSize||12)+"px",o.fontFamily||"sans-serif"].join(" ")),i=(o.font=t,n.getBoundingRect());return this._textX+=i.width,e.add(n),n},Al.internalField=void(Bb={g:function(t,e){var n=new zg;return Ll(e,n),Nl(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new xm;return Ll(e,n),Nl(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},circle:function(t,e){var n=new ov;return Ll(e,n),Nl(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Rv;return Ll(e,n),Nl(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},ellipse:function(t,e){var n=new sv;return Ll(e,n),Nl(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points"),i=(i&&(n=Rl(i)),new kv({shape:{points:n||[]},silent:!0}));return Ll(e,i),Nl(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,i=t.getAttribute("points"),i=(i&&(n=Rl(i)),new Av({shape:{points:n||[]},silent:!0}));return Ll(e,i),Nl(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new gm;return Ll(e,n),Nl(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",o=t.getAttribute("dx")||"0",r=t.getAttribute("dy")||"0",n=(this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(i)+parseFloat(r),new zg);return Ll(e,n),Nl(t,n,this._defsUsePending,!1,!0),n},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y"),n=(null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i)),t.getAttribute("dx")||"0"),i=t.getAttribute("dy")||"0",o=new zg;return Ll(e,o),Nl(t,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(i),o},path:function(t,e){var n=mo(t.getAttribute("d")||"");return Ll(e,n),Nl(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),Al),dw={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),o=parseInt(t.getAttribute("y2")||"0",10),e=new Xv(e,n,i,o);return Pl(t,e),Ol(t,e),e},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),e=new Zv(e,n,i);return Pl(t,e),Ol(t,e),e}},fw=/^url\(\s*#(.*?)\)/,gw=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,yw=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,mw=Math.PI/180,vw=/([^\s:;]+)\s*:\s*([^:;]+)/g,_w=1e-8,xw=[],Xb=(Gl.prototype.getCenter=function(){},Gl);e(Wl,bw=Xb),Wl.prototype.getBoundingRect=function(){var t=this._rect;if(t)return t;for(var t=Number.MAX_VALUE,e=[t,t],n=[-t,-t],i=[],o=[],r=this.geometries,a=0;a<r.length;a++)if("polygon"===r[a].type){var s=r[a].exterior,l=(y=g=f=d=p=c=h=u=l=void 0,s),u=i,h=o;if(0!==l.length){for(var c=l[0],p=c[0],d=c[0],f=c[1],g=c[1],y=1;y<l.length;y++)c=l[y],p=Sy(p,c[0]),d=Cy(d,c[0]),f=Sy(f,c[1]),g=Cy(g,c[1]);u[0]=p,u[1]=f,h[0]=d,h[1]=g}rt(e,e,i),at(n,n,o)}return 0===a&&(e[0]=e[1]=n[0]=n[1]=0),this._rect=new kg(e[0],e[1],n[0]-e[0],n[1]-e[1])},Wl.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(e.contain(t[0],t[1]))t:for(var i=0,o=n.length;i<o;i++)if("polygon"===n[i].type){var r=n[i].exterior,a=n[i].interiors;if(Hl(r,t[0],t[1])){for(var s=0;s<(a?a.length:0);s++)if(Hl(a[s],t[0],t[1]))continue t;return!0}}return!1},Wl.prototype.transformTo=function(t,e,n,i){for(var o=this.getBoundingRect(),r=o.width/o.height,r=(n?i=i||n/r:n=r*i,new kg(t,e,n,i)),a=o.calculateTransform(r),s=this.geometries,l=0;l<s.length;l++)if("polygon"===s[l].type){for(var u=s[l].exterior,h=s[l].interiors,c=0;c<u.length;c++)ot(u[c],u[c],a);for(var p=0;p<(h?h.length:0);p++)for(c=0;c<h[p].length;c++)ot(h[p][c],h[p][c],a)}(o=this._rect).copy(r),this._center=[o.x+o.width/2,o.y+o.height/2]},Wl.prototype.cloneShallow=function(t){return t=new Wl(t=null==t?this.name:t,this.geometries,this._center),t._rect=this._rect,t.transformTo=null,t},Wl.prototype.getCenter=function(){return this._center},Wl.prototype.setCenter=function(t){this._center=t};var bw,ww=Wl;e(Ul,Sw=Xb),Ul.prototype.getCenter=function(){return this._center||(this._center=this._calculateCenter())},Ul.prototype._calculateCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),e=[e.x+e.width/2,e.y+e.height/2],n=_e(xw),i=t;i&&!i.isGeoSVGGraphicRoot;)be(n,i.getLocalTransform(),n),i=i.parent;return Te(n,n),ot(e,e,n),e};for(var Sw,Cw=Ul,Tw=G(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Mw=(jl.prototype.load=function(){var t,e,n,i;return this._firstGraphic||(e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone(),e=e.named,n=[],i=G(),d(e,function(t){var e;null==t.namedFrom&&(e=new Cw(t.name,t.el),n.push(e),i.set(t.name,e))}),t=(e={regions:n,regionsMap:i}).regionsMap,this._regions=e.regions,this._regionsMap=t),{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},jl.prototype._buildGraphic=function(t){var e,n,i,o;try{B(null!=(n=(e=t&&(i=t,o={ignoreViewBox:!0,ignoreRootClip:!0},(new pw).parse(i,o))||{}).root))}catch(t){throw new Error("Invalid svg format\n"+t.message)}var r,a,s,l,t=new zg,u=(t.add(n),t.isGeoSVGGraphicRoot=!0,e.width),h=e.height,c=e.viewBoxRect,p=this._boundingRect,f=(p||(l=s=a=r=void 0,null!=u?(r=0,s=u):c&&(r=c.x,s=c.width),null!=h?(a=0,l=h):c&&(a=c.y,l=c.height),null!=r&&null!=a||(u=n.getBoundingRect(),null==r&&(r=u.x,s=u.width),null==a&&(a=u.y,l=u.height)),p=this._boundingRect=new kg(r,a,s,l)),c&&(h=Fl(c,p),n.scaleX=n.scaleY=h.scale,n.x=h.x,n.y=h.y),t.setClipPath(new xm({shape:p.plain()})),[]);return d(e.named,function(t){null!=Tw.get(t.svgNodeTagLower)&&(f.push(t),(t=t.el).silent=!1,t.isGroup)&&t.traverse(function(t){t.silent=!1})}),{root:t,boundingRect:p,named:f}},jl.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n)),n},jl.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},jl),kw=[126,25],Iw=[[[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]]],Dw=0;Dw<Iw.length;Dw++)for(var Aw=0;Aw<Iw[Dw].length;Aw++)Iw[Dw][Aw][0]/=10.5,Iw[Dw][Aw][1]/=-14,Iw[Dw][Aw][0]+=kw[0],Iw[Dw][Aw][1]+=kw[1];var Pw={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]},Ow={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]},Lw=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];ql.prototype.load=function(t,e){var n,i=this._parsedMap.get(e=e||"name"),o=(i||(n=this._parseToRegions(e),i=this._parsedMap.set(e,{regions:n,boundingRect:function(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();(e=e||i.clone()).union(i)}return e}(n)})),G()),r=[];return d(i.regions,function(e){var n=e.name;t&&t.hasOwnProperty(n)&&(e=e.cloneShallow(n=t[n])),r.push(e),o.set(n,e)}),{regions:r,boundingRect:i.boundingRect||new kg(0,0,0,0),regionsMap:o}},ql.prototype._parseToRegions=function(t){var e,n=this._mapName,i=this._geoJSON;try{e=i?Yl(i,t):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return function(t,e){if("china"===t){for(var n=0;n<e.length;n++)if("南海诸岛"===e[n].name)return;e.push(new ww("南海诸岛",f(Iw,function(t){return{type:"polygon",exterior:t}}),kw))}}(n,e),d(e,function(t){var e,i,o=t.name,r=(e=t,"china"===(r=n)&&(r=Pw[e.name])&&((i=e.getCenter())[0]+=r[0]/10.5,i[1]+=-r[1]/14,e.setCenter(i)),r=t,"world"===(e=n)&&(e=Ow[r.name])&&(e=[e[0],e[1]],r.setCenter(e)),i=t,"china"===n&&"台湾"===i.name&&i.geometries.push({type:"polygon",exterior:Lw[0]}),this._specialAreas&&this._specialAreas[o]);r&&t.transformTo(r.left,r.top,r.width,r.height)},this),e},ql.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}};var Rw=ql,Nw=G(),Ew=function(t,e,n){var i;e=e.svg?new Mw(t,e.svg):((i=e.geoJson||e.geoJSON)&&!e.features?n=e.specialAreas:i=e,new Rw(t,i,n)),Nw.set(t,e)},Bw=function(t){return(t=Nw.get(t))&&"geoJSON"===t.type&&t.getMapForUser()},zw=new sf,Fw="undefined"!=typeof window,Yb={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},Vw="__flagInMainProcess",Hw="__pendingUpdate",Gw="__needsUpdateStatus",Ww=/^[a-zA-Z0-9_]+$/,Uw="__connectUpdateStatus";e(Jl,jw=sf);var jw,Xw,Yw,qw,Zw,$w,Kw,Jw,Qw,tS,eS,nS,iS,oS,rS,aS,sS,lS,uS,hS,cS,pS=Jl,qb=pS.prototype,dS=(qb.on=$l("on"),qb.off=$l("off"),e(Ql,cS=sf),Ql.prototype._onframe=function(){if(!this._disposed){hS(this);var t=this._scheduler;if(this[Hw]){var e=this[Hw].silent;this[Vw]=!0,Xw(this),Zw.update.call(this,null,this[Hw].updateParams),this._zr.flush(),this[Vw]=!1,this[Hw]=null,Qw.call(this,e),tS.call(this,e)}else if(t.unfinished){var n=1,i=this._model,o=this._api;t.unfinished=!1;do{var r=+new Date}while(t.performSeriesTasks(i),t.performDataProcessorTasks(i),Kw(this,i),t.performVisualTasks(i),aS(this,this._model,o,"remain",{}),0<(n-=+new Date-r)&&t.unfinished);t.unfinished||this._zr.flush()}}},Ql.prototype.getDom=function(){return this._dom},Ql.prototype.getId=function(){return this.id},Ql.prototype.getZr=function(){return this._zr},Ql.prototype.setOption=function(t,e,n){var i,o,r,a,s;this._disposed?this.id:(C(e)&&(n=e.lazyUpdate,i=e.silent,o=e.replaceMerge,r=e.transition,e=e.notMerge),this[Vw]=!0,this._model&&!e||(e=new kx(this._api),a=this._theme,(s=this._model=new _x).scheduler=this._scheduler,s.init(null,null,null,a,this._locale,e)),this._model.setOption(t,{replaceMerge:o},vS),s={seriesTransition:r,optionChanged:!0},n?(this[Hw]={silent:i,updateParams:s},this[Vw]=!1,this.getZr().wakeUp()):(Xw(this),Zw.update.call(this,null,s),this._zr.flush(),this[Hw]=null,this[Vw]=!1,Qw.call(this,i),tS.call(this,i)))},Ql.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},Ql.prototype.getModel=function(){return this._model},Ql.prototype.getOption=function(){return this._model&&this._model.getOption()},Ql.prototype.getWidth=function(){return this._zr.getWidth()},Ql.prototype.getHeight=function(){return this._zr.getHeight()},Ql.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Fw&&window.devicePixelRatio||1},Ql.prototype.getRenderedCanvas=function(t){if(Bd.canvasSupported)return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},Ql.prototype.getSvgDataURL=function(){var t;if(Bd.svgSupported)return d((t=this._zr).storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},Ql.prototype.getDataURL=function(t){var e,n,i,o;if(!this._disposed)return o=(t=t||{}).excludeComponents,e=this._model,n=[],i=this,d(o,function(t){e.eachComponent({mainType:t},function(t){t=i._componentsMap[t.__viewId],t.group.ignore||(n.push(t),t.group.ignore=!0)})}),o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png")),d(n,function(t){t.group.ignore=!1}),o;this.id},Ql.prototype.getConnectedDataURL=function(t){var e,n,i,o,a,s,l,u,h,c,p,f,g,y,m;if(this._disposed)this.id;else if(Bd.canvasSupported)return e="svg"===t.type,n=this.group,i=Math.min,o=Math.max,SS[n]?(s=a=1/0,u=l=-1/0,h=[],c=t&&t.pixelRatio||this.getDevicePixelRatio(),d(wS,function(c,p){var d;c.group===n&&(d=e?c.getZr().painter.getSvgDom().innerHTML:c.getRenderedCanvas(r(t)),c=c.getDom().getBoundingClientRect(),a=i(c.left,a),s=i(c.top,s),l=o(c.right,l),u=o(c.bottom,u),h.push({dom:d,left:c.left,top:c.top}))}),p=(l*=c)-(a*=c),f=(u*=c)-(s*=c),g=$d(),(y=Xe(g,{renderer:e?"svg":"canvas"})).resize({width:p,height:f}),e?(m="",d(h,function(t){var e=t.left-a,n=t.top-s;m+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()):(t.connectedBackgroundColor&&y.add(new xm({shape:{x:0,y:0,width:p,height:f},style:{fill:t.connectedBackgroundColor}})),d(h,function(t){t=new gm({style:{x:t.left*c-a,y:t.top*c-s,image:t.dom}}),y.add(t)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png")))):this.getDataURL(t)},Ql.prototype.convertToPixel=function(t,e){return $w(this,"convertToPixel",t,e)},Ql.prototype.convertFromPixel=function(t,e){return $w(this,"convertFromPixel",t,e)},Ql.prototype.containPixel=function(t,e){var n;if(!this._disposed)return d(Cn(this._model,t),function(t,i){0<=i.indexOf("Models")&&d(t,function(t){var o=t.coordinateSystem;o&&o.containPoint?n=n||!!o.containPoint(e):"seriesModels"===i&&(o=this._chartsMap[t.__viewId])&&o.containPoint&&(n=n||o.containPoint(e,t))},this)},this),!!n;this.id},Ql.prototype.getVisual=function(t,e){var t=Cn(this._model,t,{defaultMainType:"series"}),n=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;if(null!=t){var i=n,o=t,r=e;switch(r){case"color":return i.getItemVisual(o,"style")[i.getVisual("drawType")];case"opacity":return i.getItemVisual(o,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return i.getItemVisual(o,r)}}else{var a=n,s=e;switch(s){case"color":return a.getVisual("style")[a.getVisual("drawType")];case"opacity":return a.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return a.getVisual(s)}}},Ql.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},Ql.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},Ql.prototype._initEvents=function(){var t,e,n,i=this;d(fS,function(t){function e(e){var n,o,r,a=i.getModel(),l=e.target;"globalout"===t?n={}:l&&al(l,function(t){var e,t=km(t);return t&&null!=t.dataIndex?(e=t.dataModel||a.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType)||{},1):t.eventData&&(n=s({},t.eventData),1)},!0),n&&(o=n.componentType,r=n.componentIndex,"markLine"!==o&&"markPoint"!==o&&"markArea"!==o||(o="series",r=n.seriesIndex),r=(o=o&&null!=r&&a.getComponent(o,r))&&i["series"===o.mainType?"_chartsMap":"_componentsMap"][o.__viewId],n.event=e,n.type=t,i._$eventProcessor.eventInfo={targetEl:l,packedEvent:n,model:o,view:r},i.trigger(t,n))}e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)}),d(yS,function(t,e){i._messageCenter.on(e,function(t){this.trigger(e,t)},i)}),d(["selectchanged"],function(t){i._messageCenter.on(t,function(e){this.trigger(t,e)},i)}),t=this._messageCenter,n=(e=this)._api,t.on("selectchanged",function(t){var i=n.getModel();t.isFromClick?(rl("map","selectchanged",e,i,t),rl("pie","selectchanged",e,i,t)):"select"===t.fromAction?(rl("map","selected",e,i,t),rl("pie","selected",e,i,t)):"unselect"===t.fromAction&&(rl("map","unselected",e,i,t),rl("pie","unselected",e,i,t))})},Ql.prototype.isDisposed=function(){return this._disposed},Ql.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},Ql.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,kn(this.getDom(),MS,""),e=(t=this)._api,n=t._model,d(t._componentsViews,function(t){t.dispose(n,e)}),d(t._chartsViews,function(t){t.dispose(n,e)}),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete wS[t.id])},Ql.prototype.resize=function(t){var e,n;this._disposed?this.id:(this._zr.resize(t),e=this._model,this._loadingFX&&this._loadingFX.resize(),e&&(e=e.resetOption("media"),n=t&&t.silent,this[Hw]&&(null==n&&(n=this[Hw].silent),e=!0,this[Hw]=null),this[Vw]=!0,e&&Xw(this),Zw.update.call(this,{type:"resize",animation:s({duration:0},t&&t.animation)}),this[Vw]=!1,Qw.call(this,n),tS.call(this,n)))},Ql.prototype.showLoading=function(t,e){this._disposed?this.id:(C(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),bS[t]&&(t=bS[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},Ql.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},Ql.prototype.makeActionFromEvent=function(t){var e=s({},t);return e.type=yS[t.type],e},Ql.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(C(e)||(e={silent:!!e}),gS[t.type]&&this._model&&(this[Vw]?this._pendingActions.push(t):(n=e.silent,Jw.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&Bd.browser.weChat&&this._throttledZrFlush(),Qw.call(this,n),tS.call(this,n))))},Ql.prototype.updateLabelLayout=function(){zw.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},Ql.prototype.appendData=function(t){var e;this._disposed?this.id:(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},Ql.internalField=(Xw=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Yw(t,!0),Yw(t,!1),e.plan()},Yw=function(t,e){function n(t){var n,u=t.__requireNewView,h=(t.__requireNewView=!1,"_ec_"+t.id+"_"+t.type),u=!u&&a[h];u||(n=Dn(t.type),(u=new(e?_b.getClass(n.main,n.sub):wb.getClass(n.sub))).init(i,l),a[h]=u,r.push(u),s.add(u.group)),t.__viewId=u.__id=h,u.__alive=!0,u.__model=t,u.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},e||o.prepareView(u,t,i,l)}for(var i=t._model,o=t._scheduler,r=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;u<r.length;u++)r[u].__alive=!1;for(e?i.eachComponent(function(t,e){"series"!==t&&n(e)}):i.eachSeries(n),u=0;u<r.length;){var h=r[u];h.__alive?u++:(e||h.renderTask.dispose(),s.remove(h.group),h.dispose(i,l),r.splice(u,1),a[h.__id]===h&&delete a[h.__id],h.__id=h.group.__ecComponentInfo=null)}},qw=function(t,e,n,i,o){function r(i){i&&i.__alive&&i[e]&&i[e](i.__model,l,t._api,n)}var a,s,l=t._model;l.setUpdatePayload(n),i?((a={})[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"],a={mainType:i,query:a},o&&(a.subType=o),null!=(o=n.excludeSeriesId)&&(s=G(),d(pn(o),function(t){null!=(t=vn(t,null))&&s.set(t,!0)})),lo(n)&&Qi(t._api),l&&l.eachComponent(a,function(e){var i,o,r=s&&null!==s.get(e.id);if(!r)if(lo(n))if(e instanceof vb){if(n.type===Em&&!n.notBlur){var r=e,a=n,l=t._api,u=r.seriesIndex,h=r.getData(a.dataType),a=(_(a=wn(h,a))?a[0]:a)||0,c=h.getItemGraphicEl(a);if(!c)for(var p=h.count(),f=0;!c&&f<p;)c=h.getItemGraphicEl(f++);c?to(u,(a=km(c)).focus,a.blurScope,l):(a=r.get(["emphasis","focus"]),r=r.get(["emphasis","blurScope"]),null!=a&&to(u,a,r,l))}}else u=no(e.mainType,e.componentIndex,n.name,t._api),a=u.focusSelf,r=u.dispatchers,n.type===Em&&a&&!n.notBlur&&eo(e.mainType,e.componentIndex,t._api),r&&d(r,function(t){(n.type===Em?Yi:qi)(t)});else so(n)&&e instanceof vb&&(l=e,r=n,t._api,so(r)&&(i=r.dataType,_(o=wn(l.getData(i),r))||(o=[o]),l[r.type===Vm?"toggleSelect":r.type===zm?"select":"unselect"](o,i)),io(e),uS(t))},t),l&&l.eachComponent(a,function(e){s&&null!==s.get(e.id)||r(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)):d([].concat(t._componentsViews).concat(t._chartsViews),r)},Zw={prepareAndUpdate:function(t){Xw(this),Zw.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(t,e){var n=this._model,i=this._api,o=this._zr,r=this._coordSysMgr,a=this._scheduler;n&&(n.setUpdatePayload(t),a.restoreData(n,t),a.performSeriesTasks(n),r.create(n,i),a.performDataProcessorTasks(n,t),Kw(this,n),r.update(n,i),iS(n),a.performVisualTasks(n,t),oS(this,n,i,t,e),r=n.get("backgroundColor")||"transparent",a=n.get("darkMode"),Bd.canvasSupported?(o.setBackgroundColor(r),null!=a&&"auto"!==a&&o.setDarkMode(a)):(r=$t(t=Ut(r),"rgb"),0===t[3]&&(r="transparent")),zw.trigger("afterupdate",n,i))},updateTransform:function(t){var e,n,i=this,o=this._model,r=this._api;o&&(o.setUpdatePayload(t),e=[],o.eachComponent(function(n,a){"series"!==n&&(n=i.getViewOfComponentModel(a))&&n.__alive&&(!n.updateTransform||(a=n.updateTransform(a,o,r,t))&&a.update)&&e.push(n)}),n=G(),o.eachSeries(function(e){var a=i._chartsMap[e.__viewId];(!a.updateTransform||(a=a.updateTransform(e,o,r,t))&&a.update)&&n.set(e.uid,1)}),iS(o),this._scheduler.performVisualTasks(o,t,{setDirty:!0,dirtyMap:n}),aS(this,o,r,t,{},n),zw.trigger("afterupdate",o,r))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),wb.markUpdateMethod(t,"updateView"),iS(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),oS(this,e,this._api,t,{}),zw.trigger("afterupdate",e,this._api))},updateVisual:function(t){var e=this,n=this._model;n&&(n.setUpdatePayload(t),n.eachSeries(function(t){t.getData().clearAllVisual()}),wb.markUpdateMethod(t,"updateVisual"),iS(n),this._scheduler.performVisualTasks(n,t,{visualType:"visual",setDirty:!0}),n.eachComponent(function(i,o){"series"!==i&&(i=e.getViewOfComponentModel(o))&&i.__alive&&i.updateVisual(o,n,e._api,t)}),n.eachSeries(function(i){e._chartsMap[i.__viewId].updateVisual(i,n,e._api,t)}),zw.trigger("afterupdate",n,this._api))},updateLayout:function(t){Zw.update.call(this,t)}},$w=function(t,e,n,i){if(t._disposed)t.id;else for(var o=t._model,r=t._coordSysMgr.getCoordinateSystems(),a=Cn(o,n),s=0;s<r.length;s++){var l=r[s];if(l[e]&&null!=(l=l[e](o,a,i)))return l}},Kw=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},Jw=function(t,e){var n,i,o=this,r=this.getModel(),a=t.type,u=t.escapeConnect,h=gS[a],c=h.actionInfo,p=(c.update||"update").split(":"),g=p.pop(),y=null!=p[0]&&Dn(p[0]),p=(this[Vw]=!0,[t]),m=!1,v=(t.batch&&(m=!0,p=f(t.batch,function(e){return(e=l(s({},e),t)).batch=null,e})),[]),_=so(t),x=lo(t);d(p,function(e){var i,r;(n=(n=h.action(e,o._model,o._api))||s({},e)).type=c.event||n.type,v.push(n),x?(i=(r=Tn(t)).queryOptionMap,r=r.mainTypeSpecified?i.keys()[0]:"series",qw(o,g,e,r),uS(o)):_?(qw(o,g,e,"series"),uS(o)):y&&qw(o,g,e,y.main,y.sub)}),"none"===g||x||_||y||(this[Hw]?(Xw(this),Zw.update.call(this,t),this[Hw]=null):Zw[g].call(this,t)),n=m?{type:c.event||a,escapeConnect:u,batch:v}:v[0],this[Vw]=!1,e||((p=this._messageCenter).trigger(n.type,n),_&&(m={type:"selectchanged",escapeConnect:u,selected:(i=[],r.eachSeries(function(t){d(t.getAllData(),function(e){e.data;var e=e.type,n=t.getSelectedDataIndices();0<n.length&&(n={dataIndex:n,seriesIndex:t.seriesIndex},null!=e&&(n.dataType=e),i.push(n))})}),i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t},p.trigger(m.type,m)))},Qw=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Jw.call(this,n,t)}},tS=function(t){t||this.trigger("updated")},eS=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[Hw]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},nS=function(t,e){t.on("mouseover",function(t){var n,i,o,r,a=al(t.target,ao);a&&(a=a,n=t,t=e._api,i=km(a),o=(r=no(i.componentMainType,i.componentIndex,i.componentHighDownName,t)).dispatchers,r=r.focusSelf,o?(r&&eo(i.componentMainType,i.componentIndex,t),d(o,function(t){return ji(t,n)})):(to(i.seriesIndex,i.focus,i.blurScope,t),"self"===i.focus&&eo(i.componentMainType,i.componentIndex,t),ji(a,n)),uS(e))}).on("mouseout",function(t){var n,i,o=al(t.target,ao);o&&(o=o,n=t,Qi(t=e._api),(i=no((i=km(o)).componentMainType,i.componentIndex,i.componentHighDownName,t).dispatchers)?d(i,function(t){return Xi(t,n)}):Xi(o,n),uS(e))}).on("click",function(t){var n,t=al(t.target,function(t){return null!=km(t).dataIndex},!0);t&&(n=t.selected?"unselect":"select",t=km(t),e._api.dispatchAction({type:n,dataType:t.dataType,dataIndexInside:t.dataIndex,seriesIndex:t.seriesIndex,isFromClick:!0}))})},iS=function(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})},oS=function(t,e,n,i,o){rS(t,e,n,i,o),d(t._chartsViews,function(t){t.__alive=!1}),aS(t,e,n,i,o),d(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},rS=function(t,e,n,i,o,r){d(r||t._componentsViews,function(t){var o=t.__model;nu(0,t),t.render(o,e,n,i),eu(o,t),iu(o,t)})},aS=function(t,e,n,i,o,r){var a,l,u,h,c=t._scheduler,p=(o=s(o||{},{updatedSeries:e.getSeries()}),zw.trigger("series:beforeupdate",e,n,o),!1);e.eachSeries(function(e){var n,o=t._chartsMap[e.__viewId],a=(o.__alive=!0,o.renderTask);c.updatePayload(a,i),nu(0,o),r&&r.get(e.uid)&&a.dirty(),a.perform(c.getPerformArgs(a))&&(p=!0),o.group.silent=!!e.get("silent"),a=o,n=e.get("blendMode")||null,a.group.traverse(function(t){t.isGroup||(t.style.blend=n),t.eachPendingDisplayable&&t.eachPendingDisplayable(function(t){t.style.blend=n})}),io(e)}),c.unfinished=p||c.unfinished,zw.trigger("series:layoutlabels",e,n,o),zw.trigger("series:transition",e,n,o),e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];eu(e,n),iu(e,n)}),l=e,u=(a=t)._zr.storage,h=0,u.traverse(function(t){t.isGroup||h++}),h>l.get("hoverLayerThreshold")&&!Bd.node&&!Bd.worker&&l.eachSeries(function(t){t.preventUsingHoverLayer||(t=a._chartsMap[t.__viewId]).__alive&&t.group.traverse(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}),zw.trigger("series:afterupdate",e,n,o)},uS=function(t){t[Gw]=!0,t.getZr().wakeUp()},hS=function(t){t[Gw]&&(t.getZr().storage.traverse(function(t){Ho(t)||tu(t)}),t[Gw]=!1)},sS=function(t){function n(){return null!==i&&i.apply(this,arguments)||this}return e(n,i=ca),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){Yi(e,n),uS(t)},n.prototype.leaveEmphasis=function(e,n){qi(e,n),uS(t)},n.prototype.enterBlur=function(e){Vi(e,Ni),uS(t)},n.prototype.leaveBlur=function(e){Zi(e),uS(t)},n.prototype.enterSelect=function(e){$i(e),uS(t)},n.prototype.leaveSelect=function(e){Ki(e),uS(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},new n(t);var i},void(lS=function(t){function e(t,e){for(var n=0;n<t.length;n++)t[n][Uw]=e}d(yS,function(n,i){t._messageCenter.on(i,function(n){var i,o;!SS[t.group]||0===t[Uw]||n&&n.escapeConnect||(i=t.makeActionFromEvent(n),o=[],d(wS,function(e){e!==t&&e.group===t.group&&o.push(e)}),e(o,0),d(o,function(t){1!==t[Uw]&&t.dispatchAction(i)}),e(o,2))})})})),Ql),jb=dS.prototype,fS=(jb.on=Zl("on"),jb.off=Zl("off"),jb.one=function(t,e,n){var i=this;this.on.call(this,t,function n(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];e&&e.apply&&e.apply(this,o),i.off(t,n)},n)},["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"]),gS={},yS={},mS=[],vS=[],_S=[],xS={},bS={},wS={},SS={},CS=+new Date,TS=+new Date,MS="_echarts_instance_";Xb=ou;var kS=[];gu(2e3,ny),gu(4500,Eg),gu(4500,N_),gu(2e3,Fb),gu(4500,Hb),gu(7e3,function(t,e){t.eachRawSeries(function(n){var i;!t.isSeriesFiltered(n)&&((i=n.getData()).hasItemVisual()&&i.each(function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=kl(n,e))}),n=i.getVisual("decal"))&&(i.getVisual("style").decal=kl(n,e))})}),su(Ma),lu(900,function(t){var e=G();t.eachSeries(function(t){var n,i=t.get("stack");i&&(i=e.get(i)||e.set(i,[]),(t={stackResultDimension:(n=t.getData()).getCalculationInfo("stackResultDimension"),stackedOverDimension:n.getCalculationInfo("stackedOverDimension"),stackedDimension:n.getCalculationInfo("stackedDimension"),stackedByDimension:n.getCalculationInfo("stackedByDimension"),isStackedByIndex:n.getCalculationInfo("isStackedByIndex"),data:n,seriesModel:t}).stackedDimension)&&(t.isStackedByIndex||t.stackedByDimension)&&(i.length&&n.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(t))}),e.each(ka)}),mu("default",function(t,e){l(e=e||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n,i=new zg,o=new xm({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),r=(i.add(o),new Cm({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001})),a=new xm({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return i.add(a),e.showSpinner&&((n=new Hv({shape:{startAngle:-Pb/2,endAngle:-Pb/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Pb/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*Pb/2}).delay(300).start("circularInOut"),i.add(n)),i.resize=function(){var i=r.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,i=(t.getWidth()-2*s-(e.showSpinner&&i?10:0)-i)/2-(e.showSpinner&&i?0:5+i/2)+(e.showSpinner?0:i/2)+(i?0:s),l=t.getHeight()/2;e.showSpinner&&n.setShape({cx:i,cy:l}),a.setShape({x:i-s,y:l-s,width:2*s,height:2*s}),o.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},i.resize(),i}),pu({type:Em,event:Em,update:Em},X),pu({type:Bm,event:Bm,update:Bm},X),pu({type:zm,event:zm,update:zm},X),pu({type:Fm,event:Fm,update:Fm},X),pu({type:Vm,event:Vm,update:Vm},X),au("light",x_),au("dark",Uv),wu.prototype.add=function(t){return this._add=t,this},wu.prototype.update=function(t){return this._update=t,this},wu.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},wu.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},wu.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},wu.prototype.remove=function(t){return this._remove=t,this},wu.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},wu.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var r=0;r<t.length;r++){var a,s=i[r],l=n[s],u=xu(l);1<u?(a=l.shift(),1===l.length&&(n[s]=l[0]),this._update&&this._update(a,r)):1===u?(n[s]=null,this._update&&this._update(l,r)):this._remove&&this._remove(r)}this._performRestAdd(o,n)},wu.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},o=[],r=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(e,i,r,"_newKeyGetter");for(var a=0;a<o.length;a++){var s=o[a],l=n[s],u=i[s],h=xu(l),c=xu(u);if(1<h&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&1<c)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(1<h&&1<c)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(1<h)for(var p=0;p<h;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(r,i)},wu.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],o=e[i],r=xu(o);if(1<r)for(var a=0;a<r;a++)this._add&&this._add(o[a]);else 1===r&&this._add&&this._add(o);e[i]=null}},wu.prototype._initIndexMap=function(t,e,n,i){for(var o=this._diffModeMultiple,r=0;r<t.length;r++){var a,s,l="_ec_"+this[i](t[r],r);o||(n[r]=l),e&&(0===(s=xu(a=e[l]))?(e[l]=r,o&&n.push(l)):1===s?e[l]=[a,r]:a.push(r))}};var IS=wu;Su.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},Su.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames};var DS,AS,PS,OS,LS,RS,NS,ES=Su,BS=function(t){this.otherDims={},null!=t&&s(this,t)},zS=Sn(),FS={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},VS=(Mu.prototype.isDimensionOmitted=function(){return this._dimOmitted},Mu.prototype._updateDimOmitted=function(t){(this._dimOmitted=t)&&!this._dimNameMap&&(this._dimNameMap=Du(this.source))},Mu.prototype.getSourceDimensionIndex=function(t){return L(this._dimNameMap.get(t),-1)},Mu.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},Mu.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Ra(this.source),n=!(30<t),i="",o=[],r=0,a=0;r<t;r++){var s,l=void 0,u=void 0,h=void 0,c=this.dimensions[a];c&&c.storeDimIndex===r?(l=e?c.name:null,u=c.type,h=c.ordinalMeta,a++):(s=this.getSourceDimension(r))&&(l=e?s.name:null,u=s.type),o.push({property:l,type:u,ordinalMeta:h}),!e||null==l||c&&c.isCalculationCoord||(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i=i+"$"+(FS[u]||"f"),h&&(i+=h.uid),i+="$"}var p=this.source;return{dimensions:o,hash:[p.seriesLayoutBy,p.startIndex,i].join("$$")}},Mu.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,o=this.dimensions[n];o&&o.storeDimIndex===e?(o.isCalculationCoord||(i=o.name),n++):(o=this.getSourceDimension(e))&&(i=o.name),t.push(i)}return t},Mu.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},Mu),HS=C,GS=f,WS="undefined"==typeof Int32Array?Array:Int32Array,US=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],jS=["_approximateExtent"],XS=(Au.prototype.getDimension=function(t){var e;return null==(e=this._recognizeDimIndex(t))?t:(e=t,this._dimOmitted?null!=(t=this._dimIdxToName.get(e))?t:(t=this._schema.getSourceDimension(e))?t.name:void 0:this.dimensions[e])},Au.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);return null!=e?e:null==t?-1:(e=this._getDimInfo(t))?e.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},Au.prototype._recognizeDimIndex=function(t){if("number"==typeof t||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},Au.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},Au.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},Au.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},Au.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},Au.prototype.mapDimension=function(t,e){var n=this._dimSummary;return null==e?n.encodeFirstDimNotExtra[t]:(n=n.encode[t])?n[e]:null},Au.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},Au.prototype.getStore=function(){return this._store},Au.prototype.initData=function(t,e,n){var i,o,r=this;(i=t instanceof ub?t:i)||(o=this.dimensions,t=Ia(t)||p(t)?new zx(t,o.length):t,i=new ub,o=GS(o,function(t){return{type:r._dimInfos[t].type,property:t}}),i.initData(t,o,n)),this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=Cu(this,this._schema),this.userOutput=this._dimSummary.userOutput},Au.prototype.appendData=function(t){t=this._store.appendData(t),this._doInit(t[0],t[1])},Au.prototype.appendValues=function(t,e){var t=this._store.appendValues(t,e.length),n=t.start,i=t.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var r=n;r<i;r++)this._nameList[r]=e[r-n],o&&NS(this,r)},Au.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},Au.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==ux&&!t.fillStorage},Au.prototype._doInit=function(t,e){if(!(e<=t)){var n=this._store.getProvider(),i=(this._updateOrdinalMeta(),this._nameList),o=this._idList;if(n.getSource().sourceFormat===rx&&!n.pure)for(var r=[],a=t;a<e;a++){var s,l=n.getItem(a,r);this.hasItemOption||!C(s=l)||s instanceof Array||(this.hasItemOption=!0),l&&(s=l.name,null==i[a]&&null!=s&&(i[a]=vn(s,null)),l=l.id,null==o[a])&&null!=l&&(o[a]=vn(l,null))}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)NS(this,a);DS(this)}},Au.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},Au.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},Au.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},Au.prototype.setCalculationInfo=function(t,e){HS(t)?s(this._calculationInfo,t):this._calculationInfo[t]=e},Au.prototype.getName=function(t){var t=this.getRawIndex(t),e=this._nameList[t];return e=null==(e=null==e&&null!=this._nameDimIdx?PS(this,this._nameDimIdx,t):e)?"":e},Au.prototype._getCategory=function(t,e){return e=this._store.get(t,e),t=this._store.getOrdinalMeta(t),t?t.categories[e]:e},Au.prototype.getId=function(t){return AS(this,this.getRawIndex(t))},Au.prototype.count=function(){return this._store.count()},Au.prototype.get=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.get(t.storeDimIndex,e)},Au.prototype.getByRawIndex=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.getByRawIndex(t.storeDimIndex,e)},Au.prototype.getIndices=function(){return this._store.getIndices()},Au.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},Au.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},Au.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},Au.prototype.getValues=function(t,e){var n=this,i=this._store;return _(t)?i.getValues(GS(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},Au.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},Au.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},Au.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},Au.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},Au.prototype.rawIndexOf=function(t,e){return t=(t&&this._invertedIndicesMap[t])[e],null==t||isNaN(t)?-1:t},Au.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},Au.prototype.each=function(t,e,n){"function"==typeof t&&(n=e,e=t,t=[]),n=n||this,t=GS(OS(t),this._getStoreDimIndex,this),this._store.each(t,n?Kd(e,n):e)},Au.prototype.filterSelf=function(t,e,n){return"function"==typeof t&&(n=e,e=t,t=[]),n=n||this,t=GS(OS(t),this._getStoreDimIndex,this),this._store=this._store.filter(t,n?Kd(e,n):e),this},Au.prototype.selectRange=function(t){var e=this,n={};return d(m(t),function(i){var o=e._getStoreDimIndex(i);n[o]=t[i]}),this._store=this._store.selectRange(n),this},Au.prototype.mapArray=function(t,e,n){"function"==typeof t&&(n=e,e=t,t=[]);var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n=n||this),i},Au.prototype.map=function(t,e,n,i){return n=n||i||this,i=GS(OS(t),this._getStoreDimIndex,this),t=RS(this),t._store=this._store.map(i,n?Kd(e,n):e),t},Au.prototype.modify=function(t,e,n,i){n=n||i||this,i=GS(OS(t),this._getStoreDimIndex,this),this._store.modify(i,n?Kd(e,n):e)},Au.prototype.downSample=function(t,e,n,i){var o=RS(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),o},Au.prototype.lttbDownSample=function(t,e){var n=RS(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},Au.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},Au.prototype.getItemModel=function(t){var e=this.hostModel,t=this.getRawDataItem(t);return new w_(t,e,e&&e.ecModel)},Au.prototype.diff=function(t){var e=this;return new IS(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return AS(t,e)},function(t){return AS(e,t)})},Au.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},Au.prototype.setVisual=function(t,e){this._visual=this._visual||{},HS(t)?s(this._visual,t):this._visual[t]=e},Au.prototype.getItemVisual=function(t,e){return t=this._itemVisuals[t],t=t&&t[e],null==t?this.getVisual(e):t},Au.prototype.hasItemVisual=function(){return 0<this._itemVisuals.length},Au.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t],n=(i=i||(n[t]={}))[e];return null==n&&(_(n=this.getVisual(e))?n=n.slice():HS(n)&&(n=s({},n)),i[e]=n),n},Au.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,HS(e)?s(i,e):i[e]=n},Au.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},Au.prototype.setLayout=function(t,e){if(HS(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},Au.prototype.getLayout=function(t){return this._layout[t]},Au.prototype.getItemLayout=function(t){return this._itemLayouts[t]},Au.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?s(this._itemLayouts[t]||{},e):e},Au.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},Au.prototype.setItemGraphicEl=function(t,e){var n,i,o,r,a=this.hostModel&&this.hostModel.seriesIndex;n=a,i=this.dataType,o=t,(a=e)&&((r=km(a)).dataIndex=o,r.dataType=i,r.seriesIndex=n,"group"===a.type)&&a.traverse(function(t){t=km(t),t.seriesIndex=n,t.dataIndex=o,t.dataType=i}),this._graphicEls[t]=e},Au.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},Au.prototype.eachItemGraphicEl=function(t,e){d(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},Au.prototype.cloneShallow=function(t){return t=t||new Au(this._schema||GS(this.dimensions,this._getDimInfo,this),this.hostModel),LS(t,this),t._store=this._store,t},Au.prototype.wrapMethod=function(t,e){var n=this[t];"function"==typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(N(arguments)))})},Au.internalField=(DS=function(t){var e=t._invertedIndicesMap;d(e,function(n,i){var o=t._dimInfos[i],r=o.ordinalMeta,a=t._store;if(r){n=e[i]=new WS(r.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(o.storeDimIndex,s)]=s}})},PS=function(t,e,n){return vn(t._getCategory(e,n),null)},AS=function(t,e){var n=t._idList[e];return n=null==(n=null==n&&null!=t._idDimIdx?PS(t,t._idDimIdx,e):n)?"e\0\0"+e:n},OS=function(t){return t=_(t)?t:null!=t?[t]:[]},RS=function(t){var e=new Au(t._schema||GS(t.dimensions,t._getDimInfo,t),t.hostModel);return LS(e,t),e},LS=function(t,e){d(US.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,d(jS,function(n){t[n]=r(e[n])}),t._calculationInfo=s({},e._calculationInfo)},void(NS=function(t,e){var n=t._nameList,i=t._idList,o=t._nameDimIdx,r=t._idDimIdx,a=n[e],s=i[e];null==a&&null!=o&&(n[e]=a=PS(t,o,e)),null==s&&null!=r&&(i[e]=s=PS(t,r,e)),null==s&&null!=a&&(s=a,1<(o=(n=t._nameRepeatCount)[a]=(n[a]||0)+1)&&(s+="__ec__"+o),i[e]=s)})),Au),YS=function(t){this.coordSysDims=[],this.axisMap=G(),this.categoryAxisMap=G(),this.coordSysName=t},qS={cartesian2d:function(t,e,n,i){var o=t.getReferringComponents("xAxis",$g).models[0],t=t.getReferringComponents("yAxis",$g).models[0];e.coordSysDims=["x","y"],n.set("x",o),n.set("y",t),Ou(o)&&(i.set("x",o),e.firstCategoryDimIndex=0),Ou(t)&&(i.set("y",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){t=t.getReferringComponents("singleAxis",$g).models[0],e.coordSysDims=["single"],n.set("single",t),Ou(t)&&(i.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var t=t.getReferringComponents("polar",$g).models[0],o=t.findAxisModel("radiusAxis"),t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",t),Ou(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),Ou(t)&&(i.set("angle",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var o=t.ecModel,t=o.getComponent("parallel",t.get("parallelIndex")),r=e.coordSysDims=t.dimensions.slice();d(t.parallelAxisIndex,function(t,a){var t=o.getComponent("parallelAxis",t),s=r[a];n.set(s,t),Ou(t)&&(i.set(s,t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=a)})}};Bu.prototype.getSetting=function(t){return this._setting[t]},Bu.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},Bu.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Bu.prototype.getExtent=function(){return this._extent.slice()},Bu.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},Bu.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},Bu.prototype.isBlank=function(){return this._isBlank},Bu.prototype.setBlank=function(t){this._isBlank=t};var ZS=Bu;Rn(ZS);var $S=0,KS=(zu.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&f(e,Fu);return new zu({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},zu.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},zu.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return"string"==typeof t||i?(i&&!this._deduplication?(n=this.categories.length,this.categories[n]=t):null==(n=(e=this._getOrCreateMap()).get(t))&&(i?(n=this.categories.length,this.categories[n]=t,e.set(t,n)):n=NaN),n):t},zu.prototype._getOrCreateMap=function(){return this._map||(this._map=G(this.categories))},zu),JS=$e;e(Xu,QS=ZS),Xu.prototype.parse=function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},Xu.prototype.contain=function(t){return Wu(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},Xu.prototype.normalize=function(t){return Uu(t=this._getTickNumber(this.parse(t)),this._extent)},Xu.prototype.scale=function(t){return t=Math.round(ju(t,this._extent)),this.getRawOrdinalNumber(t)},Xu.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},Xu.prototype.getMinorTicks=function(t){},Xu.prototype.setSortInfo=function(t){if(null==t)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,r=this._ordinalMeta.categories.length,a=Math.min(r,e.length);o<a;++o){var s=e[o];i[n[o]=s]=o}for(var l=0;o<r;++o){for(;null!=i[l];)l++;n.push(l),i[l]=o}}},Xu.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0<=t&&t<e.length?e[t]:t},Xu.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0<=t&&t<e.length?e[t]:t},Xu.prototype.getLabel=function(t){if(!this.isBlank())return t=this.getRawOrdinalNumber(t.value),null==(t=this._ordinalMeta.categories[t])?"":t+""},Xu.prototype.count=function(){return this._extent[1]-this._extent[0]+1},Xu.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Xu.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},Xu.prototype.getOrdinalMeta=function(){return this._ordinalMeta},Xu.prototype.niceTicks=function(){},Xu.prototype.niceExtent=function(){},Xu.type="ordinal";var QS,tC=Xu;ZS.registerClass(tC);var eC,nC=$e,iC=(e(Yu,eC=ZS),Yu.prototype.parse=function(t){return t},Yu.prototype.contain=function(t){return Wu(t,this._extent)},Yu.prototype.normalize=function(t){return Uu(t,this._extent)},Yu.prototype.scale=function(t){return ju(t,this._extent)},Yu.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},Yu.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},Yu.prototype.getInterval=function(){return this._interval},Yu.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Hu(t)},Yu.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,r=[];if(e){n[0]<i[0]&&r.push(t?{value:nC(i[0]-e,o)}:{value:n[0]});for(var a=i[0];a<=i[1]&&(r.push({value:a}),(a=nC(a+e,o))!==r[r.length-1].value);)if(1e4<r.length)return[];var s=r.length?r[r.length-1].value:i[1];n[1]>s&&r.push(t?{value:nC(s+e,o)}:{value:n[1]})}return r},Yu.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<e.length;o++){for(var r=e[o],a=e[o-1],s=0,l=[],u=(r.value-a.value)/t;s<t-1;){var h=nC(a.value+(s+1)*u);h>i[0]&&h<i[1]&&l.push(h),s++}n.push(l)}return n},Yu.prototype.getLabel=function(t,e){return null==t?"":(null==(e=e&&e.precision)?e=Ke(t.value)||0:"auto"===e&&(e=this._intervalPrecision),Vr(nC(t.value,e,!0)))},Yu.prototype.niceTicks=function(t,e,n){t=t||5;var i=this._extent,o=i[1]-i[0];isFinite(o)&&(o<0&&i.reverse(),o=Vu(i,t,e,n),this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent)},Yu.prototype.niceExtent=function(t){var e=this._extent,n=(e[0]===e[1]&&(0!==e[0]?(n=e[0],t.fixMax||(e[1]+=n/2),e[0]-=n/2):e[1]=1),e[1]-e[0]),n=(isFinite(n)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval),this._interval);t.fixMin||(e[0]=nC(Math.floor(e[0]/n)*n)),t.fixMax||(e[1]=nC(Math.ceil(e[1]/n)*n))},Yu.type="interval",Yu);ZS.registerClass(iC);var oC="__ec_stack_";"undefined"==typeof Float32Array&&Array,zs(),e(th,rC=iC),th.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Cr(t.value,E_[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Sr(this._minLevelUnit))]||E_.second,e,this.getSetting("locale"))},th.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale"),r=null;if("string"==typeof n)r=n;else if("function"==typeof n)r=n(t.value,e,{level:t.level});else{var a=s({},R_);if(0<t.level)for(var u=0;u<B_.length;++u)a[B_[u]]="{primary|"+a[B_[u]]+"}";var h=n?!1===n.inherit?n:l(n,a):a,c=Tr(t.value,i);if(h[c])r=h[c];else if(h.inherit){for(u=z_.indexOf(c)-1;0<=u;--u)if(h[c]){r=h[c];break}r=r||a.none}_(r)&&(e=null==t.level?0:0<=t.level?t.level:r.length+t.level,r=r[e=Math.min(e,r.length-1)])}return Cr(new Date(t.value),r,i,o)},th.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=[];return e&&(i.push({value:n[0],level:0}),e=this.getSetting("useUTC"),e=function(t,e,n,i){for(var o=z_,r=0,a=[],s=[],l=0,u=0,h=0;h<o.length&&r++<1e4;++h){var c=Sr(o[h]);if(function(t){return t===Sr(t)}(o[h])){!function(t,o,r){var a=[],s=!o.length;if(!function(t,e,n,i){function o(t){return Mr(c,t,i)===Mr(p,t,i)}function r(){return o("year")}function a(){return r()&&o("month")}function s(){return a()&&o("day")}function l(){return s()&&o("hour")}function u(){return l()&&o("minute")}function h(){return u()&&o("second")}var c=nn(e),p=nn(n);switch(t){case"year":return r();case"month":return a();case"day":return s();case"hour":return l();case"minute":return u();case"second":return h();case"millisecond":return h()&&o("millisecond")}}(Sr(t),i[0],i[1],n)){s&&(o=[{value:function(t,e,n){var i=new Date(t);switch(Sr(e)){case"year":case"month":i[Rr(n)](0);case"day":i[Nr(n)](1);case"hour":i[Er(n)](0);case"minute":i[Br(n)](0);case"second":i[zr(n)](0),i[Fr(n)](0)}return i.getTime()}(new Date(i[0]),t,n)},{value:i[1]}]);for(var l,u,h=0;h<o.length-1;h++){var c=o[h].value,p=o[h+1].value;if(c!==p){var d=void 0,f=void 0,g=void 0;switch(t){case"year":d=Math.max(1,Math.round(e/L_/365)),f=kr(n),g=n?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":u=e,d=6<(u/=30*L_)?6:3<u?3:2<u?2:1,f=Ir(n),g=Rr(n);break;case"week":case"half-week":case"day":u=e,d=16<(u/=L_)?16:7.5<u?7:3.5<u?4:1.5<u?2:1,f=Dr(n),g=Nr(n);break;case"half-day":case"quarter-day":case"hour":l=e,d=12<(l/=O_)?12:6<l?6:3.5<l?4:2<l?2:1,f=Ar(n),g=Er(n);break;case"minute":d=eh(e,!0),f=Pr(n),g=Br(n);break;case"second":d=eh(e,!1),f=Or(n),g=zr(n);break;case"millisecond":d=an(e,!0),f=Lr(n),g=Fr(n)}C=S=w=b=x=_=v=m=y=void 0;for(var y=d,m=c,v=p,_=f,x=g,b=a,w=new Date(m),S=m,C=w[_]();S<v&&S<=i[1];)b.push({value:S}),w[x](C+=y),S=w.getTime();b.push({value:S,notAdd:!0}),"year"===t&&1<r.length&&0===h&&r.unshift({value:r[0].value-d})}}for(h=0;h<a.length;h++)r.push(a[h])}}(o[h],a[a.length-1]||[],s);if(c!==(o[h+1]?Sr(o[h+1]):null)){if(s.length){u=l,s.sort(function(t,e){return t.value-e.value});for(var p=[],d=0;d<s.length;++d){var g=s[d].value;0!==d&&s[d-1].value===g||(p.push(s[d]),g>=i[0]&&g<=i[1]&&l++)}if(1.5*(c=(i[1]-i[0])/e)<l&&c/1.5<u)break;if(a.push(p),c<l||t===o[h])break}s=[]}}}for(var m=y(f(a,function(t){return y(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return 0<t.length}),v=[],_=m.length-1,h=0;h<m.length;++h)for(var x=m[h],b=0;b<x.length;++b)v.push({value:x[b].value,level:_-h});v.sort(function(t,e){return t.value-e.value});for(var w=[],h=0;h<v.length;++h)0!==h&&v[h].value===v[h-1].value||w.push(v[h]);return w}(this._minLevelUnit,this._approxInterval,e,n),(i=i.concat(e)).push({value:n[1],level:0})),i},th.prototype.niceExtent=function(t){var e,n=this._extent;n[0]===n[1]&&(n[0]-=L_,n[1]+=L_),n[1]===-1/0&&n[0]===1/0&&(e=new Date,n[1]=+new Date(e.getFullYear(),e.getMonth(),e.getDate()),n[0]=n[1]-L_),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval)},th.prototype.niceTicks=function(t,e,n){var i=this._extent,i=i[1]-i[0],i=(this._approxInterval=i/(t=t||10),null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n),sC.length),t=Math.min(function(t,e,n,i){for(;n<i;){var o=n+i>>>1;t[o][1]<e?n=1+o:i=o}return n}(sC,this._approxInterval,0,i),i-1);this._interval=sC[t][1],this._minLevelUnit=sC[Math.max(t-1,0)][0]},th.prototype.parse=function(t){return"number"==typeof t?t:+nn(t)},th.prototype.contain=function(t){return Wu(this.parse(t),this._extent)},th.prototype.normalize=function(t){return Uu(this.parse(t),this._extent)},th.prototype.scale=function(t){return ju(t,this._extent)},th.type="time";var rC,aC=th,sC=[["second",A_],["minute",P_],["hour",O_],["quarter-day",6*O_],["half-day",12*O_],["day",1.2*L_],["half-week",3.5*L_],["week",7*L_],["month",31*L_],["quarter",95*L_],["half-year",ty/2],["year",ty]];ZS.registerClass(aC);var lC,uC=ZS.prototype,hC=iC.prototype,cC=$e,pC=Math.floor,dC=Math.ceil,fC=Math.pow,gC=Math.log,yC=(e(nh,lC=ZS),nh.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return f(hC.getTicks.call(this,t),function(t){var t=t.value,e=$e(fC(this.base,t)),e=t===n[0]&&this._fixMin?ih(e,i[0]):e;return{value:t===n[1]&&this._fixMax?ih(e,i[1]):e}},this)},nh.prototype.setExtent=function(t,e){var n=this.base;t=gC(t)/gC(n),e=gC(e)/gC(n),hC.setExtent.call(this,t,e)},nh.prototype.getExtent=function(){var t=this.base,e=uC.getExtent.call(this);return e[0]=fC(t,e[0]),e[1]=fC(t,e[1]),t=this._originalScale.getExtent(),this._fixMin&&(e[0]=ih(e[0],t[0])),this._fixMax&&(e[1]=ih(e[1],t[1])),e},nh.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=gC(t[0])/gC(e),t[1]=gC(t[1])/gC(e),uC.unionExtent.call(this,t)},nh.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},nh.prototype.niceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n==1/0||n<=0)){var i=on(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&0<Math.abs(i);)i*=10;t=[$e(dC(e[0]/i)*i),$e(pC(e[1]/i)*i)],this._interval=i,this._niceExtent=t}},nh.prototype.niceExtent=function(t){hC.niceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},nh.prototype.parse=function(t){return t},nh.prototype.contain=function(t){return Wu(t=gC(t)/gC(this.base),this._extent)},nh.prototype.normalize=function(t){return Uu(t=gC(t)/gC(this.base),this._extent)},nh.prototype.scale=function(t){return t=ju(t,this._extent),fC(this.base,t)},nh.type="log",nh);qb=yC.prototype,qb.getMinorTicks=hC.getMinorTicks,qb.getLabel=hC.getLabel,ZS.registerClass(yC),oh.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type,o=(this._needCrossZero=e.getNeedCrossZero&&e.getNeedCrossZero(),this._modelMinRaw=e.get("min",!0)),o=(x(o)?this._modelMinNum=rh(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=rh(t,o)),this._modelMaxRaw=e.get("max",!0));x(o)?this._modelMaxNum=rh(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=rh(t,o)),i?this._axisDataLen=e.getCategories().length:"boolean"==typeof(t=_(n=e.get("boundaryGap"))?n:[n||0,n||0])[0]||"boolean"==typeof t[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Ee(t[0],1),Ee(t[1],1)]},oh.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,r=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s,e=(null==a&&(a=t?i?0:NaN:e-o[0]*r),null==s&&(s=t?i?i-1:NaN:n+o[1]*r),null!=a&&isFinite(a)||(a=NaN),(s=null!=s&&isFinite(s)?s:NaN)<a&&(s=a=NaN),P(a)||P(s)||t&&!i),n=(this._needCrossZero&&(a=0<a&&0<s&&!l?0:a)<0&&s<0&&!u&&(s=0),this._determinedMin),o=this._determinedMax;return null!=n&&(a=n,l=!0),null!=o&&(s=o,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:e}},oh.prototype.modifyDataMinMax=function(t,e){this[_C[t]]=e},oh.prototype.setDeterminedMinMax=function(t,e){this[vC[t]]=e},oh.prototype.freeze=function(){this.frozen=!0};var mC=oh,vC={min:"_determinedMin",max:"_determinedMax"},_C={min:"_dataMin",max:"_dataMax"};fh.prototype.getNeedCrossZero=function(){return!this.option.scale},fh.prototype.getCoordSysModel=function(){};var xC=fh,jb=Object.freeze({__proto__:null,createDimensions:function(t,e){return Pu(t,e).dimensions},createList:function(t){return Eu(null,t)},createScale:function(t,e){var n=e;return(e=lh(n=e instanceof w_?n:new w_(e))).setExtent(t[0],t[1]),sh(e,n),e},createSymbol:ul,createTextStyle:function(t,e){return pr(t,null,null,"normal"!==(e=e||{}).state)},dataStack:{isDimensionStacked:Ru,enableDataStack:Lu,getStackedDimension:Nu},enableHoverEmphasis:oo,getECData:km,getLayoutRect:$r,mixinAxisModelCommonMethods:function(t){c(t,xC)}}),bC=[],wC={registerPreprocessor:su,registerProcessor:lu,registerPostInit:uu,registerPostUpdate:hu,registerUpdateLifecycle:cu,registerAction:pu,registerCoordinateSystem:du,registerLayout:fu,registerVisual:gu,registerTransform:_u,registerLoading:mu,registerMap:vu,PRIORITY:Yb,ComponentModel:J_,ComponentView:_b,SeriesModel:vb,ChartView:wb,registerComponentModel:function(t){J_.registerClass(t)},registerComponentView:function(t){_b.registerClass(t)},registerSeriesModel:function(t){vb.registerClass(t)},registerChartView:function(t){wb.registerClass(t)},registerSubTypeDefaulter:function(t,e){J_.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Ye(t,e)}},ny=Object.freeze({__proto__:null,MAX_SAFE_INTEGER:9007199254740991,asc:function(t){return t.sort(function(t,e){return t-e}),t},getPercentWithPrecision:function(t,e,n){if(!t[e])return 0;var i=g(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var o=Math.pow(10,n),n=f(t,function(t){return(isNaN(t)?0:t)/i*o*100}),r=100*o,a=f(n,function(t){return Math.floor(t)}),s=g(a,function(t,e){return t+e},0),l=f(n,function(t,e){return t-a[e]});s<r;){for(var u=Number.NEGATIVE_INFINITY,h=null,c=0,p=l.length;c<p;++c)l[c]>u&&(u=l[c],h=c);++a[h],l[h]=0,++s}return a[e]/o},getPixelPrecision:Qe,getPrecision:Ke,getPrecisionSafe:Je,isNumeric:ln,isRadianAroundZero:en,linearMap:qe,nice:an,numericToNumber:sn,parseDate:nn,quantile:function(t,e){var e=(t.length-1)*e+1,n=Math.floor(e),i=+t[n-1];return(e-=n)?i+e*(t[n]-i):i},quantity:on,quantityExponent:rn,reformIntervals:function(t){t.sort(function(t,e){return function t(e,n,i){return e.interval[i]<n.interval[i]||e.interval[i]===n.interval[i]&&(e.close[i]-n.close[i]==(i?-1:1)||!i&&t(e,n,1))}(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i<t.length;){for(var o=t[i].interval,r=t[i].close,a=0;a<2;a++)o[a]<=e&&(o[a]=e,r[a]=a?1:1-n),e=o[a],n=r[a];o[0]===o[1]&&r[0]*r[1]!=1?t.splice(i,1):i++}return t},remRadian:tn,round:$e}),Eg=Object.freeze({__proto__:null,format:Cr,parse:nn}),N_=Object.freeze({__proto__:null,Arc:Hv,BezierCurve:zv,BoundingRect:kg,Circle:ov,CompoundPath:Wv,Ellipse:sv,Group:zg,Image:gm,IncrementalDisplayable:n_,Line:Rv,LinearGradient:Xv,Polygon:kv,Polyline:Av,RadialGradient:Zv,Rect:xm,Ring:Cv,Sector:bv,Text:Cm,clipPointsByRect:ir,clipRectByRect:or,createIcon:rr,extendPath:jo,extendShape:Uo,getShapeClass:Yo,getTransform:Qo,initProps:Vo,makeImage:Zo,makePath:qo,mergePath:Ko,registerShape:Xo,resizePath:Jo,updateProps:Fo}),Fb=Object.freeze({__proto__:null,addCommas:Vr,capitalFirst:function(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)},encodeHTML:Gr,formatTime:function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=(e=nn(e))["get"+(n=n?"UTC":"")+"FullYear"](),o=e["get"+n+"Month"]()+1,r=e["get"+n+"Date"](),a=e["get"+n+"Hours"](),s=e["get"+n+"Minutes"](),l=e["get"+n+"Seconds"](),e=e["get"+n+"Milliseconds"]();return t=t.replace("MM",wr(o,2)).replace("M",o).replace("yyyy",i).replace("yy",i%100+"").replace("dd",wr(r,2)).replace("d",r).replace("hh",wr(a,2)).replace("h",a).replace("mm",wr(s,2)).replace("m",s).replace("ss",wr(l,2)).replace("s",l).replace("SSS",wr(e,3))},formatTpl:jr,getTextRect:function(t,e,n,i,o,r,a,s){return new Cm({style:{text:t,font:e,align:n,verticalAlign:i,padding:o,rich:r,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:Xr,normalizeCssArray:F_,toCamelCase:Hr,truncateText:Vn}),Hb=Object.freeze({__proto__:null,bind:Kd,clone:r,curry:v,defaults:l,each:d,extend:s,filter:y,indexOf:u,inherits:h,isArray:_,isFunction:x,isObject:C,isString:b,map:f,merge:a,reduce:g}),SC=Sn(),CC=[0,1],x_=(Ch.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),e=Math.max(e[0],e[1]);return n<=t&&t<=e},Ch.prototype.containData=function(t){return this.scale.contain(t)},Ch.prototype.getExtent=function(){return this._extent.slice()},Ch.prototype.getPixelPrecision=function(t){return Qe(t||this.scale.getExtent(),this._extent)},Ch.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},Ch.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&Th(n=n.slice(),i.count()),qe(t,CC,n,e)},Ch.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale,i=(this.onBand&&"ordinal"===i.type&&Th(n=n.slice(),i.count()),qe(t,n,CC,e));return this.scale.scale(i)},Ch.prototype.pointToData=function(t,e){},Ch.prototype.getTicksCoords=function(t){function e(t,e){return t=$e(t),e=$e(e),s?e<t:t<e}var n,i,o,r,a,s,l,u=(t=t||{}).tickModel||this.getTickModel(),h=f(mh(this,u).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this),u=u.get("alignWithLabel");return n=this,i=h,u=u,t=t.clamp,l=i.length,n.onBand&&!u&&l&&(u=n.getExtent(),1===l?(i[0].coord=u[0],o=i[1]={coord:u[0]}):(a=i[l-1].tickValue-i[0].tickValue,r=(i[l-1].coord-i[0].coord)/a,d(i,function(t){t.coord-=r/2}),n=1+(a=n.scale.getExtent())[1]-i[l-1].tickValue,o={coord:i[l-1].coord+r*n},i.push(o)),s=u[0]>u[1],e(i[0].coord,u[0])&&(t?i[0].coord=u[0]:i.shift()),t&&e(u[0],i[0].coord)&&i.unshift({coord:u[0]}),e(u[1],o.coord)&&(t?o.coord=u[1]:i.pop()),t)&&e(o.coord,u[1])&&i.push({coord:u[1]}),h},Ch.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),f(this.scale.getMinorTicks(t=0<t&&t<100?t:5),function(t){return f(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this))},Ch.prototype.getViewLabels=function(){return yh(this).labels},Ch.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},Ch.prototype.getTickModel=function(){return this.model.getModel("axisTick")},Ch.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),e=e[1]-e[0]+(this.onBand?1:0),t=(0===e&&(e=1),Math.abs(t[1]-t[0]));return Math.abs(t)/e},Ch.prototype.calculateCategoryInterval=function(){o=(n=d=this).getLabelModel();var t={axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:o.get("rotate")||0,font:o.getFont()},e=uh(d),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=(o=d.scale).getExtent(),o=o.count();if(i[1]-i[0]<1)return 0;for(var r=1,a=(40<o&&(r=Math.max(1,Math.floor(o/40))),i[0]),s=d.dataToCoord(a+1)-d.dataToCoord(a),l=Math.abs(s*Math.cos(n)),s=Math.abs(s*Math.sin(n)),u=0,h=0;a<=i[1];a+=r)var c=1.3*(p=Oe(e({value:a}),t.font,"center","top")).width,p=1.3*p.height,u=Math.max(u,c,7),h=Math.max(h,p,7);var n=u/l,l=h/s,s=(isNaN(n)&&(n=1/0),isNaN(l)&&(l=1/0),Math.max(0,Math.floor(Math.min(n,l)))),n=SC(d.model),l=d.getExtent(),d=n.lastAutoInterval,f=n.lastTickCount;return null!=d&&null!=f&&Math.abs(d-s)<=1&&Math.abs(f-o)<=1&&s<d&&n.axisExtent0===l[0]&&n.axisExtent1===l[1]?s=d:(n.lastTickCount=o,n.lastAutoInterval=s,n.axisExtent0=l[0],n.axisExtent1=l[1]),s},Ch),TC=2*Math.PI,MC=Jy.CMD,kC=["top","right","bottom","left"],IC=[],DC=new vg,AC=new vg,PC=new vg,OC=new vg,LC=new vg,RC=[],NC=new vg,EC=["align","verticalAlign","width","height","fontSize"],BC=new yg,zC=Sn(),FC=Sn(),VC=["x","y","rotation"],HC=(Nh.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},Nh.prototype._addLabel=function(t,e,n,i,o){var r,a=i.style,s=i.__hostTarget.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain(),l=(kg.applyTransform(u,u,l),l?BC.setLocalTransform(l):(BC.x=BC.y=BC.rotation=BC.originX=BC.originY=0,BC.scaleX=BC.scaleY=1),i.__hostTarget),h=(l&&(r=l.getBoundingRect().plain(),h=l.getComputedTransform(),kg.applyTransform(r,r,h)),r&&l.getTextGuideLine());this._labelList.push({label:i,labelLine:h,seriesModel:n,dataIndex:t,dataType:e,layoutOption:o,computedLayoutOption:null,rect:u,hostRect:r,priority:r?r.width*r.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:h&&h.ignore,x:BC.x,y:BC.y,scaleX:BC.scaleX,scaleY:BC.scaleY,rotation:BC.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},Nh.prototype.addLabelsOfSeries=function(t){var e=this,n=(this._chartViewList.push(t),t.__model),i=n.get("labelLayout");(x(i)||m(i).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var o=t.getTextContent(),t=km(t);o&&!o.disableLabelLayout&&e._addLabel(t.dataIndex,t.dataType,n,o,i)})},Nh.prototype.updateLayoutConfig=function(t){for(var e=t.getWidth(),n=t.getHeight(),i=0;i<this._labelList.length;i++){var o=this._labelList[i],r=o.label,a=r.__hostTarget,s=o.defaultAttr,l=void 0,l="function"==typeof o.layoutOption?o.layoutOption(Lh(o,a)):o.layoutOption,u=(o.computedLayoutOption=l=l||{},Math.PI/180),h=(a&&a.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*u:s.attachedRot,offset:[l.dx||0,l.dy||0]}),!1);null!=l.x?(r.x=Ze(l.x,e),r.setStyle("x",0),h=!0):(r.x=s.x,r.setStyle("x",s.style.x)),null!=l.y?(r.y=Ze(l.y,n),r.setStyle("y",0),h=!0):(r.y=s.y,r.setStyle("y",s.style.y)),l.labelLinePoints&&(c=a.getTextGuideLine())&&(c.setShape({points:l.labelLinePoints}),h=!1),zC(r).needsUpdateLabelLine=h,r.rotation=null!=l.rotate?l.rotate*u:s.rotation,r.scaleX=s.scaleX,r.scaleY=s.scaleY;for(var c,p=0;p<EC.length;p++){var d=EC[p];r.setStyle(d,(null!=l[d]?l:s.style)[d])}l.draggable?(r.draggable=!0,r.cursor="move",a&&(c=o.seriesModel,null!=o.dataIndex&&(c=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex)),r.on("drag",function(t,e){return function(){Dh(t,e)}}(a,c.getModel("labelLine"))))):(r.off("drag"),r.cursor=s.cursor)}},Nh.prototype.layout=function(t){function e(t){var e;t.ignore||null==(e=t.ensureState("emphasis")).ignore&&(e.ignore=!1),t.ignore=!0}var n=t.getWidth(),t=t.getHeight(),i=function(t){for(var e=[],n=0;n<t.length;n++){var i,o,r,a,s,l,u=t[n];u.defaultAttr.ignore||(o=(i=u.label).getComputedTransform(),r=i.getBoundingRect(),a=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,(s=r.clone()).applyTransform(o),s.x-=l/2,s.y-=l/2,s.width+=l,s.height+=l,l=a?new t_(r,o):null,e.push({label:i,labelLine:u.labelLine,rect:s,localRect:r,obb:l,priority:u.priority,defaultAttr:u.defaultAttr,layoutOption:u.computedLayoutOption,axisAligned:a,transform:o}))}return e}(this._labelList),o=y(i,function(t){return"shiftX"===t.layoutOption.moveOverlap}),r=y(i,function(t){return"shiftY"===t.layoutOption.moveOverlap});Oh(o,"x","width",0,n,void 0),Oh(r,"y","height",0,t,void 0);for(var a=y(i,function(t){return t.layoutOption.hideOverlap}),s=[],l=(a.sort(function(t,e){return e.priority-t.priority}),new kg(0,0,0,0)),u=0;u<a.length;u++){for(var h=a[u],c=h.axisAligned,p=h.localRect,d=h.transform,f=h.label,g=h.labelLine,m=(l.copy(h.rect),l.width-=.1,l.height-=.1,l.x+=.05,l.y+=.05,h.obb),v=!1,_=0;_<s.length;_++){var x=s[_];if(l.intersect(x.rect)){if(c&&x.axisAligned){v=!0;break}if(x.obb||(x.obb=new t_(x.localRect,x.transform)),(m=m||new t_(p,d)).intersect(x.obb)){v=!0;break}}}v?(e(f),g&&e(g)):(f.attr("ignore",h.defaultAttr.ignore),g&&g.attr("ignore",h.defaultAttr.labelGuideIgnore),s.push(h))}},Nh.prototype.processLabelsOverall=function(){var t=this;d(this._chartViewList,function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,o=n.isAnimationEnabled();e.group.traverse(function(e){if(e.ignore)return!0;var r=!i,a=e.getTextContent();(r=!r&&a?zC(a).needsUpdateLabelLine:r)&&t._updateLabelLine(e,n),o&&t._animateLabels(e,n)})})},Nh.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=km(t),o=i.dataIndex;if(n&&null!=o){var n=e.getData(i.dataType),e=n.getItemModel(o),i={},o=n.getItemVisual(o,"style"),n=n.getVisual("drawType"),o=(i.stroke=o[n],e.getModel("labelLine")),r=t,a=function(t,e){for(var n={normal:t.getModel(e=e||"labelLine")},i=0;i<Rm.length;i++){var o=Rm[i];n[o]=t.getModel([o,e])}return n}(e),n=i,s=r.getTextGuideLine(),u=r.getTextContent();if(u){for(var e=a.normal,h=e.get("show"),c=u.ignore,p=0;p<Nm.length;p++){var d,f=Nm[p],g=a[f],y="normal"===f;g&&(d=g.get("show"),(y?c:L(u.states[f]&&u.states[f].ignore,c))||!L(d,h)?(d=y?s:s&&s.states.normal)&&(d.ignore=!0):(s||(s=new Av,r.setTextGuideLine(s),y||!c&&h||Ah(s,!0,"normal",a.normal),r.stateProxy&&(s.stateProxy=r.stateProxy)),Ah(s,!1,f,g)))}s&&(l(s.style,n),s.style.fill=null,n=e.get("showAbove"),(r.textGuideLineConfig=r.textGuideLineConfig||{}).showAbove=n||!1,s.buildPath=Ph)}else s&&r.removeTextGuideLine();Dh(t,o)}},Nh.prototype._animateLabels=function(t,e){var n,i,o,r,a,s=t.getTextContent(),l=t.getTextGuideLine();!s||s.ignore||s.invisible||t.disableLabelAnimation||Ho(t)||(r=(o=zC(s)).oldLayout,n=(i=km(t)).dataIndex,a={x:s.x,y:s.y,rotation:s.rotation},i=e.getData(i.dataType),r?(s.attr(r),(t=t.prevStates)&&(0<=u(t,"select")&&s.attr(o.oldLayoutSelect),0<=u(t,"emphasis"))&&s.attr(o.oldLayoutEmphasis),Fo(s,a,e,n)):(s.attr(a),d_(s).valueAnimation||(t=L(s.style.opacity,1),s.style.opacity=0,Vo(s,{style:{opacity:t}},e,n))),o.oldLayout=a,s.states.select&&(Rh(t=o.oldLayoutSelect={},a,VC),Rh(t,s.states.select,VC)),s.states.emphasis&&(Rh(t=o.oldLayoutEmphasis={},a,VC),Rh(t,s.states.emphasis,VC)),gr(s,n,i,e,e)),!l||l.ignore||l.invisible||(r=(o=FC(l)).oldLayout,a={points:l.shape.points},r?(l.attr({shape:r}),Fo(l,{shape:a},e)):(l.setShape(a),l.style.strokePercent=0,Vo(l,{style:{strokePercent:1}},e)),o.oldLayout=a)},Nh),GC=Sn();gh(Eh),e(Fh,WC=sf),Fh.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},Fh.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},Fh.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},Fh.prototype.setUnpainted=function(){this.__firstTimePaint=!0},Fh.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=zh("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},Fh.prototype.createRepaintRects=function(t,e,n,i){function o(t){if(t.isFinite()&&!t.isZero())if(0===a.length)(e=new kg(0,0,0,0)).copy(t),a.push(e);else{for(var e,n=!1,i=1/0,o=0,r=0;r<a.length;++r){var h=a[r];if(h.intersect(t)){var c=new kg(0,0,0,0);c.copy(h),c.union(t),a[r]=c,n=!0;break}l&&(u.copy(t),u.union(h),c=t.width*t.height,h=h.width*h.height,(h=u.width*u.height-c-h)<i)&&(i=h,o=r)}l&&(a[o].union(t),n=!0),n||((e=new kg(0,0,0,0)).copy(t),a.push(e)),l=l||a.length>=s}}if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;for(var r,a=[],s=this.maxRepaintRectCount,l=!1,u=new kg(0,0,0,0),h=this.__startIndex;h<this.__endIndex;++h)(c=t[h])&&(d=c.shouldBePainted(n,i,!0,!0),(p=c.__isRendered&&(c.__dirty&Tf||!d)?c.getPrevPaintRect():null)&&o(p),r=d&&(c.__dirty&Tf||!c.__isRendered)?c.getPaintRect():null)&&o(r);for(h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c,p,d=(c=e[h]).shouldBePainted(n,i,!0,!0);!c||d&&c.__zr||!c.__isRendered||(p=c.getPrevPaintRect())&&o(p)}do{for(var f=!1,h=0;h<a.length;)if(a[h].isZero())a.splice(h,1);else{for(var g=h+1;g<a.length;)a[h].intersect(a[g])?(f=!0,a[h].union(a[g]),a.splice(g,1)):g++;h++}}while(f);return this._paintRects=a},Fh.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},Fh.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,o=i.style,r=this.domBack;o&&(o.width=t+"px",o.height=e+"px"),i.width=t*n,i.height=e*n,r&&(r.width=t*n,r.height=e*n,1!==n)&&this.ctxBack.scale(n,n)},Fh.prototype.clear=function(t,e,n){function i(t,n,i,o){var a;r.clearRect(t,n,i,o),e&&"transparent"!==e&&(a=void 0,I(e)?(a=e.__canvasGradient||cl(r,e,{x:0,y:0,width:i,height:o}),e.__canvasGradient=a):D(e)&&(a=_l(r,e,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}})),r.save(),r.fillStyle=a||e,r.fillRect(t,n,i,o),r.restore()),l&&(r.save(),r.globalAlpha=u,r.drawImage(p,t,n,i,o),r.restore())}var o=this.dom,r=this.ctx,a=o.width,s=o.height,l=(e=e||this.clearColor,this.motionBlur&&!t),u=this.lastFrameAlpha,h=this.dpr,c=this,p=(l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,a/h,s/h)),this.domBack);!n||l?i(0,0,a,s):n.length&&d(n,function(t){i(t.x*h,t.y*h,t.width*h,t.height*h)})};var WC,UC=Fh,jC=314159;Hh.prototype.getType=function(){return"canvas"},Hh.prototype.isSingleCanvas=function(){return this._singleCanvas},Hh.prototype.getViewportRoot=function(){return this._domRoot},Hh.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},Hh.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var o=0;o<i.length;o++){var r,a=i[o],a=this._layers[a];!a.__builtin__&&a.refresh&&(r=0===o?this._backgroundColor:null,a.refresh(r))}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},Hh.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},Hh.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,o={inHover:!0,viewWidth:this._width,viewHeight:this._height},r=0;r<e;r++){var a=t[r];a.__inHover&&(n=n||(this._hoverlayer=this.getLayer(1e5)),i||(i=n.ctx).save(),Ml(i,a,o,r===e-1))}i&&i.restore()}},Hh.prototype.getHoverLayer=function(){return this.getLayer(1e5)},Hh.prototype.paintOne=function(t,e){Tl(t,e)},Hh.prototype._paintList=function(t,e,n,i){var o,r,a;this._redrawId===i&&(n=n||!1,this._updateLayerStatus(t),o=(r=this._doPaintList(t,e,n)).finished,r=r.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),r&&this._paintHoverList(t),o?this.eachLayer(function(t){t.afterBrush&&t.afterBrush()}):(a=this,Df(function(){a._paintList(t,e,n,i)})))},Hh.prototype._compositeManually=function(){var t=this.getLayer(jC).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},Hh.prototype._doPaintList=function(t,e,n){for(var i=this,o=[],r=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],s=this._layers[s];s.__builtin__&&s!==this._hoverlayer&&(s.__dirty||n)&&o.push(s)}for(var l=!0,u=!1,h=this,c=0;c<o.length;c++)!function(a){function s(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(p=y;p<d.__endIndex;p++){var o=t[p];if(o.__inHover&&(u=!0),i._doPaintEl(o,d,r,e,n,p===d.__endIndex-1),m&&15<Date.now()-v)break}n.prevElClipPaths&&f.restore()}var c,p,d=o[a],f=d.ctx,g=r&&d.createRepaintRects(t,e,h._width,h._height),y=n?d.__startIndex:d.__drawIndex,m=!n&&d.incremental&&Date.now,v=m&&Date.now(),a=d.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(d.__startIndex!==d.__endIndex&&(y!==d.__startIndex||(c=t[y]).incremental&&c.notClear&&!n)||d.clear(!1,a,g),-1===y&&(console.error("For some unknown reason. drawIndex is -1"),y=d.__startIndex),g)if(0===g.length)p=d.__endIndex;else for(var _=h.dpr,x=0;x<g.length;++x){var b=g[x];f.save(),f.beginPath(),f.rect(b.x*_,b.y*_,b.width*_,b.height*_),f.clip(),s(b),f.restore()}else f.save(),s(),f.restore();d.__drawIndex=p,d.__drawIndex<d.__endIndex&&(l=!1)}(c);return Bd.wxa&&d(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:l,needsRefreshHover:u}},Hh.prototype._doPaintEl=function(t,e,n,i,o,r){e=e.ctx,n?(n=t.getPaintRect(),(!i||n&&n.intersect(i))&&(Ml(e,t,o,r),t.setPrevPaintRect(n))):Ml(e,t,o,r)},Hh.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=jC);var n=this._layers[t];return n||((n=new UC("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?a(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&a(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},Hh.prototype.insertLayer=function(t,e){var n,i=this._layers,r=this._zlevelList,a=r.length,s=this._domRoot,l=null,u=-1;if(i[t])o("ZLevel "+t+" has been used already");else if((n=e)&&(n.__builtin__||"function"==typeof n.resize&&"function"==typeof n.refresh)){if(0<a&&t>r[0]){for(u=0;u<a-1&&!(r[u]<t&&r[u+1]>t);u++);l=i[r[u]]}r.splice(u+1,0,t),(i[t]=e).virtual||(l?(n=l.dom).nextSibling?s.insertBefore(e.dom,n.nextSibling):s.appendChild(e.dom):s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)),e.__painter=this}else o("Layer of zlevel "+t+" is not valid")},Hh.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i];t.call(e,this._layers[o],o)}},Hh.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i],r=this._layers[o];r.__builtin__&&t.call(e,r,o)}},Hh.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i],r=this._layers[o];r.__builtin__||t.call(e,r,o)}},Hh.prototype.getLayers=function(){return this._layers},Hh.prototype._updateLayerStatus=function(t){function e(t){r&&(r.__endIndex!==t&&(r.__dirty=!0),r.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++)if((l=t[n]).zlevel!==t[n-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}for(var i,r=null,a=0,s=0;s<t.length;s++){var l,u=(l=t[s]).zlevel,h=void 0;i!==u&&(i=u,a=0),l.incremental?((h=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,a=1):h=this.getLayer(u+(0<a?.01:0),this._needsManuallyCompositing),h.__builtin__||o("ZLevel "+u+" has been used by unkown layer "+h.id),h!==r&&(h.__used=!0,h.__startIndex!==s&&(h.__dirty=!0),h.__startIndex=s,h.incremental?h.__drawIndex=-1:h.__drawIndex=s,e(s),r=h),l.__dirty&Tf&&!l.__inHover&&(h.__dirty=!0,h.incremental)&&h.__drawIndex<0&&(h.__drawIndex=s)}e(s),this.eachBuiltinLayer(function(t,e){!t.__used&&0<t.getElementCount()&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},Hh.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},Hh.prototype._clearLayer=function(t){t.clear()},Hh.prototype.setBackgroundColor=function(t){this._backgroundColor=t,d(this._layers,function(t){t.setUnpainted()})},Hh.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?a(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];o!==t&&o!==t+.01||a(this._layers[o],n[t],!0)}}},Hh.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(u(n,t),1))},Hh.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot,i=(n.style.display="none",this._opts);if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].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(jC).resize(t,e)}return this},Hh.prototype.clearLayer=function(t){(t=this._layers[t])&&t.clear()},Hh.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},Hh.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[jC].dom;var e=new UC("image",this,(t=t||{}).pixelRatio||this.dpr),n=(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),e.ctx);if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,o=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,o):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var r={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];Ml(n,u,r,s===l-1)}return e.dom},Hh.prototype.getWidth=function(){return this._width},Hh.prototype.getHeight=function(){return this._height},Hh.prototype._getSize=function(t){var e,n=this._opts,i=["width","height"][t],o=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],t=["paddingRight","paddingBottom"][t];return null!=n[i]&&"auto"!==n[i]?parseFloat(n[i]):(n=this.root,e=document.defaultView.getComputedStyle(n),(n[o]||Vh(e[i])||Vh(n.style[i]))-(Vh(e[r])||0)-(Vh(e[t])||0)|0)},Hh.prototype.pathToImage=function(t,e){e=e||this.dpr;var n=document.createElement("canvas"),i=n.getContext("2d"),o=t.getBoundingRect(),r=t.style,a=r.shadowBlur*e,l=r.shadowOffsetX*e,u=r.shadowOffsetY*e,r=t.hasStroke()?r.lineWidth:0,h=Math.max(r/2,a-l),l=Math.max(r/2,l+a),c=Math.max(r/2,a-u),r=Math.max(r/2,u+a),u=o.width+h+l,a=o.height+c+r,l=(n.width=u*e,n.height=a*e,i.scale(e,e),i.clearRect(0,0,u,a),i.dpr=e,{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY,rotation:t.rotation,originX:t.originX,originY:t.originY}),r=(t.x=h-o.x,t.y=c-o.y,t.rotation=0,t.scaleX=1,t.scaleY=1,t.updateTransform(),t&&Ml(i,t,{inHover:!1,viewWidth:this._width,viewHeight:this._height},!0),new gm({style:{x:0,y:0,image:n}}));return s(t,l),r};var XC=Hh;e(Gh,YC=J_),Gh.prototype.init=function(t,e,n){YC.prototype.init.call(this,t,e,n),this._sourceManager=new hb(this),gs(this)},Gh.prototype.mergeOption=function(t,e){YC.prototype.mergeOption.call(this,t,e),gs(this)},Gh.prototype.optionUpdated=function(){this._sourceManager.dirty()},Gh.prototype.getSourceManager=function(){return this._sourceManager},Gh.type="dataset",Gh.defaultOption={seriesLayoutBy:cx};var YC,qC=Gh;e(Wh,ZC=_b),Wh.type="dataset";var ZC,$C=Wh;gh([function(t){t.registerPainter("canvas",XC)},Uh]),gh(Eh),e(jh,KC=vb),jh.prototype.getInitialData=function(t){return Eu(null,this,{useEncodeDefaulter:!0})},jh.prototype.getLegendIcon=function(t){var e=new zg,n=ul("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1),n=(e.add(n),n.setStyle(t.lineStyle),this.getData().getVisual("symbol")),i=this.getData().getVisual("symbolRotate"),n="none"===n?"circle":n,o=.8*t.itemHeight,o=ul(n,(t.itemWidth-o)/2,(t.itemHeight-o)/2,o,o,t.itemStyle.fill),i=(e.add(o),o.setStyle(t.itemStyle),"inherit"===t.iconRotate?i:t.iconRotate||0);return o.rotation=i*Math.PI/180,o.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<n.indexOf("empty")&&(o.style.stroke=o.style.fill,o.style.fill="#fff",o.style.lineWidth=2),e},jh.type="series.line",jh.dependencies=["grid","polar"],jh.defaultOption={zlevel:0,z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0,lineStyle:{width:"bolder"}},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,universalTransition:{divideShape:"clone"}};var KC,JC=jh;e(Yh,QC=zg),Yh.prototype._createSymbol=function(t,e,n,i,o){this.removeAll(),o=ul(t,-1,-1,2,2,null,o),o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=qh,this._symbolType=t,this.add(o)},Yh.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},Yh.prototype.getSymbolType=function(){return this._symbolType},Yh.prototype.getSymbolPath=function(){return this.childAt(0)},Yh.prototype.highlight=function(){Yi(this.childAt(0))},Yh.prototype.downplay=function(){qi(this.childAt(0))},Yh.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},Yh.prototype.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},Yh.prototype.updateData=function(t,e,n,i){this.silent=!1;var o,r,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,u=Yh.getSymbolSize(t,e),h=s!==this._symbolType,c=i&&i.disableAnimation;h?(o=t.getItemVisual(e,"symbolKeepAspect"),this._createSymbol(s,t,e,u,o)):((r=this.childAt(0)).silent=!1,a={scaleX:u[0]/2,scaleY:u[1]/2},c?r.attr(a):Fo(r,a,l,e),i_(s=r).oldStyle=s.style),this._updateCommon(t,e,u,n,i),h&&(r=this.childAt(0),c||(a={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:r.style.opacity}},r.scaleX=r.scaleY=0,r.style.opacity=0,Vo(r,a,l,e))),c&&this.childAt(0).stopAnimation("remove"),this._seriesModel=l},Yh.prototype._updateCommon=function(t,e,n,i,o){var r,a,l,u,h,c,p,d=this.childAt(0),f=t.hostModel,g=(i&&(r=i.emphasisItemStyle,l=i.blurItemStyle,a=i.selectItemStyle,u=i.focus,h=i.blurScope,c=i.labelStatesModels,p=i.hoverScale,y=i.cursorStyle),i&&!t.hasItemOption||(r=(g=(i=i&&i.itemModel?i.itemModel:t.getItemModel(e)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),a=i.getModel(["select","itemStyle"]).getItemStyle(),l=i.getModel(["blur","itemStyle"]).getItemStyle(),u=g.get("focus"),h=g.get("blurScope"),c=cr(i),p=g.getShallow("scale"),y=i.getShallow("cursor")),t.getItemVisual(e,"symbolRotate")),i=(d.attr("rotation",(g||0)*Math.PI/180||0),hl(t.getItemVisual(e,"symbolOffset"),n)),g=(i&&(d.x=i[0],d.y=i[1]),y&&d.attr("cursor",y),t.getItemVisual(e,"style")),i=g.fill,y=(d instanceof gm?(y=d.style,d.useStyle(s({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},g))):(d.__isEmptyBrush?d.useStyle(s({},g)):d.useStyle(g),d.style.decal=null,d.setColor(i,o&&o.symbolInnerColor),d.style.strokeNoScale=!0),t.getItemVisual(e,"liftZ")),m=this._z2,v=(null!=y?null==m&&(this._z2=d.z2,d.z2+=y):null!=m&&(d.z2=m,this._z2=null),o&&o.useNameLabel);hr(d,c,{labelFetcher:f,labelDataIndex:e,defaultText:function(e){return v?t.getName(e):Xh(t,e)},inheritColor:i,defaultOpacity:g.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2,y=d.ensureState("emphasis"),y.style=r,d.ensureState("select").style=a,d.ensureState("blur").style=l,p&&(m=Math.max(1.1,3/this._sizeY),y.scaleX=this._sizeX*m,y.scaleY=this._sizeY*m),this.setSymbolScale(1),oo(this,u,h)},Yh.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},Yh.prototype.fadeOut=function(t,e){var n=this.childAt(0),i=this._seriesModel,o=km(this).dataIndex,r=e&&e.animation;this.silent=n.silent=!0,e&&e.fadeLabel?(e=n.getTextContent())&&Go(e,{style:{opacity:0}},i,{dataIndex:o,removeOpt:r,cb:function(){n.removeTextContent()}}):n.removeTextContent(),Go(n,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:t,removeOpt:r})},Yh.getSymbolSize=function(t,e){return[(t=_(t=t.getItemVisual(e,"symbolSize"))?t:[+t,+t])[0]||0,t[1]||0]};var QC,tT=Yh;Jh.prototype.updateData=function(t,e){e=$h(e);var n=this.group,i=t.hostModel,o=this._data,r=this._SymbolCtor,a=e.disableAnimation,s=Kh(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};o||n.removeAll(),t.diff(o).add(function(i){var o,a=u(i);Zh(t,a,i,e)&&((o=new r(t,i,s,l)).setPosition(a),t.setItemGraphicEl(i,o),n.add(o))}).update(function(h,c){var p,d,c=o.getItemGraphicEl(c),f=u(h);Zh(t,f,h,e)?(p=t.getItemVisual(h,"symbol")||"circle",d=c&&c.getSymbolType&&c.getSymbolType(),!c||d&&d!==p?(n.remove(c),(c=new r(t,h,s,l)).setPosition(f)):(c.updateData(t,h,s,l),d={x:f[0],y:f[1]},a?c.attr(d):Fo(c,d,i)),n.add(c),t.setItemGraphicEl(h,c)):n.remove(c)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)})}).execute(),this._getSymbolPoint=u,this._data=t},Jh.prototype.isPersistent=function(){return!0},Jh.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){n=t._getSymbolPoint(n),e.setPosition(n),e.markRedraw()})},Jh.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Kh(t),this._data=null,this.group.removeAll()},Jh.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}n=$h(n);for(var o=t.start;o<t.end;o++){var r,a=e.getItemLayout(o);Zh(e,a,o,n)&&((r=new this._SymbolCtor(e,o,this._seriesScope)).traverse(i),r.setPosition(a),this.group.add(r),e.setItemGraphicEl(o,r))}},Jh.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll()};var eT,nT=Jh,iT="undefined"!=typeof Float32Array,oT=iT?Float32Array:Array,rT=Math.min,aT=Math.max,sT=function(){this.smooth=0,this.smoothConstraint=!0},lT=(e(oc,eT=um),oc.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},oc.prototype.getDefaultShape=function(){return new sT},oc.prototype.buildPath=function(t,e){var n=e.points,i=0,o=n.length/2;if(e.connectNulls){for(;0<o&&nc(n[2*o-2],n[2*o-1]);o--);for(;i<o&&nc(n[2*i],n[2*i+1]);i++);}for(;i<o;)i+=ic(t,n,i,o,o,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},oc.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,o=this.path.data,r=Jy.CMD,a="x"===e,s=[],l=0;l<o.length;){var u=void 0,h=void 0;switch(o[l++]){case r.M:n=o[l++],i=o[l++];break;case r.L:var c,u=o[l++],h=o[l++];if((c=a?(t-n)/(u-n):(t-i)/(h-i))<=1&&0<=c)return v=a?(h-i)*c+i:(u-n)*c+n,a?[t,v]:[v,t];n=u,i=h;break;case r.C:u=o[l++],h=o[l++];var p=o[l++],d=o[l++],f=o[l++],g=o[l++],y=a?Kn(n,u,p,f,t,s):Kn(i,h,d,g,t,s);if(0<y)for(var m=0;m<y;m++){var v,_=s[m];if(_<=1&&0<=_)return v=a?Zn(i,h,d,g,_):Zn(n,u,p,f,_),a?[t,v]:[v,t]}n=f,i=g}}},oc);e(rc,uT=sT);var uT,hT=rc;e(ac,cT=um),ac.prototype.getDefaultShape=function(){return new hT},ac.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,o=0,r=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;0<r&&nc(n[2*r-2],n[2*r-1]);r--);for(;o<r&&nc(n[2*o],n[2*o+1]);o++);}for(;o<r;){var s=ic(t,n,o,r,r,1,e.smooth,a,e.connectNulls);ic(t,i,o+s-1,s,r,-1,e.stackedOnSmooth,a,e.connectNulls),o+=s+1,t.closePath()}};var cT,pT=ac;e(mc,dT=wb),mc.prototype.init=function(){var t=new zg,e=new nT;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},mc.prototype.render=function(t,e,n){function i(t){r._changePolyState(t)}var o,r=this,a=t.coordinateSystem,s=this.group,u=t.getData(),h=t.getModel("lineStyle"),c=t.getModel("areaStyle"),p=u.getLayout("points")||[],g="polar"===a.type,y=this._coordSys,m=this._symbolDraw,v=this._polyline,_=this._polygon,x=this._lineGroup,b=t.get("animation"),w=!c.isEmpty(),S=c.get("origin"),C=Qh(a,u,S),C=w&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),o=ec(2*i),r=0;r<i;r++){var a=tc(n,t,e,r);o[2*r]=a[0],o[2*r+1]=a[1]}return o}(a,u,C),T=t.get("showSymbol"),M=T&&!g&&pc(t,u,a),k=this._data,I=(k&&k.eachItemGraphicEl(function(t,e){t.__temp&&(s.remove(t),k.setItemGraphicEl(e,null))}),T||m.remove(),s.add(x),!g&&t.get("step")),D=(a&&a.getArea&&t.get("clip",!0)&&(null!=(o=a.getArea()).width?(o.x-=.1,o.y-=.1,o.width+=.2,o.height+=.2):o.r0&&(o.r0-=.5,o.r+=.5)),this._clipShapeForSymbol=o,function(t,e){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var i,o=n.length-1;0<=o;o--){var r,a=t.getDimensionInfo(n[o].dimension);if("x"===(r=a&&a.coordDim)||"y"===r){i=n[o];break}}if(i){var s=e.getAxis(r),l=s.scale.getExtent(),e=f(i.stops,function(t){var e=s.toGlobalCoord(s.dataToCoord(t.value));return{offset:0,coord:e=isNaN(e)||isFinite(e)?e:s.toGlobalCoord(s.dataToCoord(l[+(e<0)])),color:t.color}}),u=e.length,h=i.outerColors.slice(),c=(u&&e[0].coord>e[u-1].coord&&(e.reverse(),h.reverse()),e[0].coord-10),p=e[u-1].coord+10,g=p-c;return g<.001?"transparent":(d(e,function(t){t.offset=(t.coord-c)/g}),e.push({offset:u?e[u-1].offset:.5,color:h[1]||"transparent"}),e.unshift({offset:u?e[0].offset:.5,color:h[0]||"transparent"}),u=new Xv(0,0,0,0,e,!0),u[r]=c,u[r+"2"]=p,u)}}}(u,a)||u.getVisual("style")[u.getVisual("drawType")]),y=(v&&y.type===a.type&&I===this._step?(w&&!_?_=this._newPolygon(p,C):_&&!w&&(x.remove(_),_=this._polygon=null),g||this._initOrUpdateEndLabel(t,a,Yr(D)),x.setClipPath(yc(this,a,!1,t)),T&&m.updateData(u,{isIgnore:M,clipShape:o,disableAnimation:!0,getSymbolPoint:function(t){return[p[2*t],p[2*t+1]]}}),sc(this._stackedOnPoints,C)&&sc(this._points,p)||(b?this._doUpdateAnimation(u,C,a,n,I,S):(I&&(p=cc(p,a,I),C=C&&cc(C,a,I)),v.setShape({points:p}),_&&_.setShape({points:p,stackedOnPoints:C})))):(T&&m.updateData(u,{isIgnore:M,clipShape:o,disableAnimation:!0,getSymbolPoint:function(t){return[p[2*t],p[2*t+1]]}}),b&&this._initSymbolLabelAnimation(u,a,o),I&&(p=cc(p,a,I),C=C&&cc(C,a,I)),v=this._newPolyline(p),w&&(_=this._newPolygon(p,C)),g||this._initOrUpdateEndLabel(t,a,Yr(D)),x.setClipPath(yc(this,a,!0,t))),t.get(["emphasis","focus"])),n=t.get(["emphasis","blurScope"]),T=(v.useStyle(l(h.getLineStyle(),{fill:"none",stroke:D,lineJoin:"bevel"})),ro(v,t,"lineStyle"),0<v.style.lineWidth&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(v.getState("emphasis").style.lineWidth=+v.style.lineWidth+1),km(v).seriesIndex=t.seriesIndex,oo(v,y,n),hc(t.get("smooth"))),m=t.get("smoothMonotone"),M=t.get("connectNulls");v.setShape({smooth:T,smoothMonotone:m,connectNulls:M}),_&&(b=u.getCalculationInfo("stackedOnSeries"),o=0,_.useStyle(l(c.getAreaStyle(),{fill:D,opacity:.7,lineJoin:"bevel",decal:u.getVisual("style").decal})),b&&(o=hc(b.get("smooth"))),_.setShape({smooth:T,stackedOnSmooth:o,smoothMonotone:m,connectNulls:M}),ro(_,t,"areaStyle"),km(_).seriesIndex=t.seriesIndex,oo(_,y,n)),u.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=i)}),this._polyline.onHoverStateChange=i,this._data=u,this._coordSys=a,this._stackedOnPoints=C,this._points=p,this._step=I,this._valueOrigin=S},mc.prototype.dispose=function(){},mc.prototype.highlight=function(t,e,n,i){var o=t.getData(),r=wn(o,i);if(this._changePolyState("emphasis"),!(r instanceof Array)&&null!=r&&0<=r){var a=o.getLayout("points");if(!(l=o.getItemGraphicEl(r))){var s=a[2*r],a=a[2*r+1];if(isNaN(s)||isNaN(a))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s,a))return;var l,u=t.get("zlevel"),h=t.get("z"),s=((l=new tT(o,r)).x=s,l.y=a,l.setZ(u,h),l.getSymbolPath().getTextContent());s&&(s.zlevel=u,s.z=h,s.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(r,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else wb.prototype.highlight.call(this,t,e,n,i)},mc.prototype.downplay=function(t,e,n,i){var o,r=t.getData(),a=wn(r,i);this._changePolyState("normal"),null!=a&&0<=a?(o=r.getItemGraphicEl(a))&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay()):wb.prototype.downplay.call(this,t,e,n,i)},mc.prototype._changePolyState=function(t){var e=this._polygon;Hi(this._polyline,t),e&&Hi(e,t)},mc.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new lT({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e},mc.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new pT({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n},mc.prototype._initSymbolLabelAnimation=function(t,e,n){var i,o,r=e.getBaseAxis(),a=r.inverse,r=("cartesian2d"===e.type?(i=r.isHorizontal(),o=!1):"polar"===e.type&&(i="angle"===r.dim,o=!0),t.hostModel),s=r.get("animationDuration"),l=("function"==typeof s&&(s=s(null)),r.get("animationDelay")||0),u="function"==typeof l?l(null):l;t.eachItemGraphicEl(function(t,r){var h,c,p,d,f,g=t;g&&(d=[t.x,t.y],f=c=h=void 0,n&&(f=o?(p=n,d=e.pointToCoord(d),i?(h=p.startAngle,c=p.endAngle,-d[1]/180*Math.PI):(h=p.r0,c=p.r,d[0])):i?(h=n.x,c=n.x+n.width,t.x):(h=n.y+n.height,c=n.y,t.y)),p=c===h?0:(f-h)/(c-h),a&&(p=1-p),d="function"==typeof l?l(r):s*p+u,f=(t=g.getSymbolPath()).getTextContent(),g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:d}),f&&f.animateFrom({style:{opacity:0}},{duration:300,delay:d}),t.disableLabelAnimation=!0)})},mc.prototype._initOrUpdateEndLabel=function(t,e,n){var i,o,r,a=t.getModel("endLabel");gc(t)?(i=t.getData(),o=this._polyline,this._endLabel||((this._endLabel=new Cm({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0),0<=(r=dc(i.getLayout("points")))&&(hr(o,cr(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:r,defaultText:function(t,e,n){if(null==n)return Xh(i,t);var o=i,r=n,a=o.mapDimensionsAll("defaultedLabel");if(!_(r))return r+"";for(var s=[],l=0;l<a.length;l++){var u=o.getDimensionIndex(a[l]);0<=u&&s.push(r[u])}return s.join(" ")},enableTextSetter:!0},(n=a,r=(t=(t=e).getBaseAxis()).isHorizontal(),t=t.inverse,a=r?t?"right":"left":"center",r=r?"middle":t?"top":"bottom",{normal:{align:n.get("align")||a,verticalAlign:n.get("verticalAlign")||r}})),o.textConfig.position=null)):this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},mc.prototype._endLabelOnDuring=function(t,e,n,i,o,r,a){var s,l,u,h,c,p,d,f,g,y,m=this._endLabel,v=this._polyline;m&&(t<1&&null==i.originalX&&(i.originalX=m.x,i.originalY=m.y),s=n.getLayout("points"),g=(l=n.hostModel).get("connectNulls"),u=r.get("precision"),r=r.get("distance")||0,c=(a=a.getBaseAxis()).isHorizontal(),a=a.inverse,e=e.shape,h=(c?r:0)*(a?-1:1),r=(c?0:-r)*(a?-1:1),d=void 0,1<=(f=(p=(c=function(t,e,n){for(var i,o,r=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<r;u++)if(o=t[2*u+a],!isNaN(o)&&!isNaN(t[2*u+1-a])){if(0!==u){if(i<=e&&e<=o||e<=i&&o<=e){l=u;break}s=u}i=o}return{range:[s,l],t:(e-i)/(o-i)}}(s,a=a?c?e.x:e.y+e.height:c?e.x+e.width:e.y,e=c?"x":"y")).range)[1]-p[0])?(1<f&&!g?(y=fc(s,p[0]),m.attr({x:y[0]+h,y:y[1]+r}),o&&(d=l.getRawValue(p[0]))):((y=v.getPointOn(a,e))&&m.attr({x:y[0]+h,y:y[1]+r}),f=l.getRawValue(p[0]),g=l.getRawValue(p[1]),o&&(d=In(n,u,f,g,c.t))),i.lastFrameIndex=p[0]):(y=fc(s,v=1===t||0<i.lastFrameIndex?p[0]:0),o&&(d=l.getRawValue(v)),m.attr({x:y[0]+h,y:y[1]+r})),o)&&d_(m).setLabelText(d)},mc.prototype._doUpdateAnimation=function(t,e,n,i,o,r){var a=this._polyline,s=this._polygon,l=t.hostModel,e=function(t,e,n,i,o,r){a=[],e.diff(t).add(function(t){a.push({cmd:"+",idx:t})}).update(function(t,e){a.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){a.push({cmd:"-",idx:t})}).execute();for(var a,s=a,l=[],u=[],h=[],c=[],p=[],d=[],f=[],g=Qh(o,e,r),y=t.getLayout("points")||[],m=e.getLayout("points")||[],v=0;v<s.length;v++){var _=s[v],x=!0,b=void 0;switch(_.cmd){case"=":var w=2*_.idx,b=2*_.idx1,S=y[w],C=y[1+w],T=m[b],M=m[b+1];(isNaN(S)||isNaN(C))&&(S=T,C=M),l.push(S,C),u.push(T,M),h.push(n[w],n[1+w]),c.push(i[b],i[b+1]),f.push(e.getRawIndex(_.idx1));break;case"+":S=_.idx,C=g.dataDimsForPoint,T=o.dataToPoint([e.get(C[0],S),e.get(C[1],S)]),b=2*S,l.push(T[0],T[1]),u.push(m[b],m[b+1]),M=tc(g,o,e,S),h.push(M[0],M[1]),c.push(i[b],i[b+1]),f.push(e.getRawIndex(S));break;case"-":x=!1}x&&(p.push(_),d.push(d.length))}d.sort(function(t,e){return f[t]-f[e]});for(var k=ec(r=l.length),I=ec(r),D=ec(r),A=ec(r),P=[],v=0;v<d.length;v++){var O=d[v],L=2*v,R=2*O;k[L]=l[R],k[1+L]=l[1+R],I[L]=u[R],I[1+L]=u[1+R],D[L]=h[R],D[1+L]=h[1+R],A[L]=c[R],A[1+L]=c[1+R],P[v]=p[O]}return{current:k,next:I,stackedOnCurrent:D,stackedOnNext:A,status:P}}(this._data,t,this._stackedOnPoints,e,this._coordSys,this._valueOrigin),u=e.current,h=e.stackedOnCurrent,c=e.next,p=e.stackedOnNext;if(o&&(u=cc(e.current,n,o),h=cc(e.stackedOnCurrent,n,o),c=cc(e.next,n,o),p=cc(e.stackedOnNext,n,o)),3e3<uc(u,c)||s&&3e3<uc(h,p))a.setShape({points:c}),s&&s.setShape({points:c,stackedOnPoints:p});else{a.shape.__points=e.current,a.shape.points=u;for(var d,n={shape:{points:c}},f=(e.current!==u&&(n.shape.__points=e.next),a.stopAnimation(),Fo(a,n,l),s&&(s.setShape({points:u,stackedOnPoints:h}),s.stopAnimation(),Fo(s,{shape:{stackedOnPoints:p}},l),a.shape.points!==s.shape.points)&&(s.shape.points=a.shape.points),[]),g=e.status,y=0;y<g.length;y++)"="===g[y].cmd&&(d=t.getItemGraphicEl(g[y].idx1))&&f.push({el:d,ptIdx:y});a.animators&&a.animators.length&&a.animators[0].during(function(){s&&s.dirtyShape();for(var t=a.shape.__points,e=0;e<f.length;e++){var n=f[e].el,i=2*f[e].ptIdx;n.x=t[i],n.y=t[1+i],n.markRedraw()}})}},mc.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},mc.type="line";var dT,fT=mc,gT={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},yT=function(t){return Math.round(t.length/2)};gh(function(t){var e;t.registerChartView(fT),t.registerSeriesModel(JC),t.registerLayout((e=!0,{seriesType:"line",plan:zs(),reset:function(t){var n,i,o,r,a,s=t.getData(),l=t.coordinateSystem,t=t.pipelineContext,u=e||t.large;if(l)return t=f(l.dimensions,function(t){return s.mapDimension(t)}).slice(0,2),n=t.length,i=s.getCalculationInfo("stackResultDimension"),Ru(s,t[0])&&(t[0]=i),Ru(s,t[1])&&(t[1]=i),o=s.getStore(),r=s.getDimensionIndex(t[0]),a=s.getDimensionIndex(t[1]),n&&{progress:function(t,e){for(var i=t.end-t.start,s=u&&ec(i*n),h=[],c=[],p=t.start,d=0;p<t.end;p++){var f,g=void 0;g=1===n?(f=o.get(r,p),l.dataToPoint(f,null,c)):(h[0]=o.get(r,p),h[1]=o.get(a,p),l.dataToPoint(h,null,c)),u?(s[d++]=g[0],s[d++]=g[1]):e.setItemLayout(p,g.slice())}u&&e.setLayout("points",s)}}}})),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),t=t.getModel("lineStyle").getLineStyle();t&&!t.stroke&&(t.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",t)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{seriesType:"line",reset:function(t,e,n){var i,o=t.getData(),r=t.get("sampling"),a=t.coordinateSystem,s=o.count();10<s&&"cartesian2d"===a.type&&r&&(i=a.getBaseAxis(),a=a.getOtherAxis(i),i=i.getExtent(),n=n.getDevicePixelRatio(),i=Math.abs(i[1]-i[0])*(n||1),1<(n=Math.round(s/i)))&&("lttb"===r&&t.setData(o.lttbDownSample(o.mapDimension(a.dim),1/n)),s=void 0,"string"==typeof r?s=gT[r]:"function"==typeof r&&(s=r),s)&&t.setData(o.downSample(o.mapDimension(a.dim),1/n,s,yT))}})}),e(vc,mT=J_),vc.type="grid",vc.dependencies=["xAxis","yAxis"],vc.layoutMode="box",vc.defaultOption={show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"};var mT,vT=vc;e(_c,_T=J_),_c.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",$g).models[0]},_c.type="cartesian2dAxis";var _T,xT=_c;c(xT,xC);var Uv={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:"#6E7079",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:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},ty=a({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Uv),qb=a({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Uv),bT={category:ty,value:qb,time:a({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},qb),log:l({scale:!0,logBase:10},qb)},wT={value:1,category:1,time:1,log:1};wc.prototype.getAxis=function(t){return this._axes[t]},wc.prototype.getAxes=function(){return f(this._dimList,function(t){return this._axes[t]},this)},wc.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),y(this.getAxes(),function(e){return e.scale.type===t})},wc.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)};var ST=["x","y"];e(Cc,CT=wc),Cc.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,n,i,o=this.getAxis("x").scale,r=this.getAxis("y").scale;Sc(o)&&Sc(r)&&(o=o.getExtent(),r=r.getExtent(),i=this.dataToPoint([o[0],r[0]]),e=this.dataToPoint([o[1],r[1]]),t=o[1]-o[0],n=r[1]-r[0],t)&&n&&(t=(e[0]-i[0])/t,e=(e[1]-i[1])/n,n=i[0]-o[0]*t,o=i[1]-r[0]*e,i=this._transform=[t,0,0,e,n,o],this._invTransform=Te([],i))},Cc.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},Cc.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},Cc.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},Cc.prototype.dataToPoint=function(t,e,n){n=n||[];var i,o=t[0],r=t[1];return this._transform&&null!=o&&isFinite(o)&&null!=r&&isFinite(r)?ot(n,t,this._transform):(t=this.getAxis("x"),i=this.getAxis("y"),n[0]=t.toGlobalCoord(t.dataToCoord(o,e)),n[1]=i.toGlobalCoord(i.dataToCoord(r,e)),n)},Cc.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),r=i.getExtent(),n=n.parse(t[0]),i=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(o[0],o[1]),n),Math.max(o[0],o[1])),e[1]=Math.min(Math.max(Math.min(r[0],r[1]),i),Math.max(r[0],r[1])),e},Cc.prototype.pointToData=function(t,e){var n,i,o=[];return this._invTransform?ot(o,t,this._invTransform):(n=this.getAxis("x"),i=this.getAxis("y"),o[0]=n.coordToData(n.toLocalCoord(t[0]),e),o[1]=i.coordToData(i.toLocalCoord(t[1]),e),o)},Cc.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},Cc.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),t=Math.max(t[0],t[1])-n,e=Math.max(e[0],e[1])-i;return new kg(n,i,t,e)};var CT,TT=Cc;e(Tc,MT=x_),Tc.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},Tc.prototype.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},Tc.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},Tc.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var MT,kT=Tc;Dc.prototype.getRect=function(){return this._rect},Dc.prototype.update=function(t,e){var n=this._axesMap,i=(this._updateScale(t,this.model),d(n.x,function(t){sh(t.scale,t.model)}),d(n.y,function(t){sh(t.scale,t.model)}),{});d(n.x,function(t){Pc(n,"y",t,i)}),d(n.y,function(t){Pc(n,"x",t,i)}),this.resize(this.model,e)},Dc.prototype.resize=function(t,e,n){function i(){d(a,function(t){var e,n,i=t.isHorizontal(),o=i?[0,r.width]:[0,r.height],a=t.inverse?1:0;t.setExtent(o[a],o[1-a]),o=t,e=i?r.x:r.y,a=o.getExtent(),n=a[0]+a[1],o.toGlobalCoord="x"===o.dim?function(t){return t+e}:function(t){return n-t+e},o.toLocalCoord="x"===o.dim?function(t){return t-e}:function(t){return n-t+e}})}var o=t.getBoxLayoutParams(),n=!n&&t.get("containLabel"),r=$r(o,{width:e.getWidth(),height:e.getHeight()}),a=(this._rect=r,this._axesList);i(),n&&(d(a,function(t){var e,n,i;t.model.get(["axisLabel","inside"])||(e=ch(t))&&(n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]),r[n]-=e[n]+i,"top"===t.position?r.y+=e.height+i:"left"===t.position&&(r.x+=e.width+i))}),i()),d(this._coordsList,function(t){t.calcAffineTransform()})},Dc.prototype.getAxis=function(t,e){if(null!=(t=this._axesMap[t]))return t[e||0]},Dc.prototype.getAxes=function(){return this._axesList.slice()},Dc.prototype.getCartesian=function(t,e){if(null!=t&&null!=e)return this._coordsMap["x"+t+"y"+e];C(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},Dc.prototype.getCartesians=function(){return this._coordsList.slice()},Dc.prototype.convertToPixel=function(t,e,n){return e=this._findConvertTarget(e),e.cartesian?e.cartesian.dataToPoint(n):e.axis?e.axis.toGlobalCoord(e.axis.dataToCoord(n)):null},Dc.prototype.convertFromPixel=function(t,e,n){return e=this._findConvertTarget(e),e.cartesian?e.cartesian.pointToData(n):e.axis?e.axis.coordToData(e.axis.toLocalCoord(n)):null},Dc.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,o=t.xAxisModel||i&&i.getReferringComponents("xAxis",$g).models[0],r=t.yAxisModel||i&&i.getReferringComponents("yAxis",$g).models[0],t=t.gridModel,a=this._coordsList;return i?u(a,e=i.coordinateSystem)<0&&(e=null):o&&r?e=this.getCartesian(o.componentIndex,r.componentIndex):o?n=this.getAxis("x",o.componentIndex):r?n=this.getAxis("y",r.componentIndex):t&&t.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},Dc.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},Dc.prototype._initCartesian=function(t,e,n){function i(e){return function(n,i){var o,u;Ac(n,t)&&(o=n.get("position"),"x"===e?"top"!==o&&"bottom"!==o&&(o=a.bottom?"top":"bottom"):"left"!==o&&"right"!==o&&(o=a.left?"right":"left"),a[o]=!0,u="category"===(o=new kT(e,lh(n),[0,0],n.get("type"),o)).type,o.onBand=u&&n.get("boundaryGap"),o.inverse=n.get("inverse"),(n.axis=o).model=n,o.grid=r,o.index=i,r._axesList.push(o),s[e][i]=o,l[e]++)}}var o=this,r=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};e.eachComponent("xAxis",i("x"),this),e.eachComponent("yAxis",i("y"),this),l.x&&l.y?d((this._axesMap=s).x,function(e,n){d(s.y,function(i,r){var r="x"+n+"y"+r,a=new TT(r);a.master=o,a.model=t,o._coordsMap[r]=a,o._coordsList.push(a),a.addAxis(e),a.addAxis(i)})}):(this._axesMap={},this._axesList=[])},Dc.prototype._updateScale=function(t,e){function n(t,e){var n,i,o;d((n=t,i=e.dim,o={},d(n.mapDimensionsAll(i),function(t){o[Nu(n,t)]=!0}),m(o)),function(n){e.scale.unionExtentFromData(t,n)})}d(this._axesList,function(t){var e;t.scale.setExtent(1/0,-1/0),"category"===t.type&&(e=t.model.get("categorySortInfo"),t.scale.setSortInfo(e))}),t.eachSeries(function(t){var i,o;kc(t)&&(o=(i=Ic(t)).xAxisModel,i=i.yAxisModel,Ac(o,e))&&Ac(i,e)&&(o=this.getCartesian(o.componentIndex,i.componentIndex),i=t.getData(),t=o.getAxis("x"),o=o.getAxis("y"),"list"===i.type)&&(n(i,t),n(i,o))},this)},Dc.prototype.getTooltipAxes=function(t){var e=[],n=[];return d(this.getCartesians(),function(i){var o=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),i=i.getOtherAxis(o);u(e,o)<0&&e.push(o),u(n,i)<0&&n.push(i)}),{baseAxes:e,otherAxes:n}},Dc.create=function(t,e){var n=[];return t.eachComponent("grid",function(i,o){var r=new Dc(i,t,e);r.name="grid_"+o,r.resize(i,e,!0),i.coordinateSystem=r,n.push(r)}),t.eachSeries(function(t){var e,n,i;kc(t)&&(e=(n=Ic(t)).xAxisModel,n=n.yAxisModel,i=e.getCoordSysModel().coordinateSystem,t.coordinateSystem=i.getCartesian(e.componentIndex,n.componentIndex))}),n},Dc.dimensions=ST;var IT,DT,AT,PT=Dc,OT=Math.PI,LT=(Lc.prototype.hasBuilder=function(t){return!!RT[t]},Lc.prototype.add=function(t){RT[t](this.opt,this.axisModel,this.group,this._transformGroup)},Lc.prototype.getGroup=function(){return this.group},Lc.innerTextLayout=function(t,e,n){var i,e=tn(e-t),t=en(e)?(i=0<n?"top":"bottom","center"):en(e-OT)?(i=0<n?"bottom":"top","center"):(i="middle",0<e&&e<OT?0<n?"right":"left":0<n?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:i}},Lc.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},Lc.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},Lc),RT={axisLine:function(t,e,n,i){var o,r,a,l,u,h=e.get(["axisLine","show"]);(h="auto"===h&&t.handleAutoShown?t.handleAutoShown("axisLine"):h)&&(h=e.axis.getExtent(),i=i.transform,o=[h[0],0],h=[h[1],0],i&&(ot(o,o,i),ot(h,h,i)),r=s({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),(i=new Rv({subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:h[0],y2:h[1]},style:r,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})).anid="line",n.add(i),null!=(a=e.get(["axisLine","symbol"])))&&(i=e.get(["axisLine","symbolSize"]),"string"==typeof a&&(a=[a,a]),"string"!=typeof i&&"number"!=typeof i||(i=[i,i]),e=hl(e.get(["axisLine","symbolOffset"])||0,i),l=i[0],u=i[1],d([{rotate:t.rotation+Math.PI/2,offset:e[0],r:0},{rotate:t.rotation-Math.PI/2,offset:e[1],r:Math.sqrt((o[0]-h[0])*(o[0]-h[0])+(o[1]-h[1])*(o[1]-h[1]))}],function(e,i){var s;"none"!==a[i]&&null!=a[i]&&(i=ul(a[i],-l/2,-u/2,l,u,r.stroke,!0),s=e.r+e.offset,i.attr({rotation:e.rotate,x:o[0]+s*Math.cos(t.rotation),y:o[1]-s*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i))}))},axisTickLabel:function(t,e,n,i){var o,r,a,s,u=function(t,e,n,i){var o=n.axis,r=n.getModel("axisTick"),a=r.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),a&&!o.scale.isBlank()){for(var a=r.getModel("lineStyle"),i=i.tickDirection*r.get("length"),s=Bc(o.getTicksCoords(),e.transform,i,l(a.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),u=0;u<s.length;u++)t.add(s[u]);return s}}(n,i,e,t),h=function(t,e,n,i){var o,r,a,s,l,u,h,c,p=n.axis,f=O(i.axisLabelShow,n.get(["axisLabel","show"]));if(f&&!p.scale.isBlank())return o=n.getModel("axisLabel"),r=o.get("margin"),f=p.getViewLabels(),a=(O(i.labelRotate,o.get("rotate"))||0)*OT/180,s=LT.innerTextLayout(i.rotation,a,i.labelDirection),l=n.getCategories&&n.getCategories(!0),u=[],h=LT.isLabelSilent(n),c=n.get("triggerEvent"),d(f,function(a,d){var f="ordinal"===p.scale.type?p.scale.getRawOrdinalNumber(a.tickValue):a.tickValue,g=a.formattedLabel,a=a.rawLabel,y=o,m=(y=l&&l[f]&&C(m=l[f])&&m.textStyle?new w_(m.textStyle,o,n.ecModel):y).getTextColor()||n.get(["axisLine","lineStyle","color"]),v=p.dataToCoord(f),v=new Cm({x:v,y:i.labelOffset+i.labelDirection*r,rotation:s.rotation,silent:h,z2:10,style:pr(y,{text:g,align:y.getShallow("align",!0)||s.textAlign,verticalAlign:y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||s.textVerticalAlign,fill:"function"==typeof m?m("category"===p.type?a:"value"===p.type?f+"":f,d):m})});v.anid="label_"+f,c&&((g=LT.makeAxisEventDataBase(n)).targetType="axisLabel",g.value=a,km(v).eventData=g),e.add(v),v.updateTransform(),u.push(v),t.add(v),v.decomposeTransform()}),u}(n,i,e,t),c=(h=h,u=u,dh((o=e).axis)||(f=o.get(["axisLabel","showMinLabel"]),o=o.get(["axisLabel","showMaxLabel"]),u=u||[],m=(h=h||[])[0],g=h[1],r=h[h.length-1],h=h[h.length-2],a=u[0],y=u[1],s=u[u.length-1],u=u[u.length-2],!1===f?(Rc(m),Rc(a)):Nc(m,g)&&(f?(Rc(g),Rc(y)):(Rc(m),Rc(a))),!1===o?(Rc(r),Rc(s)):Nc(h,r)&&(o?(Rc(h),Rc(u)):(Rc(r),Rc(s)))),n),p=i,f=e,g=t.tickDirection,y=f.axis,m=f.getModel("minorTick");if(m.get("show")&&!y.scale.isBlank()){var v=y.getMinorTicksCoords();if(v.length)for(var y=m.getModel("lineStyle"),_=g*m.get("length"),x=l(y.getLineStyle(),l(f.getModel("axisTick").getLineStyle(),{stroke:f.get(["axisLine","lineStyle","color"])})),b=0;b<v.length;b++)for(var w=Bc(v[b],p.transform,_,x,"minorticks_"+b),S=0;S<w.length;S++)c.add(w[S])}},axisName:function(t,e,n,i){var o,r,a,s,l,u,h,c,p=O(t.axisName,e.get("name"));p&&(c=e.get("nameLocation"),l=t.nameDirection,o=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,r=(h=e.axis.getExtent())[0]>h[1]?-1:1,r=["start"===c?h[0]-r*u:"end"===c?h[1]+r*u:(h[0]+h[1])/2,Ec(c)?t.labelOffset+l*u:0],null!=(u=e.get("nameRotate"))&&(u=u*OT/180),Ec(c)?a=LT.innerTextLayout(t.rotation,null!=u?u:t.rotation,l):(a=function(t,e,n,i){var o,n=tn(n-t),t=i[0]>i[1],i="start"===e&&!t||"start"!==e&&t;return e=en(n-OT/2)?(o=i?"bottom":"top","center"):en(n-1.5*OT)?(o=i?"top":"bottom","center"):(o="middle",n<1.5*OT&&OT/2<n?i?"left":"right":i?"right":"left"),{rotation:n,textAlign:e,textVerticalAlign:o}}(t.rotation,c,u||0,h),null!=(s=t.axisNameAvailableWidth)&&(s=Math.abs(s/Math.sin(a.rotation)),isFinite(s)||(s=null))),l=o.getFont(),u=(c=e.get("nameTruncate",!0)||{}).ellipsis,h=O(t.nameTruncateMaxWidth,c.maxWidth,s),sr({el:t=new Cm({x:r[0],y:r[1],rotation:a.rotation,silent:LT.isLabelSilent(e),style:pr(o,{text:p,font:l,overflow:"truncate",width:h,ellipsis:u,fill:o.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:o.get("align")||a.textAlign,verticalAlign:o.get("verticalAlign")||a.textVerticalAlign}),z2:1}),componentModel:e,itemName:p}),t.__fullText=p,t.anid="name",e.get("triggerEvent")&&((c=LT.makeAxisEventDataBase(e)).targetType="axisName",c.name=p,km(t).eventData=c),i.add(t),t.updateTransform(),n.add(t),t.decomposeTransform())}},NT={},ET=(e(Wc,IT=_b),Wc.prototype.render=function(t,e,n,i){var o,r,a,s,l,u;this.axisPointerClass&&(o=Vc(o=t))&&(l=o.axisPointerModel,r=o.axis.scale,a=l.option,u=l.get("status"),null!=(s=l.get("value"))&&(s=r.parse(s)),l=Hc(l),null==u&&(a.status=l?"show":"hide"),(u=r.getExtent().slice())[0]>u[1]&&u.reverse(),(s=null==s||s>u[1]?u[1]:s)<u[0]&&(s=u[0]),a.value=s,l)&&(a.status=o.axis.scale.isBlank()?"hide":"show"),IT.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},Wc.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},Wc.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},Wc.prototype.dispose=function(t,e){this._disposeAxisPointer(e),IT.prototype.dispose.apply(this,arguments)},Wc.prototype._doUpdateAxisPointerClass=function(t,e,n){var i,o=Wc.getAxisPointerClass(this.axisPointerClass);o&&((i=(i=Vc(i=t))&&i.axisPointerModel)?(this._axisPointer||(this._axisPointer=new o)).render(t,i,e,n):this._disposeAxisPointer(e))},Wc.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},Wc.registerAxisPointerClass=function(t,e){NT[t]=e},Wc.getAxisPointerClass=function(t){return t&&NT[t]},Wc.type="axis",Wc),BT=Sn(),zT=["axisLine","axisTickLabel","axisName"],FT=["splitArea","splitLine","minorSplitLine"],zv=(e(Uc,DT=ET),Uc.prototype.render=function(t,e,n,i){this.group.removeAll();var o,r,a=this._axisGroup;this._axisGroup=new zg,this.group.add(this._axisGroup),t.get("show")&&(r=Mc(o=t.getCoordSysModel(),t),r=new LT(t,s({handleAutoShown:function(e){for(var n=o.coordinateSystem.getCartesians(),i=0;i<n.length;i++){var r=n[i].getOtherAxis(t.axis).type;if("value"===r||"log"===r)return!0}return!1}},r)),d(zT,r.add,r),this._axisGroup.add(r.getGroup()),d(FT,function(e){t.get([e,"show"])&&VT[e](this,this._axisGroup,t,o)},this),i&&"changeAxisOrder"===i.type&&i.isInitSort||nr(a,this._axisGroup,t),DT.prototype.render.call(this,t,e,n,i))},Uc.prototype.remove=function(){BT(this).splitAreaColors=null},Uc.type="cartesianAxis",Uc),VT={splitLine:function(t,e,n,i){var o=n.axis;if(!o.scale.isBlank())for(var n=n.getModel("splitLine"),r=n.getModel("lineStyle"),a=_(a=r.get("color"))?a:[a],s=i.coordinateSystem.getRect(),u=o.isHorizontal(),h=0,c=o.getTicksCoords({tickModel:n}),p=[],d=[],f=r.getLineStyle(),g=0;g<c.length;g++){var y=o.toGlobalCoord(c[g].coord),y=(u?(p[0]=y,p[1]=s.y,d[0]=y,d[1]=s.y+s.height):(p[0]=s.x,p[1]=y,d[0]=s.x+s.width,d[1]=y),h++%a.length),m=c[g].tickValue;e.add(new Rv({anid:null!=m?"line_"+c[g].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:l({stroke:a[y]},f),silent:!0}))}},minorSplitLine:function(t,e,n,i){var o=n.axis,n=n.getModel("minorSplitLine").getModel("lineStyle"),r=i.coordinateSystem.getRect(),a=o.isHorizontal(),s=o.getMinorTicksCoords();if(s.length)for(var l=[],u=[],h=n.getLineStyle(),c=0;c<s.length;c++)for(var p=0;p<s[c].length;p++){var d=o.toGlobalCoord(s[c][p].coord);a?(l[0]=d,l[1]=r.y,u[0]=d,u[1]=r.y+r.height):(l[0]=r.x,l[1]=d,u[0]=r.x+r.width,u[1]=d),e.add(new Rv({anid:"minor_line_"+s[c][p].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:h,silent:!0}))}},splitArea:function(t,e,n,i){var o=e,e=i,r=(i=n).axis;if(!r.scale.isBlank()){var i=i.getModel("splitArea"),n=i.getModel("areaStyle"),a=n.get("color"),s=e.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var h=a.length,c=BT(t).splitAreaColors,p=G(),d=0;if(c)for(var f=0;f<u.length;f++){var g=c.get(u[f].tickValue);if(null!=g){d=(g+(h-1)*f)%h;break}}for(var y=r.toGlobalCoord(u[0].coord),m=n.getAreaStyle(),a=_(a)?a:[a],f=1;f<u.length;f++){var v=r.toGlobalCoord(u[f].coord),x=void 0,b=void 0,w=void 0,S=void 0,y=r.isHorizontal()?(x=y,b=s.y,S=s.height,x+(w=v-x)):(x=s.x,b=y,w=s.width,b+(S=v-b)),v=u[f-1].tickValue;null!=v&&p.set(v,d),o.add(new xm({anid:null!=v?"area_"+v:null,shape:{x:x,y:b,width:w,height:S},style:l({fill:a[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%h}BT(t).splitAreaColors=p}}}},HT=(e(jc,AT=zv),jc.type="xAxis",jc);e(Xc,GT=zv),Xc.type="yAxis";var GT,WT=Xc;e(Yc,UT=_b),Yc.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new xm({shape:t.coordinateSystem.getRect(),style:l({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},Yc.type="grid";var UT,jT=Yc,XT={offset:0};gh(function(t){t.registerComponentView(jT),t.registerComponentModel(vT),t.registerCoordinateSystem("cartesian2d",PT),xc(t,"x",xT,XT),xc(t,"y",xT,XT),t.registerComponentView(HT),t.registerComponentView(WT),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}),e(qc,YT=J_),qc.type="title",qc.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:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}};var YT,qT=qc;e(Zc,ZT=_b),Zc.prototype.render=function(t,e,n){var i,o,r,a,s,l,u,h,c;this.group.removeAll(),t.get("show")&&(i=this.group,u=t.getModel("textStyle"),o=t.getModel("subtextStyle"),h=t.get("textAlign"),c=L(t.get("textBaseline"),t.get("textVerticalAlign")),s=(u=new Cm({style:pr(u,{text:t.get("text"),fill:u.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get("subtext"),o=new Cm({style:pr(o,{text:l,fill:o.getTextColor(),y:s.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),r=t.get("link"),a=t.get("sublink"),s=t.get("triggerEvent",!0),u.silent=!r&&!s,o.silent=!a&&!s,r&&u.on("click",function(){qr(r,"_"+t.get("target"))}),a&&o.on("click",function(){qr(a,"_"+t.get("subtarget"))}),km(u).eventData=km(o).eventData=s?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(u),l&&i.add(o),s=i.getBoundingRect(),(l=t.getBoxLayoutParams()).width=s.width,l.height=s.height,l=$r(l,{width:n.getWidth(),height:n.getHeight()},t.get("padding")),h||("right"===(h="middle"===(h=t.get("left")||t.get("right"))?"center":h)?l.x+=l.width:"center"===h&&(l.x+=l.width/2)),c||("bottom"===(c="center"===(c=t.get("top")||t.get("bottom"))?"middle":c)?l.y+=l.height:"middle"===c&&(l.y+=l.height/2),c=c||"top"),i.x=l.x,i.y=l.y,i.markRedraw(),u.setStyle(n={align:h,verticalAlign:c}),o.setStyle(n),s=i.getBoundingRect(),u=l.margin,(h=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),c=new xm({shape:{x:s.x-u[3],y:s.y-u[0],width:s.width+u[1]+u[3],height:s.height+u[0]+u[2],r:t.get("borderRadius")},style:h,subPixelOptimize:!0,silent:!0}),i.add(c))},Zc.type="title";var ZT,$T=Zc;gh(function(t){t.registerComponentModel(qT),t.registerComponentView($T)}),e($c,KT=J_),$c.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},$c.prototype.mergeOption=function(t,e){KT.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},$c.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;_(e=!0===e?t.selector=["all","inverse"]:e)&&d(e,function(t,i){b(t)&&(t={type:t}),e[i]=a(t,(i=n,"all"===(t=t.type)?{type:"all",title:i.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:i.getLocaleModel().get(["legend","selector","inverse"])}:void 0))})},$c.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}e||this.select(t[0].get("name"))}},$c.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries(function(i){var o,r=i.name;n.push(r),i.legendVisualProvider&&(r=i.legendVisualProvider.getAllNames(),t.isSeriesFiltered(i)||(n=n.concat(r)),r.length)?e=e.concat(r):o=!0,o&&_n(i)&&e.push(i.name)}),this._availableNames=n;var i=f(this.get("data")||e,function(t){return new w_(t="string"!=typeof t&&"number"!=typeof t?t:{name:t},this,this.ecModel)},this);this._data=i},$c.prototype.getData=function(){return this._data},$c.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&d(this._data,function(t){e[t.get("name")]=!1}),e[t]=!0},$c.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},$c.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},$c.prototype.allSelect=function(){var t=this._data,e=this.option.selected;d(t,function(t){e[t.get("name",!0)]=!0})},$c.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;d(t,function(t){t=t.get("name",!0),e.hasOwnProperty(t)||(e[t]=!0),e[t]=!e[t]})},$c.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&0<=u(this._availableNames,t)},$c.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},$c.type="legend.plain",$c.dependencies=["series"],$c.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,symbolRotate:"inherit",inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",decal:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}};var KT,JT,QT=$c,tM=v,eM=d,nM=zg,iM=(e(Kc,JT=_b),Kc.prototype.init=function(){this.group.add(this._contentGroup=new nM),this.group.add(this._selectorGroup=new nM),this._isFirstRender=!0},Kc.prototype.getContentGroup=function(){return this._contentGroup},Kc.prototype.getSelectorGroup=function(){return this._selectorGroup},Kc.prototype.render=function(t,e,n){var i,o,r,a,s,u=this._isFirstRender;this._isFirstRender=!1,this.resetInner(),t.get("show",!0)&&(o=t.get("align"),i=t.get("orient"),o&&"auto"!==o||(o="right"===t.get("left")&&"vertical"===i?"right":"left"),a=t.get("selector",!0),s=t.get("selectorPosition",!0),this.renderInner(o,t,e,n,a,i,s=!a||s&&"auto"!==s?s:"horizontal"===i?"end":"start"),r=$r(e=t.getBoxLayoutParams(),i={width:n.getWidth(),height:n.getHeight()},n=t.get("padding")),r=$r(l({width:(o=this.layoutInner(t,o,r,u,a,s)).width,height:o.height},e),i,n),this.group.x=r.x-o.x,this.group.y=r.y-o.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(u=o,s=F_((a=t).get("padding")),(e=a.getItemStyle(["color","opacity"])).fill=a.get("backgroundColor"),u=new xm({shape:{x:u.x-s[3],y:u.y-s[0],width:u.width+s[1]+s[3],height:u.height+s[0]+s[2],r:a.get("borderRadius")},style:e,silent:!0,z2:-1}))))},Kc.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},Kc.prototype.renderInner=function(t,e,n,i,o,r,a){var s=this.getContentGroup(),l=G(),u=e.get("selectedMode"),h=[];n.eachRawSeries(function(t){t.get("legendHoverLink")||h.push(t.id)}),eM(e.getData(),function(o,r){var a,c,p,d,f=o.get("name");this.newlineDisabled||""!==f&&"\n"!==f?(a=n.getSeriesByName(f)[0],l.get(f)||(a?(c=(d=a.getData()).getVisual("legendLineStyle")||{},p=d.getVisual("legendIcon"),d=d.getVisual("style"),this._createItem(a,f,r,o,e,t,c,d,p,u).on("click",tM(Jc,f,null,i,h)).on("mouseover",tM(tp,a.name,null,i,h)).on("mouseout",tM(ep,a.name,null,i,h)),l.set(f,!0)):n.eachRawSeries(function(n){var a,s,c;l.get(f)||n.legendVisualProvider&&(s=n.legendVisualProvider).containName(f)&&(c=s.indexOfName(f),a=s.getItemVisual(c,"style"),s=s.getItemVisual(c,"legendIcon"),(c=Ut(a.fill))&&0===c[3]&&(c[3]=.2,a.fill=$t(c,"rgba")),this._createItem(n,f,r,o,e,t,{},a,s,u).on("click",tM(Jc,null,f,i,h)).on("mouseover",tM(tp,null,f,i,h)).on("mouseout",tM(ep,null,f,i,h)),l.set(f,!0))},this))):((c=new nM).newline=!0,s.add(c))},this),o&&this._createSelector(o,e,i,r,a)},Kc.prototype._createSelector=function(t,e,n,i,o){var r=this.getSelectorGroup();eM(t,function(t){var i=t.type,o=new Cm({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});r.add(o),hr(o,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),oo(o)})},Kc.prototype._createItem=function(t,e,n,i,o,r,a,s,l,u){var h=t.visualDrawType,c=o.get("itemWidth"),p=o.get("itemHeight"),d=o.isSelected(e),f=i.get("symbolRotate"),g=i.get("icon"),y=(l=g||l||"roundRect",o.getModel("lineStyle")),y=function(t,e,n,i,o,r,a){for(var s=e.getModel("itemStyle"),l=v_.concat([["decal"]]),u={},h=0;h<l.length;++h){var c=l[h][l[h].length-1],p=l[h][0];if("inherit"===(y=s.getShallow(c)))switch(p){case"fill":u.fill=o[r];break;case"stroke":u.stroke=o[0===t.lastIndexOf("empty",0)?"fill":"stroke"];break;case"opacity":u.opacity=("fill"===r?o:i).opacity;break;default:u[p]=o[p]}else"auto"===y&&"lineWidth"===p?u.lineWidth=0<o.lineWidth?2:0:u[p]=y}for(var d=e.getModel("lineStyle"),f=y_.concat([["inactiveColor"],["inactiveWidth"]]),g={},h=0;h<f.length;++h){var y,c=f[h][1],p=f[h][0];"inherit"===(y=d.getShallow(c))?g[p]=i[p]:"auto"===y&&"lineWidth"===p?g.lineWidth=0<i.lineWidth?2:0:g[p]=y}var m;return"auto"===u.fill&&(u.fill=o.fill),"auto"===u.stroke&&(u.stroke=o.fill),"auto"===g.stroke&&(g.stroke=o.fill),a||(a=e.get("inactiveBorderWidth"),m=u[-1<t.indexOf("empty")?"fill":"stroke"],u.lineWidth="auto"===a?0<o.lineWidth&&m?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),g.stroke=n.get("inactiveColor"),g.lineWidth=n.get("inactiveWidth")),{itemStyle:u,lineStyle:g}}(l,i,y,a,s,h,d),a=new nM,s=i.getModel("textStyle"),g=("function"!=typeof t.getLegendIcon||g&&"inherit"!==g?(h="inherit"===g&&t.getData().getVisual("symbol")?"inherit"===f?t.getData().getVisual("symbolRotate"):f:0,a.add(function(t){var e=t.icon||"roundRect",n=ul(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<e.indexOf("empty")&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}({itemWidth:c,itemHeight:p,icon:l,iconRotate:h,itemStyle:y.itemStyle,lineStyle:y.lineStyle}))):a.add(t.getLegendIcon({itemWidth:c,itemHeight:p,icon:l,iconRotate:f,itemStyle:y.itemStyle,lineStyle:y.lineStyle})),"left"===r?c+5:-5),h=r,t=o.get("formatter"),l=e,f=("string"==typeof t&&t?l=t.replace("{name}",null!=e?e:""):"function"==typeof t&&(l=t(e)),i.get("inactiveColor")),y=(a.add(new Cm({style:pr(s,{text:l,x:g,y:p/2,fill:d?s.getTextColor():f,align:h,verticalAlign:"middle"})})),new xm({shape:a.getBoundingRect(),invisible:!0})),c=i.getModel("tooltip");return c.get("show")&&sr({el:y,componentModel:o,itemName:e,itemTooltipOption:c.option}),a.add(y),a.eachChild(function(t){t.silent=!0}),y.silent=!u,this.getContentGroup().add(a),oo(a),a.__legendDataIndex=n,a},Kc.prototype.layoutInner=function(t,e,n,i,o,r){var a,s,l,u,h,c=this.getContentGroup(),p=this.getSelectorGroup(),n=(X_(t.get("orient"),c,t.get("itemGap"),n.width,n.height),c.getBoundingRect()),d=[-n.x,-n.y];return p.markRedraw(),c.markRedraw(),o?(X_("horizontal",p,t.get("selectorItemGap",!0)),a=[-(o=p.getBoundingRect()).x,-o.y],s=t.get("selectorButtonGap",!0),l=0===(t=t.getOrient().index)?"width":"height",u=0===t?"height":"width",h=0===t?"y":"x","end"===r?a[t]+=n[l]+s:d[t]+=o[l]+s,a[1-t]+=n[u]/2-o[u]/2,p.x=a[0],p.y=a[1],c.x=d[0],c.y=d[1],(r={x:0,y:0})[l]=n[l]+s+o[l],r[u]=Math.max(n[u],o[u]),r[h]=Math.min(0,o[h]+a[1-t]),r):(c.x=d[0],c.y=d[1],this.group.getBoundingRect())},Kc.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},Kc.type="legend.plain",Kc);e(rp,oM=QT),rp.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},rp.prototype.init=function(t,e,n){var i=Qr(t);oM.prototype.init.call(this,t,e,n),ap(this,t,i)},rp.prototype.mergeOption=function(t,e){oM.prototype.mergeOption.call(this,t,e),ap(this,this.option,t)},rp.type="legend.scroll",rp.defaultOption=(Wv=QT.defaultOption,Cv={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},a(a({},Wv,!0),Cv,!0));var oM,rM,aM=rp,sM=zg,lM=["width","height"],uM=["x","y"],hM=(e(sp,rM=iM),sp.prototype.init=function(){rM.prototype.init.call(this),this.group.add(this._containerGroup=new sM),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new sM)},sp.prototype.resetInner=function(){rM.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},sp.prototype.renderInner=function(t,e,n,i,o,r,a){function s(t,n){var o=t+"DataIndex",n=rr(e.get("pageIcons",!0)[e.getOrient().name][n],{onclick:Kd(l._pageGo,l,o,e,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});n.name=t,u.add(n)}var l=this,u=(rM.prototype.renderInner.call(this,t,e,n,i,o,r,a),this._controllerGroup),t=e.get("pageIconSize",!0),h=_(t)?t:[t,t],n=(s("pagePrev",0),e.getModel("pageTextStyle"));u.add(new Cm({name:"pageText",style:{text:"xx/xx",fill:n.getTextColor(),font:n.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),s("pageNext",1)},sp.prototype.layoutInner=function(t,e,n,i,o,a){var s=this.getSelectorGroup(),l=t.getOrient().index,u=lM[l],h=uM[l],c=lM[1-l],p=uM[1-l],d=(o&&X_("horizontal",s,t.get("selectorItemGap",!0)),t.get("selectorButtonGap",!0)),f=s.getBoundingRect(),g=[-f.x,-f.y],y=r(n),n=(o&&(y[u]=n[u]-f[u]-d),this._layoutContentAndController(t,i,y,l,u,c,p,h));return o&&("end"===a?g[l]+=n[u]+d:(t=f[u]+d,g[l]-=t,n[h]-=t),n[u]+=f[u]+d,g[1-l]+=n[p]+n[c]/2-f[c]/2,n[c]=Math.max(n[c],f[c]),n[p]=Math.min(n[p],f[p]+g[1-l]),s.x=g[0],s.y=g[1],s.markRedraw()),n},sp.prototype._layoutContentAndController=function(t,e,n,i,o,r,a,s){var l=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup,c=(X_(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),X_("horizontal",h,t.get("pageButtonItemGap",!0)),l.getBoundingRect()),p=h.getBoundingRect(),d=this._showController=c[o]>n[o],f=[-c.x,-c.y],e=(e||(f[i]=l[s]),[0,0]),s=[-p.x,-p.y],g=L(t.get("pageButtonGap",!0),t.get("itemGap",!0)),f=(d&&("end"===t.get("pageButtonPosition",!0)?s[i]+=n[o]-p[o]:e[i]+=p[o]+g),s[1-i]+=c[r]/2-p[r]/2,l.setPosition(f),u.setPosition(e),h.setPosition(s),{x:0,y:0}),c=(f[o]=(d?n:c)[o],f[r]=Math.max(c[r],p[r]),f[a]=Math.min(0,p[a]+s[1-i]),u.__rectSize=n[o],d?((e={x:0,y:0})[o]=Math.max(n[o]-p[o]-g,0),e[r]=f[r],u.setClipPath(new xm({shape:e})),u.__rectSize=e[o]):h.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&Fo(l,{x:c.contentPosition[0],y:c.contentPosition[1]},d?t:null),this._updatePageInfoView(t,c),f},sp.prototype._pageGo=function(t,e,n){null!=(t=this._getPageInfo(e)[t])&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},sp.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup,i=(d(["pagePrev","pageNext"],function(i){var o=null!=e[i+"DataIndex"],i=n.childOfName(i);i&&(i.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),i.cursor=o?"pointer":"default")}),n.childOfName("pageText")),o=t.get("pageFormatter"),r=e.pageIndex,r=null!=r?r+1:0,a=e.pageCount;i&&o&&i.setStyle("text",b(o)?o.replace("{current}",null==r?"":r+"").replace("{total}",null==a?"":a+""):o({current:r,total:a}))},sp.prototype._getPageInfo=function(t){function e(t){var e,n;if(t)return{s:n=(e=t.getBoundingRect())[s]+t[s],e:n+e[a],i:t.__legendDataIndex}}function n(t,e){return t.e>=e&&t.s<=e+r}var i=t.get("scrollDataIndex",!0),o=this.getContentGroup(),r=this._containerGroup.__rectSize,t=t.getOrient().index,a=lM[t],s=uM[t],i=this._findTargetItemIndex(i),l=o.children(),u=l[i],h=l.length,c=h?1:0,p={contentPosition:[o.x,o.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(u){o=e(u),p.contentPosition[t]=-o.s;for(var d=i+1,f=o,g=o,y=null;d<=h;++d)(!(y=e(l[d]))&&g.e>f.s+r||y&&!n(y,f.s))&&(f=g.i>f.i?g:y)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=f.i),++p.pageCount),g=y;for(d=i-1,f=o,g=o,y=null;-1<=d;--d)(y=e(l[d]))&&n(g,y.s)||!(f.i<g.i)||(g=f,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=f.i),++p.pageCount,++p.pageIndex),f=y}return p},sp.prototype._findTargetItemIndex=function(t){var e,n;return this._showController?(this.getContentGroup().eachChild(function(i,o){i=i.__legendDataIndex,null==n&&null!=i&&(n=o),i===t&&(e=o)}),null!=e?e:n):0},sp.type="legend.scroll",sp);gh(function(t){gh(op),t.registerComponentModel(aM),t.registerComponentView(hM),t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})});var cM=Sn(),pM=r,dM=Kd;lp.prototype.render=function(t,e,n,i){var o,r,a=e.get("value"),s=e.get("status");this._axisModel=t,this._axisPointerModel=e,this._api=n,!i&&this._lastValue===a&&this._lastStatus===s||(this._lastValue=a,this._lastStatus=s,i=this._group,o=this._handle,s&&"hide"!==s?(i&&i.show(),o&&o.show(),this.makeElOption(s={},a,t,e,n),(r=s.graphicKey)!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=r,r=this._moveAnimation=this.determineAnimation(t,e),i?(r=v(up,e,r),this.updatePointerEl(i,s,r),this.updateLabelEl(i,s,r,e)):(i=this._group=new zg,this.createPointerEl(i,s,t,e),this.createLabelEl(i,s,t,e),n.getZr().add(i)),pp(i,e,!0),this._renderHandle(a)):(i&&i.hide(),o&&o.hide()))},lp.prototype.remove=function(t){this.clear(t)},lp.prototype.dispose=function(t){this.clear(t)},lp.prototype.determineAnimation=function(t,e){var n,i=e.get("animation"),o=t.axis,r="category"===o.type,e=e.get("snap");return!(!e&&!r)&&("auto"===i||null==i?(n=this.animationThreshold,r&&o.getBandWidth()>n||!!e&&(r=Vc(t).seriesDataCount,e=o.getExtent(),Math.abs(e[0]-e[1])/r>n)):!0===i)},lp.prototype.makeElOption=function(t,e,n,i,o){},lp.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;o&&(o=cM(t).pointerEl=new l_[o.type](pM(e.pointer)),t.add(o))},lp.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=cM(t).labelEl=new Cm(pM(e.label)),t.add(e),hp(e,i))},lp.prototype.updatePointerEl=function(t,e,n){(t=cM(t).pointerEl)&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},lp.prototype.updateLabelEl=function(t,e,n,i){(t=cM(t).labelEl)&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),hp(t,i))},lp.prototype._renderHandle=function(t){var e,n,i,o,r,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,o=e.getModel("handle"),a=e.get("status"),o.get("show")&&a&&"hide"!==a?(this._handle||(r=!0,i=this._handle=rr(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){ff(t.event)},onmousedown:dM(this._onHandleDragMove,this,0,0),drift:dM(this._onHandleDragMove,this),ondragend:dM(this._onHandleDragEnd,this)}),n.add(i)),pp(i,e,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),_(a=o.get("size"))||(a=[a,a]),i.scaleX=a[0]/2,i.scaleY=a[1]/2,function(t,e,n,i){var o=t[e];if(o){var r=o[Cb]||o,a=o[Mb];if(o[Tb]!==n||a!==i){if(null==n)return t[e]=r;(o=t[e]=Us(r,n,!1))[Cb]=r,o[Mb]=i,o[Tb]=n}}}(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,r)):(i&&n.remove(i),this._handle=null))},lp.prototype._moveHandleToValue=function(t,e){up(this._axisPointerModel,!e&&this._moveAnimation,this._handle,cp(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},lp.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(cp(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(cp(t)),cM(n).lastProp=null,this._doDispatchAxisPointer())},lp.prototype._doDispatchAxisPointer=function(){var t,e;this._handle&&(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}]}))},lp.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},lp.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var t=t.getZr(),e=this._group,n=this._handle;t&&e&&(this._lastGraphicKey=null,e&&t.remove(e),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},lp.prototype.doClear=function(){},lp.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},e(yp,fM=lp),yp.prototype.makeElOption=function(t,e,n,i,o){var r,a,s=n.axis,l=s.grid,u=i.get("type"),h=mp(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(e,!0)),p=(u&&"none"!==u&&(r=(a=i).get("type"),a=a.getModel(r+"Style"),"line"===r?(p=a.getLineStyle()).fill=null:"shadow"===r&&((p=a.getAreaStyle()).stroke=null),r=p,(a=yM[u](s,c,h)).style=r,t.graphicKey=a.type,t.pointer=a),Mc(l.model,n));u=e,s=t,c=p,h=n,r=i,a=o,l=LT.innerTextLayout(c.rotation,0,c.labelDirection),c.labelMargin=r.get(["label","margin"]),dp(s,h,r,a,{position:gp(h.axis,u,c),align:l.textAlign,verticalAlign:l.textVerticalAlign})},yp.prototype.getHandleTransform=function(t,e,n){var i=Mc(e.axis.grid.model,e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),gp(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},yp.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,o=n.grid,r=n.getGlobalExtent(!0),o=mp(o,n).getOtherAxis(n).getGlobalExtent(),n="x"===n.dim?0:1,a=[t.x,t.y],e=(a[n]+=e[n],a[n]=Math.min(r[1],a[n]),a[n]=Math.max(r[0],a[n]),(o[1]+o[0])/2),r=[e,e];return r[n]=a[n],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:r,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}};var fM,gM=yp,yM={line:function(t,e,n){var i;return i=[e,n[0]],e=[e,n[1]],n=vp(t),{type:"Line",subPixelOptimize:!0,shape:{x1:i[n=n||0],y1:i[1-n],x2:e[n],y2:e[1-n]}}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:(e=[e-i/2,n[0]],n=[i,o],i=vp(t),{x:e[i=i||0],y:e[1-i],width:n[i],height:n[1-i]})}}};e(_p,mM=J_),_p.type="axisPointer",_p.defaultOption={show:"auto",zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},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}};var mM,vM=_p,_M=Sn(),xM=d;e(Cp,bM=_b),Cp.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";xp("axisPointer",n,function(t,e,n){"none"!==i&&("leave"===t||0<=i.indexOf(t))&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},Cp.prototype.remove=function(t,e){Sp("axisPointer",e)},Cp.prototype.dispose=function(t,e){Sp("axisPointer",e)},Cp.type="axisPointer";var bM,wM=Cp,SM=Sn();e(Lp,CM=J_),Lp.type="tooltip",Lp.dependencies=["axisPointer"],Lp.defaultOption={zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}};var CM,TM=Lp,MM=Np(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),kM=Ep(Np(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),IM=Ep(MM,"transform"),DM="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Bd.transform3dSupported?"will-change:transform;":"");Vp.prototype.update=function(t){var e=this._container,n=(n="position",(i=(i=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(i))?n?i[n]:i:null),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative"),t.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=t.get("className")||""},Vp.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,o=this._styleCoord;n.innerHTML?i.cssText=DM+zp(t,!this._firstShow,this._longHide)+Bp(o[0],o[1],!0)+"border-color:"+Yr(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},Vp.prototype.setContent=function(t,e,n,i,o){var r=this.el;if(null==t)r.innerHTML="";else{var a,s,l,h,c,p="";if(b(o)&&"item"===n.get("trigger")&&!Rp(n)&&(n=n,i=i,p=b(o=o)&&"inside"!==o?(a=n.get("backgroundColor"),n=n.get("borderWidth"),i=Yr(i),o=o="left"===(o=o)?"right":"right"===o?"left":"top"===o?"bottom":"top",d=Math.max(1.5*Math.round(n),6),s="",l=IM+":",-1<u(["left","right"],o)?(s+="top:50%",l+="translateY(-50%) rotate("+(c="left"==o?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(c="top"==o?225:45)+"deg)"),c=c*Math.PI/180,c=(h=d+n)*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),i=i+" solid "+n+"px;",'<div style="'+["position:absolute;width:"+d+"px;height:"+d+"px;",(s+=";"+o+":-"+Math.round(100*((c-Math.SQRT2*n)/2+Math.SQRT2*n-(c-h)/2))/100+"px")+";"+l+";","border-bottom:"+i,"border-right:"+i,"background-color:"+a+";"].join("")+'"></div>'):""),b(t))r.innerHTML=t+p;else if(t){r.innerHTML="",_(t)||(t=[t]);for(var d,f=0;f<t.length;f++)k(t[f])&&t[f].parentNode!==r&&r.appendChild(t[f]);p&&r.childNodes.length&&((d=document.createElement("div")).innerHTML=p,r.appendChild(d))}}},Vp.prototype.setEnterable=function(t){this._enterable=t},Vp.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},Vp.prototype.moveTo=function(t,e){var n,i=this._styleCoord;Fp(i,this._zr,this._appendToBody,t,e),null!=i[0]&&null!=i[1]&&(n=this.el.style,d(Bp(i[0],i[1]),function(t){n[t[0]]=t[1]}))},Vp.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},Vp.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",Bd.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},Vp.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Kd(this.hide,this),t)):this.hide())},Vp.prototype.isShow=function(){return this._show},Vp.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)};var AM=Vp;Hp.prototype.update=function(t){t.get("alwaysShowContent")&&this._moveIfResized()},Hp.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},Hp.prototype.setContent=function(t,e,n,i,o){C(t)&&cn(""),this.el&&this._zr.remove(this.el);var r=n.getModel("textStyle"),a=(this.el=new Cm({style:{rich:e.richTextStyles,text:t,lineHeight:22,backgroundColor:n.get("backgroundColor"),borderRadius:n.get("borderRadius"),borderWidth:1,borderColor:i,shadowColor:n.get("shadowColor"),shadowBlur:n.get("shadowBlur"),shadowOffsetX:n.get("shadowOffsetX"),shadowOffsetY:n.get("shadowOffsetY"),textShadowColor:r.get("textShadowColor"),textShadowBlur:r.get("textShadowBlur")||0,textShadowOffsetX:r.get("textShadowOffsetX")||0,textShadowOffsetY:r.get("textShadowOffsetY")||0,fill:n.get(["textStyle","color"]),padding:Ts(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),this._zr.add(this.el),this);this.el.on("mouseover",function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0}),this.el.on("mouseout",function(){a._enterable&&a._show&&a.hideLater(a._hideDelay),a._inContent=!1})},Hp.prototype.setEnterable=function(t){this._enterable=t},Hp.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),t=Wp(t.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},Hp.prototype.moveTo=function(t,e){var n,i,o=this.el;o&&(Up(i=this._styleCoord,this._zr,t,e),t=i[0],e=i[1],n=Gp((i=o.style).borderWidth||0),i=Wp(i),o.x=t+n+i.left,o.y=e+n+i.top,o.markRedraw())},Hp.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},Hp.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},Hp.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Kd(this.hide,this),t)):this.hide())},Hp.prototype.isShow=function(){return this._show},Hp.prototype.dispose=function(){this._zr.remove(this.el)};var PM,OM=Hp,LM=Kd,RM=d,NM=Ze,EM=new xm({shape:{x:-1,y:-1,width:2,height:2}}),BM=(e(jp,PM=_b),jp.prototype.init=function(t,e){var n;Bd.node||(t=t.getComponent("tooltip"),n=t.get("renderMode"),this._renderMode="auto"===(n=n)?Bd.domSupported?"html":"richText":n||"html",this._tooltipContent="richText"===this._renderMode?new OM(e):new AM(e.getDom(),e,{appendToBody:t.get("appendToBody",!0)}))},jp.prototype.render=function(t,e,n){Bd.node||(this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent"),(e=this._tooltipContent).update(t),e.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow())},jp.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");xp("itemTooltip",this._api,LM(function(e,n,i){"none"!==t&&(0<=t.indexOf(e)?this._tryShow(n,i):"leave"===e&&this._hide(i))},this))},jp.prototype._keepShow=function(){var t,e=this._tooltipModel,n=this._ecModel,i=this._api;null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")&&(t=this,clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){i.isDisposed()||t.manuallyShowTip(e,n,i,{x:t._lastX,y:t._lastY,dataByCoordSys:t._lastDataByCoordSys})}))},jp.prototype.manuallyShowTip=function(t,e,n,i){var o,r,a,s;i.from===this.uid||Bd.node||(o=Yp(i,n),this._ticket="",s=i.dataByCoordSys,(r=function(t,e,n){var i=Tn(t).queryOptionMap,o=i.keys()[0];if(o&&"series"!==o){var r,e=Mn(e,o,i.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(e&&(n.getViewOfComponentModel(e).group.traverse(function(e){var n=km(e).tooltipConfig;if(n&&n.name===t.name)return r=e,!0}),r))return{componentMainType:o,componentIndex:e.componentIndex,el:r}}}(i,e,n))?((a=r.el.getBoundingRect().clone()).applyTransform(r.el.transform),this._tryShow({offsetX:a.x+a.width/2,offsetY:a.y+a.height/2,target:r.el,position:i.position,positionDefault:"bottom"},o)):i.tooltip&&null!=i.x&&null!=i.y?((a=EM).x=i.x,a.y=i.y,a.update(),km(a).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:a},o)):s?this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o):null!=i.seriesIndex?this._manuallyAxisShowTip(t,e,n,i)||(a=(r=Tp(i,e)).point[0],s=r.point[1],null!=a&&null!=s&&this._tryShow({offsetX:a,offsetY:s,target:r.el,position:i.position,positionDefault:"bottom"},o)):null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o)))},jp.prototype.manuallyHideTip=function(t,e,n,i){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Yp(i,n))},jp.prototype._manuallyAxisShowTip=function(t,e,n,i){var o=i.seriesIndex,r=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=r&&null!=a&&(a=e.getSeriesByIndex(o))&&(e=Xp([a.getData().getItemModel(r),a,(a.coordinateSystem||{}).model],this._tooltipModel),"axis"===e.get("trigger")))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:r,position:i.position}),!0},jp.prototype._tryShow=function(t,e){var n,i,o,r=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(n=t.dataByCoordSys)&&n.length?this._showAxisTooltip(n,t):r?(al(r,function(t){return null!=km(t).dataIndex?(i=t,1):null!=km(t).tooltipConfig&&(o=t,1)},!(this._lastDataByCoordSys=null)),i?this._showSeriesItemTooltip(t,i,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)):(this._lastDataByCoordSys=null,this._hide(e)))},jp.prototype._showOrMove=function(t,e){t=t.get("showDelay"),e=Kd(e,this),clearTimeout(this._showTimout),0<t?this._showTimout=setTimeout(e,t):e()},jp.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,o=[e.offsetX,e.offsetY],r=Xp([e.tooltipOption],i),a=this._renderMode,s=[],l=_s("section",{blocks:[],noHeader:!0}),u=[],h=new gb,c=(RM(t,function(t){RM(t.dataByAxis,function(t){var e,i,o=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;o&&null!=r&&(e=fp(r,o.axis,n,t.seriesDataIndices,t.valueLabelOpt),i=_s("section",{header:e,noHeader:!z(e),sortBlocks:!0,blocks:[]}),l.blocks.push(i),d(t.seriesDataIndices,function(l){var c=n.getSeriesByIndex(l.seriesIndex),l=l.dataIndexInside,p=c.getDataParams(l);p.dataIndex<0||(p.axisDim=t.axisDim,p.axisIndex=t.axisIndex,p.axisType=t.axisType,p.axisId=t.axisId,p.axisValue=hh(o.axis,{value:r}),p.axisValueLabel=e,p.marker=h.makeTooltipMarker("item",Yr(p.color),a),(c=Xa(c.formatTooltip(l,!0,null))).markupFragment&&i.blocks.push(c.markupFragment),c.markupText&&u.push(c.markupText),s.push(p))}))})}),l.blocks.reverse(),u.reverse(),e.position),i=r.get("order"),e=bs(l,h,a,i,n.get("useUTC"),r.get("textStyle")),i=(e&&u.unshift(e),"richText"===a?"\n\n":"<br/>"),p=u.join(i);this._showOrMove(r,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(r,c,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(r,p,s,Math.random()+"",o[0],o[1],c,null,h)})},jp.prototype._showSeriesItemTooltip=function(t,e,n){var i,o,r,a,s=this._ecModel,e=km(e),l=e.seriesIndex,u=s.getSeriesByIndex(l),h=e.dataModel||u,c=e.dataIndex,e=e.dataType,p=h.getData(e),d=this._renderMode,f=t.positionDefault,g=Xp([p.getItemModel(c),h,u&&(u.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),u=g.get("trigger");null!=u&&"item"!==u||(i=h.getDataParams(c,e),o=new gb,i.marker=o.makeTooltipMarker("item",Yr(i.color),d),f=Xa(h.formatTooltip(c,!1,e)),u=g.get("order"),r=f.markupFragment?bs(f.markupFragment,o,d,u,s.get("useUTC"),g.get("textStyle")):f.markupText,a="item_"+h.name+"_"+c,this._showOrMove(g,function(){this._showTooltipContent(g,r,i,a,t.offsetX,t.offsetY,t.position,t.target,o)}),n({type:"showTip",dataIndexInside:c,dataIndex:p.getRawIndex(c),seriesIndex:l,from:this.uid}))},jp.prototype._showComponentItemTooltip=function(t,e,n){var i=km(e),o=i.tooltipConfig.option||{},a=[o=b(o)?{content:o,formatter:o}:o],i=this._ecModel.getComponent(i.componentMainType,i.componentIndex),i=(i&&a.push(i),a.push({formatter:o.content}),t.positionDefault),s=Xp(a,this._tooltipModel,i?{position:i}:null),l=s.get("content"),u=Math.random()+"",h=new gb;this._showOrMove(s,function(){var n=r(s.get("formatterParams")||{});this._showTooltipContent(s,l,n,u,t.offsetX,t.offsetY,t.position,e,h)}),n({type:"showTip",from:this.uid})},jp.prototype._showTooltipContent=function(t,e,n,i,o,r,a,s,l){var u,h,c,p,d;this._ticket="",t.get("showContent")&&t.get("show")&&(u=this._tooltipContent,h=t.get("formatter"),a=a||t.get("position"),e=e,c=this._getNearestPoint([o,r],n,t.get("trigger"),t.get("borderColor")).color,h&&(e=b(h)?(p=t.ecModel.get("useUTC"),e=h,jr(e=(d=_(n)?n[0]:n)&&d.axisType&&0<=d.axisType.indexOf("time")?Cr(d.axisValue,e,p):e,n,!0)):x(h)?(d=LM(function(e,i){e===this._ticket&&(u.setContent(i,l,t,c,a),this._updatePosition(t,a,o,r,u,n,s))},this),this._ticket=i,h(n,i,d)):h),u.setContent(e,l,t,c,a),u.show(t,c),this._updatePosition(t,a,o,r,u,n,s))},jp.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||_(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:_(e)?void 0:{color:i||e.color||e.borderColor}},jp.prototype._updatePosition=function(t,e,n,i,o,r,a){var s,l=this._api.getWidth(),u=this._api.getHeight(),h=(e=e||t.get("position"),o.getSize()),c=t.get("align"),p=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();a&&d.applyTransform(a.transform),_(e=x(e)?e([n,i],r,o.el,d,{viewSize:[l,u],contentSize:h.slice()}):e)?(n=NM(e[0],l),i=NM(e[1],u)):C(e)?((r=e).width=h[0],r.height=h[1],n=(r=$r(r,{width:l,height:u})).x,i=r.y,p=c=null):(n=(s=b(e)&&a?function(t,e,n,i){var o=n[0],r=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-o/2,l=e.y+h/2-r/2;break;case"top":s=e.x+u/2-o/2,l=e.y-r-a;break;case"bottom":s=e.x+u/2-o/2,l=e.y+h+a;break;case"left":s=e.x-o-a,l=e.y+h/2-r/2;break;case"right":s=e.x+u+a,l=e.y+h/2-r/2}return[s,l]}(e,d,h,t.get("borderWidth")):function(t,e,n,i,o,r,a){var n=n.getSize(),s=n[0],n=n[1];return null!=r&&(i<t+s+r+2?t-=s+r:t+=r),null!=a&&(o<e+n+a?e-=n+a:e+=a),[t,e]}(n,i,o,l,u,c?null:20,p?null:20))[0],i=s[1]),c&&(n-=qp(c)?h[0]/2:"right"===c?h[0]:0),p&&(i-=qp(p)?h[1]/2:"bottom"===p?h[1]:0),Rp(t)&&(r=n,a=i,e=l,d=u,c=(c=o).getSize(),p=c[0],c=c[1],r=Math.min(r+p,e)-p,a=Math.min(a+c,d)-c,r=Math.max(r,0),a=Math.max(a,0),n=(s=[r,a])[0],i=s[1]),o.moveTo(n,i)},jp.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&RM(n,function(n,r){var n=n.dataByAxis||[],a=(t[r]||{}).dataByAxis||[];(o=o&&n.length===a.length)&&RM(n,function(t,n){var n=a[n]||{},r=t.seriesDataIndices||[],s=n.seriesDataIndices||[];(o=o&&t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&r.length===s.length)&&RM(r,function(t,e){e=s[e],o=o&&t.seriesIndex===e.seriesIndex&&t.dataIndex===e.dataIndex}),i&&d(t.seriesDataIndices,function(t){var t=t.seriesIndex,n=e[t],t=i[t];n&&t&&t.data!==n.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!o},jp.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},jp.prototype.dispose=function(t,e){Bd.node||(this._tooltipContent.dispose(),Sp("itemTooltip",e))},jp.type="tooltip",jp);gh(function(t){gh(Op),t.registerComponentModel(TM),t.registerComponentView(BM),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})}),gh(Uh);var zM={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},FM=(Zp.prototype.evaluate=function(t){var e=typeof t;return"string"==e?this._condVal.test(t):"number"==e&&this._condVal.test(t+"")},Zp);$p.prototype.evaluate=function(){return this.value};var VM=$p;Kp.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0};var HM=Kp;Jp.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1};var GM=Jp;Qp.prototype.evaluate=function(){return!this.child.evaluate()};var WM=Qp;td.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:e))return!1;return!0};var UM=td;od.prototype.evaluate=function(){return this._cond.evaluate()};var jM=od,XM={type:"echarts:filter",transform:function(t){for(var e,n,i=t.upstream,o=(t=t.config,n={valueGetterAttrMap:G({dimension:!0}),prepareGetValue:function(t){var e=t.dimension,t=(j(t,"dimension")||cn(""),i.getDimensionInfo(e));return t||cn(""),{dimIdx:t.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}},new jM(t,n)),r=[],a=0,s=i.count();a<s;a++)e=i.getRawDataItem(a),o.evaluate()&&r.push(e);return{data:r}}},YM={type:"echarts:sort",transform:function(t){for(var e=t.upstream,t=t.config,t=pn(t),n=(t.length||cn(""),[]),t=(d(t,function(t){var i=t.dimension,o=t.order,r=t.parser,t=t.incomparable,i=(null==i&&cn(""),"asc"!==o&&"desc"!==o&&cn(""),t&&"min"!==t&&"max"!==t&&cn(""),"asc"!==o&&"desc"!==o&&cn(""),e.getDimensionInfo(i)),a=(i||cn(""),r?Ja(r):null);r&&!a&&cn(""),n.push({dimIdx:i.index,parser:a,comparator:new tb(o,t)})}),e.sourceFormat),i=(t!==ax&&t!==sx&&cn(""),[]),o=0,r=e.count();o<r;o++)i.push(e.getRawDataItem(o));return i.sort(function(t,i){for(var o=0;o<n.length;o++){var r=n[o],a=e.retrieveValueFromItem(t,r.dimIdx),s=e.retrieveValueFromItem(i,r.dimIdx),r=(r.parser&&(a=r.parser(a),s=r.parser(s)),r.comparator.evaluate(a,s));if(0!==r)return r}return 0}),{data:i}}};gh(function(t){t.registerTransform(XM),t.registerTransform(YM)});var qM="none",ZM=Math.round,$M=Math.sin,KM=Math.cos,JM=Math.PI,QM=2*Math.PI,tk=180/JM;yd.prototype.reset=function(){this._d=[],this._str=""},yd.prototype.moveTo=function(t,e){this._add("M",t,e)},yd.prototype.lineTo=function(t,e){this._add("L",t,e)},yd.prototype.bezierCurveTo=function(t,e,n,i,o,r){this._add("C",t,e,n,i,o,r)},yd.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},yd.prototype.arc=function(t,e,n,i,o,r){this.ellipse(t,e,n,n,0,i,o,r)},yd.prototype.ellipse=function(t,e,n,i,o,r,a,s){var l=0===this._d.length,a=a-r,s=!s,u=Math.abs(a),h=pd(u-QM)||(s?QM<=a:QM<=-a),c=!1,c=!!h||!pd(u)&&JM<=(0<a?a%QM:a%QM+QM)==!!s,u=cd(t+n*KM(r)),p=cd(e+i*$M(r)),h=(h&&(a=s?QM-1e-4:1e-4-QM,c=!0,l)&&this._d.push("M",u,p),cd(t+n*KM(r+a))),l=cd(e+i*$M(r+a));if(isNaN(u)||isNaN(p)||isNaN(n)||isNaN(i)||isNaN(o)||isNaN(tk)||isNaN(h)||isNaN(l))return"";this._d.push("A",cd(n),cd(i),ZM(o*tk),+c,+s,h,l)},yd.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("L",t+n,e),this._add("L",t+n,e+i),this._add("L",t,e+i),this._add("L",t,e),this._add("Z")},yd.prototype.closePath=function(){0<this._d.length&&this._add("Z")},yd.prototype._add=function(t,e,n,i,o,r,a,s,l){this._d.push(t);for(var u=1;u<arguments.length;u++){var h=arguments[u];if(isNaN(h))return void(this._invalid=!0);this._d.push(cd(h))}},yd.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(" "),this._d=[]},yd.prototype.getStr=function(){return this._str};var ek=yd,nk={brush:function(t){var e=t.style,n=t.__svgEl,i=(n||(n=rd("path"),t.__svgEl=n),t.path||t.createPathProxy(),t.path),o=(t.shapeChanged()&&(i.beginPath(),t.buildPath(i,t.shape),t.pathUpdated()),i.getVersion()),r=t,a=r.__svgPathBuilder;(r.__svgPathVersion!==o||!a||t.style.strokePercent<1)&&((a=a||(r.__svgPathBuilder=new ek)).reset(),i.rebuildPath(a,t.style.strokePercent),a.generateStr(),r.__svgPathVersion=o),fd(n,"d",a.getStr()),gd(n,e,t),dd(n,t.transform)}},ik={brush:function(t){var e,n,i,o,r,a,s,l=t.style,u=l.image;u instanceof HTMLImageElement?u=u.src:u instanceof HTMLCanvasElement&&(u=u.toDataURL()),u&&(e=l.x||0,n=l.y||0,i=l.width,o=l.height,(r=t.__svgEl)||(r=rd("image"),t.__svgEl=r),u!==t.__imageSrc&&(a="href",s=u,r.setAttributeNS("http://www.w3.org/1999/xlink",a,s),t.__imageSrc=u),fd(r,"width",i+""),fd(r,"height",o+""),fd(r,"x",e+""),fd(r,"y",n+""),gd(r,l,t),dd(r,t.transform))}},ok={left:"start",right:"end",center:"middle",middle:"middle"},rk={brush:function(t){var e,n,i,o,r=t.style,a=r.text;null!=a&&(a+=""),!a||isNaN(r.x)||isNaN(r.y)||((e=t.__svgEl)||(e=rd("text"),n="xml:space",i="preserve",e.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,i),t.__svgEl=e),n=r.font||Dg,e.style.font=n,e.textContent=a,gd(e,r,t),dd(e,t.transform),i=r.x||0,a=r.y||0,t=Ne(n),"top"===(o=r.textBaseline)?a+=t/2:"bottom"===o&&(a-=t/2),o=a,t=ok[r.textAlign]||r.textAlign,fd(e,"dominant-baseline","central"),fd(e,"text-anchor",t),fd(e,"x",i+""),fd(e,"y",o+""))}},Uv=(md.prototype.getDefs=function(t){var e,n=this._svgRoot,i=this._svgRoot.getElementsByTagName("defs");return 0===i.length?t?((e=n.insertBefore(this.createElement("defs"),n.firstChild)).contains||(e.contains=function(t){var n=e.children;if(n)for(var i=n.length-1;0<=i;--i)if(n[i]===t)return!0;return!1}),e):null:i[0]},md.prototype.doUpdate=function(t,e){var n;t&&(n=this.getDefs(!1),t[this._domName]&&n.contains(t[this._domName])?"function"==typeof e&&e(t):(n=this.add(t))&&(t[this._domName]=n))},md.prototype.add=function(t){return null},md.prototype.addDom=function(t){var e=this.getDefs(!0);t.parentNode!==e&&e.appendChild(t)},md.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},md.prototype.getDoms=function(){var t,e=this.getDefs(!1);return e?(t=[],d(this._tagNames,function(n){for(var i=e.getElementsByTagName(n),o=0;o<i.length;o++)t.push(i[o])}),t):[]},md.prototype.markAllUnused=function(){var t=this;d(this.getDoms(),function(e){e[t._markLabel]="0"})},md.prototype.markDomUsed=function(t){t&&(t[this._markLabel]="1")},md.prototype.markDomUnused=function(t){t&&(t[this._markLabel]="0")},md.prototype.isDomUnused=function(t){return t&&"1"!==t[this._markLabel]},md.prototype.removeUnused=function(){var t=this,e=this.getDefs(!1);e&&d(this.getDoms(),function(n){t.isDomUnused(n)&&e.removeChild(n)})},md.prototype.getSvgProxy=function(t){return t instanceof um?nk:t instanceof gm?ik:t instanceof cm?rk:nk},md.prototype.getSvgElement=function(t){return t.__svgEl},md);e(bd,ak=Uv),bd.prototype.addWithoutUpdate=function(t,e){var n;e&&e.style&&(n=this,d(["fill","stroke"],function(i){var o,r,a=e.style[i];xd(a)&&(a=a,r=n.getDefs(!0),o=void 0,a.__dom?(o=a.__dom,r.contains(a.__dom)||n.addDom(o)):o=n.add(a),n.markUsed(e),r=o.getAttribute("id"),t.setAttribute(i,"url(#"+r+")"))}))},bd.prototype.add=function(t){var e;if(vd(t))e=this.createElement("linearGradient");else{if(!_d(t))return o("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},bd.prototype.update=function(t){var e;xd(t)&&(e=this).doUpdate(t,function(){var n,i=t.__dom;i&&(i=i.tagName,"linear"===(n=t.type)&&"linearGradient"===i||"radial"===n&&"radialGradient"===i?e.updateDom(t,t.__dom):(e.removeDom(t),e.add(t)))})},bd.prototype.updateDom=function(t,e){if(vd(t))e.setAttribute("x1",t.x+""),e.setAttribute("y1",t.y+""),e.setAttribute("x2",t.x2+""),e.setAttribute("y2",t.y2+"");else{if(!_d(t))return void o("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 n=t.colorStops,i=0,r=n.length;i<r;++i){var a,s=this.createElement("stop"),l=(s.setAttribute("offset",100*n[i].offset+"%"),n[i].color);-1<l.indexOf("rgba")?(a=Ut(l)[3],l=Yt(l),s.setAttribute("stop-color","#"+l),s.setAttribute("stop-opacity",a+"")):s.setAttribute("stop-color",n[i].color),e.appendChild(s)}t.__dom=e},bd.prototype.markUsed=function(t){var e;t.style&&((e=t.style.fill)&&e.__dom&&ak.prototype.markDomUsed.call(this,e.__dom),e=t.style.stroke)&&e.__dom&&ak.prototype.markDomUsed.call(this,e.__dom)};var ak,sk,lk=bd,uk=new Ub,hk=(e(Sd,sk=Uv),Sd.prototype.addWithoutUpdate=function(t,e){var n;e&&e.style&&(n=this,d(["fill","stroke"],function(i){var o,r,a=e.style[i];wd(a)&&(r=n.getDefs(!0),(o=uk.get(a))?r.contains(o)||n.addDom(o):o=n.add(a),n.markUsed(e),r=o.getAttribute("id"),t.setAttribute(i,"url(#"+r+")"))}))},Sd.prototype.add=function(t){var e;if(wd(t))return e=this.createElement("pattern"),t.id=null==t.id?this.nextId++:t.id,e.setAttribute("id","zr"+this._zrId+"-pattern-"+t.id),e.setAttribute("x","0"),e.setAttribute("y","0"),e.setAttribute("patternUnits","userSpaceOnUse"),this.updateDom(t,e),this.addDom(e),e},Sd.prototype.update=function(t){var e;wd(t)&&(e=this).doUpdate(t,function(){var n=uk.get(t);e.updateDom(t,n)})},Sd.prototype.updateDom=function(t,e){var n=t.svgElement;if(n instanceof SVGElement)n.parentNode!==e&&(e.innerHTML="",e.appendChild(n),e.setAttribute("width",t.svgWidth+""),e.setAttribute("height",t.svgHeight+""));else{var n=void 0,i=e.getElementsByTagName("image");if(i.length){if(!t.image)return void e.removeChild(i[0]);n=i[0]}else t.image&&(n=this.createElement("image"));n&&(i=void 0,"string"==typeof(o=t.image)?i=o:o instanceof HTMLImageElement?i=o.src:o instanceof HTMLCanvasElement&&(i=o.toDataURL()),i)&&(n.setAttribute("href",i),n.setAttribute("x","0"),n.setAttribute("y","0"),(o=Bn(i,n,{dirty:function(){}},function(t){e.setAttribute("width",t.width+""),e.setAttribute("height",t.height+"")}))&&o.width&&o.height&&(e.setAttribute("width",o.width+""),e.setAttribute("height",o.height+"")),e.appendChild(n))}var i=t.x||0,o=t.y||0,n=(t.rotation||0)/Math.PI*180,r=t.scaleX||1,a=t.scaleY||1;e.setAttribute("patternTransform","translate("+i+", "+o+") rotate("+n+") scale("+r+", "+a+")"),uk.set(t,e)},Sd.prototype.markUsed=function(t){t.style&&(wd(t.style.fill)&&sk.prototype.markDomUsed.call(this,uk.get(t.style.fill)),wd(t.style.stroke))&&sk.prototype.markDomUsed.call(this,uk.get(t.style.stroke))},Sd);e(Td,ck=Uv),Td.prototype.markAllUnused=function(){ck.prototype.markAllUnused.call(this);var t,e=this._refGroups;for(t in e)e.hasOwnProperty(t)&&this.markDomUnused(e[t]);this._keyDuplicateCount={}},Td.prototype._getClipPathGroup=function(t,e){var n,i;if(Cd(t))return t=t.__clipPaths,n=this._keyDuplicateCount,i=function(t){var e=[];if(t)for(var n=0;n<t.length;n++){var i=t[n];e.push(i.id)}return e.join(",")}(t),pl(t,e&&e.__clipPaths)&&(n[i]=n[i]||0,n[i]&&(i+="-"+n[i]),n[i]++),this._refGroups[i]||(this._refGroups[i]=this.createElement("g"))},Td.prototype.update=function(t,e){return e=this._getClipPathGroup(t,e),e&&(this.markDomUsed(e),this.updateDom(e,t.__clipPaths)),e},Td.prototype.updateDom=function(t,e){var n,i,o,r;e&&0<e.length?(r=this.getDefs(!0),o=i=void 0,(n=e[0])._dom?(o=n._dom.getAttribute("id"),i=n._dom,r.contains(i)||r.appendChild(i)):(o="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(i=this.createElement("clipPath")).setAttribute("id",o),r.appendChild(i),n._dom=i),this.getSvgProxy(n).brush(n),r=this.getSvgElement(n),i.innerHTML="",i.appendChild(r),t.setAttribute("clip-path","url(#"+o+")"),1<e.length&&this.updateDom(i,e.slice(1))):t&&t.setAttribute("clip-path","none")},Td.prototype.markUsed=function(t){var e=this;t.__clipPaths&&d(t.__clipPaths,function(t){t._dom&&ck.prototype.markDomUsed.call(e,t._dom)})},Td.prototype.removeUnused=function(){ck.prototype.removeUnused.call(this);var t,e,n={},i=this._refGroups;for(t in i)i.hasOwnProperty(t)&&(e=i[t],this.isDomUnused(e)?e.parentNode&&e.parentNode.removeChild(e):n[t]=e);this._refGroups=n};var ck,pk=Td;e(Md,dk=Uv),Md.prototype._getFromPool=function(){var t,e=this._shadowDomPool.pop();return e||((e=this.createElement("filter")).setAttribute("id","zr"+this._zrId+"-shadow-"+this.nextId++),t=this.createElement("feDropShadow"),e.appendChild(t),this.addDom(e)),e},Md.prototype.update=function(t,e){var n,i=e.style;(i=i)&&(i.shadowBlur||i.shadowOffsetX||i.shadowOffsetY)?(n=(i=e).style,i=i.getGlobalScale(),n=[n.shadowColor,(n.shadowBlur||0).toFixed(2),(n.shadowOffsetX||0).toFixed(2),(n.shadowOffsetY||0).toFixed(2),i[0],i[1]].join(","),(i=e._shadowDom=this._shadowDomMap[n])||(i=this._getFromPool(),this._shadowDomMap[n]=i),this.updateDom(t,e,i)):this.remove(t,e)},Md.prototype.remove=function(t,e){null!=e._shadowDom&&(e._shadowDom=null,t.style.filter="")},Md.prototype.updateDom=function(t,e,n){var i,o,r,a=n.children[0],s=e.style,l=e.getGlobalScale(),u=l[0],l=l[1];u&&l&&(r=s.shadowOffsetX||0,i=s.shadowOffsetY||0,o=s.shadowBlur,s=ad(s.shadowColor),a.setAttribute("dx",r/u+""),a.setAttribute("dy",i/l+""),a.setAttribute("flood-color",s.color),a.setAttribute("flood-opacity",s.opacity+""),a.setAttribute("stdDeviation",o/2/u+" "+o/2/l),n.setAttribute("x","-100%"),n.setAttribute("y","-100%"),n.setAttribute("width","300%"),n.setAttribute("height","300%"),r=(e._shadowDom=n).getAttribute("id"),t.style.filter="url(#"+r+")")},Md.prototype.removeUnused=function(){if(this.getDefs(!1)){var t,e=this._shadowDomPool,n=this._shadowDomMap;for(t in n)n.hasOwnProperty(t)&&e.push(n[t]);this._shadowDomMap={}}};var dk,fk=Md;Ld.prototype.getType=function(){return"svg"},Ld.prototype.getViewportRoot=function(){return this._viewport},Ld.prototype.getSvgDom=function(){return this._svgDom},Ld.prototype.getSvgRoot=function(){return this._svgRoot},Ld.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},Ld.prototype.refresh=function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},Ld.prototype.setBackgroundColor=function(t){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var e=rd("rect"),t=(e.setAttribute("width",this.getWidth()),e.setAttribute("height",this.getHeight()),e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("id",0),ad(t)),n=t.color,t=t.opacity;e.setAttribute("fill",n),e.setAttribute("fill-opacity",t),this._backgroundRoot.appendChild(e),this._backgroundNode=e},Ld.prototype.createSVGElement=rd,Ld.prototype.paintOne=function(t){var e=Id(t);return e&&e.brush(t),Od(t)},Ld.prototype._paintList=function(t){for(var e=this._gradientManager,n=this._patternManager,i=this._clipPathManager,o=this._shadowManager,r=(e.markAllUnused(),n.markAllUnused(),i.markAllUnused(),o.markAllUnused(),this._svgRoot),a=this._visibleList,s=t.length,l=[],u=0;u<s;u++){var h=Id(b=t[u]),c=Od(b);b.invisible||(!b.__dirty&&c||(h&&h.brush(b),(c=Od(b))&&b.style&&(e.update(b.style.fill),e.update(b.style.stroke),n.update(b.style.fill),n.update(b.style.stroke),o.update(c,b)),b.__dirty=0),c&&l.push(b))}for(var p,d,f,g,y,m,v=sd(a,l),u=0;u<v.length;u++)if((x=v[u]).removed)for(var _=0;_<x.count;_++)c=Od(b=a[x.indices[_]]),Cd(b)?(g=c)&&g.parentNode&&g.parentNode.removeChild(g):(g=r,(f=c)&&g&&f.parentNode===g&&g.removeChild(f));for(u=0;u<v.length;u++){var x=v[u];if(!x.removed)for(_=0;_<x.count;_++){var b=l[x.indices[_]],w=i.update(b,y),c=(w!==m&&(p=d,w&&(p?Ad(r,w,p):Pd(r,w),d=w,p=null),m=w),Od(b));p?Ad(m||r,c,p):Pd(m||r,c),p=c||p,m||(d=p),e.markUsed(b),e.addWithoutUpdate(c,b),n.markUsed(b),n.addWithoutUpdate(c,b),i.markUsed(b),y=b}}e.removeUnused(),n.removeUnused(),i.removeUnused(),o.removeUnused(),this._visibleList=l},Ld.prototype.resize=function(t,e){var n=this._viewport,i=(n.style.display="none",this._opts);null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width===t&&this._height===e||(this._width=t,this._height=e,(i=n.style).width=t+"px",i.height=e+"px",(n=this._svgDom).setAttribute("width",t+""),n.setAttribute("height",e+"")),this._backgroundNode&&(this._backgroundNode.setAttribute("width",t),this._backgroundNode.setAttribute("height",e))},Ld.prototype.getWidth=function(){return this._width},Ld.prototype.getHeight=function(){return this._height},Ld.prototype._getSize=function(t){var e,n=this._opts,i=["width","height"][t],o=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],t=["paddingRight","paddingBottom"][t];return null!=n[i]&&"auto"!==n[i]?parseFloat(n[i]):(n=this.root,e=document.defaultView.getComputedStyle(n),(n[o]||kd(e[i])||kd(n.style[i]))-(kd(e[r])||0)-(kd(e[t])||0)|0)},Ld.prototype.dispose=function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},Ld.prototype.clear=function(){var t=this._viewport;t&&t.parentNode&&t.parentNode.removeChild(t)},Ld.prototype.toDataURL=function(){this.refresh();var t=this._svgDom,t=t.outerHTML||(t.parentNode&&t.parentNode).innerHTML;return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(t.replace(/></g,">\n\r<"))},Ye("svg",Ld),t.Axis=x_,t.ChartView=wb,t.ComponentModel=J_,t.ComponentView=_b,t.List=XS,t.Model=w_,t.PRIORITY=Yb,t.SeriesModel=vb,t.color=zf,t.connect=function(t){var e;return _(t)&&(e=t,t=null,d(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+TS++,d(e,function(e){e.group=t})),SS[t]=!0,t},t.dataTool={},t.dependencies={zrender:"5.2.0"},t.disConnect=ou,t.disconnect=Xb,t.dispose=function(t){"string"==typeof t?t=wS[t]:t instanceof dS||(t=ru(t)),t instanceof dS&&!t.isDisposed()&&t.dispose()},t.env=Bd,t.extendChartView=function(t){return t=wb.extend(t),wb.registerClass(t),t},t.extendComponentModel=function(t){return t=J_.extend(t),J_.registerClass(t),t},t.extendComponentView=function(t){return t=_b.extend(t),_b.registerClass(t),t},t.extendSeriesModel=function(t){return t=vb.extend(t),vb.registerClass(t),t},t.format=Fb,t.getCoordinateSystemDimensions=function(t){if(t=Tx.get(t))return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},t.getInstanceByDom=ru,t.getInstanceById=function(t){return wS[t]},t.getMap=function(t){return Bw(t)},t.graphic=N_,t.helper=jb,t.init=function(t,e,n){var i=ru(t);return i||((i=new dS(t,e,n)).id="ec_"+CS++,wS[i.id]=i,kn(t,MS,i.id),lS(i),zw.trigger("afterinit",i),i)},t.innerDrawElementOnCanvas=Tl,t.matrix=sg,t.number=ny,t.parseGeoJSON=Yl,t.parseGeoJson=Yl,t.registerAction=pu,t.registerCoordinateSystem=du,t.registerLayout=fu,t.registerLoading=mu,t.registerLocale=br,t.registerMap=vu,t.registerPostInit=uu,t.registerPostUpdate=hu,t.registerPreprocessor=su,t.registerProcessor=lu,t.registerTheme=au,t.registerTransform=_u,t.registerUpdateLifecycle=cu,t.registerVisual=gu,t.setCanvasCreator=function(t){n("createCanvas",t)},t.throttle=Us,t.time=Eg,t.use=gh,t.util=Hb,t.vector=of,t.version="5.2.0",t.zrUtil=tf,t.zrender=Ug})},1947:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var i=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"chart",staticClass:"chart"})},o=[];i._withStripped=!0},1948:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"chartContainer"},[n("div",{staticClass:"dataDisplay"},[n("div",{staticClass:"selectAge"},[n("div",{staticClass:"leftSelectAge"},[n("span",{staticClass:"agetext"},[t._v("至")]),t._v(" "),n("div",{class:["selectInputAge","agetext",{isCps:t.isCps}],on:{click:t.showAgePicker}},[n("div",{staticClass:"selectedAgeText"},[t._v("\n "+t._s(t.xAxisData[t.selectIndex])+"岁\n ")]),t._v(" "),n("i",{staticClass:"dropDown"})]),t._v(" "),n("span",{staticClass:"agetext"},[t._v("可获得")])]),t._v(" "),n("div",{class:["benefitShowBtn",{isCps:t.isCps}],on:{click:t.showCostTable}},[t._v("\n 利益演示\n ")])]),t._v(" "),1===t.showType2Length?[t._l(t.chartConfig,function(e,i){return[2===e.showType?n("div",{key:i,staticClass:"specialShowBox"},[n("div",{staticClass:"numShow"},[n("div",{staticClass:"num",style:{color:e.boxConfig.titleColor}},[t._v("\n "+t._s(Math.round(100*t.pureDataSource[t.selectIndex][i])/100)+"\n ")]),t._v(" "),n("div",{staticClass:"colorBlock",style:{background:e.boxConfig.blockColor}})]),t._v(" "),n("div",{staticClass:"titleShow"},[n("div",{staticClass:"text"},[n("span",[t._v(t._s(e.titleName))]),t._v(" "),e.problemText?n("i",{staticClass:"question",on:{click:function(n){return t.showProblemDialog(e.problemText)}}}):t._e()]),t._v(" "),e.tipsText?n("div",{staticClass:"multipleShow",style:{color:e.boxConfig.tipsColor}},[t._v("\n "+t._s(e.tipsText[0])),n("span",{staticClass:"multipleNum"},[t._v(t._s(e.expressionData[t.selectIndex]))]),t._v(t._s(e.tipsText[1])+"\n ")]):t._e()])]):t._e()]})]:[n("div",{staticClass:"textShow"},[t._l(t.chartConfig,function(e,i){return[2===e.showType?n("div",{key:i,staticClass:"textShowBox"},[n("div",{staticClass:"iconblock"},[n("i",{staticClass:"iconColorBlock",style:{background:e.boxConfig.iconColor}})]),t._v(" "),n("div",{staticClass:"text"},[n("span",[t._v(t._s(e.titleName))]),t._v(" "),e.problemText?n("i",{staticClass:"question",on:{click:function(n){return t.showProblemDialog(e.problemText)}}}):t._e()])]):t._e()]})],2),t._v(" "),n("div",{staticClass:"moneyShow"},[t._l(t.chartConfig,function(e,i){return[2===e.showType?n("div",{key:i,staticClass:"moneyShowBox"},[n("div",{staticClass:"numShow"},[n("div",{ref:"num",refInFor:!0,staticClass:"num",style:{color:e.boxConfig.titleColor}},[t._v("\n "+t._s(Math.round(100*t.pureDataSource[t.selectIndex][i])/100)+"\n ")]),t._v(" "),n("div",{ref:"colorBlock",refInFor:!0,staticClass:"colorBlock",style:{background:e.boxConfig.blockColor}})]),t._v(" "),e.tipsText&&e.expressionData?n("div",{staticClass:"multipleShow",style:{color:e.boxConfig.tipsColor}},[t._v("\n "+t._s(e.tipsText[0])),n("span",{staticClass:"multipleNum"},[t._v(t._s(e.expressionData[t.selectIndex]))]),t._v(t._s(e.tipsText[1])+"\n ")]):t._e()]):t._e()]})],2)]],2),t._v(" "),n("div",{class:["flowerTexture",{isCps:t.isCps}]}),t._v(" "),n("chart",{attrs:{chartConfig:t.chartConfig,dataSource:t.dataSource,index:t.selectIndex},on:{setIndex:t.setSelectIndex}})],1)},o=[];i._withStripped=!0},1949:function(t,e,n){"use strict";function i(t){s||n(1950)}var o=n(1161),r=n(1951),a=n(8),s=!1,l=i,u=Object(a.a)(o.a,r.a,r.b,!1,l,"data-v-4eebaa8b",null);u.options.__file="src\\components\\GoldFinanceChart\\src\\components\\costTable.vue",e.a=u.exports},1950:function(t,e){},1951:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"layer-finance",on:{touchmove:t.preventMove}},[n("div",{staticClass:"layer-finance-mask",on:{click:function(e){return e.stopPropagation(),t.cancel(e)}}}),t._v(" "),n("div",{staticClass:"layer-finance-box layer_animate cost iphonex_padding"},[n("span",{staticClass:"layer-close",on:{click:function(e){return e.stopPropagation(),t.cancel(e)}}}),t._v(" "),n("p",{staticClass:"main-title"},[t._v("\n 保单利益演示表\n ")]),t._v(" "),n("p",{staticClass:"cost-title"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("p",{staticClass:"cost-table-head"},[t._v("\n 基于用户所选信息的保单利益演示如下:\n ")]),t._v(" "),t.tables.cols&&t.tables.rows&&t.tables.rows.length?[n("div",[n("div",{staticClass:"table-tr thead"},[t._l(t.tables.cols,function(e,i){return[t.showCol(i)?n("span",{key:"head-"+i,staticClass:"table-item",style:t.styleOption},[t._v("\n "+t._s(e)+"\n ")]):t._e()]})],2),t._v(" "),n("div",{staticClass:"cost-scroll"},[n("table",{staticClass:"table-body"},[t.tables.rows&&t.tables.rows.length?n("tbody",t._l(t.tables.rows,function(e,i){return n("tr",{key:"tr-"+i,staticClass:"table-tr "},[t._l(e,function(e,o){return[t.showCol(o)?n("td",{key:"td-"+i+"-"+o,staticClass:"table-item"},[t._v("\n "+t._s(Math.round(100*e)/100)+"\n ")]):t._e()]})],2)}),0):t._e()])])])]:[n("div",{staticClass:"no-data"},[t._v("\n 暂时无法展示\n ")])]],2)])},o=[];i._withStripped=!0},1952:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isShowChart?n("div",[n("benefit",{attrs:{renderData:t.renderData,theme:t.realTheme,isCps:t.isCps},on:{showCostTable:t.showCostTable}}),t._v(" "),n("gold-cost-table",{attrs:{visible:t.costTableVisible,tables:t.tables,theme:t.realTheme},on:{cancelCost:function(e){t.costTableVisible=!1}}})],1):t._e()},o=[];i._withStripped=!0},2:function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},20:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},200:function(t,e,n){"use strict";function i(t,e){if(t.findIndex)return t.findIndex(e);var n=-1;return t.some(function(t,i,o){var r=e.call(this,t,i,o);if(r)return n=i,r}),n}function o(t){return t?JSON.parse(y()(t)):t}function r(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function a(t){return"[object String]"===Object.prototype.toString.call(t)}function s(t){return"[object Number]"===Object.prototype.toString.call(t)}function l(t){return"[object Object]"===Object.prototype.toString.call(t)}function u(t){return void 0!==t&&null!==t}function h(t){return"function"==typeof t}function c(t,e,n){function i(e){var n=y,i=m;return y=m=void 0,w=e,_=t.apply(i,n)}function o(t,e){return M?(window.cancelAnimationFrame(x),window.requestAnimationFrame(t)):setTimeout(t,e)}function r(t){if(M)return window.cancelAnimationFrame(t);clearTimeout(t)}function a(t){return w=t,x=o(h,e),S?i(t):_}function s(t){var n=t-b,i=t-w,o=e-n;return C?Math.min(o,v-i):o}function u(t){var n=t-b,i=t-w;return void 0===b||n>=e||n<0||C&&i>=v}function h(){var t=Date.now();if(u(t))return c(t);x=o(h,s(t))}function c(t){return x=void 0,T&&y?i(t):(y=m=void 0,_)}function p(){void 0!==x&&r(x),w=0,y=b=m=x=void 0}function d(){return void 0===x?_:c(Date.now())}function f(){return void 0!==x}function g(){for(var t=Date.now(),n=u(t),r=arguments.length,s=Array(r),l=0;l<r;l++)s[l]=arguments[l];if(y=s,m=this,b=t,n){if(void 0===x)return a(b);if(C)return x=o(h,e),i(b)}return void 0===x&&(x=o(h,e)),_}var y=void 0,m=void 0,v=void 0,_=void 0,x=void 0,b=void 0,w=0,S=!1,C=!1,T=!0,M=!e&&0!==e&&"function"==typeof window.requestAnimationFrame;if("function"!=typeof t)throw new TypeError("Expected a function");return e=+e||0,l(n)&&(S=!!n.leading,C="maxWait"in n,v=C?Math.max(+n.maxWait||0,e):v,T="trailing"in n?!!n.trailing:T),g.cancel=p,g.flush=d,g.pending=f,g}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e=e||window.location.href;var n=new RegExp("(\\?|#|&)"+t+"=([^&#]*)(&|#|$)"),i=e.match(n);return decodeURIComponent(i?i[2]:"")}n.d(e,"j",function(){return O}),e.c=i,e.b=o,e.e=r,e.i=a,e.h=s,e.f=u,e.g=h,e.a=c,e.d=p;var d=n(65),f=(n.n(d),n(163)),g=(n.n(f),n(89)),y=n.n(g),m="undefined"!=typeof window,v=m&&window.navigator.userAgent.toLowerCase(),_=v&&/msie|trident/.test(v),x=v&&v.indexOf("msie 9.0")>0,b=v&&v.indexOf("edge/")>0,w=v&&v.indexOf("android")>0,S=v&&/iphone|ipad|ipod|ios/.test(v),C=v&&/chrome\/\d+/.test(v)&&!b,T=v&&/MicroMessenger/i.test(v),M=v&&/wxwork/i.test(v),k=v&&/mucxiaoyusan/i.test(v),I=v&&/muckacabao/i.test(v),D=v&&/mucyanxuan/i.test(v),A=k||I,P=v&&/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(v),O={isIE:_,isMobile:P,isIE9:x,isEdge:b,isAndroid:w,isIOS:S,isChrome:C,isWx:T,isWxWork:M,isApp:A,isXysApp:k,isKcbApp:I,isYxApp:D};/MucWebAutoTester/.test(window.navigator.userAgent)},21:function(t,e,n){var i=n(6),o=n(0).document,r=i(o)&&i(o.createElement);t.exports=function(t){return r?o.createElement(t):{}}},22:function(e,n){e.exports=t},23:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},24:function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},25:function(t,e,n){var i=n(9).f,o=n(7),r=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,r)&&i(t,r,{configurable:!0,value:e})}},26:function(t,e,n){var i=n(37),o=n(28);t.exports=Object.keys||function(t){return i(t,o)}},27:function(t,e,n){var i=n(2),o=n(0),r=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n(18)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},28:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},29:function(t,e,n){var i=n(16);t.exports=function(t){return Object(i(t))}},3:function(t,e,n){t.exports=!n(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},30:function(t,e,n){var i=n(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},31:function(t,e,n){var i=n(15),o=Math.min;t.exports=function(t){return t>0?o(i(t),9007199254740991):0}},33:function(t,e,n){"use strict";var i=n(18),o=n(10),r=n(46),a=n(5),s=n(11),l=n(52),u=n(25),h=n(54),c=n(1)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,f,g,y,m){l(n,e,f);var v,_,x,b=function(t){if(!p&&t in T)return T[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",S="values"==g,C=!1,T=t.prototype,M=T[c]||T["@@iterator"]||g&&T[g],k=M||b(g),I=g?S?b("entries"):k:void 0,D="Array"==e?T.entries||M:M;if(D&&(x=h(D.call(new t)))!==Object.prototype&&x.next&&(u(x,w,!0),i||"function"==typeof x[c]||a(x,c,d)),S&&M&&"values"!==M.name&&(C=!0,k=function(){return M.call(this)}),i&&!m||!p&&!C&&T[c]||a(T,c,k),s[e]=k,s[w]=d,g)if(v={values:S?k:b("values"),keys:y?k:b("keys"),entries:I},m)for(_ in v)_ in T||r(T,_,v[_]);else o(o.P+o.F*(p||C),e,v);return v}},34:function(t,e,n){var i=n(6);t.exports=function(t,e){if(!i(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!i(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},36:function(t,e,n){t.exports=!n(3)&&!n(13)(function(){return 7!=Object.defineProperty(n(21)("div"),"a",{get:function(){return 7}}).a})},37:function(t,e,n){var i=n(7),o=n(12),r=n(41)(!1),a=n(19)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),l=0,u=[];for(n in s)n!=a&&i(s,n)&&u.push(n);for(;e.length>l;)i(s,n=e[l++])&&(~r(u,n)||u.push(n));return u}},38:function(t,e,n){var i=n(0).document;t.exports=i&&i.documentElement},4:function(t,e,n){var i=n(6);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},40:function(t,e,n){var i=n(14),o=n(1)("toStringTag"),r="Arguments"==i(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:r?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}},41:function(t,e,n){var i=n(12),o=n(31),r=n(42);t.exports=function(t){return function(e,n,a){var s,l=i(e),u=o(l.length),h=r(a,u);if(t&&n!=n){for(;u>h;)if((s=l[h++])!=s)return!0}else for(;u>h;h++)if((t||h in l)&&l[h]===n)return t||h||0;return!t&&-1}}},42:function(t,e,n){var i=n(15),o=Math.max,r=Math.min;t.exports=function(t,e){return t=i(t),t<0?o(t+e,0):r(t,e)}},43:function(t,e,n){"use strict";var i=n(51)(!0);n(33)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},44:function(t,e){e.f={}.propertyIsEnumerable},45:function(t,e,n){var i=n(4),o=n(53),r=n(28),a=n(19)("IE_PROTO"),s=function(){},l=function(){var t,e=n(21)("iframe"),i=r.length;for(e.style.display="none",n(38).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;i--;)delete l.prototype[r[i]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=i(t),n=new s,s.prototype=null,n[a]=t):n=l(),void 0===e?n:o(n,e)}},46:function(t,e,n){t.exports=n(5)},47:function(t,e,n){n(63);for(var i=n(0),o=n(5),r=n(11),a=n(1)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var u=s[l],h=i[u],c=h&&h.prototype;c&&!c[a]&&o(c,a,u),r[u]=r.Array}},49:function(t,e,n){var i=n(40),o=n(1)("iterator"),r=n(11);t.exports=n(2).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||r[i(t)]}},5:function(t,e,n){var i=n(9),o=n(23);t.exports=n(3)?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},50:function(t,e){e.f=Object.getOwnPropertySymbols},51:function(t,e,n){var i=n(15),o=n(16);t.exports=function(t){return function(e,n){var r,a,s=String(o(e)),l=i(n),u=s.length;return l<0||l>=u?t?"":void 0:(r=s.charCodeAt(l),r<55296||r>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):r:t?s.slice(l,l+2):a-56320+(r-55296<<10)+65536)}}},52:function(t,e,n){"use strict";var i=n(45),o=n(23),r=n(25),a={};n(5)(a,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(a,{next:o(1,n)}),r(t,e+" Iterator")}},53:function(t,e,n){var i=n(9),o=n(4),r=n(26);t.exports=n(3)?Object.defineProperties:function(t,e){o(t);for(var n,a=r(e),s=a.length,l=0;s>l;)i.f(t,n=a[l++],e[n]);return t}},54:function(t,e,n){var i=n(7),o=n(29),r=n(19)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),i(t,r)?t[r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},57:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},63:function(t,e,n){"use strict";var i=n(64),o=n(57),r=n(11),a=n(12);t.exports=n(33)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},64:function(t,e){t.exports=function(){}},65:function(t,e,n){t.exports={default:n(67),__esModule:!0}},67:function(t,e,n){n(68),t.exports=n(2).Object.assign},68:function(t,e,n){var i=n(10);i(i.S+i.F,"Object",{assign:n(69)})},69:function(t,e,n){"use strict";var i=n(3),o=n(26),r=n(50),a=n(44),s=n(29),l=n(30),u=Object.assign;t.exports=!u||n(13)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=i})?function(t,e){for(var n=s(t),u=arguments.length,h=1,c=r.f,p=a.f;u>h;)for(var d,f=l(arguments[h++]),g=c?o(f).concat(c(f)):o(f),y=g.length,m=0;y>m;)d=g[m++],i&&!p.call(f,d)||(n[d]=f[d]);return n}:u},7:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},70:function(t,e){},8:function(t,e,n){"use strict";function i(t,e,n,i,o,r,a,s){t=t||{};var l=typeof t.default;"object"!==l&&"function"!==l||(t=t.default);var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),r&&(u._scopeId=r);var h;if(a?(h=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=h):o&&(h=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),h)if(u.functional){u._injectStyles=h;var c=u.render;u.render=function(t,e){return h.call(e),c(t,e)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,h):[h]}return{exports:t,options:u}}e.a=i},89:function(t,e,n){t.exports={default:n(93),__esModule:!0}},9:function(t,e,n){var i=n(4),o=n(36),r=n(34),a=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(i(t),e=r(e,!0),i(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},93:function(t,e,n){var i=n(2),o=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}}})});